/* Tide — styles
   Palette: between ocean and cosmos. Deep sea ink, tide green, shell pink (Venus), a little gold. */
:root {
  --bg: #E9F0EF;
  --surface: #F7FAF9;
  --surface-2: #DFE9E7;
  --ink: #1B2A3A;
  --muted: #51636F;
  --tide: #2F6B6A;
  --water: #6FA3A0;
  --shell: #E4AE9E;
  --shell-soft: #F5E1DA;
  --gold: #B8903C;
  --lav: #8E86B0;
  --line: #CFDCDA;
  --on-tide: #F7FAF9;
  --danger: #A6473A;
  --shadow: 0 1px 0 rgba(27, 42, 58, .04), 0 8px 24px -12px rgba(27, 42, 58, .18);
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --tab-h: 64px;
  --serif: Fraunces, 'Iowan Old Style', Georgia, serif;
  --sans: Karla, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #142230; --surface: #1C2E3E; --surface-2: #233849; --ink: #E6EEEC; --muted: #9AB0B5;
    --tide: #7DBDB7; --water: #3F7F7E; --shell: #E8B4A4; --shell-soft: #3A2E33; --gold: #D8B461;
    --lav: #ABA3CF; --line: #2B4254; --on-tide: #142230; --danger: #E08A7C;
    --shadow: 0 1px 0 rgba(0,0,0,.2), 0 10px 28px -14px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #142230; --surface: #1C2E3E; --surface-2: #233849; --ink: #E6EEEC; --muted: #9AB0B5;
  --tide: #7DBDB7; --water: #3F7F7E; --shell: #E8B4A4; --shell-soft: #3A2E33; --gold: #D8B461;
  --lav: #ABA3CF; --line: #2B4254; --on-tide: #142230; --danger: #E08A7C;
  --shadow: 0 1px 0 rgba(0,0,0,.2), 0 10px 28px -14px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100%;
  background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
main {
  max-width: 560px; margin: 0 auto;
  padding: 18px 20px calc(var(--tab-h) + 40px + env(safe-area-inset-bottom, 0px));
  outline: none;
}
main.enter { animation: enter .28s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.012em; margin: 0; }
h2 { font-size: 1.35rem; line-height: 1.25; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

.muted { color: var(--muted); }
.small-t { font-size: .9rem; }
.ink { color: var(--ink); }
.center { text-align: center; }
.stack { display: grid; gap: 16px; margin-top: 8px; }

input, textarea, select {
  font: inherit; color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; width: 100%;
  -webkit-appearance: none; appearance: none;
}
textarea { resize: vertical; line-height: 1.45; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2351636F' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 18px;
  padding-right: 36px;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .75; }
.lbl { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.hint { display: block; font-size: .88rem; color: var(--muted); margin: -2px 0 8px; }
.field textarea, .field input { margin: 0; }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 22px; }
.page-head .back {
  flex: none; width: 40px; height: 40px; margin: 0 0 0 -8px;
  display: grid; place-items: center; border-radius: 50%; color: var(--ink);
}
.page-head .back svg { width: 24px; height: 24px; }
.page-head .back:active { background: var(--surface-2); }
.page-title { font-size: 2rem; line-height: 1.1; outline: none; }
.has-back .page-title { font-size: 1.7rem; margin-top: 3px; }
.page-sub { color: var(--muted); margin-top: 8px; max-width: 34em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 50px; padding: 12px 18px;
  border-radius: var(--r-md); border: 1.5px solid transparent;
  font-weight: 700; text-decoration: none; text-align: center;
  transition: transform .12s ease, background .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--tide); color: var(--on-tide); }
.btn-outline { border-color: var(--line); background: transparent; }
.btn-ghost { background: transparent; color: var(--muted); font-weight: 500; }
.btn-soft { background: var(--surface-2); }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-block { display: flex; width: 100%; margin-top: 10px; }
.btn-row { display: flex; gap: 10px; margin-top: 16px; }
.btn-row > * { flex: 1; }
.btn-row.tight { margin-top: 12px; }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; background: transparent; border-radius: 10px; color: var(--muted);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:disabled { opacity: .3; }
.icon-btn:not(:disabled):active { background: var(--surface-2); }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1.5px solid var(--line); background: transparent;
  border-radius: 999px; padding: 7px 12px; font-size: .88rem; font-weight: 700;
}
.chip svg { width: 14px; height: 14px; }
.chip-strong { background: var(--tide); border-color: var(--tide); color: var(--on-tide); }
.chip-warm { border-color: var(--shell); }
.chip:disabled { opacity: .4; cursor: not-allowed; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--surface-2); padding: 5px; border-radius: var(--r-md); margin: 20px 0 10px; }
.seg-btn { border: 0; background: transparent; border-radius: 12px; padding: 11px 6px; font-weight: 700; color: var(--muted); }
.seg-btn[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.block .seg { margin-top: 12px; }

/* ---------- Sections ---------- */
.block { margin-top: 36px; }
.block > h2 { margin-bottom: 12px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }

/* ---------- Tide pool (the signature) ---------- */
.pool { position: relative; width: 200px; height: 200px; }
.pool.big { width: 224px; height: 224px; margin: 16px auto 10px; }
.pool.timer { width: 250px; height: 250px; margin: 6px auto 18px; }
.pool.tiny { width: 34px; height: 34px; }
.pool-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.pool-fill { transition: transform 1s cubic-bezier(.3, .7, .2, 1); }
.pool-wave { animation: drift 8s linear infinite; }
.pool-wave--back { animation-duration: 13s; animation-direction: reverse; }
.pool.tiny .pool-wave { animation: none; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-200px); } }
.pool-count { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.pool-count b { font-family: var(--serif); font-size: 3.4rem; line-height: 1; font-weight: 600; }
.pool.timer .pool-count b { font-size: 3.1rem; font-variant-numeric: tabular-nums; }
.pool-count span { font-size: .92rem; color: var(--muted); margin-top: 4px; }
.pool.is-full .pool-count span { color: var(--ink); font-weight: 700; }
.pool.is-full .pool-svg { filter: drop-shadow(0 0 18px color-mix(in srgb, var(--water) 55%, transparent)); }

/* ---------- Pool ---------- */
.eyebrow-date { color: var(--muted); font-size: .95rem; }
.greet { font-size: 1.9rem; margin-top: 2px; }
.streak { color: var(--muted); font-size: .95rem; }
.streak strong { color: var(--ink); }

.type-make { --type: var(--tide); }
.type-hermit { --type: var(--shell); }
.type-school { --type: var(--gold); }
.type-family { --type: var(--water); }
.type-work { --type: var(--ink); }
.type-reflect { --type: var(--lav); }

.ritual-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--line); }
.ritual-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1.5px solid var(--line); }
.ritual-tick { flex: none; width: 48px; height: 48px; margin: -4px 0 -4px -10px; border: 0; background: none; display: grid; place-items: center; border-radius: 50%; }
.tick { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--tide); display: grid; place-items: center; transition: background .2s, transform .2s; color: var(--on-tide); }
.tick svg { width: 15px; height: 15px; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .25s cubic-bezier(.3,1.6,.5,1); }
.is-done .tick { background: var(--tide); }
.is-done .tick svg { opacity: 1; transform: none; }
.ritual-text { flex: 1; min-width: 0; }
.ritual-text b { display: block; font-weight: 700; }
.ritual-text span { display: block; color: var(--muted); font-size: .93rem; line-height: 1.4; }
.is-done .ritual-text b { text-decoration: line-through; text-decoration-color: var(--water); text-decoration-thickness: 2px; }
.ritual-go { flex: none; width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); border-radius: 50%; }
.ritual-go svg { width: 18px; height: 18px; }

