/* Harrap Support Summaries. One stylesheet, no build step.
   The look follows harrap.it: periwinkle blue, pale blue panels, slate text, green call-to-action buttons,
   and the site's lopsided corners (one big rounded corner, three small ones). */

/* Fonts. Body text is Roboto, kept on this site (one file holds every weight; licence in ../fonts/OFL.txt).
   Headings ask for Aktiv Grotesk, the licensed face harrap.it loads from Adobe Fonts, and fall back to Roboto
   until typekit_kit is set in config.php. */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/roboto-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/roboto-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand, measured from harrap.it */
  --primary: #556DD6;
  --primary-deep: #4459B8;
  --secondary: #D8E4FF;
  --text: #383F51;
  --accent: #06BA63;
  --accent-deep: #059A52;
  --sand: #F2D492;
  --coral: #FE5F55;
  --bg: #F7F7FF;
  --bg-warm: #F7F7F2;
  --surface: #fff;
  --muted: #6b7386;
  --border: #dfe5f5;
  --border-strong: #c3cdea;
  /* What the figures are painted in (checked with the colour-blindness validator; see README) */
  --c-paid: #06BA63;
  --c-included: #556DD6;
  --c-unbillable: #FE5F55;
  --c-arbor: #556DD6;
  --c-libresoft: #D99A2B;
  --c-excluded: #b8bfd0;
  /* Status: always shown with a word, never colour alone */
  --ok: #0A8F4D;
  --watch: #9A6A00;
  --warn: #C4540B;
  --bad: #C0392B;
  --ok-bg: #E3F7EC;
  --watch-bg: #FBF1D6;
  --warn-bg: #FDE7D8;
  --bad-bg: #FBE0DD;
  --radius: 10px;
  --corner-btn: 5px 5px 20px 5px;
  --corner-card: 20px 5px 5px 5px;
  --font: Roboto, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-head: 'aktiv-grotesk', Roboto, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --page: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text); margin: 0 0 .5em; line-height: 1.2; }
