@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/geist-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/geist-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/geist-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/geist-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/geist-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #0f1012;
  --ink: #ececec;
  --muted: #b0b0b0;
  --label: #d0d0d0;
  --dim: #8a8a8a;
  --line: #626262;
  --field: #1a1b1e;
  --stamp: #ff6a4a;
  --button: #f2f2f2;
  --sans: Geist, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(1200px, calc(100% - 6rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

a { color: #f4f4f4; text-decoration: underline; text-underline-offset: 0.18em; }
a:hover { color: #ffffff; }
.wordmark, .q-actions a, .top nav a { text-decoration-thickness: 1px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: #2a2b2f; color: white; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--bg);
  padding: 0.3rem 0.5rem;
}
.skip:focus { transform: none; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
}

.wordmark {
  font-weight: 600;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.05rem;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.6rem;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
}

.top nav a { color: var(--label); }
.top nav a[aria-current="page"],
.top nav a:hover { color: #ffffff; }

h1 {
  font-weight: 600;
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0;
}

h2 {
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 0.6rem;
}

.eyebrow, .kicker {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.lede, .dek, .note, .fine, figcaption, footer, dt {
  color: var(--muted);
}

.lede, .dek {
  font-size: 1.15rem;
  line-height: 1.45;
  max-width: 38rem;
  margin: 1.25rem 0 0;
}

.fine { font-size: 0.95rem; margin: 0.6rem 0 0; }

.mono { font-family: var(--mono); font-weight: 500; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
  gap: 2.5rem 3rem;
  align-items: start;
  padding: 3.5rem 0 3.5rem;
}

.hero h1 {
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: clamp(1.85rem, 4.5vw, 4.15rem);
  line-height: 1.02;
}
.hero h1 span { display: block; white-space: nowrap; }

.totals {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0 1.25rem;
}

.totals > p:first-child {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 0 0 1rem;
}

.ledger-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.ledger-row span:first-child { color: var(--muted); }
.ledger-row.balance { border-bottom: 1px solid var(--line); }

.balance-block { padding: 1.4rem 0 0.4rem; border-top: 1px solid var(--line); }
.balance-block > p:first-child { margin: 0 0 0.4rem; color: var(--muted); font-size: 0.95rem; }

.balance-figure {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.balance-figure.settled,
.totals .settled { color: var(--stamp); }

.stamp {
  display: inline-block;
  margin: 1.1rem 0 0;
  padding: 0.35rem 0.7rem;
  border: 1.5px solid var(--stamp);
  color: var(--stamp);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

html.pixel-on .pixel-stamp { position: relative; }
html.pixel-on .pixel-stamp:has(canvas) { color: transparent; border-color: transparent; }
html.pixel-on .pixel-stamp.is-done { color: var(--stamp); border-color: var(--stamp); }
.stamp-pixels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.shot-reveal { position: relative; }
.shot-reveal .shot-pixel { display: none; }
.shot-reveal .shot-mid { display: none; }
.shot-reveal .shot-full { display: block; width: 100%; height: auto; }
html.pixel-on .shot-reveal .shot-pixel {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}
html.pixel-on .shot-reveal .shot-full,
html.pixel-on .shot-reveal .shot-mid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
html.pixel-on .shot-reveal:not(.is-sharp) .shot-full { opacity: 0; }
html.pixel-on .shot-reveal.step-mid .shot-mid { display: block; image-rendering: pixelated; }
html.pixel-on .shot-reveal.is-sharp .shot-full { opacity: 1; }

.q-thumb { position: relative; }
.q-thumb .q-pixel { display: none; }
html.pixel-on .q-thumb:not(.is-loaded) .q-pixel {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}
html.pixel-on .q-thumb:not(.is-loaded) .q-full { opacity: 0; }

.open-status.pixel-open {
  display: inline-block;
  padding: 0.28rem 0.45rem;
  color: var(--muted);
  background-color: transparent;
  background-image:
    linear-gradient(45deg, var(--line) 25%, transparent 25%, transparent 75%, var(--line) 75%),
    linear-gradient(45deg, var(--line) 25%, transparent 25%, transparent 75%, var(--line) 75%);
  background-size: 8px 8px;
  background-position: 0 0, 4px 4px;
}

@media (prefers-reduced-motion: reduce) {
  .shot-pixel, .shot-mid, .stamp-pixels { display: none; }
  .shot-full { opacity: 1; position: static; width: 100%; height: auto; }
  .pixel-stamp { color: var(--stamp); border-color: var(--stamp); }
}

.finder { margin: 0 0 1.25rem; }

.finder-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
}

.finder-q { max-width: 36rem; }

.finder-q input {
  width: 100%;
  font-size: 1.05rem;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.finder noscript { display: block; margin-top: 0.85rem; }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding-bottom: 0.15rem;
}

.pill {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #3a3b3e;
  border-radius: 99px;
  padding: 0.05rem 0.75rem;
  font-size: 0.8rem;
  color: #d0d0d0;
}

.pill > span {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #bdbdbd;
}

.pill select {
  width: 8.5rem;
  max-width: 8.5rem;
  border: none;
  padding: 0.35rem 0;
  background: transparent;
  color: #f2f2f4;
  font-size: 0.8rem;
}

.pill .brand-mark { width: 20px; height: 20px; flex: 0 0 20px; }
.filter-clear { flex: 0 0 auto; font-size: 0.85rem; white-space: nowrap; color: var(--muted); text-decoration: none; }
.filters-toggle summary { cursor: pointer; width: fit-content; color: var(--muted); }

.archive {
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 0.5rem 0 2rem;
  padding: 0;
}

.row {
  display: grid;
  grid-template-columns: minmax(8rem, 1.3fr) minmax(7rem, 1fr) minmax(0, 2.4fr) 6.5rem 6.5rem 5.5rem;
  gap: 0.75rem 1rem;
  align-items: center;
  min-height: 3.5rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.95rem;
}

.row-company { display: flex; align-items: center; gap: 0.55rem; font-weight: 500; min-width: 0; }
.row-handle, .row-sum, .row-date, .row-out { color: var(--muted); }
.row-sum { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-amt, .row-date, .row-out { text-align: right; }
.row-amt { color: var(--ink); font-size: 0.82rem; }
.row:hover .row-company { color: white; }

.brand-mark {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--muted);
  display: block;
}
.brand-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.eyebrow { display: flex; align-items: center; gap: 0.5rem; }
.lesson-co { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.25rem; }
.lesson-receipt { margin-top: 0.8rem; }

.entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas:
    "lead shot"
    "rest shot";
  gap: 2.5rem 4rem;
  align-items: start;
}
.entry-lead { grid-area: lead; }
.entry-rest { grid-area: rest; }
.entry-shot { grid-area: shot; min-width: 0; }
.entry-shot-sticky { position: sticky; top: 1.5rem; }

.entry-shot img,
.open-shot img,
figure img {
  width: 100%;
  max-width: 36rem;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  background: #161719;
}

.crumbs { color: var(--muted); font-size: 0.8rem; margin: 0 0 1.5rem; }
.crumbs a { color: var(--label); }
.crumbs span { margin: 0 0.35rem; }

.entry-lead h1 {
  font-size: clamp(1.7rem, 2.2vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  max-width: 18em;
  margin: 0 0 0.75rem;
}

.entry-lead .summary {
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.6rem;
}

.entry-rest .lede { font-size: 1.05rem; margin: 0 0 1.25rem; }

.entry-section { margin-top: 2.75rem; }
.entry-section h2 { margin: 0 0 0.9rem; }
.entry-section .plain,
.entry-section blockquote { margin: 0; }

.ledger { margin: 2rem 0 1.5rem; }

.lesson-block { margin-top: 1.75rem; }
.lesson-block h2 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 1.1rem 0 0.35rem;
}
.lesson-block h2:first-child { margin-top: 0; }
.lesson-block p { margin: 0; }
.lesson-block .plain { list-style: none; margin: 0.45rem 0 0; padding: 0; }
.lesson-block .plain li { margin: 0.2rem 0; }

.lesson {
  padding: 2.4rem 0;
  border-top: 1px solid var(--line);
}
.lesson h3 {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  margin: 1.5rem 0 0.4rem;
}
.checklist { margin: 0.4rem 0 0; padding: 0; list-style: none; }
.checklist li {
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}
.checklist li p { margin: 0; }
.checklist a { color: var(--ink); }

.meta-list { margin: 0 0 1.5rem; }
.meta-row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.meta-row:last-child { border-bottom: 1px solid var(--line); }
.meta-row dd { margin: 0; text-align: right; }

.open-case {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas:
    "lead shot"
    "rest shot";
  gap: 1.5rem 3.5rem;
  align-items: start;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}
.open-lead { grid-area: lead; }
.open-rest { grid-area: rest; }

.open-quote {
  margin: 0 0 0.8rem;
  padding: 0;
  border: none;
  white-space: pre-wrap;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--ink);
}

.open-by, .open-company, .open-note, .open-status { color: var(--muted); }
.open-company { display: flex; align-items: center; gap: 0.45rem; }
.open-status { letter-spacing: 0.04em; font-size: 0.95rem; }

.board {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 2.5rem;
}
.board caption { text-align: left; }
.board th, .board td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
  height: 2.6rem;
}
.board th { font-weight: 500; }
.board th button {
  border: 0;
  background: transparent;
  color: var(--label);
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0;
  cursor: pointer;
}
.board th.num button { display: block; margin-left: auto; }
.board th[aria-sort="descending"] button::after { content: " ↓"; }
.board th[aria-sort="ascending"] button::after { content: " ↑"; }
.board td.num, .board th.num { text-align: right; }
.board td.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.board tbody tr:hover { background: #161719; }
.board-id { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.board-id > a { display: inline-flex; align-items: center; gap: 0.45rem; min-width: 0; }
.board-handle { color: var(--muted); }
.board-tag {
  display: inline-block;
  padding: 0.05rem 0.35rem;
  border: 1px solid var(--line);
  color: var(--label);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.board-fold { display: none; }
.board-fold summary { color: var(--label); cursor: pointer; font-size: 0.75rem; }
.board-fold dl { display: grid; grid-template-columns: auto auto; gap: 0.2rem 0.8rem; margin: 0.45rem 0 0; }
.board-fold dt { color: var(--muted); }
.board-fold dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

blockquote {
  margin: 1rem 0;
  padding: 0;
  border: none;
  white-space: pre-wrap;
  color: var(--muted);
}

figure { margin: 0 0 0.6rem; }
figcaption { font-size: 0.8rem; margin-top: 0.55rem; }

label { display: flex; flex-direction: column; gap: 0.35rem; }
label span, legend { font-size: 0.9rem; color: var(--label); }

input, select, textarea, button { font: inherit; }

input, select, textarea {
  width: 100%;
  background: var(--field);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.55rem 0.7rem;
}

input::placeholder, textarea::placeholder { color: var(--dim); opacity: 1; }

textarea { min-height: 7rem; resize: vertical; }

button, .button {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.55rem 1.05rem;
  text-decoration: none;
  cursor: pointer;
}

button.primary,
a.primary {
  background: var(--button);
  color: var(--bg);
  border-color: var(--button);
  font-weight: 500;
  align-self: flex-start;
  min-height: 2.5rem;
  min-width: 10rem;
}

button.primary:disabled,
button.primary[aria-busy="true"] {
  background: #3a3a3a;
  color: #d0d0d0;
  border-color: #3a3a3a;
  cursor: not-allowed;
}

button.quiet, a.quiet {
  background: transparent;
  color: var(--label);
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.2rem 0;
  min-width: 0;
}

label.check { flex-direction: row; align-items: center; gap: 0.6rem; }
label.check input { width: auto; }

fieldset { border: none; padding: 0; margin: 0 0 1rem; }

.search, .finder { display: flex; flex-direction: column; gap: 0.9rem; }

.actions, .pair {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  align-items: center;
  margin-top: 1rem;
}

.actions a { color: var(--muted); font-size: 0.85rem; }

.company-responses {
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.verified {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

.q-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
  align-items: center;
  margin: 1.25rem 0 0.4rem;
}
.q-pill {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 99px;
  padding: 0.28rem 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
.q-pill[aria-pressed="true"], .q-pill:hover { color: var(--ink); border-color: #3a3b3e; }
.q-pill span { color: var(--dim); }
.q-search { flex: 1 1 14rem; min-width: 12rem; }
.q-summary {
  display: grid;
  grid-template-columns: 1.25rem 2.4rem minmax(8rem, 1.3fr) minmax(6rem, 0.9fr) minmax(4.5rem, 0.7fr) auto auto 6.5rem auto;
  gap: 0.45rem 0.7rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  min-height: 3.1rem;
}
.q-row { outline: none; }
.q-row.q-current .q-summary { background: #161719; }
.q-row.leaving { opacity: 0; transform: translateX(10px); transition: opacity 160ms ease, transform 160ms ease; }
.q-chevron, .q-thumb {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.q-chevron[aria-expanded="true"] { transform: rotate(90deg); }
.q-thumb, .q-thumb-empty {
  width: 2.4rem;
  height: 2.4rem;
  display: block;
}
.q-thumb img, .q-thumb-empty {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #161719;
}
.q-who { min-width: 0; }
.q-joke {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.35rem;
  border: 1px solid var(--line);
  color: var(--label);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 0.1em;
}
.q-reject { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; margin: 0 0 0.8rem; max-width: 16rem; }
.q-who span:first-child { display: block; font-weight: 500; }
.q-quote {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.q-co { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.q-co span, .q-service { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-service, .q-source, time { color: var(--muted); font-size: 0.85rem; }
.q-amt { display: flex; align-items: center; gap: 0.4rem; justify-content: flex-end; }
.q-amt .stamp { font-size: 0.68rem; padding: 0.12rem 0.3rem; margin: 0; letter-spacing: 0.08em; transform: none; }
.q-amt .stamp.q-open { color: var(--muted); border-color: var(--line); }
.q-actions { display: flex; gap: 0.35rem; justify-content: flex-end; }
.q-actions button, .q-actions a {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  padding: 0.25rem 0.45rem;
  text-decoration: none;
  cursor: pointer;
  min-width: 0;
  align-self: auto;
}
.q-actions button.primary {
  background: var(--button);
  color: var(--bg);
  border-color: var(--button);
}
.q-detail {
  padding: 0.8rem 0 1.2rem 3.6rem;
  border-bottom: 1px solid var(--line);
}
.q-detail .q-full, .review-face .q-full { white-space: pre-wrap; margin: 0 0 0.8rem; }
.review-facts { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; margin: 0 0 0.8rem; }
.review-shot img { width: min(100%, 22rem); }
details.more { margin: 0.4rem 0 1rem; }
details.more summary { cursor: pointer; font-weight: 600; }
.q-raw { white-space: pre-wrap; color: var(--muted); font-size: 0.8rem; }
#q-shot { background: var(--bg); color: var(--ink); border: 1px solid var(--line); padding: 0.8rem; max-width: 90vw; }
#q-shot img { max-width: 80vw; max-height: 80vh; display: block; }
#q-toast[hidden] { display: none; }
#q-toast:not([hidden]) {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  align-items: center;
  background: #161719;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.55rem 0.8rem;
  z-index: 5;
}
#q-toast button { font: inherit; background: transparent; color: var(--stamp); border: 0; cursor: pointer; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 0.8rem; align-items: center; }
footer nav a { color: var(--label); }
footer nav a:hover { color: #ffffff; }
footer .consent-settings {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--label);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.2rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg);
  color: var(--ink);
  border-top: 1px solid var(--line);
  font-family: var(--sans);
}
.consent[hidden] { display: none; }
.consent p { margin: 0; max-width: 40rem; color: var(--ink); font-size: 0.95rem; }
.consent-actions { display: flex; gap: 0.5rem; }
.consent-actions button {
  min-width: 6.5rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

@media (min-width: 41rem) {
  details.filters-toggle > .filter-row { display: flex !important; }
  details.filters-toggle > summary { display: none; }
}

@media (max-width: 52rem) {
  .wrap { width: min(1200px, calc(100% - 2.5rem)); }
  .hero { grid-template-columns: 1fr; }
  .entry-grid, .open-case {
    grid-template-columns: 1fr;
    grid-template-areas:
      "lead"
      "shot"
      "rest";
  }
  .entry-shot-sticky { position: static; }
  .hero h1 { max-width: none; }
  .finder-q { max-width: none; }
}

@media (max-width: 64rem) {
  .q-summary { grid-template-columns: 1.25rem 2.4rem minmax(0, 1fr) auto; }
  .q-service, .q-amt, .q-source, .q-summary time { display: none; }
  .q-detail { padding-left: 0; }
}
@media (max-width: 46rem) {
  .board .is-extra { display: none; }
  .board-fold { display: inline-flex; align-items: center; }
  .board-fold[open] { display: block; flex-basis: 100%; }
  .board-id { flex-wrap: wrap; }
  .board-fold[open] { flex-basis: 100%; }
  .board th, .board td { height: auto; }
}
@media (max-width: 40rem) {
  .row {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  .row-handle, .row-sum, .row-date { display: none; }
  .mini-sum, .mini-amt { display: none; }
  details.filters-toggle:not([open]) > .filter-row { display: none; }
  .top nav { gap: 0.6rem 1rem; }
}
