/*
 * ISS Track in the Jarvis Education "style D" look (Oct 2026), the same as the CRM,
 * the associate portal, the client portal and the WordPress admin.
 *
 * Loaded last, on top of app.css, starling.css, soft.css and report.css.
 * The plum and lilac in those files have already been swapped for the CRM's navy,
 * sky blue and greys. This file adds the rest of the CRM look:
 *   - Plus Jakarta Sans for everything, headings at 800 instead of a serif
 *   - a navy band across the top of each page with the three-colour stripe,
 *     the page title in white and the school underneath in sky blue
 *   - white cards with 20px corners and the CRM's soft shadow
 *   - pill buttons and pill tabs
 * The met, partly met and not met colours are left exactly as they were, because
 * they carry meaning.
 * Fonts are hosted here, so nothing is loaded from Google.
 */
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2")}
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2")}
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:800;font-display:swap;src:url("fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2")}

:root{
  --sans:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --serif:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --navy:#092A45; --coral:#FD7253; --coral-dk:#E95C3D; --cyan:#58B7F5; --teal:#1D7A74; --sky:#A4CAE1;
  --plum:#092A45; --plum-deep:#092A45; --plum-mid:#143C5F; --lilac:#A4CAE1;
  --card:20px; --tile:16px; --r:12px;
  --shadow:0 1px 2px rgba(9,42,69,.04),0 4px 14px rgba(9,42,69,.05);
  --shadow-hover:0 2px 4px rgba(9,42,69,.06),0 10px 24px rgba(9,42,69,.09);
  --stripe:linear-gradient(90deg,#58B7F5 0 25%,#2C9F97 25% 50%,#FBBCAE 50% 75%,#FD7253 75% 100%);
}
body{font-family:var(--sans);font-size:15px;background:#EEF1F4;-webkit-font-smoothing:antialiased}

/* Headings: the CRM's heavy sans, not a serif */
h1,h2{font-family:var(--sans);font-weight:800;letter-spacing:-.02em;color:var(--navy)}
h2{font-size:1.3rem}
.panel h2{font-size:1.2rem}
h3{font-weight:800}

/* ------------------------------------------------------------ shell ---- */
.shell{background:linear-gradient(90deg,var(--navy) 264px,transparent 264px)}
.side{background:var(--navy);position:relative}
.side::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:var(--stripe);z-index:2}
.side::after{display:none}
.brand b{font-family:var(--sans);font-weight:800;font-size:1.3rem;letter-spacing:-.02em}
.brand b i{color:var(--sky);font-weight:500}
.brand span{color:#A4CAE1;font-size:.68rem;letter-spacing:.06em}
.side .grp{color:#A4CAE1;font-size:.7rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.side nav a{color:rgba(255,255,255,.84);border-radius:999px;margin:1px 10px;padding:.5rem .95rem;font-weight:600}
.side nav a:hover{background:rgba(255,255,255,.1);color:#fff}
.side nav a.on{background:#fff;color:var(--navy);font-weight:800;border-left:0}
.side nav a .n{background:var(--coral);color:var(--navy);border-radius:99px;font-weight:800}
.side nav a.on .n{background:var(--coral);color:var(--navy)}
.side .me a{color:var(--sky)}
.side .hc-card{border-radius:16px}

/* The navy band along the top of every page (desktop) */
@media (min-width:900px){
  .top{position:relative;background:var(--navy);border-bottom:0;padding:1.6rem 2rem 1.5rem;color:#fff}
  .top::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:var(--stripe)}
  .top h1,.top .m-title h1{color:#fff;font-size:2.1rem;font-weight:800;letter-spacing:-.025em;margin:0}
  .top .ctx{color:#A4CAE1;font-size:.92rem;font-weight:600;margin-top:.2rem}
  .top .ctx a{color:#fff}
  .top select{background:rgba(255,255,255,.12)!important;color:#fff;border:0!important;border-radius:999px!important;height:40px;padding:0 2.2rem 0 1rem}
  .top select option,.top select optgroup{color:var(--navy)}
  .top .m-ic{color:#fff}
}
@media (max-width:899px){
  .top{background:var(--navy)}
  .top::after{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:var(--stripe)}
}

/* ------------------------------------------------------------- cards ---- */
.panel{border:0;border-radius:var(--card);box-shadow:var(--shadow);background:#fff}
.panel.accent{border:0}
.figure{border-radius:var(--tile);background:#F1F4F7}
.figure b{font-family:var(--sans);font-weight:800;font-size:2.1rem;letter-spacing:-.02em;color:var(--navy)}
a.figure:hover{background:#EAF2F5}
.empty{border-radius:var(--tile)}
.banner,.flash{border-radius:14px}
.ring .big{font:800 42px var(--sans);letter-spacing:-.02em;fill:var(--navy)}
.ring .t-progress{stroke:var(--teal)}
.std .ref{font-family:var(--sans);font-weight:800;font-size:.95rem;color:var(--navy)}
.role-card b{font-family:var(--sans);font-weight:800}
.pk,.role-card{border:0;border-radius:var(--card);box-shadow:var(--shadow)}

/* ------------------------------------------------------ pills & buttons ---- */
.btn{border-radius:999px;font-weight:700;background:var(--navy)}
.btn:hover{background:#143C5F}
.btn.sm{border-radius:999px}
.btn.ghost{background:#fff;color:var(--navy);box-shadow:inset 0 0 0 1.5px #CDD5DD}
.btn.ghost:hover{background:#F1F4F7;color:var(--navy);box-shadow:inset 0 0 0 1.5px #B9C3CD}
.btn:focus-visible,a:focus-visible,button:focus-visible{outline:3px solid var(--coral);outline-offset:2px}
.tabs a{border-radius:999px;background:#E2E7EC;color:var(--navy)}
.tabs a:hover{background:#D5DCE3}
.tabs a.on{background:var(--navy);color:#fff}
.seg-toggle{border-radius:999px}
a{color:var(--teal)}

/* Fields: the CRM's 12px corners and navy focus */
input:not([type]),input[type=tel],input[type=time],input[type=datetime-local],
input[type=text],input[type=email],input[type=password],input[type=url],input[type=date],input[type=number],input[type=search],select,textarea{
  border-radius:12px;border:1.5px solid #D5DCE3;font-family:var(--sans)}
input:focus,select:focus,textarea:focus{border-color:var(--navy);box-shadow:0 0 0 3px rgba(74,179,200,.25);outline:none}

/* The upgrade and health check panels */
.hc-cta,.panel.hc{border-radius:var(--card)}

/* Phone: the bottom bar's camera button takes the coral, as the one action */
.mbar a.cam i{background:var(--coral)!important;color:var(--navy)!important}
.mbar a.on i{background:#EAF2F5}

/* ------------------------------------------------------- policy register (Oct 2026) ---- */
.polreg td{vertical-align:top}
.polreg td label.small{display:block;margin:0 0 .45rem;font-weight:600;color:var(--navy)}
.polreg td label.small input,.polreg td label.small select{margin-top:.15rem;font-weight:400}
.polreg .docread{border-left-color:var(--sky);padding:.5rem 0 .2rem .8rem;margin-top:.4rem}
.polreg details{margin-top:.35rem}
.polreg details[open]>summary{margin-bottom:.35rem}
.polup-form{background:#F4F7FA;border-radius:var(--r);padding:.8rem;margin-top:.3rem;max-width:420px}
.polup-form label{display:block;margin-bottom:.5rem}
.polup-form label[hidden]{display:none}
.polup-form select,.polup-form input[type=date],.polup-form input[type=text]{width:100%}
.polup>summary.btn{display:inline-flex;list-style:none;margin-top:.4rem}
.polup>summary.btn::-webkit-details-marker{display:none}
.polup-form .row2{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}
.polhist{margin:.3rem 0;padding-left:1.1rem}
.polhist li{margin-bottom:.35rem}
.polsup{margin:.6rem 0 .2rem}
.polsup ul{margin:.25rem 0 0;padding-left:1.1rem}
.polsup li{margin-bottom:.3rem;overflow-wrap:anywhere}
.polsup-err{color:#A8301C;margin:0 0 .5rem}
.hcp-verdict .docread{border-left-color:var(--sky);padding:.3rem 0 0 .7rem;margin-top:.3rem}
.hc-desk label.suggested input,.hc-desk label.suggested select{background:#FFF7F2;border-color:var(--coral)}
.hc-desk .desk-read{margin-top:.6rem}
@media (max-width:700px){.polup-form .row2{grid-template-columns:1fr}.polup-form{max-width:none}}
@media screen and (max-width:860px){
  table.m-cards.polreg td{display:block}
  table.m-cards.polreg td::before{display:block;margin:.7rem 0 .25rem;font-size:.74rem;text-transform:uppercase;letter-spacing:.05em}
  table.m-cards.polreg td:first-child::before{display:none}
  table.m-cards.polreg td label.small select,table.m-cards.polreg td label.small input{width:100%}
}
@media screen and (max-width:860px){
  table.m-cards.hc-pol td{display:block}
  table.m-cards.hc-pol td::before{display:block;margin:.6rem 0 .2rem}
}

/* ------------------------------------------------- evidence, actions and readiness (Oct 2026) ---- */
.sugg{margin:.9rem 0 .2rem;border-top:1px solid var(--line,#DCE7EF);padding-top:.8rem}
.sugg>summary{cursor:pointer}
.sugg-list{list-style:none;margin:.6rem 0 0;padding:0}
.sugg-list li{display:flex;gap:.8rem;align-items:center;justify-content:space-between;padding:.55rem .7rem;border-radius:12px;background:#F4F7FA;margin-bottom:.4rem;font-size:.92rem}
.sugg-list li .btn{flex:none}
.flag-paper,.flag-stale{border-left:4px solid var(--coral)}
.flag-loop{border-left:4px solid var(--cyan)}
.evtype{font-weight:600;color:var(--teal)}
.evlist small.muted{display:block}
.act-success,.act-outcome{background:#F4F7FA;border-radius:12px;padding:.6rem .8rem}
.act-outcome{background:#EEF8F3}
.steps{list-style:none;margin:.4rem 0 0;padding:0}
.steps li{display:flex;gap:.7rem;align-items:flex-start;padding:.45rem 0;border-bottom:1px solid var(--line,#DCE7EF)}
.steps li>span{flex:1}
.steps li small{display:block;color:#6E7A86}
.steps li.done>span{color:#6E7A86;text-decoration:line-through}
.steps .tick{width:26px;height:26px;border-radius:8px;border:2px solid var(--teal);background:#fff;color:var(--teal);font-weight:800;line-height:1;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.steps li.done .tick{background:var(--teal);color:#fff}
.tl h2.warn{color:#B4362A}
.tl-list{list-style:none;margin:0;padding:0}
.tl-list li{display:flex;gap:.9rem;align-items:flex-start;padding:.55rem 0;border-bottom:1px solid var(--line,#DCE7EF)}
.tl-list li>span:nth-child(2){flex:1}
.tl-list li small{display:block;color:#6E7A86}
.tl-date{flex:0 0 92px;font-size:.85rem;color:#6E7A86;white-space:nowrap}
.tl-step{padding-left:1.4rem!important;font-size:.92rem}
.tl-step.done{opacity:.65}
.tl-mini{margin:.3rem 0 0;padding-left:1.1rem}
.reh-res{display:flex;flex-wrap:wrap;gap:.5rem;margin:.6rem 0}
.reh-res label{display:inline-flex;gap:.4rem;align-items:center;padding:.45rem .8rem;border-radius:999px;background:#F4F7FA;cursor:pointer;font-weight:600;font-size:.9rem}
.reh-res label:has(input:checked){outline:2px solid var(--navy)}
.reh-timer{position:sticky;top:.5rem;z-index:5}
.obsform select[multiple],.evform select[multiple]{min-height:9rem;width:100%}
.unmet .ph{align-items:center}
@media (max-width:700px){.sugg-list li{flex-direction:column;align-items:flex-start}.tl-date{flex-basis:70px}}
/* Oct 2026, release 4: inspection report import, monitoring visits, spreadsheet import, termly summary */
.printonly{display:none}
@media print{.printonly{display:block!important}}
.imp-card blockquote{margin:.4rem 0 .6rem;padding:.5rem .8rem;border-left:3px solid var(--navy);background:rgba(0,0,0,.03)}
.imp-card .ph{align-items:center}
.imp-card .row2{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.visitform.evform .row2{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.sef-part h3{font-size:1rem;margin:1rem 0 .4rem}
.sef-list{margin:0;padding-left:1.1rem}
.sef-list li{margin:.35rem 0}
.sef-ev{margin-top:.9rem}
.sef-intro textarea{width:100%}
.visit-list li small{display:block}
@media (max-width:700px){.imp-card .row2,.visitform.evform .row2{grid-template-columns:1fr}}
@media print{.sef-part{break-inside:avoid-page}}

/* ------------------------------------------------- brand rating colours (Oct 2026) ----
   Met, partially met and not met in the ISS Track logo's own colours rather than traffic lights:
   teal for met, soft coral for partially met, deep coral for not met, sky blue for "in progress".
   Used by the ring, the tiles, the charts and the rating badges. Text uses the darker "ink"
   shade of each, so it stays readable. */
:root{
  --g-met:#2C9F97;  --g-met-bg:#E3F4F2;  --g-met-ink:#1C6B65;
  --g-part:#F6A17E; --g-part-bg:#FEF0E8; --g-part-ink:#9E4A27;
  --g-not:#E2553D;  --g-not-bg:#FCE7E2;  --g-not-ink:#B13A24;
  --g-progress:#58B7F5; --g-none:#C9D3DD; --g-track:#EDF0F3;
}
/* The ring */
.ring .trk{stroke:var(--g-track)}
.ring .t-met{stroke:var(--g-met)} .ring .t-part{stroke:var(--g-part)} .ring .t-not{stroke:var(--g-not)}
.ring .t-progress{stroke:var(--g-progress)} .ring .t-none{stroke:var(--g-none)}
.ring .seglbl{fill:#fff}
.ring .trk + .seglbl{fill:#8B96A3}
/* The figures beside it */
.figure.ok{border-top-color:var(--g-met)} .figure.part{border-top-color:var(--g-part)} .figure.bad{border-top-color:var(--g-not)}
.figure.ok::before{background:var(--g-met)} .figure.part::before{background:var(--g-part)} .figure.bad::before{background:var(--g-not)}
.figure.bad b{color:var(--g-not-ink)}
/* Rating badges, the heat map and the rating buttons */
.r-met{background:var(--g-met-bg);color:var(--g-met-ink)} .r-part{background:var(--g-part-bg);color:var(--g-part-ink)} .r-not{background:var(--g-not-bg);color:var(--g-not-ink)}
.heat .t-met{background:var(--g-met-bg);color:var(--g-met-ink)} .heat .t-part{background:var(--g-part-bg);color:var(--g-part-ink)} .heat .t-not{background:var(--g-not-bg);color:var(--g-not-ink)}
.heat .t-progress{background:#E6F3FD;color:#1E5F8A}
.rag button[aria-pressed=true].met{background:var(--g-met);border-color:var(--g-met);color:#fff}
.rag button[aria-pressed=true].part{background:var(--g-part);border-color:var(--g-part);color:#4A2414}
.rag button[aria-pressed=true].not{background:var(--g-not);border-color:var(--g-not);color:#fff}
.hcrate .hr-met input:checked+span{background:var(--g-met);border-color:var(--g-met);color:#fff}
.hcrate .hr-part input:checked+span{background:var(--g-part);border-color:var(--g-part);color:#4A2414}
.hcrate .hr-not input:checked+span{background:var(--g-not);border-color:var(--g-not);color:#fff}
/* Keys, dots, bars and trend charts */
.i-met,.k-met{background:var(--g-met)} .i-part,.k-part{background:var(--g-part)} .i-not,.k-not{background:var(--g-not)}
.trend.stack .s-met{fill:var(--g-met)} .trend.stack .s-part{fill:var(--g-part)} .trend.stack .s-not{fill:var(--g-not)}
.hc-bar .m,.hc-legend .m{background:var(--g-met)} .hc-bar .p,.hc-legend .p{background:var(--g-part)} .hc-bar .x,.hc-legend .x{background:var(--g-not)}
.pill.part{background:var(--g-part-bg);border-color:#F7CDBA} .pill.bad{background:var(--g-not-bg);border-color:#F3BDB2} .pill.bad b{color:var(--g-not-ink)}
/* Reports: the line beside each standard */
.rpt-body .rep-std:has(.r-not){border-left-color:var(--g-not)} .rpt-body .rep-std:has(.r-part){border-left-color:var(--g-part)} .rpt-body .rep-std:has(.r-met){border-left-color:var(--g-met)}

/* Oct 2026: support requests and compliance tasks */
.support-card{background:#FFF7F2;border-left:4px solid var(--coral)}
.badge.b-task{background:#EAF4F6;color:var(--teal)}
.tasklib{list-style:none;margin:.3rem 0 .8rem;padding:0}
.tasklib li{padding:.5rem .7rem;border-radius:12px;background:#F4F7FA;margin-bottom:.4rem}
.tasklib li.is-on{opacity:.65}
.tasklib label.check{display:flex;gap:.6rem;align-items:flex-start;margin:0}
.tasklib input[type=checkbox]{margin-top:.25rem;flex:none}
.tasks-t tr.late td:first-child{box-shadow:inset 3px 0 0 var(--g-not,#C2453D)}
.taskdo>summary{list-style:none}
.taskdo>summary::-webkit-details-marker{display:none}
.taskdo[open]>summary{margin-bottom:.5rem}
/* Console: using ISS Track right now */
.live-panel{border-left:4px solid var(--teal)}
.live-top{display:flex;gap:.9rem;align-items:center;margin:.2rem 0 .8rem}
.live-top b{font-size:2.6rem;font-weight:800;color:var(--navy);line-height:1}
.live-t td{vertical-align:top}

/* Oct 2026: choosing a Comprehensive or Light touch health check, and the team of reviewers */
.hc-type-set,.hc-team{border:0;padding:0;margin:0 0 1rem;min-width:0}
.hc-type-set legend,.hc-team legend{padding:0;margin-bottom:.45rem;font-size:.95rem}
.hc-types{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:.7rem}
.hc-type{display:flex;gap:.65rem;align-items:flex-start;border:1.5px solid #DCE3EA;border-radius:10px;padding:.8rem .95rem;cursor:pointer;background:#fff;margin:0;font-weight:400}
.hc-type input{margin:.2rem 0 0;flex:none;width:auto}
.hc-type b{font-size:1rem}
.hc-type em{font-style:normal;font-weight:700;color:#1D7A74;margin-left:.25rem}
.hc-type small{display:block;margin-top:.25rem;color:#5B6B7B;line-height:1.4}
.hc-type:has(input:checked){border-color:#092A45;box-shadow:0 0 0 3px rgba(46,125,140,.15)}
.hc-team .check{margin:.15rem 0}

/* Oct 2026: the side menu stays in place and fills the full height of the screen on desktops and laptops, for every login.
   The rule above (position:relative, there for the coloured stripe) had cancelled the "stay in place" setting, so the menu
   scrolled away with the page and left an empty strip. The menu scrolls on its own when it is longer than the screen,
   and scrolling it never moves the page behind. Phones keep their slide-up menu (mobile.css). */
@media (min-width:861px){
  .shell{align-items:flex-start}
  .side{position:sticky;top:0;align-self:flex-start;height:100vh;height:100dvh;min-height:0;overflow-y:auto;overflow-x:hidden;
        overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.28) transparent}
  .side::-webkit-scrollbar{width:8px}
  .side::-webkit-scrollbar-track{background:transparent}
  .side::-webkit-scrollbar-thumb{background:rgba(255,255,255,.22);border-radius:8px;border:2px solid var(--navy)}
  .side::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.4)}
  .side nav{flex:1 0 auto}
  .side .me{flex:0 0 auto}
  .main{min-height:100vh}
}

/* Oct 2026: renewal banners and the Subscription and invoices page */
.banner.renewbar{display:flex;align-items:center;gap:1rem;background:#fff;border:1px solid #DCE3EA;border-left:4px solid var(--teal,#1D7A74);border-radius:14px;padding:.85rem 1.1rem}
.banner.renewbar.soon{border-left-color:var(--coral,#FD7253);background:#FFF8F4}
.banner.renewbar > div:first-child{flex:1;min-width:0}
.banner.renewbar .rb-act{flex:0 0 auto;display:flex;gap:.5rem}
@media (max-width:700px){.banner.renewbar{flex-wrap:wrap}.banner.renewbar .rb-act{flex-basis:100%}}
dl.kv{display:grid;grid-template-columns:max-content 1fr;gap:.45rem 1.2rem;margin:.4rem 0 1rem}
dl.kv > div{display:contents}
dl.kv dt{color:#5B6B7B;font-size:.88rem}
dl.kv dd{margin:0;font-weight:600}
.auto-renew{display:grid;gap:.6rem;margin:.4rem 0 1rem}
.auto-renew .check{border:1.5px solid #DCE3EA;border-radius:10px;padding:.7rem .9rem;cursor:pointer}
.auto-renew .check:has(input:checked){border-color:#092A45;box-shadow:0 0 0 3px rgba(46,125,140,.15)}
.auto-renew small{display:block;color:#5B6B7B;margin-top:.15rem;font-weight:400}

/* Oct 2026: the drag and drop timetable for reviewers and Jarvis Education */
.tt-print{display:none}
.tt-bar{position:sticky;top:0;z-index:6;display:flex;align-items:center;justify-content:flex-end;gap:.7rem;padding:.55rem .2rem;margin-bottom:.4rem;background:var(--mist,#EEF1F4)}
.tt-save{font-size:.82rem;color:#5B6B7B}
.tt-save.ok{color:#2F7D4F}.tt-save.busy{color:#5B6B7B}.tt-save.bad{color:#B4362A;font-weight:700}
.tt-day{padding:0;overflow:hidden}
.tt-dayhead{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:1rem 1.3rem .6rem}
.tt-dayhead h2{margin:0}
.tt-list{list-style:none;margin:0;padding:0}
.tt-empty{padding:1.2rem 1.3rem;color:#5B6B7B;font-size:.9rem;border-top:1px solid #E3E8EE}
.tt-slot{display:grid;grid-template-columns:30px 88px minmax(0,1fr) auto;gap:.2rem .8rem;align-items:start;padding:.75rem 1.1rem .75rem .5rem;border-top:1px solid #E3E8EE;background:#fff;transition:background .15s,box-shadow .15s}
.tt-slot:hover{background:#FAFBFC}
.tt-grip,.tt-time{user-select:none;-webkit-user-select:none}
.tt-grip{border:0;background:none;padding:.35rem .2rem;margin:0;color:#9AA6B2;cursor:grab;touch-action:none;border-radius:6px;font-size:1rem;line-height:1;letter-spacing:-.25em}
.tt-grip:hover,.tt-grip:focus-visible{color:#092A45;background:#EEF1F4}
.tt-when{display:flex;flex-direction:column;align-items:flex-start;gap:.25rem}
.tt-time{border:0;border-radius:8px;background:#092A45;color:#fff;font-weight:800;font-variant-numeric:tabular-nums;font-size:.92rem;padding:.3rem .55rem;cursor:grab;touch-action:none;margin:0}
.tt-time:hover{background:#1D7A74}
.tt-time.clash{background:#B4362A}
.tt-tin{width:96px;margin:0;padding:.25rem .35rem;font-size:.9rem}
.tt-len{font-size:.72rem;color:#7A8794}
.tt-body{min-width:0;display:flex;flex-direction:column;gap:.3rem}
.tt-act,.tt-purpose,.tt-notes{outline:none;border-radius:6px;padding:.1rem .3rem;margin:0 -.3rem;cursor:text;white-space:pre-wrap;overflow-wrap:anywhere}
.tt-act{font-weight:800;color:#092A45}
.tt-purpose{font-size:.85rem;color:#5B6B7B}
.tt-notes{font-size:.85rem;color:#092A45}
.tt-notes:not(:empty){border-left:3px solid var(--coral,#FD7253);padding-left:.5rem;margin-left:0}
.tt-act:hover,.tt-purpose:hover,.tt-notes:hover{background:#F1F4F7}
.tt-act:focus,.tt-purpose:focus,.tt-notes:focus{background:#fff;box-shadow:0 0 0 2px #1D7A74}
.tt-act:empty::before,.tt-purpose:empty::before,.tt-notes:empty::before{content:attr(data-placeholder);color:#A3AEB9;font-weight:400}
.tt-notes:empty:not(:focus):not(.open){display:none}
.tt-note-btn{border:0;background:none;color:#7A8794;font-size:.75rem;font-weight:700;padding:.1rem .3rem;border-radius:6px;cursor:pointer;margin:0}
.tt-note-btn:hover{color:#092A45;background:#EEF1F4}
.tt-plist{display:flex;flex-wrap:wrap;gap:.3rem;align-items:center;min-height:1.6rem}
.tt-person{display:inline-flex;align-items:center;gap:.25rem;background:#E6F3F5;color:#1E5A66;border:1px solid #CFE6EA;border-radius:99px;padding:.12rem .2rem .12rem .6rem;font-size:.8rem;font-weight:700;cursor:grab;touch-action:none;user-select:none}
.tt-chips .tt-person{padding-right:.6rem;margin:0 .3rem .35rem 0}
.tt-person:hover{background:#D5ECF0}
.tt-px{border:0;background:none;color:#5B8A93;width:18px;height:18px;border-radius:50%;padding:0;margin:0;line-height:1;font-size:.95rem;cursor:pointer}
.tt-px:hover{background:#fff;color:#B4362A}
.tt-padd{border:1px dashed #B9C4CF;background:none;color:#5B6B7B;border-radius:99px;padding:.12rem .6rem;font-size:.78rem;margin:0;cursor:pointer}
.tt-padd:hover{border-color:#1D7A74;color:#1D7A74}
.tt-pin{width:150px;margin:0;padding:.15rem .5rem;font-size:.82rem;border-radius:99px}
.tt-side-acts{display:flex;flex-direction:column;align-items:flex-end;gap:.4rem}
.tt-status{border:0;cursor:pointer;margin:0}
.tt-status.st-planned{background:#EEF1F4;color:#4A5867}.tt-status.st-confirmed{background:#E3F3EA;color:#2F7D4F}.tt-status.st-done{background:#E6F3F5;color:#1E5A66}.tt-status.st-moved{background:#FFF1E2;color:#9A5A00}
.tt-del{border:0;background:none;color:#A3AEB9;font-size:1.15rem;line-height:1;padding:.1rem .35rem;border-radius:6px;cursor:pointer;margin:0}
.tt-del:hover{color:#B4362A;background:#FBECEA}
.tt-add{margin:.7rem 1.1rem 1rem}
.tt-people .tt-chips{margin:.6rem 0}
.tt-addp{display:flex;gap:.4rem;margin:0 0 .7rem}
.tt-addp input{margin:0;flex:1;min-width:0}
.tt-bin{border:2px dashed #E3C2BD;color:#B4362A;border-radius:12px;padding:.7rem;text-align:center;font-size:.85rem;font-weight:700;opacity:.55;transition:all .15s}
body.tt-drag-person .tt-bin{opacity:1}
.tt-bin.tt-over-bin{background:#FBECEA;border-color:#B4362A;opacity:1}
/* While dragging */
body.tt-dragging,body.tt-dragging *{cursor:grabbing!important;user-select:none!important}
.tt-ghost{position:fixed;left:0;top:0;z-index:1000;pointer-events:none;background:#092A45;color:#fff;font-weight:700;font-size:.85rem;padding:.45rem .8rem;border-radius:10px;box-shadow:0 10px 28px rgba(20,29,39,.28);max-width:340px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tt-ghost-person,.tt-ghost-pool{background:#1D7A74;border-radius:99px}
.tt-src{opacity:.35}
.tt-slot.tt-swap{background:#E6F3F5;box-shadow:inset 0 0 0 2px #1D7A74}
.tt-slot{position:relative}
.tt-slot.tt-swap::after{content:"Swap";position:absolute;right:3.2rem;top:50%;transform:translateY(-50%);background:#1D7A74;color:#fff;font-size:.72rem;font-weight:800;border-radius:99px;padding:.15rem .55rem;pointer-events:none}
.tt-slot.tt-before{box-shadow:inset 0 3px 0 var(--coral,#FD7253)}
.tt-slot.tt-after{box-shadow:inset 0 -3px 0 var(--coral,#FD7253)}
.tt-slot.tt-over{background:#E6F3F5;box-shadow:inset 0 0 0 2px #1D7A74}
.tt-time.tt-swap{background:#1D7A74;box-shadow:0 0 0 3px rgba(46,125,140,.3)}
.tt-day.tt-over-day{box-shadow:0 0 0 2px #1D7A74}
.flash-row{animation:ttflash .9s ease}
@keyframes ttflash{from{background:#FFF6D9}to{background:#fff}}
@media (max-width:700px){
  .tt-slot{grid-template-columns:28px auto 1fr;padding:.7rem .8rem .7rem .3rem}
  .tt-when{flex-direction:row;align-items:center;gap:.5rem;grid-column:2}
  .tt-side-acts{grid-column:3;grid-row:1;flex-direction:row;justify-content:flex-end}
  .tt-body{grid-column:1 / -1}
}
@media (prefers-reduced-motion:reduce){.tt-slot,.tt-bin{transition:none}.flash-row{animation:none}}
@media print{.tt-editor{display:none!important}.tt-print{display:block!important}}

/* Oct 2026: the school's requests and the reply stay beside the timetable while you scroll and drag */
@media (min-width:1201px){
  .tt-side{position:sticky;top:12px;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;
           scrollbar-width:thin;scrollbar-color:#C5CED8 transparent;padding:2px 4px 2px 2px;margin:-2px -4px -2px -2px}
  .tt-side::-webkit-scrollbar{width:6px}.tt-side::-webkit-scrollbar-thumb{background:#C5CED8;border-radius:6px}
  .tt-req-mini{display:none}
  .tt-side .tt-bin{position:sticky;bottom:0;background:#fff;z-index:1}
}
.tt-req .tt-quote{max-height:38vh;overflow-y:auto;white-space:normal}
.tt-req.tt-alert{border-color:#F7C4B3}
.tt-ask textarea[name=tt_response]{min-height:6rem}
/* Narrower screens: the side column sits above the timetable, so the school's request is pinned in the bar instead */
.tt-bar{flex-wrap:wrap}
.tt-req-mini{flex:1 1 100%;order:-1;background:#fff;border:1px solid #DCE3EA;border-left:4px solid #1D7A74;border-radius:10px;padding:.45rem .75rem;font-size:.86rem}
.tt-req-mini.new{border-left-color:var(--coral,#FD7253)}
.tt-req-mini summary b{white-space:nowrap}
.tt-req-mini summary{cursor:pointer;display:flex;gap:.35rem;min-width:0;list-style:none}
.tt-req-mini summary::-webkit-details-marker{display:none}
.tt-req-mini summary span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;color:#5B6B7B}
.tt-req-mini summary::after{content:"Show";margin-left:auto;flex:none;color:#1D7A74;font-weight:700}
.tt-req-mini[open] summary::after{content:"Hide"}
.tt-req-mini[open] summary span{display:none}
.tt-req-full{margin-top:.45rem;max-height:40vh;overflow-y:auto}

/* Oct 2026: on desktops and laptops the timetable and the column beside it are two panes that scroll separately,
   so the reviewer can line up the school's request with the part of the timetable being changed */
.tt-help{background:#fff;border:1px solid #DCE3EA;border-left:4px solid #1D7A74;border-radius:12px;padding:.6rem .9rem;margin:0 0 .9rem;font-size:.9rem}
.tt-help summary{cursor:pointer;list-style:none;display:flex;gap:.5rem;align-items:baseline}
.tt-help summary::-webkit-details-marker{display:none}
.tt-help summary span{margin-left:auto;color:#1D7A74;font-weight:700;font-size:.82rem}
.tt-help[open] summary span::after{content:" (hide)"}
.tt-help p{margin:.5rem 0 0;color:#3E4C5A}
@media (min-width:1201px){
  .tt-wrap.split{overflow:hidden;align-items:stretch;min-height:0}
  .tt-wrap.split > .tt-main,.tt-wrap.split > .tt-side{height:100%;max-height:none!important;overflow-y:auto;overscroll-behavior:contain;
       scrollbar-width:thin;scrollbar-color:#C5CED8 transparent;position:relative;top:auto;margin:0;padding:0 6px 1rem 0}
  .tt-wrap.split > .tt-main::-webkit-scrollbar,.tt-wrap.split > .tt-side::-webkit-scrollbar{width:8px}
  .tt-wrap.split > .tt-main::-webkit-scrollbar-thumb,.tt-wrap.split > .tt-side::-webkit-scrollbar-thumb{background:#C5CED8;border-radius:8px}
  .tt-wrap.split .tt-bar{top:0!important}
  .tt-wrap.split > .tt-main > .hc-day:first-child,.tt-wrap.split > .tt-main > div > .hc-day:first-child{margin-top:0}
}

/* ---------- Inspection insights (Oct 2026): coral Ofsted and teal ISI flags, the key and the popover ---------- */
.ins-flags{display:inline-flex;gap:.3rem;vertical-align:middle;margin-left:.35rem;flex-wrap:wrap}
.ins-flag{display:inline-flex;align-items:center;gap:.22rem;height:24px;padding:0 .45rem 0 .38rem;border-radius:999px;border:1.5px solid;font:700 12px/1 var(--sans);cursor:pointer;position:relative;
  background:#FEEDE6;border-color:#FD7253;color:#A9462A;transition:transform .12s,box-shadow .12s;vertical-align:middle;white-space:nowrap}
.ins-flag svg{flex:none}.ins-flag svg .fl{fill:#FD7253}.ins-flag b{font-weight:800}
.ins-flag i{font-style:normal;font-size:10px;background:#092A45;color:#fff;border-radius:6px;padding:1px 4px}
.ins-flag.ins-isi{background:#E2F1F3;border-color:#1D7A74;color:#1F5E6A}.ins-flag.ins-isi svg .fl{fill:#1D7A74}
button.ins-flag:hover,button.ins-flag[aria-expanded=true]{transform:translateY(-1px);box-shadow:0 3px 10px rgba(9,42,69,.16)}
button.ins-flag:focus-visible{outline:3px solid #092A45;outline-offset:2px}
.ins-flag.look::after{content:"";position:absolute;top:-4px;right:-4px;width:10px;height:10px;border-radius:50%;background:#092A45;border:2px solid #fff}
.ins-flag.is-key{cursor:default}
html.ins-hidden .ins-flags{display:none}
.ins-key{display:flex;gap:1.1rem;align-items:center;background:linear-gradient(120deg,#FFF6F2 0,#fff 45%,#EEF7F8 100%);border:1px solid #E3E9EF;border-radius:var(--card,20px);padding:.9rem 1.2rem;margin:0 0 1.1rem}
.ins-key-art{flex:none;width:100px;height:77px}
.ins-key-body{flex:1;min-width:0}.ins-key-top{display:flex;justify-content:space-between;gap:1rem;align-items:baseline}
.ins-key-top b{font-size:1.02rem;color:#092A45}
.ins-key p{margin:.25rem 0 .55rem;max-width:90ch}
.ins-key-items{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:.4rem 1.4rem;font-size:.84rem}
.ins-key-items li{display:flex;align-items:center;gap:.45rem}
.ins-num{display:inline-grid;place-items:center;min-width:24px;height:24px;border-radius:999px;background:#F1F4F7;font:800 12px var(--sans);color:#092A45}
html.ins-hidden .ins-key-items,html.ins-hidden .ins-key p{display:none}
@media (max-width:640px){.ins-key{flex-direction:column;align-items:flex-start;padding:.8rem 1rem}.ins-key-art{width:84px;height:64px}}

.ins-pop{position:fixed;z-index:1200;font-weight:400;text-align:left;width:min(430px,calc(100vw - 20px));max-height:min(78vh,620px);display:flex;flex-direction:column;background:#fff;border-radius:16px;
  box-shadow:0 2px 6px rgba(20,29,39,.08),0 24px 60px -18px rgba(20,29,39,.42);border-top:5px solid #FD7253;font-size:.9rem;color:#092A45;outline:none;animation:insIn .14s ease-out}
.ins-pop.ins-isi{border-top-color:#1D7A74}
@keyframes insIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.ins-pop-h{display:flex;gap:.55rem;align-items:flex-start;padding:.8rem 1rem .5rem}
.ins-pop-h>svg{margin-top:3px;width:18px;height:18px}.ins-pop-h>svg .fl{fill:#FD7253}.ins-pop.ins-isi .ins-pop-h>svg .fl{fill:#1D7A74}
.ins-pop-t{flex:1;min-width:0;display:flex;flex-direction:column}.ins-pop-t b{font-size:.98rem}.ins-pop-t span{font-size:.8rem;color:#5A6B7D;line-height:1.3}
.ins-x{appearance:none;border:0;background:#F1F4F7;border-radius:50%;width:28px;height:28px;font-size:18px;line-height:1;cursor:pointer;color:#092A45;flex:none}
.ins-x:hover{background:#E3E9EF}
.ins-pop-b{overflow:auto;padding:0 1rem .4rem;overscroll-behavior:contain}
.ins-stat{display:grid;grid-template-columns:auto 1fr;gap:.2rem .8rem;align-items:center;background:#FFF4EF;border-radius:12px;padding:.65rem .8rem;margin:.1rem 0 .6rem}
.ins-isi .ins-stat{background:#EAF5F6}
.ins-big{display:flex;align-items:baseline;gap:.25rem}.ins-big b{font-size:1.9rem;line-height:1;color:#A9462A}.ins-isi .ins-big b{color:#1F5E6A}.ins-big small{color:#5A6B7D;font-weight:600}
.ins-stat-t{display:flex;flex-direction:column;line-height:1.3}.ins-stat-t small{color:#5A6B7D;margin-top:.15rem}
.ins-bar{grid-column:1/-1;height:6px;border-radius:6px;background:rgba(9,42,69,.08);overflow:hidden;margin-top:.35rem}
.ins-bar i{display:block;height:100%;background:#FD7253;border-radius:6px}.ins-isi .ins-bar i{background:#1D7A74}
.ins-look{background:#092A45;color:#fff;border-radius:10px;padding:.55rem .75rem;margin:.2rem 0 .6rem;font-size:.86rem}
.ins-hid{font-size:.8rem;color:#5A6B7D;font-style:italic;margin:.1rem 0 .4rem}
.ins-head{font-weight:600;margin:.2rem 0 .5rem}
.ins-pop h4{font-size:.74rem;letter-spacing:.06em;text-transform:uppercase;color:#5A6B7D;margin:.75rem 0 .3rem}
.ins-tips{margin:0;padding-left:1.1rem}.ins-tips li{margin:.22rem 0;font-weight:400}.ins-pop blockquote,.ins-pop p{font-weight:400}.ins-pop .ins-head{font-weight:600}
.ins-pop blockquote{margin:.35rem 0;padding:.45rem .7rem;border-left:3px solid #FD7253;background:#FAFBFC;border-radius:0 8px 8px 0;font-style:italic;font-size:.85rem}
.ins-isi blockquote{border-left-color:#1D7A74}
.ins-src{font-size:.74rem;color:#7A8999;margin:.2rem 0 0}
.ins-group{margin-top:.8rem;padding:.6rem .75rem;border:1.5px dashed #C9D3DD;border-radius:12px}.ins-group h4{margin-top:0}
.ins-acts{display:flex;flex-direction:column;gap:.35rem;align-items:flex-start;margin:.8rem 0 .2rem;padding-top:.7rem;border-top:1px solid #EDF0F3}
.ins-acts .small{color:#5A6B7D}
.ins-foot{margin:0;padding:.5rem 1rem .75rem;font-size:.74rem;color:#7A8999;border-top:1px solid #EDF0F3}
.ins-pop.sheet{left:0!important;right:0;bottom:0;top:auto!important;width:100%;max-height:82vh;border-radius:18px 18px 0 0;animation:insUp .18s ease-out}
@keyframes insUp{from{transform:translateY(30px);opacity:.4}to{transform:none;opacity:1}}
@media print{.ins-flags,.ins-key,.ins-pop{display:none!important}}

/* Where insights appear in lists: overview panels, the website review, the policy register and tasks */
.ins-tag{display:inline-block;font:700 11px/1 var(--sans);padding:4px 7px;border-radius:999px;background:#FEEDE6;color:#A9462A;white-space:nowrap}
.ins-tag.ins-isi{background:#E2F1F3;color:#1F5E6A}
.ins-focus{list-style:none;margin:.4rem 0 0;padding:0}
.ins-focus li{display:grid;grid-template-columns:1fr auto;gap:.3rem .8rem;align-items:center;padding:.6rem 0;border-top:1px solid #EDF0F3}
.ins-focus li:first-child{border-top:0}
.ins-focus .fx-t{min-width:0}.ins-focus .fx-t a{font-weight:600}.ins-focus .fx-m{display:flex;gap:.3rem;flex-wrap:wrap;margin-top:.25rem;align-items:center}
.ins-focus .fx-r{text-align:right;white-space:nowrap}
.ins-sugg li{display:flex;gap:.8rem;justify-content:space-between;align-items:flex-start;padding:.6rem 0;border-top:1px solid #EDF0F3}
.ins-sugg li:first-child{border-top:0}
.ins-sugg form{flex:none}
.banner.std-ins{border-left-color:#FD7253;background:linear-gradient(110deg,#FFF6F2,#fff 60%,#EEF7F8)}

/* Notifications on this device (live chat) */
.push-bar{display:flex;flex-wrap:wrap;gap:.6rem 1rem;align-items:center;justify-content:space-between;background:#F1F4F7;border-radius:var(--tile,14px);padding:.7rem 1rem;margin-bottom:1rem}
.push-bar .push-text{font-size:.92rem;max-width:72ch}
.push-bar .push-btns{display:flex;gap:.5rem;align-items:center}
.push-bar [hidden]{display:none!important}

/* Oct 2026: the optional desk day call. The school sets it up and invites the reviewers. */
.hc-call{border-radius:12px;background:#F3F6F8;box-shadow:inset 4px 0 0 #9AA6B2;padding:.75rem .95rem;margin:.6rem 0;font-size:.9rem;color:var(--ink,#092A45)}
.hc-call.yes{background:#E9F6F8;box-shadow:inset 4px 0 0 #1D7A74}
.hc-call.no{color:var(--muted,#566B7E)}
.hc-call p{margin:0 0 .35rem}
.hc-call.sm{font-size:.82rem;padding:.55rem .75rem}
.hc-call-who{list-style:none;margin:.3rem 0 .35rem;padding:0;display:grid;gap:.2rem}
.hc-call-who li{display:flex;flex-wrap:wrap;gap:.2rem .5rem;align-items:baseline}
.hc-call-who a{word-break:break-all}
.hc-tt tr.hc-call-row td{background:#F7FBFC}
/* Clear a rating without choosing another one */
.hcrate .hr-clear{border:0;background:none;color:var(--muted,#566B7E);font-weight:700;font-size:.8rem;padding:.32rem .5rem;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.hcrate .hr-clear:hover{color:var(--ink,#092A45)}
.hcrate .hr-clear[hidden]{display:none}
/* Feedback: what has been found so far */
.hc-kf-src{display:inline-block;font-size:.7rem;font-weight:700;padding:.08rem .45rem;border-radius:999px;background:#EEF1F4;color:#566B7E;margin-left:.3rem;vertical-align:1px}
.hc-kf-src.today{background:#FDF0EA;color:#A8492A}
.hc-kf-col h3{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.hc-kf-col .hc-list li{margin-bottom:.45rem}
.hc-kf-act{display:block;color:var(--muted,#566B7E);margin-top:.1rem}
