:root{font:16px/1.55 system-ui,Segoe UI,sans-serif;color:#16352f;background:#e5f3ff;--green:#17624e;--muted:#63776d;--line:#dce4db}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}a{color:var(--green)}header{display:flex;align-items:center;gap:16px;padding:8px 5%;background:white;border-bottom:1px solid var(--line)}.brand{text-decoration:none;font-size:20px;font-weight:800;letter-spacing:.09em;white-space:nowrap}.brand span{color:#b27e19}.local{color:var(--muted);font-size:13px}#account{margin-left:auto;display:flex;gap:12px;align-items:center;font-size:14px}main{max-width:1180px;margin:40px auto;padding:0 24px;min-height:65vh}h1{font-size:clamp(28px,4vw,42px);letter-spacing:-.035em;line-height:1.15;margin:8px 0 14px}h2{font-size:22px;line-height:1.2;margin:0 0 16px}h3{font-size:17px;line-height:1.4;margin:0 0 12px}p{margin:10px 0}small,.muted{color:var(--muted)}.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.13em;font-weight:750;color:var(--green)}.hero{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:28px}.hero p{max-width:650px}.panel{background:white;border:1px solid var(--line);border-radius:14px;padding:24px;margin:18px 0}.auth{max-width:500px;margin:40px auto}.auth label{display:block;margin:15px 0 5px}.auth input{width:100%}input,select{border:1px solid #becdc1;border-radius:8px;padding:10px 12px;background:white;color:#16352f}button,.button{border:1px solid var(--line);padding:10px 16px;border-radius:8px;background:white;color:var(--green);cursor:pointer;text-decoration:none;display:inline-block;font-weight:650}button:hover,.button:hover{background:#e8f1e7}button:disabled{opacity:.5;cursor:default}.primary{background:var(--green);border-color:var(--green);color:white}.primary:hover{background:#124d3e}.full{width:100%;margin-top:20px}.row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.cards .panel{margin:0}.stat{font-size:32px;font-weight:750;letter-spacing:-.04em}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.tabs .active{background:#163f35;color:white}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:14px}td,th{text-align:left;padding:13px 10px;border-bottom:1px solid var(--line);vertical-align:top}th{color:var(--muted);font-weight:600;white-space:nowrap}td small{display:block}.badge{display:inline-block;background:#eaf2e8;color:#326047;font-size:12px;font-weight:650;padding:3px 8px;border-radius:5px}.bad{color:#9b3428;background:#fff0eb}.good{color:#166446;background:#e9f6e9}.empty{padding:26px 0;color:var(--muted)}.tickets{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}.ticket{text-align:left;min-height:80px}.ticket small{display:block}.options{display:grid;gap:10px;margin:24px 0}.option{text-align:left;display:flex;gap:14px;align-items:flex-start;font-weight:450}.option b{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:6px;background:#f1f4ee}.option.correct{border-color:#218453;background:#e7f4e8}.option.wrong{border-color:#bb4c35;background:#fff0e9}.question-img{display:block;max-width:100%;max-height:320px;margin:20px auto}.question{max-width:820px;margin:auto}.progress{height:6px;background:#e0e8de;border-radius:5px;margin:18px 0}.progress div{height:100%;background:#4e8863;border-radius:5px}.review{border-top:1px solid var(--line);padding:18px 0}.review p{margin:5px 0}.review details{margin-top:8px}.review summary{cursor:pointer;font-weight:650}.explanation{padding:14px 18px;background:#f0f5eb;border-radius:8px}.notice-box{background:#fff7df;border:1px solid #e9d9a3;padding:14px 18px;border-radius:10px}.split{display:grid;grid-template-columns:1.5fr 1fr;gap:18px}iframe{width:100%;height:880px;border:1px solid var(--line);border-radius:10px;background:white}footer{color:var(--muted);font-size:13px;text-align:center;padding:30px}#notice:not(:empty){position:fixed;bottom:18px;left:50%;transform:translateX(-50%);background:#173d34;color:white;box-shadow:0 5px 25px #0002;padding:12px 20px;border-radius:8px;max-width:calc(100% - 32px);z-index:10}:focus-visible{outline:3px solid #bb8e35;outline-offset:3px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;background:#f4f6f1;padding:16px;border-radius:8px}
.option.selected{border-color:var(--green);background:#e6eee9;box-shadow:inset 3px 0 var(--green)}.option.selected:disabled{opacity:1}.answer-label{font-weight:650;font-size:13px;margin-left:auto;white-space:nowrap}.option span{overflow-wrap:anywhere}#exam-nav button{min-width:44px;min-height:44px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.assignment-field{margin:12px 0}.assignment-field select{max-width:100%}.mpov-form{display:grid;gap:8px;max-width:480px;margin-top:24px}.mpov-form button{margin-top:12px}.mpov-form h3{margin-top:12px}
.assignment-note{display:block;margin-top:6px;max-width:55ch}
.driving-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.driving-heading>div:first-child{max-width:580px}.driving-heading .row{justify-content:flex-end}.driving-legend{display:flex;flex-wrap:wrap;gap:16px;font-size:13px;margin:18px 0}.month-title{text-transform:capitalize;margin:18px 0}.driving-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;align-items:stretch}.calendar-weekday{text-align:center;color:var(--muted);font-size:13px;font-weight:700;padding:5px}.driving-day{min-width:0;background:white;border:1px solid var(--line);border-radius:10px;padding:9px}.driving-day.today{border-color:var(--green);box-shadow:0 0 0 1px var(--green)}.driving-day h3{margin:0 0 4px;font-size:15px;text-transform:capitalize}.daily-count{display:block;margin-bottom:7px;font-size:12px}.driving-shift{display:flex;flex-direction:column;gap:3px;border-top:1px solid var(--line);padding:8px 0;font-size:12px;line-height:1.4;min-width:0}.driving-shift strong{font-size:13px}.driving-shift button{padding:5px 3px;font-size:12px;line-height:1.3;min-height:30px;width:100%;margin-top:3px}.shift-status{overflow-wrap:anywhere}.open-slot .shift-status{color:#17624e}.closed-slot .shift-status{color:#68766d}.my-slot{background:#62e889;color:#10351b;border:1px solid #188239;border-radius:5px;padding-left:5px;padding-right:5px}.my-slot .shift-status{font-weight:700}.booked-slot .shift-status{color:#795811;font-weight:600}.driving-day.past{background:#f0f2ed}.driving-day.student-past{background:#fff0f2;border-color:#ebc4cb}.student-past .my-slot{background:#e2f4e6;border-color:#afd2b8;color:#245237}.driving-calendar button:disabled{opacity:.55}.driving-heading input[type=month]{max-width:210px}
@media(max-width:980px){.driving-heading{flex-direction:column}.driving-heading .row{justify-content:flex-start}.driving-calendar{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.calendar-weekday,.calendar-padding{display:none}.driving-day{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px 10px;padding:12px}.driving-day>time,.driving-day>.daily-count{grid-column:1/-1}.driving-shift button{min-height:40px}}
@media(max-width:600px){.driving-calendar{grid-template-columns:1fr}.driving-legend{gap:8px 14px}.driving-heading input[type=month]{max-width:190px}}
@media(max-width:760px){header{padding:6px 14px;gap:10px;flex-wrap:nowrap}.local{display:none}main{margin:16px auto;padding:0 14px}.cards,.split{grid-template-columns:1fr}.hero{display:block}.panel{padding:18px}.auth{margin:20px auto}.hero .row{margin-top:16px}#account{font-size:12px;gap:8px}.brand{font-size:16px}td,th{padding:10px 8px}.stat{font-size:27px}.option{flex-wrap:wrap}.answer-label{flex-basis:100%;margin-left:42px}.option>span:not(.answer-label){flex:1}}
.brand{flex-shrink:0}.brand img{display:block;width:64px;height:auto}#account{min-width:0}#account>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#account button{flex-shrink:0;padding:6px 12px;min-height:40px}@media(max-width:760px){.brand img{width:48px}#account button{min-height:44px;padding:6px 10px}#account small{display:block;font-size:11px;line-height:1.2}}
.assessment-fields{border:1px solid var(--line);border-radius:8px;margin:16px 0;padding:12px}.assessment-topic{display:grid;grid-template-columns:minmax(0,1fr) auto 75px;gap:8px;align-items:center;padding:5px 0}.assessment-topic input{width:100%;padding:6px}.assessment-student{display:block;padding:5px 0}.assessment-fields legend{font-weight:650}
.instructor-calendar .driving-shift{background:#fff;border-radius:5px;padding-inline:5px}.instructor-calendar .booked-slot{background:#e2f4e6}
.student-calendar .booked-slot{background:#f8dbe5;border:1px solid #e4adc1;border-radius:5px;padding-inline:5px}
.student-calendar .booked-slot .shift-status{color:#712e48}
.instructor-calendar .booked-student-name{color:#4b2e1e;overflow-wrap:anywhere}
.driving-shift .no-show-button{color:#991b1b;border-color:#dc7777;background:#fff0f0}
.driving-shift .no-show-status{color:#991b1b}
.slot-student-choices{max-height:15rem;overflow:auto}
.slot-student-choices button{text-align:left;overflow-wrap:anywhere}
.slot-student-choices small{display:block}
.slot-student-choices .outside-booking-period{background:#fff0f4;border-color:#e4adc1}
.slot-note-editor textarea{box-sizing:border-box;width:100%;min-width:0;font-size:12px;line-height:1.5;resize:vertical;overflow:hidden;overflow-wrap:anywhere}
.slot-note-line{display:flex;align-items:flex-start;gap:5px}
.slot-note-line strong{flex-shrink:0;color:#4b2e1e;white-space:nowrap}
.slot-note-line textarea{flex:1;width:0}
.training-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.training-modes{display:flex;flex-wrap:wrap;gap:8px;padding:6px 0 20px;border-bottom:1px solid var(--line);margin-bottom:24px}.training-modes .active{background:#163f35;border-color:#163f35;color:white}.training-topics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}.training-topic{display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left}.training-topic span{overflow-wrap:anywhere}.training-topic small{white-space:nowrap;font-weight:450}.training-mode-content>p{max-width:75ch}.training-panel .tickets{grid-template-columns:repeat(auto-fill,minmax(110px,1fr))}@media(max-width:600px){.training-topics{grid-template-columns:1fr}.training-heading{display:block}.training-heading .badge{margin-bottom:12px}.training-modes button{flex:1 1 auto}.training-panel .tickets{grid-template-columns:repeat(3,minmax(0,1fr))}.training-panel .ticket{padding:10px 8px;min-height:72px}}
.reference-select,.reference-search{display:block;width:100%;margin:8px 0 16px}.reference-text{margin-top:26px;overflow-wrap:anywhere}.reference-text h1{font-size:28px}.reference-text img{max-width:100%;height:auto;max-height:190px;vertical-align:middle;margin:6px}.reference-text a img{max-height:45px}.reference-text>div{margin:12px 0}.reference-text hr{border:0;border-top:1px solid var(--line);margin:18px 0}.reference-text table{display:block;overflow-x:auto}.reference-text dfn{font-style:normal;font-weight:700}#reference-results button{text-align:left;font-size:14px}#reference-results{margin-bottom:16px}

.header-home{display:inline-flex;align-items:center;flex-shrink:0;min-height:40px;padding:6px 12px}@media(max-width:760px){.header-home{min-height:44px;padding:6px 10px;font-size:13px}}

.header-refresh{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:40px;min-height:40px;padding:0;font-size:26px;line-height:1}.header-refresh[hidden]{display:none}@media(max-width:760px){.header-refresh{width:44px;min-height:44px}}

.student-create fieldset{display:grid;gap:12px;min-width:0}.student-create fieldset>label{display:grid;gap:6px}.student-create input:not([type=checkbox]),.student-create select{width:100%;min-width:0}.student-create fieldset>.row label{display:inline-flex;align-items:center;gap:5px}details>summary{cursor:pointer}
.student-citizenship:not([hidden]){display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:end;gap:8px}.student-citizenship label{display:grid;gap:6px;min-width:0}
.student-document-row{display:grid;grid-template-columns:minmax(0,1fr) calc(12ch + 26px);align-items:end;gap:8px}.student-document-row label{min-width:0}
.certificate-row{grid-template-columns:minmax(0,1fr) max-content}
.certificate-row>label{width:calc(12ch + 16px)}
.certificate-number-parts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:6px;min-width:0;margin-bottom:10px}
.certificate-number-parts label{display:grid;gap:5px}
.certificate-row [data-date-entry]{padding-inline:6px}
.student-document-group>label.period-inline{display:flex;align-items:center;gap:8px;margin:0}
.car-fields-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.car-form label{display:grid;gap:6px;min-width:0}.car-form input{width:100%;min-width:0}
.contract-payment-deadline:not([hidden]){display:flex;align-items:center;gap:8px}
.contract-payment-deadline input[data-date-entry]{width:calc(12ch + 26px);min-width:0}
.contract-payment-deadline input[data-date-entry]:invalid{border-color:#bc3838;background-color:#fff0f0}
.student-create label:has(> :is([name=detail_medicalCertificate],[name=detail_consent],[name=detail_stateFee],[name=detail_driverLicense])),.student-create [data-student-payment]>legend{font-weight:bolder}

.phone-primary-label{display:grid;gap:6px}.phone-primary-row{display:flex;max-width:320px}.phone-primary-row input{flex:1 1 0;min-width:0;width:0}.student-create fieldset>label.period-inline{display:flex;align-items:center;gap:8px;margin:0}.period-inline input{margin:0}

.booking-days{display:grid;gap:8px}.booking-weekdays{display:flex;flex-wrap:nowrap;gap:12px}.booking-weekends{display:flex;flex-wrap:wrap;gap:16px}.booking-weekend-title{display:block;font-size:inherit}


#app .table-wrap{scrollbar-width:none}
#app .table-wrap::-webkit-scrollbar{display:none}
#table-scroll-dock{position:fixed;bottom:0;z-index:9;height:18px;overflow-x:scroll;overflow-y:hidden;background:#e8efed;box-shadow:0 -1px 5px #0002}
#table-scroll-dock>div{height:1px}
#table-scroll-dock::-webkit-scrollbar{height:16px}
#table-scroll-dock::-webkit-scrollbar-track{background:#e8efed}
#table-scroll-dock::-webkit-scrollbar-thumb{background:#68847c;border:2px solid #e8efed;border-radius:8px}
[data-payment-list]{display:grid;gap:12px;min-width:0}
.payment-draft{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-width:0}
.payment-draft>label{display:grid;gap:5px;min-width:0}
.payment-draft>[data-remove-payment]{grid-column:1/-1;justify-self:start}
@media(max-width:620px){.payment-draft{grid-template-columns:minmax(0,1fr)}}

:is(.student-create input,.student-create select,[data-phones] input,input[name^="name_"],input[name^="detail_"],input[name^="payer_"]):user-invalid{
 border-color:#bc3838;
 background-color:#fff0f0;
}

@font-face {
 font-family: Manrope;
 font-style: normal;
 font-weight: 400 800;
 font-display: swap;
 src: url("/fonts/manrope-cyrillic.woff2") format("woff2");
 unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
 font-family: Manrope;
 font-style: normal;
 font-weight: 400 800;
 font-display: swap;
 src: url("/fonts/manrope-latin.woff2") format("woff2");
 unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
 font-family: Unbounded;
 font-style: normal;
 font-weight: 400 700;
 font-display: swap;
 src: url("/fonts/unbounded-cyrillic.woff2") format("woff2");
 unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
 font-family: Unbounded;
 font-style: normal;
 font-weight: 400 700;
 font-display: swap;
 src: url("/fonts/unbounded-latin.woff2") format("woff2");
 unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
 --ink: #17181a;
 --graphite: #232528;
 --dark-line: #34373b;
 --paper: #eeede8;
 --surface: #fff;
 --accent: #ffd21f;
 --accent-hover: #f1bf00;
 --muted: #62645f;
 --line: #d6d4cc;
 --green: #303238;
 --cabinet-block-radius: 18px;
 --sidebar-width: 228px;
 --mobile-bar-height: calc(62px + env(safe-area-inset-bottom, 0px));
 --heading-font: Unbounded, "Segoe UI", system-ui, sans-serif;
 font: 15px/1.48 Manrope, "Segoe UI", system-ui, sans-serif;
 color: var(--ink);
 background: var(--paper);
}

h1 { font: 600 clamp(22px, 3vw, 29px)/1.25 var(--heading-font); letter-spacing: -.025em; }
h2 { font-size: 20px; }
.eyebrow { color: var(--muted); letter-spacing: .08em; }
.panel { border-radius: var(--cabinet-block-radius); }
.cabinet-sidebar ~ #content :is(
 fieldset, iframe, .notice-box, .roster-group-disclosure > summary, .driving-day,
 .office-driving-cell, .instructor-calendar .driving-shift, .my-slot, .student-calendar .booked-slot,
 .student-driving-row [data-slot-state], .mpov-hub-stages button
) { border-radius: var(--cabinet-block-radius); }
input, select, textarea { color: var(--ink); border-color: var(--line); }
button, .button { border-radius: 12px; color: var(--ink); }
button:hover, .button:hover { background: #f2f0e9; }
:where(details > summary) {
 display: block; list-style: none; min-height: 44px; padding: 10px 14px;
 border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
 font-weight: 650; cursor: pointer;
}
:where(details > summary:hover) { background: #f2f0e9; }
details > summary::marker { content: ""; }
details > summary::-webkit-details-marker { display: none; }
.primary, .tabs .active, .training-modes .active {
 background: var(--accent);
 border-color: var(--accent);
 color: var(--ink);
 font-weight: 750;
}
.primary:hover, .tabs .active:hover, .training-modes .active:hover {
 background: var(--accent-hover);
 border-color: var(--accent-hover);
}
.progress { background: #e9e7e0; }
.progress div { background: var(--accent-hover); }
.ticket { border-radius: 14px; }
.option b { background: #eeede8; }
.table-wrap th { background: #f6f5f0; }
#notice:not(:empty) { background: var(--ink); }
:focus-visible { outline-color: #936c00; }

.platform-header {
 min-height: 58px;
 padding: 6px clamp(14px, 3vw, 32px);
 gap: 8px;
}
.platform-header .brand img { width: 44px; border-radius: 10px; }
.platform-header .header-home, .platform-header .header-refresh { min-height: 42px; }
.platform-header #account { position: relative; }
.profile-toggle { display: none; }
#account-panel { display: flex; align-items: center; gap: 8px; }
#account-panel strong, #account-panel small { min-width: 0; overflow-wrap: anywhere; }
#logout { color: #000; background: var(--accent); border-color: var(--accent); }
#logout:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.cabinet-heading { margin: 0 0 20px; }
.cabinet-heading h1 { margin: 5px 0 0; }
.cabinet-heading h1:focus { outline: none; }
.cabinet-mobile-nav { display: none; }
.cabinet-sidebar { display: none; }
body:has(.cabinet-heading) > main {
 max-width: 1440px;
 margin: 28px auto;
 min-width: 0;
}
body:has(.cabinet-heading) #content { min-width: 0; }

@media (min-width: 1024px) {
 body:has(.cabinet-sidebar) { padding-left: var(--sidebar-width); }
 body:has(.cabinet-sidebar) .platform-header > .brand { display: none; }
 .cabinet-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 12px 154px;
  background: var(--ink);
  color: #f4f3ee;
 }
 .sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px;
  color: inherit;
  text-decoration: none;
  font-weight: 750;
  line-height: 1.3;
 }
 .sidebar-brand img { width: 56px; height: auto; border-radius: 14px; }
 .cabinet-sidebar nav { display: grid; align-content: start; gap: 4px; overflow-y: auto; }
 .cabinet-sidebar nav button {
  min-height: 42px;
  border: 0;
  padding: 8px 12px;
  border-radius: 9px;
  text-align: left;
  background: transparent;
  color: inherit;
 }
 .cabinet-sidebar nav button:hover { background: var(--graphite); }
 .cabinet-sidebar nav button[aria-current="page"] { color: var(--ink); background: var(--accent); }
 .cabinet-sidebar :focus-visible { outline-color: var(--accent); outline-offset: -2px; }
 body:has(.cabinet-sidebar) #account {
  position: fixed;
  z-index: 6;
  inset: auto auto 16px 16px;
  width: calc(var(--sidebar-width) - 32px);
  margin: 0;
  color: #f4f3ee;
 }
 body:has(.cabinet-sidebar) #account-panel {
  display: grid;
  width: 100%;
  gap: 2px;
  border-top: 1px solid var(--dark-line);
  padding-top: 12px;
 }
 body:has(.cabinet-sidebar) #account-panel strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
 }
 body:has(.cabinet-sidebar) #account-panel small { color: #b5b6b1; }
 body:has(.cabinet-sidebar) #logout {
  justify-self: start;
  margin-top: 8px;
 }
}

@media (min-width: 981px) and (max-width: 1360px) {
 body:has(.cabinet-sidebar) .driving-calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 body:has(.cabinet-sidebar) :is(.calendar-weekday, .calendar-padding) { display: none; }
}

@media (max-width: 1023px) {
 body:has(.cabinet-mobile-nav) { padding-bottom: var(--mobile-bar-height); }
 body:has(#account-panel) .platform-header {
  position: relative;
  z-index: 7;
  background: var(--ink);
  border-color: var(--dark-line);
 }
 body:has(#account-panel) .platform-header :is(.header-home, .header-refresh) {
  color: #f4f3ee;
  background: var(--graphite);
  border-color: var(--dark-line);
 }
 .profile-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
 }
 .profile-toggle:hover { background: var(--accent-hover); }
 #account-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(240px, calc(100vw - 28px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 32px #17181a26;
 }
 .profile-toggle[aria-expanded="true"] + #account-panel { display: grid; }
 #account-panel button { justify-self: start; }
 .cabinet-mobile-nav {
  position: fixed;
  inset: auto 0 0;
  z-index: 8;
  min-height: var(--mobile-bar-height);
  display: flex;
  padding: 0 4px env(safe-area-inset-bottom, 0px);
  background: var(--surface);
  border-top: 1px solid var(--line);
 }
 .cabinet-mobile-nav > button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 60px;
  padding: 5px 3px;
  border: 0;
  border-top: 3px solid transparent;
  border-radius: 0;
  font-size: clamp(11px, 2.9vw, 14px);
  overflow-wrap: anywhere;
 }
 .cabinet-mobile-nav > button:is([aria-current="page"], .current-in-more) {
  border-color: var(--accent);
  background: #fff9d9;
 }
 #cabinet-more {
  position: fixed;
  inset: auto 10px calc(var(--mobile-bar-height) + 6px);
  margin: 0 auto;
  padding: 8px;
  width: min(480px, calc(100% - 20px));
  max-height: min(62vh, 26rem);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 12px 32px #17181a26;
 }
 #cabinet-more:popover-open { display: grid; gap: 4px; }
 #cabinet-more::backdrop { background: #17181a20; }
 #cabinet-more button { min-height: 44px; text-align: left; }
 #cabinet-more button[aria-current="page"] { background: var(--accent); }
 body:has(.cabinet-mobile-nav) #table-scroll-dock { bottom: var(--mobile-bar-height); }
 body:has(.cabinet-mobile-nav) #notice:not(:empty) { bottom: calc(var(--mobile-bar-height) + 22px); }
}

@media (max-width: 760px) {
 body:has(.cabinet-heading) > main { margin: 18px auto; }
 .cabinet-heading { margin-bottom: 14px; }
 .training-panel { padding: 16px; }
 .training-modes button { min-height: 44px; }
}

@media (max-width: 600px) {
 body:has(.question) { background: var(--ink); color: #f4f3ee; }
 .question .panel { background: var(--graphite); border-color: var(--dark-line); }
 .question :is(.eyebrow, .muted, small) { color: #c2c4bf; }
 .question .badge { color: var(--ink); background: var(--accent); }
 .question .explanation { color: var(--ink); }
 .question .option { min-height: 44px; }
}

body:has(.auth-layout) > :is(.platform-header, footer) { display: none; }
body:has(.auth-layout) > main { max-width: none; margin: 0; padding: 0; }
.auth-layout {
 display: grid;
 justify-items: center;
 align-content: start;
 min-height: 100vh;
 min-height: 100dvh;
 padding: clamp(30px, 9vh, 96px) 18px 28px;
 color: #f4f3ee;
 background: var(--ink);
}
.auth-layout .auth { width: min(100%, 440px); max-width: none; margin: 0; padding: 0; }
.auth-brand {
 display: flex;
 align-items: center;
 gap: 14px;
 margin-bottom: 24px;
}
.auth-brand img { display: block; flex: none; background: #fff; border-radius: 16px; object-fit: contain; }
.auth-brand h1 {
 margin: 0;
 font: 600 clamp(13px, 2.1vw, 18px)/1.35 var(--heading-font);
 letter-spacing: .02em;
 text-wrap: balance;
}
.auth-content h2 { margin: 0 0 10px; }
.auth-layout :is(.muted, small, label) { color: #c2c4bf; }
.auth-layout :is(#auth, #teacher-reset-form) { margin: 0; padding: 0; border: 0; background: transparent; }
.auth-layout :is(#auth, #teacher-reset-form) label:first-of-type { margin-top: 0; }
.auth-layout :is(#auth, #teacher-reset-form) input {
 display: block;
 min-height: 52px;
 padding-inline: 14px;
 border-color: var(--dark-line);
 border-radius: 12px;
 color: #f4f3ee;
 background: var(--graphite);
 font-size: 16px;
 color-scheme: dark;
}
.auth-password { position: relative; }
.auth-layout #auth .auth-password:has(.auth-password-toggle) input { padding-inline-end: 52px; }
.auth-password:has(.auth-password-toggle) input::-ms-reveal { display: none; }
.auth-password-toggle {
 position: absolute;
 inset-block: 4px;
 inset-inline-end: 4px;
 display: grid;
 place-items: center;
 width: 44px;
 padding: 0;
 border: 0;
 border-radius: 8px;
 background: transparent;
 color: #c2c4bf;
}
.auth-password-toggle:is(:hover, :focus-visible) { background: transparent; color: var(--accent); }
.auth-password input[type="text"] + .auth-password-toggle .auth-password-slash { display: none; }
.auth-layout input::placeholder { color: #b5b6b1; }
.auth-layout :is(#auth, #teacher-reset-form) .primary { min-height: 54px; font-size: 16px; }
.auth-layout :focus-visible { outline-color: var(--accent); }
.teacher-recovery-link { margin-top: 8px; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: #c2c4bf; font-size: 14px; text-decoration: underline; }
.teacher-recovery-link:hover { background: transparent; }
.auth-layout [role="alert"]:empty { display: none; }
:is(#auth-error, #preview-error, #teacher-reset-error):not(:empty) {
 padding: 10px 14px;
 border-radius: 12px;
 border: 1px solid #ff9a8a;
 background: #3a2320;
 color: #ffb9ae;
}
.auth-preview { margin-top: 12px; padding-top: 6px; border-top: 1px solid var(--dark-line); }
.auth-preview summary { min-height: 44px; padding-block: 12px; font-size: 14px; }
.auth-preview-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.auth-preview-buttons button {
 display: grid;
 justify-items: center;
 gap: 4px;
 min-width: 0;
 min-height: 44px;
 padding: 7px;
 border-color: var(--dark-line);
 background: var(--graphite);
 color: inherit;
 overflow-wrap: anywhere;
}
.auth-preview-buttons small { font-weight: 400; }
.auth-preview-buttons button:hover { border-color: var(--accent); }

#header-section-title { display: none; }
.cabinet-search { display: none; }
.office-roster { min-width: 0; }
.office-roster h1 { margin: 0; }
.office-roster h1:focus { outline: none; }
.roster-toolbar, .roster-search-tools {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 12px;
}
.roster-toolbar { justify-content: space-between; margin-bottom: 16px; }
.roster-search-tools { justify-content: flex-end; }
.roster-search-tools input { width: min(320px, 100%); font-size: 16px; }
.office-roster :is(button, input[type="search"]) { min-height: 44px; }
.roster-views, .roster-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.roster-views { width: fit-content; padding: 4px; border-radius: 14px; background: #e7e5df; }
.roster-views button { padding: 6px 15px; min-height: 40px; border: 0; background: transparent; color: var(--muted); }
.roster-views button:is([aria-pressed="true"], [aria-current="page"]) { background: #fff; color: var(--ink); }
.roster-filters[hidden] { display: none; }
.roster-filters button { padding-inline: 14px; }
.roster-filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.roster-group, .roster-group-settings {
 border: 1px solid var(--line);
 border-radius: 18px;
 background: #fff;
 margin-bottom: 16px;
}
.roster-group { overflow: hidden; }
.roster-group-meta {
 display: flex;
 align-items: baseline;
 flex-wrap: wrap;
 gap: 5px 16px;
}
.roster-group > .roster-group-meta { padding: 14px 18px; background: #f6f5f1; border-bottom: 1px solid #e9e7e0; }
.roster-group-meta h2 { margin: 0; font-size: 16px; font-weight: 800; }
.roster-group-meta span { font-size: 13px; color: var(--muted); }
.roster-table, .roster-expelled { table-layout: fixed; }
.roster-table th:nth-child(1) { width: 38%; }
.roster-table th:nth-child(2) { width: 17%; }
.roster-table th:nth-child(3) { width: 19%; }
.roster-table th:nth-child(4) { width: 12%; }
.office-roster :is(th, td) { padding: 12px 10px; vertical-align: middle; overflow-wrap: anywhere; }
.office-roster th { padding-top: 8px; padding-bottom: 8px; white-space: normal; text-transform: uppercase; font-size: 12px; font-weight: 600; }
.office-roster .roster-table th { background: #fff; }
.office-roster .roster-sort {
 display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-height: 32px; padding: 0;
 border: 0; background: transparent; color: inherit; font: inherit; text-align: inherit; text-transform: inherit;
}
.roster-sort span { flex: none; font-size: 11px; }
.office-roster .roster-sort:hover, .roster-table th[aria-sort] .roster-sort { color: var(--ink); }
.office-roster :is(th, td):first-child { padding-left: 18px; }
.office-roster :is(th, td):last-child { text-align: right; padding-right: 18px; }
.office-roster td:last-child { font-weight: 700; }
.office-roster tbody tr:last-child td { border-bottom: 0; }
.roster-table tr[data-student-row] { cursor: pointer; }
.office-roster :is(.roster-name, .roster-name:hover) {
 min-height: 0;
 border: 0;
 padding: 0;
 background: transparent;
 text-align: left;
 font-size: 15px;
 font-weight: 750;
 overflow-wrap: anywhere;
}
.roster-name:hover { text-decoration: underline; }
.roster-issue { display: inline-block; padding: 2px 7px; border-radius: 7px; background: var(--accent); color: var(--ink); }
.roster-issue[hidden] { display: none; }
.roster-empty { padding: 14px 18px; margin: 0; color: var(--muted); }
#roster-results > .roster-empty { border: 1px dashed var(--line); border-radius: 18px; }
.new-student-back { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); }
.new-student-back:hover { background: transparent; text-decoration: underline; }
.new-student-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 18px; }
.new-student-heading > div { flex: 1 1 260px; }
.new-student-heading h1 { margin: 0; font-size: 23px; }
.new-student-heading h1:focus { outline: none; }
.new-student-heading p { margin: 4px 0 0; }
.new-student-heading > button { min-height: 44px; padding: 0 18px; border: 0; }
.new-student-fields { margin: 0; }
.student-card-back { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); font-weight: 400; }
.student-card-back:hover { background: transparent; text-decoration: underline; }
.student-card-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 18px; }
.student-card-heading > div { flex: 1 1 260px; }
.student-card-heading h1 { margin: 0; font-size: 23px; line-height: 1.45; letter-spacing: normal; }
.student-card-heading h1:focus { outline: none; }
.student-card-heading p { margin: 4px 0 0; }
.student-card-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.student-card-tabs > button { min-height: 44px; padding: 0 14px; font-weight: 600; }
.student-card-tabs > button[hidden] { display: none; }
.student-card-tabs > [aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.new-student-tabs + .new-student-fields :is(summary, [hidden]) { display: none; }
.new-student-tabs + .new-student-fields [data-student-section] { border: 0; padding: 0; }
.student-section-save { min-height: 44px; margin-top: var(--student-card-row-gap, 16px); }
.student-exam-records { display: grid; row-gap: var(--student-card-row-gap, 8px); }
.student-exam-record-toggle { min-height: 44px; padding: 10px 14px; text-align: left; }
.student-exam-record-editor { padding: 12px; border: 1px solid var(--line); border-radius: var(--cabinet-block-radius); }
.student-exam-record-editor > fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.student-create .student-exam-record-editor > [hidden] { display: none; }
.student-create .student-exam-record-editor .exam-driving-count[hidden] { display: none; }
.student-card-review-dialog {
 width: min(100% - 28px, 560px); max-height: calc(100dvh - 28px); padding: clamp(16px, 4vw, 24px);
 color: var(--ink); border: 1px solid var(--line); border-radius: var(--cabinet-block-radius); background: var(--surface);
}
.student-card-review-dialog::backdrop { background: #17181a99; }
.student-card-review-dialog dl > div {
 display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px;
 padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere;
}
.student-card-review-dialog dt { color: var(--muted); }
.student-card-review-dialog dd { margin: 0; }
.desktop-student-body { --student-card-row-gap: 12px; margin: 0; padding: 22px; }
.desktop-student-body [role="tabpanel"] > summary { display: none; }
.desktop-student-body [role="tabpanel"] > fieldset { row-gap: var(--student-card-row-gap); min-width: 0; margin: 0; padding: 0; border: 0; }
.desktop-student-body [role="tabpanel"] label { color: var(--muted); font-size: 13px; }
.desktop-student-body [role="tabpanel"] :is(input:not([type="checkbox"]),select) { min-height: 44px; padding: 0 12px; border-radius: 12px; font-size: 15px; }
.desktop-student-body [role="tabpanel"] input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.student-create:not(#student-edit-form) > :is([data-student-section="data"], [data-student-section="payer"]) > fieldset {
 grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.student-create:not(#student-edit-form) > :is([data-student-section="data"], [data-student-section="payer"]) > fieldset > :not(label:has([name$="_registrationAddress"], [name="detail_postalCode"], [name="payer_phone"])) {
 grid-column: 1 / -1;
}
.student-create:not(#student-edit-form) > :is([data-student-section="data"], [data-student-section="payer"]) > fieldset > label:has([name$="_registrationAddress"], [name="detail_postalCode"], [name="payer_phone"]) {
 min-width: 0; grid-template-columns: minmax(0, 1fr); align-self: end; overflow-wrap: anywhere;
}
.student-card-field-grid,
.desktop-student-body [data-student-section="study"] > fieldset {
 grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
 gap: var(--student-card-row-gap, 14px) 16px;
}
.student-card-field-grid { display: grid; align-items: start; }
.student-card-field-grid > label { display: grid; gap: 6px; min-width: 0; }
.student-card-field-grid > label.period-inline { display: flex; align-items: center; gap: 8px; }
.student-create fieldset > label[data-passport-translation][hidden] { display: none; }
.student-card-field-grid:not(.student-card-field-row) > :is(
 [data-phones],.student-citizenship,.period-inline,.student-card-field-row,
 label:has([name="detail_birthPlace"],[name$="_passportIssuedBy"],[name$="_registrationAddress"],[name="payer_fullName"])
) { grid-column: 1 / -1; }
.student-card-field-row { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.additional-exam-attempt-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
[data-exam-payment][hidden] { display: none; }
.student-create [data-student-section="additional"] .exam-driving-count { display: flex; align-items: center; gap: 10px; }
.student-create .exam-driving-count input { width: 7rem; min-width: 0; }
.desktop-student-body :is(.student-card-three-field-row, .student-citizenship--with-abbreviation) {
 grid-template-columns: repeat(3, minmax(0, 1fr));
 gap: var(--student-card-row-gap) 16px;
}
.desktop-student-body .student-card-wide-field-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.desktop-student-body .student-card-field-row[hidden] { display: none; }
.desktop-student-body [data-student-section="study"] > fieldset { align-items: end; }
.desktop-student-body [data-student-section="study"] > fieldset > :is(.student-card-study-controls,[data-personal-period],label:has([name="initialAccess"]),p,.booking-days) { grid-column: 1 / -1; }
.desktop-student-body [data-student-section="study"] label[hidden] { display: none; }
.desktop-student-body [data-student-section="study"] > fieldset > p { margin: 0; color: var(--muted); font-size: 13px; }
.desktop-student-body .student-card-booking-days {
 grid-template-columns: repeat(7, minmax(0, 48px));
 gap: 6px;
}
.desktop-student-body .booking-days label {
 position: relative;
 justify-content: center;
 min-height: 44px;
 padding: 0 4px;
 border: 1px solid var(--line);
 border-radius: 12px;
 color: var(--ink);
 font-weight: 600;
 cursor: pointer;
}
.desktop-student-body .booking-days label:has(:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.desktop-student-body .booking-days label:has(:focus-visible) { outline: 2px solid var(--accent-hover); outline-offset: 2px; }
.desktop-student-body .booking-days input { position: absolute; opacity: 0; }
.student-card-driving-stats {
 display: flex; flex-wrap: wrap; gap: var(--student-card-row-gap) 32px;
 margin: var(--student-card-row-gap) 0 0; padding-top: var(--student-card-row-gap); border-top: 1px solid #e9e7e0;
}
.student-card-driving-stats dt { color: var(--muted); font-size: 13px; }
.student-card-driving-stats dd { margin: 0; font: 600 22px/1.45 var(--heading-font); }
.desktop-student-body [data-student-section="payer"] > p { max-width: 70ch; margin: 0 0 var(--student-card-row-gap); }
.desktop-student-body [data-payer-missing] { margin: 0 0 var(--student-card-row-gap); }
.desktop-student-body [data-student-section="docs"] > fieldset > :is(.student-document-group,.period-inline) {
 min-height: 48px;
 padding-block: 10px;
 border-bottom: 1px solid #e9e7e0;
}
.desktop-student-body [data-student-section="docs"] > fieldset > .student-document-group:has(+ [data-student-payment]) { border-bottom: 0; }
.desktop-student-body [data-student-payment] { margin: 0; padding: 0; border: 0; }
.desktop-student-body [data-student-payment] legend { margin-bottom: 10px; padding: 0; font-size: 18px; font-weight: 800; }
.desktop-student-body [data-student-payment] label:has([name="tuitionTotal"]) { max-width: 280px; }
.desktop-student-body [data-student-payment] progress { width: 100%; height: 8px; accent-color: #1f8a4c; }
.desktop-student-body [data-payment-summary] { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.desktop-student-body [data-payment-summary] [data-paid] { color: #1f8a4c; }
.desktop-student-body [data-payment-list] [data-saved-payment] { justify-content: space-between; padding-block: 12px; border-top: 1px solid #e9e7e0; }
.student-card-word,.student-card-expulsion { border-top: 1px solid #e9e7e0; }
.student-card-word { margin-top: 24px; padding-top: 18px; }
.student-card-expulsion { margin-top: var(--student-card-row-gap); padding-top: var(--student-card-row-gap); }
.student-card-saved-documents:not(:empty) { margin-top: 24px; }
.student-card-access,.student-card-expulsion { max-width: 560px; }
.student-card-access h2,.student-card-expulsion h2 { margin: 0; font-size: 15px; font-weight: 600; }
.student-card-access p,.student-card-expulsion p,.student-card-code { margin: var(--student-card-row-gap) 0; }
.student-card-code h3 { margin: 0 0 var(--student-card-row-gap); font-size: 14px; }
.student-card-code input { max-width: 100%; }
.student-card-expulsion .danger { border-color: #e2a094; color: #c8321f; background: #fff; }
.roster-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr)); gap: 14px; }
.roster-group-disclosure { min-width: 0; align-self: start; }
.roster-group-disclosure > summary {
 display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 10px 14px;
 border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 700; cursor: pointer; overflow-wrap: anywhere;
}
.roster-group-disclosure[open] > .roster-group-settings { margin-top: 8px; }
.roster-group-settings { padding: 16px; margin: 0; }
.roster-group-settings form { align-items: end; margin-top: 12px; }
.roster-group-settings form label { display: grid; gap: 5px; flex: 1 1 110px; min-width: 0; }
.roster-group-settings form :is(select, input) { width: 100%; min-width: 0; }
.roster-group-settings h2 { margin: 0; font-family: var(--heading-font); font-size: 16px; }
.roster-group-period-title { display: none; }
.roster-group-payments { min-height: 44px; margin-top: 10px; }
.office-subpage { max-width: 760px; }
.office-subpage-back { min-height: 44px; margin-bottom: 8px; padding: 0; border: 0; background: none; color: var(--muted); }
.office-subpage-back:hover { background: none; text-decoration: underline; }
.office-subpage-card { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.office-subpage-card > :is(h1, p) { margin: 0; }
.office-subpage-card > h1 { font: 600 22px/1.25 var(--heading-font); letter-spacing: normal; }
.office-subpage-card > h1:focus { outline: none; }
.group-payment-plan { display: grid; gap: 10px; min-width: 0; }
.group-payment-plan > .primary { min-height: 48px; margin-top: 4px; }
.group-payment-entry {
 display: grid;
 grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
 gap: 8px;
 padding: 8px;
 border: 1px solid var(--line);
 border-radius: 10px;
 margin: 0 0 8px;
}
.group-payment-entry :user-invalid { border-color: #bc3838; }
.group-payment-entry small { display: block; color: var(--muted); }
.group-payment-plan .group-payment-entry { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); margin: 0; }
.group-payment-entry :is(label, .group-payment-date) { min-width: 0; }
.group-payment-entry label, .group-payment-date { display: grid; gap: 4px; }
.group-payment-entry input { width: 100%; min-width: 0; height: 44px; padding: 0 8px; font-size: 16px; }
.group-payment-date-controls { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 6px; }
.group-calendar-open { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; }
.group-calendar-open span {
 position: relative; width: 18px; height: 17px; border: 1.5px solid currentColor; border-radius: 3px;
 background: linear-gradient(to bottom, transparent 4px, currentColor 4px 5.5px, transparent 5.5px);
}
.group-calendar-open span::before, .group-calendar-open span::after {
 content: ""; position: absolute; top: -3px; width: 2px; height: 5px; border-radius: 1px; background: currentColor;
}
.group-calendar-open span::before { left: 3px; }
.group-calendar-open span::after { right: 3px; }
.group-payment-calendar {
 width: min(390px, calc(100% - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 16px;
 border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink);
}
.group-payment-calendar::backdrop { background: #17181a99; }
.group-payment-calendar h2 { margin: 0 0 8px; font: 600 17px/1.3 var(--heading-font); }
.group-calendar-legend { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.group-calendar-legend span { flex: none; width: 14px; height: 14px; border: 1px solid #d9b53a; border-radius: 4px; background: #fff2b6; }
.group-calendar-month { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; text-align: center; gap: 8px; }
.group-calendar-month strong { text-transform: capitalize; }
.group-calendar-month button { min-height: 44px; padding: 0; }
.group-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 10px 0 14px; }
.group-calendar-weekday { padding: 4px 0; text-align: center; color: var(--muted); font-size: 12px; }
.group-calendar-day { min-height: 36px; min-width: 0; padding: 0; border-radius: 8px; }
.group-calendar-day[data-training-day] { border-color: #d9b53a; background: #fff2b6; }
.group-calendar-day[aria-current="date"] { box-shadow: inset 0 0 0 1px var(--muted); }
.group-calendar-day[aria-pressed="true"] { border: 2px solid var(--ink); font-weight: 800; }
.group-calendar-footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.group-calendar-footer button { min-height: 44px; padding: 0 12px; }
.teacher-recovery-link { align-self: start; justify-self: start; min-height: 44px; }
.office-subpage-card #teacher-recovery-code { display: grid; gap: 12px; margin: 0; }
.office-subpage-card #teacher-recovery-code label { display: grid; gap: 6px; }
.office-subpage-card #teacher-recovery-code > button { min-height: 44px; justify-self: start; }
.roster-payment-overdue { color: #9b2631; font-weight: 750; }
.roster-group-new { background: var(--ink); color: #f4f3ee; border-color: var(--dark-line); }
.roster-group-new :is(input, select) { background: var(--graphite); color: #f4f3ee; border-color: var(--dark-line); }
.roster-meter { display: none; }
.today-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.today-heading h2 { margin: 0; }
.today-heading span { color: var(--muted); }
.today-attention { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 295px), 1fr)); gap: 12px; }
.today-attention article { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.today-attention p { margin: 6px 0; color: var(--muted); }
.today-attention button { margin-top: 8px; }
.today-attention-summary { display: none; }
.today-attention-summary .roster-issue { background: #fff5cc; }
.today-attention-items { margin: 8px 0 0; padding-left: 20px; }
.today-attention-items li::marker { color: #886900; }
.office-today-overview, .office-today-heading { display: none; }
.office-today-overview--payments { display: block; }
.today-sections { display: none; }
.today-metrics {
 display: grid;
 grid-template-columns: repeat(2, minmax(0, 1fr));
 gap: 8px;
 padding: 10px;
 border-radius: 18px;
 background: var(--ink);
}
.today-metric {
 padding: 12px;
 border: 1px solid var(--dark-line);
 border-radius: 14px;
 background: var(--graphite);
 color: #f4f3ee;
 text-align: left;
}
.today-metric:hover, .today-metric:focus-visible { background: var(--graphite); border-color: var(--accent); }
.today-metric:focus-visible { outline-color: var(--accent); outline-offset: 2px; }
.today-metric-title { display: block; font-size: 14px; font-weight: 750; }
.today-metric strong { display: block; margin: 6px 0 4px; color: var(--accent); font: 600 23px/1.2 var(--heading-font); }
.today-metric-note { display: block; color: #c2c4bf; font-size: 13px; font-weight: 400; }
.office-today-overview--payments .today-metrics {
 grid-template-columns: minmax(0, 1fr);
 max-width: 320px;
 margin-bottom: 22px;
}

@media (min-width: 760px) and (max-width: 1049px) {
 .roster-table th:nth-child(4) { width: 6rem; }
}

@media (min-width: 760px) {
 .office-roster :is(.roster-table th:nth-child(4), .roster-expelled th:nth-child(3)) { white-space: nowrap; }
 .cabinet-sidebar--teacher ~ .office-today-overview { display: block; margin-bottom: 26px; }
 .cabinet-sidebar--teacher ~ .office-today-overview .today-metrics { gap: 10px; padding: 18px; border-radius: 22px; }
 .cabinet-sidebar--teacher ~ .office-today-overview .today-metric {
  display: flex; flex-direction: column; align-items: stretch; gap: 6px;
  min-height: 130px; padding: 14px; border-radius: 16px;
 }
 .cabinet-sidebar--teacher ~ .office-today-overview .today-metric strong {
  margin: 0; color: #f4f3ee; font: 600 26px/1.1 var(--heading-font);
 }
 .cabinet-sidebar--teacher ~ .office-today-overview progress {
  width: 100%; height: 6px; margin-top: auto; accent-color: var(--accent); border: 0; border-radius: 8px; overflow: hidden;
 }
 .cabinet-sidebar--teacher ~ .office-today-overview progress::-webkit-progress-bar { background: var(--dark-line); }
 .cabinet-sidebar--teacher ~ .office-today-overview progress::-webkit-progress-value { background: var(--accent); }
 body:has(.cabinet-sidebar--office) { --sidebar-width: clamp(170px, 19vw, 228px); padding: 0 0 0 var(--sidebar-width); }
 body:has(.cabinet-sidebar--office) > main { max-width: 1440px; margin: 30px auto; padding-inline: clamp(20px, 3vw, 36px); }
 body:has(.cabinet-sidebar--office) .platform-header { display: contents; }
 body:has(.cabinet-sidebar--office) .platform-header > .brand,
 body:has(.cabinet-sidebar--office) .header-home,
 body:has(.cabinet-sidebar--office) .cabinet-mobile-nav,
 body:has(.cabinet-sidebar--office) .profile-toggle { display: none; }
 body:has(.cabinet-sidebar--office) .header-refresh {
  position: fixed;
  z-index: 6;
  left: calc(var(--sidebar-width) - 57px);
  top: 30px;
  min-height: 40px;
 }
 .cabinet-sidebar--office {
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
  width: var(--sidebar-width);
  flex-direction: column;
  gap: 18px;
  padding: 18px 9px 180px;
  background: var(--ink);
  color: #f4f3ee;
 }
 .cabinet-sidebar--office .sidebar-brand { display: block; padding: 0 8px; }
 .cabinet-sidebar--office .sidebar-brand span { display: none; }
 .cabinet-sidebar--office .sidebar-brand img { display: block; width: 64px; height: 64px; border-radius: 17px; object-fit: contain; background: #fff; }
 .cabinet-sidebar--office nav { display: grid; align-content: start; gap: 4px; overflow-y: auto; scrollbar-width: none; }
 .cabinet-sidebar--office nav::-webkit-scrollbar { display: none; }
 .cabinet-sidebar--office nav button {
  min-height: 38px;
  border: 0;
  padding: 7px 12px;
  border-radius: 9px;
  text-align: left;
  background: transparent;
  color: inherit;
 }
 .cabinet-sidebar--office nav button:hover { background: var(--graphite); }
 .cabinet-sidebar--office nav button[aria-current="page"] { color: var(--ink); background: var(--accent); }
 .cabinet-sidebar--office :focus-visible { outline-color: var(--accent); outline-offset: -2px; }
 body:has(.cabinet-sidebar--office) #account {
  position: fixed;
  z-index: 6;
  inset: auto auto 16px 16px;
  width: calc(var(--sidebar-width) - 32px);
  margin: 0;
  color: #f4f3ee;
 }
 body:has(.cabinet-sidebar--office) #account-panel {
  position: static;
  display: grid;
  width: 100%;
  gap: 2px;
  border: 0;
  border-top: 1px solid var(--dark-line);
  border-radius: 0;
  padding: 12px 0 0;
  background: transparent;
  box-shadow: none;
 }
 body:has(.cabinet-sidebar--office) #account-panel strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
 body:has(.cabinet-sidebar--office) #account-panel > small { color: #b5b6b1; white-space: nowrap; }
 body:has(.cabinet-sidebar--teacher) #account-panel > small { font-size: 11px; }
 body:has(.cabinet-sidebar--office) :is(.header-home, .header-refresh) {
  color: #f4f3ee;
  background: var(--graphite);
  border-color: var(--dark-line);
 }
 body:has(.cabinet-sidebar--office) #logout { justify-self: start; margin-top: 8px; }

 body:has(.cabinet-sidebar[data-office-roster]) { --sidebar-width: clamp(182px, 24vw, 228px); }
 body:has(.cabinet-sidebar[data-office-roster]) > main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px clamp(20px, 3.8vw, 36px) 40px;
 }
 .cabinet-sidebar[data-office-roster] { gap: 0; padding: 18px 12px 128px; }
 .cabinet-sidebar[data-office-roster] .sidebar-brand { margin-bottom: 18px; }
 .cabinet-sidebar[data-office-roster] .sidebar-brand img { border-radius: 18px; }
 .cabinet-sidebar[data-office-roster] nav button { min-height: 42px; font-weight: 600; }
 body:has(.cabinet-sidebar[data-office-roster]) #account {
  left: 12px;
  bottom: 18px;
  width: calc(var(--sidebar-width) - 24px);
  font-size: 15px;
 }
 body:has(.cabinet-sidebar[data-office-roster]) #account-panel { padding: 12px 8px 0; gap: 0; }
 body:has(.cabinet-sidebar[data-office-roster]) #account-panel strong { font-weight: 600; }
 body:has(.cabinet-sidebar[data-office-roster]) #logout { min-height: 44px; padding-inline: 14px; font-weight: 400; }

 .office-roster { line-height: 1.45; }
 .office-roster .roster-toolbar h1 { flex: 1 1 160px; font-size: 23px; line-height: inherit; letter-spacing: normal; }
 .office-roster .roster-search-tools { flex: 1 1 460px; }
 .office-roster .roster-search-tools input {
  flex: 1 1 220px;
  width: auto;
  max-width: 320px;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 15px;
 }
 .office-roster #roster-add { min-height: 44px; padding: 0 18px; border: 0; font-weight: 800; }
 .office-roster .roster-views { gap: 4px; border-radius: 12px; background: #e9e7e0; }
 .office-roster .roster-views button { min-height: 40px; padding: 0 16px; border-radius: 9px; font-weight: 600; }
 .office-roster .roster-filters button { min-height: 44px; padding: 0 14px; font-weight: 600; }
 .office-roster .roster-group-meta { gap: 4px 16px; }
 .office-roster .roster-group-meta h2 { line-height: inherit; }

 .office-roster .roster-table th:first-child { width: auto; }
 .office-roster .roster-table th:nth-child(2) { width: min(19%, 166px); }
 .office-roster .roster-table th:nth-child(3) { width: min(22%, 186px); }
 .office-roster .roster-table th:nth-child(4) { width: min(13%, 106px); }
 .office-roster .roster-table th:nth-child(5) { width: min(16%, 126px); }
 .office-roster :is(th, td) { padding-inline: 8px; border-color: #e9e7e0; }
 .office-roster :is(th, td):first-child { padding-left: 18px; }
 .office-roster :is(th, td):last-child { padding-right: 18px; }
 .office-roster th { font-weight: 400; letter-spacing: .04em; }
 .office-roster td { height: 56px; }
 .office-roster td:last-child { font-weight: 600; }
 .office-roster .roster-table tr:is(:hover, :focus-within) { background: #f6f5f1; }
 .office-roster .roster-name { font-weight: 600; }
 .office-roster td small { font-size: 13px; }
 .office-roster .roster-phone-missing { color: #c8321f; }
 .office-roster .roster-issue { padding: 2px 8px; border-radius: 6px; }
 .office-roster .roster-expelled th { padding-block: 10px; background: #f6f5f1; white-space: normal; }
 .office-roster .roster-expelled th:first-child { width: min(16%, 116px); }
 .office-roster .roster-expelled th:nth-child(3),
 .office-roster .roster-expelled th:nth-child(4) { width: min(24%, 166px); }
 .office-roster .roster-expelled td:last-child { font-weight: 400; }

 .office-roster .roster-groups {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  align-items: start;
 }
 .office-roster .roster-group-settings { padding: 20px; }
 .office-roster .roster-group-settings .roster-group-meta { justify-content: space-between; }
 .office-roster .roster-group-settings h2 { font-size: 18px; font-weight: 600; }
 .office-roster [data-show-group] {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
 }
 .office-roster [data-show-group]:hover { text-decoration: underline; }
 .office-roster .roster-group-settings form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
 }
 .office-roster .roster-group-period-title { display: block; font: 400 11px/1.45 var(--heading-font); letter-spacing: .06em; text-transform: uppercase; }
 .office-roster .roster-group-settings :is(.roster-group-period-title, form > button, label:has([name="groupNumber"], [name="teacherName"])) { grid-column: 1 / -1; }
 .office-roster .roster-group-settings :is(.roster-group-period-title, form label) { color: var(--muted); font-size: 13px; }
 .office-roster .roster-group-settings .roster-group-period-title { font-size: 11px; }
 .office-roster .roster-group-settings label { gap: 6px; }
 .office-roster .roster-group-settings :is(input, select) { min-height: 44px; padding-block: 0; border-radius: 12px; font-size: 15px; }
 .office-roster .roster-group-settings form > button { justify-self: start; padding-block: 0; }
 .office-roster .roster-group-new form label { color: #b5b6b1; }
}

@media (max-width: 759px) {
 #account-panel > strong { color: #000; font-weight: 700; }
 .office-subpage-back { display: none; }
 .platform-header > .header-home { display: none; }
 body:has(.cabinet-sidebar--office) #account { order: 3; margin-left: 0; }
 body:has(.cabinet-sidebar--office) #header-section-title {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 38%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 500 14px/1.2 var(--heading-font);
  color: #f4f3ee;
 }
 body:has(.cabinet-sidebar--office) #account .profile-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: var(--accent); color: var(--ink); font-size: 13px; font-weight: 800;
 }
 body:has(.cabinet-sidebar--office) .cabinet-search { display: block; flex: 1 1 160px; min-width: 0; }
 .cabinet-search input {
  display: block; width: 100%; height: 44px; padding: 0 10px; border: 1px solid var(--dark-line);
  border-radius: 12px; background: var(--graphite); color: #f4f3ee; color-scheme: dark; font-size: 16px;
 }
 .cabinet-search input::placeholder { color: #c2c4bf; opacity: 1; }
 #cabinet-search-results {
  position: absolute; inset: calc(100% + 6px) 12px auto; z-index: 6; max-height: 60dvh; overflow: auto;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 10px 32px #17181a26;
 }
 #cabinet-search-results h2 { margin: 0; padding: 10px 12px 6px; font-size: 13px; color: var(--muted); }
 #cabinet-search-results button {
  display: grid; width: 100%; min-height: 44px; gap: 2px; padding: 8px 12px;
  border: 0; border-top: 1px solid #eeede8; border-radius: 0; text-align: left; overflow-wrap: anywhere;
 }
 #cabinet-search-results small { font-size: 12px; font-weight: 400; }
 #cabinet-search-results p { margin: 0; padding: 12px; }
 .office-roster { padding-top: 2px; }
 .roster-toolbar { display: contents; }
 .roster-toolbar h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
 .office-roster { display: flex; flex-direction: column; }
 .roster-views { order: -1; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); width: min(100%, 460px); }
 .roster-views button { padding-inline: 4px; }
 .roster-search-tools { justify-content: flex-start; gap: 8px; margin-bottom: 14px; }
 .roster-search-tools input { flex: 1 1 185px; width: 100%; min-width: 0; }
 .office-roster #roster-add { padding-inline: 12px; }
 .roster-filters { gap: 5px; }
 .roster-filters button { font-size: 13px; padding-inline: 9px; }
 .roster-group { background: transparent; border: 0; overflow: visible; }
 .roster-group > .roster-group-meta { border: 0; background: transparent; padding: 0 0 8px; }
 .office-roster .table-wrap { overflow: visible; }
 .office-roster thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
 .office-roster :is(table, tbody) { display: block; }
 .office-roster tbody { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 10px; }
 .office-roster tr {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
 }
 .office-roster :is(td, td:first-child, td:last-child) { padding: 0; border: 0; text-align: left; background: transparent; }
 .office-roster .roster-name { min-height: 28px; font-size: 16px; }
 .roster-table td[data-label="Остаток"]::before, .roster-expelled td[data-label]::before {
  content: attr(data-label) " · ";
  color: var(--muted);
  font-weight: 500;
 }
 .roster-driving { display: flex; align-items: center; gap: 8px; }
 .roster-driving::before { content: "Вождение"; color: var(--muted); }
 .roster-meter { display: block; flex: 1; height: 6px; border-radius: 4px; background: #e4e2da; }
 .roster-meter > span { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
 .today-sections { display: block; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
 .today-sections > summary { align-content: center; min-height: 44px; padding: 8px 12px; border-radius: 10px; background: var(--accent); color: var(--ink); font-weight: 800; }
 .today-sections .office-mobile-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 8px; margin-top: 8px; }
 .office-mobile-sections button { min-height: 52px; padding-inline: 12px; background: var(--surface); text-align: left; }
 .office-today-overview { display: grid; gap: 12px; margin-bottom: 22px; }
 .office-today-overview--payments .today-metrics { max-width: none; }
 .today-attention-summary { display: block; }
 .today-attention-items { display: none; }
 .theory-nav { width: 100%; }
 .theory-nav button { flex: 1 1 auto; }
}

@media (max-width: 700px) {
 .auth-layout { padding-top: 24px; }
 .auth-brand img { width: 56px; height: 56px; }
}
.office-driving {
 --driving-free: #fff3b8;
 --driving-booked: #e2f4e6;
 --driving-danger: #c8321f;
 line-height: 1.45;
}
body:has(.cabinet-sidebar--office) > main:has(:is(.office-driving, .teacher-staff)) { max-width: 1120px; }
body:has(:is(.office-driving, .teacher-staff)) > footer { display: none; }
.office-driving-heading, .office-driving-toolbar {
 display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px;
}
.office-driving-heading h1 {
 flex: 1 1 200px; margin: 0; font: 600 23px/1.45 var(--heading-font); letter-spacing: normal;
}
.office-driving-week-nav, .office-driving-toolbar label {
 display: flex; align-items: center; gap: 6px;
}
.office-driving-week-nav span { padding: 0 8px; font-weight: 600; white-space: nowrap; }
.office-driving-week-nav button { width: 44px; padding: 0; }
.office-driving-toolbar { gap: 10px; color: var(--muted); }
.office-driving-toolbar label, .office-driving-period { gap: 8px; }
.office-driving-toolbar :is(select, input) { height: 44px; padding: 0 10px; }
.office-driving-period, .office-driving-download {
 display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto;
}
.office-driving-period-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.office-driving-period-summary span { color: var(--ink); white-space: nowrap; }
.office-driving-download:has(.office-driving-period-summary) { gap: 8px 16px; }
.office-driving-period input[data-date-entry] { width: 118px; min-width: 0; }
.office-driving :is(.office-driving-week-nav button, .office-driving-period button, .button) {
 height: 44px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600;
}
.office-driving-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: #e9e7e0; }
.office-driving-tabs button { height: 40px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 600; }
.office-driving-tabs button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.office-driving-board { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.office-driving [data-driving-date-swipe] { touch-action: pan-y pinch-zoom; }
.office-driving-grid { display: grid; flex: 1 1 320px; min-width: 0; grid-template-columns: max-content repeat(7,minmax(0,1fr)); gap: 6px; }
.office-driving-day { height: 44px; border-radius: 12px; gap: 6px; font-weight: 600; }
.office-driving-day strong { font-weight: 800; }
.office-driving-day.past { color: var(--muted); }
.office-driving-day[aria-current="date"] { background: var(--ink); color: var(--accent); }
.office-driving-day, .office-driving-cell { display: flex; align-items: center; justify-content: center; }
.office-driving-row-label { display: flex; align-items: center; color: var(--muted); font-size: 13px; }
.driving-shift-label { white-space: nowrap; }
.driving-booking-line { display: flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; }
.driving-booking-mark {
 position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center;
 width: 25px; height: 21px; vertical-align: middle; font: 800 11px/1 Manrope, sans-serif; color: #17181a;
}
.driving-booking-mark--teacher::before {
 content: ''; width: 14px; height: 14px; border: 2px solid #fff; border-radius: 1px;
 background: var(--accent); box-shadow: 0 0 0 1px #8b8980; transform: rotate(45deg);
}
.driving-booking-mark--mpov { align-items: flex-end; padding-bottom: 3px; isolation: isolate; }
.driving-booking-mark--mpov::before, .driving-booking-mark--mpov::after {
 content: ""; position: absolute; z-index: -1; clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.driving-booking-mark--mpov::before { inset: 0; background: #bb2822; }
.driving-booking-mark--mpov::after { inset: 4px 3.5px 2px; background: #fff; }
.office-driving-cell {
 height: 52px; min-width: 0; padding: 0 8px; border: 1px solid var(--line); border-radius: 12px;
 background: #fff; font-size: 13px; font-weight: 400; overflow: hidden; gap: 8px;
}
.office-driving-cell span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.office-driving-cell::before { content: ""; }
.office-driving-cell[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 1px; }
.office-driving-cell.free, .office-driving-legend .free { border-color: var(--driving-free); background: var(--driving-free); }
.office-driving-cell.closed, .office-driving-legend .closed { border-style: dashed; background: #fff; color: var(--muted); }
.office-driving-cell:is(.booked, .absent), .office-driving-legend :is(.booked, .absent) { background: var(--driving-booked); }
.office-driving-cell:is(.booked, .absent) { font-weight: 500; }
.office-driving-cell.absent { color: var(--driving-danger); }
button.office-driving-cell:hover { filter: brightness(.98); }
.office-driving-slot-panel {
 flex: 0 1 280px; min-width: 240px; display: flex; flex-direction: column; gap: 10px;
 padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff;
}
.office-driving :is(.office-driving-slot-panel, .office-driving-note)[hidden] { display: none; }
.office-driving-slot-panel h2 { margin: 0; font: 800 20px/1.2 Manrope, sans-serif; }
.office-driving-slot-panel h2:focus { outline: none; }
.office-driving-slot-caption, .office-driving-assignment { font-size: 13px; color: var(--muted); }
.office-driving-slot-actions, .office-driving-student-options, .office-driving-student-results { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; }
.office-driving-student-options > label { display: grid; gap: 4px; color: var(--muted); font-size: 13px; }
.office-driving-student-options input[type="search"] { min-width: 0; width: 100%; }
.office-driving-slot-panel button {
 min-height: 44px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 12px;
 background: #fff; color: var(--ink); text-align: left; font-weight: 600;
}
.office-driving-slot-panel button:hover { background: #f6f5f1; }
.office-driving-slot-panel .danger { color: var(--driving-danger); border-color: #e2a094; }
.office-driving-slot-panel .office-driving-assignment-button { font-weight: 400; }
.office-driving-assignment-button span { font-size: 13px; }
.office-driving-assignment-row { display: grid; grid-template-columns: minmax(0,1fr) 44px; }
.office-driving-slot-panel .office-driving-assignment-row > .office-driving-assignment-button {
 border-radius: 12px 0 0 12px; overflow-wrap: anywhere;
}
.office-driving-slot-panel .office-driving-student-card {
 display: grid; place-items: center; padding: 0; border-inline-start: 0; border-radius: 0 12px 12px 0;
 background: var(--accent); font-size: 20px;
}
.office-driving-slot-panel .office-driving-student-card:hover { background: var(--accent-hover); }
.office-driving-assignment-row > button:focus-visible { outline-offset: -3px; }
.office-driving-assignment { margin-top: 6px; }
.office-driving-note, .office-driving-other-students { display: grid; gap: 6px; }
.office-driving-note textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; resize: vertical; }
.office-driving-other-students button { width: 100%; margin-top: 6px; }
.office-driving-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; }
.office-driving-legend, .office-driving-hint, .office-driving-archive > header div { color: var(--muted); font-size: 13px; }
.office-driving-legend span { display: flex; align-items: center; gap: 6px; }
.office-driving-legend i { width: 14px; height: 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.office-driving-legend .absent { border-color: var(--driving-danger); }
.office-driving-hint { max-width: 70ch; }
.office-driving-month-report #admin-calendar {
 grid-template-columns: repeat(7,minmax(144px,1fr)); overflow-x: auto;
}
.office-driving-month-report .driving-day {
 display: grid; align-content: start; gap: 6px; padding: 12px; border-radius: 16px;
}
.office-driving-month-report .driving-shift {
 min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff;
}
.office-driving-month-report .driving-booking-line > span:first-child { overflow-wrap: anywhere; }
.office-driving-month-report .driving-shift.open-slot { border-color: var(--driving-free); background: var(--driving-free); }
.office-driving-month-report .driving-shift.booked-slot { background: var(--driving-booked); }
.office-driving-month-report .driving-shift.closed-slot { border-style: dashed; color: var(--muted); }
@media (max-width: 980px) {
 .office-driving-month-report #admin-calendar { grid-template-columns: repeat(auto-fit,minmax(min(290px,100%),1fr)); }
 .office-driving-month-report .driving-day { grid-template-columns: repeat(auto-fit,minmax(min(130px,100%),1fr)); }
}
.office-driving-archive { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.office-driving-archive > header { display: block; padding: 14px 18px; border: 0; background: #f6f5f1; }
.office-driving-archive > header strong { font-size: 16px; font-weight: 800; }
.office-driving-report-row {
 display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 8px 18px; min-height: 62px; border-top: 1px solid #e9e7e0;
}
.office-driving-report-row strong { flex: 0 0 160px; font-weight: 600; text-transform: capitalize; }
.office-driving-report-row span { flex: 1 1 200px; color: var(--muted); font-size: 14px; }
.office-driving-empty { padding: 22px; border: 1px dashed #b9b7ae; border-radius: 18px; max-width: 70ch; font-weight: 800; }

body:has(.cabinet-sidebar--mpov) { line-height: 1.45; }
body:has(.cabinet-sidebar--mpov) > main { max-width: 1120px; margin: 0 auto; padding: 30px 36px 40px; min-width: 0; }
body:has(.cabinet-sidebar--mpov) > footer { display: none; }
body:has(.cabinet-sidebar--mpov) #notice:not(:empty) { bottom: 78px; padding: 12px 18px; border-radius: 12px; color: var(--ink); background: var(--accent); font-weight: 800; text-align: center; box-shadow: 0 8px 28px rgb(23 24 26 / 25%); }
.cabinet-sidebar--mpov ~ .cabinet-heading { margin-bottom: 14px; }
.cabinet-sidebar--mpov ~ .cabinet-heading h1 { margin: 0; font-size: 23px; letter-spacing: normal; }
.mpov-pdd-tabs, .mpov-reference-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.mpov-pdd-tabs button, .mpov-reference-tabs button { min-height: 44px; padding: 0 14px; font-weight: 600; }
.mpov-pdd-tabs button[aria-current="page"], .mpov-reference-tabs button[aria-current="page"] { color: #fff; border-color: var(--ink); background: var(--ink); }
.mpov-pdd-tabs[hidden], .cabinet-sidebar--mpov ~ .cabinet-heading[hidden], .cabinet-sidebar--mpov ~ #content .student-material[hidden] { display: none; }
.mpov-hub-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 10px; }
.mpov-hub-sections button { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-height: 96px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: left; }
.mpov-hub-sections button:hover { border-color: var(--ink); }
.mpov-hub-sections strong, .mpov-pdd-menu button { font-size: 16px; font-weight: 700; line-height: 1.2; }
.mpov-hub-sections small { color: var(--muted); font-size: 13px; font-weight: 400; }
.mpov-exam-driving, .mpov-exam-day { display: grid; gap: 12px; }
.mpov-exam-driving h1 { margin: 0; font: 600 23px/1.45 var(--heading-font); letter-spacing: normal; }
.mpov-exam-day h2 { margin: 0; font-size: 18px; }
.mpov-exam-students { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); align-items: start; gap: 10px; }
.mpov-exam-students article { min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow-wrap: anywhere; }
.mpov-exam-day-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 0 16px; }
.mpov-driving-student-group { grid-column: 1 / -1; }
.mpov-driving-student-group h3 { margin: 12px 0 6px; font-size: 14px; color: #f4f3ee; }
.mpov-exam-card-toggle {
 display: flex; align-items: center; gap: clamp(5px, 1.5vw, 10px);
 width: 100%; min-height: 48px; padding: 10px 12px;
 border: 0; border-radius: 17px; background: var(--surface); color: var(--ink); text-align: left;
}
.mpov-exam-card-toggle[aria-expanded="true"] { border-radius: 17px 17px 0 0; background: var(--paper); }
.mpov-exam-card-toggle:focus-visible { outline-offset: -3px; }
.mpov-exam-card-name, .mpov-exam-card-group { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpov-exam-card-name { font-size: clamp(13px, 3.6vw, 16px); }
.mpov-exam-card-group { flex: none; max-width: min(20vw, 6rem); font-size: 13px; color: var(--muted); }
.mpov-exam-payment { flex: none; white-space: nowrap; font-size: 12px; font-weight: 700; }
.mpov-exam-card-details { padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.mpov-exam-card-details > * { margin: 0; }
.mpov-exam-card-details > * + * { margin-top: 6px; }
.mpov-work-actions { display: contents; }
.mpov-work-actions .student-work-status[data-result="passed"] { color: #1f8a4c; }
.mpov-work-actions .student-work-status[data-result="failed"] { color: #c8321f; }
.mpov-attempts-title { margin: 26px 0 10px; font: 600 18px/1.45 Manrope, sans-serif; }
.mpov-roster-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.mpov-roster-heading h1 { margin: 0; font: 600 23px/1.45 var(--heading-font); letter-spacing: normal; }
.mpov-roster-search { width: min(100%, 320px); height: 44px; padding: 0 14px; border-radius: 12px; }
.mpov-roster-results tbody th small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.mpov-roster-phone { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.mpov-roster-results :is(.roster-filters, .mpov-roster-group) { margin-bottom: 16px; }
.mpov-roster-filters button { display: flex; gap: 8px; align-items: center; height: 44px; padding: 0 14px; font-weight: 600; }
.mpov-roster-filters b { font: 600 11px var(--heading-font); opacity: .8; }
.mpov-roster-group { margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.mpov-roster-group h2 { margin: 0; padding: 14px 18px; background: #f6f5f1; border-bottom: 1px solid #e9e7e0; font-size: 16px; font-weight: 800; }
.mpov-roster-group-period { display: none; }
.mpov-roster-results thead th { text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
.mpov-roster-results :is(td, th) { padding: 10px 18px; vertical-align: middle; white-space: normal; border-color: #e9e7e0; }
.mpov-roster-results tbody tr:last-child > * { border-bottom: 0; }
.mpov-roster-results tbody th { font-weight: 600; color: var(--ink); }
.mpov-roster-results td span { display: none; }
.mpov-reference-search { margin-bottom: 16px; }
.mpov-reference-search .reference-search { width: 100%; min-height: 48px; padding-inline: 14px; border-radius: 12px; }
.mpov-reference-search #reference-results:empty { display: none; }
.mpov-reference-body { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 16px; align-items: start; }
.mpov-reference-body nav { display: grid; gap: 2px; }
.mpov-reference-body nav button { min-height: 44px; padding: 8px 12px; border: 0; border-radius: 9px; background: transparent; text-align: left; }
.mpov-reference-body nav button:hover { background: #e9e7e0; }
.mpov-reference-body nav button[aria-current="page"] { background: var(--ink); color: #fff; }
.mpov-reference-page { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow-wrap: anywhere; }
.mpov-reference-page .reference-text { margin-top: 0; }
.mpov-reference-page > p { font-size: 13px; margin-bottom: 0; }
.mpov-driving-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin-bottom: 14px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.mpov-driving-settings label { display: flex; gap: 8px; align-items: center; min-width: 0; color: var(--muted); }
.mpov-driving-settings select { width: auto; height: 44px; max-width: min(100%, 268px); min-width: 0; padding: 0 10px; border-radius: 12px; }
.mpov-driving-settings .mpov-period-control select { width: 200px; }
.mpov-driving-groups { display: grid; gap: 8px; list-style: none; margin: 0 0 14px; padding: 0; overflow-wrap: anywhere; }
.mpov-driving-group-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.mpov-driving-groups time { white-space: nowrap; }
.mpov-hub-mobile, .mpov-roster-cards, .mpov-driving-days, .mpov-driving-shift, .mpov-driving-calendar-summary { display: none; }
.mpov-driving-calendar { display: contents; }
.mpov-month-days {
 display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px;
 max-width: 640px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: #fff;
 container-type: inline-size;
}
.mpov-month-weekday { padding: 2px 0 4px; text-align: center; font-size: 12px; font-weight: 650; color: var(--muted); }
.mpov-month-weekday-short { text-decoration: none; }
.mpov-month-weekday-full { display: none; }
@container (min-width: 600px) {
 .mpov-month-weekday-full { display: inline; }
 .mpov-month-weekday-short { display: none; }
}
.mpov-month-days button { min-width: 0; min-height: 44px; padding: 0; font-weight: 700; }
.mpov-month-days button[aria-current="date"] { color: var(--accent); background: var(--ink); border-color: var(--ink); }
.mpov-driving-date { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mpov-driving-date button { min-height: 44px; }
.mpov-driving-date time { font-weight: 700; }
.mpov-driving-weekday { display: none; }
.mpov-driving-single-day .mpov-driving-calendar {
 display: grid; flex: 1 1 100%; min-width: 0; gap: 10px;
 padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff;
}
.mpov-driving-single-day .mpov-driving-calendar-summary { display: flex; flex-direction: column; }
.mpov-driving-single-day .office-driving-grid { grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); }
.mpov-driving-single-day .office-driving-grid > :is(.office-driving-day, .office-driving-row-label, div:empty) { display: none; }
.mpov-driving-single-day .mpov-driving-shift { display: block; font-size: 12px; }
.mpov-driving-single-day .office-driving-cell { flex-direction: column; gap: 2px; }
.mpov-hub-desktop time { display: block; font-size: 13px; color: var(--muted); }
.mpov-hub-desktop h1 { margin: 4px 0 20px; font: 600 23px/1.45 var(--heading-font); letter-spacing: normal; text-wrap: balance; }
.mpov-hub-dashboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 16px; align-items: start; }
.mpov-hub-dashboard > section { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.mpov-hub-dashboard h2 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.mpov-hub-dashboard header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; padding: 0; border: 0; background: none; }
.mpov-hub-dashboard header h2 { margin: 0; }
.mpov-hub-dashboard header button { min-height: 44px; padding: 0; border: 0; background: none; font-weight: 400; text-decoration: underline; }
.mpov-hub-dashboard > section > button { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 0; border: 0; border-top: 1px solid #e9e7e0; border-radius: 0; background: none; text-align: left; }
.mpov-hub-dashboard > section > button b { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 18px; background: var(--accent); font-size: 13px; }
.mpov-hub-dashboard p, .mpov-hub-shift { margin: 0; padding: 10px 0; border-top: 1px solid #e9e7e0; color: var(--muted); }
.mpov-hub-shift { display: flex; gap: 12px; }
.mpov-hub-shift span:first-child { flex: 0 0 72px; }
.mpov-hub-shift strong { color: var(--ink); font-weight: 700; }
.mpov-hub-shift .absent { color: var(--driving-danger); }

@media (min-width: 760px) {
 .cabinet-sidebar--mpov ~ #content .student-work h3 { margin: 0; font-size: 15px; font-weight: 600; }
 .cabinet-sidebar--mpov ~ #content .student-work-details > p { font-size: 13px; }
 .mpov-work-actions .student-work-status { padding: 4px 10px; border-radius: 12px; background: #e9e7e0; font-size: 13px; }
 .mpov-work-actions .student-work-status[data-result="passed"] { background: #e1f2e7; }
 .mpov-work-actions .student-work-status[data-result="failed"] { background: #fbe3de; }
 .mpov-work-actions button { height: 44px; padding: 0 16px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; }
 .mpov-work-actions button:hover { background: #f6f5f1; }
 body:has(.cabinet-sidebar--mpov) { --sidebar-width: 228px; padding-left: var(--sidebar-width); }
 body:has(.cabinet-sidebar--mpov) .platform-header { display: contents; }
 body:has(.cabinet-sidebar--mpov) .platform-header :is(.brand, .header-home, .header-refresh, .profile-toggle, #header-section-title) { display: none; }
 .cabinet-sidebar--mpov {
  position: fixed; inset: 0 auto 0 0; z-index: 5; width: var(--sidebar-width); display: flex; flex-direction: column;
  gap: 0; padding: 18px 12px 128px; background: var(--ink); color: #f4f3ee;
 }
 .cabinet-sidebar--mpov .sidebar-brand { display: block; padding: 0; margin: 0 0 14px 8px; width: fit-content; }
 .cabinet-sidebar--mpov .sidebar-brand span { display: none; }
 .cabinet-sidebar--mpov .sidebar-brand img { display: block; width: 64px; height: 64px; border-radius: 18px; background: #fff; }
 .cabinet-sidebar--mpov nav { display: grid; align-content: start; gap: 4px; overflow-y: auto; }
 .cabinet-sidebar--mpov nav button { height: 42px; min-height: 42px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: inherit; text-align: left; font-weight: 600; }
 .cabinet-sidebar--mpov nav button:hover { background: var(--graphite); }
 .cabinet-sidebar--mpov nav button[aria-current="page"] { color: var(--ink); background: var(--accent); }
 body:has(.cabinet-sidebar--mpov) #account { position: fixed; z-index: 6; inset: auto auto 18px 12px; width: 204px; margin: 0; color: #f4f3ee; }
 body:has(.cabinet-sidebar--mpov) #account-panel { position: static; display: grid; justify-items: start; gap: 0; width: 100%; padding: 12px 8px 0; border: 0; border-top: 1px solid var(--dark-line); border-radius: 0; background: none; box-shadow: none; }
 body:has(.cabinet-sidebar--mpov) #account-panel strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
 body:has(.cabinet-sidebar--mpov) #account-panel small { color: #b5b6b1; }
 body:has(.cabinet-sidebar--mpov) #logout { min-height: 44px; margin-top: 8px; padding: 0 14px; }
 body:has(.cabinet-sidebar--mpov) .mpov-reference-search { display: flex; flex-direction: column; }
 body:has(.cabinet-sidebar--mpov) .mpov-reference-search .mpov-reference-tabs { order: -1; }
}

@media (max-width: 759px) {
 body:has(.cabinet-sidebar--mpov) > main { margin: 0 auto; padding: 14px 12px 28px; }
 body:has(.cabinet-sidebar--mpov) #notice:not(:empty) { bottom: 84px; font-weight: 700; }
 body:has(.cabinet-sidebar--mpov) .platform-header { position: sticky; top: 0; z-index: 5; height: 60px; min-height: 60px; padding: 0 14px; gap: 10px; border: 0; background: var(--ink); color: #f4f3ee; }
 body:has(.cabinet-sidebar--mpov) .platform-header .brand img { width: 44px; height: 44px; border-radius: 12px; background: #fff; }
 body:has(.cabinet-sidebar--mpov) #header-section-title { display: block; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 14px/1.2 var(--heading-font); }
 body:has(.cabinet-sidebar--mpov) .header-refresh { order: 2; width: 44px; min-height: 44px; padding: 0; border-color: var(--dark-line); color: #f4f3ee; background: var(--graphite); }
 body:has(.cabinet-sidebar--mpov) #account { order: 3; margin-left: 0; }
 body:has(.cabinet-sidebar--mpov) #account .profile-toggle { display: flex; align-items: center; gap: 10px; width: auto; height: 44px; padding: 0 6px 0 14px; background: var(--graphite); color: #f4f3ee; border: 1px solid var(--dark-line); border-radius: 22px; }
 body:has(.cabinet-sidebar--mpov) .profile-toggle span { font-size: 13px; font-weight: 400; }
 body:has(.cabinet-sidebar--mpov) .profile-toggle b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 800; }
 body:has(.cabinet-sidebar--mpov) #account-panel { top: calc(100% + 14px); right: 0; min-width: 220px; padding: 14px; gap: 8px; border: 0; border-radius: 14px; box-shadow: 0 12px 40px rgb(23 24 26 / 25%); }
 body:has(.cabinet-sidebar--mpov) #account-panel small { font-size: 13px; }
 body:has(.cabinet-sidebar--mpov) #logout { width: 100%; border-radius: 10px; font-weight: 600; }
 body:has(.cabinet-sidebar--mpov) .cabinet-heading, .mpov-pdd-tabs,
 .mpov-hub-desktop, .mpov-roster-heading h1, .mpov-roster-group table,
 .mpov-driving :is(.mpov-schedule-name, .mpov-period-control, .office-driving-legend),
 .cabinet-sidebar--mpov ~ #content .student-work-title-prefix { display: none; }
 .mpov-roster-heading:empty { display: none; }
 .mpov-driving .office-driving-heading h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
 .mpov-driving .office-driving-heading:has([data-week-offset]) { margin-bottom: 0; }
 .mpov-driving .office-driving-week-nav:has([data-week-offset]) { display: none; }
 .mpov-driving-month .office-driving-week-nav { width: 100%; justify-content: space-between; }
 .mpov-driving-weekday { display: inline; }
 .mpov-hub-mobile { display: block; }
 .mpov-hub-hero { padding: 18px; border-radius: 22px; background: var(--ink); color: #f4f3ee; }
 .mpov-hub-hero time, .mpov-hub-stages :is(button > span, small) { color: #b5b6b1; font-size: 13px; }
 .mpov-hub-hero time { display: block; }
 .mpov-hub-hero h1 { margin: 6px 0 22px; font: 600 22px/1.15 var(--heading-font); letter-spacing: normal; text-wrap: balance; }
 .mpov-hub-error { margin: 12px 0 0; color: #b5b6b1; font-size: 13px; }
 .mpov-hub-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 10px; }
 .mpov-hub-stages button { display: flex; flex-direction: column; gap: 6px; min-height: 132px; padding: 16px; border: 1px solid var(--dark-line); border-radius: 16px; background: var(--graphite); color: #f4f3ee; text-align: left; }
 .mpov-hub-stages button:hover { border-color: var(--accent); }
 .mpov-hub-stages button > span { display: flex; align-items: center; gap: 8px; font-weight: 400; }
 .mpov-hub-stages button > span b { color: var(--accent); font: 600 11px var(--heading-font); }
 .mpov-hub-stages strong { font: 600 26px/1.1 var(--heading-font); }
 .mpov-hub-stages small { font-weight: 400; }
 .mpov-hub-stages progress, .mpov-roster-progress progress { appearance: none; display: block; width: 100%; height: 6px; border: 0; border-radius: 3px; overflow: hidden; }
 .mpov-hub-stages progress { margin-top: auto; background: var(--dark-line); }
 .mpov-hub-stages progress::-webkit-progress-bar { background: var(--dark-line); }
 .mpov-hub-stages progress::-webkit-progress-value { border-radius: 3px; background: var(--accent); }
 .mpov-hub-stages progress::-moz-progress-bar { border-radius: 3px; background: var(--accent); }
 .mpov-hub-label { margin: 26px 0 10px; font: 400 13px/1.45 var(--heading-font); letter-spacing: .06em; text-transform: uppercase; }
 .mpov-hub-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; }
 .mpov-hub-steps article { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
 .mpov-hub-steps h3 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.25; text-wrap: balance; }
 .mpov-hub-steps p { margin: 0; color: var(--muted); }
 .mpov-hub-steps button { align-self: flex-start; height: 46px; margin-top: 10px; padding: 0 18px; border: 0; border-radius: 12px; font-weight: 700; }
 .mpov-roster-heading { margin-bottom: 14px; }
 .mpov-roster-search { width: 100%; height: 48px; font-size: 16px; }
 .mpov-roster-filters [data-all-groups] { order: 1; }
 .mpov-roster-filters button { font-size: 15px; }
 .mpov-roster-group { margin-bottom: 12px; overflow: visible; border: 0; border-radius: 0; background: none; }
 .mpov-roster-group h2 { margin: 0 0 6px; padding: 0; background: none; border: 0; }
 .mpov-roster-group-period { display: block; margin: 0 0 8px; color: var(--muted); font-size: 13px; }
 .mpov-roster-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 12px; }
 .mpov-roster-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
 .mpov-roster-card h3 { margin: 0; font: 700 16px/1.25 Manrope, sans-serif; }
 .mpov-roster-card :is(small, p) { margin: 0; color: var(--muted); font-size: 13px; }
 .mpov-roster-progress { display: grid; grid-template-columns: 76px minmax(0, 1fr) 52px; align-items: center; gap: 10px; font-size: 13px; }
 .mpov-roster-progress span { color: var(--muted); }
 .mpov-roster-progress strong { text-align: right; font-weight: 700; }
 .mpov-roster-progress progress, .mpov-roster-progress progress::-webkit-progress-bar { background: #e4e2da; }
 .mpov-roster-progress progress::-webkit-progress-value { border-radius: 3px; background: var(--ink); }
 .mpov-roster-progress progress::-moz-progress-bar { border-radius: 3px; background: var(--ink); }
 .mpov-driving-settings { margin-bottom: 12px; padding: 0; border: 0; background: none; }
 .mpov-driving-settings:not(:has([data-vehicle-choice], small)) { display: none; }
 .mpov-driving-settings label:not(.mpov-period-control) { width: 100%; gap: 10px; font-size: 13px; }
 .mpov-driving-settings select { flex: 1; height: 48px; max-width: 360px; border-radius: 12px; background: #fff; font-size: 16px; }
 .mpov-driving-days { position: relative; display: grid; grid-template-columns: repeat(7,minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; touch-action: pan-y; }
 .mpov-driving-days button { min-width: 0; height: 64px; padding: 0; display: grid; place-content: center; border-radius: 14px; font-size: 12px; font-weight: 400; }
 .mpov-driving-days strong { font: 600 17px/1.45 var(--heading-font); }
 .mpov-driving-days button[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
 .mpov-driving-days button[aria-current="date"] { border-color: var(--ink); }
 .mpov-driving-days button[aria-pressed="true"][aria-current="date"] { color: var(--accent); }
 .mpov-driving .office-driving-board { gap: 12px; }
 .mpov-driving-calendar { display: grid; flex: 1 1 100%; min-width: 0; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
 .mpov-driving-calendar-summary { display: flex; flex-direction: column; }
 .mpov-driving-calendar-summary strong { font-weight: 800; }
 .mpov-driving-calendar-summary small { color: var(--muted); font-size: 13px; }
 .mpov-driving .office-driving-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .mpov-driving .office-driving-grid > :is([data-other-day], .office-driving-day, .office-driving-row-label, div:empty) { display: none; }
 .mpov-driving .office-driving-cell { min-height: 60px; height: auto; flex-direction: column; gap: 0; align-items: flex-start; padding: 6px 8px; text-align: left; font-size: 13.5px; }
 .mpov-driving .office-driving-cell::before { content: none; }
 .mpov-driving .office-driving-cell span { max-width: 100%; }
 .mpov-driving .office-driving-cell.closed { border-color: #b9b7ae; }
 .mpov-driving .office-driving-cell.free { font-weight: 600; }
 .mpov-driving .office-driving-cell:is(.booked, .absent) { font-weight: 800; }
 .mpov-driving-shift { display: block; color: var(--muted); font-size: 11.5px; font-weight: 400; }
 .mpov-driving .office-driving-slot-panel { flex: 1 1 100%; min-width: 0; background: var(--ink); border-color: var(--ink); color: #f4f3ee; }
 .mpov-driving .office-driving-slot-actions { display: flex; flex-wrap: wrap; gap: 8px; }
 .mpov-driving .office-driving-slot-actions button { min-height: 46px; padding-inline: 16px; font-weight: 700; }
 .mpov-driving .office-driving-slot-panel button { color: #f4f3ee; background: var(--graphite); border-color: var(--dark-line); }
 .mpov-driving .office-driving-slot-panel button:hover { border-color: var(--accent); }
 .mpov-driving .office-driving-slot-panel .office-driving-open-shift { color: var(--ink); background: var(--accent); border-color: var(--accent); }
 .mpov-driving .office-driving-note { flex: 1 1 100%; }
 .mpov-driving .office-driving-slot-panel :is(.office-driving-slot-caption, .office-driving-assignment, .office-driving-assignment-button span, small) { color: #b5b6b1; }
 .mpov-driving .office-driving-assignment-button { background: var(--graphite); color: #f4f3ee; border-color: var(--dark-line); }
 .mpov-driving .office-driving-assignment-button:hover { background: var(--dark-line); }
 .mpov-driving .office-driving-student-options { display: flex; flex-wrap: wrap; align-items: center; }
 .mpov-driving .office-driving-student-results { display: contents; }
 body:has(.cabinet-sidebar--mpov) .mpov-reference-search { padding: 18px; margin-bottom: 12px; background: var(--ink); border-radius: 22px; }
 body:has(.cabinet-sidebar--mpov) .mpov-reference-search .reference-search { display: block; height: 56px; margin: 0; padding: 0 18px; border: 0; border-radius: 14px; font-size: 17px; }
 body:has(.cabinet-sidebar--mpov) .mpov-reference-search #reference-results { color: #f4f3ee; }
 body:has(.cabinet-sidebar--mpov) .mpov-reference-tabs { margin: 12px 0 0; }
 body:has(.cabinet-sidebar--mpov) .mpov-reference-tabs button { flex: 0 1 auto; padding: 0 16px; background: var(--graphite); color: #f4f3ee; border-color: var(--dark-line); font-size: 15px; font-weight: 700; }
 body:has(.cabinet-sidebar--mpov) .mpov-reference-tabs button[aria-current="page"] { color: var(--ink); background: var(--accent); border-color: var(--accent); }
 body:has(.cabinet-sidebar--mpov) .mpov-reference-body { grid-template-columns: minmax(0, 1fr); gap: 12px; }
 body:has(.cabinet-sidebar--mpov) .mpov-reference-body nav { display: grid; gap: 6px; max-height: 210px; overflow-y: auto; }
 body:has(.cabinet-sidebar--mpov) .mpov-reference-body nav button { min-height: 48px; padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; }
 body:has(.cabinet-sidebar--mpov) .mpov-reference-body nav button[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
 body:has(.cabinet-sidebar--mpov) .mpov-reference-page { font-size: 16px; line-height: 1.6; }
 body:has(.cabinet-sidebar--mpov) .mpov-reference-page h2 { margin: 0 0 12px; font: 600 18px/1.45 var(--heading-font); }
 .cabinet-sidebar--mpov ~ #content .student-training-modes { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
 body:has(.cabinet-sidebar--mpov) .student-training-modes button[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
 body:has(.cabinet-sidebar--mpov) .student-training-modes button[aria-pressed="true"] small { color: #b5b6b1; }
 .cabinet-sidebar--mpov ~ #content .student-work-list { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px; align-items: start; }
 .cabinet-sidebar--mpov ~ #content .student-work,
 .cabinet-sidebar--mpov ~ #content .student-work-details { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
 .cabinet-sidebar--mpov ~ #content .student-work { padding: 18px; }
 .cabinet-sidebar--mpov ~ #content .student-work-kind { display: block; align-self: flex-start; padding: 4px 8px; border-radius: 6px; color: #fff; background: var(--ink); font: 500 11px/1.45 var(--heading-font); letter-spacing: .06em; text-transform: uppercase; }
 .cabinet-sidebar--mpov ~ #content .student-work h3 { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.2; text-wrap: balance; }
 .cabinet-sidebar--mpov ~ #content .student-work .muted { font-size: 13px; color: var(--muted); }
 .mpov-work-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
 .mpov-work-actions button { height: 46px; padding: 0 16px; border: 0; font-weight: 700; }
 .mpov-work-actions button:not(.primary) { background: var(--ink); color: #fff; }
 .mpov-work-actions .student-work-status { font-weight: 700; }
 .cabinet-sidebar--mpov ~ #content .student-work-list > p { border-style: dashed; border-color: #b9b7ae; background: none; }
 .mpov-attempts-title { font: 400 13px/1.45 var(--heading-font); letter-spacing: .06em; text-transform: uppercase; }
 .mpov-attempts-title + .student-history .student-history-row { position: relative; min-height: 56px; padding: 12px 16px; gap: 4px 16px; }
 .mpov-attempts-title + .student-history .student-history-row > .badge { padding: 0; background: none; font-size: 14px; }
 .mpov-attempts-title + .student-history .student-history-row > button { position: absolute; inset: 0; opacity: 0; }
 .mpov-attempts-title + .student-history .student-history-row:focus-within { outline: 2px solid var(--ink); outline-offset: -2px; }
}

.mpov-driving :is(.mpov-month-days button, .mpov-driving-days button, .office-driving-day).has-driving-shifts {
 color: var(--ink); background: var(--paper); border-color: var(--line);
}
.mpov-driving .has-driving-shifts[aria-current="date"]:not([aria-pressed="true"]) {
 box-shadow: inset 0 0 0 1px var(--ink);
}
.mpov-driving :is(.mpov-month-weekday, .mpov-month-days button, .mpov-driving-date time, .mpov-driving-days button, .office-driving-day).mpov-driving-rest-day {
 color: #800020;
}
.mpov-driving .mpov-driving-rest-day:is([aria-current="date"], [aria-pressed="true"]):not(.has-driving-shifts, .has-driving-exams, .has-shared-driving-exams) {
 background: #f7e7ec; border-color: var(--ink);
}
.mpov-driving .mpov-driving-days button[aria-pressed="true"] {
 outline: 4px solid var(--ink); outline-offset: 0;
}
:is(.mpov-driving, .teacher-mobile-driving) .mpov-driving-slot-dialog {
 position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
 margin: 0; padding: clamp(16px, 4vw, 36px); border: 0; border-radius: 0;
 overflow: auto; overscroll-behavior: contain; background: var(--ink); color: #f4f3ee;
}
:is(.mpov-driving, .teacher-mobile-driving) .mpov-driving-slot-dialog:not([open]) { display: none; }
:is(.mpov-driving, .teacher-mobile-driving) .mpov-driving-slot-dialog > * { width: 100%; max-width: 740px; margin-inline: auto; }
.mpov-driving-slot-header {
 display: flex; align-items: center; justify-content: space-between; gap: 12px;
 padding: 0 0 12px; border: 0; border-bottom: 1px solid var(--dark-line); background: none;
}
.mpov-driving .mpov-driving-slot-dialog .mpov-driving-slot-header .office-driving-slot-caption {
 color: var(--accent); font-size: clamp(17px, 4vw, 22px); font-weight: 800; line-height: 1.3;
}
.mpov-driving-slot-close { flex: none; }
.mpov-driving .mpov-driving-slot-dialog .office-driving-slot-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mpov-driving .mpov-driving-slot-dialog .office-driving-note { flex: 1 1 100%; }
:is(.mpov-driving, .teacher-mobile-driving) .mpov-driving-slot-dialog button { background: var(--graphite); border-color: var(--dark-line); color: #f4f3ee; }
:is(.mpov-driving, .teacher-mobile-driving) .mpov-driving-slot-dialog button:hover { border-color: var(--accent); }
:is(.mpov-driving, .teacher-mobile-driving) .mpov-driving-slot-dialog .office-driving-open-shift { background: var(--accent); border-color: var(--accent); color: var(--ink); }
:is(.mpov-driving, .teacher-mobile-driving) .mpov-driving-slot-dialog .danger { color: #ffb6a8; }
:is(.mpov-driving, .teacher-mobile-driving) .mpov-driving-slot-dialog .office-driving-student-options { display: block; }
.mpov-driving .mpov-driving-slot-dialog .office-driving-student-results {
 display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
}
.mpov-driving-slot-dialog .office-driving-assignment-button { min-width: 0; overflow-wrap: anywhere; }
.mpov-driving-slot-dialog .office-driving-student-results > small { grid-column: 1 / -1; }
:is(.mpov-driving, .teacher-mobile-driving) .mpov-driving-slot-dialog :is(.office-driving-assignment, .office-driving-assignment-button span, small) { color: #b5b6b1; }
.mpov-driving-slot-notice { margin-block: 0; color: var(--accent); }
.mpov-driving-slot-notice:empty { display: none; }
.driving-note-confirmation { white-space: pre-wrap; overflow-wrap: anywhere; }
.mpov-driving-summary-text { display: flex; flex-direction: column; min-width: 0; }
.mpov-driving .mpov-driving-calendar-summary:has(.mpov-driving-availability-notice:not(:empty)) {
 display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 152px); align-items: center; gap: 8px;
 flex: 1 1 100%;
}
.mpov-driving-availability-notice {
 margin: 0; padding: 7px 9px; border-radius: 9px; background: #fff4cb;
 color: var(--ink); font-size: 12px; font-weight: 650; line-height: 1.25;
}
.mpov-driving-availability-notice:empty { display: none; }
.office-driving .office-driving-rest-day { color: #800020; }
.office-driving .office-driving-rest-day[aria-current="date"],
.office-driving .mpov-driving-days button.office-driving-rest-day[aria-pressed="true"] {
 background: #f7e7ec; color: #800020;
}

@media (max-width: 600px) {
 .mpov-pdd-tabs button, .mpov-reference-tabs button { flex: 1 1 auto; padding-inline: 8px; font-size: 13px; }
 .mpov-reference-body { grid-template-columns: minmax(0,1fr); }
 .mpov-reference-body nav { max-height: 218px; overflow-y: auto; }
 .mpov-reference-body nav button { background: #fff; border: 1px solid var(--line); }
 .mpov-reference-search { padding: 12px; background: var(--ink); border-radius: 18px; }
 .mpov-reference-search .reference-search { margin: 0; }
}

.teacher-staff { line-height: 1.45; }
.teacher-staff h1 { margin: 0 0 14px; font: 600 23px/1.45 var(--heading-font); letter-spacing: normal; }
.teacher-staff-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.teacher-staff-tabs button { height: 44px; padding: 0 14px; font-weight: 600; }
.teacher-staff-tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.teacher-staff-grid {
 display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: start;
}
.teacher-staff-card {
 min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff;
 display: grid; gap: 12px; overflow-wrap: anywhere;
}
.teacher-staff-card h2 { margin: 0; font-size: 18px; font-weight: 800; }
.teacher-staff-mpov-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 12px; }
.teacher-staff-card .assignment-field { margin: 0; }
.teacher-staff-card :is(button, summary) { min-height: 44px; padding: 0 16px; font-weight: 600; }
.teacher-staff-card summary {
 display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
 border-radius: 12px; border: 1px solid var(--line); cursor: pointer;
}
.teacher-staff-card summary:hover { background: #f2f0e9; }
.teacher-staff-card .danger { color: #c8321f; border-color: #e2a094; }
.teacher-staff-card :is(.mpov-form, .student-create) { display: grid; gap: 12px 16px; max-width: none; margin: 0; }
.teacher-staff-card [data-employee-profile] {
 grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
 margin-top: 12px; padding-top: 14px; border-top: 1px solid #e9e7e0;
}
.teacher-staff-card [data-employee-profile] :is(small, button) { grid-column: 1 / -1; }
.teacher-staff-card [data-employee-profile] small { order: 1; }
.teacher-staff-card [data-employee-profile] button { order: 2; }
.teacher-staff-card form label { display: grid; min-width: 0; gap: 6px; color: var(--muted); font-size: 13px; }
.teacher-staff-card form input { width: 100%; min-width: 0; height: 44px; padding: 0 12px; border-radius: 12px; font-size: 15px; }
.teacher-staff-card form p { margin: 0; }
.teacher-staff-card form p:empty { display: none; }
.teacher-staff-card form button { justify-self: start; margin: 0; }
.teacher-staff-card .mpov-shift-times { margin-top: 14px; }
.mpov-shift-times > summary { list-style: none; }
.teacher-staff-card .mpov-shift-times form { margin-top: 12px; }
.mpov-shift-time-fields { display: grid; grid-template-columns: minmax(68px, 1fr) repeat(2, minmax(0, 1fr)); gap: 8px; align-items: end; }
.mpov-shift-time-fields > strong { align-self: center; font-size: 13px; }
.teacher-staff-card .mpov-shift-time-fields input { padding-inline: 6px; }
.teacher-staff-card :is(.primary, [data-employee-profile] button) { padding-inline: 18px; border-color: transparent; background: var(--accent); color: var(--ink); font-weight: 800; }
.teacher-staff-card :is(.primary, [data-employee-profile] button):hover { background: var(--accent-hover); }
.teacher-staff-create { border: 0; background: var(--ink); color: #f4f3ee; }
.teacher-staff-create h2 { font: 600 18px/1.45 var(--heading-font); }
.teacher-staff-create form label { color: #b5b6b1; }
.teacher-staff-create form input { background: var(--graphite); border-color: var(--dark-line); color: #f4f3ee; }
.teacher-staff-create :focus-visible { outline-color: var(--accent); }
.office-exams { display: grid; grid-template-areas: "dates"; gap: 16px; align-items: start; }
.office-exams--teacher { grid-template-areas: "form" "dates"; }
.exam-form-panel { grid-area: form; }
.exam-dates-panel { grid-area: dates; }
.office-exams p { margin: 0; }
.exam-form-toggle { width: 100%; text-align: left; }
.exam-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; align-items: end; }
.exam-fields > [type="submit"] { grid-column: 1 / -1; }
.exam-fields[hidden], .exam-record-panel[hidden] { display: none; }
.exam-date-list { display: grid; gap: 8px; }
.exam-date-list > button { padding-block: 8px; text-align: left; overflow-wrap: anywhere; }
.exam-date-list > button small { display: block; }
.exam-date-list > button[aria-expanded="true"] { color: var(--surface); background: var(--ink); border-color: var(--ink); }
.exam-date-list > button[aria-expanded="true"] small { color: #e9e7e0; }
.exam-past > summary { width: 100%; }
.exam-past-body { display: grid; gap: 12px; margin-top: 8px; }
.exam-past-body > .exam-date-list:empty { display: none; }
.exam-record-panel { padding: 12px; }
.exam-record-panel .exam-fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); }
.exam-record-panel h3 { margin: 0; }
.exam-record-panel p { overflow-wrap: anywhere; }
.exam-record-heading { display: flex; flex-wrap: wrap; align-items: center; min-width: 0; gap: 12px; white-space: nowrap; }
.exam-record-heading h2, .exam-record-count { flex: none; }
.exam-record-group { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.exam-record-heading .exam-edit-toggle { flex: none; margin-inline-start: auto; }
.exam-participant-list { margin: 0; padding: 0; list-style: none; }
.exam-participant-list li { display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 8px 0; padding-inline-end: 8px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.exam-participant-list .exam-participant-open { display: flex; align-items: baseline; gap: 8px; flex: 1 1 140px; min-width: 0; padding: 8px; border: 0; background: transparent; text-align: left; }
.exam-participant-number { min-width: 2ch; color: var(--muted); font-variant-numeric: tabular-nums; }
.exam-participant-info { display: grid; min-width: 0; gap: 3px; }
.exam-participant-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 13px; }
.exam-participant-list .exam-participant-date-mismatch { background: #fff5cc; border-radius: 10px; }
.exam-add-student { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; }
.exam-edit-toggle { justify-self: start; }
.exam-student-search { min-height: 44px; width: 100%; min-width: 0; }
.exam-student-matches { display: grid; grid-column: 1 / -1; gap: 8px; }
.exam-student-matches:empty { display: none; }
.exam-student-matches button { padding-block: 8px; text-align: left; }
.exam-student-matches small { display: block; }
@media (min-width: 760px) {
 .office-exams--teacher { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); grid-template-areas: "dates form"; }
 .office-exams--teacher:has(.exam-record-panel:not([hidden])) {
  grid-template-columns: minmax(min(50%, 420px), 1fr) minmax(0, 2fr);
 }
}
@media (max-width: 759px) {
 .exam-fields { column-gap: 6px; }
 .exam-fields input { padding-inline: 5px; font-size: 14px; }
 .exam-record-heading { gap: 6px; font-size: 13px; }
 .exam-record-heading h2 { font-size: 14px; }
 .exam-record-heading .exam-edit-toggle { padding-inline: 8px; font-size: 13px; }
}
@media (max-width: 420px) {
 .exam-record-group-prefix { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
.teacher-staff-empty { margin: 0; padding: 22px; border: 1px dashed #b9b7ae; border-radius: 18px; font-size: 17px; font-weight: 800; }
.teacher-staff-person-row { position: relative; padding-top: 12px; border-top: 1px solid #e9e7e0; }
.teacher-staff-person-summary {
 min-height: 44px; padding-right: 112px; display: flex; flex-wrap: wrap; gap: 4px 16px; align-content: center;
}
.teacher-staff-person-summary strong { flex: 1 1 140px; font-weight: 600; }
.teacher-staff-person-summary span { color: var(--muted); }
.teacher-staff-edit { position: absolute; right: 0; top: 12px; }
.teacher-staff-editor:not([hidden]) { display: grid; gap: 12px; margin-top: 12px; }
.attempt-answer-toggle { min-height: 44px; padding: 0; border: 0; background: none; font-weight: 700; text-decoration: underline; }
.attempt-answer-toggle:hover { background: none; }
.attempt-answer-details:not([hidden]) { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: var(--paper); }
.attempt-answer-details .explanation { padding: 0; background: none; }
.teacher-staff-cars { display: flex; gap: 16px; align-items: flex-start; }
.teacher-staff-car-list { flex: 2 1 420px; min-width: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.teacher-staff-cars .teacher-staff-create { flex: 1 1 280px; }
.teacher-staff-cars .car-fields-row { display: contents; }
.teacher-staff-car-list table { table-layout: fixed; font-size: 15px; }
.teacher-staff-car-list :is(th, td) { padding: 10px 8px; border: 0; overflow-wrap: anywhere; vertical-align: middle; }
.teacher-staff-car-list :is(th, td):first-child { padding-left: 18px; }
.teacher-staff-car-list :is(th, td):last-child { padding-right: 18px; }
.teacher-staff-car-list th { background: #f6f5f1; text-transform: uppercase; font-size: 12px; letter-spacing: .04em; font-weight: 400; white-space: normal; }
.teacher-staff-car-list td { height: 56px; border-top: 1px solid #e9e7e0; }
.teacher-staff-car-list td:last-child { font-size: 13px; color: var(--muted); }
.teacher-staff-car-list tr:has([data-open-car]) { cursor: pointer; }
.teacher-staff-car-list tr:is(:hover, :focus-within, :has([aria-pressed="true"])):has([data-open-car]) { background: #f6f5f1; }
.teacher-staff-car-list [data-open-car] { padding: 0; border: 0; background: none; text-align: left; font-weight: 600; }
.teacher-staff .teacher-profile-settings { display: grid; gap: 16px; max-width: 680px; }
.teacher-staff .teacher-profile-settings h2 { font-size: 20px; }
.teacher-staff #teacher-profile { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.teacher-staff #teacher-profile :is(label:has([name="currentPassword"]), small, button) { grid-column: 1 / -1; }
.teacher-recovery-settings > p { color: var(--muted); }
#teacher-recovery-code output:not(:empty) {
 display: block; justify-self: start; margin-top: 8px; padding: 8px 14px;
 border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #f6f5f1;
 font-size: 22px; font-weight: 800; letter-spacing: .18em;
}

.student-section-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.student-section-tabs[hidden], .cabinet-sidebar--student ~ .cabinet-heading[hidden] { display: none; }
.student-section-tabs button { min-height: 44px; padding: 0 14px; font-weight: 600; }
.student-section-tabs [aria-current="page"] { color: #fff; border-color: var(--ink); background: var(--ink); }
.student-reference-head { margin: 0 0 16px; }
.student-reference-head .reference-search { width: 100%; min-height: 48px; margin: 0; padding-inline: 14px; border-radius: 12px; }
.student-materials { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.student-material {
 display: grid; grid-template-rows: auto 1fr; overflow: hidden; min-width: 0;
 border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); text-decoration: none;
}
.student-material:hover { border-color: var(--ink); }
.student-material img { display: block; width: 100%; height: 150px; object-fit: cover; background: #e9e7e0; }
.student-material > div { display: grid; align-content: start; gap: 4px; padding: 14px 16px; }
.student-material strong { font-weight: 800; }
.student-material .muted { font-size: 13px; }
.intersection-materials-title { margin: 0 0 12px; }
@media (min-width: 760px) {
 .student-materials { gap: 16px; }
 .student-material strong { font-weight: 600; }
 .student-material .muted { display: none; }
}
body:has(.cabinet-sidebar--student) > footer { display: none; }
.cabinet-sidebar--student ~ .cabinet-heading { margin-bottom: 14px; }
.cabinet-sidebar--student ~ .cabinet-heading h1, .student-driving h1, .student-today h1 { margin: 0; font-size: 23px; letter-spacing: normal; }
.student-today-date { margin: 0 0 4px; color: var(--muted); font-size: 13px; text-transform: capitalize; }
.student-today { --student-hero-text: #f4f3ee; }
.student-today h1 { margin: 0 0 20px; }
.student-today h1 span:last-child { display: none; }
.student-today-mobile, .student-today-stages, .student-driving-mobile, .student-quota, .student-quota-legend { display: none; }
.student-today .student-path-scene {
 --impact-time: 1.15s;
 display: block; position: relative; isolation: isolate; overflow: hidden;
 width: min(100%, 440px); height: 83px; padding: 0; margin-bottom: 16px;
 border: 1px solid #4d5054; border-radius: 14px; background: var(--ink); color: #fff;
}
.student-today .student-path-scene:hover { border-color: var(--accent); background: var(--ink); }
.student-path-road {
 position: absolute; inset: 13px 0; border-block: 1px solid #4d5054; background: var(--graphite);
}
.student-path-road::before {
 content: ""; position: absolute; inset: 50% 0 auto; border-top: 1px dashed #636366;
}
.student-path-car {
 position: absolute; top: 50%; left: var(--car-stop); z-index: 2; width: 24px; height: 42px;
 transform: translate(-50%, -50%) rotate(var(--road-heading)); object-fit: contain;
}
.student-path-car--right {
 --road-heading: 90deg; --car-start: 33px; --car-impact: calc(50% - 20px); --car-stop: calc(50% - 45px);
}
.student-path-car--left {
 --road-heading: -90deg; --car-start: calc(100% - 33px); --car-impact: calc(50% + 20px); --car-stop: calc(50% + 45px);
 filter: saturate(0.1);
}
.student-path-scene[data-scene="collision"] .student-path-car {
 animation: student-path-approach var(--impact-time) ease-in both, student-path-rebound .3s var(--impact-time) ease-out forwards;
}
.student-path-impact {
 position: absolute; z-index: 1; inset: 50% auto auto 50%; width: 110px; aspect-ratio: 1;
 translate: -50% -50%; border: 2px solid #f17670; border-radius: 50%;
 background: #b72f35; box-shadow: 0 0 22px #e4504d4d;
 animation: student-path-impact .28s var(--impact-time) ease-out both;
}
.student-path-prompt {
 position: absolute; z-index: 3; inset: 50% auto auto 50%; translate: -50% -50%;
 font: 850 17px/1 Manrope, system-ui, sans-serif; text-shadow: 0 1px 3px #651b1b;
 animation: student-path-impact .28s var(--impact-time) ease-out both;
}
.student-path-scene:is([data-scene="exams"], [data-scene="green"]) {
 --drive-start: 33px;
 --drive-duration: 2.9s;
}
.student-path-scene[data-scene="exams"] {
 --stop-distance: 72px;
 --drive-stop: calc(100% - var(--stop-distance));
 container-type: inline-size;
}
.student-path-scene[data-scene="green"] { --drive-stop: calc(100% + 24px); }
.student-path-scene:is([data-scene="exams"], [data-scene="green"]) .student-path-car {
 left: var(--drive-stop);
 animation: student-path-drive var(--drive-duration) ease-in-out both;
}
.student-path-exam-label {
 --label-inset: 12px;
 --label-width: calc(100cqw - var(--stop-distance) - var(--label-inset) - 28px);
 position: absolute; inset: 50% auto auto var(--label-inset); translate: 0 calc(-50% - 1px); width: var(--label-width);
 color: var(--student-hero-text); text-align: left; text-shadow: 0 1px 3px var(--ink); white-space: nowrap;
 font: 800 clamp(22px, calc(var(--label-width) / 5.3), 58px)/1.06 Manrope, system-ui, sans-serif;
 padding-block: 2px; text-box-trim: trim-both; text-box-edge: cap alphabetic;
 letter-spacing: max(0px, calc((var(--label-width) - 310px) / 8));
 animation: student-path-exams-reveal var(--drive-duration) ease-in-out both;
}
.student-path-light {
 position: absolute; z-index: 2; inset: 50% 16px auto auto; translate: 0 -50%;
 display: grid; gap: 3px; padding: 5px; border: 1px solid #626367; border-radius: 6px; background: var(--ink);
}
.student-path-light i { width: 8px; height: 8px; border-radius: 50%; background: #4b4d50; }
.student-path-scene[data-scene="exams"] .student-path-light i:first-child { background: #ff5b60; box-shadow: 0 0 9px #ff5b6099; }
.student-path-scene[data-scene="green"] .student-path-light i:last-child { background: #69dc83; box-shadow: 0 0 9px #69dc8399; }
@keyframes student-path-approach { from { left: var(--car-start); } to { left: var(--car-impact); } }
@keyframes student-path-rebound { from { left: var(--car-impact); } to { left: var(--car-stop); } }
@keyframes student-path-impact { from { opacity: 0; scale: .72; } to { opacity: 1; scale: 1; } }
@keyframes student-path-drive {
 from { left: var(--drive-start); }
 to { left: var(--drive-stop); }
}
@keyframes student-path-exams-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@media (prefers-reduced-motion: reduce) {
 .student-path-scene[data-scene] .student-path-car, .student-path-impact, .student-path-prompt, .student-path-exam-label { animation: none; }
 .student-path-scene[data-scene="green"] .student-path-car { left: var(--drive-start); }
}
.student-path-details, .student-path-exams { display: grid; gap: 12px; }
.student-path-details > p, .student-path-exams > h2 { margin: 0; }
.student-path-exams > h2 { font: 600 17px/1.25 var(--heading-font); }
.student-group-exam-tiles, .student-school-document-columns {
 display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.student-group-exam-tiles > :only-child, .student-school-document-columns > :only-child { grid-column: 1 / -1; }
.student-home-tile {
 display: grid; align-content: start; gap: 10px; min-width: 0; padding: 14px;
 border: 1px solid var(--dark-line); border-radius: 16px; background: var(--graphite); color: #f4f3ee;
}
.student-home-tile :is(h2, h3) {
 display: flex; align-items: baseline; gap: 7px; margin: 0; color: #d4d3cd;
 font: 700 14px/1.35 Manrope, system-ui, sans-serif;
}
.student-home-tile :is(h2, h3) b { flex: none; color: var(--accent); font: 600 11px/1.1 var(--heading-font); }
.student-school-document-columns ul {
 display: grid; align-content: start; gap: 5px; margin: 0; padding-left: 15px;
 color: var(--accent); font-size: 14px; font-weight: 700; overflow-wrap: anywhere;
}
.student-group-exam-line { display: grid; gap: 2px; }
.student-group-exam-line span { font-size: 13px; font-weight: 750; line-height: 1.2; }
.student-group-exam-line time { color: #d4d3cd; font-size: 12px; font-variant-numeric: tabular-nums; }
.student-today-desktop { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 16px; }
.student-today-card {
 display: flex; flex-direction: column; align-items: start; gap: 12px;
 padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
}
.student-today-card > h2 { margin: 0; color: var(--muted); font: 600 11px/1.45 var(--heading-font); letter-spacing: .06em; text-transform: uppercase; }
.student-today-card > strong { font-size: 22px; font-weight: 800; }
.student-today-card > button { margin-top: auto; min-height: 44px; }
.student-today-payment-links { margin-top: auto; }
.student-today-payment-links button { min-height: 44px; }
.student-today-driving { color: #fff; background: var(--ink); border-color: var(--ink); }
.student-today-driving > h2, .student-today-driving > span { color: #d6d4cc; }
.student-today-driving > strong { font: 600 24px/1.2 var(--heading-font); }
.student-instructor-phone { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.student-today-progress { width: 100%; display: grid; gap: 10px; }
.student-today-progress > div { display: flex; justify-content: space-between; gap: 12px; }
.student-today progress { width: 100%; height: 6px; border: 0; border-radius: 10px; overflow: hidden; appearance: none; }
.student-today progress::-webkit-progress-bar { background: #e9e7e0; }
.student-today progress::-webkit-progress-value { background: var(--ink); }
.student-today progress::-moz-progress-bar { background: var(--ink); }
.student-today-works > h2 { margin: 28px 0 10px; font-size: 18px; }
.student-payments { --paid-color: #5c774d; --overdue-color: #a83a32; --future-color: #c5c7c8; display: grid; gap: 14px; }
.student-payments h1 { margin: 0; font-size: 23px; letter-spacing: normal; }
.student-payment-summary, .student-payment-card {
 min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
}
.student-payment-summary { display: grid; gap: 8px; }
.student-payment-summary dl { margin: 0; }
.student-payment-amounts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 16px; }
.student-payment-total { grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.student-payment-summary dt, .student-payment-card li span { color: var(--muted); font-size: 13px; }
.student-payment-summary dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.student-payment-paid-amount dd { color: var(--paid-color); }
.student-payment-future-amount { text-align: right; color: var(--ink); }
.student-payment-scale { display: flex; height: 8px; border-radius: 4px; overflow: hidden; }
.student-payment-paid-segment { background: var(--paid-color); }
.student-payment-overdue-segment { background: var(--overdue-color); }
.student-payment-future-segment { background: var(--future-color); }
.student-payment-overdue-amount {
 position: relative; left: clamp(min(5rem, 50%), var(--overdue-center), max(calc(100% - 5rem), 50%));
 width: min(10rem, 100%); transform: translateX(-50%); text-align: center;
}
.student-payment-overdue-amount :is(dt, dd) { color: var(--overdue-color); }
.student-payment-card h2 { margin: 0 0 10px; font-size: 18px; font-weight: 800; }
.student-payment-card p { margin: 0; }
.student-payment-next { display: grid; gap: 6px; color: #f4f3ee; background: var(--ink); border-color: var(--ink); }
.student-payment-next h2 { margin: 0; }
.student-payment-next > strong { color: var(--accent); font: 600 26px/1.1 var(--heading-font); overflow-wrap: anywhere; }
.student-payment-next > span { color: #d6d4cc; }
.student-payment-badge {
 display: inline-block; padding: 2px 7px; border-radius: 6px; background: var(--accent); color: var(--ink); font-weight: 700;
}
.student-payment-details { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); gap: 14px; align-items: start; }
.student-payment-card ul { margin: 0; padding: 0; list-style: none; }
.student-payment-card li {
 display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding-block: 10px; border-top: 1px solid #e9e7e0;
}
.student-payment-card li > div { display: grid; min-width: 0; align-content: start; overflow-wrap: anywhere; }
.student-payment-card li > div:last-child { text-align: right; }
.student-payment-timeline { --marker-size: 28px; margin: 0; padding: 0; list-style: none; }
.student-payment-timeline > li[data-payment-state] {
 position: relative; display: grid; grid-template-columns: var(--marker-size) minmax(0,1fr); gap: 12px; align-items: start;
 padding: 0; border: 0; color: var(--ink);
}
.student-payment-timeline > li[data-payment-state]:not(:last-child) { padding-bottom: 18px; }
.student-payment-timeline > li:not(:last-child)::before {
 content: ""; position: absolute; top: var(--marker-size); bottom: 0; left: calc(var(--marker-size) / 2 - 1px);
 width: 2px; background: var(--future-color);
}
.student-payment-timeline > li[data-payment-state] > div { text-align: left; gap: 2px; }
.student-payment-timeline time { color: var(--ink); font-size: 13px; }
.student-payment-timeline-marker {
 position: relative; width: var(--marker-size); height: var(--marker-size); border-radius: 50%; background: var(--future-color);
}
.student-payment-timeline [data-payment-state="paid"] .student-payment-timeline-marker { background: var(--paid-color); }
.student-payment-timeline [data-payment-state="paid"] .student-payment-timeline-marker::after {
 content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 6px;
 border: solid #fff; border-width: 0 0 2px 2px; transform: translate(-50%, -65%) rotate(-45deg);
}
.student-payment-timeline [data-payment-state="partial"] .student-payment-timeline-marker {
 background: linear-gradient(90deg, var(--paid-color) 50%, var(--overdue-color) 50%);
}
.student-payment-timeline [data-payment-state="overdue"] .student-payment-timeline-marker { background: var(--overdue-color); }
.student-payment-timeline :is([data-payment-state="partial"], [data-payment-state="overdue"]) strong { color: var(--overdue-color); }
.student-payment-timeline [data-payment-state="upcoming"] .student-payment-timeline-marker::before,
.student-payment-timeline [data-payment-state="upcoming"] .student-payment-timeline-marker::after,
.student-payment-clock-dot { content: ""; position: absolute; border-radius: 2px; background: var(--ink); }
.student-payment-timeline [data-payment-state="upcoming"] .student-payment-timeline-marker::before {
 width: 2px; height: 7px; top: calc(50% - 7px); left: calc(50% - 1px);
}
.student-payment-timeline [data-payment-state="upcoming"] .student-payment-timeline-marker::after {
 width: 6px; height: 2px; top: calc(50% - 1px); left: 50%; transform: rotate(36deg); transform-origin: left center;
}
.student-payment-clock-dot { width: 4px; height: 4px; top: calc(50% - 2px); left: calc(50% - 2px); }
.student-payment-road { max-width: 560px; }
.student-payment-road h2 {
 margin: 18px 2px 8px; font: 400 12px/1.48 var(--heading-font);
 letter-spacing: .06em; text-transform: uppercase;
}
.student-payment-road-summary {
 padding: 14px; border-radius: 18px; background: var(--ink); color: #f4f3ee;
}
.student-payment-road-amount, .student-payment-road-balance {
 display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; color: #b5b6b1; font-size: 13px;
}
.student-payment-road-amount > strong { color: #f4f3ee; font: 600 22px/1.4 var(--heading-font); }
.student-payment-road-amount > span { flex: 1 1 auto; }
.student-payment-road-amount > b { color: var(--accent); font: 400 13px/1.4 var(--heading-font); }
.student-payment-road-scale { display: flex; gap: 2px; margin-top: 10px; }
.student-payment-road-scale > span { height: 8px; min-width: 0; border-radius: 3px; background: var(--dark-line); }
.student-payment-road-scale [data-road-amount="paid"] { background: var(--accent); }
.student-payment-road-scale [data-road-amount="overdue"] { background: #ff5a45; }
.student-payment-road-balance { justify-content: space-between; margin-top: 8px; }
.student-payment-road-balance b { color: #f4f3ee; }
.student-payment-road-balance strong { color: #ff9a8a; }
.student-payment-road-map {
 position: relative; margin: 0; padding: 12px 12px 12px 10px; list-style: none;
 overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
}
.student-payment-road-map::before, .student-payment-road-map::after { content: ""; position: absolute; }
.student-payment-road-map::before {
 inset: 12px auto 12px 12px; width: 30px; border-radius: 9px; background: var(--graphite);
}
.student-payment-road-map::after {
 inset: 20px auto 20px 26px; width: 2px;
 background: repeating-linear-gradient(180deg, #f4f3ee 0 8px, transparent 8px 16px);
}
.student-payment-road-map > li {
 position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; min-height: 58px;
}
.student-payment-road-map > li:is([data-road-stop="today"],[data-road-stop="finish"]) { min-height: 54px; }
.student-payment-road-map > li:is([data-road-stop="next"],[data-road-stop="overdue"]) { min-height: 80px; }
.student-payment-road-lane { display: grid; flex: none; place-items: center; width: 34px; }
.student-payment-road-dot {
 display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid #f4f3ee;
 border-radius: 50%; background: var(--accent); font-size: 13px; font-weight: 800; line-height: 1;
}
[data-road-stop="paid"] .student-payment-road-dot { border: 0; background: #1f8a4c; color: #fff; }
[data-road-stop="overdue"] .student-payment-road-dot { border: 0; background: #ff5a45; color: #fff; }
[data-road-stop="next"] .student-payment-road-dot { border-width: 3px; }
[data-road-stop="exempt"] .student-payment-road-dot { background: var(--graphite); }
.student-payment-road-flag {
 width: 24px; height: 24px; border: 2px solid #f4f3ee; border-radius: 6px;
 background: repeating-conic-gradient(#17181a 0 25%, #f4f3ee 0 50%) 0 0 / 10px 10px;
}
.student-payment-road-car {
 display: block; margin-top: 3px; transform: rotate(180deg);
 animation: student-payment-road-arrival 1.2s cubic-bezier(.3,1.1,.5,1) .15s both;
}
@keyframes student-payment-road-arrival {
 from { transform: translateY(-140px) rotate(180deg); }
 to { transform: rotate(180deg); }
}
@media (prefers-reduced-motion: reduce) {
 .student-payment-road-car { animation: none; }
}
.student-payment-road-installment {
 flex: 1; min-width: 0; padding-inline-end: 14px; border-radius: 14px; overflow-wrap: anywhere;
}
.student-payment-road-installment > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.student-payment-road-installment strong { flex: 1 1 auto; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.student-payment-road-installment > div > span { margin-inline-start: auto; font-size: 12.5px; font-weight: 700; text-align: right; }
.student-payment-road-installment small { display: block; color: var(--muted); font-size: 13px; }
[data-road-stop="today"] .student-payment-road-installment strong { color: var(--muted); font-size: 13px; }
[data-road-stop="finish"] .student-payment-road-installment strong { font-size: 15px; }
[data-road-stop="finish"]:not([data-road-paid]) .student-payment-road-installment strong { color: var(--muted); }
[data-road-stop="paid"] .student-payment-road-installment span { color: #1f8a4c; }
[data-road-stop="overdue"] .student-payment-road-installment span { color: #c8321f; }
:is([data-road-stop="next"],[data-road-stop="overdue"]) .student-payment-road-installment {
 margin-inline-start: -8px; padding-block: 10px; padding-inline-start: 8px;
}
:is([data-road-stop="next"],[data-road-stop="overdue"]) .student-payment-road-installment strong { font-size: 18px; }
[data-road-stop="next"] .student-payment-road-installment { background: var(--accent); }
[data-road-stop="next"] .student-payment-road-installment small { color: #3a3c3f; }
[data-road-stop="overdue"] .student-payment-road-installment { background: #fbe3de; }
.student-payment-road-empty {
 margin: 0; padding: 16px; border: 1px dashed #b9b7ae; border-radius: 18px; color: var(--muted);
}
.student-payment-road-history {
 overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
}
.student-payment-road-history p { margin: 0; padding: 16px; color: var(--muted); }
.student-payment-road-history ul { margin: 0; padding: 0; list-style: none; }
.student-payment-road-history li {
 display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; min-height: 52px;
 padding: 6px 14px; font-variant-numeric: tabular-nums;
}
.student-payment-road-history li + li { border-top: 1px solid var(--paper); }
.student-payment-road-history li > :first-child { flex: 1 1 auto; color: var(--muted); }
.student-payment-road-history small { min-width: 40px; color: var(--muted); font-size: 13px; text-align: right; }
.student-driving-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.student-driving-weeks { display: flex; align-items: center; gap: 10px; }
.student-driving-weeks[hidden] { display: none; }
.student-driving-weeks button { width: 44px; height: 44px; padding: 0; }
.student-driving-summary {
 display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
 padding: 14px 16px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.student-driving-overview, .student-driving-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.student-driving-exam { display: grid; flex-basis: 100%; gap: 4px; min-width: 0; }
.student-driving-exam .student-instructor-phone { white-space: nowrap; }
.student-driving-summary-details { display: contents; }
.student-driving-weekly-plan {
 display: grid; gap: 4px; margin: 0 0 16px; padding: 10px 14px;
 border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.student-driving-weekly-plan p { margin: 0; }
.student-driving-weekly-plan small { color: var(--muted); }
.student-driving-summary-toggle, .student-driving-swipe-hint, .student-driving-vehicle-mobile { display: none; }
.student-driving-summary label { display: flex; gap: 6px; align-items: center; min-width: 0; }
.student-driving-summary select { min-width: 0; max-width: 100%; min-height: 44px; }
.student-driving-grid { display: grid; gap: 6px; background: var(--surface); border: 1px solid var(--line); padding: 12px; border-radius: 18px; overflow-x: auto; }
.student-driving-row { display: grid; align-items: stretch; gap: 6px; min-width: 540px; grid-template-columns: 126px repeat(var(--student-driving-days), minmax(0, 1fr)); }
.student-driving-grid:has(.student-shift-slot-label) .student-driving-row {
 grid-template-columns: 126px repeat(var(--student-driving-days), minmax(114px, 1fr));
}
.student-driving-row [role="columnheader"] { text-align: center; padding: 8px 2px; border-radius: 8px; color: var(--muted); }
.student-driving-row [data-current="true"] { background: var(--ink); color: #fff; }
.student-driving-row .student-driving-rest-day,
.student-free-day.student-driving-rest-day > strong,
.student-bookings .student-driving-rest-day > b { color: #800020; }
.student-driving-row .student-driving-rest-day[data-current="true"] { background: #f7e7ec; }
.student-shift-number { align-self: center; color: var(--muted); font-size: 12px; }
.student-driving-row [data-slot-state] {
 display: grid; place-items: center; width: 100%; min-height: 48px; padding: 4px 2px;
 border: 1px solid var(--line); border-radius: 9px; text-align: center; font-size: clamp(10px, 1.01vw, 13px); line-height: 1.15;
}
.student-driving [data-slot-state="open"] { color: var(--ink); background: #fff3b8; border-color: #fff3b8; }
.student-driving [data-slot-state="mine"] { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.student-driving [data-slot-state="booked"] { background: #e9e7e0; border-color: #e9e7e0; }
.student-driving [data-slot-state="closed"] { color: var(--muted); border: 1px dashed var(--line); }
.student-driving button[data-slot-state]:hover { border-color: var(--ink); }
.student-driving-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.student-driving-legend span { display: flex; align-items: center; gap: 6px; }
.student-driving-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.student-driving-note { font-size: 13px; }
.student-driving-dialog { max-width: min(100% - 28px, 440px); padding: 24px; color: var(--ink); border: 0; border-radius: 20px; }
.student-driving-dialog::backdrop { background: #17181a99; }
.student-driving-dialog button { min-height: 44px; }
.student-driving-dialog .row { margin-top: 18px; }
@media (min-width: 760px) {
 body:has(.cabinet-sidebar--student) { --sidebar-width: clamp(170px, 22vw, 228px); padding: 0 0 0 var(--sidebar-width); }
 body:has(.cabinet-sidebar--student) > main { max-width: 1120px; margin: 0 auto; padding: 30px clamp(18px, 3vw, 36px) 40px; }
 body:has(.cabinet-sidebar--student) .platform-header { display: contents; }
 body:has(.cabinet-sidebar--student) :is(.platform-header > .brand, .header-home, .profile-toggle, .cabinet-mobile-nav) { display: none; }
 .cabinet-sidebar--student {
  display: flex; flex-direction: column; position: fixed; z-index: 5; inset: 0 auto 0 0;
  width: var(--sidebar-width); padding: 18px 12px 128px; background: var(--ink); color: #f4f3ee;
 }
 .cabinet-sidebar--student .sidebar-brand { display: block; padding: 0 8px; margin-bottom: 14px; }
 .cabinet-sidebar--student .sidebar-brand img { display: block; width: 64px; height: 64px; border-radius: 18px; background: #fff; }
 .cabinet-sidebar--student .sidebar-brand span { display: none; }
 .cabinet-sidebar--student nav { display: grid; gap: 4px; }
 .cabinet-sidebar--student nav button { min-height: 42px; border: 0; border-radius: 9px; padding: 0 12px; background: transparent; color: inherit; text-align: left; font-weight: 600; }
 .cabinet-sidebar--student nav button:hover { background: var(--graphite); }
 .cabinet-sidebar--student nav button[aria-current="page"] { background: var(--accent); color: var(--ink); }
 body:has(.cabinet-sidebar--student) #account {
  position: fixed; inset: auto auto 18px 12px; z-index: 6; width: calc(var(--sidebar-width) - 24px);
  margin: 0; padding: 0; color: #f4f3ee; background: none; box-shadow: none;
 }
 body:has(.cabinet-sidebar--student) #account-panel { position: static; display: grid; justify-items: start; gap: 0; width: 100%; padding: 12px 8px 0; border: 0; border-top: 1px solid var(--dark-line); background: none; box-shadow: none; }
 body:has(.cabinet-sidebar--student) #account-panel strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
 body:has(.cabinet-sidebar--student) #account-panel small { color: #b5b6b1; }
 body:has(.cabinet-sidebar--student) #logout { min-height: 44px; margin-top: 8px; }
}
@media (max-width: 759px) {
 body:has(.cabinet-sidebar--student) > main { max-width: 720px; padding: 0 12px 28px; margin: 14px auto 0; }
 body:has(.cabinet-sidebar--student) .platform-header { min-height: 60px; gap: 8px; padding: 8px 14px; background: var(--ink); color: #f4f3ee; border-color: var(--dark-line); }
 body:has(.cabinet-sidebar--student) .platform-header .brand { flex: none; }
 body:has(.cabinet-sidebar--student) .header-refresh { width: 44px; padding: 0; text-align: center; align-content: center; color: #f4f3ee; background: var(--graphite); border-color: var(--dark-line); }
 body:has(.cabinet-sidebar--student) #header-section-title { display: block; min-width: 0; flex: 1; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; font: 500 14px/1.2 var(--heading-font); }
 body:has(.cabinet-sidebar--student) #account { margin-left: 0; }
 body:has(.cabinet-sidebar--student) .profile-toggle {
  display: flex; gap: 10px; align-items: center; width: auto; height: 44px;
  padding: 0 6px 0 14px; border: 1px solid var(--dark-line); border-radius: 22px;
  background: var(--graphite); color: #f4f3ee;
 }
 body:has(.cabinet-sidebar--student) .profile-toggle span { font-size: 13px; font-weight: 400; }
 body:has(.cabinet-sidebar--student) .profile-toggle b {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--ink); font-size: 12px;
 }
 body:has(.cabinet-sidebar--student) #account-panel > small { color: #000; font-weight: 400; }
 .cabinet-sidebar--student ~ .cabinet-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
 .student-section-tabs { gap: 4px; }
 .student-section-tabs button { flex: 1 1 auto; padding-inline: 9px; font-size: 13px; }
 .student-reference-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; padding: 18px; border-radius: 22px; background: var(--ink); }
 .student-reference-head .reference-search { order: -1; min-height: 56px; padding-inline: 18px; border: 0; font-size: 17px; }
 .student-reference-head .student-section-tabs { margin: 0; gap: 6px; }
 .student-reference-head .student-section-tabs button { flex: 0 1 auto; padding-inline: 16px; }
 .student-reference-head .student-section-tabs [aria-current="page"] { color: var(--ink); background: var(--accent); border-color: var(--accent); }
 .student-reference-head #reference-results:empty { display: none; }
 .student-today-desktop, .student-today-works, .student-driving-desktop { display: none; }
 .student-today-mobile, .student-driving-mobile { display: block; }
 .student-today h1 span:first-child { display: none; }
 .student-today h1 span:last-child { display: inline; }
 .student-today-hero { padding: 18px; border-radius: 22px; background: var(--ink); color: var(--student-hero-text); }
 .student-today-hero .student-today-date { color: #b5b6b1; }
 .student-today-hero h1 { font-size: 22px; line-height: 1.15; margin: 6px 0 22px; text-wrap: balance; }
 .student-today .student-path-scene { width: 100%; margin-bottom: 10px; }
 .student-today-mobile > h2, .student-driving-mobile h2 { margin: 26px 0 10px; font: 600 13px/1.4 var(--heading-font); letter-spacing: .06em; text-transform: uppercase; }
 .student-today-stages {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
 }
 .student-today-stages button {
  display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 132px; padding: 16px; border-radius: 16px; border-color: var(--dark-line);
  color: #fff; background: var(--graphite); text-align: left;
 }
 .student-today-stages button > span:first-child { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #b5b6b1; }
 .student-today-stages button b { font: 600 11px/1.1 var(--heading-font); color: var(--accent); }
 .student-today-stages button strong { font: 600 26px/1.1 var(--heading-font); }
 .student-today-stages button small { color: #b5b6b1; }
 .student-today-stages [data-student-link="payments"] strong { overflow-wrap: anywhere; }
 .student-today-stages progress { margin-top: auto; }
 .student-today-stages progress::-webkit-progress-bar { background: var(--dark-line); }
 .student-today-stages progress::-webkit-progress-value { background: var(--accent); }
 .student-today-stages progress::-moz-progress-bar { background: var(--accent); }
 .student-today-stages button[data-payment-overdue] { color: var(--ink); background: var(--accent); border-color: var(--accent); }
 .student-today-stages button[data-payment-overdue] strong { font-size: 18px; white-space: nowrap; overflow-wrap: normal; }
 .student-today-stages button[data-payment-overdue] :is(span, b, small) { color: inherit; }
 .student-today-stages button[data-payment-overdue] progress { outline: 1px solid var(--ink); }
 .student-today-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 10px; }
 .student-today-links button { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-height: 96px; padding: 14px; border-radius: 16px; text-align: left; }
 .student-today-links button b { font-size: 16px; line-height: 1.2; }
 .student-today-links button small { font-size: 13px; font-weight: 400; }
 .student-today-driving-link {
  display: flex; flex-direction: column; min-width: 0; min-height: 96px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
 }
 .student-today-driving-link button { flex: 1; min-height: 0; border: 0; border-radius: 15px 15px 0 0; padding-bottom: 8px; }
 .student-today-driving-link > small { padding: 0 14px 14px; font-size: 13px; overflow-wrap: anywhere; }
 .student-driving-heading h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
 .student-driving-heading { margin-bottom: 0; }
 .student-driving-weeks { display: none; }
 .student-driving[data-driving-date-swipe] { touch-action: pan-y pinch-zoom; }
 .student-driving-summary { display: grid; gap: 10px; padding: 18px; border: 0; border-radius: 22px; background: var(--ink); color: #f4f3ee; }
 .student-driving-summary:has(> .student-driving-summary-toggle[aria-expanded="false"]) {
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
  border-radius: 18px;
 }
 .student-driving-summary-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  text-align: left;
 }
 .student-driving-summary-toggle:hover { background: transparent; }
 .student-driving-summary-toggle:focus-visible { outline-offset: -3px; }
 .student-driving-summary-toggle[aria-expanded="false"] { min-height: 60px; padding: 11px 14px; }
 .student-driving-summary-toggle[aria-expanded="false"] + .student-driving-summary-details,
 .student-driving-summary-toggle[aria-expanded="false"] .student-driving-summary-open,
 .student-driving-summary-toggle[aria-expanded="true"] .student-driving-summary-closed { display: none; }
 .student-driving-summary-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
 .student-driving-summary-count { font: 600 17px/1.2 var(--heading-font); white-space: nowrap; }
 .student-driving-summary-remaining { flex: 1; min-width: min-content; color: #b5b6b1; font-size: 13px; font-weight: 400; }
 .student-driving-summary-action { margin-inline-start: auto; color: var(--accent); font-size: 13px; font-weight: 700; }
 .student-driving-total { font: 600 22px/1.15 var(--heading-font); }
 .student-driving-period { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
 .student-driving-swipe-hint { display: block; white-space: nowrap; }
 .student-driving-summary .student-driving-overview, .student-driving-summary label { color: #b5b6b1; font-size: 13px; }
 .student-driving-summary .student-driving-overview { display: grid; }
 .student-driving-vehicle-desktop { display: none; }
 .student-driving-vehicle-mobile { display: inline; }
 .student-driving-summary .student-driving-vehicle-mobile label { display: inline-flex; max-width: 100%; vertical-align: middle; }
 .student-driving-exam { font-size: 13px; }
 .student-driving-exam > :last-child { font-size: 12px; }
 .student-driving-summary select { flex: 1 1 auto; background: var(--graphite); color: #f4f3ee; border-color: var(--dark-line); }
 .student-quota { display: flex; gap: 3px; }
 .student-quota span { height: 14px; flex: 1; border: 1px solid var(--dark-line); border-radius: 3px; background: var(--dark-line); }
 .student-driving-summary-toggle .student-quota { gap: 2px; }
 .student-driving-summary-toggle .student-quota > span { min-width: 0; height: 7px; border: 0; border-radius: 2px; }
 .student-quota [data-quota="completed"], .student-quota-legend span:first-child::before { background: #f4f3ee; border-color: #f4f3ee; }
 .student-quota [data-quota="booked"], .student-quota-legend span:nth-child(2)::before { background: var(--accent); border-color: var(--accent); }
 .student-quota [data-quota="missed"] { background: #e9e7e0; }
 .student-quota-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; color: #b5b6b1; font-size: 13px; }
 .student-quota-legend span { display: flex; gap: 6px; align-items: center; }
 .student-quota-legend span::before { content: ""; width: 12px; height: 12px; border: 1px solid var(--dark-line); border-radius: 3px; background: var(--dark-line); }
 .student-driving-mobile section > div { display: grid; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
 .student-driving-mobile section p { margin: 0; padding: 14px; color: var(--muted); }
 .student-driving-mobile .student-bookings > div { gap: 10px; border: 0; background: none; }
 .student-bookings > div > p { border: 1px dashed #b9b7ae; border-radius: 18px; }
 .student-driving-mobile h2 a[href="#student-driving-help"] { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
 .student-driving-mobile > .student-driving-note { max-width: 52ch; margin: 16px 0 0; }
 .student-bookings article { display: grid; align-items: center; grid-template-columns: max-content minmax(0,1fr) auto; gap: 4px 8px; padding: 10px 12px; border-radius: 18px; background: var(--accent); }
 .student-bookings article > b { font: 600 34px/1 var(--heading-font); }
 .student-booking-details { display: grid; gap: 3px; font-size: 14px; font-variant-numeric: tabular-nums; line-height: 1.25; }
 .student-booking-details strong, .student-booking-time { white-space: nowrap; }
 .student-bookings article > small:not(.student-booking-period) { max-width: 8ch; line-height: 1.2; }
 .student-booking-period { grid-column: 2 / -1; }
 .student-free-day + .student-free-day { border-top: 1px solid #e9e7e0; }
 .student-bookings button, .student-free-day button { min-height: 44px; }
 .student-bookings button { padding: 8px 7px; border: 1.5px solid var(--ink); background: transparent; font-size: 13px; }
 .student-free-day button[data-slot-state="open"] { border: 1.5px solid var(--line); background: #fff; }
 .student-free-day { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px; }
 .student-free-day > strong { flex: 1 1 100px; }
 .student-free-day > div { display: flex; flex-wrap: wrap; gap: 6px; }
 .student-driving-dialog { margin: auto auto 0; width: 100%; max-width: min(100%, 520px); border-radius: 20px 20px 0 0; }
}
@media (max-width: 350px) {
 .student-driving-summary-toggle[aria-expanded="false"] .student-driving-summary-row { gap: 4px; }
 .student-driving-summary-count { font-size: 15px; }
 .student-driving-summary-remaining, .student-driving-summary-action { font-size: 12px; }
}
@media (max-width: 380px) {
 .student-bookings article { column-gap: 4px; padding: 8px; }
 .student-bookings article > b { font-size: 28px; }
 .student-booking-details { font-size: 12px; }
 .student-bookings button { padding-inline: 5px; font-size: 12px; }
}

body:has(.student-question) { color: #f4f3ee; background: var(--ink); }
body:has(.student-question) > footer,
body:has(.student-question) > .platform-header > :is(.header-home, .header-refresh, #header-section-title, #account) { display: none; }
body:has(.student-question) > .platform-header {
 min-height: 60px; padding: 8px 14px; background: var(--ink); border-color: var(--dark-line);
}
body:has(.student-question) > main { max-width: 100%; padding: 0; margin: 0; min-height: calc(100dvh - 60px); }
.student-question { max-width: 1040px; padding: 8px 20px 28px; }
.student-question .question-heading { flex-wrap: nowrap; align-items: center; padding: 0 0 12px; border-bottom: 1px solid var(--dark-line); }
.student-question #back { flex: none; width: 44px; height: 44px; padding: 0; font-size: 24px; }
.student-question .question-title { display: grid; flex: 1; min-width: 0; font-size: 15px; font-weight: 700; }
.student-question .question-title small { font-size: 13px; font-weight: 400; }
.student-question .panel { max-width: 760px; margin: 0 auto; padding: 16px 0 4px; background: none; border: 0; }
.student-question .panel > h2 { font-size: clamp(20px, 3vw, 27px); line-height: 1.25; }
.student-question .question-img { margin: 0 0 18px; border-radius: 14px; }
.student-question .eyebrow, .student-question #exam-clock { color: var(--accent); font-family: var(--heading-font); }
.student-question #exam-clock { flex: none; font-size: clamp(12px, 3vw, 18px); font-variant-numeric: tabular-nums; }
.student-question :is(small,.muted) { color: #b5b6b1; }
.student-question .progress { background: var(--dark-line); margin: 12px 0 18px; }
.student-question .progress div { background: var(--accent); }
.student-question button:not(.primary) { color: #f4f3ee; background: var(--graphite); border-color: var(--dark-line); }
.student-question button:not(.primary):hover:not(:disabled) { border-color: var(--accent); }
.student-question .options { margin: 0 0 16px; }
.student-question .option {
 align-items: center; flex-wrap: nowrap; min-height: 64px; padding: 14px 16px;
 border-width: 2px; border-radius: 16px; font-size: 16px; font-weight: 600;
}
.student-question .option b { width: 30px; height: 30px; border: 2px solid var(--dark-line); border-radius: 50%; background: none; font: 600 12px/1 var(--heading-font); }
.student-question .option.selected { border-color: var(--accent); }
.student-question .option.correct { border-color: #67c397; background: #214a37; opacity: 1; }
.student-question .option.wrong { border-color: #f69889; background: #5e322c; opacity: 1; }
.student-question .option .answer-label { color: var(--accent); margin: 0; font-size: 12px; flex-basis: auto; }
.student-question .explanation { background: var(--graphite); border: 1px solid var(--dark-line); color: #e9e7e0; border-radius: 16px; }
.student-question #exam-controls:not(:empty), .student-question #finish { display: block; max-width: 760px; margin: 12px auto 0; }
.student-question #exam-controls:not(:empty) { padding-top: 12px; border-top: 1px solid var(--dark-line); }
.student-question #exam-nav { flex-wrap: nowrap; overflow-x: auto; padding: 3px; }
.student-question #exam-nav button { flex: 0 0 40px; min-height: 40px; padding: 0; }
.student-report #back { margin-bottom: 10px; padding: 0; min-height: 44px; color: var(--muted); border: 0; background: transparent; }
.student-report .hero { margin-bottom: 0; }
.student-report .hero h1 { display: inline-block; font-size: 23px; }
.student-report .hero .badge { margin: 0 0 0 8px; }
.student-report .cards .panel:first-child { color: #fff; background: var(--ink); border-color: var(--ink); }
.student-report .cards .panel:first-child small { color: #b5b6b1; }
.student-report .cards .stat { font: 600 24px/1.4 var(--heading-font); }
.student-report .review h3 { font-weight: 700; }
@media (max-width: 759px) {
 .student-question { padding: 8px 14px 24px; }
 .student-question .option { font-size: 15px; padding-inline: 12px; }
 .student-report #back { display: none; }
 .student-report-summary { padding: 18px; border-radius: 22px; background: var(--ink); color: #f4f3ee; }
 .student-report-summary :is(.muted, .eyebrow, small) { color: #b5b6b1; }
 .student-report-summary .hero h1 { font-size: 22px; line-height: 1.15; }
 .student-report .cards { gap: 8px; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 16px; }
 .student-report .cards .panel { padding: 12px; border: 1px solid var(--dark-line); border-radius: 14px; color: #f4f3ee; background: var(--graphite); }
 .student-report .cards .stat { margin-top: 4px; font-size: clamp(12px, 4vw, 17px); line-height: 1.2; overflow-wrap: anywhere; }
 .student-report .student-report-answers { padding: 0; border: 0; background: transparent; margin: 22px 0 0; }
 .student-report-answers h2 { margin: 0; font: 600 13px/1.4 var(--heading-font); letter-spacing: .06em; text-transform: uppercase; }
 .student-report-answers #reviews { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); gap: 10px; }
 .student-report-answers .review { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
}
.roster-payment-meter { display: none; }
.teacher-contract-wizard [hidden], .teacher-assessment-form [hidden], .theory-nav[hidden] { display: none; }
.assessment-overview-heading, .assessment-form-heading {
 display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px;
}
.teacher-assessment-overview h2 { margin: 0 0 10px; font-size: 18px; font-weight: 800; }
.assessment-overview-heading h2, .assessment-form-heading h2 { margin: 0; }
.assessment-form-heading h2 { font-size: 20px; font-weight: 800; }
.assessment-form-heading p { margin: 2px 0 0; color: var(--muted); }
.teacher-assessment-overview button, .teacher-assessment-form button { min-height: 44px; padding: 0 16px; border-radius: 12px; font-weight: 600; }
.teacher-assessment-overview .assessment-work-toggle {
 display: block; width: 100%; padding-block: 8px; overflow-wrap: anywhere; text-align: left;
}
.assessment-work-toggle[aria-expanded="true"] { color: var(--surface); background: var(--ink); border-color: var(--ink); }
.assessment-saved-row > .assessment-work-results { flex-basis: 100%; }
.teacher-assessment-overview .primary, .teacher-assessment-form .primary { border: 0; background: #ffd21f; color: #17181a; font-weight: 800; }
.assessment-instructor-results, .assessment-saved { margin-top: 20px; }
.assessment-matrix, .assessment-saved-list, .teacher-assessment-card {
 border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
}
.assessment-matrix { overflow: auto; }
.assessment-matrix table { width: 100%; min-width: 640px; border-collapse: collapse; margin: 0; }
.assessment-matrix :is(th,td) { padding: 10px 18px; border: 0; border-bottom: 1px solid #e9e7e0; text-align: left; }
.assessment-matrix thead th { background: #f6f5f1; color: var(--muted); font-size: 13px; font-weight: 400; }
.assessment-matrix th:first-child { width: 198px; }
.assessment-matrix tbody th { color: var(--ink); font-weight: 600; }
.assessment-matrix tbody tr:last-child :is(th,td) { border-bottom: 0; }
.assessment-matrix > p, .assessment-empty { margin: 0; padding: 16px 18px; color: var(--muted); }
.assessment-result { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 13px; white-space: nowrap; }
.assessment-result[data-result="passed"] { background: #e8f4ec; color: #1f8a4c; }
.assessment-result[data-result="failed"] { background: #fdebe8; color: #c8321f; }
.assessment-result[data-result="waiting"] { background: #e9e7e0; color: var(--ink); }
.assessment-saved-list { overflow: hidden; }
.assessment-saved-row {
 display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 18px; border-top: 1px solid #e9e7e0;
}
.assessment-saved-row:first-child { border-top: 0; }
.assessment-saved-row > div { flex: 1 1 220px; min-width: 0; }
.assessment-saved-row b { display: block; font-weight: 600; }
.assessment-saved-row small, .teacher-assessment-card small { color: var(--muted); font-size: 13px; }
.assessment-topic-names { display: block; overflow-wrap: anywhere; }
.assessment-saved-row .assessment-topic-names, .student-work .assessment-topic-names { margin-top: 4px; }
.assessment-mobile-create { justify-content: flex-end; }
.teacher-assessment-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); gap: 12px; align-items: start; }
.teacher-assessment-cards > .assessment-empty { border: 1px dashed #b9b7ae; border-radius: 18px; }
.teacher-assessment-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 18px; }
.teacher-assessment-card h2 { margin: 0; font-size: 19px; line-height: 1.2; text-wrap: balance; }
.assessment-kind {
 align-self: flex-start; padding: 4px 8px; border-radius: 6px; background: var(--ink); color: #fff;
 font: 500 11px/1.4 var(--heading-font); letter-spacing: .06em; text-transform: uppercase;
}
.assessment-progress { display: flex; height: 10px; overflow: hidden; border-radius: 5px; background: #e4e2da; }
.assessment-progress [data-result="passed"] { background: #1f8a4c; }
.assessment-progress [data-result="failed"] { background: #c8321f; }
.assessment-person-result { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid #eeede8; font-size: 14px; }
.assessment-person-result b { text-align: right; }
.assessment-person-result [data-result="passed"] { color: #1f8a4c; }
.assessment-person-result [data-result="failed"] { color: #c8321f; }
.assessment-person-result [data-result="waiting"] { color: var(--muted); }
.teacher-assessment-card footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; padding: 0; }
.teacher-assessment-card footer button { min-height: 46px; }
.teacher-assessment-card .assessment-assign-button { border: 0; background: var(--ink); color: #fff; }
.teacher-assessment-form { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.assessment-form-heading { margin-bottom: 16px; }
.assessment-form-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,200px),1fr)); gap: 14px 16px; }
.assessment-form-fields > label { display: grid; gap: 6px; min-width: 0; color: var(--muted); font-size: 13px; }
.assessment-form-fields :is(input,select), .assessment-topic input {
 width: 100%; height: 44px; min-width: 0; padding: 0 10px; border: 1px solid var(--line);
 border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 15px;
}
.teacher-assessment-form :is(.assessment-topics,.assessment-recipient-group) { padding: 0; border: 0; border-radius: 0; }
.assessment-topics { margin: 24px 0 0; }
.assessment-topics > summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; font-weight: 800; }
.assessment-topics > summary output { flex: none; font: 500 13px/1.4 var(--heading-font); }
.assessment-topics > summary, .assessment-recipient-group > summary { list-style: none; cursor: pointer; }
.assessment-topic-positions {
 display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr)); align-items: start; gap: 12px;
}
.assessment-topic-group {
 min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.assessment-topic-group > summary { cursor: pointer; font-weight: 750; }
.assessment-topic-group .assessment-topic-list { grid-template-columns: minmax(0,1fr); margin-top: 8px; }
.assessment-topic-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr)); gap: 8px 16px; }
.assessment-topic-list .assessment-topic {
 display: grid; grid-template-columns: minmax(0,1fr) auto 72px; gap: 12px; align-items: center;
 min-height: 52px; padding: 4px 4px 4px 14px; border: 1px solid var(--line); border-radius: 12px;
}
.assessment-topic-list .assessment-topic input { height: 42px; border-radius: 9px; text-align: right; }
.assessment-topic-list small { color: var(--muted); font-size: 13px; }
.assessment-recipient-heading { margin: 24px 0 10px; font-size: 16px; font-weight: 800; }
.assessment-assignment-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.assessment-form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.assessment-form-actions button { min-height: 48px; }
.teacher-assessment-overview .assessment-action-icon, .assessment-form-actions > .assessment-action-icon {
 display: inline-grid; place-items: center; flex: 0 0 48px; width: 48px; padding: 0;
}
.assessment-removed-results { margin-top: 20px; }
.assessment-removed-results > summary { cursor: pointer; font-weight: 700; margin-bottom: 8px; }
[data-platform-action] { font-size: 0 !important; }
[data-platform-action] > * { display: none !important; }
[data-platform-action]::after {
 content: ""; display: inline-block; vertical-align: middle; width: 22px; height: 22px;
 background: currentColor; mask: var(--platform-action-graphic) center / contain no-repeat;
 pointer-events: none;
}
.assessment-message { margin: 12px 0 0; color: #c8321f; }
.assessment-recipient-group + .assessment-recipient-group { margin-top: 14px; }
.assessment-recipient-group > summary { margin: 0 0 8px; color: var(--muted); font-size: 13px; font-weight: 400; }
.assessment-recipients { display: flex; flex-wrap: wrap; gap: 6px; }
.assessment-recipients .assessment-student {
 position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 46px; min-width: 0;
 padding: 4px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
 font-weight: 600; overflow-wrap: anywhere; cursor: pointer;
}
.assessment-recipients .assessment-student:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.assessment-recipients .assessment-student:has(input:checked) small { color: #b5b6b1; }
.assessment-recipients .assessment-student:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.assessment-recipients input { position: absolute; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 759px) {
 body:has(.cabinet-sidebar--office) > main { max-width: 720px; margin: 14px auto 0; padding: 0 12px 28px; }
 body:has(.cabinet-sidebar--office) > footer { display: none; }
 body:has(.cabinet-sidebar--office) .platform-header {
  min-height: 60px; padding: 8px 12px; gap: 8px; background: var(--ink); color: #f4f3ee;
 }
 body:has(.cabinet-sidebar--office) .header-refresh {
  width: 44px; min-height: 44px; flex: none; padding: 0; background: var(--graphite); color: #f4f3ee; border-color: var(--dark-line);
 }
 body:has(.cabinet-sidebar--office) .profile-toggle {
  display: flex; align-items: center; gap: 8px; width: auto; height: 44px; padding: 0 6px 0 12px;
  border: 1px solid var(--dark-line); border-radius: 22px; color: #f4f3ee; background: var(--graphite);
 }
 body:has(.cabinet-sidebar--office) .profile-toggle span { font-size: 12px; font-weight: 400; }
 body:has(.cabinet-sidebar--office) .profile-toggle b {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: 12px;
 }
 .cabinet-sidebar--office ~ .cabinet-heading,
 .cabinet-sidebar--office ~ #content :is(.teacher-staff > h1, .office-driving-heading h1) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
 }
 .cabinet-sidebar--teacher ~ .theory-nav {
  display: flex; flex-wrap: wrap; gap: 6px; width: 100%; margin: 0 0 14px; padding: 0; background: none;
 }
 .cabinet-sidebar--teacher ~ .theory-nav[hidden] { display: none; }
 .cabinet-sidebar--teacher ~ .theory-nav button {
  flex: 1 1 auto; min-height: 44px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 13px;
 }
 .cabinet-sidebar--teacher ~ .theory-nav [aria-current="page"] { color: #fff; background: var(--ink); border-color: var(--ink); }

 .office-today-overview { gap: 12px; padding: 18px; margin-bottom: 26px; border-radius: 22px; color: #f4f3ee; background: var(--ink); }
 .office-today-heading { display: block; }
 .office-today-heading time { display: block; color: #b5b6b1; font-size: 13px; text-transform: capitalize; }
 .office-today-heading h1 { margin: 6px 0 10px; font: 600 22px/1.15 var(--heading-font); letter-spacing: normal; text-wrap: balance; }
 .office-today-overview .today-metrics {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 138px),1fr)); gap: 10px;
  max-width: none; padding: 0; margin: 0; border: 0; background: transparent;
 }
 .office-today-overview .today-metric {
  display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-height: 130px;
  padding: 14px; border: 1px solid var(--dark-line); border-radius: 16px; background: var(--graphite); color: #f4f3ee;
 }
 .office-today-overview .today-metric:hover { border-color: var(--accent); }
 .office-today-overview .today-sections { background: var(--graphite); border-color: var(--dark-line); }
 .office-today-overview .today-metric strong { margin: 0; color: #f4f3ee; font: 600 26px/1.1 var(--heading-font); }
 .office-today-overview .today-metric progress { width: 100%; height: 6px; margin-top: auto; accent-color: var(--accent); border: 0; border-radius: 8px; overflow: hidden; }
 .office-today-overview .today-metric progress::-webkit-progress-bar { background: var(--dark-line); }
 .office-today-overview .today-metric progress::-webkit-progress-value { background: var(--accent); }
 .office-today .today-heading h2 { font: 600 13px/1.45 var(--heading-font); letter-spacing: .06em; text-transform: uppercase; }
 .office-today .today-attention { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 280px),1fr)); gap: 12px; }
 .office-today .today-attention article { display: flex; flex-direction: column; align-items: start; gap: 6px; padding: 18px; border-radius: 18px; }
 .office-today .today-attention h3 { margin: 0; font-size: 18px; line-height: 1.25; }
 .office-today .today-attention article button { min-height: 46px; margin-top: 8px; color: #fff; background: var(--ink); border-color: var(--ink); }

 .office-roster .roster-views { gap: 4px; border-radius: 14px; }
 .office-roster #roster-search, .office-roster #roster-add { min-height: 48px; }
 .office-roster .roster-filters button { min-height: 44px; }
 .office-roster .roster-group-meta { margin-bottom: 4px; }
 .office-roster .roster-group-meta h2 { font-size: 16px; }
 .office-roster .roster-table tbody { grid-template-columns: repeat(auto-fit,minmax(min(100%, 280px),1fr)); gap: 12px; }
 .office-roster .roster-table tr { min-width: 0; padding: 16px; gap: 8px; }
 .office-roster .roster-table td { min-width: 0; overflow-wrap: anywhere; }
 .office-roster .roster-name { min-height: 24px; font-size: 18px; line-height: 1.2; }
 .office-roster .roster-table td:first-child { display: contents; }
 .office-roster .roster-table td:first-child small:first-of-type { grid-row: 6; }
 .office-roster .roster-table td[data-label="МПОВ · КПП"] { color: var(--muted); font-size: 13px; }
 .office-roster .roster-table td[data-label="Остаток"] {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px;
 }
 .office-roster .roster-table td[data-label="Остаток"]::before { content: "Оплата"; }
 .office-roster .roster-payment-overdue { flex-basis: 100%; }
 .office-roster .roster-payment-meter { display: block; flex: 1; height: 6px; border-radius: 4px; background: #e4e2da; }
 .office-roster .roster-payment-meter > span { display: block; height: 100%; border-radius: inherit; background: #1f8a4c; }
 .office-roster .roster-expelled tr { grid-template-columns: minmax(0,1fr); gap: 6px; padding: 14px 16px; }
 .office-roster .roster-expelled tr td:nth-child(2) { grid-row: 1; }
 .office-roster .roster-group-settings .roster-group-meta { justify-content: space-between; gap: 8px; }
 .office-roster .roster-group-settings form {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px;
 }
 .office-roster .roster-group-settings :is(.roster-group-period-title, form > button, label:has([name="groupNumber"],[name="teacherName"])) { grid-column: 1 / -1; }
 .office-roster .roster-group-period-title { display: block; color: var(--muted); font: 600 11px/1.45 var(--heading-font); letter-spacing: .06em; text-transform: uppercase; }
 .office-roster .roster-group-settings :is(input, select, button) { min-height: 44px; }

 .cabinet-sidebar--office ~ #content :is(.student-card-back:not([data-return-to-driving]), .new-student-back) { display: none; }
 .cabinet-sidebar--office ~ #content :is(.student-card-heading, .new-student-heading) {
  align-items: flex-start; padding: 18px; margin: 0 0 14px; border-radius: 22px; color: #f4f3ee; background: var(--ink);
 }
 .cabinet-sidebar--office ~ #content :is(.student-card-heading, .new-student-heading) .muted { color: #b5b6b1; }
 .cabinet-sidebar--office ~ #content :is(.student-card-heading, .new-student-heading) h1 { font-size: 21px; line-height: 1.2; text-wrap: balance; }
 .cabinet-sidebar--office ~ #content .student-card-tabs button { min-height: 44px; padding-inline: 10px; font-size: 13px; }
 .cabinet-sidebar--office ~ #content :is(.desktop-student-body, .new-student-fields) { padding: 14px; }
 .desktop-student-body [data-student-payment] {
  padding: 0 12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--cabinet-block-radius);
 }
 .desktop-student-body [data-student-payment] > legend { padding-inline: 6px; }
 .cabinet-sidebar--office ~ #content .student-card-field-grid input:not([type="checkbox"]) { width: 100%; }
 .cabinet-sidebar--office ~ #content .student-card-three-field-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .cabinet-sidebar--office ~ #content .student-card-three-field-row > :last-child { grid-column: 1 / -1; }
 .cabinet-sidebar--office ~ #content .desktop-student-body .student-card-wide-field-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
 .cabinet-sidebar--office ~ #content .desktop-student-body .student-card-booking-days { grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; }
 .cabinet-sidebar--office ~ #content .desktop-student-body .student-card-booking-days label { min-width: 0; padding-inline: 0; }
 .cabinet-sidebar--office ~ #content .desktop-student-body :is(.student-create, .mpov-form),
 .cabinet-sidebar--teacher ~ #content :is(.student-create, .mpov-form) { min-width: 0; }

 .office-driving-month-report .office-driving-toolbar { display: grid; grid-template-columns: minmax(0,1fr); }
 .office-driving-month-report .office-driving-heading { margin-bottom: 0; }
 .teacher-mobile-driving { --driving-rest-day-color: var(--driving-danger); max-width: 560px; }
 body:has(.teacher-mobile-driving) .platform-header #account { flex: none; }
 .teacher-mobile-driving .office-driving-toolbar { flex-wrap: nowrap; gap: 8px; margin-bottom: 10px; }
 .teacher-mobile-driving .office-driving-toolbar label { flex: 1; min-width: 0; }
 .teacher-mobile-driving [data-office-mpov] {
  width: 100%; min-width: 0; height: 48px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); font-size: 15px; font-weight: 600;
 }
 .teacher-mobile-driving .office-driving-tabs { flex: none; gap: 2px; padding: 2px; background: #e4e2da; }
 .teacher-mobile-driving .office-driving-tabs button { height: 44px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 700; }
 .teacher-mobile-driving .office-driving-grid > :is([data-other-day],.office-driving-day,.office-driving-row-label,div:empty) { display: none; }
 .teacher-mobile-driving .office-driving-cell::before { content: none; }
 .teacher-mobile-driving .office-driving-report-row {
  display: grid; min-height: 0; gap: 8px; padding: 12px 14px; border-color: #eeede8;
 }
 .teacher-mobile-driving .office-driving-report-row:first-child { border-top: 0; }
 .office-driving-report-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
 .office-driving-report-summary strong { flex: none; font-size: 16px; font-weight: 800; }
 .office-driving-report-summary span { flex: 0 1 auto; font-size: 13px; }
 .office-driving-report-downloads { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
 .teacher-mobile-driving .office-driving-report-downloads .button {
  min-width: 0; padding: 0 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font-size: 14px; line-height: 1.2; text-align: center;
 }
 .office-driving-archive-note { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

 .teacher-staff-tabs button { padding-inline: 10px; }
 .teacher-staff-grid, .teacher-staff-cars { display: grid; grid-template-columns: minmax(0,1fr); }
 .teacher-staff-edit { position: static; }
 .teacher-staff-person-summary { gap: 4px 8px; }
 .teacher-staff-card :is(button,summary) { height: auto; min-height: 44px; }
 .teacher-staff-car-list td:last-child { font-size: 11px; }
 .teacher-staff-car-list :is(th,td):first-child { padding-left: 10px; }
 .teacher-staff-car-list :is(th,td):last-child { padding-right: 10px; }

 .assessment-mobile-create button { min-height: 48px; }
 .teacher-assessment-form { padding: 0; border: 0; background: transparent; }
 .assessment-form-fields, .assessment-recipient-panel, .assessment-topic-list {
  padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
 }
 .assessment-form-fields :is(input,select) { height: 48px; font-size: 16px; }
 .assessment-creation :is(.assessment-topics,.assessment-recipient-heading) { margin-top: 26px; }
 .assessment-creation :is(.assessment-topics > summary,.assessment-recipient-heading) {
  font: 500 13px/1.4 var(--heading-font); letter-spacing: .06em; text-transform: uppercase;
 }
 .assessment-topic-list { display: block; padding: 0; overflow: hidden; }
 .assessment-topic-list .assessment-topic {
  grid-template-columns: minmax(0,1fr) 72px; gap: 0 10px; min-height: 62px;
  padding: 6px 10px 6px 16px; border: 0; border-radius: 0; border-top: 1px solid #eeede8;
 }
 .assessment-topic-list .assessment-topic:first-child { border-top: 0; }
 .assessment-topic-list .assessment-topic span { align-self: end; font-weight: 600; line-height: 1.25; }
 .assessment-topic-list .assessment-topic small { grid-column: 1; align-self: start; }
 .assessment-topic-list .assessment-topic input { grid-column: 2; grid-row: 1 / span 2; height: 46px; border-radius: 12px; font-size: 16px; }
 .assessment-creation .assessment-recipient-panel { padding-bottom: 14px; }
 .assessment-assignment .assessment-form-heading { display: block; padding: 18px; border-radius: 22px; background: var(--ink); color: #f4f3ee; }
 .assessment-assignment .assessment-form-heading h2 { color: #b5b6b1; font: 400 13px/1.4 var(--body-font,Manrope,sans-serif); }
 .assessment-assignment .assessment-form-heading p { margin-top: 6px; color: inherit; font: 600 21px/1.15 var(--heading-font); text-wrap: balance; }
 .assessment-form-actions button { flex: 1 1 min(100%,200px); min-height: 54px; font-size: 16px; }

 .office-document-types { margin: 0 0 12px; padding: 0; border: 0; background: none; }
 .office-document-types > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
 .office-document-types .tabs { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,145px),1fr)); gap: 10px; margin: 0; }
 .office-document-types .tabs button { min-height: 62px; text-align: left; border-radius: 16px; }
 .teacher-contract-stages { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; padding: 0; margin: 0; list-style: none; }
 .teacher-contract-stages li { min-width: 0; padding: 8px 5px; border-radius: 10px; background: #e9e7e0; color: var(--muted); text-align: center; font-size: 13px; font-weight: 700; }
 .teacher-contract-stages [aria-current="step"] { background: var(--ink); color: #f4f3ee; }
 .teacher-contract-step { display: grid; gap: 10px; min-width: 0; }
 .teacher-contract-step label { display: grid; min-width: 0; gap: 6px; color: var(--muted); font-size: 13px; }
 .teacher-contract-step :is(input,select) { min-height: 44px; width: 100%; min-width: 0; border-radius: 12px; font-size: 16px; }
 .teacher-contract-step:nth-of-type(3) { padding: 18px; border-radius: 18px; background: var(--ink); color: #f4f3ee; }
 .teacher-contract-step:nth-of-type(3) > h4, .teacher-contract-step:nth-of-type(3) > dl { margin: 0; }
 .teacher-contract-step:nth-of-type(3) > strong { font-size: 19px; }
 .teacher-contract-step dl { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px 10px; }
 .teacher-contract-step dt { color: #b5b6b1; }
 .teacher-contract-step dd { margin: 0; overflow-wrap: anywhere; }
 .teacher-contract-step .notice-box { margin: 0; color: var(--ink); }
 .teacher-contract-actions { display: flex; flex-wrap: wrap; gap: 8px; }
 .teacher-contract-actions button { min-height: 44px; flex: 1 1 100px; }
 .cabinet-sidebar--teacher ~ #content .student-training-modes button[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
 .cabinet-sidebar--teacher ~ #content .student-training-modes button[aria-pressed="true"] small { color: #b5b6b1; }
}

@media (max-width: 430px) {
 body:has(.cabinet-sidebar--office) .profile-toggle { padding: 0 5px; }
 body:has(.cabinet-sidebar--office) .profile-toggle span { display: none; }
}
.student-training {
 padding: 20px;
 border: 1px solid var(--line);
 border-radius: 18px;
 background: var(--surface);
}
.student-training-modes {
 display: flex; flex-wrap: wrap; gap: 4px;
 padding: 4px; margin-bottom: 18px; border-radius: 12px; background: #e9e7e0;
}
.student-training-modes button {
 flex: 1 1 auto; min-height: 44px; padding: 0 12px; border: 0; border-radius: 9px;
 background: transparent; color: var(--muted); font-weight: 600;
}
.student-training-modes button[aria-pressed="true"] { background: var(--surface); color: var(--ink); }
.student-training-modes button :is(b, small) { display: none; }
.student-ticket-note { margin: 0 0 14px; }
.student-tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.student-ticket {
 display: grid; place-content: center; gap: 2px;
 min-height: 64px; padding: 0; text-align: center;
}
.student-ticket b { font-size: 18px; line-height: 1.1; }
.student-ticket small { color: inherit; font-size: 11.5px; font-weight: 400; }
.student-ticket small:empty { display: none; }
.student-ticket[data-ticket-status="correct"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.student-ticket[data-ticket-status="errors"] { background: var(--accent); border-color: var(--accent); }
.student-ticket[data-ticket-status="started"] { border-color: var(--ink); }
.student-ticket-legend { display: none; }
.student-training-body > p:not(.student-ticket-note) { max-width: 72ch; }
.student-work-list, .student-history {
 margin-top: 0; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 18px;
 background: var(--surface);
}
.student-work-list > :is(h2,p), .student-history > p { padding: 16px 18px; margin: 0; }
.student-work {
 display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px 16px;
 padding: 14px 18px; border-top: 1px solid #e9e7e0;
}
.student-work:first-child { border-top: 0; }
.student-work h3 { margin: 0 0 2px; }
.student-work-kind { display: none; }
.student-work p { margin: 0; }
.student-work button, .student-history button { min-height: 44px; }
.student-history-row {
 display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 8px 16px;
 padding: 14px 18px;
}
.student-history-row + .student-history-row { border-top: 1px solid #e9e7e0; }
.student-history-row small { display: block; }
@media (max-width: 759px) {
 .student-training { padding: 0; border: 0; background: transparent; }
 .student-training-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; padding: 0; background: none; margin-bottom: 12px; }
 .student-training-modes button {
  display: flex; flex-direction: column; justify-content: space-between; align-items: start; gap: 8px;
  min-height: 118px; padding: 14px; border: 1.5px solid var(--line); border-radius: 18px;
  color: var(--ink); background: var(--surface); text-align: left;
 }
 .cabinet-sidebar--student ~ #content .student-training-modes button[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
 .cabinet-sidebar--student ~ #content .student-training-modes button[aria-pressed="true"] small { color: #b5b6b1; }
 .student-training-modes button b { display: block; font: 600 24px/1 var(--heading-font); }
 .student-training-modes button small { display: block; color: var(--muted); font-weight: 400; }
 .student-training-body { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
 .student-ticket-note { display: none; }
 .student-tickets { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
 .student-ticket { justify-self: center; width: 56px; min-height: 56px; border: 2px solid #b9b7ae; border-radius: 50%; font-family: var(--heading-font); }
 .student-ticket b { font-size: 15px; font-weight: 600; }
 .student-ticket small:not(:empty) { display: none; }
 .student-ticket-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; color: var(--muted); font-size: 13px; }
 .student-ticket-legend span { display: flex; align-items: center; gap: 6px; }
 .student-ticket-legend span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); }
 .student-ticket-legend span:nth-child(2)::before { background: var(--accent); }
 .student-ticket-legend span:nth-child(3)::before { background: transparent; border: 2px solid #b9b7ae; }
 .student-work-list { display: grid; gap: 10px; background: none; border: 0; border-radius: 0; }
 .student-work { grid-template-columns: minmax(0, 1fr) auto; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
 .student-work:first-child { border-top: 1px solid var(--line); }
 .student-work-details { grid-column: 1 / -1; }
 .student-work-list > p { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
 .cabinet-sidebar--student ~ #content .student-work { gap: 10px; padding: 18px; }
 .cabinet-sidebar--student ~ #content .student-work-kind {
  display: inline-block; margin-bottom: 10px; padding: 4px 8px; border-radius: 6px; color: #fff; background: var(--ink);
  font: 600 11px/1.4 var(--heading-font); letter-spacing: .06em; text-transform: uppercase;
 }
 .cabinet-sidebar--student ~ #content .student-work-title-prefix { display: none; }
 .cabinet-sidebar--student ~ #content .student-work h3 { font-size: 19px; margin-bottom: 6px; line-height: 1.2; }
 .student-history-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
}

button.trash-button[type="button"] {
 display: inline-grid;
 place-items: center;
 flex: none;
 width: 44px;
 min-width: 44px;
 min-height: 44px;
 padding: 0;
}
.trash-button svg { display: block; pointer-events: none; }

#account-panel:has(> :is(.teacher-push-actions, .push-profile-button)) {
 grid-template-columns: minmax(0, 1fr) auto;
}
#account-panel > strong { grid-area: 1 / 1; }
#account-panel > small { grid-area: 2 / 1; }
#account-panel > #logout { grid-area: 3 / 1 / auto / -1; }
#account-panel > :is(.teacher-push-actions, .push-profile-button) {
 grid-area: 1 / 2 / span 2;
 justify-self: end;
}
#account-panel > .teacher-push-actions { display: flex; gap: 4px; }
#account-panel .push-profile-button {
 display: grid;
 place-items: center;
 padding: 0;
 border: 0;
 border-radius: 8px;
 background: transparent;
}
.push-profile-button > svg { display: block; }
.push-profile-label { display: none; }
@media (max-width: 759px) {
 #account-panel:has(> :is(.teacher-push-actions, .push-profile-button)) {
  width: min(306px, calc(100vw - 28px));
  column-gap: 10px;
 }
 #account-panel > :is(.teacher-push-actions, .push-profile-button) { align-self: center; }
 #account-panel .push-profile-button {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  color: var(--ink);
 }
 #account-panel .push-profile-button:is(:hover, :focus-visible) { background: var(--paper); }
}
@media (min-width: 760px) {
 #account-panel > :is(.teacher-push-actions, .push-profile-button) {
  align-self: stretch;
  margin: 0 0 0 6px;
 }
 #account-panel .push-profile-button {
  width: 32px;
  min-height: 0;
  color: #f4f3ee;
 }
 #account-panel .push-profile-button:is(:hover, :focus-visible) { color: var(--accent); }
 #account-panel .push-profile-button:focus-visible { outline-color: var(--accent); outline-offset: 2px; }
 #account-panel .teacher-push-actions > .push-profile-button { margin: 0; }
}
@media (min-width: 760px) and (max-width: 1049px) {
 body:has(.cabinet-sidebar--teacher) #account:has(.teacher-push-actions) {
  width: calc(var(--sidebar-width) - 20px);
 }
 #account-panel > .teacher-push-actions { gap: 2px; margin-inline-start: 4px; }
 #account-panel .teacher-push-actions > .push-profile-button { width: 28px; }
}
.push-announcement { width: min(520px, calc(100vw - 32px)); }
.push-announcement form { display: grid; gap: 14px; }
.push-announcement form > label { display: grid; gap: 5px; }
.push-announcement-tabs { margin: 0; }
.push-announcement-recipients { display: grid; max-height: min(240px, 35dvh); overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.push-announcement-recipients[hidden], .push-announcement-status:empty { display: none; }
.push-announcement-recipient { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; cursor: pointer; }
.push-announcement-recipient + .push-announcement-recipient { border-top: 1px solid var(--line); }
.push-announcement-recipient input { flex: none; margin: 0; accent-color: var(--ink); }
.push-announcement-recipient span { overflow-wrap: anywhere; }
.push-announcement-recipients > p { margin: 0; padding: 12px; }
.push-announcement textarea { width: 100%; min-width: 0; resize: vertical; }
.push-announcement-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

body #notice[data-save]:not(:empty) {
 top: calc(16px + env(safe-area-inset-top, 0px));
 bottom: auto;
 z-index: 120;
 pointer-events: none;
}

#notification-bell {
 position: relative;
 display: grid;
 place-items: center;
 flex: none;
 width: 44px;
 height: 44px;
 padding: 0;
 border: 0;
 border-radius: 12px;
 color: #f4f3ee;
 background: transparent;
}
#notification-bell:hover { color: var(--accent); }
@media (max-width: 759px) {
 body:has(:is(.cabinet-sidebar--office, .cabinet-sidebar--mpov)) .platform-header > #notification-bell { order: 2; }
 body:has(.cabinet-sidebar--office) .platform-header > #notification-bell { margin-inline-start: auto; }
}
#notification-bell[data-unread] svg {
 transform-origin: 50% 16%;
 animation: notification-bell-ring 3s ease-in-out infinite;
}
#notification-bell[data-unread]::before,
#notification-bell[data-unread]::after {
 content: "";
 position: absolute;
 top: 50%;
 width: 8px;
 height: 17px;
 border-radius: 50%;
 pointer-events: none;
 opacity: 0;
 animation: notification-bell-waves 3s ease-out infinite;
}
#notification-bell[data-unread]::before {
 left: 2px;
 border-left: 3px double var(--accent);
 transform-origin: right center;
}
#notification-bell[data-unread]::after {
 right: 2px;
 border-right: 3px double var(--accent);
 transform-origin: left center;
}
@keyframes notification-bell-ring {
 0%, 30%, 100% { transform: rotate(0); }
 5%, 15% { transform: rotate(-17deg); }
 10%, 20% { transform: rotate(17deg); }
 25% { transform: rotate(-8deg); }
}
@keyframes notification-bell-waves {
 0%, 15% { opacity: 0; transform: translateY(-50%) scale(.7); }
 6%, 21% { opacity: 1; }
 14%, 29%, 100% { opacity: 0; transform: translateY(-50%) scale(1.2); }
}
@media (prefers-reduced-motion: reduce) {
 #notification-bell[data-unread] svg,
 #notification-bell[data-unread]::before,
 #notification-bell[data-unread]::after { animation: none; }
}
#notification-bell span:not([hidden]) {
 position: absolute;
 top: -4px;
 right: -4px;
 display: grid;
 place-items: center;
 min-width: 18px;
 height: 18px;
 padding-inline: 3px;
 border-radius: 999px;
 font-size: 10px;
 font-weight: 800;
 color: var(--ink);
 background: var(--accent);
}
@media (min-width: 760px) {
 body:has(:is(.cabinet-sidebar--office, .cabinet-sidebar--mpov, .cabinet-sidebar--student)) #notification-bell {
  position: fixed;
  top: 22px;
  left: 98px;
  z-index: 6;
  margin: 0;
 }
}
.push-consent { width: min(340px, calc(100vw - 32px)); }
.push-consent-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.push-consent-actions .primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.push-consent-actions .primary:hover { background: var(--accent-hover); }
.push-consent-no { background: #f3f0e6; color: var(--ink); }
.push-inbox {
 width: min(540px, calc(100vw - 24px));
 max-height: min(620px, calc(100dvh - 24px));
 overflow-y: auto;
}
.push-inbox-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.push-inbox-heading h2 { margin: 0; }
.push-inbox-list { display: grid; gap: 8px; }
.push-inbox-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow-wrap: anywhere; }
.push-inbox-item[data-unread] { background: #fff7dc; }
.push-inbox-item summary { cursor: pointer; padding: 12px 14px; }
.push-inbox-item summary span { font-weight: 650; }
.push-inbox-item time { display: block; margin: 4px 0 0 15px; font-size: .78em; color: var(--muted); }
.push-inbox-item p { margin: 0; padding: 0 14px 12px; white-space: pre-wrap; }
.push-inbox-status:empty { display: none; }
.push-inbox-more:not([hidden]) { margin-top: 12px; }

@media (max-width: 759px) {
 body:has(.mpov-driving-agenda) #header-section-title { white-space: normal; overflow-wrap: anywhere; }
 .mpov-driving-agenda .office-driving-heading { margin-bottom: 0; }
 .mpov-driving-agenda.mpov-driving-single-day .office-driving-heading { margin-bottom: 10px; }

 .mpov-driving-agenda .mpov-driving-days {
  grid-template-columns: 22px repeat(7, minmax(0, 1fr)) 22px;
  align-items: center; gap: 3px; padding: 7px 5px; margin-bottom: 10px;
  border: 1px solid var(--line); border-radius: 18px; background: #fff;
 }
 .teacher-mobile-driving.mpov-driving-agenda .mpov-driving-days {
  grid-template-columns: repeat(7, minmax(0,1fr)); gap: 4px; padding: 2px 8px 8px;
 }
 .mpov-driving-agenda .mpov-driving-days button[data-day] {
  display: flex; flex-direction: column; align-items: stretch; justify-content: center;
  padding: 0 4px; border: 1.5px solid transparent; border-radius: 12px; background: transparent;
  color: var(--muted); font-size: 11.5px; line-height: 1.15;
 }
 .mpov-driving-agenda .mpov-driving-days strong { color: var(--ink); font-size: 15px; line-height: 1.2; }
 .mpov-driving-agenda .mpov-driving-days button[aria-current="date"] { border-color: var(--ink); }
 .mpov-driving-agenda .mpov-driving-days button[data-day][aria-pressed="true"] {
  border-color: var(--ink); background: var(--ink); color: #b5b6b1; outline: none;
 }
 .mpov-driving-agenda .mpov-driving-days button[data-day]:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
 .mpov-driving-agenda .mpov-driving-days button[aria-pressed="true"] strong { color: #fff; }
 .mpov-driving-agenda .mpov-driving-days button.mpov-driving-rest-day,
 .mpov-driving-agenda .mpov-driving-days button.mpov-driving-rest-day strong,
 .mpov-driving-agenda .mpov-driving-calendar-summary .mpov-driving-rest-day,
 .mpov-driving-month :is(.mpov-month-weekday, .mpov-month-days button).mpov-driving-rest-day { color: var(--driving-danger); }
 .mpov-driving-agenda .mpov-driving-days button.mpov-driving-rest-day[aria-pressed="true"] {
  border-color: var(--driving-danger); background: #fff1ee; color: var(--driving-danger);
 }
 .teacher-mobile-driving .mpov-driving-days button.office-driving-rest-day,
 .teacher-mobile-driving .mpov-driving-days button.office-driving-rest-day strong,
 .teacher-mobile-driving .mpov-driving-calendar-summary .office-driving-rest-day { color: var(--driving-rest-day-color); }
 .teacher-mobile-driving .mpov-driving-days button.office-driving-rest-day[aria-pressed="true"] {
  border-color: var(--driving-rest-day-color); background: #fff1ee; color: var(--driving-rest-day-color);
 }
 .office-driving .mpov-driving-day-load { display: flex; gap: 1.5px; margin-top: 6px; }
 .office-driving .mpov-driving-day-load i { flex: 1; min-width: 0; height: 4px; border-radius: 1px; }
 .office-driving-month-report .mpov-driving-day-load i { flex: 0 0 4px; }
 .mpov-driving-agenda .mpov-driving-days .mpov-driving-week-arrow {
  width: 100%; min-height: 44px; height: auto; border: 0;
  background: transparent; color: var(--ink); font-size: 24px; line-height: 1;
 }

 .mpov-driving-agenda .mpov-driving-calendar {
  gap: 0; padding: 0; overflow: hidden; touch-action: pan-y;
 }
 .mpov-driving-agenda .mpov-driving-calendar-summary {
  display: flex; flex-flow: row wrap; align-items: baseline; gap: 2px 8px; padding: 12px 14px 10px;
 }
 .mpov-driving-agenda .mpov-driving-calendar-summary strong { font-size: 16px; }
 .mpov-driving-agenda .mpov-driving-calendar-summary > :last-child { margin-inline-start: auto; }
 .mpov-driving-agenda .mpov-driving-agenda-day-note:empty { display: none; }
 .mpov-driving-agenda .office-driving-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
 .mpov-driving-agenda-row {
  display: flex; align-items: center; min-width: 0; min-height: 54px; padding-inline-end: 6px;
  border-top: 1px solid #eeede8; background: #fff;
 }
 .mpov-driving-agenda-row.free { background: #fff8d6; }
 .mpov-driving-agenda-row.booked { background: var(--driving-booked); }
 .mpov-driving-agenda-row.absent { background: #fbe3de; }
 .teacher-mobile-driving .office-driving-additional-shift-row { border-top: 1px dashed #c4c2b9; }
 :is(.mpov-driving, .teacher-mobile-driving).mpov-driving-agenda .mpov-driving-agenda-row .office-driving-cell {
  flex: 1; display: flex; flex-direction: row; align-items: center; justify-content: flex-start;
  gap: 10px; min-height: 53px; height: auto; min-width: 0; padding: 3px 0 3px 14px; border: 0;
  border-radius: 0; background: transparent; box-shadow: none; color: var(--ink); text-align: start;
 }
 .mpov-driving-agenda .office-driving-cell[aria-pressed="true"]:not(:focus-visible) { outline: none; }
 :is(.mpov-driving, .teacher-mobile-driving).mpov-driving-agenda .office-driving-cell:focus-visible { outline-offset: -3px; }
 .mpov-driving-agenda-time {
  display: grid; flex: 0 0 88px; gap: 2px; line-height: 1.2; font-variant-numeric: tabular-nums;
 }
 .mpov-driving-agenda-time strong { font-size: 14px; font-weight: 700; }
 .mpov-driving-agenda-time small { font-size: 11.5px; font-weight: 500; }
 .mpov-driving-agenda-details { flex: 1; min-width: 0; line-height: 1.2; }
 .mpov-driving-agenda-details > span {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600;
 }
 .mpov-driving-agenda-row:is(.booked, .absent) .mpov-driving-agenda-details > span { font-weight: 800; }
 .mpov-driving-agenda-row.closed .mpov-driving-agenda-details > span { color: var(--muted); }
 .mpov-driving-agenda-details small { color: #c8321f; font-size: 12px; font-weight: 700; }
 .mpov-driving-agenda-chevron { flex: 0 0 34px; text-align: center; font-size: 22px; line-height: 1; color: var(--muted); }
 .mpov-driving-availability-toggle {
  flex: 0 0 58px; height: 46px; min-height: 46px; display: grid; place-items: center;
  padding: 0; border: 0; background: transparent;
 }
 .mpov-driving-availability-toggle:hover { background: transparent; }
 .mpov-driving-availability-toggle > span {
  position: relative; display: block; width: 46px; height: 28px; border-radius: 14px; background: #c4c2b9;
 }
 .mpov-driving-availability-toggle > span::before {
  position: absolute; inset: 3px auto 3px 3px; width: 22px; border-radius: 50%; background: #fff; content: "";
 }
 .mpov-driving-availability-toggle[aria-checked="true"] > span { background: var(--ink); }
 .mpov-driving-availability-toggle[aria-checked="true"] > span::before { background: var(--accent); transform: translateX(18px); }

 :is(.mpov-driving, .teacher-mobile-driving).mpov-driving-agenda .office-driving-legend {
  display: flex; gap: 6px 12px; padding-inline: 2px; margin-top: 10px; font-size: 12px;
 }
 .mpov-driving-agenda .office-driving-legend i {
  width: 12px; height: 12px; border-radius: 3px; border: 0; background: var(--line);
 }
 .mpov-driving-agenda :is(.office-driving-legend i, .mpov-driving-day-load i).free { background: var(--accent); }
 .mpov-driving-agenda .office-driving-legend i.booked,
 .office-driving .mpov-driving-day-load i.booked { background: #2f8b50; }
 .mpov-driving-agenda :is(.office-driving-legend i, .mpov-driving-day-load i).closed { background: var(--line); }
 .mpov-driving-agenda :is(.office-driving-legend i, .mpov-driving-day-load i).absent { background: #c8321f; }
 .mpov-driving-agenda [aria-pressed="true"]:not(.mpov-driving-rest-day, .office-driving-rest-day) .mpov-driving-day-load .closed { background: #4a4d52; }
 .mpov-driving-agenda [aria-pressed="true"]:not(.mpov-driving-rest-day, .office-driving-rest-day) .mpov-driving-day-load .absent { background: #ff9a8a; }
 .mpov-driving-agenda .office-driving-hint { margin: 8px 2px 0; text-wrap: pretty; }

 :is(.mpov-driving, .teacher-mobile-driving) .mpov-driving-slot-sheet {
  inset: auto 0 0; width: 100%; max-width: 520px; height: auto; max-height: 86vh; max-height: 86dvh;
  margin-inline: auto; padding: 8px 16px max(18px, env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
 }
 :is(.mpov-driving, .teacher-mobile-driving) .mpov-driving-slot-sheet[open] { display: grid; gap: 12px; }
 .mpov-driving-slot-sheet::backdrop { background: rgb(23 24 26 / 60%); }
 :is(.mpov-driving, .teacher-mobile-driving) .mpov-driving-slot-sheet > .mpov-driving-sheet-handle {
  justify-self: center; display: block; width: 40px; height: 4px; border-radius: 2px; background: #4a4d52;
 }
 .mpov-driving-slot-sheet .office-driving-slot-caption { color: #b5b6b1; font-size: 13px; }
 .mpov-driving-slot-sheet h2 { margin: 2px 0 0; font: 600 18px/1.25 var(--heading-font); }
 :is(.mpov-driving, .teacher-mobile-driving) .mpov-driving-slot-sheet .office-driving-slot-actions {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
 }
 :is(.mpov-driving, .teacher-mobile-driving) .mpov-driving-slot-sheet .office-driving-slot-actions:empty { display: none; }
 .mpov-driving-slot-sheet .office-driving-slot-actions > button {
  min-width: 0; min-height: 48px; padding-inline: 8px; border-radius: 12px; text-align: center; font-size: 14px;
 }
 .mpov-driving-slot-sheet .office-driving-note { grid-column: 1 / -1; }
 .mpov-driving-slot-sheet .office-driving-assignment { margin-bottom: 4px; font-size: 13px; }
 :is(.mpov-driving, .teacher-mobile-driving) .mpov-driving-slot-sheet .office-driving-student-results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
 :is(.mpov-driving, .teacher-mobile-driving) .mpov-driving-slot-sheet .office-driving-assignment-button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 48px; padding: 0 2px; border: 0; border-top: 1px solid var(--dark-line); border-radius: 0;
  background: none; text-align: left; font-weight: 600;
 }
 .mpov-driving-slot-sheet .office-driving-assignment-button .muted { flex: none; font-size: 13px; }
 :is(.mpov-driving, .teacher-mobile-driving) .mpov-driving-slot-sheet .mpov-driving-slot-close {
  width: 100%; min-height: 48px; border-radius: 12px; background: none; text-align: center; font-weight: 600;
 }
 .teacher-mobile-driving .mpov-driving-slot-sheet .office-driving-student-card {
  color: var(--ink); background: var(--accent); border-color: var(--accent);
 }

 body:has(.mpov-driving-agenda) #notice:not(:empty) {
  inset: 0 0 auto; transform: none; display: flex; align-items: center; justify-content: center;
  min-height: 60px; max-width: none; padding: 8px 16px; border-radius: 0;
  background: var(--accent); color: var(--ink); box-shadow: none;
 }
}
@media (max-width: 759px) and (prefers-reduced-motion: no-preference) {
 :is(.mpov-driving, .teacher-mobile-driving) .mpov-driving-slot-sheet[open] { animation: mpov-sheet-rise .3s cubic-bezier(.2,.8,.2,1); }
 .mpov-driving-slot-sheet[open]::backdrop { animation: mpov-agenda-appear .25s ease-out; }
 .mpov-driving-agenda :is(.mpov-driving-days, .mpov-driving-calendar) { animation: mpov-agenda-appear .2s ease-out; }
 body:has(.mpov-driving-agenda) #notice:not(:empty) { animation: mpov-notice-slide .25s ease-out; }
 @keyframes mpov-sheet-rise { from { transform: translateY(100%); } }
 @keyframes mpov-agenda-appear { from { opacity: 0; } }
 @keyframes mpov-notice-slide { from { transform: translateY(-100%); } }
}

@media (max-width: 759px) {
 .student-bookings-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 14px 0 10px; padding: 0; border: 0; background: none;
 }
 .student-bookings-heading h2 { margin: 0; }
 .student-bookings-heading .student-driving-view-switch {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
 }
 .student-driving-view-icon { display: grid; grid-template-columns: repeat(2, 6px); gap: 3px; }
 .student-driving-view-icon i { width: 6px; height: 6px; border-radius: 1px; background: currentColor; }
 .student-driving-view-switch[data-target-view="list"] .student-driving-view-icon { grid-template-columns: 17px; gap: 3px; }
 .student-driving-view-switch[data-target-view="list"] .student-driving-view-icon i { width: 17px; height: 2px; }
 .student-driving-view-switch[data-target-view="list"] .student-driving-view-icon i:last-child { display: none; }

 .student-driving-mobile .student-parking-card {
  margin-top: 8px; padding: 6px 8px 10px; border: 1px solid var(--line); border-radius: 18px; background: #fff;
 }
 .student-driving-mobile .student-parking-grid {
  display: grid; grid-template-columns: 38px repeat(7, minmax(0, 1fr)); gap: 3px;
 }
 .student-parking-row { display: contents; }
 .student-parking-day {
  display: grid; place-content: center; text-align: center; height: 40px; border-radius: 10px;
  font-size: 11.5px; line-height: 1.15; color: var(--ink);
 }
 .student-parking-day b { font: 600 14px/1.2 var(--heading-font); }
 .student-parking-day[aria-current="date"] { background: var(--ink); color: white; }
 .student-parking-day.student-driving-rest-day { color: #800020; }
 .student-parking-day.student-driving-rest-day[aria-current="date"] { background: #f7e7ec; }
 .student-parking-time {
  display: flex; flex-direction: column; justify-content: center; padding-inline-start: 2px;
  font-variant-numeric: tabular-nums; line-height: 1.2;
 }
 .student-parking-time b { font-size: 13px; }
 .student-parking-time span { color: var(--muted); font-size: 10.5px; white-space: nowrap; }
 .student-parking-slot {
  position: relative; display: grid; place-items: center; width: 100%; min-width: 0; height: 44px;
  padding: 0; border-radius: 10px; border: 0; overflow: hidden;
 }
 .student-driving .student-parking-grid .student-parking-slot:focus-visible { outline-offset: -3px; z-index: 1; }
 .student-parking-slot::before {
  content: ""; position: absolute; inset: 3px 5px -2px;
  border: 2px solid var(--parking-line); border-radius: 6px 6px 0 0; pointer-events: none;
 }
 .student-parking-car { position: relative; display: block; margin-top: 3px; }
 .student-driving .student-parking-card [data-slot-state="open"] { background: var(--accent); --parking-line: #17181a52; }
 .student-driving .student-parking-card [data-slot-state="mine"] {
  background: var(--ink); color: var(--accent); --parking-line: #4a4d52; --parking-glass: var(--ink);
 }
 .student-driving .student-parking-card [data-slot-state="booked"] {
  background: #e9e7e0; color: #9a9890; --parking-line: #cfcdc4; --parking-glass: #e9e7e0;
 }
 .student-driving .student-parking-card [data-slot-state="closed"] {
  background: repeating-linear-gradient(135deg, #d6d4cc 0 2px, transparent 2px 6px); border: 0;
 }
 .student-parking-slot:is(.student-parking-past, [data-slot-state="closed"])::before { display: none; }
 .student-driving .student-parking-grid .student-parking-past { background: transparent; }
 .student-parking-card .student-driving-legend { gap: 6px 12px; margin-top: 10px; padding: 0 2px; font-size: 12px; }
 .student-parking-card .student-driving-legend i { width: 12px; height: 12px; border-radius: 3px; }
 .student-parking-card .student-driving-legend i:is([data-slot-state="mine"], [data-slot-state="booked"]) { display: grid; place-items: center; }
 .student-parking-card .student-driving-legend i:is([data-slot-state="mine"], [data-slot-state="booked"])::after {
  content: ""; width: 4px; height: 8px; border-radius: 2px; background: currentColor;
 }
}

.office-driving :is(.has-driving-exams, .has-shared-driving-exams),
.office-driving :is(.mpov-month-days button, .mpov-driving-days button, .office-driving-day, .mpov-driving-date time, .mpov-driving-calendar-summary strong):is(.has-driving-exams, .has-shared-driving-exams),
.office-driving.mpov-driving-agenda .mpov-driving-days button[data-day]:is(.has-driving-exams, .has-shared-driving-exams),
.mpov-exam-legend-date {
 background: var(--driving-exam-fill, var(--accent)); border-color: var(--ink); color: var(--ink);
}
.office-driving .has-shared-driving-exams, .mpov-exam-legend-date.has-shared-driving-exams {
 --driving-exam-fill: color-mix(in srgb, var(--accent) 28%, var(--surface));
}
.office-driving.mpov-driving-agenda .mpov-driving-days button[aria-pressed="true"]:is(.has-driving-exams, .has-shared-driving-exams) {
 outline: 2px solid var(--ink); outline-offset: 0;
}
.office-driving :is(.mpov-driving-days button, .mpov-driving-date button):is(.has-driving-exams, .has-shared-driving-exams) :is(strong, time) {
 color: inherit;
}
.office-driving .driving-day > time.has-driving-exams,
.office-driving :is(.mpov-driving-date time, .mpov-driving-calendar-summary strong).has-shared-driving-exams {
 padding: 4px 8px; border-radius: 8px;
}
.office-driving .driving-day > time.has-driving-exams h3 { margin: 0; }
.mpov-exam-day-legend { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.mpov-driving.mpov-driving-month .office-driving-legend { display: flex; margin: 10px 2px 0; }
.mpov-exam-legend-date {
 display: inline-grid; place-items: center; min-width: 28px; height: 26px; padding-inline: 4px;
 border-width: 1px; border-style: solid; border-radius: 8px; font-size: 14px; line-height: 1;
}
