:root { --blue:var(--surface-accent-fill,#0b62c4); --blue-text:var(--surface-accent-text,#0a4f96); --nav:#0b1726; --text:#142034; --muted:#627186; --line:#d8e1ec; --bg:#f3f7fb; --panel:#fff; --panel-strong:#fff; --soft:#edf4fb; --green:var(--surface-success-fill,#0e7048); --red:var(--surface-danger-fill,#b3261e); --shadow:0 10px 28px rgba(20,32,52,.10); }
body[data-theme="dark"] { --blue:var(--surface-accent-fill,#0b62c4); --blue-text:var(--surface-accent-text,#5dadef); --nav:#06111d; --text:#e7eef8; --muted:#9fb2c8; --line:#263850; --bg:#08121f; --panel:#101c2c; --panel-strong:#132033; --soft:#16253a; --green:var(--surface-success-text,#56d49c); --red:var(--surface-danger-text,#ff9c94); color-scheme:dark; background:var(--bg); }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--text); font:16px/1.5 "Segoe UI",Arial,sans-serif; }
[hidden] { display:none!important; }
a { color:var(--blue-text,var(--surface-accent-text,var(--blue))); text-decoration:none; }
a:hover { text-decoration:underline; }
p { color:var(--muted); margin:0 0 16px; }
h1,h2,h3 { line-height:1.2; margin:0 0 12px; }
h1 { font-size:1.8rem; } h2 { font-size:1.35rem; } h3 { font-size:1.08rem; }
button,input,select,textarea { font:inherit; }
button,a,input,select,textarea { touch-action:manipulation; }
:focus-visible { outline:3px solid #58a9f5; outline-offset:3px; }
.student-shell,.surface-shell.request-shell { width:auto; max-width:none; margin:0 0 0 248px; padding:28px 32px 48px; min-height:100vh; }
.student-sidebar { position:fixed; inset:0 auto 0 0; width:248px; overflow:auto; padding:16px 12px; background:var(--nav); border-right:4px solid var(--blue); color:#eef6ff; }
.student-brand { display:flex; align-items:center; gap:10px; padding:0 6px 18px; border-bottom:1px solid #ffffff22; }
.student-brand img { width:80px; height:50px; object-fit:contain; border-radius:7px; }
.student-brand strong,.student-brand small { display:block; } .student-brand { color:#eef6ff; }
.student-brand small { color:#adc0d5; font-size:.78rem; }
.student-navigation { display:grid; gap:7px; padding-top:16px; }
.student-navigation a,.student-navigation button { display:block; width:100%; padding:10px 12px; min-height:44px; border:1px solid #ffffff22; border-radius:7px; background:#ffffff0f; color:#e9f3ff; text-align:left; font-weight:650; box-shadow:none; }
.student-navigation [aria-current="page"],.student-navigation [aria-selected="true"] { background:var(--surface-accent-fill,#0b62c4); border-color:var(--surface-accent-fill,#0b62c4); color:var(--surface-on-accent,#fff); }
.theme-control { display:grid; gap:6px; margin:24px 6px 0; font-size:.85rem; color:#adc0d5; }
.theme-control select { color:#eef6ff; background:#132033; border:1px solid #ffffff33; }
.page-heading { display:flex; justify-content:space-between; gap:16px; align-items:center; border-bottom:1px solid var(--line); margin-bottom:24px; padding-bottom:18px; }
.page-heading p { margin:0; }
.eyebrow { color:var(--muted); font-size:.8rem; font-weight:700; margin-bottom:5px; }
.lane-panel { max-width:1120px; }
.grid,.action-grid,.mini-grid,.access-grid,.form-grid,.request-grid,.rating-grid { display:grid; gap:16px; }
.action-grid,.access-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.form-grid,.request-grid,.rating-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.action-card,.mini-card,.panel,.lesson-section,.resource-card,.surface-section { min-width:0; border:1px solid var(--line); border-radius:9px; background:var(--panel); padding:22px; }
.action-card { display:flex; flex-direction:column; align-items:flex-start; color:var(--text); gap:9px; min-height:174px; }
.action-card:hover,.resource-card:hover { border-color:var(--blue); text-decoration:none; }
.action-card strong { font-size:1.1rem; }
.action-card p { margin:0; }
.action-card .action-label { color:var(--blue-text,var(--surface-accent-text,var(--blue))); font-weight:650; margin-top:auto; }
.lane-header { margin-bottom:20px; }
.panel { margin-bottom:16px; }
label,.request-field { display:grid; gap:6px; color:var(--text); font-weight:600; }
input,select,textarea,.request-field input,.request-field select,.request-field textarea { width:100%; min-width:0; min-height:44px; padding:10px 12px; border:1px solid var(--line); border-radius:6px; background:var(--panel-strong); color:var(--text); }
textarea { min-height:100px; resize:vertical; }
form>label,form>.form-grid { margin-bottom:16px; }
.wide { grid-column:1/-1; }
.button,button:not(.lane-tab),.request-submit { display:inline-flex; justify-content:center; align-items:center; gap:6px; min-height:44px; padding:10px 16px; border:1px solid var(--surface-accent-fill,var(--blue)); border-radius:7px; background:var(--surface-accent-fill,var(--blue)); color:var(--surface-on-accent,#fff); font-weight:650; cursor:pointer; box-shadow:none; }
button:disabled { opacity:1; cursor:not-allowed; color:var(--surface-button-disabled-fg,#44556c); background:var(--surface-button-disabled-bg,#e6edf4); border-color:var(--line); }
.actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.status-panel { padding:12px 0 0; color:var(--muted); overflow-wrap:anywhere; }
.status-panel[data-error="true"] { color:var(--red); }
.empty-state { padding:20px; border:1px solid var(--line); border-radius:7px; background:var(--soft); color:var(--muted); margin-bottom:16px; }
.resource-card { display:block; color:var(--text); }
.resource-card strong { display:block; color:var(--blue-text,var(--surface-accent-text,var(--blue))); margin-bottom:6px; }
.resource-card p { margin:0; }
details { margin-top:20px; } summary { cursor:pointer; font-weight:650; padding:10px 0; }
.lesson-section { margin:20px 0; } legend { padding:0 6px; }
.scroll-top { position:fixed; right:18px; bottom:18px; }
body:has(form.survey-form:not([hidden])) .scroll-top { display:none!important; }
.request-shell .surface-hero { display:block; padding:0 0 18px; margin:0 0 24px; min-height:0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:none; box-shadow:none; color:var(--text); }
.request-shell .surface-hero::before,.request-shell .surface-hero::after { display:none; }
.request-shell .surface-hero h1 { font-size:1.8rem; color:var(--text); max-width:none; }
.request-shell .surface-hero p { color:var(--muted); max-width:none; font-size:1rem; }
.request-shell .surface-section { padding:22px; margin:0; box-shadow:none; }
.request-shell .request-form { max-width:none; }
.request-shell .intake-tabs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
.request-shell .intake-tab { background:var(--panel); color:var(--text); border-color:var(--line); }
.request-shell .intake-tab.active { background:var(--surface-accent-fill,var(--blue)); color:var(--surface-on-accent,#fff); border-color:var(--surface-accent-fill,var(--blue)); }
.request-shell .request-note { color:var(--muted); background:var(--soft); border-color:var(--line); }
.request-shell .request-field,.request-shell .request-field input,.request-shell .request-field select,.request-shell .request-field textarea { color:var(--text); }
.request-shell .request-field { font:600 1rem/1.5 "Segoe UI",Arial,sans-serif; text-transform:none; letter-spacing:0; }
.request-shell .request-field input,.request-shell .request-field select,.request-shell .request-field textarea,.request-shell .request-note { font:400 1rem/1.5 "Segoe UI",Arial,sans-serif; }
.request-shell .request-status,.request-shell .feedback-note { background:var(--soft); color:var(--text); border-color:var(--line); }
@media(max-width:860px) {
 .student-sidebar { position:static; width:auto; border-right:0; border-bottom:3px solid var(--blue); }
 .student-brand { padding-bottom:12px; }
 .student-navigation { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .theme-control { display:flex; align-items:center; margin:14px 0 0; } .theme-control select { width:auto; }
 .student-shell,.surface-shell.request-shell { margin:0; padding:22px 16px 48px; }
 .action-grid,.access-grid { grid-template-columns:1fr 1fr; }
}
@media(max-width:540px) { .action-grid,.access-grid,.form-grid,.request-grid,.rating-grid { grid-template-columns:1fr; } .panel,.surface-section,.request-shell .surface-section { padding:16px; } .page-heading { display:block; } }

/* Survey controls retain their native scale and fit comfortably on a phone. */
.request-shell .optional-rating { display:none!important; }
.request-shell .check-option { display:flex; align-items:center; min-height:48px; gap:12px; text-transform:none; }
.request-shell .check-option input[type=checkbox] { width:22px; height:22px; min-height:22px; flex:0 0 22px; margin:0; padding:0; accent-color:var(--blue); }
.survey-form { width:100%; max-width:960px!important; margin-inline:auto; }
.survey-step { min-width:0; }
.survey-step>h3 { margin:0 0 20px; font-size:1.3rem; }
.survey-step>label,.survey-step>.form-grid,.survey-step>.rating-grid,.survey-step>fieldset { margin-bottom:20px; }
.survey-step label { line-height:1.5; text-transform:none; }
.survey-step input,.survey-step select,.survey-step textarea { font-size:16px!important; }
.survey-step textarea { min-height:120px; }
.survey-step select { text-overflow:ellipsis; padding-right:28px; }
.survey-progress { font-weight:650; color:var(--text); padding:12px 0; margin:0 0 12px; border-bottom:2px solid var(--line); scroll-margin-top:16px; }
.survey-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:12px; }
.survey-actions button { min-width:120px; min-height:48px; }
.survey-actions .survey-back { color:var(--text); background:var(--panel); border-color:var(--line); }
.survey-form .request-status { min-width:0; }
@media(max-width:860px) {
 .student-navigation { gap:6px; padding-top:12px; }
 .student-navigation a { font-size:14px; padding:8px 10px; }
 .student-brand img { width:60px; height:38px; }
 .theme-control { margin-top:10px; }
}
@media(max-width:540px) {
 .survey-step .rating-grid,.survey-step .check-grid { grid-template-columns:minmax(0,1fr); }
 .survey-actions button { flex:1; min-width:0; }
 .survey-step .lesson-section { padding:12px; }
 .survey-step legend { white-space:normal; }
}

.survey-lane>details{margin-top:0}.survey-lane>details>summary{display:none}.survey-required{color:var(--muted);font-size:.9rem}
