/* Mac Field Guide. One quiet system: sans for interface, serif for reading, hairlines instead of boxes. */
:root {
  --bg: #ffffff; --surface: #ffffff; --sunk: #f7f7f5; --hover: #f2f1ee;
  --text: #1f1f1e; --soft: #3b3b39; --muted: #73726e; --faint: #a3a29d;
  --line: #ebeae6; --line-strong: #dddcd7;
  --accent: #2b59c3; --accent-soft: #eef2fb; --accent-ink: #ffffff;
  --tip: #2f7d6d; --tip-soft: #eff7f4; --warn: #b4532a; --warn-soft: #fcf3ee;
  --ours: #9a5b13; --ours-soft: #fbf4e9;
  --code-bg: #f4f3f0;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Helvetica Neue", Arial, sans-serif;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, "JetBrains Mono", monospace;
  --radius: 8px; --max: 680px; --wide: 1080px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --fast: 140ms; --med: 260ms;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191918; --surface: #1f1f1e; --sunk: #222221; --hover: #2a2a28;
    --text: #ebeae6; --soft: #d4d3ce; --muted: #9b9a95; --faint: #6c6b67;
    --line: #2e2e2c; --line-strong: #3a3a37;
    --accent: #8eaaf5; --accent-soft: #232a3b; --accent-ink: #12151c;
    --tip: #7cc4b2; --tip-soft: #1c2724; --warn: #eb9a76; --warn-soft: #2b201b;
    --ours: #e2b06c; --ours-soft: #2a2319;
    --code-bg: #262624;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--fast), text-decoration-color var(--fast); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); }
[hidden] { display: none !important; }
img { max-width: 100%; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--med); }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { max-width: var(--wide); margin: 0 auto; padding: 0 20px; height: 56px; display: flex; align-items: center; gap: 24px; }
.brand { font-weight: 650; font-size: 15px; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 9px; letter-spacing: -0.01em; white-space: nowrap; }
.mark { width: 20px; height: 20px; display: block; }
.top nav { display: flex; gap: 2px; font-size: 14px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 6px; transition: color var(--fast), background var(--fast); }
.top nav a:hover { color: var(--text); background: var(--hover); }
.top nav a[aria-current] { color: var(--accent); background: var(--accent-soft); }
.top-search { position: relative; flex: 0 0 220px; }
.top-search input { width: 100%; font: inherit; font-size: 14px; color: var(--text); background: var(--sunk); border: 1px solid transparent; border-radius: 8px; padding: 7px 40px 7px 32px; transition: background var(--fast), border-color var(--fast), box-shadow var(--fast); }
.top-search::before { content: ""; position: absolute; left: 11px; top: 50%; width: 11px; height: 11px; margin-top: -7px; border: 1.6px solid var(--faint); border-radius: 50%; pointer-events: none; }
.top-search::after { content: ""; position: absolute; left: 21px; top: 50%; width: 5px; height: 1.6px; margin-top: 3px; background: var(--faint); transform: rotate(45deg); pointer-events: none; }
.top-search kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--faint); border-color: var(--line-strong); background: transparent; padding: 0 5px; pointer-events: none; }
.top-search input:focus { outline: none; background: var(--surface); border-color: var(--line-strong); box-shadow: 0 0 0 4px var(--accent-soft); }
.top-search input:focus + kbd { opacity: 0; }
@media (max-width: 860px) {
  .top-in { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 8px 12px; }
  .top nav { order: 3; width: 100%; margin: 0 -10px; overflow-x: auto; scrollbar-width: none; }
  .top nav::-webkit-scrollbar { display: none; }
  .top-search { flex: 1 1 140px; margin-left: auto; max-width: 260px; }
  .top-search kbd { display: none; }
}