.focus-card {
  display: block; text-decoration: none; margin-top: 14px;
  padding: 14px 16px; border-left: 4px solid var(--gold);
  background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.focus-card > span { display: block; font-size: .85rem; }
.focus-card > b { display: block; font-size: 1.05rem; line-height: 1.35; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  display: flex; flex-direction: column; gap: 2px; min-height: 92px; justify-content: flex-end;
  padding: 14px; text-decoration: none; border-radius: var(--r-md);
  background: var(--surface); border: 1.5px solid var(--line);
}
.tile b { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; }
.tile span { font-size: .86rem; color: var(--muted); line-height: 1.35; }
.tile:active { background: var(--surface-2); }

/* ---------- SOS ---------- */
.breath-wrap { position: relative; width: 170px; height: 170px; margin: 0 auto; }
.breath, .breath-ring { position: absolute; inset: 0; border-radius: 50%; }
.breath { background: radial-gradient(circle at 40% 35%, color-mix(in srgb, var(--water) 70%, var(--surface)), var(--water)); animation: breathe 8s ease-in-out infinite; }
.breath-ring { border: 1.5px solid var(--line); }
@keyframes breathe { 0%, 100% { transform: scale(.55); } 50% { transform: scale(1); } }
.breath-cue { margin-top: 14px; min-height: 1.5em; }
.sos-q { margin: 26px 0 14px; font-size: 1.4rem; }
.choice-list { display: grid; gap: 10px; }
.choice {
  text-align: left; border: 1.5px solid var(--line); background: var(--surface);
  border-radius: var(--r-md); padding: 16px 18px; font-weight: 700; font-size: 1.02rem;
}
.choice:active { background: var(--surface-2); }
.sos-stat { margin-top: 22px; }
.sos-stat strong { color: var(--ink); }
.sos-answer .page-title { font-size: 1.9rem; }
.lead { font-size: 1.1rem; margin: 16px 0; }
.key-note { color: var(--muted); border-left: 3px solid var(--shell); padding-left: 14px; margin-bottom: 22px; }
.back-by { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 8px; }

/* ---------- Gut check deck ---------- */
.deck { position: relative; margin: 4px 0 0; }
.deck-card {
  position: relative; z-index: 1;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-lg); padding: 26px 22px; min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow);
  transition: transform .22s ease-in, opacity .22s ease-in;
  touch-action: pan-y;
}
.deck-card--under { position: absolute; inset: 10px 12px -10px; z-index: 0; min-height: 0; box-shadow: none; background: var(--surface-2); }
.deck-prompt { font-family: var(--serif); font-size: 1.6rem; line-height: 1.28; margin-top: 18px; }
.fly-yes { transform: translateX(110%) rotate(8deg); opacity: 0; }
.fly-no { transform: translateX(-110%) rotate(-8deg); opacity: 0; }
.drawer { margin-top: 24px; border-top: 1.5px solid var(--line); }
.drawer summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.drawer[open] summary::after { content: '–'; }
.drawer textarea { margin: 10px 0 0; }

/* ---------- Make ---------- */
.adder { display: flex; gap: 8px; }
.adder input { flex: 1; min-width: 0; }
.adder .btn { flex: none; min-height: 0; }
.made-list { list-style: none; padding: 0; margin: 14px 0 0; }
.made-list li { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1.5px solid var(--line); }
.made-list time { flex: none; width: 64px; color: var(--muted); font-size: .9rem; padding-top: 2px; }
.row-link { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-weight: 700; text-decoration: none; color: var(--tide); }
.row-link svg { width: 18px; height: 18px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.stats div { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 14px 6px; text-align: center; }
.stats b { display: block; font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; }
.stats span { font-size: .78rem; color: var(--muted); }
.log-day { margin-top: 24px; }
.log-date { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; color: var(--muted); }
.log-day .made-list { margin-top: 4px; }
.empty { text-align: center; padding: 40px 0; display: grid; gap: 14px; justify-items: center; color: var(--muted); }

/* ---------- Rhythm ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 18px; font-size: .85rem; color: var(--muted); }
.legend-i { display: inline-flex; align-items: center; gap: 6px; }
.legend-i i { width: 10px; height: 10px; border-radius: 50%; background: var(--type); }
.timeline { list-style: none; padding: 0; margin: 0 0 20px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 86px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl { display: flex; gap: 22px; padding: 10px 0; position: relative; }
.tl time { flex: none; width: 72px; white-space: nowrap; text-align: right; font-size: .88rem; color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.tl::before { content: ''; position: absolute; left: 81px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: var(--type); border: 2.5px solid var(--bg); }
.tl-body { flex: 1; min-width: 0; }
.tl-body b { display: block; }
.tl-body span { display: block; font-size: .92rem; color: var(--muted); }
.tl.is-past { opacity: .5; }
.tl.is-now .tl-body { background: var(--surface); border: 1.5px solid var(--type); border-radius: var(--r-sm); padding: 10px 12px; margin: -10px 0; }
.tl.is-now::before { width: 16px; height: 16px; left: 79px; top: 13px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--type) 25%, transparent); }
.now-pill { display: inline-block; margin-top: 6px; font-style: normal; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--type); color: var(--bg); }
.edit-blocks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.edit-block { display: grid; gap: 8px; padding: 12px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); }
.eb-row { display: flex; gap: 8px; align-items: center; }
.eb-row input[type="time"] { flex: 1; }
.eb-row select { flex: 1.2; }

/* ---------- Reflect ---------- */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 10px; }
.wk { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px; border-radius: var(--r-sm); }
.wk.is-today { background: var(--surface); }
.wk b { font-size: .82rem; }
.wk-n { font-size: .74rem; color: var(--muted); }
.wk-wave { width: 20px; height: 8px; }
.wave-up { background: linear-gradient(to top right, transparent 45%, var(--tide) 45% 60%, transparent 60%); }
.wave-steady { background: linear-gradient(transparent 40%, var(--water) 40% 62%, transparent 62%); }
.wave-down { background: linear-gradient(to bottom right, transparent 45%, var(--shell) 45% 60%, transparent 60%); }
.wave-none { background: radial-gradient(circle, var(--line) 25%, transparent 30%); }

/* ---------- Design ---------- */
.keys { display: grid; gap: 14px; }
.key-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.key-card h2 { margin: 2px 0 14px; font-size: 1.5rem; }
.key-card > p { color: var(--muted); font-size: .96rem; }
.key-card .drawer { margin-top: 14px; }
.spectrum { display: grid; grid-template-columns: 1fr; gap: 6px; margin-bottom: 14px; }
.sp { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-radius: var(--r-sm); padding: 9px 14px; font-weight: 700; font-size: .98rem; line-height: 1.25; }
.sp i { font-style: normal; font-weight: 400; font-size: .85rem; color: var(--muted); }
.sp-shadow { background: var(--surface-2); }
.sp-gift { background: color-mix(in srgb, var(--water) 32%, var(--surface)); }
.sp-siddhi { background: color-mix(in srgb, var(--gold) 22%, var(--surface)); }
.asks { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 8px; font-family: var(--serif); font-size: 1.05rem; }
.chart { margin: 0; }
.chart div { padding: 12px 0; border-bottom: 1.5px solid var(--line); }
.chart dt { font-weight: 700; }
.chart dd { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.chart + .small-t { margin-top: 12px; }
.howto { padding-left: 22px; margin: 0; display: grid; gap: 8px; }

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 2px; text-decoration: none; color: inherit;
  border-bottom: 1.5px solid var(--line);
}
.link-list li:first-child a { border-top: 1.5px solid var(--line); }
.link-list a > span { flex: 1; min-width: 0; }
.link-list a b { display: block; }
.link-list a .small-t { display: block; line-height: 1.35; }
.link-list a svg { width: 18px; height: 18px; flex: none; color: var(--muted); }

