/* VEALTH COCKPIT V5 — presentation, 2026-09-13.
   Structure: the north star (thin header, 46/54 register and packet split,
   image-led rows, an editorial packet, one gold act). Material: EcoWealthSafety
   (warm mineral paper and deep forest black, ambient light, the lotus spectrum
   in thin rules, buttons with a spectrum rim). The register leads with the
   universal baseline, the first work on the board; the packet on the right
   explains the chosen basket and lists its live packets.

   The :root tokens are the compatibility baseline the convergence tests read.
   The body-scoped tokens further down are the palette the page paints. */
:root {
  color-scheme: light;
  --paper: #f4eddd;
  --paper-2: #eee5d3;
  --paper-3: #fffbf2;
  --ink: #1f2b20;
  --ink-soft: #405046;
  --quiet: #58685d;
  --rule: #d7cdb9;
  --rule-strong: #b7aa90;
  --green: #173d2a;
  --green-soft: #2f654a;
  --gold: #b27724;
  --gold-pale: #e7c779;
  --gold-wash: #f1e4c6;
  --action-ink: #24190b;
  --action-bg: #b27724;
  --action-bg-hover: #9c681d;
  --danger: #884737;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 72px;
  --gutter: clamp(22px, 2.3vw, 34px);
  --packet-gutter: clamp(22px, 2.2vw, 32px);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0c1513;
  --paper-2: #12231d;
  --paper-3: #132820;
  --ink: #f6edda;
  --ink-soft: rgba(246, 237, 218, .88);
  --quiet: rgba(246, 237, 218, .70);
  --rule: rgba(231, 199, 121, .16);
  --rule-strong: #c8a259;
  --green: #e3c57e;
  --green-soft: #8fbd9b;
  --gold: #e6c77d;
  --gold-pale: #c39d58;
  --gold-wash: #1b3428;
  --action-ink: #152119;
  --action-bg: #e6c77d;
  --action-bg-hover: #f1dca5;
  --danger: #f2b39c;
}

