.staff-subject-workspace { --staff-line:#e0e6df; --staff-muted:#697b6e; }
.staff-subject-workspace button:focus-visible,.staff-subject-workspace summary:focus-visible { outline:3px solid #638950; outline-offset:3px; }
.staff-subject-workspace [hidden] { display:none!important; }
.staff-subject-hero { display:flex; align-items:center; justify-content:space-between; gap:35px; padding:35px 38px; background:#204a3c; border-radius:20px; color:#fff; }
.staff-subject-hero .eyebrow { color:#d1e0b0; font-size:10px; letter-spacing:1.7px; }
.staff-subject-hero h1 { color:#fff; font-size:clamp(26px,2.55vw,39px); letter-spacing:-1.1px; line-height:1.25; margin:13px 0; }
.staff-subject-hero p { color:#cfddd3; font-size:12px; line-height:1.9; max-width:490px; }
.staff-hero-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:23px; }
.staff-hero-actions>span { font-size:10px; color:#ccdabb; }
.staff-subject-hero .button-primary { background:#d7e7b5; color:#274632; border-color:#d7e7b5; box-shadow:none; }
.staff-subject-hero .button-primary:hover { background:#e5efce; }
.staff-hero-stats { display:grid; grid-template-columns:repeat(3,minmax(76px,1fr)); gap:23px; flex-shrink:0; padding:25px 0; }
.staff-hero-stats>div { border-left:1px solid #638273; padding-left:23px; }
.staff-hero-stats strong { display:block; color:#e0edc7; font-size:32px; line-height:1.1; font-weight:600; }
.staff-hero-stats span { display:block; color:#d4dfd6; font-size:10px; margin-top:10px; max-width:70px; line-height:1.6; }
.staff-section-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:30px 0 17px; }
.staff-section-heading h2 { font-size:21px; letter-spacing:-.5px; }
.staff-section-heading h3 { font-size:18px; letter-spacing:-.4px; }
.staff-section-heading p { color:var(--staff-muted); font-size:12px; line-height:1.7; margin-top:6px; }
.staff-subject-catalogue { gap:14px; margin:0 0 24px; }
.staff-subject-catalogue .subject-summary { display:block; min-width:0; border:1px solid var(--subject-edge); border-radius:13px; background:var(--subject-soft); padding:0; overflow:hidden; }
.staff-subject-catalogue .subject-summary.is-active { outline:2px solid var(--subject-ink); outline-offset:2px; }
.staff-subject-catalogue .subject-summary>button[data-subject] { display:grid; grid-template-columns:34px 1fr; grid-template-rows:auto auto; column-gap:11px; row-gap:7px; align-items:center; width:100%; padding:20px 17px; border:0; background:none; text-align:left; cursor:pointer; color:#2b4034; }
.staff-subject-catalogue .subject-summary>button[data-subject]:hover { background:var(--subject-tint); }
.staff-subject-symbol { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; color:var(--subject-ink); background:var(--subject-tint); grid-row:span 2; }
.staff-subject-symbol .icon { width:20px; height:20px; }
.staff-subject-catalogue strong { font-size:12px; line-height:1.5; }
.staff-catalogue-count { font-size:10px; color:var(--staff-muted); }
.staff-subject-catalogue small { grid-column:2; font-size:9px; color:var(--staff-muted); }
.staff-subject-catalogue .subject-summary>.button { display:block; border:0; border-top:1px solid var(--subject-edge); border-radius:0; background:transparent; padding:9px 17px; width:100%; text-align:left; font-size:10px; color:var(--subject-ink); }
.staff-class-toolbar { display:flex; align-items:center; gap:15px; margin:0 0 20px; }
.staff-search { display:flex; align-items:center; gap:10px; border:1px solid var(--staff-line); background:#fff; border-radius:9px; padding:0 13px; min-width:0; }
.staff-search .icon { flex-shrink:0; width:17px; height:17px; color:#829084; }
.staff-search input { border:0; background:transparent; padding:12px 0; min-width:0; width:100%; font:inherit; font-size:12px; color:#2c4435; outline:none; }
.staff-search:focus-within { outline:2px solid #6e925d; outline-offset:2px; }
.staff-class-toolbar>.staff-search { flex:1; max-width:400px; }
.staff-grade-filter { display:flex; align-items:center; gap:10px; font-size:11px; color:var(--staff-muted); }
.staff-grade-filter select { background:#fff; border:1px solid var(--staff-line); border-radius:9px; padding:11px 14px; color:#2c4435; font:inherit; }
.staff-result-count { margin-left:auto; color:var(--staff-muted); font-size:10px; white-space:nowrap; }
.staff-subject-cards { grid-template-columns:repeat(auto-fill,minmax(270px,1fr)); gap:20px; }
.staff-subject-card.school-card { padding:0; overflow:hidden; border-radius:16px; border-color:var(--staff-line); align-items:stretch; box-shadow:0 4px 15px #29413506; }
.staff-card-visual { position:relative; height:128px; background:var(--subject-tint); color:var(--subject-ink); overflow:hidden; }
.staff-card-visual .subject-art { position:absolute; right:-21px; top:-13px; width:230px; height:148px; opacity:.8; }
.staff-grade-chip { display:inline-block; position:relative; margin:19px 20px 0; padding:5px 9px; background:#ffffffb3; border-radius:5px; font-size:10px; z-index:1; }
.staff-class-name { position:absolute; bottom:17px; left:20px; right:20px; font-size:11px; font-weight:600; line-height:1.5; width:calc(100% - 40px); overflow-wrap:anywhere; text-shadow:0 1px 5px var(--subject-tint); }
.staff-subject-card .card-body { padding:23px 21px 18px; margin:0; }
.staff-subject-card h2 { font-size:21px; letter-spacing:-.55px; margin:0 0 19px; line-height:1.3; }
.staff-teacher-line { display:flex; align-items:center; gap:10px; min-height:38px; }
.staff-avatar { display:grid; place-items:center; width:33px; height:33px; border-radius:50%; flex:0 0 33px; background:#f0f2ec; color:#65785c; font-size:11px; }
.staff-teacher-line>span:last-child { min-width:0; }
.staff-teacher-line small { display:block; color:#899181; font-size:8px; letter-spacing:1px; margin-bottom:4px; }
.staff-teacher-line strong { display:block; font-size:11px; font-weight:500; color:#52654f; line-height:1.7; overflow-wrap:anywhere; }
.staff-card-facts { display:flex; flex-wrap:wrap; gap:9px 14px; margin-top:18px; font-size:10px; color:#75816e; }
.staff-card-facts>span { display:flex; align-items:center; gap:6px; }
.staff-card-facts .icon { width:14px; height:14px; }
.staff-subject-card .card-bottom { display:flex; flex-wrap:wrap; gap:9px; width:auto; margin:0 21px; margin-top:auto; padding:17px 0 21px; border-top:1px solid var(--staff-line); }
.staff-subject-card .card-bottom>.button { font-size:10px; padding:10px 12px; min-height:39px; }
.staff-subject-card .card-bottom>.button-primary { flex:1 1 100%; background:var(--subject-soft); color:var(--subject-ink); border-color:var(--subject-edge); box-shadow:none; }
.staff-subject-card .card-bottom>.button-primary:hover { background:var(--subject-tint); }
.staff-maths-tools { width:100%; }
.staff-maths-tools summary { display:flex; justify-content:space-between; align-items:center; padding:8px 0; cursor:pointer; font-size:10px; color:var(--subject-ink); }
.staff-maths-tools summary .icon { width:14px; height:14px; }
.staff-maths-tools>div { display:flex; flex-wrap:wrap; gap:8px; padding-top:8px; }
.staff-maths-tools .button { font-size:10px; }
.staff-empty { margin-top:20px; padding:36px; }
.staff-empty>.icon { width:29px; height:29px; color:#76945b; margin-bottom:15px; }
.staff-empty p { margin:10px 0 20px; color:var(--staff-muted); }
.staff-success { display:flex; align-items:center; gap:10px; color:#375935; background:#edf4e8; border:1px solid #d6e4cb; padding:12px 16px; border-radius:10px; margin:20px 0; font-size:12px; line-height:1.7; }
.staff-success>.icon { flex-shrink:0; }
.staff-success>.button { margin-left:auto; font-size:10px; background:transparent; }
.staff-workspace-nav { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:23px; }
.staff-workspace-nav>span { color:var(--staff-muted); font-size:11px; }
.staff-workspace-nav>.form-field { width:min(400px,60%); margin:0; }
.staff-workspace-nav .form-field>span { font-size:10px; }
.staff-workspace-nav select { font-size:11px; }
.staff-enrolment.subject-editor { margin:0; }
.staff-editor-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:28px; gap:24px; }
.staff-editor-heading h1 { font-size:clamp(26px,2.5vw,34px); letter-spacing:-1px; line-height:1.25; margin:10px 0; }
.staff-editor-heading p { font-size:12px; color:var(--staff-muted); }
.staff-editor-heading>.subject-art { color:var(--subject-ink); width:170px; height:100px; flex-shrink:0; background:var(--subject-tint); border-radius:16px; }
.staff-editor-heading .eyebrow { font-size:10px; color:#788c6b; }
.staff-enrolment-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:24px; align-items:start; }
.staff-enrolment-fields { background:#fff; border:1px solid var(--staff-line); border-radius:16px; padding:28px; min-width:0; }
.staff-form-section+.staff-form-section { border-top:1px solid #e8ece4; margin-top:27px; padding-top:27px; }
.staff-form-section h2 { font-size:16px; margin:0 0 6px; letter-spacing:-.25px; }
.staff-form-section .compose-step { margin-bottom:20px; }
.staff-form-section .compose-step>b { background:var(--subject-soft); color:var(--subject-ink); border:1px solid var(--subject-edge); }
.staff-form-section .form-grid { gap:18px; margin:0; }
.staff-form-section .form-field { margin:0; }
.staff-form-section .form-field>span { color:#53674e; font-size:11px; margin-bottom:9px; }
.staff-form-section select { padding:12px; min-height:45px; background:#fff; border-color:#dbe3d6; }
.staff-form-section select:disabled { background:#f4f6f1; color:#6f7c64; opacity:1; }
.staff-roster.subject-roster { padding:0; border:0; max-height:none; overflow:visible; margin:0; }
.staff-roster legend { padding:0; font-size:11px; margin-bottom:12px; color:#65775c; }
.staff-roster-toolbar { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.staff-roster-toolbar .staff-search { flex:1; }
.staff-roster-toolbar>span { color:#5c724f; font-size:10px; white-space:nowrap; }
.staff-roster .staff-select-all { background:#f2f5ed; padding:13px; margin-bottom:7px; border:1px solid #e1e8d9; }
.staff-select-all>span { font-size:11px; font-weight:600; }
.staff-select-all>small { margin-left:auto; font-size:10px; }
.staff-roster-list { display:grid; gap:6px; max-height:370px; overflow-y:auto; padding:3px; margin:-3px; scrollbar-width:thin; }
.staff-roster-list .assignment-option { padding:12px; background:#fff; border:1px solid #e8ede4; border-radius:9px; }
.staff-roster-list .assignment-option:hover { background:#fafbf8; }
.staff-roster-list .assignment-option:has(:checked) { border-color:#bfd1ab; background:#f5f9ef; }
.staff-roster input[type=checkbox] { width:17px; height:17px; }
.staff-roster-list .assignment-option strong { font-size:12px; }
.staff-roster-list .assignment-option small { font-size:10px; }
.staff-roster-empty { color:var(--staff-muted); font-size:12px; padding:20px 0; }
.staff-assignment-preview { border:1px solid var(--subject-edge); border-radius:16px; overflow:hidden; position:sticky; top:24px; background:#fff; }
.staff-preview-art { background:var(--subject-tint); color:var(--subject-ink); padding:12px 0; }
.staff-preview-art .subject-art { height:135px; }
.staff-preview-body { padding:25px 23px; }
.staff-preview-body .eyebrow { font-size:9px; color:#809171; letter-spacing:1.2px; }
.staff-preview-body h2 { font-size:23px; letter-spacing:-.65px; margin:12px 0 6px; }
.staff-preview-body>p { font-size:11px; color:var(--staff-muted); }
.staff-preview-body dl { margin:23px 0; padding:17px 0; border-top:1px solid var(--staff-line); border-bottom:1px solid var(--staff-line); display:grid; gap:14px; }
.staff-preview-body dl>div { display:flex; justify-content:space-between; gap:12px; font-size:11px; }
.staff-preview-body dt { color:var(--staff-muted); }
.staff-preview-body dd { margin:0; text-align:right; max-width:170px; overflow-wrap:anywhere; }
.staff-preview-body h3 { font-size:12px; margin-bottom:12px; }
.staff-preview-body ul { list-style:none; display:grid; gap:12px; margin:0; padding:0; }
.staff-preview-body li { display:flex; align-items:center; gap:8px; font-size:10px; color:#6a7a60; }
.staff-preview-body li .icon { width:14px; height:14px; color:#718f56; flex-shrink:0; }
.staff-preview-note { margin-top:22px; padding:13px; border-radius:8px; background:var(--subject-soft); font-size:10px!important; }
.staff-enrolment-footer { position:sticky; bottom:12px; display:flex; align-items:center; justify-content:space-between; gap:18px; background:#fff; padding:18px 22px; margin:22px 0 0; border:1px solid var(--staff-line); border-radius:12px; box-shadow:0 -4px 24px #203f3210; z-index:2; }
.staff-enrolment-footer>p { display:grid; grid-template-columns:22px 1fr; align-items:center; gap:1px 9px; }
.staff-enrolment-footer>p .icon { grid-row:span 2; color:#6d8857; width:20px; }
.staff-enrolment-footer strong { font-size:11px; font-weight:500; }
.staff-enrolment-footer p>span { font-size:10px; color:var(--staff-muted); }
.staff-enrolment-footer .form-actions { margin:0; padding:0; border:0; gap:10px; }
.staff-enrolment-footer .button { display:flex; align-items:center; gap:10px; }
.staff-enrolment-footer .button .icon { width:15px; height:15px; }
.staff-teaching-detail.subject-detail { margin:0; }
.staff-teaching-hero { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:32px 35px; background:var(--subject-tint); border:1px solid var(--subject-edge); border-radius:20px; }
.staff-teaching-hero .eyebrow { font-size:10px; color:var(--subject-ink); }
.staff-teaching-hero h1 { font-size:clamp(29px,3vw,41px); letter-spacing:-1px; line-height:1.2; margin:12px 0; }
.staff-teaching-hero p { font-size:12px; color:#5e7358; line-height:1.7; }
.staff-teaching-hero p>span { margin:0 9px; }
.staff-teaching-hero>.subject-art { color:var(--subject-ink); width:235px; height:160px; flex-shrink:0; }
.staff-teaching-hero .button:not(.button-primary) { background:#ffffff9c; border-color:var(--subject-edge); }
.staff-online-panel { padding:25px 28px; background:#fff; border:1px solid var(--staff-line); border-radius:15px; margin-bottom:25px; }
.staff-online-panel>.staff-section-heading { margin:0 0 18px; }
.staff-online-panel .report-note { max-width:650px; font-size:11px; }
.staff-lesson-count { font-size:10px; color:var(--subject-ink); background:var(--subject-soft); padding:8px 11px; border-radius:20px; white-space:nowrap; }
.staff-online-panel .subject-lesson { padding:18px; border-radius:10px; background:#fcfdfb; }
.staff-online-panel .school-status { margin-bottom:0; font-size:12px; background:#f5f7f1; color:#6e7e63; }
.staff-online-panel #subject-lesson-form { margin:0 0 22px; background:var(--subject-soft); border:1px solid var(--subject-edge); border-radius:12px; padding:22px; }
.staff-online-panel #subject-lesson-form h3 { font-size:17px; margin-bottom:20px; }
.staff-teaching-detail>.subject-study { padding:25px 28px; background:#fff; border:1px solid var(--staff-line); border-radius:15px; }
.staff-teaching-detail>.subject-practice { background:#fff; padding:28px; border:1px solid var(--staff-line); border-radius:15px; }
@media(min-width:1700px) { .staff-subject-cards { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:1250px) {
  .staff-subject-hero { padding:30px; gap:25px; }
  .staff-hero-stats { grid-template-columns:repeat(3,1fr); gap:13px; }
  .staff-hero-stats>div { padding-left:13px; }
  .staff-subject-catalogue { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .staff-enrolment-layout { grid-template-columns:minmax(0,1fr) 270px; gap:18px; }
  .staff-enrolment-fields { padding:23px; }
  .staff-teaching-hero>.subject-art { width:190px; }
}
@media(max-width:1000px) {
  .staff-subject-hero { align-items:flex-start; flex-direction:column; gap:23px; }
  .staff-hero-stats { width:100%; padding:20px 0 0; border-top:1px solid #61806c; gap:20px; }
  .staff-hero-stats>div:first-child { padding-left:0; border:0; }
  .staff-hero-stats span { max-width:none; }
  .staff-enrolment-layout { grid-template-columns:1fr; }
  .staff-assignment-preview { position:static; display:flex; }
  .staff-preview-art { display:flex; align-items:center; width:25%; }
  .staff-preview-art .subject-art { width:100%; }
  .staff-preview-body { flex:1; }
  .staff-preview-body ul { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .staff-preview-note { margin-top:17px; }
  .staff-teaching-hero>.subject-art { width:150px; }
}
@media(max-width:760px) {
  .staff-subject-cards { grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
  .staff-subject-hero { padding:26px; }
  .staff-subject-hero h1 { font-size:30px; }
  .staff-class-toolbar { flex-wrap:wrap; gap:12px; }
  .staff-class-toolbar>.staff-search { flex-basis:100%; max-width:none; }
  .staff-workspace-nav { align-items:flex-start; flex-wrap:wrap; gap:15px; }
  .staff-workspace-nav>.form-field { width:100%; }
  .staff-editor-heading>.subject-art { width:125px; }
  .staff-enrolment-footer { padding:15px; }
  .staff-enrolment-footer .button { font-size:10px; padding:11px; }
  .staff-enrolment-footer p>span { display:none; }
  .staff-teaching-hero { padding:27px; }
  .staff-online-panel { padding:22px; }
  .staff-online-panel>.staff-section-heading { align-items:flex-start; flex-wrap:wrap; gap:12px; }
}
@media(max-width:480px) {
  .staff-subject-hero { border-radius:15px; padding:25px 22px; }
  .staff-subject-hero h1 { font-size:29px; }
  .staff-hero-stats strong { font-size:28px; }
  .staff-hero-stats span { font-size:9px; }
  .staff-section-heading h2 { font-size:19px; }
  .staff-section-heading p { font-size:11px; }
  .staff-section-heading>.button { font-size:10px; padding:9px; white-space:nowrap; }
  .staff-subject-catalogue { gap:10px; }
  .staff-subject-catalogue .subject-summary>button[data-subject] { padding:15px 12px; grid-template-columns:1fr; gap:7px; }
  .staff-subject-symbol { grid-row:auto; margin-bottom:4px; }
  .staff-subject-catalogue strong { font-size:11px; min-height:33px; }
  .staff-subject-catalogue small { grid-column:1; }
  .staff-subject-catalogue .subject-summary>.button { font-size:9px; padding:9px 12px; }
  .staff-subject-cards { grid-template-columns:1fr; gap:20px; }
  .staff-subject-card .card-bottom>.button { min-height:44px; font-size:11px; }
  .staff-editor-heading>.subject-art { display:none; }
  .staff-editor-heading h1 { font-size:28px; }
  .staff-enrolment-fields { padding:20px 17px; }
  .staff-form-section .form-grid { grid-template-columns:1fr; }
  .staff-roster-toolbar { flex-wrap:wrap; }
  .staff-roster-toolbar .staff-search { flex-basis:100%; }
  .staff-roster-list .staff-avatar { display:none; }
  .staff-assignment-preview { display:block; }
  .staff-preview-art { width:100%; padding:10px 0; }
  .staff-preview-art .subject-art { height:105px; }
  .staff-preview-body { padding:22px; }
  .staff-preview-body ul { grid-template-columns:1fr; }
  .staff-enrolment-footer { flex-direction:column; align-items:stretch; gap:11px; bottom:6px; }
  .staff-enrolment-footer>p { display:flex; }
  .staff-enrolment-footer .form-actions { display:flex; }
  .staff-enrolment-footer .button { font-size:11px; min-height:44px; }
  .staff-enrolment-footer .button-primary { flex:1; justify-content:center; }
  .staff-enrolment-footer .button .icon { display:none; }
  .staff-teaching-hero { position:relative; overflow:hidden; padding:25px 22px; }
  .staff-teaching-hero>div { position:relative; z-index:1; }
  .staff-teaching-hero>.subject-art { position:absolute; opacity:.14; right:-25px; top:0; width:180px; }
  .staff-teaching-hero h1 { font-size:31px; }
  .staff-hero-actions .button { font-size:11px; min-height:44px; }
  .staff-online-panel,.staff-teaching-detail>.subject-study,.staff-teaching-detail>.subject-practice { padding:21px 18px; }
  .staff-online-panel #subject-lesson-form { padding:17px 14px; }
  .staff-success { flex-wrap:wrap; }
  .staff-workspace-nav>span { font-size:10px; }
}
