.cabinet{background:#061c32;color:#dce6ef;min-height:100dvh;font:16px/1.5 SchoolFutura,Arial,sans-serif}.cabinet *{box-sizing:border-box}.cabinet h1,.cabinet h2{font-family:Georgia,'Times New Roman',serif;letter-spacing:0;font-weight:600}.cabinet button{font-weight:400}.cab-head{display:flex;align-items:center;gap:25px;padding:14px 28px;border-bottom:1px solid #31475c;min-height:85px}.cab-head img{width:55px;height:55px;object-fit:contain}.cab-school{font-size:13px;letter-spacing:.1em}.cab-head>strong{font-family:Georgia,serif;font-size:23px;border-left:1px solid #526276;padding-left:26px;font-weight:400}.cab-role{color:#b6c9db}.cab-profile{margin-left:auto;position:relative;font-size:14px}.cab-profile summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.cab-profile button{display:block;width:100%}.cab-filters{display:flex;align-items:center;justify-content:space-between;background:#f6f3ed;color:#10273c;padding:0 28px;gap:20px;border-bottom:1px solid #c7cbd0}.cab-filters nav{display:flex;overflow-x:auto;min-width:0;align-self:stretch}.cab-filters nav button{white-space:nowrap;background:none;border:0;border-radius:0;padding:18px 28px;color:#142d48}.cab-filters nav button[aria-pressed=true]{background:linear-gradient(120deg,#f0d9a3,#d3af6a)}.cab-filters label{display:flex;align-items:center;gap:12px;white-space:nowrap;font-size:13px}.cab-filters select{width:235px;font-size:15px;padding:8px;margin:8px 0;background:#fffdf9}.cab-grid{display:grid;grid-template-columns:265px minmax(380px,1fr) 290px;max-width:1800px;margin:auto;align-items:start}.cab-pupils{padding:25px 12px;position:sticky;top:0;max-height:100dvh;overflow:auto}.cab-pupils h2{font-size:22px;padding:0 14px}.cab-search{padding:0 12px;margin:18px 0}.cab-search input{background:#142e47;color:#f5f6f8;border-color:#476178;font-size:16px}.cab-search input::placeholder{color:#b6c8d8}.cab-pupil-list button{width:100%;display:flex;align-items:center;gap:12px;text-align:left;background:none;color:#eef3f7;border:0;border-bottom:1px solid #30465b;border-radius:0;padding:17px 12px;min-height:80px}.cab-pupil-list button[aria-pressed=true]{background:#24405c;box-shadow:inset 4px 0 #e8ce91;border-radius:4px}.cab-pupil-list strong{font-weight:500;display:block}.cab-pupil-list small{color:#b8cadd;font-size:12px;display:block;margin-top:4px}.cab-avatar{border-radius:50%;background:#35516c;min-width:36px;height:36px;display:grid;place-items:center;font-size:13px}.cab-dot{width:8px;height:8px;flex-shrink:0;margin-left:auto;border-radius:50%;background:#e0bd72}.cab-dot.done{background:#6ebc91}.cab-paper{background:#faf8f3;color:#13253d;min-height:calc(100dvh - 155px);padding:28px 32px;min-width:0}.cab-paper-head{display:flex;justify-content:space-between;gap:15px;margin-bottom:25px}.cab-paper h1{font-size:32px;margin:0 0 6px}.cab-paper p{margin:4px 0 12px}.cab-paper-head p,.cab-byline{color:#62718a}.cab-arrows{display:flex;gap:6px}.cab-arrows button{background:none;border:1px solid #ccd1d8;min-width:40px;padding:5px;font-size:24px;height:42px;color:#22374b;border-radius:6px}.cab-overview-title{font-size:20px!important;margin:0 0 10px!important}.cab-table-wrap{overflow:auto;border:1px solid #d5d9df;border-radius:7px;margin-bottom:26px}.cab-paper table{border-collapse:collapse;width:100%;font-size:13px}.cab-paper th,.cab-paper td{padding:9px 10px;border-bottom:1px solid #dddfe2;text-align:left}.cab-paper th{background:#efeee9;font-weight:400}.cab-paper td button{border:0;background:none;padding:0;min-height:30px;text-align:left;font-size:14px;color:#112e4c}.cab-subject{border-bottom:1px solid #c9d0d8;padding:5px 0 24px;margin-bottom:26px;scroll-margin-top:20px}.cab-subject-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.cab-subject h2,.cab-tutor h2{font-size:26px;margin:0 0 6px}.cab-grade{background:#e1ecd9;color:#294d34;padding:2px 14px;border-radius:7px;font-size:23px}.cab-settings{margin:15px 0;color:#62718a;font-size:13px}.cab-settings summary{cursor:pointer;min-height:30px}.cab-subject-fields{display:grid;grid-template-columns:1fr 1.6fr;gap:15px;margin:16px 0}.cab-paper label{font-size:14px;color:#24384e;margin-bottom:15px;font-weight:500}.cab-paper input,.cab-paper select,.cab-paper textarea{font-family:SchoolFutura,Arial,sans-serif;font-size:17px;background:#fffdf9;color:#14283c;border:1px solid #c8d0d8;border-radius:7px;margin-top:6px;padding:10px 12px}.cab-paper textarea{min-height:90px;line-height:1.5}.cab-paper .cab-check{display:flex;align-items:center;gap:8px;font-size:14px}.cab-check input{width:18px;height:18px;min-height:18px;accent-color:#25486b;margin:0}.cab-paragraph{margin:16px 0}.cab-paragraph strong{font-size:15px}.cab-legacy{background:#edf0f2;padding:12px 16px;border-radius:6px;font-size:15px;margin:12px 0}.cab-tutor{padding-top:28px}.cab-savebar{position:sticky;bottom:0;background:#faf8f3ed;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 0;border-top:1px solid #d3d8dc;font-size:13px;color:#62718a}.cabinet .cab-gold{background:linear-gradient(115deg,#f0dbad,#d5b477);color:#102943;border:1px solid #dec28a;font-weight:600;border-radius:8px;padding:12px 18px}.cabinet .cab-gold:hover{background:#e4c68e}.cab-secondary{background:transparent;color:#234260;border:1px solid #b5c3d0}.cab-progress{padding:27px 23px;position:sticky;top:0;max-height:100dvh;overflow:auto}.cab-progress h2{font-size:21px;line-height:1.35}.cab-ring{position:relative;width:180px;height:180px;margin:20px auto}.cab-ring svg{width:100%;height:100%;fill:none;stroke:#304a61;stroke-width:7}.cab-ring .cab-ring-value{stroke:#dfc17c}.cab-ring>div{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center}.cab-ring strong{font-family:Georgia,serif;font-size:30px}.cab-ring span{font-size:13px}.cab-progress-section{border-top:1px solid #344c63;padding:18px 0;font-size:14px}.cab-progress h3{font:600 16px SchoolFutura,Arial,sans-serif;letter-spacing:0}.cab-progress button{display:block;width:100%;margin:10px 0;background:none;border:1px solid #627b94;color:#e1e8ef;border-radius:8px;font-size:15px}.cab-progress-section button{border:0;padding:3px 0;text-align:left;min-height:32px;margin:0}.cab-status{text-align:center;color:#dec38b}.cab-progress small{display:block;margin-top:22px;color:#a8bfd2}.cab-progress #cab-history-box{font-size:12px}.cab-teacher{grid-template-columns:265px minmax(0,1fr);max-width:1300px}.cab-empty{padding:60px 0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.cab-print{background:#f6f3ed;min-height:100vh;padding:20px;color:#15263a}.cab-print article{max-width:820px;margin:20px auto;background:white;padding:35px}.cab-print .no-print{display:flex;gap:12px;justify-content:center;padding:15px}.cab-print section{border-top:1px solid #ccc;padding:20px 0}.preserve{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:1150px){.cab-school{display:none}.cab-grid{grid-template-columns:225px minmax(0,1fr)}.cab-progress{grid-column:2;position:static;max-height:none;display:block}.cab-ring{width:130px;height:130px;float:left;margin:0 25px 15px 0}.cab-progress-section{clear:both}.cab-paper{padding:25px}.cab-role{font-size:14px}.cab-head{gap:15px}.cab-head>strong{font-size:20px}}
@media(max-width:700px){.cab-head{padding:12px 16px;gap:12px;flex-wrap:wrap}.cab-head img{width:40px;height:40px}.cab-head>strong{padding:0;border:0;font-size:20px}.cab-role{display:none}.cab-profile{font-size:12px;max-width:160px}.cab-filters{padding:0 12px;flex-wrap:wrap;gap:0}.cab-filters nav{width:100%}.cab-filters nav button{padding:12px 22px}.cab-filters label{width:100%;justify-content:space-between}.cab-filters select{width:65%}.cab-grid,.cab-teacher{display:block}.cab-pupils{position:static;max-height:none;padding:14px 12px}.cab-pupils h2{font-size:19px;margin-bottom:5px}.cab-search{margin:8px 0}.cab-pupil-list{display:flex;overflow-x:auto;gap:8px;padding-bottom:6px}.cab-pupil-list button{width:210px;min-width:210px;border:1px solid #38516a;border-radius:8px;padding:10px;min-height:68px}.cab-paper{padding:22px 18px;min-height:0}.cab-paper h1{font-size:29px}.cab-paper-head{gap:8px}.cab-paper-head p{font-size:14px}.cab-subject-fields{grid-template-columns:1fr}.cab-paper textarea{font-size:17px}.cab-progress{position:static;max-height:none;padding:24px 20px}.cab-savebar{flex-wrap:wrap}.cab-savebar button{width:100%}.cab-print{padding:8px}.cab-print article{padding:15px}.cab-print .no-print{flex-wrap:wrap}.cabinet{padding-bottom:env(safe-area-inset-bottom)}}
@media print{.cab-print{padding:0;background:white}.cab-print .no-print{display:none!important}.cab-print article{max-width:none;margin:0;padding:0}.cab-print h2,.cab-print h3{break-after:avoid}.cab-print p{orphans:3;widows:3}@page{size:A4;margin:16mm}}
.cab-subject-head h2{margin-right:auto}.cabinet .cab-edit{font:13px SchoolFutura,Arial,sans-serif;padding:5px 9px;min-height:32px;background:transparent;border-color:#c8d0d8;border-radius:6px;color:#63748a}.cab-subject-head{flex-wrap:wrap}
/* 0.1.27: compact phone layout and safe area */
html.vis-cabinet-theme,html.vis-cabinet-theme body{background:#061c32;color-scheme:light;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.vis-cabinet-theme .cab-head{padding-top:calc(14px + env(safe-area-inset-top))}
.cab-mobile-pupil,.cab-profile-short{display:none}
.cab-profile[open]{z-index:20}.cab-profile[open] button{background:#19344f;color:#fff;border-color:#49637c}.cab-profile[open] button:hover{background:#284c6b}
.cab-period-editor{max-width:620px;margin:30px auto;border-radius:16px;min-height:0}.cab-period-editor h1{margin:25px 0}.cab-period-editor label{margin:20px 0}.cab-period-editor button[type=submit]{width:100%}.cab-period-editor #period-error{color:#a73535}.cab-empty{padding:24px 0}.cab-empty h2{font-size:25px}.cab-empty p{max-width:520px}
@media(max-width:700px){
.vis-cabinet-theme .cabinet{font-size:16px;min-height:100dvh}.vis-cabinet-theme .cab-head{flex-wrap:nowrap;min-height:64px;padding:calc(10px + env(safe-area-inset-top)) 16px 10px;gap:10px}
.cab-head img{width:34px;height:38px}.cab-head>strong{font:500 20px SchoolFutura,Arial,sans-serif;white-space:nowrap}.cab-profile{max-width:none;flex-shrink:0;margin-left:auto}.cab-profile-name{display:none}.cab-profile-short{display:grid;place-items:center;border-radius:50%;width:38px;height:38px;background:#2a4662;color:#fff;font:500 13px Arial,sans-serif}.cab-profile summary{min-height:40px}.cab-profile[open]{position:absolute;right:12px;top:calc(10px + env(safe-area-inset-top));width:220px;padding:6px 10px;background:#102c46;border:1px solid #446078;border-radius:12px}.cab-profile[open] summary{justify-content:flex-end}.cab-profile[open] .cab-profile-name{display:block;flex:1;font-size:13px;padding-right:8px}
.cab-filters{padding:0 16px 10px;gap:6px}.cab-filters nav button{min-height:42px;padding:9px 19px;font-size:16px}.cab-filters label{font-size:13px;gap:10px}.cab-filters select{font-size:16px;min-height:42px;padding:8px 10px;width:72%;margin:0}.cab-filters select:disabled{opacity:1;background:#eceae5;color:#6a7480;border-color:#d4d6d8}
.cab-pupils{padding:14px 16px 16px}.cab-pupils h2,.cab-pupils .cab-search,.cab-pupil-list{display:none}.cab-mobile-pupil{display:block;color:#c4d1df;font-size:13px;margin:0}.cab-mobile-pupil select{background:#16324d;border:1px solid #557088;color:#f1f5f8;border-radius:9px;font:400 17px SchoolFutura,Arial,sans-serif;min-height:46px;margin-top:5px;padding:10px 12px}
.cab-paper{min-height:0;padding:20px 18px 24px}.cab-paper-head{margin-bottom:20px;align-items:flex-start}.cab-paper h1{font-size:25px;line-height:1.2;overflow-wrap:anywhere}.cab-paper-head p{font-size:14px;margin-bottom:0}.cab-arrows{gap:5px}.cab-arrows button{min-width:34px;min-height:38px;width:34px;height:38px;font-size:22px}.cab-empty{padding:4px 0 8px}.cab-empty h2{font-size:22px;line-height:1.25;margin:0 0 10px}.cab-empty p{font-size:16px;line-height:1.45;margin:0 0 18px}.cab-empty .cab-gold{width:100%}
.cab-subject h2,.cab-tutor h2{font-size:23px}.cab-overview-title{font-size:18px!important}.cab-table-wrap{margin-bottom:20px}.cab-paper th,.cab-paper td{font-size:12px;padding:8px 6px}.cab-paper td button{font-size:13px}.cab-savebar{position:static;background:#faf8f3;padding-bottom:calc(12px + env(safe-area-inset-bottom))}.cab-progress h2{font-size:22px}.cab-period-editor{margin:16px 12px;padding:20px;min-height:0}.cab-period-editor h1{margin:20px 0}.cab-period-page{padding-bottom:20px}
}

.cab-period-notice{padding:12px 16px;margin:0 0 20px;border-left:3px solid #caaa67;background:#eaf0f4;color:#17314b;font-size:15px;line-height:1.5}.cab-period-notice button{display:block;margin-top:8px;max-width:100%;white-space:normal}.cabinet .cab-period-notice button{color:#17314b;border-color:#8d9dad}@media(max-width:700px){.cab-period-notice{padding:10px 12px;font-size:14px}}

/* Curriculum and decimal marks */
.cab-marks{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));min-width:0}.cab-assessment{font-size:16px;color:#52637a}.cab-grade{max-width:100%;font-size:15px!important;white-space:normal!important;overflow-wrap:anywhere}.cab-subject-head{flex-wrap:wrap}.cab-settings input[readonly]{opacity:.8}.cab-subject-fields>*{min-width:0}

.cab-overview{margin:24px 0;border:1px solid #ccd3dd;border-radius:14px;overflow:hidden}.cab-overview>summary{cursor:pointer;padding:16px;font-weight:700;font-size:18px}.cab-overview>summary small{color:#64748b;font-size:14px;margin-left:10px}.cab-overview .cab-table-wrap{margin:0;border:0;border-radius:0}.cab-overview td:last-child{text-align:right}
.cab-state{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;font-family:Arial,sans-serif;font-size:26px;font-weight:700}.cab-state-done{color:#287345;background:#e4f2e6}.cab-state-empty{color:#a53a3a;background:#f8e9e6}.cab-state-waiting{color:#956500;background:#fff0c5}.cab-status-key{padding:10px 14px;font-size:12px;color:#65758a}
.cab-extra-group{padding:12px 0 24px;border-bottom:1px solid #d3d9df}.cab-extra-group h3{font-size:21px;margin:16px 0}.cab-extra-group label{display:block;margin:16px 0}.cab-extra-group textarea{min-height:48px;resize:vertical;width:100%;box-sizing:border-box}
@media(max-width:600px){.cab-overview>summary{font-size:16px;padding:14px 10px}.cab-overview table{font-size:12px}.cab-overview th,.cab-overview td{padding:8px 5px}.cab-extra-group h3{font-size:19px}}

/* Student navigation and subject links, 0.1.35 */
.cab-paper-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px}.cab-paper-head>div:first-child{min-width:0}.cab-arrows{display:flex;gap:8px;flex-shrink:0;padding-top:4px}
.cabinet .cab-arrows button{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;margin:0;line-height:1;border-radius:12px;background:#f1f3f5;border:1px solid #bdc9d4;color:#23435c;touch-action:manipulation}.cab-arrows svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.cabinet .cab-arrows button:disabled{opacity:.35;cursor:default}.cabinet .cab-arrows button:focus-visible{outline:2px solid #b5914d;outline-offset:3px}
.cabinet .cab-overview td button[data-jump]{display:block;width:100%;min-height:44px;text-align:left;color:#235580;text-decoration:underline;text-decoration-color:#a0b2c4;text-underline-offset:3px;cursor:pointer;touch-action:manipulation;padding:8px 0;border:0;background:none}.cabinet .cab-overview td button[data-jump]:focus-visible{outline:2px solid #b5914d;outline-offset:2px}.cab-subject{scroll-margin-top:calc(16px + env(safe-area-inset-top))}.cab-jump-target{outline:2px solid #c8a85e;outline-offset:6px;border-radius:6px}
@media(max-width:700px){.cab-paper-head{grid-template-columns:minmax(0,1fr);gap:10px}.cab-arrows{justify-self:end;padding:0}.cab-paper-head h1{margin-top:0}.cab-overview>summary{line-height:1.4}}

/* Full-row subject navigation, 0.1.36 */
.cab-overview tr[data-jump]{cursor:pointer;touch-action:manipulation}.cab-overview tr[data-jump]>td:first-child{color:inherit;text-decoration:none}.cab-overview tr[data-jump]:active{background:#e8edf1}.cab-overview tr[data-jump]:focus-visible{outline:2px solid #b5914d;outline-offset:-2px;background:#f0ece1}
@media(hover:hover){.cab-overview tr[data-jump]:hover{background:#f0ece1}}

/* Searchable staff and growing tutor fields, 0.1.37 */
.cab-person{position:relative;margin:16px 0}.cab-person label{display:block}.cab-person-options{position:relative;max-height:230px;overflow:auto;background:#fffdf9;border:1px solid #bdc9d4;border-radius:10px;margin-top:5px}.cab-person-options[hidden]{display:none}.cabinet .cab-person-options button{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #e1e5e9;border-radius:0;padding:10px 12px;min-height:44px;background:transparent;color:#183149;font-size:16px}.cab-person-options button small{display:block;font-size:12px;color:#65778b}.cab-person-options button:focus,.cab-person-options button:hover{background:#f0ece1}.cab-person-options p{padding:10px}.cabinet .cab-tutor textarea{min-height:44px;overflow-y:hidden;resize:none;line-height:1.4}.cab-tutor{scroll-margin-top:20px}

/* Keep mobile pupil navigation beside class/period, 0.1.38 */
@media(max-width:700px){
 .cab-paper-head{display:grid;grid-template-columns:minmax(0,1fr) 96px;grid-template-rows:auto auto;column-gap:10px;row-gap:8px;margin-bottom:12px;align-items:center}
 .cab-paper-head>div:first-child{display:contents}
 .cab-paper-head h1{grid-column:1/-1;grid-row:1;margin:0;min-width:0}
 .cab-paper-head p{grid-column:1;grid-row:2;margin:0;min-width:0;line-height:1.35}
 .cab-paper-head .cab-arrows{grid-column:2;grid-row:2;justify-self:end;align-self:center;gap:8px;padding:0}
 .cab-paper-head+.cab-overview{margin-top:12px}
}

.cab-points-live{margin:16px 0}.cab-points-live label{display:block;margin-bottom:4px}.cab-paper .cab-bank-points{background:#edf1f3;font-weight:600;cursor:default}.cab-points-live small{display:block;font-size:13px}
@media print{.cab-bank-points{border:0;background:none;padding:0;font:inherit;color:inherit}}
/* Card actions: reserve the top-right corner without shifting the title. */
.cab-subject-head{position:relative}
.cab-subject-head:has(.cab-block-menu){padding-right:48px;min-height:44px}
.cab-block-menu{position:absolute;right:0;top:0;z-index:2}
.cab-block-menu[open]{z-index:20}
.cab-block-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;width:40px;height:40px;border:1px solid #c8d0d8;border-radius:8px;color:#234260;background:#faf8f3;font:28px/1 Arial,sans-serif}
.cab-block-menu>summary::-webkit-details-marker{display:none}
.cab-block-menu>summary::marker{content:""}
.cab-block-menu>summary:focus-visible{outline:2px solid #bd9848;outline-offset:2px}
.cab-block-menu-panel{position:absolute;right:0;top:46px;min-width:176px;max-width:calc(100vw - 64px);padding:5px;background:#fffdf9;border:1px solid #d2d7dd;border-radius:10px;box-shadow:0 6px 20px #10273c20}
.cabinet .cab-block-menu-panel button{display:block;width:100%;min-height:44px;margin:0;padding:10px 14px;background:transparent;border:0;border-radius:6px;text-align:left;color:#a33d3d;font-size:15px;white-space:normal}
.cabinet .cab-block-menu-panel button:hover{background:#f8eeee}
@media print{.cab-block-menu{display:none}}
.cab-preview-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;background:#f2dfb4;color:#132b42;font-size:15px;border-bottom:1px solid #d6b875}.cab-preview-banner small{display:block;font-size:13px}.cab-preview-banner button{background:#fffaf0;color:#132b42;border:1px solid #b89555;min-height:44px;border-radius:8px;padding:8px 14px;flex-shrink:0}@media(max-width:600px){.cab-preview-banner{align-items:flex-start;flex-direction:column;padding:10px 16px}.cab-preview-banner button{font-size:14px}}
.cab-staff-page{min-height:100dvh}.cab-staff-page .cab-head{flex-wrap:wrap}.cab-staff-page .cab-head>strong{border:0;padding:0}.cab-staff-page #staff-back{margin-left:auto;background:#faf8f3;color:#18344c;border-radius:8px;min-height:44px;padding:8px 14px}.cab-staff-content{max-width:1000px;margin:auto;background:#faf8f3;color:#13253d;padding:24px;min-height:calc(100dvh - 90px)}.cab-staff-content h1{font-size:28px;margin:0 0 20px}.cab-staff-filters{display:grid;grid-template-columns:1fr 1fr;gap:16px}.cab-staff-filters input,.cab-staff-filters select{width:100%;min-height:44px;font-size:16px;background:#fffdf9;border:1px solid #bdc9d4;border-radius:8px;padding:10px;color:#18344c;margin-top:6px}.cab-staff-content>p{color:#61748a;font-size:14px}.cab-staff-card{border:1px solid #c9d1d9;background:#fffdf9;border-radius:12px;margin:12px 0;overflow:hidden}.cab-staff-card>summary{cursor:pointer;padding:16px;display:flex;gap:12px;align-items:center;justify-content:space-between;list-style:none}.cab-staff-card>summary::-webkit-details-marker{display:none}.cab-staff-card>summary>span:first-child{min-width:0}.cab-staff-card>summary>span:last-child{white-space:nowrap;color:#65758a}.cab-staff-card>summary small{display:block;color:#65758a;font-size:14px}.cab-staff-card>summary::after{content:'⌄'}.cab-staff-card[open]>summary::after{content:'⌃'}.cab-staff-children{border-top:1px solid #dbe0e5;padding:0 16px}.cabinet .cab-staff-children button{display:block;width:100%;background:none;border:0;border-bottom:1px solid #e4e7e9;border-radius:0;text-align:left;padding:14px 0;color:#17344e;min-height:44px;font-size:16px}.cab-staff-children button span{display:block;font-size:14px;color:#61748a;margin-top:4px}.cab-staff-children small{font-weight:400;white-space:nowrap}.cab-staff-children button:last-child{border:0}@media(max-width:600px){.cab-staff-content{padding:18px 14px}.cab-staff-filters{grid-template-columns:1fr}.cab-staff-page .cab-head{padding:14px;gap:12px}.cab-staff-page #staff-back{width:100%;margin:0}.cab-staff-content h1{font-size:24px}}
.cab-completion h2{font-size:23px;margin:30px 0 12px}.cab-completion h2 small{font:16px sans-serif;color:#61748a}.cab-notice-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.cab-notice-actions button{min-height:44px;padding:12px 18px;white-space:normal}.cab-completion .cab-staff-card>summary{display:grid;grid-template-columns:1fr auto;gap:6px 14px}.cab-completion .cab-staff-card>summary strong{grid-column:1}.cab-completion .cab-staff-card>summary span,.cab-completion .cab-staff-card>summary small{grid-column:1;font-size:14px;color:#61748a}.cab-completion .cab-staff-card>summary::after{grid-column:2;grid-row:1/4}.cabinet .cab-completion-item{display:block;width:100%;text-align:left;padding:14px;background:#fffdf9;border:1px solid #dbe0e5;color:#17344e;white-space:normal}.cab-completion-item span,.cab-completion-item small{display:block;margin-top:5px;white-space:normal}.cab-completion-item:focus-visible{outline:3px solid #bb9c50;outline-offset:2px}#aux-back{margin-left:auto;min-height:44px;background:#faf8f3;color:#18344c;border-radius:8px;padding:8px 14px}.cab-completion p{line-height:1.5}@media(max-width:600px){#aux-back{width:100%;margin:0}.cab-notice-actions button{width:100%}.cab-completion h2{font-size:21px}}

.cab-push-offer{border:1px solid #d6bd7b;border-left:4px solid #c9aa5d;border-radius:12px;background:#fff9e9;padding:16px;margin:0 0 22px;color:#17344e}.cab-push-offer h2{font-size:21px;margin:0 0 8px}.cab-push-offer p{font-size:16px;line-height:1.4;margin:8px 0}.cab-push-offer .cab-notice-actions{margin:12px 0 0}.cab-push-offer button{min-height:44px}.cab-push-offer button:disabled{opacity:.65}

.vis-password-wrap{position:relative;width:100%}.vis-password-field>label{font:inherit;color:inherit}.vis-password-wrap input,.vis-auth .vis-password-wrap input{padding-right:56px;margin:0}.vis-password-wrap .vis-password-toggle{position:absolute;right:3px;top:50%;transform:translateY(-50%);width:44px;height:44px;min-height:44px;padding:10px;margin:0;border:0;border-radius:8px;background:transparent;color:#65758a;display:grid;place-items:center;box-shadow:none}.vis-auth .vis-password-toggle{color:#cbd7e5}.vis-password-toggle svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.vis-password-wrap .vis-password-toggle:hover{background:#8194ac1c}.vis-password-wrap .vis-password-toggle:focus-visible{outline:2px solid #c9aa5d;outline-offset:-3px}

.cabinet .cab-subject textarea[data-key="other"]{min-height:44px;overflow-y:hidden;resize:none;line-height:1.4}

.cab-block-group-title{font-size:20px!important;margin:24px 0 18px!important;border-bottom:2px solid #c5a655;padding-bottom:10px}.cab-paid-label{display:block;font:13px/1.4 SchoolFutura,Arial,sans-serif;color:#6c5523;margin:5px 0}.cab-subject-head{flex-wrap:wrap}.cab-print .cab-block-group-title{break-after:avoid}

.cab-block-subgroup-title{font-size:17px;margin:20px 0 16px;border-bottom:1px solid #c9d0d8;padding-bottom:8px;break-after:avoid}

.vis-tour-layer{position:fixed;inset:0;z-index:10000;color:#13253d;font:16px/1.45 SchoolFutura,Arial,sans-serif}.vis-tour-shade{position:absolute;inset:0;pointer-events:auto}.vis-tour-ring{position:fixed;pointer-events:none;border:3px solid #d4b367;border-radius:10px;box-shadow:0 0 0 9999px rgba(3,17,31,.72)}.vis-tour-card{position:fixed;box-sizing:border-box;width:min(380px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;background:#fffdf8;border:1px solid #d4b367;border-radius:16px;padding:20px;box-shadow:0 12px 40px #0005}.vis-tour-card h2{font:600 22px/1.2 Georgia,serif;margin:8px 0 12px}.vis-tour-card p{margin:0 0 18px}.vis-tour-card small{color:#62718a}.vis-tour-actions{display:flex;flex-wrap:wrap;gap:8px}.vis-tour-actions button{min-height:44px;border:1px solid #b8c5d0;border-radius:9px;padding:8px 12px;background:transparent;color:#17334c;font:inherit;cursor:pointer}.vis-tour-actions button:last-child{background:#e6c98e;border-color:#d4b367;margin-left:auto}.vis-tour-actions button:disabled{opacity:.4}.vis-tour-actions button:focus-visible{outline:3px solid #325e88;outline-offset:2px}@media print{.vis-tour-layer{display:none}}

/* 0.1.62: keep the header stable while the profile menu is open. */
.cabinet .cab-profile,.cabinet .cab-profile[open]{position:relative;top:auto;right:auto;width:auto;padding:0;background:none;border:0;border-radius:0;flex-shrink:0}
.cabinet .cab-profile summary{gap:8px;list-style:none}
.cabinet .cab-profile summary::-webkit-details-marker{display:none}
.cabinet .cab-profile summary::after{content:'⌄';font-size:16px;color:#dec38b}
.cabinet .cab-profile[open] summary::after{content:'⌃'}
.cabinet .cab-profile-menu{position:absolute;top:calc(100% + 10px);right:0;width:280px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 100px);overflow-y:auto;padding:8px;background:#102c46;border:1px solid #446078;border-radius:12px;box-shadow:0 12px 32px #0005;z-index:50}
.cabinet .cab-profile:not([open]) .cab-profile-menu{display:none}
.cabinet .cab-profile-menu button{display:block;width:100%;min-height:44px;padding:10px 12px;margin:0;border:0;border-radius:7px;text-align:left;font-size:14px;line-height:1.4;background:transparent;color:#fff;white-space:normal}
.cabinet .cab-profile-menu button:hover,.cabinet .cab-profile-menu button:focus-visible{background:#284c6b}
@media(max-width:700px){.cabinet .cab-profile[open] .cab-profile-name{display:none}.cabinet .cab-profile[open] summary{justify-content:initial}}

/* 0.1.63: inline editing next to the subject and teacher. */
.cabinet .cab-subject .cab-inline-edit{display:inline-block;width:auto;min-height:28px;padding:2px 5px;margin:0 0 0 6px;border:0;background:transparent;color:#526b84;font:400 12px/1.4 SchoolFutura,Arial,sans-serif;vertical-align:middle;text-decoration:underline;text-underline-offset:3px;box-shadow:none}
.cabinet .cab-subject .cab-inline-edit:hover{color:#163c61}
.cabinet .cab-subject .cab-inline-settings[hidden],.cabinet .cab-subject .cab-assignee-editor[hidden]{display:none}
.cabinet .cab-subject .cab-inline-settings,.cabinet .cab-subject .cab-assignee-editor{margin:8px 0 16px}

/* 0.1.65: subject edit follows its title; completion date has its own row. */
.cabinet .cab-subject-head .cab-subject-title{margin:0 auto 6px 0;min-width:0;max-width:100%;line-height:1.35;overflow-wrap:anywhere}
.cabinet .cab-subject-title .cab-inline-edit{white-space:nowrap;vertical-align:middle;margin-left:6px}
.cabinet .cab-paper-head .cab-completion-date{line-height:1.45;margin-top:6px;overflow-wrap:anywhere}
@media(max-width:700px){
 .cabinet .cab-paper-head{grid-template-rows:auto auto auto}
 .cabinet .cab-paper-head .cab-completion-date{grid-column:1/-1;grid-row:3;margin:0;line-height:1.45}
 .cabinet .cab-paper-head .cab-completion-date time{white-space:nowrap}
}

/* 0.1.66: date is outside the pupil header grid, in normal document flow. */
.cabinet .cab-completion-date-row{display:block;position:static;margin:0 0 18px;clear:both}
.cabinet .cab-completion-date-row:empty{display:none}
.cabinet .cab-completion-date-row .cab-completion-date{position:static;margin:0;line-height:1.5;overflow-wrap:anywhere;color:#62718a;font-size:14px}
.cabinet .cab-completion-date-row time{white-space:nowrap}

/* 0.1.67: immediately visible teacher picker for an unassigned section. */
.cabinet .cab-subject [data-assignee-byline][hidden]{display:none}
.cabinet .cab-subject .cab-assignee-needed{display:block;padding:14px 16px;background:#f4f0e5;border:1px solid #c7ab70;border-radius:10px;margin:12px 0 18px}
.cabinet .cab-assignee-needed .cab-person{margin:0}
.cabinet .cab-assignee-needed .cab-person label{display:block;margin:0;font-size:15px}
.cabinet .cab-assignee-needed .cab-person-input{display:block;width:100%;min-height:48px;font-size:16px;background:#fffdf9;border-color:#b39864}

/* 0.1.69: empty subject direction is visible until saved. */
.cabinet .cab-subject .cab-detail-editor{display:block;margin:12px 0 18px;min-width:0}
.cabinet .cab-subject .cab-detail-editor[hidden]{display:none}
.cabinet .cab-subject .cab-detail-needed{padding:14px 16px;background:#f4f0e5;border:1px solid #c7ab70;border-radius:10px}
.cabinet .cab-detail-editor label{display:block;margin:0;font-size:15px;min-width:0}
.cabinet .cab-detail-editor input{display:block;width:100%;max-width:100%;box-sizing:border-box;min-height:48px;font-size:16px;background:#fffdf9;border-color:#b39864}

/* PRINT_EXPORT_0.1.70 — isolated document layout, no changes to the editor. */
.cab-print.vis-report{background:#eceef1;color:#18354d;padding:24px 12px;font:14px/1.45 Arial,Helvetica,sans-serif;min-height:100vh;letter-spacing:normal}
.vis-report *{box-sizing:border-box}
.cab-print.vis-report article{width:210mm;max-width:100%;margin:20px auto;padding:12mm;background:#fff;box-shadow:0 3px 25px #142c4612}
.vis-report .no-print{max-width:900px;margin:auto;flex-wrap:wrap}
.vis-report .no-print button{font:inherit;background:#16384f;color:white;border:0;border-radius:7px;padding:12px 18px;cursor:pointer}
.vis-report .no-print p{flex-basis:100%;margin:0;text-align:center;font-size:12px;color:#526577}
.vis-report table{border-collapse:collapse;border-spacing:0;width:100%;table-layout:fixed;background:transparent;color:inherit;font:inherit}
.vis-report th,.vis-report td{padding:0;border:0;background:transparent;vertical-align:top;text-align:left;font:inherit}
.vis-report .report-document>thead{display:table-header-group}
.vis-report .report-running{display:flex;gap:18px;align-items:center;justify-content:space-between;border-bottom:1px solid #b49a66;padding:0 0 12px;margin:0 0 20px}
.vis-report .report-brand{display:flex;gap:12px;align-items:center;flex:0 0 auto}
.vis-report .report-brand strong{font-size:12px;line-height:1.35;letter-spacing:.3px;color:#103551}
.vis-report .report-crest{display:block;width:53px;height:54px;background:#123252;border-radius:3px;padding:4px;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.vis-report .report-crest img{display:block;object-fit:contain;width:100%;height:100%}
.vis-report .report-running>p{font-size:10px;line-height:1.5;text-align:right;max-width:43%;margin:0;color:#526577;overflow-wrap:anywhere}
.vis-report h1,.vis-report h2,.vis-report h3,.vis-report h4,.vis-report p{position:static;float:none;height:auto;min-height:0;max-height:none;text-transform:none;letter-spacing:normal;white-space:normal;color:inherit;font-family:Arial,Helvetica,sans-serif;line-height:1.35}
.vis-report h1{margin:0 0 6px;font-size:27px;font-weight:700;color:#0d3453}
.vis-report .report-pupil{font-size:21px;color:#182733;font-weight:700;margin:0 0 6px}
.vis-report .report-period{font-size:12px;color:#526577;margin:0 0 5px}
.vis-report .cab-completion-date{display:block;position:static;margin:0;color:#526577;font:12px/1.5 Arial,Helvetica,sans-serif}
.vis-report .report-draft{margin:10px 0 0;padding:6px 10px;border-left:2px solid #b49a66;font-size:10px;color:#795f35;background:#f8f6f0;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.vis-report .report-intro{margin:0 0 25px;break-inside:avoid}
.vis-report .report-section-title{margin:22px 0 16px;border-bottom:1px solid #9baab5;padding:0 0 7px;font-size:14px;font-weight:700;color:#103551;break-after:avoid}
.vis-report .report-subtitle{font-size:12px;font-weight:700;color:#103551;margin:19px 0 12px;border-bottom:1px solid #c6cfd6;padding-bottom:7px;break-after:avoid}
.vis-report .report-subject{margin:0 0 18px;border-bottom:1px solid #ccd3d8;break-inside:avoid}
.vis-report .report-subject.report-subject-flow{break-inside:auto}
.vis-report .report-col-info{width:33%}
.vis-report .report-subject-info{padding:0 17px 18px 0}
.vis-report .report-subject-copy{padding:0 0 18px 20px;border-left:1px solid #d2d8de}
.vis-report .report-subject h3{font-size:17px;font-weight:700;margin:0 0 7px;color:#103551;overflow-wrap:anywhere;break-after:avoid}
.vis-report .report-detail,.vis-report .report-format{font-size:12px;margin:5px 0 9px}
.vis-report .report-teacher{font-size:12px;margin:0 0 12px;overflow-wrap:anywhere}
.vis-report .report-teacher span{display:block;color:#637380;font-size:10px;margin-bottom:2px}
.vis-report .report-marks{display:flex;flex-wrap:wrap;gap:10px 16px;margin:13px 0 12px;border-top:1px solid #b49a66;padding-top:8px}
.vis-report .report-marks>div{max-width:100%}
.vis-report .report-marks small{display:block;font-size:10px;color:#637380;line-height:1.35}
.vis-report .report-marks strong{display:block;font-size:25px;line-height:1.2;font-weight:700;color:#ab8850}
.vis-report .report-ungraded{font-size:12px;border-top:1px solid #b49a66;padding-top:8px;margin:13px 0 10px}
.vis-report .report-pace{font-size:12px;margin:0;color:#526577}
.vis-report .report-pace strong{color:#18354d;font-weight:600}
.vis-report .report-paragraph{margin:0 0 13px}
.vis-report .report-paragraph:last-child{margin-bottom:0}
.vis-report .report-paragraph h4{font-size:12px;font-weight:700;color:#a27b3e;margin:0 0 4px;break-after:avoid}
.vis-report .report-paragraph p{margin:0;font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;orphans:3;widows:3}
.vis-report .report-byline{font-size:12px;margin:-7px 0 14px;color:#526577}
.vis-report .report-tutor-table{margin:0 0 17px;font-size:12px}
.vis-report .report-tutor-table th,.vis-report .report-tutor-table td{border-bottom:1px solid #dde2e6;padding:7px 10px 7px 0;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere}
.vis-report .report-tutor-table th{width:57%;font-weight:400}
.vis-report .report-tutor-table td{font-weight:600;border-left:1px solid #dde2e6;padding-left:16px}
.vis-report .report-points{font-size:12px;margin:18px 0}
.vis-report .report-points strong{font-size:16px;color:#103551}
.vis-report .report-points small{display:block;font-size:9px;color:#637380;margin-top:3px}
.vis-report .report-psychologist{margin-top:23px;border-top:1px solid #b49a66;padding-top:3px}
.vis-report .report-psychologist .report-subtitle{border:0;margin-bottom:14px}
@media print{
 @page{size:A4;margin:12mm 14mm 17mm;@bottom-left{content:"Международная школа Внуково";font:8pt Arial;color:#637380}@bottom-right{content:counter(page);font:8pt Arial;color:#637380}}
 html:has(.vis-report),body:has(.vis-report){background:#fff!important;margin:0!important;padding:0!important;overflow:visible!important;height:auto!important}
 .cab-print.vis-report{padding:0;background:#fff;min-height:0;color:#18354d}
 .cab-print.vis-report article{width:100%;max-width:none;padding:0;margin:0;box-shadow:none}
 .vis-report .no-print{display:none!important}
 .vis-report .report-document>tbody>tr,.vis-report .report-document>tbody>tr>td{break-inside:auto}
 .vis-report .report-running{margin-bottom:18px}
 .vis-report .report-extracurricular,.vis-report .report-tutor{break-before:page}
 .vis-report .report-tutor-table tr{break-inside:avoid}
 .vis-report h2,.vis-report h3,.vis-report h4{break-after:avoid}
}

/* MOBILE_PRINT_0.1.71: fit the paper to the screen; keep the PDF's columns. */
@media screen{
 .cab-print.vis-report{padding:calc(10px + env(safe-area-inset-top)) 10px calc(18px + env(safe-area-inset-bottom))}
 .vis-report .no-print{max-width:210mm;gap:8px;padding:0 0 12px;background:transparent;align-items:center;justify-content:space-between}
 .vis-report .no-print button{padding:9px 12px;font-size:13px;min-height:44px;line-height:1.2}
 .vis-report .no-print #cab-print-back{background:#fff;color:#16384f;border:1px solid #c5d0da}
 .vis-report .report-print-help{flex-basis:100%;margin:0;font-size:11px;color:#526577}
 .vis-report .report-print-help summary{cursor:pointer;min-height:30px;padding:6px 0}
 .vis-report .report-print-help p{text-align:left;font-size:11px;padding:4px 0 8px}
 .vis-report .report-preview{position:relative;width:100%;max-width:210mm;margin:0 auto;overflow:hidden;background:#fff;box-shadow:0 3px 25px #142c4612}
 .vis-report .report-preview-sheet{position:absolute;left:0;top:0;width:210mm;transform-origin:top left}
 .cab-print.vis-report .report-preview article{width:210mm;max-width:none;margin:0;padding:12mm 14mm;box-shadow:none}
}
@media print{
 .vis-report .report-preview{display:block;position:static;width:auto;max-width:none;height:auto!important;overflow:visible;margin:0;box-shadow:none}
 .vis-report .report-preview-sheet{display:block;position:static;width:auto;height:auto;transform:none!important}
}

/* PDF_DOWNLOAD_0.1.72 */
.vis-report .no-print [hidden]{display:none!important}
.vis-report #cab-pdf-status{flex-basis:100%;font-size:13px;line-height:1.4;margin:4px 0;color:#526577}
.vis-report #cab-pdf-download{font-size:14px;color:#123b55;text-decoration:underline;cursor:pointer;padding:8px}
.vis-report #cab-pdf-save:disabled{opacity:.55;cursor:wait}

/* REPORT_CREST_0.1.74: supplied colour emblem, no dark tile */
.vis-report .report-crest{width:59px;height:56px;background:transparent;border-radius:0;padding:0}

/* REFERENCE_PRINT_0.1.75: match the approved report's proportions. */
.vis-report{color:#344355}
.cab-print.vis-report article{padding:11.3mm}
.vis-report .report-running{gap:16px;padding-bottom:13px;margin-bottom:25px;border-color:#b18a4c}
.vis-report .report-running>p{display:none}
.vis-report .report-crest{width:93px;height:89px;flex:0 0 93px}
.vis-report .report-brand{gap:17px}
.vis-report .report-brand strong{font-size:18.67px;letter-spacing:0;line-height:1.2}
.vis-report h1{font-size:38.67px;line-height:1.15;margin:0 0 5px}
.vis-report .report-pupil{font-size:29.33px;line-height:1.15;margin:0 0 8px;color:#151b21}
.vis-report .report-meta{display:flex;align-items:baseline;gap:13px;justify-content:space-between}
.vis-report .report-meta .report-period{font-size:14.67px;margin:0;flex:1}
.vis-report .report-meta .cab-completion-date{font-size:14px;line-height:1.3;text-align:right;flex:0 0 247px}
.vis-report .report-intro{margin-bottom:24px}
.vis-report .report-section-title{display:flex;align-items:center;gap:18px;font-size:18px;margin:16px 0 22px;padding:0;border:0}
.vis-report .report-section-title::after{content:"";height:1px;flex:1;background:#0b3155}
.vis-report .report-subtitle{font-size:16px;margin:18px 0 14px;padding:0;border:0}
.vis-report .report-col-info{width:35%}
.vis-report .report-subject-info{padding:0 18px 13px 0}
.vis-report .report-subject-copy{padding:0 0 13px 29px}
.vis-report .report-subject h3{font-size:21.33px;line-height:1.15;margin:0 0 7px}
.vis-report .report-teacher,.vis-report .report-pace,.vis-report .report-detail,.vis-report .report-format,.vis-report .report-ungraded{font-size:14.67px;line-height:1.3}
.vis-report .report-teacher span{font-size:14px;color:#344355;margin:0}
.vis-report .report-teacher{margin-bottom:9px}
.vis-report .report-marks,.vis-report .report-ungraded{position:relative;border:0;padding-top:15px;margin-top:8px}
.vis-report .report-marks::before,.vis-report .report-ungraded::before{content:"";position:absolute;top:0;left:0;width:48px;height:1px;background:#b18a4c}
.vis-report .report-marks strong{font-size:37.33px;color:#b18a4c}
.vis-report .report-marks>div:only-child small{display:none}
.vis-report .report-paragraph h4{font-size:15.33px;color:#b18a4c;margin-bottom:4px}
.vis-report .report-paragraph p{font-size:14.67px;line-height:1.3}
.vis-report .report-paragraph{margin-bottom:11px}
.vis-report .report-byline,.vis-report .report-tutor-table,.vis-report .report-points{font-size:14px}
@media print{.cab-print.vis-report article{padding:0}}

/* 0.1.82: keep pupil navigation visible while reading the mobile report. */
@media screen and (max-width:700px){
 .cabinet #cab-paper>.cab-paper-head{
  position:-webkit-sticky;position:sticky;top:0;z-index:30;
  display:grid;grid-template-columns:minmax(0,1fr) 96px;grid-template-rows:auto;
  align-items:center;gap:10px;
  margin:-20px -18px 16px;
  padding:calc(10px + env(safe-area-inset-top,0px)) 18px 10px;
  background:#faf8f3;border-bottom:1px solid #d6dce1;
  box-shadow:0 4px 10px #13253d0d;
 }
 .cabinet #cab-paper>.cab-paper-head>div:first-child{display:block;min-width:0;grid-column:1;grid-row:1}
 .cabinet #cab-paper>.cab-paper-head h1{font-size:19px;line-height:1.2;margin:0;overflow-wrap:anywhere}
 .cabinet #cab-paper>.cab-paper-head p{font-size:12px;line-height:1.3;margin:4px 0 0;overflow-wrap:anywhere}
 .cabinet #cab-paper>.cab-paper-head .cab-arrows{grid-column:2;grid-row:1;align-self:center;justify-self:end;gap:8px;padding:0}
 .cabinet #cab-paper>.cab-paper-head .cab-arrows button{width:44px;height:44px;min-width:44px;min-height:44px}
 .cabinet #cab-paper :is(input,textarea,select,button,[data-block]){scroll-margin-top:160px}
}

/* Local, optional spelling review. */
.cab-spell-tools{margin:0 0 18px}
.cab-spell-tools button,.cab-savebar [data-spellcheck]{min-height:44px;font-size:15px;white-space:normal}
.cab-spell-dialog{box-sizing:border-box;width:calc(100% - 24px);max-width:620px;max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid #c7d0d8;border-radius:16px;background:#faf8f3;color:#13253d;font:16px/1.5 SchoolFutura,Arial,sans-serif;overflow:hidden;box-shadow:0 20px 70px #04163055}
.cab-spell-dialog::backdrop{background:#061c3299}
.cab-spell-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid #d6dce1}
.cab-spell-head h2{margin:0;font:600 21px/1.25 SchoolFutura,Arial,sans-serif}
.cab-spell-dialog button{font:inherit;border:1px solid #b7c5d0;border-radius:9px;min-height:44px;padding:8px 14px;background:#f1f3f5;color:#183950;cursor:pointer}
.cab-spell-head button{flex:0 0 44px;font-size:25px;padding:0}
.cab-spell-body{padding:16px 20px 22px;overflow:auto;max-height:calc(100dvh - 130px);overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.cab-spell-note{color:#62718a;font-size:14px;line-height:1.4}
.cab-spell-dialog p{margin:0 0 14px;overflow-wrap:anywhere}
.cab-spell-context{padding:12px;background:#fffdf9;border:1px solid #d6dce1;border-radius:9px;white-space:pre-wrap}
.cab-spell-context mark{background:#f4dfaa;color:#183950;border-radius:3px}
.cab-spell-suggestions,.cab-spell-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 18px}
.cab-spell-suggestions button{background:#eaf0f4;font-weight:600}
.cab-spell-dialog button:focus-visible{outline:3px solid #b5914d;outline-offset:2px}
@media(max-width:420px){.cab-spell-head,.cab-spell-body{padding-left:14px;padding-right:14px}.cab-spell-head h2{font-size:19px}.cab-spell-actions button{flex:1}}
@media print{.cab-spell-tools,.cab-spell-dialog,[data-spellcheck]{display:none!important}}

/* Bank VIS compact references v2 */
.cab-behavior-reference{margin:6px 0 10px;font-family:inherit;font-size:13px;line-height:1.35;color:#29465c;font-weight:400;}
.cab-behavior-reference>summary{width:fit-content;max-width:100%;cursor:pointer;min-height:36px;padding:6px 8px;box-sizing:border-box;border:1px solid #d4c8aa;border-radius:6px;background:#f8f6ef;color:#29465c;font-size:12px;font-weight:400;}
.cab-behavior-reference>summary:focus-visible{outline:2px solid #29465c;outline-offset:3px;}
.cab-bank-info{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;border:1px solid currentColor;border-radius:50%;font:600 11px Georgia,serif;}
.cab-behavior-content{padding:8px 10px;margin-top:5px;background:#faf9f6;border:1px solid #d5d8db;border-radius:6px;max-height:300px;max-height:min(38dvh,300px);overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;overflow-wrap:anywhere;}
.cab-behavior-content p{margin:3px 0!important;font-size:13px!important;line-height:1.35!important;}
.cab-behavior-content small,.cab-bank-meta{font-size:11px;line-height:1.35;color:#617080;}
.cab-bank-meta{padding-bottom:5px;}
.cab-behavior-content ul{list-style:none;margin:0;padding:0;}
.cab-behavior-content li{padding:6px 0;border-top:1px solid #e0e2e3;}
.cab-bank-row{display:flex;align-items:baseline;justify-content:space-between;gap:10px;}
.cab-bank-points{font-size:12px;font-weight:600;white-space:nowrap;}
[data-bank-kind="award"] .cab-bank-points{color:#38604b;}
.cab-bank-stale{color:#856129;}
.cab-behavior-content button{font:inherit!important;font-size:12px!important;min-height:36px;padding:6px 9px!important;border-radius:6px!important;background:#fff!important;color:#18394c!important;border:1px solid #aebbc3!important;}
@media print{.cab-behavior-reference{display:none!important;}}


/* Personal Excel import */
.cab-excel-launch{margin:0 0 16px;padding:0 20px;display:flex;justify-content:flex-end}
.cab-excel-dialog{box-sizing:border-box;width:min(720px,calc(100vw - 24px));max-height:calc(100dvh - 40px);overflow:auto;overscroll-behavior:contain;border:1px solid #c5b181;border-radius:18px;padding:24px;background:#fcfaf5;color:#193647;font:16px/1.5 Arial,sans-serif}
.cab-excel-dialog::backdrop{background:#071e35aa}
.cab-excel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.cab-excel-heading h2{font-size:22px;margin:0}
.cab-excel-dialog button{cursor:pointer;min-height:44px;border:1px solid #b6c2cc;border-radius:10px;padding:8px 15px;background:#fff;color:#193647;font:inherit}
.cab-excel-dialog button:disabled{opacity:.55;cursor:wait}
.cab-excel-dialog .cab-gold{background:#193647;color:#fff;margin-top:16px}
.cab-excel-dialog a{color:#164d70;text-decoration:underline}
.cab-excel-controls{display:grid;gap:12px;margin:20px 0}
.cab-excel-controls label{display:grid;gap:5px;font-weight:bold}
.cab-excel-controls select,.cab-excel-controls input{box-sizing:border-box;width:100%;min-width:0;max-width:100%;font:16px Arial,sans-serif;padding:12px;border:1px solid #bec9cf;border-radius:8px;background:#fff;color:#193647}
.cab-excel-hint{font-size:14px;color:#536573}
.cab-excel-dialog h3{font-size:18px;margin:16px 0 8px}
.cab-excel-issues{padding:1px 14px 10px;background:#fff0e7;border-left:3px solid #ba7448;border-radius:6px;margin:14px 0}
.cab-excel-dialog ul{padding-left:20px;overflow-wrap:anywhere}
.cab-excel-dialog li{margin:10px 0}
.cab-excel-matches{max-height:240px;overflow:auto}
.cab-excel-matches small{display:block;color:#925819}
@media(max-width:480px){.cab-excel-dialog{padding:16px}.cab-excel-heading h2{font-size:20px}.cab-excel-launch{padding:0 12px}.cab-excel-launch button{width:100%}}
@media print{.cab-excel-launch,.cab-excel-dialog{display:none!important}}

/* Fit all feedback textareas to their content. */
.cabinet #cab-report-form textarea{max-height:none;overflow-y:hidden;resize:none}

/* Missing teacher controls: separated from the period bar on every screen. */
.cabinet .cab-missing-launch{padding:24px 32px;background:#f8f7f2;border-bottom:1px solid #ddd6c5;display:flex;justify-content:flex-start}
.cabinet .cab-missing-launch button{width:auto;max-width:100%;min-height:48px;padding:12px 22px;background:#fffdf8;color:#17384a;border:1px solid #c9b47e;border-radius:14px;font-size:16px;font-weight:600;white-space:normal}
.cab-missing-page{padding:24px 0 48px;max-width:1120px;margin:0 auto}
.cab-missing-page h1{margin:0 0 16px;line-height:1.2}
.cab-missing-page>p{line-height:1.5;margin:12px 0 24px}
#missing-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start;margin-top:22px}
.cab-missing-card{min-width:0;background:#fffdf8;border:1px solid #d9d2c3;border-radius:18px;overflow:hidden}
.cab-missing-card summary{display:flex;gap:16px;justify-content:space-between;align-items:center;padding:22px;cursor:pointer;list-style:none}
.cab-missing-card summary::-webkit-details-marker{display:none}
.cab-missing-card summary strong,.cab-missing-subject,.cab-missing-card summary small{display:block;overflow-wrap:anywhere}
.cab-missing-card summary strong{font-size:19px;color:#17384a}.cab-missing-card summary small{font-size:14px;font-weight:400;color:#62717c;margin-top:6px}
.cab-missing-subject{font-size:17px;margin:12px 0;color:#17384a;font-weight:600}
.cab-missing-edit{font-size:14px;color:#765a21;flex-shrink:0}.cab-missing-editor{padding:0 22px 22px;display:grid;gap:14px}.cab-missing-editor[hidden]{display:none}
.cab-missing-editor label{display:grid;gap:8px;font-size:15px}.cab-missing-editor input,.cab-missing-editor select{width:100%;min-width:0;box-sizing:border-box;min-height:46px;font-size:16px}
.cab-missing-editor button{min-height:46px;white-space:normal}.cab-missing-result{margin:0;padding:0 22px 20px;overflow-wrap:anywhere;font-size:15px;line-height:1.5}.cab-missing-result:empty{display:none}
.cab-missing-card.is-saved{border-color:#84a58c;background:#f1f7ef}.cab-missing-card.is-saved .cab-missing-result{color:#276139}
@media(max-width:700px){.cabinet .cab-missing-launch{padding:20px 16px}.cabinet .cab-missing-launch button{width:100%}.cab-missing-page{padding-top:20px}#missing-list{grid-template-columns:1fr;gap:14px}.cab-missing-card summary{padding:18px;gap:10px}.cab-missing-editor{padding:0 18px 18px}.cab-missing-card summary strong{font-size:18px}}
.cab-missing-editor input,.cab-missing-editor select{padding:11px 12px;border:1px solid #bdcad2;border-radius:10px;background:#fff;color:#17384a;font-family:inherit}
.cab-missing-editor button,#missing-refresh{border-radius:10px;padding:12px 16px;font-family:inherit;font-size:15px;cursor:pointer}
#missing-refresh{margin-top:16px;border:1px solid #bdcad2;background:#fffdf8;color:#17384a}

/* Psychologist-only editor */
#block-psychologist label{display:block;margin:16px 0}
#block-psychologist textarea{display:block;width:100%;box-sizing:border-box;min-height:160px;margin-top:8px}
#block-psychologist input[type="checkbox"]{width:auto;margin-right:8px}

/* DESKTOP_LAYOUT_V1: keep the report central and tools in one compact row. */
.cab-tools-bar{display:contents}
@media screen and (min-width:701px){
 .cabinet>.cab-head{padding:14px 24px;gap:18px;min-height:76px}
 .cabinet>.cab-head .cab-role{display:none}
 .cabinet>.cab-filters{align-items:start;padding:12px 24px;gap:20px}
 .cabinet>.cab-filters nav{flex:1;flex-wrap:wrap;overflow:visible;gap:4px;align-self:auto}
 .cabinet>.cab-filters nav button{padding:8px 12px;min-height:38px;min-width:48px;font-size:15px;border-radius:7px}
 .cabinet>.cab-filters label{flex:0 0 260px;display:block;white-space:normal;font-size:12px}
 .cabinet>.cab-filters select{display:block;width:100%;max-width:100%;min-height:40px;margin:4px 0 0;font-size:14px}
 .cabinet>.cab-tools-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 24px;background:#f8f7f2;border-bottom:1px solid #ddd6c5}
 .cabinet>.cab-tools-bar:not(:has(button)){display:none}
 .cabinet>.cab-tools-bar>.cab-missing-launch,.cabinet>.cab-tools-bar>.cab-excel-launch{display:contents}
 .cabinet>.cab-tools-bar button{width:auto;min-height:40px;margin:0;padding:9px 16px;border-radius:9px;font-size:14px;line-height:1.4}
 .cabinet>.cab-grid{grid-template-columns:210px minmax(0,1fr) 230px;max-width:1600px;width:100%;align-items:start}
 .cabinet>.cab-grid.cab-teacher{grid-template-columns:210px minmax(0,1fr);max-width:1320px}
 .cab-grid>.cab-paper{padding:28px clamp(20px,2.4vw,40px);min-width:0}
 .cab-grid>.cab-pupils{display:flex;flex-direction:column;padding:20px 10px;position:sticky;top:0;max-height:100dvh;overflow:visible;min-width:0}
 .cab-grid>.cab-pupils h2{font-size:20px;margin:0 10px 14px;padding:0}
 .cab-grid>.cab-pupils .cab-search{display:block;padding:0;margin:0 8px 12px}
 .cab-grid>.cab-pupils .cab-search input{width:100%;min-width:0;box-sizing:border-box}
 .cab-grid .cab-pupil-list{min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#557088 transparent;overscroll-behavior-y:contain}
 .cab-grid .cab-pupil-list button{padding:12px 10px;gap:9px;min-height:68px;font-size:14px}
 .cab-grid .cab-pupil-list button>span:nth-child(2){min-width:0;overflow-wrap:anywhere}
 .cab-grid .cab-avatar{min-width:30px;height:30px;font-size:11px}
 .cab-grid>.cab-progress{position:static;max-height:none;overflow:visible;padding:24px 18px;grid-column:auto}
 .cab-grid>.cab-progress h2{font-size:20px;margin:0 0 16px}
 .cab-grid>.cab-progress .cab-ring{width:145px;height:145px;margin:14px auto;float:none}
 .cab-grid>.cab-progress .cab-ring strong{font-size:25px}
 .cab-grid>.cab-progress .cab-ring span{font-size:12px}
 .cab-grid>.cab-progress button{white-space:normal;overflow-wrap:anywhere;min-height:40px}
 .cab-grid>.cab-progress .cab-progress-section{padding:14px 0}
}
@media screen and (min-width:701px) and (max-width:1100px){
 .cabinet>.cab-grid{grid-template-columns:190px minmax(0,1fr)}
 .cabinet>.cab-grid.cab-teacher{grid-template-columns:190px minmax(0,1fr)}
 .cab-grid>.cab-progress{grid-column:2;padding:24px}
 .cabinet>.cab-filters{flex-wrap:wrap;gap:12px}
 .cabinet>.cab-filters nav{flex-basis:100%}
 .cabinet>.cab-filters label{flex-basis:320px;max-width:100%}
 .cabinet>.cab-head .cab-profile-name{max-width:180px;overflow-wrap:anywhere}
}

/* CABINET_DESKTOP_STICKY_V1 */
@media screen and (min-width:701px){
 .cabinet #cab-paper>.cab-paper-head{
  position:-webkit-sticky;position:sticky;top:0;z-index:30;
  display:grid;grid-template-columns:minmax(0,1fr) auto;
  align-items:center;gap:16px;
  margin:-28px calc(-1 * clamp(20px,2.4vw,40px)) 24px;
  padding:16px clamp(20px,2.4vw,40px);
  background:#faf8f3;border-bottom:1px solid #d6dce1;
  box-shadow:0 4px 10px #13253d0d;
 }
 .cabinet #cab-paper>.cab-paper-head>div:first-child{min-width:0}
 .cabinet #cab-paper>.cab-paper-head h1{margin:0;line-height:1.2;overflow-wrap:anywhere}
 .cabinet #cab-paper>.cab-paper-head p{margin:6px 0 0;line-height:1.35}
 .cabinet #cab-paper>.cab-paper-head .cab-arrows{display:flex;gap:8px;align-self:center}
 .cabinet #cab-paper>.cab-paper-head .cab-arrows button{width:44px;height:44px;min-width:44px;min-height:44px}
 .cabinet #cab-paper :is(input,textarea,select,button,[data-block],.cab-subject,.cab-tutor){scroll-margin-top:150px}
}

/* VIS_NAME_CHECK_V1 */
.cab-name-check-dialog{box-sizing:border-box;width:min(820px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #c8b482;border-radius:16px;padding:22px;background:#faf8f3;color:#17344e;font:16px/1.5 Arial,sans-serif}
.cab-name-check-dialog::backdrop{background:#061c3299}
.cab-name-check-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px}
.cab-name-check-dialog h2{margin:0;font:700 25px Georgia,serif}
.cab-name-check-dialog button,.cab-name-check-dialog select{font:inherit;color:inherit;min-height:44px;padding:9px 14px;border:1px solid #b5c4cc;border-radius:9px;background:#fffdf8;cursor:pointer}
.cab-name-check-dialog button:focus-visible,.cab-name-check-dialog select:focus-visible{outline:3px solid #b28b42;outline-offset:2px}
.name-check-controls{display:flex;align-items:end;gap:14px;flex-wrap:wrap}
.name-check-controls label{flex:1;min-width:200px}.name-check-controls select{display:block;width:100%}
#name-check-run{background:#e7ca8d}.name-check-result{border:1px solid #d9d2c3;border-radius:12px;padding:16px;margin:14px 0;background:#fffdf8}
.name-check-result h3{margin:0;font-size:18px}.name-check-label{color:#62718a;margin:6px 0}
.name-check-excerpt{white-space:pre-wrap;overflow-wrap:anywhere}.name-check-excerpt mark{background:#ffe2a2;color:#442b12;font-weight:700;padding:1px 3px}
/* NAME_CHECK_SKIP_V1 */
.name-check-result-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}
.name-check-result-actions button{min-width:140px}
.name-check-result-actions .name-check-skip{background:#f1ede4;border-color:#c8c4bc;color:#4a5664}
.name-check-result-skipped{opacity:.72}
.name-check-toggle-skipped{margin-top:9px}
@media(max-width:600px){.name-check-result-actions button{flex:1 1 130px}}

@media(max-width:700px){.cab-name-check-dialog{padding:16px}.cab-name-check-dialog h2{font-size:21px}.name-check-controls button{width:100%}}

 .cabinet>.cab-tools-bar.cab-compact-tools{display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:8px 16px;background:#f8f7f2;border-bottom:1px solid #ddd6c5;position:relative;overflow:visible;flex-wrap:nowrap}
 .cabinet>.cab-tools-bar.cab-compact-tools:not(:has(button)){display:none}
 .cab-compact-tools>button,.cab-compact-tools>details>summary{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:40px;height:40px;margin:0;padding:8px 14px;border:1px solid #c6b47a;border-radius:8px;background:#fffdf7;color:#193e50;font:600 14px/1.2 sans-serif;white-space:nowrap;cursor:pointer;width:auto}
 .cab-compact-tools>details{position:relative;margin:0;padding:0;border:0}
 .cab-compact-tools>details>summary{list-style:none}
 .cab-compact-tools>details>summary::-webkit-details-marker{display:none}
 .cab-compact-tools>details>summary::after{content:'⌄';margin-left:8px}
 .cab-compact-tools .cab-compact-menu{position:absolute;top:calc(100% + 6px);left:0;z-index:1000;width:260px;max-width:calc(100vw - 32px);padding:6px;background:#fffdf7;border:1px solid #d8d0b9;border-radius:10px;box-shadow:0 8px 24px #071e3026;box-sizing:border-box}
 .cab-compact-tools .cab-compact-menu button{display:block;box-sizing:border-box;width:100%;min-height:44px;height:auto;padding:10px 12px;margin:0;border:0;border-radius:6px;text-align:left;white-space:normal;background:transparent;color:#193e50;font:500 14px/1.4 sans-serif}
 .cab-compact-tools .cab-compact-menu button:hover{background:#eee9db}
 .cab-compact-tools button:focus-visible,.cab-compact-tools summary:focus-visible{outline:2px solid #193e50;outline-offset:2px}
 @media(max-width:700px){.cabinet>.cab-tools-bar.cab-compact-tools{padding:8px 16px}.cab-compact-tools>details{margin-left:auto}.cab-compact-tools .cab-compact-menu{left:auto;right:0}}


 #cab-global-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 48px);margin:auto;padding:24px;border:1px solid #c9d2d8;border-radius:18px;background:#faf8f1;color:#173247;font-family:Arial,sans-serif;overflow:auto}
 #cab-global-dialog::backdrop{background:rgba(4,22,48,.6)}
 #cab-global-dialog *{box-sizing:border-box}#cab-global-dialog h2{font-size:22px;margin:0 0 12px;padding-right:38px}
 #cab-global-dialog label{display:block;margin:16px 0 8px}#cab-global-query{width:100%;font:inherit;font-size:16px;padding:12px;border:1px solid #9cacb9;border-radius:10px;background:white;color:#173247}
 #cab-global-close{position:absolute;top:16px;right:16px;min-width:40px;min-height:40px;border:0;border-radius:8px;background:#e8edf0;font-size:22px;color:#173247;cursor:pointer}
 #cab-global-results{display:grid;gap:8px;max-height:45dvh;overflow:auto;margin-top:12px}#cab-global-results button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;text-align:left;font:inherit;padding:12px;border:1px solid #ccd4d8;border-radius:10px;background:white;color:#173247;cursor:pointer}
 #cab-global-results button:hover,#cab-global-results button:focus-visible{background:#f4ead0;outline:2px solid #baa15b}#cab-global-results small{white-space:nowrap;color:#526778}
 #cab-global-status{font-size:14px;color:#526778;margin-top:12px}#cab-global-error{color:#a12a28}#cab-global-dialog button:disabled{opacity:.55;cursor:wait}
 
/* COMPACT_TOOLS_V2: external styles permitted by the site's CSP. */
.cabinet>.cab-tools-bar.cab-compact-tools>button{flex:1 1 auto;max-width:240px;min-height:44px;height:44px}
.cab-compact-tools>details>summary{min-height:44px;height:44px}
@media(max-width:700px){
 #cab-global-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:20px 16px;border-radius:16px}
 #cab-global-dialog h2{font-size:19px;line-height:1.3;padding-right:42px;margin:0 0 16px}
 #cab-global-close{top:10px;right:10px;width:40px;height:40px;padding:0;margin:0;line-height:1}
 #cab-global-dialog label{margin:10px 0 6px;font-size:13px}
 #cab-global-query{min-height:44px;padding:10px 12px}
 #cab-global-status{line-height:1.4;margin:10px 0}
 #cab-global-error:empty,#cab-global-results:empty{display:none}
}

/* INLINE_SEARCH_V1 */
.cab-compact-tools .cab-inline-search{position:relative;flex:1 1 auto;min-width:0;max-width:480px}
.cab-compact-tools #cab-inline-query{box-sizing:border-box;width:100%;height:44px;min-height:44px;margin:0;padding:10px 12px;border:1px solid #c6b47a;border-radius:8px;background:#fffdf7;color:#193e50;font:400 16px/1.3 sans-serif}
.cab-compact-tools #cab-inline-query:focus{outline:2px solid #bca363;outline-offset:1px}
.cab-compact-tools #cab-inline-results[hidden]{display:none}
.cab-compact-tools #cab-inline-results{position:absolute;top:calc(100% + 6px);left:0;width:min(460px,calc(100vw - 32px));max-height:45dvh;overflow-y:auto;overscroll-behavior:contain;z-index:1001;background:#fffdf7;border:1px solid #d8d0b9;border-radius:10px;box-shadow:0 8px 24px #071e3026;padding:5px;box-sizing:border-box}
.cab-compact-tools #cab-inline-results button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;margin:0;padding:10px;border:0;border-radius:6px;background:transparent;color:#193e50;white-space:normal;text-align:left;font:400 14px/1.4 sans-serif;box-sizing:border-box}
.cab-compact-tools #cab-inline-results button strong{overflow-wrap:anywhere}
.cab-compact-tools #cab-inline-results button small{white-space:nowrap;color:#526778}
.cab-compact-tools #cab-inline-results button:hover,.cab-compact-tools #cab-inline-results button:focus{background:#eee9db}
.cab-compact-tools #cab-inline-results p{margin:8px;font:400 14px/1.4 sans-serif;color:#526778}
.cab-compact-tools #cab-inline-query::placeholder{color:#667887;opacity:1}

/* PUPIL_HEADER_V2: compact header; viewport is the sticky scroll container. */
@media screen {
 html.vis-cabinet-theme{overflow-x:clip;overflow-y:visible}
 html.vis-cabinet-theme body,
 html.vis-cabinet-theme #app,
 html.vis-cabinet-theme .cabinet,
 html.vis-cabinet-theme .cab-grid,
 html.vis-cabinet-theme .cabinet #cab-paper{overflow:visible}
 html.vis-cabinet-theme .cabinet #cab-paper{padding-top:0}
 html.vis-cabinet-theme .cabinet #cab-paper>.cab-paper-head{
  position:-webkit-sticky;position:sticky;top:env(safe-area-inset-top,0px);
  z-index:30;height:auto;min-height:0;
  display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto;
  align-items:center;gap:10px;
  margin-top:0;margin-bottom:16px;padding-top:10px;padding-bottom:10px;
  background:#faf8f3;border-bottom:1px solid #d6dce1;
 }
 html.vis-cabinet-theme .cabinet #cab-paper>.cab-paper-head>div:first-child{
  display:block;min-width:0;grid-column:1;grid-row:1;
 }
 html.vis-cabinet-theme .cabinet #cab-paper>.cab-paper-head .cab-arrows{
  grid-column:2;grid-row:1;align-self:center;justify-self:end;padding:0;
 }
 html.vis-cabinet-theme .cabinet #cab-paper>.cab-paper-head h1{margin:0}
 html.vis-cabinet-theme .cabinet #cab-paper>.cab-paper-head p{margin:4px 0 0}
}
@media screen and (max-width:700px){
 html.vis-cabinet-theme .cabinet #cab-paper>.cab-paper-head{
  margin-left:-18px;margin-right:-18px;padding-left:18px;padding-right:18px;
 }
}


/* VIS_NA_GRADES_V1: unified non-attested mark selector */
.cab-paper .cab-mark-control{min-width:0;width:100%}
.cab-paper .cab-mark-control>label:first-child{display:block;margin-bottom:8px}
.cab-paper .cab-mark-control>label:first-child input{margin-top:6px}
.cab-paper label.cab-mark-na,.cab-paper .cab-combined-fields .cab-marks label.cab-mark-na{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:9px;margin:4px 0 10px;font-size:13px;font-weight:500;cursor:pointer}
.cab-paper label.cab-mark-na input,.cab-paper .cab-combined-fields .cab-marks label.cab-mark-na input{display:inline-block;width:18px;height:18px;min-height:18px;flex:0 0 18px;margin:0;accent-color:#25486b}
.cab-paper .cab-mark-control input[data-mark]:disabled,.cab-paper .cab-mark-control input[data-key="grade"]:disabled{opacity:.7;background:#eef2f6;cursor:not-allowed}

/* VIS_FEEDBACK_FINAL_V4: approved sign-off and psychologist spacing. */
.vis-report .report-psychologist{padding-top:18px}
.vis-report .report-psychologist>.report-byline{margin:0 0 17px;color:#344355}
.vis-report .report-signoff{display:flex;align-items:center;gap:23px;margin:35px 0 9px;padding:22px 24px;background:#f7f3ec;border-radius:12px;break-inside:avoid;page-break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.vis-report .report-signoff-crest{display:flex;align-items:center;justify-content:center;width:112px;flex:0 0 112px}
.vis-report .report-signoff-crest img{display:block;max-width:74px;max-height:71px;width:auto;height:auto;object-fit:contain}
.vis-report .report-signoff-separator{height:62px;width:1px;background:#aaa6a0;flex:0 0 1px}
.vis-report .report-signoff-message{display:flex;flex-direction:column;gap:2px;min-width:0;color:#0b3155;font:18px/1.2 Georgia,'Times New Roman',serif}
.vis-report .report-signoff-message strong{font:700 16px/1.24 Georgia,'Times New Roman',serif;color:#0b3155}
.vis-report .report-signoff-message span{font-weight:400}
@media print{.vis-report .report-signoff{margin-top:29px;break-inside:avoid;page-break-inside:avoid}}

/* VIS_FONT_PDF_ONLY_V1: original screen fonts; Times only for print. */
@media print{html,body,body *{font-family:"Times New Roman",Times,"Liberation Serif","Nimbus Roman",serif!important}}

/* VIS_FEEDBACK_GRADE_NOTES_V1: unobtrusive print endnotes. */
.vis-report .report-grade-notes{font-family:inherit;color:#344355;margin:17px 0 0;font-size:10pt;line-height:1.23;font-style:italic;break-inside:avoid;page-break-inside:avoid}
.vis-report .report-grade-notes strong{display:block;margin:0 0 5px;font-weight:700}
.vis-report .report-grade-notes p{margin:2px 0;font-style:italic}
.vis-report .report-grade-notes + .report-signoff{margin-top:23px}
@media print{.vis-report .report-grade-notes{break-inside:avoid;page-break-inside:avoid}}

/* VIS_FEEDBACK_BRAND_ICON_V1: PDF preview wordmark + compact header mark. */
.vis-report .report-brand strong{font-family:"Arial Black",Arial,Helvetica,sans-serif!important;font-weight:900!important;font-style:normal!important;letter-spacing:.005em!important;line-height:1.34!important}
.cabinet .cab-head>img{object-fit:contain!important;filter:none!important;image-rendering:auto!important}

/* COMPLETION_MODAL_V1: same subject editor as the normal pupil form. */
.cabinet .cab-completion-dialog{border:0;border-radius:16px;padding:0;width:min(960px,96vw);max-width:96vw;max-height:94dvh;background:#faf8f3;color:#14283c;box-shadow:0 15px 70px #061c3280;overflow:auto}
.cab-completion-dialog::backdrop{background:#00142bbd}
.cabinet .cab-completion-modal-paper{min-height:0;padding:18px 26px 0;max-width:100%;overflow:visible}
.cab-completion-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;border-bottom:1px solid #d5c59f;margin-bottom:20px;padding-bottom:16px}
.cab-completion-modal-head h2{font-size:25px;margin:0 0 5px;color:#162f4b}.cab-completion-modal-head p{color:#59708a;margin:0}.cab-completion-modal-head small{color:#6b7e93}
.cab-completion-modal-head button{flex:0 0 44px;min-height:44px;border-radius:8px;background:#fffdf9;border:1px solid #c9d1d9;color:#17344e}
.cab-completion-modal-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;bottom:0;background:#faf8f3;border-top:1px solid #c9d1d9;padding:14px 0;z-index:5;flex-wrap:wrap}
.cab-completion-modal-foot>div{display:flex;gap:10px;flex-wrap:wrap}.cab-completion-modal-foot button{min-height:44px;padding:9px 15px;border-radius:8px;color:#17344e}
.cab-completion-modal-foot #completion-edit-status{font-size:13px;color:#50657d;flex:1;min-width:150px}
.cab-completion-dialog .cab-block-menu,.cab-completion-dialog [data-edit],.cab-completion-dialog [data-edit-assignee]{display:none!important}
.cab-completion-dialog .cab-subject-head{margin-bottom:10px}.cab-completion-dialog .cab-subject{border:0;margin:0}
.cab-completion-dialog .cab-assignee-editor{display:block!important;background:#eef1f4;padding:12px;border-radius:9px}.cab-completion-dialog .cab-person{max-width:600px}
.cab-completion-dialog .cab-person-options{max-height:220px;overflow:auto}.cab-completion-dialog .cab-person-options[hidden]{display:none!important}
.cab-completion-dialog .cab-settings input,.cab-completion-dialog .cab-settings textarea{width:100%;max-width:100%}
.cab-completion-return{background:#f1e7d5;border:1px solid #ddc89e;padding:10px 12px;margin-bottom:18px;border-radius:9px}
.cab-completion-return button{background:transparent;color:#15334d;border:0;min-height:44px;font-size:15px;cursor:pointer}
@media(max-width:700px){.cabinet .cab-completion-modal-paper{padding:14px 15px 0}.cabinet .cab-completion-dialog{width:100vw;max-width:100vw;max-height:94dvh;border-radius:14px 14px 0 0}.cab-completion-modal-foot>div{width:100%}.cab-completion-modal-foot button{flex:1}.cab-completion-modal-head h2{font-size:20px}}
