@font-face{font-family:"Geist";src:url("/assets/geist.8b680a11e9.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap;}
@font-face{font-family:"Geist Mono";src:url("/assets/geist-mono.f1215c59ed.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap;}
@font-face{font-family:"Fraunces";src:url("/assets/fraunces.4099ee7baa.woff2") format("woff2");font-weight:300 700;font-style:normal;font-display:swap;}
/* LYFE OS design tokens.
   One palette, defined light-first on :root, redefined for dark under both
   prefers-color-scheme and an explicit [data-theme] so the toggle wins in
   either direction. Nothing here is section specific except the four hues. */

:root {
  color-scheme: light dark;

  /* Surfaces */
  --bg: #f6f5f2;
  --bg-sink: #efede8;
  --surface: #ffffff;
  --surface-2: #faf9f7;
  --line: #e4e1da;
  --line-soft: #eeece7;

  /* Ink */
  --ink: #16181c;
  --ink-2: #40454d;
  --ink-3: #6d737d;
  --ink-4: #9aa0a9;

  /* Brand */
  --accent: #2f6f5b;
  --accent-ink: #1f503f;
  --accent-wash: #e8f1ed;
  --on-accent: #ffffff;

  /* Section hues */
  --wealth: #2f6f5b;
  --wealth-wash: #e7f1ec;
  --health: #a75a33;
  --health-wash: #f7ece5;
  --relations: #35608f;
  --relations-wash: #e7eef6;
  --dreams: #6a4d94;
  --dreams-wash: #efeaf7;

  /* States */
  --good: #2f6f5b;
  --good-wash: #e7f1ec;
  --watch: #9a6a12;
  --watch-wash: #f8f0dd;
  --act: #a8452f;
  --act-wash: #f8e9e5;

  /* Type */
  --ui: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--2: clamp(0.69rem, 0.68rem + 0.06vw, 0.73rem);
  --step--1: clamp(0.81rem, 0.79rem + 0.1vw, 0.87rem);
  --step-0: clamp(0.94rem, 0.92rem + 0.12vw, 1rem);
  --step-1: clamp(1.09rem, 1.04rem + 0.24vw, 1.24rem);
  --step-2: clamp(1.3rem, 1.2rem + 0.5vw, 1.65rem);
  --step-3: clamp(1.6rem, 1.4rem + 1vw, 2.35rem);
  --step-4: clamp(2rem, 1.6rem + 1.9vw, 3.3rem);

  /* Space and shape */
  --gap: 1rem;
  --pad: clamp(1rem, 0.7rem + 1vw, 1.5rem);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --shadow: 0 1px 2px rgba(20, 22, 26, 0.04), 0 6px 20px -12px rgba(20, 22, 26, 0.18);
  --shadow-lift: 0 2px 4px rgba(20, 22, 26, 0.05), 0 18px 40px -22px rgba(20, 22, 26, 0.32);
  --nav-w: 15.5rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1013;
    --bg-sink: #0a0c0e;
    --surface: #16191e;
    --surface-2: #1b1f25;
    --line: #262b33;
    --line-soft: #1f242b;

    --ink: #eceae5;
    --ink-2: #c2c6cd;
    --ink-3: #949aa4;
    --ink-4: #6c727c;

    --accent: #6bbf9f;
    --accent-ink: #8ed3b8;
    --accent-wash: #16302a;
    --on-accent: #0b1512;

    --wealth: #6bbf9f;
    --wealth-wash: #16302a;
    --health: #dd9166;
    --health-wash: #33231a;
    --relations: #7fadde;
    --relations-wash: #1a2634;
    --dreams: #ab8ade;
    --dreams-wash: #241d33;

    --good: #6bbf9f;
    --good-wash: #16302a;
    --watch: #d7ab55;
    --watch-wash: #322817;
    --act: #e3846b;
    --act-wash: #341f1a;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 20px -12px rgba(0, 0, 0, 0.7);
    --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.45), 0 20px 44px -24px rgba(0, 0, 0, 0.85);
  }
}

:root[data-theme="dark"] {
  --bg: #0e1013;
  --bg-sink: #0a0c0e;
  --surface: #16191e;
  --surface-2: #1b1f25;
  --line: #262b33;
  --line-soft: #1f242b;

  --ink: #eceae5;
  --ink-2: #c2c6cd;
  --ink-3: #949aa4;
  --ink-4: #6c727c;

  --accent: #6bbf9f;
  --accent-ink: #8ed3b8;
  --accent-wash: #16302a;
  --on-accent: #0b1512;

  --wealth: #6bbf9f;
  --wealth-wash: #16302a;
  --health: #dd9166;
  --health-wash: #33231a;
  --relations: #7fadde;
  --relations-wash: #1a2634;
  --dreams: #ab8ade;
  --dreams-wash: #241d33;

  --good: #6bbf9f;
  --good-wash: #16302a;
  --watch: #d7ab55;
  --watch-wash: #322817;
  --act: #e3846b;
  --act-wash: #341f1a;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 20px -12px rgba(0, 0, 0, 0.7);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.45), 0 20px 44px -24px rgba(0, 0, 0, 0.85);
}

/* Base: reset, typography, and the primitives every section reuses. */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: var(--step-0);
  line-height: 1.55;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 90;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.6em 1em;
}
.skip:focus { left: 0.75rem; }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* The wordmark. Lives here, not in app.css, because the landing page wears it too. */
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand .mark { width: 1.7rem; height: 1.7rem; flex: none; }
.brand b {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
}

/* ---------- primitives ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--pad);
  box-shadow: var(--shadow);
}

.card-flat {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: var(--pad);
}

.eyebrow {
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-4);
}

.display { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.dim { color: var(--ink-3); }
.dimmer { color: var(--ink-4); }
.small { font-size: var(--step--1); }
.tiny { font-size: var(--step--2); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.25em 0.65em;
  border-radius: 999px;
  font-size: var(--step--2);
  font-weight: 550;
  line-height: 1.5;
  background: var(--surface-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.chip .dot { width: 0.45em; height: 0.45em; border-radius: 50%; background: currentColor; flex: none; }
.chip.good { background: var(--good-wash); color: var(--good); border-color: transparent; }
.chip.watch { background: var(--watch-wash); color: var(--watch); border-color: transparent; }
.chip.act { background: var(--act-wash); color: var(--act); border-color: transparent; }
.chip.low { background: var(--watch-wash); color: var(--watch); border-color: transparent; }
.chip.high { background: var(--act-wash); color: var(--act); border-color: transparent; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.62em 1.15em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 550;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:hover { background: var(--surface-2); border-color: var(--ink-4); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.ghost { background: none; border-color: transparent; color: var(--ink-3); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn svg { width: 1rem; height: 1rem; flex: none; }

.rail {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.rail > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.6s var(--ease);
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.stack { display: grid; gap: var(--gap); }
.stack-sm { display: grid; gap: 0.5rem; }
.row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.spread { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }

.grid-2 { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); }
.grid-3 { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); }
.grid-4 { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* The dashboard shell and its section components.
   Desktop is a fixed rail plus a reading column. Mobile is a top bar plus a
   bottom tab bar, laid out for a thumb, not shrunk down from the desktop. */

.app {
  min-height: 100svh;
  display: grid;
  grid-template-columns: var(--nav-w) minmax(0, 1fr);
}

/* ---------- side rail (desktop) ---------- */

.rail-nav {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100svh;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem 1rem 1.25rem 1.5rem;
  background: var(--bg-sink);
  border-right: 1px solid var(--line);
}

.nav-list { display: grid; gap: 0.15rem; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: var(--step--1);
  font-weight: 550;
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
  width: 100%;
  text-align: left;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.nav-link:hover { background: var(--surface); color: var(--ink); }
.nav-link[aria-current="page"] {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.nav-link .ico { width: 1.05rem; height: 1.05rem; flex: none; opacity: 0.8; }
.nav-link .tally {
  margin-left: auto;
  font-size: var(--step--2);
  font-family: var(--mono);
  color: var(--ink-4);
}
.nav-link[aria-current="page"] .tally { color: var(--accent); }

.rail-foot { margin-top: auto; display: grid; gap: 0.75rem; }

.privacy-badge {
  display: grid;
  gap: 0.3rem;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: var(--step--2);
  color: var(--ink-3);
  text-decoration: none;
}
.privacy-badge b { color: var(--ink); font-size: var(--step--1); display: flex; align-items: center; gap: 0.4rem; }
.privacy-badge:hover { border-color: var(--accent); }

/* ---------- main column ---------- */

.main { min-width: 0; padding: 0 0 4rem; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem clamp(1rem, 0.5rem + 2vw, 2.5rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .where { font-weight: 600; font-size: var(--step--1); }
.topbar .when { color: var(--ink-4); font-size: var(--step--2); }
.topbar .grow { flex: 1; }
.topbar .mob-brand { display: none; align-items: center; gap: 0.5rem; }

.wrap {
  width: min(62rem, 100%);
  margin: 0 auto;
  padding: clamp(1.25rem, 0.8rem + 2vw, 2.25rem) clamp(1rem, 0.5rem + 2vw, 2.5rem) 0;
}

.view { display: none; }
.view.on { display: block; animation: rise 0.32s var(--ease) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.view-head { margin-bottom: 1.5rem; }
.view-head h1 { font-family: var(--display); font-weight: 500; font-size: var(--step-3); }
.view-head p { color: var(--ink-3); margin-top: 0.4rem; max-width: 46ch; }

.sec-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 2rem 0 0.85rem;
  font-size: var(--step-1);
  font-weight: 600;
}
.sec-title .tick { width: 0.3rem; height: 1.05em; border-radius: 2px; background: var(--accent); flex: none; }
.sec-title .aside { margin-left: auto; font-weight: 450; font-size: var(--step--1); color: var(--ink-4); }

/* ---------- today: the brief ---------- */

.brief-head {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1.2rem, 0.8rem + 1.6vw, 2rem);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 140% at 88% 0%, var(--accent-wash) 0%, transparent 62%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.brief-head h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--step-4);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.brief-head .lede { font-size: var(--step-1); color: var(--ink); max-width: 40ch; }
.brief-head .body { color: var(--ink-2); max-width: 58ch; }
.brief-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.mode {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-sink);
  border: 1px solid var(--line);
  gap: 2px;
}
.mode button {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0.4em 0.95em;
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 550;
  color: var(--ink-3);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.mode button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.actions { display: grid; gap: 0.6rem; counter-reset: act; }
.action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.9rem;
  padding: 0.95rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  transition: opacity 0.3s var(--ease), background 0.2s var(--ease);
}
.action .tick-btn {
  width: 1.5rem; height: 1.5rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink-4);
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.action .tick-btn svg { width: 0.85rem; height: 0.85rem; opacity: 0; transition: opacity 0.2s var(--ease); color: var(--on-accent); }
.action .tick-btn:hover { border-color: var(--accent); }
.action h3 { font-size: var(--step-0); font-weight: 600; }
.action .why { color: var(--ink-3); font-size: var(--step--1); margin-top: 0.2rem; }
.action .go {
  font-size: var(--step--2);
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  margin-top: 0.45rem;
}
.action .go:hover { text-decoration: underline; }
.action .meta { font-size: var(--step--2); color: var(--ink-4); white-space: nowrap; }
.action.done { opacity: 0.5; background: var(--surface-2); }
.action.done h3 { text-decoration: line-through; text-decoration-color: var(--ink-4); }
.action.done .tick-btn { background: var(--accent); border-color: var(--accent); }
.action.done .tick-btn svg { opacity: 1; }

.done-panel {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
  padding: clamp(1.2rem, 0.9rem + 1.4vw, 1.9rem);
  border-radius: var(--r-lg);
  background: var(--accent-wash);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.done-panel h3 { font-family: var(--display); font-weight: 500; font-size: var(--step-2); }
.done-panel p { color: var(--ink-2); max-width: 46ch; }

.closed-screen {
  min-height: 62svh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem 1rem;
}
.closed-screen svg {
  width: 2.6rem; height: 2.6rem;
  color: var(--accent);
  padding: 0.55rem;
  border-radius: 50%;
  background: var(--accent-wash);
  box-sizing: content-box;
}
.closed-screen h2 { font-family: var(--display); font-weight: 500; font-size: var(--step-3); }
.closed-screen p { color: var(--ink-3); max-width: 34ch; }

/* The four section cards read as one shape, so they stay a 2 by 2 block
   rather than collapsing into three plus an orphan. */
.pair { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 46rem) { .pair { grid-template-columns: minmax(0, 1fr); } }

#topbar-tools .btn { padding: 0.45em 0.6em; color: var(--ink-3); }
#topbar-tools .btn svg { width: 1.15rem; height: 1.15rem; }
#topbar-tools .btn:hover { color: var(--ink); }

.top3 { display: grid; gap: 0.55rem; }
.top3 li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem;
  font-size: var(--step--1);
  color: var(--ink-2);
  line-height: 1.5;
}
.top3 li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sec, var(--accent));
  margin-top: 0.62em;
}

.sec-card { display: grid; gap: 0.85rem; }
.sec-card .head { display: flex; align-items: center; gap: 0.55rem; }
.sec-card .head .badge {
  width: 1.65rem; height: 1.65rem;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--sec-wash);
  color: var(--sec);
  flex: none;
}
.sec-card .head .badge svg { width: 0.95rem; height: 0.95rem; }
.sec-card .head h3 { font-size: var(--step-0); }
.sec-card .open {
  margin-left: auto;
  font-size: var(--step--2);
  font-weight: 600;
  color: var(--sec);
  background: none; border: 0; cursor: pointer; padding: 0;
}
.sec-card .open:hover { text-decoration: underline; }

