:root{--green:#174d3b;--dark:#10392e;--line:#dbe6e0;--soft:#f4f8f6;--text:#123b30;--muted:#667a71;--white:#fff}
*{box-sizing:border-box}body{margin:0;padding:0!important;background:#f5f9f7;color:var(--text);font:14px/normal Arial,"Noto Sans KR",sans-serif}a{color:var(--green)}main{line-height:1.5;max-width:1120px;margin:24px auto;padding:0 20px}h1{font-size:26px;margin-bottom:8px}p{color:var(--muted)}.controls,.pages{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.pages{justify-content:flex-end;margin-top:16px}button,select{min-height:48px;border:1px solid #b8cbbb;border-radius:10px;padding:10px 16px;font:inherit;background:#fff;color:#24342d}button{cursor:pointer;background:var(--green);color:#fff}button:disabled{opacity:.5;cursor:default}button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #e3ad38;outline-offset:3px}#studyTable{background:#fff;border:1px solid #dce6dd;border-radius:12px;overflow:hidden}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:14px 12px;border-bottom:1px solid #e6eee7;overflow-wrap:anywhere}th{background:#eaf1e9;font-size:14px}tr:last-child td{border-bottom:0}.review{color:#925615}#studyStatus[data-error=true]{color:#a43124}@media(max-width:640px){main{padding:0 14px}h1{font-size:22px}thead{display:none}table,tbody,tr,td{display:block}tr{padding:10px 12px;border-bottom:1px solid #dce6dd}td{display:grid;grid-template-columns:100px 1fr;border:0;padding:5px 0}td:before{content:attr(data-label);font-weight:600;color:#526458}tr:last-child{border-bottom:0}.controls select{max-width:230px}}

/* Copied verbatim from the provided operating TRY CHECK header. */
.staff-topbar{height:78px;background:var(--dark);color:#fff;width:100%;}
  .staff-topbar-inner{width:min(100%,1120px);height:100%;margin:0 auto;padding:0 18px;display:flex;align-items:center;justify-content:space-between;gap:22px}
  .staff-brand{display:flex;align-items:center;gap:13px;min-width:0}
  .staff-brandmark{display:grid;place-items:center;width:33px;height:33px;border:1px solid #749183;border-radius:9px;font:700 21px Georgia,serif;color:#dce8d9;flex:none}
  .staff-wordmark{font-size:23px;font-weight:750;letter-spacing:4px;color:#fff;white-space:nowrap}
  .staff-workspace{border-left:1px solid #557166;padding-left:20px;color:#b5c8bd;font-size:10px;letter-spacing:2px;white-space:nowrap}
  .staff-right{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}
  .staff-account{display:flex;align-items:center;gap:10px;min-width:0}
  .staff-avatar{width:33px;height:33px;display:grid;place-items:center;border-radius:50%;background:#35594b;color:#e1eccc;font-size:11px;font-weight:800;flex:none}
  .staff-account-copy{min-width:0}
  .staff-account-copy strong{display:block;color:#fff;font-size:11px;font-weight:700;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .staff-account-copy small{display:block;color:#aec1b6;font-size:10px;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .staff-top-action{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:32px;padding:5px 10px;border:1px solid #dfe5dc;border-radius:7px;background:#fff;color:var(--green);text-decoration:none;font-size:10px;font-weight:800;cursor:pointer}
  .staff-top-action:hover{background:#f1f6ee}
  button.staff-top-action{font-family:inherit}

  
/* =========================================================
   MAXIMA STAFF HEADER STANDARD · MONTHLY MAP EXACT MATCH
   UI ONLY — IDs / JS / API behavior unchanged
   ========================================================= */
.staff-topbar{
  width:100%!important;
  height:auto!important;
  min-height:66px!important;
  background:#174d3b!important;
  color:#fff!important;
  border-bottom:1px solid rgba(255,255,255,.08)!important;
  box-shadow:0 8px 24px rgba(17,57,43,.12)!important;
}
.staff-topbar-inner{
  width:min(1380px,100%)!important;
  max-width:none!important;
  min-height:66px!important;
  height:auto!important;
  margin:0 auto!important;
  padding:0 18px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:14px!important;
}
.staff-brand{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-width:0!important;
}
.staff-brandmark{
  width:34px!important;
  height:34px!important;
  flex:0 0 34px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:0!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#174d3b!important;
  font-family:Arial,"Noto Sans KR",sans-serif!important;
  font-size:18px!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:0!important;
  box-shadow:0 4px 12px rgba(0,0,0,.10)!important;
}
.staff-wordmark{
  font-size:18px!important;
  line-height:normal!important;
  font-weight:900!important;
  letter-spacing:.08em!important;
  color:#fff!important;
  white-space:nowrap!important;
}
.staff-workspace{
  min-height:0!important;
  padding:0 0 0 20px!important;
  border:0!important;
  border-left:1px solid #557166!important;
  border-radius:0!important;
  background:transparent!important;
  color:#b5c8bd!important;
  font-size:10px!important;
  line-height:normal!important;
  font-weight:700!important;
  letter-spacing:2px!important;
  white-space:nowrap!important;
}
.staff-right{
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  min-width:0!important;
}
.staff-account{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  min-width:0!important;
  padding-left:12px!important;
  border-left:1px solid rgba(255,255,255,.16)!important;
}
.staff-avatar{
  width:34px!important;
  height:34px!important;
  flex:0 0 34px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:50%!important;
  background:#eaf3ef!important;
  border:0!important;
  color:#174d3b!important;
  font-size:13px!important;
  font-weight:900!important;
}
.staff-account-copy{
  min-width:0!important;
  line-height:1.2!important;
}
.staff-account-copy strong{
  display:block!important;
  max-width:160px!important;
  overflow:hidden!important;
  color:#fff!important;
  font-size:12px!important;
  line-height:1.2!important;
  font-weight:900!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.staff-account-copy small{
  display:block!important;
  max-width:170px!important;
  margin-top:2px!important;
  overflow:hidden!important;
  color:rgba(255,255,255,.68)!important;
  font-size:9px!important;
  font-weight:700!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.staff-top-action{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:36px!important;
  min-height:32px!important;
  padding:5px 10px!important;
  border:1px solid #dfe5dc!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#164c3d!important;
  text-decoration:none!important;
  font-size:10px!important;
  font-weight:700!important;
  box-shadow:none!important;
}
.staff-top-action:hover{background:#f1f6ee!important}

@media(max-width:760px){
  .staff-topbar{
    min-height:60px!important;
  }
  .staff-topbar-inner{
    min-height:60px!important;
    padding:0 10px!important;
    gap:8px!important;
  }
  .staff-brand{gap:7px!important}
  .staff-brandmark{
    width:30px!important;
    height:30px!important;
    flex-basis:30px!important;
    border-radius:9px!important;
    font-size:16px!important;
  }
  .staff-wordmark{font-size:15px!important}
  .staff-workspace{display:none!important}
  .staff-right{gap:7px!important}
  .staff-account{
    gap:7px!important;
    padding-left:8px!important;
  }
  .staff-avatar{
    width:30px!important;
    height:30px!important;
    flex-basis:30px!important;
    font-size:11px!important;
  }
  .staff-account-copy strong{
    max-width:86px!important;
    font-size:10px!important;
  }
  .staff-account-copy small{display:none!important}
  .staff-top-action{
    min-width:36px!important;
    min-height:32px!important;
    padding:5px 10px!important;
    font-size:10px!important;
  }
}




/* Speech results only; the operating staff header stays verbatim above. */
main{max-width:1120px;margin:28px auto;padding:0 20px 28px}
main h1{font-size:26px;font-weight:900;line-height:1.3;letter-spacing:-.02em;margin:0 0 10px;color:var(--green)}
main>p{font-size:13px;line-height:1.7;margin:0 0 14px}
main>p a{font-size:12px;font-weight:700;text-underline-offset:3px}
main .controls{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px;margin:20px 0 12px;gap:12px}
main .controls label{display:flex;align-items:center;gap:12px;font-weight:700;font-size:13px;color:var(--green)}
main .controls select{min-height:44px;min-width:180px;border:1px solid var(--line);font-size:14px;border-radius:10px;color:var(--text);background:#fff;padding:8px 12px}
#studyStatus{font-size:12px;line-height:1.6;margin:12px 2px;color:var(--muted)}
#studyTable{border-color:var(--line);border-radius:14px;box-shadow:none}
#studyTable th{background:var(--soft);font-size:12px;font-weight:800;color:var(--green);padding:13px 16px;white-space:nowrap}
#studyTable td{font-size:13px;line-height:1.6;padding:17px 16px;color:var(--text);vertical-align:top}
#studyTable td:first-child{font-weight:800;color:var(--green)}
#studyTable .review{color:#925615;font-weight:700}
main .pages{margin-top:14px;gap:8px}
main .pages button{min-height:44px;min-width:88px;font-size:13px;font-weight:700;border-radius:10px;border-color:var(--line);box-shadow:none;padding:10px 16px}
main .pages button:disabled{background:#eef5f1;color:#667a71;opacity:1}
@media(max-width:640px){
 main{margin:20px auto;padding:0 14px 24px}
 main h1{font-size:23px;margin-bottom:8px}
 main>p{margin-bottom:12px}
 main .controls{margin:16px 0 10px;padding:12px}
 main .controls label{width:100%;justify-content:space-between}
 main .controls select{flex:1;max-width:none;min-width:0}
 #studyTable{border:0;background:transparent;border-radius:0;overflow:visible}
 #studyTable tbody{display:grid;gap:10px}
 #studyTable tr{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px}
 #studyTable tr:last-child{border-bottom:1px solid var(--line)}
 #studyTable td{grid-template-columns:minmax(92px,.8fr) minmax(0,1.6fr);gap:12px;padding:5px 0;font-size:13px;line-height:1.6}
 #studyTable td::before{font-size:12px;font-weight:400;line-height:1.7;color:var(--muted)}
 #studyTable td:first-child{padding-top:0;padding-bottom:10px;margin-bottom:6px;border-bottom:1px solid var(--line);font-size:15px}
 #studyTable td:first-child::before{align-self:center}
 main .pages button{flex:1}
}

/* Speech-only read-only detail; existing common header untouched. */
.speech-history-open{display:block;min-height:26px;margin-top:5px;padding:3px 0;background:transparent;border:0;box-shadow:none;color:#25634c;text-decoration:underline;text-underline-offset:3px;font-size:12px;font-weight:700;text-align:left}
.speech-history{margin-top:20px;background:#fff;border:1px solid #dce6dd;border-radius:16px;padding:18px;scroll-margin-top:16px;}
.speech-history[hidden]{display:none!important}
.speech-history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.speech-history-heading h2{margin:0;color:#174d3b;font-size:19px}
button.speech-history-close{min-height:34px;padding:5px 12px;background:#edf5f1;color:#174d3b;border:1px solid #d0dfd6}
.speech-history-session{background:#f9fbfa;border:1px solid #dce6dd;border-radius:12px;margin:9px 0;overflow:hidden}
.speech-history-session-title{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;list-style:none;padding:12px 14px;cursor:pointer;background:#f2f7f4}
.speech-history-session-title::-webkit-details-marker{display:none}
.speech-history-session-title strong{color:#174d3b}
.speech-history-meta{color:#536e61;font-size:12px;font-variant-numeric:tabular-nums}
.speech-history-dates{display:flex;flex-wrap:wrap;gap:8px 20px;padding:10px 14px;font-size:12px;color:#486357}
.speech-history-step{padding:12px 14px;border-top:1px solid #e1eae4;font-size:13px}
.speech-history-step strong{color:#174d3b}
.speech-history-step p{margin:5px 0;overflow-wrap:anywhere;line-height:1.5}
.speech-history-done{display:inline-block;font-size:11px;margin-left:10px;padding:2px 7px;border-radius:99px;background:#e2f3e8;color:#176a43}
.speech-history-scores{margin-top:8px}
.speech-history-scores summary{color:#37654f;cursor:pointer;font-size:12px}
.speech-history-scores p{font-variant-numeric:tabular-nums}
@media(max-width:640px){.speech-history{padding:12px}.speech-history-session-title{align-items:flex-start;flex-direction:column;gap:5px}.speech-history-meta{font-size:11px}.speech-history-open{margin-left:0}}

/* Teacher-only class follow-up (authenticated, read-only). */
.speech-history-followup{padding:13px 14px;background:#fffdf8;border-top:1px solid #e5e8e2}
.speech-history-followup-title{display:block;color:#174d3b;font-size:14px;margin-bottom:8px}
.speech-history-followup-label{font-weight:800;color:#805a23;margin:10px 0 7px!important}
.speech-history-word-chips{display:flex;flex-wrap:wrap;gap:6px}
.speech-history-chip{padding:5px 9px;border-radius:9px;border:1px solid #dfca9e;color:#674a21;background:#fff8e9;font-weight:800;font-size:12px}
.speech-history-sentence{padding:8px 10px;margin:5px 0!important;color:#4d412e;overflow-wrap:anywhere;background:#fff;border:1px solid #e9e1d0;border-radius:9px}
.speech-history-caveat{margin-top:10px!important;font-size:12px;color:#657269}
button.speech-history-open{font-size:12px;min-height:36px;padding:7px 8px;border:1px solid #c7dccf;border-radius:8px;text-decoration:none;background:#eef5f1;cursor:pointer}
@media(max-width:640px){.speech-history-followup{padding:12px 10px}.speech-history-sentence{font-size:12px}}
