/* Stockify design system — "Level".
   Stockify is not a terminal; it's a grounding mentor that pulls traders back
   from the two extremes — greed at the top, fear at the bottom — toward a calm
   center. Reflection leads, the numbers are context.

   Emotion is rendered as TEMPERATURE, never as alarm:
     greed  = warm gold   (the pull to chase)
     fear   = cool slate  (the pull to flee)
     level  = sage         (home; also the one interactive color)
   Price up/down are deliberately muted and small so the data stops triggering.
   The signature is "the Level": a spirit-level horizon showing today's tilt. */

:root {
  /* --- surface: warm limestone, like paper at dawn --- */
  --paper: #efe9df;
  --paper-well: #e7e0d2;
  --surface: #fbf9f4;
  --ink: #2b2621;          /* warm near-black */
  --ink-soft: #574f45;
  --muted: #8a7f70;        /* warm taupe */
  --line: #dcd3c4;
  --line-soft: #e9e2d5;

  /* --- emotion as temperature --- */
  --greed: #a97d2c;        /* warm gold — the pull to chase */
  --greed-soft: #f1e6cd;
  --fear: #4e6980;         /* cool slate — the pull to flee */
  --fear-soft: #dde6ec;
  --grounded: #5c7b67;     /* sage — home + every interactive thing */
  --grounded-deep: #45614f;
  --grounded-soft: #e3ebe4;

  /* --- de-alarmed price movement (used small, muted) --- */
  --error: #a4594a;       /* form + save failures — the only alarm colour left */
  /* --- staleness: "faded", not "alarm" --- */
  --stale: #97865f;
  --stale-soft: #ece2cb;

  /* --- type --- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  /* --- rhythm --- */
  --shell-max: 960px;
  --radius: 16px;
  --radius-sm: 10px;
  --pill: 999px;
  --gap: 1.1rem;
  --ease: cubic-bezier(0.2, 0.65, 0.25, 1);
  --shadow: 0 1px 2px rgb(43 38 33 / 0.04), 0 14px 34px -20px rgb(43 38 33 / 0.22);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(120% 90% at 50% -10%, #f6f1e8 0%, rgb(246 241 232 / 0) 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* the mentor's voice is set in the serif */
h1, h2, h3, .greeting, .reframe, .section-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 560;
  letter-spacing: -0.005em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h2 { font-size: 1.2rem; font-weight: 520; }
h3 { font-size: 1.02rem; }

p { margin: 0 0 0.9rem; }
a { color: var(--grounded); text-decoration: none; }
a:hover { color: var(--grounded-deep); text-decoration: underline; text-underline-offset: 2px; }

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

/* every numeral: quiet mono, tabular so columns line up */
.num, .asof, .level-scale, .lvl-val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.shell { max-width: var(--shell-max); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- header ---------- */

.site-header { background: transparent; }
.header-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.1rem 0 0.9rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  position: relative;
  padding-bottom: 8px;
}
.wordmark:hover { text-decoration: none; color: var(--ink); }
.wordmark-tld { color: var(--muted); font-weight: 400; }
/* the logo carries the signature: a level line with a resting bubble */
.tickline {
  position: absolute;
  left: 2px; right: 2px; bottom: 0;
  width: calc(100% - 4px); height: 8px;
  color: var(--grounded);
  opacity: 0.9;
}

.site-nav { display: flex; gap: 1.15rem; }
.site-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--grounded); text-decoration: none; }
.site-nav a.nav-pause {
  color: var(--grounded); border: 1px solid var(--line);
  border-radius: var(--pill); padding: 0.12rem 0.7rem;
}
.site-nav a.nav-pause:hover { border-color: var(--grounded); background: var(--grounded-soft); }

