/* ============================================================================
   SUNRISE — the design system authored directly from the 10 approved mockups.
   This replaces the dashboard's visual layer entirely. New class names (sk-*,
   sc-*, etc.) so it never collides with the legacy entry-flow styles.
   Phone-first: one full-bleed SKY hero per screen, then a tight column of
   compact cream cards. Mono caps labels, serif headlines, ink pills.
   ============================================================================ */

:root {
  --sky-grad: linear-gradient(180deg,#565d78 0%,#8a7a8c 34%,#cf855e 66%,#f0a55c 100%);
  --sk-card:  #fbf6eb;
  --sk-line:  #e3dbc8;
  --sk-line2: #ece4d2;
  --sk-ink:   #2b251c;
  --sk-soft:  #5a5346;
  --sk-mute:  #8a8270;
  --sk-coral: #d96f4e;
  --sk-coral-deep: #c2602f;
  --sk-blue:  #7fa8c2;
  --sk-blue-ink: #4f7d99;
  --sk-tan:   #c9a86b;
  --sk-slate: #8a8fb0;
  --sk-pill-ink: #f4eee1;
  /* the refined display serif the mockups imply — replaces Georgia */
  --serif: "Fraunces", "Georgia", "Times New Roman", serif;
}

/* the app column already lives in .wrap; on the dashboard we go edge-to-edge */
.on-dash .wrap { max-width: 430px; padding: 0 0 calc(86px + env(safe-area-inset-bottom)); }
.on-dash .masthead { display: none; }
#screen-dashboard .tabpane { padding: 0; }

/* ---- SKY HERO -------------------------------------------------------------- */
.sk-hero {
  background: var(--sky-grad);
  padding: calc(16px + env(safe-area-inset-top)) 22px 18px;
  color: #fff; position: relative; overflow: hidden;
}
.sk-hero-tall { padding-bottom: 22px; min-height: 188px; }
.sk-statusbar { display: flex; justify-content: space-between; font-size: 11.5px; color: rgba(255,255,255,0.85); }
.sk-eyebrow { margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: rgba(255,255,255,0.92); text-transform: uppercase; }
.sk-title { font-family: var(--serif); color: #fff; line-height: 1.1; margin-top: 6px; font-weight: 600; }
.sk-title.xl { font-size: 2.5rem; }
.sk-title.lg { font-size: 1.8rem; }
.sk-title.md { font-size: 1.5rem; line-height: 1.22; }
.sk-teaser { position: absolute; left: 22px; bottom: 13px; font-size: 12.5px; color: rgba(255,255,255,0.95); }
.sk-sun { position: absolute; right: 24px; top: 92px; width: 32px; height: 32px; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #fdf6e3, #d9c9a8 70%, #b8a888); box-shadow: 0 0 16px rgba(253,246,227,0.5); }

/* ---- CARD COLUMN ----------------------------------------------------------- */
.sk-col { padding: 11px 12px 0; display: flex; flex-direction: column; gap: 8px; }
.sc {
  background: var(--sk-card); border: 1px solid var(--sk-line); border-radius: 18px;
  padding: 13px 15px; box-shadow: 0 1px 2px rgba(120,96,60,0.05), 0 6px 18px rgba(120,96,60,0.07);
}
button.sc, .sc-tap { width: 100%; text-align: left; font: inherit; color: var(--sk-ink); cursor: pointer; display: block; }
.sc-row { display: flex; justify-content: space-between; align-items: center; }
.sc-rowb { display: flex; justify-content: space-between; align-items: baseline; }

/* ---- shared atoms ---------------------------------------------------------- */
.sk-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--sk-mute); text-transform: uppercase; }
.sk-mini  { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--sk-mute); text-transform: uppercase; }
.sk-serif { font-family: var(--serif); }
.sk-pill  { margin: 11px 12px 12px; text-align: center; padding: 14px; border-radius: 999px;
  background: var(--sk-ink); color: var(--sk-pill-ink); font-size: 14px; font-weight: 500; border: none; width: calc(100% - 24px); cursor: pointer; }
