:root {
  --bg: #f6f1e7;
  --surface: #fffdf8;
  --surface-2: #efe8da;
  --ink: #2a2522;
  --ink-2: #5f564e;
  --ink-3: #8a8077;
  --line: #e0d6c4;
  --accent: #2f5d50;
  --accent-ink: #f6f1e7;
  --accent-soft: #dde8e1;
  --gold: #9a6b1f;
  --gold-soft: #f3e6cc;
  --danger: #a33a2c;
  --danger-soft: #f6dfd9;
  --shadow: 0 1px 2px rgb(42 37 34 / 6%), 0 6px 20px rgb(42 37 34 / 6%);
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1917;
    --surface: #242120;
    --surface-2: #2e2a27;
    --ink: #efe8dc;
    --ink-2: #c3b9ad;
    --ink-3: #91877c;
    --line: #3a3531;
    --accent: #7fb7a3;
    --accent-ink: #13201b;
    --accent-soft: #24362f;
    --gold: #d9ac5f;
    --gold-soft: #3a3020;
    --danger: #e58a7c;
    --danger-soft: #3e2521;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 6px 20px rgb(0 0 0 / 25%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 620px; margin: 0 auto; padding: 40px 16px 64px; }

/* ---- controls ---- */
button, .btn {
  font: inherit;
  font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 44px; padding: 0 18px;
  border-radius: 10px; border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink);
  cursor: pointer; text-decoration: none;
  transition: filter .15s, background .15s;
}
button:hover, .btn:hover { filter: brightness(1.07); }
button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px;
}
button:disabled { opacity: .55; cursor: not-allowed; filter: none; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: transparent; padding: 0 10px; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .875rem; border-radius: 8px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.row.nowrap { flex-wrap: nowrap; gap: 2px; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

label { display: block; font-weight: 600; margin: 0 0 6px; }
.field { margin-bottom: 18px; }
.hint { display: block; font-weight: 400; color: var(--ink-3); font-size: .875rem; margin-top: 4px; }
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=number],
input[type=date], input[type=time], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; min-height: 44px;
}
textarea { min-height: 96px; resize: vertical; }
.code-input { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .15em; text-transform: uppercase; font-size: 1.2rem; text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 560px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.choices { display: grid; gap: 10px; }
.choice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); cursor: pointer; font-weight: 400;
}
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.choice strong { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.error { color: var(--danger); background: var(--danger-soft); padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; }
.error:empty { display: none; }

/* ---- landing ---- */
.hero { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; }
.hero-inner { max-width: 860px; width: 100%; text-align: center; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-family: var(--serif); font-size: 1.1rem; color: var(--ink-2); margin-bottom: 28px; }
.brand img { width: 28px; height: 28px; }
.hero p.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 560px; margin: 0 auto 40px; }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; text-align: left; }
@media (max-width: 640px) { .paths { grid-template-columns: 1fr; } }
.path {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .15s, border-color .15s;
}
.path:hover { transform: translateY(-2px); border-color: var(--accent); }
.path h2 { margin-bottom: .3em; }
.path p { color: var(--ink-2); margin: 0; }
.path .arrow { color: var(--accent); font-weight: 600; margin-top: 16px; display: inline-block; }

.back { display: flex; width: fit-content; gap: 6px; align-items: center; color: var(--ink-2); text-decoration: none; margin-bottom: 24px; font-size: .95rem; }
.back:hover { color: var(--ink); }

/* ---- wizard ---- */
.steps { display: flex; gap: 6px; margin: 0 0 28px; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps span.on { background: var(--accent); }
.code-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .12em; font-weight: 600;
  background: var(--gold-soft); color: var(--gold); padding: 6px 12px; border-radius: 8px;
}
.code-big { font-size: clamp(1.8rem, 7vw, 2.8rem); padding: 14px 22px; border-radius: 14px; }
.weights-sum { font-weight: 600; }
.weights-sum.bad { color: var(--danger); }
.example { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; color: var(--ink-2); font-size: .95rem; }