.deep-body { display: grid; gap: 0.85rem; color: var(--ink-2); max-width: 66ch; }
.deep-body p { font-size: var(--step-0); line-height: 1.68; }

.quote {
  display: grid;
  gap: 0.7rem;
  padding: clamp(1.2rem, 0.9rem + 1.4vw, 1.9rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.quote blockquote {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-2);
  line-height: 1.32;
  letter-spacing: -0.015em;
}
.quote cite { font-style: normal; font-size: var(--step--1); color: var(--ink-3); }

.bulletin { display: grid; gap: 0.5rem; }
.bulletin li {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
}
.bulletin .t { font-size: var(--step--1); font-weight: 550; }
.bulletin .n { font-size: var(--step--2); color: var(--ink-3); }
.bulletin .tag {
  font-size: var(--step--2);
  color: var(--dreams);
  font-weight: 600;
}

/* ---------- wealth ---------- */

.big-num {
  font-family: var(--ui);
  font-size: var(--step-4);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.spark { width: 100%; height: 74px; overflow: visible; }
.spark path.line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark path.area { fill: url(#sparkfill); stroke: none; }

.acct { display: grid; gap: 0; }
.acct li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.acct li:last-child { border-bottom: 0; }
.acct .nm { font-size: var(--step--1); font-weight: 550; }
.acct .inst { font-size: var(--step--2); color: var(--ink-4); }
.acct .bal { text-align: right; }
.acct .bal .v { font-family: var(--mono); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.acct .bal .d { font-size: var(--step--2); font-family: var(--mono); }
.up { color: var(--good); }
.down { color: var(--act); }

.alloc { display: grid; gap: 0.6rem; }
.alloc li { display: grid; gap: 0.3rem; }
.alloc .lab { display: flex; justify-content: space-between; font-size: var(--step--1); }
.alloc .lab .v { font-family: var(--mono); color: var(--ink-3); }
.alloc .bar { position: relative; height: 8px; border-radius: 999px; background: var(--line); }
.alloc .bar i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--accent); }
.alloc .bar u {
  position: absolute;
  top: -3px; bottom: -3px;
  width: 2px;
  background: var(--ink-4);
  border-radius: 2px;
}

.pick {
  display: grid;
  gap: 0.6rem;
  padding: 1rem 1.1rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
}
.pick .top { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.pick .tkr { font-family: var(--mono); font-weight: 600; font-size: var(--step-0); }
.pick .co { font-size: var(--step--2); color: var(--ink-4); }
.pick .call {
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: var(--step--2);
  font-weight: 700;
  padding: 0.25em 0.7em;
  border-radius: 999px;
}
.call-hold { background: var(--relations-wash); color: var(--relations); }
.call-buy { background: var(--good-wash); color: var(--good); }
.call-trim { background: var(--watch-wash); color: var(--watch); }
.call-sell { background: var(--act-wash); color: var(--act); }
.pick h4 { font-size: var(--step-0); font-weight: 600; }
.pick .reason { font-size: var(--step--1); color: var(--ink-2); line-height: 1.6; }
.pick .sigs { display: grid; gap: 0.3rem; margin-top: 0.15rem; }
.pick .sigs li { font-size: var(--step--2); color: var(--ink-3); padding-left: 0.9rem; position: relative; }
.pick .sigs li::before { content: "+"; position: absolute; left: 0; color: var(--ink-4); }
.conf { display: flex; align-items: center; gap: 0.45rem; font-size: var(--step--2); color: var(--ink-4); }
.conf .pips { display: flex; gap: 2px; }
.conf .pips i { width: 14px; height: 4px; border-radius: 2px; background: var(--line); }
.conf .pips i.on { background: var(--ink-3); }

.retire-hidden { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1.1rem; }

.goal { display: grid; gap: 0.45rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line-soft); }
.goal:last-child { border-bottom: 0; }
.goal .hd { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.goal .hd h4 { font-size: var(--step--1); font-weight: 600; }
.goal .hd .pct { margin-left: auto; font-family: var(--mono); font-size: var(--step--2); color: var(--ink-3); }
.goal .note { font-size: var(--step--2); color: var(--ink-3); line-height: 1.55; }

.kv { display: grid; gap: 0; }
.kv li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--step--1);
}
.kv li:last-child { border-bottom: 0; }
.kv .k { color: var(--ink-3); }
.kv .v { text-align: right; font-weight: 550; }

.disclaimer {
  font-size: var(--step--2);
  color: var(--ink-4);
  line-height: 1.55;
  padding: 0.7rem 0.85rem;
  border-radius: var(--r-sm);
  background: var(--bg-sink);
  border: 1px dashed var(--line);
}

/* ---------- health ---------- */

.vitals { display: grid; gap: 0.75rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 46rem) { .vitals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.vital { display: grid; gap: 0.3rem; padding: 0.95rem 1rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.vital .l { font-size: var(--step--2); color: var(--ink-3); font-weight: 550; display: flex; align-items: center; gap: 0.4rem; }
.vital .l i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--good); flex: none; }
.vital.watch .l i { background: var(--watch); }
.vital .sub { font-size: var(--step--2); color: var(--ink-2); }
.vital .v { font-family: var(--mono); font-size: var(--step-2); font-weight: 500; letter-spacing: -0.03em; }
.vital .v small { font-size: 0.5em; color: var(--ink-4); margin-left: 0.15em; }
.vital .s { font-size: var(--step--2); color: var(--ink-4); }

.sleepbars { display: flex; align-items: flex-end; gap: 0.5rem; }
.sleepbars .b { flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  align-items: center; gap: 0.35rem; }
.sleepbars .col { width: 100%; border-radius: 5px 5px 0 0; background: var(--health-wash);
  position: relative; overflow: hidden; flex: none; }
.sleepbars .col i { position: absolute; inset: auto 0 0 0; background: var(--health); opacity: 0.55; }
.sleepbars .d { font-size: var(--step--2); color: var(--ink-4); }
.sleepbars .col.short { background: var(--act-wash); }

.marker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 0.8rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.marker:last-child { border-bottom: 0; }
.marker .nm { font-size: var(--step--1); font-weight: 550; }
.marker .val { font-family: var(--mono); font-size: var(--step--1); text-align: right; }
.marker .scale { grid-column: 1 / -1; position: relative; height: 6px; border-radius: 999px; background: var(--line); }
.marker .scale .band { position: absolute; inset: 0 auto 0 0; height: 100%; border-radius: 999px; background: var(--good-wash); }
.marker .scale .pin { position: absolute; top: -3px; width: 3px; height: 12px; border-radius: 2px; background: var(--ink); }
.marker .nt { grid-column: 1 / -1; font-size: var(--step--2); color: var(--ink-3); line-height: 1.5; }

.tip { display: grid; gap: 0.5rem; padding: 1rem 1.1rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.tip h4 { font-size: var(--step-0); }
.tip p { font-size: var(--step--1); color: var(--ink-2); line-height: 1.62; }
.src { display: grid; gap: 0.25rem; }
.src li { font-size: var(--step--2); color: var(--ink-4); padding-left: 1.05rem; position: relative; }
.src li::before {
  content: "";
  position: absolute; left: 0; top: 0.5em;
  width: 0.6rem; height: 1px; background: var(--ink-4);
}
.hedge { font-size: var(--step--2); color: var(--health); font-weight: 550; }

.nudge {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  padding: 0.8rem 0.95rem;
  border-radius: var(--r);
  background: var(--health-wash);
  border: 1px solid color-mix(in srgb, var(--health) 22%, transparent);
  font-size: var(--step--1);
  color: var(--ink-2);
  line-height: 1.55;
}
.nudge svg { width: 1.05rem; height: 1.05rem; color: var(--health); margin-top: 0.15rem; }

.meals { display: grid; gap: 0.45rem; }
.meals li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.7rem; align-items: center; font-size: var(--step--1); }
.meals .ph {
  width: 2.4rem; height: 2.4rem; border-radius: 8px; flex: none;
  background: linear-gradient(140deg, var(--health-wash), var(--surface-2));
  border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--health);
}
.meals .ph svg { width: 1rem; height: 1rem; }
.meals .m { font-weight: 550; }
.meals .dsc { font-size: var(--step--2); color: var(--ink-3); }
.meals .kc { font-family: var(--mono); font-size: var(--step--2); color: var(--ink-3); }

.month { display: grid; gap: 0.5rem; }
.month .mhead { font-size: var(--step--1); font-weight: 600; }
.month .mdow, .month .mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.month .mdow span { font-size: var(--step--2); color: var(--ink-4); text-align: center; padding-bottom: 0.15rem; }
.mcell {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  gap: 2px;
  border-radius: var(--r-sm);
  font-size: var(--step--2);
  color: var(--ink-3);
  background: var(--surface-2);
}
.mcell.pad { background: none; }
.mcell.today { background: var(--health-wash); color: var(--health); font-weight: 700; }
.mcell .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--health); }
.mcell.today .dot { background: var(--health); }

