/* CampusHub system additions. app.css is the prototype's stylesheet, kept byte-identical; everything new lives here. */

/* Layout helpers */
.inline-form{display:inline;margin:0}
.blank-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:var(--bg)}
.error-block h1{font-size:26px}
.login-card.narrow{max-width:560px}
.page-head .sub a{font-weight:600}
.muted{color:var(--muted)}
.small{font-size:12.5px}
.tnum{font-variant-numeric:tabular-nums}
.divider{border:0;border-top:1px solid var(--line);margin:18px 0}
.kv{display:grid;grid-template-columns:minmax(120px,max-content) 1fr;gap:6px 18px;font-size:13.5px}
.kv dt{color:var(--muted);font-weight:500;margin:0}
.kv dd{margin:0;color:var(--ink)}
.note-proto .ni svg{width:18px;height:18px}
.test-pill{cursor:default}
.demo-toggle.test-pill{background:#0E1A2B;color:#fff}
.page-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.empty{padding:22px;text-align:center;color:var(--muted);font-size:13.5px;background:var(--bg);border:1px dashed var(--line);border-radius:var(--radius-sm)}
.stat-link{text-decoration:none;color:inherit}
.stat-link:hover{text-decoration:none}
.code-input{font-size:22px;letter-spacing:.18em;text-align:center;font-family:var(--font-body)}
.secret-key{font-weight:600;letter-spacing:.06em;word-break:break-all}
.twofa-grid{display:grid;grid-template-columns:1fr auto;gap:0 22px;align-items:start}
.qr-wrap{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px}
.qr-wrap svg{width:168px;height:168px;display:block}
.steps{margin:0;padding-left:20px;font-size:13.5px;color:var(--ink-2);display:flex;flex-direction:column;gap:8px}
.recovery-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px 16px;background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:14px 18px;font-size:15px;font-weight:600}
@media (max-width:640px){.twofa-grid{grid-template-columns:1fr}.qr-wrap{margin-top:14px;justify-self:start}}

/* Access form */
.access-group{margin-bottom:6px}
.access-section{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-bottom:10px;background:#fff}
.access-section .access-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.access-section .access-head .checkline{font-weight:600;color:var(--ink);font-size:14px;flex:1 1 220px;min-width:0}
.access-section .access-desc{font-size:12.5px;color:var(--muted);margin:2px 0 0 25px}
.access-rights{margin:10px 0 0 25px;display:flex;flex-direction:column;gap:7px;padding-left:12px;border-left:2px solid var(--line-2)}
.access-rights .checkline{font-size:13px}
/* Tick text plus inline badges: the text takes the whole line and wraps only when it must */
.access-section .checkline{display:grid;grid-template-columns:16px minmax(0,1fr);align-items:start;gap:9px}
.access-section .checkline input{margin-top:2px}
.access-section .checkline .txt{min-width:0;line-height:1.45}
.access-section .checkline .badge{vertical-align:middle;margin-left:2px}
.access-section[data-off] .access-rights{opacity:.45}
.access-sub{margin-top:10px;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--faint)}
.scope-select{width:auto;min-width:0;padding:5px 30px 5px 10px;font-size:12.5px;margin-left:auto}
.access-summary{font-size:13px;color:var(--ink-2)}
.access-summary strong{color:var(--ink)}
.checkline input:disabled{opacity:.6}