.sk-coral { color: var(--sk-coral-deep); } .sk-blue { color: var(--sk-blue-ink); } .sk-slate { color: #6f74a0; }

/* segmented period toggle inside a card header (TODAY · WEEK · MONTH) */
.sk-seg { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; }
.sk-seg button { font: inherit; background: none; border: none; cursor: pointer; color: #c9c0aa; padding: 0 2px; }
.sk-seg button.on { color: var(--sk-ink); }
.sk-seg .topic.active { color: var(--sk-ink); }
.sk-seg .sep { color: #c9c0aa; }

/* You sky-hero sigil reads as light lines */
.you-sky .sig-path { stroke: rgba(255,255,255,0.95); stroke-opacity: 1; stroke-width: 1.6; }
.you-sky .sig-chord { stroke: rgba(255,255,255,0.6); stroke-opacity: 0.6; }
.you-sky .sig-node { fill: #fff; fill-opacity: 1; }

/* ---- TODAY: verdict + dials ------------------------------------------------ */
.vc-line { font-family: var(--serif); font-size: 1.4rem; margin-top: 4px; line-height: 1.15; }
/* must beat `button.sc { display:block }` — keep the two dials on ONE row */
button.dial-card, .sc.dial-card { display: flex; align-items: center; }
.dial-half { flex: 1; display: flex; align-items: center; gap: 10px; }
.dial-half.r { justify-content: flex-end; }
.dial-half.r .dial-txt { text-align: right; }
.dial-div { width: 1px; align-self: stretch; background: var(--sk-line); margin: 0 8px; }
.dial-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--sk-mute); display: block; text-transform: uppercase; }
.dial-v { font-size: 15px; font-weight: 500; }
.dial svg { width: 40px; height: 40px; display: block; }

/* two small tiles */
.tile-row { display: flex; gap: 8px; }
.tile { flex: 1; background: var(--sk-card); border: 1px solid var(--sk-line); border-radius: 18px; padding: 11px 14px; }
.tile-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--sk-mute); text-transform: uppercase; }
.tile-v { font-size: 15px; font-weight: 500; margin-top: 2px; }

/* ---- AHEAD / PATH list rows ------------------------------------------------ */
.sk-listcard { padding: 4px 15px; }
.sk-lrow { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--sk-line2); }
.sk-lrow:last-child { border-bottom: none; }
.sk-lrow .lr-date { font-family: var(--serif); font-size: 16px; }
.sk-lrow .lr-mid { font-size: 13.5px; color: var(--sk-soft); }
.sk-lrow .lr-tag { font-size: 13.5px; font-weight: 500; }

/* ---- mix bar (You) --------------------------------------------------------- */
.mix-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin-top: 10px; }
.mix-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 11px; font-size: 13px; }
.mix-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }

/* ---- heatmap (Path) -------------------------------------------------------- */
.heat-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; }
.heat-cell { height: 20px; border-radius: 6px; }
.heat-cell.future { border: 1px dashed #d8cfb8; }
.heat-cell.today { outline: 1.5px solid var(--sk-ink); outline-offset: 1px; }
.heat-leg { margin-top: 7px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--sk-mute); text-transform: uppercase; }

/* 3-stat divider row */
.stat3 { display: flex; text-align: center; }
.stat3 > div { flex: 1; }
.stat3 .s-mid { border-left: 1px solid var(--sk-line2); border-right: 1px solid var(--sk-line2); }
.stat3 .s-num { font-family: var(--serif); font-size: 20px; }
.stat3 .s-k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--sk-mute); text-transform: uppercase; }

/* ---- forces bars (Reading / Day) ------------------------------------------ */
.force-name { font-size: 13px; margin-top: 9px; }
.force-name:first-of-type { margin-top: 0; }
.force-name .fn-when { font-family: var(--mono); font-size: 10px; color: var(--sk-mute); }
.force-track2 { display: block; height: 7px; border-radius: 999px; background: var(--sk-line2); margin-top: 4px; }
.force-fill2 { display: block; height: 100%; border-radius: 999px; }
.ff-coral { background: var(--sk-coral); } .ff-blue { background: var(--sk-blue); } .ff-tan { background: var(--sk-tan); } .ff-slate { background: var(--sk-slate); }

/* ---- reading text screen --------------------------------------------------- */
.read-sheet { padding: 17px; }
.read-sheet h1, .read-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin: 0; line-height: 1.15; }
.read-sheet p { margin: 13px 0 0; font-size: 14.5px; line-height: 1.78; color: var(--sk-ink); }
.read-sheet p.action { padding-left: 13px; border-left: 2.5px solid var(--sk-coral); }
.read-nav { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--sk-line2);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--sk-mute); text-transform: uppercase; }

/* ---- READING: vertical stack (NOT a horizontal carousel) ------------------ */
/* the old swipe rail was taller than the viewport and trapped vertical scroll.
   Stack the cards so the page scrolls normally and it reads like the mockup. */
