@font-face { font-family: "Instrument Sans"; src: url(brand/InstrumentSans-Variable.woff) format("woff"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(brand/Newsreader-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(brand/Newsreader-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }

/* The same Forest look as Agent Deck: Park River green, Ivory type, Brass rules, square panels, round controls. */
:root {
  --forest: #123B2F; --ivory: #F6F4EB; --brass: #A18A5F; --brass-hi: #C9B78F; --sage: #A9BDB4; --pgreen: #42715C; --midnight: #203B48;
  --bg: #123B2F; --surface: #19443A; --well: #0F3329; --line: #335649; --line-soft: #274C40;
  --text: #F6F4EB; --muted: #A9BDB4; --faint: #7F978D;
  --ok: #8FD0AE; --ok-pale: rgba(124, 196, 160, .16); --warn: #F0C24B; --warn-pale: rgba(240, 194, 75, .15); --err: #F4A3A8; --err-pale: rgba(240, 138, 144, .16); --info: #9CC3D6; --info-pale: rgba(141, 183, 203, .16);
  --sans: "Instrument Sans", Aptos, "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --ease: cubic-bezier(.2, 0, 0, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { touch-action: manipulation; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brass-hi); }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 2px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.hidden { display: none !important; }

.bar { display: flex; align-items: center; gap: 10px; padding: calc(12px + env(safe-area-inset-top, 0px)) calc(18px + env(safe-area-inset-right, 0px)) 12px calc(18px + env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; background: var(--bg); z-index: 5; }
.mark { width: 26px; height: 22px; background: url(brand/parkriver-mark-ivory.svg) center / contain no-repeat; flex: none; }
.brand { font-family: var(--serif); font-weight: 500; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; }
.who { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); min-width: 0; }
.who b { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { max-width: 980px; margin: 0 auto; padding: 26px calc(20px + env(safe-area-inset-right, 0px)) calc(80px + env(safe-area-inset-bottom, 0px)) calc(20px + env(safe-area-inset-left, 0px)); }
h1 { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.12; margin: 0; letter-spacing: -.015em; }
.lede { color: var(--muted); margin: 8px 0 0; max-width: 640px; }
.sec { margin: 30px 0 12px; display: flex; align-items: baseline; gap: 10px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-hi); font-weight: 700; }
.sec .count { letter-spacing: 0; }
.panel { background: var(--surface); border: 1px solid var(--line-soft); padding: 18px 20px; }
.well { background: var(--well); border: 1px solid var(--line-soft); padding: 16px 18px; }
.stack { display: grid; gap: 10px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 0 28px; align-items: start; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(246, 244, 235, .3); background: transparent; color: var(--text); padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; min-height: 40px; white-space: nowrap; text-decoration: none; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.btn:hover { border-color: var(--ivory); }
.btn.primary { background: var(--ivory); color: var(--forest); border-color: var(--ivory); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.quiet { border-color: transparent; color: var(--muted); }
.btn.quiet:hover { color: var(--text); background: rgba(246, 244, 235, .06); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; background: rgba(246, 244, 235, .1); color: var(--ivory); }
.pill.ok { background: var(--ok-pale); color: var(--ok); } .pill.warn { background: var(--warn-pale); color: var(--warn); } .pill.err { background: var(--err-pale); color: var(--err); } .pill.info { background: var(--info-pale); color: var(--info); }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #D2474F; color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

input[type=text], input[type=email], select, textarea { width: 100%; background: var(--well); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 10px 12px; outline: none; font-size: 16px; }
textarea { resize: vertical; line-height: 1.45; min-height: 84px; }
input:focus, select:focus, textarea:focus { border-color: var(--brass); }
::placeholder { color: var(--faint); opacity: 1; }
label.f { display: grid; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--well); border-radius: 999px; padding: 3px; gap: 2px; border: 1px solid var(--line-soft); }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--ivory); color: var(--forest); }

/* a question card */
.q { display: grid; gap: 10px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line-soft); border-left: 2px solid var(--brass); }
.q.done { border-left-color: var(--line); }
.q .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.q .meta b { color: var(--text); font-weight: 600; }
.q .text { font-family: var(--serif); font-size: 19px; line-height: 1.35; }
.q .why { font-size: 13px; color: var(--sage); }
.q .answer { font-size: 15px; padding: 10px 12px; background: var(--well); border: 1px solid var(--line-soft); white-space: pre-wrap; }
.q .answer small { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--brass-hi); margin-bottom: 4px; }
.empty { color: var(--muted); padding: 18px; border: 1px dashed var(--line); text-align: center; font-size: 14px; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.person:first-child { border-top: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--well); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--brass-hi); flex: none; }
.person .nm { font-weight: 600; } .person .tt { font-size: 12.5px; color: var(--muted); }

/* sign in */
.signin { max-width: 460px; margin: 8vh auto 0; display: grid; gap: 16px; }
.code { font-size: 30px; font-weight: 700; letter-spacing: .14em; font-variant-numeric: tabular-nums; padding: 14px 16px; background: var(--well); border: 1px solid var(--line); text-align: center; }

.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; z-index: 20; width: min(440px, calc(100vw - 24px)); }
.toast { background: var(--ivory); color: var(--forest); padding: 12px 16px; font-weight: 600; font-size: 14px; animation: rise .2s var(--ease); }
.toast.err { background: #F4D5D7; color: #6E1D22; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 760px) {
  .cols { grid-template-columns: 1fr; }
  h1 { font-size: 28px; }
  .who .nm-full { display: none; }
}
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } .spin { animation-duration: 2s; } }
