/* NSoE site checklist, assessor app: the house-style app layer on top of base.css (tokens and
   components) and fonts.css (self-hosted IBM Plex). Every colour here is a base.css token,
   so light and dark mode both come from base.css. */

:root {
  /* The client's marks sit on a white tile in both light and dark mode. */
  --logo-tile: #ffffff;
  /* Logo size scales with the screen: 28px on a phone up to 52px on a large desktop. The header grows with it. */
  --logo: clamp(28px, 2.4vw + 18px, 52px);
  --nav-h: max(56px, calc(var(--logo) + 24px));
  /* Form control edges: darker than --line so text fields and option cards meet 3:1 non-text contrast. */
  --ctl-line: #8c8c94;
}
/* base.css gives --muted no dark value; lift it so grey status words stay readable (AA) in dark mode. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --muted: #a4a4ad; --ctl-line: #8c8c94; }
}
:root[data-theme="dark"] { --muted: #a4a4ad; --ctl-line: #8c8c94; }
/* Native parts (date picker, scrollbars) follow the chosen theme, not only the phone's setting. */
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }

html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; overflow-x: hidden; }
button { font-family: inherit; -webkit-tap-highlight-color: transparent; }
a { -webkit-tap-highlight-color: transparent; }
img { display: block; }
[hidden] { display: none !important; }
#app:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Status indicators may wrap onto two lines; keep the icon on the first. */
.status { align-items: flex-start; }
.status > .i { margin-top: 2px; }

@keyframes tickPop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
.tick { animation: tickPop .4s cubic-bezier(.3, 1.6, .5, 1) both; }
.i.spin, .net.is-sending .i { animation: spin 1s linear infinite; }
@media (prefers-reduced-motion: reduce) { .tick, .i.spin, .net.is-sending .i { animation: none; } }

/* ---------- Top navigation ---------- */
.topnav { height: var(--nav-h); gap: 10px; padding: 0 16px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); z-index: 30; }
.topnav .brand { flex: 0 1 auto; min-width: 0; gap: 10px; }
/* Brand centred: true page centre on wide screens; below that, centred in the room left of the controls */
.topnav .brand { flex: 1 1 auto; justify-content: center; }
.topnav > .spacer { display: none; }
.topnav .brand-text { align-items: center; text-align: center; }
@media (min-width: 1200px) {
  .topnav .brand { position: absolute; left: 50%; transform: translateX(-50%); flex: none; max-width: calc(100% - 560px); }
  .topnav > .spacer { display: block; }
}
.logo-tile { flex: none; display: flex; align-items: center; gap: calc(var(--logo) / 8); padding: 3px calc(var(--logo) / 8); background: var(--logo-tile); border: 1px solid var(--line-soft); border-radius: 8px; }
.logo-tile img { width: var(--logo); height: calc(var(--logo) * 1.03); object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-size: 15px; line-height: 20px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-sub { font-size: 12px; line-height: 16px; font-weight: 400; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.net { flex: none; white-space: nowrap; font-size: 13px; font-weight: 600; }
.hdr-btn { flex: none; }
.hdr-btn[aria-current="page"] { border-color: var(--link); color: var(--link); background: var(--selected-bg); }
#theme { flex: none; }

.storage-warn { max-width: 1240px; margin: 0 auto; padding: 12px 16px 0; }

/* ---------- Page frame ---------- */
.view { max-width: 1240px; margin: 0 auto; padding: 24px 16px 48px; display: flex; flex-direction: column; gap: 20px; }
.view.is-narrow { max-width: 840px; }
.view.is-mid { max-width: 1080px; }
.view.is-receipt { max-width: 600px; padding-top: 32px; }
.view .page-head { margin: 0; }
.title-block { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.title-block .eyebrow { margin-bottom: 0; }
.page-kicker { font-weight: 600; color: var(--ink-2); overflow-wrap: anywhere; }
.lead { margin: 0; font-size: 16px; line-height: 24px; color: var(--ink-2); max-width: 640px; }
.view > .alert { max-width: 840px; }
.alert > div { min-width: 0; }
.foot { max-width: 1240px; margin: 0 auto; padding: 8px 16px 32px; text-align: center; font-size: 12px; line-height: 18px; color: var(--ink-3); }

/* ---------- Home ---------- */
.guide-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-weight: 600; }
.me-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; color: var(--ink-2); }
.me-line .i { color: var(--ink-3); }
.me-line b { color: var(--ink); }
.me-page .fgrid { gap: 16px; }
.list-head { margin-top: 4px; }
.schools { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.school .card-head { padding-bottom: 4px; }
.school-names { min-width: 0; }
.school-name { font-size: 16px; line-height: 22px; overflow-wrap: anywhere; }
.school-body { display: flex; flex-direction: column; gap: 10px; }
.school-prog { display: flex; align-items: center; gap: 10px; }
.school-prog .progress { flex: 1; width: auto; margin: 0; }
.school-prog .small { white-space: nowrap; }
.school-meta { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-2); overflow-wrap: anywhere; }
.school-foot { display: flex; justify-content: flex-end; padding: 4px 20px 20px; }

/* ---------- Guidance ---------- */
.guide-secs { display: grid; gap: 16px; }
.guide-sec ul, .guide-sec ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 22px; }
.guide-sec .summary { padding-bottom: 20px; }

