/* Motiv Ops 2027 · app shell, sign-in, settings pages (stage 1) and the event tabs (stage 2). Phone first.
   Mobile rules (Brief 2 §9): fits the width, pinch to zoom in only, inputs at 16px so iOS never zooms.
   Same colours and components as Kit (kit/kit.css). */
:root {
  --crimson: #C5172F;
  --crimson-soft: #FDECEE;
  --ink: #1F2937;
  --navy: #222430;
  --sky: #96CAF5;
  --muted: #6B7280;
  --line: #E5E7EB;
  --bg: #F6F7F9;
  --card: #FFFFFF;
  --green: #15803D;
  --green-soft: #DCFCE7;
  --amber-soft: #FEF3C7;
  --amber: #B45309;
  --radius: 10px;
  /* the top bar's height: 52px, plus the iPhone's camera/status area when the app runs from the Home Screen (Benjie, 26 Nov) */
  --bar-h: calc(44px + max(8px, env(safe-area-inset-top, 0px)));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg); overflow-x: hidden; }
input, select, textarea, button { font: inherit; font-size: 16px; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 18px; margin: 0 0 8px; }
h3 { font-size: 15px; margin: 14px 0 6px; }
a { color: inherit; }
.sub { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.err { color: var(--crimson); }
.ok-text { color: var(--green); }
.empty-note { color: var(--muted); padding: 20px; text-align: center; }

/* ── top bar ── */
/* inside an event the bar takes the event's colour and logo (app.js applyBrand); elsewhere it's Motiv */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--topbar, var(--navy)); color: var(--topbar-ink, #fff);
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); min-height: 52px;
  padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
