.teacher-main { max-width: 1100px; margin: 0 auto; padding: 40px 48px 100px; }
.teacher-title { font-size: 52px; letter-spacing: -2px; margin: 12px 0 30px; }
.teacher-loading, .teacher-empty { color: var(--muted); }
.teacher-empty a { color: var(--ink); font-weight: 700; text-decoration: underline; }
.teacher-card { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 28px; margin-top: 24px; }
.teacher-card h2 { font-family: "Space Grotesk"; margin: 0 0 8px; }
.teacher-card a { text-decoration: underline; }
.teacher-lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 640px; margin: 0 0 20px; }
.teacher-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.teacher-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.teacher-row h2 { font-family: "Space Grotesk"; margin: 0; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; min-height: 50px; font: inherit; background: var(--white); min-width: 220px; }
.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 18px; }
.class-tile { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 4px; cursor: pointer; font: inherit; color: var(--ink); }
.class-tile strong { font-family: "Space Grotesk"; font-size: 18px; }
.class-tile span { color: var(--muted); font-size: 13px; }
.class-tile code { font-family: "Space Grotesk"; font-size: 15px; letter-spacing: 3px; margin-top: 6px; }
.class-tile.active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fbfdf2; }
.class-detail h3 { font-family: "Space Grotesk"; font-size: 20px; margin: 32px 0 12px; }
.join-box { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; background: var(--lime); border-radius: 18px; padding: 22px; margin-top: 18px; }
.join-code { font-family: "Space Grotesk"; font-size: 44px; font-weight: 700; letter-spacing: 8px; }
.join-help p { margin: 0 0 12px; line-height: 1.5; }
.share-form { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: end; }
.share-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.share-form select, .share-form input { border: 1px solid var(--line); border-radius: 11px; padding: 12px; font: inherit; font-weight: 400; background: var(--paper); min-width: 0; width: 100%; }
.insight-card { border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin-bottom: 14px; background: var(--paper); }
.insight-card h4 { font-family: "Space Grotesk"; font-size: 18px; margin: 0 0 3px; }
.insight-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.insight-stats div { background: var(--white); border-radius: 14px; padding: 14px; }
.insight-stats strong { display: block; font-family: "Space Grotesk"; font-size: 24px; }
.insight-stats span { color: var(--muted); font-size: 12px; }
.concept-list-insight { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.concept-list-insight li { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr 48px; gap: 12px; align-items: center; font-size: 14px; }
.concept-bar { height: 10px; background: var(--paper-deep); border-radius: 9px; overflow: hidden; }
.concept-bar i { display: block; height: 100%; border-radius: 9px; background: var(--ink); }
.concept-low .concept-bar i { background: #d9614a; }
.concept-mid .concept-bar i { background: #e3b23c; }
.concept-high .concept-bar i { background: #8fbf2a; }
.concept-list-insight strong { text-align: right; }
.name-list { font-size: 13px; margin: 12px 0 0; line-height: 1.5; }
.name-list.warn strong { color: #a13d27; }
.insight-tip { background: var(--white); border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.5; margin: 14px 0 0; }
.table-wrap { overflow-x: auto; position: relative; }
.student-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.student-table th, .student-table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.student-table th { font-size: 11px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.reset-box { background: #e4f2c6; border: 1px solid #c2d993; border-radius: 14px; padding: 16px 18px; margin-top: 18px; }
.reset-box p { margin: 8px 0 0; }
.reset-box code { font-family: "Space Grotesk"; font-size: 17px; background: var(--white); padding: 2px 8px; border-radius: 6px; }

@media (max-width: 800px) {
  .teacher-main { padding: 28px 20px 80px; }
  .teacher-title { font-size: 38px; }
  .join-box { grid-template-columns: 1fr; gap: 12px; }
  .join-code { font-size: 36px; }
  .share-form { grid-template-columns: 1fr; }
  .insight-stats { grid-template-columns: 1fr 1fr 1fr; }
  .concept-list-insight li { grid-template-columns: 1fr 64px; }
  .concept-list-insight .concept-bar { grid-column: 1 / -1; grid-row: 2; }
  .teacher-card { padding: 20px; }
}
.verify-banner { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; background: #fff3cd; border: 1px solid #f0d78c; border-radius: 18px; padding: 18px 20px; margin-bottom: 8px; }
.verify-banner p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; }
.inline-form input:disabled, .inline-form button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.school-line { margin: -14px 0 18px; color: var(--muted); font-size: 14px; }
.school-line a { color: var(--ink); font-weight: 700; text-decoration: underline; }
.admin-table td, .admin-table th { white-space: nowrap; }
.admin-table select { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: var(--paper); font: inherit; font-size: 13px; }
.inline-check { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.status-pill { border-radius: 99px; padding: 3px 9px; font-size: 12px; font-weight: 700; background: var(--paper-deep); }
.status-pill.approved { background: #e4f2c6; }
.status-pill.pending { background: #fff3cd; }
.status-pill.blocked { background: #fee4dc; }
.badge { background: var(--ink); color: var(--lime); border-radius: 99px; padding: 2px 7px; font-size: 10px; font-weight: 700; margin-left: 4px; }
.invite-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.invite-list li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--paper); border-radius: 12px; padding: 10px 14px; font-size: 13px; }
.invite-box .share-link { display: flex; gap: 8px; margin: 10px 0; }
.invite-box .share-link input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--white); color: var(--ink); font: 14px "DM Sans", sans-serif; }
.invite-box .share-link .button-dark { background: var(--ink); color: white; }
#admin-root .teacher-card h2 { font-size: 28px; letter-spacing: -.5px; }
@media (max-width: 560px) { .invite-box .share-link { flex-direction: column; } }
.license-card { display: grid; grid-template-columns: 1fr; gap: 14px; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-top: 18px; background: var(--paper); }
.license-card.active { border-color: #b7da55; background: #f6fbe4; }
.license-card > div { display: grid; gap: 4px; font-size: 14px; }
.license-card strong { font-family: "Space Grotesk"; font-size: 18px; }
.license-card span { color: var(--muted); }
.license-card .license-warn { color: #a13d27; font-weight: 600; }
.license-form, .billing-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; margin: 6px 0 14px; }
.license-form label, .billing-form label { display: grid; gap: 5px; font-size: 12px; font-weight: 600; }
.license-form input, .license-form select, .billing-form input { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; background: var(--white); font: inherit; font-weight: 400; min-width: 0; }
.tile-license { justify-self: start; margin-top: 6px; border-radius: 99px; padding: 2px 9px; font-size: 11px; font-weight: 700; background: var(--paper-deep); color: var(--muted); }
.tile-license.on { background: var(--lime); color: var(--ink); }
.request-new { border-left: 4px solid var(--lime); }
/* Leerdoel */
.goal-card { border: 2px solid var(--ink); border-radius: 18px; padding: 20px; margin: 22px 0; background: #f6fbe4; }
.goal-card h3 { margin: 0 0 8px; }
.goal-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 12px; }
.goal-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.goal-form select, .goal-form input { font: inherit; font-weight: 500; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 10px; background: var(--white); min-width: 0; }
.goal-form .goal-label { flex: 1 1 220px; }
.goal-status { font-size: 13px; font-weight: 700; border-radius: 99px; padding: 5px 11px; border: 2px solid var(--ink); background: var(--white); white-space: nowrap; }
.goal-status.done { background: var(--lime); }
.goal-status.good { background: #dff3c4; }
.goal-status.behind { background: #ffe1d8; }
.goal-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.goal-summary div { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 2px; }
.goal-summary strong { font-family: "Space Grotesk"; font-size: 28px; }
.goal-summary span { font-size: 13px; color: var(--muted); }
.goal-bar { position: relative; height: 16px; border-radius: 99px; background: var(--white); border: 1.5px solid var(--ink); margin: 8px 0 10px; }
.goal-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: #2a78d6; }
.goal-bar b { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--muted); }
.goal-bar em { position: absolute; top: -7px; bottom: -7px; width: 3px; background: var(--ink); border-radius: 2px; }
.mini-bar { display: block; height: 8px; border-radius: 99px; background: #e6e5dc; min-width: 80px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: #2a78d6; border-radius: 99px; }
.goal-table td.num, .goal-table th.num { text-align: right; white-space: nowrap; }
.goal-edit { margin-top: 12px; }
.goal-edit summary { cursor: pointer; font-weight: 700; font-size: 14px; }
@media (max-width: 640px) { .goal-summary { grid-template-columns: 1fr; } }