.header-search { position: relative; flex: 1 1 200px; max-width: 300px; }
.header-search input[type="search"] {
  width: 100%;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.header-search input[type="search"]::placeholder { color: var(--muted); }
.header-search input[type="search"]:focus {
  border-color: var(--grounded);
  outline: none;
  box-shadow: 0 0 0 3px var(--grounded-soft);
}

.typeahead { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; }
.typeahead-list {
  margin: 0; padding: 0.3rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.typeahead-list a {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.45rem 0.65rem; border-radius: 7px; color: var(--ink);
}
.typeahead-list a:hover { background: var(--grounded-soft); text-decoration: none; }
.typeahead-list .sym { font-family: var(--font-mono); font-weight: 600; }
.typeahead-list .name { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.auth-slot { margin-left: auto; display: flex; align-items: center; gap: 0.7rem; }
.auth-user { color: var(--muted); font-size: 0.85rem; }
.auth-link { font-size: 0.9rem; }

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

main.shell { padding-top: 1.25rem; padding-bottom: 4rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

/* ============================================================
   THE SIGNATURE — the Level
   A spirit-level horizon: where the market's head is at today,
   fear (cool, left) ← level (sage, home) → greed (warm, right).
   ============================================================ */

.home-hero { margin: 0.5rem 0 2.5rem; }
.greeting {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 500;
  max-width: 18ch;
  margin-bottom: 0.35rem;
}
.greeting-sub { color: var(--ink-soft); max-width: 46ch; margin-bottom: 1.75rem; }

.level-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.6rem 1.35rem;
}
.level-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem;
}
.level-label { font-family: var(--font-display); font-size: 1.15rem; font-weight: 560; }
.level-label--greedy { color: var(--greed); }
.level-label--fearful { color: var(--fear); }
.level-label--level { color: var(--grounded-deep); }

.level-track {
  position: relative;
  height: 12px;
  border-radius: var(--pill);
  background: linear-gradient(90deg,
    var(--fear) 0%, var(--fear-soft) 26%,
    var(--grounded-soft) 50%,
    var(--greed-soft) 74%, var(--greed) 100%);
  box-shadow: inset 0 1px 2px rgb(43 38 33 / 0.10);
}
/* the "home" line — level is the center you keep coming back to */
.level-home {
  position: absolute; top: -5px; bottom: -5px; left: 50%;
  width: 2px; transform: translateX(-50%);
  background: var(--grounded); opacity: 0.55; border-radius: 2px;
}
.level-bubble {
  position: absolute; top: 50%; left: var(--pos, 50%);
  width: 24px; height: 24px; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--band, var(--grounded));
  box-shadow: 0 3px 10px -2px rgb(43 38 33 / 0.35);
}
.level-scale {
  display: flex; justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.level-scale span:nth-child(2) { color: var(--grounded-deep); }

.reframe {
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 1.35rem 0 0;
  max-width: 54ch;
}
.reframe-mark { color: var(--grounded); font-style: normal; margin-right: 0.15rem; }

/* ---------- the ledger: reminders + reflections, quietly ---------- */

.section-title { font-size: 1.35rem; margin: 2.75rem 0 0.25rem; }
.section-note { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.1rem; }

.ledger-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin: 2.75rem 0 1.1rem;
}
.ledger-head .section-title { margin: 0 0 0.2rem; }
.ledger-head .section-note { margin: 0; }

.ledger {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ledger-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.25rem 1.25rem;
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--line-soft);
}
.ledger-row:first-child { border-top: none; }
.ledger-name { font-weight: 500; color: var(--ink); }
.ledger-frame {
  grid-column: 1 / 2;
  color: var(--muted); font-size: 0.86rem;
}
.ledger-delta { grid-column: 2 / 3; text-align: right; }

/* ---------- panels ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.4rem;
}
.panel-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; padding: 1.15rem 1.4rem 0;
}
.panel-title { margin: 0; font-size: 1.05rem; }
.panel-subtitle { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.85rem; }
.panel-body { padding: 1rem 1.4rem 1.3rem; }
.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--gap);
}

/* the freshness stamp — kept, but quieted (this app zooms out, not refreshes) */
.asof {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 0.12rem 0.6rem;
  background: var(--paper);
}
.asof--stale { color: var(--stale); border-color: var(--stale); background: var(--stale-soft); }
.asof-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--stale); margin-right: 0.35rem; vertical-align: 1px; }

/* price movement — muted on purpose; small, never shouting */

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 1.35rem;
  text-align: center;
  color: var(--muted);
  background: rgb(251 249 244 / 0.5);
}
.empty-state p { margin: 0; }
.empty-state--unavailable {
  border-style: solid;
  border-color: var(--stale);
  background: var(--stale-soft);
  color: var(--ink-soft);
}

/* data tables */
table.data { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
table.data th {
  text-align: left; font-family: var(--font-body);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted);
  padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--line);
}
table.data td { padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line-soft); }
table.data tr:last-child td { border-bottom: none; }
table.data td.num { text-align: right; }
table.data tbody tr:hover { background: var(--grounded-soft); }

.chart-box { width: 100%; min-height: 300px; }

/* ---------- "when you're ready" nav hub ---------- */