/* Tables and lists */
table.data td .actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.list-row{display:flex;align-items:flex-start;gap:12px;padding:12px 0;border-bottom:1px solid var(--line-2)}
.list-row:last-child{border-bottom:0}
.list-row .grow{flex:1;min-width:0}
.list-row .t{font-weight:600;font-size:13.5px}
.list-row .d{font-size:12.5px;color:var(--muted);margin-top:2px}
.alert-line .actions{display:flex;gap:8px;margin-top:9px;flex-wrap:wrap}
.alert-line.done .t{text-decoration:line-through;color:var(--muted)}
.pagination{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:14px;font-size:13px}
.pagination a,.pagination span{padding:6px 10px;border-radius:8px;border:1px solid var(--line);background:#fff}
.pagination .on{background:var(--purple);color:#fff;border-color:var(--purple)}
.pre{white-space:pre-wrap;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:12px 14px;overflow:auto}
.diff{font-size:12.5px}
.diff .add{color:#15803D}
.diff .rem{color:#C22F2F}
.badge.b-navy{background:#E3E8F1;color:var(--navy)}
.mini-table{width:100%;border-collapse:collapse;font-size:13px}
.mini-table th,.mini-table td{text-align:left;padding:7px 8px;border-bottom:1px solid var(--line-2);vertical-align:top}
.mini-table th{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--faint);font-weight:600}
.mini-table tr:last-child td{border-bottom:0}
.logo-preview{max-height:60px;width:auto;border:1px solid var(--line);border-radius:8px;padding:6px;background:#fff}
.swatch{width:26px;height:26px;border-radius:7px;display:inline-block;border:1px solid var(--line);vertical-align:middle}
input[type=color].input{padding:2px;height:40px;width:64px}
details.card-details summary{cursor:pointer;font-weight:600;font-size:13.5px;color:var(--purple-dark)}
details.card-details[open] summary{margin-bottom:10px}
.tabs-sub{margin-top:-6px}
.release-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line-2)}
.release-row:last-child{border-bottom:0}
.release-row .grow{flex:1}
.status-dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:6px;vertical-align:middle}
/* Narrow screens: a card heading keeps its full width; its tools drop underneath */
.card-head{flex-wrap:wrap}
.card-head h2{flex:1 1 auto;min-width:0}
@media (max-width:640px){.card-head .page-actions{flex-basis:100%;width:100%}.card-head .page-actions .select{flex:1 1 auto}}
@media print{.sidebar,.topbar,.demo-bar,.side-overlay,.btn{display:none !important}.app-main{margin-left:0 !important}}

/* Task rows: the badge group drops under the title on narrow screens instead of squeezing it */
.al-badges{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;align-content:flex-start}
@media (max-width:640px){
  .alert-line{flex-wrap:wrap}
  .alert-line .al-badges{flex-basis:100%;justify-content:flex-start;padding-left:26px}
  .demo-toggle.test-pill{font-size:11px;padding:6px 10px;right:10px;bottom:10px}
  .demo-bar{right:10px;bottom:10px}
}
.btn-icon{padding:6px;line-height:0}
.btn-icon svg{width:15px;height:15px}
.al-side{display:flex;flex-direction:column;gap:6px;align-items:flex-end}
@media (max-width:640px){.alert-line .al-side{flex-basis:100%;flex-direction:row;align-items:center;flex-wrap:wrap;padding-left:46px}}

/* Help pages */
.help-list{margin:0;padding-left:18px;font-size:13.5px;color:var(--ink-2);display:flex;flex-direction:column;gap:9px}
.help-list strong,.help-steps strong{color:var(--ink)}
.help-steps{margin:0;padding-left:20px;font-size:13.5px;color:var(--ink-2);display:flex;flex-direction:column;gap:8px}

/* Anchor and tab hashes land clear of the fixed top bar */
.tabpane,.card,.page-head{scroll-margin-top:84px}

/* The page fade-in must not keep its end state: an element holding a transform animation becomes the
   containing block for position:fixed children, so modal backdrops stopped at the page box (Lee, 28 Sep). */
.rise{animation-fill-mode:backwards}

/* Pop-ups fit the screen: centred, never taller than the viewport, the form scrolls inside and
   Cancel and Save stay in view at the bottom (Lee, 28 Sep). .modal-wide for long forms on desktop. */
.modal-backdrop{align-items:center;padding:24px 18px}
.modal{max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);overflow-y:auto;overscroll-behavior:contain}
.modal .modal-foot{position:sticky;bottom:-24px;margin:20px -26px -24px;padding:14px 26px 20px;background:#fff;border-top:1px solid var(--line-2);border-radius:0 0 16px 16px;z-index:2}
.modal.modal-wide{max-width:min(920px,100%)}
.form-row.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.form-row .span-2{grid-column:span 2}
@media (max-width:900px){.form-row.three{grid-template-columns:1fr}.form-row .span-2{grid-column:auto}}

/* Students (Release 3) */
.seg a{display:inline-block;padding:7px 14px;border-radius:9px;font:600 12.5px var(--font-body);color:var(--ink-2);white-space:nowrap;text-decoration:none}
.seg a:hover{color:var(--ink);text-decoration:none}
.seg a.on{background:#fff;color:var(--purple-dark);box-shadow:0 1px 3px rgba(14,26,43,.14)}
.gsearch.gsearch-inline{max-width:none;margin:0}
.gsearch.gsearch-inline .gsearch-results{left:0;right:0}
.gsearch-results a{display:flex;align-items:center;gap:10px}
.gsearch-results .avatar{width:30px;height:30px;font-size:11px;flex:0 0 auto}
.secq .a.masked em{min-width:60px;display:inline-block}
.secq .a .reveal{margin-right:6px}
[data-call] section[hidden],[data-call] [data-when][hidden]{display:none !important}
.alert-line .avatar{flex:0 0 auto}
@media (max-width:640px){.seg{width:100%}.seg a{flex:1 1 auto;text-align:center}}
/* Enrolments on a student record: the status and its End button sit together, so three columns fit a phone */
.enrol-status{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.enrol-table td:last-child,.enrol-table th:last-child{text-align:right}
/* Phones: the top bar search shows as its magnifier and opens across the bar when tapped */
@media (max-width:640px){
  .topbar .gsearch{flex:0 0 40px;max-width:40px;margin-left:auto}
  .topbar .gsearch input{padding:9px 0 9px 36px;color:transparent;cursor:pointer}
  .topbar .gsearch input::placeholder{color:transparent}
  .topbar .gsearch:focus-within{position:absolute;left:10px;right:10px;top:50%;transform:translateY(-50%);max-width:none;z-index:95}
  .topbar .gsearch:focus-within input{color:var(--ink);background:#fff;padding-right:12px;cursor:text}
  .topbar .gsearch:focus-within input::placeholder{color:var(--faint)}
}
/* Phones: the "2 days ago" on a flag drops under its text instead of squeezing it */
@media (max-width:640px){.alert-line > .when{flex-basis:100%;padding-left:46px;margin-top:-4px}}

/* Staff resources (Release 4) */
.res-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.res-ext{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:42px;height:46px;border-radius:9px;font:700 10.5px var(--font-body);letter-spacing:.04em;text-transform:uppercase;border:1px solid transparent}
.res-ext-lg{width:72px;height:80px;border-radius:14px;font-size:14px}
.res-ext.t-red{background:var(--red-soft);color:#B42323;border-color:#F2B3B3}
.res-ext.t-blue{background:var(--blue-soft);color:#1B5FC4;border-color:#C9DDFC}
.res-ext.t-green{background:var(--green-soft);color:#15803D;border-color:#9FDDB6}
.res-ext.t-orange{background:var(--orange-soft);color:#8C5602;border-color:#F2D49A}
.res-ext.t-purple{background:var(--purple-soft);color:var(--purple-dark);border-color:#DCCEF7}
.res-ext.t-gray{background:var(--bg);color:var(--ink-2);border-color:var(--line)}
.res-name{display:flex;gap:12px;align-items:center;text-decoration:none;color:inherit}
.res-name:hover{text-decoration:none}
.res-name strong{color:var(--ink)}
.res-desc{display:block;margin-top:2px;max-width:none}
.res-chip{text-decoration:none;margin:2px 0}
.res-chip:hover{text-decoration:none;filter:brightness(.97)}
.res-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.res-card{display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid var(--line);border-radius:var(--radius-sm,12px);background:#fff;text-decoration:none;color:inherit;transition:border-color .15s,box-shadow .15s,transform .15s}
.res-card:hover{text-decoration:none;border-color:#C9B8EC;box-shadow:var(--shadow-lg);transform:translateY(-1px)}
.res-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.res-card-title{font-weight:600;font-size:14.5px;color:var(--ink);line-height:1.35}
.res-card-desc{margin:0;font-size:12.5px;color:var(--muted);line-height:1.5}
.res-card-chips{display:flex;flex-wrap:wrap;gap:4px;margin-top:auto}
.res-card-foot{border-top:1px solid var(--line-2);padding-top:8px}
@media (prefers-reduced-motion:reduce){.res-card{transition:none}.res-card:hover{transform:none}}
.res-pick-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px 18px}
.res-pick{display:flex;flex-direction:column;gap:6px;max-height:150px;overflow-y:auto;padding:2px 4px 2px 0;font-size:13px}
.res-pick-tall{max-height:220px}
.res-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 16px;margin-top:12px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--bg);font-size:13px}
.res-sections[hidden]{display:none}
.res-inline{display:flex;gap:6px;align-items:center;margin:0}
.res-inline .input,.res-inline .select{padding-top:6px;padding-bottom:6px;font-size:13px;min-width:0}
.res-tag-suggest{display:flex;flex-wrap:wrap;gap:4px;align-items:center;margin-top:8px}
.res-tag-suggest button{cursor:pointer;border:0}
a.alert-line.res-related{text-decoration:none;color:inherit}
a.alert-line.res-related:hover{border-color:#C9B8EC}
@media (max-width:640px){.res-pick-grid,.res-sections{grid-template-columns:1fr}.res-ext-lg{width:56px;height:62px}}
/* A resource's actions sit on their own row under the title, so the title keeps the full width */
.res-actions{flex-basis:100%;justify-content:flex-start;padding-left:90px;margin-top:-4px}
@media (max-width:640px){.res-actions{padding-left:0}}
/* The tick lists scroll inside a framed box, so a part-hidden line reads as more to scroll */
.res-pick{border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:var(--bg)}

/* ---------- Release 5: timetable, registers, attendance, fire alarm register ---------- */
.flip{transform:scaleX(-1)}
:root{--pink:#DB2777;--pink-soft:#FCE7F3}
.ic-pink{background:var(--pink-soft);color:var(--pink)}
.ic-navy{background:#E9EDF4;color:var(--navy)}
.ev-pink{background:var(--pink-soft);border-color:#F7C6E0;border-left-color:var(--pink)}
.ev-green{background:var(--green-soft);border-color:#B7EBCB;border-left-color:var(--green)}
.sw{display:inline-block;width:10px;height:10px;border-radius:3px;flex:0 0 auto;background:var(--faint)}
.sw-purple{background:var(--purple)}.sw-blue{background:var(--blue)}.sw-teal{background:var(--teal)}.sw-pink{background:var(--pink)}
.sw-orange{background:var(--orange)}.sw-green{background:var(--green)}.sw-navy{background:var(--navy)}.sw-red{background:var(--red)}.sw-gray{background:var(--faint)}
/* A class's extra days stay hidden until Add another day (.form-row's display:grid would show them) */
[data-repeat-row][hidden]{display:none}
/* Add a student on a cohort or class page (October 2026) */
.enrol-results{display:flex;flex-direction:column;gap:8px;max-height:300px;overflow:auto}
.enrol-hit{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#fff}
.enrol-hit .avatar{width:32px;height:32px;font-size:11px;flex:0 0 auto}
.enrol-hit .grow{flex:1;min-width:0}
.enrol-hit .who{display:block;font-weight:600;color:var(--ink)}
.enrol-hit .what{display:block;font-size:12px;color:var(--muted)}
/* Lochgelly Classes on the timetable (October 2026) */
:root{--olive:#65730F;--olive-soft:#F1F5D8}
.ev-red{background:var(--red-soft);border-color:#F6CACA;border-left-color:var(--red)}.sw-red{background:var(--red)}
.ev-olive{background:var(--olive-soft);border-color:#DCE5A8;border-left-color:var(--olive)}.sw-olive{background:var(--olive)}.ic-olive{background:var(--olive-soft);color:var(--olive)}
/* week grid: hour rows drawn behind each day column, 64px an hour */
.tt-gutter{position:relative}
.tt-gutter .tt-time{height:64px;padding-top:0}
.tt-col{background-image:repeating-linear-gradient(to bottom,var(--line-2) 0 1px,transparent 1px 64px);border-left:1px solid var(--line-2)}
.tt .tt-dayhead.today{color:var(--purple-dark)}
.tt .tt-dayhead .dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--purple);margin-left:6px;vertical-align:middle}
.tt-ev{display:block;text-decoration:none;color:inherit}
.tt-ev:hover{text-decoration:none}
.tt-ev .t,.tt-ev .m{display:block;overflow:hidden;text-overflow:ellipsis}
.tt-ev .t{white-space:nowrap}
.is-cancelled{opacity:.55}
.tt-ev.is-cancelled .t,.tt-month-ev.is-cancelled{text-decoration:line-through}
/* month view */
.tt-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid var(--line);border-left:1px solid var(--line)}
.tt-month-head{font:600 12px var(--font-head);color:var(--muted);text-align:center;padding:8px 4px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#F6F8FB}
.tt-month-day{min-height:112px;padding:6px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:3px;min-width:0}
.tt-month-day.is-out{background:#FAFBFD}
.tt-month-day.is-today{background:var(--purple-soft)}
.tt-month-num{font:600 12.5px var(--font-head);color:var(--ink);text-decoration:none;align-self:flex-start;padding:1px 5px;border-radius:6px}
.tt-month-day.is-today .tt-month-num{background:var(--purple);color:#fff}
.tt-month-ev{display:block;font-size:11px;line-height:1.3;padding:2px 6px;border-radius:6px;border-style:solid;border-width:1px 1px 1px 3px;color:var(--ink);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tt-month-ev:hover,.tt-month-num:hover,.tt-month-more:hover{text-decoration:none;filter:brightness(.97)}
.tt-month-more{font-size:11px;color:var(--purple-dark);text-decoration:none;padding:0 6px}
@media (max-width:760px){.tt-month-day{min-height:72px;padding:3px}.tt-month-ev{font-size:0;height:8px;padding:0;border-width:0 0 0 3px}.tt-month-head{font-size:10.5px;padding:6px 2px}}
/* register */
.att-opts{flex-wrap:wrap;align-items:center}
.att-opt.on{background:var(--purple-soft);border-color:#DCCEF7;color:var(--purple-dark)}
.att-opt:disabled{cursor:default;opacity:.85}
.att-opt:focus-visible{outline:2px solid var(--purple);outline-offset:2px}
.reg-late{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);margin-left:4px}
.reg-late[hidden]{display:none}
.reg-late .input{width:74px;padding:5px 8px;font-size:13px}
.reg-table td{vertical-align:middle}
.reg-table tr.is-saving .att-opts{opacity:.6}
/* attendance overview */
.att-row{display:grid;grid-template-columns:minmax(140px,1.1fr) 2fr 48px;gap:14px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line-2)}
.att-row:last-of-type{border-bottom:0}
.att-row .t{font-weight:600;font-size:13.5px;color:var(--ink)}
.att-row strong{text-align:right}
.att-donut{width:150px;height:150px;border-radius:50%;position:relative;flex:0 0 auto;display:flex;align-items:center;justify-content:center}
.att-donut::before{content:"";position:absolute;inset:20px;border-radius:50%;background:#fff}
.att-donut > div{position:relative;text-align:center}
.att-donut strong{display:block;font:700 26px/1.1 var(--font-head);color:var(--ink)}
.att-donut span{font-size:11.5px;color:var(--muted)}
@media (max-width:560px){.att-row{grid-template-columns:1fr 48px}.att-row .meter{grid-column:1 / -1;grid-row:2}}
/* fire alarm register */
.fire-controls{margin-bottom:18px}
.fire-group .card-head h2{font-size:15px}
.fire-sec{padding:12px 0;border-top:1px solid var(--line-2)}
.fire-sec:first-of-type{border-top:0;padding-top:4px}
.fire-sec-head{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
.fire-sec-head .badge{margin-left:auto}
.fire-person{display:flex;align-items:center;gap:12px;width:100%;padding:9px 10px;margin:0 0 6px;border:1px solid var(--line);border-radius:12px;background:#fff;text-align:left;font:inherit;color:inherit;cursor:pointer;transition:background .12s,border-color .12s}
.fire-person:hover{border-color:var(--faint)}
.fire-person.is-preview{cursor:default}
.fire-person.is-preview:hover{border-color:var(--line)}
.fire-person.is-done{background:var(--green-soft);border-color:#9FDDB6}
.fire-tick{width:30px;height:30px;border-radius:9px;border:1.6px solid var(--line);background:#fff;flex:0 0 auto;display:flex;align-items:center;justify-content:center}
.fire-tick svg{width:16px;height:16px;stroke:#fff;opacity:0}
.fire-person.is-done .fire-tick{background:var(--green);border-color:var(--green)}
.fire-person.is-done .fire-tick svg{opacity:1}
.fire-person:focus-visible{outline:2px solid var(--red);outline-offset:2px}
.fire-name{display:flex;flex-direction:column;min-width:0}
.fire-name .nm{font-weight:600;font-size:14px;color:var(--ink)}
.fire-name .sb{font-size:12px;color:var(--muted)}
.fire-person.is-done .fire-name .nm{color:#15803D}
.fire-person .avatar{flex:0 0 auto}
.fire-offline{background:var(--orange-soft);border:1px solid #F2D49A;color:#8C5602;border-radius:10px;padding:8px 12px;font-size:13px;margin-bottom:12px}
@media print{
  .sidebar,.topbar,.page-head-actions,.page-actions,.fire-controls,.btn,.toast,.modal-backdrop,.fire-aside{display:none !important}
  .fire-head{background:none !important;color:#000;border:2px solid #000}
  .fire-head h1,.fire-head .fnum,.fire-head p,.fire-head .flab{color:#000 !important}
  .fire-person{break-inside:avoid;border-color:#999}
  .card{box-shadow:none;border-color:#999}
  .grid{display:block}
}
/* the hour column stays put while a busy week scrolls sideways */
.tt-gutter,.tt .tt-corner{position:sticky;left:0;z-index:4;background:#fff}
.tt .tt-corner{top:0;z-index:6}
.tt-hint{margin:0 0 10px}
.tt-gutter .tt-time:first-child{transform:none;padding-top:2px}
/* registers on a phone: each student is a row with the marks full width underneath, big enough to tap */
@media (max-width:640px){
  .reg-table{min-width:0 !important;display:block}
  .reg-table thead{display:none}
  .reg-table tbody{display:block}
  .reg-table tr{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px 12px;padding:12px 0;border-bottom:1px solid var(--line-2)}
  .reg-table td{display:block;padding:0;border:0}
  .reg-table td:last-child{grid-column:1 / -1}
  .reg-table .att-opts{gap:8px}
  .reg-table .att-opt{flex:1 1 0;width:auto;min-width:48px;height:44px;font-size:13px}
  .reg-table .reg-late{flex-basis:100%;margin:2px 0 0}
}
.auto-tag{padding:1.5px 5px;letter-spacing:.05em;white-space:nowrap}

/* ---------- Release 5: student and parent portals ---------- */
.portal-nav a.on{background:var(--purple);color:#fff}
.portal-out{margin:0 0 0 4px}
.portal-out .icon-btn{background:transparent;border-color:rgba(255,255,255,.18);color:#C7D0DE}
.portal-out .icon-btn:hover{color:#fff;background:rgba(255,255,255,.08)}
.hero-kicker{margin:0 0 4px;color:#A78BFA !important;font-weight:600;font-size:12.5px;letter-spacing:.06em;text-transform:uppercase}
.hero-side{text-align:right;min-width:150px}
.hero-side .hk{color:#A78BFA;font-weight:600;font-size:13px;white-space:nowrap}
.hero-side .hv{font:600 24px/1.2 var(--font-head);color:#fff;white-space:nowrap}
.hero-side .hs{color:#C7D0DE;font-size:12px}
a.kidbtn{text-decoration:none}
a.kidbtn:hover{text-decoration:none}
button.tilelink,a.tilelink{text-align:left;font:inherit;cursor:pointer;color:inherit}
.tilelink .ico{width:34px;height:34px;border-radius:9px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
@media (max-width:640px){.hero-side{text-align:left;min-width:0}}
.tilelink .ico svg{width:17px;height:17px}
/* portal on a phone: the page links get their own row so none hide off the edge */
@media (max-width:640px){
  .portal-top .inner{flex-wrap:wrap;height:auto;padding-top:10px;padding-bottom:10px;row-gap:10px}
  .portal-top .portal-out{margin-left:auto}
  .portal-nav{order:3;flex-basis:100%;margin-left:0}
}
.session-stop{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:18px;border-color:#F2B3B3}
.session-stop h2{font-size:15px;margin:0;color:#B42323}
.alert-line.is-retired > :not(.actions){opacity:.6}

/* ---------- The Academy's feedback of 8 October: tick lists with a find box, who comes to a session, visitors ---------- */
.label-like{display:block;font-size:12.5px;font-weight:600;color:var(--ink-2);margin-bottom:5px}
.sr-only{position:absolute;left:0;top:0;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.pick-find{margin-bottom:6px;padding-top:7px;padding-bottom:7px;font-size:13px}
.pick-head{font-size:11.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin:8px 0 2px}
.pick-head:first-child{margin-top:0}
.pick-count{font-weight:500;color:var(--purple);margin-left:4px}
.res-pick .checkline[hidden],.res-pick .pick-head[hidden]{display:none}
/* The default picture (the CampusHub logo) sits centred, where photos sit to the top */
.avatar.photo.is-default,.photo-tile.is-default{background-position:center}

/* ---------- Release 6: letters ---------- */
.letter-paper{font-size:13px;line-height:1.7}
.letter-paper .lp-head img{height:39px;width:auto}
.letter-paper .lp-org{line-height:1.55}
.letter-paper .lp-org strong{color:var(--ink);font-weight:600}
.letter-paper .lp-date{margin:0 0 18px}
.letter-paper .lp-to{margin:0 0 22px}
.letter-paper ul{margin:0 0 12px;padding-left:20px}
.letter-paper li{margin:0 0 2px}
.letter-paper .lp-foot{margin-top:30px;padding-top:10px;border-top:1px solid var(--line);font-size:10.5px;color:var(--muted);text-align:center}
.lp-missing{background:#FEF3C7;color:#92400E;border-radius:4px;padding:0 4px}
.merge-list{display:flex;gap:6px;flex-wrap:wrap}
.letter-body{font-family:var(--font-body);line-height:1.7}
.letter-source{white-space:pre-wrap;font:13px/1.7 var(--font-body);color:var(--ink-2);background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:14px;margin:14px 0 0}
a.tmpl-row{color:inherit}
.tmpl-row .grow{flex:1;min-width:0}
.tmpl-row[hidden]{display:none}
@media (min-width:1100px){.letter-editor > .card:last-child,.letter-editor > .stack > .card:first-child{position:sticky;top:84px;align-self:start}}
@media (max-width:640px){.letter-paper{padding:20px 16px}.letter-paper .lp-head{flex-direction:column;gap:10px}.letter-paper .lp-org{text-align:left}}

/* ---------- Release 7: finance ---------- */
.year-bar{display:flex;gap:2px;height:22px;border-radius:99px;overflow:hidden;background:var(--line)}
.year-bar > div{min-width:0}
.age-row{display:grid;grid-template-columns:96px 1fr 76px;gap:12px;align-items:center}
.text-green{color:#15803D}
tr.row-scheduled td{color:var(--muted)}
.list-row.is-reversed{opacity:.6}
.month-ticks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 14px;font-size:13px}
.fee-run-bar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:18px;border-color:#DCCEF7;background:var(--purple-soft)}
@media (max-width:640px){.month-ticks{grid-template-columns:repeat(2,minmax(0,1fr))}.age-row{grid-template-columns:84px 1fr 70px}}
.enrol-hit.is-picked{border-color:var(--purple);background:var(--purple-soft)}

/* ---------- Release 8: Admissions ---------- */
.seg a{display:inline-block;padding:7px 14px;border-radius:9px;font:600 12.5px var(--font-body);color:var(--ink-2);white-space:nowrap;text-decoration:none}
.seg a:hover{color:var(--ink)}
.seg a.on{background:#fff;color:var(--purple-dark);box-shadow:0 1px 3px rgba(14,26,43,.14)}
a.kcard{display:block;text-decoration:none;color:inherit}
.kcard .nm{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.kcard.is-dragging{opacity:.45}
.kcol.is-over{outline:2px dashed var(--purple);outline-offset:-2px;background:var(--purple-soft)}
.kcol-empty{padding:6px 4px 2px}
.nav-dot{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:var(--red);color:#fff;font-size:11px;font-weight:700;margin-left:4px;vertical-align:1px}
.check-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:2px 14px}
label.pick{cursor:pointer;position:relative}
label.pick:focus-within{outline:2px solid var(--purple);outline-offset:2px}
.msg-thread{display:flex;flex-direction:column;gap:10px;max-height:460px;overflow-y:auto;padding:2px}
.msg-day{text-align:center;font-size:11.5px;color:var(--faint);margin:6px 0 0}
.msg-bubble{max-width:80%;align-self:flex-start;background:var(--bg,#F3F5F9);border:1px solid var(--line);border-radius:14px 14px 14px 4px;padding:10px 13px}
.msg-bubble.mine{align-self:flex-end;background:var(--purple-soft);border-color:#DCCFF7;border-radius:14px 14px 4px 14px}
.msg-body{font-size:13.5px;color:var(--ink);overflow-wrap:anywhere}
.msg-meta{font-size:11px;color:var(--muted);margin-top:4px}
@media (max-width:640px){ .msg-bubble{max-width:92%} }
.adm-row{grid-template-columns:128px 1fr 32px;margin-bottom:8px}
.doc-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 0;border-top:1px solid var(--line-2)}
.doc-row:first-of-type{border-top:0}
.doc-row .grow{flex:1;min-width:200px}
.doc-row .t{font-weight:600;font-size:13.5px;color:var(--ink)}
.doc-row .d{font-size:12.5px;color:var(--muted)}
.doc-acts{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
@media (max-width:760px){.portal-nav.portal-nav-wrap{flex-wrap:wrap;overflow:visible;row-gap:4px}}

/* ---------- 9 October: removing a session, or one date, from the timetable ---------- */
.occ-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.btn-remove{color:#B42323}
.btn-remove:hover{background:#FDECEC;color:#B42323}
.checkline.remove-choice{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:start;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;margin-bottom:8px;line-height:1.45}
.checkline.remove-choice input{margin-top:3px}
.checkline.remove-choice:has(input:checked){border-color:#F2B3B3;background:#FFF7F7}

/* ---------- 9 October: take students off from a date, several at once ---------- */
.take-off-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 8px}
.mini-table .tick-col{width:28px;padding-right:0}
.mini-table .tick-col input{margin:0;vertical-align:middle}
.when-choices{display:flex;flex-direction:column;gap:8px}
.checkline.when-from{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:9px;row-gap:2px;align-items:center}
.when-from-main{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.when-from .when-from-label{display:inline;margin:0;font:inherit;font-weight:600;color:inherit}
.when-from .input{width:auto;min-width:150px;padding-top:6px;padding-bottom:6px}
.when-from-hint{grid-column:2}
.take-off-who{margin:0 0 12px;font-weight:600;color:var(--ink)}

/* ---------- 9 October: the student's timetable on their record ---------- */
.tt-student-nav{margin:0;align-items:center;flex-wrap:wrap;gap:6px}
.stt-day .c-time{white-space:nowrap;width:130px}
.stt-day .c-room{width:180px}
.stt-day .c-staff{width:220px}
.stt-sub{display:none}
@media (max-width:700px){
  .stt-day .c-room,.stt-day .c-staff{display:none}
  table.data.stt-day{min-width:0}
  .stt-day .c-time{width:1%;vertical-align:top;padding-right:10px}
  .stt-sub{display:block;margin-top:2px}
}

/* Central search: a label over each group of results (students, applicants, staff). */
.gsearch-results .gsearch-group{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);padding:8px 10px 4px}

/* Payment plans (the Academy's answers, 15 October 2026) */
[data-fund-row][hidden],[data-pb-when][hidden],.pb-row[hidden]{display:none !important}
.pb-rows{margin-top:12px}
.pb-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end}
.pb-row .field{margin-bottom:8px}
.pb-row .pb-remove{margin-bottom:8px;padding:6px 8px}
.pb-row .pb-remove svg{width:15px;height:15px}
.pb-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:6px}
tr.row-funding td{color:var(--muted);background:#F7F8FA}
tr.row-funding td .badge{opacity:.85}
tr.is-reversed td{opacity:.55}
.plan-mini tr.plan-split td{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--faint);font-weight:600;padding-top:14px}
.row-actions{flex-wrap:wrap;justify-content:flex-end}
details.row-act{display:inline-block;vertical-align:top}
details.row-act>summary{list-style:none;cursor:pointer}
details.row-act>summary::-webkit-details-marker{display:none}
details.row-act[open]>summary{background:var(--purple-soft)}
.row-form{width:240px;margin-top:6px;display:grid;gap:6px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px rgba(15,23,42,.14);text-align:left}
.row-form .input,.row-form .select{width:100%}
.row-form-btns{display:flex;gap:8px;flex-wrap:wrap}
.pay-days{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
.dd-return{display:inline-flex;gap:6px;align-items:center}
.input.input-sm{padding:5px 8px;font-size:13px;width:auto;min-width:0}
.deposit-parts{margin-top:8px}
.deposit-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
table.subs td{vertical-align:top}
@media (max-width:640px){.pay-days{grid-template-columns:1fr}.dd-return .input-sm{display:none}}

/* Assessments (Release 9) */
.prose{color:var(--ink-2);line-height:1.6;overflow-wrap:anywhere}
.form-narrow{max-width:760px}
.unit-block{padding:14px 0;border-top:1px solid var(--line)}
.unit-block:first-of-type{border-top:0;padding-top:4px}
.unit-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.crit-list{display:grid;gap:8px;margin-bottom:14px}
.crit-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:10px}
.crit-row .checkline{margin:0}
.grade-pick{display:flex;flex-wrap:wrap;gap:8px}
.grade-opt{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border:1px solid var(--line);border-radius:999px;cursor:pointer;font-size:13.5px;font-weight:600}
.grade-opt input{margin:0;accent-color:var(--purple)}
.grade-opt:has(input:checked){border-color:var(--purple);background:var(--purple-soft)}
.grade-opt.is-fail:has(input:checked){border-color:var(--red);background:var(--red-soft)}
.iv-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 0;border-top:1px solid var(--line)}
.iv-row:first-of-type{border-top:0}
.iv-main{flex:1 1 320px;min-width:0}
.iv-main .d{color:var(--muted);margin-top:2px}
.iv-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.iv-form .input-sm{min-width:220px}
.iv-form input[type=file]{max-width:240px;font-size:12.5px}
@media (max-width:640px){.crit-row{grid-template-columns:1fr}.iv-form .input-sm{min-width:0;flex:1 1 100%}.iv-form input[type=file]{max-width:100%}}
/* Who sits an assessment (New assessment): the cohort's students, ticked, in two columns that scroll past a dozen or so. */
.pick-students{border:0;padding:0;margin:0 0 14px;min-width:0}
.pick-students legend{padding:0;margin-bottom:6px}
.pick-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:2px 14px;max-height:280px;overflow:auto;padding:8px 10px;border:1px solid var(--line);border-radius:10px}
.pick-list .checkline{margin:0;padding:3px 0}

/* The student Finance tab's payment plans: five columns that fit the record's narrower column without a sideways scroll (Lee, 16 October 2026). */
table.data.subs{min-width:0}
@media (max-width:600px){
  /* On a phone each plan is a small block: the plan across the top, then how it is paid, the next payment, paid so far and the status. */
  table.data.subs thead{display:none}
  table.data.subs,table.data.subs tbody{display:block}
  table.data.subs tr{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px;padding:12px 0;border-bottom:1px solid var(--line-2)}
  table.data.subs tr:last-child{border-bottom:0}
  table.data.subs td{border:0;padding:0}
  table.data.subs td:first-child{grid-column:1 / -1}
  table.data.subs td.num{text-align:left}
  table.data.subs td:nth-child(4)::before{content:"Paid ";color:var(--muted)}
}
/* Chase and Take off on an assessment's roster: side by side when there is room, stacked when the column is narrow. */
.row-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.row-actions .inline-form{margin:0}
/* Paying an arrangement to pay by card (21 October): the amount with a £ in front, beside the button. */
.arr-pay{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.arr-pay-row{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
.arr-pay-row .field{flex:0 1 220px;min-width:0}
.input-prefix{display:flex;align-items:center;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}
.input-prefix span{padding:0 4px 0 12px;color:var(--muted)}
.input-prefix .input{border:0;box-shadow:none;padding-left:4px;min-width:0}
/* Tasks & Alerts: the staff member filter sits at the end of the filter chips (21 October). */
.task-filters{align-items:center}
.task-staff{margin-left:auto;min-width:220px}
.task-staff .select{padding-top:6px;padding-bottom:6px}
@media (max-width:640px){.task-staff{margin-left:0;flex:1 1 100%}}
/* The QS marking checklist (21 October): evidence requirements with a grade and an optional comment each, as a table. */
.crit-table{border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-bottom:14px}
.crit-head,.crit-line{display:grid;grid-template-columns:minmax(0,1.4fr) 150px minmax(0,1fr);gap:10px;align-items:center;padding:8px 10px}
.crit-head{background:var(--bg, #F4F6F9);font-size:12px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.crit-line{border-top:1px solid var(--line)}
.crit-label{font-size:14px}
.crit-line .select,.crit-line .input{width:100%;min-width:0}
@media (max-width:640px){.crit-head{display:none}.crit-line{grid-template-columns:1fr}}
/* Studio hire (22 October 2026): the week view (a bar per studio and day, taken blocks coloured, free gaps white and
   clickable), the day view (studios side by side), and the public booking pages. */
.hire-week{width:100%;border-collapse:separate;border-spacing:0;min-width:900px;table-layout:fixed}
.hire-week th,.hire-week td{padding:8px 6px;border-bottom:1px solid var(--line-2);vertical-align:top;text-align:left}
.hire-week thead th{font:600 12.5px var(--font-body);color:var(--ink-2)}
.hire-week thead th a{color:inherit;display:block}
.hire-week thead th small{display:block;font-weight:500;color:var(--muted);font-size:11px}
.hire-week thead th.is-today a{color:var(--purple-dark)}
.hire-week tbody th{width:150px;font-weight:400}
.hire-week thead th:first-child{width:150px}
.hire-week td.is-past{opacity:.55}
.hire-bar{position:relative;height:26px;border-radius:7px;background:repeating-linear-gradient(90deg,#fff 0 calc(100%/6 - 1px),var(--line-2) calc(100%/6 - 1px) calc(100%/6));border:1px solid var(--line);overflow:hidden}
.hire-bar.is-closed{background:repeating-linear-gradient(45deg,#F3F4F6 0 6px,#E5E7EB 6px 12px)}
.hire-seg{position:absolute;top:0;bottom:0;display:block}
.hire-seg.seg-class{background:var(--purple)}
.hire-seg.seg-audition{background:#DB2777}
.hire-seg.seg-hire{background:var(--teal)}
.hire-seg.seg-requested{background:var(--orange)}
.hire-seg.seg-free{background:transparent;z-index:1}
.hire-seg.seg-free:hover,.hire-seg.seg-free:focus-visible{background:rgba(106,63,200,.14);outline:none}
.hire-free-text{font-size:11px;color:var(--muted);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hire-sw-free{background:#fff;border:1px solid var(--line)}
.hire-day .tt-col{min-height:100px}
.hire-free{position:absolute;left:3px;right:3px;border:1.5px dashed #C9CFDA;border-radius:9px;display:flex;flex-direction:column;justify-content:space-between;padding:6px 8px;font-size:11.5px;color:var(--muted);text-decoration:none;background:rgba(255,255,255,.6)}
.hire-free:hover{border-color:var(--purple);color:var(--purple-dark);background:var(--purple-soft);text-decoration:none}
.hire-free-cta{display:inline-flex;align-items:center;gap:4px;font-weight:600;color:var(--purple)}
.hire-free-cta svg{width:14px;height:14px}
.hire-closed-col{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:10px;font-size:12px;color:var(--muted);background:repeating-linear-gradient(45deg,#F8F9FB 0 8px,#EEF0F4 8px 16px)}
/* Book a studio: tick one studio or several */
.hire-rooms{border:0;padding:0;margin:0 0 14px;min-width:0}
.hire-rooms legend{font-size:12.5px;font-weight:600;color:var(--ink-2);margin-bottom:8px;padding:0}
.hire-rooms legend .small{font-weight:400;margin-left:4px}
.hire-rooms-site{margin:8px 0 4px}
.hire-rooms-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:6px 14px}
.hire-rooms .checkline{display:flex;font-weight:500;font-size:13.5px;margin:0;padding:7px 10px;border:1px solid var(--line);border-radius:10px;cursor:pointer}
.hire-rooms .checkline:has(input:checked){border-color:var(--purple);background:#F7F3FE}
.hire-rooms .checkline .small{display:block;font-weight:400}
.hire-money{display:grid;grid-template-columns:1fr auto;gap:4px 18px;max-width:360px;font-size:14px}
.hire-money .tot{font-weight:700;border-top:1px solid var(--line);padding-top:6px}
.hire-hours{width:100%;border-collapse:collapse}
.hire-hours td,.hire-hours th{padding:6px 8px 6px 0;text-align:left;font-size:13.5px}
.hire-hours .input{width:110px}
.hp-field-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
/* The Academy's public studio hire pages (22 October 2026, redone the same day): their wordmark on white, a dark
   ink band with a sprung-floor texture and the three booking steps, studios as cut-corner cards, the week as dated
   columns of free times, and a booking summary beside the request form. */
.hp-body{background:#F4F2EE;color:var(--ink)}
.hp-in{width:100%;max-width:1120px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.hp-head{background:#fff;border-bottom:1px solid #E7E3DC}
.hp-head-in{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-block:14px}
.hp-logo img{display:block;height:64px;width:auto;padding:3px}
.hp-contact{display:flex;flex-direction:column;align-items:flex-end;font-size:13.5px;color:var(--ink-2);line-height:1.45}
.hp-contact-label{font-size:12px;color:var(--muted)}
.hp-band{position:relative;overflow:hidden;color:#fff;background-color:#14121C;
  background-image:radial-gradient(120% 140% at 85% 0%,rgba(106,63,200,.55),transparent 60%),repeating-linear-gradient(90deg,rgba(255,255,255,.045) 0 1px,transparent 1px 96px),repeating-linear-gradient(90deg,rgba(255,255,255,.022) 0 48px,transparent 48px 96px)}
.hp-band::after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background:var(--purple)}
.hp-band-in{display:flex;align-items:flex-end;justify-content:space-between;gap:24px 40px;flex-wrap:wrap;padding-block:34px 30px}
.hp-band h1{font:600 clamp(1.9rem,3.4vw,2.9rem)/1.1 Poppins,system-ui,sans-serif;margin:0;color:#fff;text-wrap:balance}
.hp-band p{margin:8px 0 0;color:rgba(255,255,255,.78);font-size:16px}
.hp-band-text{flex:1 1 420px;min-width:0}
.hp-steps{list-style:none;margin:0;padding:0;display:flex;gap:8px;flex-wrap:wrap}
.hp-steps li{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:500;color:rgba(255,255,255,.6);padding:7px 14px 7px 7px;border:1px solid rgba(255,255,255,.18);border-radius:999px}
.hp-step-n{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:rgba(255,255,255,.12);font-weight:600;font-size:12.5px;color:#fff}
.hp-step-n svg{width:14px;height:14px;stroke:#fff}
.hp-steps li.is-now{color:#fff;border-color:#fff;background:rgba(255,255,255,.08)}
.hp-steps li.is-now .hp-step-n{background:var(--purple)}
.hp-steps li.is-done{color:rgba(255,255,255,.85)}
.hp-steps li.is-done .hp-step-n{background:#1C8F4E}
.hp-main{padding-block:30px 48px}
.hp-main > .hp-in{display:grid;gap:26px}
.hp-foot{border-top:1px solid #E7E3DC;background:#fff;color:var(--muted);font-size:13px;text-align:center;padding-block:18px}
.hp-muted{color:var(--muted);margin:4px 0 0}
.hp-note{margin:0}
.hp-test{font-size:13px;color:#B7620C;margin:0}
.hp-section{display:grid;gap:16px;min-width:0}
.hp-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px 20px;flex-wrap:wrap}
.hp-section-head h2{font:600 1.45rem/1.2 Poppins,system-ui,sans-serif;margin:0}
.hp-panel{background:#fff;border:1px solid #E7E3DC;border-radius:4px;padding:22px;min-width:0}
.hp-panel .card-head h2{font-family:Poppins,system-ui,sans-serif}
fieldset.hp-panel{margin:0}
.hp-legend{float:left;width:100%;font:600 1.1rem Poppins,system-ui,sans-serif;padding:0;margin:0 0 14px}
.hp-legend + *{clear:both}
.hp-narrow{max-width:680px;width:100%;margin:0 auto;display:grid;gap:14px}
.hp-sites{display:flex;gap:6px;flex-wrap:wrap}
.hp-site{padding:7px 16px;border-radius:999px;border:1px solid #D9D3C9;background:#fff;color:var(--ink-2);font-weight:600;font-size:14px;text-decoration:none}
.hp-site.on,.hp-site:hover{background:var(--ink);border-color:var(--ink);color:#fff;text-decoration:none}
/* Studios: cut-corner cards (a 1.5px frame layer under the face). */
.hp-studios{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.hp-studio{--cut:18px;display:block;padding:1.5px;background:#DCD6CC;clip-path:polygon(0 0,calc(100% - var(--cut)) 0,100% var(--cut),100% 100%,0 100%);text-decoration:none;color:var(--ink);transition:background .15s}
.hp-studio-in{display:grid;gap:6px;height:100%;padding:16px 18px 18px;background:#fff;clip-path:polygon(0 0,calc(100% - var(--cut) + 1px) 0,100% calc(var(--cut) - 1px),100% 100%,0 100%)}
.hp-studio:hover{background:var(--purple);text-decoration:none}
.hp-studio.on{background:var(--purple);padding:2.5px}
.hp-studio.on .hp-studio-in{background:#F7F3FE}
.hp-studio-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.hp-studio-name{font:600 1.15rem Poppins,system-ui,sans-serif}
.hp-tick{display:inline-flex;align-items:center;gap:4px;font-size:12.5px;font-weight:600;color:var(--purple)}
.hp-tick svg{width:14px;height:14px;stroke:var(--purple)}
.hp-rate{font-size:14px;color:var(--ink-2)}
.hp-rate strong{font:600 1.35rem Poppins,system-ui,sans-serif;color:var(--ink);margin-right:2px}
.hp-rate-next{display:block;font-size:12.5px;color:var(--ink-2);margin-top:2px}
.hp-studio-meta{font-size:13px;color:var(--muted)}
/* The week of free times. */
.hp-weeknav{display:flex;align-items:center;gap:10px}
.hp-week{font-weight:600;font-size:14px;min-width:120px;text-align:center;font-variant-numeric:tabular-nums}
.hp-arrow{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;border:1px solid #D9D3C9;background:#fff;color:var(--ink)}
.hp-arrow svg{width:16px;height:16px}
.hp-arrow:hover{border-color:var(--purple);color:var(--purple)}
.hp-arrow.is-off{opacity:.35}
.hp-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}
.hp-day{display:grid;align-content:start;gap:10px;min-width:0}
.hp-date{display:grid;justify-items:center;padding:10px 4px 8px;background:#14121C;color:#fff;clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,0 100%)}
.hp-dow{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.7)}
.hp-dnum{font:600 1.7rem/1.1 Poppins,system-ui,sans-serif}
.hp-mon{font-size:12px;color:rgba(255,255,255,.7)}
.hp-day.is-off .hp-date{background:#E9E5DE;color:var(--muted)}
.hp-day.is-off .hp-dow,.hp-day.is-off .hp-mon{color:var(--muted)}
.hp-slots{display:grid;gap:8px}
.hp-slot{display:grid;gap:2px;padding:10px 8px;text-align:center;border-radius:999px;background:#F1EBFC;color:#4B2A99;text-decoration:none;border:1px solid transparent;transition:background .15s,color .15s}
.hp-slot:hover,.hp-slot:focus-visible{background:var(--purple);color:#fff;text-decoration:none}
.hp-slot-t{font-weight:600;font-size:13.5px;font-variant-numeric:tabular-nums}
.hp-slot-h{font-size:11.5px;opacity:.8}
.hp-none{display:block;text-align:center;font-size:13px;color:var(--muted);padding:10px 4px;border:1px dashed #D9D3C9;border-radius:999px}
@media (prefers-reduced-motion:no-preference){
  .hp-day{animation:hpIn .45s both;animation-delay:calc(var(--i, 0) * 45ms)}
  .hp-studio{animation:hpIn .4s both}
  @keyframes hpIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
}
.hp-how{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;font-size:14px;color:var(--ink-2)}
.hp-how > div{padding:14px 16px;border-top:3px solid var(--purple);background:#fff}
.hp-how strong{display:block;color:var(--ink);margin-bottom:2px}
/* The request page. */
.hp-back{margin:0}
.hp-back a{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:14px}
.hp-back svg{width:15px;height:15px}
.hp-request{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:22px;align-items:start}
.hp-form{display:grid;gap:18px;min-width:0}
.hp-choice{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.hp-choice-opt{display:flex;align-items:center;gap:8px;padding:9px 14px;border:1px solid #D9D3C9;border-radius:999px;cursor:pointer;font-size:14px;font-weight:500}
.hp-choice-opt:has(input:checked){border-color:var(--purple);background:#F7F3FE;color:#4B2A99}
.hp-choice-opt input{accent-color:var(--purple);margin:0}
.hp-also{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}
.hp-also-opt{display:flex;gap:10px;align-items:flex-start;padding:11px 14px;border:1px solid #D9D3C9;border-radius:12px;cursor:pointer;font-size:14px}
.hp-also-opt input{accent-color:var(--purple);width:18px;height:18px;margin:1px 0 0;flex:0 0 auto}
.hp-also-opt:has(input:checked){border-color:var(--purple);background:#F7F3FE}
.hp-also-opt.is-off{opacity:.55;cursor:not-allowed}
.hp-also-rate,.hp-also-note{display:block;font-size:12.5px;color:#6B6459;margin-top:2px}
.hp-also-note:empty{display:none}
.hp-agree{display:flex;gap:10px;align-items:flex-start;font-weight:500;cursor:pointer}
.hp-agree input{accent-color:var(--purple);width:18px;height:18px;margin-top:2px;flex:0 0 auto}
.hp-summary{position:sticky;top:16px;min-width:0}
.hp-summary-in{background:#14121C;color:#fff;padding:22px;display:grid;gap:10px;clip-path:polygon(0 0,calc(100% - 22px) 0,100% 22px,100% 100%,0 100%)}
.hp-summary-k{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.65)}
.hp-summary-room{font:600 1.6rem/1.15 Poppins,system-ui,sans-serif}
.hp-summary-site{color:rgba(255,255,255,.7);margin-top:-6px}
.hp-summary-dl{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:6px 0 0;font-size:14px}
.hp-summary-dl dt{color:rgba(255,255,255,.6)}
.hp-summary-dl dd{margin:0}
.hp-total{border-top:1px solid rgba(255,255,255,.18);padding-top:12px;font-size:15px}
.hp-total strong{font:600 1.25rem Poppins,system-ui,sans-serif}
.hp-send{width:100%;justify-content:center;margin-top:4px}
.hp-small{font-size:12.5px;color:rgba(255,255,255,.7);margin:0}
.hp-done{display:flex;gap:14px;align-items:center}
.hp-done h2{font:600 1.35rem Poppins,system-ui,sans-serif;margin:0}
.hp-done-ic{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:#1C8F4E;flex:0 0 auto}
.hp-done-ic svg{width:22px;height:22px;stroke:#fff}
.hp-sent-dl dt{color:var(--muted)}
@media (max-width:900px){
  .hp-request{grid-template-columns:1fr}
  .hp-summary{position:static;order:-1}
  .hp-how{grid-template-columns:1fr}
}
@media (max-width:760px){
  .hp-logo img{height:48px}
  .hp-contact-label,.hp-email{display:none}
  .hp-days{grid-template-columns:1fr;gap:8px}
  .hp-day{grid-template-columns:72px minmax(0,1fr);align-items:start}
  .hp-date{padding:8px 4px}
  .hp-dnum{font-size:1.35rem}
  .hp-slots{display:flex;flex-wrap:wrap;gap:6px}
  .hp-slot{padding:8px 14px}
  .hp-band-in{padding-block:24px 22px}
}
.hire-terms{max-height:240px;overflow:auto;border:1px solid var(--line);border-radius:4px;padding:12px 14px;background:#FAF9F7;font-size:13.5px;white-space:pre-wrap;margin-bottom:12px}
.hp-total strong{font-size:1.1rem}
@media (max-width:760px){.hp-day.is-past{display:none}}
.hp-request [hidden]{display:none!important}
/* Library (Release 11): copy barcodes drawn by CampusHub, the scanner boxes, and the A4 sheet of labels (Avery L7160:
   21 labels of 63.5 x 38.1 mm, 7.2 mm side margins, 15.1 mm top margin, 2.5 mm between columns). */
.lib-barcode{display:inline-flex;flex-direction:column;align-items:center;gap:2px;line-height:1}
.lib-barcode svg{display:block;width:118px;height:26px}
.lib-barcode-t{font-size:10.5px;font-variant-numeric:tabular-nums;letter-spacing:.04em;color:var(--ink-2)}
.lib-scan{font-size:17px;letter-spacing:.04em;padding-top:12px;padding-bottom:12px}
.libl-page{background:#fff;margin:0}
.libl-bar{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;padding:18px max(16px,env(safe-area-inset-left,0px));border-bottom:1px solid var(--line);background:var(--bg)}
.libl-bar h1{font:600 20px Poppins,system-ui,sans-serif;margin:0 0 4px}
.libl-bar p{margin:0 0 8px;max-width:760px;color:var(--ink-2);font-size:14px}
.libl-skip{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:13.5px}
.libl-skip .input{width:80px}
.libl-empty{padding:20px}
.libl-sheet{width:210mm;padding:15.1mm 7.2mm 0;margin:16px auto;display:grid;grid-template-columns:repeat(3,63.5mm);column-gap:2.5mm;grid-auto-rows:38.1mm;background:#fff;box-shadow:0 0 0 1px var(--line)}
.libl{box-sizing:border-box;padding:3mm 4mm;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:1mm;overflow:hidden;outline:1px dashed #E3E6EE}
.libl-org{font-size:7pt;color:#555;text-transform:uppercase;letter-spacing:.06em}
.libl-title{font:600 8.5pt/1.2 Inter,system-ui,sans-serif;max-height:2.4em;overflow:hidden;color:#000}
.libl-code svg{display:block;width:48mm;height:11mm}
.libl-num{font:600 8pt Inter,system-ui,sans-serif;letter-spacing:.08em;font-variant-numeric:tabular-nums;color:#000}
/* The label printer roll (the Academy's answer of 26 October 2026): one label to a page; the view sets the size and @page. */
.libl-roll{display:flex;flex-direction:column;align-items:center;gap:4mm;padding:16px}
.libl-roll .libl{padding:1.5mm 3mm;gap:.6mm;background:#fff;outline:1px solid var(--line);border-radius:2mm}
.libl-roll .libl-org{font-size:5.5pt}
.libl-roll .libl-title{font-size:7pt;max-height:1.2em;max-width:100%;white-space:nowrap;text-overflow:ellipsis}
.libl-roll .libl-code svg{width:100%}
.libl-roll .libl-num{font-size:7.5pt}
@media print{
  @page{size:A4;margin:0}
  .libl-bar{display:none}
  .libl-sheet{margin:0;box-shadow:none}
  .libl{outline:none}
  .libl-roll{display:block;padding:0}
  .libl-roll .libl{outline:none;border-radius:0;break-after:page}
  .libl-roll .libl:last-child{break-after:auto}
}

/* Studio hire price changes: the rates tables are three short columns, so no wide minimum; a regular hirer's row puts its buttons under the text on a phone. */
table.data.data-compact{min-width:0}
@media (max-width:640px){.list-row.hire-price-row{flex-wrap:wrap}.list-row.hire-price-row .grow{flex-basis:100%}}

/* Choose a date (the Academy's request of 26 October 2026): a month calendar beside Today on the timetable and studio hire. */
.datejump{position:relative}
.datejump-pop{position:absolute;top:calc(100% + 8px);left:0;z-index:95;width:292px;padding:14px 14px 10px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-lg);animation:modalIn .16s ease}
.datejump-pop[hidden]{display:none}
.datejump-pop.to-left{left:auto;right:0}
.datejump-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.datejump-title{font:600 15px var(--font-head);color:var(--ink)}
.datejump-nav{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:0;border-radius:8px;background:none;color:var(--ink);cursor:pointer}
.datejump-nav:hover{background:var(--bg)}
.datejump-nav svg{width:16px;height:16px}
.datejump-row{display:grid;grid-template-columns:repeat(7,1fr);gap:0;margin-bottom:2px}
.datejump-dow{padding:6px 0;text-align:center;font-size:12px;font-weight:500;color:var(--faint)}
.datejump-day{height:36px;border:0;border-radius:9px;background:none;font:500 13.5px var(--font-body);color:var(--ink);cursor:pointer;font-variant-numeric:tabular-nums}
.datejump-day:hover{background:var(--bg)}
.datejump-day.is-out{color:var(--faint)}
.datejump-day.in-view{background:var(--purple-soft);border-radius:0}
.datejump-day.in-view:first-child{border-radius:9px 0 0 9px}
.datejump-day.in-view:last-child{border-radius:0 9px 9px 0}
.datejump-day.is-today{color:var(--purple);font-weight:700}
.datejump-row .datejump-day.is-on{background:var(--ink);color:#fff;border-radius:9px;font-weight:600}
.datejump-row .datejump-day.is-on:hover{background:var(--navy-3)}
@media (prefers-reduced-motion:reduce){.datejump-pop{animation:none}}

/* ---------- 27 October: tick several sessions on the timetable, then cancel or delete them ---------- */
.tt-selecting .tt-ev{padding-right:26px}
.tt-selecting .tt-ev::after{content:"";position:absolute;top:6px;right:6px;width:16px;height:16px;border-radius:50%;border:1.5px solid var(--ink-2);background:#fff center/10px no-repeat}
.tt-selecting .tt-ev.is-picked,.tt-selecting .tt-month-ev.is-picked{outline:2px solid var(--purple);outline-offset:1px;z-index:4}
.tt-selecting .tt-ev.is-picked::after{border-color:var(--purple);background-color:var(--purple);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.tt-selecting .tt-ev.is-cancelled.is-picked{opacity:.8}
.tt-month-ev.is-picked::before{content:"\2713\00a0";font-weight:700;color:var(--purple-dark)}
.tt-select-bar{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:90;display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap;justify-content:center;
  width:max-content;max-width:calc(100vw - 32px);padding:10px 12px 10px 18px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-lg)}
.tt-select-bar[hidden]{display:none}
.tt-select-bar [data-tt-select-count]{font-weight:600;color:var(--ink)}
.tt-select-actions{display:flex;gap:8px;flex-wrap:wrap}
.checkline.remove-choice.when-from{grid-template-columns:18px minmax(0,1fr);align-items:start;row-gap:0}
.remove-choice.when-from .input{margin:4px 0}
@media (max-width:560px){.tt-select-bar{left:16px;right:16px;bottom:54px;transform:none;width:auto;padding:10px 12px}}

/* ---------- 27 October: choose several students, then add them to a session at once ---------- */
.picked-students{margin:0 0 12px;padding:10px 12px;border-radius:10px;background:#F6F8FB}
.picked-students[hidden]{display:none}
.picked-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.picked-chip{display:inline-flex;align-items:center;gap:4px;padding:4px 4px 4px 11px;border-radius:999px;background:var(--purple-soft);color:var(--purple-dark);font-size:13px;font-weight:600}
.picked-chip .x{border:0;background:none;color:inherit;font-size:16px;line-height:1;width:22px;height:22px;border-radius:50%;cursor:pointer}
.picked-chip .x:hover{background:rgba(0,0,0,.08)}