.appts { display: grid; gap: 0; }
.appts li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.8rem; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid var(--line-soft); font-size: var(--step--1); }
.appts li:last-child { border-bottom: 0; }
.appts .d { display: flex; align-items: center; gap: 0.4rem; font-family: var(--mono); font-size: var(--step--2); color: var(--ink-3); white-space: nowrap; }
.appts .d svg { width: 0.95rem; height: 0.95rem; color: var(--health); }
.appts .nm { font-weight: 550; }
.appts .rel { font-size: var(--step--2); color: var(--ink-4); }

/* ---------- relationships ---------- */

.rings { display: grid; place-items: center; padding: 0.5rem 0; }
.rings svg { width: min(19rem, 100%); height: auto; }
.rings .ring-c { fill: none; stroke: var(--line); stroke-width: 1; }
.rings .ring-f { fill: none; stroke: var(--relations); stroke-linecap: round; opacity: 0.85; }
.rings .ring-l { font-family: var(--ui); font-size: 11px; fill: var(--ink-3); }
.rings .ring-n { font-family: var(--mono); font-size: 11px; fill: var(--ink-4); }

.person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.person:last-child { border-bottom: 0; }
.av {
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  font-size: var(--step--2); font-weight: 600;
  background: var(--relations-wash); color: var(--relations);
}
.person .nm { font-size: var(--step--1); font-weight: 550; }
.person .rel { font-size: var(--step--2); color: var(--ink-4); }
.person .since { font-family: var(--mono); font-size: var(--step--2); color: var(--ink-3); text-align: right; white-space: nowrap; }
.person .since.stale { color: var(--act); }

