/* NudeRate — tokens from the MVP UI mockups. */
@font-face { font-family: Manrope; src: url(/static/fonts/manrope.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url(/static/fonts/plex-mono-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url(/static/fonts/plex-mono-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --bg: #F8F7F5;
  --surface: #fff;
  --sunken: #F1EFEB;
  --ink: #1D2330;
  --muted: #586174;
  --line: #E4E3E0;
  --line-strong: #CFCDC8;
  --primary: #51436D;
  --primary-hover: #3B3052;
  --primary-soft: #EFEAF5;
  --link: #51436D;
  --link-hover: #3B3052;
  --on-ink: #fff;
  --danger-solid: #B73748;
  --danger-solid-hover: #9A2C3B;
  --google-bg: #fff;
  --google-line: #CFCDC8;
  --google-ink: #1F1F1F;
  --shadow-card: 0 1px 2px rgba(29, 35, 48, .04), 0 8px 24px -16px rgba(29, 35, 48, .18);
  --ambient-glow: rgba(91, 68, 145, .18);
  --primary-ink: #3E3554;
  --lavender: #C9C1D8;
  --ok: #287A5A;
  --ok-soft: #E8F2ED;
  --ok-line: #BFDCCD;
  --warn: #A6631C;
  --warn-soft: #FBF3EA;
  --warn-line: #E7C9A6;
  --warn-ink: #5E3A12;
  --danger: #B73748;
  --danger-soft: #FBEDEF;
  --danger-line: #E8B9C0;
  --danger-ink: #7A1F2C;
  --photo: #151923;
  --photo-line: #2A303C;
  --disabled-bg: #D9D6E0;
  --disabled-ink: #6B6578;
  --admin: #1D2330;
  --admin-raised: #2E3546;
  --admin-muted: #B5BAC6;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-pop: 0 12px 32px -8px rgba(21, 25, 35, .35);
  --sans: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light dark;
}

/* Dark theme: follows the device setting. A designed palette, not an inversion, so photos and the
   brand purple keep their character. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111217;
    --surface: #1A1C23;
    --sunken: #23262F;
    --ink: #ECEDF2;
    --muted: #A0A7B6;
    --line: #2A2E39;
    --line-strong: #3B404D;
    --primary: #6F5C9E;
    --primary-hover: #7E6BAF;
    --primary-soft: #2A2440;
    --primary-ink: #D9D0F2;
    --link: #C4B6EC;
    --link-hover: #DDD3F7;
    --lavender: #4E4570;
    --on-ink: #111217;
    --ok: #5CC79A;
    --ok-soft: #15302A;
    --ok-line: #25503F;
    --warn: #E5A462;
    --warn-soft: #33261A;
    --warn-line: #5C4227;
    --warn-ink: #F2CDA0;
    --danger: #F2808F;
    --danger-soft: #3A1C23;
    --danger-line: #6B2C37;
    --danger-ink: #F7B8C1;
    --danger-solid: #C2414F;
    --danger-solid-hover: #D0505E;
    --photo: #0B0D11;
    --photo-line: #232733;
    --disabled-bg: #2D2B37;
    --disabled-ink: #8D889B;
    --admin: #0D0F14;
    --admin-raised: #222634;
    --google-bg: #131314;
    --google-line: #8E918F;
    --google-ink: #E3E3E3;
    --shadow-pop: 0 16px 40px -8px rgba(0, 0, 0, .7);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -16px rgba(0, 0, 0, .6);
    --ambient-glow: rgba(112, 81, 190, .34);
  }
  .hero-tile-img::after { background: rgba(17, 18, 23, .12); }
  .hero-card { box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .8); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
h1, h2, h3, h4, p { margin: 0; }
h1 { font: 700 32px/1.15 var(--sans); letter-spacing: -.01em; text-wrap: pretty; }
h2, .h2 { font: 700 26px/1.2 var(--sans); text-wrap: pretty; }
.h3 { font: 700 22px/1.25 var(--sans); }
.h4 { font: 700 18px/1.3 var(--sans); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
fieldset { margin: 0; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--on-ink); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- utilities ---------- */
.stack, .stack-xs, .stack-sm, .stack-lg { display: flex; flex-direction: column; }
.stack-xs { gap: 4px; } .stack-sm { gap: 10px; } .stack { gap: 16px; } .stack-lg { gap: 24px; }
.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-between.end, .row.end { align-items: flex-end; }
.gap-sm { gap: 10px; } .wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.self-start { align-self: flex-start; } .self-end { align-self: flex-end; }
.center { text-align: center; } .mt-sm { margin-top: 6px; }
.narrow { max-width: 640px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .dim { color: var(--admin-muted); }
.mono { font-family: var(--mono); font-weight: 500; }
.big-mono { font: 500 16px/1.4 var(--mono); } .break { word-break: break-all; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); }
.warn-text { color: var(--warn) !important; } .danger-text { color: var(--danger) !important; }
.warn-border { border-color: var(--warn-line) !important; } .danger-border { border-color: var(--danger-line) !important; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; font: 800 20px/1 var(--sans); color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.logo:hover { color: var(--ink); }
.logo-sm { font-size: 18px; }
.logo-dots { display: inline-flex; gap: 3px; }
.logo-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--primary); }
.logo-dots i.dim { background: var(--lavender); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 18px; border-radius: var(--radius-sm); border: 1px solid transparent; font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; text-align: center; transition: background-color .15s, border-color .15s; }
.btn-sm { min-height: 40px; padding: 9px 14px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 15px 24px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { border-color: var(--muted); color: var(--ink); }
.btn-ghost { background: none; color: var(--link); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-danger { background: var(--danger-solid); color: #fff; }
.btn-danger:hover { background: var(--danger-solid-hover); color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--disabled-bg); color: var(--disabled-ink); border-color: transparent; cursor: not-allowed; }
.btn-google { background: var(--google-bg); border-color: var(--google-line); color: var(--google-ink); font-weight: 600; }
.btn-google:hover { border-color: var(--muted); color: var(--google-ink); background: var(--sunken); }
.google-g { width: 20px; height: 20px; flex: none; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.text-link { font-weight: 600; font-size: 14px; text-decoration: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 700; list-style: none; }
.icon-btn::-webkit-details-marker { display: none; }

/* ---------- pills, chips, notices ---------- */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font: 600 12px/1.3 var(--sans); white-space: nowrap; }
.pill-primary { background: var(--primary-soft); color: var(--link); font-size: 13px; padding: 6px 12px; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-line); }
.pill-danger { background: var(--danger-soft); color: var(--danger); }
.pill-muted { background: var(--sunken); color: var(--muted); }
.chip { display: inline-flex; padding: 3px 8px; border-radius: 6px; background: var(--sunken); color: var(--muted); font: 600 12px/1.4 var(--sans); }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.tag-outline { font: 600 12px var(--sans); border: 1px solid var(--ink); border-radius: 6px; padding: 3px 7px; }
.flash { padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; border: 1px solid; }
.flash-ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-line); }
.flash-warn { background: var(--warn-soft); color: var(--warn-ink); border-color: var(--warn-line); }
.flash-danger { background: var(--danger-soft); color: var(--danger-ink); border-color: var(--danger-line); }
.app-content > .flash, .admin-main > .flash { margin-bottom: 20px; }
.notice { padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.notice-warn { background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--warn-ink); }
.notice-danger { background: var(--danger-soft); color: var(--danger-ink); font-weight: 500; }

/* ---------- cards & forms ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card-tint { background: var(--primary-soft); border-color: transparent; color: var(--primary-ink); }
.card-foot { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; }
.card-legend { font-weight: 700; padding: 0; float: left; width: 100%; margin-bottom: 4px; }
.card-legend + * { clear: both; }
.form { max-width: 440px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-weight: 600; font-size: 14px; }
.input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font-size: 16px; }
textarea.input { min-height: 64px; resize: vertical; }
.input:focus { outline: none; border: 2px solid var(--primary); padding: 10px 13px; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input-group { display: flex; position: relative; }
.input-group .input { padding-right: 72px; }
.input-addon { position: absolute; right: 4px; top: 4px; bottom: 4px; padding: 0 12px; border: 0; background: none; color: var(--link); font-weight: 600; font-size: 14px; cursor: pointer; border-radius: 8px; }
.field-error { display: block; color: var(--danger); font-weight: 600; font-size: 13px; margin-top: 4px; }
.checks { display: flex; flex-direction: column; gap: 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--link); cursor: pointer; }
.check-sm { font-size: 14px; gap: 10px; align-items: center; }
.check-sm input { width: 18px; height: 18px; margin: 0; }
.check:has(input[aria-invalid="true"]) input { outline: 2px solid var(--danger); outline-offset: 1px; }

/* ---------- public site ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 56px; border-bottom: 1px solid var(--line); }
.site-nav { display: flex; align-items: center; gap: 28px; font: 500 15px var(--sans); }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--link); }
.site-nav-mobile { display: none; align-items: center; gap: 16px; }
.nav-login { font-weight: 600; color: var(--ink); text-decoration: none; }
.menu, .card-menu { position: relative; }
.menu summary, .card-menu summary { list-style: none; }
.menu summary::-webkit-details-marker, .card-menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 6px; display: flex; flex-direction: column; }
.menu-panel a, .menu-panel button { display: block; width: 100%; padding: 13px 12px; border-radius: 8px; border: 0; background: none; text-align: left; font: 500 15px var(--sans); color: var(--ink); text-decoration: none; cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--sunken); }
.menu-panel .danger { color: var(--danger); font-weight: 600; }
.card-menu .icon-btn { width: 32px; height: 32px; border: 0; color: var(--muted); font-size: 16px; }
.card-menu[open] .icon-btn { outline: 2px solid var(--primary); }

.public main { max-width: 1280px; margin: 0 auto; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 88px 56px 72px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero h1 { font-size: 52px; line-height: 1.08; letter-spacing: -.02em; }
.hero .lead { max-width: 500px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 40px -24px rgba(29, 35, 48, .25); position: relative; z-index: 0; }
.hero-card::before, .results > .results-mock::before { content: ''; position: absolute; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at center, var(--ambient-glow) 0, transparent 70%); filter: blur(18px); }
.hero-card::before { inset: -13% -11%; }
.hero-card-head { display: flex; justify-content: space-between; align-items: center; font: 600 14px var(--sans); }
.hero-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hero-tile { display: flex; flex-direction: column; gap: 6px; position: relative; transition: transform .18s ease, filter .18s ease; }
.hero-tile:hover { transform: translateY(-4px); filter: saturate(1.08); }
.hero-tile-img { aspect-ratio: 4 / 5; border-radius: 10px; background: linear-gradient(160deg, #D9D3E3, #C4CAD6); position: relative; overflow: hidden; }
.hero-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-tile-img::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .12); }
.hero-tile-featured .hero-tile-img { box-shadow: 0 12px 28px -12px rgba(81, 67, 109, .7); outline: 2px solid var(--primary); outline-offset: 2px; }
.hero-tile-bar { display: flex; gap: 3px; }
.hero-tile-bar i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.hero-tile-bar i.on { background: var(--primary); }
.hero-score-badge { position: absolute; right: 7px; bottom: 13px; z-index: 3; padding: 5px 7px; border-radius: 7px; color: #fff; background: rgba(11, 13, 17, .88); box-shadow: 0 6px 18px rgba(0, 0, 0, .28); backdrop-filter: blur(8px); font: 600 10px/1.2 var(--sans); white-space: nowrap; }
.hero-score-badge strong { font-size: 13px; }
.hero-rating-demo { padding: 13px 14px 11px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(135deg, var(--primary-soft), var(--sunken)); box-shadow: var(--shadow-card); transition: border-color .18s, box-shadow .18s; }
.hero-rating-demo.is-rated { border-color: var(--primary); box-shadow: 0 10px 26px -18px var(--primary); }
.hero-rating-demo-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hero-rating-demo-head label { font: 700 12px/1.3 var(--sans); }
.hero-rating-demo-head > span { color: var(--link); font: 800 22px/1 var(--sans); }
.hero-rating-demo-head small { font-size: 11px; color: var(--muted); }
.hero-rating-demo input[type='range'] { display: block; width: 100%; height: 24px; margin: 5px 0 0; accent-color: var(--primary); cursor: pointer; }
.hero-rating-demo-foot { display: grid; grid-template-columns: 16px 1fr 20px; gap: 6px; color: var(--muted); font: 500 10px/1.3 var(--sans); text-align: center; }
.hero-card figcaption { font: 500 12px var(--sans); color: var(--muted); }
.privacy-architecture { padding: 34px 56px 38px; display: flex; flex-direction: column; gap: 24px; }
.privacy-architecture-head { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; align-items: start; }
.privacy-architecture-head > .mono { color: var(--link); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding-top: 7px; }
.privacy-architecture-head h2 { font-size: 26px; }
.privacy-architecture-head p { color: var(--muted); margin-top: 5px; }
.privacy-architecture-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.privacy-architecture-item { min-width: 0; padding: 20px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.privacy-architecture-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--link); background: var(--primary-soft); margin-bottom: 2px; }
.privacy-architecture-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.privacy-architecture-item h3 { font: 700 15px/1.35 var(--sans); }
.privacy-architecture-item p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.privacy-architecture-limit { color: var(--muted); font-size: 13px; max-width: 96ch; }
.privacy-architecture-limit strong { color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0 56px 72px; scroll-margin-top: 24px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.step-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.step-visual { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; color: var(--link); background: linear-gradient(145deg, var(--primary-soft), var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--line)); }
.step-visual svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.step-copy { display: flex; flex-direction: column; gap: 10px; }
.step-n { font-size: 13px; color: var(--link); }
.step-t { font: 700 20px/1.3 var(--sans); }
.step-d { font-size: 15px; color: var(--muted); }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contribute { padding: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 56px; }
.contribute > div:first-child { display: flex; flex-direction: column; gap: 12px; }
.contribute h2 { font-size: 30px; }
.contribute p { color: var(--muted); }
.tiers { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tier { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.tier + .tier { border-left: 1px solid var(--line); }
.tier-on { background: var(--primary-soft); }
.tier-who { font: 600 13px var(--sans); color: var(--muted); }
.tier-on .tier-who { color: var(--link); }
.tier-what { font: 600 15px var(--sans); }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); padding: 48px 56px; gap: 24px; }
.trust h3 { font: 700 16px var(--sans); margin-bottom: 6px; }
.trust p { font-size: 14px; color: var(--muted); }
.faq { padding: 0 56px 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; }
.faq h2 { font-size: 30px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font: 600 16px var(--sans); cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--muted); }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { padding: 0 0 18px; color: var(--muted); max-width: 640px; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 56px; border-top: 1px solid var(--line); font: 500 14px var(--sans); color: var(--muted); }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer .footer-guides { flex-basis: 100%; order: 3; gap: 8px 24px; }
.site-footer > span { order: 4; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.doc { max-width: 720px; padding: 64px 56px; display: flex; flex-direction: column; gap: 16px; }
.doc h2 { font-size: 20px; margin-top: 12px; }
.doc p { color: var(--ink); }
.doc .lead { color: var(--muted); }
.doc-cta { margin-top: 16px; }
.doc-related { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.contact-form { margin-top: 8px; }
select.input { appearance: none; padding-right: 40px; background: var(--surface) url(/static/chevron.svg) no-repeat right 14px center / 12px 8px; cursor: pointer; }
/* Honeypot: invisible to people, tempting to form-filling bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- focused pages ---------- */
.focus-header { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; }
.focus-title { font-weight: 700; flex: 1; }
.focus-main { max-width: 480px; margin: 0 auto; padding: 28px 20px 48px; }
.focus-main.wide { max-width: 1200px; padding: 28px 40px 48px; }
.state-card { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.state-card span { color: var(--muted); font-size: 13px; }
.tone-ok strong { color: var(--ok); } .tone-warn strong { color: var(--warn); } .tone-danger strong { color: var(--danger); } .tone-muted strong { color: var(--muted); }
/* Age check: a centred card with an 18+ badge, day/month/year fields and a privacy panel. */
.age-card { display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; box-shadow: var(--shadow-card); margin-top: 24px; }
.age-card > h1, .age-card > p { text-align: center; }
.age-badge { position: relative; width: 72px; height: 72px; margin: 0 auto 4px; display: grid; place-items: center; }
.age-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--primary-soft); stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; }
.age-badge span { position: relative; font: 800 19px var(--sans); color: var(--link); margin-top: -2px; }
.age-icon { width: 64px; height: 64px; margin: 0 auto 4px; border-radius: 50%; display: grid; place-items: center; font: 700 28px var(--sans); }
.age-icon-ok { background: var(--ok-soft); color: var(--ok); }
.age-icon-muted { background: var(--sunken); color: var(--muted); }
.dob { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.dob legend { padding: 0; margin-bottom: 6px; }
.dob-fields { display: grid; grid-template-columns: 1fr 1.7fr 1.2fr; gap: 10px; }
.dob-fields label { display: flex; flex-direction: column; gap: 4px; }
.dob-fields .input { text-align: left; }
.keep { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.keep > div { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 12px; background: var(--sunken); font-size: 13px; }
.keep strong { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.keep > div:first-child span { color: var(--ok); font-weight: 600; }
.keep > div:last-child span { color: var(--ink); }
.next-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.next-steps a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.next-steps a:hover { border-color: var(--primary); color: var(--ink); }
.next-steps span { font-size: 14px; color: var(--muted); }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px 20px 28px; }
.bullets { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.radio-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; padding: 0; }
.radio-list label { display: flex; gap: 12px; align-items: center; min-height: 48px; padding: 0 14px; border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 500; font-size: 15px; }
.radio-list label:last-child { border-bottom: 0; }
.radio-list label:has(input:checked) { background: var(--primary-soft); }
.radio-list input { width: 20px; height: 20px; margin: 0; accent-color: var(--link); }
.success-mark { width: 48px; height: 48px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: flex; align-items: center; justify-content: center; font: 700 22px var(--sans); }

/* ---------- member app shell ---------- */
.app-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--surface); border-right: 1px solid var(--line); padding: 24px 14px 16px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.sidebar > .logo { padding: 0 12px 26px; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--muted); font: 500 15px var(--sans); text-decoration: none; transition: background-color .15s, color .15s; }
.sidebar nav a svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sidebar nav a:hover { background: var(--sunken); color: var(--ink); }
.sidebar nav a.active { background: var(--primary-soft); color: var(--link); font-weight: 700; }
.sidebar nav .nav-mod { margin-top: 10px; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-sm) var(--radius-sm); padding-top: 14px; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.access-box { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.access-box > div { background: var(--sunken); border-radius: var(--radius-sm); padding: 9px 11px; }
.access-box dt { font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.access-box dd { margin: 2px 0 0; font: 600 13px var(--sans); color: var(--muted); display: flex; align-items: center; gap: 6px; }
.access-box dd::before { content: ''; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.access-box .is-on dd { color: var(--ok); }
.access-box .is-on dd::before { background: currentColor; }
.profile-card { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 8px; }
.profile-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; padding: 2px; border-radius: 8px; }
.profile-link:hover { color: var(--ink); }
.avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font: 700 14px var(--sans); }
.profile-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.profile-text strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-text small { font-size: 12px; color: var(--muted); }
.icon-btn-quiet { border-color: transparent; background: none; color: var(--muted); width: 40px; height: 40px; }
.icon-btn-quiet:hover { background: var(--sunken); color: var(--ink); }
.icon-btn-quiet svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-topbar { display: none; }
.app-content { padding: 36px 48px 56px; width: 100%; max-width: 1720px; }
.page-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.page-head.row-between { flex-direction: row; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.bottom-nav { display: none; }

.progress-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 720px; }
.step-card { display: flex; gap: 16px; align-items: flex-start; }
.step-mark { flex: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--sunken); color: var(--muted); font: 700 14px var(--sans); }
.step-card.is-done .step-mark { background: var(--ok-soft); color: var(--ok); }

.banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--primary-soft); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; }
.banner > div { display: flex; flex-direction: column; gap: 4px; }
.banner span { font-size: 14px; color: var(--primary-ink); }
.banner .btn { flex: none; }
.segmented { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 3px; font: 600 14px var(--sans); }
.segmented a { padding: 8px 14px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.segmented a.active { background: var(--ink); color: var(--on-ink); }
.switch-form { display: inline-flex; }
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; font: 600 14px var(--sans); cursor: pointer; }
.switch-track { width: 36px; height: 20px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background-color .15s; }
.switch-thumb { position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch[aria-checked="true"] .switch-track { background: var(--primary); }
.switch[aria-checked="true"] .switch-thumb { transform: translateX(16px); }
.empty { display: flex; flex-direction: column; gap: 8px; padding: 32px; max-width: 640px; }
/* Gallery empty state: centred, with three fanned-out "covered photo" cards as the illustration. */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 72px 24px 80px; margin-top: 8px; border: 1px dashed var(--line-strong); border-radius: 20px; background: var(--surface); }
.empty-state h2 { font-size: 22px; }
.empty-state p { color: var(--muted); max-width: 460px; }
.empty-state .actions { justify-content: center; margin-top: 8px; }
.empty-art { position: relative; width: 150px; height: 120px; margin-bottom: 12px; }
.empty-art i { position: absolute; top: 10px; left: 50%; width: 72px; height: 90px; margin-left: -36px; border-radius: 10px; border: 3px solid var(--surface); box-shadow: var(--shadow-card);
  background: var(--photo) repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 6px, transparent 6px 12px); }