#rcards.cards, .reading .cards {
  display: flex; flex-direction: column; gap: 8px;
  overflow: visible; scroll-snap-type: none; padding: 0; height: auto !important;
}
.cards .rcard {
  flex: none; width: 100%; min-height: 0; scroll-snap-align: none;
  background: var(--sk-card); border: 1px solid var(--sk-line); border-radius: 18px;
}
.card-dots, #rdots { display: none !important; }   /* no pager in a vertical stack */
.rcard h3 { font-family: var(--mono); font-size: 11px !important; letter-spacing: 0.14em; color: var(--sk-mute) !important; font-weight: 600 !important; }
.rcard p { font-size: 14.5px !important; line-height: 1.7 !important; }
.rcard li { font-size: 14px !important; line-height: 1.65 !important; }
/* sunrise tints — no green, no violet */
.rcard-gist { background: var(--sk-card) !important; }
.rcard-task { background: linear-gradient(150deg, rgba(217,111,78,0.10), transparent 72%), var(--sk-card) !important; border-color: rgba(217,111,78,0.26) !important; }
.rcard-opportunity { background: linear-gradient(150deg, rgba(127,168,194,0.14), transparent 72%), var(--sk-card) !important; border-color: rgba(127,168,194,0.30) !important; }
.rcard-kryptonite { background: linear-gradient(150deg, rgba(217,111,78,0.12), transparent 72%), var(--sk-card) !important; border-color: rgba(217,111,78,0.28) !important; }
.rcard-lesson { background: linear-gradient(150deg, rgba(138,143,176,0.14), transparent 72%), var(--sk-card) !important; border-color: rgba(138,143,176,0.30) !important; }
.rstack-head h1 { font-family: var(--serif); }
.dd-cta { background: var(--sk-ink) !important; border-radius: 999px !important; box-shadow: none !important; }

/* ask chips */
.ask-q { font-size: 13.5px; font-weight: 500; padding: 9px 0; border-top: 1px solid var(--sk-line2); cursor: pointer; }
.ask-q:first-of-type { border-top: none; }

/* glance bullets */
.glance-b { display: flex; gap: 8px; margin-bottom: 6px; font-size: 13.5px; line-height: 1.65; }
.glance-b:last-child { margin-bottom: 0; }
.glance-b .gb-mark { flex: none; }

/* the dashed/check-in chip scale */
.ci-scale2 { display: flex; gap: 7px; margin-top: 9px; }
.ci-scale2 button { flex: 1; text-align: center; padding: 10px 0; border-radius: 12px; border: 1px solid var(--sk-line);
  background: none; font: inherit; font-size: 13px; color: var(--sk-mute); cursor: pointer; }
.ci-scale2 button.active { background: var(--sk-ink); color: var(--sk-pill-ink); border-color: var(--sk-ink); font-weight: 500; }
.ci-tags2 { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.ci-tags2 button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--sk-line); background: none;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--sk-mute); text-transform: uppercase; cursor: pointer; }
.ci-tags2 button.active { background: var(--sk-ink); color: var(--sk-pill-ink); border-color: var(--sk-ink); }

/* ============================================================================
   SCROLL UNLOCK — guarantee the page always scrolls vertically.
   Regression in v4: the dashboard would not scroll on narrow windows (it did on
   wide ones). Root mechanism: a horizontal scroll-snap card rail can capture
   vertical trackpad gestures, and nothing forced the document to stay the
   vertical scroller. These rules load last, so they win the cascade.
   ============================================================================ */
html {
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  position: static !important;
  touch-action: pan-y !important;
  overscroll-behavior-y: auto !important;
}
body {
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow-y: visible !important;
  overflow-x: hidden !important;
  position: static !important;
  touch-action: pan-y !important;
}
main.wrap, #screen-dashboard, .screen, .tabpane, .sk-col {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}
/* a horizontal card rail must never trap vertical scrolling */
.cards, #rcards {
  overflow-y: visible !important;
  scroll-snap-type: none !important;
  touch-action: pan-y !important;
  height: auto !important;
}
/* a closed overlay must never sit on top of the page eating gestures */
.share-ov[hidden], .ask-sheet[hidden] { display: none !important; }

/* ============================================================================
   MOBILE READABILITY + VISIBILITY PASS
   The mockups were drawn at 300px; the real column is ~430px, so the literal
   px sizes render ~30% too small. Scale type up for comprehension, strengthen
   faint elements (period toggle), and deepen card shadows for real depth.
   Loaded last → wins the cascade.
   ============================================================================ */

/* --- depth: every block lifts off the sand --- */
.sc, .tile {
  box-shadow: 0 1px 3px rgba(120,96,60,0.08), 0 14px 30px rgba(120,96,60,0.13) !important;
}

/* --- sky heroes: more presence, bigger headlines --- */
.sk-hero { min-height: 132px; }
.sk-hero-tall { min-height: 208px; }
.sk-eyebrow { font-size: 12.5px; margin-top: 16px; }
.sk-title.xl { font-size: 2.7rem; }
.sk-title.lg { font-size: 2.05rem; }
.sk-title.md { font-size: 1.72rem; }
.sk-teaser { font-size: 14.5px; bottom: 15px; }
/* keep the sun clear of the headline text */
.sk-sun { top: auto; bottom: 16px; right: 22px; width: 30px; height: 30px; }