.reach { display: grid; gap: 0.75rem; }
.reach-item {
  display: grid;
  gap: 0.6rem;
  padding: 0.95rem 1.05rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
}
.reach-item .who { display: flex; align-items: center; gap: 0.65rem; }
.reach-item .who .nm { font-weight: 600; font-size: var(--step-0); }
.reach-item .who .rel { font-size: var(--step--2); color: var(--ink-4); }
.reach-item .rsn { font-size: var(--step--1); color: var(--ink-2); }
.reach-item .act-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.draft {
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--ink-2);
  padding: 0.8rem 0.95rem;
  border-radius: var(--r-sm);
  background: var(--relations-wash);
  border: 1px solid color-mix(in srgb, var(--relations) 20%, transparent);
}
.draft .hd { font-size: var(--step--2); color: var(--relations); font-weight: 600; margin-bottom: 0.35rem; }
.reach-item.sent { opacity: 0.55; }

.idea {
  display: grid; gap: 0.3rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
}
.idea h4 { font-size: var(--step--1); font-weight: 600; }
.idea p { font-size: var(--step--2); color: var(--ink-3); line-height: 1.55; }
.idea .tags { display: flex; gap: 0.35rem; margin-top: 0.25rem; }

.cal { display: grid; gap: 0.5rem; }
.cal .day {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.cal .day:last-child { border-bottom: 0; }
.cal .dname { font-size: var(--step--2); font-weight: 600; color: var(--ink-3); padding-top: 0.15rem; }
.cal .items { display: grid; gap: 0.35rem; }
.cal .ev { display: flex; align-items: center; gap: 0.55rem; font-size: var(--step--1); }
.cal .ev .t { font-family: var(--mono); font-size: var(--step--2); color: var(--ink-4); width: 3.2rem; flex: none; }
.cal .ev.suggested .ttl { color: var(--relations); }

/* ---------- dreams ---------- */

.dream {
  display: grid;
  gap: 0.6rem;
  padding: 1.05rem 1.15rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background:
    radial-gradient(110% 130% at 100% 0%, var(--dreams-wash) 0%, transparent 58%),
    var(--surface);
}
.dream .hd { display: flex; align-items: flex-start; gap: 0.6rem; }
.dream h3 { font-family: var(--display); font-weight: 500; font-size: var(--step-1); }
.dream .why { font-size: var(--step--1); color: var(--ink-2); line-height: 1.6; }
.dream .next { font-size: var(--step--1); }
.dream .next b { color: var(--dreams); }
.dream .prog { display: grid; gap: 0.35rem; }
.dream .prog .rail > i { background: var(--dreams); }
.dream .prog .pl { font-family: var(--mono); font-size: var(--step--2); color: var(--ink-3); }
.dream .sigs { display: grid; gap: 0.25rem; }
.dream .sigs li { font-size: var(--step--2); color: var(--ink-4); padding-left: 0.9rem; position: relative; }
.dream .sigs li::before { content: "\2022"; position: absolute; left: 0.15rem; }

.status-ontrack { background: var(--good-wash); color: var(--good); }
.status-behind { background: var(--act-wash); color: var(--act); }
.status-stalled { background: var(--act-wash); color: var(--act); }
.status-slow { background: var(--watch-wash); color: var(--watch); }
.status-watching { background: var(--dreams-wash); color: var(--dreams); }

.res { display: grid; gap: 0.45rem; }
.res li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.res li:last-child { border-bottom: 0; }
.res .l { font-size: var(--step--1); font-weight: 550; }
.res .w { font-size: var(--step--2); color: var(--ink-3); grid-column: 1 / -1; }
.res .c { font-family: var(--mono); font-size: var(--step--2); color: var(--ink-4); }

/* ---------- vision board ---------- */

.vb { display: grid; gap: 0.75rem; }
.vb-toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.vb-search { display: flex; gap: 0.4rem; flex: 1 1 16rem; }
.vb-search input {
  flex: 1 1 auto; min-width: 0; font: inherit; font-size: var(--step--1);
  padding: 0.6em 0.85em; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-sm);
}
.vb-results { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.15rem; }
.vb-thumb {
  flex: none; width: 5.2rem; height: 5.2rem; padding: 0; border-radius: var(--r-sm);
  border: 1px solid var(--line); overflow: hidden; cursor: pointer; background: var(--surface-2);
}
.vb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vb-thumb:hover { border-color: var(--dreams); }