.link-hub {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.link-hub p { color: var(--ink-soft); max-width: 62ch; }

/* ---------- error pages ---------- */

.error-page { max-width: 500px; margin: 3.5rem auto; text-align: center; }
.error-code { font-family: var(--font-display); font-size: 3.5rem; font-weight: 500; color: var(--line); margin: 0; }
.error-hint { color: var(--muted); }
.error-search { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.error-search input {
  flex: 1; padding: 0.55rem 0.8rem; border: 1px solid var(--line);
  border-radius: var(--pill); font: inherit; background: var(--surface);
}
.error-search button {
  padding: 0.55rem 1.1rem; border: none; border-radius: var(--pill);
  background: var(--grounded); color: #fff; font: inherit; font-weight: 500; cursor: pointer;
}
.error-search button:hover { background: var(--grounded-deep); }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; }
.footer-row { display: flex; gap: 2.5rem; flex-wrap: wrap; padding: 1.75rem 0 2.25rem; }
.footer-about { flex: 2 1 340px; }
.footer-newsletter { flex: 1 1 260px; }
.footer-note { color: var(--muted); font-size: 0.86rem; margin: 0; max-width: 52ch; }

.newsletter-form { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.newsletter-form input[type="email"] {
  flex: 1; padding: 0.5rem 0.8rem; border: 1px solid var(--line);
  border-radius: var(--pill); font: inherit; background: var(--surface);
}
.newsletter-form button {
  padding: 0.5rem 1rem; border: none; border-radius: var(--pill);
  background: var(--grounded); color: #fff; font: inherit; font-weight: 500; cursor: pointer;
}
.newsletter-form button:hover { background: var(--grounded-deep); }
.newsletter-confirm { color: var(--ink-soft); font-size: 0.9rem; margin: 0.5rem 0 0; }
.newsletter-confirm--error { color: var(--error); }

/* ---------- one orchestrated moment: the hero settles in on load ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.home-hero > * { animation: rise 0.6s var(--ease) both; }
.home-hero > *:nth-child(1) { animation-delay: 0.02s; }
.home-hero > *:nth-child(2) { animation-delay: 0.10s; }
.home-hero > *:nth-child(3) { animation-delay: 0.18s; }

/* ============================================================
   Mindset area — the three levers (Check-in, Pause, Journal)
   ============================================================ */

.mindset-narrow { max-width: 640px; }

.lever-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: var(--gap);
  margin: 1.5rem 0 0;
}
.lever-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.4rem 1.25rem;
  color: var(--ink);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lever-card:hover { text-decoration: none; color: var(--ink); border-color: var(--grounded); transform: translateY(-2px); }
.lever-card h2 { margin: 0.55rem 0 0.3rem; }
.lever-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.lever-step {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--grounded-soft); color: var(--grounded-deep);
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
}

/* prominent action links (check in / take a pause) */
.pause-cta {
  display: inline-block; margin-top: 1.1rem;
  padding: 0.6rem 1.05rem; border-radius: var(--pill);
  background: var(--grounded); color: #fff; font-weight: 500; font-size: 0.92rem;
}
.pause-cta:hover { background: var(--grounded-deep); color: #fff; text-decoration: none; }

/* check-in form */
.checkin-form { margin-top: 1.5rem; }
.field { border: none; padding: 0; margin: 0 0 1.6rem; }
.field legend { font-weight: 600; padding: 0; margin-bottom: 0.6rem; }
.optional { color: var(--muted); font-weight: 400; font-size: 0.82rem; }

.emotion-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chip span {
  display: inline-block; padding: 0.4rem 0.85rem;
  border: 1px solid var(--line); border-radius: var(--pill);
  background: var(--surface); color: var(--ink-soft);
  font-size: 0.9rem; transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.chip input:hover + span { border-color: var(--grounded); }
.chip input:checked + span { background: var(--grounded); border-color: var(--grounded); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--grounded); outline-offset: 2px; }

.intensity-out { font-family: var(--font-mono); font-size: 1.15rem; color: var(--grounded-deep); }
.intensity-max { color: var(--muted); font-family: var(--font-mono); }
.intensity-range {
  width: 100%; height: 12px; -webkit-appearance: none; appearance: none;
  border-radius: var(--pill); cursor: pointer;
  background: linear-gradient(90deg, var(--grounded-soft) 0%, var(--greed-soft) 55%, var(--greed) 100%);
}
.intensity-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--grounded); box-shadow: 0 2px 6px rgb(43 38 33 / 0.3); cursor: pointer;
}
.intensity-range::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--grounded);
  background: var(--surface); box-shadow: 0 2px 6px rgb(43 38 33 / 0.3); cursor: pointer;
}
.intensity-scale { display: flex; justify-content: space-between; margin-top: 0.45rem; font-size: 0.75rem; color: var(--muted); }