/* --- labels & mono: legible, not faint --- */
.sk-label { font-size: 12.5px; color: #79715e; }
.sk-mini  { font-size: 11.5px; }
.dial-k, .tile-k { font-size: 11.5px; }

/* --- the period toggle (TODAY · WEEK) — was nearly invisible --- */
.sk-seg { font-size: 13px; letter-spacing: 0.06em; }
.sk-seg button { color: var(--sk-mute); padding: 2px 4px; font-weight: 600; }
.sk-seg button.on, .sk-seg .topic.active { color: var(--sk-ink); font-weight: 800; }
.sk-seg .sep { color: #c2b8a0; }

/* --- core readable values --- */
.vc-line { font-size: 1.6rem; }
.dial-v, .tile-v { font-size: 17px; }
.sk-lrow .lr-date { font-size: 18px; }
.sk-lrow .lr-mid { font-size: 15px; }
.sk-lrow .lr-tag { font-size: 15px; }
.mix-grid { font-size: 15px; gap: 10px 14px; }
.heat-leg { font-size: 11.5px; }
.stat3 .s-num { font-size: 26px; }
.stat3 .s-k { font-size: 11.5px; }
.force-name { font-size: 15px; }
.force-name .fn-when { font-size: 11px; }

/* --- the big text chunks: reading + portrait + asks --- */
.rcard p, .reading p { font-size: 16.5px !important; line-height: 1.72 !important; }
.rcard li, .reading li { font-size: 16px !important; line-height: 1.68 !important; }
.rcard h3 { font-size: 12px !important; }
.rstack-head h1, .reading h1 { font-size: 1.95rem !important; }
.read-sheet p { font-size: 16.5px; line-height: 1.78; }
.read-sheet h1, .read-title { font-size: 1.85rem; }
.ask-q { font-size: 15.5px; }
.glance-b { font-size: 15.5px; line-height: 1.62; }

/* --- check-in controls: bigger tap text --- */
.ci-scale2 button { font-size: 15px; padding: 12px 0; }
.ci-tags2 button { font-size: 12px; padding: 9px 15px; }

/* --- ink pill: bigger, clearer CTA --- */
.sk-pill { font-size: 16px; padding: 15px; }

/* ============================================================================
   BUGFIX PASS — visible breakage seen in real screenshots
   ============================================================================ */
/* 1) tappable cards force display:block, which kills space-between on rows
   (caused "own28%", "friction aheadAHEAD →"). Force flex on the row variants. */
button.sc.sc-row, .sc.sc-row, .sc-row { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; }
button.sc.sc-rowb, .sc.sc-rowb, .sc-rowb { display: flex !important; align-items: baseline; justify-content: space-between; gap: 12px; }
/* year row: give the % room and never let it touch the label */
#fc-year .sk-serif { flex: none; padding-left: 10px; }

/* 2) portrait toggle: no stray pill, no cut-off — scrolls horizontally instead */
.sk-seg .topic { background: none !important; border: none !important; border-radius: 0 !important; padding: 2px 4px !important; box-shadow: none !important; }
.sk-seg .topic.active { background: none !important; color: var(--sk-ink) !important; font-weight: 800; }
#topic-toggle { display: flex !important; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; max-width: 64%; }
#topic-toggle::-webkit-scrollbar { display: none; }

/* 3) the Ask FAB must not cover the last cards or the Listen bar */
.on-dash .wrap { padding-bottom: calc(132px + env(safe-area-inset-bottom)) !important; }

/* 4) Ahead window rows: keep dates on one line, give the label room */
.sk-lrow { gap: 12px; }
.sk-lrow .lr-date { white-space: nowrap; flex: none; }
.sk-lrow .lr-mid { flex: 1; }
.sk-lrow .lr-tag { white-space: nowrap; flex: none; }

/* 5) secondary text up a notch for comprehension */
.sk-mini { font-size: 12.5px; }
.heat-leg { font-size: 12px; }
.sk-lrow .lr-mid { font-size: 15.5px; }
.read-nav, .force-name .fn-when { font-size: 11.5px; }

/* ============================================================================
   ×1.3 PROPORTIONAL SCALE — the type was enlarged for the 430px column; now
   scale dials, padding, gaps, radius to match so proportions lock to the mockup.
   ============================================================================ */
.sk-col { padding: 14px 13px 0; gap: 11px; }
.sc { padding: 16px 19px; border-radius: 22px; }
.tile { padding: 14px 17px; border-radius: 22px; }
.dial svg { width: 46px !important; height: 46px !important; flex: none; }
.dial-half { gap: 10px; min-width: 0; }
.dial-half .dial-txt { min-width: 0; }
.dial-div { margin: 0 10px; }
.dial-k { font-size: 12px; }
.dial-v { white-space: nowrap; }
.mix-bar { height: 16px; }
.mix-dot { width: 11px; height: 11px; }
.heat-grid { gap: 7px; }
.heat-cell { height: 27px; border-radius: 8px; }
.sk-hero { padding-left: 24px; padding-right: 24px; }
.sk-pill { padding: 17px; }
/* Fraunces — elegant weights, slight tightening on the big display sizes */
.sk-title, .vc-line, .rstack-head h1, .reading h1, .read-title,
.sk-lrow .lr-date, .stat3 .s-num, .you-arch, #you-arch { font-weight: 600; letter-spacing: -0.005em; }

/* ===== final readability bump — the big text chunks one more notch ===== */
.rcard p, .reading p, .read-sheet p { font-size: 17px !important; line-height: 1.74 !important; }
.rcard li, .reading li { font-size: 16.5px !important; }
.sk-label { font-size: 13px; }
.sk-mini, .dial-k, .tile-k { font-size: 12.5px; }
.sk-lrow .lr-mid, .mix-grid, .glance-b { font-size: 16px; }
/* muted/secondary copy inside cards was the smallest — lift it for comprehension */
.sc .muted, .sc .small, .sc p.muted, .heat-leg, .fc-retro, .fcd-tone + p, .read-sheet .muted { font-size: 14.5px !important; line-height: 1.55; }

/* ============================================================================
   DEPTH — layered shadows so every block lifts clearly off the sand.
   ============================================================================ */
.sc, .tile, .card.screen, .card, .ask-panel, .dial-card {
  box-shadow:
    0 1px 2px rgba(120,96,60,0.05),
    0 5px 12px rgba(120,96,60,0.09),
    0 20px 42px rgba(120,96,60,0.16) !important;
}
.sk-hero, .today-hero, .you-sky, #path-hero, #fc-hero {
  box-shadow: 0 12px 34px rgba(120,96,60,0.18);
}

/* ============================================================================
   ENTRY FLOW → Sunrise (login / birth / onboarding / preview).
   No mockup exists for these, so hold them to the same system: cream cards,
   Fraunces titles, mono eyebrows, ink CTAs, depth shadows.
   ============================================================================ */
.masthead h1 { font-family: var(--serif); font-weight: 600; }
.card.screen { background: var(--sk-card) !important; border: 1px solid var(--sk-line) !important; border-radius: 22px !important; }
.card.screen .step { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; color: var(--sk-mute); }
.card.screen .confirm { font-family: var(--serif); font-weight: 600; }
.card.screen label { font-size: 13.5px; color: var(--sk-soft); }
.card.screen input, .card.screen select, .card.screen textarea { border-radius: 14px; border: 1px solid var(--sk-line); background: #fffdf8; font-size: 16px; }
#go-auth, #go-chart, #go-dash, #preview-signup, #ci-save {
  background: var(--sk-ink) !important; color: var(--sk-pill-ink) !important; border-radius: 999px !important;
  font-size: 16px !important; font-weight: 500 !important; box-shadow: none !important;
}
.card.screen .chip { font-size: 14px; }
.preview-tone .pt-word { font-family: var(--serif); }

/* ============================================================================
   ASK SHEET → Sunrise (cream panel, readable chips, ink send).
   ============================================================================ */
.ask-panel { background: var(--sk-card) !important; border-top: 1px solid var(--sk-line) !important; border-radius: 24px 24px 0 0 !important; }
.ask-head .chat-name { font-family: var(--serif); font-size: 18px; color: var(--sk-ink); }
.ask-head .chat-status { font-size: 12.5px; color: var(--sk-blue-ink); }
.ask-chips .qchip, .ask-chips button {
  font-size: 15px !important; border-radius: 14px !important; border: 1px solid var(--sk-line) !important;
  background: #fffdf8 !important; color: var(--sk-ink) !important; padding: 12px 14px !important;
}
.ask-thread .bubble { font-size: 15.5px !important; line-height: 1.6 !important; }
.ask-thread .bubble.q { background: var(--sk-ink) !important; color: var(--sk-pill-ink) !important; }
.ask-thread .bubble.a { background: #fffdf8 !important; color: var(--sk-ink) !important; border: 1px solid var(--sk-line) !important; }
.ask-composer { border-radius: 999px !important; border: 1px solid var(--sk-line) !important; background: #fffdf8 !important; }
.ask-composer .composer-input { font-size: 15.5px !important; }
.ask-composer .composer-send { background: var(--sk-ink) !important; color: var(--sk-pill-ink) !important; }
.ask-fab { background: var(--sk-ink) !important; color: var(--sk-pill-ink) !important; }
.ask-fab .fab-ic { stroke: var(--sk-pill-ink) !important; }

/* ============================================================================
   READABILITY + FIDELITY PASS (2026-06-15 feedback) — loads last, wins cascade.
   "reading text too small · colours/cards off vs mockups"
   ============================================================================ */
/* reading + portrait body: clearly readable on a real phone (was too small) */
.reading p, .rcard p, .read-sheet p, #today-body p, #fc-month-body p,
#synth-body p, #personality-body p {
  font-size: 18px !important; line-height: 1.78 !important; color: var(--sk-ink) !important;
}
.reading li, .rcard li { font-size: 17.5px !important; line-height: 1.72 !important; }
.glance-b { font-size: 17px !important; line-height: 1.66 !important; }
.reading h1, .rstack-head h1, #today-body h1 { font-size: 2rem !important; }
.rcard h3, .reading h3 { font-size: 12.5px !important; color: var(--sk-mute) !important; letter-spacing: 0.14em; }

/* the chart/transit debug expander isn't in any mockup — declutter it away */
#chart { display: none !important; }

/* Ahead: the curve hint is the one coral accent; retro line stays quiet */
.fc-hint { font-size: 13px; color: var(--sk-coral-deep); margin: 8px 0 2px; }
.fc-retro { font-size: 14px; color: var(--sk-soft); margin-top: 8px; }

/* ============================================================================
   v25 — STRUCTURAL REBUILD to the 10 mockups.
   Sub-view router (reading deck + 7 paginated sections, portrait, year,
   day detail, morning-minute), grouped ask, deeper depth. Loads last → wins.
   ============================================================================ */

/* --- DEEPER DEPTH (owner request: more shadow on the blocks) --- */
.sc, .tile, .card.screen, .ask-panel, .dial-card, #subview .sc, #checkin-view .sc {
  box-shadow:
    0 1px 2px rgba(74,57,33,0.05),
    0 6px 16px rgba(74,57,33,0.11),
    0 26px 54px rgba(74,57,33,0.22) !important;
}
.sk-hero, #today-hero, .you-sky, #path-hero, #fc-hero, .subv-hero {
  box-shadow: 0 16px 44px rgba(74,57,33,0.24) !important;
}