.vb-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  border: 1px dashed var(--line);
  background: var(--surface-2);
  overflow: hidden;
  touch-action: none;
}
.vb-hint {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 2rem; max-width: 30rem; margin: auto; pointer-events: none;
}
.vb-hint[hidden] { display: none; }
.vb-item {
  position: absolute;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
  background: var(--surface);
  overflow: visible;
}
.vb-item.dragging { z-index: 999 !important; box-shadow: var(--shadow-lift); }
.vb-item .vb-body {
  width: 100%; height: 100%; border-radius: var(--r-sm); overflow: hidden;
  cursor: grab; position: relative; border: 1px solid var(--line);
}
.vb-item .vb-body:active { cursor: grabbing; }
.vb-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.vb-credit {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.25rem 0.5rem;
  font-size: var(--step--2); color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent);
}
.vb-del {
  position: absolute; top: -0.5rem; right: -0.5rem; width: 1.5rem; height: 1.5rem;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-3); display: grid; place-items: center; cursor: pointer;
  opacity: 0; transition: opacity 0.15s var(--ease);
}
.vb-del svg { width: 0.7rem; height: 0.7rem; }
.vb-item:hover .vb-del, .vb-item:focus-within .vb-del { opacity: 1; }
.vb-handle {
  position: absolute; right: 0.15rem; bottom: 0.15rem; width: 0.9rem; height: 0.9rem;
  cursor: nwse-resize; border-radius: 3px;
  background: linear-gradient(135deg, transparent 50%, var(--ink-4) 50%);
  opacity: 0; transition: opacity 0.15s var(--ease);
}
.vb-item:hover .vb-handle, .vb-item:focus-within .vb-handle { opacity: 0.85; }