.topbar .brand { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-weight: 700; white-space: nowrap; }
.topbar .brand img { height: 20px; width: auto; display: block; }
.topbar .brand b { color: #FF3A57; }
.topbar select { flex: 3 1 auto; min-width: 0; width: 0; max-width: 360px; border: 0; border-radius: 8px; padding: 6px 8px; background: #fff; color: var(--ink); }
.topbar .ev-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.topbar .spacer { flex: 1; }
.topbar .navlink { color: #D1D5DB; text-decoration: none; padding: 6px 10px; border-radius: 999px; white-space: nowrap; font-size: 14px; }
.topbar .navlink.on { background: #fff; color: var(--ink); }
.topbar .menu-btn { background: none; border: 1px solid #4B5563; color: #fff; border-radius: 8px; min-height: 36px; padding: 4px 10px; }
@media (max-width: 420px) { .topbar .brand img { height: 16px; } .topbar .brand b { display: none; } .topbar .navlink { padding: 6px 6px; } }
/* Ops Planning: a clear small button in the header, the only way in (Benjie, 29 Nov). One line, never wider than it needs. */
.topbar .navlink.ops-btn, body.event .topbar .navlink.ops-btn { flex: none; background: #F3294E; color: #FFFFFF; border: 1px solid #F3294E;
  border-radius: 6px; padding: 6px 10px; font-weight: 600; line-height: 1.1; }
.topbar .navlink.ops-btn.on, body.event .topbar .navlink.ops-btn.on { background: #FFFFFF; color: #222430; border-color: #FFFFFF; }
.topbar .navlink.ops-btn:hover { filter: brightness(1.08); }


main.page { max-width: 1100px; margin: 0 auto; padding: 16px; }

/* ── status line: last updated / offline ── */
.status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.status .offline { background: var(--amber-soft); color: var(--amber); border-radius: 999px; padding: 2px 10px; font-weight: 600; }
.banner { border-radius: var(--radius); padding: 10px 12px; margin: 0 0 12px; font-size: 14px; }
.banner.warn { background: var(--amber-soft); color: #78350F; }
.banner.info { background: #EFF6FF; color: #1E3A8A; }

/* ── tab tiles on an event's home ── */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-height: 84px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-decoration: none; color: var(--ink); }
.tile b { font-size: 15px; }
.tile span { font-size: 12px; color: var(--muted); }
.tile.admin { border-left: 4px solid var(--crimson); }
.tile.big { min-height: 110px; }
.tile:active { background: var(--bg); }

/* ── buttons, chips, boxes, tables ── */
.btn { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 8px;
  padding: 8px 12px; min-height: 40px; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn.primary { background: var(--accent, var(--crimson)); border-color: var(--accent, var(--crimson)); color: var(--accent-ink, #fff); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.danger { color: var(--crimson); }
.btn.small { min-height: 32px; padding: 4px 10px; font-size: 14px; }
.btn.link { border: 0; background: none; color: var(--ink); text-decoration: underline; padding: 4px 0; min-height: 0; }
.btn:disabled { opacity: .5; cursor: default; }
.chip { display: inline-block; border-radius: 999px; padding: 2px 8px; font-size: 12px; background: var(--line); color: var(--ink); white-space: nowrap; }
.chip.core { background: var(--crimson-soft); color: var(--crimson); }
.chip.ok { background: var(--green-soft); color: var(--green); }
.chip.warn { background: var(--amber-soft); color: var(--amber); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.toolbar input, .toolbar select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-height: 40px; background: #fff; max-width: 100%; }
.toolbar input[type=search] { flex: 1 1 200px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.box .head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.box .head h2 { margin: 0; flex: 1 1 200px; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.tbl td.n { text-align: right; white-space: nowrap; }
.tbl .muted { color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.checks li { margin: 4px 0; }

/* ── settings sub-navigation ── */
.subnav { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 10px; margin: 0 0 6px; -webkit-overflow-scrolling: touch; }
.subnav a { flex: 0 0 auto; text-decoration: none; padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; }
.subnav a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── profile tab picker ── */
.picks { display: flex; flex-wrap: wrap; gap: 6px; }
.pick { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 10px; min-height: 36px; font-size: 14px; }
.pick input { width: 18px; height: 18px; margin: 0; }
.pick.std { background: var(--bg); color: var(--muted); }

/* ── dialogs and toasts ── */
dialog { border: 0; border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); }
dialog::backdrop { background: rgba(17, 24, 39, .5); }
dialog form { padding: 18px; display: grid; gap: 10px; }
dialog label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
dialog input:not([type=checkbox]):not([type=radio]), dialog select, dialog textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-height: 42px; color: var(--ink); width: 100%; background: #fff; }
dialog .row-btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
dialog .scrolly { max-height: 50vh; overflow: auto; font-size: 14px; }
dialog .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { dialog .two { grid-template-columns: 1fr; } }
#toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 50;
  background: var(--ink); color: #fff; border-radius: 10px; padding: 10px 14px; max-width: calc(100vw - 32px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
#toast.err { background: var(--crimson); }

/* ── sign-in ── */
body.signin { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; background: var(--navy);
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.signin-card { background: #fff; border-radius: 14px; padding: 24px; width: min(420px, 100%); box-shadow: 0 6px 30px rgba(0,0,0,.25); }
.signin-logo { background: var(--navy); margin: -24px -24px 18px; padding: 18px 24px; border-radius: 14px 14px 0 0; border-bottom: 3px solid var(--crimson); }
.signin-logo img { height: 26px; width: auto; display: block; }
.signin-card form { display: grid; gap: 12px; }
.signin-card label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.signin-card input { border: 1px solid #D1D5DB; border-radius: 8px; padding: 12px; min-height: 48px; width: 100%; }
.signin-card input.code { letter-spacing: .15em; font-size: 20px; text-align: center; text-transform: uppercase; }
.signin-card .btn { justify-content: center; min-height: 48px; width: 100%; }
.signin-card .alt { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; margin-top: 4px; }
.signin-card .alt button { background: none; border: 0; padding: 4px 0; color: var(--ink); text-decoration: underline; font-size: 14px; }
.signin-card .msg { min-height: 1.4em; margin: 0; font-size: 14px; }
.signin-card .note { font-size: 13px; color: var(--muted); margin: 0; }
.signin-card h2 { font-size: 17px; margin: 0; }
.signin-card #f-code:not([hidden]) ~ #f-email { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.signin-card form:not([hidden]) + .msg { margin-top: 10px; }
.dev-flag { display: inline-block; font-size: 12px; background: var(--amber-soft); color: var(--amber); border-radius: 999px; padding: 2px 8px; }

/* ══ stage 2: the event tabs ═════════════════════════════════════════════════ */
.brand-chip { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 32px; border-radius: 6px; padding: 3px; }
.brand-chip img { max-width: 100%; max-height: 100%; object-fit: contain; }
.colour-row { display: flex; gap: 6px; align-items: center; }
.colour-row input[type=color] { width: 52px; min-height: 42px; padding: 2px; flex: 0 0 auto; }
.logo-preview { border-radius: 8px; min-height: 70px; display: flex; align-items: center; justify-content: center; padding: 10px; color: #fff; font-size: 13px; }
.logo-preview img { max-height: 60px; max-width: 100%; object-fit: contain; }
.warn-text { color: var(--amber); }
.cap { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.meta { display: block; font-size: 13px; color: var(--muted); }
.meta.strong { color: var(--ink); font-weight: 600; }
.muted { color: var(--muted); }
.pre { white-space: pre-wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 420px) { .two { grid-template-columns: 1fr; } }
.crumb { margin: 0 0 8px; }
.status .src { color: var(--muted); }
.status .btn.link { font-size: 13px; }
.banner.err-banner { background: var(--crimson-soft); color: #7F1D1D; }
.banner.err-banner ul { margin: 6px 0; padding-left: 18px; }
.empty-note.err { color: var(--crimson); }
.tab-body input:not([type=checkbox]):not([type=radio]), .tab-body select, .tab-body textarea, .sheet input:not([type=checkbox]), .sheet select, .sheet textarea {
  border: 1px solid #D1D5DB; border-radius: 8px; padding: 10px; min-height: 46px; width: 100%; background: #fff; color: var(--ink); margin: 4px 0; }
.tab-body input[type=search] { margin: 8px 0; }
.btn.big { min-height: 52px; font-size: 17px; width: 100%; justify-content: center; }
.btn.on { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.btn.ok { background: var(--green-soft); border-color: var(--green); }

/* ECR bar (Brief 2 §4): Motiv Sky Blue with Dark Navy text */
.ecr-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 72px; margin: 0 0 12px;
  padding: 12px 16px; border: 0; border-radius: var(--radius); background: var(--sky); color: var(--navy); text-align: left; }
.ecr-bar b { display: block; font-size: 17px; }
.ecr-bar small { display: block; font-size: 13px; }
.ecr-bar .arrow { font-size: 28px; }
.call-ecr { display: block; padding: 10px 12px; margin: 0 0 12px; border-radius: var(--radius); background: var(--crimson-soft); color: #7F1D1D; text-decoration: none; }
.call-now { display: block; padding: 10px; border-radius: 8px; background: #F3294E; color: #fff; margin: 8px 0; }
.channel { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--sky); border-radius: var(--radius); padding: 10px 12px; margin: 0 0 12px; }
.channel b { font-size: 18px; }
.log-line { padding: 8px 0; border-bottom: 1px solid var(--line); }
.log-line span { display: block; font-size: 13px; color: var(--muted); }
.log-line.notsent { color: var(--crimson); }
.broadcast { display: block; text-decoration: none; padding: 12px 14px; border-radius: var(--radius); margin: 0 0 12px; background: var(--crimson); color: #fff; }
.broadcast.lvl-Emergency { background: #F3294E; }
.broadcast.lvl-Info { background: var(--sky); color: var(--navy); }
.broadcast b { display: block; font-size: 17px; }
.broadcast span { display: block; font-size: 14px; }
.broadcast .cap { color: inherit; opacity: .85; }

/* documents */
.docs { display: grid; gap: 8px; margin: 0 0 12px; }
.doc { display: flex; flex-direction: column; gap: 2px; text-align: left; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy);
  border-radius: var(--radius); padding: 10px 12px; color: var(--ink); min-height: 52px; }
.doc span { font-size: 13px; color: var(--muted); }
.doc.missing { border-left-color: var(--crimson); }

/* cards, pills, chips, stats */
.card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 0 0 8px; }
.card p { margin: 6px 0; }
.card.full { border-left-color: var(--green); }
.card.part { border-left-color: #F2A03C; }
.card.back { border-left-color: #8E93A6; }
.card.hl { box-shadow: 0 0 0 3px var(--sky); }
.pill { display: inline-block; border-radius: 4px; padding: 3px 8px; font-size: 12px; font-weight: 600; background: var(--line); }
.pill.dashed { background: none; border: 1px dashed #F2A03C; color: var(--amber); }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.red { background: var(--crimson-soft); color: var(--crimson); }
.pills { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.tag { display: inline-block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--crimson); color: var(--crimson);
  padding: 1px 6px; border-radius: 4px; vertical-align: middle; white-space: nowrap; }
.tag.sky { border-color: #3B82C4; color: #1E5A94; }
.tag.amber { border-color: #F2A03C; color: var(--amber); }
.tag.dark { background: #15151C; border-color: #15151C; color: #E6BE45; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chipbtn { border: 1px solid #D1D5DB; background: #fff; border-radius: 999px; padding: 8px 12px; min-height: 40px; color: var(--ink); }
.chipbtn.on { background: var(--on, var(--navy)); border-color: var(--on, var(--navy)); color: #fff; }
.seg { display: flex; gap: 4px; overflow-x: auto; margin: 8px 0; -webkit-overflow-scrolling: touch; }
.seg.wrap { flex-wrap: wrap; overflow: visible; }
.seg button { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 10px; min-height: 40px; color: var(--ink); }
.seg button.on { background: var(--accent, var(--navy)); color: var(--accent-ink, #fff); border-color: var(--accent, var(--navy)); }
.seg button small { display: block; font-size: 11px; opacity: .8; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; margin: 0 0 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 8px; padding: 10px; font-size: 13px; color: var(--muted);
  text-decoration: none; display: block; }
.stat b { display: block; font-size: 24px; color: var(--ink); }
.stat small { display: block; }
.stat.red { border-top-color: #F3294E; }
.stat.amber { border-top-color: #F2A03C; }
.stat.purple { border-top-color: #BD99D8; }
.stats.gold .stat { border-top-color: #E6BE45; }
.box.urgent { border-color: #F3294E; }
.urgent-line { display: block; width: 100%; text-align: left; background: var(--crimson-soft); border: 0; border-radius: 8px; padding: 10px; margin: 4px 0; color: var(--ink); }
.urgent-line span { display: block; font-size: 13px; color: var(--crimson); }
.inline { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline input { flex: 1 1 160px; }
.inline input.warn { border-color: #F2A03C; box-shadow: 0 0 0 2px #FDE68A; }
.ecr-card .ref { font-size: 17px; }
.restricted { background: var(--bg); border: 1px dashed var(--muted); padding: 8px; border-radius: 6px; color: var(--muted); }
.trail div { padding: 6px 0 6px 10px; border-left: 2px solid var(--line); margin: 6px 0; font-size: 14px; }
.desk-actions { display: grid; gap: 6px; margin-top: 8px; }

/* tasks and schedule */
.dayhead { margin: 16px 0 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text, var(--crimson)); }
.event-logo { border-radius: var(--radius); padding: 14px; margin: 0 0 12px; display: flex; justify-content: center; }
.event-logo img { max-height: 72px; max-width: 100%; object-fit: contain; display: block; }
.task { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius);
  padding: 10px; margin: 0 0 6px; }
.task.high { border-left-color: var(--crimson); }
.task.next { border-left-color: var(--sky); background: #F0F7FE; }
.task.key { border-left-color: #BD99D8; }
.task.done { opacity: .62; border-left-color: #D3EE5B; }
.task.done b { text-decoration: line-through; }
.task .time { min-width: 52px; font-weight: 700; }
.task .time small { display: block; font-weight: 400; color: var(--muted); }
.tick { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 8px; border: 2px solid #9CA3AF; background: #fff; font-size: 20px; color: #fff; }
.tick.on { background: var(--green); border-color: var(--green); }
.kvrow { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 6px 0; }
.kvrow b { font-size: 17px; }
.tbl tr.hl td { background: #F0F7FE; font-weight: 600; }

/* sign-out lines */
.card.so .row { cursor: pointer; }
.card.so .count { font-weight: 700; white-space: nowrap; }
.panel { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; display: grid; gap: 8px; }
.out-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: var(--bg); border-radius: 8px; padding: 8px; }
.out-line span { flex: 1 1 200px; }

/* ticks with a stamp (structures, accreditation, VAPs) */
.check-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; padding: 8px 0; color: var(--ink); min-height: 48px; }
.check-row.card { border: 1px solid var(--line); padding: 10px; }
.check-row small { display: block; color: var(--muted); font-size: 12px; }
.check-row span span { display: block; font-size: 14px; }
.box-tick { flex: 0 0 auto; width: 30px; height: 30px; border: 2px solid #9CA3AF; border-radius: 6px; display: grid; place-items: center; font-weight: 700; }
.box-tick.on { background: #D3EE5B; border-color: #A3BE2B; }
.media { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.media-img, .media-video { border: 0; padding: 0; background: var(--bg); border-radius: 6px; min-width: 72px; min-height: 72px; }
.thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; display: block; }
.thumb.broken { object-fit: contain; font-size: 10px; }
img.full, video.full { width: 100%; height: auto; border-radius: 8px; }
.check-block { border-top: 1px solid var(--line); padding: 8px 0; }

/* bag drop, hospitality, schools */
.count-in { max-width: 120px; font-size: 22px !important; text-align: center; font-weight: 700; }
.guest { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 0 0 6px; display: grid; gap: 6px; }
.guest.prem { background: #E6BE45; }
.guest.part { background: #F2A03C; }
.guest.done { background: #5CC97B; }
.guest .meta { color: inherit; opacity: .8; }
.guest .extra { border: 2px solid currentColor; padding: 1px 6px; font-weight: 700; }
.hbox { width: 100%; justify-content: flex-start; }
.counters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin: 8px 0; }
.counter { display: flex; align-items: center; gap: 6px; }
.counter span { flex: 1; font-size: 13px; }
.counter b { min-width: 28px; text-align: center; font-size: 18px; }
b.big { font-size: 22px; min-width: 64px; }
label.check { display: flex; gap: 8px; align-items: center; color: var(--ink); }
label.check input { width: 22px; height: 22px; }

/* the Code of Conduct */
.coc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; max-height: 50vh; overflow: auto; font-size: 14px; }
.coc h3 { font-size: 14px; }
canvas.sig { width: 100%; max-width: 640px; height: auto; aspect-ratio: 16 / 5; border: 1px dashed #9CA3AF; border-radius: 8px; background: #fff; touch-action: none; display: block; }
.sig-img { height: 48px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }

/* bottom sheet */
dialog.sheet { margin: auto auto 0; width: 100%; max-width: 640px; max-height: 92vh; border-radius: 16px 16px 0 0; padding: 0; }
dialog.sheet form { position: relative; padding: 18px 16px max(18px, env(safe-area-inset-bottom)); display: grid; gap: 10px; }
dialog.sheet label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
dialog.sheet .field { display: grid; gap: 6px; }
.sheet-x { position: absolute; right: 10px; top: 8px; border: 0; background: none; font-size: 28px; line-height: 1; padding: 6px 10px; }
@media (min-width: 700px) { dialog.sheet { margin: auto; border-radius: 16px; } }

/* PDF viewer, with its own zoom */
.viewer { position: fixed; inset: 0; z-index: 60; background: #111827; display: flex; flex-direction: column; }
.viewer-bar { display: flex; gap: 8px; align-items: center; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); background: var(--navy); color: #fff; }
.viewer-bar b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.viewer-bar .spacer { flex: 1; }
.viewer-bar .zoom { min-width: 44px; text-align: center; font-size: 14px; }
.viewer-pages { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 8px; display: grid; gap: 8px; justify-items: start; }
.viewer-pages canvas { background: #fff; display: block; }
body.noscroll { overflow: hidden; }

/* updates and pull-to-refresh */
.update-bar { position: sticky; top: var(--bar-h); z-index: 19; background: var(--sky); color: var(--navy); padding: 8px 12px; display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
body.pulling main.page::before { content: "Release to refresh"; display: block; text-align: center; color: var(--muted); font-size: 13px; padding: 6px; }

/* ══ the event theme, as Oxford 2026 (Benjie, 2 Nov): inside an event the screens take the event's brand.
   app.js applyBrand sets the colours from Settings → Events (background, accent, logo); the panels and fields
   are worked out from the background, as 2026 did. Ops Planning, Settings, Kit and Budgets stay Motiv. ══ */
@font-face { font-family: "Transducer"; src: url("/budgets/assets/fonts/Transducer-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Transducer"; src: url("/budgets/assets/fonts/Transducer-Medium.otf") format("opentype"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Transducer Black"; src: url("/budgets/assets/fonts/Transducer-Black.otf") format("opentype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Transducer Cond"; src: url("/budgets/assets/fonts/Transducer-Condensed-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }

body.event { background: var(--ev-bg); color: var(--ev-text); font-family: "Transducer", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 0; --ink: var(--ev-text); --muted: var(--ev-muted); --line: var(--ev-line); --bg: var(--ev-field); --card: var(--ev-panel); }
body.event input, body.event select, body.event textarea, body.event button { font-family: inherit; }

/* the bar: the event's background, the Motiv mark and the event's logo */
body.event .topbar { background: var(--ev-bar); color: var(--ev-text); border-bottom: 1px solid var(--ev-line); }
body.event .topbar .brand b { display: none; }
body.event .topbar .brand img { height: 26px; }
body.event .topbar .brand img.ev-logo { height: 34px; max-width: 120px; object-fit: contain; }
body.event .topbar select { min-width: 56px; background: var(--ev-field); color: var(--ev-text); border: 1px solid var(--ev-line-strong); border-radius: 0; }
body.event .topbar .navlink, body.event .topbar .menu-btn { color: var(--ev-text); border-color: var(--ev-line-strong); border-radius: 0;
  font-family: "Transducer Cond", sans-serif; text-transform: uppercase; letter-spacing: .12em; }
body.event .topbar .navlink.on { background: var(--accent); color: var(--accent-ink); }
body.light-ev .topbar .brand img:not(.ev-logo) { filter: invert(1); }

/* type: Transducer, with condensed capitals for labels (as 2026) */
body.event h1 { font-family: "Transducer Black", "Transducer", sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: .01em; font-size: 26px; line-height: 1.05; }
body.event h2, body.event h3, body.event .cap, body.event .dayhead, body.event .tile b, body.event .btn, body.event .chipbtn, body.event .seg button,
body.event .status, body.event .pill, body.event .tag, body.event .stat, body.event .count {
  font-family: "Transducer Cond", sans-serif; text-transform: uppercase; letter-spacing: .12em; font-weight: 500; }
body.event h2 { font-size: 15px; }
body.event h1.eyebrow { font-family: "Transducer Cond", sans-serif; font-weight: 500; font-size: 15px; letter-spacing: .16em; color: var(--accent-text);
  display: flex; align-items: center; gap: 14px; margin: 6px 0 10px; }
body.event h1.eyebrow::before { content: ""; width: 48px; height: 3px; background: var(--accent); flex: 0 0 auto; }
body.event .dayhead { color: var(--accent-text); }
body.event .sub, body.event .meta, body.event .muted, body.event .cap, body.event .empty-note { color: var(--ev-muted); }
body.event a { color: inherit; }

/* panels, fields and buttons */
body.event :where(.tile, .box, .card, .doc, .task, .stat, .channel, .coc, .urgent-line, .check-row.card, .menu-panel) {
  background: var(--ev-panel); color: var(--ev-text); border-color: var(--ev-line); border-radius: 0; }
body.event .tile { border-top: 3px solid var(--accent); border-left-width: 0; border-right-width: 0; border-bottom-width: 0; }
body.event .tile.admin { border-top-color: var(--ev-line-strong); }
body.event .tile span { color: var(--ev-muted); }
body.event .doc { border-left-color: var(--accent); }
body.event .stat { border-top-color: var(--accent); }
body.event .stat b { color: var(--ev-text); font-family: "Transducer Black", sans-serif; letter-spacing: 0; }
body.event .task.next { background: var(--ev-panel2); border-left-color: var(--accent); }
body.event .task.high { border-left-color: var(--accent); }
body.event .card.full, body.event .card.st.full { border-left-color: #D3EE5B; }
body.event .card.hl { box-shadow: 0 0 0 3px var(--accent); }
body.event .btn { background: transparent; color: var(--ev-text); border: 1px solid var(--ev-line-strong); border-radius: 0; min-height: 44px; }
body.event .btn.small { min-height: 36px; }
body.event .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
body.event .btn.danger { color: #FF8A9B; }
body.event .btn.on { background: #D3EE5B; color: #15151C; border-color: #D3EE5B; }
body.event .btn.link { border: 0; min-height: 0; text-transform: none; letter-spacing: 0; font-family: inherit; }
body.event .chipbtn, body.event .seg button { background: var(--ev-panel); color: var(--ev-text); border-color: var(--ev-line); border-radius: 0; }
body.event .chipbtn.on { background: var(--on, var(--accent)); border-color: var(--on, var(--accent)); color: var(--accent-ink); }
body.event .seg button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
body.event :is(.tab-body, .sheet, .toolbar) :is(input:not([type=checkbox]):not([type=radio]):not([type=color]), select, textarea) {
  background: var(--ev-field); color: var(--ev-text); border: 2px solid var(--ev-line-strong); border-radius: 0; }
body.event :is(input, textarea)::placeholder { color: var(--ev-muted); opacity: .8; }
body.event .tick, body.event .box-tick { background: transparent; border-color: var(--ev-line-strong); border-radius: 0; }
body.event .tick.on { background: #D3EE5B; border-color: #D3EE5B; color: #15151C; }
body.event .box-tick.on { color: #15151C; }
body.event .tbl th { color: var(--ev-muted); }
body.event .tbl tr.hl td { background: var(--ev-panel2); }
body.event .pill { border-radius: 0; color: #15151C; }
body.event .tag { border-radius: 0; border-color: var(--accent-text); color: var(--accent-text); }
body.event .tag.amber { border-color: #F2A03C; color: #F2A03C; }
body.event .tag.dark { background: #15151C; color: #E6BE45; }
body.event .guest { border-radius: 0; background: var(--ev-panel); border-color: var(--ev-line); color: var(--ev-text); }
body.event .guest.prem, body.event .guest.part, body.event .guest.done { color: #15151C; }
body.event .guest.prem .btn, body.event .guest.part .btn, body.event .guest.done .btn { color: #15151C; border-color: #15151C; }
body.event .restricted { background: var(--ev-field); }
body.event .media-img, body.event .media-video { background: var(--ev-field); color: var(--ev-text); border-radius: 0; }
body.event .channel { border-left-color: var(--accent); }
body.event .event-logo { background: transparent !important; padding: 6px 0 14px; justify-content: flex-start; }
body.event .event-logo img { max-height: 64px; }
body.event dialog.sheet { background: var(--ev-panel); color: var(--ev-text); border-radius: 0; }
body.event dialog.sheet label { color: var(--ev-muted); }
body.event .sheet-x { color: var(--ev-text); }
body.event .coc { background: var(--ev-panel); }
body.event canvas.sig { background: #fff; }
body.event .update-bar { border-radius: 0; }
body.event .banner { border-radius: 0; }
body.event .ecr-bar { border-radius: 0; }
body.event .call-ecr { border-radius: 0; }
body.event .stats.gold .stat { border-top-color: #E6BE45; }

/* ══ the event layout, as Oxford 2026: the event's name, a bar of tabs along the top, and Event info's
   sub-tabs down the left side (app.js tabBar / drawTab) ══ */
.tabbar { position: sticky; top: var(--bar-h); z-index: 18; background: var(--ev-bar, var(--navy)); color: var(--ev-text, #fff);
  border-bottom: 1px solid var(--ev-line, rgba(255,255,255,.14)); }
.tabbar .ev-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 10px 16px 4px; max-width: 1100px; margin: 0 auto; }
.tabbar .ev-head b { font-family: "Transducer Black", "Transducer", sans-serif; font-weight: 900; text-transform: uppercase; font-size: 18px; letter-spacing: .01em; }
.tabbar .ev-head span { font-family: "Transducer Cond", sans-serif; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--accent-text, var(--sky)); }
.tabbar .tabs { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; max-width: 1100px; margin: 0 auto; padding: 0 8px; }
.tabbar .tabs::-webkit-scrollbar { display: none; }
.tabbar .tabs a { flex: 0 0 auto; padding: 12px 12px 10px; text-decoration: none; color: var(--ev-muted, #D0CAC9); white-space: nowrap;
  font-family: "Transducer Cond", sans-serif; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; border-bottom: 3px solid transparent; }
.tabbar .tabs a.on { color: var(--ev-text, #fff); border-bottom-color: var(--accent, var(--crimson)); }
body.event .update-bar { top: calc(var(--bar-h) + 88px); }

.info { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: start; }
.info-nav { position: sticky; top: calc(var(--bar-h) + 98px); display: flex; flex-direction: column; border-left: 1px solid var(--ev-line, var(--line)); }
.info-nav a { padding: 11px 12px; text-decoration: none; color: var(--ev-muted, var(--muted)); border-left: 3px solid transparent; margin-left: -1px;
  font-family: "Transducer Cond", sans-serif; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; line-height: 1.25; }
.info-nav a.on { color: var(--ev-text, var(--ink)); border-left-color: var(--accent, var(--crimson)); background: var(--ev-panel, var(--card)); }
.info-body { min-width: 0; }
@media (max-width: 600px) {
  .info { grid-template-columns: 108px minmax(0, 1fr); gap: 10px; }
  .info-nav a { padding: 10px 8px; font-size: 11px; letter-spacing: .08em; overflow-wrap: anywhere; }
}

.call-card { display: grid; gap: 4px; padding: 16px; margin: 0 0 12px; text-decoration: none; background: var(--ev-panel, var(--card));
  border-top: 3px solid #F3294E; color: inherit; }
.call-card b { font-family: "Transducer Black", "Transducer", sans-serif; font-size: 28px; letter-spacing: .02em; }
.call-card .btn { justify-self: start; margin-top: 6px; background: #F3294E; border-color: #F3294E; color: #fff; }
.card.alert { border-left-width: 4px; border-left-color: var(--accent, var(--crimson)); }
.card.alert.lvl-Emergency { border-left-color: #F3294E; }
.card.alert.lvl-Emergency .pill { background: #F3294E; color: #fff; }
.card.alert.lvl-Info .pill { background: var(--sky); }
.channel.big b { font-size: 26px; font-family: "Transducer Black", "Transducer", sans-serif; }

@media (max-width: 440px) {     /* the bar fits a phone: Motiv mark, event logo, picker, Ops Planning, Menu */
  body.event .topbar { gap: 6px; padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
  body.event .topbar .brand { gap: 6px; }
  body.event .topbar .brand img { height: 18px; }
  body.event .topbar .brand img.ev-logo { height: 26px; max-width: 64px; }
  body.event .topbar .navlink { letter-spacing: .06em; font-size: 12px; padding: 6px 4px; }
  body.event .topbar .menu-btn { letter-spacing: .06em; padding: 4px 8px; }
  body.event .topbar .navlink.ops-btn { padding: 6px 7px; letter-spacing: .04em; }
}

/* ══ after signing in: the event tiles, as 2026's event selector (Motiv's dark theme; each tile in its event's colours) ══ */
.selector { display: grid; gap: 14px; padding-top: 12px; }
.selector .eyebrow-line { font-family: "Transducer Cond", sans-serif; text-transform: uppercase; letter-spacing: .16em; font-size: 13px;
  color: var(--accent, var(--crimson)); display: flex; align-items: center; gap: 14px; margin: 8px 0 0; }
.selector .eyebrow-line::before { content: ""; width: 48px; height: 3px; background: var(--accent, var(--crimson)); }
.select-title { font-family: "Transducer Black", "Transducer", sans-serif !important; font-weight: 900; text-transform: uppercase;
  font-size: clamp(36px, 9vw, 72px) !important; line-height: .92 !important; margin: 0; }
.ev-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 4px; margin-top: 10px; }
.ev-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 180px; padding: 20px; text-decoration: none;
  background: var(--t-bg); color: var(--t-ink); border-top: 4px solid var(--t-accent); }
.ev-tile:active, .ev-tile:hover { filter: brightness(1.12); }
.ev-tile-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ev-tile .cap { color: var(--t-ink); opacity: .75; }
.ev-tile-status { font-family: "Transducer Cond", sans-serif; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; white-space: nowrap;
  padding: 5px 9px; border: 1px solid var(--t-accent); color: var(--t-accent); }
.ev-tile-main { display: grid; gap: 10px; justify-items: start; }
.ev-tile-main img { max-height: 56px; max-width: 200px; object-fit: contain; display: block; }
.ev-tile-main img.ev-tile-logo { max-height: 84px; max-width: min(100%, 260px); }
.ev-tile-main b { font-family: "Transducer Black", "Transducer", sans-serif; font-weight: 900; font-size: 24px; line-height: .98; text-transform: uppercase; }
.ev-tile-main .sub { color: var(--t-ink); opacity: .75; margin: 0; }
body.event:not(.motiv-screen) #nav-events { display: inline-block; }
#nav-events { display: none; }

/* ══ Ops Planning home: big tiles in Motiv's brand colours (crimson, sky, green, violet on navy) ══ */
.ops-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 6px; margin: 10px 0 18px; }
.ops-tile { container-type: inline-size; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 240px;
  padding: 24px; text-decoration: none; background: var(--o-bg); color: var(--o-ink); }
.ops-tile img { position: absolute; top: 22px; left: 24px; height: 18px; width: auto; filter: brightness(0); opacity: .85; }
.ops-tile[style*="#FFFFFF"] img { filter: none; }
/* the title fits its tile at every width: sized to the tile (cqi), wrapping between words, never clipped (Benjie, 26 Nov) */
.ops-tile b { font-family: "Transducer Black", "Transducer", sans-serif; font-weight: 900; text-transform: uppercase; font-size: 30px;
  font-size: clamp(16px, 7.6cqi, 44px); line-height: .95; overflow-wrap: break-word; text-wrap: balance; max-width: 100%; }
body.event a.ops-tile { color: var(--o-ink); }      /* the tile's own text colour, not the page's */
body.event a.ev-tile { color: var(--t-ink); }
.ops-tile span { font-size: 15px; max-width: 30ch; }
.ops-tile .go { font-family: "Transducer Cond", sans-serif; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; margin-top: 6px; }
.ops-tile:hover, .ops-tile:active { filter: brightness(1.06); }
.ops-tile:hover .go { text-decoration: underline; }
/* a tile's page of cards (09, 21 Nov): each card topped with the tile's colour */
.selector .eyebrow-line a { color: inherit; text-decoration: none; }
.select-title.tile-title { font-size: clamp(22px, 7vw, 60px) !important; overflow-wrap: break-word; text-wrap: balance; }
.selector .eyebrow-line a:hover { text-decoration: underline; }
.ops-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; margin: 14px 0 18px; }
/* the cards: the page name only, in the tile's own colour and text colour, with a white edge down the left to set them
   apart from the tile (Benjie, 30 Nov). Staffing (white): navy text on white with a grey edge. */
.ops-card { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 18px 20px 16px; min-height: 110px;
  text-decoration: none; background: var(--o-bg); color: var(--o-ink); border-left: 8px solid var(--o-edge); box-shadow: 0 1px 0 rgba(0,0,0,.25); }
body.event a.ops-card { color: var(--o-ink); }
.ops-card b { font-family: "Transducer Black", "Transducer", sans-serif; font-weight: 900; text-transform: uppercase; font-size: 22px; line-height: 1;
  overflow-wrap: break-word; }
.ops-card .go { font-family: "Transducer Cond", sans-serif; text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; color: inherit; }
.ops-card:hover, .ops-card:active { filter: brightness(1.07); }
.ops-cards[data-tile="staff"] .ops-card:hover, .ops-cards[data-tile="staff"] .ops-card:active { filter: none; background: #F6F3F2; }
/* Supplier Admin in Ops Planning (29 Nov): the event dropdown, as the other Ops Planning pages */
.plan-ev { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; font-weight: 600; }
.plan-ev select { max-width: 100%; min-width: 0; }
@media (max-width: 600px) {     /* a phone: one compact row per card, the name and Open on one line */
  .ops-cards { gap: 8px; }
  .ops-card { flex-direction: row; align-items: center; min-height: 64px; padding: 14px 16px; }
  .ops-card b { font-size: 19px; min-width: 0; }
  .ops-card .go { flex: none; }
}
.ops-card:hover .go { text-decoration: underline; }
/* Requests for you (09 §1): the hire lists someone has been asked to fill in */
.reqs-you { display: grid; gap: 6px; margin: 0 0 18px; }
.req-you { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 12px 14px; background: #2B2D3A; color: #FFFFFF; text-decoration: none; border-left: 4px solid #D3EE5B; }
body.event a.req-you { color: #FFFFFF; }
.req-you span { opacity: .8; font-size: 14px; }
.req-you .pill { margin-left: auto; opacity: 1; font-size: 12px; font-weight: 700; padding: 3px 8px; background: #E8A317; color: #222430; }
.req-you .pill.done { background: #D3EE5B; }

/* the packing lists' category headings in the event tabs (Kit Lists, My Equipment), in Kit's section colours */
.tbl.kit-list tr.kit-sec td { color: #15151C; font-family: "Transducer Cond", sans-serif; text-transform: uppercase; letter-spacing: .1em;
  font-size: 12px; font-weight: 700; padding: 6px 8px; border-bottom: 0; }
.tbl.kit-list td.n { width: 52px; font-weight: 700; }

/* the equipment list itself on white (Benjie, 2 Nov), inside the event's themed panel */
body.event .tbl.kit-list { background: #FFFFFF; color: #15151C; }
body.event .tbl.kit-list td { border-bottom-color: #E5E7EB; padding: 9px 10px; }
body.event .tbl.kit-list small, body.event .tbl.kit-list .muted { color: #6B7280; }
body.event .tbl.kit-list .btn { color: #15151C; border-color: rgba(0, 0, 0, .35); }
body.event .tbl.kit-list .btn.on { background: #D3EE5B; border-color: #A3BE2B; color: #15151C; }
body.event .tbl.kit-list .tag { border-color: #C5172F; color: #C5172F; }

/* ── stage 3: the supplier's pages and the Supplier Tracker ── */
.hs-banner, .ind-banner { --hb-ink: #78350F; display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin: 0 0 12px; border-radius: var(--radius);
  text-decoration: none; background: var(--amber-soft); color: var(--hb-ink); }
.hs-banner .cap, .ind-banner .cap { font-weight: 700; letter-spacing: .08em; opacity: .85; color: inherit; }
.hs-banner b, .ind-banner b { flex: 1; font-size: 15px; }
.hs-banner .arrow, .ind-banner .arrow { font-size: 24px; line-height: 1; }
.hs-banner.st-needed, .hs-banner.st-action { background: var(--crimson-soft); --hb-ink: #7F1D1D; }
.hs-banner.st-submitted { background: #EFF6FF; --hb-ink: #1E3A8A; }
.hs-banner .hb-go { flex: none; font-weight: 700; font-size: 13px; padding: 6px 10px; border-radius: 999px; border: 1.5px solid currentColor; white-space: nowrap; }
.vap-locked { border-left: 4px solid var(--crimson); }
body.event :is(.hs-banner, .ind-banner), body.event :is(.hs-banner, .ind-banner) .cap { color: var(--hb-ink); }      /* the event's own text colour mustn't win */
.vap-card { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; padding: 14px; margin: 0 0 10px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--accent, var(--crimson)); }
.vap-no { display: flex; flex-direction: column; }
.vap-no b { font-size: 56px; line-height: 1; font-weight: 900; letter-spacing: .02em; }
.vap-what { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 180px; }
.vap-what b { font-size: 17px; overflow-wrap: anywhere; }
.vap-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.vap-actions .btn { flex: 1 1 120px; justify-content: center; }
.vap-guide p { margin: 0 0 8px; }
.vap-guide p:last-child { margin-bottom: 0; }
.hs-frame { display: block; width: 100%; min-height: 300px; height: 70vh; border: 0; background: #fff; border-radius: var(--radius); }
.sup-group { margin: 18px 0 8px; }
.sup-row { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.sup-row > span { display: block; }
.sup-top { display: flex !important; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sup-top b { overflow-wrap: anywhere; }
.sup-bits { display: flex !important; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 6px; font-size: 14px; }
.ind { display: inline-flex; align-items: center; gap: 8px; }
.ind .bar { display: inline-block; width: 70px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.ind .bar span { display: block; height: 100%; background: var(--green); }
.pill.cat-none { background: var(--crimson-soft); color: var(--crimson); }
.pill.cat-review { background: #EDE9FE; color: #5B21B6; }
.pill.cat-action { background: var(--amber-soft); color: var(--amber); }
.pill.cat-ok { background: var(--green-soft); color: var(--green); }
.pill.cat-na { background: var(--line); color: var(--muted); }
.chips select { min-height: 36px; max-width: 100%; }
body.event .vap-card { background: var(--ev-panel); border-color: var(--ev-line); border-top-color: var(--accent); }
body.event .ind .bar { background: var(--ev-line); }
.vap-fields { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin: 14px 0; min-width: 0; }
.vap-fields legend { font-weight: 700; padding: 0 4px; }
.check-row.ro { cursor: default; opacity: .85; }

/* ── stage 5: the site induction (the tab, and the worker page /induct/) ── */
.ind-banner { background: #EFF6FF; --hb-ink: #1E3A8A; }
.slides { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; }
.slide-stage { background: #fff; border: 1px solid var(--line); overflow: hidden; touch-action: pan-y; }
.slide-stage canvas { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.slide-progress { height: 4px; background: var(--line); }
.slide-progress span { display: block; height: 100%; background: var(--accent, var(--crimson)); transition: width .2s; }
.slide-bar { display: flex; align-items: center; gap: 10px; }
.slide-bar .slide-count { flex: 1; text-align: center; font-size: 14px; color: var(--muted); }
.slide-bar .btn { min-height: 48px; }
.declare { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; font-size: 16px; line-height: 1.45; }
.declare input { width: 24px; height: 24px; flex: 0 0 auto; margin-top: 2px; }
.row-input { display: flex; gap: 8px; margin: 0 0 10px; }
.row-input input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.check-ok, .check-no { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-left: 4px solid var(--green); background: var(--green-soft); color: #14532D; }
.check-no { border-left-color: var(--crimson); background: var(--crimson-soft); color: #7F1D1D; }
body.event .check-ok .muted, body.event .check-no span { color: inherit; }
.induct-own.done h2 { color: var(--green); }
.tbl.workers td { vertical-align: top; font-size: 14px; }
.tbl.workers code { white-space: nowrap; }
.induct-page main.page { max-width: 640px; }
.induct-page .eyebrow-line { margin: 4px 0; }
.induct-form label { display: block; margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.induct-form input { display: block; width: 100%; margin-top: 4px; padding: 10px; border: 1px solid #9CA3AF; border-radius: 8px; color: var(--ink); background: #fff; }
.induct-form input:disabled { background: var(--bg); color: var(--muted); }
.induct-done { text-align: center; }
.induct-done .code-big { font: 700 34px/1.1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; margin: 8px 0 12px; }
.induct-done .qr { width: 220px; max-width: 70vw; margin: 0 auto 12px; background: #fff; }
.induct-done .qr svg { display: block; width: 100%; height: auto; }

/* Key contacts, Key locations, Key event timings (as Oxford 2026: panel rows, the action button on the right) */
.key-list { display: flex; flex-direction: column; gap: 2px; }
.key-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 10px 10px 16px;
  background: var(--card); border: 1px solid var(--line); }
.key-row .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.key-row .grow b { font-weight: 600; }
.key-row .grow span, .key-row .grow a { font-size: 13px; }
.key-row .grow a { text-decoration: none; }
.key-btn { display: flex; align-items: center; justify-content: center; min-width: 96px; min-height: 44px; padding: 0 14px;
  text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.key-row.time { grid-template-columns: 64px minmax(0, 1fr); }
.key-time { font-variant-numeric: tabular-nums; font-size: 16px; color: var(--accent, var(--crimson)); }
.key-what { font-size: 15px !important; }
.key-day { margin: 18px 0 6px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent, var(--crimson)); }
.key-list > .key-day:first-child { margin-top: 0; }

/* ── notifications (stage 7): the bell in the header, its list, and the one-off prompt ── */
.topbar .bell-btn { position: relative; background: none; border: 1px solid #4B5563; color: inherit; border-radius: 8px; min-height: 36px;
  min-width: 40px; padding: 4px 8px; display: inline-flex; align-items: center; justify-content: center; }
.topbar .bell-btn[hidden] { display: none; }
body.event .topbar .bell-btn { border-color: var(--ev-line-strong); border-radius: 0; }
.bell-n { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--accent, var(--crimson)); color: var(--accent-ink, #fff); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.bell-list { display: grid; gap: 8px; margin-top: 12px; }
.bell-item { display: grid; gap: 2px; text-align: left; width: 100%; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 12px; color: inherit; font: inherit; cursor: pointer; }
.bell-item.new { border-left: 4px solid var(--accent, var(--crimson)); }
.bell-item .cap { font-size: 12px; color: var(--muted); }
.bell-item span:not(.cap) { font-size: 14px; overflow-wrap: anywhere; }
.push-box { border-radius: var(--radius); background: #EFF6FF; color: #1E3A8A; padding: 10px 12px; font-size: 14px; }
.push-box p { margin: 0 0 6px; }
.push-box p:last-child { margin-bottom: 0; }
.push-box.st-on { background: #ECFDF5; color: #065F46; }
.push-ask { background: #EFF6FF; color: #1E3A8A; }
.push-ask-btns { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
body.event .push-ask .btn.link, .push-box .btn.link { color: #1E3A8A; }
@media (max-width: 420px) { .topbar .bell-btn { min-width: 36px; padding: 4px 6px; } }

/* role briefs (Word documents laid out by the app, in the event's brand) */
.brief h2 { margin-bottom: 10px; }
.brief .brief-h1 { font-family: "Transducer Cond", sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: 15px;
  color: var(--accent-text, var(--ink)); margin: 18px 0 6px; padding-bottom: 4px; border-bottom: 2px solid var(--accent, var(--crimson)); }
.brief .brief-h2, .brief .brief-h3 { font-size: 15px; margin: 14px 0 4px; }
.brief p { margin: 0 0 8px; line-height: 1.5; }
.brief ul, .brief ol { margin: 0 0 10px; padding-left: 22px; }
.brief li { margin: 3px 0; line-height: 1.45; }
.brief .tbl { margin: 4px 0 12px; }
.brief .brief-meta { margin-top: 12px; font-size: 12px; }
/* Notes for 2027 (09 §4): labelled section, title and detail */
.box .lbl { display: grid; gap: 4px; font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.box .lbl select, .box .lbl input, .box .lbl textarea { width: 100%; font-weight: 400; }
.err-text { color: var(--crimson); font-weight: 600; margin: 0 0 8px; }

/* Supplier Admin: suppliers in the app (29-30 Nov) */
.sup-tools .vap-actions { flex-wrap: wrap; }
.sup-line { display: flex; gap: 8px; align-items: stretch; }
.sup-line .sup-row { flex: 1 1 auto; min-width: 0; }
.sup-pick { display: flex; align-items: center; padding: 0 4px; }
.sup-pick input { width: 20px; height: 20px; }
.sup-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sup-fold { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 4px 0; text-align: left; }
.sup-fold .caret { display: inline-block; width: 1em; color: var(--muted); }
.sup-removed { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.sup-f { display: block; margin: 0 0 10px; }
.sup-f > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.sup-f input:not([type=checkbox]):not([type=radio]), .sup-f select, .sup-f textarea { width: 100%; box-sizing: border-box; }
.sup-checks { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 6px; }
.sup-checks.tall { flex-direction: column; max-height: 50vh; overflow-y: auto; }
.sup-checks label.check, .sup-match label.check { display: flex; gap: 6px; align-items: center; font-weight: 400; font-size: 14px; margin: 0; }
.sup-match { border: 1px solid #F2A03C; background: #FFF8EC; border-radius: 8px; padding: 10px; margin: 0 0 10px; display: grid; gap: 6px; font-size: 14px; }
.sup-gline { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.sup-gline > input { flex: 1 1 180px; min-width: 0; }
.sup-gline label.check { display: flex; gap: 4px; align-items: center; margin: 0; font-size: 13px; }
.sup-preview tr.st-problem td { background: #FDF1F0; }
.sup-preview tr.st-onEvent td { color: var(--muted); }
@media (max-width: 520px) { .sup-edit .two, .sup-form .two { grid-template-columns: 1fr; } }
.sup-send ul { margin: 4px 0 10px; padding-left: 20px; max-height: 40vh; overflow-y: auto; }

/* ══ the event pages tidied (Benjie, 1 Dec): like Ops Planning and Settings, in each event's own colours. app.js
   applyBrand (pageTheme) sets the colours, each checked for WCAG AA: the page a light tint of the brand colour, white
   panels, and the darker brand colour (--ev-strong) for the header, tab bar, panel edges and section titles. One set of
   text sizes, spacing and table styles on every event tab. The tile screen and Ops Planning (body.motiv-screen) are unchanged. ══ */
body.ev-page { background: var(--ev-bg); color: var(--ev-text); }
body.ev-page .topbar { background: var(--ev-bar); color: var(--ev-bar-ink); border-bottom: 0; }
body.ev-page .topbar .navlink, body.ev-page .topbar .menu-btn, body.ev-page .topbar .bell-btn { color: var(--ev-bar-ink); border-color: var(--ev-bar-muted); }
body.ev-page .topbar .menu-btn { white-space: nowrap; }
body.ev-page .tabbar { background: var(--ev-bar); color: var(--ev-bar-ink); border-bottom: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
body.ev-page .tabbar .ev-head span { color: var(--ev-bar-accent); }
body.ev-page .tabbar .tabs a { color: var(--ev-bar-muted); }
body.ev-page .tabbar .tabs a:hover { color: var(--ev-bar-ink); }
body.ev-page .tabbar .tabs a.on { color: var(--ev-bar-ink); border-bottom-color: var(--ev-bar-accent); }
body.ev-page main.page { padding-top: 20px; padding-bottom: 32px; }

/* type: the tab's title, section titles, then body text */
body.ev-page h1.eyebrow { display: block; font-family: "Transducer Black", "Transducer", sans-serif; font-weight: 900; font-size: 26px; line-height: 1.05;
  letter-spacing: .01em; color: var(--ev-strong); margin: 0 0 6px; }
body.ev-page h1.eyebrow::before { content: none; }
body.ev-page h1.eyebrow, body.ev-page h2 { overflow-wrap: break-word; }     /* a long one-word title never pushes the page sideways */
body.ev-page .status { font-family: inherit; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ev-muted); margin: 0 0 16px; }
body.ev-page .status .btn.link { color: var(--ev-strong); font-size: 13px; }
body.ev-page h2 { font-family: "Transducer Cond", sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; font-size: 15px;
  line-height: 1.25; color: var(--ev-strong); margin: 22px 0 10px; }
body.ev-page :is(.box, .card, .tab-body) > h2:first-child, body.ev-page .box .head h2 { margin-top: 0; }
body.ev-page h3, body.ev-page .dayhead, body.ev-page .key-day { font-family: "Transducer Cond", sans-serif; font-weight: 500; text-transform: uppercase;
  letter-spacing: .1em; font-size: 13px; color: var(--ev-strong); margin: 18px 0 8px; }
body.ev-page .tab-body { font-size: 15px; line-height: 1.45; }
body.ev-page .sub { font-size: 14px; color: var(--ev-muted); margin: 0 0 14px; }
body.ev-page .meta { font-size: 13px; }
body.ev-page .cap { font-size: 11px; letter-spacing: .1em; }
body.ev-page .empty-note { color: var(--ev-muted); font-size: 14px; }

/* panels: white on the tint, a soft brand edge, the strong brand colour on top */
body.ev-page :is(.box, .card, .task, .doc, .stat, .channel, .coc, .key-row, .vap-card, .guest, .call-card, .check-row.card) {
  background: #FFFFFF; color: var(--ev-text); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
body.ev-page .box { border: 1px solid var(--ev-line); border-top: 3px solid var(--ev-strong); padding: 16px; margin: 0 0 16px; }
body.ev-page .card, body.ev-page .task { padding: 12px 14px; margin: 0 0 8px; }
body.ev-page .doc:not(.missing), body.ev-page .channel, body.ev-page .task.next { border-left-color: var(--ev-strong); }
body.ev-page .task.next { background: var(--ev-panel2); }
body.ev-page .task.high { border-left-color: var(--crimson); }
body.ev-page .stat { border-top-color: var(--ev-strong); padding: 12px; }
body.ev-page .stat.red { border-top-color: #F3294E; }
body.ev-page .stat.amber { border-top-color: #F2A03C; }
body.ev-page .stat.purple { border-top-color: #BD99D8; }
body.ev-page .stats.gold .stat { border-top-color: #E6BE45; }
body.ev-page .stat b { color: var(--ev-strong); font-size: 26px; }
body.ev-page .tile { border-top-color: var(--ev-strong); }
body.ev-page .vap-card { border-color: var(--ev-line); border-top-color: var(--ev-strong); }
body.ev-page .card.hl { box-shadow: 0 0 0 3px var(--ev-line-strong); }
body.ev-page .key-list { gap: 4px; }
body.ev-page .key-row { border-color: var(--ev-line); border-left: 3px solid var(--ev-strong); }
body.ev-page .key-time, body.ev-page .key-day { color: var(--ev-strong); }
body.ev-page .brief .brief-h1 { color: var(--ev-strong); border-bottom-color: var(--ev-strong); }
body.ev-page .slide-progress span { background: var(--ev-strong); }
body.ev-page .call-card { border: 1px solid var(--ev-line); border-top: 3px solid #F3294E; }
body.ev-page :is(.restricted, .out-line, .media-img, .media-video) { background: var(--ev-panel2); }
body.ev-page dialog.sheet { background: #FFFFFF; color: var(--ev-text); }
.banner.info { display: block; }      /* not the Event info layout (.info is a grid): the text ran in two columns */
body.ev-page :is(.banner, .hs-banner, .ind-banner, .push-ask) { border-left: 4px solid currentColor; }

/* Event info: the sub-tabs down the left */
body.ev-page .info-nav { border-left-color: var(--ev-line); }
body.ev-page .info-nav a { color: var(--ev-muted); }
body.ev-page .info-nav a:hover { color: var(--ev-strong); }
body.ev-page .info-nav a.on { color: var(--ev-strong); border-left-color: var(--ev-strong); background: #FFFFFF; }

/* buttons, chips and fields */
body.ev-page .btn { background: #FFFFFF; color: var(--ev-strong); border: 1px solid var(--ev-line-strong); font-size: 14px; letter-spacing: .08em;
  min-height: 42px; padding: 8px 14px; }
body.ev-page .btn.small { min-height: 34px; padding: 4px 10px; font-size: 13px; }
body.ev-page .btn.big { min-height: 52px; font-size: 16px; }
body.ev-page .btn.primary { background: var(--ev-strong); color: var(--ev-strong-ink); border-color: var(--ev-strong); }
body.ev-page .btn.danger { color: var(--crimson); }
body.ev-page .btn.link { background: none; border: 0; min-height: 0; padding: 4px 0; color: var(--ev-strong); }
body.ev-page .btn:hover:not(:disabled) { border-color: var(--ev-strong); }
body.ev-page .chipbtn, body.ev-page .seg button { background: #FFFFFF; color: var(--ev-text); border: 1px solid var(--ev-line-strong); font-size: 13px; letter-spacing: .08em; }
body.ev-page .chipbtn.on, body.ev-page .seg button.on { background: var(--on, var(--ev-strong)); border-color: var(--on, var(--ev-strong)); color: var(--ev-strong-ink); }
body.ev-page .chipbtn.on[style*="--on"] { color: #15151C; }       /* the ECR priority colours are all light enough for dark text */
body.ev-page :is(.tab-body, .sheet, .toolbar) :is(input:not([type=checkbox]):not([type=radio]):not([type=color]), select, textarea) {
  background: #FFFFFF; color: var(--ev-text); border: 1px solid var(--ev-line-strong); }
body.ev-page :is(input, select, textarea, button, a):focus-visible { outline: 2px solid var(--ev-strong); outline-offset: 1px; }
body.ev-page .tick, body.ev-page .box-tick { background: #FFFFFF; border-color: var(--ev-line-strong); }
body.ev-page .tag { border-color: var(--ev-strong); color: var(--ev-strong); }
body.ev-page .tag.amber { border-color: var(--amber); color: var(--amber); }
body.ev-page .tag.sky { border-color: #1E5A94; color: #1E5A94; }

/* tables: one style on every tab */
body.ev-page .tbl { font-size: 14px; background: #FFFFFF; }
body.ev-page .tbl th { font-family: "Transducer Cond", sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; font-size: 12px;
  color: var(--ev-strong); background: var(--ev-panel2); border-bottom: 2px solid var(--ev-strong); padding: 8px 10px; }
body.ev-page .tbl td { padding: 8px 10px; border-bottom: 1px solid var(--ev-line); }
body.ev-page .tbl tr.hl td { background: var(--ev-panel2); }

@media (max-width: 600px) {
  body.ev-page main.page { padding: 14px 12px 28px; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  body.ev-page h1.eyebrow { font-size: 22px; }
  body.ev-page .info-body h1.eyebrow { font-size: 18px; }      /* beside the sub-tabs: "Accommodation" fits on one line */
  body.ev-page .box { padding: 14px 12px; }
}
@media (max-width: 440px) {     /* Core Team's header (Events, Ops Planning, Settings, the bell, Sign out) fits a phone */
  body.ev-page .topbar { gap: 4px; }
  body.ev-page .topbar .brand img.ev-logo { max-width: 52px; }
  body.ev-page .topbar .menu-btn { padding: 4px 6px; }
  body.ev-page .topbar .bell-btn { min-width: 34px; padding: 4px; }
}