/* Layout */
main { max-width: var(--max); margin: 0 auto; padding: 24px 20px 72px; }
.foot { max-width: var(--max); margin: 0 auto; padding: 28px 20px 56px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.foot a { color: inherit; }
.foot p { margin: 0 0 8px; }
.legal { color: var(--faint); }

/* Type */
h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; margin: 12px 0 14px; text-wrap: pretty; }
h2 { font-size: 22px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 650; margin: 48px 0 10px; text-wrap: balance; }
h3 { font-size: 17px; line-height: 1.35; font-weight: 650; margin: 28px 0 6px; }
.lede { font-size: 18px; line-height: 1.55; color: var(--muted); margin: 0 0 24px; text-wrap: pretty; }
article { font-family: var(--serif); font-size: 19px; line-height: 1.7; color: var(--soft); }
@media (max-width: 600px) { article { font-size: 18px; line-height: 1.65; } }
article h1, article h2, article h3, article .meta, article .chips, article .answer-label, article .toc, article ol.steps, article .note, article table, article .ad, article .helpbox, article .vtabs, article .vhead, article figcaption, article pre, article .apps p, article .reading .site { font-family: var(--sans); }
article h1, article h2, article h3 { color: var(--text); }
article p, article li { text-wrap: pretty; }
article p { margin: 0 0 1.1em; }
article strong { color: var(--text); font-weight: 650; }
article a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); }
article a:hover { text-decoration-color: var(--accent); }
ol, ul { padding-left: 1.4em; }
li { margin: 6px 0; }
li::marker { color: var(--faint); }
.path { font-family: var(--sans); font-size: 0.9em; font-weight: 600; color: var(--text); }
kbd { font-family: var(--sans); font-size: 0.78em; font-weight: 500; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: var(--surface); color: var(--text); white-space: nowrap; }
code { font-family: var(--mono); font-size: 0.82em; background: var(--code-bg); border-radius: 4px; padding: 2px 5px; color: var(--text); }
pre { position: relative; background: var(--code-bg); border-radius: var(--radius); padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.55; margin: 0 0 1.4em; }
pre code { background: none; padding: 0; font-size: inherit; }
.copy { position: absolute; top: 8px; right: 8px; font: 500 12px/1 var(--sans); border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); border-radius: 6px; padding: 6px 9px; cursor: pointer; opacity: 0; transition: opacity var(--fast), color var(--fast); }
pre:hover .copy, .copy:focus-visible, .copy.done { opacity: 1; }
.copy.done { color: var(--tip); }
@media (hover: none) { .copy { opacity: 1; } }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* Breadcrumbs and meta */
.crumbs { font-size: 13.5px; color: var(--faint); margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 0 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -10px 0 22px; }
.chip { font: 500 12px/1.6 var(--sans); border-radius: 999px; padding: 1px 9px; color: var(--muted); background: var(--sunk); border: 1px solid var(--line); }

/* Short answer */
.answer { border-left: 2px solid var(--accent); padding: 2px 0 2px 20px; margin: 8px 0 32px; color: var(--text); }
.answer p { margin: 0 0 0.6em; }
.answer p:last-child { margin-bottom: 0; }
.answer-label, .toc-label, .ad-label, .ai-label, .eyebrow { font: 600 11.5px/1.4 var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--faint); margin: 0 0 6px !important; }

/* Contents */
.toc { margin: 0 0 8px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { margin: 0; }
.toc a { display: block; padding: 4px 0 4px 12px; margin-left: -12px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; transition: color var(--fast), border-color var(--fast); }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--accent); border-left-color: var(--accent); }
@media (min-width: 1200px) {
  .toc { position: fixed; top: 104px; left: calc(50% + 380px); width: 220px; max-height: calc(100vh - 140px); overflow: auto; border: 0; padding: 0; margin: 0; }
  .toc a { margin-left: 0; }
  .toc ol { border-left: 1px solid var(--line); }
  .toc a { margin-left: -1px; }
}

/* Step cards: numbered, quiet */
ol.steps { list-style: none; padding: 0; counter-reset: step; margin: 6px 0 24px; font-size: 16.5px; line-height: 1.55; color: var(--text); }
ol.steps > li { counter-increment: step; position: relative; padding: 11px 0 11px 42px; margin: 0; border-top: 1px solid var(--line); max-width: none; }
ol.steps > li:last-child { border-bottom: 1px solid var(--line); }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 11px; width: 24px; height: 24px; border-radius: 50%; border: 0; color: var(--accent); font: 650 12.5px/1 var(--sans); display: grid; place-items: center; background: var(--accent-soft); }
ol.steps ul, ol.steps ol { margin: 6px 0 0; }
ol.steps .path, .note .path, table .path { font-size: 1em; }

