/* Version: 3.26.13 — built-in CSP-safe timetable columns; original layout otherwise preserved. */
/* Version: 3.25.9 — existing styles preserved; scoped list-sort controls appended */
/* Version: 3.25.7 — original CSS + refined glass theme. */
.busy-overlay{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:20px;background:rgba(11,20,40,.38);backdrop-filter:blur(3px)}.busy-card{min-width:220px;display:grid;justify-items:center;gap:10px;padding:24px 28px;border:1px solid rgba(255,255,255,.7);border-radius:16px;background:rgba(255,255,255,.97);box-shadow:0 20px 55px rgba(15,23,42,.24);text-align:center}.busy-card strong{color:#172033;font-size:15px}.busy-card small{color:#667085;font-size:11px}.busy-spinner{width:30px;height:30px;border:3px solid #dbe7ff;border-top-color:#2563eb;border-radius:50%;animation:f2mg-spin .8s linear infinite}.busy-overlay[data-mode="save"] .busy-spinner{border-color:#d7f1df;border-top-color:#15803d}.busy-overlay[data-mode="save"] .busy-card strong{color:#166534}@keyframes f2mg-spin{to{transform:rotate(360deg)}}
:root{--navy:#0b1428;--blue:#2563eb;--ink:#172033;--muted:#667085;--line:#e4e7ec;--soft:#f5f7fb;--white:#fff;--danger:#c2414b;--shadow:0 26px 70px rgba(15,23,42,.16);font-family:Arial,"Noto Sans KR",sans-serif;color:var(--ink)}*{box-sizing:border-box}html,body{min-height:100%}body{margin:0;background:#eef2f7}.skip-link{position:fixed;left:12px;top:-100px;z-index:10;background:#fff;color:#111;padding:12px 16px;border-radius:8px}.skip-link:focus{top:12px}.shell{min-height:100vh;display:grid;grid-template-columns:minmax(390px,1.08fr) minmax(520px,.92fr)}.brand-panel{position:relative;overflow:hidden;display:flex;min-height:100vh;flex-direction:column;padding:clamp(36px,5vw,76px);color:#fff;background:radial-gradient(circle at 82% 18%,rgba(59,130,246,.35),transparent 28%),linear-gradient(142deg,#071020,#0c1a35 60%,#153363)}.brand-panel:before,.brand-panel:after{content:"";position:absolute;border:1px solid rgba(255,255,255,.08);border-radius:50%;width:520px;height:520px}.brand-panel:before{right:-290px;top:70px}.brand-panel:after{right:-170px;top:190px}.brand-top{position:relative;z-index:1;display:flex;align-items:center;gap:18px}.logo-mark{display:flex;align-items:center;width:70px;height:42px;border-radius:12px;background:#fff;color:var(--navy);font-size:20px;font-weight:700;box-shadow:0 10px 30px rgba(0,0,0,.2)}.logo-mark span{padding-left:11px}.logo-mark b{align-self:stretch;display:flex;align-items:center;margin-left:4px;padding:0 8px;border-radius:8px;background:var(--blue);color:#fff}.product-label{font-size:11px;font-weight:700;letter-spacing:.16em;color:#bcc8db}.brand-copy{position:relative;z-index:1;margin:auto 0;max-width:680px}.eyebrow{margin:0 0 14px;color:#3b82f6;font-size:11px;font-weight:800;letter-spacing:.17em}.brand-copy h1{margin:0;font-size:clamp(48px,5.4vw,82px);line-height:1.05;letter-spacing:-.055em}.brand-copy h1 span{color:#77a8ff}.brand-copy>p:last-child{max-width:550px;margin:28px 0 0;color:#c9d3e5;font-size:clamp(16px,1.5vw,20px);line-height:1.75}.signal-grid{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.signal-grid div{padding:17px 18px;border:1px solid rgba(255,255,255,.11);border-radius:14px;background:rgba(255,255,255,.055)}.signal-grid strong,.signal-grid span{display:block}.signal-grid strong{font-size:14px}.signal-grid span{margin-top:5px;color:#9dacbf;font-size:12px}.brand-foot{position:relative;z-index:1;margin:24px 0 0;color:#7586a0;font-size:11px}.auth-panel{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:42px;background:linear-gradient(#f8fafc,#eef2f7)}.auth-card,.dashboard-card{width:min(100%,600px);padding:clamp(30px,4vw,52px);border:1px solid rgba(255,255,255,.9);border-radius:24px;background:rgba(255,255,255,.94);box-shadow:var(--shadow)}.mobile-brand{display:none}.card-head h2,.dash-head h2{margin:0;color:#111827;font-size:34px;letter-spacing:-.04em}.card-head>p:last-child,.dash-head p{margin:10px 0 0;color:var(--muted);line-height:1.55}.role-picker{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:30px 0 12px}.role{min-height:68px;display:flex;align-items:center;gap:11px;padding:10px;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--ink);text-align:left;cursor:pointer;transition:.18s}.role:hover{border-color:#9db8ef;transform:translateY(-1px)}.role:focus-visible,.primary-button:focus-visible,.secondary-button:focus-visible,.text-button:focus-visible,.module-grid button:focus-visible,input:focus-visible{outline:3px solid rgba(37,99,235,.28);outline-offset:2px}.role.active{border-color:var(--blue);background:#f5f8ff;box-shadow:0 0 0 1px var(--blue)}.role:not(.active){opacity:.7}.role-icon{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#edf1f7;color:#6b7280;font-size:12px;font-weight:800}.role.active .role-icon{background:var(--blue);color:#fff}.role b,.role small{display:block}.role b{font-size:13px}.role small{margin-top:4px;color:#87909f;font-size:10px}.role.active small{color:var(--blue)}.role-note{min-height:39px;margin-bottom:24px;padding:10px 12px;border-radius:10px;background:#f4f7fc;color:#556176;font-size:12px}form>label{display:block;margin:16px 0 7px;color:#344054;font-size:13px;font-weight:700}.field-wrap{position:relative}.field-wrap input{width:100%;height:52px;padding:0 15px;border:1px solid #d7dce4;border-radius:11px;background:#fff;color:#101828;font:inherit;font-size:15px}.field-wrap input:focus{border-color:var(--blue)}.field-wrap input::placeholder{color:#a1a9b6}.password-wrap input{padding-right:67px}.text-button{position:absolute;right:7px;top:7px;min-width:52px;height:38px;border:0;border-radius:8px;background:#f1f4f8;color:#475467;font-weight:700;cursor:pointer}.form-options{display:flex;align-items:center;justify-content:space-between;margin-top:15px}.check{display:flex;align-items:center;gap:8px;color:#536071;font-size:13px;cursor:pointer}.check input{width:17px;height:17px;accent-color:var(--blue)}.link-button{border:0;background:transparent;color:#98a2b3;font-size:12px}.form-message{min-height:20px;margin:14px 0 8px;color:var(--danger);font-size:13px}.form-message.success{color:#15803d}.primary-button,.secondary-button{min-height:48px;border-radius:11px;font-weight:800;cursor:pointer}.primary-button{width:100%;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border:0;background:linear-gradient(100deg,#1d4ed8,#2563eb);color:#fff;font-size:14px;box-shadow:0 9px 22px rgba(37,99,235,.23)}.primary-button:disabled{cursor:wait;opacity:.7}.security-note{margin:22px 0 0;text-align:center;color:#8a94a4;font-size:11px}.security-note span{margin-right:5px;color:#36a269;font-size:9px}.dashboard-card{width:min(100%,720px)}.dash-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.dash-head h2{font-size:28px}.secondary-button{flex:none;padding:0 16px;border:1px solid var(--line);background:#fff;color:#475467}.status-banner{display:flex;align-items:center;gap:12px;margin:28px 0 20px;padding:14px 16px;border:1px solid #cfe4d6;border-radius:13px;background:#f0faf4}.status-banner>span{width:10px;height:10px;border-radius:50%;background:#22a35a;box-shadow:0 0 0 5px rgba(34,163,90,.1)}.status-banner p{margin:0;color:#376147;font-size:12px}.module-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.module-grid button{position:relative;display:flex;min-height:112px;flex-direction:column;align-items:flex-start;padding:18px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);text-align:left;cursor:pointer;transition:.18s}.module-grid button:hover{border-color:#a8bde8;transform:translateY(-2px);box-shadow:0 10px 22px rgba(15,23,42,.07)}.module-grid button>span{position:absolute;right:15px;top:15px;color:#c4cad4;font-size:11px;font-weight:800}.module-grid b{margin-top:13px;font-size:15px}.module-grid small{margin-top:8px;color:var(--muted)}.dash-foot{margin:20px 0 0;color:#98a2b3;font-size:12px;text-align:center}.toast{position:fixed;left:50%;bottom:26px;z-index:20;transform:translate(-50%,20px);padding:12px 18px;border-radius:11px;background:#111827;color:#fff;font-size:13px;box-shadow:0 12px 30px rgba(0,0,0,.24);opacity:0;pointer-events:none;transition:.22s}.toast.show{opacity:1;transform:translate(-50%,0)}[hidden]{display:none!important}@media(max-width:1020px){.shell{grid-template-columns:minmax(320px,.82fr) minmax(480px,1.18fr)}.brand-panel{padding:38px}.signal-grid{grid-template-columns:1fr}.signal-grid div:nth-child(n+2){display:none}.brand-copy h1{font-size:50px}}@media(max-width:760px){body{background:#f5f7fa}.shell{display:block}.brand-panel{display:none}.auth-panel{min-height:100svh;padding:max(18px,env(safe-area-inset-top)) 16px max(18px,env(safe-area-inset-bottom))}.auth-card,.dashboard-card{padding:28px 22px;border-radius:19px;box-shadow:0 18px 48px rgba(15,23,42,.11)}.mobile-brand{display:flex;align-items:center;gap:10px;margin-bottom:35px;color:#536071;font-size:12px;font-weight:700}.mobile-logo{display:grid;place-items:center;width:54px;height:34px;border-radius:9px;background:var(--navy);color:#fff}.card-head h2{font-size:29px}.role-picker{margin-top:24px}.role{min-height:62px}.module-grid{grid-template-columns:1fr}.module-grid button{min-height:94px}.dash-head{display:block}.dash-head .secondary-button{margin-top:16px}.toast{width:calc(100% - 32px);text-align:center}}@media(max-width:390px){.auth-panel{padding-left:12px;padding-right:12px}.auth-card,.dashboard-card{padding:24px 18px}.role-picker{gap:8px}.role{gap:8px;padding:8px}.role-icon{width:34px;height:34px}.card-head>p:last-child{font-size:13px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}}

/* Step 2: role language and Notion-backed student directory */
.status-banner.warning{border-color:#f0d7a5;background:#fff8e9}.status-banner.warning>span{background:#d98a16;box-shadow:0 0 0 5px rgba(217,138,22,.1)}.status-banner.warning p{color:#795821}.data-view{width:min(100%,760px)}.view-head{display:flex;align-items:flex-start;gap:16px}.view-head h2{margin:0;color:#111827;font-size:30px;letter-spacing:-.04em}.view-head p:last-child{margin:8px 0 0;color:var(--muted);font-size:13px}.back-button{flex:none;display:grid;place-items:center;width:46px;height:46px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#344054;font-size:21px;cursor:pointer}.search-form{display:grid;grid-template-columns:1fr auto;gap:9px;margin:26px 0 14px}.search-form input{min-width:0;height:50px;padding:0 15px;border:1px solid #d7dce4;border-radius:11px;background:#fff;color:#101828;font:inherit}.search-form button{min-width:78px;border:0;border-radius:11px;background:var(--blue);color:#fff;font-weight:800;cursor:pointer}.student-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}.student-toolbar p{margin:0;color:#667085;font-size:12px}.mini-button{height:36px;padding:0 12px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#475467;font-size:12px;font-weight:700;cursor:pointer}.data-error{margin:10px 0;color:var(--danger);font-size:13px;line-height:1.5}.student-list{display:grid;gap:11px;max-height:min(560px,58vh);padding-right:4px;overflow:auto}.student-card{padding:17px;border:1px solid var(--line);border-radius:15px;background:#fff}.student-main{display:flex;align-items:center;gap:12px}.student-avatar{flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#edf3ff;color:#1d4ed8;font-weight:800}.student-title{display:flex;align-items:center;gap:8px}.student-title h3{margin:0;font-size:16px}.student-main p{margin:6px 0 0;color:#667085;font-size:12px}.state{padding:4px 7px;border-radius:99px;background:#f2f4f7;color:#667085;font-size:10px;font-weight:700}.state-수강중{background:#eaf2ff;color:#1d4ed8}.state-상담진행중{background:#fff4d8;color:#9a6700}.state-휴강,.state-장기휴강{background:#fff0e7;color:#b54708}.state-종강{background:#f2f4f7;color:#667085}.student-card dl{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:10px;margin:15px 0 0;padding-top:13px;border-top:1px solid #edf0f4}.student-card dl div{min-width:0}.student-card dt{color:#98a2b3;font-size:10px}.student-card dd{margin:4px 0 0;overflow:hidden;color:#344054;font-size:12px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.tag-row{display:flex;flex-wrap:wrap;gap:5px;margin-top:12px}.tag-row span{padding:4px 7px;border-radius:7px;background:#f4f6fa;color:#596579;font-size:10px}.loading-card,.empty-state{padding:34px 20px;border:1px dashed #d6dbe4;border-radius:14px;color:#7b8493;text-align:center;font-size:13px}.empty-state b{color:#344054}.empty-state p{margin:7px 0 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:760px){.data-view{padding:24px 18px}.view-head h2{font-size:26px}.student-list{max-height:none;overflow:visible}.student-card dl{grid-template-columns:1fr 1fr}.student-card dl div:last-child{grid-column:1/-1}.search-form{position:sticky;top:0;z-index:2;padding:7px 0;background:rgba(255,255,255,.94);backdrop-filter:blur(10px)}}

.student-details{margin-top:12px;border-top:1px solid #edf0f4}.student-details summary{min-height:44px;display:flex;align-items:center;color:#2563eb;font-size:12px;font-weight:700;cursor:pointer}.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;padding:4px 0 8px}.detail-grid p{margin:0;padding:10px;border-radius:9px;background:#f7f9fc;color:#344054;font-size:12px}.detail-grid b{display:block;margin-bottom:5px;color:#98a2b3;font-size:10px}.detail-grid .wide{grid-column:1/-1}@media(max-width:520px){.detail-grid{grid-template-columns:1fr}.detail-grid .wide{grid-column:auto}}

.records-toolbar{margin-top:24px}.records-list{display:grid;gap:10px;max-height:min(590px,62vh);overflow:auto}.record-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff}.record-card p{margin:0;min-width:0}.record-card b,.record-card span{display:block}.record-card b{color:#98a2b3;font-size:10px}.record-card span{margin-top:4px;overflow:hidden;color:#344054;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.record-card .record-title{grid-column:1/-1;padding-bottom:9px;border-bottom:1px solid #edf0f4}.record-card .record-title span{color:#101828;font-size:15px;font-weight:800}@media(max-width:760px){.records-list{max-height:none}.record-card{grid-template-columns:1fr 1fr}}

.add-button{width:100%;min-height:48px;border:1px dashed #7aa2f5;border-radius:12px;background:#f5f8ff;color:#1d4ed8;font-weight:800;cursor:pointer}.edit-button{margin-top:12px;min-height:40px;padding:0 14px;border:1px solid #d7dce4;border-radius:9px;background:#fff;color:#344054;font-weight:700;cursor:pointer}.modal{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:16px;background:rgba(10,18,35,.58)}.modal-card{width:min(680px,100%);max-height:90vh;overflow:auto;padding:24px;border-radius:20px;background:#fff;box-shadow:0 30px 80px rgba(0,0,0,.3)}.modal-card header{display:flex;align-items:flex-start;justify-content:space-between}.modal-card h2{margin:0}.modal-card header button{width:44px;height:44px;border:0;border-radius:10px;background:#f2f4f7;font-size:24px}.editor-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:22px}.editor-fields label{color:#344054;font-size:12px;font-weight:700}.editor-fields input{width:100%;height:46px;margin-top:6px;padding:0 12px;border:1px solid #d7dce4;border-radius:9px;font:inherit}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.modal-actions .primary-button{width:auto;min-width:130px}.modal[hidden]{display:none!important}@media(max-width:600px){.editor-fields{grid-template-columns:1fr}.modal-card{padding:18px}.modal-actions{position:sticky;bottom:0;padding-top:12px;background:#fff}}

/* v3 operational CRUD */
button,select,input,textarea{font:inherit}button:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(37,99,235,.28);outline-offset:2px}.dashboard-card{width:min(100%,820px)}.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.records-toolbar>div{display:flex;gap:8px}.add-button.compact{width:auto;min-height:36px;padding:0 13px;border-style:solid}.records-list{max-height:min(620px,62vh)}.record-card{display:block}.record-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px}.record-card .record-title{grid-column:1/-1}.record-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid #edf0f4}.edit-button,.detail-button{min-height:44px;margin:0;padding:0 15px;border-radius:9px;font-weight:700;cursor:pointer}.edit-button{border:0;background:#edf3ff;color:#1d4ed8}.detail-button{border:1px solid #d7dce4;background:#fff;color:#475467}.modal-card header p:last-child{margin:7px 0 0;color:#667085;font-size:12px}.editor-fields{align-items:start}.editor-field{display:block;margin:0!important}.editor-field.wide{grid-column:1/-1}.editor-field>span{display:block;color:#344054;font-size:12px;font-weight:800}.editor-field em{color:#c2414b;font-style:normal}.editor-field input,.editor-field select,.editor-field textarea{width:100%;margin-top:7px;border:1px solid #d0d5dd;border-radius:9px;background:#fff;color:#101828;font-size:14px}.editor-field input,.editor-field select{min-height:46px;padding:0 11px}.editor-field select[multiple]{min-height:132px;padding:8px 10px}.editor-field textarea{min-height:92px;padding:11px;line-height:1.5;resize:vertical}.editor-field input:disabled,.editor-field select:disabled,.editor-field textarea:disabled{background:#f5f6f8;color:#475467;opacity:1}.editor-field small{display:block;margin-top:6px;color:#7d8796;font-size:11px;font-weight:400}.confirm-modal{z-index:60}.confirm-card{width:min(560px,100%)}.confirm-card>p{color:#475467;line-height:1.55}.confirm-list{display:grid;gap:0;max-height:42vh;overflow:auto;border:1px solid #e4e7ec;border-radius:12px}.confirm-list div{display:grid;grid-template-columns:130px 1fr;gap:12px;padding:11px 13px;border-bottom:1px solid #edf0f4}.confirm-list div:last-child{border-bottom:0}.confirm-list b{color:#667085;font-size:12px}.confirm-list span{overflow-wrap:anywhere;color:#101828;font-size:13px}.financial-total{margin-top:14px;padding:16px;border:1px solid #f0d29f;border-radius:12px;background:#fff8ea}.financial-total span,.financial-total small{display:block;color:#795821;font-size:12px}.financial-total strong{display:block;margin:5px 0;color:#9a5b00;font-size:24px}.confirm-warning{padding:11px 13px;border-radius:9px;background:#f5f7fb;color:#667085!important;font-size:12px}.modal-actions .primary-button{min-width:170px}.status-banner.warning{border-color:#f0d7a5;background:#fff8e9}.status-banner.warning>span{background:#d98a16}.data-view{width:min(100%,820px)}
@media(max-width:760px){.module-grid{grid-template-columns:1fr 1fr}.module-grid button{min-height:104px}.records-toolbar{align-items:flex-start}.records-toolbar>div{flex-wrap:wrap;justify-content:flex-end}.record-content{grid-template-columns:1fr 1fr}.modal{align-items:end;padding:0}.modal-card{width:100%;max-height:94svh;border-radius:20px 20px 0 0;padding:20px 18px calc(18px + env(safe-area-inset-bottom))}.editor-fields{grid-template-columns:1fr}.editor-field.wide{grid-column:auto}.modal-actions{margin-left:-2px;margin-right:-2px}.modal-actions>*{flex:1}.confirm-list div{grid-template-columns:105px 1fr}.confirm-card{border-radius:20px 20px 0 0}}
@media(max-width:390px){.module-grid{grid-template-columns:1fr}.record-content{grid-template-columns:1fr}.record-card .record-title{grid-column:auto}.student-toolbar{align-items:flex-start}.records-toolbar>div{width:100%;justify-content:flex-start}.search-form input{font-size:16px}}
@media(prefers-color-scheme:dark){body{background:#191919;color:#fff}.auth-panel{background:#191919}.auth-card,.dashboard-card,.modal-card{border-color:rgba(255,255,255,.16);background:#202020;color:#fff}.card-head h2,.dash-head h2,.view-head h2,.modal-card h2{color:#fff}.role,.module-grid button,.student-card,.record-card,.secondary-button,.mini-button,.back-button,.editor-field input,.editor-field select,.editor-field textarea,.search-form input,.detail-button{border-color:rgba(255,255,255,.2);background:#272727;color:#fff}.role.active{background:#172846}.field-wrap input{border-color:rgba(255,255,255,.2);background:#272727;color:#fff}.role-note,.confirm-warning,.editor-field input:disabled,.editor-field select:disabled,.editor-field textarea:disabled{background:#2a2a2a;color:rgba(255,255,255,.7)}.record-card span,.editor-field>span,.confirm-list span{color:#fff}.record-card .record-title,.record-actions,.confirm-list div{border-color:rgba(255,255,255,.12)}.confirm-list{border-color:rgba(255,255,255,.2)}.modal-actions{background:#202020}.data-error{color:#ff8f88}.loading-card,.empty-state{border-color:rgba(255,255,255,.2);color:rgba(255,255,255,.65)}}

/* v3.1 lookup menus */
.module-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.view-filters{display:flex;gap:10px;margin:0 0 16px;padding:13px;border:1px solid #dbe4f0;border-radius:12px;background:#f7f9fc}.view-filters label{flex:1;color:#475467;font-size:12px;font-weight:800}.view-filters select{display:block;width:100%;min-height:44px;margin-top:6px;padding:0 11px;border:1px solid #d0d5dd;border-radius:9px;background:#fff;color:#101828}.record-card span{white-space:normal;line-height:1.45}.record-card .record-title span{white-space:normal}.file-status{margin-top:7px;padding:12px;border:1px solid #d0d5dd;border-radius:9px;background:#f5f7fb;color:#475467}
@media(max-width:900px){.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.view-filters{display:grid;grid-template-columns:1fr}.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.module-grid button{padding:15px;min-height:110px}.module-grid b{font-size:14px}.module-grid small{line-height:1.4}}
@media(prefers-color-scheme:dark){.view-filters,.file-status{border-color:rgba(255,255,255,.2);background:#272727;color:rgba(255,255,255,.75)}.view-filters select{border-color:rgba(255,255,255,.2);background:#202020;color:#fff}}

.module-grid b,.module-grid small{word-break:keep-all}

/* v3.2 filters and weekly schedule */
.view-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr))}.view-filters input{display:block;width:100%;min-height:44px;margin-top:6px;padding:0 10px;border:1px solid #d0d5dd;border-radius:9px;background:#fff;color:#101828}.weekly-card{padding:20px;border:1px solid var(--line);border-radius:16px;background:#fff}.weekly-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:15px;border-bottom:1px solid #edf0f4}.weekly-card h3{margin:0;color:#101828;font-size:22px}.weekly-card header p{margin:7px 0 0;color:#667085;font-size:12px}.weekly-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin-top:16px}.schedule-day{min-height:145px;padding:15px;border-left:3px solid #d18b00;border-radius:10px;background:#fbfbfc;box-shadow:0 4px 14px rgba(15,23,42,.05)}.schedule-day strong,.schedule-day b,.schedule-day span{display:block}.schedule-day strong{margin-bottom:16px;color:#101828;font-size:16px}.schedule-day b{margin-bottom:9px;color:#172033;font-size:13px}.schedule-day span{margin-top:5px;color:#667085;font-size:11px;line-height:1.4}.schedule-empty{grid-column:1/-1;padding:26px;border:1px dashed #d7dce4;border-radius:10px;color:#7d8796;text-align:center}.records-list .weekly-card+.weekly-card{margin-top:2px}
@media(max-width:600px){.weekly-card{padding:16px}.weekly-grid{grid-template-columns:1fr 1fr}.schedule-day{min-height:136px}.weekly-card h3{font-size:20px}}
@media(max-width:390px){.weekly-grid{grid-template-columns:1fr}}
@media(prefers-color-scheme:dark){.view-filters input,.weekly-card,.schedule-day{border-color:rgba(255,255,255,.2);background:#272727;color:#fff}.weekly-card h3,.schedule-day strong,.schedule-day b{color:#fff}.weekly-card>header{border-color:rgba(255,255,255,.12)}}

.records-list.weekly-list{max-height:none;overflow:visible}

/* v3.5.0 verifiable deployment badge */
.build-badge{position:fixed;right:12px;bottom:10px;z-index:45;padding:6px 9px;border:1px solid rgba(15,23,42,.14);border-radius:7px;background:rgba(255,255,255,.94);color:#667085;font:600 10px/1.2 Menlo,Consolas,monospace;box-shadow:0 2px 8px rgba(15,23,42,.08)}.build-badge.verified:before{content:'●';margin-right:5px;color:#46a171}@media(max-width:520px){.build-badge{right:8px;bottom:7px;font-size:9px}}@media(prefers-color-scheme:dark){.build-badge{border-color:rgba(255,255,255,.2);background:rgba(32,32,32,.94);color:rgba(255,255,255,.65)}}

/* v3.3 compact schedule and guided picker */
.schedule-lines{display:grid;gap:8px;margin-top:16px}.schedule-line{display:grid;grid-template-columns:38px minmax(72px,1.2fr) minmax(112px,1.5fr) minmax(82px,1fr) minmax(58px,.8fr);align-items:center;gap:8px;min-height:48px;padding:8px 11px;border:1px solid #dbe5f4;border-left:4px solid #2783de;border-radius:10px;background:#f8fbff;white-space:nowrap}.schedule-line strong{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#e5f2fc;color:#1d65a6;font-size:13px}.schedule-line b{overflow:hidden;color:#172033;font-size:13px;text-overflow:ellipsis}.schedule-line span{overflow:hidden;color:#667085;font-size:11px;text-overflow:ellipsis}.schedule-picker{grid-column:1/-1}.schedule-picker-filters{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px;padding:10px;border-radius:11px;background:#f5f8fd}.schedule-picker-filters label{font-size:11px}.schedule-picker-filters select{width:100%;min-height:42px;margin-top:5px;padding:0 8px;border:1px solid #d0d9e8;border-radius:8px;background:#fff}.schedule-option-list{display:grid;gap:7px;max-height:330px;overflow:auto}.schedule-option-list>label{display:grid;grid-template-columns:24px 32px minmax(90px,1fr) 70px;align-items:center;gap:7px;min-height:48px;margin:0!important;padding:7px 10px;border:1px solid #dbe3ee;border-radius:9px;background:#fff;cursor:pointer}.schedule-option-list input{width:18px!important;height:18px!important;margin:0!important;accent-color:#2783de}.schedule-option-list strong{color:#2783de}.schedule-option-list b,.schedule-option-list span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.schedule-option-list label:has(input:checked){border-color:#2783de;background:#eef6ff;box-shadow:0 0 0 1px #2783de}.editor-field:has(.schedule-picker){grid-column:1/-1}
@media(max-width:600px){.schedule-line{grid-template-columns:30px minmax(58px,1fr) minmax(105px,1.55fr) minmax(60px,.9fr) minmax(42px,.7fr);gap:5px;padding:7px 8px}.schedule-line strong{width:27px;height:27px}.schedule-line b{font-size:12px}.schedule-line span{font-size:10px}.schedule-picker-filters{grid-template-columns:1fr 1fr 1fr;padding:8px;gap:5px}.schedule-picker-filters label{font-size:10px}.schedule-picker-filters select{padding:0 4px;font-size:12px}.schedule-option-list>label{grid-template-columns:22px 28px minmax(75px,1fr) 58px;padding:7px;font-size:12px}}
@media(prefers-color-scheme:dark){.schedule-line,.schedule-option-list>label,.schedule-picker-filters{border-color:rgba(255,255,255,.18);background:#272727}.schedule-line strong{background:#17304a;color:#72b7ef}.schedule-line b,.schedule-option-list b{color:#fff}.schedule-picker-filters select{border-color:rgba(255,255,255,.2);background:#202020;color:#fff}.schedule-option-list label:has(input:checked){border-color:#5e9fe8;background:#1d3043}}

/* v3.4 full timetable */
.records-list.schedule-list{max-height:none;overflow:visible}.schedule-record{padding:14px 15px;border:1px solid #dbe5f4;border-radius:13px;background:#fff}.schedule-record-main{display:grid;grid-template-columns:minmax(110px,1.4fr) 34px minmax(120px,1.3fr) minmax(90px,1fr) minmax(72px,.8fr);align-items:center;gap:9px}.schedule-record-main b{overflow:hidden;color:#172033;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.schedule-record-main strong{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:#e5f2fc;color:#1d65a6;font-size:13px}.schedule-record-main span{overflow:hidden;color:#667085;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.schedule-record>p{margin:10px 0 0;padding-top:9px;border-top:1px solid #edf1f6;overflow:hidden;color:#7d8796;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.schedule-record .record-actions{margin-top:10px;padding-top:10px}
@media(max-width:600px){.schedule-record{padding:11px}.schedule-record-main{grid-template-columns:minmax(72px,1.15fr) 28px minmax(92px,1.35fr) minmax(58px,.85fr) minmax(44px,.65fr);gap:5px}.schedule-record-main b{font-size:12px}.schedule-record-main strong{width:27px;height:27px;font-size:11px}.schedule-record-main span{font-size:10px}.schedule-record>p{font-size:10px}}
@media(prefers-color-scheme:dark){.schedule-record{border-color:rgba(255,255,255,.18);background:#272727}.schedule-record-main b{color:#fff}.schedule-record-main strong{background:#17304a;color:#72b7ef}.schedule-record>p{border-color:rgba(255,255,255,.12)}}

/* v3.5 student filters and revenue reports */
.report-dashboard{display:grid;gap:14px;margin-bottom:16px}.report-kpi{display:grid;grid-template-columns:1fr auto;align-items:end;gap:3px 16px;padding:18px;border-radius:14px;background:linear-gradient(135deg,#173a70,#2783de);color:#fff}.report-kpi div span,.report-kpi div b{display:block}.report-kpi div span{font-size:11px;opacity:.75}.report-kpi div b{margin-top:5px;font-size:15px}.report-kpi strong{grid-row:1/3;grid-column:2;font-size:25px}.report-kpi small{opacity:.75}.report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.report-section{padding:14px;border:1px solid #dbe5f4;border-radius:12px;background:#fff}.report-section h3,.report-detail-heading{margin:0 0 12px;font-size:14px}.report-bars{display:grid;gap:10px}.report-bars header{display:flex;justify-content:space-between;gap:8px;font-size:11px}.report-bars header span{color:#667085}.report-bars i{display:block;height:7px;margin-top:5px;overflow:hidden;border-radius:4px;background:#edf1f6}.report-bars em{display:block;height:100%;border-radius:4px;background:#2783de}.report-bars p{color:#7d8796;font-size:11px}.report-detail-heading{margin-top:5px;padding-top:15px;border-top:1px solid #e7ebf0}.records-list:has(.report-dashboard){max-height:none;overflow:visible}
@media(max-width:760px){.report-grid{grid-template-columns:1fr}.report-kpi strong{font-size:21px}.view-filters{grid-template-columns:1fr 1fr}}
@media(prefers-color-scheme:dark){.report-section{border-color:rgba(255,255,255,.18);background:#272727}.report-bars i{background:#3a3a3a}.report-detail-heading{border-color:rgba(255,255,255,.12)}}


/* v3.6 permanent month-end reports */
.report-export-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px;padding:13px;border:1px solid #cad8eb;border-radius:12px;background:#f7faff}.report-export-toolbar b{margin-right:auto}.report-export-toolbar button{min-height:38px;padding:0 12px;border:1px solid #9db4d1;border-radius:8px;background:#fff;color:#183b66;font-size:11px;font-weight:800;cursor:pointer}.report-export-toolbar button:nth-last-child(-n+2){background:#173a70;color:#fff;border-color:#173a70}.report-help{margin:8px 2px 4px;color:#667085;font-size:11px}.paper-preview{width:100%;overflow-x:auto;padding:14px;background:#dfe3e8;border-radius:12px}.paper-preview+.paper-preview{margin-top:14px}.report-paper{position:relative;flex:none;margin:0 auto;background:#fff;color:#111;box-shadow:0 5px 22px rgba(15,23,42,.18);font-family:Arial,"Noto Sans KR",sans-serif}.report-paper.portrait{width:794px;height:1123px;padding:24px 26px}.report-paper.landscape{width:1123px;height:794px;padding:22px 26px}.forecast-preview{display:flex;flex-direction:column;gap:18px}.brief-header{position:relative;min-height:56px;display:flex;align-items:center;justify-content:center;border-bottom:2px solid #111}.brief-header h1{margin:0;font-size:25px;letter-spacing:-.04em}.brief-header span{position:absolute;right:2px;bottom:8px;font-size:11px}.report-paper table{width:100%;border-collapse:collapse;table-layout:fixed}.report-paper th,.report-paper td{border:1px solid #111;padding:5px 7px;font-size:10px;line-height:1.25;vertical-align:middle;overflow-wrap:anywhere}.brief-table{margin-top:10px}.brief-table th{background:#f1f1f1}.brief-table .section-title th,.expected-total .section-title th{background:#d9e5f4;font-size:12px}.brief-table .grand-total th,.brief-table .grand-total td{background:#fff3cf;font-weight:800}.money{text-align:right;white-space:nowrap}.course-summary{text-align:center;font-weight:700;min-height:32px}.table-heading,.editable-section h2{margin:8px 0 0;padding:5px;border:1px solid #111;border-bottom:0;background:#d9e5f4;text-align:center;font-size:12px}.detail-table th{background:#ececec}.detail-table th:nth-child(1){width:11%}.detail-table th:nth-child(2){width:20%}.detail-table th:nth-child(3){width:31%}.detail-table th:nth-child(4){width:15%}.detail-table th:nth-child(5){width:23%}.report-paper tr.subtotal td{background:#f4f4f4;font-weight:800}.editable-section textarea,.exported-textarea{display:block;width:100%;height:74px;padding:7px;border:1px solid #111;border-radius:0;background:#fff;color:#111;font:10px/1.45 Arial,"Noto Sans KR",sans-serif;resize:none;white-space:pre-wrap}.editable-section textarea:focus{outline:2px solid #2563eb;outline-offset:-2px}.expected-total{margin-top:8px}.expected-total th{width:65%}.report-paper footer{position:absolute;left:26px;right:26px;bottom:13px;border-top:1px solid #999;padding-top:5px;text-align:center;color:#555;font-size:8px;letter-spacing:.08em}.forecast-header{display:grid;grid-template-columns:1fr auto 1fr;align-items:end;gap:10px;margin-bottom:10px;border-bottom:2px solid #111;padding-bottom:7px}.forecast-header div{font-size:9px;letter-spacing:.08em}.forecast-header h1{margin:0;text-align:center;font-size:21px}.forecast-header span{text-align:right;font-size:9px}.forecast-section h2{margin:0;padding:7px;border:1px solid #111;border-bottom:0;background:var(--band);font-size:14px;text-align:center}.forecast-section table th{background:#e9eef3;font-size:9px}.forecast-section table th:nth-child(1){width:12%}.forecast-section table th:nth-child(2){width:12%}.forecast-section table th:nth-child(3){width:14%}.forecast-section table th:nth-child(4){width:7%}.forecast-section table th:nth-child(5){width:17%}.forecast-section table th:nth-child(6){width:13%}.forecast-section table th:nth-child(7){width:25%}.forecast-section td{height:26px;font-size:9px}.forecast-section .staff-row th{background:#f6f1dc;font-size:11px;text-align:center}.forecast-section .memo{white-space:pre-wrap}.report-paper,.report-paper *{box-sizing:border-box}
@media(max-width:760px){.report-export-toolbar{align-items:stretch}.report-export-toolbar b{width:100%}.report-export-toolbar button{flex:1 1 calc(50% - 8px)}.paper-preview{margin-left:-18px;width:calc(100% + 36px);border-radius:0;padding:10px;scrollbar-width:thin}.report-paper{margin-left:0}.report-help{line-height:1.5}}
@media(prefers-color-scheme:dark){.report-export-toolbar{background:#232b36;border-color:#435166}.report-export-toolbar button{background:#fff;color:#183b66}.report-help{color:#bcc5d2}.paper-preview{background:#121820}.report-paper,.report-paper *{color:#111}.report-paper textarea{background:#fff;color:#111}}
@page close-report{size:A4 portrait;margin:5mm}@page forecast-report{size:A4 landscape;margin:5mm}.report-paper.portrait{page:close-report}.report-paper.landscape{page:forecast-report}
@media print{body{background:#fff!important}.brand-panel,#login-view,#dashboard-view,.view-head,.search-form,.view-filters,.records-toolbar,.data-error,.report-kpi,.report-grid,.report-export-toolbar,.report-help,.record-card,.toast,.build-badge{display:none!important}.shell,.auth-panel,#records-view,.records-list,.report-dashboard,.paper-preview{display:block!important;width:auto!important;max-width:none!important;max-height:none!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:#fff!important;box-shadow:none!important;overflow:visible!important}.report-paper{margin:0!important;box-shadow:none!important;break-after:page;-webkit-print-color-adjust:exact;print-color-adjust:exact}body.print-close .forecast-preview{display:none!important}body.print-close #close-report-page{display:block!important}body.print-forecast .paper-preview:not(.forecast-preview){display:none!important}body.print-forecast .forecast-preview{display:block!important}body.print-forecast .landscape{display:block!important}body:not(.print-close):not(.print-forecast) .report-paper{display:none!important}}

/* v3.7 separated reports and attendance calendar */
.close-form .close-details{margin-top:7px}.close-form .section-title th{background:#d9e5f4!important}.close-form .editable-section textarea{height:92px;background:#f9fcff}.expected-total input{width:100%;height:30px;border:0;background:#f9fcff;text-align:right;font-weight:800}.exported-input{min-height:30px;padding:7px;text-align:right;font-weight:800}.forecast-form .sheet-staff{position:relative;min-height:45px;display:flex;align-items:center;justify-content:center;border:0}.forecast-form .sheet-staff h1{margin:0;font-size:20px}.forecast-form .sheet-staff span{position:absolute;right:0;bottom:4px;font-size:10px}.forecast-form table th,.forecast-form table td{border:1px solid #111}.forecast-form .forecast-band th{background:var(--band)!important;font-size:13px;height:30px}.forecast-form .staff-name th{height:30px;background:#fff;font-size:15px;text-align:center}.forecast-form table th:nth-child(1){width:10%}.forecast-form table th:nth-child(2){width:12%}.forecast-form table th:nth-child(3){width:11%}.forecast-form table th:nth-child(4){width:13%}.forecast-form table th:nth-child(5){width:7%}.forecast-form table th:nth-child(6){width:17%}.forecast-form table th:nth-child(7){width:13%}.forecast-form table th:nth-child(8){width:17%}.blank-report-row{height:70px;text-align:center}.attendance-preview{display:flex;flex-direction:column;gap:18px}.attendance-paper{padding:20px 24px}.attendance-paper>header{display:flex;align-items:end;justify-content:space-between;min-height:56px;border-bottom:2px solid #111;padding-bottom:8px}.attendance-paper header span{font-size:9px;letter-spacing:.14em;color:#3b6da8}.attendance-paper header h1{margin:4px 0 0;font-size:21px}.attendance-paper header p{margin:0;font-size:10px;font-weight:800}.calendar-week,.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr)}.calendar-week{margin-top:10px}.calendar-week b{padding:6px;border:1px solid #111;border-right:0;background:#e8eef6;text-align:center;font-size:10px}.calendar-week b:last-child{border-right:1px solid #111}.calendar-week b:first-child{color:#c23b3b}.calendar-week b:last-child{color:#2563a5}.calendar-day{position:relative;min-height:91px;padding:5px;border:1px solid #999;border-right:0;border-top:0;background:#fff}.calendar-day:nth-child(7n){border-right:1px solid #999}.calendar-day.outside{background:#f3f3f3}.calendar-day>b{display:block;margin-bottom:4px;font-size:10px}.calendar-day:nth-child(7n+1)>b{color:#c23b3b}.calendar-day:nth-child(7n)>b{color:#2563a5}.attendance-event{margin-top:3px;padding:4px;border-left:3px solid #6b7280;border-radius:2px;background:#f2f4f7;font-size:8px;line-height:1.25}.attendance-event strong,.attendance-event span{display:block}.attendance-event span{margin-top:2px;color:#4b5563}.status-출석{border-color:#168653;background:#e7f7ee}.status-지각{border-color:#d38b16;background:#fff4d8}.status-결석{border-color:#c2414b;background:#fdebec}.status-보강{border-color:#2563eb;background:#eaf2ff}.status-휴강{border-color:#7c3aed;background:#f0eaff}.records-list:has(.attendance-preview),.records-list:has(.forecast-preview),.records-list:has(.close-form){max-height:none;overflow:visible}
@media(max-width:760px){.attendance-preview,.forecast-preview{margin-left:-18px;width:calc(100% + 36px)}.attendance-paper,.forecast-form{margin-left:0}}
@media print{body.print-close .attendance-preview{display:none!important}body.print-forecast .attendance-preview{display:none!important}}
.forecast-form .forecast-band.new-band th{background:#f2c9cf!important}.forecast-form .forecast-band.link-band th{background:#cadff2!important}


/* v3.7.1 exact briefing form and refined attendance */
.close-original{padding:30px 36px!important;font-family:Arial,"Noto Sans KR",sans-serif}.original-title{position:relative;height:72px;display:flex;align-items:flex-start;justify-content:center;border-bottom:0!important}.original-title h1{margin:0;padding-top:4px;font-size:23px;letter-spacing:.02em}.original-title span{position:absolute;right:4px;top:44px;font-size:10px}.original-box{border:1px solid #111}.original-box>h2{height:25px;margin:0;padding:5px 7px;border-bottom:1px solid #111;background:#fff;font-size:10px;text-align:left}.original-box>h2:not(:first-child){border-top:1px solid #111}.income-lines{min-height:72px;padding:10px 8px}.income-lines p{margin:0 0 5px;font-size:10px}.course-lines{min-height:48px;padding:15px 8px;font-size:10px}.register-matrix{display:grid;grid-template-columns:1fr 1fr;min-height:260px}.matrix-right{display:grid;grid-template-rows:1fr 1fr}.matrix-group{display:grid;grid-template-columns:88px 1fr;border-top:1px solid #111}.matrix-group.group-신규{border-top:0;border-right:1px solid #111}.matrix-right .matrix-group:first-child{border-top:0}.matrix-group>b{display:flex;flex-direction:column;align-items:center;justify-content:center;border-right:1px solid #111;font-size:11px}.matrix-group>b small{margin-top:4px;font-size:9px}.matrix-group>div{position:relative;padding:10px 10px 30px}.matrix-group p{margin:0 0 6px;font-size:9px;line-height:1.35}.matrix-group p span{font-weight:700}.matrix-group .zero-line{color:#555}.matrix-group strong{position:absolute;left:10px;bottom:9px;font-size:10px}.register-matrix>.group-잔금{grid-column:1/-1;border-right:0;min-height:64px}.original-box>textarea{display:block;width:100%;height:47px;padding:9px;border:0;border-bottom:0;background:#fff;font:9px/1.55 Arial,"Noto Sans KR",sans-serif;resize:none}.original-box>textarea.plan-area{height:100px}.original-box>textarea.expected-area{height:70px;font-weight:700}.original-box>textarea:focus{outline:2px solid #2563eb;outline-offset:-2px}.close-original footer{display:none}
.attendance-paper{background:linear-gradient(180deg,#fff,#fbfcfe)}.attendance-paper>header{border-bottom:3px solid #183b66}.attendance-paper header h1{color:#14243c}.attendance-paper header p{padding:5px 8px;border-radius:99px;background:#eaf2ff;color:#174b88}.calendar-week b{background:#183b66;color:#fff!important;border-color:#183b66}.calendar-day{background:#fff}.calendar-day.outside{background:#f4f6f9}.attendance-event{padding:4px 5px;border-left-width:3px;border-radius:4px;box-shadow:0 1px 2px rgba(15,23,42,.08)}.attendance-event>div{display:flex;align-items:center;justify-content:space-between;gap:3px}.attendance-event strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px}.attendance-event em{flex:none;padding:1px 3px;border-radius:5px;background:rgba(255,255,255,.75);font-size:7px;font-style:normal}.more-events{display:block;margin-top:4px;color:#244b7a;font-size:8px;font-weight:800;text-align:center}
@media print{.close-original{padding:5mm!important}.original-title{height:20mm}.original-box{break-inside:avoid}.forecast-form .forecast-band.new-band th{background:#f2c9cf!important}.forecast-form .forecast-band.link-band th{background:#cadff2!important}}

/* v3.7.2 search-first views and sales rows */
.search-first-state{padding:42px 20px;border:1px dashed #b8c5d6;border-radius:14px;background:linear-gradient(180deg,#fbfdff,#f5f8fc);text-align:center}.search-first-state b{color:#183b66;font-size:15px}.search-first-state p{margin:8px 0 0;color:#667085;font-size:12px}.matrix-group>div>p{white-space:normal;word-break:keep-all}.matrix-group>div>strong{right:10px;padding-top:6px;border-top:1px solid #b8b8b8}.matrix-right .group-잔금{border-top:1px solid #111}.forecast-form .sheet-staff span{min-width:70px;text-align:right}


/* v3.7.4 split forecast tables and student record tabs */
.forecast-split{margin-top:10px}.forecast-split h2{margin:0;padding:6px;border:1px solid #111;border-bottom:0;text-align:center;font-size:12px}.forecast-split h2.new-band{background:#f2c9cf}.forecast-split h2.link-band{background:#cadff2}.forecast-split table th,.forecast-split table td{height:23px;padding:4px 5px;font-size:8px}.forecast-split .staff-name th{height:25px;font-size:10px}.forecast-split+.forecast-split{margin-top:15px}
.profile-modal{z-index:55}.profile-card{width:min(920px,100%);max-height:94vh;padding:24px}.profile-tabs{display:flex;gap:7px;margin:20px 0 14px;padding-bottom:8px;overflow-x:auto;scrollbar-width:thin}.profile-tabs button{flex:none;min-height:40px;padding:0 14px;border:1px solid #d7dce4;border-radius:20px;background:#fff;color:#475467;font-size:12px;font-weight:800;white-space:nowrap}.profile-tabs button.active{border-color:#2563eb;background:#eaf2ff;color:#1d4ed8}.profile-body{min-height:260px;max-height:62vh;overflow:auto;padding:2px}.profile-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.profile-info-grid>div{padding:13px;border:1px solid #e1e6ee;border-radius:11px;background:#fafbfd}.profile-info-grid b,.profile-info-grid span{display:block}.profile-info-grid b{color:#7b8493;font-size:10px}.profile-info-grid span{margin-top:5px;color:#182230;font-size:13px;font-weight:700;overflow-wrap:anywhere}.profile-entry-list{display:grid;gap:10px}.profile-entry-list article{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 15px;padding:14px;border:1px solid #e1e6ee;border-radius:12px;background:#fff}.profile-entry-list p{margin:0}.profile-entry-list p.primary{grid-column:1/-1;padding-bottom:8px;border-bottom:1px solid #edf0f4}.profile-entry-list b,.profile-entry-list span{display:block}.profile-entry-list b{color:#98a2b3;font-size:9px}.profile-entry-list span{margin-top:3px;color:#344054;font-size:12px;white-space:pre-wrap}.profile-body>h3{margin:16px 0 9px;color:#183b66;font-size:14px}.profile-empty{padding:42px 15px;border:1px dashed #cfd6e1;border-radius:12px;color:#7b8493;text-align:center;font-size:12px}.profile-schedule{display:grid;gap:8px}.profile-schedule article{display:grid;grid-template-columns:55px 1fr auto;align-items:center;gap:8px;padding:13px;border:1px solid #dce4ef;border-radius:11px;background:#f9fbfe}.profile-schedule strong{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#183b66;color:#fff}.profile-schedule b{font-size:13px}.profile-schedule span{font-size:11px}.profile-schedule small{grid-column:2/-1;color:#697386}
@media(max-width:760px){.profile-modal{align-items:end}.profile-card{height:96svh;max-height:96svh;padding:18px 16px}.profile-card>header{position:sticky;top:-18px;z-index:2;margin:-18px -16px 0;padding:18px 16px 12px;background:#fff}.profile-tabs{position:sticky;top:65px;z-index:2;margin:0 -16px 12px;padding:10px 16px;background:#fff}.profile-body{max-height:none;overflow:visible}.profile-info-grid{grid-template-columns:1fr 1fr}.profile-entry-list article{grid-template-columns:1fr}.profile-entry-list p.primary{grid-column:auto}.profile-schedule article{grid-template-columns:44px 1fr}.profile-schedule span{grid-column:2}.forecast-split{margin-top:8px}}
@media(prefers-color-scheme:dark){.profile-card>header,.profile-tabs{background:#202020}.profile-tabs button{border-color:#4b5563;background:#272727;color:#e5e7eb}.profile-tabs button.active{background:#17345e}.profile-info-grid>div,.profile-entry-list article,.profile-schedule article{border-color:#414a57;background:#272727}.profile-info-grid span,.profile-entry-list span{color:#fff}}


/* v3.7.5 centered sales groups and student progress report */
.matrix-group>b{width:88px;min-width:88px;padding:0;text-align:center;line-height:1.25}
.matrix-group>b>span,.matrix-group>b>small{display:flex;width:100%;align-items:center;justify-content:center;text-align:center}
.matrix-group>b>span{min-height:16px;font-size:11px;font-weight:800}
.matrix-group>b>small{min-height:12px;margin-top:4px;font-size:9px;font-weight:700}
.progress-preview{display:flex;flex-direction:column;gap:18px}
.progress-paper{padding:24px 28px;background:#fff}
.progress-paper>header{display:flex;min-height:58px;align-items:flex-end;justify-content:space-between;gap:20px;padding-bottom:9px;border-bottom:3px solid #183b66}
.progress-paper>header div>span{display:block;color:#3b6da8;font-size:8px;font-weight:800;letter-spacing:.16em}
.progress-paper>header h1{margin:4px 0 0;color:#14243c;font-size:21px;letter-spacing:-.025em}
.progress-paper>header>p{margin:0;padding:5px 8px;border-radius:99px;background:#eaf2ff;color:#174b88;font-size:9px;font-weight:800;white-space:nowrap}
.progress-summary{display:flex;align-items:center;justify-content:space-between;margin:10px 0;padding:8px 11px;border:1px solid #cad8eb;border-radius:7px;background:#f5f8fc}
.progress-summary b{color:#183b66;font-size:11px}.progress-summary span{color:#667085;font-size:8px}
.progress-report-list{display:grid;gap:7px}
.progress-report-list>article{min-height:142px;overflow:hidden;border:1px solid #cfd8e5;border-radius:7px;background:#fff}
.progress-report-list>article>header{display:grid;grid-template-columns:92px minmax(0,1fr) 110px;align-items:center;gap:8px;min-height:28px;padding:5px 8px;background:#183b66;color:#fff}
.progress-report-list>article>header strong,.progress-report-list>article>header b,.progress-report-list>article>header span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.progress-report-list>article>header strong{font-size:8px}.progress-report-list>article>header b{font-size:10px}.progress-report-list>article>header span{text-align:right;font-size:8px}
.progress-report-list dl{display:grid;grid-template-columns:1.15fr 1fr 1fr;min-height:112px;margin:0}
.progress-report-list dl>div{min-width:0;padding:8px 9px;border-right:1px solid #dce3ec}
.progress-report-list dl>div:last-child{border-right:0}
.progress-report-list dt{margin-bottom:5px;color:#3b6da8;font-size:8px;font-weight:800}
.progress-report-list dd{margin:0;color:#263244;font-size:8px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.records-list:has(.progress-preview){max-height:none;overflow:visible}
@media(max-width:760px){.progress-preview{margin-left:-18px;width:calc(100% + 36px)}.progress-paper{margin-left:0}.progress-report-list>article>header{grid-template-columns:92px minmax(0,1fr) 90px}}
@media print{body.print-close .progress-preview,body.print-forecast .progress-preview{display:none!important}}


/* v3.7.6 searchable student relations and counselling form */
.student-picker{margin-top:7px;padding:10px;border:1px solid #d0d5dd;border-radius:10px;background:#f8fafc}
.student-picker-search{width:100%;min-height:46px!important;margin:0 0 9px!important;padding:0 12px!important;border:1px solid #b9c4d3!important;border-radius:9px!important;background:#fff!important;color:#101828!important;font-size:14px!important}
.student-option-list{display:grid;gap:6px;max-height:260px;overflow:auto;padding-right:3px}
.student-option-list>label{display:flex;min-height:45px;align-items:center;gap:10px;margin:0!important;padding:8px 10px;border:1px solid #dce3ec;border-radius:9px;background:#fff;color:#253247;font-size:13px;font-weight:700;cursor:pointer}
.student-option-list>label:hover{border-color:#8eb4ea;background:#f4f8ff}
.student-option-list>label:has(input:checked){border-color:#2783de;background:#eaf3ff;box-shadow:0 0 0 1px #2783de}
.student-option-list input{flex:none;width:19px!important;height:19px!important;margin:0!important;accent-color:#2783de}
.student-option-list span{line-height:1.35;word-break:keep-all}
.student-picker>small{display:block;margin-top:8px;color:#667085;font-size:11px}
.editor-field[hidden]{display:none!important}
@media(max-width:600px){.student-picker{margin-left:-2px;margin-right:-2px;padding:8px}.student-option-list{max-height:320px}.student-option-list>label{min-height:50px;font-size:14px}}
@media(prefers-color-scheme:dark){.student-picker{border-color:rgba(255,255,255,.2);background:#242424}.student-picker-search,.student-option-list>label{border-color:rgba(255,255,255,.2)!important;background:#2a2a2a!important;color:#fff!important}.student-option-list>label:has(input:checked){border-color:#5e9fe8!important;background:#17345e!important}.student-picker>small{color:rgba(255,255,255,.65)}}


/* v3.7.7 compact student dropdown and attendance entry */
.student-picker{margin-top:7px;padding:0;overflow:visible;background:#fff}
.student-picker>summary{display:flex;min-height:46px;align-items:center;justify-content:space-between;padding:0 12px;list-style:none;color:#253247;font-size:14px;font-weight:700;cursor:pointer}
.student-picker>summary::-webkit-details-marker{display:none}
.student-picker>summary:after{content:'⌄';margin-left:12px;color:#667085;font-size:16px}
.student-picker[open]>summary{border-bottom:1px solid #dce3ec}
.student-picker[open]>summary:after{content:'⌃'}
.student-picker-panel{padding:9px;background:#f8fafc;border-radius:0 0 10px 10px}
.student-picker-search{margin-bottom:8px!important}
.attendance-event select{flex:none;max-width:58px;height:20px;padding:0 13px 0 4px;border:1px solid rgba(23,59,102,.25);border-radius:5px;background:#fff;color:#243b5a;font:700 7px/1 Arial,"Noto Sans KR",sans-serif}
.attendance-missing{border-color:#98a2b3;background:#f2f4f7}
.status-미등록{border-color:#98a2b3;background:#f2f4f7}
.attendance-missing strong{color:#667085}
@media(max-width:600px){.student-picker{padding:0}.student-picker-panel{padding:8px}.student-picker>summary{min-height:50px;font-size:14px}}
@media(prefers-color-scheme:dark){.student-picker{background:#2a2a2a}.student-picker>summary{color:#fff}.student-picker[open]>summary{border-color:rgba(255,255,255,.18)}.student-picker-panel{background:#242424}}
.student-roster-view{margin-top:7px;padding:8px 10px;border:1px solid #d0d5dd;border-radius:10px;background:#f2f4f7}
.student-roster-view ul{margin:0;padding:0;list-style:none;display:grid;gap:6px}
.student-roster-view li{min-height:46px;display:flex;align-items:center;padding:8px 12px;border:1px solid #dce3ec;border-radius:9px;background:#fff;color:#253247;font-size:14px;font-weight:700}
.student-roster-view p{margin:0;padding:10px 2px;color:#667085;font-size:14px}
@media(prefers-color-scheme:dark){.student-roster-view{border-color:rgba(255,255,255,.2);background:#2a2a2a}.student-roster-view li{border-color:rgba(255,255,255,.2);background:#272727;color:#fff}.student-roster-view p{color:rgba(255,255,255,.65)}}


/* v3.7.8 scheduled attendance placeholders and subject changes */
.attendance-meta{display:flex;align-items:center;justify-content:space-between;gap:4px;margin-top:3px}
.attendance-meta .attendance-subject-select{min-width:0;max-width:78px;height:18px;padding:0 12px 0 2px;border:0;background:rgba(255,255,255,.72);color:#4b5563;font-size:7px;font-weight:700}
.attendance-meta span{flex:none;margin:0;color:#4b5563;font-size:7px}
.attendance-status-select:has(option[value=""]:checked){color:#667085;background:#fff}
.attendance-missing{opacity:1}

/* v3.7.9 export-clean attendance text */
.subject-help{margin-top:0;color:#526174}


/* v3.8.0 attendance batch editing */
.report-export-toolbar [data-attendance-save]{background:#173a70;color:#fff;border-color:#173a70}
.report-export-toolbar [data-attendance-save]:disabled{background:#e7ebf0;color:#98a2b3;border-color:#d5dbe3;cursor:not-allowed}
.attendance-event.attendance-dirty{outline:2px solid #2783de;outline-offset:1px}
@media(max-width:760px){.report-export-toolbar [data-attendance-save]{order:2}.report-export-toolbar [data-report-action="attendance-png"]{order:3}}


/* v3.10.0 owner-only account management; existing styles above are unchanged. */
.account-toolbar{display:flex;gap:12px;margin:20px 0}.account-toolbar input{flex:1}.account-list{display:grid;gap:12px}.account-card{display:flex;justify-content:space-between;gap:18px;padding:18px;border:1px solid #dbe3ec;border-radius:16px;background:#fff}.account-card.disabled{opacity:.62}.account-card h3{margin:0 0 5px}.account-card h3 em{font-size:11px;color:#2563eb}.account-card p,.account-card small{display:block;margin:3px 0}.owner-protected{font-size:12px;color:#64748b}.account-editor{max-width:1100px}.account-basic{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.account-basic label,.account-editor label,#password-form label{display:grid;gap:6px}.permission-table{overflow:auto;border:1px solid #dbe3ec;border-radius:12px}.permission-row{display:grid;grid-template-columns:minmax(150px,1.5fr) repeat(6,minmax(60px,.55fr)) minmax(100px,.8fr);align-items:center;min-width:850px;border-top:1px solid #e5e7eb;padding:8px}.permission-row.head{border-top:0;background:#eff6ff}.permission-row>label{display:flex;justify-content:center}.permission-row>label span{display:none}#password-form{display:grid;gap:14px}@media(max-width:760px){.account-card{display:block}.account-card .record-actions{margin-top:12px}.account-basic{grid-template-columns:1fr}.account-toolbar{display:grid}}


/* v3.11.0 student portal */
.preview-picker{display:flex;gap:12px;align-items:end;margin:18px 0;padding:16px;background:#eff6ff;border-radius:14px}.preview-picker label{display:grid;gap:6px;flex:1}.student-portal-content{display:grid;gap:18px}.student-hero{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:24px;border-radius:20px;background:linear-gradient(135deg,#0f172a,#1d4ed8);color:#fff}.student-hero h2{font-size:32px;margin:5px 0}.student-hero>strong{font-size:34px;text-align:right}.student-hero>strong small{display:block;font-size:12px}.student-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.student-stat-grid article,.student-section{padding:18px;border:1px solid #dbe3ec;border-radius:16px;background:#fff}.student-stat-grid strong{display:block;font-size:28px;margin:8px 0}.student-section>header{display:flex;justify-content:space-between;align-items:center}.student-schedule-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.student-schedule-grid article,.student-history article{display:grid;grid-template-columns:90px 1fr 1fr;gap:10px;padding:12px;background:#f8fafc;border-radius:10px}.student-history,.student-progress-list{display:grid;gap:8px}.student-progress-list article{padding:14px;background:#f8fafc;border-radius:10px}.student-progress-list header{display:flex;justify-content:space-between}@media(max-width:700px){.preview-picker,.student-hero{display:grid}.student-stat-grid{grid-template-columns:repeat(2,1fr)}.student-schedule-grid{grid-template-columns:1fr}.student-history article{grid-template-columns:1fr}}

/* v3.11.3 student dashboard menu navigation */
.student-menu-focus{outline:3px solid rgba(37,99,235,.28);outline-offset:5px;scroll-margin-top:24px}.student-basic-grid article strong{font-size:16px;overflow-wrap:anywhere}

/* v3.11.4 account link picker */
#account-linked-help{display:block;margin-top:6px;color:#667085;font-size:11px;font-weight:400}

/* v3.12 role-first account issue and assigned-course portal */
.account-basic.role-first .wide{grid-column:1/-1}.instructor-course-list{display:grid;gap:16px}.instructor-course>header{align-items:center}.instructor-course>header span{color:#667085;font-size:12px}.assigned-students{margin-top:16px}.assigned-students h4{margin:0 0 10px}.assigned-students span{display:inline-block;margin:0 6px 6px 0;padding:7px 10px;border-radius:999px;background:#eef4ff;color:#1d4ed8;font-size:12px}.instructor-actions{display:flex;gap:8px;margin-top:16px}.instructor-actions button{min-height:42px;padding:0 14px;border:1px solid #c8d6ef;border-radius:9px;background:#edf3ff;color:#1d4ed8;font-weight:800}.instructor-entry{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px;padding:16px;border:1px solid #dbe4f0;border-radius:12px;background:#f8faff}.instructor-entry label{margin:0;color:#344054;font-size:12px;font-weight:800}.instructor-entry input,.instructor-entry select,.instructor-entry textarea{display:block;width:100%;margin-top:6px;padding:10px;border:1px solid #d0d5dd;border-radius:9px;background:#fff}.instructor-entry .wide,.instructor-entry .data-error,.instructor-entry .instructor-actions{grid-column:1/-1}.preview-note{color:#667085;font-size:12px}@media(max-width:600px){.instructor-entry{grid-template-columns:1fr}.instructor-entry .wide,.instructor-entry .data-error,.instructor-entry .instructor-actions{grid-column:auto}}

/* v3.13 complete student portal */
.student-home-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.student-home-grid>article{padding:16px;border:1px solid #e4e7ec;border-radius:13px;background:#fff}.student-home-grid h4{margin:0 0 10px}.student-home-grid p,.student-home-grid small{color:#667085}.home-rate{display:block;color:#2563eb;font-size:28px}.student-basic-strip{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.student-basic-strip span{padding:9px 12px;border-radius:9px;background:#f4f7fb;color:#475467;font-size:12px}.student-basic-strip b{margin-right:7px}.student-class-line{display:grid;grid-template-columns:90px 1fr auto;gap:5px 10px;align-items:center;padding:10px 0;border-bottom:1px solid #edf0f4}.student-class-line small{grid-column:2/-1}.student-schedule-grid.full article small{display:block;margin-top:8px;color:#667085}.upcoming-class-list{max-height:360px;overflow:auto}.student-history.compact{max-height:300px}.student-report-buttons{display:flex;gap:6px}.student-report-buttons button,.student-attendance-filters button{min-height:38px;padding:0 11px;border:1px solid #c9d7ee;border-radius:8px;background:#edf3ff;color:#1d4ed8;font-weight:800}.student-attendance-filters{display:grid;grid-template-columns:1.1fr 1fr 1fr auto;gap:8px;margin:16px 0;padding:12px;border:1px solid #e4e7ec;border-radius:12px;background:#f8fafc}.student-attendance-filters label{color:#475467;font-size:11px;font-weight:800}.student-attendance-filters select,.student-attendance-filters input{display:block;width:100%;min-height:38px;margin-top:5px;border:1px solid #d0d5dd;border-radius:8px;background:#fff}.student-report-page{padding:4px;background:#fff}.attendance-stats{grid-template-columns:repeat(4,1fr)}.attendance-calendar{margin:18px 0;border:1px solid #e4e7ec;border-radius:14px;overflow:hidden}.attendance-calendar>header{display:flex;justify-content:space-between;padding:14px;background:#f4f7fb}.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr)}.calendar-weekdays b{padding:9px;text-align:center;color:#667085;font-size:11px}.calendar-day{min-height:82px;padding:7px;border-right:1px solid #edf0f4;border-top:1px solid #edf0f4}.calendar-day:nth-child(7n){border-right:0}.calendar-day.today{background:#eff6ff}.calendar-day>b{display:block;margin-bottom:5px;font-size:11px}.student-status,.calendar-day span{display:block;margin:3px 0;padding:3px 4px;border-radius:5px;text-align:center;font-size:10px}.status-출석{background:#d9f5ef;color:#087c68}.status-지각{background:#fff1b8;color:#8a6500}.status-조퇴{background:#ffe3c2;color:#9a4d00}.status-결석{background:#ffe0e3;color:#b4232d}.status-보강{background:#dcecff;color:#175cd3}.status-휴강{background:#eceff3;color:#667085}.status-미확인,.status-예정{background:#f2e8ff;color:#6941c6}.formula-note{padding:12px;border-radius:9px;background:#eef8f3;color:#35634e;font-size:12px}.student-progress-card{padding:17px!important;border:1px solid #e4e7ec!important;border-radius:13px;background:#fff}.student-progress-card header{display:flex;justify-content:space-between}.student-progress-card h4{margin:14px 0 5px;font-size:12px}.student-photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:13px}.student-photo-grid figure{margin:0}.student-photo-grid img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:9px;background:#eef1f5}.student-photo-grid a{display:block;margin-top:5px;color:#2563eb;font-size:11px;text-align:center}.no-photo{color:#98a2b3!important;font-size:11px}.empty-line{color:#98a2b3}@media(max-width:700px){.student-home-grid{grid-template-columns:1fr}.student-attendance-filters{grid-template-columns:1fr 1fr}.student-attendance-filters button{align-self:end}.attendance-stats{grid-template-columns:repeat(2,1fr)}.calendar-day{min-height:66px;padding:4px}.calendar-day span{font-size:9px}.student-photo-grid{grid-template-columns:1fr 1fr}.student-class-line{grid-template-columns:76px 1fr}}

/* v3.14 role portals: appended only; v3.8 rules above remain byte-identical */
.instructor-record-list{display:grid;gap:12px}.instructor-record-card{border:1px solid #dbe3ee;border-radius:14px;padding:14px;background:#fff}.instructor-record-card header{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center}.instructor-record-card p{margin:8px 0;color:#475569}.instructor-record-card>button,.student-section>button,.student-section header>button,#admin-tools-content>button{border:0;border-radius:10px;background:#0f766e;color:#fff;padding:10px 14px;font-weight:700}.instructor-entry{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}.instructor-entry label{display:grid;gap:6px;font-weight:700}.instructor-entry input,.instructor-entry select,.instructor-entry textarea{width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:10px;background:#fff}.instructor-entry .wide{grid-column:1/-1}.instructor-record-card .student-photo-grid{margin-top:10px}.account-card small{display:block}.status-banner+ .module-grid button[id^="admin-"]{border-color:#7c3aed}@media(max-width:720px){.instructor-entry{grid-template-columns:1fr}.instructor-entry .wide{grid-column:auto}.instructor-record-card header{grid-template-columns:1fr}.student-report-buttons{flex-wrap:wrap}}

/* v3.14.1 cumulative sales */
.cumulative-sales{padding:22px;min-width:1000px}.sales-chart-row{display:grid;grid-template-columns:90px 1fr 210px;gap:12px;align-items:center;margin:9px 0}.sales-chart-row>div{height:24px;background:#e2e8f0;border-radius:8px;position:relative;overflow:hidden}.sales-chart-row i{position:absolute;left:0;height:50%;display:block}.sales-chart-row i.total{top:0;background:#0f766e}.sales-chart-row i.new{bottom:0;background:#f59e0b}.sales-chart-row span{text-align:right;font-size:12px}.cumulative-table-wrap{max-height:360px;overflow:auto}.cumulative-table{width:100%;border-collapse:collapse;font-size:11px}.cumulative-table th,.cumulative-table td{border:1px solid #cbd5e1;padding:6px;text-align:left}.cumulative-table th{background:#f1f5f9;position:sticky;top:0}

/* v3.14.3 account dashboard usability */
.account-view .account-list{display:grid;gap:12px}.account-view .account-card{box-shadow:0 8px 24px rgba(15,23,42,.06)}.permission-table{overflow-x:auto}.permission-row{min-width:720px}.permission-row b{position:sticky;left:0;background:inherit;z-index:1}.account-view .data-error:not(:empty){padding:10px 12px;border-radius:10px;background:#fff1f2}@media(max-width:720px){.account-toolbar{display:grid;grid-template-columns:1fr}.account-toolbar input,.account-toolbar button{width:100%}.account-card{align-items:flex-start}.account-card .record-actions{display:grid;width:100%}.account-card .record-actions button{width:100%}}
.instructor-scope-switch{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.instructor-scope-switch button,.section-actions button{border:1px solid #d9dce5;background:#fff;border-radius:10px;padding:9px 13px;cursor:pointer}.instructor-scope-switch button.active{background:#202b52;color:#fff;border-color:#202b52}.section-actions{display:flex;gap:8px;flex-wrap:wrap}.bulk-entry{border:2px solid #e3e7f1;background:#fbfcff}.bulk-student-list{display:grid;gap:10px;margin:14px 0}.bulk-student-row,.bulk-progress-row{border:1px solid #e0e4ed;border-radius:12px;background:#fff;padding:12px}.bulk-student-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.bulk-progress-row h4{margin:0 0 9px}.bulk-progress-row textarea,.bulk-progress-row input{display:block;width:100%;margin-top:8px;box-sizing:border-box}.bulk-task-grid{display:grid;gap:8px}.national-task-box{border:1px solid #e0e4ed;border-radius:12px;background:#fbfcff;padding:13px;margin:8px 0 14px}.national-task-box h4{margin:0 0 5px}.task-check{display:flex;align-items:flex-start;gap:8px;padding:8px;border-radius:8px;background:#fff;border:1px solid #e5e8ef}.task-check input{margin-top:3px}.task-check span{display:grid;gap:3px}.task-check small{color:#687087;line-height:1.4}.manual-progress-note{color:#687087;margin:6px 0}.bulk-progress-row .task-check{margin-bottom:6px}@media(max-width:640px){.bulk-student-row{align-items:stretch;flex-direction:column}.bulk-student-row select{width:100%}.section-actions{width:100%}.section-actions button{flex:1}}


/* v3.16 separated role pages */
.role-page-nav-wrap{margin:18px 0 14px}.role-page-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:8px;border:1px solid #dbe4f0;border-radius:14px;background:#f7f9fc}.role-page-nav button{min-height:62px;padding:8px 9px;border:1px solid #d7e0ec;border-radius:10px;background:#fff;color:#344054;text-align:left;cursor:pointer}.role-page-nav button:hover{border-color:#8eb4ea}.role-page-nav button.active{border-color:#2563eb;background:#eaf2ff;color:#1d4ed8;box-shadow:0 0 0 1px #2563eb}.role-page-nav button span,.role-page-nav button b,.role-page-nav button small{display:block}.role-page-nav button span{color:#98a2b3;font-size:9px;font-weight:800}.role-page-nav button b{margin-top:5px;font-size:12px}.role-page-nav button small{margin-top:3px;color:#667085;font-size:10px;line-height:1.25}.student-page[hidden],.instructor-page[hidden],.instructor-page-form[hidden]{display:none!important}.instructor-page-form{grid-column:1/-1}.instructor-page-form:not([hidden]){display:grid}.role-portal .student-section{scroll-margin-top:18px}@media(max-width:700px){.role-page-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.role-page-nav button{min-height:56px}.role-page-nav button small{font-size:9px}}@media(prefers-color-scheme:dark){.role-page-nav{border-color:rgba(255,255,255,.18);background:#242424}.role-page-nav button{border-color:rgba(255,255,255,.18);background:#272727;color:#fff}.role-page-nav button.active{background:#17345e;border-color:#5e9fe8}.role-page-nav button small{color:rgba(255,255,255,.65)}}

/* v3.16.1 timetable readability and instructor detail loading */
.student-class-line{display:grid;grid-template-columns:minmax(78px,.7fr) minmax(110px,1.25fr) minmax(150px,1.55fr) minmax(105px,1.15fr) minmax(120px,1.2fr);gap:8px 12px;align-items:center;min-width:0;padding:12px 0;border-bottom:1px solid #edf0f4;white-space:normal}
.student-class-line>*{min-width:0;overflow-wrap:anywhere}
.student-class-line .class-date{white-space:nowrap;color:#344054;font-variant-numeric:tabular-nums}
.student-class-line .class-subject{color:#172033}
.student-class-line .class-time{color:#475467;font-weight:700;white-space:nowrap}
.student-class-line .class-instructor,.student-class-line .class-room{color:#667085;font-size:12px}
.student-schedule-grid.full article.student-schedule-item{display:grid;grid-template-columns:minmax(55px,.65fr) minmax(110px,1.25fr) minmax(150px,1.45fr) minmax(110px,1.15fr) minmax(120px,1.2fr);gap:8px 12px;align-items:center;min-width:0;padding:13px;background:#f8fafc;border-radius:10px}
.student-schedule-grid.full article.student-schedule-item>*{min-width:0;overflow-wrap:anywhere}
.student-schedule-grid.full article.student-schedule-item>b{white-space:nowrap;color:#344054}
.student-schedule-grid.full article.student-schedule-item>span{color:#475467;font-size:12px;font-weight:700}
.student-schedule-grid.full article.student-schedule-item>small{display:block;margin:0;color:#667085;font-size:12px;white-space:normal}
.instructor-record-list>.loading-card{padding:18px;border:1px dashed #b7c8e2;border-radius:12px;background:#f7faff;color:#475467}
@media(max-width:760px){
 .student-class-line{grid-template-columns:minmax(70px,.7fr) minmax(110px,1.3fr);gap:7px 10px}
 .student-class-line .class-time,.student-class-line .class-instructor,.student-class-line .class-room{grid-column:2}
 .student-schedule-grid.full article.student-schedule-item{grid-template-columns:minmax(62px,.7fr) minmax(110px,1.3fr);gap:7px 10px}
 .student-schedule-grid.full article.student-schedule-item>span,.student-schedule-grid.full article.student-schedule-item>small{grid-column:2}
}
@media(prefers-color-scheme:dark){
 .student-class-line .class-date,.student-schedule-grid.full article.student-schedule-item>b{color:#e5e7eb}
 .student-class-line .class-subject{color:#fff}
 .student-class-line .class-time,.student-class-line .class-instructor,.student-class-line .class-room,.student-schedule-grid.full article.student-schedule-item>span,.student-schedule-grid.full article.student-schedule-item>small{color:rgba(255,255,255,.72)}
 .student-schedule-grid.full article.student-schedule-item{background:#272727}
 .instructor-record-list>.loading-card{border-color:rgba(255,255,255,.25);background:#272727;color:rgba(255,255,255,.8)}
}

/* v3.16.3 follow-up: timetable top alignment, compact admin cards, instructor student picker */
.student-class-line{align-items:start;padding:10px 0;line-height:1.35}.student-class-line .class-date{padding-top:1px}.student-class-line .class-subject,.student-class-line .class-time,.student-class-line .class-instructor,.student-class-line .class-room{align-self:start}
.admin-account-create{margin-bottom:18px;padding:14px;border:1px solid #dbe4f0;border-radius:12px;background:#f8faff}.admin-account-create-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.admin-account-create-actions{display:flex;flex-wrap:wrap;gap:8px}#admin-account-bulk{background:#fff;color:#2563eb;border:1px solid #2563eb}#issuer-view .view-head{align-items:flex-start}#issuer-bulk{flex:0 0 auto}.admin-account-create-head h3,.admin-account-create-head p{margin:0}.admin-account-create-head p{margin-top:4px;color:#667085;font-size:12px}.admin-account-create-head button{border:0;border-radius:8px;background:#2563eb;color:#fff;padding:8px 11px;font-weight:800}.admin-account-list-title{margin:16px 0 8px}.account-view .account-list{gap:8px}.account-view .account-card{align-items:center;gap:10px;padding:10px 12px;border-radius:11px;box-shadow:none}.account-view .account-card h3{margin:0 0 2px;font-size:14px}.account-view .account-card p,.account-view .account-card small{margin:1px 0;font-size:11px}.account-view .account-card .record-actions{display:flex;gap:6px;margin:0}.account-view .account-card .record-actions button{min-height:30px;padding:5px 8px;border:1px solid #d0d5dd;border-radius:7px;background:#fff;color:#344054;font-size:11px;font-weight:700}.manual-student-toggle{grid-column:1/-1;border:1px dashed #9db9e6;border-radius:9px;background:#edf5ff;color:#1d4ed8;padding:9px;font-weight:800}.manual-student-panel{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:12px;border:1px solid #cfe0f7;border-radius:10px;background:#f5f9ff}.manual-student-panel>b,.manual-student-panel>p{grid-column:1/-1}.manual-student-panel>b{color:#1d4ed8}.manual-student-panel label{font-size:11px}.bulk-search-label{grid-column:1/-1}.bulk-student-row,.bulk-progress-row{position:relative}.bulk-student-row{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center}.bulk-student-row .bulk-include,.bulk-progress-row .bulk-include{display:flex;align-items:center;gap:4px;font-size:11px;color:#475467;white-space:nowrap}.bulk-student-row select{min-height:32px;padding:5px 7px}.bulk-progress-row{display:grid;gap:8px}.bulk-progress-row h4{margin:0}.bulk-progress-row .compact-status{font-size:11px}.bulk-progress-row .compact-status select{margin-left:6px;padding:5px;border:1px solid #cbd5e1;border-radius:7px;background:#fff}.bulk-manual-panel{display:block}.manual-student-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}.manual-student-fields label{display:grid;gap:4px}.manual-student-fields input,.bulk-manual-panel textarea{width:100%;box-sizing:border-box;margin-top:4px;padding:8px;border:1px solid #cbd5e1;border-radius:8px}.bulk-manual-panel>label{display:block;margin-top:8px;font-size:11px}
@media(max-width:760px){.admin-account-create-head{align-items:stretch;flex-direction:column}.admin-account-create-head button{width:100%}.account-view .account-card{align-items:flex-start}.account-view .account-card .record-actions{width:auto}.account-view .account-card .record-actions button{width:auto}.manual-student-panel,.manual-student-fields{grid-template-columns:1fr}.bulk-student-row{grid-template-columns:auto 1fr}.bulk-student-row select{grid-column:2}.student-class-line{align-items:start}.student-class-line .class-time,.student-class-line .class-instructor,.student-class-line .class-room{padding-top:0}}
@media(prefers-color-scheme:dark){.admin-account-create{background:#242424;border-color:rgba(255,255,255,.18)}.admin-account-create-head p,.account-view .account-card p,.account-view .account-card small,.bulk-student-row .bulk-include,.bulk-progress-row .compact-status{color:rgba(255,255,255,.68)}.account-view .account-card .record-actions button{background:#272727;color:#fff;border-color:rgba(255,255,255,.18)}.manual-student-panel{background:#202d43;border-color:#496b9c}}

.student-search-results{display:flex;flex-wrap:wrap;gap:7px;grid-column:1/-1;min-height:4px}.student-search-results button{border:1px solid #93b4e6;border-radius:9px;background:#eff6ff;color:#174ea6;padding:8px 10px;text-align:left;font-weight:700;cursor:pointer}.student-search-results span{color:#667085;font-size:12px;padding:6px 0}.bulk-student-row[hidden]{display:none!important}

/* v3.16.5 follow-up: instructor attendance automation and search */
.schedule-picker-filters{grid-template-columns:minmax(115px,1.15fr) minmax(165px,1.55fr) minmax(115px,1.15fr)}
.schedule-option-list>label{grid-template-columns:24px 64px minmax(120px,1fr) minmax(92px,.82fr) minmax(150px,1.15fr);gap:9px}
.schedule-option-list>label strong{font-size:13px;text-align:center;white-space:nowrap}
.schedule-option-list>label b{min-width:0;font-size:12px}
.danger-button,.account-view .account-card .record-actions .danger-button{border-color:#fecaca!important;background:#fff1f2!important;color:#b42318!important}
@media(max-width:600px){.schedule-picker-filters{grid-template-columns:1fr 1.35fr 1fr}.schedule-option-list>label{grid-template-columns:22px 54px minmax(105px,1fr) 72px;gap:6px;padding:7px 6px}.schedule-option-list>label b,.schedule-option-list>label span{font-size:11px}}
@media(prefers-color-scheme:dark){.danger-button,.account-view .account-card .record-actions .danger-button{border-color:#7f1d1d!important;background:#3a1d22!important;color:#fecaca!important}}

@media(max-width:600px){.schedule-option-list{overflow-x:auto}.schedule-option-list>label{min-width:520px;grid-template-columns:22px 54px minmax(115px,1fr) minmax(82px,.8fr) minmax(135px,1.1fr)}}

.temp-password-field{display:grid;gap:6px;margin-top:12px;color:#344054;font-size:12px;font-weight:800}.temp-password-field input{width:100%;min-height:44px;padding:0 11px;border:1px solid #d0d5dd;border-radius:9px;background:#f8fafc;color:#101828;font:inherit}.temp-password-copy{display:grid;grid-template-columns:1fr auto;gap:8px}.temp-password-copy button,.manual-row-add,.manual-row-remove{min-height:40px;padding:0 12px;border:1px solid #9db4d1;border-radius:8px;background:#edf3ff;color:#183b66;font-weight:800;cursor:pointer}.temp-password-modal .modal-actions .primary-button{width:auto;margin-left:auto}.manual-student-row{display:grid;gap:8px;margin-top:9px;padding:10px;border:1px solid #dbe4f0;border-radius:9px;background:#fff}.manual-row-remove{justify-self:end;min-height:32px;padding:0 9px;color:#b42318;border-color:#fecaca;background:#fff1f2;font-size:11px}.manual-row-add{margin-top:9px;width:100%}
@media(max-width:760px){.temp-password-copy{grid-template-columns:1fr}.temp-password-copy button{width:100%}}
/* Instructor input separation: one module and one input mode visible at a time. */
.instructor-input-panel{margin-top:18px;padding:14px;border:1px solid #dbe4f0;border-radius:14px;background:#f8faff}.instructor-input-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.instructor-input-tabs button{border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#344054;padding:10px 14px;font-weight:800;cursor:pointer}.instructor-input-tabs button.active{border-color:#1d4ed8;background:#1d4ed8;color:#fff}.instructor-input-screen[hidden]{display:none!important}.instructor-input-screen h4{grid-column:1/-1;margin:0 0 4px;color:#172b4d}.instructor-input-screen .national-task-box{grid-column:1/-1}.instructor-input-screen .national-task-box h5{margin:0 0 5px;font-size:15px}.instructor-input-screen .report-help{grid-column:1/-1;margin:0}.instructor-input-screen .instructor-actions{grid-column:1/-1}.instructor-input-panel .instructor-entry{margin-top:0}.instructor-input-panel .bulk-student-list{max-height:none}.instructor-input-panel .bulk-student-row,.instructor-input-panel .bulk-progress-row{min-width:0}
@media(max-width:640px){.instructor-input-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.instructor-input-tabs button{padding:9px 5px;font-size:12px}.instructor-input-panel{padding:10px}}
.permission-bulk-actions{display:flex;gap:8px;justify-content:flex-end;padding:10px;border:1px solid #dbe3ec;border-bottom:0;border-radius:12px 12px 0 0;background:#f8fbff}.permission-bulk-actions button{min-height:36px;padding:0 12px;border:1px solid #9db4d1;border-radius:8px;background:#fff;color:#183b66;font-size:12px;font-weight:800;cursor:pointer}.permission-bulk-actions button[data-permission-all]{border-color:#2563eb;background:#2563eb;color:#fff}@media(max-width:600px){.permission-bulk-actions{justify-content:stretch}.permission-bulk-actions button{flex:1}}


/* v3.17.0 responsive workspace: layout-only overrides; mobile <=760px remains unchanged */
@media screen and (min-width:761px) and (max-width:1023px){
 .shell{display:block;min-height:100svh}
 .brand-panel{display:none}
 .auth-panel{min-height:100svh;padding:28px;align-items:flex-start}
 .auth-card{width:min(100%,680px);margin:auto}
 .workspace-mode .auth-panel{padding:24px}
 .workspace-mode .dashboard-card{width:min(100%,1100px);margin:0 auto;padding:30px}
 .workspace-mode .module-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .workspace-mode .data-view,.workspace-mode .role-portal,.workspace-mode .account-view{width:min(100%,1100px)}
 .workspace-mode .record-content{grid-template-columns:repeat(2,minmax(0,1fr))}
 .workspace-mode .role-page-nav{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media screen and (min-width:1024px){
 body.workspace-mode{background:#eef2f7}
 .workspace-mode .shell{display:block;min-height:100vh}
 .workspace-mode .brand-panel{display:none}
 .workspace-mode .auth-panel{display:block;min-height:100vh;padding:32px;background:linear-gradient(145deg,#eef3f9 0%,#f8fafc 48%,#eef2f7 100%)}
 .workspace-mode .dashboard-card{width:min(100%,1440px);margin:0 auto;padding:36px 40px;border:1px solid rgba(255,255,255,.92);border-radius:20px;background:rgba(255,255,255,.96);box-shadow:0 10px 34px rgba(15,23,42,.08)}
 .workspace-mode .data-view,.workspace-mode .role-portal,.workspace-mode .account-view{width:min(100%,1440px)}
 .workspace-mode .dash-head{align-items:center;padding-bottom:4px}
 .workspace-mode .dash-head h2{font-size:32px}
 .workspace-mode .status-banner{margin:24px 0}
 .workspace-mode .module-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
 .workspace-mode .module-grid button{min-height:126px;padding:20px;border-radius:12px}
 .workspace-mode .module-grid b{font-size:16px}
 .workspace-mode .module-grid small{font-size:12px;line-height:1.45}
 .workspace-mode .view-head{align-items:center}
 .workspace-mode .view-head h2{font-size:32px}
 .workspace-mode .search-form{grid-template-columns:minmax(320px,1fr) auto;margin:28px 0 16px}
 .workspace-mode .view-filters{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;padding:16px}
 .workspace-mode .records-toolbar{margin-top:18px}
 .workspace-mode .records-list{max-height:none;overflow:visible;gap:12px}
 .workspace-mode .record-card{padding:18px 20px}
 .workspace-mode .record-content{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 24px}
 .workspace-mode .record-card .record-title{grid-column:1/-1}
 .workspace-mode .weekly-card{padding:24px}
 .workspace-mode .schedule-lines{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .workspace-mode .schedule-line{min-height:56px}
 .workspace-mode .student-home-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .workspace-mode .student-stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .workspace-mode .role-page-nav{grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}
 .workspace-mode .role-page-nav button{min-height:68px;padding:10px 12px}
 .workspace-mode .role-page-nav button b{font-size:13px}
 .workspace-mode .student-section{padding:24px}
 .workspace-mode .instructor-entry{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:20px}
 .workspace-mode .instructor-entry .wide,.workspace-mode .instructor-entry .data-error,.workspace-mode .instructor-entry .instructor-actions{grid-column:1/-1}
 .workspace-mode .account-basic{grid-template-columns:repeat(3,minmax(0,1fr))}
 .workspace-mode .account-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 .workspace-mode .modal-card:not(.confirm-card){width:min(960px,calc(100vw - 64px))}
 .workspace-mode .profile-card{width:min(1200px,calc(100vw - 64px))}
 .workspace-mode .editor-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 .workspace-mode .paper-preview{padding:20px}
}
@media screen and (min-width:1600px){
 .workspace-mode .auth-panel{padding:40px 48px}
 .workspace-mode .dashboard-card{width:min(100%,1520px);padding:40px 48px}
 .workspace-mode .data-view,.workspace-mode .role-portal,.workspace-mode .account-view{width:min(100%,1520px)}
 .workspace-mode .module-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media screen and (min-width:761px) and (prefers-color-scheme:dark){
 body.workspace-mode,.workspace-mode .auth-panel{background:#191919}
 .workspace-mode .dashboard-card{border-color:rgba(255,255,255,.14);background:#202020;box-shadow:none}
}


/* v3.17.1 schedule, attendance and record presentation fixes */
.schedule-list,.schedule-record,.schedule-record-main,.schedule-students{min-width:0;max-width:100%}
.schedule-record{overflow:hidden}
.schedule-record-main{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(150px,.8fr) minmax(0,1fr);gap:14px;align-items:center}
.schedule-course,.schedule-location{min-width:0}
.schedule-course small,.schedule-location small{display:block;margin-bottom:5px;color:#98a2b3;font-size:10px;font-weight:800}
.schedule-course b,.schedule-location span{display:block;min-width:0;overflow-wrap:anywhere;white-space:normal}
.schedule-timing{display:flex;align-items:center;gap:10px;min-width:0}
.schedule-timing strong{flex:none}
.schedule-timing span{min-width:0;overflow-wrap:anywhere;white-space:normal}
.schedule-students{display:grid;grid-template-columns:70px minmax(0,1fr);gap:10px;margin-top:12px;padding:12px 14px;border-top:1px solid #edf1f6;border-radius:8px;background:#f8fafc;color:#475467;font-size:12px}
.schedule-students b{color:#344054}
.schedule-students span{overflow-wrap:anywhere;line-height:1.55}
.schedule-lines{min-width:0}
.schedule-line{min-width:0;white-space:normal}
.schedule-line-location{min-width:0}
.schedule-line-location span{display:block;white-space:normal;overflow-wrap:anywhere}
.attendance-event{display:grid;gap:3px;padding:5px}
.attendance-event>div{display:block}
.attendance-event .attendance-subject-select,.attendance-event .attendance-status-select{display:block;width:100%;max-width:none;height:20px}
.attendance-time-row span{margin:0;padding:2px 3px;color:#4b5563;font-size:7px;font-weight:700}
.attendance-status-row{margin-top:1px}
@media screen and (max-width:760px){
 .schedule-record-main{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
 .schedule-course{grid-column:1/-1}
 .schedule-timing,.schedule-location{align-self:start}
 .schedule-students{grid-template-columns:1fr;gap:5px;padding:10px}
 .schedule-line{grid-template-columns:34px minmax(0,1fr);gap:5px 9px;padding:10px}
 .schedule-line>strong{grid-row:1/4}
 .schedule-line-course,.schedule-line-time,.schedule-line-location{grid-column:2}
}
@media screen and (min-width:761px) and (max-width:1023px){
 .workspace-mode .schedule-lines{grid-template-columns:repeat(3,minmax(0,1fr))}
 .workspace-mode .schedule-line{display:grid;grid-template-columns:36px minmax(0,1fr);gap:6px 10px;align-content:start;white-space:normal}
 .workspace-mode .schedule-line>strong{grid-row:1/4}
 .workspace-mode .schedule-line-course,.workspace-mode .schedule-line-time,.workspace-mode .schedule-line-location{grid-column:2}
}
@media screen and (min-width:1024px){
 .workspace-mode .schedule-lines{grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch}
 .workspace-mode .schedule-line{display:flex;min-height:170px;flex-direction:column;align-items:stretch;gap:8px;padding:14px;white-space:normal}
 .workspace-mode .schedule-line>strong{width:34px;height:34px;margin-bottom:2px}
 .workspace-mode .schedule-line-course{font-size:15px;white-space:normal;overflow-wrap:anywhere}
 .workspace-mode .schedule-line-time{font-size:12px;white-space:normal}
 .workspace-mode .schedule-line-location{margin-top:auto;padding-top:9px;border-top:1px solid #dbe5f4}
 .workspace-mode .schedule-line-location span{font-size:11px;line-height:1.5}
}
@media(prefers-color-scheme:dark){
 .schedule-students{border-color:rgba(255,255,255,.12);background:#242424;color:rgba(255,255,255,.72)}
 .schedule-students b,.schedule-course b,.schedule-location span{color:#fff}
 .schedule-course small,.schedule-location small{color:rgba(255,255,255,.55)}
 .workspace-mode .schedule-line-location{border-color:rgba(255,255,255,.12)}
}

/* v3.17.2: destructive actions and blank scheduled attendance */
#editor-delete{margin-right:auto;min-height:44px;padding:0 16px;border:1px solid #fecaca;border-radius:9px;background:#fff1f2;color:#b42318;font-weight:800;cursor:pointer}.attendance-status-row{display:flex;align-items:center;gap:6px}.attendance-delete-button{min-height:26px;padding:0 7px;border:1px solid #fecaca;border-radius:6px;background:#fff1f2;color:#b42318;font-size:10px;font-weight:800;cursor:pointer}.attendance-missing .attendance-status-select{background:#fff;color:#667085}@media(max-width:760px){#editor-delete{flex:0 0 auto}.attendance-status-row{align-items:stretch}.attendance-delete-button{min-height:30px}}@media(prefers-color-scheme:dark){#editor-delete,.attendance-delete-button{border-color:#7f1d1d;background:#3a1d22;color:#fecaca}.attendance-missing .attendance-status-select{background:#272727;color:#d0d5dd}}


/* v3.17.3: balanced bulk registration workspace */
.bulk-entry{display:grid!important;grid-template-columns:1fr!important;gap:14px!important;width:100%;box-sizing:border-box;overflow:visible}
.bulk-entry>h4,.bulk-entry>.report-help,.bulk-entry>.bulk-toolbar,.bulk-entry>.bulk-list-heading,.bulk-entry>.bulk-student-list,.bulk-entry>.data-error{grid-column:1/-1!important;width:100%;box-sizing:border-box}
.bulk-toolbar{position:sticky;top:10px;z-index:8;display:grid;grid-template-columns:minmax(240px,1.35fr) minmax(190px,.75fr) minmax(190px,.7fr);gap:12px;align-items:end;padding:14px;border:1px solid #cfdcf0;border-radius:14px;background:rgba(255,255,255,.96);box-shadow:0 10px 26px rgba(30,64,175,.08);backdrop-filter:blur(10px)}
.bulk-toolbar label{display:grid;gap:7px;margin:0;color:#344054;font-size:12px;font-weight:800}
.bulk-toolbar select,.bulk-toolbar input{width:100%;min-height:48px;margin:0!important;padding:0 13px!important;border:1px solid #c8d4e5!important;border-radius:10px!important;background:#fff!important;box-sizing:border-box}
.bulk-save-button{display:grid;place-content:center;gap:2px;min-height:48px;padding:7px 16px;border:0;border-radius:10px;background:linear-gradient(135deg,#1d4ed8,#2563eb);color:#fff;font-weight:900;cursor:pointer;box-shadow:0 8px 18px rgba(37,99,235,.2)}
.bulk-save-button small{color:rgba(255,255,255,.78);font-size:10px;font-weight:600}
.bulk-list-heading{display:flex;align-items:center;justify-content:space-between;margin-top:3px;padding:0 2px}
.bulk-list-heading>div{display:grid;gap:3px}.bulk-list-heading b{color:#172b4d;font-size:14px}.bulk-list-heading span{color:#667085;font-size:11px}
.bulk-entry .bulk-student-list{display:grid;grid-template-columns:1fr;gap:10px;margin:0!important}
#instructor-attendance-bulk .bulk-student-row{grid-template-columns:auto minmax(180px,1fr) minmax(105px,.45fr) minmax(125px,.55fr);width:100%;box-sizing:border-box;justify-content:stretch}
#instructor-attendance-bulk .bulk-student-row>b{min-width:0;overflow-wrap:anywhere}
#instructor-attendance-bulk .bulk-student-row select{width:100%;box-sizing:border-box}
.bulk-progress-row{width:100%;box-sizing:border-box}
@media(min-width:1180px){#instructor-attendance-bulk .bulk-student-list{grid-template-columns:repeat(2,minmax(0,1fr))}#instructor-attendance-bulk .bulk-student-row{grid-template-columns:auto minmax(120px,1fr) minmax(88px,.48fr) minmax(105px,.58fr);gap:8px}}
@media(max-width:900px){.bulk-toolbar{grid-template-columns:1fr 1fr}.bulk-save-button{grid-column:1/-1}.bulk-toolbar{top:6px}}
@media(max-width:640px){.instructor-input-panel{overflow:hidden}.bulk-entry{padding:12px!important;margin:0!important}.bulk-toolbar{position:relative;top:auto;grid-template-columns:1fr;gap:10px;padding:11px;border-radius:12px}.bulk-save-button{grid-column:auto;min-height:50px}.bulk-save-button small{display:none}#instructor-attendance-bulk .bulk-student-row{display:grid;grid-template-columns:auto minmax(0,1fr)!important;gap:8px 10px;padding:11px}#instructor-attendance-bulk .bulk-student-row>b{align-self:center}#instructor-attendance-bulk .bulk-student-row select{grid-column:2!important;width:100%!important;margin:0!important}.bulk-entry .bulk-student-list{width:100%;min-width:0}.bulk-list-heading{padding-top:2px}}
@media(prefers-color-scheme:dark){.bulk-toolbar{border-color:rgba(255,255,255,.16);background:rgba(35,35,35,.96);box-shadow:0 10px 26px rgba(0,0,0,.25)}.bulk-list-heading b{color:#fff}.bulk-toolbar select,.bulk-toolbar input{border-color:rgba(255,255,255,.2)!important;background:#272727!important;color:#fff!important}}

/* v3.17.3: premium password change dialog */
.password-card{width:min(640px,calc(100vw - 32px));padding:34px;border:1px solid rgba(96,123,174,.2);border-radius:24px;background:linear-gradient(180deg,#fff 0%,#fbfcff 100%);box-shadow:0 32px 90px rgba(15,23,42,.28)}
.password-card header{padding-bottom:4px}.password-card .eyebrow{letter-spacing:.18em}.password-card h2{margin-top:5px;font-size:27px;letter-spacing:-.035em}.password-intro{margin:9px 0 24px;color:#667085;font-size:14px;line-height:1.6}
.password-card #password-form{display:grid;gap:18px}.password-card #password-form label{display:grid;gap:8px;color:#344054;font-size:13px;font-weight:850}.password-card #password-form label>span{display:block}.password-card #password-form input{width:100%;min-height:58px;padding:0 16px;border:1px solid #c8d2e1;border-radius:12px;background:#fff;color:#101828;font-size:16px;box-sizing:border-box;transition:border-color .16s,box-shadow .16s,background .16s}.password-card #password-form input:focus{outline:0;border-color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.13);background:#fff}.password-card #password-form label small{color:#7a8699;font-size:11px;font-weight:500;line-height:1.45}.password-card #password-error{min-height:18px;margin:0}.password-card #password-form>.primary-button{min-height:56px;margin-top:2px;border-radius:12px;font-size:15px;box-shadow:0 12px 24px rgba(37,99,235,.18)}
@media(max-width:640px){.password-card{width:calc(100vw - 24px);padding:26px 20px;border-radius:21px}.password-card h2{font-size:24px}.password-intro{margin-bottom:20px}.password-card #password-form{gap:16px}.password-card #password-form input{min-height:56px;font-size:16px}}
@media(prefers-color-scheme:dark){.password-card{border-color:rgba(255,255,255,.14);background:linear-gradient(180deg,#242424,#202020)}.password-card #password-form label{color:#f2f4f7}.password-card #password-form input{border-color:rgba(255,255,255,.2);background:#2a2a2a;color:#fff}.password-card #password-form input:focus{border-color:#7aa2ff;background:#2a2a2a}.password-intro,.password-card #password-form label small{color:rgba(255,255,255,.65)}}


/* v3.17.4 deletion confirmation, multi-award registration, attendance time selection */
.delete-confirm-modal{z-index:1200}.delete-confirm-card{max-width:520px}.delete-confirm-message{margin:8px 0 24px;color:#475569;line-height:1.65}.delete-confirm-card .modal-actions{justify-content:flex-end}.delete-confirm-card .danger-button{min-width:130px;background:#dc2626;color:#fff;border-color:#dc2626}.competition-common,.competition-awards{grid-column:1/-1;border:1px solid #dbe4f0;border-radius:18px;padding:20px;background:#f8fbff}.competition-common h3,.competition-awards h3{margin:0 0 14px}.competition-common-grid,.competition-award-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.competition-awards-head,.competition-award-group>header{display:flex;align-items:center;justify-content:space-between;gap:16px}.competition-awards-head p,.competition-award-group small{margin:4px 0 0;color:#64748b}.competition-award-group{margin-top:16px;padding:16px;border:1px solid #cbd5e1;border-radius:14px;background:#fff}.competition-award-group>header{margin-bottom:12px}.competition-award-fields .editor-field{margin:0}.attendance-time-row select{width:100%;min-width:0;border:1px solid #bfdbfe;border-radius:5px;background:#fff;padding:3px 5px;font:inherit;color:#1e3a5f}.attendance-event.attendance-dirty .attendance-time-row select{border-color:#2563eb;background:#eff6ff}
@media(max-width:720px){.competition-common-grid,.competition-award-fields{grid-template-columns:1fr}.competition-awards-head,.competition-award-group>header{align-items:flex-start;flex-direction:column}.competition-awards-head button{width:100%}}

/* v3.17.5 visual polish: competition groups, action buttons, mobile bulk alignment */
.edit-button,.instructor-record-actions .edit-button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;margin:0;padding:0 14px;border:1px solid #c9d8f3;border-radius:9px;background:linear-gradient(180deg,#f8fbff,#edf4ff);color:#1d4ed8;font-size:13px;font-weight:800;line-height:1;box-shadow:0 1px 2px rgba(15,23,42,.05);cursor:pointer}
.delete-button,.instructor-record-actions .delete-button,.record-actions [data-account-delete]{display:inline-flex;align-items:center;justify-content:center;min-height:40px;margin:0;padding:0 14px;border:1px solid #f3b8bd;border-radius:9px;background:#fff;color:#c0262d;font-size:13px;font-weight:800;line-height:1;box-shadow:0 1px 2px rgba(15,23,42,.04);cursor:pointer}
.edit-button:hover{border-color:#8fb0e8;background:#e7f0ff}.delete-button:hover,.record-actions [data-account-delete]:hover{border-color:#e58b94;background:#fff5f5}
.instructor-record-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px;padding-top:11px;border-top:1px solid #edf0f4}
.delete-confirm-card .modal-actions{gap:8px}.delete-confirm-card .danger-button{display:inline-flex;align-items:center;justify-content:center;min-width:112px;min-height:44px;padding:0 16px;border:1px solid #f3b8bd!important;border-radius:10px;background:#fff!important;color:#c0262d!important;font-size:13px;font-weight:850;box-shadow:0 1px 2px rgba(15,23,42,.04)}.delete-confirm-card .secondary-button{min-width:96px;color:#475467}
.competition-common-grid,.competition-award-fields{align-items:start;grid-template-columns:repeat(2,minmax(0,1fr))}.competition-award-fields>.editor-field{grid-column:auto!important;min-width:0;width:100%}.competition-award-fields .student-picker{width:100%;margin-top:7px}.competition-award-fields .student-picker>summary,.competition-award-fields .editor-field>select{min-height:46px}.competition-award-group>header [data-remove-award-group]{flex:0 0 auto;width:auto!important;height:32px!important;min-height:32px!important;padding:0 11px!important;border-radius:8px!important;white-space:nowrap;font-size:11px!important;line-height:1!important}
.attendance-delete-button{flex:0 0 auto;min-width:0!important;min-height:20px!important;height:20px;padding:0 5px!important;border-radius:5px;font-size:8px!important;line-height:1}.attendance-status-row{align-items:center!important}.attendance-status-row .attendance-status-select{min-width:0}
@media(max-width:720px){.competition-common-grid,.competition-award-fields{grid-template-columns:1fr}.competition-awards-head{align-items:stretch;flex-direction:column}.competition-awards-head button{width:100%}.competition-award-group>header{align-items:center;flex-direction:row}.competition-award-group>header>div{min-width:0}.competition-award-group>header [data-remove-award-group]{align-self:flex-start}.instructor-record-actions{justify-content:stretch}.instructor-record-actions button{flex:1}}
@media(max-width:640px){#instructor-attendance-bulk .bulk-student-row{grid-template-columns:auto minmax(0,1fr)!important;align-items:center}#instructor-attendance-bulk .bulk-student-row>b{grid-column:2;align-self:center}#instructor-attendance-bulk .bulk-student-row select{grid-column:1/-1!important;width:100%!important;margin:0!important;text-align:left}.attendance-delete-button{min-height:20px!important;height:20px!important}}
@media(prefers-color-scheme:dark){.edit-button,.instructor-record-actions .edit-button{border-color:#355b8f;background:#20334f;color:#9fc2ff}.delete-button,.instructor-record-actions .delete-button,.record-actions [data-account-delete],.delete-confirm-card .danger-button{border-color:#7f1d1d!important;background:#2a2022!important;color:#fda4af!important}}

/* v3.17.6 attendance card rhythm, instructor range search and cumulative rate */
.attendance-event{display:grid;gap:5px}
.attendance-event .attendance-subject-row,.attendance-event .attendance-time-row,.attendance-event .attendance-status-row,.attendance-event .attendance-delete-row{display:block;width:100%;margin:0}
.attendance-event .attendance-subject-select,.attendance-event .attendance-time-select,.attendance-event .attendance-status-select{display:block;width:100%!important;max-width:none!important;min-width:0;height:20px;box-sizing:border-box;margin:0;padding:0 13px 0 4px}
.attendance-event .attendance-delete-row{display:flex;align-items:center;min-height:20px}
.attendance-event .attendance-delete-button{width:auto!important;min-width:0!important;height:20px!important;min-height:20px!important;margin:0;padding:0 5px!important;font-size:7px!important;line-height:18px}
.instructor-record-filter{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:8px;margin:10px 0;padding:14px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.05)}
.instructor-record-filter label{display:grid;gap:4px;color:#64748b;font-size:11px;font-weight:600}
.instructor-record-filter input,.instructor-record-filter select{width:100%;height:36px;min-height:36px;box-sizing:border-box;padding:0 10px;border:1px solid #e2e8f0;border-radius:6px;background:#fff;color:#334155;font-size:13px}
.instructor-record-filter button{height:36px;min-height:36px;padding:0 14px;border:0;border-radius:6px;background:#2563eb;color:#fff;font-size:13px;font-weight:600;cursor:pointer}
.instructor-range-empty{display:grid;gap:4px;padding:16px;border:1px dashed #e2e8f0;border-radius:8px;background:#f8fafc;text-align:center}
.instructor-range-empty b{color:#334155;font-size:14px}.instructor-range-empty span{color:#64748b;font-size:12px}
.competition-event-card .competition-award-lines{display:grid;gap:6px;margin-top:8px;padding-top:8px;border-top:1px solid #e2e8f0}
.competition-award-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:6px 8px;border:1px solid #e2e8f0;border-radius:6px;background:#f8fafc}
.competition-award-line>b{font-size:13px;color:#0f172a}.competition-award-line>span{flex:1 1 140px;font-size:12px;color:#475569;white-space:pre-wrap;word-break:break-word}
.competition-award-line .record-actions{display:flex;align-items:center;gap:4px;flex-wrap:nowrap}
.cbt-analysis-subjects{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));margin:0 0 12px}
.cbt-analysis-card h4{margin:12px 0 6px;font-size:13px;color:#0f172a}
.instructor-attendance-rate{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 14px;padding:15px 17px;border:1px solid #b7d7c7;border-radius:12px;background:linear-gradient(135deg,#effaf4,#f8fffb)}
.instructor-attendance-rate div{display:flex;align-items:baseline;gap:12px}.instructor-attendance-rate span{color:#35634e;font-size:12px;font-weight:800}.instructor-attendance-rate strong{color:#087c68;font-size:26px}.instructor-attendance-rate p{margin:0;color:#527063;font-size:11px}
@media(max-width:1023px){.instructor-record-filter{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.instructor-record-filter{grid-template-columns:1fr}.instructor-record-filter button{width:100%}}
@media(max-width:640px){.instructor-attendance-rate{align-items:flex-start;flex-direction:column;gap:6px}.instructor-attendance-rate div{justify-content:space-between;width:100%}}
@media(prefers-color-scheme:dark){.instructor-record-filter,.instructor-range-empty{border-color:rgba(255,255,255,.18);background:#272727}.instructor-record-filter input,.instructor-record-filter select{border-color:rgba(255,255,255,.2);background:#202020;color:#fff}.instructor-range-empty b{color:#fff}.instructor-range-empty span{color:rgba(255,255,255,.68)}.instructor-attendance-rate{border-color:#285b47;background:#20372f}.instructor-attendance-rate span,.instructor-attendance-rate p{color:#b7dfcd}.instructor-attendance-rate strong{color:#6ee7b7}}

/* v3.17.7 homeroom progress photo/content layout and instructor self-delete */
.progress-record-card{display:block;overflow:hidden}
.progress-record-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px;padding-bottom:14px;border-bottom:1px solid #edf0f4}
.progress-record-meta p{margin:0;min-width:0}
.progress-record-meta b,.progress-record-meta span{display:block}
.progress-record-meta b{color:#98a2b3;font-size:10px}
.progress-record-meta span{margin-top:5px;overflow:hidden;color:#344054;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.progress-record-detail{display:grid;grid-template-columns:minmax(240px,.9fr) minmax(0,1.35fr);gap:18px;margin-top:15px}
.progress-photo-panel,.progress-content-panel{min-width:0;padding:14px;border:1px solid #e1e7ef;border-radius:12px;background:#fbfcfe}
.progress-photo-panel h4,.progress-content-panel h4{margin:0 0 11px;color:#344054;font-size:12px}
.progress-content-panel h5{margin:14px 0 5px;color:#667085;font-size:11px}
.progress-content-panel p{margin:0;color:#344054;font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.progress-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.progress-photo-grid figure{margin:0}.progress-photo-grid img{display:block;width:100%;aspect-ratio:4/3;border-radius:9px;background:#eef1f5;object-fit:cover}.progress-photo-grid a{display:block;margin-top:5px;color:#2563eb;font-size:10px;text-align:center}
.progress-photo-empty{display:grid;min-height:150px;place-items:center;border:1px dashed #cbd5e1;border-radius:9px;background:#fff;color:#98a2b3;font-size:11px}
@media(max-width:700px){.progress-record-meta{grid-template-columns:1fr 1fr;gap:10px}.progress-record-detail{grid-template-columns:1fr}.progress-photo-panel{order:1}.progress-content-panel{order:2}.progress-photo-grid{grid-template-columns:1fr 1fr}}
@media(prefers-color-scheme:dark){.progress-record-meta{border-color:rgba(255,255,255,.12)}.progress-record-meta span,.progress-photo-panel h4,.progress-content-panel h4,.progress-content-panel p{color:#f5f5f5}.progress-photo-panel,.progress-content-panel{border-color:rgba(255,255,255,.16);background:#272727}.progress-photo-empty{border-color:rgba(255,255,255,.18);background:#202020;color:rgba(255,255,255,.55)}}

/* v3.17.8 authenticated photo rendering and instructor progress media layout */
.instructor-progress-detail{grid-template-columns:minmax(220px,.85fr) minmax(0,1.4fr)}
.instructor-progress-card .progress-photo-panel,.instructor-progress-card .progress-content-panel{margin-top:0}
.instructor-progress-card .progress-content-panel h5{margin:14px 0 5px;color:#667085;font-size:11px}
.instructor-progress-card .progress-content-panel p{margin:0;white-space:pre-wrap}
@media(max-width:700px){.instructor-progress-detail{grid-template-columns:1fr}}

/* v3.17.9 responsive reports, larger attendance typography and export-safe controls */
.progress-paper-frame{position:relative;flex:none;margin:0 auto;width:794px;height:1123px}
.progress-paper-frame>.progress-paper{margin:0;transform-origin:top left}
.progress-report-mark{display:grid;justify-items:end;gap:5px;text-align:right}
.progress-report-mark>b{color:#183b66;font-size:12px;letter-spacing:.12em}
.progress-report-mark>small{padding:5px 8px;border-radius:99px;background:#eaf2ff;color:#174b88;font-size:9px;font-weight:800;white-space:nowrap}
.progress-report-list>article>header{display:flex;grid-template-columns:none}
.progress-report-list>article>header strong{width:100%;font-size:9px;letter-spacing:.01em}
.progress-report-photo dd{display:flex;align-items:center;justify-content:center;gap:6px;height:78px;color:#7b8798}
.progress-report-photo img{display:block;max-width:108px;width:100%;height:72px;border-radius:5px;object-fit:cover;background:#eef1f5}
.progress-report-photo small{font-size:7px;color:#667085}
.attendance-report-mark{display:grid;justify-items:end;gap:7px;text-align:right}
.attendance-paper .attendance-report-mark>b{color:#183b66;font-size:13px;letter-spacing:.13em}
.attendance-paper header span{font-size:11px;font-weight:800}
.attendance-paper header h1{font-size:23px}
.attendance-paper header p{font-size:11px}
.calendar-week b{font-size:12px}
.calendar-day>b{font-size:12px}
.attendance-event{font-size:10px}
.attendance-event strong{font-size:10px}
.attendance-event em,.more-events{font-size:9px}
.attendance-event .attendance-subject-select,.attendance-event .attendance-time-select,.attendance-event .attendance-status-select{height:22px;font-size:9px}
.attendance-delete-row{min-height:20px}
.report-capture-native .progress-paper-frame{width:794px!important;height:1123px!important}
.report-capture-native .progress-paper{transform:none!important}
@media(max-width:760px){.progress-preview{display:block;overflow:hidden}.progress-paper-frame{margin:0 auto 18px}.progress-report-list>article>header{grid-template-columns:none}}

/* v3.17.10 consistent filters, compact task checklists and aligned report cells */
.instructor-record-filter{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}
.instructor-record-filter label:first-child{grid-column:1/-1}
.instructor-record-filter button{grid-column:1/-1;width:100%}
.instructor-record-filter input{min-width:0}
.national-task-box [data-national-tasks],.editor-national-task-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-width:860px;margin:10px auto 0}
.national-task-box .task-check,.editor-national-task-grid .task-check{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:9px;min-height:42px;padding:8px 10px}
.national-task-box .task-check input,.editor-national-task-grid .task-check input{width:18px!important;height:18px!important;margin:0!important;padding:0!important;align-self:center}
.national-task-box .task-check span,.editor-national-task-grid .task-check span{display:block;min-width:0;line-height:1.35}
.task-select-all{display:flex;gap:8px;flex-wrap:wrap;grid-column:1/-1;margin:0 0 8px}.task-select-all button{border:1px solid #d9dce5;background:#fff;border-radius:10px;padding:8px 12px;cursor:pointer;min-height:40px}
.cbt-owner-student{display:grid;gap:6px;align-content:start}.cbt-owner-student select{min-height:44px;border:1px solid #d9dce5;border-radius:10px;padding:8px}
.editor-national-task-box{margin:0 0 10px;padding:13px;border:1px solid #dbe4f0;border-radius:12px;background:#f8faff}
.editor-national-task-box h4{margin:0;color:#172b4d}.editor-national-task-box p{margin:5px 0 0;color:#667085;font-size:11px}
.attendance-paper .calendar-grid{height:570px;grid-template-rows:repeat(var(--calendar-weeks),minmax(0,1fr))}
.attendance-paper .calendar-day{min-height:0;overflow:hidden}
.progress-report-photo{display:grid;grid-template-rows:auto minmax(0,1fr)}
.progress-report-photo dd{height:auto;min-height:86px;align-self:stretch}
.progress-report-photo img{align-self:center}
@media(max-width:640px){.instructor-record-filter{grid-template-columns:1fr 1fr}.national-task-box [data-national-tasks],.editor-national-task-grid{grid-template-columns:1fr}.national-task-box .task-check,.editor-national-task-grid .task-check{grid-template-columns:22px minmax(0,1fr);min-height:44px}}
@media(prefers-color-scheme:dark){.editor-national-task-box{border-color:rgba(255,255,255,.18);background:#272727}.editor-national-task-box h4{color:#fff}.editor-national-task-box p{color:rgba(255,255,255,.68)}}

/* v3.17.11 exact calendar rows and aligned instructor record metadata */
.attendance-paper .calendar-grid{grid-auto-rows:unset!important;align-content:start}
.attendance-paper .calendar-grid>.calendar-day{box-sizing:border-box!important;min-height:0!important;overflow:hidden}
.instructor-record-card>header{grid-template-columns:minmax(120px,.7fr) minmax(0,1.4fr) minmax(120px,.8fr);align-items:stretch;gap:8px}
.instructor-record-card>header>b,.instructor-record-card>header>strong,.instructor-record-card>header>span{display:flex;align-items:center;min-height:34px;padding:6px 9px;border:1px solid #dbe4f0;border-radius:8px;line-height:1.35;background:#f8faff}
.instructor-record-card>header>strong{color:#172b4d}.instructor-record-card>header>span{justify-content:flex-end;color:#475569}
@media(max-width:720px){.instructor-record-card>header{grid-template-columns:1fr 1fr}.instructor-record-card>header>span{grid-column:1/-1;justify-content:flex-start}}
@media(prefers-color-scheme:dark){.instructor-record-card>header>b,.instructor-record-card>header>strong,.instructor-record-card>header>span{border-color:rgba(255,255,255,.15);background:#272727;color:#fff}}

/* v3.17.12 structural calendar weeks: every visible week is an explicit fixed-height row */
.attendance-paper .calendar-grid{display:flex!important;flex-direction:column!important;height:570px!important;grid-template-columns:none!important;grid-template-rows:none!important;align-content:normal!important}
.attendance-paper .calendar-week-row{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;flex:0 0 auto!important;width:100%!important;overflow:hidden}
.attendance-paper .calendar-week-row>.calendar-day{height:100%!important;min-height:100%!important;max-height:100%!important;box-sizing:border-box!important;overflow:hidden!important}


/* v3.17.13 verified calendar geometry, aligned borders and readable report typography */
.attendance-paper .calendar-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:repeat(var(--calendar-weeks),minmax(0,1fr))!important;grid-auto-rows:unset!important;height:590px!important;min-height:590px!important;max-height:590px!important;border-top:1px solid #8c96a3!important;border-left:1px solid #8c96a3!important;align-content:stretch!important;overflow:hidden!important}
.attendance-paper .calendar-week-row{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;grid-template-rows:minmax(0,1fr)!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:hidden!important}
.attendance-paper .calendar-week-row>.calendar-day{height:100%!important;min-height:0!important;max-height:none!important;padding:4px!important;border:0!important;border-right:1px solid #8c96a3!important;border-bottom:1px solid #8c96a3!important;box-sizing:border-box!important;overflow:hidden!important}
.attendance-paper .calendar-day>b{margin-bottom:3px!important;font-size:15px!important;line-height:1.1!important}
.attendance-paper .attendance-event{gap:1px!important;margin-top:2px!important;padding:1px 3px!important;font-size:11px!important;line-height:1.35!important}
.attendance-paper .attendance-event .attendance-subject-select,.attendance-paper .attendance-event .attendance-time-select,.attendance-paper .attendance-event .attendance-status-select{height:20px!important;padding:0 17px 0 5px!important;font-size:11px!important;line-height:18px!important;font-weight:800!important}
.attendance-paper .attendance-event .attendance-delete-row{min-height:14px!important}
.attendance-paper .attendance-event .attendance-delete-button{height:14px!important;min-height:14px!important;padding:0 6px!important;font-size:9px!important;line-height:12px!important}
.attendance-paper .more-events{font-size:10px!important}


/* v3.17.14 deterministic calendar rows: no flex/grid track can resize a week */
.attendance-paper .calendar-grid{position:relative!important;display:block!important;height:590px!important;min-height:590px!important;max-height:590px!important;overflow:hidden!important}
.attendance-paper .calendar-week-row{position:absolute!important;left:0!important;right:0!important;top:var(--calendar-row-top)!important;height:var(--calendar-row-height)!important;min-height:var(--calendar-row-height)!important;max-height:var(--calendar-row-height)!important;display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;grid-template-rows:minmax(0,1fr)!important;overflow:hidden!important}
.attendance-paper .calendar-week-row>.calendar-day{height:var(--calendar-row-height)!important;min-height:var(--calendar-row-height)!important;max-height:var(--calendar-row-height)!important}


/* v3.17.15 CSP-safe calendar rows: external stylesheet only, no inline style dependency */
.attendance-paper .calendar-grid{position:relative!important;display:block!important;height:590px!important;min-height:590px!important;max-height:590px!important;overflow:hidden!important}
.attendance-paper .calendar-week-row{position:absolute!important;left:0!important;right:0!important;display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;grid-template-rows:minmax(0,1fr)!important;overflow:hidden!important}
.attendance-paper .calendar-weeks-4 .calendar-week-row{height:25%!important;min-height:25%!important;max-height:25%!important}
.attendance-paper .calendar-weeks-4 .calendar-week-row:nth-child(1){top:0!important}.attendance-paper .calendar-weeks-4 .calendar-week-row:nth-child(2){top:25%!important}.attendance-paper .calendar-weeks-4 .calendar-week-row:nth-child(3){top:50%!important}.attendance-paper .calendar-weeks-4 .calendar-week-row:nth-child(4){top:75%!important}
.attendance-paper .calendar-weeks-5 .calendar-week-row{height:20%!important;min-height:20%!important;max-height:20%!important}
.attendance-paper .calendar-weeks-5 .calendar-week-row:nth-child(1){top:0!important}.attendance-paper .calendar-weeks-5 .calendar-week-row:nth-child(2){top:20%!important}.attendance-paper .calendar-weeks-5 .calendar-week-row:nth-child(3){top:40%!important}.attendance-paper .calendar-weeks-5 .calendar-week-row:nth-child(4){top:60%!important}.attendance-paper .calendar-weeks-5 .calendar-week-row:nth-child(5){top:80%!important}
.attendance-paper .calendar-weeks-6 .calendar-week-row{height:16.6666667%!important;min-height:16.6666667%!important;max-height:16.6666667%!important}
.attendance-paper .calendar-weeks-6 .calendar-week-row:nth-child(1){top:0!important}.attendance-paper .calendar-weeks-6 .calendar-week-row:nth-child(2){top:16.6666667%!important}.attendance-paper .calendar-weeks-6 .calendar-week-row:nth-child(3){top:33.3333333%!important}.attendance-paper .calendar-weeks-6 .calendar-week-row:nth-child(4){top:50%!important}.attendance-paper .calendar-weeks-6 .calendar-week-row:nth-child(5){top:66.6666667%!important}.attendance-paper .calendar-weeks-6 .calendar-week-row:nth-child(6){top:83.3333333%!important}
.attendance-paper .calendar-week-row>.calendar-day{height:100%!important;min-height:100%!important;max-height:100%!important}

/* v3.17.16 manual makeup attendance, two entries per day and export-only real records */
.attendance-paper .attendance-add-row{position:absolute;top:4px;right:4px;z-index:3;margin:0!important}
.attendance-paper .attendance-add-row button{height:18px;min-height:18px;padding:0 5px;border:1px solid #8bb5e8;border-radius:5px;background:#eef6ff;color:#175cd3;font-size:8px;font-weight:800;line-height:16px;cursor:pointer}
.attendance-paper .attendance-add-row button[hidden]{display:none!important}
.attendance-paper .attendance-event{position:relative}
.attendance-paper .attendance-cancel-row{position:absolute!important;top:1px;right:1px;width:auto!important;z-index:4}
.attendance-paper .attendance-cancel-button{width:14px!important;height:14px!important;min-height:14px!important;padding:0!important;border:1px solid #f3a2a2!important;border-radius:50%!important;background:#fff!important;color:#c22!important;font-size:11px!important;line-height:12px!important}
.attendance-paper .multiple-attendance .attendance-event{gap:0!important;margin-top:1px!important;padding:1px 3px!important}
.attendance-paper .multiple-attendance .attendance-event .attendance-subject-select,.attendance-paper .multiple-attendance .attendance-event .attendance-time-select,.attendance-paper .multiple-attendance .attendance-event .attendance-status-select{height:14px!important;padding:0 14px 0 4px!important;font-size:10.5px!important;line-height:12px!important}
.attendance-paper .multiple-attendance .attendance-delete-row,.attendance-paper .multiple-attendance .attendance-cancel-row{position:absolute!important;top:1px;right:1px;min-height:12px!important;width:auto!important;z-index:4}
.attendance-paper .multiple-attendance .attendance-delete-button,.attendance-paper .multiple-attendance .attendance-cancel-button{width:12px!important;height:12px!important;min-height:12px!important;padding:0!important;overflow:hidden;font-size:0!important;line-height:10px!important}
.attendance-paper .multiple-attendance .attendance-delete-button::after{content:'×';font-size:10px}.attendance-paper .multiple-attendance .attendance-cancel-button::after{content:'×';font-size:10px}
.report-capture-native .attendance-add-row,.report-capture-native .attendance-delete-row,.report-capture-native .attendance-cancel-row,.report-capture-native .attendance-export-hidden,.report-capture-native .more-events{display:none!important}
@media print{.attendance-add-row,.attendance-delete-row,.attendance-cancel-row,.attendance-missing,.attendance-export-hidden,.more-events{display:none!important}}

/* v3.18.0 requested-only additions: fixed timetables, profile photo, qualification and Q-Net */

.fixed-timetable{display:grid;grid-template-columns:72px repeat(5,minmax(130px,1fr));margin-top:16px;border:1px solid #cfd8e5;border-radius:12px;overflow:auto;background:#fff}.timetable-corner,.timetable-day,.timetable-time,.timetable-cell{min-width:0;padding:9px;border-right:1px solid #dce3ec;border-bottom:1px solid #dce3ec}.timetable-corner,.timetable-day{background:#183b66;color:#fff;text-align:center}.timetable-time{display:grid;place-items:center;background:#eef4fb;color:#183b66}.timetable-cell{min-height:105px;background:#fff}.timetable-item{display:grid;gap:4px;margin-bottom:7px;padding:8px;border:1px solid #dbe5f4;border-left:3px solid #2783de;border-radius:8px;background:#f8fbff}.timetable-item:last-child{margin-bottom:0}.timetable-item b{font-size:12px}.timetable-item span,.timetable-item small{color:#667085;font-size:10px;line-height:1.35}.timetable-empty{display:grid;place-items:center;min-height:80px;color:#c4cbd4}.timetable-other{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.timetable-other span{padding:6px 9px;border-radius:7px;background:#f2f4f7;font-size:11px}.timetable-save-profile{margin-top:12px}
.profile-basic-head{display:grid;grid-template-columns:150px 1fr;gap:18px;align-items:start}.profile-basic-head>img,.profile-photo-empty{width:150px;aspect-ratio:3/4;border:1px solid #d9e0e8;border-radius:10px;object-fit:cover;background:#f3f5f7}.profile-photo-empty{display:grid;place-items:center;color:#98a2b3;font-size:11px}.profile-basic-head .profile-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.forecast-form table th:nth-child(1){width:7%}.forecast-form table th:nth-child(2){width:8%}.forecast-form table th:nth-child(3){width:8%}.forecast-form table th:nth-child(4){width:8%}.forecast-form table th:nth-child(5){width:5%}.forecast-form table th:nth-child(6){width:11%}.forecast-form table th:nth-child(7){width:12%}.forecast-form table th:nth-child(8){width:41%}.forecast-form td.memo{white-space:normal;overflow-wrap:anywhere}.forecast-final-total{display:flex;justify-content:space-between;align-items:center;margin-top:8px;padding:10px 14px;border:2px solid #183b66;background:#eef4fb;color:#183b66}.forecast-final-total strong{font-size:16px}
.management-list{max-height:none!important}.management-panel,.qnet-form{padding:18px;border:1px solid #dbe3ec;border-radius:14px;background:#fff}.management-panel>label,.qnet-form label{display:grid;gap:6px;color:#344054;font-size:12px;font-weight:800}.management-panel select,.qnet-form input{min-height:44px;padding:0 10px;border:1px solid #d0d5dd;border-radius:9px;background:#fff}.qualification-row{display:grid;grid-template-columns:minmax(220px,1fr) auto auto auto;gap:10px;align-items:center;margin-top:10px;padding:13px;border:1px solid #e1e6ee;border-radius:11px}.qualification-row div{display:grid;gap:4px}.qualification-row span{color:#667085;font-size:11px}.qualification-row button,.qnet-form button,.qnet-row button{min-height:38px;padding:0 12px;border:1px solid #9db4d1;border-radius:8px;background:#edf3ff;color:#183b66;font-weight:800}.qnet-form{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:10px;margin-bottom:14px}.qnet-form .wide,.qnet-form button{grid-column:1/-1}.qnet-list{display:grid;gap:9px}.qnet-row{display:grid;grid-template-columns:1.3fr .8fr .8fr 1.5fr auto;gap:10px;align-items:center;padding:14px;border:1px solid #e1e6ee;border-radius:11px;background:#fff}.qnet-row small{color:#667085}
@media(max-width:760px){.fixed-timetable{grid-template-columns:48px repeat(5,minmax(115px,1fr));font-size:11px}.timetable-corner,.timetable-day,.timetable-time,.timetable-cell{padding:6px}.profile-basic-head{grid-template-columns:92px 1fr;gap:10px}.profile-basic-head>img,.profile-photo-empty{width:92px}.qualification-row,.qnet-row{grid-template-columns:1fr}.qnet-form{grid-template-columns:1fr}.qnet-form .wide,.qnet-form button{grid-column:auto}}
@media(prefers-color-scheme:dark){.fixed-timetable,.timetable-cell,.management-panel,.qnet-form,.qnet-row{background:#272727;border-color:rgba(255,255,255,.2)}.timetable-item{background:#202d43}.timetable-time{background:#242f40;color:#fff}.profile-photo-empty{background:#272727;border-color:#4b5563}.qualification-row{border-color:#414a57}}

/* v3.19.1 Q-Net 시행계획 matrix; existing screens unchanged */
.qnet-plans{display:grid;gap:18px;margin-bottom:18px}.qnet-plan{overflow:hidden;border:1px solid #cbd5e1;border-radius:14px;background:#fff}.qnet-plan>header{padding:15px 20px;background:#06408d;color:#fff;font-size:20px;font-weight:900}.qnet-plan-scroll{overflow-x:auto;padding:24px 30px}.qnet-plan table{width:100%;min-width:720px;border-collapse:collapse;table-layout:fixed}.qnet-plan th,.qnet-plan td{height:58px;padding:9px;border-right:1px solid #d1d5db;border-bottom:1px solid #d1d5db;text-align:center}.qnet-plan thead th{background:#dce2eb;color:#050505;font-size:14px}.qnet-plan thead th:first-child,.qnet-plan tbody th{width:250px}.qnet-plan tbody th{background:#fff;font-size:13px;line-height:1.45}.qnet-plan tr:first-child th{border-top:1px solid #111}.qnet-plan th:first-child{border-left:0}.qnet-plan th:last-child,.qnet-plan td:last-child{border-right:0}.qnet-plan td i{color:#000;font-size:21px;font-style:normal}.qnet-list>h3{margin:18px 0 10px}
@media(max-width:760px){.qnet-plan>header{padding:12px 15px;font-size:17px}.qnet-plan-scroll{padding:14px 10px}.qnet-plan table{min-width:650px}.qnet-plan thead th:first-child,.qnet-plan tbody th{width:190px}}
@media(prefers-color-scheme:dark){.qnet-plan,.qnet-plan tbody th{background:#272727}.qnet-plan th,.qnet-plan td{border-color:rgba(255,255,255,.22)}.qnet-plan td i{color:#fff}}

/* v3.19.2 requested-only readability and dynamic timetable rows */
.timetable-no-classes{grid-column:1/-1;margin:0;border:0;border-radius:0}.qnet-plan tbody th b,.qnet-plan tbody th small{display:block}.qnet-plan tbody th small{margin-top:5px;color:#526174;font-size:11px;font-weight:600}.qnet-form select{min-height:44px;padding:0 10px;border:1px solid #d0d5dd;border-radius:9px;background:#fff}.qnet-row{grid-template-columns:1.1fr .45fr 1.4fr .8fr auto}
.forecast-split h2{font-size:14px}.forecast-split table th,.forecast-split table td{height:27px;padding:5px 6px;font-size:10.5px;line-height:1.35}.forecast-split .staff-name th{height:29px;font-size:12px}.forecast-split .subtotal td{font-size:11px}.forecast-form .sheet-staff h1{font-size:23px}.forecast-form .sheet-staff span{font-size:11px}
@media(max-width:760px){.qnet-row{grid-template-columns:1fr}.forecast-split table th,.forecast-split table td{font-size:10px}}


/* v3.21.0 additions: roster and official Q-Net sync */
.roster-toolbar,.qnet-sync-box{padding:18px 20px;border:1px solid #dbe5f1;border-radius:16px;background:#f8fbff;margin-bottom:18px}.roster-toolbar p,.qnet-sync-box p{margin:0;color:#50627a;line-height:1.6}.roster-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.roster-card{border:1px solid #dbe5f1;border-radius:18px;background:#fff;overflow:hidden}.roster-card>header{display:flex;align-items:flex-start;justify-content:space-between;padding:18px;background:#f7faff;border-bottom:1px solid #e5edf6}.roster-card h3{margin:3px 0 6px;font-size:20px}.roster-card header small{color:#1769d2;font-weight:800}.roster-card header p{margin:0;color:#66778e;font-size:13px}.roster-card header>strong{min-width:52px;text-align:center;padding:10px;border-radius:14px;background:#1769d2;color:#fff}.roster-students>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 18px;border-bottom:1px solid #eef2f7}.roster-students>div:last-child{border-bottom:0}.roster-students span{display:grid;gap:3px}.roster-students small{color:#78879a}.roster-students button{border:1px solid #efb4b4;background:#fff7f7;color:#b42318;border-radius:10px;padding:7px 12px;font-weight:800}.qnet-sync-box{display:grid;grid-template-columns:1fr auto;gap:10px 18px;align-items:center}.qnet-sync-box>div{display:grid;gap:4px}.qnet-sync-box span{color:#64748b;font-size:13px}.qnet-sync-box button{border:0;border-radius:12px;background:#1769d2;color:#fff;padding:11px 16px;font-weight:800}.qnet-sync-box button:disabled{background:#aab6c6}.qnet-sync-box p{grid-column:1/-1}.qnet-official-list{display:block}.qnet-official-list>article{display:grid;grid-template-columns:minmax(180px,1.5fr) minmax(170px,1fr) minmax(160px,1fr) minmax(150px,1fr);gap:12px;align-items:center;padding:13px 15px;border-bottom:1px solid #edf2f7}.qnet-official-list>article div{display:grid;gap:3px}.qnet-official-list>article span,.qnet-official-list>article small,.qnet-official-list>article em{font-size:12px;color:#6b7c93;font-style:normal}.qnet-official-list>article strong{font-size:13px}@media(max-width:800px){.roster-grid{grid-template-columns:1fr}.qnet-official-list>article{grid-template-columns:1fr}.qnet-sync-box{grid-template-columns:1fr}.qnet-sync-box button{width:100%}}

/* Version: 3.25.7 — F2MG / Refined Original
   원본 3.21.0 위에 적용하는 배포 디자인. 업무 JS와 서버는 수정하지 않음. */
@media screen {
  :root {
    --f3-bg:#f5f5f7; --f3-paper:#fff; --f3-ink:#1d1d1f;
    --f3-muted:#626874; --f3-blue:#1559ce; --f3-navy:#101b30;
    --f3-border:#e4e7ed; --f3-input:#858b96;
    --f3-shadow:0 2px 4px rgba(16,27,48,.025),0 18px 48px rgba(16,27,48,.055);
    --f3-font:'Pretendard',-apple-system,BlinkMacSystemFont,'Segoe UI','Noto Sans KR',sans-serif;
    --f3-ease:cubic-bezier(.22,1,.36,1); color-scheme:light;
  }
  /* 타이포그래피: 제목과 데이터의 위계 분리 */
  body,body.workspace-mode {margin:0;background:var(--f3-bg);color:var(--f3-ink);font:400 16px/1.65 var(--f3-font);-webkit-font-smoothing:antialiased;}
  button,input,select,textarea {font-family:var(--f3-font);}
  :is(.card-head,.dash-head,.view-head,.modal-card>header) h2,
  .workspace-mode :is(.dash-head,.view-head) h2 {margin:0;color:var(--f3-ink);font-size:clamp(28px,2.8vw,40px);font-weight:800;line-height:1.2;letter-spacing:-.045em;}
  .eyebrow {color:var(--f3-blue);font-size:12px;line-height:1.4;font-weight:700;letter-spacing:.14em;}
  .dash-head p,.card-head>p:last-child,.view-head p:last-child {color:var(--f3-muted);font-size:16px;line-height:1.65;}
  .dash-head .eyebrow,.view-head .eyebrow {color:var(--f3-blue);font-size:12px;margin:0 0 12px;}
  /* 로그인: 기존 좌측 브랜드 패널 복원 */
  .shell {display:grid;grid-template-columns:minmax(420px,.95fr) minmax(540px,1.05fr);min-height:100vh;min-height:100svh;}
  .brand-panel {display:flex;min-height:100svh;padding:52px 56px;color:#fff;background:radial-gradient(ellipse at 100% 95%,#17355b 0%,transparent 56%),var(--f3-navy);}
  .brand-panel:before,.brand-panel:after {border-color:rgba(255,255,255,.07);width:640px;height:640px;}
  .brand-panel:before {top:auto;bottom:-280px;right:-400px;}
  .brand-panel:after {top:auto;bottom:-390px;right:-280px;}
  .brand-top {gap:16px;}
  .logo-mark {flex:none;width:88px;box-shadow:none;border-radius:10px;}
  .logo-mark b {background:var(--f3-blue);}
  .product-label {font-size:11px;color:#b4c2da;letter-spacing:.13em;}
  .brand-copy {max-width:560px;padding:64px 0;}
  .brand-copy .eyebrow {color:#a2bce7;font-size:12px;letter-spacing:.13em;}
  .brand-copy h1 {font-size:clamp(48px,4.5vw,72px);font-weight:800;letter-spacing:-.055em;line-height:1.12;}
  .brand-copy h1 span {color:#a5c6ff;}
  .brand-copy>p:last-child {max-width:420px;margin-top:28px;color:#c3ccdb;font-size:17px;line-height:1.8;word-break:keep-all;}
  .signal-grid {gap:12px;grid-template-columns:repeat(3,minmax(0,1fr));}
  .signal-grid div {padding:16px 0;border:0;border-top:1px solid rgba(255,255,255,.2);border-radius:0;background:none;}
  .signal-grid strong {font-size:15px;}
  .signal-grid span {font-size:13px;color:#bac8dc;line-height:1.6;}
  .brand-foot {color:#abbcd3;font-size:12px;}
  .auth-panel {min-height:100svh;padding:48px 64px;background:#fff;align-items:center;}
  .auth-card {width:100%;max-width:460px;margin:auto;padding:12px 0;border:0;border-radius:0;background:transparent;color:var(--f3-ink);box-shadow:none;}
  .mobile-brand {display:none;}
  .card-head .eyebrow {margin-bottom:16px;}
  .card-head h2 {font-size:40px;}
  .card-head>p:last-child {margin:12px 0 0;}
  .role-picker {gap:10px;margin:28px 0 12px;}
  .role {--f3-hit:76px;min-height:76px;padding:12px 14px;gap:12px;border:1px solid var(--f3-input);border-radius:14px;background:#fff;color:var(--f3-ink);opacity:1;box-shadow:none;}
  .role:not(.active) {opacity:1;}
  .role b {font-size:15px;font-weight:650;letter-spacing:-.025em;}
  .role small {font-size:13px;line-height:1.6;color:var(--f3-muted);margin-top:2px;}
  .role-icon {width:36px;height:36px;border-radius:10px;background:#f0f2f5;color:#5d6676;font-size:13px;font-weight:700;}
  .role.active {border-color:var(--f3-blue);background:#f1f6ff;box-shadow:inset 0 0 0 1px var(--f3-blue);}
  .role.active .role-icon {background:var(--f3-blue);color:#fff;}
  .role.active small {color:var(--f3-blue);}
  .role-note {margin:0 0 24px;padding:0 2px;background:none;border-radius:0;color:var(--f3-muted);font-size:14px;line-height:1.65;min-height:24px;}
  form>label {font-size:14px;font-weight:600;color:var(--f3-ink);margin:16px 0 8px;}
  /* 업무 화면: 무거운 바깥 카드 제거, 제목/액션/콘텐츠를 구분 */
  .workspace-mode .shell {display:block;min-height:100svh;}
  .workspace-mode .brand-panel {display:none;}
  .workspace-mode .auth-panel {display:block;min-height:100svh;background:var(--f3-bg);padding:48px 48px 32px;}
  .dashboard-card,.workspace-mode .dashboard-card,
  .workspace-mode :is(.data-view,.role-portal,.account-view) {width:100%;max-width:1240px;margin:0 auto;padding:0;border:0;border-radius:0;background:transparent;color:var(--f3-ink);box-shadow:none;}
  .dash-head {align-items:center;gap:24px;padding:0 0 28px;border-bottom:1px solid #dce1e9;}
  .dash-head>div,.view-head>div {min-width:0;}
  .dash-head .secondary-button {margin:0;border-color:var(--f3-input);background:#fff;}
  .status-banner {margin:24px 0;padding:14px 18px;gap:14px;border-radius:12px;background:#eaf5ee;border:1px solid #cce1d3;}
  .status-banner p {font-size:14px;line-height:1.65;color:#24543a;}
  .module-grid,.workspace-mode .module-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
  .module-grid button,.workspace-mode .module-grid button {--f3-hit:152px;min-height:152px;padding:24px;border:1px solid var(--f3-border);border-radius:18px;background:#fff;color:var(--f3-ink);box-shadow:0 2px 4px rgba(16,27,48,.02);}
  .module-grid button>span {top:20px;right:22px;color:#697386;font-size:12px;letter-spacing:.04em;font-weight:650;}
  .module-grid b,.workspace-mode .module-grid b {margin:12px 0 0;font-size:19px;font-weight:700;letter-spacing:-.03em;line-height:1.35;}
  .module-grid small,.workspace-mode .module-grid small {margin-top:8px;color:var(--f3-muted);font-size:14px;line-height:1.6;word-break:keep-all;}
  .module-grid button::after {content:'↗';position:absolute;right:22px;bottom:22px;font:400 20px/1 var(--f3-font);color:#64738b;}
  .module-grid button small {max-width:calc(100% - 24px);}
  .module-grid button[data-module="students"] {background:var(--f3-navy);border-color:var(--f3-navy);color:#fff;}
  .module-grid button[data-module="students"] :is(span,small),.module-grid button[data-module="students"]::after {color:#c2d0e6;}
  .module-grid button[data-module="attendance"],.module-grid button[data-module="payment"] {background:#edf3fc;border-color:#d5e1f4;}
  .dash-foot {text-align:left;margin:24px 0 0;color:var(--f3-muted);font-size:13px;line-height:1.65;}
  /* 기능별 선형 아이콘: 이미지 요청 없이 CSS 마스크로 표현 */
  .module-grid button::before {content:"";display:block;width:26px;height:26px;flex:none;background:var(--f3-blue);-webkit-mask-image:var(--f3-icon);mask-image:var(--f3-icon);-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;}
  .module-grid button[data-module="students"]::before {background:#c2d0e6;}
  .module-grid button[data-module="students"] { --f3-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M16%2021v-2a4%204%200%200%200-4-4H6a4%204%200%200%200-4%204v2M22%2021v-2a4%204%200%200%200-3-3.87M16%203.13a4%204%200%200%201%200%207.75%22%2F%3E%3Ccircle%20cx%3D%229%22%20cy%3D%227%22%20r%3D%224%22%2F%3E%3C%2Fsvg%3E"); }
  .module-grid button[data-module="schedule"] { --f3-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%224%22%20width%3D%2218%22%20height%3D%2217%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M16%202v4M8%202v4M3%2010h18M8%2014h2M14%2014h2M8%2018h2M14%2018h2%22%2F%3E%3C%2Fsvg%3E"); }
  .module-grid button[data-module="studentSchedule"] { --f3-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%224%22%20width%3D%2218%22%20height%3D%2217%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M16%202v4M8%202v4M3%2010h18M8%2015l3%203%205-5%22%2F%3E%3C%2Fsvg%3E"); }
  .module-grid button[data-module="attendance"] { --f3-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%224%22%20width%3D%2214%22%20height%3D%2217%22%20rx%3D%222%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%222%22%20width%3D%226%22%20height%3D%224%22%20rx%3D%221%22%2F%3E%3Cpath%20d%3D%22m8%2014%203%203%205-6%22%2F%3E%3C%2Fsvg%3E"); }
  .module-grid button[data-module="attendanceView"] { --f3-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M3%209h18M9%209v12M13%2013h4M13%2017h4%22%2F%3E%3C%2Fsvg%3E"); }
  .module-grid button[data-module="progress"] { --f3-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2019.5A2.5%202.5%200%200%201%206.5%2017H20M6.5%203H20v19H6.5A2.5%202.5%200%200%201%204%2019.5v-14A2.5%202.5%200%200%201%206.5%203M8%207h8M8%2011h6%22%2F%3E%3C%2Fsvg%3E"); }
  .module-grid button[data-module="studentProgress"] { --f3-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%224%22%20y%3D%223%22%20width%3D%2216%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%2016v-3M12%2016V9M16%2016v-5%22%2F%3E%3C%2Fsvg%3E"); }
  .module-grid button[data-module="competition"] { --f3-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%225%22%2F%3E%3Cpath%20d%3D%22m8.5%2012-2%209%205.5-3%205.5%203-2-9%22%2F%3E%3C%2Fsvg%3E"); }
  .module-grid button[data-module="counsel"] { --f3-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21%2015a3%203%200%200%201-3%203H7l-5%204V5a3%203%200%200%201%203-3h13a3%203%200%200%201%203%203zM7%207h10M7%2011h7%22%2F%3E%3C%2Fsvg%3E"); }
  .module-grid button[data-module="prospect"] { --f3-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%2017%206-6%204%204%208-10M15%205h6v6%22%2F%3E%3C%2Fsvg%3E"); }
  .module-grid button[data-module="forecastReport"] { --f3-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%203v18h18M7%2014l4-4%204%203%206-7%22%2F%3E%3C%2Fsvg%3E"); }
  .module-grid button[data-module="payment"] { --f3-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222%22%20y%3D%224%22%20width%3D%2220%22%20height%3D%2216%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M2%209h20M6%2015h4%22%2F%3E%3C%2Fsvg%3E"); }
  .module-grid button[data-module="salesReport"] { --f3-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%203v18h18M7%2016v-3M12%2016V8M17%2016v-6%22%2F%3E%3C%2Fsvg%3E"); }
  .module-grid button[data-module="cumulativeSales"] { --f3-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%203v18h18M7%2017v-4M12%2017V9M17%2017V5%22%2F%3E%3C%2Fsvg%3E"); }
  .module-grid button[data-module="expiry"] { --f3-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M12%207v5l3%202%22%2F%3E%3C%2Fsvg%3E"); }
  /* 목록·검색·필터: 읽기 쉬운 데이터 밀도 */
  .view-head {align-items:center;gap:18px;margin-bottom:28px;}
  .back-button {width:48px;height:48px;border-radius:14px;border:1px solid var(--f3-input);background:#fff;color:var(--f3-ink);font-size:24px;}
  .search-form {background:var(--f3-bg);grid-template-columns:minmax(0,1fr) auto;gap:12px;margin:0 0 16px;}
  .search-form button {--f3-hit:52px;min-width:88px;padding:0 22px;border:0;border-radius:12px;background:var(--f3-blue);color:#fff;font-size:15px;font-weight:600;}
  .view-filters,.workspace-mode .view-filters {display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px;padding:20px;margin-bottom:24px;border:1px solid var(--f3-border);border-radius:16px;background:#fff;}
  .view-filters label {font-size:13px;color:var(--f3-muted);font-weight:600;}
  .student-toolbar {align-items:center;margin:24px 0 16px;gap:16px;}
  .student-toolbar p {color:var(--f3-muted);font-size:14px;line-height:1.6;}
  .student-toolbar>div {display:flex;flex-wrap:wrap;gap:8px;}
  .records-list,.workspace-mode .records-list {max-height:none;gap:14px;overflow:visible;}
  .record-card,.workspace-mode .record-card {display:block;padding:24px;border:1px solid var(--f3-border);border-radius:18px;background:#fff;color:var(--f3-ink);box-shadow:0 2px 4px rgba(16,27,48,.02);}
  .record-card .record-title {grid-column:1/-1;padding-bottom:12px;margin-bottom:0;border-bottom:1px solid var(--f3-border);}
  .record-card .record-title span {font-size:21px;font-weight:700;color:var(--f3-ink);letter-spacing:-.035em;}
  .record-card b {font-size:13px;font-weight:500;color:var(--f3-muted);}
  .record-card span {font-size:15px;line-height:1.65;color:var(--f3-ink);white-space:normal;overflow-wrap:anywhere;}
  .record-content,.workspace-mode .record-content {grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 28px;}
  .record-actions {margin-top:20px;padding-top:16px;border-color:var(--f3-border);gap:8px;}
  .student-card,.account-card,.student-section,.student-stat-grid article,.roster-card,.management-panel {border-color:var(--f3-border);border-radius:18px;background:#fff;color:var(--f3-ink);box-shadow:0 2px 4px rgba(16,27,48,.025);}
  .student-section,.workspace-mode .student-section {padding:24px;}
  .role-page-nav,.workspace-mode .role-page-nav {background:#fff;border-color:var(--f3-border);border-radius:16px;padding:8px;gap:8px;grid-template-columns:repeat(4,minmax(0,1fr));}
  .role-page-nav button {background:#fff;color:var(--f3-ink);border-color:var(--f3-border);border-radius:12px;}
  .role-page-nav button.active {background:#eef4ff;color:var(--f3-blue);border-color:var(--f3-blue);}
  .role-page-nav button small {color:var(--f3-muted);font-size:13px;}
  /* 공통 컨트롤: 터치·포커스·비활성 상태 */
  :is(button,[role="button"],summary):not(.paper-preview *, .report-paper *) {min-width:var(--f3-hit-width,44px)!important;min-height:var(--f3-hit,44px)!important;touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;transition:transform .2s var(--f3-ease),box-shadow .2s var(--f3-ease),background-color .18s,border-color .18s,filter .18s;}
  a[href]:not(.paper-preview *, .report-paper *) {display:inline-flex;align-items:center;min-width:44px;min-height:44px;touch-action:manipulation;-webkit-user-select:none;user-select:none;}
  :is(button,input,select,textarea,a[href],summary,[tabindex]):focus-visible {outline:3px solid var(--f3-blue);outline-offset:3px;}
  .primary-button,.add-button {--f3-hit:52px;min-height:52px;padding:0 20px;border:1px solid transparent;border-radius:12px;background:var(--f3-blue);color:#fff;font-size:15px;font-weight:600;box-shadow:0 3px 8px rgba(21,89,206,.13);}
  .add-button.compact {--f3-hit:44px;padding:0 16px;}
  .secondary-button,.mini-button,.detail-button,.edit-button,.text-button {border:1px solid var(--f3-input);border-radius:11px;background:#fff;color:var(--f3-ink);font-size:14px;font-weight:550;box-shadow:none;}
  .text-button {border:0;background:#f3f5f8;}
  .field-wrap .text-button {top:4px;right:4px;height:44px;min-width:56px;}
  .check {min-height:44px;gap:10px;-webkit-user-select:none;user-select:none;color:var(--f3-muted);font-size:14px;}
  .check input {width:20px;height:20px;accent-color:var(--f3-blue);}
  :is(.field-wrap,.search-form,.view-filters,.editor-fields,.instructor-entry,.account-toolbar,.qnet-form) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {min-width:0;min-height:52px;padding:12px 14px;border:1px solid var(--f3-input);border-radius:12px;background:#fff;color:var(--f3-ink);font:400 16px/1.65 var(--f3-font);box-shadow:none;}
  .password-wrap input {padding-right:82px;}
  input::placeholder,textarea::placeholder {color:#707783;opacity:1;}
  :is(input,textarea,[contenteditable="true"]) {-webkit-user-select:text;user-select:text;}
  .editor-field>span,.editor-fields label,.instructor-entry label {font-size:14px;color:var(--f3-ink);font-weight:600;}
  .editor-field small {font-size:13px;color:var(--f3-muted);line-height:1.65;}
  .editor-field textarea {min-height:120px;resize:vertical;}
  .editor-field input:disabled {background:#f1f3f6;color:#626874;}
  .delete-button,.danger-button,.instructor-record-actions .delete-button,.record-actions [data-account-delete],.account-view .account-card .record-actions .danger-button {background:#fff!important;border-color:#b42318!important;color:#b42318!important;box-shadow:none;}
  .data-error,.form-message {color:#b42318;line-height:1.65;}
  .form-message.success {color:#237146;}
  .security-note {margin-top:24px;color:var(--f3-muted);font-size:13px;line-height:1.65;}
  /* 모달: 명확한 헤더/폼/하단 액션 */
  .modal,.busy-overlay {background:rgba(11,20,38,.42);}
  @supports(backdrop-filter:blur(8px)) {.modal,.busy-overlay {-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);}}
  .modal {padding:32px;align-items:center;}
  .modal-card,.workspace-mode .modal-card:not(.confirm-card) {width:min(800px,100%);max-height:90vh;max-height:90dvh;padding:32px;border:1px solid rgba(255,255,255,.6);border-radius:20px;background:#fff;color:var(--f3-ink);box-shadow:0 32px 100px rgba(8,17,33,.2);}
  .confirm-card {max-width:600px;}
  .modal-card>header {gap:24px;padding-bottom:24px;border-bottom:1px solid var(--f3-border);}
  .modal-card>header h2 {font-size:30px;}
  .modal-card>header p:last-child {color:var(--f3-muted);font-size:14px;line-height:1.65;}
  .modal-card>header button {background:#f0f2f6;color:var(--f3-ink);border-radius:12px;}
  .editor-fields,.workspace-mode .editor-fields {grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:24px;}
  .modal-actions {position:static;margin:24px 0 0;padding:20px 0 0;background:#fff;border-top:1px solid var(--f3-border);gap:12px;flex-wrap:wrap;}
  .modal-actions .primary-button {--f3-hit-width:180px;width:auto;min-width:180px;gap:20px;}
  .confirm-list span {color:var(--f3-ink);}
  .busy-card {background:#fff;box-shadow:var(--f3-shadow);border-radius:18px;}
  .busy-card small {font-size:14px;color:var(--f3-muted);}
  .toast {bottom:calc(32px + env(safe-area-inset-bottom,0px));max-width:calc(100vw - 32px);background:var(--f3-navy);border-radius:12px;}
  .build-badge {position:static;display:block;width:fit-content;max-width:calc(100% - 32px);margin:0 16px calc(16px + env(safe-area-inset-bottom,0px)) auto;padding:4px 0;border:0;background:transparent;color:var(--f3-muted);box-shadow:none;font-size:11px;overflow-wrap:anywhere;}
}
/* PC hover와 모바일 active 분리 */
@media screen and (hover:hover) and (pointer:fine) {
  :is(button,[role="button"],summary):not(:disabled,[aria-disabled="true"],.paper-preview *, .report-paper *):hover {transform:translateY(-2px);filter:brightness(.99);}
  .module-grid button:hover {border-color:#91addd;box-shadow:0 8px 24px rgba(16,27,48,.09);}
}
@media screen and (hover:none),screen and (pointer:coarse) {
  :is(button,[role="button"],summary):not(.paper-preview *, .report-paper *):hover {transform:none;box-shadow:none;}
  :is(button,[role="button"],summary):not(:disabled,[aria-disabled="true"],.paper-preview *, .report-paper *):active {transform:scale(.98);filter:brightness(.93);}
}
/* 태블릿: 브랜드 정보는 유지하고 로그인에 집중 */
@media screen and (min-width:761px) and (max-width:1023px) {
  .shell {display:block;}
  .brand-panel {display:none;}
  .auth-panel {padding:48px 32px;}
  .mobile-brand {display:flex;align-items:center;gap:12px;margin-bottom:32px;color:var(--f3-muted);}
  .mobile-logo {display:grid;place-items:center;width:58px;height:36px;border-radius:10px;background:var(--f3-navy);color:#fff;}
  .workspace-mode .auth-panel {padding:32px;}
  .module-grid,.workspace-mode .module-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
/* 모바일: 바깥 여백 18px, 과도한 카드/긴 세로 메뉴 제거 */
@media screen and (max-width:760px) {
  .shell {display:block;}
  .brand-panel {display:none;}
  .auth-panel {min-height:100svh;padding:calc(24px + env(safe-area-inset-top,0px)) max(18px,env(safe-area-inset-right,0px)) calc(28px + env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px));align-items:flex-start;}
  .auth-card {padding:0;max-width:460px;}
  .mobile-brand {display:flex;align-items:center;gap:12px;margin-bottom:32px;color:var(--f3-muted);font-size:14px;}
  .mobile-logo {display:grid;place-items:center;width:58px;height:36px;border-radius:10px;background:var(--f3-navy);color:#fff;}
  .card-head h2 {font-size:32px;}
  .role {--f3-hit:76px;padding:10px;gap:8px;}
  .role-icon {width:32px;height:32px;}
  .role b {font-size:14px;}
  .role small {font-size:13px;}
  .workspace-mode .auth-panel {padding:calc(28px + env(safe-area-inset-top,0px)) max(18px,env(safe-area-inset-right,0px)) calc(24px + env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px));}
  .dashboard-card,.workspace-mode .dashboard-card {padding:0;border:0;border-radius:0;}
  .dash-head {display:flex;align-items:flex-start;gap:12px;padding-bottom:20px;}
  .dash-head h2,.workspace-mode .dash-head h2 {font-size:28px;}
  .dash-head>div {flex:1;}
  .dash-head .secondary-button {padding:0 12px;font-size:13px;}
  .dash-head p {font-size:14px;line-height:1.65;}
  .status-banner {margin:20px 0;padding:12px 14px;}
  .status-banner p {font-size:13px;}
  .module-grid,.workspace-mode .module-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
  .module-grid button,.workspace-mode .module-grid button {--f3-hit:174px;padding:18px 16px;border-radius:16px;}
  .module-grid b,.workspace-mode .module-grid b {margin-top:10px;font-size:16px;line-height:1.4;}
  .module-grid small,.workspace-mode .module-grid small {font-size:13px;line-height:1.6;max-width:100%;}
  .module-grid button>span {right:16px;top:14px;}
  .module-grid button::after {right:16px;bottom:14px;font-size:18px;}
  .module-grid button small {padding-bottom:14px;}
  .view-head {gap:12px;margin-bottom:24px;}
  .view-head h2,.workspace-mode .view-head h2 {font-size:28px;}
  .view-head p:last-child {font-size:14px;}
  .view-filters,.workspace-mode .view-filters {grid-template-columns:repeat(2,minmax(0,1fr));padding:16px;gap:12px;}
  .student-toolbar {align-items:flex-start;flex-direction:column;gap:12px;}
  .student-toolbar>div {width:100%;}
  .record-card,.workspace-mode .record-card {padding:20px;}
  .record-content,.workspace-mode .record-content {grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;}
  .record-actions {flex-wrap:wrap;justify-content:flex-start;}
  .record-actions button {flex:1;}
  .role-page-nav,.workspace-mode .role-page-nav {grid-template-columns:repeat(2,minmax(0,1fr));}
  .modal {padding:0;align-items:end;}
  .modal-card,.workspace-mode .modal-card:not(.confirm-card) {width:100%;max-height:94vh;max-height:94dvh;padding:24px 20px calc(20px + env(safe-area-inset-bottom,0px));border-radius:20px 20px 0 0;}
  .modal-card>header {padding-bottom:20px;gap:12px;}
  .modal-card>header h2 {font-size:28px;}
  .editor-fields,.workspace-mode .editor-fields {grid-template-columns:1fr;gap:16px;margin-top:20px;}
  .editor-field.wide {grid-column:auto;}
  .modal-actions {margin-top:20px;padding-top:20px;}
  .modal-actions>* {flex:1;}
  .modal-actions .primary-button {--f3-hit-width:44px;min-width:0;gap:16px;}
  .timetable-scroll,.qnet-plan-scroll,.cumulative-table-wrap {max-width:100%;overflow-x:auto;}
}

/* 넓은 화면의 목록은 컴팩트한 데이터 행으로 구성 */
@media screen and (min-width:1024px) {
  .module-grid,.workspace-mode .module-grid {grid-template-columns:repeat(4,minmax(0,1fr));}
  .records-list>.record-card:not(.progress-record-card),.workspace-mode .records-list>.record-card:not(.progress-record-card) {padding:20px 24px;}
  .record-card:not(.progress-record-card) .record-content,.workspace-mode .record-card:not(.progress-record-card) .record-content {grid-template-columns:minmax(100px,1fr) repeat(5,minmax(0,1fr));gap:20px;align-items:start;}
  .record-card:not(.progress-record-card) .record-title {grid-column:auto;margin:0;padding:0;border:0;}
  .record-card:not(.progress-record-card) .record-title span {font-size:19px;line-height:1.4;}
  .record-card:not(.progress-record-card) .record-actions {margin-top:16px;padding-top:12px;}
}
@media screen and (prefers-reduced-motion:reduce) {
  *,*::before,*::after {animation:none!important;transition:none!important;scroll-behavior:auto!important;}
  :is(button,[role="button"],summary):is(:hover,:active) {transform:none!important;}
}

/* Version: 3.25.7 — White / Graphite / Champagne Glass */
@media screen {
 :root {--f3-bg:#f0efed;--f3-ink:#202124;--f3-muted:#626266;--f3-blue:#785b27;--f3-navy:#202124;--f3-border:rgba(55,50,41,.1);--f3-input:#84817a;--f3-shadow:0 2px 4px #24211c04,0 20px 55px #24211c0c;}
 body,body.workspace-mode {background:#f0efed;}
 .workspace-mode .auth-panel {background:radial-gradient(ellipse at 85% 5%,#d7c8ac55,transparent 40%),radial-gradient(ellipse at 0% 90%,#fff9,transparent 52%),#f0efed;}
 .brand-panel {background:radial-gradient(ellipse at 90% 85%,#4b463a,transparent 70%),#17181a;}
 .brand-copy h1 span {color:#d8c28f;}
 .brand-copy .eyebrow {color:#ccb78a;}
 .logo-mark b {background:#202124;}
 .auth-panel {background:rgba(255,255,255,.76);}
 .module-grid button,.workspace-mode .module-grid button,.record-card,.workspace-mode .record-card,.view-filters,.workspace-mode .view-filters,.student-card,.student-section,.account-card,.roster-card,.role-page-nav {background:rgba(255,255,255,.72);border-color:rgba(255,255,255,.88);box-shadow:inset 0 1px 0 #fff,0 10px 32px #2b241807;}
 .module-grid button[data-module="students"] {background:linear-gradient(145deg,#262729,#141517);border-color:#2b2b2c;color:#fff;box-shadow:0 14px 30px #23242720;}
 .module-grid button[data-module="students"] :is(span,small),.module-grid button[data-module="students"]::after {color:#ded3bd;}
 .module-grid button[data-module="students"]::before {background:#dcc896;}
 .module-grid button[data-module="attendance"],.module-grid button[data-module="payment"] {background:rgba(234,227,213,.75);border-color:#e7dfcf;}
 .role.active,.role-page-nav button.active {background:#f6f1e7;border-color:#92733b;color:#5f481d;box-shadow:inset 0 0 0 1px #92733b;}
 .role.active .role-icon {background:#202124;color:#ead8b2;}
 .primary-button,.search-form button,.add-button {background:#202124;color:#fff;box-shadow:0 4px 10px #19191b16;}
 .status-banner {background:rgba(245,246,243,.78);border-color:#d9dfd1;}
 .status-banner>span {background:#456b4c;box-shadow:0 0 0 5px #456b4c12;}
 .status-banner p {color:#37513c;}
 @supports(backdrop-filter:blur(18px)) {.auth-panel,.module-grid button,.record-card,.view-filters,.student-section,.role-page-nav,.fs-panel,.fs-controls,.fs-stat {-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);}}
 .fs-sales {--fs-total:#242528;--fs-gold:#a6894e;--surface:#f2f0e9;--border:#dbd9d2;--grid:#e9e7e0;--text:#242426;--muted:#666466;--tooltip-bg:#fff;--content-secondary:#626266;--shadow-elevated:0 8px 24px #19191915;--border-strong:#bdb8ae;--content-primary:#242426;--content-tertiary:#69676b;font-family:var(--f3-font);}
 .fs-hero {display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:24px;padding:32px 0;border-top:1px solid #d9d6cf;border-bottom:1px solid #d9d6cf;}
 .fs-eyebrow {margin:0 0 12px;color:#755923;font-size:12px;font-weight:650;letter-spacing:.15em;}
 .fs-hero h2 {margin:0;color:#202124;font-size:clamp(27px,3vw,38px);font-weight:750;letter-spacing:-.05em;line-height:1.25;}
 .fs-hero p:last-child {margin:12px 0 0;color:#656369;font-size:14px;}
 .fs-mode,.fs-grain {display:flex;gap:4px;padding:5px;background:#e4e2dd;border:1px solid #d9d5cc;border-radius:12px;flex:none;}
 .fs-mode button,.fs-grain button {padding:0 14px;border:0;border-radius:8px;background:transparent;color:#626266;font:550 14px/1.4 var(--f3-font);}
 .fs-mode button[aria-pressed="true"],.fs-grain button[aria-pressed="true"] {background:#fff;color:#262626;box-shadow:0 2px 6px #24211c0c;}
 .fs-controls {display:flex;align-items:center;gap:20px;padding:20px 24px;margin:0 0 24px;border:1px solid #ffffffcf;border-radius:16px;background:#ffffff88;}
 .fs-controls label {display:grid;gap:6px;min-width:180px;color:#626266;font-size:13px;}
 .fs-controls select {width:100%;min-height:44px;border:1px solid #84817a;border-radius:10px;padding:8px 12px;background:#ffffffe6;color:#242426;font:400 16px var(--f3-font);}
 .fs-controls p {margin:0 0 0 auto;color:#626266;font-size:13px;line-height:1.65;}
 .fs-stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 24px;}
 .fs-stat {display:grid;gap:12px;padding:24px;border:1px solid #ffffffe0;border-radius:18px;background:#ffffffae;box-shadow:0 12px 35px #24211c05;}
 .fs-stat>span {color:#666466;font-size:14px;}
 .fs-stat strong {color:#202124;font-size:clamp(22px,2.1vw,30px);line-height:1.2;font-weight:700;letter-spacing:-.045em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
 .fs-stat small {color:#666466;font-size:13px;line-height:1.65;}
 .fs-stat-featured {background:linear-gradient(135deg,#303133,#17181a);border-color:#343334;box-shadow:0 16px 38px #27272818;}
 .fs-stat-featured strong {color:#fff;}
 .fs-stat-featured>span,.fs-stat-featured small {color:#e1d4b9;}
 .fs-chart-grid {display:grid;grid-template-columns:1fr 1fr;gap:24px;}
 .fs-panel {padding:24px;margin-bottom:24px;border:1px solid #ffffffe0;border-radius:18px;background:#ffffffc4;box-shadow:0 14px 40px #24211c06;min-width:0;}
 .fs-panel-head {display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:20px;}
 .fs-panel-head h3 {margin:0;color:#252525;font-size:18px;font-weight:650;letter-spacing:-.025em;}
 .fs-panel-head>span {color:#666466;font-size:12px;text-align:right;}
 .fs-sales .legend {display:flex;gap:16px;flex-wrap:wrap;margin:0 0 12px;color:#666466;font-size:13px;}
 .fs-key {display:inline-block;width:10px;height:10px;margin-right:6px;border-radius:2px;}
 .fs-key-total {background:var(--fs-total);}.fs-key-new {background:var(--fs-gold);}
 .fs-sales .plot {position:relative;width:100%;min-width:0;}
 .fs-sales .plot svg {display:block;width:100%;height:292px;}
 .fs-sales .axis-line {stroke:#b8b3a8;stroke-width:1;}.fs-sales .grid-line {stroke:#e9e7e0;stroke-width:1;}
 .fs-sales .tick-text,.fs-sales .x-text {font-size:12px;fill:#646266;font-family:var(--f3-font);}
 .fs-sales .data-mark {outline:none;}.fs-sales .data-mark:focus-visible {outline:2px solid #755923;outline-offset:2px;}
 .fs-sales .chart-tooltip {position:absolute;z-index:2;max-width:min(320px,calc(100% - 8px));padding:12px;border:1px solid #bdb8ae;border-radius:10px;background:#fff;box-shadow:0 8px 24px #19191915;color:#242426;font:400 13px/1.65 var(--f3-font);pointer-events:none;visibility:hidden;opacity:0;}
 .fs-sales .chart-tooltip[data-visible="true"] {visibility:visible;opacity:1;}
 .fs-sales .tip-title {margin-bottom:6px;font-weight:650;}
 .fs-sales .tip-row {display:grid;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:8px;min-width:180px;}
 .fs-sales .tip-key {width:8px;height:8px;}.fs-sales .tip-value {font-variant-numeric:tabular-nums;white-space:nowrap;}
 .fs-table-scroll {overflow-x:auto;max-width:100%;}
 .fs-table {width:100%;min-width:740px;border-collapse:collapse;color:#242426;font-size:14px;table-layout:auto;}
 .fs-table caption {text-align:left;margin-bottom:12px;color:#666466;font-size:13px;}
 .fs-table th,.fs-table td {padding:15px 12px;border:0;border-bottom:1px solid #e8e4dc;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;}
 .fs-table th:first-child {text-align:left;}
 .fs-table thead {background:#f3f0e8;color:#5c5750;font-weight:550;}
 .fs-table tbody tr:last-child>* {border:0;}
 .fs-table tbody th {font-weight:600;}
 .fs-method {margin:0 0 24px;font-size:13px;color:#626266;line-height:1.75;}
 .fs-warning {padding:16px 20px;border:1px solid #b19a67;border-radius:12px;background:#fff7e6;color:#6c4f20;font-size:14px;}
 .fs-pager {display:flex;justify-content:flex-end;gap:12px;margin:-8px 0 24px;}
 .fs-pager button,.fs-export button {padding:0 16px;border:1px solid #85817a;border-radius:10px;background:#ffffffd9;color:#242426;font:550 14px var(--f3-font);}
 .fs-pager button:disabled {opacity:.45;}
 .fs-export {display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:16px 20px;border:1px solid #ffffffd9;border-radius:16px;background:#ffffffb0;margin-bottom:16px;}
 .fs-export b {margin-right:auto;font-size:15px;}
 .fs-print-preview {display:flex;flex-direction:column;gap:24px;padding:24px;max-width:100%;overflow:auto;background:#e6e4df;border-radius:16px;}
 .fs-print-page.report-paper.landscape {width:1123px;height:794px;min-width:1123px;padding:0;margin:0 auto;border:0;background:#fff;box-shadow:0 8px 24px #24211c15;}
 .fs-print-page>svg {display:block;width:1123px;height:794px;}
 .fs-sales[data-mode="analysis"] .fs-report,.fs-sales[data-mode="report"] .fs-analysis {display:none;}
 .fs-empty {padding:72px 16px;text-align:center;color:#626266;font-size:14px;}
 .fs-sales .sr-only {position:absolute;display:block;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);contain:strict;white-space:nowrap;}
 @media(max-width:1100px) {.fs-stats{grid-template-columns:repeat(2,minmax(0,1fr));}.fs-chart-grid{grid-template-columns:1fr;}}
 @media(max-width:760px) {
  .fs-hero {flex-direction:column;align-items:flex-start;padding:24px 0;gap:20px;}
  .fs-hero h2 {font-size:28px;}.fs-mode{width:100%;}.fs-mode button{flex:1;padding:0 8px;}
  .fs-controls {padding:18px;flex-wrap:wrap;gap:16px;}.fs-controls label{min-width:0;flex:1 1 100%;}.fs-grain{width:100%;}.fs-grain button{flex:1;}.fs-controls p{margin:0;font-size:13px;}
  .fs-stats {gap:12px;}.fs-stat {padding:18px 16px;gap:10px;}.fs-stat strong{font-size:21px;}.fs-stat small{font-size:12px;}
  .fs-panel {padding:20px 16px;}.fs-panel-head{display:block;margin-bottom:16px;}.fs-panel-head>span{display:block;text-align:left;margin-top:6px;}
  .fs-chart-grid{gap:0;}.fs-table{font-size:13px;}.fs-table th,.fs-table td{padding:12px 10px;}
  .fs-export{padding:16px;}.fs-export b{flex:1 1 100%;margin-bottom:4px;}.fs-export button{flex:1;}
  .fs-print-preview {padding:12px;}.fs-method{font-size:13px;}
 }
}
/* 출력물은 반투명·그림자 없이 순백색, A4 가로 비율 */
@media print {
 body:has(.fs-sales) .fs-sales .fs-analysis,body:has(.fs-sales) .fs-hero,body:has(.fs-sales) .fs-controls,body:has(.fs-sales) .fs-warning {display:none!important;}
 body:has(.fs-sales) .fs-report,body:has(.fs-sales) .fs-print-preview,body:has(.fs-sales) .fs-print-page {display:block!important;background:#fff!important;box-shadow:none!important;}
 .fs-print-page {page:forecast-report;width:1123px!important;height:794px!important;padding:0!important;break-after:page;}
 .fs-print-page>svg {width:1123px;height:794px;}
}
/* Version: 3.25.7 — intrinsic table width containment */
@media screen {
 .records-list:has(.fs-sales),.workspace-mode .records-list:has(.fs-sales) {grid-template-columns:minmax(0,1fr);min-width:0;max-width:100%;}
 .fs-sales {width:100%;min-width:0;max-width:100%;}
 .fs-analysis,.fs-report,.fs-table-scroll {min-width:0;max-width:100%;}
 .fs-chart-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
 @media(max-width:1100px) {.fs-chart-grid {grid-template-columns:minmax(0,1fr);}}
}

/* Version: 3.25.7 — paper preview scales without changing export resolution */
@media screen {
 .fs-print-page.report-paper.landscape {width:min(1123px,100%);min-width:0;height:auto;aspect-ratio:1123/794;}
 .fs-print-page>svg {width:100%;height:auto;}
}
@media print {
 body:not(.print-close):not(.print-forecast):has(.fs-sales) .fs-print-page {display:block!important;}
}
/* Version: 3.25.7 — neutral actions, gold accents, semantic states preserved */
@media screen {
 .workspace-mode .report-export-toolbar button[data-report-action] {background:#202124;border-color:#202124;color:#fff;}
 .workspace-mode .report-export-toolbar button[data-report-action$="-png"] {background:#fff;border-color:#84817a;color:#242426;}
 .module-grid button::after {color:#777169;}
 .student-hero {background:linear-gradient(135deg,#262729,#17181a);color:#fff;}
 .qnet-sync-box button,.qnet-form button,.instructor-actions .primary-button {background:#202124;color:#fff;}
}
/* Version: 3.25.7 — compact lists, group management, three-series analytics */
:root{--fs-linked:#89847b}
.fs-key-linked{background:var(--fs-linked)}
.fs-mode{flex-wrap:wrap}
.fs-sales .fs-briefing{display:none;min-width:0}
.fs-sales[data-mode="briefing"] .fs-briefing{display:block}
.fs-sales[data-mode="briefing"] .fs-analysis,.fs-sales[data-mode="briefing"] .fs-report{display:none}
.dashboard-menu{margin-block:24px;border-top:1px solid rgba(0,0,0,.06);padding-top:16px}
.dashboard-menu>summary{font-size:17px;font-weight:650;min-height:48px;display:flex;align-items:center;cursor:pointer}
.dashboard-menu>summary::after{content:'+';margin-left:auto;font-size:24px}
.dashboard-menu[open]>summary::after{content:'−'}
#role-dashboard{min-width:0;max-width:100%}
#role-dashboard .fs-sales{width:100%;min-width:0}
#role-dashboard .fs-hero{padding-block:20px}
.records-list:has(.compact-record){display:flex!important;flex-direction:column;gap:10px}
.workspace-mode .record-card.compact-record{padding:18px 20px;border:1px solid rgba(0,0,0,.04);border-radius:16px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px;box-shadow:0 4px 16px rgba(0,0,0,.025)}
.compact-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:12px;min-width:0}
.compact-fields p{margin:0;min-width:0}
.compact-fields p>b{display:block;color:#787570;font-size:12px;line-height:1.6;font-weight:500;margin-bottom:4px}
.compact-fields p>span{display:block;font-size:14px;line-height:1.6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#262629}
.compact-record .record-actions{margin:0!important;padding:0!important;border:0!important;display:flex;gap:6px}
.compact-record .record-actions button{min-height:44px;padding:0 12px}
.list-more{min-height:48px;width:100%;margin-block:10px;border:1px solid #ddd9d1;border-radius:14px;background:rgba(255,255,255,.7);font:inherit;color:#353432}
.roster-card>summary,.qualification-group>summary,.qnet-manual-panel>summary,.home-progress>summary{min-height:56px;padding:18px 20px;cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;font-weight:650}
.roster-card>summary::after,.qualification-group>summary::after,.qnet-manual-panel>summary::after,.home-progress>summary::after{content:'+';font-size:20px;font-weight:400}
.roster-card[open]>summary::after,.qualification-group[open]>summary::after,.qnet-manual-panel[open]>summary::after,.home-progress[open]>summary::after{content:'−'}
.roster-card>summary span{display:grid;gap:4px;flex:1}
.roster-card>summary small{color:#787570;font-weight:400;font-size:13px}
.roster-card>summary strong{font-size:18px;line-height:1.6}
.roster-body{padding:0 20px 20px}
.roster-student,.qualification-student{display:flex!important;align-items:center;gap:12px;min-height:62px;padding:10px 0;border-top:1px solid rgba(0,0,0,.06);color:#29292b}
.roster-student input,.qualification-student input,.bulk-toolbar input[type=checkbox]{width:22px;height:22px;flex:0 0 22px;accent-color:#aa8b4e}
.roster-student span,.qualification-student span{display:grid;gap:4px;min-width:0}
.roster-student small,.qualification-student small{color:#79756f;font-size:13px;font-weight:400;line-height:1.6}
.qualification-student span:last-child{margin-left:auto;font-size:13px;text-align:right}
.bulk-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding-block:14px}
.bulk-toolbar label{display:flex;align-items:center;gap:8px;min-height:44px;font-size:14px}
.bulk-toolbar button{min-height:44px;border-radius:10px;border:1px solid #d3cec3;background:#fff;color:#37342e;font:inherit;padding:8px 12px}
.bulk-toolbar button[data-operation=complete]{color:#a64d3d}
.qualification-group,.qnet-manual-panel,.home-progress{border:1px solid rgba(0,0,0,.05);background:rgba(255,255,255,.75);border-radius:16px;margin-block:12px;overflow:hidden}
.qualification-group>.bulk-toolbar,.qualification-group>.qualification-student,.qualification-group>p{margin-inline:20px}
.qualification-group>summary span{color:#77716a;font-size:13px;font-weight:400;margin-left:auto}
.qualification-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-block:20px}
.qualification-filters label{display:grid;gap:8px;color:#716c63;font-size:14px}
.management-panel input[type=search]{width:100%;min-height:48px;border:1px solid #d8d4cd;border-radius:12px;padding:10px 14px}
.qnet-manual-panel .qnet-form{padding:20px;margin:0;background:transparent;border:0}
.home-progress p{padding:0 20px 18px;line-height:1.6;white-space:pre-wrap}
.ops-dialog{width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 40px);padding:28px;border:1px solid rgba(255,255,255,.85);border-radius:20px;background:rgba(252,251,248,.97);color:#252528;box-shadow:0 24px 100px rgba(0,0,0,.2);overflow:auto;font-family:var(--f3-font);margin:auto}
.ops-dialog::backdrop{background:rgba(30,30,32,.35);backdrop-filter:blur(8px)}
.ops-dialog header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:24px}
.ops-dialog header h2{font-size:28px;letter-spacing:-.04em;margin:6px 0}
.ops-dialog label{display:grid;gap:8px;margin-block:16px;font-size:14px;font-weight:550}
.ops-dialog input,.ops-dialog select{width:100%;min-height:50px;padding:12px 14px;border-radius:12px;border:1px solid #d0cbc2;background:#fff;font:inherit;font-size:16px;color:#262628}
.ops-dialog button{min-width:44px;min-height:44px;padding:8px 16px;font:inherit;border:1px solid #d4cfc5;border-radius:12px;background:#fff;cursor:pointer}
.ops-dialog footer{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}
.ops-dialog button[type=submit]{background:#232426;color:#fff;border-color:#232426}
.ops-dialog details>summary{min-height:44px;padding:14px 0;font-weight:600;cursor:pointer}
.ops-dialog .data-error,.management-panel .data-error,.roster-body .data-error{white-space:pre-wrap;font-size:14px;line-height:1.6}
@media(max-width:900px){.workspace-mode .record-card.compact-record{grid-template-columns:minmax(0,1fr)}.compact-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.compact-record .record-actions{justify-content:flex-end}}
@media(max-width:600px){.workspace-mode .record-card.compact-record{padding:14px 16px;gap:12px}.compact-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.compact-record .record-actions{padding-top:10px!important;border-top:1px solid rgba(0,0,0,.05)!important}.qualification-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.qualification-filters label:last-child{grid-column:1/-1}.roster-card>summary,.qualification-group>summary{padding:16px;flex-wrap:wrap}.qualification-group>summary span{margin-left:0}.bulk-toolbar{gap:8px}.ops-dialog{padding:20px;max-height:calc(100dvh - 24px)}.fs-sales .fs-mode{width:100%}.fs-sales .fs-mode button{flex:1;white-space:normal;padding-inline:10px;font-size:13px;min-height:44px}}
@media(hover:hover) and (pointer:fine){.compact-record:hover{box-shadow:0 8px 24px rgba(0,0,0,.05);transform:translateY(-1px)}.bulk-toolbar button:hover,.ops-dialog button:hover{transform:translateY(-1px)}}
@media(hover:none) and (pointer:coarse){.bulk-toolbar button:active,.ops-dialog button:active{transform:scale(.98);filter:brightness(.92)}}
@media(prefers-reduced-motion:reduce){.compact-record,.bulk-toolbar button,.ops-dialog button{transition:none!important;transform:none!important}}

/* Show deployment version only on the role home screens, never over menu content. */
#build-badge{display:none!important}
body:has(#dashboard-view:not([hidden]):not(.embed-workspace)) #build-badge,
body:has(#student-portal-view:not([hidden])[data-student-page="home"]) #build-badge{display:block!important}

/* Version: 3.25.7 — neutral toolbar and readable labels */
.roster-body .bulk-toolbar,.qualification-group .bulk-toolbar{border:1px solid #e0dbd1;background:rgba(249,247,242,.85);box-shadow:none;color:#423d35;padding:12px;border-radius:12px;position:static}
.roster-body .bulk-toolbar label,.qualification-group .bulk-toolbar label{white-space:nowrap;flex-shrink:0;font-weight:500}
.qualification-group input[type=date],.qualification-filters select{border:1px solid #d8d2c7;border-radius:10px;min-height:46px;padding:10px;background:#fff;color:#2b2925;font-size:16px}
.workspace-mode .compact-record .record-actions button{background:#fff;color:#37332d;border:1px solid #d7d1c6;border-radius:10px;font-family:var(--f3-font);font-size:14px;min-height:44px}
.workspace-mode .compact-record .record-actions .delete-button{color:#a44b3f;border-color:#d8b0a9}

/* Version: 3.25.7 — role-home containment and responsive management filters */
.student-portal-content{grid-template-columns:minmax(0,1fr);width:100%;min-width:0;max-width:100%}
.student-portal-content>section{min-width:0;max-width:100%}
.home-timetable-scroll{overflow-x:auto;width:100%;max-width:100%;min-width:0;overscroll-behavior-inline:contain}
.home-timetable-scroll .timetable-day,.home-timetable-scroll .timetable-corner{background:#252528;color:#e6d1a4}
.role-menu{margin-block:16px;background:rgba(255,255,255,.7);border:1px solid #e3ddd2;border-radius:14px;padding-inline:16px}
.role-menu>summary{min-height:48px;display:flex;align-items:center;cursor:pointer;color:#4a4338;font-size:15px;font-weight:600}
.role-menu>summary::after{content:'+';margin-left:auto;font-size:22px;font-weight:400}
.role-menu[open]>summary::after{content:'−'}
.qualification-filters label{min-width:0;max-width:100%}
.qualification-filters input,.qualification-filters select{min-width:0;width:100%;max-width:100%}
.qualification-student small{word-break:keep-all}
@media(max-width:600px){.qualification-group>summary>b{flex:1 1 100%;font-size:16px}.qualification-group>summary>span{flex:1;min-width:0}.student-portal-content .student-section{padding:20px}.student-portal-content .student-home-grid article strong{color:#242426}}
/* Version: 3.25.7 — accessible skip link and gold timetable details */
.skip-link{opacity:0;pointer-events:none}
.skip-link:focus{opacity:1;pointer-events:auto}
.home-timetable-scroll .timetable-item{background:#f8f5ed;border-color:#e0d1b1;border-left-color:#aa8b4e}
.home-timetable-scroll .timetable-time{color:#6a5738;background:#f4eee2}
/* Version: 3.25.7 — Qnet neutral premium surfaces */
.workspace-mode .qnet-sync-box,.workspace-mode .qnet-plan{background:rgba(255,255,255,.76);border-color:#e1dbd0;box-shadow:inset 0 1px 0 #fff,0 8px 24px rgba(47,40,28,.03)}
.workspace-mode .qnet-sync-box p,.workspace-mode .qnet-sync-box span{color:#797269}
.workspace-mode .qnet-plan>header{background:#252528;color:#e4d0a4}
.workspace-mode .qnet-plan .profile-empty,.workspace-mode .qnet-list .profile-empty{border-color:#ddd6c9;color:#8a8173}
.workspace-mode .qnet-form button{border-color:#252528;min-height:48px}

/* Version: 3.25.7 — quick home navigation and progressive analytics */
.home-sales-details>summary{min-height:48px;display:flex;align-items:center;padding:14px 18px;border:1px solid #ded8cb;border-radius:12px;margin-bottom:16px;cursor:pointer;background:rgba(255,255,255,.7);color:#534733;font-weight:600}
.home-sales-details>summary::after{content:'+';margin-left:auto}
.home-sales-details[open]>summary::after{content:'−'}

/* Version: 3.25.7 — left list drawer on desktop and mobile. */
#workspace-menu-toggle{display:none;position:fixed;left:12px;top:16px;z-index:110;min-width:52px;min-height:52px;padding:8px;border:1px solid #d9d6ce;border-radius:8px;background:#fff;color:#242426;box-shadow:0 2px 8px #0000000d;cursor:pointer;font:inherit}body.workspace-mode #workspace-menu-toggle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}#workspace-menu-toggle span{font-size:20px}#workspace-menu-toggle b{font-size:12px}body.workspace-mode .auth-panel{padding-left:80px}#workspace-side-menu{position:fixed;inset:0 auto 0 0;box-sizing:border-box;margin:0;width:320px;max-width:calc(100vw - 32px);height:100dvh;max-height:100dvh;padding:0;border:0;border-right:1px solid #ddd8ce;border-radius:0;background:#fff;color:#242426;overflow-y:auto}#workspace-side-menu::backdrop{background:#0006}#workspace-side-menu header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:24px;background:#fff;border-bottom:1px solid #e6e3dd}#workspace-side-menu h2{font-size:22px;margin:4px 0}#workspace-side-menu .eyebrow{margin:0;color:#7b602c}#side-menu-close{width:44px;height:44px;border:1px solid #e6e3dd;background:#faf9f6;border-radius:8px;font-size:24px;cursor:pointer}#side-menu-user{padding:16px 24px;margin:0;font-size:14px;color:#68635b;background:#faf9f6}#side-menu-list{display:flex;flex-direction:column;padding:8px 16px}.side-menu-item{display:flex;flex-direction:column;gap:4px;text-align:left;padding:14px 12px;min-height:64px;border:0;border-bottom:1px solid #eeeae3;background:#fff;font:inherit;color:#242426;cursor:pointer;border-radius:6px}.side-menu-item b{font-size:16px}.side-menu-item small{font-size:14px;color:#6d685e}.side-menu-item:hover,.side-menu-item[aria-current]{background:#f1ebe0}#workspace-side-menu footer{padding:16px 24px}#side-menu-logout{width:100%;min-height:44px;background:#242426;color:#fff;border:0;border-radius:8px;font:inherit;cursor:pointer}body.side-menu-open{overflow:hidden}#workspace-side-menu button:focus-visible,#workspace-menu-toggle:focus-visible{outline:2px solid #8c703e;outline-offset:2px}.role-page-nav[hidden],.role-menu[hidden],#dashboard-menu[hidden]{display:none!important}@media(max-width:700px){body.workspace-mode .auth-panel{padding-left:16px;padding-top:80px}#workspace-menu-toggle{top:12px;left:12px}}@media print{#workspace-menu-toggle,#workspace-side-menu{display:none!important}body.workspace-mode .auth-panel{padding-left:0;padding-top:0}}

@media(max-width:760px){body.workspace-mode::before{content:'';position:fixed;inset:0 0 auto;height:76px;z-index:100;background:#faf9f6;border-bottom:1px solid #e6e3dd}body.workspace-mode .auth-panel{padding-left:16px;padding-top:80px}body.workspace-mode .search-form{top:76px}body.workspace-mode .bulk-toolbar{top:80px}#workspace-menu-toggle{top:12px;left:12px}}body:has(.modal:not([hidden])) #workspace-menu-toggle{display:none!important}@media print{body.workspace-mode::before{display:none}}

html{scroll-padding-top:150px}body.workspace-mode::before{pointer-events:none}

/* Version: 3.25.7 — compact navigation, readable student home, name search. */
#workspace-side-menu header{padding:16px 20px}#workspace-side-menu h2{font-size:20px}#side-menu-user{padding:10px 20px}#side-menu-list{padding:4px 12px}.side-menu-item{flex-direction:row;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:10px 12px;border-radius:6px;line-height:1.25}.side-menu-item b{font-size:15px;font-weight:650}.side-menu-item>span{font-size:20px;color:#898273}.side-menu-item small{display:none}#workspace-side-menu footer{padding:12px 20px}
.student-home-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.student-home-grid>article{min-width:0;overflow:visible;height:auto}.student-home-grid .student-class-line{grid-template-columns:minmax(0,1fr);gap:4px;min-width:0}.student-home-grid .student-class-line>*{grid-column:1!important;min-width:0;max-width:100%;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;line-height:1.5}.student-home-grid .student-class-line .class-date{font-size:14px;color:#726d64}.student-home-grid .student-class-line .class-subject{font-size:17px}.student-home-grid .student-class-line .class-instructor,.student-home-grid .student-class-line .class-room{font-size:14px}.student-home-grid p,.student-home-grid strong,.student-home-grid small{white-space:pre-wrap!important;overflow-wrap:anywhere;max-width:100%;overflow:visible!important;text-overflow:clip!important;line-height:1.6}
.student-name-picker,.name-search-results,.name-search-label{display:block;min-width:0;width:100%}.name-search-label{font-size:14px;font-weight:650}.name-search-label input{width:100%;min-height:44px;padding:10px 12px;margin:6px 0 0;border:1px solid #cfcac0;border-radius:8px;background:#fff;color:#242426;box-sizing:border-box;font:inherit}.name-search-status,.name-search-selected{font-size:14px;line-height:1.5;color:#6d675d;margin:8px 0}.name-search-selected{color:#66501f;background:#f4efe5;padding:8px 12px;border-radius:6px}.name-search-results{max-height:240px;overflow-y:auto;border-radius:6px}.name-search-result{display:block;width:100%;min-height:44px;padding:10px 12px;text-align:left;font:inherit;font-size:15px;border:1px solid #e6e3dc;border-top:0;background:#fff;color:#242426;cursor:pointer}.name-search-result:first-child{border-top:1px solid #e6e3dc}.name-search-result:hover,.name-search-result:focus-visible{background:#f3ede0}.name-search-result:disabled{color:#817b70;background:#f6f5f2;cursor:not-allowed}.bulk-additional-panel{grid-column:1/-1;border-top:1px solid #e1dacc;padding-top:16px;margin-top:16px}.bulk-additional-panel>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:650;font-size:16px;gap:8px}.bulk-additional-panel>p{font-size:14px;line-height:1.6;color:#6d675d}.bulk-additional-panel [data-extra-search]{max-width:560px;margin-bottom:16px}[data-extra-list] [data-student-id]{border-left:3px solid #aa8b4e}[data-remove-extra]{min-height:44px;padding:8px 12px;border:1px solid #d4cdbc;border-radius:6px;background:#f9f7f1;cursor:pointer;font:inherit;font-size:14px}[data-saved=true]{opacity:.65}.bulk-progress-row h4,.bulk-student-row>b{overflow-wrap:anywhere;white-space:normal}.bulk-additional-panel [data-extra-list]:empty{display:none}
@media(max-width:760px){.student-home-grid{grid-template-columns:minmax(0,1fr)!important}.student-home-grid>article{padding:16px}.bulk-toolbar{grid-template-columns:minmax(0,1fr)!important;position:static!important}.bulk-student-row{grid-template-columns:auto minmax(0,1fr)!important}.bulk-student-row select,.bulk-student-row [data-remove-extra]{grid-column:2}.bulk-progress-row{min-width:0}.student-name-picker input{font-size:16px}.side-menu-item{min-height:44px}}
#issuer-form input,#issuer-form select{box-sizing:border-box;min-height:44px;padding:10px 12px;border:1px solid #cfcac0;border-radius:8px;background:#fff;color:#242426;font:inherit}#issuer-form input[readonly]{background:#f7f5f0}#issuer-form label{font-size:15px;line-height:1.5}#issuer-form .student-name-picker input{background:#fff}
.bulk-toolbar{position:static!important;grid-template-columns:minmax(250px,1.2fr) minmax(220px,1fr) auto!important}.bulk-toolbar>label{display:flex!important;align-items:center;gap:10px;white-space:nowrap;min-width:0}.bulk-toolbar>label select,.bulk-toolbar>label input{flex:1;min-width:0;max-width:100%}.bulk-entry>.report-help{font-size:14px;line-height:1.6}.bulk-progress-row>.bulk-include{display:flex!important;align-items:center;justify-content:flex-start;gap:8px;min-height:44px}.bulk-include input[type=checkbox]{width:18px!important;min-height:18px!important;height:18px!important;margin:0!important}.bulk-progress-row>[data-remove-extra]{width:auto!important;min-width:80px;justify-self:start}.bulk-save-bottom{margin-top:16px;grid-column:1/-1}.bulk-save-bottom button{min-height:44px}
@media(max-width:760px){.bulk-toolbar{grid-template-columns:minmax(0,1fr)!important}.bulk-toolbar>label{display:block!important}.bulk-toolbar>label select,.bulk-toolbar>label input{display:block;width:100%;margin-top:6px}}
@media(max-width:760px){#issuer-view h2{font-size:24px;line-height:1.3;word-break:keep-all;overflow-wrap:anywhere}#issuer-view .view-head p{word-break:keep-all}}
#account-modal .account-basic input,#account-modal .account-basic select{box-sizing:border-box;min-height:44px;width:100%;padding:10px 12px;border:1px solid #cfcac0;border-radius:8px;background:#fff;color:#242426;font:inherit}body.workspace-mode:has(.modal:not([hidden]))::before{display:none}
/* 3.25.7 — Q-net: the existing white / charcoal / gold workspace. */
.qnet-weekly,.qnet-browse,.qnet-manual-panel{background:#fff;border:1px solid #e7e3dc;border-radius:16px;padding:24px;min-width:0}.qnet-weekly{display:block}.qnet-weekly .eyebrow{margin:0 0 8px;color:#7b5b24}.qnet-weekly h3{font-size:26px;margin:0 0 8px}.qnet-sync-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.qnet-sync-heading button,.qnet-form button{background:#242426;color:#fff;border:0;border-radius:8px;min-height:44px;padding:12px 18px;font:inherit}.qnet-sync-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:24px;border-top:1px solid #e7e3dc;padding-top:16px}.qnet-sync-meta p{margin:0;display:flex;flex-direction:column;gap:8px}.qnet-sync-meta b,.qnet-status{color:#76551c;font-size:14px}.qnet-sync-meta span{font-size:14px;color:#494640}.qnet-help{font-size:14px;line-height:1.65;color:#625e57;margin:16px 0 0}.qnet-warning{background:#f6f0e3;color:#674916;border:1px solid #dccda9;padding:16px;border-radius:8px;font-size:14px;line-height:1.6;margin-top:16px;overflow-wrap:anywhere}.qnet-warning summary{cursor:pointer}.qnet-warning p{margin:8px 0}.qnet-subjects{display:flex;flex-wrap:wrap;gap:8px}.qnet-subjects button{font:inherit;font-weight:700;background:#faf9f6;border:1px solid #ddd5c8;border-radius:8px;color:#514b41;min-height:44px;padding:10px 20px}.qnet-subjects button[aria-pressed=true]{background:#252527;border-color:#252527;color:white}.qnet-filters{display:grid;grid-template-columns:.8fr 1fr 1fr 1.4fr;gap:12px;padding:24px 0;border-bottom:1px solid #e7e3dc}.qnet-filters label,.qnet-form label{display:flex;flex-direction:column;gap:8px;font-size:14px;color:#554f46;min-width:0}.qnet-filters input,.qnet-filters select,.qnet-form input,.qnet-form select{font:inherit;min-height:44px;width:100%;min-width:0;box-sizing:border-box;border:1px solid #bcb5aa;border-radius:8px;background:white;padding:10px;color:#242426}.qnet-results-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:24px 0 16px}.qnet-results-head h3{font-size:20px;margin:0}.qnet-results-head span,.qnet-venue-plan header span{font-size:14px;color:#625e57}.qnet-venue-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}.qnet-venue-plan{min-width:0;background:#faf9f7;border:1px solid #e7e3dc;border-radius:12px;padding:16px}.qnet-venue-plan header{display:flex;justify-content:space-between;gap:8px;align-items:center;margin:0 0 16px}.qnet-venue-plan h3{margin:0;font-size:20px}.qnet-venue-card{padding:16px;background:#fff;border:1px solid #e5e1d9;border-left:3px solid #aa8946;border-radius:8px;margin-bottom:12px;overflow-wrap:anywhere}.qnet-venue-card:last-child{margin-bottom:0}.qnet-card-top{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:14px;color:#625e57}.qnet-badge{background:#f3ecde;color:#73531c;padding:4px 8px;border-radius:4px}.qnet-venue-card h4{font-size:17px;line-height:1.5;margin:12px 0 8px}.qnet-venue-card p{font-size:14px;color:#625e57;line-height:1.6;margin:0 0 12px}.qnet-dates{display:flex;flex-wrap:wrap;gap:8px}.qnet-dates span{background:#f6f5f2;border:1px solid #e6e1d7;border-radius:4px;padding:6px 8px;font-size:14px;color:#34322e}.qnet-venue-card footer{display:flex;justify-content:flex-end;margin-top:8px}.qnet-venue-card footer a,.qnet-venue-card footer button{min-height:44px;display:flex;align-items:center;font:inherit;font-size:14px;color:#75551e;padding:8px;text-decoration:underline}.qnet-empty{font-size:14px;line-height:1.7;color:#625e57;margin:0;padding:16px 0}.qnet-form{margin-top:16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.qnet-form .data-error{grid-column:1/-1}.qnet-manual-panel summary{min-height:44px;cursor:pointer;line-height:1.6}.qnet-subjects button:focus-visible,.qnet-filters input:focus-visible,.qnet-filters select:focus-visible{outline:3px solid #ac8c4b;outline-offset:2px}
@media(max-width:760px){.qnet-weekly,.qnet-browse,.qnet-manual-panel{padding:16px}.qnet-sync-heading{align-items:start;flex-direction:column}.qnet-sync-meta{grid-template-columns:1fr;gap:16px}.qnet-sync-meta p{gap:4px}.qnet-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.qnet-venue-grid{grid-template-columns:1fr;gap:16px}.qnet-subjects button{padding:10px 14px}.qnet-results-head{align-items:start;flex-direction:column}.qnet-venue-plan{padding:12px}.qnet-form{grid-template-columns:1fr}.qnet-form button{width:100%}}
/* Override legacy Q-net selectors without changing other workspace modules. */
.qnet-weekly>.qnet-sync-heading{display:flex;gap:16px}.qnet-weekly>.qnet-sync-meta{display:grid;gap:16px}.qnet-weekly .qnet-sync-meta p{grid-column:auto}.workspace-mode .qnet-weekly span{font-size:14px;color:#554f46}.workspace-mode .qnet-weekly .qnet-status{color:#76551c}.qnet-weekly p.qnet-help{margin-top:16px;font-size:14px;color:#625e57}.qnet-weekly .qnet-sync-heading button{width:auto;flex-shrink:0}.workspace-mode .qnet-weekly{background:white;border-color:#e7e3dc}.qnet-weekly .qnet-sync-heading .eyebrow{color:#7b5b24}

.qnet-weekly,.qnet-browse,.qnet-manual-panel,#qnet-form{scroll-margin-top:92px}.qnet-venue-grid{scroll-margin-top:170px}
/* 3.25.7 — compact Q-net round selector and a single venue/date matrix. */
.qnet-update-strip{background:#f8f6f1;border:1px solid #ded7ca;border-radius:12px;padding:16px 20px;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center}.qnet-update-strip>div{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center}.qnet-update-strip b{font-size:15px;color:#70511e}.qnet-update-strip span,.qnet-update-details{font-size:14px;color:#625c53;line-height:1.6}.qnet-update-details{grid-column:1/-1}.qnet-update-details summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.qnet-update-details p{margin:8px 0;overflow-wrap:anywhere}.qnet-update-strip button,#qnet-image-save{min-height:44px;padding:10px 16px;background:#252527;color:#fff;border:0;border-radius:8px;font:inherit;font-weight:600}.qnet-update-strip button:disabled,#qnet-image-save:disabled{background:#827e75;cursor:not-allowed}.qnet-schedule-board{background:#fff;border:1px solid #e7e1d6;border-radius:16px;padding:24px;min-width:0}.qnet-round-controls{display:grid;grid-template-columns:140px 200px 1fr;gap:16px;align-items:end;padding:24px 0;border-bottom:1px solid #e5dfd4}.qnet-round-controls label{font-size:14px;line-height:1.5;font-weight:600;color:#554e42;display:flex;flex-direction:column;gap:8px;min-width:0}.qnet-round-controls select{width:100%;min-width:0;min-height:48px;font:inherit;font-size:16px;border:1px solid #bdb5a7;border-radius:8px;background:white;padding:10px;color:#252527}.qnet-registration{display:flex;flex-direction:column;gap:8px;justify-content:center;min-height:48px;min-width:0}.qnet-registration span{font-size:14px;color:#796644}.qnet-registration strong{font-size:17px;line-height:1.5;color:#433a2b;overflow-wrap:anywhere}.qnet-schedule-image{padding-top:24px;min-width:0}.qnet-matrix-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.qnet-matrix-head .eyebrow{margin:0 0 8px;color:#7b5b24}.qnet-matrix-head h3{font-size:24px;line-height:1.4;margin:0 0 8px;color:#252527}.qnet-matrix-head h3 span{color:#796644}.qnet-matrix-head p:not(.eyebrow){font-size:14px;color:#625c53;margin:0}.qnet-matrix-head>div{min-width:0}.qnet-matrix-head button{flex-shrink:0}.qnet-table-legend{display:flex;flex-wrap:wrap;gap:8px 20px;align-items:center;font-size:14px;color:#625c53;line-height:1.5;margin-bottom:12px}.qnet-table-legend b{font-size:17px;color:#8d6a2c}.qnet-table-legend small{font-size:14px;margin-left:auto}.qnet-table-scroll{width:100%;overflow:auto;position:relative;border:1px solid #ddd6ca;border-radius:8px;background:white;min-width:0;scrollbar-color:#bbaa8a #f2eee6}.qnet-matrix{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;min-width:calc(240px + var(--qnet-date-count)*72px);font-size:16px;color:#2d2a24}.qnet-matrix .qnet-venue-col{width:240px}.qnet-matrix th,.qnet-matrix td{border-right:1px solid #e1dacc;border-bottom:1px solid #e1dacc;padding:16px 10px;text-align:center;vertical-align:middle;line-height:1.6;white-space:normal}.qnet-matrix tr>:last-child{border-right:0}.qnet-matrix tbody tr:last-child>*{border-bottom:0}.qnet-matrix thead th{background:#252527;color:#ead9b9;font-size:15px;font-weight:700;border-color:#5c574c;padding:12px 8px}.qnet-matrix thead small{display:block;font-size:14px;font-weight:400;color:#ead9b9}.qnet-matrix thead th:first-child{position:sticky;left:0;z-index:3;text-align:left;padding-left:16px}.qnet-matrix tbody th{position:sticky;left:0;z-index:2;background:#f7f4ed;text-align:left;font-size:15px;font-weight:600;padding:16px;overflow-wrap:anywhere;box-shadow:1px 0 0 #ddd6ca}.qnet-matrix tbody td{background:#fff}.qnet-dot{font-size:21px;color:#8d6a2c;font-weight:700;line-height:1;display:inline-block}.qnet-range-mark{font-size:14px}.qnet-no-mark{color:#aaa195;font-size:16px}.qnet-matrix-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;font-size:14px;color:#625c53;line-height:1.6}.qnet-matrix-footer a{color:#75551e;min-height:44px;display:flex;align-items:center;white-space:nowrap}.qnet-mobile-table-help{display:none;font-size:14px;line-height:1.6;color:#625c53;margin:12px 0 0}.qnet-table-empty{border:1px dashed #d8cbb4;background:#faf8f3;border-radius:8px;padding:32px 20px;font-size:16px;line-height:1.8;color:#554d40}.qnet-table-empty span{font-size:14px;color:#746957}.qnet-matrix-warning{background:#f6efdf;border:1px solid #dccba7;color:#6b4d18;border-radius:8px;padding:12px 16px;font-size:14px;line-height:1.6}.qnet-manual-actions{display:grid;gap:8px;margin-top:16px}.qnet-manual-actions button{min-height:44px;text-align:left;font:inherit;background:#f7f4ed;border:1px solid #dbd2c2;padding:10px;border-radius:8px}.qnet-update-strip,.qnet-schedule-board,.qnet-table-scroll{scroll-margin-top:92px}.qnet-round-controls select:focus-visible,.qnet-table-scroll:focus-visible{outline:3px solid #ac8c4b;outline-offset:2px}
@media(max-width:760px){.qnet-update-strip{padding:12px 16px;grid-template-columns:1fr}.qnet-update-strip>div{align-items:start;flex-direction:column;gap:4px}.qnet-update-strip button{width:100%}.qnet-schedule-board{padding:16px}.qnet-round-controls{grid-template-columns:1fr 1.2fr;gap:12px;padding:20px 0}.qnet-registration{grid-column:1/-1;background:#f7f3e9;border:1px solid #e5dbc7;border-radius:8px;padding:12px;gap:4px}.qnet-registration strong{font-size:16px}.qnet-matrix-head{align-items:start;flex-direction:column;gap:12px}.qnet-matrix-head h3{font-size:21px}.qnet-table-legend{gap:6px 12px}.qnet-table-legend small{margin-left:0;width:100%}.qnet-matrix{min-width:calc(120px + var(--qnet-date-count)*48px);font-size:14px}.qnet-matrix .qnet-venue-col{width:120px}.qnet-matrix th,.qnet-matrix td{padding:12px 4px}.qnet-matrix tbody th{font-size:14px;line-height:1.6;padding:12px 8px}.qnet-matrix thead th{font-size:14px;padding:10px 3px;white-space:nowrap}.qnet-matrix thead th:first-child{padding:10px 8px}.qnet-matrix thead small{font-size:14px}.qnet-dot{font-size:18px}.qnet-matrix-footer{align-items:start;flex-direction:column;gap:0}.qnet-mobile-table-help{display:block}.qnet-table-empty{padding:24px 16px}.qnet-subjects{gap:6px}.qnet-subjects button{padding:10px 12px;font-size:14px}}

.qnet-no-mark{color:#81786a}.qnet-mobile-table-help{margin:0 0 12px}

.qnet-round-policy{font-size:14px;line-height:1.6;color:#625c53;margin:16px 0 -8px}.qnet-mobile-table-help[hidden]{display:none!important}

/* 3.25.7 — two regions, full official rounds, legible start-date option labels. */
.qnet-round-controls{grid-template-columns:140px 120px 280px 1fr}.qnet-round-controls select{font-weight:600}.qnet-round-controls .qnet-round-control{min-width:0}
@media(max-width:1000px){.qnet-round-controls{grid-template-columns:140px 120px minmax(240px,1fr)}.qnet-registration{grid-column:1/-1}}
@media(max-width:760px){.qnet-round-controls{grid-template-columns:1fr 1fr}.qnet-round-controls .qnet-round-control{grid-column:1/-1}.qnet-round-controls select{font-size:15px}.qnet-registration{grid-column:1/-1}}
/* 3.25.7 · compact bulk progress + focused per-student editor */
.bulk-progress-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px 12px;align-items:center;padding:16px!important;min-width:0}
.bulk-progress-row h4{margin:0;min-width:0;font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.bulk-progress-row .bulk-include{grid-column:1;margin:0;white-space:nowrap}
.bulk-progress-row h4{grid-column:2}
.bulk-progress-row .compact-status,.bulk-progress-row [data-remove-extra]{grid-column:3;grid-row:1;min-width:120px}
.bulk-progress-row .compact-status{font-size:12px;display:flex;gap:6px;align-items:center}
.bulk-progress-row .compact-status select{min-height:44px;margin:0}
.bulk-progress-summary{grid-column:1/3;color:var(--f3-muted,#7d7a75);font-size:14px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.bulk-progress-open{grid-column:3;grid-row:2;min-height:44px;border:1px solid #c7b58f!important;background:#f7f3eb!important;color:#745622!important;border-radius:8px;padding:10px 16px;font:inherit;font-weight:700}
.bulk-progress-row[data-progress-ready=true] .bulk-progress-open{background:#252525!important;color:#fff!important;border-color:#252525!important}
.bulk-progress-count{margin:0 0 12px;padding:12px 16px;background:#f5f1e8;border:1px solid #e4d8c3;border-radius:8px;font-size:14px;color:#705527}
#bulk-progress-editor{width:min(780px,calc(100vw - 32px));max-height:calc(100dvh - 32px);box-sizing:border-box;margin:auto;border:1px solid #ded8ce;border-radius:20px;padding:0;background:#fff;color:#252525;overflow:auto;box-shadow:0 16px 70px #0003}
#bulk-progress-editor::backdrop{background:rgba(24,22,18,.5)}
#bulk-progress-editor>header{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;background:#fff;padding:24px;border-bottom:1px solid #e6e0d5}
#bulk-progress-editor h2{font-size:24px;line-height:1.4;margin:8px 0;overflow-wrap:anywhere}
#bulk-progress-editor-context{font-size:14px;line-height:1.5;color:#7d7a75;margin:0}
#bulk-progress-editor>header button{flex:0 0 44px;min-height:44px;border:1px solid #ddd6c9;background:#f9f8f5;border-radius:8px;font-size:24px}
.bulk-progress-editor-help{font-size:14px;line-height:1.6;color:#746c5e;margin:0;padding:16px 24px;background:#faf8f3}
#bulk-progress-editor-body{padding:24px}
#bulk-progress-editor .bulk-progress-editor-fields{display:grid;gap:16px}
#bulk-progress-editor .bulk-task-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#bulk-progress-editor .task-check{padding:12px;border:1px solid #e2dcd0;border-radius:10px;display:flex;align-items:flex-start;gap:10px;font-size:15px;line-height:1.5;background:#faf9f6}
#bulk-progress-editor .task-check input{width:20px;height:20px;flex:0 0 20px;margin:2px 0}
#bulk-progress-editor .task-check small{display:block;font-size:13px;color:#7d7a75;margin-top:4px}
#bulk-progress-editor .progress-field{display:grid;gap:8px;font-size:14px;font-weight:700}
#bulk-progress-editor textarea,#bulk-progress-editor input:not([type=checkbox]){box-sizing:border-box;width:100%;min-height:48px;padding:12px;border:1px solid #bdb6a8;border-radius:10px;background:#fff;font:inherit;font-size:16px;font-weight:400;color:#252525}
#bulk-progress-editor textarea{min-height:110px;resize:vertical;line-height:1.6}
#bulk-progress-editor footer{position:sticky;bottom:0;z-index:2;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:16px 24px;background:#fff;border-top:1px solid #e6e0d5}
#bulk-progress-editor footer button{min-height:44px;padding:10px 16px;border:1px solid #d7cbb5;border-radius:8px;background:#faf8f3;color:#584a31;font:inherit;font-weight:700}
#bulk-progress-editor #bulk-progress-done{background:#252525;color:#fff;border-color:#252525}
#bulk-progress-editor button:disabled{opacity:.45;cursor:not-allowed}
.bulk-progress-modal-open{overflow:hidden}
@media(max-width:760px){.bulk-progress-row{grid-template-columns:auto minmax(0,1fr)!important;gap:10px!important}.bulk-progress-row .compact-status,.bulk-progress-row [data-remove-extra]{grid-column:1/3;grid-row:2;min-width:0}.bulk-progress-row .compact-status{justify-content:space-between}.bulk-progress-row .compact-status select{width:min(65%,180px)}.bulk-progress-summary{grid-column:1/3;grid-row:3}.bulk-progress-open{grid-column:1/3;grid-row:4;width:100%}.bulk-progress-row h4{font-size:15px}#bulk-progress-editor{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:16px}#bulk-progress-editor>header,#bulk-progress-editor-body{padding:16px}#bulk-progress-editor h2{font-size:20px}#bulk-progress-editor .bulk-task-grid{grid-template-columns:1fr}.bulk-progress-editor-help{padding:12px 16px}#bulk-progress-editor footer{padding:12px 16px}#bulk-progress-editor footer button{flex:1;min-width:0;padding:10px 8px;font-size:14px}#bulk-progress-next{flex-basis:100%!important;order:3}}
/* Keep the modal header/footer outside the scrolling editor body. */
#bulk-progress-editor[open]{display:flex;flex-direction:column;overflow:hidden;height:min(920px,calc(100dvh - 32px))}
#bulk-progress-editor>header,#bulk-progress-editor>footer{position:static;flex:0 0 auto}
#bulk-progress-editor>.bulk-progress-editor-help{flex:0 0 auto}
#bulk-progress-editor-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain}
.bulk-progress-row{grid-column:auto!important}
.bulk-student-list:has(.bulk-progress-row){grid-template-columns:repeat(2,minmax(0,1fr))}
.bulk-entry{scroll-margin-top:88px}
@media(max-width:760px){.bulk-student-list:has(.bulk-progress-row){grid-template-columns:1fr}#bulk-progress-editor[open]{height:calc(100dvh - 16px)}}

/* Version: 3.25.8 — scoped student-management multi-select dropdowns only */
#view-filters .student-multi-field{min-width:0;color:var(--f3-muted,#475467);font-size:13px;font-weight:600}
#view-filters .student-multi{position:relative;margin-top:6px;min-width:0}
#view-filters .student-multi>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;height:52px;min-height:52px;padding:12px 14px;border:1px solid var(--f3-input,#d0d5dd);border-radius:12px;background:#fff;color:var(--f3-ink,#101828);font:400 16px/1.65 var(--f3-font,inherit);box-shadow:none;cursor:pointer;list-style:none}
#view-filters .student-multi>summary::-webkit-details-marker{display:none}
#view-filters .student-multi>summary:focus-visible{outline:2px solid var(--f3-ink,#101828);outline-offset:2px}
#view-filters .student-multi-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#view-filters .student-multi-panel{position:absolute;top:calc(100% + 6px);left:0;z-index:40;min-width:100%;width:max-content;max-width:min(320px,85vw);max-height:280px;overflow:auto;overscroll-behavior:contain;padding:6px;border:1px solid var(--f3-input,#d0d5dd);border-radius:12px;background:#fff;box-shadow:0 10px 28px rgba(0,0,0,.12)}
#view-filters .student-multi-option{display:flex;align-items:center;gap:10px;min-height:40px;margin:0;padding:7px 10px;border-radius:7px;color:var(--f3-ink,#101828);font:400 14px/1.5 var(--f3-font,inherit);cursor:pointer}
#view-filters .student-multi-option:hover{background:#f4f4f5}
#view-filters .student-multi-option input[type=checkbox]{display:inline-block;flex:none;width:16px;height:16px;min-height:0;margin:0;padding:0;accent-color:#202124}
/* Keep the open student dropdown above animated result cards without changing closed layout. */
#view-filters:has(.student-multi[open]){position:relative;z-index:60;overflow:visible}
#view-filters .student-multi[open]{z-index:61}

#view-filters .student-multi-arrow{flex:none;width:6px;height:6px;margin-right:2px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg)}

/* Version: 3.25.9 — only the new sorting controls; existing selectors are unchanged. */
#list-sort-controls{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:0 0 16px;min-width:0}
#list-sort-controls[hidden]{display:none}
#list-sort-controls>label{display:block;min-width:150px;max-width:100%;font-size:13px;font-weight:600;color:var(--f3-muted,#475467)}
#list-sort-controls select{display:block;width:100%;min-width:0;min-height:44px;margin-top:6px;padding:8px 34px 8px 12px;border:1px solid var(--f3-input,#d0d5dd);border-radius:11px;background:#fff;color:var(--f3-ink,#101828);font:400 14px/1.5 var(--f3-font,inherit)}
#list-sort-controls select:disabled{opacity:.5}
#list-sort-controls>small{flex-basis:100%;font-size:12px;line-height:1.5;color:var(--f3-muted,#475467)}
@media(max-width:520px){#list-sort-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}#list-sort-controls>label{min-width:0}#list-sort-controls>small{grid-column:1/-1}}

/* Version: 3.26.13 — CSP-safe weekday columns via data attributes; no inline style variables. */
.fixed-timetable[data-timetable-days="0"]{grid-template-columns:1fr}
.fixed-timetable[data-timetable-days="1"]{grid-template-columns:72px repeat(1,minmax(130px,1fr))}
.fixed-timetable[data-timetable-days="2"]{grid-template-columns:72px repeat(2,minmax(130px,1fr))}
.fixed-timetable[data-timetable-days="3"]{grid-template-columns:72px repeat(3,minmax(130px,1fr))}
.fixed-timetable[data-timetable-days="4"]{grid-template-columns:72px repeat(4,minmax(130px,1fr))}
.fixed-timetable[data-timetable-days="5"]{grid-template-columns:72px repeat(5,minmax(130px,1fr))}
.fixed-timetable[data-timetable-days="6"]{grid-template-columns:72px repeat(6,minmax(130px,1fr))}
.fixed-timetable[data-timetable-days="7"]{grid-template-columns:72px repeat(7,minmax(130px,1fr))}
@media(max-width:760px){
.fixed-timetable[data-timetable-days="0"]{grid-template-columns:1fr}
.fixed-timetable[data-timetable-days="1"]{grid-template-columns:48px repeat(1,minmax(115px,1fr))}
.fixed-timetable[data-timetable-days="2"]{grid-template-columns:48px repeat(2,minmax(115px,1fr))}
.fixed-timetable[data-timetable-days="3"]{grid-template-columns:48px repeat(3,minmax(115px,1fr))}
.fixed-timetable[data-timetable-days="4"]{grid-template-columns:48px repeat(4,minmax(115px,1fr))}
.fixed-timetable[data-timetable-days="5"]{grid-template-columns:48px repeat(5,minmax(115px,1fr))}
.fixed-timetable[data-timetable-days="6"]{grid-template-columns:48px repeat(6,minmax(115px,1fr))}
.fixed-timetable[data-timetable-days="7"]{grid-template-columns:48px repeat(7,minmax(115px,1fr))}
}

/* Version: 3.26.13 — constrain actual timetable cards inside the records grid; scroll table, not entire page. */
.records-list:has(.weekly-card){grid-template-columns:minmax(0,1fr);min-width:0;max-width:100%}
.weekly-card:has(.fixed-timetable){min-width:0;max-width:100%;box-sizing:border-box}
.weekly-card .fixed-timetable{min-width:0;max-width:100%;box-sizing:border-box}


/* 3.41.47 — student search row + gold segmented instructor input tabs. */
.student-search-row{display:flex;flex-direction:row;align-items:center;gap:8px;width:100%;min-width:0}
.student-search-row input[type=search],.student-search-row input{flex:1;min-width:0}
.student-search-field{display:flex;flex-direction:column;gap:6px}
.student-search-go{height:36px;padding:0 14px;font-size:13px;border-radius:6px;flex-shrink:0;border:1px solid #d4cdbc;background:#f9f7f1;color:#3a342c;cursor:pointer;font:inherit;font-weight:650;white-space:nowrap}
.student-search-go:hover{background:#f3ede0;border-color:#c6bda8}
.name-search-label .student-search-row{margin-top:6px}
.name-search-label .student-search-row input{margin:0;width:auto}
.instructor-input-panel{background:#f7f5f0;border-color:#e7e1d6}
.instructor-input-tabs{display:flex;flex-wrap:nowrap;align-items:stretch;gap:0;padding:3px;margin-bottom:12px;background:#ece8df;border:1px solid #ddd6ca;border-radius:8px;width:fit-content;max-width:100%}
@media(max-width:640px){.instructor-input-tabs{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.instructor-input-tabs button{padding:0 6px}}
.instructor-input-tabs button,.workspace-mode .instructor-input-tabs button{height:36px;min-height:36px;padding:0 14px;font-size:13px;font-weight:650;border:0!important;border-radius:6px;background:transparent!important;color:#5c564c!important;box-shadow:none!important;cursor:pointer}
.instructor-input-tabs button.active,.instructor-input-tabs button[aria-selected=true],.workspace-mode .instructor-input-tabs button.active{background:#fff!important;color:#202124!important;box-shadow:inset 0 -3px 0 #a6894e!important}
.instructor-input-tabs button:hover:not(.active){background:#f4efe5;color:#3a342c}
.workspace-mode .instructor-actions button,.instructor-actions button{background:#f7f5f0;color:#3a342c;border:1px solid #d4cdbc;box-shadow:none}
.bulk-save-button,.workspace-mode .instructor-actions .bulk-save-button,.instructor-actions .bulk-save-button,.ops-dialog button.primary-action,.ops-dialog button[type=submit].primary-action,#roster-add-form button[type=submit]{display:inline-flex;align-items:center;justify-content:center;height:36px;min-height:36px;padding:0 14px;font-size:13px;border-radius:6px;background:#202124!important;color:#f4efe5!important;border:1px solid #202124!important;box-shadow:none!important;font-weight:700}
.bulk-save-button{height:auto;min-height:36px;flex-direction:column;gap:1px}
.workspace-mode .instructor-actions .bulk-save-button:hover,.bulk-save-button:hover,.ops-dialog button.primary-action:hover,#roster-add-form button[type=submit]:hover{background:#66501f!important;border-color:#66501f!important;color:#fff!important}

/* Printable attendance cards for the calendar PNG. */
.attendance-paper.attendance-image-export {
  position: absolute;
  left: -100000px;
  top: 0;
  width: 1123px;
  max-width: none;
  height: auto;
  min-height: 794px;
  padding-bottom: 56px;
  transform: none;
}
.attendance-image-export .attendance-report-mark {
  flex: 0 0 auto;
  max-width: 38%;
}
.attendance-image-export [data-attendance-count],
.attendance-image-export .attendance-export-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.attendance-paper.attendance-image-export .calendar-grid {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}
.attendance-paper.attendance-image-export .calendar-grid .calendar-week-row {
  position: static !important;
  height: auto !important;
  min-height: 118px !important;
  max-height: none !important;
  grid-template-rows: auto !important;
}
.attendance-paper.attendance-image-export .calendar-weeks-4 .calendar-week-row {
  min-height: 147.5px !important;
}
.attendance-paper.attendance-image-export .calendar-weeks-6 .calendar-week-row {
  min-height: 98.33px !important;
}
.attendance-paper.attendance-image-export .calendar-week-row > .calendar-day {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}
.attendance-paper.attendance-image-export .calendar-day .attendance-event {
  display: block;
  margin-top: 3px !important;
  padding: 2px 5px !important;
  line-height: 14px !important;
}
.attendance-export-subject {
  font-weight: 700;
}

/* Keep the editable calendar compact and fitted to the available width. */
@media screen {
  body:not(.report-capture-native) #records-view .attendance-preview {
    box-sizing: border-box;
    width: 100%;
    margin-inline: 0;
    padding: 0;
  }

  body:not(.report-capture-native) #records-view .attendance-preview .attendance-paper {
    width: 100%;
    min-width: 0;
    max-width: 1123px;
    height: auto;
    padding: 20px clamp(6px, 2vw, 26px) 42px;
  }

  body:not(.report-capture-native) #records-view .attendance-preview .attendance-paper > header {
    flex-wrap: wrap;
    gap: 8px;
  }

  body:not(.report-capture-native) #records-view .attendance-preview .attendance-paper > header h1 {
    font-size: clamp(15px, 2vw, 23px);
    overflow-wrap: anywhere;
  }

  body:not(.report-capture-native) #records-view .attendance-preview .calendar-week {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  body:not(.report-capture-native) #records-view .attendance-preview .calendar-grid,
  body:not(.report-capture-native) #records-view .attendance-preview .calendar-grid .calendar-week-row,
  body:not(.report-capture-native) #records-view .attendance-preview .calendar-week-row > .calendar-day {
    height: auto !important;
    max-height: none !important;
  }

  body:not(.report-capture-native) #records-view .attendance-preview .calendar-grid,
  body:not(.report-capture-native) #records-view .attendance-preview .calendar-week-row > .calendar-day {
    min-height: 0 !important;
  }

  body:not(.report-capture-native) #records-view .attendance-preview .calendar-grid .calendar-week-row {
    position: static !important;
    grid-template-rows: auto !important;
    min-height: 108px !important;
  }

  body:not(.report-capture-native) #records-view .attendance-preview .calendar-day > b {
    min-height: 20px;
  }

  body:not(.report-capture-native) #records-view .attendance-preview .calendar-day .attendance-event {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 4px !important;
    margin-top: 3px !important;
    padding: 2px 3px !important;
  }

  body:not(.report-capture-native) #records-view .attendance-preview .attendance-subject-row {
    grid-column: 1 / -1;
  }

  body:not(.report-capture-native) #records-view .attendance-preview .attendance-event:has(.attendance-delete-row, .attendance-cancel-row) .attendance-subject-row {
    padding-right: 17px;
  }

  body:not(.report-capture-native) #records-view .attendance-preview .attendance-event select {
    display: block;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    padding: 0 2px !important;
    border: 0 !important;
    border-radius: 2px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #16283e !important;
    font: 500 11px/normal Arial, "Noto Sans KR", sans-serif !important;
    appearance: none;
    text-overflow: ellipsis;
    cursor: pointer;
  }

  body:not(.report-capture-native) #records-view .attendance-preview .attendance-event .attendance-subject-select,
  body:not(.report-capture-native) #records-view .attendance-preview .attendance-event .attendance-status-select {
    font-weight: 700 !important;
  }

  body:not(.report-capture-native) #records-view .attendance-preview .attendance-event select:hover,
  body:not(.report-capture-native) #records-view .attendance-preview .attendance-event select:focus-visible {
    background: #fff !important;
    outline: 1px solid #517db2;
    outline-offset: -1px;
  }

  body:not(.report-capture-native) #records-view .attendance-preview .attendance-event :is(.attendance-delete-row, .attendance-cancel-row) {
    position: absolute !important;
    inset: 2px 2px auto auto !important;
    width: auto !important;
    min-height: 0 !important;
  }

  body:not(.report-capture-native) #records-view .attendance-preview .attendance-event :is(.attendance-delete-button, .attendance-cancel-button) {
    width: 14px !important;
    min-width: 14px !important;
    height: 16px !important;
    min-height: 16px !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 14px !important;
  }

  body:not(.report-capture-native) #records-view .attendance-preview :is(.attendance-delete-button, .attendance-cancel-button)::after {
    content: '×';
    font-size: 11px;
  }
}

@media screen and (max-width: 650px) {
  body:not(.report-capture-native) #records-view .attendance-preview .calendar-day {
    padding-inline: 1px !important;
  }

  body:not(.report-capture-native) #records-view .attendance-preview .calendar-day .attendance-event {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 1px !important;
  }

  body:not(.report-capture-native) #records-view .attendance-preview .attendance-add-row {
    right: 1px;
  }

  body:not(.report-capture-native) #records-view .attendance-preview .attendance-add-row button {
    font-size: 0;
    min-width: 17px;
    padding-inline: 2px;
  }

  body:not(.report-capture-native) #records-view .attendance-preview .attendance-add-row button::after {
    content: '+';
    font-size: 12px;
  }
}
