/* ===========================================================================
   Rainbow School Complex — V2 ADMIN
   The platform's own stylesheet. Same three colours and same two typefaces
   as the website, nothing else: ink, brand, paper; Oswald for headings,
   Poppins for everything a person reads.

   It is deliberately quiet. Four different people in four different jobs use
   this every week on a phone, and the thing that makes that work is space
   and plain language, not decoration.
   =========================================================================== */
@font-face{font-family:'Oswald';font-style:normal;font-weight:500;font-display:swap;
  src:url('../assets/vendor/fonts/oswald-500.woff2') format('woff2');}
@font-face{font-family:'Oswald';font-style:normal;font-weight:600;font-display:swap;
  src:url('../assets/vendor/fonts/oswald-600.woff2') format('woff2');}

:root{
  --ink:#0d2233;
  --brand:#14577f;
  --paper:#f2f0eb;
  --line:rgba(13,34,51,.12);
  --line-2:rgba(13,34,51,.2);
  --ink-soft:rgba(13,34,51,.64);
  --ink-faint:rgba(13,34,51,.42);
  /* The quiet fill behind a chosen menu item, a summary block, a panel
     heading. One value so the whole platform picks the same grey. */
  --soft-2:#eef3f7;
  --hold:#7d2e20;
  --hold-bg:rgba(161,59,42,.07);
  --hold-line:rgba(161,59,42,.3);
  --r:14px;
  --display:'Oswald',Impact,sans-serif;
  --body:'Poppins','Segoe UI',Arial,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--body);background:var(--paper);color:var(--ink);
  line-height:1.55;-webkit-font-smoothing:antialiased;min-height:100vh;
}
button,input,select,textarea{font:inherit;color:inherit}
[hidden]{display:none !important}
a{color:var(--brand)}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}

/* =============================================================== the bar */
.bar{
  display:flex;align-items:center;gap:14px;padding:12px 20px;
  background:var(--ink);color:#fff;position:sticky;top:0;z-index:30;
}
.bar img{height:32px;width:auto;border-radius:6px;background:#fff;padding:2px}
.bar-name{font-family:var(--display);font-size:17px;line-height:1.1}
.bar-sub{font-size:11px;letter-spacing:.09em;text-transform:uppercase;opacity:.6}
.bar-spacer{flex:1}
.pill{
  font-size:12px;font-weight:600;letter-spacing:.03em;padding:6px 12px;
  border-radius:999px;background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.2);white-space:nowrap;
}
.bar-out{
  background:none;border:1px solid rgba(255,255,255,.28);color:#fff;
  padding:6px 13px;border-radius:999px;font-size:13px;cursor:pointer;
}
.bar-out:hover{background:rgba(255,255,255,.12)}

/* ============================================================ navigation */
.tabs{
  display:flex;gap:4px;overflow-x:auto;background:var(--ink);
  padding:0 14px;position:sticky;top:56px;z-index:29;
  scrollbar-width:none;border-top:1px solid rgba(255,255,255,.08);
}
.tabs::-webkit-scrollbar{display:none}
/* The two-level menu brings its own buttons; these are for anything still
   using the single row. */