/* ---- dashboard ---- */
.topbar { border-bottom: 1px solid var(--line); background: var(--surface); }
.topbar .brand { margin: 0; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.estate-head { padding: 32px 0 8px; }
.estate-head h1 { margin-bottom: 8px; }
.banner { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 16px; margin: 16px 0; font-size: .95rem; }
.banner.binding { background: var(--gold-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }
.banner.advisory { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.banner .icon { flex: none; font-size: 1.1rem; line-height: 1.3; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding: 16px 0 64px; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { margin: 0; }

.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  min-height: 34px; padding: 0 14px; border-radius: 999px; font-size: .875rem; font-weight: 600;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line);
}
.chip[aria-pressed=true] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.item .thumb { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; position: relative; cursor: pointer; border: 0; padding: 0; width: 100%; border-radius: 0; min-height: 0; }
.item .thumb img, .item .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.item .thumb .placeholder { color: var(--ink-3); font-family: var(--serif); font-size: 2.4rem; }
.item .thumb .count { position: absolute; right: 8px; bottom: 8px; background: rgb(0 0 0 / 55%); color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 999px; }
.item .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.item h3 { margin: 0; font-size: 1.08rem; }
.item .meta { color: var(--ink-2); font-size: .875rem; display: flex; gap: 10px; flex-wrap: wrap; }
.item .status { font-size: .875rem; color: var(--ink-2); margin-top: auto; }
.item .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.item.is-claimed { opacity: .82; }
.item.is-mine { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }

.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; }
.tag.children { background: var(--gold-soft); color: var(--gold); }
.tag.pending { background: var(--surface-2); color: var(--ink-2); }
.tag.open { background: var(--accent-soft); color: var(--accent); }
.tag.claimed { background: var(--ink); color: var(--bg); }
.tag.unclaimed { background: var(--danger-soft); color: var(--danger); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }

.empty { text-align: center; padding: 48px 16px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-2); }