/* ── The painted material: EcoWealthSafety's day ─────────────────────────── */
body {
  --page: linear-gradient(135deg, #f2e8d0 0%, #ece0c3 48%, #e9e2c8 100%);
  --page-solid: #efe5cb;
  --glow-gold: rgba(242, 199, 107, .30);
  --glow-green: rgba(156, 207, 154, .20);
  --glow-rose: rgba(240, 168, 184, .12);
  --panel: rgba(250, 241, 222, .78);
  --panel-soft: rgba(250, 241, 222, .42);
  --spectrum: linear-gradient(112deg, #c98a2e 0%, #d9a94f 22%, #6f9e76 55%, #3f6a52 78%, #1b1b20 100%);
  --rim: linear-gradient(112deg, #b27a22 0%, #cfa24a 32%, #4f8a63 68%, #2f6f4a 100%);
  --btn-face: linear-gradient(180deg, rgba(246, 234, 208, .97), rgba(234, 215, 182, .92));
  --nav-glass: linear-gradient(115deg, rgba(246, 238, 220, .93), rgba(242, 232, 210, .86), rgba(244, 235, 214, .82), rgba(240, 229, 205, .88));
  --paper: #efe5cb;
  --paper-2: #e6dabf;
  --paper-3: #f7efdc;
  --ink: #241b18;
  --ink-soft: #4a3f34;
  --quiet: #6d6153;
  --rule: rgba(120, 80, 45, .20);
  --rule-strong: rgba(120, 80, 45, .36);
  --green: #2f6f4a;
  --green-soft: #3f6a52;
  --gold: #825313;
  --gold-pale: #d9a94f;
  --gold-hi: #c98a2e;
  --gold-wash: rgba(201, 138, 46, .10);
  --action-ink: #fff8e8;
  --action-bg: #825313;
  --action-bg-hover: #6b430e;
  --action-face: linear-gradient(180deg, #a3701f 0%, #7c5311 100%);
  --shadow: 0 18px 34px -18px rgba(20, 15, 8, .55);
  --danger: #a54a33;
}
/* ── and its night ───────────────────────────────────────────────────────── */
:root[data-theme="dark"] body {
  --page: linear-gradient(135deg, #0a0e09 0%, #10140d 46%, #0b100c 100%);
  --page-solid: #0a0e09;
  --glow-gold: rgba(242, 199, 107, .11);
  --glow-green: rgba(156, 207, 154, .08);
  --glow-rose: rgba(240, 168, 184, .04);
  --panel: rgba(21, 27, 21, .72);
  --panel-soft: rgba(21, 27, 21, .40);
  --rim: linear-gradient(112deg, #e6b45a 0%, #d9a94f 32%, #84c496 68%, #6f9e76 100%);
  --btn-face: linear-gradient(180deg, #1b2015, #12160e);
  --nav-glass: linear-gradient(115deg, rgba(13, 16, 11, .93), rgba(17, 21, 14, .84), rgba(15, 19, 13, .80), rgba(19, 23, 16, .86));
  --paper: #0a0e09;
  --paper-2: #0e130f;
  --paper-3: #151b15;
  --ink: #f4f6f2;
  --ink-soft: #d4dad3;
  --quiet: #a3ada2;
  --rule: #2b362b;
  --rule-strong: rgba(201, 138, 46, .42);
  --green: #84c496;
  --green-soft: #6f9e76;
  --gold: #e6b45a;
  --gold-pale: #c98a2e;
  --gold-hi: #e6b45a;
  --gold-wash: rgba(201, 138, 46, .12);
  --action-ink: #152119;
  --action-bg: #e6c77d;
  --action-bg-hover: #f1dca5;
  --action-face: linear-gradient(180deg, #edd08d 0%, #d6b05a 100%);
  --shadow: 0 18px 34px -18px rgba(0, 0, 0, .8);
  --danger: #e07a5f;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page-solid); color: var(--ink); font-family: var(--sans); }
body {
  position: relative;
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.5;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Ambient light on its own fixed layer, never repainted on scroll. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 8%, var(--glow-gold), transparent 36rem),
    radial-gradient(circle at 86% 16%, var(--glow-rose), transparent 26rem),
    radial-gradient(circle at 16% 92%, var(--glow-green), transparent 34rem);
}
button, input, textarea, select { font: inherit; color: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
summary::-webkit-details-marker { display: none; }
summary { list-style: none; }
::selection { background: color-mix(in srgb, var(--gold-hi) 32%, transparent); }

.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;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: -64px;
  left: 14px;
  padding: 10px 14px;
  background: var(--green);
  color: var(--paper-3);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }
.ic { display: inline-flex; line-height: 0; }
.ic svg { display: block; }

/* ── Header: the lotus, then the three moves, then you ───────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--rule);
  background: var(--nav-glass);
}
.topbar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 2px;
  background: var(--spectrum);
  opacity: .85;
}
.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  text-decoration: none;
}
.brand-mark { position: relative; display: block; width: 52px; height: 52px; flex: 0 0 52px; filter: drop-shadow(0 0 10px rgba(230, 180, 90, .28)); }
.brand-logo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-logo-night { display: none; }
:root[data-theme="dark"] .brand-logo-day { display: none; }
:root[data-theme="dark"] .brand-logo-night { display: block; }
.brand-name { padding-top: 3px; }
.primary-nav,
.utility-nav { display: flex; align-items: center; }
.primary-nav { justify-content: center; gap: 4px; }
.utility-nav { justify-content: flex-end; gap: 0; }
.primary-nav a,
.me-button {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--quiet);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 7px;
  left: 14px;
  height: 2px;
  border-radius: 1px;
  background: transparent;
}
.primary-nav a[aria-current="page"] { color: var(--ink); }
.primary-nav a[aria-current="page"]::after { background: var(--gold-hi); }
.primary-nav a:hover,
.me-button:hover { color: var(--gold); }
.mode-label { font-size: 0; }
.mode-label::after { content: attr(data-short); font-size: 17px; }
.vealth-theme-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--gold);
}
.command-key {
  height: 34px;
  min-height: 34px;
  margin-left: 8px;
  padding: 0 11px;
  border: 1.5px solid transparent;
  border-radius: 9px;
  background: var(--btn-face) padding-box, var(--rim) border-box;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1;
}
.command-key:hover { filter: brightness(1.08); }
.primary-nav a:focus-visible,
.me-button:focus-visible,
.command-key:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* ── Work mode: register | packet ─────────────────────────────────────────── */
#app-main,
.mode-view { min-height: calc(100vh - var(--header-h)); }
.work-mode {
  display: grid;
  grid-template-columns: minmax(440px, 46%) minmax(0, 54%);
  min-height: calc(100vh - var(--header-h));
}
.work-register {
  min-width: 0;
  border-right: 1px solid var(--rule);
  background: var(--panel-soft);
}
.register-head {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  padding: 18px var(--gutter) 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--nav-glass);
}
.command-field { position: relative; display: block; }
.field-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 16px;
  display: inline-flex;
  transform: translateY(-50%);
  color: var(--gold);
  pointer-events: none;
}
.field-icon svg { display: block; }
.command-field input {
  width: 100%;
  height: 54px;
  padding: 0 14px 0 48px;
  border: 1.5px solid transparent;
  border-radius: 9px;
  outline: 0;
  background: var(--panel) padding-box, var(--rule-strong) border-box;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.3;
}
.command-field input::placeholder { color: var(--quiet); opacity: 1; }
.command-field input::-webkit-search-decoration,
.command-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.command-field input:focus { background: var(--paper-3) padding-box, var(--rim) border-box; }
.scope-field { display: none; margin-top: 8px; }
body.place-open .scope-field { display: block; }
.scope-field .field-icon { left: 13px; }
.scope-field input { height: 46px; padding-left: 40px; font-weight: 450; }
.register-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  min-width: 0;
  margin: 11px 0 0;
  color: var(--quiet);
  font-size: 15px;
  line-height: 1.4;
}
.register-meta > * + *::before { content: "·"; margin: 0 9px; color: var(--quiet); }
.register-place-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 560;
  cursor: pointer;
}
.register-place-toggle .ic { display: inline-flex; color: var(--gold); }
.register-place-toggle:hover #register-place,
.register-place-toggle:focus-visible #register-place { text-decoration: underline; text-underline-offset: 3px; }
.register-place-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
#register-scope { color: var(--ink-soft); }
#register-count { font-variant-numeric: tabular-nums; }

/* ── The universal baseline: the first work on the board ─────────────────── */
.priority-work-guide { margin: 0; }
body.searching .priority-work-guide,
body.basket-open .priority-work-guide { display: none; }
.priority-work-guide-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  min-height: 44px;
  padding: 14px var(--gutter) 8px;
  cursor: default;
  color: var(--quiet);
  font-size: 14px;
  line-height: 1.4;
}
.priority-work-guide-summary:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.priority-work-heading { color: var(--ink); font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.priority-work-guide-summary-meta { min-width: 0; }
.priority-work-guide:not([open]) .priority-work-guide-summary { padding-bottom: 14px; }
.priority-work-guide-body { padding: 0; }
.priority-work-note { display: none; }
.priority-work-list { display: block; border-top: 1px solid var(--rule); }
.priority-work-item,
.work-row {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 22px;
  padding: 12px var(--gutter);
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: background-color 90ms ease;
}
.priority-work-item::before,
.work-row::before {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: 0;
  width: 0;
  background: var(--gold);
  transition: width 90ms ease;
}
.priority-work-item:hover,
.work-row:hover { background: var(--panel); }
.priority-work-item:focus-visible,
.work-row:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--green); }
.priority-work-item[aria-pressed="true"],
.work-row[aria-current="true"] { background: var(--gold-wash); }
.priority-work-item[aria-pressed="true"]::before { width: 3px; background: var(--gold); }
.work-row[aria-current="true"]::before { width: 3px; background: var(--gold); }
.priority-work-index { display: none; }
body.baskets-plain .priority-work-item { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 16px; padding-bottom: 17px; }
.priority-work-copy { display: grid; gap: 4px; min-width: 0; }
.priority-work-name {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -.012em;
  line-height: 1.2;
}
.priority-work-detail { color: var(--ink-soft); font-size: 15px; line-height: 1.4; }
.priority-work-field { border-bottom: 1px solid var(--rule); }
.priority-work-field-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 var(--gutter);
  cursor: pointer;
  color: var(--green);
  font-size: 15.5px;
  font-weight: 560;
}
.priority-work-field-action { color: var(--quiet); font-weight: 500; }
.priority-work-field[open] .priority-work-field-action { visibility: hidden; }
.priority-work-field-summary:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.priority-work-field-note { max-width: 58ch; margin: 0; padding: 0 var(--gutter) 12px; color: var(--quiet); font-size: 15.5px; line-height: 1.5; }
.priority-work-list-more { border-top: 0; }
.priority-work-support { padding: 18px var(--gutter) 28px; }
.priority-work-support-label { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 18px; font-weight: 500; }
.priority-work-support-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 8px 0 0;
  color: var(--quiet);
  font-size: 15px;
}
.priority-work-support-options strong { margin-right: 6px; color: var(--gold); font-weight: 600; }
.priority-work-support-note { max-width: 58ch; margin: 12px 0 0; color: var(--quiet); font-size: 15.5px; line-height: 1.5; }

