/* Community feedback pages. Same design language as the rest of the site (docs/index.html): cream
   paper, serif headings, mono labels, a forest-green accent, and the same light/dark tokens - plus the
   few things only these pages need. No framework; everything is plain CSS. */

:root {
  color-scheme: light;
  --bg: #f3ede1;
  --surface: #fbf8f0;
  --surface-alt: #eae2d0;
  --ink: #201d16;
  --soft: #5c5647;
  /* Darker than the site's own --faint (#8f8874, ~3.3:1): these pages use it for real text, which needs 4.5:1. */
  --faint: #645e4f;
  --border: rgba(32, 29, 22, 0.16);
  --border-strong: rgba(32, 29, 22, 0.32);
  --accent: #2f4a3d;
  --accent-soft: rgba(47, 74, 61, 0.1);
  --accent-ink: #fbf8f0;
  --danger: #a23a29;
  --danger-soft: rgba(179, 65, 47, 0.1);
  --warn: #93500f;
  --warn-soft: rgba(217, 119, 47, 0.14);
  --st-review: #8f8874;
  --st-planned: #305a86;
  --st-progress: #d9772f;
  --st-resolved: #2f4a3d;
  --st-backlog: #6c7a89;
  --st-testing: #7a4f9a;
  --st-wontdo: #8a7f78;
  --k-bug: #b3412f;
  --k-feature: #a15c2c;
  --k-question: #305a86;
  --shadow-lg: 0 24px 50px -20px rgba(32, 29, 22, 0.35);
  --shadow-sm: 0 8px 18px -10px rgba(32, 29, 22, 0.3);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1b1912; --surface: #242019; --surface-alt: #2c271d; --ink: #ece7d8; --soft: #b9b29c; --faint: #a39c87;
    --border: rgba(236, 231, 216, 0.14); --border-strong: rgba(236, 231, 216, 0.26);
    --accent: #8fc7a8; --accent-soft: rgba(143, 199, 168, 0.14); --accent-ink: #1b1912;
    --danger: #e08572; --danger-soft: rgba(224, 133, 114, 0.14); --warn: #e3b877; --warn-soft: rgba(227, 184, 119, 0.14);
    --st-review: #847d69; --st-planned: #7fa8d6; --st-progress: #e69a5c; --st-resolved: #8fc7a8; --st-backlog: #8da0b3; --st-testing: #b99ad6; --st-wontdo: #a39a92;
    --k-bug: #e08572; --k-feature: #d99b5c; --k-question: #7fa8d6;
    --shadow-lg: 0 24px 50px -20px rgba(0, 0, 0, 0.55); --shadow-sm: 0 8px 18px -10px rgba(0, 0, 0, 0.45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1b1912; --surface: #242019; --surface-alt: #2c271d; --ink: #ece7d8; --soft: #b9b29c; --faint: #a39c87;
  --border: rgba(236, 231, 216, 0.14); --border-strong: rgba(236, 231, 216, 0.26);
  --accent: #8fc7a8; --accent-soft: rgba(143, 199, 168, 0.14); --accent-ink: #1b1912;
  --danger: #e08572; --danger-soft: rgba(224, 133, 114, 0.14); --warn: #e3b877; --warn-soft: rgba(227, 184, 119, 0.14);
  --st-review: #847d69; --st-planned: #7fa8d6; --st-progress: #e69a5c; --st-resolved: #8fc7a8; --st-backlog: #8da0b3; --st-testing: #b99ad6; --st-wontdo: #a39a92;
  --k-bug: #e08572; --k-feature: #d99b5c; --k-question: #7fa8d6;
  --shadow-lg: 0 24px 50px -20px rgba(0, 0, 0, 0.55); --shadow-sm: 0 8px 18px -10px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(var(--border) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
body.modal-open { overflow: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
/* Headings are focused by script after navigation so screen readers land on them; that's not a place to type, so no ring. */
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ic { display: inline-flex; flex-shrink: 0; vertical-align: -0.2em; }
.muted { color: var(--soft); }
.faint { color: var(--faint); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }

/* ---------- page frame (matches the site's nav and footer) ---------- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px 90px; }
.wrap.narrow { max-width: 820px; }
.wrap.wide { max-width: 1320px; }

nav.top { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; text-decoration: none; font-family: ui-serif, Georgia, serif; }
.brand img { width: 26px; height: 26px; border-radius: 7px; display: block; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 13px; font-weight: 500; color: var(--soft); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.current { color: var(--ink); font-weight: 600; }
.nav-links .nav-cta { color: var(--ink); padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; }
.nav-links .nav-cta:hover { border-color: var(--accent); }
.theme-toggle {
  appearance: none; background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 13px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--soft);
}
.theme-toggle[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.theme-toggle:hover { border-color: var(--accent); }

footer.site { margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
footer.site .footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: 13px; font-weight: 500; color: var(--soft); }
footer.site .footer-links a { text-decoration: none; }
footer.site .footer-links a:hover { color: var(--ink); }
footer.site .footer-note { max-width: 680px; margin: 0; font-size: 12px; line-height: 1.6; color: var(--faint); }

.page-hero { padding: 14px 0 6px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.page-hero h1, .serif { font-family: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif; font-weight: 500; letter-spacing: -0.015em; }
.page-hero h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.16; margin: 0 0 12px; text-wrap: balance; }
.page-hero p.lead { font-size: 15px; line-height: 1.65; color: var(--soft); max-width: 60ch; margin: 0; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 16px;
  border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; transition: transform .12s ease, filter .12s ease, border-color .12s ease;
}
.btn:hover:not(:disabled) { border-color: var(--accent); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: var(--shadow-sm); }
.btn.primary:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.12); }
.btn.danger { color: var(--danger); border-color: var(--danger); background: transparent; }
.btn.danger:hover:not(:disabled) { background: var(--danger-soft); }
.btn.solid-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.small { min-height: 30px; padding: 4px 11px; font-size: 12.5px; border-radius: 7px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--soft); }
.btn.ghost:hover:not(:disabled) { color: var(--ink); background: var(--accent-soft); border-color: transparent; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--soft); }
.icon-btn:hover { background: var(--accent-soft); color: var(--ink); }

label, .label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.hint { font-size: 12.5px; color: var(--faint); margin: 5px 0 0; line-height: 1.5; }
.field { margin: 0 0 20px; min-width: 0; }
.field .label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field .label-row label { margin: 0; }
.opt { font-weight: 500; color: var(--faint); font-size: 12px; margin-left: 6px; }
.counter { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.counter.near { color: var(--warn); }
.counter.over { color: var(--danger); font-weight: 700; }
input[type="text"], input[type="email"], input[type="search"], select, textarea {
  width: 100%; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 8px; padding: 9px 11px; font-size: 14px; line-height: 1.45;
}
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.error { color: var(--danger); font-size: 12.5px; margin: 6px 0 0; font-weight: 500; }
.error::before { content: "\26A0\FE0E\00a0"; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(135deg, var(--soft) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }

.chip, .badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; line-height: 1; padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--soft); white-space: nowrap;
}
.chip { cursor: pointer; font-size: 12.5px; padding: 7px 13px; }
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .count { font-weight: 500; }
.chip[aria-pressed="true"] .count { color: inherit; }
.chip .count { color: var(--faint); }
.badge.kind-bug .ic { color: var(--k-bug); } .badge.kind-feature .ic { color: var(--k-feature); } .badge.kind-question .ic { color: var(--k-question); }
.badge.prio-high { color: var(--warn); border-color: var(--warn); background: var(--warn-soft); }
.badge.prio-critical { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }
.badge.soft { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.badge.warn { color: var(--warn); border-color: var(--warn); background: var(--warn-soft); }
.chip.static { cursor: default; font-size: 11.5px; padding: 4px 9px; background: var(--surface-alt); }
.chip.static:hover { border-color: var(--border); color: var(--soft); }
.badge.state-new { color: var(--warn); border-color: var(--warn); }
.badge.state-promoted { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.badge.state-declined { color: var(--faint); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex-shrink: 0; }
.dot.under_review { background: var(--st-review); } .dot.backlog { background: var(--st-backlog); } .dot.planned { background: var(--st-planned); } .dot.in_progress { background: var(--st-progress); } .dot.in_testing { background: var(--st-testing); } .dot.resolved { background: var(--st-resolved); } .dot.wont_do { background: var(--st-wontdo); }

.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 9px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 7px 13px; font-size: 13px; font-weight: 600; color: var(--soft); display: inline-flex; align-items: center; gap: 6px; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--ink); color: var(--bg); }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 13.5px; line-height: 1.55; }
.notice.warn { border-color: var(--warn); background: var(--warn-soft); }
.notice.danger { border-color: var(--danger); background: var(--danger-soft); }
.notice.ok { border-color: var(--accent); background: var(--accent-soft); }
.notice .ic { margin-top: 2px; }
.notice p { margin: 0; }
.notice p + p { margin-top: 4px; }

/* ---------- prose (rendered Markdown) ---------- */
.prose { font-size: 14.5px; line-height: 1.7; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; } .prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 12px; }
.prose h4, .prose h5, .prose h6 { font-family: ui-serif, Georgia, serif; font-weight: 600; margin: 20px 0 6px; line-height: 1.3; }
.prose h4 { font-size: 16px; } .prose h5 { font-size: 15px; } .prose h6 { font-size: 14px; color: var(--soft); }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 22px; } .prose li { margin: 3px 0; }
.prose li.task { list-style: none; margin-left: -22px; display: flex; gap: 9px; align-items: baseline; }
.prose .task-box { flex: 0 0 15px; height: 15px; border: 1.5px solid var(--border-strong); border-radius: 4px; transform: translateY(2px); position: relative; }
.prose li.is-done .task-box { background: var(--accent); border-color: var(--accent); }
.prose li.is-done .task-box::after { content: ""; position: absolute; left: 4px; top: 0; width: 4px; height: 8px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.prose li.is-done > span:last-child { color: var(--faint); text-decoration: line-through; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--surface-alt); border-radius: 5px; padding: 1px 5px; }
.prose pre { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 9px; padding: 12px 14px; overflow-x: auto; margin: 0 0 12px; }
.prose pre code { background: none; padding: 0; font-size: 12.5px; line-height: 1.6; }
.prose blockquote { margin: 0 0 12px; padding: 2px 0 2px 14px; border-left: 3px solid var(--border-strong); color: var(--soft); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
.prose a { color: var(--accent); text-underline-offset: 2px; }

/* ---------- toast ---------- */
#toasts { position: fixed; z-index: 300; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 460px); }
/* Click-through: a toast is only ever a notification, and it must never cover a button someone is about to press. */
.toast { pointer-events: none; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-lg); animation: rise .18s ease; }
.toast-error { background: var(--danger); color: #fff; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(20, 17, 10, 0.5); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); animation: rise .16s ease; outline: none; }
.modal-wide { width: min(880px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-family: ui-serif, Georgia, serif; font-weight: 500; font-size: 19px; margin: 0; }
.modal-body { padding: 18px 20px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.modal-text { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--soft); }

/* ---------- empty states ---------- */
.empty { text-align: center; padding: 56px 16px; color: var(--soft); }
.empty h2, .empty h3 { font-family: ui-serif, Georgia, serif; font-weight: 500; font-size: 20px; margin: 0 0 6px; color: var(--ink); }
.empty p { margin: 0 0 18px; }
.col-empty { font-size: 12.5px; color: var(--faint); padding: 14px 8px; text-align: center; list-style: none; }
.meta-item { display: inline-flex; align-items: center; gap: 4px; }

.stepper { display: flex; align-items: flex-start; margin: 0 0 26px; padding: 18px 16px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; list-style: none; }
.stepper li { flex: 1 1 0; text-align: center; position: relative; font-size: 12px; color: var(--faint); min-width: 0; }
.stepper li::before { content: ""; position: absolute; top: 9px; left: -50%; right: 50%; height: 2px; background: var(--border-strong); }
.stepper li:first-child::before { display: none; }
.stepper li.reached::before { background: var(--accent); }
.stepper .node { position: relative; z-index: 1; display: block; width: 20px; height: 20px; border-radius: 50%; margin: 0 auto 7px; border: 2px solid var(--border-strong); background: var(--surface); }
.stepper li.reached .node { background: var(--accent); border-color: var(--accent); }
.stepper li.current .node { box-shadow: 0 0 0 4px var(--accent-soft); }
.stepper li.reached .node::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.stepper .name { display: block; font-weight: 600; color: var(--soft); }
.stepper li.current .name { color: var(--ink); }
.stepper .when { display: block; margin-top: 2px; font-size: 11px; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.timeline li { position: relative; padding: 0 0 16px 22px; font-size: 13.5px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 7px; bottom: -4px; width: 1px; background: var(--border-strong); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.timeline li.status::after { background: var(--accent); }
.timeline .when { color: var(--faint); font-size: 12px; margin-left: 8px; }
.timeline .note { display: block; margin-top: 3px; color: var(--soft); white-space: pre-wrap; }

.lightbox { position: fixed; inset: 0; z-index: 250; background: rgba(10, 8, 4, 0.88); display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* ---------- the report form (one page: the choices, then the form for the one chosen) ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px 26px; box-shadow: var(--shadow-sm); }
.panel h2 { font-family: ui-serif, Georgia, serif; font-weight: 500; font-size: 22px; margin: 0 0 6px; letter-spacing: -0.01em; }
.panel .sub { margin: 0 0 22px; color: var(--soft); font-size: 14px; }
#form { margin-top: 26px; }
.kinds-block h2 { margin-bottom: 14px; }
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 16px; }
.kind-card { position: relative; display: block; padding: 14px 16px 13px; border: 1.5px solid var(--border-strong); border-radius: 12px; background: var(--bg); cursor: pointer; transition: border-color .12s ease, transform .12s ease; margin: 0; }
.kind-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.kind-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.kind-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.kind-card.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.kind-card .kc-icon { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 9px; }
.kind-card .kc-title { display: block; font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.kind-card .kc-blurb { display: block; font-size: 12.5px; color: var(--soft); line-height: 1.5; font-weight: 400; }
.kind-card[data-kind="bug"] .kc-icon { color: var(--k-bug); } .kind-card[data-kind="feature"] .kc-icon { color: var(--k-feature); } .kind-card[data-kind="question"] .kc-icon { color: var(--k-question); }
.panel .details-title { margin-bottom: 18px; }
#details { margin-top: 22px; padding-top: 24px; border-top: 1px solid var(--border); }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
/* Optional parts of the form start folded away: "Your setup", "More details", the email. */
.disclosure { margin: 0 0 20px; border: 1px solid var(--border); border-radius: 10px; background: color-mix(in srgb, var(--surface-alt) 30%, transparent); }
.disclosure > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; font-size: 13.5px; font-weight: 600; border-radius: 10px; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary:hover { color: var(--accent); }
.disclosure .d-label { display: inline-flex; align-items: baseline; flex-wrap: wrap; min-width: 0; }
.disclosure .d-caret { color: var(--faint); display: inline-flex; flex-shrink: 0; transition: transform .15s ease; }
.disclosure[open] > summary .d-caret { transform: rotate(90deg); }
.disclosure .d-body { padding: 16px 14px 0; border-top: 1px solid var(--border); }
.disclosure .d-body > :last-child { margin-bottom: 16px; }
.setup-value { font-weight: 500; color: var(--soft); overflow-wrap: anywhere; }
.setup-value:not(:empty)::before { content: "\00b7"; margin: 0 8px 0 6px; color: var(--faint); }

.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 24px 20px; border: 2px dashed var(--border-strong); border-radius: 14px; background: var(--bg); cursor: pointer; transition: border-color .12s ease, background .12s ease; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.disabled { opacity: .55; cursor: not-allowed; }
.dropzone .ic { color: var(--accent); }
.dropzone strong { font-size: 14.5px; }
.dropzone small { color: var(--faint); font-size: 12.5px; }
.files { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.file { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.file .thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--surface-alt); display: flex; align-items: center; justify-content: center; color: var(--faint); border: 1px solid var(--border); }
.file .name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .detail { font-size: 12px; color: var(--faint); }
.file .detail.bad { color: var(--danger); font-weight: 500; }
.bar { height: 5px; border-radius: 3px; background: var(--border); overflow: hidden; margin-top: 6px; }
.bar > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s linear; }
.turnstile { min-height: 4px; margin: 0 0 14px; }
#done { margin-top: 28px; }
.success { text-align: center; padding: 18px 6px 6px; }
.success .tick { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); margin-bottom: 14px; }
.success h1 { font-family: ui-serif, Georgia, serif; font-weight: 500; font-size: 24px; letter-spacing: -0.01em; margin: 0 0 8px; }
.linkbox { display: flex; gap: 8px; margin: 18px auto 8px; max-width: 560px; }
.linkbox input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

/* ---------- track ---------- */
.status-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.reply { border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; padding: 14px 16px; margin: 18px 0; }
.reply .who { font-size: 12px; font-weight: 700; color: var(--accent); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- admin: frame ---------- */
body.admin { background-image: none; }
.admin-bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px; padding: 10px 20px; background: var(--surface); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.admin-bar .brand { font-size: 14.5px; }
.admin-bar .tabs { display: flex; gap: 4px; margin-left: 12px; flex-wrap: wrap; }
.tab { position: relative; border: 0; background: transparent; padding: 8px 14px; font-size: 13.5px; font-weight: 600; color: var(--soft); border-radius: 8px; display: inline-flex; gap: 8px; align-items: center; }
.tab:hover { background: var(--accent-soft); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.tab .pill { font-size: 11px; font-weight: 700; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--st-progress); color: #1b1912; text-align: center; }
.admin-bar .who { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--soft); }
.role-tag { font-weight: 500; color: var(--faint); margin-left: 2px; }
.role-tag::before { content: "\00b7"; margin-right: 8px; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu .menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 220px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; display: grid; gap: 2px; }
.menu .menu-pop button { text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 7px; font-size: 13px; font-weight: 500; }
.menu .menu-pop button:hover { background: var(--accent-soft); }

/* ---------- admin: inbox (list + reading pane) ---------- */
.admin-main { display: grid; grid-template-columns: 390px minmax(0, 1fr); height: calc(100vh - 57px); }
.pane { overflow: auto; min-width: 0; }
.pane.list { border-right: 1px solid var(--border); background: var(--bg); }
.pane.detail { padding: 24px 30px 60px; background: var(--bg); }
.filters { position: sticky; top: 0; z-index: 5; padding: 12px; background: var(--surface); border-bottom: 1px solid var(--border); display: grid; gap: 8px; }
.filters .row { gap: 6px; }
.filters select, .filters input { height: 36px; font-size: 13px; }
.rows { list-style: none; margin: 0; padding: 0; }
.irow { display: grid; grid-template-columns: 22px 1fr; gap: 4px 10px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--border); background: transparent; padding: 12px 14px; }
button.irow:hover { background: var(--accent-soft); }
.irow[aria-current="true"] { background: var(--surface); box-shadow: inset 3px 0 0 var(--accent); }
.irow .t { font-size: 13.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.irow .m { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--faint); align-items: center; }
.irow.unread .t::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--st-progress); margin-right: 7px; vertical-align: 1px; }
.irow .kic { color: var(--k-bug); margin-top: 1px; } .irow .kic.feature { color: var(--k-feature); } .irow .kic.question { color: var(--k-question); }
.rows.linked { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); overflow: hidden; }
.rows.linked .irow:last-child { border-bottom: 0; }
.list-foot { padding: 14px; text-align: center; }
.only-narrow { display: none; margin-bottom: 10px; }
.detail-head .detail-title { font-family: ui-serif, Georgia, serif; font-weight: 500; font-size: 24px; line-height: 1.25; margin: 4px 0 8px; overflow-wrap: anywhere; }
.detail-title .num { color: var(--faint); font-weight: 400; }
.detail-title:focus { outline: none; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 20px; margin: 0 0 22px; padding: 0; }
.facts div { min-width: 0; }
.facts dt { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 0 0 2px; }
.facts dd { margin: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.block { margin: 0 0 20px; }
.block .block-title, .danger-zone .block-title, .modal-body .block-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 0 0 6px; }
.block .body { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.raw { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; }
.withheld { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--soft); padding: 5px 10px; border: 1px dashed var(--border-strong); border-radius: 8px; }
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.att { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.att img, .att video { display: block; width: 100%; height: 130px; object-fit: cover; background: var(--surface-alt); cursor: zoom-in; }
.att video { object-fit: contain; background: #000; cursor: default; }
.att .cap { padding: 7px 9px; font-size: 11.5px; color: var(--faint); display: flex; gap: 6px; align-items: center; justify-content: space-between; }
.att .cap > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att .cap .icon-btn { width: 26px; height: 26px; margin: -4px -4px -4px 0; flex: none; }
.att img.loading { cursor: progress; }
/* A private video is only fetched when played, so it starts as a button the size of its picture. */
.att .play { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 130px; border: 0; background: var(--surface-alt); color: var(--soft); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.att .play:hover:not(:disabled) { color: var(--ink); }
.att .att-fail { display: flex; align-items: center; justify-content: center; height: 130px; padding: 0 12px; text-align: center; font-size: 12.5px; color: var(--faint); background: var(--surface-alt); }
.att.pending img { cursor: default; opacity: .7; }
.att.pending .bar { margin: 0 9px 9px; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.danger-zone { margin-top: 34px; padding-top: 18px; border-top: 1px dashed var(--danger); }
.preview-box { min-height: 96px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
.who-is { color: var(--faint); font-size: 12px; margin-left: 4px; }
/* The column picker: seven separate pills that wrap, rather than one joined segment that wraps badly. */
.status-seg { display: flex; flex-wrap: wrap; gap: 6px; border: 0; background: transparent; border-radius: 0; overflow: visible; }
.status-seg button { border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); padding: 5px 12px 5px 10px; }
.status-seg button + button { border-left: 1px solid var(--border-strong); }
.status-seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.status-seg button:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- admin: board ---------- */
.board-main { position: relative; display: flex; flex-direction: column; height: calc(100vh - 57px); min-width: 0; overflow: hidden; }
.board-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 10px 20px; background: var(--surface); border-bottom: 1px solid var(--border); }
.board-bar .row { gap: 8px; }
.board-bar input[type="search"] { width: 230px; height: 36px; font-size: 13px; }
.board-bar select { width: auto; height: 36px; font-size: 13px; }
.board-stage { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.board-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 16px 20px 24px; }
.board-body.columns { display: flex; align-items: stretch; gap: 12px; }
.board-note { padding: 0 20px 14px; margin: 0; }
.column { flex: 0 0 272px; display: flex; flex-direction: column; min-height: 0; background: color-mix(in srgb, var(--surface-alt) 55%, transparent); border: 1px solid var(--border); border-top: 3px solid var(--col, var(--border-strong)); border-radius: 12px; }
.column[data-status="under_review"] { --col: var(--st-review); } .column[data-status="backlog"] { --col: var(--st-backlog); } .column[data-status="planned"] { --col: var(--st-planned); }
.column[data-status="in_progress"] { --col: var(--st-progress); } .column[data-status="in_testing"] { --col: var(--st-testing); } .column[data-status="resolved"] { --col: var(--st-resolved); } .column[data-status="wont_do"] { --col: var(--st-wontdo); }
.column.drop-target { background: var(--accent-soft); outline: 2px dashed var(--accent); outline-offset: -3px; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 9px 8px 7px 12px; }
.col-head h2 { flex: 1 1 auto; margin: 0; font-size: 13px; font-weight: 700; }
.col-head .count { font-weight: 600; font-size: 11.5px; color: var(--soft); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; }
.col-body { list-style: none; margin: 0; padding: 0 8px 10px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; flex: 1 1 auto; min-height: 56px; }
.col-body .more { list-style: none; text-align: center; }
.card { position: relative; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px 9px; box-shadow: 0 6px 12px -10px rgba(0, 0, 0, 0.35); transition: border-color .12s ease; }
.card[draggable="true"] { cursor: grab; }
.card:hover { border-color: var(--accent); }
.card.dragging { opacity: .4; }
.card.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
/* The whole card opens the item: the title's link is stretched over it. */
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.card:has(.card-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.card .card-link:focus-visible { outline: none; }
.card.prio-critical::before, .card.prio-high::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--warn); }
.card.prio-critical::before { background: var(--danger); }
.card-title { margin: 0 0 8px; font-size: 13.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .num { color: var(--faint); font-weight: 500; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 11.5px; color: var(--faint); }
.card-meta .badge { font-size: 10.5px; padding: 3px 7px; }
.card-meta .when { margin-left: auto; }
.table-wrap { overflow-x: auto; }
.row-link { color: inherit; font-weight: 600; text-decoration: none; }
.row-link:hover { text-decoration: underline; }

/* The item panel slides over the right edge; on wide screens the board makes room for it. */
.drawer { position: absolute; top: 0; right: 0; bottom: 0; z-index: 20; width: min(600px, 100%); display: flex; flex-direction: column; background: var(--bg); border-left: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); animation: slide .18s ease; }
.drawer-bar { padding: 8px 12px; border-bottom: 1px solid var(--border); background: var(--surface); }
.drawer-body { flex: 1 1 auto; overflow: auto; padding: 20px 24px 60px; }
@keyframes slide { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@media (min-width: 1280px) {
  .board-main.has-drawer .board-body, .board-main.has-drawer .board-note { margin-right: 600px; }
}

/* ---------- admin: team ---------- */
.team-main { max-width: 1100px; margin: 0 auto; padding: 18px 24px 70px; }
.subnav { display: flex; gap: 4px; margin: 0 0 20px; border-bottom: 1px solid var(--border); }
.subtab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; margin-bottom: -1px; font-size: 13.5px; font-weight: 600; color: var(--soft); text-decoration: none; border-bottom: 2px solid transparent; }
.subtab:hover { color: var(--ink); }
.subtab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.team-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 14px; }
.team-head h2 { font-family: ui-serif, Georgia, serif; font-weight: 500; font-size: 22px; margin: 0; }
.badges { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.who-cell { font-weight: 600; }
.tbl th[scope="row"] { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ink); position: static; background: transparent; border-bottom: 1px solid var(--border); }
.tbl .end { text-align: right; }
.tbl .nowrap, .nowrap { white-space: nowrap; }
.people tbody tr, .activity tbody tr { cursor: default; }
.people tbody tr:hover td, .people tbody tr:hover th, .activity tbody tr:hover td { background: var(--accent-soft); }
.activity tr.notable td:nth-child(3) { color: var(--warn); }
.manage-actions { border-bottom: 1px solid var(--border); }
.manage-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--border); }
.manage-action .hint { margin: 2px 0 0; }
.cred { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cred-label { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.cred-value { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.role-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.role-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.role-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 6px; }
.role-head h3 { margin: 0; font-size: 16px; font-family: ui-serif, Georgia, serif; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.perm-group { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.perm-group legend { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 0; margin-bottom: 6px; }
.perm { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; margin: 0 0 4px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); font-weight: 400; cursor: pointer; }
.perm:hover { border-color: var(--accent); }
.perm input { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--accent); }
.perm strong { display: block; font-size: 13.5px; }
.perm small { display: block; font-size: 12.5px; color: var(--soft); line-height: 1.45; }
.perm .perm-note { color: var(--accent); font-weight: 600; }
.perm .perm-note:empty { display: none; }

/* ---------- admin: signed-out screen ---------- */
.login-card { max-width: 420px; margin: 12vh auto 0; text-align: center; }
.login-card .btn.primary { width: 100%; }
.login-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.team-form { text-align: left; }
.team-form .btn, .login-card form .btn.primary { width: 100%; }
.login-sub { font-size: 15px; font-weight: 700; margin: 0 0 14px; font-family: inherit; }
.steps-list { text-align: left; padding-left: 20px; margin: 0 0 12px; font-size: 14px; color: var(--soft); }
.steps-list li { margin: 0 0 6px; }
.cred-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg); text-align: left; }
.cred-box code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; font-weight: 600; letter-spacing: .04em; overflow-wrap: anywhere; }
.login-card form { text-align: left; }
.login-card form .row { justify-content: space-between; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 8px 10px; border-bottom: 1px solid var(--border-strong); position: sticky; top: 0; background: var(--bg); }
.tbl td, .tbl th[scope="row"] { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr.sel td { background: var(--surface); }
.tbl tbody tr:hover td { background: var(--accent-soft); }
.tbl .num { color: var(--faint); font-family: ui-monospace, monospace; width: 48px; }

/* ---------- admin: stats ---------- */
.hint.warn-text { color: var(--warn); margin: 0 0 14px; }
.stat-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 12px; }
.stat-cards.headline { margin-bottom: 12px; }
.stat-cards + .stat-cards { margin-bottom: 26px; }
.stat-card { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); min-width: 0; }
.stat-card.hero { background: var(--accent-soft); border-color: transparent; }
.stat-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.stat-num { margin-top: 4px; font-family: ui-serif, Georgia, serif; font-size: 30px; font-weight: 500; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-card.hero .stat-num { font-size: 44px; color: var(--accent); }
.stat-sub { margin-top: 4px; font-size: 12.5px; color: var(--soft); }
.stats-block { margin: 0 0 26px; min-width: 0; }
.stats-block h3 { margin: 0 0 10px; font-size: 13.5px; font-weight: 700; }
.stats-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 28px; align-items: start; }
.stats-table td.end, .stats-table th.end { text-align: right; font-variant-numeric: tabular-nums; }
.stat-bars { display: flex; align-items: flex-end; gap: 3px; height: 96px; padding: 8px 10px 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.stat-bar { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; }
.stat-bar span { display: block; width: 100%; border-radius: 3px 3px 0 0; background: var(--accent); }
.stat-bars-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; }

