.teacher-owner-hero,
.teacher-directory-hero {
  background: #203d2b;
  color: #f5f8ee;
  border-radius: 21px;
  padding: 34px 36px;
  margin-bottom: 28px;
}
.teacher-owner-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.teacher-owner-hero .eyebrow,
.teacher-directory-hero .eyebrow {
  color: #b9cca1;
}
.teacher-owner-hero h1,
.teacher-directory-hero h1 {
  font-size: 35px;
  line-height: 1.16;
  letter-spacing: -1.6px;
  font-weight: 700;
  margin: 9px 0 17px;
}
.teacher-owner-hero p,
.teacher-directory-hero p {
  font-size: 12px;
  line-height: 1.8;
  color: #c1cfb1;
  max-width: 540px;
}
.teacher-owner-hero > span {
  color: #ecff72;
  font-size: 75px;
  padding-right: 20px;
}
.teacher-management-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}
.teacher-management-card {
  border: 1px solid #dde5d2;
  border-radius: 18px;
  background: #fff;
  padding: 28px;
  min-width: 0;
}
.teacher-management-card > p {
  font-size: 12px;
  color: #839270;
  line-height: 1.8;
  margin: 15px 0;
}
.teacher-management-card > p.note {
  font-size: 10px;
  margin-top: 22px;
}
.teacher-identity {
  display: flex;
  gap: 18px;
  align-items: center;
}
.teacher-avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #eaf1d9;
  color: #60843d;
  font-size: 30px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 600;
}
.app-workspace .teacher-identity .eyebrow {
  font-size: 8px;
  letter-spacing: 1.4px;
  margin-bottom: 9px;
}
.app-workspace .teacher-identity h1 {
  font-size: 31px;
  line-height: 1.2;
  letter-spacing: -1.3px;
  overflow-wrap: anywhere;
}
.teacher-identity p {
  font-size: 12px;
  color: #7a8b66;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.teacher-identity small {
  display: block;
  font-size: 10px;
  color: #9aa78a;
  margin-top: 7px;
}
.teacher-introduction {
  color: #758665;
  font-size: 13px;
  line-height: 1.8;
  margin: 20px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.app-workspace .preview-identity h1 {
  font-size: 23px;
  letter-spacing: -1px;
}
.preview-identity .teacher-avatar {
  width: 52px;
  height: 52px;
  font-size: 25px;
  border-radius: 16px;
}
.teacher-management-card .quiet {
  font-size: 11px;
  padding: 8px 0;
  background: none;
  margin-top: 13px;
}
.teacher-current-mode {
  display: flex;
  gap: 14px;
  align-items: center;
}
.teacher-current-mode > span {
  font-size: 30px;
  color: #71954a;
}
.teacher-current-mode h2 {
  font-size: 24px;
  letter-spacing: -1px;
}
.teacher-link-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.teacher-link-actions .btn {
  font-size: 10px;
}
#teacher-link-output .link-output {
  padding: 13px;
  background: #f1f5e9;
  border: 1px solid #dce5cd;
  margin-top: 20px;
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#teacher-link-output label {
  font-size: 10px;
  color: #7c9167;
}
#teacher-link-output input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  font-size: 10px;
  color: #71845c;
  border: 1px solid #d6e1c6;
  border-radius: 6px;
  background: #fcfef8;
}
#teacher-link-output .btn {
  align-self: start;
  font-size: 10px;
  padding: 8px 12px;
}
.teacher-onboarding {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  border: 1px solid #dce5d0;
  background: white;
  border-radius: 18px;
  padding: 35px;
}
.teacher-onboarding h2 {
  font-size: 25px;
  letter-spacing: -1px;
  margin: 12px 0;
}
.teacher-onboarding > div > p {
  font-size: 13px;
  color: #7f8e6f;
  margin: 15px 0 25px;
  line-height: 1.85;
}
.teacher-mode-intro {
  display: grid;
  gap: 18px;
}
.teacher-mode-intro article {
  display: flex;
  gap: 15px;
  padding: 5px 0;
}
.teacher-mode-intro article > span {
  font-size: 28px;
  width: 32px;
  color: #71914d;
}
.teacher-mode-intro h3 {
  font-size: 14px;
  letter-spacing: -0.4px;
  margin-bottom: 5px;
}
.teacher-mode-intro p {
  font-size: 11px;
  color: #8c9b7c;
  line-height: 1.8;
}
.teacher-directory-return {
  margin-top: 35px;
  font-size: 11px;
}
.context-panel.teacher-edit-panel {
  width: min(980px, calc(100vw - 32px));
  max-height: 94dvh;
}
.teacher-edit-panel .context-body {
  padding: 26px;
}
.teacher-editor-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}
.teacher-editor-preview {
  position: sticky;
  top: 0;
  background: #eff4e4;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid #dce6ca;
}
.teacher-editor-preview .teacher-identity {
  display: block;
}
.teacher-editor-preview .teacher-avatar {
  margin-bottom: 20px;
}
.teacher-editor-preview .teacher-introduction {
  font-size: 12px;
  margin: 15px 0;
}
.teacher-editor-preview > .note {
  font-size: 10px !important;
  line-height: 1.8;
  margin-top: 24px;
}
.teacher-editor-fields .field {
  margin-bottom: 17px;
}
.teacher-school-fields {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}
.teacher-edit-panel textarea {
  font: inherit;
  width: 100%;
  border: 1px solid #d6dfc9;
  border-radius: 10px;
  padding: 12px;
  background: white;
  color: #263d22;
  resize: vertical;
  min-height: 80px;
}
.teacher-edit-panel .school-declaration {
  font-size: 10px;
  margin: 0 0 18px;
  color: #99a58b;
}
#school-suggestions:not(:empty) {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid #dbe4ce;
  background: #f4f7ed;
  border-radius: 10px;
  margin: 0 0 14px;
}
#school-suggestions button {
  background: white;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 10px 12px;
  border-radius: 6px;
  color: #5b7544;
}
#school-suggestions strong {
  font-size: 11px;
}
#school-suggestions span {
  font-size: 10px;
  color: #91a17b;
}
.teacher-visibility {
  border: 0;
  padding: 20px 0 0;
  margin: 12px 0 17px;
  border-top: 1px solid #dfe7d4;
}
.teacher-visibility legend {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.4px;
  padding: 0 8px 0 0;
}
.teacher-mode-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.teacher-mode-options label {
  position: relative;
  display: flex !important;
  flex-direction: column;
  padding: 16px;
  border: 1px solid #dce5d0;
  border-radius: 12px;
  background: white;
  cursor: pointer;
}
.teacher-mode-options label:has(input:checked) {
  background: #edf5d8;
  border-color: #89a761;
  box-shadow: 0 0 0 1px #89a76133;
}
.teacher-mode-options input[type="radio"] {
  position: absolute;
  right: 13px;
  top: 17px;
  width: 16px;
  height: 16px;
  accent-color: #62853e;
}
.mode-icon {
  font-size: 25px;
  color: #829e5b;
  margin-bottom: 10px;
}
.teacher-mode-options strong {
  font-size: 12px;
  line-height: 1.5;
  margin: 3px 0 8px;
  color: #4e6739;
}
.teacher-mode-options small {
  font-size: 10px;
  color: #8d9c79;
  line-height: 1.7;
  font-weight: 400;
}
#teacher-consent {
  padding: 12px 16px;
  background: #f1f6e6;
  border: 1px solid #dce8c9;
  border-radius: 10px;
}
#teacher-consent .check-line {
  font-size: 12px;
  color: #66814c;
  margin: 3px 0 !important;
}
#teacher-consent input {
  flex-shrink: 0;
  accent-color: #688d41;
}
.teacher-edit-panel .teacher-privacy-note {
  font-size: 10px;
  color: #91a17e;
  margin-top: 14px;
}
.teacher-directory-hero {
  padding: 35px 40px;
}
.teacher-directory-hero h1 {
  font-size: 43px;
  letter-spacing: -2px;
  max-width: 600px;
}
.teacher-directory-search {
  display: flex;
  max-width: 670px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f1f5e9;
  margin-top: 25px;
}
.teacher-directory-search input {
  flex: 1;
  min-width: 0;
  font: inherit;
  border: 0;
  padding: 17px 20px;
  color: #35502b;
  background: white;
  font-size: 14px;
}
.teacher-directory-search button {
  width: 64px;
  background: #ecff72;
  color: #34532a;
  font-size: 32px;
}
.teacher-directory-search:focus-within {
  outline: 2px solid #d8ec9d;
  outline-offset: 3px;
}
.teacher-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.teacher-directory-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid #dce5d0;
  border-radius: 16px;
  padding: 25px;
  transition:
    border-color 0.15s,
    transform 0.15s;
  min-width: 0;
}
.teacher-directory-card:hover {
  border-color: #92ab70;
  transform: translateY(-2px);
}
.teacher-directory-card > .teacher-avatar {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  font-size: 24px;
  margin-bottom: 22px;
}
.teacher-directory-card > small {
  font-size: 9px;
  color: #91a17d;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.teacher-directory-card > h2 {
  font-size: 22px;
  letter-spacing: -1px;
  margin: 9px 0;
  overflow-wrap: anywhere;
}
.teacher-directory-card > p {
  font-size: 11px;
  color: #7f9169;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.teacher-directory-card > strong {
  font-size: 10px;
  color: #6d894c;
  margin-top: 30px;
}
.teacher-level {
  align-self: start;
  background: #edf3e1;
  border-radius: 5px;
  color: #86a065;
  font-size: 9px;
  padding: 5px 8px;
  margin-top: 15px;
}
.teacher-directory-empty {
  padding: 55px 30px;
  background: #f0f4e7;
  border: 1px dashed #d0ddbb;
  border-radius: 18px;
  text-align: center;
}
.teacher-directory-empty > span {
  color: #8da86d;
  font-size: 45px;
}
.teacher-directory-empty h2 {
  font-size: 26px;
  letter-spacing: -1px;
  margin: 15px 0;
}
.teacher-directory-empty p {
  font-size: 12px;
  color: #8b9b78;
  margin: 0 auto;
  max-width: 440px;
}
.teacher-public-intro {
  border: 1px solid #dce5cf;
  background: white;
  padding: 30px 35px;
  border-radius: 18px;
  margin: 15px 0 20px;
}
.teacher-public-intro .teacher-avatar {
  background: #203d2b;
  color: #ecff72;
}
.teacher-public-intro .teacher-introduction {
  max-width: 700px;
  margin: 24px 0 18px;
}
.teacher-school-note {
  font-size: 9px;
  color: #9aa98a;
  margin-top: 20px;
}
.teacher-owner-notice {
  font-size: 11px;
  color: #7d9167;
  padding: 14px 18px;
  background: #edf3df;
  border-radius: 9px;
  margin-bottom: 25px;
}
.teacher-owner-notice a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 8px;
}
.teacher-preview-panel .context-body {
  padding: 30px;
}
.teacher-preview-panel .teacher-identity {
  margin: 25px 0;
}
.teacher-preview-message {
  background: #eaf2da;
  border: 1px solid #d5e4bd;
  color: #789153;
  padding: 13px 18px;
  border-radius: 9px;
  font-size: 11px;
}
.teacher-preview-panel .teacher-wishes {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.teacher-wishes form label {
  font-size: 10px;
  color: #8fa279;
}
.teacher-wishes form input[type="number"] {
  border-color: #d4e1bf;
  background: #fbfdf8;
  color: #638442;
}
.teacher-wishes .wish-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 15px;
}
.teacher-wishes .wish-actions .btn:disabled {
  opacity: 0.8;
  background: #eaf1dc;
  color: #7b965b;
  cursor: default;
}
@media (max-width: 1100px) {
  .teacher-management-grid {
    grid-template-columns: 1fr;
  }
  .teacher-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .teacher-owner-hero {
    padding: 28px;
  }
  .teacher-editor-grid {
    grid-template-columns: 1fr 1fr;
  }
  .teacher-preview-panel .teacher-wishes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .teacher-owner-hero {
    padding: 25px;
    gap: 15px;
  }
  .teacher-owner-hero > span {
    display: none;
  }
  .teacher-owner-hero h1 {
    font-size: 29px;
  }
  .teacher-owner-hero p {
    font-size: 11px;
  }
  .teacher-management-grid {
    gap: 14px;
  }
  .teacher-management-card {
    padding: 23px;
  }
  .app-workspace .teacher-identity h1 {
    font-size: 25px;
  }
  .app-workspace .preview-identity h1 {
    font-size: 22px;
  }
  .teacher-identity {
    gap: 14px;
  }
  .teacher-avatar {
    width: 52px;
    height: 52px;
    font-size: 25px;
    border-radius: 16px;
  }
  .teacher-onboarding {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 25px;
  }
  .teacher-onboarding h2 {
    font-size: 23px;
  }
  .teacher-onboarding > div > p {
    font-size: 12px;
  }
  .teacher-edit-panel .context-body {
    padding: 20px;
  }
  .teacher-editor-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .teacher-editor-preview {
    position: static;
    padding: 20px;
  }
  .teacher-school-fields {
    grid-template-columns: 1fr;
  }
  .teacher-mode-options {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .teacher-mode-options label {
    padding: 15px 45px 15px 45px;
  }
  .mode-icon {
    position: absolute;
    left: 15px;
    top: 15px;
  }
  .teacher-mode-options strong {
    font-size: 12px;
    margin-bottom: 3px;
  }
  .teacher-mode-options small {
    font-size: 11px;
  }
  .teacher-mode-options input[type="radio"] {
    right: 15px;
  }
  .teacher-edit-panel textarea {
    font-size: 16px;
  }
  .teacher-directory-hero {
    padding: 26px;
  }
  .teacher-directory-hero h1 {
    font-size: 35px;
    letter-spacing: -1.7px;
  }
  .teacher-directory-hero p {
    font-size: 11px;
  }
  .teacher-directory-search input {
    padding: 14px;
    font-size: 16px;
  }
  .teacher-directory-search button {
    width: 45px;
  }
  .teacher-directory-grid {
    grid-template-columns: 1fr;
  }
  .teacher-directory-card {
    padding: 24px;
  }
  .teacher-public-intro {
    padding: 25px;
  }
  .teacher-school-note {
    font-size: 8px;
  }
  .teacher-directory-empty {
    padding: 35px 22px;
  }
  .teacher-directory-empty h2 {
    font-size: 23px;
  }
  .teacher-preview-panel .context-body {
    padding: 20px;
  }
  .teacher-preview-panel .teacher-wishes {
    grid-template-columns: 1fr;
  }
  .teacher-wishes .wish-content > small {
    font-size: 9px;
  }
  .teacher-wishes .wish-actions .row {
    display: flex;
    flex-direction: column;
    align-items: start;
  }
  .teacher-wishes .wish-actions .btn {
    width: 100%;
    font-size: 9px;
    padding: 10px 8px;
  }
  .teacher-wishes .wish-actions > .quiet {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .teacher-directory-card {
    transition: none;
  }
}

.teacher-edit-panel .dialog-actions {
  position: sticky;
  bottom: -26px;
  margin: 22px -26px -26px;
  padding: 16px 26px;
  background: #f9fbf5;
  border-top: 1px solid #dce5cf;
  z-index: 3;
}
@media (max-width: 600px) {
  .teacher-edit-panel .dialog-actions {
    bottom: -20px;
    margin: 20px -20px -20px;
    padding: 15px 20px;
  }
}
