/* Owner Details Update: one stylesheet for the owners' form and the office screens. */
:root {
  --ink: #1d2a26;
  --muted: #5c6b66;
  --line: #e2dccf;
  --line-strong: #cfc7b6;
  --bg: #f6f3ec;
  --card: #ffffff;
  --brand: #1f5f4a;
  --brand-dark: #174a3a;
  --brand-soft: #e7f1ec;
  --accent: #b9791f;
  --accent-soft: #fbf1e1;
  --ok: #1b7a36;
  --ok-soft: #e6f4e9;
  --warn: #8a5a00;
  --warn-soft: #fff4d9;
  --danger: #b3261e;
  --danger-soft: #fdecea;
  --info: #2457a6;
  --info-soft: #e8effb;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(29, 42, 38, .06), 0 10px 28px rgba(29, 42, 38, .07);
  --focus: 0 0 0 3px #ffffff, 0 0 0 6px #2c8a6b;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
/* The scrollbar's room is kept on short pages too, so the header and tabs don't shift sideways between a long page and a
   short one (1 Oct 2026: Guides to Magic code moved everything 15px). */
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; }
body.public { font-size: 17px; }
body.admin { font-size: 15px; background: #f2efe8; }
img { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* The input rules below give a text box its size and padding; a hidden one (the username box for password managers) must stay 1px wide. */
input.sr-only { width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; color: #fff; }
.muted { color: var(--muted); }
.small { font-size: .88em; }
.mono { font-family: var(--mono); letter-spacing: .01em; }
.nowrap { white-space: nowrap; }
.none { color: #9aa39f; font-style: italic; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.icon.xs { width: 1em; height: 1em; vertical-align: -.15em; }
.icon.big { width: 44px; height: 44px; color: var(--brand); }
.icon.ok { color: var(--ok); }

/* ---------- layout ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand:hover { color: var(--ink); }
.brand-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; }
.brand-mark .icon { width: 24px; height: 24px; }
.brand-name small { display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
main.wrap { padding-top: 32px; padding-bottom: 56px; min-height: 60vh; }
.site-footer { border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .9rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px; }
.card.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.two-col.wide-left { grid-template-columns: 3fr 2fr; }
.two-col > .card { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.grid-name { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 0 16px; }
.stack > * + * { margin-top: 14px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 6px 0; border-bottom: 1px solid #f0ece3; }
.plain li:last-child { border-bottom: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; background: #fff; color: var(--ink); transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { border-color: var(--line-strong); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-danger { background: #fff; border-color: #e6b4b0; color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1.06rem; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
form.inline { display: inline; }

/* ---------- public: front page ---------- */
.hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; padding: 24px 0 40px; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); max-width: 15em; }
.lead { font-size: 1.15rem; color: #3b4a45; max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 24px; }
.hero-note { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); }
.hero-art { display: flex; justify-content: center; }
.hero-card { width: 100%; max-width: 320px; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 18px; transform: rotate(-2deg); border-top: 6px solid var(--brand); }
.hero-card-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: #faf8f3; margin-bottom: 10px; font-weight: 600; }
.hero-card-row span { flex: 1; }
.hero-card-row .icon:first-child { color: var(--brand); }
.hero-card-foot { text-align: center; color: var(--ok); font-weight: 700; padding-top: 4px; }
.band { padding: 28px 0; }
.band-soft { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin-top: 20px; }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.tiles li { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.tiles li .icon { width: 30px; height: 30px; color: var(--brand); margin-bottom: 6px; }
.tiles li span { color: var(--muted); font-size: .93rem; }
.ticks { padding-left: 0; list-style: none; margin: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5f4a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.steps-list { list-style: none; padding: 0; margin: 0; }
.steps-list li { display: flex; gap: 14px; margin-bottom: 16px; }
.steps-list .num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; }
.trust-cloud { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.trust-cloud li { background: var(--brand-soft); color: var(--brand-dark); border-radius: 999px; padding: 8px 16px; font-weight: 600; }

/* ---------- public: the form ---------- */
.form-page { max-width: 820px; margin: 0 auto; }
.form-head { margin-bottom: 18px; }
.form-head p { margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.stepper { list-style: none; display: flex; padding: 0; margin: 0 0 22px; counter-reset: s; }
.stepper li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; color: var(--muted); font-size: .85rem; font-weight: 600; text-align: center; }
.stepper li::before { content: ""; position: absolute; top: 17px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--line-strong); font-weight: 700; }
.stepper li.done .dot { background: var(--brand); border-color: var(--brand); color: transparent; }
.stepper li.done .dot::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 16px no-repeat; }
.stepper li.done::before, .stepper li.current::before { background: var(--brand); }
.stepper li.current { color: var(--ink); }
.stepper li.current .dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
html:not(.js) .stepper { display: none; }
.step { padding: 28px; }
.step h2 { font-size: 1.5rem; margin-bottom: .35em; }
.step-no { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.js .step { display: none; }
.js .step.current { display: block; animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .step.current { animation: none; } }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #efeae0; }
html:not(.js) .step-nav button[data-next], html:not(.js) .step-nav button[data-back] { display: none; }
.sub { margin-top: 26px; font-size: 1.1rem; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend, .edit-form label[for], .stack > .field > label { display: block; font-weight: 600; margin-bottom: 6px; }
/* A tick or radio line straight inside a fieldset.field keeps its own layout (box, gap, text), not the block label's. */
.field > label.check-line { display: flex; }
.field legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.hint { color: var(--muted); font-size: .92em; margin: -2px 0 8px; }
.opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=number], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 48px; }
body.admin input[type=text], body.admin input[type=email], body.admin input[type=tel], body.admin input[type=password], body.admin input[type=search], body.admin input[type=number], body.admin select, body.admin textarea { min-height: 42px; padding: 8px 11px; }
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(31, 95, 74, .15); }
input::placeholder, textarea::placeholder { color: #9aa39f; }
.w2 { width: 4.2em !important; text-align: center; }
.w4 { width: 6em !important; text-align: center; }
.w-sm { max-width: 10em; }
.w-md { max-width: 18em; }
.w-lg { max-width: 26em; }
.date-row { display: flex; gap: 14px; }
.date-row label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 4px; }
.has-error input, .has-error select, .has-error textarea, input.is-bad, textarea.is-bad, select.is-bad { border-color: var(--danger); }
.has-error { border-left: 4px solid var(--danger); padding-left: 14px; }
.field-error { color: var(--danger); font-weight: 600; margin: 0 0 8px; font-size: .95em; }
.field-error::before { content: "! "; }
.live-check { margin: 8px 0 0; font-weight: 600; min-height: 1.4em; }
.live-check.ok { color: var(--ok); }
.live-check.bad { color: var(--danger); }
.search-field { position: relative; }
.search-field .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field input, body.admin .search-field input[type=search] { padding-left: 44px; }
.search-field.compact input { min-height: 40px; }

/* choices */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1.5px solid var(--line-strong); border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--brand); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-box { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid var(--line-strong); border-radius: 7px; background: #fff; color: transparent; margin-top: 1px; }
.choice-box .icon { width: 18px; height: 18px; }
.choice-body { display: flex; flex-direction: column; }
.choice-body small { color: var(--muted); font-size: .88rem; }
.choice.is-checked, .choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice.is-checked .choice-box, .choice:has(input:checked) .choice-box { background: var(--brand); border-color: var(--brand); color: #fff; }
.choice:has(input:focus-visible) { box-shadow: var(--focus); }
.choice.hidden { display: none; }
.change-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile-choice { position: relative; cursor: pointer; }
.tile-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile-choice span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 104px; padding: 14px 10px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; transition: all .15s; }
.tile-choice span .icon { width: 30px; height: 30px; color: var(--brand); }
.tile-choice:hover span { border-color: var(--brand); }
.tile-choice input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.tile-choice input:checked + span .icon { color: #fff; }
.tile-choice input:focus-visible + span { box-shadow: var(--focus); }
.radio-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-row.radio-row-3 { grid-template-columns: repeat(3, 1fr); }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--line-strong); border-radius: 12px; cursor: pointer; background: #fff; }
.radio-card input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.radio-card span { display: flex; flex-direction: column; }
.radio-card small { color: var(--muted); font-size: .88rem; font-weight: 400; }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.check-line { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin: 10px 0; font-weight: 400 !important; }
.check-line input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.check-line.small input { width: 18px; height: 18px; }
.check-line.big { font-size: 1.02rem; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 18px; }
.panel { border: 1.5px solid var(--line); border-radius: 12px; padding: 20px; margin-top: 18px; background: #fcfbf8; }
.panel h3 { display: flex; align-items: center; gap: 8px; color: var(--brand-dark); }
.js .reveal { display: none; }
.js .reveal.shown { display: block; }
.js .panel.reveal.shown { animation: rise .2s ease-out; }

/* uploads */
.upload { border: 1.5px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; background: #fff; }
.upload-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.upload-head > .icon { width: 28px; height: 28px; color: var(--brand); margin-top: 2px; }
.upload-head div { flex: 1; display: flex; flex-direction: column; }
.upload-head small { color: var(--muted); }
.req, .opt-tag { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.req { background: var(--accent-soft); color: var(--warn); }
.opt-tag { background: #f1efe9; color: var(--muted); }
.upload.has-files .req { background: var(--ok-soft); color: var(--ok); }
.drop { position: relative; display: flex; align-items: center; justify-content: center; min-height: 64px; border: 2px dashed var(--line-strong); border-radius: 10px; color: var(--brand); font-weight: 600; cursor: pointer; background: #fcfbf8; text-align: center; padding: 10px; }
.drop:hover, .drop.drag { border-color: var(--brand); background: var(--brand-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop span { display: inline-flex; gap: 8px; align-items: center; }
html:not(.js) .drop input { position: static; opacity: 1; }
html:not(.js) .drop span { display: none; }
.drop:has(input:focus-visible) { box-shadow: var(--focus); }
.file-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.file-list li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; background: #f7f5ef; }
.file-list .thumb { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: #e9e5da; display: grid; place-items: center; color: var(--muted); flex: none; }
.file-list .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .fsize { color: var(--muted); font-size: .85rem; }
.file-list button { border: 0; background: none; color: var(--danger); font: inherit; font-weight: 600; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.file-list li.bad { background: var(--danger-soft); color: var(--danger); }

/* summary + send */
.summary { display: grid; gap: 12px; margin-bottom: 20px; }
.summary .sum-block { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.summary .sum-block h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 6px; display: flex; justify-content: space-between; }
.summary .sum-block h3 button { text-transform: none; letter-spacing: 0; font-size: .92rem; }
.summary .sum-block p { margin: 0; }
.declare { background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; }
.privacy-note { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .92rem; }
.privacy-note .icon { color: var(--brand); margin-top: 2px; }

/* alerts */
.alert { border-radius: 12px; padding: 14px 18px; margin: 0 0 18px; background: var(--info-soft); color: #1d3b6b; }
.alert ul { margin: 8px 0 0; padding-left: 20px; }
.alert p:last-child { margin-bottom: 0; }
.alert-error { background: var(--danger-soft); color: #7a1a14; border-left: 5px solid var(--danger); }
.alert-ok { background: var(--ok-soft); color: #14532a; border-left: 5px solid var(--ok); }
.alert-warn { background: var(--warn-soft); color: #5c3d00; border-left: 5px solid #d9a31a; }
.flash { border-radius: 12px; padding: 12px 18px; margin-bottom: 18px; font-weight: 600; }
.flash-ok { background: var(--ok-soft); color: #14532a; }
.flash-error { background: var(--danger-soft); color: #7a1a14; }

/* thanks + prose */
.thanks { text-align: center; padding: 40px 32px; }
.thanks .steps-list { text-align: left; max-width: 480px; margin: 0 auto 20px; }
.thanks-mark { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); margin-bottom: 14px; }
.thanks-mark .icon { width: 40px; height: 40px; }
.ref-box { display: inline-block; background: var(--brand-soft); border-radius: 12px; padding: 12px 28px; color: var(--muted); }
.ref-box strong { font-size: 1.6rem; color: var(--brand-dark); letter-spacing: .04em; }
.prose h2 { margin-top: 1.4em; }
.prose ul { padding-left: 20px; }

/* ---------- admin ---------- */
.admin-top { background: var(--brand-dark); color: #fff; position: sticky; top: 0; z-index: 5; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.admin-top-row { max-width: 1320px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 20px; min-height: 62px; }
.admin-top .brand { color: #fff; font-size: 1rem; }
.admin-top .brand-mark { background: rgba(255, 255, 255, .14); }
/* The menu: one link per group (Code/OfficeMenu.cs), each with its own icon. System has five groups (class many), a trust
   office two, and a GDPro client none: its GDPro help tabs are its navigation. The menu wraps and never scrolls, at every
   width, so nothing can be out of sight (29 Sep 2026: a scroll strip with no scrollbar hid Settings and Help). */
.admin-nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; min-width: 0; }
.admin-nav a { position: relative; display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .82); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.admin-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.admin-nav a.active { background: rgba(255, 255, 255, .16); color: #fff; }
.admin-nav .count { background: var(--accent); color: #fff; border-radius: 999px; font-size: .75rem; padding: 1px 8px; }
/* System's five groups keep to one row on a computer (measured 30 Sep 2026, so a wrap never splits them): up to 1320px the
   name beside the avatar and the word Help go (both are still read out), up to 1180px the icons go too, and up to 1000px
   the menu has a row of its own, as on a tablet. */
@media (min-width: 901px) and (max-width: 1320px) {
  .admin-nav.many ~ .admin-user .user-name { display: none; }
  .admin-nav.many ~ .admin-user .help-link span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 1001px) and (max-width: 1180px) {
  .admin-nav.many a { padding: 8px 10px; }
  .admin-nav.many a svg { display: none; }
}
@media (min-width: 901px) and (max-width: 1000px) {
  .admin-top-row { flex-wrap: wrap; gap: 8px 16px; padding-top: 8px; padding-bottom: 8px; }
  .admin-nav.many { order: 3; flex-basis: 100%; }
}
/* On the right, the same for everyone: ? Help (the help for the page's group), the avatar (My account), Sign out. */
.admin-user { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.help-link { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 600; font-size: .9rem; padding: 6px 8px; border-radius: 8px; }
.help-link:hover, .help-link.active { background: rgba(255, 255, 255, .1); color: #fff; }
.help-link .icon { width: 18px; height: 18px; }
.avatar-link { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding: 3px; border-radius: 999px; }
.avatar-link:hover, .avatar-link.active { color: #fff; background: rgba(255, 255, 255, .1); }
.avatar-link.active .avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.user-name { display: flex; flex-direction: column; line-height: 1.15; font-weight: 600; font-size: .92rem; padding-right: 8px; }
.user-name small { font-weight: 400; opacity: .7; font-size: .78rem; }
.admin-user .btn-link { color: rgba(255, 255, 255, .85); font-size: .9rem; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: .85rem; flex: none; }
.avatar.sm { width: 28px; height: 28px; font-size: .72rem; margin-right: 8px; vertical-align: middle; }
.avatar.big { width: 52px; height: 52px; font-size: 1.1rem; background: var(--brand); }
.admin-wrap { max-width: 1320px; margin: 0 auto; padding: 28px 16px 60px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 1.8rem; margin-bottom: 4px; }
.page-head p { margin: 0; }
.page-head .ref { font-size: .55em; font-weight: 600; color: var(--muted); background: #fff; border-radius: 8px; padding: 3px 10px; vertical-align: middle; font-family: var(--mono); }
/* Help (/admin/help): "? Help" jumps to a section (#owner-updates, #gdpro-help, #website, #people, #system); land it
   below the sticky header, not under it. */
.help-section { scroll-margin-top: 90px; }
.help-toc { margin-top: 8px; }
.help-toc a { font-weight: 600; }
.page-head h3 { font-size: 1.15rem; margin-bottom: 4px; }
/* A second line under a page's intro (Logins: "Asking for a login? Those are under GDPro help > Login requests"). */
.page-head p + p { margin-top: 6px; }
.back-link { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; font-weight: 600; margin-bottom: 8px; font-size: .92rem; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--muted); margin: 6px 0 0 !important; }
.meta > span { display: inline-flex; gap: 6px; align-items: center; }
.warn-text { color: var(--warn) !important; font-weight: 600; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; text-decoration: none; color: var(--ink); border-top: 4px solid var(--line-strong); display: flex; flex-direction: column; }
.stat:hover { color: var(--ink); transform: translateY(-1px); }
.stat-num { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.stat-lbl { color: var(--muted); font-weight: 600; font-size: .9rem; }
.stat-new { border-top-color: var(--info); }
.stat-progress { border-top-color: var(--accent); }
.stat-wait { border-top-color: #8b5cc9; }
.stat-done { border-top-color: var(--ok); }
.list-card { padding: 0; overflow: hidden; }
.list-card > h2.pad, .pad { padding: 18px 20px 0; }
.list-tools { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #efeae0; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab { padding: 8px 14px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 600; }
.tab:hover { background: #f4f1ea; color: var(--ink); }
.tab.active { background: var(--brand-soft); color: var(--brand-dark); }
.tab b { background: var(--brand); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .75rem; }
/* A count that is information, not work waiting (Hidden pages). */
.tab b.quiet { background: #e6e1d6; color: var(--muted); }
/* A group's tabs at the top of a list page (Admin.Master). The page's tab is underlined, so the row reads apart from a
   page's own filter tabs below it. */
.group-tabs { margin: -8px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.group-tabs .tab { position: relative; white-space: nowrap; border-radius: 8px 8px 0 0; }
.group-tabs .tab.active { background: none; box-shadow: inset 0 -3px 0 var(--brand); color: var(--brand-dark); }
@media (max-width: 640px) {
  .group-tabs .tab { padding: 8px 10px; }
}
@media (max-width: 480px) {
  .group-tabs { gap: 2px; }
  .group-tabs .tab { padding: 7px 8px; font-size: .88rem; }
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters select { width: auto; min-width: 180px; }
.filters .search-field { min-width: 240px; }
/* position: relative keeps a hidden (sr-only) header label inside the scroll box, so it can't widen the page. */
.table-wrap { overflow-x: auto; position: relative; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 14px; background: #faf8f3; border-bottom: 1px solid #efeae0; white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid #f0ece3; vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tr[data-href] { cursor: pointer; }
.table tr[data-href]:hover td { background: #fbfaf6; }
.table tr.is-new td:first-child { box-shadow: inset 4px 0 0 var(--info); }
.table tr.is-off td { opacity: .55; }
.table tr.is-warn td { background: #fff9ec; }
.table .sub { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.row-link { color: var(--ink); text-decoration: none; }
.row-link:hover { color: var(--brand); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
/* A table cell must stay a table cell (as flex it draws its own row line out of step with the rest of the row). */
td.tags { display: table-cell; }
td.tags > * { margin: 0 4px 5px 0; vertical-align: middle; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 600; padding: 2px 9px; border-radius: 6px; background: #f1efe9; color: #45524e; }
.tag-warn { background: var(--accent-soft); color: var(--warn); }
.tag-plain { background: none; color: var(--muted); }
.chip { display: inline-flex; align-items: center; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: #eee; color: #444; margin-left: 4px; }
.chip:first-child { margin-left: 0; }
.chip-new { background: var(--info-soft); color: var(--info); }
.chip-progress { background: var(--accent-soft); color: var(--warn); }
.chip-wait { background: #f1e9fb; color: #6b3fae; }
.chip-done { background: var(--ok-soft); color: var(--ok); }
.chip-closed { background: #efede7; color: #5c6b66; }
.chip-declined { background: var(--danger-soft); color: var(--danger); }
.empty { text-align: center; padding: 48px 20px; }
.empty h2 { margin-top: 10px; }
.empty-inline { color: var(--muted); background: #faf8f3; padding: 14px; border-radius: 10px; }

/* request page */
.req-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.req-side { position: sticky; top: 82px; }
.req-side .card { padding: 18px; }
.req-side h2 { font-size: 1.05rem; }
.card h2 .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-size: .9rem; margin-right: 6px; vertical-align: 2px; }
.facts { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; margin: 0; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }
.asks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ask { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.ask h3 { display: flex; gap: 8px; align-items: center; font-size: .95rem; color: var(--brand-dark); }
.ask p { margin: 0; }
.ask-warn { border-color: #efcf92; background: #fffaf0; }
.ask-wide { grid-column: 1 / -1; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.doc { margin: 0; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.doc-thumb { display: block; height: 130px; background: #f1eee6; }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doc-icon { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-decoration: none; font-weight: 700; color: var(--brand); }
.doc figcaption { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: .88rem; }
.doc figcaption span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-gone { opacity: .6; }
.idcheck { border-radius: 12px; padding: 12px 16px; background: var(--warn-soft); }
.idcheck.is-checked { background: var(--ok-soft); }
.idcheck p { margin: 6px 0 0; }
.inline-fields { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline-fields input[type=text] { flex: 1; min-width: 200px; }
.manual-shid { margin-top: 16px; padding-top: 16px; border-top: 1px solid #efeae0; }
.manual-shid input[type=text] { flex: 0 1 140px; min-width: 100px; }
.manual-shid label { font-weight: 600; }
.search-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.search-row .search-field { flex: 1; min-width: 240px; }
.candidates td { vertical-align: middle; }
.match { background: var(--ok-soft); color: var(--ok); font-weight: 700; border-radius: 6px; padding: 1px 6px; }
.owner-card { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 12px; background: var(--brand-soft); flex-wrap: wrap; }
.owner-main { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 220px; }
.owner-main strong { font-size: 1.1rem; }
.compare td { vertical-align: top; }
.compare .c-tick { width: 64px; text-align: center; }
.compare .c-tick input { width: 22px; height: 22px; accent-color: var(--brand); }
.compare tr.differs td { background: #fffdf7; }
.compare tr.is-off td:not(.c-tick) { opacity: .55; }
.compare .cur { color: #45524e; max-width: 240px; }
.compare .new { min-width: 240px; }
.compare .note { display: block; color: var(--muted); font-size: .84rem; margin-top: 4px; font-weight: 400; max-width: 280px; }
.compare textarea { min-height: 80px; }
.apply-options { margin: 16px 0; }
.apply-bar { display: flex; justify-content: flex-end; padding-top: 14px; border-top: 1px solid #efeae0; }
details.action { border: 1.5px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
details.action summary { cursor: pointer; padding: 10px 12px; font-weight: 600; list-style: none; display: flex; gap: 8px; align-items: center; }
details.action summary::-webkit-details-marker { display: none; }
details.action[open] summary { border-bottom: 1px solid var(--line); }
details.action form { padding: 12px; }
details.action label[for] { font-weight: 600; display: block; margin-bottom: 4px; }
.note-form { margin-bottom: 14px; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 14px 16px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.timeline .ev-gdpro::before, .timeline .ev-status::before { background: var(--brand); }
.timeline .ev-note::before { background: var(--accent); }
.timeline .ev-email::before { background: var(--info); }
.timeline .ev-idcheck::before { background: var(--ok); }
.ev-when { display: block; font-size: .78rem; color: var(--muted); }
.ev-who { font-weight: 700; font-size: .88rem; margin-right: 6px; }
.ev-text { font-size: .9rem; }
.side-card ul.plain li { display: flex; justify-content: space-between; gap: 8px; align-items: center; }

/* edit forms */
.edit-form { max-width: 920px; }
.edit-form .card h2 { margin-bottom: 16px; }
.form-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.form-bar .right { margin-left: auto; }
.copy-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; color: var(--muted); font-size: .9rem; }
.check-result { margin-top: 14px; }
/* Emails: the list gets most of the width and long addresses and errors wrap, so its Result column (status, error, Send again)
   stays in view on a 1280px screen without a sideways scroll. */
.email-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.table.emails .em-to, .table.emails .err-text { overflow-wrap: anywhere; }
.table.emails .err-text { max-width: 36ch; }
.table.emails .lst-resend .btn { white-space: nowrap; }
.email-preview { position: sticky; top: 82px; padding: 12px; }
.email-preview iframe { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 10px; background: #f4f1ea; }
.err-text { color: var(--danger) !important; }
.sessions { margin-bottom: 14px; }
.sessions li { display: block !important; }
.sessions .sub { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }

/* sign-in */
.auth-card { max-width: 440px; margin: 40px auto; padding: 32px; }
.auth-card h1 { font-size: 1.6rem; }
.auth-mark { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.auth-mark .icon { width: 28px; height: 28px; }
.auth-foot { margin: 18px 0 0; text-align: center; }
.code-input { font-size: 1.6rem !important; letter-spacing: .35em; text-align: center; font-family: var(--mono); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { display: none; }
  .two-col, .two-col.wide-left, .req-layout, .email-layout { grid-template-columns: minmax(0, 1fr); }
  .req-side, .email-preview { position: static; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .admin-top-row { flex-wrap: wrap; gap: 8px 16px; padding-top: 8px; padding-bottom: 8px; }
  .admin-nav { order: 3; flex-basis: 100%; }
  .admin-nav a { padding: 8px 9px; }
  .user-name { display: none; }
}
/* Phones: System's five groups are one row of equal cells, icon above the name, the badge in the corner; Help is its icon. */
@media (max-width: 760px) {
  .admin-nav.many { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; }
  .admin-nav.many a { flex-direction: column; gap: 2px; padding: 6px 2px; font-size: .74rem; text-align: center; white-space: normal; line-height: 1.1; }
  .admin-nav.many .count { position: absolute; top: 0; right: 4px; font-size: .68rem; padding: 0 5px; }
  .help-link span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Small phones: every menu is that grid, and the brand is its mark (the name is still read out). */
@media (max-width: 374px) {
  .admin-nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; }
  .admin-nav a { flex-direction: column; gap: 2px; padding: 6px 2px; font-size: .74rem; text-align: center; white-space: normal; line-height: 1.1; }
  .admin-nav .count { position: absolute; top: 0; right: 4px; font-size: .68rem; padding: 0 5px; }
  .admin-top .brand-name { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 640px) {
  body.public { font-size: 16px; }
  main.wrap { padding-top: 20px; }
  .card, .step { padding: 18px; }
  .grid-2, .grid-3, .grid-name, .radio-row { grid-template-columns: 1fr; }
  .radio-row.radio-row-3 { grid-template-columns: 1fr; }
  .change-grid { grid-template-columns: 1fr 1fr; }
  .stepper .lbl { font-size: .72rem; }
  .stepper .dot { width: 32px; height: 32px; }
  .stepper li::before { top: 15px; }
  .step-nav { flex-direction: column-reverse; }
  .step-nav .btn { width: 100%; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 8px; }
  .filters, .filters select, .filters .search-field { width: 100%; min-width: 0; }
  .band-soft { padding: 20px; }
}
@media print {
  .admin-top, .group-tabs, .req-side, .site-header, .site-footer, .step-nav { display: none; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ==== Enquiries (contact form) ==== */
/* One line per tab under the heading. */
.enq-key { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: .9rem; max-width: 920px; }
.enq-key li { margin-bottom: 2px; }
.enq-key strong { color: var(--ink); }
/* Long addresses, links and signals wrap inside their column instead of widening the table. */
.enq-from a, .enq-msg, .table .enq-signals { overflow-wrap: anywhere; }
.table .enq-signals { font-size: .76rem; max-width: 34ch; }
.enq-msg-cell { min-width: 260px; }
.enq-msg { max-width: 62ch; }
.enq-more { margin-top: 6px; }
.enq-more > summary { cursor: pointer; color: var(--brand); font-weight: 600; width: max-content; }
.enq-more .enq-msg { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }
.enq-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.enq-actions form { margin: 0; }
.enq-pager { display: flex; gap: 12px; padding: 12px 18px; border-top: 1px solid #efeae0; }
.enq-pager a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.enq-pager .enq-older { margin-left: auto; }

/* ==== Trust sign-ups ==== */
.su-chip-held { background: var(--warn-soft); color: var(--warn); }
.su-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.su-sent { max-width: 520px; }
.su-ua { display: block; margin-top: 2px; overflow-wrap: anywhere; }
.su-rows { display: grid; gap: 12px; }
.su-row { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.su-row.is-made { background: var(--ok-soft); border-color: #cfe6d5; }
.su-row .field { margin-bottom: 12px; }
.su-row .muted.small { margin: 4px 0 0; }
.su-row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; }
.su-row.is-made .su-row-head { margin-bottom: 0; }
.su-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.su-grid textarea { min-height: 70px; }
.su-choices { border: 0; padding: 8px 0 0; margin: 0; border-top: 1px solid #efeae0; }
.su-choices .check-line { margin: 6px 0; }
.su-warn { display: flex; gap: 8px; align-items: flex-start; color: var(--warn); font-weight: 600; font-size: .9rem; margin: 8px 0 0; }
.su-warn .icon { margin-top: 2px; }
.su-setup li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 10px 0; }
.su-finish { margin-top: 18px; padding-top: 16px; border-top: 1px solid #efeae0; }
.timeline .ev-verify::before { background: var(--ok); }
.timeline .ev-created::before { background: var(--brand); }
@media (max-width: 640px) {
  .su-grid { grid-template-columns: 1fr; }
}

/* ==== Requests, emails and activity ==== */
/* Filters under a list's tabs: small labelled fields in a row that wraps. */
.lst-filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; padding: 12px 18px; border-bottom: 1px solid #efeae0; background: #fcfbf8; }
.lst-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-weight: 400 !important; }
.lst-field > span { font-size: .8rem; font-weight: 600; color: var(--muted); }
body.admin .lst-field input[type=date] { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); min-height: 40px; padding: 6px 10px; }
body.admin .lst-field input[type=text], body.admin .lst-field select { width: auto; min-width: 160px; min-height: 40px; padding: 6px 10px; }
.lst-filters .btn, .lst-more-body .btn { min-height: 40px; }
/* The inbox's "More filters", folded away until used. */
.lst-more { flex-basis: 100%; }
.lst-more > summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--brand); width: max-content; padding: 2px 0; }
.lst-more-body { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; padding: 10px 0 2px; }
.lst-more-body .check-line { margin: 0 0 9px; }
/* "Showing 51–100 of 812" with Previous / Next. */
.lst-pager { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; padding: 10px 18px; color: var(--muted); font-size: .92rem; border-bottom: 1px solid #efeae0; }
.table-wrap + .lst-pager, .list-card > form + .lst-pager, .empty + .lst-pager { border-top: 1px solid #efeae0; border-bottom: 0; }
.lst-pages { display: flex; gap: 8px; }
/* How long an open request has waited; over a week in the warning colour. */
.lst-waited { font-weight: 600; white-space: nowrap; }
.lst-late { color: var(--warn); }
a.lst-dup { text-decoration: none; }
a.lst-dup:hover { text-decoration: underline; }
/* System: tick requests, then close them as spam or duplicate. */
.table th.lst-pick, .table td.lst-pick { width: 44px; padding-right: 0; }
.lst-pick input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); }
/* The whole cell width ticks the box, so a near miss doesn't open the request. */
.lst-pick label { display: block; cursor: pointer; }
.lst-bulk { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 12px 18px; border-top: 1px solid #efeae0; background: #fcfbf8; }
body.admin .lst-bulk input[type=text] { flex: 1 1 260px; max-width: 460px; min-height: 36px; }
/* Request page: back to the list, and on to the next open request. */
.lst-head-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.lst-resend { margin-top: 6px; }
@media (max-width: 640px) {
  .lst-field, body.admin .lst-field input[type=text], body.admin .lst-field select, body.admin .lst-field input[type=date] { width: 100%; }
  .lst-pager { justify-content: flex-start; }
}

/* ==== Trusts and logins ==== */
/* Tick lists on a trust (its logins) and a login (its trusts): type-to-find above, a scrolling box so 300 rows don't bury the form. */
.pick-tools { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 4px 0 10px; }
.pick-tools .search-field { flex: 1 1 260px; max-width: 420px; }
.pick-tools .check-line { margin: 0; }
.pick-list { max-height: 26rem; overflow-y: auto; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 2px 14px; background: #fcfbf8; }
.pick-list > [hidden] { display: none; }
.pick-foot { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 10px 0 0; }
/* Logins with no trusts (mostly GDPro clients) on a trust's or an office's page: folded away under a caution. */
.pick-clients { margin: 12px 0 0; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 8px 14px; }
.pick-clients > summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.pick-clients[open] { padding-bottom: 14px; }
.pick-caution { display: flex; gap: 8px; align-items: flex-start; color: var(--warn); font-weight: 600; font-size: .9rem; margin: 10px 0; }
.pick-caution .icon { margin-top: 2px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 6px 0 8px; }
.inline-actions select { width: auto; flex: 1 1 16em; max-width: 26em; }
.field-title { font-weight: 600; margin: 0 0 6px; }
.linked-db { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0; }
.chip-attn { background: var(--warn-soft); color: var(--warn); }

/* ==== Website editor ==== */
/* Rows hidden by type-to-find or the Show tick stay hidden whatever display their class gives them. */
.we-page [hidden] { display: none !important; }
/* The hub: one card per thing that can be changed. */
.we-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-bottom: 20px; }
.we-hubcard { display: flex; flex-direction: column; gap: 6px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; color: var(--ink); text-decoration: none; border: 1.5px solid transparent; }
.we-hubcard:hover { color: var(--ink); border-color: var(--brand); }
.we-hubcard h2 { margin: 8px 0 0; font-size: 1.15rem; }
.we-hubcard p { margin: 0; color: var(--muted); font-size: .93rem; flex: 1; }
.we-hub-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.we-hub-icon .icon { width: 24px; height: 24px; }
.we-hub-n { font-weight: 700; color: var(--brand-dark); font-size: .9rem; }
.we-hub-sub { color: var(--muted); font-size: .85rem; }
/* Explanations at the top of a page, and the find box. */
.we-help p { margin: 0 0 8px; }
.we-help p:last-child, .we-help ul:last-child { margin-bottom: 0; }
.we-help ul { margin: 0 0 8px; padding-left: 20px; }
.we-help code, .we-key { font-family: var(--mono); font-size: .8rem; }
.we-find { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 0 0 16px; }
.we-find .search-field { flex: 1 1 260px; max-width: 460px; }
/* Page text: a card per page, a box per piece of text, its name in small print. */
.we-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-bottom: 14px; }
.we-section-head h2 { margin: 0; }
.we-section-head a { font-weight: 600; font-size: .92rem; }
.we-key { display: inline-block; font-weight: 400; color: var(--muted); margin-left: 6px; overflow-wrap: anywhere; }
.we-onsite { margin: 6px 0 0; font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
.we-onsite span { color: var(--ink); }
.we-field textarea { min-height: 70px; }
/* FAQ and testimonials: one card per entry, faded when it isn't on the site. */
.we-group-head { margin: 26px 0 12px; font-size: 1.15rem; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.we-group-head span { font-size: .85rem; font-weight: 400; color: var(--muted); }
.we-entry { border-left: 5px solid var(--ok); scroll-margin-top: 90px; }
.we-entry.is-hidden-entry { border-left-color: var(--line-strong); background: #fbfaf7; }
.we-entry.is-hidden-entry .we-entry-body { opacity: .72; }
.we-entry-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin-bottom: 14px; }
.we-entry-head .check-line { margin: 0; }
.we-entry-name { font-weight: 700; }
.we-entry-head .btn { margin-left: auto; }
.we-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 16px; }
.we-entry .field:last-child { margin-bottom: 0; }
/* Add a question / a testimonial, folded away until opened. */
details.we-add > summary { cursor: pointer; font-weight: 700; color: var(--brand-dark); list-style: none; display: flex; gap: 8px; align-items: center; }
details.we-add > summary::-webkit-details-marker { display: none; }
details.we-add[open] > summary { padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid #efeae0; }
.we-add-bar { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.we-add-bar .check-line { margin: 0; }
/* The Save bar stays in view at the bottom of the window. */
.we-bar { position: sticky; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 8px; padding: 12px 18px; background: #fff; border-radius: var(--radius) var(--radius) 0 0; box-shadow: 0 -6px 18px rgba(29, 42, 38, .12); }
.we-bar .we-count { font-weight: 600; color: var(--muted); }
/* "Saved: ..." with its Undo button. */
.we-saved { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.we-saved p { margin: 0; flex: 1 1 320px; font-weight: 600; }
.we-saved form { margin: 0; }
/* History. */
.we-tag-content { background: var(--info-soft); color: var(--info); }
.we-tag-faq { background: #f1e9fb; color: #6b3fae; }
.we-tag-testimonials { background: var(--accent-soft); color: var(--warn); }
.we-hist td form { margin: 0; }
.we-acts { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.we-acts a { font-weight: 600; white-space: nowrap; }
.we-hist .sub { max-width: 60ch; }
.table tr.we-first td { background: #fcfbf8; }
.we-now-chip { background: var(--ok-soft); color: var(--ok); }
/* What a save (or an import) changes. */
.we-changes { display: grid; gap: 12px; }
.we-change { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 16px; background: #fff; }
.we-change-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 0 0 8px; }
.we-change-head .we-what { color: var(--muted); }
.we-was, .we-now { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 7px 10px; border-radius: 8px; }
.we-was { background: var(--danger-soft); }
.we-now { background: var(--ok-soft); margin-top: 6px; }
.we-was > b, .we-now > b { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 2px; }
.we-was > span, .we-now > span, .we-whole dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.we-blank { color: var(--muted); font-style: italic; }
.we-whole { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 14px; margin: 0; padding: 8px 10px; border-radius: 8px; }
.we-whole dt { color: var(--muted); font-weight: 600; }
.we-whole dd { margin: 0; }
.we-change.is-added .we-whole { background: var(--ok-soft); }
.we-change.is-removed .we-whole { background: var(--danger-soft); }
.we-page-links { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
/* Import. */
.we-json { font-family: var(--mono); font-size: .85rem; min-height: 140px; }
.we-import-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.we-import-head h2 { margin: 0; }
.we-notes { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
@media (max-width: 640px) {
  .we-was, .we-now, .we-whole { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .we-bar { padding: 10px 12px; }
  .we-entry-head .btn { margin-left: 0; }
}

/* ==== Offices and daily summaries ==== */
.ofc-empty-text { max-width: 62ch; margin-left: auto; margin-right: auto; }
.ofc-list-note { margin: 0; }
/* The office filter on Trusts sits in the filters row, beside type-to-find. */
.ofc-filter { display: flex; gap: 8px; align-items: center; margin: 0; }
/* What a trust's office adds to "Who is told": read-only, under the trust's own addresses. */
.ofc-through { background: #faf8f3; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0 0 18px; font-size: .94em; }
.ofc-through p { margin: 0; }
.ofc-through p + p { margin-top: 4px; }
/* A tick given through an office: ticked, greyed and not clickable (the office's page changes it). */
.check-line.is-through { cursor: default; }
.check-line.is-through > span { color: var(--muted); }
.check-line.is-through input { opacity: .6; }
.ofc-notify .check-line { margin: 6px 0; }
.ofc-account-note { margin: 10px 0 0; }
@media (max-width: 640px) {
  .ofc-filter, .ofc-filter select { width: 100%; }
}

/* ==== Trusts from GDPro ==== */
/* The list of a GDPro database's trusts to tick: compact boxes (the note under the name), so 300 rows stay easy to scan. */
.tfg-head { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: flex-start; padding: 18px 20px 4px; }
.tfg-head h2 { margin-bottom: 6px; }
.tfg-head p { margin: 0; }
.tfg-card > .alert, .tfg-card > .tfg-note-line { margin: 12px 20px 0; }
.tfg-tools { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.tfg-tools[hidden] { display: none; }
.tfg-table td { padding: 8px 10px; }
body.admin .tfg-table input[type=text] { min-height: 36px; padding: 5px 9px; min-width: 14em; }
body.admin .tfg-table input.tfg-slug { min-width: 11em; }
.tfg-table .tfg-note { margin-top: 6px; }
.tfg-table .tfg-status { min-width: 180px; max-width: 280px; }
.tfg-table .tfg-status .field-error, .tfg-table .tfg-status .su-warn { margin: 0; }
.tfg-table tr.is-picked td { background: #f5faf7; }
.tfg-table tr.is-picked td.lst-pick { box-shadow: inset 4px 0 0 var(--brand); }
.tfg-table tr.tfg-added td { background: #faf8f3; color: var(--muted); }
.tfg-foot { padding-bottom: 16px; margin: 0; }
.tfg-made-off { margin: 14px 0 0; }
/* The results view. */
.tfg-done .tfg-why { max-width: 32ch; }
.tfg-todo { margin: 0; padding-left: 18px; font-size: .9rem; }
.tfg-todo li { margin-bottom: 2px; }
.tfg-report li { padding: 4px 0; }
@media (max-width: 640px) {
  body.admin .tfg-table input[type=text] { min-width: 11em; }
}

/* ==== Sign-up offices ==== */
/* Step 3's office choice: three radios, with the name box and the office list indented under theirs. */
.su-office { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 16px 6px; margin: 0 0 14px; background: #fcfbf8; min-width: 0; }
.su-office legend { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; padding: 0 6px; }
.su-office > .muted { margin: 2px 0 4px; }
.su-office .check-line { margin: 8px 0 6px; }
.su-office-pick { margin: 0 0 10px 30px; max-width: 34em; }
.su-office-pick .hint { margin: 6px 0 0; }
.su-office-pick .su-warn { margin-top: 6px; }
/* The office a sign-up made, or its trusts are in, above the trusts. */
.su-offices { margin-bottom: 12px; }
.su-offices .su-row-head > .icon { color: var(--brand); }
.su-tag-office { background: var(--brand-soft); color: var(--brand-dark); }
@media (max-width: 640px) {
  .su-office-pick { margin-left: 0; }
}

/* GDPro links (Admin/GdProLinks.aspx) and the request page's GDPro card */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.btn-row form { margin: 0; }
.key-card { border: 2px solid var(--brand); }
.key-text { display: block; flex: 1 1 320px; padding: 10px 12px; background: var(--brand-soft); border-radius: var(--radius-sm); word-break: break-all; font-size: 15px; }
.gdpro-how { display: flex; gap: 12px; align-items: flex-start; }
.gdpro-how .ref-big { font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: .02em; }

/* ==== Visitors (Admin/Visitors.aspx, Code/Visits.cs) ==== */
.vis-me { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: flex-end; max-width: 460px; margin: 0; }
.vis-bar .list-tools { border-bottom: 1px solid #efeae0; }
.vis-dates { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-end; margin: 0; }
.vis-dates .btn { min-height: 40px; }
.vis-scope { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; padding: 10px 18px; }
.vis-scope p { margin: 0; }
.vis-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 8px; }
.vis-stats .stat { border-top-color: var(--brand); }
.vis-stats .stat:hover { transform: none; }
.vis-sub { font-weight: 400; }
.vis-delta { font-size: .8rem; font-weight: 700; color: var(--muted); margin-top: 4px; }
.vis-delta.up { color: var(--ok); }
.vis-delta.down { color: var(--danger); }
.vis-note { margin: 0 0 20px; }
.vis-legend { display: flex; gap: 16px; margin: 0; font-size: .88rem; color: var(--muted); }
.vis-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: #cfe3d9; }
.vis-key.people { background: var(--brand); }
.vis-chart { display: block; width: 100%; height: auto; }
.vis-chart text { font-family: var(--font); font-size: 15px; fill: var(--muted); }
.vis-chart .v-grid { stroke: #ebe6da; stroke-width: 1; }
.vis-chart .v-hit { fill: #000; fill-opacity: 0; }
.vis-chart g:hover .v-hit { fill-opacity: .035; }
.vis-chart .v-views { fill: #cfe3d9; }
.vis-chart .v-people { fill: var(--brand); }
.vis-as-table { margin-top: 10px; }
.vis-as-table > summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--brand); width: max-content; }
.vis-as-table .table-wrap { max-height: 360px; overflow-y: auto; margin-top: 8px; }
.list-card > h3.pad { margin: 0; padding-top: 20px; font-size: 1rem; }
.list-card > p.pad { margin: 4px 0 10px; }
.vis-pad { margin: 0 20px 20px; }
.vis-table td, .vis-table th { padding: 8px 14px; }
.table th.num { text-align: right; }
.vis-name { position: relative; min-width: 200px; }
.vis-fill { position: absolute; left: 6px; top: 5px; bottom: 5px; border-radius: 6px; background: var(--brand-soft); }
.vis-text { position: relative; display: block; overflow-wrap: anywhere; }
.vis-text .chip { vertical-align: 1px; }
.vis-url { overflow-wrap: anywhere; }
.vis-open { color: var(--muted); margin-left: 2px; }
.vis-open:hover { color: var(--brand); }
.vis-w0 { width: 0; } .vis-w5 { width: 5%; } .vis-w10 { width: 10%; } .vis-w15 { width: 15%; } .vis-w20 { width: 20%; }
.vis-w25 { width: 25%; } .vis-w30 { width: 30%; } .vis-w35 { width: 35%; } .vis-w40 { width: 40%; } .vis-w45 { width: 45%; }
.vis-w50 { width: 50%; } .vis-w55 { width: 55%; } .vis-w60 { width: 60%; } .vis-w65 { width: 65%; } .vis-w70 { width: 70%; }
.vis-w75 { width: 75%; } .vis-w80 { width: 80%; } .vis-w85 { width: 85%; } .vis-w90 { width: 90%; } .vis-w95 { width: 95%; }
.vis-w100 { width: calc(100% - 12px); }
.vis-goals { list-style: none; margin: 0; padding: 4px 20px 6px; display: grid; gap: 6px; }
.vis-goals a { text-decoration: none; font-weight: 600; }
.vis-goals a:hover { text-decoration: underline; }
.vis-goal-n { display: inline-block; min-width: 2.2em; font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.vis-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.vis-kinds .table-wrap + .table-wrap { border-left: 1px solid #efeae0; }
.vis-kinds .vis-name { min-width: 0; }
.vis-robots > summary { cursor: pointer; }
.vis-robots .table-wrap { margin-top: 12px; }
.vis-visits { list-style: none; margin: 0; padding: 0; }
.vis-visit { padding: 14px 20px; border-top: 1px solid #f0ece3; }
.vis-visit-head { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; }
.vis-path { margin: 8px 0 0; padding-left: 24px; }
.vis-path > li { margin: 3px 0; overflow-wrap: anywhere; }
.vis-done { margin: 2px 0 4px; padding-left: 18px; color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) {
  .vis-kinds { grid-template-columns: minmax(0, 1fr); }
  .vis-kinds .table-wrap + .table-wrap { border-left: 0; border-top: 1px solid #efeae0; }
}
@media (max-width: 640px) {
  .vis-me { justify-content: flex-start; }
  .vis-name { min-width: 160px; }
  .vis-chart text { font-size: 22px; }
}
.vis-chart .v-hatch-bg { fill: #f6f3ec; }
.vis-chart .v-hatch-line { stroke: #e6e0d3; stroke-width: 4; }
.vis-chart .v-none-text { font-weight: 600; fill: #8a958f; }
.vis-key.none { background: repeating-linear-gradient(45deg, #f6f3ec 0 3px, #e2dccf 3px 5px); }
.vis-scope-right { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.vis-since { color: var(--muted); font-size: .88rem; margin-left: 6px; }
.page-head .vis-me { margin-left: auto; }

/* Sign in: "or, with no password" between the two buttons (Admin/SignIn.aspx). */
.auth-or { display: flex; align-items: center; gap: 12px; margin: 4px 0; color: var(--muted); font-size: .88rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.page-head .vis-me { flex-direction: column; align-items: flex-end; max-width: 560px; gap: 8px; }
.vis-me form { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: flex-end; margin: 0; }
@media (max-width: 640px) {
  .page-head .vis-me { align-items: flex-start; margin-left: 0; }
  .vis-me form { justify-content: flex-start; }
}
.vis-reset { border-top: 4px solid var(--danger-soft); }
.vis-reset form { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.vis-reset .check-line { margin: 0; }

/* ==== GDPro help (Admin/GdPro.aspx, MagicCode.aspx, ActivationClient.aspx, AccessRequestsList.aspx; Code/GdProHelp.cs) ==== */
.gd-guides li { align-items: center; margin-bottom: 12px; }
.gd-code strong { font-family: var(--mono); font-size: 2.4rem; letter-spacing: .14em; }
.ar-decide { min-width: 230px; }
/* The two ticks sit apart (the form is a .stack, not a flex box, so a gap does nothing). */
.ar-decide .check-line { margin: 0 0 6px; }
.ar-decide input[type=text] { width: 100%; }