.tabs > button{
  background:none;border:0;color:rgba(255,255,255,.62);cursor:pointer;
  padding:11px 14px 10px;font-size:13.5px;white-space:nowrap;
  border-bottom:2px solid transparent;
}
.tabs > button:hover{color:#fff}
.tabs > button[aria-current="true"]{color:#fff;border-bottom-color:#fff;font-weight:600}

.wrap{max-width:1040px;margin:0 auto;padding:26px 20px 90px}
.wrap-wide{max-width:1280px}

/* ============================================================= the login */
.gate{min-height:100vh;display:grid;place-items:center;padding:24px}
.gate-card{
  width:100%;max-width:400px;background:#fff;border-radius:20px;
  padding:34px 30px 30px;box-shadow:0 30px 70px -40px rgba(13,34,51,.5);
  border:1px solid var(--line);
}
.gate-card img{height:54px;width:auto;display:block;margin:0 auto 18px}
.gate-card h1{font-family:var(--display);font-size:25px;font-weight:600;
  line-height:1.14;margin:0 0 6px;text-align:center}
.gate-card .lead{margin:0 0 24px;text-align:center;font-size:13.5px;color:var(--ink-soft)}

/* ============================================================ the pieces */
label{display:block;font-size:11.5px;font-weight:600;letter-spacing:.05em;
  text-transform:uppercase;color:var(--ink-soft);margin:0 0 6px}
.field{margin:0 0 16px}
input[type=text],input[type=email],input[type=password],input[type=tel],
input[type=date],input[type=number],select,textarea{
  width:100%;padding:12px 13px;border-radius:11px;border:1px solid var(--line);
  background:#fff;font-size:15px;transition:border-color .18s,box-shadow .18s;
}
textarea{min-height:110px;resize:vertical;line-height:1.5}
input:focus,select:focus,textarea:focus{
  outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(20,87,127,.14);
}
input:disabled,select:disabled,textarea:disabled{background:rgba(13,34,51,.04);color:var(--ink-soft)}

/* A dropdown should look like the rest of the platform, not like 1998. The
   browser's own arrow is replaced with the same chevron the groups use, drawn
   in the ink colour, and the box gets room for it. The list itself is still
   the phone's own - on a handset that wheel is easier to use than anything
   that could be built in its place, and it cannot fall off the screen. */
select{
  appearance:none;-webkit-appearance:none;-moz-appearance:none;
  padding-right:40px;cursor:pointer;font-weight:500;color:var(--ink);
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230d2233' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 8l4.5 4.5L14.5 8'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;background-size:18px 18px;
}
select:hover{border-color:var(--brand)}
select::-ms-expand{display:none}
@media (prefers-color-scheme:dark){
  select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23f2f0eb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 8l4.5 4.5L14.5 8'/%3E%3C/svg%3E")}
}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  width:100%;padding:13px 18px;border:0;border-radius:11px;background:var(--brand);
  color:#fff;font-size:15px;font-weight:600;cursor:pointer;
  transition:background .18s,opacity .18s;
}
.btn:hover:not(:disabled){background:#0f4666}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn-auto{width:auto}
.btn-quiet{
  background:#fff;border:1px solid var(--line-2);color:var(--ink);
  width:auto;padding:10px 15px;font-size:14px;font-weight:500;
}
.btn-quiet:hover:not(:disabled){background:rgba(13,34,51,.05)}
.btn-dark{background:var(--ink)}
.btn-dark:hover:not(:disabled){background:#081824}
.btn-sm{padding:7px 12px;font-size:13px;border-radius:9px;width:auto}
.btn-danger{background:#fff;border:1px solid var(--hold-line);color:var(--hold)}
.btn-danger:hover:not(:disabled){background:var(--hold-bg)}

/* ============================================================== the card */
.card{background:#fff;border:1px solid var(--line);border-radius:var(--r);
  padding:20px 22px;margin:0 0 18px}
.card > h2{font-family:var(--display);font-size:19px;font-weight:600;margin:0 0 3px;line-height:1.2}
.card > h2 + p{margin:0 0 16px;font-size:13px;color:var(--ink-soft)}
.card-head{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;margin:0 0 16px}
.card-head h2{font-family:var(--display);font-size:19px;font-weight:600;margin:0;line-height:1.2}
.card-head p{margin:2px 0 0;font-size:13px;color:var(--ink-soft)}
.card-head .grow{flex:1;min-width:150px}

.row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.row-3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.row-auto{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end}
.row-auto .field{margin:0;min-width:160px;flex:1}

/* ============================================================== messages */
.note{border-radius:11px;padding:12px 15px;font-size:13.5px;margin:0 0 16px;
  border:1px solid var(--line);background:#fff}
.note.bad{border-color:var(--hold-line);background:var(--hold-bg);color:var(--hold)}
.note.good{border-color:rgba(20,87,127,.3);background:rgba(20,87,127,.07)}
.note b{display:block;margin-bottom:3px}
.note code{font-family:ui-monospace,monospace;background:rgba(13,34,51,.06);
  padding:2px 6px;border-radius:5px;font-size:13px}

.toast{
  position:fixed;left:50%;bottom:24px;transform:translateX(-50%);
  background:var(--ink);color:#fff;padding:12px 18px;border-radius:999px;
  font-size:13.5px;z-index:90;box-shadow:0 18px 40px -20px rgba(13,34,51,.9);
  max-width:calc(100% - 32px);text-align:center;
}
.toast.bad{background:var(--hold)}

.muted{color:var(--ink-soft);font-size:13.5px}
.tiny{font-size:12px;color:var(--ink-faint)}
.empty{
  text-align:center;padding:34px 20px;color:var(--ink-soft);font-size:14px;
  border:1px dashed var(--line-2);border-radius:12px;background:rgba(255,255,255,.5);
}

/* ================================================================ tables */
.tbl-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 -22px;padding:0 22px}
table.tbl{width:100%;border-collapse:collapse;font-size:14px}
table.tbl th{
  text-align:left;font-size:11px;letter-spacing:.06em;text-transform:uppercase;
  color:var(--ink-soft);font-weight:600;padding:8px 10px;border-bottom:1px solid var(--line-2);
  white-space:nowrap;background:#fff;
}
table.tbl td{padding:9px 10px;border-bottom:1px solid var(--line);vertical-align:middle}
table.tbl tr:last-child td{border-bottom:0}
table.tbl tbody tr:hover{background:rgba(20,87,127,.035)}
table.tbl td.num,table.tbl th.num{text-align:right;font-variant-numeric:tabular-nums}
/* The total line at the foot. It is the line that gets read out in a
   meeting, so it is set apart from the rows above it. */
table.tbl tfoot td{border-top:2px solid var(--ink);border-bottom:none;
  background:#faf8f3;font-weight:600;padding:11px 10px}
table.tbl tfoot tr:hover{background:#faf8f3}
table.tbl td.mid,table.tbl th.mid{text-align:center}
.nowrap{white-space:nowrap}
.strong{font-weight:600}

.tag{
  display:inline-block;font-size:11px;font-weight:600;letter-spacing:.04em;
  padding:3px 9px;border-radius:999px;background:rgba(13,34,51,.07);
  color:var(--ink-soft);text-transform:uppercase;
}
.tag.on{background:rgba(20,87,127,.12);color:var(--brand)}
.tag.off{background:var(--hold-bg);color:var(--hold)}

/* The fee box. Big enough for a thumb, and it says what it means. */
.tick{
  display:inline-grid;place-items:center;width:30px;height:30px;cursor:pointer;
  border-radius:9px;border:1.5px solid var(--line-2);background:#fff;
  transition:background .14s,border-color .14s;
}
.tick input{position:absolute;opacity:0;width:0;height:0}
.tick svg{width:16px;height:16px;opacity:0;transition:opacity .14s}
.tick:hover{border-color:var(--brand)}
.tick.is-on{background:var(--brand);border-color:var(--brand)}
.tick.is-on svg{opacity:1;stroke:#fff}
.tick.is-busy{opacity:.45;pointer-events:none}
.tick.is-locked{opacity:.4;pointer-events:none}

/* =========================================================== the profile */
.who-card{
  display:flex;align-items:center;gap:16px;background:var(--ink);color:#fff;
  border-radius:var(--r);padding:18px 22px;margin:0 0 20px;flex-wrap:wrap;
}
.who-ini{
  width:52px;height:52px;flex:0 0 52px;border-radius:50%;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);
  display:grid;place-items:center;font-family:var(--display);font-size:20px;
}
.who-card .who-n{font-family:var(--display);font-size:20px;line-height:1.2}
.who-card .who-r{font-size:12.5px;opacity:.72;letter-spacing:.03em}
.who-card .who-stats{display:flex;gap:22px;margin-left:auto;flex-wrap:wrap}
.who-stat b{display:block;font-family:var(--display);font-size:22px;line-height:1}
.who-stat span{font-size:11px;letter-spacing:.06em;text-transform:uppercase;opacity:.62}

/* A button that reads as a link. Used where the action is a change of mind
   rather than a step forward: 'tell the administrator', 'back to sign in'. */
.linkish{
  background:none;border:0;padding:0;font:inherit;color:var(--brand);
  cursor:pointer;text-decoration:underline;text-underline-offset:2px;
}
.linkish:hover{color:var(--ink)}

/* ======================================================== the pick lists */
.picks{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 4px}
.pick{
  background:#fff;border:1px solid var(--line-2);border-radius:11px;
  padding:10px 15px;cursor:pointer;font-size:14px;text-align:left;
  transition:border-color .15s,background .15s;
}
.pick:hover{border-color:var(--brand)}
.pick[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.pick b{display:block;font-weight:600}
.pick span{font-size:11.5px;opacity:.7}
/* Tighter, for a row of one-word choices like a title. */
.picks.compact{gap:7px}
.picks.compact .pick{padding:7px 13px;font-size:13.5px}

/* A step of the add-someone form that only appears once the step before it
   has been answered. Nothing is pre-chosen, so nothing is chosen by
   accident: an administrator who stops halfway creates nobody. */
.step{border-top:1px solid var(--line);margin-top:18px;padding-top:16px}
.step-head{display:flex;align-items:baseline;gap:9px;margin:0 0 11px}
.step-head b{font-family:var(--display);font-size:15.5px;font-weight:600}
.step-head span{font-size:12px;color:var(--ink-faint)}
.step-n{
  flex:0 0 22px;width:22px;height:22px;border-radius:50%;background:var(--ink);
  color:#fff;font-size:11.5px;display:grid;place-items:center;font-weight:600;
}
/* A college inside the add-someone form: its own foldable block, so a
   teacher who is in both colleges is two blocks, not twenty-eight rows. */
.school-block{border:1px solid var(--line-2);border-radius:12px;margin:0 0 11px;background:#fff;overflow:hidden}
.school-block.is-open{border-color:var(--ink)}
.school-head{
  width:100%;display:flex;align-items:center;gap:11px;background:none;border:0;
  padding:13px 15px;cursor:pointer;font:inherit;text-align:left;color:inherit;
}
.school-head:hover{background:rgba(13,34,51,.03)}
.school-head b{font-family:var(--display);font-size:16px;font-weight:600}
.school-head small{color:var(--ink-faint);font-size:12px;flex:1}
.school-head .chev{font-size:12px;color:var(--brand);text-decoration:underline;text-underline-offset:2px}
.school-body{padding:0 13px 13px}
.school-body .cls-pick{border-color:var(--line)}

/* One class, with its own subjects underneath it. */
.cls-pick{border:1px solid var(--line-2);border-radius:12px;padding:13px 15px;margin:0 0 10px;background:#fff}
.cls-pick > .cls-head{display:flex;align-items:center;gap:10px;cursor:pointer}
.cls-pick > .cls-head:hover b{color:var(--brand)}
.cls-pick > .cls-head b{font-family:var(--display);font-size:15px;font-weight:600}
.cls-pick > .cls-head small{display:block;color:var(--ink-faint);font-size:12px;
  text-transform:none;letter-spacing:0;font-weight:400}
.cls-pick .subs{margin-top:12px;padding-top:12px;border-top:1px dashed var(--line)}

/* ============================================================= the grid
   The mark sheet. It behaves like a spreadsheet because that is what the
   teachers know: arrow keys and Enter move between cells, and a column
   copied out of their own Excel pastes straight in. */
.grid-wrap{border:1px solid var(--line-2);border-radius:12px;overflow:auto;background:#fff;max-height:62vh}
table.grid{width:100%;border-collapse:separate;border-spacing:0;font-size:14px}
table.grid th{
  position:sticky;top:0;z-index:2;background:var(--ink);color:#fff;
  font-size:11px;letter-spacing:.06em;text-transform:uppercase;font-weight:600;
  padding:9px 10px;text-align:left;white-space:nowrap;
}
table.grid td{padding:0;border-bottom:1px solid var(--line)}
table.grid tr:last-child td{border-bottom:0}
table.grid td.n{padding:8px 10px;color:var(--ink-faint);font-size:12.5px;width:44px;text-align:right}
table.grid td.nm{padding:8px 10px;font-weight:500;min-width:190px}
table.grid td.sx{padding:8px 10px;color:var(--ink-soft);width:48px;text-align:center}
table.grid td.sc{width:112px;border-left:1px solid var(--line)}
table.grid input.cell{
  width:100%;border:0;border-radius:0;padding:9px 10px;text-align:right;
  font-variant-numeric:tabular-nums;background:transparent;font-size:15px;
}
table.grid input.cell:focus{
  outline:0;background:rgba(20,87,127,.08);
  box-shadow:inset 0 0 0 2px var(--brand);
}
table.grid input.cell.is-bad{background:var(--hold-bg);box-shadow:inset 0 0 0 2px var(--hold-line)}
table.grid input.cell.is-new{background:rgba(20,87,127,.05)}
table.grid tr.is-absent td.nm{color:var(--ink-faint);text-decoration:line-through}

.grid-bar{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  background:var(--ink);color:#fff;border-radius:var(--r);
  padding:14px 18px;margin-top:16px;
}
.grid-bar .grow{flex:1;min-width:160px}
.grid-bar b{font-family:var(--display);font-size:16px;font-weight:500;display:block}
.grid-bar span{font-size:12.5px;opacity:.72}
.grid-bar .btn{width:auto;min-width:150px;background:#fff;color:var(--ink)}
.grid-bar .btn:hover:not(:disabled){background:var(--paper)}

.paste{
  border:2px dashed var(--line-2);border-radius:12px;padding:14px 16px;
  font-size:13px;color:var(--ink-soft);margin:0 0 14px;background:#fff;
}
.paste b{color:var(--ink);display:block;margin-bottom:2px;font-size:13.5px}

/* =============================================================== metrics */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:0 0 18px}
.stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:15px 16px}
.stat b{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;
  font-family:var(--display);font-size:27px;line-height:1.05}
.stat b em{font-style:normal;font-weight:600;font-size:15px;opacity:.7;
  font-variant-numeric:tabular-nums}
.stat span{display:block;font-size:11.5px;letter-spacing:.05em;
  text-transform:uppercase;color:var(--ink-soft);margin-top:4px}
.stat.warn b{color:var(--hold)}
/* On a phone the tiles go two across, so the figure comes down a little
   and the label stops shouting, rather than the row dropping to one. */
@media (max-width:560px){
  .stats{grid-template-columns:repeat(auto-fit,minmax(138px,1fr));gap:10px}
  .stat{padding:12px 13px}
  .stat b{font-size:21px;gap:6px}
  .stat b em{font-size:13px}
  .stat span{font-size:10.5px;letter-spacing:.02em}
  .stat small{font-size:10.5px}
}

.stat small{display:block;font-size:11px;color:var(--ink-soft);margin-top:3px;
  letter-spacing:0;text-transform:none;line-height:1.35}
.stat .meter{margin-top:10px}

.meter{height:6px;border-radius:999px;background:rgba(13,34,51,.09);overflow:hidden;margin-top:7px}
.meter i{display:block;height:100%;background:var(--brand);border-radius:999px;
  transition:width .35s ease}
.meter i.full{background:var(--ink)}
/* The bar says the same thing as the figure above it: green where the
   college is where it should be, amber where it is not. */
.meter i.good{background:var(--good)}
.meter i.bad{background:var(--hold)}
.meter.lean{height:4px;margin-top:5px}

/* A share said in words rather than tiles, for a table head or a card head
   where a tile will not fit. */
.share{font-size:11.5px;color:var(--ink-soft);white-space:nowrap}
.share b{font-weight:700;color:var(--ink)}

/* The head of a class block or a teacher block: the name and its tags on
   one line, the share pushed to the right of them, and the bar laid across
   the foot of the whole thing. */
.cls-head{display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px;margin-bottom:10px}
.cls-head > b{font-family:var(--display);font-size:15px;font-weight:600}
.cls-head .share{margin-left:auto}
.cls-head .meter{flex:0 0 100%;margin-top:1px}
@media (max-width:560px){
  .cls-head .share{margin-left:0;flex-basis:100%}
}

/* ================================================================= misc */
.listing{list-style:none;margin:0;padding:0}
.listing li{display:flex;align-items:center;gap:13px;padding:12px 0;border-top:1px solid var(--line)}
.listing li:first-child{border-top:0}
.listing .grow{flex:1;min-width:0}
.listing b{display:block;font-weight:600;font-size:14.5px}
.listing small{display:block;color:var(--ink-soft);font-size:12.5px}

.code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13.5px;
  background:rgba(13,34,51,.06);padding:3px 8px;border-radius:6px;letter-spacing:.04em}

.spin{width:15px;height:15px;border-radius:50%;
  border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:sp .7s linear infinite}
.btn-quiet .spin,.grid-bar .btn .spin{border-color:rgba(13,34,51,.25);border-top-color:var(--ink)}
@keyframes sp{to{transform:rotate(360deg)}}
.loading{padding:40px 0;text-align:center;color:var(--ink-soft);font-size:14px}

details.help{margin:0 0 16px;border:1px solid var(--line);border-radius:11px;background:#fff}
details.help summary{padding:12px 15px;cursor:pointer;font-size:13.5px;font-weight:600}
details.help div{padding:0 15px 14px;font-size:13.5px;color:var(--ink-soft)}
details.help p{margin:0 0 8px}

/* ================================================================ phone */
@media (max-width:760px){
  .row,.row-3{grid-template-columns:1fr}
  .wrap{padding:20px 14px 100px}
  .card{padding:17px 16px;border-radius:12px}
  .tbl-scroll{margin:0 -16px;padding:0 16px}
  .bar{padding:10px 13px;gap:10px;flex-wrap:wrap}
  .bar-sub{display:none}
  .bar-spacer{display:none}
  .bar-out{margin-left:auto;padding:5px 11px;font-size:12.5px}
  .pill{order:3;flex:1 0 100%;text-align:center;font-size:11.5px;margin-top:2px}
  .tabs{top:auto;position:sticky;top:0}
  .who-card{padding:15px 16px}
  .who-card .who-stats{margin-left:0;flex:1 0 100%;gap:18px}
  .grid-bar{flex-direction:column;align-items:stretch}
  .grid-bar .btn{width:100%}
  .grid-wrap{max-height:none}
}
@media (prefers-reduced-motion:reduce){.spin{animation:none}*{transition:none !important}}

/* ===========================================================================
   THE SECOND PASS ON THE DASHBOARD
   ---------------------------------------------------------------------------
   The first version put everything on the screen at once: every class in both
   colleges in one column, every subject in the complex in one bag, and a
   question asked through the browser's own grey confirm box. Four people in
   four different jobs use this every week, most of them on a phone, and none
   of them are engineers. So: one thing at a time, behind a button, with the
   thing you are looking for named in the words the school uses.
   =========================================================================== */

/* --------------------------------------------------------------- a face
   A photo if there is one, initials on a steady colour if there is not. */
.face{
  border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:600;
  letter-spacing:.02em;background-size:cover;background-position:center;
  font-family:var(--body);user-select:none;
}
.face.has-photo{color:transparent}

/* ------------------------------------------------------------ a dialog */
.modal-back{
  position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:20px;
  background:rgba(13,34,51,.45);opacity:0;transition:opacity .16s;
  -webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);
}
.modal-back.is-up{opacity:1}
.modal{
  background:#fff;border-radius:var(--r);padding:24px;width:min(460px,100%);
  box-shadow:0 24px 60px rgba(13,34,51,.3);transform:translateY(8px);
  transition:transform .16s;max-height:86vh;overflow:auto;
}
.modal-back.is-up .modal{transform:none}
.modal h3{font-family:var(--display);font-size:20px;margin:0 0 8px;font-weight:600}
.modal p{margin:0 0 16px;color:var(--ink-soft);font-size:14px;line-height:1.6}
.modal-acts{display:flex;gap:9px;justify-content:flex-end;margin-top:20px;flex-wrap:wrap}
.modal-acts .btn{width:auto;padding:11px 20px}
.handover{
  font-family:ui-monospace,monospace;font-size:19px;letter-spacing:.06em;
  background:rgba(13,34,51,.06);border-radius:10px;padding:14px 16px;
  text-align:center;color:var(--ink)!important;word-break:break-all;margin:0 0 4px!important;
}

/* ------------------------------------------------- a quiet section rule
   'Existing staff' as a hairline with two words on it, so the eye is drawn
   to the line and not to a heading competing with the one above it. */
.rule{
  display:flex;align-items:center;gap:12px;margin:30px 0 16px;
  font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--ink-faint);font-weight:600;
}
.rule::after{content:"";flex:1;height:1px;background:var(--line)}

/* --------------------------------------------------------- a row of doors
   What you can do in here, as buttons, instead of every screen at once. */
.doors{display:grid;gap:11px;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));margin:0 0 6px}
.door{
  display:flex;align-items:center;gap:13px;text-align:left;background:#fff;
  border:1px solid var(--line-2);border-radius:12px;padding:15px 16px;
  cursor:pointer;font:inherit;color:inherit;transition:border-color .15s,transform .1s;
}
.door:hover{border-color:var(--brand)}
.door:active{transform:translateY(1px)}
.door[aria-current="true"]{border-color:var(--ink);background:var(--ink);color:#fff}
.door[aria-current="true"] small{color:rgba(255,255,255,.72)}
.door b{display:block;font-family:var(--display);font-size:15.5px;font-weight:600;line-height:1.2}
.door small{display:block;font-size:12px;color:var(--ink-faint);margin-top:2px}
.door .n{
  margin-left:auto;font-family:var(--display);font-size:22px;font-weight:600;
  line-height:1;opacity:.85;
}

/* ------------------------------------------------------ people, as cards */
.people{display:grid;gap:11px;grid-template-columns:repeat(auto-fill,minmax(270px,1fr))}
.person{
  background:#fff;border:1px solid var(--line-2);border-radius:12px;padding:15px;
  display:flex;flex-direction:column;gap:11px;
}
.person.is-off{opacity:.62}
.person-top{display:flex;align-items:center;gap:11px}
.person-top .who{min-width:0;flex:1}
.person-top b{
  display:block;font-family:var(--display);font-size:15.5px;font-weight:600;
  line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.person-top small{display:block;font-size:12px;color:var(--ink-faint);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.person-acts{display:flex;gap:6px;flex-wrap:wrap;margin-top:auto}
.person-acts .btn{width:auto}
.person-note{font-size:12px;color:var(--ink-faint);margin:0}

/* -------------------------------------------------------- an open/closed switch
   It used to be a coloured rectangle, and people read it as highlighting.
   Now it says which it is, and the knob moves. */
.sw{
  display:inline-flex;align-items:center;gap:10px;background:#fff;cursor:pointer;
  border:1px solid var(--line-2);border-radius:999px;padding:5px 14px 5px 5px;
  font:inherit;color:inherit;transition:border-color .15s,background .15s;
}
.sw .knob{
  width:38px;height:22px;border-radius:999px;background:rgba(13,34,51,.18);
  position:relative;transition:background .18s;flex:0 0 38px;
}
.sw .knob::after{
  content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;
  border-radius:50%;background:#fff;transition:transform .18s;
  box-shadow:0 1px 3px rgba(13,34,51,.3);
}
.sw[aria-pressed="true"] .knob{background:var(--brand)}
.sw[aria-pressed="true"] .knob::after{transform:translateX(16px)}
.sw b{font-weight:600;font-size:13.5px}
.sw small{font-size:12px;color:var(--ink-faint)}
.sw:hover{border-color:var(--brand)}

/* ------------------------------------------------------- a group of things
   A college, a section, a trade: a heading you can fold away. */
.group{border:1px solid var(--line-2);border-radius:12px;background:#fff;margin:0 0 11px;overflow:hidden}
.group.is-open{border-color:var(--ink)}
.group-head{
  width:100%;display:flex;align-items:center;gap:11px;background:none;border:0;
  padding:14px 16px;cursor:pointer;font:inherit;text-align:left;color:inherit;
}
.group-head:hover{background:rgba(13,34,51,.03)}
.group-head b{font-family:var(--display);font-size:16px;font-weight:600}
.group-head small{color:var(--ink-faint);font-size:12px;flex:1}
.group-head .chev{font-size:12px;color:var(--brand);text-decoration:underline;text-underline-offset:2px;white-space:nowrap}
.group-body{padding:0 14px 14px}

/* a plain list of things inside a group */
.lines{list-style:none;margin:0;padding:0}
.lines li{
  display:flex;align-items:center;gap:11px;padding:10px 2px;
  border-top:1px solid var(--line);font-size:14px;
}
.lines li:first-child{border-top:0}
.lines li .grow{flex:1;min-width:0}
.lines li b{display:block;font-weight:600;font-size:14px}
.lines li small{display:block;font-size:12px;color:var(--ink-faint)}

/* ----------------------------------------------------------- the history
   One sentence per thing that happened. Not JSON. */
.events{list-style:none;margin:0;padding:0}
.events li{padding:12px 0;border-top:1px solid var(--line);display:flex;gap:12px;align-items:flex-start}
.events li:first-child{border-top:0}
.events .dot{
  width:8px;height:8px;border-radius:50%;background:var(--brand);
  flex:0 0 8px;margin-top:7px;
}
.events .dot.quiet{background:rgba(13,34,51,.22)}
.events p{margin:0;font-size:14px;line-height:1.5}
.events time{display:block;font-size:12px;color:var(--ink-faint);margin-top:2px}

/* ------------------------------------------------------------- on a phone */
@media (max-width:640px){
  .people{grid-template-columns:1fr}
  .doors{grid-template-columns:1fr}
  .modal{padding:20px}
  .modal-acts{flex-direction:column-reverse}
  .modal-acts .btn{width:100%}
  .person-acts .btn{flex:1 1 auto}
  .group-head{padding:13px 13px}
  .group-body{padding:0 11px 12px}
  .rule{margin:24px 0 13px}
}

/* ===========================================================================
   ON A PHONE, AND OFF THE NETWORK
   =========================================================================== */

/* The band that says something is waiting. It is never reassuring: it says
   how many and where they are, and it goes away by itself. */
.offline-bar{
  position:fixed;left:0;right:0;top:0;z-index:80;transform:translateY(-100%);
  transition:transform .2s;background:var(--brand);color:#fff;
  padding:10px 16px;font-size:13px;line-height:1.45;text-align:center;
  padding-top:calc(10px + env(safe-area-inset-top,0px));
}
.offline-bar.is-up{transform:none}
.offline-bar.is-off{background:var(--hold)}

/* The offer to install. A line at the bottom, not a box across the middle:
   somebody signing in to enter marks before a lesson should not have to
   dismiss anything. */
.install-bar{
  position:fixed;left:12px;right:12px;z-index:70;
  bottom:calc(12px + env(safe-area-inset-bottom,0px));
  display:flex;align-items:center;gap:13px;
  background:#0b121a;color:#fff;border:1px solid rgba(198,160,74,.5);
  border-radius:14px;padding:12px 14px;
  box-shadow:0 14px 40px rgba(13,34,51,.35);
  transform:translateY(130%);transition:transform .24s;
  max-width:560px;margin:0 auto;
}
.install-bar.is-up{transform:none}
.install-bar img{width:40px;height:40px;border-radius:10px;flex:0 0 40px}
.install-bar div{flex:1;min-width:0}
.install-bar b{display:block;font-family:var(--display);font-size:14.5px;font-weight:600}
.install-bar span{display:block;font-size:12px;color:rgba(255,255,255,.7);line-height:1.4;margin-top:2px}
.install-bar .btn{width:auto;padding:9px 16px;background:#c6a04a;color:#0b121a;font-weight:600}
.install-bar .btn:hover{background:#d4b05c}
.install-no{
  background:none;border:0;color:rgba(255,255,255,.5);font-size:22px;line-height:1;
  cursor:pointer;padding:0 2px;
}
.install-no:hover{color:#fff}

@media (max-width:480px){
  .install-bar{gap:10px;padding:11px 12px}
  .install-bar img{width:34px;height:34px;flex:0 0 34px}
  .install-bar span{display:none}
}

/* Installed, it is its own app and it should feel like one: no browser
   chrome to lean on, so the bar carries the notch itself. */
@media (display-mode:standalone){
  .bar{padding-top:calc(12px + env(safe-area-inset-top,0px))}
  body{padding-bottom:env(safe-area-inset-bottom,0px)}
}

/* ===========================================================================
   THE STATISTICS
   =========================================================================== */
.filters{display:flex;gap:11px;flex-wrap:wrap;align-items:flex-end;margin:0 0 6px}
.filters .field{margin:0}

.chart{
  background:#fff;border:1px solid var(--line-2);border-radius:12px;
  padding:16px 14px;margin:0 0 14px;overflow-x:auto;
}
.chart svg{display:block}
.chart svg text{font-family:var(--body)}
.chart .empty{margin:0}

/* The table under every chart: the version that prints, the version a screen
   reader reads, and the version somebody copies into a letter. */
table.tbl td.num, table.tbl th.num{text-align:right;white-space:nowrap}
table.tbl td.strong{font-weight:600}

@media (max-width:640px){
  .chart{padding:12px 8px}
  .filters .field{max-width:100%!important;width:100%}
}

/* ==================================================== a sheet before it prints
   The documents screen shows the finished sheet exactly as it will come out
   of the printer. The sheet is put inside a shadow root so the paper's own
   styling and the platform's can never reach each other; this is only the
   box it sits in. */
.paper-preview{
  border:1px solid var(--line-2);border-radius:12px;background:#f2f0eb;
  padding:12px;max-height:70vh;overflow:auto;
}
@media (max-width:700px){
  .paper-preview{padding:8px;max-height:60vh}
}


/* =========================================================== THE MENU
   Two levels. The top row is what somebody came here to do; the row under
   it is that section's screens. The two read as one object - the section
   row sits on the card's own paper and the screen row sits on the white
   it opens onto - so it is obvious which row chose the other. */
.tabs{display:block;padding:0;border:0;background:none;overflow:visible}

.nav-top{
  display:flex;gap:6px;flex-wrap:wrap;
  padding:6px;border-radius:14px 14px 0 0;
  background:var(--ink);
}
.nav-sec{
  display:flex;align-items:center;gap:8px;
  border:0;border-radius:10px;background:none;color:rgba(255,255,255,.72);
  padding:9px 14px;font:inherit;font-size:14px;font-weight:600;cursor:pointer;
  transition:background .15s,color .15s;
}
.nav-sec:hover{background:rgba(255,255,255,.08);color:#fff}
.nav-sec[aria-current="true"],
.nav-sec[aria-current="true"] b{background:#fff;color:var(--ink)}
.nav-sec[aria-current="true"]{box-shadow:0 1px 0 rgba(13,34,51,.08)}
.nav-sec b{font-weight:600}
.nav-count{
  min-width:19px;height:19px;border-radius:999px;display:inline-flex;
  align-items:center;justify-content:center;font-size:11px;font-weight:700;
  background:rgba(255,255,255,.16);color:inherit;padding:0 5px;
}
.nav-sec[aria-current="true"] .nav-count{background:var(--soft-2);color:var(--ink)}

.nav-sub{
  display:flex;gap:4px;flex-wrap:wrap;
  padding:8px;border:1px solid var(--line-2);border-top:0;
  border-radius:0 0 14px 14px;background:#fff;
}
.nav-top + .nav-sub{margin-bottom:18px}
.nav-sub:first-child{border-top:1px solid var(--line-2);border-radius:14px;margin-bottom:18px}
.nav-item{
  display:flex;flex-direction:column;align-items:flex-start;gap:1px;
  border:1px solid transparent;border-radius:10px;background:none;color:var(--ink);
  padding:8px 13px;font:inherit;font-size:14px;text-align:left;cursor:pointer;
  transition:background .15s,border-color .15s;
}
.nav-item:hover{background:var(--soft-2)}
.nav-item[aria-current="true"],
.nav-item[aria-current="true"] b{background:var(--soft-2);color:var(--ink)}
.nav-item[aria-current="true"]{border-color:var(--line-2)}
.nav-item b,.nav-item span{background:none}
.nav-item b{font-weight:600}
.nav-item span{font-size:11.5px;color:var(--ink-faint)}
@media (max-width:700px){
  .nav-top,.nav-sub{overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}
  .nav-sec,.nav-item{white-space:nowrap;flex:0 0 auto}
  .nav-item span{display:none}
}

/* ================================================ READ IT BEFORE SAVING
   The summary that comes up before anything is written. Headed lists, not
   a paragraph: somebody checking what they typed reads down a list. */
.summary{max-height:46vh;overflow:auto;margin:2px 0 0}
.sum-group{
  border:1px solid var(--line-2);border-radius:12px;
  padding:10px 13px;margin:0 0 9px;background:var(--soft-2);
}
.sum-group:last-child{margin-bottom:0}
.sum-head{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;margin:0 0 5px}
.sum-head b{font-size:14px;font-weight:600}
.sum-head span{font-size:11.5px;color:var(--ink-faint)}
.summary ul{margin:0;padding:0 0 0 17px}
.summary li{font-size:13.5px;line-height:1.5;margin:0 0 2px}

/* ============================================================ A FIELD
   A box for a name is a box for a name. It does not run the width of a
   desk monitor because there happens to be room. */
.field-sm{max-width:320px}
.field-md{max-width:460px}
.field input[type="search"],
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field select{max-width:100%}
.row-auto .field{min-width:160px}

/* A row of choices that would be long goes in a drop-down instead. */
.choose{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end;margin:0 0 14px}
.choose .field{margin:0;flex:0 1 260px}
.choose .field.wide{flex:1 1 300px;max-width:360px}
.choose .field{flex:1 1 220px;max-width:300px}

/* ================================================== A GROUP OF ACTIONS
   Buttons that belong together sit on one line behind a small heading,
   so 'upload a list' and 'download the parent codes' stop looking like
   the same kind of thing. */
.group-row{
  display:flex;gap:10px;flex-wrap:wrap;align-items:center;
  padding:9px 12px;margin:0 0 9px;
  border:1px solid var(--line);border-radius:12px;background:var(--soft-2);
}
.group-row:last-of-type{margin-bottom:4px}
.group-tag{
  font-size:10.5px;letter-spacing:.07em;text-transform:uppercase;font-weight:700;
  color:var(--ink-faint);flex:0 0 auto;min-width:118px;
}
@media (max-width:620px){
  .group-row{flex-direction:column;align-items:stretch}
  .group-tag{min-width:0}
  .group-row .btn{width:100%}
}


/* ========================================================== THE FIGURES
   A chart has a heading, a line saying what it is counting, and the canvas
   it is drawn on. The table under it is the same figures in words, because
   nothing on this platform may be readable only as a picture. */
.chart-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:0 0 10px}
.chart-head b{font-size:14px;font-weight:600}
.chart-head span{font-size:11.5px;color:var(--ink-faint)}
.chart-canvas{position:relative;width:100%}
.chart-canvas.is-round{max-width:380px;margin:0 auto}
.chart-canvas canvas{display:block;width:100%!important}

/* The four numbers at the top of a group. Colour is the school's own line -
   70 and 50 per cent - and the word is written under it either way, so the
   colour is never the only thing carrying the meaning. */
.tiles{display:grid;gap:11px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));margin:0 0 16px}
.tile{
  background:#fff;border:1px solid var(--line-2);border-left:4px solid var(--line-2);
  border-radius:12px;padding:13px 15px;
}
.tile b{display:block;font-family:var(--display);font-size:27px;line-height:1.05}
.tile span{display:block;font-size:12px;color:var(--ink-soft);margin-top:3px}
.tile small{display:block;font-size:11px;color:var(--ink-faint);margin-top:4px}
.tile.is-good{border-left-color:#1e7a4f}
.tile.is-good b{color:#1e7a4f}
.tile.is-fair{border-left-color:#a8700f}
.tile.is-fair b{color:#a8700f}
.tile.is-poor{border-left-color:#9c3328}
.tile.is-poor b{color:#9c3328}

.rule-note{
  margin-left:auto;order:3;font-size:11px;letter-spacing:0;text-transform:none;
  font-weight:400;color:var(--ink-faint);
}
.rule{flex-wrap:wrap}

/* The list of people a search turned up. It sits under the box that was
   typed into, at the width of a name - not stretched across the screen
   because the card happens to be wide. */
.found{max-width:560px;margin:2px 0 0}
.found .picks{margin:0}
.found .pick{flex:1 1 240px}

/* ===========================================================================
   93. THE COLLEGE CAPSULE
   A teacher who takes classes in both colleges needs to see which one a
   class or a subject belongs to without opening it. The capsule carries the
   college written out in full, and the two are coloured apart so the eye
   does the work before the words do.
   =========================================================================== */
.tag.school{
  text-transform:none;letter-spacing:.01em;font-size:10.5px;font-weight:600;
  white-space:nowrap;
}
.tag.school.rbc{background:rgba(20,87,127,.12);color:#14577F}
.tag.school.ric{background:rgba(176,81,47,.13);color:#8E3F23}
/* In a table cell the subject comes first and the college sits under it on
   a narrow screen rather than pushing the row sideways. */
td .tag.school{margin-left:8px;vertical-align:middle}
@media (max-width:560px){
  td .tag.school{display:block;margin:4px 0 0;white-space:normal}
}

/* A figure inside a line that needs attention - marks entered under a
   subject that has no teacher against it any more. */
.warn-text{color:var(--hold)}

/* Inside a note the FIRST <b> is the note's heading and sits on its own line.
   Emphasis inside the sentence under it is <strong>, which stays inline -
   otherwise a sentence with three emphasised words becomes three lines. */
.note strong{font-weight:600}
.note ul.plain{margin:7px 0 9px;padding:0 0 0 17px}
.note ul.plain li{margin:0 0 3px}

/* =========================================================== the statistics
   COLOUR THAT MEANS SOMETHING.

   A success rate under half is red and over half is green, and the shade
   deepens as the figure moves away from the line; an average out of twenty
   is read the same way against ten. The colour is a wash behind the figure
   and the figure itself stays in ink, because a coloured number on a
   coloured ground is harder to read, not easier - the wash is for the eye
   crossing the table, the number is for the eye that has stopped.

   Two colours only, either side of one line, so there is nothing to learn:
   the green is the brand's own, the red is the one the platform already
   uses when it holds something back. */
:root{
  --good:#1a6b4a;
  --good-bg:rgba(26,107,74,.10);
  --good-bg-2:rgba(26,107,74,.22);
  --bad-bg:rgba(161,59,42,.09);
  --bad-bg-2:rgba(161,59,42,.20);
}
.s-vgood{background:var(--good-bg-2)}
.s-good {background:var(--good-bg)}
.s-poor {background:var(--bad-bg)}
.s-bad  {background:var(--bad-bg-2)}
table.tbl td.s-vgood,table.tbl td.s-good{font-weight:600}
table.tbl td.s-poor,table.tbl td.s-bad{font-weight:600}
.stat.s-vgood b,.stat.s-good b{color:var(--good)}
.stat.s-poor b,.stat.s-bad b{color:var(--hold)}

/* The sheet itself: two header rows over twelve narrow columns, so it reads
   like the paper it replaces. */
.sheet-head{
  border:1px solid var(--line-2);border-radius:var(--r);
  padding:12px 14px;margin-bottom:14px;background:var(--soft-2);
}
.sheet-head>b{font-family:var(--display);font-size:14px;letter-spacing:.02em}
.sheet-meta{display:flex;flex-wrap:wrap;gap:6px 22px;margin-top:6px;font-size:12px}
.sheet-meta span{color:var(--ink-soft)}
table.tbl.sheet th{font-size:11px;letter-spacing:.02em;text-align:center;
  border:1px solid var(--line-2);padding:6px 6px;line-height:1.25}
table.tbl.sheet td{border:1px solid var(--line);padding:7px 8px}
table.tbl.sheet td.num{min-width:46px}
table.tbl.sheet td.strong{white-space:nowrap}

/* ============================================= the class list's versions */
ul.lines.diff li{display:flex;gap:8px;align-items:baseline;padding:4px 0;
  border-bottom:1px solid var(--line)}
ul.lines.diff li:last-child{border-bottom:0}
.d-mark{display:inline-block;width:18px;text-align:center;font-weight:700;
  border-radius:5px;flex:none}
li.d-added   .d-mark{background:var(--good-bg-2);color:var(--good)}
li.d-removed .d-mark{background:var(--bad-bg-2);color:var(--hold)}
li.d-changed .d-mark{background:rgba(13,34,51,.08);color:var(--ink-soft)}

/* ===================================================== messages to parents */
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;
  border:1px solid var(--line-2);border-radius:999px;font-size:13px;cursor:pointer;
  background:#fff}
.chip:has(input:checked){background:var(--soft-2);border-color:var(--brand)}
.chip input{margin:0}
.files{display:flex;flex-direction:column;gap:6px}
.file-row{display:flex;align-items:center;gap:10px;padding:7px 11px;
  border:1px solid var(--line);border-radius:10px;background:#fff}
.file-row b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msg{border:1px solid var(--line);border-radius:var(--r);padding:13px 15px;
  margin-bottom:10px;background:#fff}
.msg.is-off{opacity:.55}
.msg-top{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:2px}
.msg-top>b{font-family:var(--display);font-size:15px}
.msg-from{margin:0 0 6px;font-size:12px;letter-spacing:.04em;
  text-transform:uppercase;color:var(--ink-faint)}
.msg p{margin:0 0 6px}

/* ======================================================= school documents
   A filing cabinet reads as a filing cabinet: the campuses, then the
   drawers, then what is in them, with a trail back up. */
.crumb{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin:2px 0 14px;font-size:13.5px}
.crumb-step{
  background:none;border:0;padding:3px 6px;border-radius:7px;cursor:pointer;
  color:var(--brand);font-weight:600;
}
.crumb-step:hover{background:var(--soft-2)}
.crumb-sep{color:var(--ink-faint)}
.crumb-here{padding:3px 6px;font-weight:600}

.folders{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
.folder{
  display:flex;flex-direction:column;gap:4px;align-items:flex-start;text-align:left;
  padding:15px 16px 14px;border:1px solid var(--line-2);border-radius:var(--r);
  background:#fff;cursor:pointer;font:inherit;color:inherit;position:relative;
  transition:border-color .12s,transform .12s;
}
.folder:hover{border-color:var(--brand);transform:translateY(-1px)}
.folder::before{
  content:"";display:block;width:30px;height:24px;margin-bottom:6px;
  background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 24' fill='none'%3E%3Cpath d='M1.5 5.5a2 2 0 0 1 2-2h7.2l2.6 2.8h13.2a2 2 0 0 1 2 2v12.2a2 2 0 0 1-2 2H3.5a2 2 0 0 1-2-2z' fill='%23eef3f7' stroke='%2314577f' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat center/contain;
}
.folder.is-empty::before{opacity:.5;filter:saturate(.2)}
.folder.is-empty{opacity:.62}
.folder b{font-family:var(--display);font-size:15px;line-height:1.25}
.folder-tag{
  position:absolute;top:13px;right:14px;font-size:10.5px;font-weight:700;
  letter-spacing:.06em;text-transform:uppercase;color:var(--ink-faint);
}
.folder-note{font-size:12.5px;color:var(--ink-soft)}
.folder-n{font-size:13px;font-weight:600}
.folder-when{font-size:12px;color:var(--ink-faint)}

.doc{border:1px solid var(--line);border-radius:var(--r);padding:13px 15px;
  margin-bottom:10px;background:#fff}
.doc.is-off{opacity:.6}
.doc-top{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:4px}
.doc-top>b{font-family:var(--display);font-size:15px}
.doc p{margin:0 0 5px}
.doc-who{font-size:12px;color:var(--ink-faint)}

/* ======================================================= the plain controls
   NOTHING ON THIS PLATFORM IS LEFT AS THE BROWSER DRAWS IT.

   A tick box in Chrome on a Dschang phone and a tick box in Firefox on the
   secretariat's laptop are two different objects, and neither of them is the
   colour of this school. The same goes for a search box's little cross, the
   scrollbar down the side of a long mark sheet, and the blue flash when
   somebody drags across a name. They are all drawn here instead, once, so
   the platform looks like one thing on every machine it is opened on. */
input[type="search"]{
  width:100%;padding:11px 13px;border:1px solid var(--line-2);border-radius:11px;
  background:#fff;color:var(--ink);
}
input[type="search"]::-webkit-search-cancel-button{
  -webkit-appearance:none;appearance:none;height:15px;width:15px;cursor:pointer;
  background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230d2233' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 5l10 10M15 5L5 15'/%3E%3C/svg%3E") center/13px no-repeat;
  opacity:.45;
}
input[type="search"]::-webkit-search-cancel-button:hover{opacity:.9}

input[type="checkbox"],input[type="radio"]{
  appearance:none;-webkit-appearance:none;margin:0;flex:none;
  width:17px;height:17px;border:1.5px solid var(--line-2);background:#fff;
  border-radius:5px;cursor:pointer;position:relative;transition:border-color .12s,background .12s;
}
input[type="radio"]{border-radius:50%}
input[type="checkbox"]:hover,input[type="radio"]:hover{border-color:var(--brand)}
input[type="checkbox"]:checked,input[type="radio"]:checked{
  background:var(--brand);border-color:var(--brand);
}
input[type="checkbox"]:checked::after{
  content:"";position:absolute;left:5px;top:1.5px;width:4px;height:9px;
  border:solid #fff;border-width:0 2px 2px 0;transform:rotate(42deg);
}
input[type="radio"]:checked::after{
  content:"";position:absolute;inset:4px;border-radius:50%;background:#fff;
}
input[type="checkbox"]:disabled,input[type="radio"]:disabled{opacity:.45;cursor:not-allowed}

/* The date box's own little calendar button, which is grey in every browser. */
input[type="date"]::-webkit-calendar-picker-indicator{
  cursor:pointer;opacity:.5;filter:saturate(0);
}
input[type="date"]::-webkit-calendar-picker-indicator:hover{opacity:.95}

::placeholder{color:var(--ink-faint);opacity:1}
::selection{background:rgba(20,87,127,.18)}

/* A long mark sheet on a laptop is the one place a scrollbar is on screen
   for minutes at a time. */
*{scrollbar-width:thin;scrollbar-color:rgba(13,34,51,.28) transparent}
::-webkit-scrollbar{width:11px;height:11px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{
  background:rgba(13,34,51,.22);border-radius:99px;border:3px solid transparent;
  background-clip:content-box;
}
::-webkit-scrollbar-thumb:hover{background:rgba(13,34,51,.42);background-clip:content-box}

/* A file chooser is a button on this platform, never the browser's own
   "Choose File / No file chosen", which says neither in French. */
input[type="file"]{display:none}
.doc-where{font-size:12px;color:var(--brand);font-weight:600;margin:0 0 4px}

/* ------------------------------------------------- show the password
   The eye sits inside the box rather than beside it, so the field keeps
   its full width on a phone, and it is a word rather than a pictogram
   because an eye with a line through it means "shown" to half the people
   who see it and "hidden" to the other half. */
.pw-wrap{position:relative;display:block}
.pw-wrap input{padding-right:74px;width:100%}
.pw-eye{
  position:absolute;right:6px;top:50%;transform:translateY(-50%);
  border:0;background:none;cursor:pointer;padding:7px 10px;border-radius:9px;
  font-size:12.5px;font-weight:600;letter-spacing:.02em;color:var(--brand);
}
.pw-eye:hover{background:var(--soft-2)}
.pw-eye[aria-pressed="true"]{color:var(--ink-soft)}

/* ---------------------------------------------- the same student, twice
   Two rows side by side, the fuller one marked, so the choice is made by
   looking rather than by reading. On a phone they stack. */
.dup{border:1px solid var(--line);border-radius:var(--r);padding:12px 14px;margin-bottom:10px;background:#fff}
.dup-head{margin-bottom:8px}
.dup-score{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-faint)}
.dup-pair{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.dup-side{border:1px solid var(--line);border-radius:11px;padding:11px 13px;background:var(--paper)}
.dup-side.is-pick{border-color:var(--brand);background:#fff}
.dup-side b{display:block;font-size:14.5px;line-height:1.3}
.dup-side .muted{display:block;font-size:12.5px;margin:2px 0 8px}
.dup-side .acts{margin:0;gap:6px;flex-wrap:wrap}

/* A subject already held by another teacher. Not disabled - pressing it is a
   handover and the platform asks first - but it has to look different from
   one that is free, or a dean takes a class off somebody by accident. */
.pick.is-held{border-style:dashed;opacity:.72}
.pick.is-held small{display:block;font-size:11px;color:var(--hold);font-weight:600;margin-top:2px}