@media (max-width: 60rem) {
  .vb-canvas { aspect-ratio: 4 / 5; }
  .vb-del, .vb-handle { opacity: 0.85; }
}

/* ---------- privacy ---------- */

.priv { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.priv-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem 1.05rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
}
.priv-item .ic { width: 1.15rem; height: 1.15rem; color: var(--accent); margin-top: 0.15rem; }
.priv-item h4 { font-size: var(--step--1); }
.priv-item p { font-size: var(--step--1); color: var(--ink-2); line-height: 1.6; }

/* ---------- empty states + quick add ---------- */

.empty {
  display: grid;
  gap: 0.5rem;
  padding: clamp(1.3rem, 1rem + 1vw, 1.8rem) clamp(1.05rem, 0.85rem + 1vw, 1.4rem);
  border-radius: var(--r);
  border: 1px dashed var(--line);
  background: var(--surface-2);
}
.empty .empty-ic {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sec-wash, var(--accent-wash));
  color: var(--sec, var(--accent));
  margin-bottom: 0.15rem;
}
.empty .empty-ic svg { width: 1rem; height: 1rem; }
.empty h4 { font-family: var(--display); font-weight: 500; font-size: var(--step-1); }
.empty p { font-size: var(--step--1); color: var(--ink-3); max-width: 46ch; line-height: 1.6; }

