/* Shared visual language for the application; publication/export styles remain independent. */
:root{--red:#a61934;--red-dark:#86152a;--ink:#202b3c;--muted:#667387;--line:#e0e6ee;--bg:#f3f5f8;--surface:#fff;--soft:#f8fafc;--focus:#a6193429;--green:#18714f;--amber:#8a5c0b}
body{line-height:1.5}button,input,select,textarea{transition:border-color .15s,background-color .15s,box-shadow .15s}button{min-height:40px;border-radius:10px;padding:10px 15px;line-height:1.35;font-weight:600}button:hover{border-color:#bdc8d7;background:#f5f7fa}button.primary{background:var(--red);border-color:var(--red);box-shadow:0 2px 3px #74172b12;color:white}button.primary:hover{background:var(--red-dark);border-color:var(--red-dark)}button:disabled{opacity:.52}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.field input:focus,.field select:focus,.field textarea:focus,.toolbar input:focus,.toolbar select:focus{outline:0;border-color:var(--red);box-shadow:0 0 0 3px var(--focus)}input,select,textarea{min-width:0}.field{gap:7px;font-size:12px;font-weight:600;color:#344257}.field input,.field select,.field textarea{min-height:44px;border:1px solid #d7dfea;border-radius:9px;padding:11px 12px;background:#fff;color:var(--ink);font-weight:400}.field textarea{line-height:1.65;min-height:106px}.field input:disabled,.field select:disabled,.field textarea:disabled{background:#f6f8fb;color:#657085;opacity:1}.field small{font-weight:400}.check{display:flex;align-items:flex-start;gap:10px;line-height:1.55;font-size:13px}.check input[type=checkbox]{width:18px;height:18px;min-height:18px;flex:0 0 18px;margin:2px 0 0;padding:0;accent-color:var(--red)}
.shell{grid-template-columns:256px minmax(0,1fr)}.sidebar{padding:26px 16px 18px;gap:5px;border-right:1px solid var(--line);background:white}.sidebar-brand-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.sidebar .brand{margin:0;padding:0 12px;gap:11px}.brand-mark{width:40px;height:40px;border-radius:12px;background:var(--red);box-shadow:0 3px 10px #a6193414}.brand strong{font-size:18px;letter-spacing:-.4px}.brand small{font-size:9px;letter-spacing:1.7px}.sidebar .nav-button{display:flex;align-items:center;gap:11px;min-height:44px;padding:11px 13px;border-radius:9px;font-size:13px;color:#5b687a;font-weight:550}.sidebar .nav-button:hover{background:#f5f7fa}.sidebar .nav-button.active{background:#f8edf0;color:var(--red);font-weight:700}.nav-icon{display:inline-flex;flex:0 0 20px;width:20px;height:20px}.nav-icon svg,.admin-link-icon svg,.menu-toggle svg,.sidebar-close svg{width:20px;height:20px;display:block}.admin-sidebar-navigation{margin-top:18px;padding-top:20px}.admin-sidebar-navigation .admin-nav-group{margin-bottom:20px}.admin-sidebar-navigation .admin-nav-group h2{font-size:10px;letter-spacing:1.25px;color:#8390a1;margin-bottom:8px;padding:0 13px}.admin-sidebar-navigation a{display:flex;align-items:center;gap:10px;min-height:38px;padding:9px 12px;border-radius:8px;line-height:1.4;font-size:12px;color:#667387;font-weight:500}.admin-sidebar-navigation a:hover{background:#f6f8fb;color:var(--ink)}.admin-sidebar-navigation a[aria-current=page]{background:#f8edf0;color:var(--red);font-weight:700}.admin-link-icon{display:inline-flex;flex:0 0 17px}.admin-link-icon svg{width:17px;height:17px}.sidebar-bottom{padding:18px 8px 0;margin-top:auto}.user{gap:10px}.user>div:last-child{min-width:0}.user strong{font-size:12px;overflow-wrap:anywhere}.user small{font-size:10px;margin-top:2px}.avatar{width:34px;height:34px;flex:0 0 34px;background:#f7e9ee}.sidebar-bottom>.quiet{margin-top:10px;font-size:12px;color:var(--muted)}.sidebar>[data-mobile-logout]{display:none}.menu-toggle,.sidebar-close{display:none}.navigation-scrim{display:none}
.topbar{height:80px;padding:0 32px;gap:20px;background:#ffffffed;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:15}.workspace-context{display:flex;flex-direction:column;gap:2px}.workspace-context strong{font-size:14px;color:var(--ink);font-weight:650}.workspace-context>span{font-size:11px;color:#8190a2}.workspace-year{margin-left:auto;display:flex;align-items:center;gap:12px;font-size:11px;color:var(--muted)}.workspace-year select{min-height:38px;padding:8px 32px 8px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:12px;color:var(--ink)}.content{max-width:1560px;padding:30px 32px 64px}.eyebrow{font-size:10px;letter-spacing:1.45px;margin-bottom:9px;font-weight:750}h1{font-size:clamp(26px,2.4vw,33px);line-height:1.22;letter-spacing:-.8px;font-weight:720}h2{font-size:18px;line-height:1.4;letter-spacing:-.3px}h3{font-size:15px;letter-spacing:-.15px}.page-heading{margin-bottom:25px}.page-heading p{font-size:13px;line-height:1.65;max-width:780px}.panel,.stat{border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:0 2px 8px #1d294003;padding:22px}.panel>p{font-size:13px}.stats{gap:14px;margin-bottom:24px}.stat{position:relative;text-align:left;min-width:0}.stat span{font-size:12px;line-height:1.4;display:block}.stat strong{font-size:34px;font-weight:720;letter-spacing:-1px;font-variant-numeric:tabular-nums;margin:12px 0 7px;color:var(--ink)}.stat small{font-size:11px;line-height:1.5;display:block}.stat[data-task]:hover{border-color:#d1a9b4;background:#fff;box-shadow:0 4px 16px #74172b09}.admin-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.admin-grid{gap:20px}.admin-grid .panel{min-width:0}.admin-scope{padding-bottom:20px;margin-bottom:24px;border-bottom:1px solid var(--line);gap:20px}.admin-scope strong{font-size:12px;font-weight:600;color:var(--muted)}.admin-scope label{font-size:11px}.admin-scope select{min-height:38px;border-radius:9px;max-width:260px}.toolbar{gap:10px;margin-bottom:20px}.toolbar input,.toolbar select{min-height:42px;border:1px solid var(--line);border-radius:9px;padding:10px 12px;background:white;font-size:12px}.toolbar input{flex:1;min-width:180px}.table-wrap{border:1px solid var(--line);border-radius:12px}.table-wrap table{font-size:12px}.table-wrap th{font-size:11px;font-weight:650;background:#f7f9fc;color:#607086;line-height:1.45;white-space:normal;padding:13px 15px}.table-wrap td{padding:15px;line-height:1.55;vertical-align:middle;border-color:#edf0f5}.table-wrap tbody tr:hover>td{background:#fbfcfe}.table-wrap td.title strong{font-size:13px}.table-wrap .muted{font-size:11px}.table-wrap td button{font-size:11px;min-height:34px;padding:8px 11px}.pill{font-size:10px;border-radius:20px;padding:4px 9px;font-weight:650}.pill.green{background:#e9f5ee;color:#1a6b4b}.pill.amber{background:#fff4dc;color:#8a5c0b}.pill.red{background:#fbe9ee;color:#9c2541}.notice{font-size:12px;border-radius:11px;line-height:1.7}.activity-row{padding:14px 0}.activity-row p{margin:5px 0;font-size:12px}.subject-card{border-radius:14px;padding:22px;border-color:var(--line);box-shadow:0 2px 7px #1d294002;min-height:185px}.subject-card:hover{border-color:#d0adb7;transform:translateY(-1px);box-shadow:0 8px 22px #1d294007}.subject-icon{background:#f8edf0;border-radius:11px}.subject-card h3{font-size:16px}.subject-card p{line-height:1.6}.card-footer{font-size:11px}.admin-mobile-nav{display:none}
.plan-editor-shell .content{padding:26px 28px 44px}.plan-heading{margin-bottom:12px}.plan-heading h1{font-size:29px;line-height:1.2}.plan-editor-shell .editor-guidance{border:1px solid var(--line);border-left:4px solid var(--red);border-radius:12px;background:#fff;padding:16px 18px;box-shadow:none}.plan-editor-shell .editor-guidance>strong{font-size:14px}.plan-editor-shell .editor-guidance>p{font-size:12px;line-height:1.65}.plan-editor-shell .totals{gap:10px;margin:16px 0}.plan-editor-shell .total{padding:11px 14px;border-radius:10px}.plan-editor-shell .total strong{font-size:19px}.sheet-heading{margin:20px 0 13px}.sheet-heading>div{gap:8px}.sheet-heading button{min-height:36px}.plan-workbook{border-color:#dce3ec;border-radius:13px;box-shadow:0 3px 12px #1d294004}.sheet-toolbar{padding:14px 16px;gap:14px;background:#fbfcfe}.sheet-toolbar label{font-size:10px;letter-spacing:.1px}.sheet-toolbar input,.sheet-toolbar select{border-color:#dce3ec;border-radius:8px;min-height:38px}.plan-sheet-scroll{max-height:68vh}.plan-sheet .sheet-edit{border-radius:7px}.sheet-hint{padding:13px 16px;font-size:11px;line-height:1.65;background:#fbfcfe}.sticky-save{border:1px solid #dce3ec;border-radius:13px;box-shadow:0 5px 24px #172b4520;padding:15px 18px;bottom:14px;background:#fff}.sticky-save strong{font-size:13px}.sticky-save small{font-size:11px}.sticky-save button{min-height:40px}.study-guidelines{border-left:4px solid #bcc8d8;margin:16px 0;padding:17px 20px}.study-guidelines h2{font-size:14px;margin:0 0 6px}.study-guidelines>p{font-size:11px;margin:0 0 10px}.study-guidelines ol{padding-left:20px;margin:0;font-size:12px}.study-guidelines li{padding:3px 0}.study-guidelines li p{margin:4px 0;font-size:11px}.submission-contact{display:flex;align-items:center;flex-wrap:wrap;gap:10px 25px;padding:16px 20px;border-left:4px solid #b7c8d5}.submission-contact h2{font-size:13px;margin:0;min-width:100px}.submission-contact p{margin:0;line-height:1.5;flex:1;font-size:12px}.submission-contact small{font-size:10px}.submission-contact a{color:var(--red);text-underline-offset:3px}.footnote-card{background:#fafbfd;border-color:#e0e6ee;border-radius:11px;padding:17px}
dialog{width:min(1000px,calc(100vw - 48px));max-width:1000px;max-height:calc(100dvh - 48px);padding:0;border:1px solid #e0e5ec;border-radius:18px;box-shadow:0 24px 90px #101c3040;background:#fff}dialog::backdrop{background:#14203470;backdrop-filter:blur(3px)}#modal-content{padding:26px}.modal-heading{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-26px -26px 22px;padding:20px 26px;background:#fff;border-bottom:1px solid var(--line)}.modal-heading h2{font-size:19px;line-height:1.4;margin:0}.modal-heading button{width:34px;min-height:34px;padding:5px;border:0;border-radius:8px;color:#718096}.modal-heading button:hover{background:#f1f4f8}#test-form>.form-grid{display:flex;flex-direction:column;gap:16px}#test-form .test-editor-section{border:1px solid #e0e6ee;border-radius:13px;background:#fcfdfe;padding:19px;min-width:0}.test-section-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:17px}.test-section-number{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:9px;background:#f3e6eb;color:var(--red);font-size:12px;font-weight:750}.test-section-heading h3{font-size:14px;line-height:1.4;margin:0 0 3px}.test-section-heading p{font-size:11px;line-height:1.45;margin:0;color:var(--muted)}.test-section-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.test-section-fields>.full,.test-section-fields>.test-aids-field,.test-section-fields>#content-help{grid-column:1/-1}.test-editor-section[data-section=basics] .test-section-fields>.field.full{grid-column:auto}#test-form .test-moment-field,#test-form .test-duration-field,#test-form .test-form-kind{min-width:0}#test-form .test-duration-field>.check{margin-top:10px}#test-form .test-flags{margin:0;border-color:#e1e6ee;background:#fff;padding:12px;border-radius:9px;align-self:start}#test-form .test-flags legend{font-size:11px;color:#657085}#test-form .test-weight-field{padding:13px;background:#fff;border:1px solid #dfe5ee;border-radius:10px}#test-form .test-weight-field>.field{margin-top:10px}#test-form .test-aids-field{margin:0;border-color:#dfe5ee;border-radius:10px;background:#fff;padding:16px}#test-form .test-aids-field legend{font-size:12px;color:#46566c;padding:0 7px}#test-form .test-aids-field>p{margin:0 0 11px;font-size:11px}#test-form .test-aids-options{gap:12px 20px}#test-form .test-aids-options .check{font-size:12px}.test-editor-section[data-section=content] .test-section-fields>.field{grid-column:1/-1}#content-help{margin:0;font-size:11px;line-height:1.65}#test-form #title-length{font-size:11px;font-weight:400}#test-form .test-editor-pta{margin:0;border:1px solid #e5c9d2;border-radius:13px;padding:19px;background:#fffafb}#test-form .test-editor-pta>legend{padding:0 8px;font-size:13px;color:var(--red)}#test-form .test-editor-pta>p{font-size:12px;margin:0 0 14px}#test-form .test-form-actions{position:sticky;bottom:-26px;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:15px;margin:22px -26px -26px;padding:17px 26px;background:#fff;border-top:1px solid var(--line);box-shadow:0 -5px 14px #1d294004}#test-form .test-form-actions p{font-size:11px;max-width:440px;margin:0;line-height:1.55}#test-form .test-form-actions button{flex:0 0 auto}#test-form .study-guidelines{margin-top:0;margin-bottom:18px}
.login{grid-template-columns:minmax(380px,.95fr) minmax(520px,1.05fr);background:#f3f5f8}.login-art{position:relative;overflow:hidden;padding:clamp(45px,5vw,90px);background:linear-gradient(150deg,#771a31 0%,#a61934 75%,#b02c44 100%);isolation:isolate}.login-art:after{width:540px;height:540px;right:-220px;bottom:-190px;border:1px solid #ffffff15;background:transparent;box-shadow:0 0 0 65px #ffffff04,0 0 0 130px #ffffff03;z-index:-1}.login-art h1{font-size:clamp(37px,4vw,56px);line-height:1.12;letter-spacing:-1.8px;max-width:550px;color:#fff}.login-art>p{font-size:14px;line-height:1.8;max-width:420px;color:#fffdf6d9}.login-art .eyebrow{font-size:10px;color:#ffe3eb;letter-spacing:1.6px}.login-highlights{display:grid;gap:13px;margin-top:30px}.login-highlights span{display:flex;align-items:center;gap:11px;color:#fff1f5;font-size:12px}.login-highlights svg{width:18px;height:18px;color:#f0b8c7}.login>.login-form{padding:36px;display:flex;align-items:center;justify-content:center}.login .login-box{width:100%;max-width:465px;padding:34px;background:#fff;border:1px solid #e1e7ef;border-radius:18px;box-shadow:0 8px 35px #202d4407}.login .brand{margin-bottom:28px;padding:0}.login .login-box h2{font-size:26px;margin-bottom:8px;letter-spacing:-.6px}.login .login-box>p{font-size:12px;line-height:1.7}.login-tabs{display:grid;grid-template-columns:1fr 1fr;padding:4px;gap:3px;background:#f0f3f7;border-radius:10px;border:0;margin:25px 0 23px}.login-tabs button{min-height:40px;border:0!important;border-radius:7px;color:#6b7789;font-size:11px;font-weight:600;white-space:normal;padding:9px 7px}.login-tabs button.active{background:#fff;color:var(--red);box-shadow:0 1px 4px #1d294014}.login-tabs button:not(.active):hover{background:#e8edf4}.login #login{display:grid;gap:15px}.login #login .field{margin:0;font-size:11px}.login #login>.primary{margin-top:1px;min-height:45px}.login #login #login-error:empty{display:none}.login .login-box>p:last-child{margin-top:20px;margin-bottom:0}.login .login-box>p:last-child small{font-size:10px;line-height:1.7}.login .field input{min-height:44px}.empty{font-size:13px;padding:38px 22px}#toast{border-radius:11px;box-shadow:0 8px 26px #14203426;font-size:12px;line-height:1.6}[hidden]{display:none!important}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:1200px){.admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.content{padding:26px}.login-art{padding:48px}.login .login-box{padding:28px}.plan-editor-shell .editor-guidance{grid-template-columns:1fr}.plan-editor-shell .editor-steps{grid-column:1;grid-row:auto;margin-top:10px}.plan-editor-shell .editor-guidance>p{max-width:none}}
@media(max-width:900px){.shell,.shell.editor-wide{display:block;min-height:100dvh}.shell>.sidebar,.shell.editor-wide>.sidebar{display:flex;position:fixed;inset:0 auto 0 0;z-index:60;width:280px;max-width:calc(100vw - 40px);height:100dvh;padding:23px 15px;overflow-y:auto;transform:translateX(-110%);transition:transform .18s ease;box-shadow:10px 0 40px #14203414}.shell.navigation-open>.sidebar{transform:translateX(0)}.sidebar-brand-row{margin-bottom:22px}.sidebar .brand{padding-left:8px}.sidebar-close{display:grid;place-items:center;width:32px;min-height:32px;padding:6px;background:#f3f5f8;border:0}.menu-toggle{display:grid;place-items:center;width:38px;min-height:38px;padding:8px;background:#fff;border:1px solid var(--line);border-radius:9px;flex:0 0 38px}.navigation-scrim{display:block;position:fixed;inset:0;z-index:50;width:100%;height:100dvh;border:0;border-radius:0;background:#14203466;padding:0}.navigation-open .main{pointer-events:none}body.navigation-open{overflow:hidden}.topbar{padding:0 20px;height:72px;gap:13px}.workspace-year>span{display:none}.content{padding:25px 22px 45px}.sidebar .admin-sidebar-navigation{display:block}.admin-mobile-nav{display:none!important}.sidebar-bottom{display:block}.sidebar .user{display:flex}.sidebar .nav-button{width:100%;flex:none}.sidebar .subject-tree{display:block;width:100%}.plan-editor-shell .content{padding:22px 20px 36px}.login{grid-template-columns:1fr;min-height:100dvh}.login-art{display:none}.login>.login-form{padding:28px;min-height:100dvh}.login .login-box{max-width:460px}.admin-scope{align-items:flex-start}.admin-scope select{max-width:190px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.topbar{padding:0 16px;height:68px;gap:10px}.workspace-context strong{font-size:13px}.workspace-context>span{font-size:10px;max-width:135px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace-year select{font-size:11px;padding:8px 7px;min-height:36px;max-width:113px}.content,.plan-editor-shell .content{padding:22px 16px 36px}.page-heading{flex-direction:column;gap:16px;margin-bottom:22px}.page-heading h1{font-size:27px;overflow-wrap:anywhere}.page-heading p{font-size:12px}.admin-scope{gap:12px;flex-wrap:wrap;margin-bottom:22px;padding-bottom:18px}.admin-scope select{max-width:100%}.panel{padding:18px;border-radius:12px}.admin-grid{grid-template-columns:1fr;gap:16px}.admin-stats,.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.stat{padding:16px}.stat strong{font-size:30px;margin:10px 0 5px}.stat span{font-size:11px}.stat small{font-size:10px}.toolbar{gap:9px}.toolbar input,.toolbar select{font-size:12px;min-width:0;max-width:100%;flex:1 1 145px}.toolbar input{flex-basis:100%}.cards{grid-template-columns:1fr}.section-heading{gap:12px;flex-wrap:wrap}.section-heading h2{font-size:17px}.table-wrap th,.table-wrap td{padding:11px 12px}.plan-heading h1{font-size:26px}.plan-heading>button{align-self:flex-start}.plan-editor-shell .editor-guidance{padding:14px}.plan-editor-shell .editor-steps{display:none}.plan-editor-shell .totals{display:grid;grid-template-columns:1fr;gap:8px}.plan-editor-shell .total{padding:10px 12px;flex-wrap:wrap}.plan-editor-shell .total small{font-size:10px}.sheet-heading>div{gap:7px;flex-wrap:wrap}.sheet-toolbar{padding:12px;gap:11px;align-items:stretch}.sheet-toolbar .sheet-search{max-width:none;flex-basis:100%}.sheet-toolbar input{min-width:0}.sheet-toolbar>p{font-size:11px;margin:0;align-self:center}.sheet-toolbar>button{align-self:center}.sticky-save{bottom:8px;padding:13px;gap:11px;display:flex;flex-direction:column;align-items:stretch}.sticky-save .button-row{width:100%;gap:8px}.sticky-save button{flex:1;font-size:11px;padding:10px 9px}.sticky-save small{font-size:10px}.submission-contact{gap:8px;padding:15px}.submission-contact p{flex-basis:100%}.study-guidelines{padding:14px 16px}.study-guidelines h2{font-size:13px}.study-guidelines li{font-size:11px}dialog{width:calc(100vw - 18px);max-height:calc(100dvh - 18px);border-radius:14px}#modal-content{padding:17px}.modal-heading{margin:-17px -17px 17px;padding:15px 17px}.modal-heading h2{font-size:17px}#test-form .test-editor-section{padding:15px}.test-section-fields{grid-template-columns:1fr;gap:14px}.test-section-heading{gap:10px;margin-bottom:15px}.test-section-heading p{font-size:10px}.test-section-heading h3{font-size:13px}.test-editor-section[data-section=basics] .test-section-fields>.field.full{grid-column:1/-1}#test-form .test-flags{grid-template-columns:1fr}#test-form .test-editor-pta{padding:15px}#test-form .test-form-actions{bottom:-17px;margin:18px -17px -17px;padding:14px 17px;flex-direction:column;align-items:stretch;gap:10px}#test-form .test-form-actions button{width:100%}#test-form .test-form-actions p{font-size:10px}.login>.login-form{padding:20px}.login .login-box{padding:26px 22px;border-radius:15px}.login .login-box h2{font-size:25px}.login .brand{margin-bottom:25px}.footnote-test-list{grid-template-columns:1fr}.statistics-filter-grid{grid-template-columns:1fr}}
@media(max-width:360px){.stats,.admin-stats{grid-template-columns:1fr}.workspace-context>span{max-width:100px}.login>.login-form{padding:12px}.login .login-box{padding:24px 18px}.topbar{padding:0 12px;gap:8px}}

/* Keep grouped fields across the complete dialog width. */
#test-form>.form-grid{align-items:stretch}#test-form .test-editor-section{width:100%;box-sizing:border-box}