.note-input {
  width: 100%; padding: 0.65rem 0.8rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface); font: inherit; color: var(--ink); resize: vertical;
}
.note-input:focus { outline: none; border-color: var(--grounded); box-shadow: 0 0 0 3px var(--grounded-soft); }

.btn-primary {
  padding: 0.6rem 1.3rem; border: none; border-radius: var(--pill);
  background: var(--grounded); color: #fff; font: inherit; font-weight: 500; cursor: pointer;
}
.btn-primary:hover { background: var(--grounded-deep); }

.checkin-result:empty { display: none; }
.reframe-card {
  margin-top: 1.5rem; padding: 1.3rem 1.4rem;
  background: var(--grounded-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.reframe-card.is-high { background: var(--greed-soft); }
.reframe-card .reframe { margin: 0; }
.checkin-ok { margin: 0.9rem 0 0; color: var(--ink-soft); font-size: 0.92rem; }
.checkin-error {
  margin-top: 1.5rem; padding: 0.9rem 1.1rem; color: var(--ink-soft);
  background: var(--stale-soft); border: 1px solid var(--stale); border-radius: var(--radius-sm);
}

/* the Pause — a calm, focused interruption */
.pause-screen { max-width: 560px; margin: 1rem auto 0; text-align: center; }
.pause-eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.pause-emotion { font-size: clamp(2rem, 6vw, 3rem); margin: 0.25rem 0 1.4rem; }
.pause-emotion--greed { color: var(--greed); }
.pause-emotion--fear { color: var(--fear); }

.pause-breath { display: grid; place-items: center; height: 140px; }
.pause-breath span {
  width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--grounded-soft), var(--surface));
  border: 2px solid var(--grounded);
  animation: breathe 8s var(--ease) infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(0.72); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}
.pause-breath-label { color: var(--muted); font-size: 0.9rem; margin: 0.25rem 0 2rem; }

.pause-reminder {
  margin: 0 0 2rem; padding: 1.5rem 1.6rem; text-align: left;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.pause-reminder p {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.3rem; line-height: 1.45; color: var(--ink); margin: 0 0 0.75rem;
}
.pause-reminder cite { font-style: normal; font-size: 0.8rem; color: var(--muted); }

.pause-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.btn-wait, .btn-clear {
  padding: 0.7rem 1.3rem; border-radius: var(--pill); font: inherit; font-weight: 500; cursor: pointer;
}
.btn-wait { background: var(--grounded); color: #fff; border: none; }
.btn-wait:hover { background: var(--grounded-deep); }
.btn-clear { background: var(--surface); color: var(--ink-soft); border: 1px solid var(--line); }
.btn-clear:hover { border-color: var(--grounded); color: var(--grounded-deep); }
.pause-done { color: var(--ink-soft); }
.pause-switch { margin-top: 2rem; font-size: 0.82rem; color: var(--muted); }

/* the map — reminders you've written */
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--gap); margin-bottom: 1.5rem; }
.map-card {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--grounded); border-radius: var(--radius-sm);
  padding: 0.9rem 1.05rem; color: var(--ink);
  transition: border-color 0.2s var(--ease);
}
.map-card:hover { text-decoration: none; color: var(--ink); border-color: var(--grounded); }
.map-card p { margin: 0.35rem 0 0; font-size: 0.9rem; color: var(--ink-soft); }
.map-emotion { font-family: var(--font-body); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grounded-deep); }

/* journal list */
.journal-list { display: grid; gap: var(--gap); }
.journal-row {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.3rem; color: var(--ink);
  transition: border-color 0.2s var(--ease);
}
.journal-row:hover { text-decoration: none; color: var(--ink); border-color: var(--grounded); }
.journal-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.journal-snippet { margin: 0 0 0.4rem; }
.journal-reminder { margin: 0; color: var(--muted); font-family: var(--font-display); font-style: italic; }

/* reflection form hints + read view */
.field-hint { color: var(--muted); font-size: 0.82rem; margin: -0.35rem 0 0.5rem; }
.reflection-read { margin: 1.5rem 0 2rem; }
.reflection-part { padding: 1rem 0; border-top: 1px solid var(--line-soft); }
.reflection-part:first-child { border-top: none; }
.reflection-part h3 { font-family: var(--font-body); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.3rem; }
.reflection-part p { margin: 0; }

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .header-row { gap: 0.75rem; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .footer-row { flex-direction: column; gap: 1.25rem; }
  .level-card { padding: 1.25rem 1.15rem; }
}

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