.side { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.side .card { padding: 18px; }
.side h3 { margin-bottom: 12px; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.people li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.people li:first-child { border-top: 0; }
.people .who { min-width: 0; display: flex; flex-direction: column; }
.people .name { font-weight: 600; overflow-wrap: anywhere; }
.people .role { font-size: .8rem; color: var(--ink-3); overflow-wrap: anywhere; }
.stack { margin-top: 20px; }
.stack h2 { margin-bottom: 10px; }
.contact, .contact-form { padding: 14px 0; border-top: 1px solid var(--line); }
.contact .tag { margin-left: 6px; vertical-align: middle; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.outbox { display: grid; gap: 12px; }
.outbox-text { white-space: pre-wrap; margin: 6px 0 0; color: var(--ink-2); font-size: .95rem; overflow-wrap: anywhere; }
.requests { border-color: var(--gold); }
.tag.set { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.budget-row { padding: 8px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.budget-row:first-of-type { border-top: 0; }
.budget-row .stat { font-size: 1.6rem; }
.settle { padding: 12px 0; border-top: 1px solid var(--line); }
.settle .check { margin: 4px 0; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); margin-top: 28px; }
.pledge { display: block; margin-top: 6px; padding-left: 10px; border-left: 3px solid var(--gold); }
.set-label { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 14px 0 2px; }
.set-label:first-of-type { margin-top: 0; }
.disputes { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.dispute-row { padding: 8px 0; }
.offer { background: var(--gold-soft); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
.offer-form, .decide { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.offer-form h3, .decide h3 { margin-bottom: 10px; }
.thread { max-height: 40vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; padding: 4px 2px; }
.bubble { background: var(--surface-2); border-radius: 12px; padding: 8px 12px; max-width: 85%; align-self: flex-start; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.me { background: var(--accent-soft); align-self: flex-end; }
.thread-note { text-align: center; font-size: .85rem; color: var(--ink-2); margin: 4px 0; }
.changelog, .set-rules { padding-left: 18px; margin: 0; display: grid; gap: 10px; }
.changelog ul { margin: 4px 0 0; padding-left: 18px; }
.people li.request { flex-direction: column; align-items: stretch; }
.select-sm { width: auto; min-height: 34px; padding: 4px 8px; font-size: .875rem; border-radius: 8px; }
.picker { display: grid; gap: 12px; margin-top: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tier-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.tier-row:first-of-type { border-top: 0; }
.bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); }
.stat { font-family: var(--serif); font-size: 2rem; line-height: 1; }

/* ---- modal ---- */
dialog {
  border: 0; padding: 0; border-radius: 18px; background: var(--surface); color: var(--ink);
  width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 20px 60px rgb(0 0 0 / 30%);
}
dialog::backdrop { background: rgb(27 25 23 / 55%); }
.modal-body { padding: 24px; overflow-y: auto; max-height: calc(100vh - 48px); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.modal-head h2 { margin: 0; }
.media-main { border-radius: 12px; overflow: hidden; background: var(--surface-2); margin-bottom: 10px; }
.media-main img, .media-main video { width: 100%; max-height: 60vh; object-fit: contain; display: block; background: #000; }
.media-strip { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; }
.media-strip button { padding: 0; min-height: 0; width: 72px; height: 54px; flex: none; border-radius: 8px; overflow: hidden; background: var(--surface-2); border: 2px solid transparent; }
.media-strip button[aria-current=true] { border-color: var(--accent); }
.media-strip img, .media-strip video { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0; font-size: .95rem; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; }
.previews { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.previews > * { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.dropzone { border: 1.5px dashed var(--line); border-radius: 12px; padding: 18px; text-align: center; background: var(--surface-2); }
.dropzone input { width: 100%; }

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 10px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); z-index: 10;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: var(--danger); color: #fff; }

.loading { padding: 80px 16px; text-align: center; color: var(--ink-3); }

/* ---- info buttons ---- */
.info {
  display: inline-grid; place-items: center; vertical-align: middle;
  width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0 2px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2);
  font: italic 700 11px/1 var(--serif); cursor: help;
}
.info:hover, .info[aria-expanded=true] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); filter: none; }
.info.static { cursor: default; }
#infotip {
  position: fixed; inset: auto; margin: 0; max-width: min(320px, calc(100vw - 16px));
  background: var(--ink); color: var(--bg); border: 0; border-radius: 12px; padding: 12px 14px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 25%); font-size: .9rem; line-height: 1.45;
}
#infotip strong { font-family: var(--serif); font-size: 1rem; }
#infotip p { margin: 4px 0 0; }

/* ---- tour ---- */
dialog.tour { width: min(520px, calc(100vw - 24px)); border-radius: 24px; overflow: hidden; }
dialog.tour::backdrop { background: rgb(27 25 23 / 65%); backdrop-filter: blur(3px); }
.tour-card { position: relative; padding: 18px 24px 20px; background: linear-gradient(180deg, var(--accent-soft), var(--surface) 46%); }
.tour-skip { position: absolute; top: 12px; right: 12px; z-index: 1; }
.tour-slide { text-align: center; animation: tour-in .35s ease both; }
.tour-slide.from-right { animation-name: tour-from-right; }
.tour-slide.from-left { animation-name: tour-from-left; }
@keyframes tour-in { from { opacity: 0; transform: scale(.98); } }
@keyframes tour-from-right { from { opacity: 0; transform: translateX(28px); } }
@keyframes tour-from-left { from { opacity: 0; transform: translateX(-28px); } }
@media (prefers-reduced-motion: reduce) { .tour-slide { animation: none; } }
.tour .art { margin: 18px auto 6px; width: min(280px, 80%); }
.tour .art svg { width: 100%; height: auto; display: block; overflow: visible; }
.tour h2 { font-size: 1.55rem; margin: 6px 0 10px; }
.tour-body { color: var(--ink-2); max-width: 420px; margin: 0 auto; }
.tour-body p { margin: 0 0 .7em; }
.tour-facts { display: grid; gap: 6px; margin: 12px auto 0; max-width: 400px; text-align: left; background: var(--surface-2); border-radius: 12px; padding: 10px 14px; font-size: .9rem; }
.tour-facts div { display: flex; justify-content: space-between; gap: 12px; }
.tour-facts dt { color: var(--ink-3); }
.tour-facts dd { margin: 0; font-weight: 600; text-align: right; }
.tour-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.tour-nav > button { min-width: 92px; }
.dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.dot { width: 9px; height: 9px; min-height: 0; padding: 0; border-radius: 50%; background: var(--line); border: 0; }
.dot[aria-current=step] { background: var(--accent); width: 22px; border-radius: 6px; }
.tour-choices { display: grid; gap: 10px; margin-top: 18px; }
.tour-choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; height: auto; padding: 14px 16px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; font-weight: 400;
}
.tour-choice:hover, .tour-choice:focus-visible { border-color: var(--accent); background: var(--accent-soft); filter: none; }
.tour-choice strong { font-size: 1.02rem; }
.tour-choice span { color: var(--ink-2); font-size: .9rem; }
.code-inline { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .08em; }

/* illustration colors, so they follow light and dark mode */
.art .blob { fill: var(--surface); opacity: .85; }
.art .a1 { fill: var(--accent); }
.art .a2 { fill: var(--gold); }
.art .a4 { fill: color-mix(in srgb, var(--accent) 35%, var(--surface-2)); }
.art .paper { fill: var(--surface); }
.art .stroke { stroke: var(--ink-3); stroke-width: 2; }
.art .line { fill: none; stroke: var(--ink-2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art .line.thick { stroke-width: 7; stroke: var(--ink-3); }
.art .dashed { stroke-dasharray: 4 6; }
.art .roof { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.art .paperline { fill: none; stroke: var(--surface); stroke-width: 4; stroke-linecap: round; opacity: .9; }
.art .coin { fill: color-mix(in srgb, var(--gold) 70%, var(--surface)); }
.art .coin2 { fill: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.art .arrow { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.art .checkmark { fill: none; stroke: var(--accent-ink); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.art .tag { fill: var(--surface); font: 700 11px ui-monospace, Consolas, monospace; letter-spacing: .06em; }
.art .num { fill: var(--accent); font: 700 34px var(--serif); }
.how-it-works { margin-top: 22px; }
.gallery-controls { display: flex; flex-wrap: wrap; gap: 14px; margin: -4px 0 16px; }
.gallery-controls label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .875rem; color: var(--ink-2); }
.set-heading { margin: 22px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.set-heading:first-of-type { margin-top: 0; }
.disputes-list { display: grid; gap: 10px; margin-top: 12px; }
.dispute-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.dispute-card.needs { border-color: var(--gold); box-shadow: inset 4px 0 0 var(--gold); }
.dispute-card h3 { margin: 4px 0 2px; font-size: 1.05rem; }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: #fff; font-size: .7rem; font-weight: 700; margin-left: 4px; }

/* ---- dev test clock (npm run demo only) ---- */
#devbar {
  position: fixed; left: 12px; bottom: 12px; z-index: 20; max-width: min(460px, calc(100vw - 24px));
  background: #241f1c; color: #f6f1e7; border-radius: 14px; box-shadow: 0 10px 30px rgb(0 0 0 / 30%);
  font-size: .85rem; border: 2px dashed #d9ac5f;
}
.devbar-toggle { all: unset; display: block; cursor: pointer; padding: 9px 14px; }
.devbar-toggle:focus-visible { outline: 2px solid #d9ac5f; border-radius: 12px; }
.devbar-ahead { background: #d9ac5f; color: #241f1c; border-radius: 999px; padding: 1px 8px; margin-left: 4px; font-weight: 700; }
.devbar-body { padding: 0 14px 12px; }
.devbar-next { margin: 0 0 8px; color: #e8dcc8; }
.devbar-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.devbar-buttons button { min-height: 30px; padding: 0 10px; font-size: .8rem; border-radius: 8px; background: #3a332e; color: #f6f1e7; border: 1px solid #5a514a; }
.devbar-buttons button:hover { background: #4a423c; filter: none; }
.devbar-buttons button:disabled { opacity: .45; }
.devbar-note { margin: 8px 0 0; color: #b8ad9f; font-size: .75rem; }

/* over budget */
.warn-text { color: var(--danger); font-weight: 600; }
.over-set { margin: 16px 0; }
.over-set h3 { margin: 0 0 4px; }
.over-items { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.over-items li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: var(--danger-soft); }
