/* Focused teacher workspace: details belong behind an intentional choice. */
.teacher-pin-reset{margin:20px 0;padding:14px;border:1px solid #cbd7e5;border-radius:10px}
.teacher-pin-reset[hidden]{display:none!important}
.teacher-pin-reset summary{font-weight:700;cursor:pointer}
.teacher-pin-reset>p{font-size:13px;line-height:1.5;color:#52627a}
.teacher-pin-reset form{display:grid;gap:10px}
.teacher-pin-reset label{display:grid;gap:5px;font-size:14px;font-weight:600}
.teacher-pin-reset input{width:100%;padding:10px;border:1px solid #b9c8d8;border-radius:8px;font-size:16px}
#studentEntry h1{font-size:clamp(32px,5vw,48px);line-height:1.1;margin:18px 0 24px}
#studentEntry .name-row{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
#studentEntry .student-access-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#studentEntry .form-stack label{min-width:0}
#studentEntry .student-access-row input{padding-inline:10px}
#teacherAuth.narrow{width:min(100%,620px);margin:clamp(12px,3vh,28px) auto;padding:clamp(20px,3vh,32px) clamp(22px,4vw,40px)}
#teacherAuth h1{font-size:clamp(32px,5vw,48px);line-height:1.1;margin:14px 0 20px}
#teacherAuth .form-stack{gap:clamp(9px,1.6vh,14px)}
#teacherAuth .form-stack label{gap:5px}
#teacherAuth .form-stack input:not([type="checkbox"]){padding:11px 14px;min-height:44px}
#teacherAuth .form-stack #teacherMarketingLabel{display:flex;align-items:flex-start;gap:9px;font-size:13px;font-weight:500;line-height:1.35;color:#52677e}
#teacherAuth #teacherMarketing{appearance:auto;flex:0 0 auto;width:17px;height:17px;margin:1px 0 0;padding:0;accent-color:var(--blue)}
#teacherAuth .form-message{margin:0;min-height:0}
#teacherAuth .form-message:empty{display:none}
#teacherAuth .text-button{margin-top:14px}
#teacherAuth .teacher-auth-guide{margin-top:8px;font-size:14px}
.teacher-guide-dialog{width:min(1100px,calc(100% - 28px));padding:clamp(16px,2vw,24px)}
.teacher-guide-dialog .eyebrow{margin:0 0 5px}
.teacher-guide-dialog h2{font-size:clamp(25px,3vw,34px);margin:0 38px 5px 0}
.teacher-guide-dialog .guide-intro{margin:0 0 12px;font-size:16px}
.teacher-guide-image{margin:0;border:1px solid #d9e2ee;border-radius:12px;overflow:hidden;background:#f5f8fc;text-align:center}
.teacher-guide-image img{display:block;width:100%;height:min(56vh,560px);object-fit:contain;object-position:center;background:#f5f8fc}
.teacher-guide-image figcaption{padding:5px;color:#61738a;background:white;font-size:11px}
.teacher-guide-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}
.teacher-guide-nav span{color:#52677e;font-size:14px;font-weight:700}
.teacher-guide-nav button:disabled{opacity:.45;cursor:default}
@media(max-width:600px){.teacher-guide-image{max-height:48vh;overflow:auto;text-align:left}.teacher-guide-image img{width:640px;max-width:none;height:auto;object-fit:fill}.teacher-guide-image figcaption{position:sticky;left:0;width:max-content;max-width:100%;font-size:11px}.teacher-guide-image figcaption::after{content:' · Scroll image to see more'}}
.teacher-guide-preview{max-width:800px;margin:28px auto;padding:clamp(24px,4vw,42px)}
.teacher-guide-preview h1{font-size:clamp(30px,4vw,42px);margin:0 0 8px}
.teacher-guide-preview p{color:#52677e;margin:0 0 22px}
.teacher-guide-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.teacher-guide-preview-grid button{padding:18px;text-align:left;border:1px solid #c7d8ee;border-radius:12px;background:#f7faff;color:#174ea6;font-weight:800;cursor:pointer}
.teacher-guide-preview-grid button:hover{border-color:#0868f2;background:#edf5ff}
@media(max-width:520px){.teacher-guide-preview-grid{grid-template-columns:1fr}}
.teacher-header-actions{display:none;align-items:center;justify-content:flex-end;gap:8px;grid-column:3;grid-row:1;justify-self:end;min-width:0}
body:has(#teacherDashboard:not([hidden])) .teacher-header-actions{display:flex}
.teacher-help-menu{position:relative}
.teacher-help-menu summary,.teacher-header-actions .dashboard-settings summary{list-style:none;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--navy);font-size:13px;font-weight:800;white-space:nowrap;cursor:pointer}
.teacher-help-menu summary::-webkit-details-marker{display:none}
.teacher-help-menu summary::after{content:' ▾';color:#60758c}
.teacher-help-menu[open] summary{border-color:var(--blue)}
.teacher-header-actions .settings-menu{z-index:50}
@media(max-height:700px){#teacherAuth.narrow{margin:8px auto;padding-block:16px}#teacherAuth h1{margin:8px 0 12px;font-size:32px}#teacherAuth .form-stack{gap:8px}#teacherAuth .text-button{margin-top:8px}}
.site-header>.dashboard-settings{display:none}
body:has(#teacherDashboard:not([hidden])) .site-header>.dashboard-settings{display:block;margin-left:14px}
body:has(#teacherDashboard:not([hidden])) .site-header .idv-link{margin-left:auto}
.site-header>.dashboard-settings summary{padding:8px 12px;font-size:13px;border-radius:8px}
.site-header>.dashboard-settings .settings-menu{z-index:50}
.site-header>.banner-class-code{display:none}
body:has(#teacherDashboard:not([hidden])) .site-header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px}
body:has(#teacherDashboard:not([hidden])) .site-header>.brand{grid-column:1;grid-row:1;justify-self:start}
body:has(#teacherDashboard:not([hidden])) .site-header .idv-link{display:none}
body:has(#teacherDashboard:not([hidden])) .site-header>.dashboard-settings{grid-column:3;grid-row:1;justify-self:end;margin-left:0}
body:has(#teacherDashboard:not([hidden])) .site-header>.banner-class-code{grid-column:2;grid-row:1;display:flex;align-items:center;gap:8px;padding:5px 12px;border:1px solid #b8cbe3;border-radius:8px;background:#f3f7fd;color:#334359;font-size:13px;font-weight:700;white-space:nowrap}
.banner-class-code .code-pill{font-size:13px;font-weight:800;margin:0;padding:4px 6px;border:0;border-radius:4px;background:#e4edfb;color:#185ac5;letter-spacing:.1em;cursor:pointer}
@media(max-width:540px){body:has(#teacherDashboard:not([hidden])) .site-header{padding:0 10px;gap:6px}body:has(#teacherDashboard:not([hidden])) .site-header>.brand{font-size:11px;gap:3px}body:has(#teacherDashboard:not([hidden])) .site-header>.brand b{width:32px;height:32px;font-size:18px}body:has(#teacherDashboard:not([hidden])) .site-header>.banner-class-code{flex-direction:column;gap:0;padding:3px 6px;font-size:13px;line-height:1.15}.site-header>.dashboard-settings summary{padding:8px;font-size:13px}}
@media(max-width:540px){.teacher-header-actions{gap:4px}.teacher-help-menu summary,.teacher-header-actions .dashboard-settings summary{padding:7px 5px;font-size:11px}.teacher-help-menu .settings-menu{right:-48px;max-width:calc(100vw - 20px)}}
main:has(#teacherDashboard:not([hidden])){margin-top:4px}
#teacherDashboard #classTitle{display:none}
#teacherDashboard .dashboard-head{padding-bottom:8px;margin-bottom:8px;gap:10px}
#teacherDashboard .dashboard-head .class-section-tabs{padding:2px;gap:3px}
#teacherDashboard .dashboard-head .class-section-tabs button{padding:6px 14px}
#teacherDashboard .class-folder>.dashboard-head{padding-bottom:4px;margin-bottom:4px;gap:4px}
#teacherDashboard #classOverview{margin-bottom:8px;padding-bottom:6px}
/* Content-sized cells: keep the existing 12px progress and name fonts. */
#teacherDashboard #progressTable{width:max-content;min-width:0}
#teacherDashboard #progressTable td{height:24px}
#teacherDashboard #progressTable .progress-edit-button{height:24px;min-height:24px;min-width:26px;padding:0 3px}
#teacherDashboard #progressTable .student-button{padding:2px 0;line-height:18px}
#teacherDashboard #progressTable th{min-width:26px;padding:3px 5px}
#teacherDashboard #progressTable thead tr:first-child{height:34px}
#teacherDashboard #progressTable thead tr:nth-child(2) th{top:34px;height:22px}
#teacherDashboard #progressTable td:first-child,#teacherDashboard #progressTable thead tr:first-child th:first-child{min-width:110px;width:auto;padding:0 6px}
#teacherDashboard [hidden]{display:none!important}
.teacher-attribution{font-size:13px;color:#52627a;margin:0 0 16px}.teacher-attribution a{color:#185ac5;font-weight:700;text-decoration:none}.teacher-attribution a:hover{text-decoration:underline}
.teacher-settings-dialog{width:min(600px,calc(100% - 28px));max-height:85dvh;overflow:auto;border:1px solid #cbd4df;border-radius:12px;padding:26px;color:#172334}.teacher-settings-dialog::backdrop{background:#17233466}.teacher-settings-dialog h2{margin:0 28px 22px 0;font-size:21px}.teacher-settings-dialog .idv-account{padding:0;margin:0;border:0;border-radius:0}.teacher-settings-dialog .idv-actions{gap:10px}.teacher-settings-dialog .idv-actions a,.teacher-settings-dialog .idv-actions button{font-size:13px}
#gradebookOptionsDialog{display:none}#gradebookOptionsDialog[open]{display:grid;gap:18px}#gradebookOptionsDialog label{display:grid;gap:6px}#gradebookOptionsDialog .used-topics-toggle{display:flex;align-items:center}#gradebookOptionsDialog .progress-tabs{display:flex;width:100%}#gradebookOptionsDialog .report-tab{flex:1}#gradebookOptionsDialog select{width:100%;padding:9px;font:inherit}#gradebookOptionsDialog #exportBtn{justify-self:start}
#teacherDashboard .class-overview{margin:0 0 16px;border-bottom:1px solid #dce3eb;padding-bottom:12px}#teacherDashboard .class-overview>summary{font-size:13px;font-weight:600;cursor:pointer;color:#52627a}#classOverviewContent{padding-top:14px}#teacherDashboard .classroom-summary{margin:0;padding:0;background:none;border:0;border-radius:0}#teacherDashboard .classroom-summary h2{display:none}
#teacherDashboard .gradebook-heading{display:none}#teacherDashboard .gradebook-toolbar{margin-top:0;display:flex;justify-content:space-between}#teacherDashboard .gradebook-search{margin:0;max-width:310px;flex:1}#teacherDashboard .gradebook-search input{width:100%}.gradebook-legend{font-size:12px;color:#617083;margin-top:5px}.gradebook-legend summary{cursor:pointer}.gradebook-legend p{margin:6px 0}
#teacherDashboard .table-scroll{border:1px solid #bfc9d5;border-radius:0;max-height:calc(100dvh - 320px);min-height:220px;isolation:isolate}#teacherDashboard .compact-gradebook{table-layout:auto;border-spacing:0;border-collapse:separate;font-size:12px}#teacherDashboard .compact-gradebook th,#teacherDashboard .compact-gradebook td{border-color:#d5dce5;border-right:1px solid #d5dce5;border-bottom:1px solid #d5dce5;border-radius:0;padding:0;height:32px}#teacherDashboard .compact-gradebook th{padding:6px 8px;background:#edf1f6;font-weight:600;color:#334359;min-width:50px;white-space:normal;max-width:170px;line-height:1.3;position:sticky;top:0;z-index:3}#teacherDashboard .compact-gradebook thead tr:first-child{height:46px}#teacherDashboard .compact-gradebook thead tr:nth-child(2) th{top:46px;height:28px;font-size:10px;background:#f5f7fa}#teacherDashboard .compact-gradebook thead th[rowspan]{top:0}#teacherDashboard .compact-gradebook td:first-child,#teacherDashboard .compact-gradebook thead tr:first-child th:first-child{position:sticky;left:0;min-width:150px;width:150px;background:#fff;text-align:left;padding:0 10px}#teacherDashboard .compact-gradebook td:first-child{z-index:2}#teacherDashboard .compact-gradebook thead tr:first-child th:first-child{z-index:5;background:#e7edf4}#teacherDashboard .compact-gradebook td.student-stat{padding:0 10px;background:#fff}
#teacherDashboard .compact-gradebook .progress-edit-button{display:flex;align-items:center;justify-content:center;width:100%;height:32px;min-height:32px;min-width:44px;padding:0 5px;gap:3px;border:0;border-radius:0;background:transparent;box-shadow:none;color:inherit;font:inherit;font-weight:700;cursor:pointer}#teacherDashboard .compact-gradebook .progress-edit-button:hover{background:#185ac511}#teacherDashboard .compact-gradebook .progress-edit-button:focus-visible{outline:2px solid #185ac5;outline-offset:-2px}#teacherDashboard .compact-gradebook .level{display:inline;width:auto;height:auto;min-width:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:inherit;font-size:12px;font-weight:700;line-height:1}#teacherDashboard .compact-gradebook td[data-level="E"]{background:#fff3ca;color:#805b00}#teacherDashboard .compact-gradebook td[data-level="M"]{background:#e3efff;color:#185ac5}#teacherDashboard .compact-gradebook td[data-level="H"]{background:#eee4fb;color:#7036a2}#teacherDashboard .compact-gradebook td[data-level="C"]{background:#dcf4e4;color:#166534}#teacherDashboard .compact-gradebook .student-button{font-size:12px;font-weight:600;white-space:nowrap}#teacherDashboard .compact-gradebook .progress-edit-button small{font-size:8px}
#teacherDashboard .class-mode-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:760px;margin:0 auto 22px}#teacherDashboard .class-mode-tile{display:flex;flex-direction:column;text-align:left;align-items:flex-start;gap:9px;min-height:145px;padding:22px;background:#fff;border:1px solid #c6d2e2;border-radius:12px;color:#172334;font:inherit;cursor:pointer}#teacherDashboard .class-mode-tile strong{font-size:20px}#teacherDashboard .class-mode-tile>span{font-size:13px;color:#617083;line-height:1.4}#teacherDashboard .class-mode-tile:hover{border-color:#185ac5;background:#f5f9ff}#teacherDashboard .class-mode-tile.mode-running{border:2px solid #185ac5}.mode-status{color:#617083;font-size:11px;margin-top:auto}.mode-running .mode-status{color:#185ac5;font-weight:700}#teacherDashboard #backToClassModes{margin-bottom:16px}#teacherDashboard .class-mode-panel{width:100%;scroll-margin-top:20px}#teacherDashboard .teacher-preview-tools{margin-top:22px;color:#617083;font-size:13px}#teacherDashboard .teacher-preview-tools summary{cursor:pointer}#teacherDashboard .teacher-preview-tools .teacher-test-card{margin-top:14px}#teacherDashboard .privacy-note{display:none}
@media(max-width:600px){#teacherDashboard .class-folder{padding:12px}#teacherDashboard .class-mode-tiles{gap:10px}#teacherDashboard .class-mode-tile{padding:15px;min-height:145px}#teacherDashboard .class-mode-tile strong{font-size:17px}#teacherDashboard .class-mode-tile>span{font-size:12px}#teacherDashboard .class-section-tabs button{padding:10px 8px}#teacherDashboard .gradebook-toolbar{flex-wrap:nowrap;gap:8px}#teacherDashboard .gradebook-search{flex:1;min-width:0}#teacherDashboard #gradebookViewOptions{flex-shrink:0}#teacherDashboard .table-scroll{max-height:60dvh;min-height:200px}.teacher-settings-dialog{padding:22px 18px}}