h1 { font-size: 30px; font-weight: 300; }
h1 strong { font-weight: 600; }
h2 { font-size: 20px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--primary-deep); }
a:hover { color: var(--text); }
strong { font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--primary); color: #fff; display: flex; align-items: center; gap: 20px; padding: 14px max(16px, calc((100vw - var(--page)) / 2 + 16px)); position: sticky; top: 0; z-index: 30; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; flex-shrink: 0; }
.brand-logo { display: block; height: auto; }
.brand-name { font-family: var(--font-head); font-size: 16px; font-weight: 300; opacity: .95; border-left: 1px solid rgba(255, 255, 255, .45); padding-left: 12px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.nav a, .nav button.nav-link { font-family: var(--font-head); font-size: 15px; font-weight: 500; color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 5px; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.nav a:hover, .nav button.nav-link:hover, .nav a[aria-current=page] { background: rgba(255, 255, 255, .16); color: #fff; }
.nav .badge { background: var(--sand); color: var(--text); border-radius: 10px; padding: 1px 7px; font-size: 12px; font-weight: 600; margin-left: 6px; }
.nav-menu { position: relative; }
.nav-menu > .menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 8px; min-width: 230px; display: none; flex-direction: column; z-index: 40; max-height: 75vh; overflow: auto; }
.nav-menu.open > .menu { display: flex; }
.nav-menu .menu a { color: var(--text); font-weight: 400; padding: 7px 10px; }
.nav-menu .menu a:hover, .nav-menu .menu a[aria-current=page] { background: var(--secondary); color: var(--text); }
.nav-menu .menu .menu-head { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px 2px; }
.nav-menu .menu form { margin: 4px 0 0; border-top: 1px solid var(--border); padding-top: 6px; }
.nav-menu .menu button { width: 100%; text-align: left; background: none; border: 0; font: inherit; padding: 7px 10px; border-radius: 5px; cursor: pointer; color: var(--text); }
.nav-menu .menu button:hover { background: var(--secondary); }
.nav-who { font-size: 13px; opacity: .9; padding: 0 6px; }
.nav-toggle { display: none; margin-left: auto; background: var(--primary-deep); border: 0; border-radius: 5px; width: 40px; height: 36px; padding: 9px 9px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }

/* ---------- Banners under the top bar ---------- */
#banner .strip { padding: 8px max(16px, calc((100vw - var(--page)) / 2 + 16px)); font-size: 13px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.strip-view { background: var(--sand); color: var(--text); }
.strip-demo { background: var(--text); color: #fff; }
.strip-demo a { color: #fff; }
.strip button { font: inherit; }

/* ---------- Page ---------- */
main#app { flex: 1; width: 100%; }
.hero { background: var(--primary); color: #fff; padding: 34px max(16px, calc((100vw - var(--page)) / 2 + 16px)) 58px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -60px; top: -40px; width: 420px; height: 260px; border: 6px solid rgba(255, 255, 255, .09); border-radius: 50%; transform: rotate(-12deg); pointer-events: none; }
.hero h1 { color: #fff; font-size: 34px; margin: 0; max-width: 820px; }
.hero p { color: #fff; opacity: .92; font-size: 16px; font-weight: 300; margin: 10px 0 0; max-width: 760px; }
.hero .hero-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero .crumbs { font-size: 13px; margin-bottom: 10px; opacity: .9; }
.hero .crumbs a { color: #fff; }
.wrap { max-width: var(--page); margin: -34px auto 0; padding: 0 16px 48px; position: relative; display: grid; gap: 18px; }
.wrap.plain { margin-top: 24px; }
.card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); padding: 20px; min-width: 0; }
.card.feature { border-radius: var(--corner-card); }
.card > h2:first-child, .card > .card-head { margin-top: 0; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h2, .card-head h3 { margin: 0; }
.card-foot { background: var(--secondary); margin: 16px -20px -20px; padding: 12px 20px; border-radius: 0 0 var(--radius) var(--radius); font-size: 14px; }
.card.feature .card-foot { border-radius: 0 0 5px 5px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.stack { display: grid; gap: 10px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.empty-state { text-align: center; padding: 50px 16px; }
.loading { padding: 60px 16px; text-align: center; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-head); font-size: 14px; font-weight: 500; line-height: 1.2; padding: 11px 22px; border-radius: var(--corner-btn); border: 1px solid var(--border-strong); background: #fff; color: var(--text); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--secondary); color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn-dark { background: var(--text); border-color: var(--text); color: #fff; }
.btn-dark:hover { background: #262b38; color: #fff; }
.btn-danger { color: var(--bad); border-color: #e8b5ae; }
.btn-danger:hover { background: var(--bad-bg); color: var(--bad); }
.btn-danger-solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-ghost { border-color: transparent; background: none; padding: 6px 10px; }
.btn-small { padding: 6px 12px; font-size: 13px; border-radius: 4px 4px 12px 4px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .btn { border-color: transparent; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--primary-deep); text-decoration: underline; cursor: pointer; text-align: left; }
.linkish:hover { color: var(--text); }

/* ---------- Forms ---------- */
input, select, textarea { font: inherit; color: var(--text); background: #fff; border: 1px solid var(--border-strong); border-radius: 5px; padding: 9px 11px; width: 100%; min-width: 0; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; padding: 0; accent-color: var(--primary); flex-shrink: 0; }
input[type=number] { text-align: right; }
textarea { min-height: 96px; resize: vertical; }
.field-label { font-size: 13px; font-weight: 500; display: block; margin-bottom: 4px; }
.field { display: block; }
.hint { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.check { display: flex; gap: 8px; align-items: center; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filters .field { min-width: 130px; }
.filters select, .filters input { padding: 7px 10px; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 5px; overflow: hidden; background: #fff; flex-wrap: wrap; }
.seg button { font: inherit; font-size: 13px; padding: 7px 12px; border: 0; background: none; color: var(--text); cursor: pointer; border-right: 1px solid var(--border); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed=true] { background: var(--primary); color: #fff; }
.checklist { max-height: 260px; overflow: auto; border: 1px solid var(--border); border-radius: 5px; padding: 8px; display: grid; gap: 4px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-family: var(--font-head); font-size: 12px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; background: #fff; }
th button { font: inherit; text-transform: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
th button:hover { color: var(--text); }
th[aria-sort] button::after { content: ' ▾'; }
th[aria-sort=ascending] button::after { content: ' ▴'; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr:hover td { background: #fafbff; }
tr.total td { font-weight: 600; border-top: 2px solid var(--border-strong); border-bottom: 0; }
tr.sub td { background: #fafbff; color: var(--muted); }
tr.sub td:first-child { padding-left: 28px; }
td.wrap-text { white-space: normal; min-width: 220px; }
.table-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---------- Pills, alerts ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 10px; background: var(--secondary); color: var(--text); white-space: nowrap; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.plain::before { display: none; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.watch { background: var(--watch-bg); color: var(--watch); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.high, .pill.over, .pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.none { background: #eef0f5; color: var(--muted); }
.alert { background: var(--secondary); border-radius: 5px; padding: 10px 14px; margin: 0 0 12px; }
.alert-error { background: var(--bad-bg); color: #7d1f15; }
.alert-ok { background: var(--ok-bg); color: #075a31; }
.alert-warn { background: var(--watch-bg); color: #5f4100; }
.switch-note { display: flex; gap: 10px; align-items: flex-start; }
.tagline { font-size: 12px; color: var(--muted); }
.tag { display: inline-block; font-size: 12px; background: #eef1fb; border-radius: 4px; padding: 0 6px; margin: 0 4px 2px 0; white-space: nowrap; }

/* ---------- Stat tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.tile { background: #fff; border: 1px solid var(--border); border-radius: var(--corner-card); padding: 16px 18px; min-width: 0; }
.tile .tile-label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.tile .tile-value { font-family: var(--font-head); font-size: clamp(24px, 2.7vw, 34px); font-weight: 300; line-height: 1.15; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tile .tile-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.tile.lead { background: var(--text); border-color: var(--text); color: #fff; }
.tile.lead .tile-label, .tile.lead .tile-sub { color: #d5daea; }
.swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex-shrink: 0; background: var(--c, var(--muted)); }
.delta-up { color: var(--ok); }
.delta-down { color: var(--bad); }
.tile.lead .delta-up { color: #7be0a8; }
.tile.lead .delta-down { color: #ffb1ab; }
.meter { height: 8px; border-radius: 4px; background: #e9edf8; position: relative; margin-top: 10px; }
.meter > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--c, var(--primary)); width: var(--w, 0%); }
.meter > b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text); left: var(--at, 0%); }

/* ---------- Charts (hand-built; see charts.js) ---------- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis text { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.chart .grid line { stroke: #e9edf8; stroke-width: 1; }
.chart .mark { cursor: pointer; }
.chart .mark:hover, .chart .mark:focus { filter: brightness(1.08); outline: none; }
.chart .target { stroke: var(--text); stroke-width: 1.5; stroke-dasharray: 4 4; }
.chart .label { font-size: 11px; fill: var(--text); font-family: var(--font); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .dash { width: 16px; border-top: 2px dashed var(--text); }
.tip { position: fixed; z-index: 100; background: var(--text); color: #fff; font-size: 13px; padding: 8px 10px; border-radius: 5px; pointer-events: none; max-width: 280px; line-height: 1.4; }
.tip b { font-weight: 600; }
.tip .tip-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.tip .tip-key { display: inline-block; width: 12px; border-top: 3px solid var(--c); margin-right: 6px; vertical-align: middle; }
.bars { display: grid; gap: 6px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 220px) 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.bar-row .bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .bar-track { height: 14px; background: #eef1fb; border-radius: 0 4px 4px 0; position: relative; }
.bar-row .bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; background: var(--c, var(--c-unbillable)); width: var(--w, 0%); min-width: 2px; }
.bar-row .bar-val { font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 64px; text-align: right; }
.bar-row button.bar-name { background: none; border: 0; font: inherit; color: var(--primary-deep); text-align: left; cursor: pointer; padding: 0; text-decoration: underline; }
.split { display: flex; height: 14px; border-radius: 4px; overflow: hidden; gap: 2px; background: #fff; min-width: 120px; }
.split i { display: block; height: 100%; background: var(--c); width: var(--w); }
.spark { display: block; }

/* ---------- Working hours and rota grids ---------- */
.week-grid input { width: 62px; padding: 6px 6px; text-align: right; }
.week-grid input[type=time] { width: 96px; text-align: left; }
.week-grid td, .week-grid th { padding: 6px 6px; vertical-align: middle; }
.day-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
.day-cell.off { color: #a4abbd; }
.day-cell .start { color: var(--muted); font-size: 12px; display: block; }
.avail { display: inline-block; min-width: 64px; padding: 4px 8px; border-radius: 4px; background: var(--ok-bg); color: #075a31; font-variant-numeric: tabular-nums; font-size: 13px; text-align: center; }
.avail.part { background: var(--watch-bg); color: #5f4100; }
.avail.gone { background: #eef0f5; color: var(--muted); }
.rota-grid td.h { width: 44px; min-width: 38px; text-align: center; padding: 6px 2px; font-size: 11px; font-weight: 600; border-left: 2px solid #fff; }
.rota-grid td.h.ok { background: var(--ok-bg); color: var(--ok); }
.rota-grid td.h.spare { background: #dfe6fb; color: var(--primary-deep); }
.rota-grid td.h.short { background: var(--watch-bg); color: var(--watch); }
.rota-grid td.h.none { background: var(--bad-bg); color: var(--bad); }
.rota-grid td.h.off { background: #f3f4f8; color: #b3b9c8; }
.day-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.day-chip { flex: 0 0 auto; border: 1px solid var(--border); background: #fff; border-radius: 5px; padding: 6px 10px; font-size: 13px; cursor: pointer; text-align: center; font-family: inherit; color: var(--text); }
.day-chip[aria-pressed=true] { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.day-chip b { display: block; font-weight: 600; }
.skills-grid th.rot { height: 130px; vertical-align: bottom; padding: 4px; }
.skills-grid th.rot span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text); }
.skills-grid td { text-align: center; padding: 4px; }
.skills-grid td:first-child { text-align: left; white-space: nowrap; }
.issue { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; }

/* ---------- Dialogs and toasts ---------- */
dialog.dialog { border: 0; border-radius: var(--corner-card); padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); color: var(--text); }
dialog.dialog-wide { width: min(1080px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(56, 63, 81, .55); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; background: var(--secondary); }
.dialog-head h2 { margin: 0; font-size: 18px; }
.dialog-body { padding: 18px 20px; overflow: auto; max-height: calc(100vh - 190px); }
.dialog-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px 18px; }
#toasts, .toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 200; }
.toast { background: var(--text); color: #fff; padding: 10px 16px; border-radius: var(--corner-btn); font-size: 14px; max-width: 380px; transition: opacity .4s; }
.toast-error { background: var(--bad); }
.toast-hide { opacity: 0; }
.progress { height: 10px; background: #e9edf8; border-radius: 5px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); width: var(--w, 0%); transition: width .3s; }
.mail-preview { border: 1px solid var(--border); border-radius: 5px; width: 100%; height: 520px; background: #fff; }
pre.code { background: #f3f4f8; padding: 10px 12px; border-radius: 5px; font-size: 13px; overflow: auto; white-space: pre-wrap; word-break: break-all; margin: 0; }
.steps { counter-reset: step; display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.steps > li { counter-increment: step; padding-left: 42px; position: relative; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--secondary); display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.steps > li.done::before { background: var(--accent); color: #fff; content: '✓'; }

/* ---------- School-facing pot ---------- */
.pot-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.pot-big { font-family: var(--font-head); font-size: 44px; font-weight: 300; line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc { font-size: 14px; }
.calc td { padding: 6px 10px; }
.prose h2 { margin-top: 1.4em; }
.prose ul { padding-left: 20px; }

/* ---------- Sign-in ---------- */
.login-body { background: var(--bg); }
.login-hero { background: var(--primary); color: #fff; padding: 44px 16px 84px; text-align: center; position: relative; overflow: hidden; }
.login-hero::after { content: ''; position: absolute; left: -80px; bottom: -150px; width: 520px; height: 300px; border: 6px solid rgba(255, 255, 255, .09); border-radius: 50%; transform: rotate(8deg); }
.login-hero .brand-logo { margin: 0 auto 10px; }
.login-strap { font-family: var(--font-head); font-size: 30px; font-weight: 300; margin: 0; }
.login-strap strong { font-weight: 600; }
.login-wrap { width: min(460px, calc(100% - 32px)); margin: -52px auto 40px; display: grid; gap: 16px; position: relative; flex: 1; align-content: start; }
.login-wrap .prose, .login-wrap:has(.prose) { width: min(760px, calc(100% - 32px)); }
.login-card { border-radius: var(--corner-card); padding: 26px; }
.login-card h1 { font-size: 24px; font-weight: 600; }
.login-staff h2 { font-size: 15px; color: var(--muted); font-weight: 500; }
.dev-login { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border-strong); }

/* ---------- Footer ---------- */
.site-footer { background: var(--text); color: #d5daea; font-size: 13px; margin-top: auto; }
.site-footer-in { max-width: var(--page); margin: 0 auto; padding: 22px 16px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.site-footer p { margin: 0; flex: 1; min-width: 220px; }
.site-footer nav { display: flex; gap: 16px; }
.site-footer a { color: #fff; }

/* ---------- Phones ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--primary-deep); padding: 10px 16px 16px; flex-direction: column; align-items: stretch; margin: 0; }
  .nav.open { display: flex; }
  .nav a, .nav button.nav-link { text-align: left; width: 100%; }
  .nav-menu > .menu { position: static; display: flex; background: rgba(255, 255, 255, .1); border: 0; margin-top: 4px; }
  .nav-menu .menu a, .nav-menu .menu button { color: #fff; }
  .nav-menu .menu .menu-head { color: #d5daea; }
  .hero { padding-top: 24px; }
  .hero h1 { font-size: 26px; }
  .tile .tile-value { font-size: 28px; }
  .pot-big { font-size: 34px; }
  .bar-row { grid-template-columns: minmax(90px, 130px) 1fr auto; }
  .brand-name { display: none; }
}
@media print {
  .topbar, .site-footer, #banner, .hero-actions, .btn, .filters { display: none !important; }
  .hero { background: none; color: var(--text); padding: 0 0 12px; }
  .hero h1, .hero p { color: var(--text); }
  .wrap { margin-top: 0; }
}