/* ── Live rows (a typed search) ──────────────────────────────────────────── */
.work-list { display: none; padding: 0; }
body.searching .work-list,
body.basket-open .work-list { display: block; }
.basket-head { padding: 14px var(--gutter) 14px; border-bottom: 1px solid var(--rule); background: var(--gold-wash); }
.basket-back-line { margin: 0 0 8px; }
.text-action.basket-back { min-height: 32px; padding: 0; border: 0; background: transparent; color: var(--green); font-size: 15px; font-weight: 560; text-decoration: underline; text-underline-offset: 4px; }
.basket-title { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: -.015em; line-height: 1.15; }
.basket-what { max-width: 58ch; margin: 6px 0 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.5; }
.basket-count { margin: 8px 0 0; color: var(--quiet); font-size: 14.5px; line-height: 1.45; }
.status-line,
.empty-line {
  margin: 0;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--rule);
  color: var(--quiet);
  font-size: 15.5px;
  line-height: 1.5;
}
.empty-line.error { color: var(--danger); }
.work-thumb {
  display: block;
  width: 92px;
  height: 92px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--paper-2);
  box-shadow: 0 10px 20px -14px rgba(20, 15, 8, .6);
}
.work-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.work-thumb.is-blank { box-shadow: inset 0 0 0 1px var(--rule); }
.work-main { display: block; min-width: 0; }
.work-title {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -.012em;
  line-height: 1.2;
}
.work-place {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.4;
}
.work-place .ic { display: inline-flex; flex: 0 0 auto; margin-top: 3px; color: var(--gold); }
.work-place-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.work-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 18px;
  margin-top: 7px;
  font-size: 15px;
  line-height: 1.4;
}
.work-fact { min-width: 0; color: var(--ink-soft); }
.work-fact strong {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.work-fact.is-money { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.work-fact.is-state::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 9px 1px 0;
  border-radius: 50%;
  background: var(--green-soft);
}
.register-more { padding: 14px var(--gutter); }

/* ── The packet: the one special object ──────────────────────────────────── */
.packet-pane {
  position: relative;
  min-width: 0;
  background: var(--panel);
}
.packet-pane::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--spectrum);
  opacity: .9;
}
.mobile-packet-bar { display: none; }
.packet-detail {
  min-height: calc(100vh - var(--header-h));
  padding: 26px var(--packet-gutter) 40px;
}
.packet-hero { margin: 0 0 18px; }
.packet-hero img {
  display: block;
  width: 100%;
  height: clamp(160px, 23vh, 216px);
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}
.packet-hero figcaption { margin: 7px 0 0; color: var(--quiet); font-size: 12.5px; line-height: 1.4; }
.packet-empty { width: min(640px, 100%); margin-top: 6vh; }
.packet-orientation { width: min(720px, 100%); }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .22em; line-height: 1.4; text-transform: uppercase; }
.packet-empty h1,
.task-column h1,
.packet-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.08;
}
.packet-empty h1 { max-width: 16ch; font-size: clamp(30px, 3vw, 40px); }
.packet-empty p:not(.eyebrow) { max-width: 56ch; margin: 14px 0 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }
.packet-empty-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.packet-empty-status > div { display: grid; gap: 4px; min-width: 0; padding: 12px 14px 13px 0; }
.packet-empty-status > div + div { padding-left: 14px; border-left: 1px solid var(--rule); }
.packet-empty-status span { color: var(--quiet); font-size: 13.5px; }
.packet-empty-status strong { overflow: hidden; color: var(--ink); font-size: 15px; font-weight: 560; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.packet-empty > .primary-action { margin-top: 22px; }
.packet-head { position: relative; padding-bottom: 22px; }
.packet-head::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 140px;
  height: 4px;
  border-radius: 2px;
  background: var(--spectrum);
}
.packet-title { max-width: 100%; font-size: clamp(36px, 3.4vw, 50px); line-height: 1.04; overflow-wrap: anywhere; }
.packet-title.is-long { max-width: 100%; font-size: clamp(30px, 2.8vw, 40px); line-height: 1.08; }
.packet-location {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 66ch;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.45;
}
.packet-location .ic { flex: 0 0 auto; margin-top: 4px; color: var(--gold); }
.packet-state {
  display: block;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.packet-lede {
  max-width: 40ch;
  margin: 20px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(19px, 1.6vw, 22px);
  font-weight: 500;
  line-height: 1.45;
}
.money-line { display: block; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.money-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.money-copy { display: grid; gap: 4px; }
.money-value {
  display: block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(28px, 2.3vw, 34px);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.15;
}
.money-condition { color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
.packet-sections { margin-top: 6px; border-bottom: 1px solid var(--rule-strong); }
.packet-lede + .packet-sections { margin-top: 18px; border-top: 1px solid var(--rule); }
.packet-section {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 15px 0 17px;
  border-top: 1px solid var(--rule);
}
.packet-section:first-child { border-top: 0; }
.packet-lede + .packet-sections .packet-section:first-child { border-top: 0; }
.packet-section h2 {
  margin: 0;
  padding-top: 4px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .2em;
  line-height: 1.5;
  text-transform: uppercase;
}
.packet-section p { max-width: 64ch; margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.58; }
.packet-checklist { max-width: 64ch; margin: 0; padding: 0; list-style: none; }
.packet-checklist li { position: relative; padding: 0 0 9px 24px; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
.packet-checklist li:last-child { padding-bottom: 0; }
.packet-checklist li::before { content: ""; position: absolute; top: .6em; left: 0; width: 12px; height: 3px; border-radius: 2px; background: var(--rim); }
.packet-method { max-width: 64ch; margin: 0; padding: 0; list-style: none; counter-reset: method; }
.packet-method li { position: relative; counter-increment: method; padding: 0 0 12px 30px; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.packet-method li:last-child { padding-bottom: 0; }
.packet-method li::before { content: counter(method); position: absolute; top: 1px; left: 0; color: var(--gold); font-size: 14px; font-variant-numeric: tabular-nums; }
.packet-details { border-bottom: 1px solid var(--rule); }
.packet-details summary,
.quiet-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
  cursor: pointer;
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 500;
}
.summary-label { display: inline-flex; align-items: center; gap: 10px; }
.summary-label .ic { color: var(--gold); transition: transform 120ms ease; }
.packet-details[open] > summary .summary-label .ic { transform: rotate(180deg); }
.packet-details summary:focus-visible,
.quiet-details summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.packet-details summary code { max-width: 48%; overflow: hidden; color: var(--quiet); font-family: var(--mono); font-size: 13px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.details-hint { color: var(--quiet); font-size: 14px; font-weight: 500; }
.packet-details[open] .details-hint { visibility: hidden; }
.packet-details-inner { display: grid; gap: 8px; padding: 0 0 16px; color: var(--quiet); font-size: 15.5px; line-height: 1.5; }
.packet-details-inner p { margin: 0; }
.packet-details code { color: var(--ink-soft); font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
.packet-supporting .packet-section:first-child { border-top: 1px solid var(--rule); }
.mobile-secondary-buttons { display: flex; flex-wrap: wrap; gap: 8px 12px; }

/* ── Action rail: quiet alternatives, one gold act ────────────────────────── */
.action-zone {
  position: sticky;
  bottom: 0;
  z-index: 15;
  margin: 24px calc(-1 * var(--packet-gutter)) 0;
  padding: 14px var(--packet-gutter) max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  background: var(--paper-3);
}
.action-zone::before {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  top: -30px;
  height: 30px;
  background: linear-gradient(180deg, transparent, var(--paper-3));
  pointer-events: none;
}
.action-explainer { display: none; }
.action-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; width: 100%; min-width: 0; }
.text-action,
.primary-action,
.back-button { min-height: 44px; border-radius: 0; font-weight: 560; }
.text-action { padding: 0; border: 0; background: transparent; color: var(--green); font-size: 15px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-action:hover { text-decoration-color: var(--green); }
.text-action:disabled { color: var(--quiet); opacity: .6; cursor: not-allowed; text-decoration: none; }
.action-zone .text-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  border: 2px solid transparent;
  border-radius: 9px;
  background: var(--btn-face) padding-box, var(--rim) border-box;
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}
.action-zone .text-action:hover { color: var(--ink); filter: brightness(1.12); }
.action-zone .text-action .ic { color: var(--gold); }
.primary-action {
  display: inline-flex;
  min-width: 200px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 9px;
  background: var(--action-bg);
  color: var(--action-ink);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .16em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: var(--shadow);
}
.primary-action { background: var(--action-face) padding-box, var(--rim) border-box; }
.primary-action:hover { filter: brightness(1.08); }
.primary-action .ic { color: inherit; }
.action-zone .primary-action { margin-left: auto; }
.action-zone .action-buttons > .primary-action:only-child { margin-left: 0; }
.primary-action:focus-visible,
.text-action:focus-visible,
.back-button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ── Post, Verify, Me ─────────────────────────────────────────────────────── */
.task-surface { padding: clamp(40px, 7vw, 80px) var(--packet-gutter) 100px; background: var(--panel-soft); }
.task-column { width: min(680px, 100%); margin: 0 auto; }
.task-column-wide { width: min(820px, 100%); }
.task-column h1 { max-width: 18ch; font-size: clamp(32px, 4vw, 46px); }
.task-intro { max-width: 58ch; margin: 14px 0 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }
.post-form { display: grid; gap: 18px; margin-top: 28px; }
.post-form label { display: grid; gap: 6px; }
.post-form label > span { color: var(--ink-soft); font-size: 14px; font-weight: 560; }
.post-form input,
.post-form textarea,
.post-form select,
.act-form input,
.act-form textarea,
.act-field input,
.verify-form input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid transparent;
  border-radius: 9px;
  outline: 0;
  background: var(--panel) padding-box, var(--rule-strong) border-box;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.5;
}
.post-form textarea { min-height: 132px; resize: vertical; }
.post-form input:focus,
.post-form textarea:focus,
.post-form select:focus,
.act-form input:focus,
.act-form textarea:focus,
.act-field input:focus,
.verify-form input:focus { background: var(--paper-3) padding-box, var(--rim) border-box; }
.post-form .primary-action { justify-self: start; }
.quiet-details { margin-top: 28px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.quiet-details p { margin: 0 0 16px; color: var(--quiet); font-size: 15.5px; line-height: 1.5; }
.verify-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 26px; }
.verify-result { margin-top: 26px; }
.record { border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.record-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 18px 0; }
.record-head h2 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: -.015em; line-height: 1.15; }
.record-list { margin: 0; }
.record-row { display: grid; grid-template-columns: minmax(120px, .26fr) minmax(0, 1fr); gap: 24px; padding: 12px 0; border-top: 1px solid var(--rule); }
.record-row dt { color: var(--quiet); font-size: 14px; font-weight: 500; }
.record-row dd { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.5; overflow-wrap: anywhere; }

/* ── Command menu ─────────────────────────────────────────────────────────── */
#command-dialog {
  width: min(600px, calc(100vw - 30px));
  padding: 0;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: var(--paper-3) padding-box, var(--rim) border-box;
  color: var(--ink);
  box-shadow: 0 26px 54px -26px rgba(20, 15, 8, .6);
}
#command-dialog::backdrop { background: rgba(23, 30, 24, .28); }
.command-dialog-panel { padding: 16px 18px 14px; }
.command-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.command-dialog-head h2 { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.command-dialog-head button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--quiet); font-size: 22px; }
#command-input {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  padding: 0 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 9px;
  outline: 0;
  background: var(--panel);
  font-size: 15.5px;
}
#command-input:focus { border-color: var(--green); }
.command-results { margin-top: 8px; border-top: 1px solid var(--rule); }
.command-result {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  text-align: left;
}
.command-result[aria-selected="true"] { background: var(--gold-wash); }
.command-result-kind { color: var(--quiet); font-size: 13px; }
.command-result-label { font-size: 15px; line-height: 1.4; }
.command-help { margin: 10px 0 0; color: var(--quiet); font-size: 13.5px; }
.noscript { margin: 20px; color: var(--danger); }