/* ---------- Chrome: tab bar, FAB, toast ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--line);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; text-decoration: none; font-size: .72rem; font-weight: 700; color: var(--muted); border-radius: 12px; }
.tab-i { width: 26px; height: 26px; display: grid; place-items: center; }
.tab-i svg { width: 24px; height: 24px; }
.tab.is-active { color: var(--tide); }
.toast {
  position: fixed; left: 50%; z-index: 30;
  bottom: calc(var(--tab-h) + 88px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; max-width: calc(100vw - 40px); text-align: center;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 700px) {
  .tabbar { left: 50%; right: auto; width: 520px; transform: translateX(-50%); bottom: 16px; border: 1px solid var(--line); border-radius: 22px; padding-bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .breath { transform: scale(.8); }
}

/* ---------- The living pool ---------- */
.pool-head { text-align: center; margin: 4px 0 16px; }
.pool-meta { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.scene-card {
  position: relative; border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow); background: #243B52;
  margin: 0 -4px;
}
.scene { display: block; width: 100%; height: auto; touch-action: manipulation; cursor: pointer; user-select: none; -webkit-user-select: none; }
.scene-chip {
  position: absolute; left: 14px; top: 14px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(247, 250, 249, .78); color: #1B2A3A;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .85rem; font-weight: 500; pointer-events: none;
}
.scene-chip b { font-family: var(--serif); font-size: 1rem; }
.scene-hint { text-align: center; color: var(--muted); font-size: .92rem; margin: 12px 8px 0; min-height: 1.4em; }
.water { transition: transform 1.8s cubic-bezier(.3, .6, .2, 1); }
.wave-drift { animation: drift-wide 11s linear infinite; }
.wave-slow { animation-duration: 17s; animation-direction: reverse; }
@keyframes drift-wide { from { transform: translateX(0); } to { transform: translateX(-360px); } }
.star { animation: twinkle 6s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.ripple { fill: none; stroke: #F7FAF9; stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ripple 2.4s ease-out forwards; }
.ripple-2 { animation-delay: .35s; }
@keyframes ripple { 0% { transform: scale(.1); opacity: .8; } 100% { transform: scale(3.2); opacity: 0; } }
.fish-tail { transform-box: fill-box; transform-origin: right center; animation: tail .9s ease-in-out infinite alternate; }
@keyframes tail { from { transform: skewY(-10deg); } to { transform: skewY(10deg); } }
.bottle { transition: transform 1.8s cubic-bezier(.3, .6, .2, 1), opacity .6s; cursor: pointer; }
.bottle .bob { animation: bob 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(3px) rotate(8deg); } }
.bottle.gone { opacity: 0; }
.sand-t { opacity: .95; }

.breath-card {
  display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center;
  margin: 8px 0 18px; padding: 18px 18px 18px 16px;
  border-radius: 28px; text-decoration: none; color: #F7F3EA;
  background:
    radial-gradient(circle at 18% 50%, rgba(111, 163, 160, .35), transparent 42%),
    #142230;
  box-shadow: var(--shadow);
}
.breath-card-orb {
  width: 84px; height: 84px; border-radius: 50%; justify-self: center;
  background: radial-gradient(circle at 38% 32%, #F5E1DA, transparent 42%), radial-gradient(circle at 50% 58%, #6FA3A0, #2F6B6A);
  animation: boot-breath 4.4s ease-in-out infinite;
}
@keyframes boot-breath { 0%, 100% { transform: scale(.72); } 50% { transform: scale(1); } }
.breath-card b, .breath-card em { display: block; font-family: var(--serif); font-style: normal; font-weight: 600; line-height: 1; }
.breath-card b { font-size: 2.35rem; }
.breath-card em { font-size: 1.85rem; color: #7DBDB7; margin-top: 2px; }
.breath-card small { display: block; margin-top: 8px; color: rgba(247, 243, 234, .72); font-size: .9rem; }

/* ---------- Reveal ---------- */
.reveal {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: center; padding: 24px;
  background: rgba(16, 28, 43, 0); transition: background .5s ease;
}
.reveal.open { background: rgba(16, 28, 43, .55); }
.reveal-card {
  width: min(380px, 100%); text-align: center;
  background: var(--bg); border-radius: 28px; padding: 26px 22px 20px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
  transform: translateY(40px); opacity: 0;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1), opacity .6s ease;
  max-height: calc(100vh - 48px); overflow: auto;
}
.reveal.open .reveal-card { transform: none; opacity: 1; }
.reveal-title { color: var(--muted); font-size: .92rem; }
.reveal-art { margin: 10px auto 6px; width: 160px; height: 160px; display: grid; place-items: center; }
.reveal-art svg { transform: translateY(26px) scale(.7); opacity: 0; transition: transform 1.3s cubic-bezier(.2, .8, .2, 1) .35s, opacity 1s ease .35s; }
.reveal.open .reveal-art svg { transform: none; opacity: 1; }
.reveal-name { font-size: 1.6rem; outline: none; }
.reveal-meta { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.reveal-body { font-family: var(--serif); font-size: 1.15rem; line-height: 1.4; margin: 14px 6px 6px; }
.reveal-why { color: var(--tide); font-weight: 700; font-size: .92rem; margin-top: 8px; }
.letter { background: #F6F0E2; color: #3A3226; }
.letter .reveal-title, .letter .reveal-meta { color: #7A6B55; }
.letter-text { font-family: var(--serif); font-size: 1.5rem; line-height: 1.35; margin: 22px 4px 14px; outline: none; }

/* ---------- Make: coral ---------- */
.coral-meter { display: flex; align-items: center; gap: 14px; margin: 20px 0 6px; padding: 12px 16px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); }
.coral-meter b { display: block; }
.coral-meter .small-t { display: block; }

/* ---------- Surf ---------- */
.surf-stage { margin: 8px -20px 0; }
.surf-svg { display: block; width: 100%; height: auto; }
.surf-count { margin-top: 18px; }
.surf-count strong { color: var(--ink); }
.surf-ride { text-align: center; padding-top: 10px; }
.surf-time { font-family: var(--serif); font-size: 3rem; font-variant-numeric: tabular-nums; line-height: 1; margin-top: 10px; }
.surf-phase { font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; min-height: 3.2em; margin: 18px 8px 8px; }

/* ---------- Treasures ---------- */
.season-card {
  border-radius: 28px; padding: 22px 18px;
  background: linear-gradient(170deg, color-mix(in srgb, var(--s-l) 70%, var(--surface)), var(--surface));
  border: 1.5px solid color-mix(in srgb, var(--s-m) 35%, var(--line));
}
.season-top { display: flex; justify-content: space-between; align-items: flex-end; }
.season-top h2 { font-size: 1.9rem; }
.season-n { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--s-m); }
.season-n small { font-size: 1rem; color: var(--muted); }
.season-blurb { color: var(--muted); margin: 8px 0 16px; }
.season-done { text-align: center; font-weight: 700; margin-top: 14px; color: var(--tide); }
:root[data-theme="dark"] .season-card { background: var(--surface); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .season-card { background: var(--surface); } }
.t-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.t-cell {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 4px 8px; border-radius: var(--r-md); border: 0;
  background: color-mix(in srgb, var(--surface) 80%, transparent); min-height: 104px;
}
.t-cell.rar-r:not(.is-missing) { box-shadow: inset 0 0 0 1.5px var(--gold); }
.t-cell.is-missing { cursor: default; opacity: .75; }
.t-name { font-size: .72rem; line-height: 1.2; text-align: center; font-weight: 700; }
.is-missing .t-name { color: var(--muted); font-weight: 500; }
.t-count { position: absolute; top: 6px; right: 8px; font-size: .72rem; font-weight: 700; color: var(--muted); }
.season-drawer summary { font-family: var(--serif); font-size: 1.15rem; }
.season-drawer summary .small-t { font-family: var(--sans); margin-left: auto; margin-right: 10px; }
.season-drawer .t-grid { margin-bottom: 14px; }
.wheel { display: flex; flex-wrap: wrap; gap: 8px; }
.wheel-i { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); font-size: .88rem; font-weight: 700; color: var(--muted); }
.wheel-i i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.wheel-i.is-now { color: var(--ink); border-color: var(--c); }
.stats { margin-top: 18px; }

/* ---------- Pool: rituals as chips right under the water ---------- */
.pool-head { margin: 0 0 12px; }
.pool-head .greet { font-size: 1.65rem; }
.pool-meta { font-size: .88rem; margin-top: 2px; }
.tide-chips { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tide-chip {
  width: 100%; height: 100%; min-height: 58px; align-items: center;
  display: flex; align-items: flex-start; gap: 10px; text-align: left;
  padding: 11px 12px; border-radius: var(--r-md);
  background: var(--surface); border: 1.5px solid var(--line);
  transition: background .5s ease, border-color .5s ease;
}
.tide-chip .tick { flex: none; width: 24px; height: 24px; margin-top: 1px; }
.tide-chip .tick svg { width: 13px; height: 13px; }
.tc-text { min-width: 0; }
.tc-text b { display: block; font-size: .93rem; line-height: 1.25; }
.tc-text span { display: block; font-size: .78rem; line-height: 1.3; color: var(--muted); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tide-chip.is-done { background: color-mix(in srgb, var(--water) 22%, var(--surface)); border-color: color-mix(in srgb, var(--tide) 45%, var(--line)); }
.tide-chip.is-done .tick { background: var(--tide); }
.tide-chip.is-done .tick svg { opacity: 1; transform: none; }
.streak-line { margin-top: 12px; }
.cloud { animation: cloud 90s linear infinite alternate; }
.cloud-b { animation-duration: 120s; animation-direction: alternate-reverse; }
@keyframes cloud { from { transform: translateX(-30px); } to { transform: translateX(60px); } }

/* ---------- The sky today ---------- */
.sky-card {
  margin-top: 30px; padding: 24px 22px;
  border-radius: 28px; color: #EDEAF4;
  background:
    radial-gradient(circle at 85% 15%, rgba(244, 238, 220, .22), transparent 38%),
    linear-gradient(160deg, #1E2E48, #3B3E66 60%, #5B4E7A);
  position: relative; overflow: hidden;
}
.sky-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 60%, #fff, transparent), radial-gradient(1.2px 1.2px at 40% 80%, #fff, transparent), radial-gradient(1px 1px at 88% 40%, #fff, transparent), radial-gradient(1px 1px at 55% 18%, #fff, transparent);
}
.sky-label { font-size: .85rem; opacity: .75; }
.sky-card h2 { font-size: 1.55rem; margin: 4px 0 2px; color: #F7F3EA; }
.sky-glyph { font-family: 'Apple Symbols', 'Segoe UI Symbol', var(--sans); font-weight: 400; margin-right: 4px; color: #E8B4A4; }
.sky-house { font-size: .92rem; opacity: .8; }
.sky-line { font-family: var(--serif); font-size: 1.2rem; line-height: 1.38; margin: 14px 0 12px; color: #F7F3EA; }
.sky-phase { font-size: .92rem; opacity: .85; }

/* ---------- Settings sections ---------- */
.set-list { display: grid; gap: 10px; }
.set-sec { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); }
.set-sec > summary {
  list-style: none; display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; cursor: pointer;
}
.set-sec > summary::-webkit-details-marker { display: none; }
.set-emoji {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.3rem; line-height: 1;
  background: var(--surface-2);
}
.set-emoji.e-tide { background: color-mix(in srgb, var(--water) 28%, var(--surface)); }
.set-emoji.e-shell { background: color-mix(in srgb, var(--shell) 35%, var(--surface)); }
.set-emoji.e-lav { background: color-mix(in srgb, var(--lav) 28%, var(--surface)); }
.set-emoji.e-gold { background: color-mix(in srgb, var(--gold) 28%, var(--surface)); }
.set-emoji.e-water { background: color-mix(in srgb, var(--tide) 18%, var(--surface)); }
.set-emoji.e-danger { background: color-mix(in srgb, var(--danger) 16%, var(--surface)); }
.set-title { flex: 1; min-width: 0; }
.set-title b { display: block; font-size: 1.05rem; line-height: 1.2; }
.set-title small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.3; margin-top: 1px; }
.set-sec > summary::after {
  content: ''; flex: none; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s ease;
}
.set-sec[open] > summary::after { transform: rotate(225deg); }
.set-body { padding: 0 16px 16px; }
.set-body .seg { margin-top: 8px; }
.set-body .howto { margin-top: 4px; }
.set-body .howto + .small-t { margin-top: 14px; }
.set-body .small-t + .small-t { margin-top: 8px; }
.set-body .small-t + .howto { margin-top: 8px; }

/* ---------- Nudges ---------- */
.block.nudges { margin-top: 0; }
.nudge-times { list-style: none; padding: 0; margin: 12px 0 14px; border-top: 1.5px solid var(--line); }
.nudge-times li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1.5px solid var(--line); }
.nudge-times b { flex: none; width: 8.6rem; font-variant-numeric: tabular-nums; }
.note { background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--r-md); padding: 12px 14px; font-size: .93rem; color: var(--muted); }
.note code, .nudges code { font-size: .85em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.on-line { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.dot-on { width: 10px; height: 10px; border-radius: 50%; background: var(--tide); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tide) 22%, transparent); }
.nudges textarea { font-size: .8rem; font-family: ui-monospace, Menlo, monospace; margin-top: 8px; }

/* ---------- Breathe ---------- */
.breath-hero { position: relative; display: grid; place-items: center; min-height: 280px; margin: 8px 0 4px; text-align: center; }
.breath-ring {
  position: absolute; left: 50%; top: 46%; width: min(230px, 68vw); height: min(230px, 68vw);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, color-mix(in srgb, var(--shell-soft) 80%, white), transparent 42%), radial-gradient(circle at 50% 58%, var(--water), var(--tide));
  transform: translate(-50%, -50%) scale(.72); transition: transform 6s ease-in-out;
}
.breath-hero.is-in .breath-ring { transform: translate(-50%, -50%) scale(1); transition-duration: 4s; }
.breath-word { position: relative; font-family: var(--serif); font-size: clamp(3rem, 14vw, 4rem); line-height: 1; margin: 0; color: var(--ink); transition: color .6s ease; }
.breath-word.is-out { color: var(--tide); }
.breath-count { position: relative; color: var(--muted); font-size: .92rem; margin: 8px 0 0; }

/* ---------- Cosmos ---------- */
.twinkle { animation: twinkle 3.6s ease-in-out infinite; }
.reflection { transition: transform 1.8s cubic-bezier(.3, .6, .2, 1); opacity: .5; }
.shimmer { animation: shimmer 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes shimmer { 0%, 100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(1.03); opacity: .6; } }

.sky-transit { margin: 4px 0 14px; padding: 12px 14px; border-radius: 16px; background: rgba(247, 243, 234, .08); border: 1px solid rgba(247, 243, 234, .14); }
.sky-transit b { display: block; font-family: var(--serif); font-size: 1.08rem; font-weight: 600; color: #F7F3EA; margin: 6px 0 2px; }
.sky-transit p { font-size: .93rem; opacity: .88; }
.tone { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.tone.is-easy { background: rgba(141, 197, 192, .22); color: #A9DAD5; }
.tone.is-edge { background: rgba(232, 180, 164, .2); color: #F1C3B5; }
.sky-retro { font-size: .9rem; opacity: .85; margin-bottom: 12px; padding-left: 12px; border-left: 2px solid #D8B461; }
.lunar-open, .lunar-next { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; color: #F7F3EA; text-decoration: none; }
.lunar-open { padding: 12px 14px; border-radius: 16px; background: rgba(232, 180, 164, .18); border: 1px solid rgba(232, 180, 164, .4); }
.lunar-open b { display: block; }
.lunar-open small { display: block; opacity: .8; }
.lunar-open svg { width: 18px; height: 18px; margin-left: auto; }
.lunar-next { font-size: .93rem; opacity: .9; }
.lunar-glyph { font-size: 1.2rem; color: #F4EEDC; width: 22px; text-align: center; }
.sky-more { display: inline-flex; align-items: center; gap: 4px; color: #F7F3EA; font-weight: 700; font-size: .92rem; text-underline-offset: 3px; margin-top: 2px; position: relative; z-index: 1; }
.sky-more svg { width: 16px; height: 16px; }

/* ---------- Your sky page ---------- */
.wheel-card { border-radius: 28px; padding: 14px 10px 16px; background: linear-gradient(170deg, #141C3E, #2B2F5E); box-shadow: var(--shadow); }
.wheel-svg { display: block; width: 100%; height: auto; max-width: 420px; margin: 0 auto; }
.w-sign { fill: rgba(244, 238, 220, .75); font-size: 14px; font-family: 'Apple Symbols', 'Segoe UI Symbol', 'Noto Sans Symbols 2', serif; }
.w-sign.is-pisces { fill: #E8B4A4; }
.w-natal { fill: #F7F3EA; font-size: 15px; font-family: 'Apple Symbols', 'Segoe UI Symbol', 'Noto Sans Symbols 2', serif; }
.w-transit { fill: #E8B4A4; font-size: 13px; font-family: 'Apple Symbols', 'Segoe UI Symbol', 'Noto Sans Symbols 2', serif; }
.w-r { font-size: 7px; font-family: var(--sans); }
.w-angle { fill: #D8B461; font-size: 8px; font-weight: 700; font-family: var(--sans); }
.wheel-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 10px; font-size: .8rem; color: rgba(247, 243, 234, .8); }
.wheel-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wheel-legend i { width: 14px; height: 0; border-top: 2px solid; }
.wheel-legend .lg-natal { border-top-color: #F7F3EA; } .wheel-legend .lg-transit { border-top-color: #E8B4A4; }
.wheel-legend .lg-easy { border-top-color: #8DC5C0; } .wheel-legend .lg-edge { border-top-color: #E8B4A4; border-top-style: dashed; }
.moon-now { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); }
.moon-now b { display: block; }
.moon-now span { display: block; color: var(--muted); font-size: .94rem; }
.sky-glyph.big { font-size: 2rem; line-height: 1; color: var(--shell); margin: 0; }
.retro-note { margin-top: 10px; padding: 10px 14px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--gold) 14%, transparent); font-size: .94rem; }
.transit-list { display: grid; gap: 10px; }
.transit { padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); position: relative; }
.transit::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: var(--water); }
.transit.is-edge::before { background: var(--shell); }
.transit-top { display: flex; justify-content: space-between; align-items: center; }
.transit-glyphs { font-family: 'Apple Symbols', 'Segoe UI Symbol', serif; color: var(--muted); font-size: 1.05rem; }
.transit .tone.is-easy { background: color-mix(in srgb, var(--water) 22%, transparent); color: var(--tide); }
.transit .tone.is-edge { background: color-mix(in srgb, var(--shell) 30%, transparent); color: color-mix(in srgb, var(--shell) 50%, var(--ink)); }
.transit h3 { font-size: 1.15rem; margin: 6px 0 4px; }
.transit p { color: var(--muted); font-size: .95rem; }
.transit-advice { color: var(--ink) !important; font-weight: 700; margin-top: 8px; }
.transit-when { display: block; margin-top: 8px; font-size: .8rem; color: var(--muted); }
.lunar-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; margin-bottom: 10px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); text-decoration: none; }
.lunar-card b { display: block; }
.lunar-card small { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.lunar-card svg { width: 18px; height: 18px; margin-left: auto; align-self: center; flex: none; }
.lunar-card.is-open { background: linear-gradient(160deg, #1E2E48, #4B4677); color: #F7F3EA; border: 0; }
.lunar-card.is-open small { color: rgba(247, 243, 234, .8); }
.lunar-big { font-size: 1.6rem; line-height: 1; width: 26px; text-align: center; color: var(--shell); flex: none; }

/* ---------- Moon ritual (always night) ---------- */
body[data-page="ritual"] { background: radial-gradient(ellipse at 50% 0%, #3B3E66, #141C3E 55%, #0B1530); background-attachment: fixed; color: #EDEAF4; }
body[data-page="ritual"] .tabbar { display: none; }
.ritual { position: relative; min-height: 80vh; padding-top: 8px; }
.ritual-back { position: absolute; left: -8px; top: 0; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: #EDEAF4; border-radius: 50%; }
.ritual-back svg { width: 24px; height: 24px; }
.ritual-dots { display: flex; justify-content: center; gap: 6px; padding-top: 16px; margin-bottom: 30px; }
.ritual-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(237, 234, 244, .25); transition: background .6s; }
.ritual-dots i.on { background: #E8B4A4; }
.ritual-moon { text-align: center; font-size: 3rem; color: #F4EEDC; line-height: 1; margin: 10px 0 14px; text-shadow: 0 0 30px rgba(244, 238, 220, .5); }
.ritual-moon.big { font-size: 4.4rem; }
.ritual-kicker { text-align: center; color: #E8B4A4; font-weight: 700; }
.ritual-h { font-size: 2rem; text-align: center; margin: 8px 0 18px; color: #F7F3EA; }
.ritual-p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; text-align: center; margin-bottom: 14px; color: #EDEAF4; }
.ritual-p.soft { font-family: var(--sans); font-size: 1rem; opacity: .8; }
.ritual-quote { font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; text-align: center; font-style: italic; color: #F4EEDC; margin: 10px 8px 24px; }
.ritual-quote.big { font-size: 1.8rem; margin: 30px 8px 36px; }
.ritual-input { background: rgba(247, 243, 234, .08); border-color: rgba(247, 243, 234, .2); color: #F7F3EA; font-family: var(--serif); font-size: 1.15rem; margin: 10px 0 6px; }
.ritual-input::placeholder { color: rgba(237, 234, 244, .5); }
.ritual-chips { justify-content: center; margin: 4px 0 8px; }
.chip-moon { border-color: rgba(232, 180, 164, .5); color: #F7F3EA; font-weight: 500; }
.btn-moon { background: #E8B4A4; color: #1B2A3A; margin-top: 18px; }
.btn-ghost-light { background: transparent; color: rgba(237, 234, 244, .7); font-weight: 500; }
.ritual-orb { width: 150px; height: 150px; margin: 20px auto; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFF3D6, #E8B4A4 45%, rgba(232, 180, 164, 0) 72%); animation: orb 10s ease-in-out infinite; }
@keyframes orb { 0% { transform: scale(.55); } 40% { transform: scale(1); } 100% { transform: scale(.55); } }
.ritual-closed { text-align: center; padding-top: 30px; }
.ritual-closed h2 { font-size: 1.5rem; margin-bottom: 10px; }
body:not([data-page="ritual"]) .ritual-closed .ritual-moon { color: var(--shell); text-shadow: none; }
.release-wrap { position: relative; }
.release-stage { position: absolute; inset: 10px 0 6px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; padding: 8px 12px; font-family: var(--serif); font-size: 1.3rem; color: #F4EEDC; pointer-events: none; }
.release-stage span { display: inline-block; animation: rise 2.4s ease-in forwards; }
@keyframes rise { 0% { transform: none; opacity: 1; } 100% { transform: translateY(-160px) scale(.6); opacity: 0; filter: blur(2px); } }
body[data-page="ritual"] .muted { color: rgba(237, 234, 244, .75); }
body[data-page="ritual"] .ritual-closed h2 { color: #F7F3EA; }
body[data-page="ritual"] .btn-outline { border-color: rgba(237, 234, 244, .3); color: #F7F3EA; }
body[data-page="ritual"] .page-head .back { color: #EDEAF4; }
body[data-page="ritual"] .page-title { color: #F7F3EA; }

.moon-disc { display: block; width: 64px; height: 64px; border-radius: 50%; margin: 10px auto 18px; }
.moon-disc.big { width: 96px; height: 96px; }
.moon-disc.full { background: radial-gradient(circle at 38% 35%, #FFFBF0, #F4EEDC 55%, #E3D9C0); box-shadow: 0 0 40px rgba(244, 238, 220, .55); }
.moon-disc.new { background: radial-gradient(circle at 40% 35%, #232B55, #0E1530); box-shadow: 0 0 0 1.5px rgba(244, 238, 220, .45), 0 0 30px rgba(232, 180, 164, .35); }

.reveal-card { color: var(--ink); }
.reveal-card.is-cosmic { background: linear-gradient(165deg, #1E2E48, #3B3E66 60%, #5B4E7A); color: #F7F3EA; }
.reveal-card.is-cosmic .reveal-title, .reveal-card.is-cosmic .reveal-meta { color: rgba(247, 243, 234, .75); }
.reveal-card.is-cosmic .reveal-name { color: #F7F3EA; }
.reveal-card.is-cosmic .btn-primary { background: #E8B4A4; color: #1B2A3A; }

/* ---------- I am ---------- */
.affirm-card {
  display: block; margin-top: 22px; padding: 22px 20px; text-decoration: none;
  border-radius: 24px; text-align: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--shell) 32%, var(--surface)), color-mix(in srgb, var(--lav) 22%, var(--surface)));
  border: 1.5px solid color-mix(in srgb, var(--shell) 40%, var(--line));
}
.affirm-label { font-size: .82rem; color: var(--muted); font-weight: 700; }
.affirm-text { font-family: var(--serif); font-size: 1.45rem; line-height: 1.32; margin: 10px 4px 8px; }
.affirm-src { font-size: .8rem; color: var(--muted); }
.a-filters { margin: -4px 0 16px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-right: -20px; scrollbar-width: none; }
.a-filters::-webkit-scrollbar { display: none; }
.a-filters .chip { flex: none; font-weight: 500; }
.a-filters .chip.is-sel { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 700; }
.a-card {
  position: relative; min-height: 290px; padding: 24px 22px 26px; border-radius: 28px;
  display: flex; flex-direction: column; justify-content: center; text-align: center; overflow: hidden;
  background: radial-gradient(circle at 80% 10%, rgba(244, 238, 220, .25), transparent 40%), linear-gradient(165deg, #1E2E48, #3B3E66 60%, #5B4E7A);
  color: #F7F3EA; box-shadow: var(--shadow);
  transition: box-shadow 1.2s ease;
}
.a-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(1px 1px at 18% 24%, #fff, transparent), radial-gradient(1px 1px at 72% 70%, #fff, transparent), radial-gradient(1.2px 1.2px at 38% 86%, #fff, transparent), radial-gradient(1px 1px at 90% 38%, #fff, transparent); }
.a-top { position: absolute; top: 16px; left: 20px; right: 12px; display: flex; justify-content: space-between; align-items: center; }
.a-theme { font-size: .85rem; font-weight: 700; color: #E8B4A4; }
.a-fav { color: rgba(247, 243, 234, .7); font-size: 1.35rem; }
.a-fav.is-on { color: #E8B4A4; }
.a-text { font-family: var(--serif); font-size: 1.85rem; line-height: 1.3; margin: 26px 0 12px; position: relative; z-index: 1; }
.a-src { font-size: .82rem; color: rgba(247, 243, 234, .7); position: relative; z-index: 1; }
.a-card.a-in .a-text { animation: aIn .9s ease both; }
@keyframes aIn { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.a-card.is-speaking { box-shadow: 0 0 0 3px rgba(232, 180, 164, .6), 0 0 60px rgba(232, 180, 164, .45); }
.a-card.is-speaking .a-text { animation: glowText 4s ease-in-out; }
@keyframes glowText { 0% { text-shadow: none; } 50% { text-shadow: 0 0 22px rgba(255, 243, 214, .8); } 100% { text-shadow: none; } }
.a-count { margin-top: 14px; }
.a-stars { color: var(--shell); letter-spacing: 2px; }
.a-list { list-style: none; padding: 0; margin: 14px 0 0; }
.a-list li { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding: 12px 0; border-bottom: 1.5px solid var(--line); }
.a-list p { font-family: var(--serif); font-size: 1.08rem; }
.a-li-theme { font-size: .78rem; color: var(--muted); font-weight: 700; }
.seg-2 { grid-template-columns: repeat(2, 1fr); }
.adder select { flex: 1; }
.nudge-times b { width: 8.6rem; }

/* ---------- Dark mode fixes ---------- */
.reveal-card.letter { background: #F6F0E2; color: #3A3226; }
.reveal-card.letter .letter-text { color: #2C261D; }
.reveal-card.letter .reveal-title, .reveal-card.letter .reveal-meta { color: #7A6B55; }
.reveal-card.letter .btn-primary { background: #2F6B6A; color: #F7FAF9; }

/* ---------- Practices ---------- */
.goal { margin: 16px 0 6px; text-align: center; }
.goal-dots { display: flex; justify-content: center; gap: 8px; }
.goal-dots i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--tide); transition: background .6s; }
.goal-dots i.on { background: var(--tide); }
.goal-dots i.mark { box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 35%, transparent); }
.goal-dots i.rare { border-color: var(--gold); }
.goal-dots i.rare.on { background: var(--gold); }
.goal-msg { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.level-line { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; margin: 0 0 10px; font-size: .95rem; }
.level-line b { color: var(--ink); font-weight: 700; }
.level-line span { color: var(--muted); }
.shell-list { list-style: none; padding: 0; margin: 12px 0 0; }
.shell-list li + li { border-top: 1.5px solid var(--line); }
.shell-list button { width: 100%; text-align: left; background: none; border: 0; padding: 12px 0; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.shell-list span { color: var(--muted); font-size: .86rem; }
.practices { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.practice { display: flex; align-items: flex-start; gap: 4px; padding: 6px 12px 6px 4px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); transition: background .5s, border-color .5s; }
.practice.is-done { background: color-mix(in srgb, var(--water) 18%, var(--surface)); border-color: color-mix(in srgb, var(--tide) 40%, var(--line)); }
.p-tick { flex: none; width: 48px; height: 48px; border: 0; background: none; display: grid; place-items: center; }
.practice.is-done .tick { background: var(--tide); }
.practice.is-done .tick svg { opacity: 1; transform: none; }
.p-body { flex: 1; min-width: 0; text-align: left; border: 0; background: none; padding: 10px 0 8px; }
.p-body b { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.p-icon { font-family: 'Apple Symbols', 'Segoe UI Symbol', serif; color: var(--shell); width: 16px; text-align: center; }
.p-done { display: block; font-size: .88rem; color: var(--muted); line-height: 1.4; margin-top: 3px; padding-left: 24px; }
.p-why { display: block; font-size: .86rem; line-height: 1.45; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); margin-left: 24px; }
.p-why a { color: var(--tide); font-weight: 700; }
.practice.is-done .p-body b { text-decoration: line-through; text-decoration-color: var(--water); text-decoration-thickness: 2px; }

/* ---------- Incantation ---------- */
.inc-card { padding: 22px 20px; border-radius: 28px; margin-bottom: 26px; color: #F7F3EA; background: radial-gradient(circle at 85% 10%, rgba(244,238,220,.22), transparent 40%), linear-gradient(165deg, #141C3E, #3B3E66 60%, #5B4E7A); box-shadow: var(--shadow); }
.inc-label { font-size: .85rem; font-weight: 700; color: #E8B4A4; }
.inc-lines { list-style: none; padding: 0; margin: 14px 0 4px; display: grid; gap: 14px; }
.inc-lines p { font-family: var(--serif); font-size: 1.28rem; line-height: 1.3; }
.inc-lines span { font-size: .78rem; color: rgba(247,243,234,.65); }
.a-lib-h { margin-bottom: 12px; }
.inc-speak { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 28px 24px; background: radial-gradient(ellipse at 50% 0%, #3B3E66, #141C3E 55%, #0B1530); color: #F7F3EA; opacity: 0; transition: opacity .5s; }
.inc-speak.open { opacity: 1; }
.inc-stage { width: min(420px, 100%); text-align: center; }
.inc-cue { color: #E8B4A4; font-weight: 700; font-size: .92rem; }
.inc-line { font-family: var(--serif); font-size: 2.1rem; line-height: 1.25; margin: 24px 0 14px; outline: none; animation: aIn 1s ease both; }
.inc-src { font-size: .85rem; opacity: .65; }
.inc-dots { display: flex; justify-content: center; gap: 6px; margin: 24px 0 6px; }
.inc-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(247,243,234,.25); }
.inc-dots i.on { background: #E8B4A4; }

/* ---------- Sky: today + blueprint ---------- */
.sky-seg { margin: -6px 0 6px; }
.sky-seg .seg-btn { text-align: center; text-decoration: none; }
.day-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.day-card { padding: 16px 14px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); }
.dc-label { font-size: .78rem; font-weight: 700; color: var(--muted); }
.dc-big { display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1.1; color: var(--tide); margin: 4px 0; }
.dc-sgs { font-size: .85rem; color: var(--muted); }
.dc-sgs strong { color: var(--ink); }
.dc-note { font-size: .85rem; margin-top: 8px; line-height: 1.4; }
.w-house { fill: rgba(244, 238, 220, .45); font-size: 8px; font-family: var(--sans); font-weight: 700; }
.placements { margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.placements div { padding: 9px 0; border-bottom: 1.5px solid var(--line); }
.placements dt { font-weight: 700; font-size: .92rem; }
.placements dt span { font-family: 'Apple Symbols', 'Segoe UI Symbol', serif; color: var(--shell); display: inline-block; width: 20px; }
.placements dd { margin: 0; font-size: .86rem; color: var(--muted); padding-left: 20px; }
.hd-wrap { display: grid; gap: 14px; }
.hd-graph { max-width: 320px; width: 100%; margin: 0 auto; }
.hd-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.hd-graph { border-radius: var(--r-lg); padding: 10px 4px; background: linear-gradient(170deg, #141C3E, #2B2F5E); }
.bodygraph { display: block; width: 100%; height: auto; }
.bg-gates { fill: #FFF3D6; font-size: 11px; font-weight: 700; font-family: var(--sans); }
.hd-facts { margin: 0; }
.hd-facts div { padding: 6px 0; border-bottom: 1.5px solid var(--line); }
.hd-facts dt { font-size: .74rem; color: var(--muted); font-weight: 700; }
.hd-facts dd { margin: 0; font-size: .9rem; font-weight: 700; line-height: 1.3; }
.hd-notes { margin-top: 16px; display: grid; gap: 10px; }
.hd-notes p { font-size: .94rem; color: var(--muted); }
.hd-notes b { color: var(--ink); }
.open-h { font-size: 1.1rem; margin: 20px 0 8px; }
.open-list { list-style: none; padding: 0; margin: 0; }
.open-list li { padding: 10px 0; border-bottom: 1.5px solid var(--line); }
.open-list b { display: block; }
.open-list span { font-size: .92rem; color: var(--muted); }
.seq { padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); margin-bottom: 12px; }
.seq h3 { font-size: 1.2rem; }
.seq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.sphere { padding: 12px; border-radius: 12px; background: var(--surface-2); }
.sp-name { display: block; font-size: .76rem; font-weight: 700; color: var(--muted); }
.sphere b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--tide); }
.sp-sgs { display: block; font-size: .78rem; font-weight: 700; line-height: 1.3; }
.sp-note { display: block; font-size: .8rem; color: var(--muted); margin-top: 6px; line-height: 1.35; }
.lp-card { display: flex; gap: 16px; padding: 18px; border-radius: var(--r-lg); background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 20%, var(--surface)), var(--surface)); border: 1.5px solid color-mix(in srgb, var(--gold) 45%, var(--line)); }
.lp-num { font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--gold); }
.lp-card b { display: block; margin-bottom: 6px; }
.lp-card p { font-size: .92rem; margin-top: 4px; }
.lp-card p span { font-weight: 700; color: var(--gold); }
.num-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.num-row div { text-align: center; padding: 12px 6px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); }
.num-row b { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--tide); line-height: 1.1; }
.num-row span { display: block; font-size: .76rem; font-weight: 700; }
.num-row small { display: block; font-size: .76rem; color: var(--muted); }
@media (max-width: 360px) { .hd-wrap { grid-template-columns: 1fr; } }
.p-why[hidden] { display: none; }

/* ---------- Sky calendar ---------- */
.sky-seg { grid-template-columns: repeat(3, 1fr); }
.cal-filters { margin: 4px 0 8px; }
.cal-filters .chip.is-sel { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cal-month { margin-top: 22px; }
.cal-month h2 { font-size: 1.2rem; margin-bottom: 8px; }
.cal-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cal-item { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); }
.cal-item.is-big { border-color: color-mix(in srgb, var(--shell) 55%, var(--line)); }
.cal-item.kind-eclipse, .cal-item.kind-birthday { background: linear-gradient(160deg, #1E2E48, #4B4677); color: #F7F3EA; border: 0; }
.cal-item.kind-eclipse p, .cal-item.kind-birthday p { color: rgba(247, 243, 234, .8); }
.cal-item.kind-eclipse .cal-date span, .cal-item.kind-birthday .cal-date span { color: rgba(247, 243, 234, .7); }
.cal-item.kind-sabbat { background: color-mix(in srgb, var(--gold) 14%, var(--surface)); }
.cal-date { flex: none; width: 38px; text-align: center; }
.cal-date b { display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1; }
.cal-date span { font-size: .72rem; color: var(--muted); font-weight: 700; }
.cal-body { min-width: 0; }
.cal-body b { display: block; font-size: .98rem; }
.cal-icon { display: inline-block; width: 20px; color: var(--shell); font-family: 'Apple Symbols', 'Segoe UI Symbol', serif; }
.cal-body p { font-size: .88rem; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.cal-link { display: inline-block; margin-top: 6px; font-size: .88rem; font-weight: 700; color: var(--tide); }
.kind-eclipse .cal-link, .kind-birthday .cal-link { color: #E8B4A4; }
.cal-big-only .cal-item:not(.is-big) { display: none; }

/* ---------- Sabbats ---------- */
.sabbat-hero { padding: 22px 20px; border-radius: 26px; background: color-mix(in srgb, var(--s-m) 20%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--s-m) 60%, var(--line)); }
.sb-meaning { font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; }
.sb-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.checklist { list-style: none; padding: 0; margin: 0; border-top: 1.5px solid var(--line); }
.checklist li { border-bottom: 1.5px solid var(--line); }
.checklist label { display: flex; gap: 12px; align-items: center; padding: 12px 2px; cursor: pointer; }
.checklist input { width: 22px; height: 22px; flex: none; accent-color: var(--tide); -webkit-appearance: checkbox; appearance: auto; padding: 0; }
.sb-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sb-step { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 14px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); font-size: .98rem; line-height: 1.45; }
.sb-step .tick { flex: none; margin-top: 1px; }
.sb-steps li.is-done .sb-step { background: color-mix(in srgb, var(--water) 18%, var(--surface)); }
.sb-steps li.is-done .tick { background: var(--tide); }
.sb-steps li.is-done .tick svg { opacity: 1; transform: none; }
.sb-cards { display: grid; gap: 8px; }
.sb-card { padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); }
.sb-card span { font-size: .78rem; font-weight: 700; color: var(--muted); }
.sb-card p { font-family: var(--serif); font-size: 1.15rem; line-height: 1.35; margin-top: 4px; }
.sb-blessing { background: linear-gradient(160deg, #1E2E48, #4B4677); border: 0; color: #F7F3EA; }
.sb-blessing span { color: #E8B4A4; }
.sb-done { text-align: center; font-weight: 700; color: var(--tide); margin-top: 12px; }
.yr-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1.5px solid var(--line); }
.yr-row b, .yr-row .small-t { display: block; }
.yr-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }

/* ---------- Pool banners ---------- */
.sabbat-banner, .scroll-banner { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r-md); text-decoration: none; }
.sabbat-banner { background: color-mix(in srgb, var(--s-m) 20%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--s-m) 60%, var(--line)); margin: 0 0 14px; }
.scroll-banner { background: var(--surface); border: 1.5px dashed color-mix(in srgb, var(--tide) 50%, var(--line)); }
.sabbat-banner b, .scroll-banner b { display: block; }
.sabbat-banner small, .scroll-banner small { display: block; color: var(--muted); font-size: .86rem; }
.sabbat-banner svg, .scroll-banner svg { width: 18px; height: 18px; margin-left: auto; flex: none; color: var(--muted); }
.sb-glyph { font-size: 1.5rem; color: var(--s-m); }

/* ---------- Scroll check ---------- */
.sc-inputs { display: grid; gap: 10px; margin: 14px 0 4px; }
.sc-inputs label { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; }
.sc-field { display: flex; align-items: center; gap: 6px; }
.sc-field input { width: 76px; text-align: center; padding: 10px 8px; }
.sc-field i { font-style: normal; color: var(--muted); font-weight: 500; }
.sc-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 150px; margin-top: 20px; padding-bottom: 4px; }
.sc-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.sc-bar { width: 70%; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--shell), color-mix(in srgb, var(--shell) 60%, var(--tide))); }
.sc-bar.is-none { background: var(--line); height: 3px !important; }
.sc-v { font-size: .72rem; font-weight: 700; color: var(--muted); }
.sc-col b { font-size: .78rem; }
.sc-stars { font-size: .5rem; color: var(--gold); letter-spacing: 1px; min-height: .8em; }
.sc-insight { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-md); background: color-mix(in srgb, var(--water) 16%, var(--surface)); display: grid; gap: 8px; font-size: .94rem; }
.sc-empty { margin-top: 12px; }

/* ---------- Venus retrograde ---------- */
.venus-banner { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r-md); text-decoration: none;
  background: color-mix(in srgb, var(--shell) 24%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--shell) 60%, var(--line)); }
.venus-banner b, .venus-banner small { display: block; }
.venus-banner small { color: var(--muted); font-size: .86rem; }
.venus-banner svg { width: 18px; height: 18px; margin-left: auto; flex: none; color: var(--muted); }
.v-glyph { font-family: 'Apple Symbols', 'Segoe UI Symbol', serif; font-size: 1.5rem; color: var(--shell); }
.venus-hero { padding: 22px 20px; border-radius: 28px; color: #F7F3EA;
  background: radial-gradient(circle at 80% 8%, rgba(232,180,164,.35), transparent 45%), linear-gradient(165deg, #2B2246, #4A3357 55%, #7A4C56); }
.v-phase { font-size: .82rem; font-weight: 700; color: #F0C4B6; }
.venus-hero h2 { font-size: 1.7rem; margin: 4px 0 10px; }
.venus-hero p { font-size: .96rem; line-height: 1.5; opacity: .92; }
.v-bar { height: 8px; border-radius: 999px; background: rgba(247,243,234,.18); margin-top: 18px; overflow: hidden; }
.v-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #E8B4A4, #F4EEDC); }
.v-bar-ends { display: flex; justify-content: space-between; font-size: .76rem; opacity: .7; margin-top: 6px; }
.v-dates { list-style: none; padding: 0; margin: 0; }
.v-dates li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1.5px solid var(--line); }
.v-dates li.is-past { opacity: .5; }
.v-dates li.is-today { background: color-mix(in srgb, var(--shell) 18%, transparent); border-radius: 12px; padding: 12px 10px; }
.v-date { flex: none; width: 58px; font-weight: 700; font-size: .86rem; color: var(--shell); padding-top: 2px; }
.v-dates b { display: block; }
.v-dates span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.v-lists { display: grid; gap: 10px; }
.v-list { padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); }
.v-list h3 { font-size: 1.1rem; margin-bottom: 8px; }
.v-list.is-do { border-color: color-mix(in srgb, var(--tide) 45%, var(--line)); }
.v-list.is-wait { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.v-list ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .93rem; color: var(--muted); }
.v-prompts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.v-prompts li { padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); }
.v-prompts li.is-locked { opacity: .55; }
.v-prompts b { font-size: .8rem; color: var(--muted); }
.v-prompts p { font-family: var(--serif); font-size: 1.15rem; line-height: 1.35; margin: 4px 0 8px; }
.v-review-done { padding: 16px; border-radius: var(--r-md); background: color-mix(in srgb, var(--shell) 18%, var(--surface)); }

/* ---------- Sit ---------- */
.sit-cta {
  display: block; margin: 22px 0 0; padding: 16px 18px;
  border-radius: var(--r-lg); text-decoration: none;
  background: var(--surface); border: 1.5px solid var(--line);
}
.sit-cta b { display: block; font-family: var(--serif); font-size: 1.22rem; font-weight: 600; }
.sit-cta small { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.sit-orb {
  width: 168px; height: 168px; margin: 28px auto 10px; border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, color-mix(in srgb, var(--shell-soft) 80%, white), transparent 42%),
    radial-gradient(circle at 50% 58%, var(--water), var(--tide));
  box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--tide) 70%, transparent);
  animation: sit-breath 11s ease-in-out infinite;
}
.sit-orb.is-idle, .sit-orb.is-paused { animation: none; transform: scale(.86); }
.sit-ride { text-align: center; padding-top: 8px; }
.sit-phase { font-family: var(--serif); font-size: 2rem; line-height: 1.1; margin: 8px 0 0; }
.sit-line { font-family: var(--serif); font-size: 1.15rem; line-height: 1.4; min-height: 4.2em; margin: 10px 8px 0; color: var(--muted); }
.sit-time { font-family: var(--serif); font-size: 2.8rem; font-variant-numeric: tabular-nums; line-height: 1; margin: 4px 0 0; }
.sit-done { text-align: center; font-family: var(--serif); font-size: 1.2rem; margin: 0 0 8px; }
.sit-week { display: flex; justify-content: space-between; gap: 6px; margin: 22px 0 8px; }
.sit-day { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; color: var(--muted); font-size: .78rem; }
.sit-day i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; }
.sit-day.is-sat i { background: var(--tide); border-color: var(--tide); }
.sit-day.is-today b { color: var(--ink); }
#chime { display: flex; width: fit-content; margin: 14px auto 0; }
.sit-week + .small-t strong, .center.small-t strong { color: var(--ink); }
@keyframes sit-breath { 0%, 100% { transform: scale(.72); } 50% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .sit-orb { animation: none; transform: none; }
}