/* Callouts */
.note { font-size: 16px; line-height: 1.6; color: var(--soft); background: var(--sunk); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 1.4em; max-width: none !important; }
.note.tip { background: var(--tip-soft); }
.note.warn { background: var(--warn-soft); }
.note.tip strong:first-child { color: var(--tip); }
.note.warn strong:first-child { color: var(--warn); }

/* Version tabs: a segmented control with a sliding thumb */
.versions { margin: 20px 0 28px; }
.vtabs { display: none; position: relative; gap: 2px; padding: 3px; background: var(--sunk); border: 1px solid var(--line); border-radius: 9px; width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 14px; scrollbar-width: none; }
.js .vtabs { display: flex; }
.vthumb { position: absolute; top: 3px; left: 0; height: calc(100% - 6px); border-radius: 6px; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); transition: transform var(--med) var(--ease), width var(--med) var(--ease); pointer-events: none; }
.vtab { position: relative; z-index: 1; font: 500 13.5px/1 var(--sans); border: 0; background: none; color: var(--muted); padding: 8px 12px; border-radius: 6px; cursor: pointer; white-space: nowrap; transition: color var(--fast); }
.vtab:hover { color: var(--text); }
.vtab[aria-selected="true"] { color: var(--accent); font-weight: 600; }
.vtabs:not(.ready) .vtab[aria-selected="true"] { background: var(--surface); }
.vhead { font: 600 12px/1.4 var(--sans); color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; margin: 20px 0 6px; }
.js .vhead { display: none; }
.nojs .vpane + .vpane { border-top: 1px dashed var(--line); margin-top: 20px; }

/* Screenshots */
figure.shot { margin: 28px 0; }
figure.shot img { display: block; height: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--sunk); }
figure.shot figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; text-align: center; }

/* Tables */
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; margin: 12px 0 24px; display: block; overflow-x: auto; color: var(--text); }
th, td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12.5px; color: var(--muted); font-weight: 600; border-bottom-color: var(--line-strong); }
tbody tr { transition: background var(--fast); }

/* House ad and our label */
.ad { border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin: 36px 0; font-size: 15.5px; line-height: 1.55; color: var(--soft); background: var(--surface); }
.ad p { margin: 4px 0; }
.ad-label { color: var(--ours) !important; }
.ad-name { font-weight: 650; font-size: 17px; color: var(--text); }
.ad-cta { font-weight: 600; color: var(--text) !important; }
.ad-note { color: var(--muted); font-size: 14px; margin-left: 6px; }
.ours { font: 600 10.5px/1.6 var(--sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ours); background: var(--ours-soft); border-radius: 4px; padding: 1px 6px; margin-left: 6px; white-space: nowrap; }
.reading ul { padding-left: 1.1em; }
.reading .site { color: var(--muted); font-size: 14px; }
.apps p { font-size: 15.5px; color: var(--muted); }

/* Did this fix it */
.helpbox { margin: 56px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); font-size: 15px; }
.helpbox p { margin: 4px 0; }
.helpbox-q { font-weight: 650; color: var(--text); font-size: 16px; }
.helpbox-btns { display: flex; align-items: center; gap: 8px; min-height: 38px; }
.fb, .vote, .btn-quiet { font: 500 14px/1 var(--sans); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); border-radius: 8px; padding: 9px 16px; cursor: pointer; transition: background var(--fast), border-color var(--fast), transform var(--fast) var(--ease); }
.fb:hover, .vote:hover:not(:disabled), .btn-quiet:hover { background: var(--hover); }
.fb:active, .vote:active:not(:disabled), button:active:not(:disabled) { transform: scale(.97); }
.fb-thanks { color: var(--muted); }
.nojs .helpbox-btns, .nojs .helpbox-q { display: none; }
.helpbox-links { color: var(--faint); font-size: 14px; margin-top: 10px !important; }
.helpbox-links a { color: var(--muted); }

/* Related */
.related { margin-top: 48px; }
.related h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--faint); font-weight: 600; margin: 0 0 6px; }