/* ── Desktop: each pane scrolls on its own ───────────────────────────────── */
@media (min-width: 761px) {
  body.work-active { overflow: hidden; }
  body.work-active #app-main,
  body.work-active .work-mode {
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    min-height: 0;
  }
  body.work-active .work-mode { overflow: hidden; }
  body.work-active .work-register,
  body.work-active .packet-pane {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
  body.work-active .register-head { top: 0; }
}
@media (max-width: 980px) {
  .work-mode { grid-template-columns: minmax(360px, 46%) minmax(0, 54%); }
  .packet-section { grid-template-columns: 110px minmax(0, 1fr); gap: 18px; }
  .action-zone .primary-action { min-width: 180px; }
}

/* ── Phone: its own composition ──────────────────────────────────────────── */
@media (max-width: 760px) {
  :root { --header-h: 60px; --gutter: 16px; --packet-gutter: 18px; }
  .topbar { grid-template-columns: 1fr auto; padding: 0 10px 0 14px; }
  .brand { gap: 9px; font-size: 26px; }
  .brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .primary-nav {
    position: fixed;
    z-index: 49;
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(56px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--rule);
    background: var(--paper-3);
  }
  .primary-nav::before { content: ""; position: absolute; top: -2px; right: 0; left: 0; height: 2px; background: var(--spectrum); opacity: .85; }
  .primary-nav a { flex: 1; min-width: 0; min-height: 56px; justify-content: center; }
  .primary-nav a::after { top: auto; bottom: 9px; }
  .utility-nav { grid-column: 2; grid-row: 1; }
  .command-key { display: none; }
  #app-main,
  .mode-view { min-height: calc(100vh - var(--header-h) - 56px); }
  .work-mode { display: block; }
  .work-register { min-height: calc(100vh - var(--header-h) - 56px); border-right: 0; }
  .register-head { top: var(--header-h); padding: 12px 16px 10px; }
  .command-field input { height: 50px; }
  .scope-field input { height: 44px; }
  .register-meta { margin-top: 9px; font-size: 14.5px; }
  .register-meta > * + *::before { margin: 0 7px; }
  .priority-work-guide-summary { padding: 12px 16px 8px; }
  .priority-work-heading { font-size: 18px; }
  .priority-work-item,
  .work-row { grid-template-columns: 60px minmax(0, 1fr); gap: 13px; align-items: start; padding: 12px 16px; }
  body.baskets-plain .priority-work-item { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 14px 16px 15px; }
  .work-thumb { width: 60px; height: 60px; margin-top: 3px; }
  .priority-work-name,
  .work-title { font-size: 18px; }
  .priority-work-detail,
  .work-place { margin-top: 4px; font-size: 14.5px; }
  .work-facts { margin-top: 5px; font-size: 14.5px; gap: 2px 14px; }
  .priority-work-support { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .work-list { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .packet-pane { display: none; min-height: calc(100vh - var(--header-h) - 56px); }
  body.mobile-detail-open .work-register { display: none; }
  body.mobile-detail-open .packet-pane { display: block; }
  .mobile-packet-bar {
    position: sticky;
    top: var(--header-h);
    z-index: 21;
    display: block;
    padding: 0 16px;
    border-bottom: 1px solid var(--rule);
    background: var(--paper-3);
  }
  .back-button { display: inline-flex; align-items: center; padding: 0; border: 0; background: transparent; color: var(--green); font-size: 15px; }
  .packet-detail { min-height: auto; padding: 16px 18px calc(128px + env(safe-area-inset-bottom)); }
  .packet-hero img { height: 172px; }
  .packet-empty { margin-top: 18px; }
  .packet-empty h1 { font-size: clamp(28px, 8.5vw, 36px); }
  .packet-empty-status { grid-template-columns: 1fr; }
  .packet-empty-status > div,
  .packet-empty-status > div + div { padding: 11px 0; border-left: 0; }
  .packet-empty-status > div + div { border-top: 1px solid var(--rule); }
  .packet-empty-status strong { white-space: normal; }
  .packet-title { max-width: 100%; font-size: clamp(28px, 8vw, 34px); line-height: 1.08; }
  .packet-title.is-long { max-width: 100%; font-size: clamp(24px, 6.8vw, 30px); }
  .packet-location { font-size: 16px; }
  .packet-lede { font-size: 19px; }
  .packet-section,
  .record-row { grid-template-columns: 1fr; gap: 6px; }
  .money-value { font-size: 28px; }
  .action-zone {
    position: fixed;
    right: 0;
    bottom: calc(56px + env(safe-area-inset-bottom));
    left: 0;
    margin: 0;
    padding: 10px 16px;
  }
  .action-zone .text-action { display: none; }
  .action-zone .primary-action { width: 100%; min-width: 0; max-width: 100%; margin-left: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .packet-empty > .primary-action { max-width: 100%; }
  .task-surface { padding: 32px 18px calc(110px + env(safe-area-inset-bottom)); }
  .task-column h1 { font-size: clamp(30px, 9vw, 40px); }
  .verify-form { grid-template-columns: 1fr; }
  .verify-form .primary-action { justify-self: start; min-width: 0; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* ── The acts, inside the packet pane ─────────────────────────────────────── */
.act-panel { padding-bottom: 32px; }
.act-head { padding-bottom: 4px; }
.act-lead { max-width: 62ch; margin: 16px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.58; }
.act-note { max-width: 62ch; margin: 10px 0 0; color: var(--quiet); font-size: 15px; line-height: 1.55; }
.act-body { margin-top: 20px; }
.act-form { display: grid; gap: 16px; }
.act-field { display: grid; gap: 6px; }
.act-field > span { color: var(--ink-soft); font-size: 14px; font-weight: 560; }
.act-form textarea { min-height: 96px; resize: vertical; }
.act-field input[type="file"] { min-height: 0; padding: 10px 12px; font-size: 14.5px; }
.act-choice { display: flex; flex-wrap: wrap; gap: 10px; }
.act-choice-button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border: 2px solid transparent;
  border-radius: 9px;
  background: var(--btn-face) padding-box, var(--rim) border-box;
  color: var(--quiet);
  font-size: 14px;
  font-weight: 560;
}
.act-choice-button[aria-pressed="true"] { color: var(--ink); background: var(--gold-wash) padding-box, var(--rim) border-box; }
.act-choice-button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.act-wallet { margin: 4px 0 0; color: var(--quiet); font-size: 14.5px; line-height: 1.5; }
.act-wallet .text-action { font-size: 14.5px; }
.act-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; margin-top: 4px; }
.act-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border: 2px solid transparent;
  border-radius: 9px;
  background: var(--btn-face) padding-box, var(--rim) border-box;
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.act-secondary:hover { color: var(--ink); filter: brightness(1.12); }
.act-secondary:disabled, .primary-action:disabled { opacity: .55; cursor: not-allowed; filter: none; }
.act-secondary:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.act-status { min-height: 1.5em; max-width: 62ch; margin: 18px 0 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }
.act-status.is-ok { color: var(--green); }
.act-status .text-action { font-size: 15.5px; }
.act-gps { margin: 0; color: var(--quiet); font-size: 14.5px; line-height: 1.5; }
.act-gps .text-action { font-size: 14.5px; }
.act-door { padding: 18px 0; border-top: 1px solid var(--rule); }
.act-door h2 { margin: 0 0 8px; color: var(--gold); font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.act-door-state { max-width: 62ch; margin: 0 0 12px; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.act-door .act-field { margin-bottom: 12px; }
.act-alt { max-width: 62ch; margin: 18px 0 0; color: var(--quiet); font-size: 15px; line-height: 1.55; }
.act-twin { margin-top: 22px; border-top: 1px solid var(--rule); }
.act-paste { max-width: 100%; margin: 0; padding: 12px 14px; overflow-x: auto; border-radius: 9px; background: var(--panel); color: var(--ink-soft); font-family: var(--mono); font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.act-back { margin: 22px 0 0; }
.act-post-review { margin-top: 28px; }
.act-post-review .act-lead { margin-top: 18px; }
.act-post-review .act-buttons { margin-top: 16px; }
.act-post-review .act-twin { margin-top: 18px; }