.empty-art i:nth-child(1) { transform: translateX(-44px) rotate(-12deg); background: linear-gradient(160deg, var(--lavender), var(--primary)); opacity: .75; }
.empty-art i:nth-child(3) { transform: translateX(44px) rotate(12deg); background: linear-gradient(200deg, var(--primary-soft), var(--lavender)); opacity: .9; }
.empty-art i:nth-child(2) { z-index: 1; top: 0; }


/* A photo, or the cover that stands in for it until revealed. */
.media { position: relative; aspect-ratio: 4 / 5; background: var(--photo); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.is-covered { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 10px, transparent 10px 20px); }
.media-cover { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #D5D8E0; font: 600 13px var(--sans); text-align: center; padding: 8px; }
.media-cover .icon { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.reveal-btn { color: #D5D8E0; border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px; padding: 9px 14px; text-decoration: none; font-weight: 600; }
.reveal-btn:hover { color: #fff; border-color: #fff; }
.media-compact .reveal-btn { padding: 4px 8px; font-size: 12px; }
.reveal-all-btn { color: #D5D8E0; font: 600 12px var(--sans); text-decoration: underline; text-underline-offset: 3px; padding: 8px; opacity: .85; }
.reveal-all-btn:hover { color: #fff; opacity: 1; }
.reveal-notice { position: fixed; z-index: 30; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); background: var(--ink); color: var(--on-ink); border-radius: 12px; padding: 10px 16px; font: 600 14px var(--sans); box-shadow: var(--shadow-pop); }
.reveal-notice a { color: inherit; }
@media (min-width: 901px) { .reveal-notice { bottom: 32px; } }
.media-empty { background: var(--sunken); }

.detail-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.detail { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: 32px; align-items: start; }
.stage { background: var(--photo); border-radius: 16px; padding: 32px; display: flex; align-items: center; justify-content: center; min-height: 560px; }
.stage .media { width: 100%; max-width: 440px; border-radius: 6px; aspect-ratio: auto; min-height: 300px; }
.stage .media img { object-fit: contain; height: auto; max-height: 72vh; }
.stage .media.is-covered { aspect-ratio: 4 / 5; border: 1px solid var(--photo-line); }
.stage-sm { min-height: 0; padding: 20px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; border: 0; }
.scale-opt { position: relative; }
.scale-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.scale-opt span { height: 52px; border-radius: var(--radius-sm); border: 1px solid transparent; background: var(--score); color: #fff; font: 600 18px var(--sans); display: flex; align-items: center; justify-content: center; transition: background-color .1s; }
.scale-opt input:hover + span { border-color: var(--ink); }
.scale-opt input:checked + span { border-color: transparent; font-weight: 800; box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--ink); }
.scale-opt input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.scale.is-disabled { opacity: .45; }
.scale.is-disabled .scale-opt span { border-style: dashed; border-color: var(--line-strong); background: transparent; color: var(--muted); height: 44px; font-size: 16px; }
.scale.is-disabled .scale-opt input:checked + span { opacity: 1; border-style: solid; border-color: transparent; background: var(--score); color: #fff; }
.scale.is-disabled:has(input:checked) { opacity: 1; }
.scale-legend { display: flex; justify-content: space-between; font: 500 13px var(--sans); color: var(--muted); }
.toast { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ok-soft); border: 1px solid var(--ok-line); border-radius: 12px; padding: 14px 16px; }
.toast strong { color: var(--ok); font-size: 14px; }

.wizard { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.wizard li { display: flex; flex-direction: column; gap: 8px; font: 600 13px var(--sans); color: var(--muted); }
.wizard-bar { height: 4px; border-radius: 2px; background: var(--line); }
.wizard li.done .wizard-bar, .wizard li.current .wizard-bar { background: var(--primary); }
.wizard li.current { color: var(--ink); }
.wizard-body { display: grid; gap: 40px; }
.wizard-body.has-aside { grid-template-columns: minmax(0, 1fr) 340px; }
.wizard-main { max-width: 720px; }
.wizard-main h1 { font-size: 30px; }
.rule-list { margin: 0; padding: 18px 18px 18px 38px; display: flex; flex-direction: column; gap: 12px; }
.dropzone { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; border: 2px dashed var(--line-strong); border-radius: 12px; padding: 24px; cursor: pointer; }
.dropzone:hover, .dropzone:focus-within { border-color: var(--link); }
.dropzone-title { font-weight: 700; }
.dropzone input { font-size: 14px; max-width: 100%; }
.btn-capture { gap: 8px; cursor: pointer; }
.btn-capture:focus-within { outline: 3px solid var(--primary); outline-offset: 2px; }
.btn-capture .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .btn-capture { display: none; } }
.upload-progress { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.upload-bar { height: 8px; border-radius: 4px; background: var(--sunken); overflow: hidden; }
.upload-bar i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .2s; }
.upload-progress.is-error { color: var(--danger); }
.upload-progress.is-error .upload-bar i { background: var(--danger); }
.preview-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }

/* My photos: the current photo as a featured card, earlier photos as a grid. */
.current-photo { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 32px; padding: 24px; box-shadow: var(--shadow-card); max-width: 1100px; }
.current-media .media { border-radius: 12px; }
.current-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 4px 0; }
.current-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eyebrow { font: 600 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.current-body h2 { font-size: 28px; }
.current-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.track { list-style: none; margin: 4px 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 520px; }
.track li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font: 600 13px var(--sans); color: var(--muted); }
.track li::before { content: ''; position: absolute; top: 13px; left: 30px; right: 4px; height: 2px; background: var(--line); }
.track li:last-child::before { display: none; }
.track li.done::before { background: var(--ok); }
.track-dot { position: relative; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--sans); background: var(--sunken); color: var(--muted); border: 2px solid var(--line); }
.track li.done { color: var(--ink); }
.track li.done .track-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.track li.current { color: var(--ink); }
.track li.current .track-dot { background: var(--primary-soft); border-color: var(--primary); color: var(--link); }
.track li.attention { color: var(--warn); }
.track li.attention .track-dot { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.meta { display: flex; gap: 28px; margin: 0; }
.meta dt { font: 600 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.meta dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; }
.mod-note { border-left: 3px solid var(--warn); background: var(--warn-soft); border-radius: 0 10px 10px 0; padding: 10px 14px; }
.mod-note-label { font: 700 12px var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--warn-ink); }
.mod-note p { margin-top: 4px; font-size: 14px; color: var(--ink); }
.section-title { font-size: 18px; margin: 36px 0 14px; }
.history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.history-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-card); }
.history-body { display: flex; flex-direction: column; gap: 10px; padding: 14px; flex: 1; }
.history-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.empty-steps { list-style: none; margin: 10px 0 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.empty-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--sunken); border-radius: 999px; font-size: 14px; font-weight: 600; }
.empty-steps b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 12px; }
.note summary { cursor: pointer; font-weight: 600; color: var(--link); font-size: 14px; }
.note p { margin-top: 6px; padding: 10px 12px; background: var(--sunken); border-radius: 8px; font-size: 14px; }