/* ---------- admin: reviews ---------- */
.stars { display: inline-flex; font-size: 15px; letter-spacing: 1px; line-height: 1; white-space: nowrap; }
.stars .on { color: var(--warn); }
.stars .off { color: var(--border-strong); }
.team-main > .seg { margin: 0 0 16px; }
.seg button .faint { font-weight: 500; }
.seg button[aria-pressed="true"] .faint { color: inherit; opacity: .75; }
.review-list { display: grid; gap: 10px; }
.review-card { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); min-width: 0; }
.review-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 8px; font-size: 13.5px; }
.review-body { margin: 0 0 12px; font-size: 14px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.review-actions { gap: 8px; }
.badge.state-published { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.badge.state-hidden { color: var(--faint); }
.badge.state-pending { color: var(--warn); border-color: var(--warn); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .editor-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .admin-main { grid-template-columns: 1fr; height: auto; min-height: calc(100vh - 57px); }
  .only-narrow { display: inline-flex; }
  .admin-main .pane.detail { display: none; padding: 18px 16px 50px; }
  .admin-main.show-detail .pane.list { display: none; }
  .admin-main.show-detail .pane.detail { display: block; }
  .pane { overflow: visible; }
  .pane.list { border-right: 0; }
  .admin-bar .who .label-user, .admin-bar .who .role-tag { display: none; }
  /* Brand and account on one line, the tabs underneath. */
  .admin-bar { gap: 8px 12px; padding: 8px 16px; }
  .admin-bar .who { order: 2; }
  .admin-bar .tabs { order: 3; flex: 1 1 100%; margin-left: -6px; }
  .editor-grid { grid-template-columns: 1fr; }
  /* The board scrolls sideways one column at a time; the item panel takes the whole screen. */
  .board-main { height: auto; min-height: calc(100vh - 57px); overflow: visible; }
  .board-bar { padding: 10px 16px; }
  .board-bar input[type="search"] { width: 100%; }
  .board-bar > .row { width: 100%; }
  .board-bar > .row:first-child select { flex: 1 1 0; min-width: 0; }
  .board-body { padding: 14px 16px 24px; overflow-x: auto; }
  .board-body.columns { scroll-snap-type: x proximity; }
  .column { flex-basis: min(82vw, 300px); scroll-snap-align: start; }
  .col-body { overflow-y: visible; }
  .drawer { position: fixed; inset: 0; z-index: 50; width: auto; border-left: 0; }
  .drawer-body { padding: 16px 16px 50px; }
  .team-main { padding: 14px 16px 60px; }
  .cred { grid-template-columns: 1fr auto; }
  .cred-label { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .kinds { grid-template-columns: 1fr; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .panel { padding: 20px 16px; }
  .stepper .when { display: none; }
  .stepper .name { font-size: 11px; }
  .file { grid-template-columns: 48px 1fr auto; }
  .file .thumb { width: 48px; height: 48px; }
}
@media (max-width: 700px) {
  .stat-cards.headline { grid-template-columns: 1fr; }
  .stat-card { padding: 12px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px 70px; }
  .nav-links { gap: 12px; font-size: 12px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .manage-action { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  nav.top, footer.site { display: none; }
  body { background: #fff; }
}