/* --- SUB-VIEW: a full screen that overlays the active tab --- */
.subv { position: fixed; inset: 0; z-index: 60; background: #efe9da; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.subv[hidden] { display: none !important; }
/* hold the sub-view to the same phone column as the tabs (430px, centered) */
.subv > div { max-width: 430px; margin-left: auto; margin-right: auto; }
.subv .sk-col { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
/* F1 — the bottom nav stays visible + tappable ABOVE every sub-view (the mockups
   show TODAY/AHEAD/YOU/PATH on every screen). A tab tap closes the sub-view and
   switches (switchTab already calls closeSub). */
.bottomnav { z-index: 120 !important; }
.subv-hero { position: relative; }
.subv-tools { display: flex; align-items: center; gap: 9px; }
.subv-x { background: rgba(255,255,255,0.2); color: #fff; border: none; width: 30px; height: 30px; border-radius: 50%; font-size: 14px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.subv-x:active { transform: scale(0.92); }
.subv-listen { background: rgba(255,255,255,0.22); color: #fff; border: none; padding: 6px 13px; border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; cursor: pointer; }

/* the Ask sheet must float ABOVE any sub-view */
.ask-sheet { z-index: 130 !important; }
.share-ov { z-index: 200 !important; }

/* --- skeletons (calm first paint, never a scary "~20-40s" spinner) --- */
.skel-line { height: 13px; border-radius: 7px; background: linear-gradient(90deg, #efe7d6, #f6f0e2, #efe7d6); background-size: 200% 100%; animation: skelpulse 1.3s ease-in-out infinite; margin: 9px 0; }
.skel-line.short { width: 55%; }
@keyframes skelpulse { 0%,100% { background-position: 0% 0; } 50% { background-position: -100% 0; } }

/* --- READING DECK: glance bullets, forces, begin row --- */
.glance-wrap { margin-top: 9px; }
.forces-wrap { margin-top: 10px; }
.rd-begin { font-weight: 700; font-size: 15px; }
.read-sheet .read-title { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; line-height: 1.12; }
.read-sheet p.action { padding-left: 14px; border-left: 2.5px solid var(--sk-coral); }
.read-nav .rn-next { color: var(--sk-ink); font-weight: 700; }
.read-nav .rn-prev { color: var(--sk-mute); }

/* --- PORTRAIT teaser on the You tab --- */
.portrait-teaser { margin: 9px 0 0; font-size: 16px; line-height: 1.6; color: var(--sk-soft); }
.portrait-hint .topic { color: var(--sk-mute); font-weight: 600; }
.portrait-hint .topic.active { color: var(--sk-ink); font-weight: 800; }
.portrait-hint .sep { color: #c2b8a0; }

/* --- YEAR screen --- */
.yr-para { margin: 9px 0 12px; font-size: 16px; line-height: 1.6; color: var(--sk-soft); }
.yr-bar { display: block; height: 7px; border-radius: 999px; background: var(--sk-line2); overflow: hidden; }
.yr-fill { display: block; height: 100%; border-radius: 999px; background: var(--sk-ink); }
.yr-arc { font-size: 16.5px; }
.arc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: 1px; }
.yr-arc-line { margin-top: 4px; font-size: 14.5px; color: var(--sk-soft); line-height: 1.55; }

/* --- DAY detail --- */
.wl-p { margin: 8px 0 0; font-size: 16px; line-height: 1.6; color: var(--sk-ink); }
.day-ask-q { font-size: 15px; font-weight: 500; }

/* --- AHEAD retro card --- */
.retro-row { display: flex; align-items: baseline; gap: 12px; }
.retro-txt { font-size: 13.5px; color: var(--sk-soft); }

/* --- TEXT-ONLY BOTTOM NAV (mockup) --- */
.bottomnav-text .tab { display: flex; align-items: center; justify-content: center; flex-direction: row; padding: 4px 0; }
.bottomnav-text .tab span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sk-mute); }
.bottomnav-text .tab.active span { color: var(--sk-ink); font-weight: 700; }

/* --- TODAY check-in entry line (one tappable row, opens its own screen) --- */
.checkin-mini { color: var(--sk-soft); font-size: 15px; }
.checkin-mini .ci-check { color: var(--sk-blue-ink); font-weight: 700; margin-right: 4px; }

/* --- check-in feeling faces (mockup: ·· · okay good great) --- */
#ci-mood button[data-v="1"], #ci-mood button[data-v="2"] { font-size: 20px; letter-spacing: 2px; }

/* the morning-minute screen labels sit with a little air */
#checkin-view .sc .sk-label { margin-bottom: 2px; }

/* --- ASK sheet → dawn-sky header + grouped suggestions (mockup) --- */
.ask-panel { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; }
.ask-sky { background: var(--sky-grad); color: #fff; padding: 18px 20px 16px; position: relative; flex: 0 0 auto; }
.ask-sky .sk-eyebrow { color: rgba(255,255,255,0.95); margin-top: 2px; }
.ask-sky .ask-x { position: absolute; top: 14px; right: 16px; }
.ask-chips { display: block !important; padding: 13px 14px 2px !important; flex: 0 0 auto; }
.ask-thread { flex: 1 1 auto; overflow-y: auto; padding: 0 14px; }
.ask-intro { font-size: 15px; line-height: 1.6; color: var(--sk-soft); background: var(--sk-card); border: 1px solid var(--sk-line); border-radius: 18px; padding: 13px 15px; margin-bottom: 10px; box-shadow: 0 6px 16px rgba(74,57,33,0.10); }
.ask-group { background: var(--sk-card); border: 1px solid var(--sk-line); border-radius: 18px; padding: 3px 15px; margin-bottom: 10px; box-shadow: 0 6px 16px rgba(74,57,33,0.10); }
.ask-group-label { margin: 11px 0 3px; }
.ask-group .ask-q { font-weight: 500; }

/* AHEAD retro row: keep the ℞ + dates on one line */
.fc-retro-card .retro-row .sk-mini { white-space: nowrap; flex: 0 0 auto; }
.fc-retro-card .retro-row .retro-txt { flex: 1 1 auto; }

/* the ℞ prescription/retrograde glyph: render in a serif that actually has it (Inter/mono fall back to a stray "R") */
.rx { font-family: "Apple Symbols", "Segoe UI Symbol", Georgia, serif; }

/* ============================================================================
   CLARITY BLEND — apply the approved 8005 proto to the live app: big
   Intensity/Tone rings, plain-words read, labelled tiles, nature hero, icon
   nav, grain + sprig. Loads last → wins.
   ============================================================================ */
/* nature scene (sunrise-over-hills + stars) behind EVERY hero — one shared
   background layer over the dawn gradient, so the whole app reads as one world. */
.sk-hero{
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 430 175' preserveAspectRatio='none'%3E%3Ccircle cx='56' cy='26' r='1.1' fill='%23fff' opacity='.7'/%3E%3Ccircle cx='120' cy='40' r='.9' fill='%23fff' opacity='.5'/%3E%3Ccircle cx='210' cy='30' r='.8' fill='%23fff' opacity='.4'/%3E%3Ccircle cx='300' cy='22' r='1.2' fill='%23fff' opacity='.6'/%3E%3Ccircle cx='362' cy='48' r='.8' fill='%23fff' opacity='.45'/%3E%3Cpath d='M0 150 Q110 121 215 145 T430 138 L430 175 L0 175 Z' fill='rgba(110,70,55,.15)'/%3E%3Cpath d='M0 162 Q140 140 270 159 T430 156 L430 175 L0 175 Z' fill='rgba(80,55,48,.22)'/%3E%3C/svg%3E"),
    var(--sky-grad);
  background-repeat:no-repeat,no-repeat;
  background-position:center bottom,center;
  background-size:100% 100%,cover;
}

/* BIG RINGS card */
.rings-card{display:flex !important;align-items:stretch;padding:18px 14px !important;}
.cl-ring{flex:1;display:flex;flex-direction:column;align-items:center;text-align:center;}
.cl-ringsvg{width:120px;height:120px;display:block;}
.cl-ringval{font-family:var(--serif);font-weight:600;font-size:21px;fill:var(--sk-ink);}
.cl-ringval.coral{fill:var(--sk-coral-deep);}
.cl-ring-k{font-family:var(--mono);font-size:12px;letter-spacing:.14em;color:var(--sk-mute);text-transform:uppercase;margin-top:8px;}
.cl-ring-sub{font-size:13px;color:var(--sk-soft);margin-top:3px;}
.cl-ring-div{width:1px;background:var(--sk-line);margin:10px 2px;}

/* PLAIN WORDS read card */
.cl-read{margin:11px 0 0;font-size:17px;line-height:1.62;color:var(--sk-ink);}

/* tile sublabel */
.tile-sub{font-size:13px;color:var(--sk-soft);margin-top:3px;}

/* dashboard botanical sprig */
.dash-sprig{display:block;margin:14px auto 0;width:56px;height:auto;opacity:.5;}
.dash-sprig path{stroke:var(--sk-tan);stroke-width:1.2;fill:none;stroke-linecap:round;}
.dash-sprig circle{fill:var(--sk-tan);}

/* organic paper grain across the dashboard */
body.on-dash::after{content:"";position:fixed;inset:0;pointer-events:none;z-index:9998;opacity:.04;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");}

/* icon + label bottom nav (clearer than text-only, sunrise palette) */
.bottomnav-icons{display:flex;justify-content:space-around;}
.bottomnav-icons .tab{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;background:none;border:none;cursor:pointer;color:var(--sk-mute);padding:4px 0;}
.bottomnav-icons .tab .nav-ic{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.bottomnav-icons .tab span{font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;}
.bottomnav-icons .tab.active{color:var(--sk-ink);}
.bottomnav-icons .tab.active .nav-ic{stroke:var(--sk-coral-deep);}

/* match 8005 Today: in-flow hero sub under the title + highlighted plain-words */
.today-hero{ }
.today-hero.sk-hero-tall{min-height:178px;}
.today-hero .today-sub{position:relative;z-index:1;font-size:15px;color:rgba(255,255,255,.95);margin-top:9px;}
.cl-read .hl{color:var(--sk-coral-deep);font-weight:600;}
.cl-read .hl-b{color:var(--sk-blue-ink);font-weight:600;}

/* ============================================================================
   TODAY — aesthetic pass (less newspaper, more dreamy). Scoped to #pane-today
   + #today-hero so the other screens stay put until approved.
   ============================================================================ */
/* dreamier hero: taller dawn, gentle title-case date, glow behind the word, bigger sun */
#today-hero.sk-hero-tall{min-height:212px;padding-bottom:24px;}
#today-hero .sk-eyebrow{font-family:var(--sans);text-transform:none;letter-spacing:.01em;font-size:13.5px;font-weight:500;color:rgba(255,255,255,.82);margin-top:16px;}
#today-hero .sk-title.xl{font-size:3rem;letter-spacing:-.012em;text-shadow:0 2px 34px rgba(255,228,201,.38);}
#today-hero .today-sub{font-size:15.5px;color:rgba(255,255,255,.9);margin-top:10px;}
#today-hero .sk-sun{width:52px;height:52px;top:auto;bottom:52px;right:30px;
  background:radial-gradient(circle at 40% 36%,#fff,#fdeecf 46%,#e9c79e 100%);
  box-shadow:0 0 54px 14px rgba(253,240,214,.5),0 0 16px rgba(255,255,255,.6) inset;}

/* section labels → elegant italic serif (not a print kicker) */
#pane-today .sk-label{font-family:var(--serif);font-style:italic;font-weight:400;text-transform:none;letter-spacing:0;font-size:15.5px;color:#9a8d73;}
/* micro labels (rings / tiles) → soft, sentence-case, quiet */
#pane-today .cl-ring-k,#pane-today .tile-k{font-family:var(--sans);text-transform:none;letter-spacing:.01em;font-size:12.5px;font-weight:500;color:var(--sk-mute);}
#pane-today .cl-ring-sub,#pane-today .tile-sub{color:#9a8d73;}

/* softer, floatier cards on Today */
#pane-today .sc,#pane-today .tile{border-color:rgba(214,202,178,.5);border-radius:26px;
  box-shadow:0 1px 1px rgba(74,57,33,.04),0 10px 24px rgba(74,57,33,.09),0 30px 62px rgba(74,57,33,.12) !important;}
#pane-today .rings-card{padding:22px 16px !important;}
#pane-today .read-card{padding:20px 21px !important;}

/* plain-words: a touch larger, more air, gentler highlights (colour, not heavy bold) */
#pane-today .cl-read{font-size:17.5px;line-height:1.72;}
#pane-today .cl-read .hl,#pane-today .cl-read .hl-b{font-weight:500;}