.quick-add { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.quick-add input,
.quick-add select {
  flex: 1 1 10rem;
  min-width: 0;
  font: inherit;
  font-size: var(--step--1);
  padding: 0.6em 0.85em;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.quick-add select { flex-basis: 8rem; }
.quick-add input::placeholder { color: var(--ink-4); }
.qa-msg { display: block; margin-top: 0.45rem; }

/* ---------- mobile ---------- */

.tabbar { display: none; }

@media (max-width: 60rem) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail-nav { display: none; }
  .topbar .mob-brand { display: flex; }
  .topbar .where { display: none; }
  .main { padding-bottom: 5.75rem; }
  .wrap { width: 100%; padding-left: 1rem; padding-right: 1rem; }

  .tabbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 0.4rem 0.4rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .tab {
    display: grid;
    justify-items: center;
    gap: 0.18rem;
    padding: 0.45rem 0.2rem;
    border: 0;
    background: none;
    border-radius: 10px;
    cursor: pointer;
    color: var(--ink-4);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    min-height: 48px;
  }
  .tab svg { width: 1.25rem; height: 1.25rem; }
  .tab[aria-current="page"] { color: var(--accent); background: var(--accent-wash); }

  .brief-head h1 { font-size: var(--step-3); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sleepbars { height: 92px; }
  .rings svg { width: 100%; }
  .action { grid-template-columns: auto minmax(0, 1fr); }
  .action .meta { grid-column: 2; margin-top: 0.1rem; }
}

@media (max-width: 30rem) {
  /* A label and value row stops reading as a table once BOTH sides wrap, so
     the lists with sentence length values stack. Short value lists keep their
     right hand column, where the alignment is still doing work. */
  .kv.long li { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .kv.long .v { text-align: left; }
}

@media (max-width: 26rem) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab { font-size: 0.6rem; }
}
