/* Opposable.AI website — design tokens and components (mockup v1, 2026-09-29)
   Everything visual comes from the tokens in :root. Logo: Ben's branding image (Shared/Branding/Logo),
   cut into web files by make_brand_assets.py. Navy and bright blue are sampled from it. */

@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url("fonts/outfit-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Colour */
  --navy: #07192D;        /* headings, dark bands; the navy of the wordmark */
  --ink: #1B2533;         /* body text */
  --muted: #566173;       /* secondary text */
  --blue: #1763C7;        /* buttons, links (AA on white) */
  --blue-dark: #104FA3;   /* button hover */
  --blue-soft: #E7F0FB;   /* tinted panels */
  --spark: #F2B233;       /* focus rings only */
  --brand-blue: #068BE4;  /* the blue of ".AI" in the logo. Accents only: not AA for body text on white */
  --paper: #F7F5F0;       /* page background */
  --white: #FFFFFF;
  --line: #E2DED5;        /* borders */
  --tbc-bg: #FFF1C2;      /* highlights unconfirmed content in mockups */

  /* Type */
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;    /* 17px body */
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);

  /* Space and shape */
  --gutter: 20px;
  --max: 1120px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(19,35,63,.06), 0 4px 16px rgba(19,35,63,.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-0)/1.6 var(--font-body); }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--spark); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; }
.section--white { background: var(--white); }
.section--tint { background: var(--blue-soft); }
.section--navy { background: var(--navy); color: #DCE3EE; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 40em; }
.eyebrow { font: 600 var(--step--1)/1 var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--blue); margin-bottom: 12px; }
.small { font-size: var(--step--1); color: var(--muted); }
.tbc { background: var(--tbc-bg); color: #3D3200; padding: 0 .25em; border-radius: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 600 var(--step-0)/1 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); color: var(--white); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 24px 0 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(247,245,240,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo .logo-mark { height: 48px; width: auto; }
.logo .logo-word { height: 26px; width: auto; }
@media (max-width: 380px) { .logo .logo-mark { height: 40px; } .logo .logo-word { height: 22px; } }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--blue); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.nav .btn { min-height: 42px; padding: 10px 18px; }
.menu { display: none; }
@media (max-width: 760px) {
  .nav { display: none; }
  .menu { display: block; }
  .menu summary { list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; display: grid; place-items: center; border-radius: var(--radius-sm); font-weight: 600; color: var(--navy); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .menu-panel { display: flex; }
  .menu-panel { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; gap: 4px; padding: 12px var(--gutter) 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .menu-panel a:not(.btn) { padding: 12px 0; color: var(--navy); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
  .menu-panel .btn { margin-top: 12px; }
}

/* Hero */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 13em; }
.hero-mark { justify-self: center; width: min(380px, 100%); height: auto; }
@media (max-width: 760px) {
  .hero { padding: 40px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-mark { order: -1; width: min(220px, 60%); justify-self: center; }
}

/* Page header (inner pages) */
.page-head { padding: 56px 0 40px; }
.page-head h1 { font-size: var(--step-3); }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }

/* Speech-bubble quotes (Sound familiar?) */
.bubble { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; font: 600 var(--step-1)/1.35 var(--font-head); color: var(--navy); }
.bubble::after { content: ""; position: absolute; left: 28px; bottom: -9px; width: 16px; height: 16px; background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }

/* Numbered steps */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 32px 0 0; }
.steps > li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps > li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--white); font: 700 1.1rem/1 var(--font-head); margin-bottom: 16px; box-shadow: 0 0 0 4px var(--spark); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Long-form step (How it works) */
.step-block { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 32px 0; border-top: 1px solid var(--line); }
.step-block:first-of-type { border-top: 0; }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font: 700 1.3rem/1 var(--font-head); box-shadow: 0 0 0 4px var(--spark); }
.meta { font-weight: 600; color: var(--navy); }
@media (max-width: 560px) { .step-block { grid-template-columns: 1fr; gap: 12px; } }

/* Tick list */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 36px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%231763C7' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.section--navy .ticks li::before { background-color: rgba(255,255,255,.12); }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }

/* Placeholder note (for content still to come) */
.placeholder { border: 2px dashed #C9B77A; background: #FFFBEA; border-radius: var(--radius); padding: 20px 24px; color: #6B5A1E; }
.placeholder strong { color: #4E4210; }

/* About */
.about { display: grid; grid-template-columns: 160px 1fr; gap: 32px; align-items: center; }
.photo { width: 160px; height: 160px; border-radius: 50%; background: #DCD7CC; display: grid; place-items: center; color: var(--muted); font-size: var(--step--1); text-align: center; }
@media (max-width: 560px) { .about { grid-template-columns: 1fr; } .photo { width: 112px; height: 112px; } }

/* Q&A */
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.qa summary { cursor: pointer; padding: 16px 32px 16px 0; font: 600 var(--step-1)/1.3 var(--font-head); color: var(--navy); list-style: none; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.6rem; color: var(--blue); }
.qa details[open] summary::after { content: "–"; }

/* Pricing */
.price-card { display: flex; flex-direction: column; }
.price { font: 700 var(--step-3)/1 var(--font-head); color: var(--navy); margin: 8px 0 4px; }
.price small { font: 500 var(--step--1) var(--font-body); color: var(--muted); }
.badge { display: inline-block; background: var(--blue-soft); color: var(--blue-dark); font: 600 var(--step--1)/1 var(--font-body); padding: 6px 10px; border-radius: 999px; }
.price-card .btn { margin-top: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.table th, .table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 600; color: var(--navy); width: 70%; }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
.table td { white-space: nowrap; font-weight: 600; }
@media (max-width: 560px) {
  .table, .table tbody, .table tr, .table th, .table td { display: block; width: 100%; }
  .table th { border-bottom: 0; padding-bottom: 4px; }
  .table td { padding-top: 0; white-space: normal; color: var(--blue-dark); }
}

/* Booking */
.booking { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .booking { grid-template-columns: 1fr; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: var(--step-2); display: flex; align-items: center; gap: 12px; }
.panel h2 .n { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-size: 1rem; }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
@media (max-width: 560px) { .days { grid-template-columns: repeat(3, 1fr); } }
.day, .slot { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius-sm); min-height: 48px; padding: 10px 8px; text-align: center; font: 500 var(--step--1)/1.3 var(--font-body); color: var(--ink); cursor: pointer; }
.day b { display: block; font: 700 1.15rem/1.2 var(--font-head); color: var(--navy); }
.day[aria-pressed="true"], .slot[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.day[aria-pressed="true"] b { color: var(--white); }
.day[disabled] { opacity: .45; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
@media (max-width: 560px) { .slots { grid-template-columns: repeat(2, 1fr); } }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; color: var(--navy); font-size: var(--step--1); }
.field input:not([type=radio]):not([type=checkbox]), .field textarea { font: inherit; padding: 12px 14px; border: 1px solid #CFCABF; border-radius: var(--radius-sm); background: var(--white); min-height: 48px; width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.summary { position: sticky; top: 92px; }
.summary dl { margin: 0 0 16px; display: grid; grid-template-columns: auto 1fr; gap: 8px 0; }
.summary dd { padding-left: 16px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; color: var(--navy); text-align: right; }
.summary .total { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.secure { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 12px; }

.choices { border: 0; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.choices legend { font-weight: 600; color: var(--navy); font-size: var(--step--1); margin-bottom: 6px; padding: 0; }
.choices label { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px; border: 1px solid #CFCABF; border-radius: 999px; background: var(--white); cursor: pointer; font-weight: 500; }
.choices label:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.choices input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); }

/* Confirmation */
.confirm-card { max-width: 680px; margin: 0 auto; text-align: left; }
.confirm-icon { width: 64px; height: 64px; border-radius: 50%; background: #E3F4EA; display: grid; place-items: center; margin-bottom: 20px; }
.when { font: 700 var(--step-2)/1.25 var(--font-head); color: var(--navy); background: var(--blue-soft); border-radius: var(--radius-sm); padding: 16px 20px; margin: 16px 0 20px; }

/* Prose (privacy) */
.prose { max-width: 760px; }
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: var(--step--1); background: var(--white); }
.prose th, .prose td { text-align: left; border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }
.prose th { background: var(--blue-soft); color: var(--navy); }
.table-scroll { overflow-x: auto; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .lede { margin: 0 auto 8px; color: #C7D1E0; }
.cta-band .actions { justify-content: center; }

/* Footer */
.site-footer { background: var(--navy); color: #C7D1E0; padding: 48px 0 32px; font-size: var(--step--1); }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .logo .logo-word { height: 28px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 20px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mockup-only banner (not part of the real site) */
.mock-banner { background: #2B2B2B; color: #EEE; font-size: 13px; padding: 8px var(--gutter); text-align: center; }
.mock-banner a { color: #FFD66B; }

/* Downloads and documents */
.download { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); text-decoration: none; color: var(--ink); }
.download:hover { border-color: var(--blue); color: var(--ink); }
.download strong { color: var(--navy); }
.download-icon { flex: none; width: 44px; height: 52px; border-radius: 6px; background: var(--navy); color: var(--white); display: grid; place-items: end center; padding-bottom: 8px; font: 700 .75rem/1 var(--font-body); letter-spacing: .04em; box-shadow: inset -10px 10px 0 -2px var(--blue); }
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.doc { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.doc strong { color: var(--navy); font-size: var(--step-1); font-family: var(--font-head); }
.doc-status { display: inline-block; margin-top: 6px; font: 600 var(--step--1)/1 var(--font-body); color: #1E7A45; }
.doc--later { background: transparent; border-style: dashed; }
.doc--later .download-icon { background: #B9C1CE; box-shadow: none; }
.doc--later .doc-status { color: var(--muted); }
@media (max-width: 560px) { .doc { grid-template-columns: auto 1fr; } .doc .btn { grid-column: 1 / -1; } }
.days--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 560px) { .days--4 { grid-template-columns: repeat(2, 1fr); } }
.embed-note { font-size: 12px; color: #6B5A1E; background: #FFFBEA; border: 1px dashed #C9B77A; border-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; padding: 6px 12px; display: inline-block; }
.embed { border-top-left-radius: 0; }

/* Travel map (pricing) */
.travel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 24px; }
@media (max-width: 860px) { .travel { grid-template-columns: 1fr; gap: 20px; } }
.map-wrap { position: relative; max-width: 520px; width: 100%; margin: 0 auto; }
.uk-map { width: 100%; height: auto; display: block; }
.uk-map path { fill: #CFDDEF; stroke: var(--white); stroke-width: .8; stroke-linejoin: round; cursor: pointer; transition: fill .15s; }
.uk-map path:hover, .uk-map path:focus-visible { fill: #9DC2EE; outline: none; stroke: var(--navy); stroke-width: 1.2; }
.uk-map path.on { fill: var(--blue); stroke: var(--navy); stroke-width: 1.2; }
.map-home { position: absolute; transform: translate(-50%, -140%); background: var(--navy); color: var(--white); font: 600 12px/1 var(--font-body); padding: 5px 8px; border-radius: 999px; pointer-events: none; white-space: nowrap; }
.map-home::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; background: var(--navy); transform: translateX(-50%) rotate(45deg); }
.map-credit { font-size: 11px; color: var(--muted); margin: 6px 0 0; }
.field select { font: inherit; padding: 12px 14px; border: 1px solid #CFCABF; border-radius: var(--radius-sm); background: var(--white); min-height: 48px; width: 100%; color: var(--ink); }
.travel-result { min-height: 132px; }
.res-county { font: 600 var(--step-1)/1.3 var(--font-head); color: var(--navy); margin: 0 0 6px; }
.res-price { font: 700 var(--step-3)/1.1 var(--font-head); color: var(--navy); margin: 0 0 4px; }
.res-price small { font: 500 var(--step--1) var(--font-body); color: var(--muted); }
.legend { list-style: none; padding: 0; margin: 20px 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: var(--step--1); }
.legend li { display: flex; align-items: center; gap: 8px; }
.sw { width: 18px; height: 18px; border-radius: 4px; flex: none; border: 1px solid rgba(0,0,0,.06); }
.county-list { margin-top: 28px; }
.county-list summary { cursor: pointer; font-weight: 600; color: var(--blue); min-height: 44px; display: flex; align-items: center; }
.county-list .table td { white-space: nowrap; }

/* Admin area */
.admin { background: #F2F1ED; }
.admin-header { background: var(--navy); color: #C7D1E0; }
.admin-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 60px; flex-wrap: wrap; }
.admin-header .logo { color: var(--white); }
.admin-header .logo .logo-word { height: 22px; }
.admin-tag { font: 600 12px/1 var(--font-body); background: rgba(255,255,255,.14); color: var(--white); padding: 4px 8px; border-radius: 999px; margin-left: 8px; transform: translateY(-2px); }
.admin-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.admin-nav a { color: #C7D1E0; text-decoration: none; padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 500; }
.admin-nav a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.admin-nav a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.14); }
.admin-user { font-size: var(--step--1); }
.admin-user a { color: var(--white); }
.admin-main { padding: 36px 0 64px; }
.admin-main h1 { font-size: var(--step-3); margin-bottom: 6px; }
.admin-main .lede { font-size: var(--step-0); margin-bottom: 24px; }
.admin .panel { margin-bottom: 20px; }
.admin .panel h2 { font-size: var(--step-1); }
.money { display: flex; align-items: center; border: 1px solid #CFCABF; border-radius: var(--radius-sm); background: var(--white); overflow: hidden; max-width: 220px; }
.money span { padding: 0 12px; color: var(--muted); background: var(--paper); align-self: stretch; display: grid; place-items: center; }
.money input { border: 0 !important; min-height: 44px !important; padding: 8px 12px !important; font: inherit; width: 100%; }
.notice { background: #FFF6DB; border: 1px solid #EBD58F; border-radius: var(--radius-sm); padding: 12px 14px; font-size: var(--step--1); }
.admin-save { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 14px 0; background: linear-gradient(transparent, #F2F1ED 30%); flex-wrap: wrap; }
.admin-table th { width: auto; font-weight: 600; }
.admin-table td { white-space: normal; font-weight: 500; }
.admin-table select { font: inherit; padding: 8px 10px; border: 1px solid #CFCABF; border-radius: var(--radius-sm); background: var(--white); min-height: 40px; }
.client-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; flex-wrap: wrap; margin-bottom: 12px; }
.client-head h2 { margin: 0 0 4px; }
.upload { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.upload select { font: inherit; padding: 10px 12px; border: 1px solid #CFCABF; border-radius: var(--radius-sm); min-height: 48px; background: var(--white); }
.admin code { background: var(--paper); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.login-wrap { min-height: calc(100vh - 40px); display: grid; place-items: center; padding: 24px var(--gutter); }
.login-card { width: 100%; max-width: 400px; }
.login-card h1 { font-size: var(--step-2); margin: 20px 0 16px; }
@media (max-width: 760px) {
  .admin-header .wrap { gap: 8px 16px; padding-top: 10px; }
  .admin-user { margin-left: auto; }
  .admin-nav { order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
  .admin-nav a { white-space: nowrap; }
}

/* Home: "You type, I sit with you" panel under the steps, and the single question band */
.type-panel { margin-top: 20px; background: var(--blue-soft); border-color: transparent; box-shadow: none; }
.type-panel h3 { margin-bottom: .4em; }
.type-panel p { margin: 0; max-width: 60em; }
.narrow { max-width: 820px; }
.build-panel { margin-top: 12px; background: var(--white); border: 1.5px dashed #C4BDAE; box-shadow: none; }
.build-panel h3 { margin-bottom: .4em; }
.build-panel p { margin: 0; max-width: 60em; }

/* Admin: overview and account */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.admin .stat-row .panel { margin: 0; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; }
.stat strong { font: 700 1.9rem/1.1 var(--font-head); color: var(--navy); }
.admin-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin .admin-split .panel { margin: 0 0 20px; }
.todo-list, .link-list { list-style: none; padding: 0; margin: 0; }
.todo-list li, .link-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.link-list li { flex-direction: column; align-items: flex-start; gap: 2px; }
.todo-list a, .link-list a { font-weight: 600; }
.tag { display: inline-block; font: 600 12px/1 var(--font-body); padding: 5px 8px; border-radius: 999px; background: var(--paper); color: var(--muted); white-space: nowrap; vertical-align: middle; }
.tag--warn { background: #FDECC8; color: #7A5300; }
.tag--ok { background: #DDF3E4; color: #1E6B3A; }
.login-back { text-align: center; margin-top: 16px; }
.site-footer .admin-link { float: right; color: #8FA0B8; font-size: var(--step--1); margin-left: 16px; }
.site-footer .admin-link:hover { color: var(--white); }
@media (max-width: 860px) { .stat-row { grid-template-columns: 1fr 1fr; } .admin-split { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .site-footer .admin-link { float: none; display: inline-block; margin: 12px 0 0; } }

/* Admin: bookings */
.page-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.filter-bar select { font: inherit; padding: 8px 10px; border: 1px solid #CFCABF; border-radius: var(--radius-sm); background: var(--white); margin-left: 6px; }
.seg { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; }
.seg a[aria-current="page"] { background: var(--navy); color: var(--white); }
.seg a span { font-size: 12px; opacity: .8; margin-left: 4px; }
h2.week { font-size: var(--step-0); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 28px 0 10px; }
.appt-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.appt { display: grid; grid-template-columns: 130px 1fr auto; gap: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.appt-when strong { display: block; font: 700 1.05rem/1.2 var(--font-head); color: var(--navy); }
.appt-when span { font-size: var(--step--1); color: var(--muted); }
.appt-title { margin: 0 0 4px; }
.appt-meta { margin: 0; color: var(--muted); }
.appt-actions { display: flex; flex-direction: column; gap: 6px; text-align: right; white-space: nowrap; }
.appt-answers { margin-top: 10px; }
.appt-answers summary { cursor: pointer; font-size: var(--step--1); font-weight: 600; color: var(--blue); }
.appt-answers dl { margin: 8px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: var(--step--1); }
.appt-answers dt { color: var(--muted); }
.appt-answers dd { margin: 0; }
.tag--call { background: #E1ECFB; color: #164A94; }
.tag--visit { background: #EDE5FA; color: #5B2E9E; }
.tag--check { background: #E3F1F0; color: #1D5E58; }
.appt-mini { list-style: none; padding: 0; margin: 0; }
.appt-mini li { display: grid; grid-template-columns: 170px 90px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.appt-mini .mini-when { font-weight: 600; color: var(--navy); }
@media (max-width: 760px) {
  .appt { grid-template-columns: 1fr; gap: 10px; }
  .appt-actions { flex-direction: row; gap: 16px; text-align: left; flex-wrap: wrap; }
  .appt-mini li { grid-template-columns: 1fr auto; }
  .appt-answers dl { grid-template-columns: 1fr; }
}
.appt-mini .tag { justify-self: start; }

.filters { display: inline-flex; gap: 12px; flex-wrap: wrap; }
.people-panel tr.future th, .people-panel tr.future td { color: var(--muted); font-style: italic; }
.disabled-link { color: var(--muted); text-decoration: underline dotted; cursor: not-allowed; }

/* ---------- Client page (/d/{code}) ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.jump a { font: 600 var(--step--1)/1 var(--font-body); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--navy); text-decoration: none; }
.jump a:hover { border-color: var(--blue); color: var(--blue); }
.cp-block { margin-bottom: 48px; scroll-margin-top: 90px; }
.cp-block > h2 { margin: 0 0 4px; }
.cp-block > .small { margin: 0 0 16px; }
.cp-block h3 { font-size: var(--step-1); margin: 24px 0 12px; }
.next-panel { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.next-panel > h2 { margin-bottom: 16px; }
.next-appt { display: flex; gap: 18px; align-items: center; }
.next-date { flex: none; width: 64px; border-radius: 10px; overflow: hidden; text-align: center; background: var(--paper); border: 1px solid var(--line); font: 600 12px/1.6 var(--font-body); color: var(--muted); text-transform: uppercase; display: grid; }
.next-date span:first-child { background: var(--navy); color: var(--white); }
.next-date strong { font: 700 1.6rem/1.2 var(--font-head); color: var(--navy); }
.next-label { margin: 0; font: 700 var(--step-1)/1.3 var(--font-head); color: var(--navy); }
.next-when { margin: 2px 0 4px; }
.agreed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.agreed li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: start; }
.who { font: 600 12px/1 var(--font-body); padding: 5px 0; border-radius: 999px; text-align: center; background: var(--paper); color: var(--muted); margin-top: 2px; }
.who--you { background: #E1ECFB; color: #164A94; }
.agreed--done > span:last-child { color: var(--muted); text-decoration: line-through; text-decoration-color: #B9C1CE; }
.agreed--done > span:last-child .small { text-decoration: none; }
.doc--note details { margin-top: 4px; }
.doc--note summary { cursor: pointer; color: var(--blue); font-size: var(--step--1); font-weight: 600; }
.doc--note details p { margin: 8px 0 0; }
.doc--note .download-icon { font-size: .62rem; }
.upload-box { border: 2px dashed #B9C1CE; border-radius: var(--radius); background: var(--white); padding: 24px; text-align: center; }
.upload-drop { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.upload-note { margin: 16px auto 12px; text-align: left; max-width: 460px; }
.send-note { margin: 10px 0 0; }
.sent-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.sent-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 12px 16px; }
.sent-list li + li { border-top: 1px solid var(--line); }
.sent-name { font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
@media (max-width: 560px) { .sent-list li { grid-template-columns: 1fr auto; } .sent-list li .small { grid-column: 1; grid-row: 2; } }
.book-card { display: flex; flex-direction: column; align-items: flex-start; }
.book-card .btn { margin-top: auto; }
.book-state { margin: 0 0 16px; }
.private-note { border-top: 1px solid var(--line); padding-top: 20px; }
@media (max-width: 560px) { .drop-hint { display: none; } }
.admin .client h3 { font-size: var(--step-0); margin: 20px 0 8px; }
.cp-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 8px; }
.cp-summary > div { background: var(--paper); border-radius: var(--radius-sm); padding: 12px 14px; display: grid; gap: 2px; }
.cp-summary strong { color: var(--navy); }
.muted-empty { color: var(--muted); margin: 0; }
@media (max-width: 560px) { .cp-summary { grid-template-columns: 1fr; } }
