/* ProofProfile editorial palette and fonts, as in Observatory and proofprofile.net. */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/brand/fonts/geist-400_700-latin.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/brand/fonts/geistmono-400_700-latin.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/brand/fonts/bricolagegrotesque-400_700-latin.woff2') format('woff2'); }

:root {
    --ink: #17202b; --heading: #101c2d; --muted: #56606c; --line: #d5cec1; --line-soft: #e6e0d4; --bg: #f3efe7; --paper: #fffdf8; --panel: #ebe5da; --panel-soft: #f6f2ea;
    --accent: #13786f; --accent-dark: #0f5f57; --accent-bg: #dcece7; --ok: #0f5f57; --warn: #a76316; --bad: #a3361f;
    --ok-bg: #e3efe9; --warn-bg: #f6ead9; --bad-bg: #f5e2dc;
    --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mono: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
    --display: 'Bricolage Grotesque', 'Geist', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(16, 28, 45, 0.04), 0 2px 8px rgba(16, 28, 45, 0.04);
    --wrap: 1100px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
body > main { flex: 1 0 auto; width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; }
p { margin: 0 0 12px; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
code { background: var(--panel); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
abbr[title] { text-decoration: none; cursor: help; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.bar { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 12px 28px; min-height: 68px; }
.brand { margin: 0; font: 700 19px/1 var(--display); color: var(--heading); letter-spacing: -0.01em; flex: none; }
.brand a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.brand img { height: 36px; width: auto; mix-blend-mode: multiply; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { background: var(--panel-soft); color: var(--heading); }
.site-nav a[aria-current="page"] { background: var(--accent-bg); color: var(--accent-dark); font-weight: 650; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.account { margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
.who { color: var(--muted); font-size: 14px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account form { margin: 0; }

/* Admin bar: quieter second row, superadmin only */
.admin-bar { background: var(--panel); border-bottom: 1px solid var(--line); }
.admin-bar .inner { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; min-height: 46px; }
.admin-bar .label { font: 600 11px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.admin-bar a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; border: 1px solid transparent; }
.admin-bar a:hover { color: var(--heading); background: color-mix(in srgb, var(--paper) 50%, var(--panel)); }
.admin-bar a[aria-current="page"] { color: var(--heading); background: var(--paper); border-color: var(--line); font-weight: 600; }

@media (max-width: 760px) {
    .bar { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; min-height: 0; gap: 8px 12px; }
    .account { order: 2; }
    .site-nav { order: 3; width: 100%; gap: 6px; }
    .site-nav a { flex: 1; justify-content: center; min-height: 44px; border-radius: var(--radius-sm); background: var(--panel-soft); }
    .admin-bar .inner { padding: 8px 16px 10px; gap: 4px; }
    .admin-bar .label { width: 100%; margin: 0 0 2px; }
    .admin-bar a { flex: 1 1 auto; justify-content: center; min-height: 40px; padding: 0 8px; background: color-mix(in srgb, var(--paper) 40%, var(--panel)); }
}
@media (max-width: 520px) { .who { display: none; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); margin-top: 48px; }
.site-footer .inner { max-width: var(--wrap); margin: 0 auto; padding: 28px 16px 32px; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 32px; }
.foot-brand { display: flex; gap: 12px; align-items: flex-start; max-width: 520px; }
.foot-brand img { height: 28px; width: auto; mix-blend-mode: multiply; flex: none; margin-top: 2px; }
.foot-brand strong { display: block; font: 700 16px/1.3 var(--display); color: var(--heading); }
.foot-brand p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.foot-links a { display: inline-block; padding: 4px 0; color: var(--ink); text-decoration: none; }
.foot-links a:hover { color: var(--accent); text-decoration: underline; }
.foot-who { display: none; width: 100%; color: var(--muted); font-size: 13px; margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .foot-who { display: block; } .foot-links { gap: 4px 24px; } .foot-links a { padding: 8px 0; } }

/* Page */
main { max-width: var(--wrap); margin: 0 auto; padding: 32px 16px 0; }
h2 { font: 700 32px/1.15 var(--display); color: var(--heading); letter-spacing: -0.015em; margin: 0 0 8px; }
h3 { font: 700 19px/1.3 var(--display); color: var(--heading); margin: 0; }
h4 { font: 600 16px/1.4 var(--sans); color: var(--heading); margin: 0 0 6px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.page-head > div { min-width: 0; max-width: 720px; }
.page-head .lede { color: var(--muted); margin: 0; }
.eyebrow { font: 600 12px/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
@media (max-width: 600px) { main { padding-top: 20px; } h2 { font-size: 27px; } .page-head { margin-bottom: 16px; } }

/* Messages */
.flash, .errors, .note { padding: 12px 16px; border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); border-left: 4px solid var(--ok); background: var(--ok-bg); border-radius: var(--radius-sm); margin: 0 0 20px; }
.errors { border-color: color-mix(in srgb, var(--bad) 30%, transparent); border-left-color: var(--bad); background: var(--bad-bg); }
.errors ul { margin: 0; padding-left: 18px; }
.note { border-color: var(--line); border-left-color: var(--muted); background: var(--panel-soft); }
.note.warn { border-color: color-mix(in srgb, var(--warn) 30%, transparent); border-left-color: var(--warn); background: var(--warn-bg); }
.note.bad { border-color: color-mix(in srgb, var(--bad) 30%, transparent); border-left-color: var(--bad); background: var(--bad-bg); overflow-wrap: anywhere; }
.note p:last-child, .flash p:last-child { margin-bottom: 0; }

/* Cards */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 24px; box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.card-head > div { min-width: 0; }
.card-head h3 { overflow-wrap: anywhere; }
.card-desc { margin: 2px 0 0; color: var(--muted); font-size: 14px; max-width: 680px; }
.card-body { padding: 20px; }
.card-body > :last-child { margin-bottom: 0; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 14px 20px; border-top: 1px solid var(--line-soft); background: var(--panel-soft); border-radius: 0 0 var(--radius) var(--radius); }
.card-foot form { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-bottom: 24px; }
.cards > .card { margin: 0; }
.item-list { display: grid; gap: 16px; margin-bottom: 24px; }
.item-list > .card { margin: 0; }
.empty { color: var(--muted); padding: 36px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); text-align: center; background: color-mix(in srgb, var(--paper) 60%, transparent); margin: 0 0 24px; }
.empty strong { display: block; color: var(--heading); font: 700 17px/1.3 var(--display); margin-bottom: 4px; }
.empty p:last-child { margin-bottom: 0; }
.card-body .empty, .card .empty { margin: 0; }
@media (max-width: 600px) { .card-head { padding: 14px 16px; } .card-body { padding: 16px; } .card-foot { padding: 12px 16px; } }

/* Track record */
.record .card-body { padding-top: 24px; }
.record .title { font: 700 clamp(28px, 5vw, 44px)/1.08 var(--display); letter-spacing: -0.02em; color: var(--heading); margin: 0 0 8px; overflow-wrap: anywhere; }
.byline { font-size: 18px; margin: 0 0 20px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 16px 24px; margin: 0; }
.facts > div { min-width: 0; }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts .wide { grid-column: 1 / -1; }
.record .facts { padding-top: 20px; border-top: 1px solid var(--line-soft); }
.proof-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.proof-line a { overflow-wrap: anywhere; min-width: 0; }
details.hash summary { cursor: pointer; font-family: var(--mono); font-size: 0.92em; }
details.hash code { display: block; margin-top: 6px; padding: 6px 8px; }

/* Forms and buttons */
form.inline { display: inline; }
label { display: block; font-weight: 600; font-size: 14px; color: var(--heading); margin: 10px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea { width: 100%; max-width: 420px; padding: 8px 12px; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); min-height: 44px; }
input:focus, select:focus { border-color: var(--accent); }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; flex: none; }
#code { letter-spacing: 0.24em; text-transform: uppercase; font: 600 24px var(--mono); text-align: center; max-width: none; min-height: 56px; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 500 15px/1.2 var(--sans); padding: 10px 18px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); cursor: pointer; text-decoration: none; margin: 0; white-space: nowrap; }
button:hover, .button:hover { border-color: var(--muted); color: var(--heading); background: var(--panel-soft); }
button.primary, .button.primary { background: var(--accent); color: var(--paper); border-color: var(--accent); font-weight: 600; }
button.primary:hover, .button.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--paper); }
button.danger, .button.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); background: var(--paper); }
button.danger:hover, .button.danger:hover { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
button.danger.solid { background: var(--bad); border-color: var(--bad); color: var(--paper); }
button.danger.solid:hover { background: #862b18; color: var(--paper); }
button.small, .button.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
button.block, .button.block { width: 100%; }
.text-link { font-size: 15px; font-weight: 500; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; margin: 0; }
.form-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.form-row > .field { flex: 1 1 180px; min-width: 0; }
.form-row > .field.grow { flex: 3 1 240px; }
.form-row label { margin-top: 0; }
.form-row input, .form-row select { max-width: none; }
.form-row .check { min-height: 44px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }
.form-block + .form-block { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.form-title { font: 600 13px/1.4 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
@media (max-width: 520px) { .form-row > button, .form-row > .button { width: 100%; } }

/* Watch form: options as rows with a price on the right */
.options { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.options li + li { border-top: 1px solid var(--line-soft); }
.option { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px; font-weight: 500; font-size: 16px; color: var(--ink); cursor: pointer; background: var(--paper); }
.option:hover { background: var(--panel-soft); }
.option:has(input:checked) { background: var(--ok-bg); }
.option .what { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.option .kind { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.option .price { font-family: var(--mono); font-size: 14px; color: var(--muted); white-space: nowrap; }

/* Stats and money */
.stat { display: flex; flex-direction: column; gap: 2px; padding: 20px; }
.stat .label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stat .value { font: 700 26px/1.2 var(--display); color: var(--heading); font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 14px; color: var(--muted); }
.balance { font: 700 clamp(44px, 9vw, 64px)/1 var(--display); color: var(--heading); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 0; }
.topups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; }
.topups button { min-height: 60px; font: 700 18px var(--display); }
@media (max-width: 600px) { .topups { grid-template-columns: repeat(2, 1fr); } }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.prices .stat { padding: 16px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--panel-soft); }
.amount { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount.plus { color: var(--ok); }
.amount.minus { color: var(--ink); }
.credit-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.credit-line strong { font-family: var(--mono); }

/* Pills and tags */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1.6; border: 1px solid var(--line); background: var(--panel); color: var(--ink); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pill.ok { border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: var(--ok-bg); color: var(--ok); }
.pill.warn { border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: var(--warn-bg); color: var(--warn); }
.pill.bad { border-color: color-mix(in srgb, var(--bad) 35%, transparent); background: var(--bad-bg); color: var(--bad); }
.pill.quiet { background: transparent; color: var(--muted); }
.pill.wrap { white-space: normal; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; background: var(--panel); color: var(--muted); white-space: nowrap; }
.status-warn { color: var(--warn); font-weight: 600; }
.status-bad { color: var(--bad); font-weight: 600; }

/* Tabs as a segmented control */
.answers-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 32px 0 16px; }
.answers-head h3 { font-size: 22px; }
.answers-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.answers-tools form { margin: 0; }
.tabs { display: inline-flex; padding: 4px; gap: 4px; background: var(--panel); border-radius: 10px; border: 1px solid var(--line); }
.tabs a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 18px; border-radius: 7px; font: 600 15px var(--sans); color: var(--muted); text-decoration: none; }
.tabs a:hover { color: var(--heading); }
.tabs a[aria-current="page"] { background: var(--paper); color: var(--heading); box-shadow: 0 1px 2px rgba(16, 28, 45, 0.12); }

/* Answers */
.answers { display: grid; gap: 16px; }
.answer { margin: 0; }
.answer .card-head { align-items: baseline; }
.answer-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.answer-title h4 { font: 700 18px/1.3 var(--display); margin: 0; }
.answer .model { font-family: var(--mono); font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.answer .date { font-family: var(--mono); font-size: 14px; color: var(--muted); white-space: nowrap; }
.answer .about { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.surfaced-line { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.matched { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.answer .pills + *, .answer .note + * { margin-top: 12px; }
.answer .note { margin: 0; }
.answer details > summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: 4px 0; }
.answer details[open] > summary { margin-bottom: 10px; }
.answer-text { max-width: 760px; overflow-wrap: anywhere; }
.answer-text > :first-child { margin-top: 0; }
.answer-text > :last-child { margin-bottom: 0; }
.answer-text p, .answer-text ul, .answer-text ol, .answer-text blockquote, .answer-text pre { margin: 0 0 10px; }
.answer-text ul, .answer-text ol { padding-left: 22px; }
.answer-text li + li { margin-top: 4px; }
.answer-text h1, .answer-text h2, .answer-text h3, .answer-text h4, .answer-text h5, .answer-text h6 { font-size: 16px; margin: 14px 0 6px; }
.answer-text blockquote { padding-left: 12px; border-left: 3px solid var(--line); color: var(--muted); }
.answer-text pre { overflow-x: auto; }
.answer-text code { font-family: var(--mono); font-size: 14px; }
.cited { margin: 12px 0 0; padding: 12px 0 0 20px; border-top: 1px dashed var(--line); font-size: 14px; overflow-wrap: anywhere; }
.cited li + li { margin-top: 4px; }

/* Tables: flush inside a card; stacked rows on phones */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--panel-soft); white-space: nowrap; }
tbody tr:hover td { background: color-mix(in srgb, var(--panel-soft) 60%, var(--paper)); }
td.num, th.num { text-align: right; }
td.nowrap { white-space: nowrap; }
td.actions { text-align: right; white-space: nowrap; }
td code { white-space: normal; }
.cell-title { font-weight: 600; }
.cell-sub { display: block; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.card > table:last-child tbody tr:last-child td:first-child { border-bottom-left-radius: var(--radius); }

@media (max-width: 700px) {
    table.stack, table.stack tbody { display: block; }
    table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    table.stack tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
    table.stack tbody tr:last-child { border-bottom: 0; }
    table.stack td { display: flex; gap: 12px; padding: 3px 0; border: 0; text-align: left; white-space: normal; min-width: 0; }
    table.stack td[data-label]::before { content: attr(data-label); flex: 0 0 96px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
    table.stack td > * { min-width: 0; }
    table.stack td.primary { display: block; padding-bottom: 6px; }
    table.stack td.actions { padding-top: 10px; }
    table.stack td.is-empty { display: none; }
    table.stack tbody tr:hover td { background: none; }
}

/* Audit log */
table.audit { table-layout: fixed; }
table.audit col.c-time { width: 124px; }
table.audit col.c-action { width: 226px; }
table.audit col.c-who { width: 168px; }
table.audit col.c-ip { width: 168px; }
table.audit col.c-detail { width: 214px; }
table.audit td { padding: 10px 14px; font-size: 14px; line-height: 1.5; }
table.audit th { padding: 10px 14px; }
table.audit td > * { min-width: 0; }
table.audit .t { font-family: var(--mono); font-size: 13px; white-space: nowrap; color: var(--heading); }
table.audit .pill { font-family: var(--mono); font-size: 12px; padding: 0 8px; }
.clip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.full { min-width: 0; }
details.full > summary { cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; list-style: none; }
details.full > summary::-webkit-details-marker { display: none; }
details.full > summary::after { content: ' +'; color: var(--muted); }
details.full[open] > summary::after { content: ' -'; }
details.full > .full-value { display: block; margin-top: 6px; padding: 6px 8px; font-family: var(--mono); font-size: 12px; line-height: 1.5; background: var(--panel-soft); border: 1px solid var(--line-soft); border-radius: 6px; overflow-wrap: anywhere; white-space: pre-wrap; }
details.json > summary { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.country { display: inline-block; font: 600 11px/1.6 var(--mono); padding: 0 6px; border-radius: 4px; background: var(--panel); color: var(--muted); margin-left: 6px; vertical-align: 1px; }
.ip-line { display: flex; align-items: baseline; min-width: 0; }
.ip-line > :first-child { min-width: 0; flex: 0 1 auto; }

@media (max-width: 700px) {
    table.audit, table.audit tbody { display: block; }
    table.audit colgroup, table.audit thead { display: none; }
    table.audit tbody { padding: 12px; display: grid; gap: 10px; background: var(--panel-soft); border-radius: 0 0 var(--radius) var(--radius); }
    table.audit tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }
    table.audit td { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 0; border: 0; grid-column: 1 / -1; font-size: 14px; }
    table.audit td[data-label]::before { content: attr(data-label); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
    table.audit td.c-action { grid-column: 1; grid-row: 1; display: block; padding-bottom: 4px; }
    table.audit td.c-time { grid-column: 2; grid-row: 1; display: block; text-align: right; }
    table.audit td.is-empty { display: none; }
    table.audit tbody tr:hover td { background: none; }
}

/* Pagination */
.pager ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 12px; align-items: center; justify-content: space-between; width: 100%; }
.pager { width: 100%; }
.pager .page-no { font-size: 14px; color: var(--muted); }
.pager .off { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; font-size: 14px; color: var(--muted); opacity: 0.6; }

/* People and admin lists */
.meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.meta > span { overflow-wrap: anywhere; min-width: 0; }
.meta strong { color: var(--heading); }

/* Logged out pages */
.auth-body main { max-width: 460px; padding-top: 12vh; }
.auth-card .card-body { padding: 32px 28px; }
.auth-logo { display: flex; align-items: center; gap: 10px; font: 700 19px var(--display); color: var(--heading); margin: 0 0 28px; }
.auth-logo img { height: 40px; width: auto; mix-blend-mode: multiply; }
.auth-card h2 { font-size: 28px; }
.auth-card button { width: 100%; margin-top: 16px; }
.auth-body .site-footer { margin-top: 32px; }
@media (max-width: 480px) { .auth-body main { padding-top: 24px; } .auth-card .card-body { padding: 24px 20px; } }
.hint { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.card-body > :first-child { margin-top: 0; }
.card-body.divider { border-top: 1px solid var(--line-soft); }
.card.narrow { max-width: 680px; }
.card-head h2 { font-size: 24px; margin: 0; overflow-wrap: anywhere; }
.back { margin: 0 0 12px; font-size: 14px; }
.back a::before { content: '\2190\00a0'; }
@media (max-width: 520px) { .card-foot > .button, .card-foot > button { flex: 1 1 auto; } .card-foot > button { white-space: normal; } }
.facts.spaced { margin-top: 16px; }
.form-row.card-foot { align-items: flex-end; justify-content: flex-start; }
.form-actions.tight { margin-top: 0; }
.form-block.form-row { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
@media (min-width: 900px) { .item-list.two { grid-template-columns: 1fr 1fr; align-items: start; } }
.head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.card > .card-head:last-child { border-bottom: 0; }
@media (max-width: 600px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; } .head-actions { width: 100%; } .head-actions .button { flex: 1; } }
.form-row > .field.narrow { flex: 0 1 200px; }
@media (max-width: 520px) { .form-row > .field.narrow { flex: 1 1 100%; } }
.card-head { flex-wrap: nowrap; align-items: flex-start; }
.card-head > div:first-child { flex: 1 1 auto; }
.card-head > .pill { flex: none; margin-top: 2px; }
.card-head > .pill.wrap { flex: 0 1 auto; max-width: 50%; }
.answer .card-head { align-items: baseline; }
@media (max-width: 600px) { .card-head { flex-wrap: wrap; } .card-head > .pill.wrap { max-width: 100%; } }
@media (max-width: 600px) { .facts .cid { grid-column: 1 / -1; } }

/* Answer cards: the first two lines show before the answer is opened */
.answer-preview { margin: 0 0 8px; max-width: 760px; overflow-wrap: anywhere; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.answer-preview:has(+ details[open]) { display: none; }
