/* NextUp — the Outcome Stack. Light, big type, one app = one permanent hue.
   Ported from tmp/nextup-ui-review-2026-08-16/outcome-stack-mockup.html,
   adapted to server-rendered, multi-page templates (no #view-* SPA panels,
   no confetti — those were mockup-only flourishes with no data behind them
   in the real context contract). */

:root {
  --bg: #fafaf8;
  --text: #2b2621;
  --text-soft: #55504a;
  --text-muted: #9a9089;
  --card-bg: #ffffff;
  --line: #eee9e2;
  --amber: #b45309;
  --amber-wash: #fdf1e0;
  --amber-ink: #7c3d08;
  --green: #1f9d55;
  --green-wash: #e7f7ee;
  --red: #c0392b;
  --shadow-sm: 0 1px 2px rgba(35, 28, 20, .05);
  --shadow-lg: 0 18px 40px -18px rgba(35, 28, 20, .22), 0 4px 14px -6px rgba(35, 28, 20, .10);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

/* -- hue system: app = permanent hue, nothing else gets one -------------- */
.hue-indigo    { --accent: #4f46e5; --wash: #eef0fd; }
.hue-violet    { --accent: #7c3aed; --wash: #f4eefd; }
.hue-teal      { --accent: #0f8a7c; --wash: #e7f5f3; }
.hue-coral     { --accent: #e2604a; --wash: #fdece7; }
.hue-slateblue { --accent: #5b67a8; --wash: #eef0f8; }
.hue-greengray { --accent: #5f7a6a; --wash: #eef3f0; }
.hue-brown     { --accent: #8a5a3b; --wash: #f7efe8; }
.hue-neutral   { --accent: #8a8078; --wash: #f2efea; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}
h1, h2, h3, .headline, .mini-headline, .near-headline { font-family: 'Sora', sans-serif; }
a { color: var(--text); }
button { font-family: inherit; cursor: pointer; }

/* -- top nav --------------------------------------------------------- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 32px;
  background: rgba(250, 250, 248, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo {
  background: none; border: none; padding: 0; text-decoration: none;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 18px;
  color: var(--text); letter-spacing: -.01em;
  display: flex; align-items: center; gap: 10px; flex: 0 0 auto;
}
.logo-mark { display: block; border-radius: 8px; }
.logo-up { color: #4f46e5; }

.search-wrap, .capture-wrap { flex: 1; max-width: 320px; margin: 0; }
.search-input, .capture-input {
  width: 100%; border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 9px 16px; font-size: 14px; color: var(--text);
  outline: none; transition: box-shadow .2s ease, border-color .2s ease;
}
.search-input:focus, .capture-input:focus {
  border-color: #d8d1c6; box-shadow: 0 0 0 4px #f0ece3;
}

.nav-links { display: flex; gap: 18px; align-items: center; flex: 0 0 auto; margin-left: auto; }
.nav-link {
  background: none; border: none; text-decoration: none; font-size: 14px; font-weight: 500;
  color: var(--text-soft); padding: 6px 2px; position: relative;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); font-weight: 600; }
.nav-link.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--text); border-radius: 2px;
}

/* -- sync banner ------------------------------------------------------- */
.sync-banner {
  background: var(--amber-wash);
  border-bottom: 1px solid #f0d9ad;
  color: var(--amber-ink);
  padding: 10px 32px;
  font-size: 13px;
}
.sync-banner .dirty-list {
  margin: 6px 0 0; padding-left: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; color: var(--text-soft);
}
.sync-banner .banner-error { margin-top: 6px; color: var(--red); }

/* -- layout ------------------------------------------------------------ */
main#app { max-width: 1080px; margin: 0 auto; padding: 28px 32px 130px; }

.fallback-banner, .filter-note {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 16px; margin-bottom: 20px; font-size: 13.5px; color: var(--text-soft);
}
.filter-note a { color: var(--text-soft); }

.empty-state { color: var(--text-muted); padding: 60px 0; text-align: center; }

/* -- reference codes (John, 2026-08-18: "I still need the reference codes
      so I can tell you what to fix") — visible everywhere, tap to copy. -- */
.tid {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; font-weight: 500; letter-spacing: .02em;
  color: var(--text-muted); background: rgba(35, 28, 20, .05);
  border: none; border-radius: 6px; padding: 1px 6px;
  cursor: copy; transition: background .15s ease, color .15s ease;
  vertical-align: middle;
}
.tid:hover { background: rgba(35, 28, 20, .1); color: var(--text); }
.tid-inline { pointer-events: none; }
.idea > .tid { margin-top: 8px; align-self: flex-start; }

/* -- app footer ---------------------------------------------------------- */
/* One row, swipe/2-finger-scroll sideways. Three wrapped rows ate a third
   of the viewport and buried Later (John, 2026-08-17). */
.app-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: flex-start;
  flex-wrap: nowrap; gap: 6px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 16px;
  background: rgba(250, 250, 248, .92); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.app-footer::-webkit-scrollbar { display: none; }
/* Right-edge fade so a footer with more chips than fit reads as scrollable,
   not as "that's all of them" (2026-08-16 UI review: narrow layouts gave no
   cue the row continued). */
.app-footer::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 36px;
  background: linear-gradient(to right, transparent, rgba(250, 250, 248, .95));
  pointer-events: none;
}
/* Each chip wears its app's actual colors — John: the gray ones were "blahh". */
.app-chip {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  border: 1px solid transparent; background: var(--wash); border-radius: 999px;
  padding: 4px 11px; font-size: 12px; font-weight: 600; color: var(--accent);
  text-decoration: none; transition: all .2s ease; white-space: nowrap;
}
.app-chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.app-chip .dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; background: var(--accent); }
.app-chip .count { color: var(--accent); opacity: .65; font-weight: 500; }
.app-chip.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.app-chip.active .dot { background: #fff; }
.app-chip.active .count { color: #fff; opacity: .8; }

/* -- shared card --------------------------------------------------------- */
.card {
  position: relative; overflow: hidden;
  background: var(--card-bg); background-image: linear-gradient(var(--wash), var(--wash));
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.eyebrow {
  text-transform: uppercase; font-size: 11.5px; font-weight: 600;
  letter-spacing: .09em; color: var(--accent);
}

/* -- focus page ---------------------------------------------------------- */
.focus-col { max-width: 720px; margin: 0 auto; }
.focus-card { padding: 40px 44px 34px; }
.focus-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.headline {
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1.16;
  letter-spacing: -.01em; margin: 10px 0 0;
}
.subhead { font-size: 16px; line-height: 1.55; color: var(--text-soft); margin: 12px 0 0; max-width: 58ch; }
.moves-left-text, .moves-left { font-size: 13px; color: var(--text-muted); margin: 16px 0 20px; display: block; }

.arc { flex: 0 0 auto; }
/* Track must be visible on the wash background, or an untouched outcome's
   empty arc disappears and the card reads as complete. */
.arc-bg { fill: none; stroke: rgba(35, 28, 20, .12); stroke-width: 5; }
.arc-fg { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset .5s ease; }
.arc-fg.flash { stroke: var(--green); }

/* -- branch: steps + linked children -------------------------------------- */
.branch { position: relative; padding-left: 2px; margin-top: 4px; }
.move { display: flex; align-items: center; gap: 14px; padding: 8px 0; position: relative; text-decoration: none; color: inherit; }
.move-circle {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--accent);
  background: #fff; flex: 0 0 26px; padding: 0; display: flex; align-items: center; justify-content: center;
  transition: all .2s ease; cursor: pointer;
}
.move-circle:hover { box-shadow: 0 0 0 5px var(--wash); }
.move-circle::after { content: ''; }
.move.done .move-circle { background: var(--accent); border-color: var(--accent); }
.move.done .move-circle::after { content: '✓'; color: #fff; font-size: 13px; font-weight: 700; }
.move-text { font-size: 15px; color: var(--text-soft); }
.move.done .move-text { color: var(--text-muted); text-decoration: line-through; text-decoration-color: var(--text-muted); }
.move.next .move-circle { width: 30px; height: 30px; box-shadow: 0 0 0 5px var(--wash); }
.move.next .move-text { font-weight: 600; font-size: 16.5px; color: var(--text); }

.child-move { cursor: pointer; }
.child-move:hover .move-text { text-decoration: underline; }
.child-move .child-circle {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--accent); background: #fff;
  flex: 0 0 22px; margin: 0 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
}
.child-move .child-circle.done { background: var(--accent); }
.child-move.is-bug .child-circle { border-color: var(--amber); }
.child-move.done .move-text { color: var(--text-muted); text-decoration: line-through; }
.child-move.is-bug .move-text { color: var(--amber-ink); }
.due-words { font-size: 12.5px; color: var(--text-muted); margin-left: 4px; }

.chip {
  text-transform: uppercase; font-size: 10px; font-weight: 700; letter-spacing: .06em;
  background: var(--amber); color: #fff; border-radius: 5px; padding: 2px 7px; flex: 0 0 auto; margin-top: 1px;
}
.waiting-row, .waiting-block .waiting-row {
  margin-left: 40px; margin-top: 6px; padding: 10px 14px; border-radius: 10px; background: var(--amber-wash);
  display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--amber-ink);
}
.waiting-row a { color: var(--amber-ink); }
.waiting-block { margin-top: 4px; }
.waiting-block .waiting-row:first-child { margin-top: 6px; }
/* Quiet variant: the blocker is resolved, or this card itself is done --
   never amber for a dependency that no longer matters (2026-08-16 UI
   review #4). */
.waiting-row.quiet { background: var(--wash); color: var(--text-muted); }
.waiting-row.quiet a { color: var(--text-soft); }
.chip.chip-quiet { background: var(--text-muted); }

/* -- disclosures: story / what-changed / technical details --------------- */
.story-block, .whatchanged, .tech-block { margin-top: 20px; }
.tech-block { padding-top: 14px; border-top: 1px solid var(--line); }
.story-toggle, .whatchanged-toggle, .tech-toggle {
  background: none; border: none; font-size: 13px; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px; padding: 0;
}
.tech-toggle { font-size: 11px; opacity: .7; }
.tech-toggle:hover { opacity: 1; }
.story-toggle .chev, .whatchanged-toggle .chev, .tech-toggle .chev {
  transition: transform .2s ease; display: inline-block;
}
.story-toggle[aria-expanded="true"] .chev,
.whatchanged-toggle[aria-expanded="true"] .chev,
.tech-toggle[aria-expanded="true"] .chev { transform: rotate(90deg); }

.story-body, .whatchanged-body, .tech-body {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .3s ease, opacity .25s ease, padding .3s ease;
  font-size: 14px; line-height: 1.7; color: var(--text-soft);
}
.story-body.open { max-height: 900px; opacity: 1; padding-top: 12px; }
.whatchanged-body.open { max-height: 400px; opacity: 1; padding-top: 10px; }
.tech-body {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; color: var(--text-muted);
}
.tech-body.open { max-height: 600px; opacity: 1; padding-top: 8px; }
.tech-body .tech-line { line-height: 1.7; margin-bottom: 10px; word-break: break-word; }
.whatchanged-body b { color: var(--text); font-weight: 600; }

.story-body h1, .story-body h2, .story-body h3 { font-family: 'Sora', sans-serif; color: var(--text); }
.story-body p { margin: 0 0 1em; }
.story-body code {
  background: var(--wash); border-radius: 4px; padding: 1px 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em;
}

.blocks-note { margin-top: 14px; font-size: 13px; color: var(--text-muted); }
.blocks-note a { color: var(--text-soft); }

.ship-row { display: flex; justify-content: flex-end; margin-top: 26px; }
.ship-btn {
  background: var(--text); color: #fff; border: none; border-radius: 999px;
  padding: 13px 24px; font-size: 15px; font-weight: 600; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, background .2s ease;
}
.ship-btn:hover { transform: translateY(-1px); background: #1f1b17; }

/* -- horizon (home) sections ---------------------------------------------- */
.h-section { margin-bottom: 44px; }
.h-section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .09em; color: var(--text-muted); font-weight: 600; margin-bottom: 16px; }
/* Later's rank chip + hint (2026-08-16 UI review #1): Later had no legible
   priority -- these say plainly that its order IS the priority order. */
.section-hint { text-transform: none; letter-spacing: normal; font-size: 12px; font-weight: 500; color: var(--text-muted); }
.rank-ord { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--text-muted); flex: 0 0 auto; }

.now-card { padding: 26px 30px; position: relative; }
.now-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.mini-headline { font-size: 22px; font-weight: 700; margin: 8px 0 4px; letter-spacing: -.01em; }
.mini-headline a { text-decoration: none; color: inherit; }
.mini-headline a:hover { text-decoration: underline; }
.mini-sub { font-size: 13.5px; color: var(--text-muted); }
.now-complete-row { display: flex; justify-content: flex-end; margin-top: 18px; }
.now-complete-row .ship-btn { padding: 10px 20px; font-size: 13.5px; }

.compact-moves { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.compact-move { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; line-height: 1.4; color: var(--text-soft); }
.compact-move .compact-bullet { flex: 0 0 14px; text-align: center; color: var(--text-muted); }
.compact-move.done { color: var(--text-muted); text-decoration: line-through; text-decoration-color: var(--text-muted); }
.compact-move.done .compact-bullet { color: var(--accent); }
.compact-move.next { color: var(--text); font-weight: 600; }
.compact-move.next .compact-bullet { color: var(--accent); }
.compact-snag {
  font-size: 11.5px; font-weight: 500; color: var(--amber-ink); background: var(--amber-wash);
  border-radius: 6px; padding: 3px 9px; margin-top: 4px; width: fit-content;
}

.near-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.near-card { padding: 22px 22px 20px; display: flex; flex-direction: column; min-height: 180px; }
.near-card-link { text-decoration: none; color: inherit; display: block; }
.near-headline { font-size: 18px; font-weight: 600; margin: 8px 0 4px; line-height: 1.3; }
.near-card-link:hover .near-headline { text-decoration: underline; }
.near-sub { font-size: 12.5px; color: var(--text-muted); }
.make-next-btn {
  margin-top: 14px; align-self: flex-start; background: transparent; border: 1.5px solid var(--accent);
  color: var(--accent); border-radius: 999px; padding: 7px 15px; font-size: 12.5px; font-weight: 600;
  transition: background .2s ease, color .2s ease;
}
.make-next-btn:hover { background: var(--accent); color: #fff; }

.later-cluster { margin-bottom: 18px; }
.later-cluster-label { text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--accent); margin-bottom: 8px; }
.later-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; font-size: 14.5px; color: var(--text-soft); border-bottom: 1px solid var(--line); }
.later-row a { text-decoration: none; color: inherit; }
.later-row a:hover { text-decoration: underline; }
.later-row:last-child { border-bottom: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; background: var(--accent); }
.later-row.snag { color: var(--amber-ink); }
.later-hint { font-size: 13px; color: var(--text-muted); font-style: italic; padding: 8px 4px 0; }
.later-hint a { color: var(--text-soft); }

.ideas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.idea {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 16px 16px 14px; font-size: 13.5px; color: var(--text-soft); line-height: 1.5;
  box-shadow: var(--shadow-sm);
}
.idea { transition: opacity .25s ease, transform .25s ease; }
.idea.is-leaving { opacity: 0; transform: scale(.96); }
.idea-actions { display: flex; gap: 14px; margin-top: 12px; }
.idea-actions form { display: inline; margin: 0; }
.idea-actions button {
  background: none; border: none; font-size: 12px; color: var(--text-muted); padding: 0;
  font-weight: 500; transition: color .2s ease;
}
.idea-actions button:hover { color: var(--text); }

/* -- demoted "New" form -- quiet, at the very bottom of Home ------------- */
.advanced-create-link { margin-top: 8px; }
.advanced-create-link a { font-size: 12px; color: var(--text-muted); text-decoration: none; }
.advanced-create-link a:hover { color: var(--text-soft); text-decoration: underline; }

/* -- shipped ------------------------------------------------------------- */
.shipped-header { font-size: 13px; text-transform: uppercase; letter-spacing: .09em; color: var(--text-muted); font-weight: 600; margin-bottom: 26px; }
.shipped-month { font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 600; color: var(--text); margin: 30px 0 12px; }
.shipped-entry { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 15.5px; color: var(--text-soft); }
.shipped-entry a { color: inherit; text-decoration: none; }
.shipped-entry a:hover { text-decoration: underline; }

/* -- toast ----------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px);
  background: #28241f; color: #fff; padding: 13px 20px; border-radius: 12px; font-size: 14px;
  display: flex; align-items: center; gap: 14px; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .35);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast button { background: none; border: none; color: #a9d9bc; font-weight: 600; font-size: 14px; padding: 0; cursor: pointer; }

/* -- native <details> disclosures (edit forms, tech block) ---------------- */
summary {
  cursor: pointer; font-size: 13px; color: var(--text-muted); padding: 4px 0; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "▸"; display: inline-block; margin-right: 6px; font-size: 11px;
  color: var(--text-muted); transition: transform .12s ease;
}
details[open] > summary::before { transform: rotate(90deg); }
summary:hover { color: var(--text); }

details.edit-details, details.edit-body { margin-top: 14px; }
details .field { margin-bottom: 10px; display: flex; flex-direction: column; gap: 3px; max-width: 420px; }
details .field label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
button, input, select, textarea {
  font-family: inherit; font-size: 14px; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px;
}
textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; width: 100%; min-height: 220px; }
details.edit-body .note { color: var(--text-muted); font-size: 12px; margin: 6px 0; }
details button[type="submit"] {
  background: var(--text); color: #fff; border-color: var(--text); font-weight: 600; padding: 7px 16px;
}
details.danger {
  margin-top: 14px; border: 1px solid #f0c9a0; border-radius: var(--radius-sm);
  padding: 12px 16px; background: var(--amber-wash);
}
details.danger summary { color: var(--amber-ink); }
details.danger .warning { font-size: 12px; color: var(--text-soft); margin: 8px 0; }
details.danger button.danger {
  background: #fff; border-color: var(--red); color: var(--red); font-weight: 600;
}

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* -- new-ticket form ------------------------------------------------------- */
h1 { font-family: 'Sora', sans-serif; }
.ticket-form { max-width: 640px; }
.ticket-form .field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.ticket-form .field label { font-size: 12.5px; color: var(--text-soft); font-weight: 600; }
.ticket-form .field .help { font-size: 11.5px; color: var(--text-muted); }
.ticket-form input, .ticket-form select, .ticket-form textarea { width: 100%; }
.ticket-form textarea { min-height: 90px; font-family: inherit; }
.ticket-form .row-2 { display: flex; gap: 12px; flex-wrap: wrap; }
.ticket-form .row-2 .field { flex: 1; min-width: 160px; }
.ticket-form details.more-details { margin: 12px 0 20px; }
.ticket-form details.more-details > summary { font-size: 13px; font-weight: 600; }
.ticket-form button[type="submit"] {
  background: var(--text); color: #fff; border-color: var(--text); font-weight: 600; padding: 10px 22px; border-radius: 999px;
}
.error-box {
  background: var(--amber-wash); border: 1px solid #f0c9a0; color: var(--amber-ink);
  border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 16px; font-size: 13px;
}

/* -- login / error pages ---------------------------------------------------- */
.login-body {
  display: flex; min-height: 100vh; align-items: center; justify-content: center;
  background: var(--bg); font-family: 'Inter', sans-serif;
}
.login-card {
  width: 320px; max-width: calc(100vw - 32px);
  padding: 40px 30px 30px; background: var(--card-bg); border: 1px solid var(--line);
  border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow-lg);
}
.login-mark { margin: 0 auto; }
.login-word { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 26px; letter-spacing: -.02em; margin-top: 14px; color: var(--text); }
.login-word .logo-up { color: #4f46e5; }
.login-sub { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.login-form { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.login-form input { padding: 11px 12px; font-size: 15px; }
.login-form input:focus { outline: none; border-color: #d8d1c6; box-shadow: 0 0 0 4px #f0ece3; }
.login-form button {
  padding: 11px 12px; font-size: 15px; font-weight: 600; border-radius: 999px;
  background: var(--text); border-color: var(--text); color: #fff;
}
.login-error {
  margin-top: 18px; padding: 9px 11px; font-size: 13px; text-align: left; border-radius: 8px;
  background: var(--amber-wash); border: 1px solid #f0c9a0; color: var(--amber-ink);
}

.center-page { max-width: 480px; margin: 100px auto; text-align: center; color: var(--text-soft); }
.center-page h1 { color: var(--text); font-size: 20px; }

/* -- responsive ------------------------------------------------------------ */
@media (max-width: 860px) {
  main#app { padding: 24px 18px 110px; }
  .topnav { padding: 16px 18px; flex-wrap: wrap; gap: 10px; }
  .search-wrap, .capture-wrap { order: 3; max-width: none; flex: 1 1 100%; }
  .near-grid, .ideas-grid { grid-template-columns: 1fr; }
  .focus-card { padding: 30px 22px 26px; }
}