.big-number { font: 700 44px/1 var(--sans); }
.big-number small { font: 600 18px var(--sans); color: var(--muted); }
.segments { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.segments i { height: 8px; border-radius: 2px; background: var(--line); }
.segments i.on { background: var(--primary); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { font: 700 32px/1.1 var(--sans); }
.histogram { width: 100%; height: auto; }

.list-nav { padding: 6px; display: flex; flex-direction: column; margin-bottom: 16px; }
.list-nav a { padding: 14px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; text-decoration: none; display: flex; justify-content: space-between; }
.list-nav a::after { content: '›'; color: var(--muted); }
.list-nav a:hover { background: var(--sunken); }
.danger-zone { border-color: var(--danger-line); }

/* ---------- moderation ---------- */
.admin-shell { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--admin); color: #E7E9EE; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-brand { padding: 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--admin-raised); font: 800 16px var(--sans); }
.badge-2fa { font: 600 11px var(--sans); color: var(--ink); background: var(--lavender); padding: 3px 8px; border-radius: 999px; text-decoration: none; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 16px; font: 600 13px var(--sans); }
.admin-tabs a { padding: 8px 12px; border-radius: 8px; color: var(--admin-muted); text-decoration: none; }
.admin-tabs a.active { background: var(--admin-raised); color: #fff; }
.admin-queue { display: flex; flex-direction: column; }
.admin-queue a { padding: 14px 20px; border-top: 1px solid var(--admin-raised); display: flex; flex-direction: column; gap: 6px; color: #E7E9EE; text-decoration: none; font-size: 13px; }
.admin-queue a:hover, .admin-queue a.active { background: var(--admin-raised); }
.flag { font: 600 12px var(--sans); }
.flag-ok { color: #8FD1B1; } .flag-warn { color: #E8B877; } .flag-danger { color: #F0A3AE; }
.admin-empty { padding: 20px; color: var(--admin-muted); font-size: 14px; }
.admin-side-foot { margin-top: auto; padding: 20px; }
.admin-side-foot a { color: var(--admin-muted); font-size: 14px; }
.admin-main { padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.admin-placeholder { display: flex; flex-direction: column; gap: 8px; }
.review-grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 24px; align-items: start; }
.review-grid .stage { min-height: 0; padding: 20px; border-radius: var(--radius); }
.action-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; flex-wrap: wrap; }
.action-bar > span { font-weight: 500; font-size: 14px; flex: 1 1 280px; }
.audit-row { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.audit-row .mono { font-size: 12px; width: 130px; flex: none; }

/* ---------- responsive ---------- */
/* ---------- public pages: landing additions ---------- */
.hero-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font: 600 13px var(--sans); color: var(--muted); }
.hero-facts li::before { content: '✓'; color: var(--ok); margin-right: 6px; }
.activity-pulse { display: inline-flex; align-items: center; gap: 9px; max-width: 500px; margin: 0; color: var(--muted); font: 500 13px/1.4 var(--sans); }
.activity-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); animation: pulse-dot 2.4s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--ok) 8%, transparent); } }
.hero-sub { color: var(--muted); font-size: 15px; margin: -10px 0 0; max-width: 500px; }
.hero-rating-demo-head label small { display: block; font: 500 11px/1.3 var(--sans); color: var(--muted); }
.hero-rating-demo input[type='range'] { -webkit-appearance: none; appearance: none; background: transparent; }
.hero-rating-demo input[type='range']::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--primary), var(--lavender)); }
.hero-rating-demo input[type='range']::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--primary), var(--lavender)); }
.hero-rating-demo input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--primary); border: 3px solid var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 28%, transparent), 0 4px 12px rgba(0, 0, 0, .25); cursor: grab; transition: box-shadow .15s; }
.hero-rating-demo input[type='range']::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--primary); border: 3px solid var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 28%, transparent), 0 4px 12px rgba(0, 0, 0, .25); cursor: grab; }
.hero-rating-demo input[type='range']:hover::-webkit-slider-thumb, .hero-rating-demo input[type='range']:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 7px color-mix(in srgb, var(--primary) 32%, transparent), 0 4px 12px rgba(0, 0, 0, .25); }
.hero-rating-demo input[type='range']:active::-webkit-slider-thumb { cursor: grabbing; }
.tier-list { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.tier-list li::marker { content: '✓  '; }
.final-cta { padding: 0 56px 72px; }
.final-cta-card { background: var(--primary-soft); border: 1px solid transparent; border-radius: 20px; padding: 40px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.final-cta-card h2 { font-size: 30px; color: var(--primary-ink); }
.final-cta-card p { color: var(--primary-ink); max-width: 60ch; }
.final-cta-card .actions { margin-top: 6px; }
.section-title { font-size: 28px; padding: 0 56px 24px; }
.steps-wrap { padding-bottom: 72px; }
.steps-wrap .steps { padding-bottom: 0; }
.step-d a { color: var(--link); }
.results { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; padding: 56px; align-items: center; }
.results-copy { display: flex; flex-direction: column; gap: 14px; }
.results-copy h2 { font-size: 30px; }
.results-copy p, .results-copy li { color: var(--muted); }
.results-copy ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.results-mock { margin: 0; max-width: 420px; width: 100%; display: flex; flex-direction: column; gap: 14px; padding: 20px; box-shadow: var(--shadow-card); position: relative; z-index: 0; }
.results > .results-mock::before { inset: -24% -18%; }
.results-mock-head { display: flex; justify-content: space-between; align-items: center; font: 600 14px var(--sans); }
.results-mock-score { display: flex; align-items: baseline; gap: 10px; }
.results-mock-score strong { font: 800 44px/1 var(--sans); letter-spacing: -.02em; }
.results-mock-score span { color: var(--muted); font-size: 14px; }
.results-mock-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.results-mock-chart-head strong { font-size: 13px; }
.results-mock-chart-head span { color: var(--muted); font-size: 11px; text-align: right; }
.results-mock-bars { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; align-items: end; height: 96px; }
.results-mock-bars div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; }
.results-mock-bars i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: var(--lavender); opacity: .85; }
.results-mock-bars .focus i { background: var(--primary); opacity: 1; box-shadow: 0 0 14px color-mix(in srgb, var(--primary) 25%, transparent); }
.results-mock-bars .h0 { height: 2px; background: var(--line); } .results-mock-bars .h1 { height: 14%; } .results-mock-bars .h2 { height: 28%; }
.results-mock-bars .h4 { height: 56%; } .results-mock-bars .h5 { height: 70%; } .results-mock-bars .h6 { height: 84%; } .results-mock-bars .h7 { height: 100%; }
.results-mock-bars b { font: 500 11px var(--mono); color: var(--muted); }
.results-mock-context { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.results-mock-context > span { color: var(--muted); font-size: 11px; }
.results-mock-context > div { display: flex; flex-wrap: wrap; gap: 6px; }
.results-mock-context b { padding: 4px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink); font: 600 11px/1.2 var(--sans); }
.results-mock figcaption { font: 500 12px var(--sans); color: var(--muted); }
.doc .results-mock { margin: 4px 0 8px; }
.contribute { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.tier-what a { color: inherit; }
.guides-row { padding: 0 0 64px; border-top: 1px solid var(--line); padding-top: 48px; }
.guides-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; padding: 0 56px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .15s; }
.guide-card:hover { border-color: var(--primary); color: var(--ink); }
.guide-card strong { font-size: 15px; }
.guide-card span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.faq-list summary:hover { color: var(--link); }
.faq-list summary::after { font-size: 20px; line-height: 1; }
.faq-list details p a { color: var(--link); }