/* Lists of guides (home, sections, search, related) */
.cards, .related ul { list-style: none; padding: 0; margin: 0; }
.cards li, .related li { margin: 0; border-top: 1px solid var(--line); }
.cards li:last-child, .related li:last-child { border-bottom: 1px solid var(--line); }
.cards a, .related a { display: block; padding: 16px 12px; margin: 0 -12px; border-radius: 8px; text-decoration: none; color: var(--text); transition: background var(--fast); }
.related a { padding: 12px; font-weight: 550; }
.cards a:hover, .related a:hover { background: var(--hover); }
.cards a:hover .card-title, .related a:hover { color: var(--accent); }
.card-title { transition: color var(--fast); }
.card-title { display: block; font-weight: 600; font-size: 16.5px; line-height: 1.4; letter-spacing: -0.005em; }
.card-desc { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.5; margin-top: 3px; }
.card-meta { display: block; color: var(--faint); font-size: 12.5px; margin-top: 6px; }
.card-meta b { font-weight: 550; color: var(--accent); }

/* Home */
.hero { padding: 40px 0 12px; }
.hero h1 { font-size: clamp(32px, 6vw, 46px); margin: 0 0 14px; }
.hero .lede { max-width: 34em; }
.hero-search { position: relative; display: flex; gap: 8px; margin: 26px 0 8px; }
.hero-search input, .form input, .form textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; transition: border-color var(--fast), box-shadow var(--fast); }
.hero-search input { padding: 13px 16px; font-size: 16.5px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.hero-search input:focus, .form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-search button, .form button, .button { font: 600 15px/1 var(--sans); background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px; padding: 0 20px; min-height: 46px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: opacity var(--fast), transform var(--fast) var(--ease); }
.button { min-height: 40px; font-size: 14.5px; }
#ask-btn { min-width: 104px; justify-content: center; }
input[type=search]::-webkit-search-cancel-button { filter: grayscale(1); opacity: .5; }
.hero-search button:hover, .form button:hover, .button:hover { opacity: .86; }
button:disabled { opacity: .55; cursor: default; }
.hero-note { font-size: 13.5px; color: var(--muted); margin: 0; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.suggest a { font-size: 13.5px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; transition: color var(--fast), background var(--fast), border-color var(--fast); }
.suggest a:hover { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.home-block { margin-top: 56px; }
.home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.home-head h2 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--faint); font-weight: 600; }
.home-head a { font-size: 13.5px; color: var(--muted); text-decoration: none; }
.home-head a:hover { color: var(--text); }
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 28px; list-style: none; padding: 0; margin: 0; }
.topics li { margin: 0; border-top: 1px solid var(--line); }
.topics a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 0; text-decoration: none; color: var(--text); font-weight: 550; font-size: 15.5px; }
.topics a span { color: var(--faint); font-weight: 400; font-size: 13px; font-variant-numeric: tabular-nums; transition: transform var(--fast) var(--ease), color var(--fast); }
.topics a:hover span { color: var(--text); transform: translateX(2px); }
.home-open { margin-top: 56px; padding: 22px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.home-open p { margin: 0 0 4px; }
.home-open strong { color: var(--text); font-weight: 600; }
.more { margin: 12px 0 0; font-size: 14px; }
.more a { color: var(--muted); text-decoration: none; }
.more a:hover { color: var(--text); }

/* Reading progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 30; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.nojs .progress { display: none; }

/* Search and AI answer */
.ai { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 20px 0 8px; background: var(--surface); font-size: 16.5px; line-height: 1.65; }
.ai-label { display: flex; align-items: center; gap: 8px; }
.ai-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ai-model { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--faint); }
.ai p { margin: 6px 0; }
#ai-body { font-family: var(--serif); font-size: 17.5px; color: var(--text); }
.cite { font: 600 11px/1 var(--sans); vertical-align: 2px; text-decoration: none; margin: 0 1px; padding: 2px 5px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); transition: background var(--fast); }
.cite:hover { background: var(--hover); }
.ai-sources { font-size: 14px; margin: 12px 0 0; padding: 12px 0 0 1.2em; border-top: 1px solid var(--line); }
.ai-sources:empty { display: none; }
.ai-sources a { color: var(--text); }
.ai-sources .site { color: var(--muted); }
.search-status { font-size: 13.5px; color: var(--faint); margin: 10px 0 0; min-height: 1.5em; }
#results-wrap h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--faint); font-weight: 600; margin: 32px 0 6px; }
mark { background: color-mix(in srgb, var(--accent) 12%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }

/* Skeleton lines (loading states) */
.skel { display: block; height: 0.8em; margin: 0.55em 0; border-radius: 4px; background: linear-gradient(90deg, var(--sunk) 0%, var(--hover) 40%, var(--sunk) 80%); background-size: 300% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.skel.w90 { width: 90%; } .skel.w75 { width: 75%; } .skel.w60 { width: 60%; } .skel.w40 { width: 40%; }
.skel-card { padding: 16px 0; border-top: 1px solid var(--line); }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: spin .7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Forms */
.form { margin: 24px 0; }
.form fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.form legend { padding: 0; font-weight: 650; margin-bottom: 10px; font-size: 15px; }
.types { display: flex; flex-wrap: wrap; gap: 8px; }
.types legend { width: 100%; }
.types label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14.5px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; transition: background var(--fast), border-color var(--fast), color var(--fast); color: var(--muted); }
.types label:hover { background: var(--hover); }
.types label:has(input:checked) { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.form input[type="radio"] { width: auto; margin: 0; accent-color: var(--accent); }
.field { display: block; margin: 16px 0; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; }
#form-status { font-size: 14.5px; color: var(--muted); margin-left: 10px; }
.form-done { border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin: 24px 0; }
.form-done p { margin: 4px 0; }
.form-done .check { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tip-soft); color: var(--tip); font-weight: 700; margin-bottom: 8px; }

/* Requests */
.requests { list-style: none; padding: 0; margin: 20px 0; }
.requests li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); margin: 0; }
.requests li:last-child { border-bottom: 1px solid var(--line); }
.vote { min-width: 58px; padding: 7px 10px; font-variant-numeric: tabular-nums; display: inline-flex; flex-direction: column; align-items: center; gap: 3px; font-size: 13px; }
.vote .tri { font-size: 9px; line-height: 1; color: var(--faint); transition: color var(--fast), transform var(--fast) var(--ease); }
.vote.voted { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.vote.voted .tri { color: var(--accent); transform: translateY(-1px); }
.vote:disabled { opacity: 1; }
.req-title { flex: 1; font-size: 15.5px; }
.skel-row .skel:first-child { width: 58px; height: 40px; margin: 0; border-radius: 8px; flex: none; }
.skel-row .skel:last-child { flex: 0 1 60%; }

/* Motion. Everything below is decoration, and switches off for reduced motion. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 160ms var(--ease) both; }
::view-transition-new(root) { animation: vt-in 260ms var(--ease) both; }
.top { view-transition-name: top; }
::view-transition-group(top) { animation: none; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
.js main > * { animation: rise 420ms var(--ease) backwards; }
.js main > *:nth-child(2) { animation-delay: 30ms; }
.js main > *:nth-child(3) { animation-delay: 60ms; }
.js main > *:nth-child(n+4) { animation-delay: 90ms; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
/* The article holds the fixed contents list, so it only fades (a transform would move the list). */
.js main > article { animation-name: fade; animation-duration: 360ms; }
.reveal { animation: rise 320ms var(--ease) both; }
.fade { animation: fade 240ms var(--ease) both; }
@keyframes fade { from { opacity: 0; } }
.vpane.entering { animation: fade 220ms var(--ease) both; }
.pop { animation: pop 320ms var(--ease); }
@keyframes pop { 40% { transform: scale(1.08); } }
.live li { animation: rise 300ms var(--ease) both; animation-delay: calc(var(--i, 0) * 22ms); }
.settled main > * { animation: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .skel { background: var(--sunk); }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Analytics consent: a small card, bottom left */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 40; max-width: 360px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px 16px; box-shadow: 0 8px 30px rgba(0,0,0,.10); font-size: 14px; line-height: 1.5; color: var(--soft); animation: rise 320ms var(--ease) both; }
.consent p { margin: 0 0 10px; }
.consent strong { color: var(--text); }
.consent-btns { display: flex; gap: 8px; }
.consent .button { min-height: 34px; padding: 0 14px; font-size: 13.5px; border-radius: 8px; }
.consent .btn-quiet { padding: 8px 14px; font-size: 13.5px; }
@media (max-width: 600px) { .consent { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