/* ---------- Form: layout ---------- */
.fill { max-width: 720px; margin: 0 auto; padding: 8px 16px 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.is-wide .fill { max-width: 1240px; grid-template-columns: 248px minmax(0, 1fr); gap: 32px; padding: 24px 24px 0; transition: grid-template-columns .25s ease; }
.is-wide .fill.is-collapsed { grid-template-columns: 56px minmax(0, 1fr); }
.form-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* Wide layout: sticky steps list on the left */
.side { position: sticky; top: calc(var(--nav-h) + 16px); align-self: start; display: flex; flex-direction: column; min-width: 0; max-height: calc(100vh - var(--nav-h) - 32px); overflow-y: auto; overflow-x: hidden; }
.side-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding-bottom: 12px; }
.side-school { display: flex; flex-direction: column; min-width: 0; }
.side-name { font-size: 16px; line-height: 22px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-prov { font-size: 12px; line-height: 16px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-toggle { flex: none; border: 1px solid var(--line); }
.side-head { font-size: 12px; line-height: 16px; color: var(--ink-3); padding-bottom: 8px; white-space: nowrap; }
.wsteps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.wsteps li + li { border-top: 1px solid var(--line-soft); }
.side-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 8px 8px 9px; border: 0; border-left: 3px solid transparent; background: none; color: var(--ink-2); text-align: left; cursor: pointer; }
.side-item:hover { color: var(--link); background: var(--bg-subtle); }
.side-item.is-active { border-left-color: var(--link); color: var(--link); background: var(--selected-bg); }
.side-ico { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; border: 1px solid var(--line); color: var(--ink-2); background: var(--surface); }
.side-ico.is-part { border-color: var(--warn); color: var(--warn); background: var(--warn-bg); }
.side-ico.is-done { border-color: var(--ok); background: var(--ok); color: var(--bg); }
.side-ico .i { width: 13px; height: 13px; stroke-width: 2.2; }
.side-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.side-text small { font-size: 11px; line-height: 14px; color: var(--ink-3); }
.side-title { font-size: 14px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-item.is-active .side-title { font-weight: 600; }
.side-count { flex: none; font: 12px var(--mono); color: var(--ink-3); }
.side-review { margin-top: 16px; justify-content: center; }
.side-saved { padding-top: 8px; font-size: 12px; line-height: 16px; color: var(--ink-3); text-align: center; }
.is-collapsed .side-top { justify-content: center; }
.is-collapsed .side-item { justify-content: center; padding: 8px 0; }
.is-collapsed .side-review { margin: 16px auto 0; }

/* Narrow layout: compact step bar, one section per screen, sticky actions */
.stepbar { max-width: 720px; margin: 0 auto; padding: 16px 16px 0; display: flex; flex-direction: column; gap: 2px; }
.stepbar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.stepbar-n { font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.stepbar-saved { text-align: right; }
.step-title { font-size: 24px; line-height: 30px; }
.dots { display: flex; gap: 0; margin: 2px -2px 0; }
.dot-wrap { flex: 1; display: flex; min-width: 0; }
.dot-btn { flex: 1; height: 32px; padding: 0 2px; border: 0; background: none; display: flex; align-items: center; cursor: pointer; }
.dot { display: block; width: 100%; height: 6px; border-radius: 3px; background: var(--line-soft); transition: background .25s; }
.dot.is-part { background: color-mix(in srgb, var(--ok-bar) 40%, var(--line-soft)); }
.dot.is-done { background: var(--ok-bar); }
.dot.is-cur { outline: 2px solid var(--link); outline-offset: 2px; }
.navbar { position: sticky; bottom: 0; z-index: 20; background: var(--bg); border-top: 1px solid var(--line-soft); padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.navbar-in { max-width: 688px; margin: 0 auto; display: flex; gap: 8px; }
.navbar-back { flex: none; }
.navbar-next { flex: 1; min-width: 0; height: auto; min-height: 32px; justify-content: center; white-space: normal; padding-top: 4px; padding-bottom: 4px; }
.navbar-next span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; text-align: center; }

/* ---------- Form: section cards ---------- */
.sec { scroll-margin-top: calc(var(--nav-h) + 16px); }
.sec .card-head { padding: 20px 24px 4px; }
.sec .card-body { padding: 16px 24px 24px; }
.sec-head { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sec-step { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.sec-intro { margin: 4px 0 0; color: var(--ink-2); max-width: 680px; }
.sec .card-body > .sec-intro { margin: 0 0 16px; }
.fgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px 16px; }
.sec-end-wrap:empty { display: none; }
.sec-end { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 24px; border-top: 1px solid var(--line-soft); }
.sec-end-text { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.sec-end-sub { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.wide-foot { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 16px 24px; margin-bottom: 48px; }
#wide-note { flex: 1; min-width: 240px; }

/* ---------- Form: fields ---------- */
.q { min-width: 0; gap: 6px; scroll-margin-top: 140px; }
.flabel-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
.flabel { font-weight: 600; line-height: 20px; overflow-wrap: anywhere; }
.q .error { align-items: flex-start; font-size: 13px; line-height: 18px; }
.q .error .i { margin-top: 1px; }
.q .error:empty { display: none; }
/* Mandatory question left blank: red left border and a sentence on how to fix it */
.q.invalid { border-left: 4px solid var(--err); padding-left: 8px; margin-left: -12px; }
.q.invalid .inp, .q.invalid .counter-ctl, .q.invalid .photos { border-color: var(--err); }
/* The question already carries the red left bar; keep the input's own edge 1px (base.css widens it for .f.invalid). */
.q.invalid .inp { border-left-width: 1px; }
.inp[readonly] { background: var(--bg-subtle); color: var(--ink-2); cursor: default; }

/* Numbered node per question (wide layout): blue while active, green tick once answered */
.node { position: relative; flex: none; width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); display: grid; place-items: center; font: 600 11px var(--font); cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s; }
.node::after { content: ''; position: absolute; inset: -11px; }
.node .i { width: 13px; height: 13px; stroke-width: 2.2; }
.node.is-done { background: var(--ok); border-color: var(--ok); color: var(--bg); }
.node.is-active { background: var(--link); border-color: var(--link); color: var(--bg); box-shadow: 0 0 0 3px var(--selected-bg); }

/* Text inputs and text areas (base .input sizes, with the app's own class kept for the script) */
.inp { width: 100%; height: 32px; margin: 0; padding: 0 10px; border: 1px solid var(--ctl-line); border-radius: var(--radius-ctl); background: var(--surface); color: var(--ink); font: inherit; -webkit-appearance: none; appearance: none; }
textarea.inp { display: block; height: auto; min-height: 72px; padding: 6px 10px; line-height: 20px; resize: vertical; }
input[type=date].inp { display: block; min-width: 0; }
.inp::placeholder { color: var(--ink-3); font-style: italic; opacity: 1; }
.inp:focus { outline: 2px solid var(--focus); outline-offset: -1px; border-color: var(--focus); }

/* Choice and multi: radio or checkbox cards in an inline grid */
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.opt-card { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--ctl-line); border-radius: var(--radius-ctl); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.opt-card:hover { border-color: var(--ink-3); background: var(--bg-subtle); }
.opt-card[aria-checked="true"] { border-color: var(--link); background: var(--selected-bg); box-shadow: inset 0 0 0 1px var(--link); }
.opt-mark { flex: none; width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid var(--ink-3); background: var(--surface); color: var(--bg); }
.is-radio .opt-mark { border-radius: 50%; }
.is-check .opt-mark { border-radius: 3px; }
.opt-mark .i { width: 12px; height: 12px; stroke-width: 2.4; vertical-align: 0; opacity: 0; }
.is-radio[aria-checked="true"] .opt-mark { border: 5px solid var(--link); }
.is-check[aria-checked="true"] .opt-mark { border-color: var(--link); background: var(--link); }
.is-check[aria-checked="true"] .opt-mark .i { opacity: 1; }
.opt-text { min-width: 0; overflow-wrap: anywhere; }

/* Counter */
.counter-ctl { display: flex; align-items: center; gap: 4px; height: 32px; max-width: 220px; padding: 0 2px; border: 1px solid var(--ctl-line); border-radius: var(--radius-ctl); background: var(--surface); }
.counter-btn { position: relative; flex: none; width: 36px; height: 26px; padding: 0; border: 0; border-radius: 4px; background: var(--bg-subtle); color: var(--ink); font: 500 18px/1 var(--font); display: grid; place-items: center; cursor: pointer; }
.counter-btn:hover { background: var(--line-soft); }
.counter-val { flex: 1; min-width: 0; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.counter-val.is-empty { color: var(--ink-3); }

/* Distance with the Steps counter */
.dist { display: flex; gap: 8px; }
.dist-box { flex: 1; min-width: 0; position: relative; }
.dist-box .inp { padding-right: 30px; }
.dist-unit { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.steps-btn { flex: none; }
.steps-btn[aria-expanded="true"] { border-color: var(--link); color: var(--link); background: var(--selected-bg); }
.stepper { margin-top: 4px; padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line-soft); border-radius: var(--radius-card); background: var(--bg-subtle); }
.stepper-top, .stepper-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stepper-row { display: flex; align-items: center; gap: 12px; }
.stepper-dec, .stepper-inc { flex: none; padding: 0; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--surface); cursor: pointer; font-family: var(--font); }
.stepper-dec { width: 44px; height: 44px; border: 1px solid var(--line); font-size: 22px; }
.stepper-inc { width: 64px; height: 64px; border: 2px solid var(--ink); font-size: 30px; font-weight: 500; }
.stepper-dec:hover, .stepper-inc:hover { background: var(--bg-subtle); }
.stepper-num { flex: 1; display: flex; flex-direction: column; align-items: center; }
.stepper-num b { font-size: 32px; line-height: 36px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper-num span { font-size: 12px; color: var(--ink-3); }

/* Photos: dropzone with thumbnails */
.photos { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px dashed var(--ctl-line); border-radius: var(--radius-ctl); }
.ph-tiles { display: flex; flex-wrap: wrap; gap: 12px; }
.ph { width: 104px; display: flex; flex-direction: column; gap: 4px; }
.ph-img { position: relative; width: 104px; height: 104px; overflow: hidden; border: 1px solid var(--line-soft); border-radius: var(--radius-ctl); background: var(--bg-subtle); }
.ph-img img { width: 100%; height: 100%; object-fit: cover; }
.ph-del { position: absolute; top: 0; right: 0; width: 44px; height: 44px; padding: 4px; border: 0; background: none; display: flex; align-items: flex-start; justify-content: flex-end; cursor: pointer; }
.ph-del span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); }
.ph-del .i { vertical-align: 0; }
.ph-name { font: 11px var(--mono); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ph-add { position: relative; }
.ph-add input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ph-add:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.ph-add.is-busy { cursor: default; color: var(--ink-2); }
.ph-note { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.loc { display: flex; flex-direction: column; gap: 12px; }
.loc-val { display: flex; flex-direction: column; gap: 2px; }

/* ---------- Review ---------- */
.rsecs { display: flex; flex-direction: column; gap: 16px; }
.rsec-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rsec-title .status { margin-top: 4px; }
.rkv { padding-top: 12px; }
.pre { white-space: pre-line; }
.missing { padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.missing .status span { text-decoration: underline; text-underline-offset: 3px; }
.todo-list { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 2px; }
.todo-go { min-height: 28px; padding: 2px 0; border: 0; background: none; font: inherit; text-align: left; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-3); cursor: pointer; }
.todo-go:hover { color: var(--link); text-decoration-color: currentColor; }
.send-body { display: flex; flex-direction: column; gap: 16px; padding-bottom: 20px; }

/* ---------- Sent, waiting, failed: receipt ---------- */
.receipt-body { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.sent-text { display: flex; flex-direction: column; gap: 8px; }
.sent-title { font-size: 24px; line-height: 30px; }
.sent-body { margin: 0; color: var(--ink-2); }
.summary .ref { font-size: 15px; font-weight: 600; }
.receipt .form-actions { margin-top: 4px; }

/* ---------- Phones and touch screens: 44 px tap targets, 16 px inputs so iOS does not zoom ---------- */
@media (max-width: 720px), (pointer: coarse) {
  .btn { height: 44px; padding: 0 16px; font-size: 15px; }
  .btn.icon, .icon-btn { width: 44px; height: 44px; }
  .navbar-next { min-height: 44px; }
  .inp, .q .inp { height: 44px; padding: 0 12px; font-size: 16px; }
  .topnav .brand { min-height: 44px; }
  textarea.inp, .q textarea.inp { height: auto; padding: 10px 12px; line-height: 22px; }
  .opt-card { min-height: 44px; }
  .counter-ctl { height: 44px; }
  .counter-ctl { height: auto; min-height: 48px; padding: 1px; }
  .counter-btn { width: 44px; height: 44px; }
  .node::after { inset: -12px; }
  .todo-go { min-height: 44px; }
  .missing { min-height: 44px; }
  .guide-link { min-height: 44px; }
  .dot-btn { height: 44px; margin: -6px 0; }
  .side-item { min-height: 44px; }
}
@media (max-width: 720px) {
  .topnav { gap: 6px; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(8px, env(safe-area-inset-right)); }
  .topnav .brand { gap: 8px; }
  .brand-name { font-size: 14px; line-height: 17px; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  #guide-link { width: 44px; padding: 0; justify-content: center; }
  .hdr-btn-text { display: none; }
  .view { padding: 16px 16px 40px; gap: 16px; }
  .lead { font-size: 15px; line-height: 22px; }
  .schools { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .school-foot .btn { width: 100%; justify-content: center; }
  .sec .card-body { padding: 16px; }
  .opts { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
  .counter-ctl { max-width: none; }
  .ph, .ph-img { width: 92px; }
  .ph-img { height: 92px; }
  .rsec .card-head { padding: 16px 16px 4px; }
  .rsec .card-body { padding-left: 16px; padding-right: 16px; }
  .form-actions .btn { flex: 1 1 auto; justify-content: center; }
  .receipt-body { padding: 20px 16px; }
  .wide-foot { padding: 16px; }
}
@media (max-width: 480px) { .net-off-word { display: none; } }
/* Narrow phones: the full programme name gets three lines, so the subtitle goes. The network word is hidden only
   while Online; Offline, n waiting and Sending always show as icon plus word. */
@media (max-width: 480px) {
  .brand-name { font-size: 13px; line-height: 15px; -webkit-line-clamp: 3; }
  .brand-sub { display: none; }
  .net.ok .net-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Staff phones also show Admin: the two logos carry the brand there. */
@media (max-width: 420px) { .topnav:has(#admin-link:not([hidden])) .brand-text { display: none; } }

/* A checklist NiuPay sent back: the note from staff, as they wrote it. */
.returned-note { margin: 6px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