/* ---------- public pages: long-form documents ---------- */
.doc { max-width: 820px; margin: 0 auto; }
.doc h2 { font-size: 24px; margin-top: 20px; }
.doc h3 { font: 700 17px/1.3 var(--sans); margin-top: 8px; }
.doc p, .doc li { max-width: 72ch; }
.doc ul, .doc ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 24px; }
.doc-body { display: flex; flex-direction: column; gap: 20px; }
.doc code { font: 500 14px var(--mono); background: var(--sunken); padding: 2px 6px; border-radius: 6px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font: 500 13px var(--sans); color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.byline { font: 500 13px var(--sans); color: var(--muted); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; }
.toc strong { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 24px; gap: 2px; display: block; }
.toc li { font-size: 14px; padding: 2px 0; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.doc-faq { margin-top: 12px; }
.doc-faq .faq-list summary { font-size: 15px; padding: 14px 0; }
.doc-faq .faq-list details p { max-width: none; }
.doc-related { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.doc-related a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); text-decoration: none; }
.doc-related a span { font-weight: 600; }
.doc-related a small { color: var(--muted); font-size: 13px; }
.doc-related a:hover { border-color: var(--primary); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; }
.doc caption { text-align: left; font-weight: 600; padding: 10px 12px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--line); }
.doc thead th { border-top: 0; background: var(--sunken); font-size: 13px; }
.doc tbody th { font-weight: 600; }
.cell-yes { color: var(--ok); font-weight: 600; } .cell-no { color: var(--danger); font-weight: 600; }
.timeline { list-style: none; padding: 0; counter-reset: step; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 44px; counter-increment: step; }
.timeline li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font: 700 13px/28px var(--sans); text-align: center; }
.timeline li::after { content: ''; position: absolute; left: 13px; top: 30px; bottom: -2px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.checklist { list-style: none; padding: 0; gap: 0; counter-reset: item; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.checklist li { counter-increment: item; padding: 10px 14px 10px 46px; position: relative; border-top: 1px solid var(--line); max-width: none; }
.checklist li:first-child { border-top: 0; }
.checklist li::before { content: counter(item, decimal-leading-zero); position: absolute; left: 14px; top: 11px; font: 500 13px var(--mono); color: var(--link); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two-col .card { display: flex; flex-direction: column; gap: 10px; }
.two-col .card ul { padding-left: 18px; }
.list-ok li::marker { color: var(--ok); } .list-no li::marker { color: var(--danger); }
.owner-card { display: flex; gap: 16px; align-items: center; }
.avatar-lg { width: 56px; height: 56px; font-size: 22px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.contact-side .card { gap: 6px; }
.contact-side strong { font-size: 14px; }
.region-notice { margin: 20px 56px 0; }
.help-centre .card details { border-top: 1px solid var(--line); padding: 8px 0 0; }
.help-centre .card details:first-of-type { border-top: 0; }
.help-centre summary { font-weight: 600; cursor: pointer; font-size: 15px; }
.help-centre details p { padding: 6px 0 8px; color: var(--muted); font-size: 14px; }
.help-centre .help-group details { scroll-margin-top: 24px; }
.help-centre .help-group details p { max-width: none; }
.help-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.help-top .chip { font-size: 13px; padding: 6px 10px; text-decoration: none; color: var(--ink); background: var(--primary-soft); }
.help-top .chip:hover { color: var(--primary-ink); }
.doc .help-centre .toc ol { columns: 1; }

/* Transparency: totals strip and the submissions/approvals chart. */
.doc .tr-totals { padding: 0; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.doc .tr-totals .number strong { font-size: 28px; }
.tr-chart { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 10px; }
.tr-chart svg { width: 100%; max-width: 640px; height: auto; display: block; }
.tr-chart .tr-axis { stroke: var(--line-strong); stroke-width: 1; }
.tr-chart .tr-tick { font: 500 11px var(--sans); fill: var(--muted); }
.tr-chart .tr-sub { fill: var(--lavender); }
.tr-chart .tr-app { fill: var(--primary); }
.tr-chart figcaption { display: flex; gap: 16px; font-size: 13px; color: var(--muted); padding-top: 8px; }
.tr-key::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.tr-key-sub::before { background: var(--lavender); }
.tr-key-app::before { background: var(--primary); }
.help-centre .toc ol { columns: 1; }

/* ---------- guide series and illustrations ---------- */
.series-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.room-figure { margin: 4px 0 0; display: flex; flex-direction: column; gap: 8px; }
.room-svg { width: 100%; height: auto; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.room-marks circle { fill: var(--primary); stroke: none; }
.room-marks text { fill: #fff; }
.room-figure figcaption { font: 500 13px var(--sans); color: var(--muted); }
.room-list { counter-reset: room; list-style: none; padding: 0; gap: 10px; }
.room-list li { counter-increment: room; position: relative; padding-left: 36px; max-width: none; }
.room-list li::before { content: counter(room); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font: 700 12px/24px var(--sans); text-align: center; }

.diagram { margin: 4px 0 0; display: flex; flex-direction: column; gap: 8px; }
.diagram-svg { width: 100%; height: auto; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.diagram-label { fill: var(--muted); font: 500 13px var(--sans); stroke: none; }
.diagram figcaption { font: 500 13px var(--sans); color: var(--muted); }

/* ---------- landing: availability line, numbers strip, why-here ---------- */
.numbers { padding: 0 0 64px; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0 56px; }
.number { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.number strong { font: 800 32px/1 var(--sans); letter-spacing: -.02em; }
.number span { font-size: 13px; color: var(--muted); }
.numbers-foot { padding: 14px 56px 0; font-size: 13px; color: var(--muted); }
.why-here { padding: 0 56px 56px; display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.why-here h2 { font-size: 28px; }
.why-here p { color: var(--muted); max-width: 72ch; }
.guides-grid { grid-template-columns: repeat(3, 1fr); }
.guide-card strong { font-size: 16px; }
.guide-card span { font-size: 14px; }
.faq-list summary { margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 8px; transition: background .15s; }
.faq-list summary:hover, .faq-list summary:focus-visible { background: var(--sunken); }

/* ---------- guides: timeline figure, hazard icons, interactive checklist, stacked tables ---------- */
.tl-figure .tl-svg { width: 100%; height: auto; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.tl-v { display: none; }
.tl-line { stroke: var(--line); }
.tl-node { fill: var(--primary); }
.tl-num { fill: #fff; }
.tl-label { fill: var(--ink); }
.tl-sub { fill: var(--muted); }
.doc .hazard-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hazard-row li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; font: 600 13px/1.4 var(--sans); max-width: none; }
.hazard-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--primary-soft); color: var(--link); display: grid; place-items: center; }
.hazard-icon svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.checklist li label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.checklist li input { margin: 3px 0 0; flex: none; width: 18px; height: 18px; accent-color: var(--primary); }
.checklist li input:checked + span { color: var(--muted); }
.checklist-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font: 500 13px var(--sans); color: var(--muted); }
.checklist-tools span { margin-right: auto; }
.reddit-box { border-left: 4px solid var(--primary); }
.reddit-box ul { padding-left: 18px; }
.table-wrap { background: linear-gradient(90deg, var(--surface) 30%, transparent) 0 0, linear-gradient(90deg, transparent, var(--surface) 70%) 100% 0, radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .16), transparent) 0 0, radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .16), transparent) 100% 0; background-color: var(--surface); background-repeat: no-repeat; background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%; background-attachment: local, local, scroll, scroll; }

/* ---------- footer ---------- */
.site-footer { flex-direction: column; gap: 24px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.why-links { font-size: 14px; line-height: 1.8; }
.footer-cols nav { display: flex; flex-direction: column; gap: 8px; }
.footer-cols strong { color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.footer-foot { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; font-size: 13px; }
.rta { font: 700 11px var(--mono); border: 1px solid var(--line-strong); border-radius: 4px; padding: 2px 6px; margin-left: auto; }

/* --- My results --- */
.results-page { display: flex; flex-direction: column; gap: 16px; max-width: 1080px; }
.results-hero { display: grid; grid-template-columns: 180px auto minmax(0, 1fr); align-items: center; gap: 28px; padding: 20px; position: relative; overflow: hidden; background: radial-gradient(120% 140% at 100% 0%, var(--primary-soft), var(--surface) 60%); }
.results-photo { position: relative; }
.results-photo .media { border-radius: 14px; box-shadow: var(--shadow-pop); }
.results-photo .chip { position: absolute; left: 8px; bottom: 8px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.results-hero-body { display: contents; }
.results-hero .stack-sm { min-width: 0; }
.results-headline { margin: 0; font: 800 28px/1.15 var(--sans); letter-spacing: -.015em; }
.results-headline .muted { font-weight: 600; font-size: 18px; }
.results-hero p { margin: 0; }
.up { color: var(--ok); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip:not(.chip-ok):not(.chip-warn) { background: var(--surface); }

.score-ring { width: 148px; height: 148px; flex: none; }
.ring-track { fill: none; stroke: var(--line); stroke-width: 12; }
.ring-fill { fill: none; stroke: url(#ring-grad); stroke-width: 12; stroke-linecap: round; }
.ring-stop-a { stop-color: #A58CDB; }
.ring-stop-b { stop-color: var(--primary); }
.ring-value { font: 800 36px var(--sans); fill: var(--ink); text-anchor: middle; letter-spacing: -.02em; }
.ring-max { font: 600 12px var(--sans); fill: var(--muted); text-anchor: middle; }

.tile-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; }
.stat-label { font: 600 12px var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.stat-tile .stat { font: 800 32px/1.1 var(--sans); letter-spacing: -.02em; }
.stat-tile .stat small { font-size: 18px; font-weight: 700; color: var(--muted); margin-left: 1px; }
.stat-sub { font-size: 13px; color: var(--muted); }

.results-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.card-title { margin: 0; font: 700 16px var(--sans); }
.histogram .hist-base { stroke: var(--line-strong); stroke-width: 1; }
.histogram .hist-bar { fill: var(--lavender); transition: fill .12s; }
.histogram .is-mode .hist-bar { fill: var(--primary); }
.histogram .hist-stub { fill: var(--line); }
.histogram .hist-hit { fill: transparent; }
.histogram .hist-col:hover .hist-bar { fill: var(--primary-hover); }
.histogram .hist-col:hover .hist-axis { fill: var(--ink); }
.histogram .hist-axis { font: 500 12px var(--mono); fill: var(--muted); text-anchor: middle; }
.histogram .is-mode .hist-axis { fill: var(--ink); font-weight: 700; }
.histogram .hist-count { font: 700 13px var(--sans); fill: var(--ink); text-anchor: middle; }
.histogram .hist-avg line { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: .55; }
.histogram .hist-avg text { font: 700 11px var(--sans); fill: var(--ink); text-anchor: middle; }

.band-bar { width: 100%; height: 14px; display: block; margin: 4px 0 6px; }
.band-0 { fill: #D3CAE6; background: #D3CAE6; }
.band-1 { fill: #A895D1; background: #A895D1; }
.band-2 { fill: #7D62B8; background: #7D62B8; }
.band-3 { fill: #4A3C66; background: #4A3C66; }
.band-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.band-list li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.band-list li:first-child { border-top: 0; }
.band-list li.is-empty { opacity: .55; }
.band-swatch { width: 12px; height: 12px; border-radius: 3px; }
.band-name, .band-share { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.band-share { justify-content: flex-end; font-variant-numeric: tabular-nums; }
.band-share .muted { font-size: 12px; min-width: 2ch; text-align: right; }

.next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.next-card { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; transition: border-color .12s, transform .12s; }
.next-card:hover { color: var(--ink); border-color: var(--primary); transform: translateY(-1px); }
.next-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); }
.next-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.next-card .stack-xs { flex: 1; min-width: 0; }
.next-arrow { color: var(--muted); font-size: 18px; }
.results-note { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 0; font-size: 13px; color: var(--muted); max-width: 720px; }
.results-note svg { flex: none; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-color-scheme: dark) {
  .band-0 { fill: #3E3558; background: #3E3558; }
  .band-1 { fill: #5E4E8C; background: #5E4E8C; }
  .band-2 { fill: #8A6FC4; background: #8A6FC4; }
  .band-3 { fill: #C4B6EC; background: #C4B6EC; }
  .histogram .is-mode .hist-bar { fill: #8A6FC4; }
  .histogram .hist-col:hover .hist-bar { fill: #A58CDB; }
}

@media (max-width: 1100px) {
  .results-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .results-hero { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .results-hero .score-ring { width: 112px; height: 112px; justify-self: end; }
  .results-hero .stack-sm { grid-column: 1 / -1; }
  .results-headline { font-size: 22px; }
  .tile-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-tile { padding: 14px; }
  .stat-tile .stat { font-size: 26px; }
  /* The chart scales down to the phone's width; SVG text sizes are in chart units, so raise them to stay readable. */
  .results-grid .histogram .hist-axis, .results-grid .histogram .hist-count { font-size: 19px; }
  .results-grid .histogram .hist-avg text { font-size: 16px; }
  .results-grid .row-between > .muted { display: none; }
}

/* --- Dashboard (/home) --- */
.dash { display: flex; flex-direction: column; gap: 16px; max-width: 1080px; }
.dash-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 10px 24px; padding: 24px; background: radial-gradient(120% 160% at 100% 0%, var(--primary-soft), var(--surface) 62%); }
.dash-avatar { grid-row: 1 / span 2; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; align-self: start; background: linear-gradient(145deg, #A58CDB, var(--primary)); color: #fff; font: 800 30px var(--sans); box-shadow: var(--shadow-pop); }
.dash-hero-head { grid-column: 2; grid-row: 1; align-self: end; }
.dash-hero-text { grid-column: 2; grid-row: 2; align-self: start; }
.dash-hero-text p { margin: 0; max-width: 560px; }
.dash-hero-text .row { margin-top: 6px; }
.dash-ring { grid-column: 3; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dash-ring .score-ring { width: 128px; height: 128px; }
.tile-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-link { color: var(--ink); text-decoration: none; position: relative; transition: border-color .12s, transform .12s; }
.stat-link::after { content: '→'; position: absolute; top: 14px; right: 16px; color: var(--muted); transition: transform .12s, color .12s; }
.stat-link:hover { color: var(--ink); border-color: var(--primary); transform: translateY(-1px); }
.stat-link:hover::after { color: var(--link); transform: translateX(2px); }
.stat-link.is-locked .stat { color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dash-photo { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: start; }
.dash-photo-media .media { border-radius: 12px; }
.dash-photo p { margin: 0; }
.dash-photo .track { margin: 2px 0; }
.dash-photo-empty { grid-template-columns: auto minmax(0, 1fr); align-items: center; color: var(--ink); text-decoration: none; border-style: dashed; border-color: var(--line-strong); }
.dash-photo-empty:hover { color: var(--ink); border-color: var(--primary); }
.dash-upload-icon { width: 64px; height: 80px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--link); font: 300 36px var(--sans); }
.dash-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dash-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); position: relative; }
.dash-steps li:first-child { border-top: 0; padding-top: 4px; }
.dash-step-mark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sunken); color: var(--muted); font: 700 13px var(--sans); }
.dash-steps .is-done .dash-step-mark { background: var(--ok-soft); color: var(--ok); }
.dash-steps .is-done strong { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.dash-steps .is-current .dash-step-mark { background: var(--primary); color: #fff; box-shadow: 0 0 0 4px var(--primary-soft); }
.dash-steps .is-current strong a { color: var(--ink); }
.dash-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dash-links a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--sunken); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.dash-links a:hover { color: var(--ink); background: var(--primary-soft); }
.dash-links svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--link); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dash .install-card { margin-top: 0; max-width: none; }

@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .dash-hero { gap: 14px 12px; padding: 16px; }
  .dash-avatar { grid-row: 1; align-self: center; width: 48px; height: 48px; font-size: 20px; }
  .dash-hero-head { align-self: center; }
  .dash-hero-head .results-headline { font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dash-ring { grid-row: 1; }
  .dash-ring .score-ring { width: 76px; height: 76px; }
  .dash-ring > span { display: none; }
  .dash-hero-text { grid-column: 1 / -1; grid-row: 2; }
  .dash-hero-text .btn { flex: 1 1 auto; }
  .tile-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tile-row-3 .stat-tile { padding: 12px; }
  .tile-row-3 .stat { font-size: 24px; }
  .tile-row-3 .stat-label { font-size: 10px; }
  .tile-row-3 .stat-sub { font-size: 12px; line-height: 1.3; }
  .tile-row-3 .stat-link::after { display: none; }
  .dash-photo { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
}

/* --- Gallery: image-first tiles --- */
.gallery-head .muted { max-width: 520px; }
.tab-count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; margin-left: 7px; padding: 0 6px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink); font: 700 11px var(--sans); vertical-align: 1px; }
.segmented a.active .tab-count { background: var(--primary); color: #fff; }
.gallery-cta { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; padding: 16px 18px; color: var(--ink); text-decoration: none; background: linear-gradient(100deg, var(--primary-soft), var(--surface) 70%); transition: border-color .12s, transform .12s; }
a.gallery-cta:hover { color: var(--ink); border-color: var(--primary); transform: translateY(-1px); }
.gallery-cta.is-locked { background: var(--surface); }
.gallery-cta-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, #A58CDB, var(--primary)); color: #fff; box-shadow: var(--shadow-pop); }
.gallery-cta.is-locked .gallery-cta-icon { background: var(--sunken); color: var(--muted); box-shadow: none; }
.gallery-cta-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.gallery-cta .btn { flex: none; }

.gtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.gtile { position: relative; isolation: isolate; border-radius: 16px; box-shadow: 0 10px 28px -18px rgba(21, 25, 35, .6), 0 1px 3px rgba(21, 25, 35, .12); transition: transform .2s, box-shadow .2s; }
.gtile:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -18px rgba(21, 25, 35, .7), 0 2px 6px rgba(21, 25, 35, .14); }
.gtile > .media { border-radius: 16px; }
.gtile > .media img { transition: transform .35s ease; }
.gtile:hover > .media img { transform: scale(1.04); }
.gtile > .media::after { content: ''; position: absolute; inset: auto 0 0; height: 42%; background: linear-gradient(to top, rgba(10, 11, 16, .82), rgba(10, 11, 16, .35) 50%, transparent); pointer-events: none; }
.gtile > .media.is-covered::after { height: 30%; }
.gtile > .media.is-covered { box-shadow: inset 0 0 0 1px var(--line-strong); }
.gtile-link { position: absolute; inset: 0; z-index: 1; border-radius: 16px; }
.gtile-link:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.gtile .media-cover { position: relative; z-index: 2; }
.gtile-top { position: absolute; z-index: 3; inset: 10px 10px auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; pointer-events: none; }
.gtile-top > * { pointer-events: auto; }
.gtile-badge { padding: 5px 10px; border-radius: 999px; background: rgba(15, 16, 22, .62); color: #fff; font: 700 12px/1.2 var(--sans); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.gtile-badge.is-ok { background: rgba(20, 90, 64, .78); }
.gtile-menu .icon-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(15, 16, 22, .55); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.gtile-menu .icon-btn:hover { background: rgba(15, 16, 22, .75); }
.gtile-foot { position: absolute; z-index: 2; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px 14px; color: #fff; pointer-events: none; }
.gtile-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 16px var(--sans); text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.gtile-action { flex: none; padding: 6px 12px; border-radius: 999px; background: #fff; color: #1D2330; font: 700 13px var(--sans); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); transition: transform .15s; }
.gtile:hover .gtile-action { transform: translateX(2px); }
.gtile.is-rated > .media img { opacity: .82; }

@media (max-width: 900px) {
  .gallery-cta { flex-wrap: wrap; gap: 12px 14px; padding: 14px; margin-bottom: 16px; }
  .gallery-cta-icon { width: 42px; height: 42px; border-radius: 12px; }
  .gallery-cta .btn { width: 100%; }
  .gtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gtile, .gtile > .media, .gtile-link { border-radius: 14px; }
  .gtile:hover { transform: none; }
  .gtile-top { inset: 8px 8px auto; }
  .gtile-badge { padding: 4px 8px; font-size: 11px; }
  .gtile-menu .icon-btn { width: 30px; height: 30px; }
  .gtile-foot { padding: 10px; }
  .gtile-name { font-size: 14px; }
  .gtile-action { padding: 4px 9px; font-size: 12px; }
  .gtile .media-cover > span, .gtile .media-cover .icon { display: none; }
  .gtile .reveal-all-btn { font-size: 11px; padding: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .gtile:hover > .media img { transform: none; }
}

/* --- Top 15 (/top) --- */
.top-page { display: flex; flex-direction: column; gap: 18px; max-width: 1080px; }
.top-you { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: linear-gradient(100deg, var(--primary-soft), var(--surface) 70%); }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; }
.podium-card { position: relative; isolation: isolate; border-radius: 18px; box-shadow: 0 14px 34px -18px rgba(21, 25, 35, .65), 0 1px 3px rgba(21, 25, 35, .12); transition: transform .2s; }
.podium-card:hover { transform: translateY(-3px); }
.podium-card > .media { border-radius: 18px; }
.podium-card > .media::after { content: ''; position: absolute; inset: auto 0 0; height: 46%; background: linear-gradient(to top, rgba(10, 11, 16, .88), rgba(10, 11, 16, .35) 55%, transparent); pointer-events: none; }
.podium-card .media-cover { position: relative; z-index: 2; }
.podium-1 { order: 2; }
.podium-2 { order: 1; transform: scale(.92); transform-origin: bottom center; }
.podium-3 { order: 3; transform: scale(.86); transform-origin: bottom center; }
.podium-2:hover { transform: scale(.92) translateY(-3px); }
.podium-3:hover { transform: scale(.86) translateY(-3px); }
.podium-1 { box-shadow: 0 0 0 3px #E2B44B, 0 20px 44px -18px rgba(176, 128, 20, .6); }
.podium-card.is-mine { outline: 3px solid var(--ok); outline-offset: 3px; }
.podium-hidden { display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.medal { position: absolute; z-index: 3; top: 12px; left: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 800 18px var(--sans); color: #2B2108; box-shadow: 0 4px 12px rgba(0, 0, 0, .3), inset 0 -3px 0 rgba(0, 0, 0, .12); pointer-events: none; }
.medal-gold { background: linear-gradient(145deg, #F7DA7A, #D9A133); }
.medal-silver { background: linear-gradient(145deg, #EEF1F5, #AEB6C2); color: #22272F; }
.medal-bronze { background: linear-gradient(145deg, #EDB98E, #B9733F); color: #2A170A; }
.you-badge { position: absolute; z-index: 3; top: 18px; right: 12px; background: rgba(20, 90, 64, .85); pointer-events: none; }
.podium-foot { position: absolute; z-index: 2; inset: auto 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 14px 16px 16px; color: #fff; pointer-events: none; }
.podium-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 17px var(--sans); text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.podium-score { flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.podium-score strong { font: 800 28px var(--sans); letter-spacing: -.02em; }
.podium-score span { font-size: 12px; color: rgba(255, 255, 255, .75); }

.rank-list { list-style: none; margin: 0; padding: 6px; display: flex; flex-direction: column; }
.rank-row + .rank-row { border-top: 1px solid var(--line); }
.rank-row-inner { display: grid; grid-template-columns: 34px 52px minmax(0, 1fr) minmax(80px, 200px) 92px; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
a.rank-row-inner:hover { color: var(--ink); background: var(--sunken); }
.rank-row.is-mine .rank-row-inner { background: var(--ok-soft); }
.rank-num { font: 800 18px var(--sans); color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.rank-thumb .media { width: 52px; border-radius: 10px; }
.rank-thumb .media-cover .reveal-btn { padding: 2px 6px; font-size: 11px; }
.rank-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rank-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-bar svg { display: block; width: 100%; height: 8px; }
.rank-bar-track { fill: var(--sunken); }
.rank-bar-fill { fill: var(--primary); }
.rank-score { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.rank-score strong { font: 800 20px var(--sans); font-variant-numeric: tabular-nums; }
.rank-pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: linear-gradient(145deg, #F7DA7A, #D9A133); color: #2B2108; font: 700 13px var(--sans); text-decoration: none; }
.rank-pill:hover { color: #2B2108; filter: brightness(1.05); }
.rank-pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
  .top-you .switch-form, .top-you .switch { width: 100%; justify-content: space-between; }
  .podium { grid-template-columns: 1fr 1fr; gap: 10px; }
  .podium-1 { order: 0; grid-column: 1 / -1; width: 78%; justify-self: center; }
  .podium-2, .podium-3, .podium-2:hover, .podium-3:hover { transform: none; }
  .podium-2 { order: 1; } .podium-3 { order: 2; }
  .podium-card:hover { transform: none; }
  .podium-2 .podium-name, .podium-3 .podium-name { font-size: 14px; }
  .podium-2 .podium-score strong, .podium-3 .podium-score strong { font-size: 22px; }
  .podium-2 .medal, .podium-3 .medal { width: 32px; height: 32px; font-size: 15px; }
  .podium-2 .podium-foot, .podium-3 .podium-foot { padding: 10px; }
  .rank-row-inner { grid-template-columns: 26px 44px minmax(0, 1fr) auto; gap: 10px; padding: 8px; }
  .rank-thumb .media { width: 44px; }
  .rank-bar { display: none; }
  .rank-num { font-size: 16px; }
}


/* --- My photos --- */
.current-photo { background: radial-gradient(110% 130% at 100% 0%, var(--primary-soft), var(--surface) 58%); }
.current-media .media { border-radius: 16px; box-shadow: var(--shadow-pop); }
.photo-stats { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 24px; align-items: center; max-width: 620px; }
.photo-ring { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.photo-ring .score-ring { width: 116px; height: 116px; }
.photo-facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.photo-facts > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.photo-facts dt { font: 600 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.photo-facts dd { margin: 3px 0 0; font: 700 16px var(--sans); }
.photo-chart { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.photo-chart .histogram { max-height: 170px; }
.photo-chart p { margin: 0; }
.photo-chart .histogram .hist-axis, .photo-chart .histogram .hist-count { font-size: 15px; }
.photo-chart .histogram .hist-avg text { font-size: 14px; }
.history-title { display: flex; align-items: center; font-size: 20px; margin: 36px 0 14px; }
.history-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; max-width: 1100px; }
.history-card { border-radius: 16px; }
.history-media { position: relative; }
.history-media .media::after { content: ''; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(to top, rgba(10, 11, 16, .75), transparent); pointer-events: none; }
.history-status { position: absolute; top: 10px; left: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.history-date { position: absolute; left: 12px; bottom: 10px; color: #fff; font: 600 12px var(--sans); text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.history-result { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.history-result strong { font: 800 24px var(--sans); letter-spacing: -.02em; }
.history-result span { font-size: 13px; color: var(--muted); }
.history-body p { margin: 0; }
@media (max-width: 900px) {
  .photo-stats { grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; max-width: none; }
  .photo-ring .score-ring { width: 92px; height: 92px; }
  .photo-ring > span { display: none; }
  .photo-facts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .photo-facts > div { padding: 8px 10px; }
  .photo-facts > div:nth-child(3) { grid-column: 1 / -1; }
  .photo-chart .histogram .hist-axis, .photo-chart .histogram .hist-count { font-size: 19px; }
  .photo-chart .histogram .hist-avg text { font-size: 16px; }
}
@media (max-width: 520px) {
  .history-card .history-media { flex: none; width: 112px; }
  .history-card .history-media .media { height: 100%; aspect-ratio: auto; min-height: 150px; }
  .history-status { top: 6px; left: 6px; font-size: 10px; padding: 3px 7px; max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
}


/* --- Availability: the US states as a compact list --- */
.doc .region-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 14px 0; }
.region-grid li { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 600; font-size: 14px; }
.region-grid li:target { border-color: var(--primary); background: var(--primary-soft); }

/* --- Photo metadata viewer (/tools/photo-metadata-viewer) --- */
.exif-tool { display: flex; flex-direction: column; gap: 16px; padding: 18px; margin: 8px 0 28px; }
.exif-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 180px; padding: 24px; border: 2px dashed var(--line-strong); border-radius: 14px; background: var(--sunken); text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s; }
.exif-drop:hover, .exif-drop.is-over, .exif-drop:focus-within { border-color: var(--primary); background: var(--primary-soft); }
.exif-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.exif-drop strong { font-size: 17px; }
.exif-drop[hidden] { display: none; }
.exif-results { display: flex; flex-direction: column; gap: 14px; }
.exif-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.exif-head strong { word-break: break-all; }
.doc .exif-summary { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.exif-flag { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.exif-flag strong { font-size: 15px; }
.exif-flag.is-bad { border-color: var(--danger-line); background: var(--danger-soft); }
.exif-flag.is-bad strong { color: var(--danger); }
.exif-flag.is-warn { border-color: var(--warn-line); background: var(--warn-soft); }
.exif-flag.is-warn strong { color: var(--warn); }
.exif-flag.is-ok { border-color: var(--ok-line); background: var(--ok-soft); }
.exif-flag.is-ok strong { color: var(--ok); }
.exif-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.exif-thumb { flex-basis: 100%; max-width: 240px; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.exif-groups { display: flex; flex-direction: column; gap: 8px; }
.exif-groups details { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--surface); }
.exif-groups summary { cursor: pointer; }
.exif-groups table { margin-top: 8px; font-size: 13px; }
.exif-groups th { width: 40%; font-weight: 600; }
.exif-groups td { word-break: break-word; font-family: var(--mono); font-size: 12px; }

/* --- Phone-screen illustrations in the how-to guides (figures.js phoneFlow) --- */
.phone-flow { margin: 20px 0 8px; }
.doc .phone-steps, .phone-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 190px)); gap: 18px; }
.phone-steps li { display: flex; flex-direction: column; gap: 8px; position: relative; }
.phone-steps li + li::before { content: '→'; position: absolute; left: -15px; top: 42%; color: var(--muted); font-size: 14px; }
.phone-steps p { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--ink); }
.phone-steps p b { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 11px; }
.phone-flow figcaption { margin-top: 10px; font-size: 12px; color: var(--muted); }
.ph-svg { width: 100%; height: auto; display: block; font-family: var(--sans); }
.ph-body { fill: var(--surface); stroke: var(--line-strong); stroke-width: 2; }
.ph-notch { fill: var(--line-strong); }
.ph-title { font-size: 12px; font-weight: 700; fill: var(--ink); }
.ph-back { font-size: 10px; font-weight: 600; fill: var(--link); }
.ph-cell { fill: var(--sunken); }
.ph-label { font-size: 11px; font-weight: 600; fill: var(--ink); }
.ph-sub { font-size: 9.5px; fill: var(--muted); }
.ph-right { font-size: 10px; font-weight: 600; fill: var(--link); }
.ph-switch { fill: var(--line-strong); }
.ph-switch.is-on { fill: var(--ok); }
.ph-knob { fill: #fff; }
.ph-check { stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ph-ring { fill: none; stroke: var(--primary); stroke-width: 2.5; }
.ph-row.is-ok .ph-sub { fill: var(--ok); }
.ph-row.is-warn .ph-cell { fill: var(--danger-soft); }
.ph-row.is-warn .ph-sub { fill: var(--danger); }
.ph-row.is-ok.is-hl .ph-label { fill: var(--ok); }
.ph-map { fill: var(--primary-soft); }
.ph-map-road { stroke: var(--lavender); stroke-width: 6; stroke-linecap: round; }
.ph-pin { fill: var(--danger); stroke: #fff; stroke-width: 2; }
@media (max-width: 520px) {
  .doc .phone-steps, .phone-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .phone-steps li + li::before { display: none; }
}

/* --- Swipe to rate (/rate): a stack of photo cards, one at a time, like a native dating-style app. --- */
.deck { display: flex; flex-direction: column; gap: 14px; max-width: 460px; margin: 0 auto; }
.deck-stack { position: relative; aspect-ratio: 4 / 5.4; width: 100%; }
.swipe-card { position: absolute; inset: 0; border-radius: 20px; overflow: hidden; background: var(--photo); box-shadow: 0 18px 40px -18px rgba(21, 25, 35, .55), 0 2px 6px rgba(21, 25, 35, .12); touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; visibility: hidden; transition: transform .26s cubic-bezier(.2, .8, .3, 1), opacity .26s; will-change: transform; }
.swipe-card.is-top { visibility: visible; z-index: 2; cursor: grab; }
.swipe-card.is-next { visibility: visible; z-index: 1; transform: scale(.95) translateY(10px); }
.swipe-card.is-dragging { transition: none; cursor: grabbing; }
.swipe-card.is-flying { z-index: 3; pointer-events: none; }
.swipe-card.is-gone { display: none; }
.swipe-card > .media { position: absolute; inset: 0; aspect-ratio: auto; }
.swipe-card > .media img { object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.swipe-card::after { content: ''; position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(to top, rgba(10, 11, 16, .88), rgba(10, 11, 16, .45) 45%, transparent); pointer-events: none; }
.swipe-info { position: absolute; z-index: 1; inset: auto 0 0; display: flex; align-items: flex-end; gap: 8px; padding: 18px 16px 16px; color: #fff; }
.swipe-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.swipe-name strong { font: 800 26px/1.1 var(--sans); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.swipe-name span { font-size: 13px; color: rgba(255, 255, 255, .78); }
.swipe-btn { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.swipe-btn:hover { color: #fff; background: rgba(255, 255, 255, .26); }
.swipe-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.swipe-stamp { position: absolute; z-index: 2; top: 30px; padding: 4px 14px; border: 4px solid currentColor; border-radius: 10px; font: 800 34px/1.1 var(--sans); letter-spacing: .06em; text-transform: uppercase; opacity: 0; transition: opacity .12s; pointer-events: none; }
.stamp-skip { right: 22px; color: #FF5A6E; transform: rotate(14deg); }
.stamp-score { left: 22px; color: #7BE3B1; transform: rotate(-14deg); min-width: 1.6em; text-align: center; }
.stamp-score:empty::after { content: '1–10'; }
.swipe-card.show-skip .stamp-skip, .swipe-card.show-score .stamp-score, .swipe-card.show-hint .stamp-score { opacity: 1; }

.deck-controls { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; }
.deck-skip { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: #E8475B; border: 1px solid var(--line); box-shadow: 0 8px 20px -10px rgba(21, 25, 35, .45); cursor: pointer; transition: transform .12s; }
.deck-skip svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.deck-skip:active { transform: scale(.9); }
.deck-scores { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.deck-score { height: 44px; border-radius: 999px; border: 1px solid transparent; background: var(--score); color: #fff; font: 800 17px var(--sans); cursor: pointer; box-shadow: 0 4px 12px -8px rgba(21, 25, 35, .4); transition: transform .12s, filter .12s; }
.deck-score:hover { border-color: var(--ink); }
.deck-score:active { transform: scale(.9); filter: brightness(1.2); }
/* Rating buttons, swipe deck and photo page: dark red at 1, through amber, to green from 7. White text is at least 4.5:1 on every step. */
.deck-score:nth-child(1), .scale-opt:nth-child(1) { --score: #7A1414; }
.deck-score:nth-child(2), .scale-opt:nth-child(2) { --score: #931B1B; }
.deck-score:nth-child(3), .scale-opt:nth-child(3) { --score: #B32418; }
.deck-score:nth-child(4), .scale-opt:nth-child(4) { --score: #C2410C; }
.deck-score:nth-child(5), .scale-opt:nth-child(5) { --score: #B45309; }
.deck-score:nth-child(6), .scale-opt:nth-child(6) { --score: #946A00; }
.deck-score:nth-child(7), .scale-opt:nth-child(7) { --score: #37822B; }
.deck-score:nth-child(8), .scale-opt:nth-child(8) { --score: #2A7D35; }
.deck-score:nth-child(9), .scale-opt:nth-child(9) { --score: #1B6E33; }
.deck-score:nth-child(10), .scale-opt:nth-child(10) { --score: #0F5C2B; }
@media (prefers-color-scheme: dark) {
  /* The darkest steps sit close to the dark surface, so give every button a visible edge. */
  .deck-score, .scale-opt span { border-color: rgba(255, 255, 255, .22); }
}
.deck-controls.is-nudged .deck-scores { animation: deck-nudge .5s; }
@keyframes deck-nudge { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.deck-hint { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.deck-status { margin: 0; min-height: 1.2em; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.deck.is-loading { opacity: .6; pointer-events: none; }

.deck-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; max-width: 460px; margin: 24px auto; padding: 32px 12px; }
.deck-empty h2 { margin: 8px 0 0; font-size: 22px; }
.deck-empty p { margin: 0; }
.deck-empty .actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; margin-top: 12px; }
.deck-empty .actions form, .deck-empty .actions .btn { width: 100%; }
.deck-empty-art { position: relative; width: 120px; height: 140px; }
.deck-empty-art i { position: absolute; inset: 0 18px; border-radius: 14px; background: linear-gradient(160deg, #8A6FC4, var(--primary)); box-shadow: var(--shadow-pop); }
.deck-empty-art i:first-child { transform: rotate(-10deg) translateX(-14px); opacity: .45; }
.deck-empty-art i:last-child { transform: rotate(6deg) translateX(10px); }
.topbar-brand { font: 800 22px var(--sans); letter-spacing: -.01em; background: linear-gradient(90deg, #8A6FC4, var(--link)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --- Installable app --- */
.install-card { display: flex; align-items: center; gap: 14px; margin-top: 20px; max-width: 720px; }
.install-card[hidden] { display: none; }
.install-card img { flex: none; border-radius: 14px; }
.offline-card { max-width: 440px; margin: 48px auto; text-align: center; align-items: center; }
.offline-card h1 { margin: 0; font-size: 24px; }
html.is-standalone body { overscroll-behavior-y: none; -webkit-tap-highlight-color: transparent; }
html.is-standalone .bottom-nav a, html.is-standalone .deck { -webkit-user-select: none; user-select: none; }

@media (max-width: 1100px) {
  .wizard-body.has-aside { grid-template-columns: minmax(0, 1fr) 280px; }
  .review-grid { grid-template-columns: 320px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .site-header { padding: 14px 20px; }
  .site-nav { display: none; }
  .site-nav-mobile { display: flex; }
  /* Stacked order: headline, call to action, gallery, then the remaining copy, so the gallery is above the fold on a phone. */
  .hero { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px 20px 32px; }
  .hero-copy { display: contents; }
  .hero-copy > * { order: 4; }
  .hero-copy > .pill { justify-self: start; max-width: 100%; white-space: normal; }
  .hero h1 { order: 1; font-size: 26px; line-height: 1.15; letter-spacing: -.015em; }
  .hero .lead { font-size: 16px; }
  .hero .actions { order: 2; align-items: center; gap: 4px; }
  .hero .actions .btn:first-child { flex: 1 1 auto; padding-inline: 12px; }
  .hero .actions .btn-secondary:not(:first-child) { flex: 0 1 auto; padding-inline: 6px; background: none; border: 0; color: var(--link); }
  .hero-card { order: 3; width: 100%; max-width: 560px; justify-self: center; margin-bottom: 14px; padding: 12px; gap: 10px; border-radius: 16px; }
  .hero-tiles { gap: 8px; }
  .hero-sub { margin: 0; }
  .activity-pulse { border-radius: 14px; }
  .hero-card::before, .results > .results-mock::before { inset: -16px; }
  .privacy-architecture { padding: 28px 20px 32px; }
  .privacy-architecture-head { grid-template-columns: 1fr; gap: 6px; }
  .privacy-architecture-head > .mono { padding-top: 0; }
  .privacy-architecture-head h2 { font-size: 22px; }
  .privacy-architecture-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 12px; padding: 0 20px 32px; }
  .step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 18px; border-radius: var(--radius); }
  .step-top { flex-direction: column; justify-content: flex-start; gap: 7px; }
  .step-copy { gap: 4px; }
  .step-t { font-size: 16px; }
  .step-d { font-size: 14px; }
  .contribute { grid-template-columns: 1fr; gap: 24px; padding: 32px 20px; }
  .contribute h2, .faq h2 { font-size: 24px; }
  .trust { grid-template-columns: 1fr 1fr; padding: 24px 20px 32px; gap: 20px; }
  .trust h3 { font-size: 15px; }
  .trust p { font-size: 13px; }
  .faq { grid-template-columns: 1fr; gap: 16px; padding: 0 20px 40px; }
  .site-footer { padding: 24px 20px; }
  .doc { padding: 32px 20px 48px; }

  .section-title { font-size: 22px; padding: 0 20px 16px; }
  .steps-wrap { padding-bottom: 32px; }
  .results { grid-template-columns: 1fr; gap: 24px; padding: 32px 20px; }
  .results-copy h2 { font-size: 24px; }
  .results-mock { max-width: none; }
  .final-cta { padding: 0 20px 48px; }
  .final-cta-card { padding: 24px 20px; }
  .final-cta-card h2 { font-size: 24px; }
  .guides-row { padding: 32px 0 40px; }
  .guides-grid { grid-template-columns: 1fr; padding: 0 20px; gap: 12px; }
  .toc ol { columns: 1; }
  .two-col, .contact-grid, .series-grid { grid-template-columns: 1fr; }
  .numbers { padding-bottom: 40px; }
  .numbers-grid { grid-template-columns: 1fr 1fr; padding: 0 20px; gap: 12px; }
  .numbers-foot { padding: 12px 20px 0; }
  .why-here { padding: 0 20px 40px; }
  .why-here h2 { font-size: 22px; }
  .doc .hazard-row { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .region-notice { margin: 16px 20px 0; }
  .doc h2 { font-size: 21px; }

  .app-shell, .admin-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .app-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 10; min-height: 60px; padding: 8px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .app-topbar-title { font: 800 18px var(--sans); }
  .topbar-link { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; font-size: 14px; text-decoration: none; }
  .topbar-link.danger { color: var(--danger); }
  .app-content { padding: 20px 20px 104px; }
  /* The top bar already carries the page title on phones. */
  .page-head h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .page-head:not(:has(p, .btn, nav)) { margin-bottom: 0; }
  .gallery-head-blur, .hide-mobile { display: none !important; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line); padding: 8px 8px calc(10px + env(safe-area-inset-bottom)); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 48px; font: 600 11px var(--sans); color: var(--muted); text-decoration: none; }
  .bottom-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .bottom-nav a.active { color: var(--link); }
  .banner { flex-direction: column; align-items: stretch; gap: 14px; }
  .segmented { border-radius: 999px; border: 0; background: none; padding: 0; gap: 8px; }
  .segmented a { border-radius: 999px; padding: 10px 14px; border: 1px solid var(--line); background: var(--surface); }
  .segmented a.active { border-color: var(--ink); }
  .empty-state { padding: 48px 20px 56px; }
  .current-photo { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; }
  .current-media { max-width: 320px; width: 100%; margin: 0 auto; }
  /* On a phone the photo fills the screen, so the rating result goes above it. */
  .current-body { display: contents; }
  .current-body h2 { font-size: 22px; }
  .current-actions .btn, .current-actions form { flex: 1 1 140px; }
  .current-actions form .btn { width: 100%; }
  .history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .empty-steps { flex-direction: column; align-items: stretch; }
  .age-card { margin-top: 0; padding: 24px 18px; border-radius: 16px; }
  .detail-bar { display: none; }
  .detail { grid-template-columns: 1fr; gap: 20px; margin: -20px -20px 0; }
  .detail .stage { border-radius: 0; padding: 16px; min-height: 0; }
  .detail .stage .media { max-width: none; }
  .detail-side { padding: 0 20px; }
  .scale { gap: 6px; }
  .scale-opt span { height: 48px; }
  .wizard { margin-bottom: 24px; }
  .wizard li span:last-child { display: none; }
  .wizard li.current span:last-child { display: block; white-space: nowrap; }
  .wizard-body.has-aside { grid-template-columns: 1fr; }
  .focus-main.wide { padding: 24px 20px 48px; }
  .preview-grid { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
  .admin-main { padding: 20px; }
  .review-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .tl-h { display: none; }
  .tl-v { display: block; }
  .table-stack table, .table-stack tbody, .table-stack tr, .table-stack th, .table-stack td { display: block; }
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-stack tr + tr { border-top: 6px solid var(--sunken); }
  .table-stack tbody th { background: var(--sunken); border-top: 0; font-size: 15px; }
  .table-stack td { position: relative; padding: 10px 12px 10px 42%; min-height: 40px; }
  .table-stack td::before { content: attr(data-label); position: absolute; left: 12px; top: 10px; width: 36%; font: 600 12px/1.4 var(--sans); color: var(--muted); }
  .table-stack td:empty { display: none; }
}

@media (max-width: 520px) {
  .privacy-architecture-grid { grid-template-columns: 1fr; }
  .history-grid { grid-template-columns: 1fr; }
  .history-card { flex-direction: row; }
  .history-card .media-cover > span, .history-card .media-cover .icon { display: none; }
  .history-card .row-between { flex-wrap: wrap; gap: 6px; }
  .hide-sm { display: none; }
  .switch { padding: 0 12px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .tier + .tier { border-left: 0; border-top: 1px solid var(--line); }
}


/* Phones: the deck fills the screen between the top bar and the tab bar, like a native app. */
@media (max-width: 900px) {
  .app-topbar { padding-top: max(8px, env(safe-area-inset-top)); min-height: calc(60px + env(safe-area-inset-top)); }
  .bottom-nav a.active svg { stroke-width: 2.4; }
  body.is-deck .deck-head { display: none; }
  /* Fixed to the screen height so the score buttons always sit just above the tab bar, flash message or not. */
  body.is-deck .app-content { display: flex; flex-direction: column; gap: 10px; height: calc(100dvh - 60px - env(safe-area-inset-top)); min-height: 520px; padding: 12px 12px calc(84px + env(safe-area-inset-bottom)); }
  body.is-deck .app-content > .flash { flex: none; margin: 0; padding-block: 8px; font-size: 14px; }
  body.is-deck .deck { flex: 1; min-height: 0; max-width: none; width: 100%; gap: 10px; }
  body.is-deck .deck-empty { margin: auto; }
  body.is-deck .deck-stack { flex: 1; min-height: 0; aspect-ratio: auto; }
  body.is-deck .deck-hint { display: none; }
  body.is-deck .deck-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .deck-controls { gap: 10px; }
  .deck-skip { width: 58px; height: 58px; }
  .deck-scores { gap: 6px; }
  .deck-score { height: 40px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .activity-dot { animation: none; }
  .deck-controls.is-nudged .deck-scores { animation: none; }
  * { transition: none !important; }
}
