/* Astrogram design system — soft cinematic astrology */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #f7f3ee;
  --bg-2: #fcfaf7;
  --ink: #1d1b2f;
  --ink-2: #5c596e;
  --ink-3: #9794a6;
  --ink-4: #c3c0cc;
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #fffdfb;
  --line: rgba(29, 27, 47, 0.08);
  --line-2: rgba(29, 27, 47, 0.14);
  --peach: #ffb45c; --coral: #ff8a80; --blush: #ffb3c7; --magenta: #ff7fb0;
  --lavender: #c9b8ff; --lilac: #d9c8ff; --violet: #a98bff; --powder: #9fd3ff; --cyan: #8de0ff; --peri: #c6ccff;
  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --r-lg: 28px; --r-md: 20px; --r-sm: 14px;
  --shadow: 0 10px 30px rgba(60, 40, 80, 0.07), 0 1px 2px rgba(60, 40, 80, 0.04);
  --shadow-lift: 0 18px 40px rgba(60, 40, 80, 0.12), 0 2px 4px rgba(60, 40, 80, 0.05);
  --dock-h: 72px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100%; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(201, 184, 255, 0.5); }

/* ambient web backdrop (desktop) */
.backdrop { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.backdrop span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; animation: drift 28s ease-in-out infinite alternate; }
.backdrop span:nth-child(1) { width: 60vmax; height: 60vmax; left: -20vmax; top: -10vmax; background: radial-gradient(circle, #ffd1a6, transparent 65%); }
.backdrop span:nth-child(2) { width: 55vmax; height: 55vmax; right: -15vmax; top: 20vmax; background: radial-gradient(circle, #d6c6ff, transparent 65%); animation-delay: -9s; }
.backdrop span:nth-child(3) { width: 50vmax; height: 50vmax; left: 20vmax; bottom: -25vmax; background: radial-gradient(circle, #b9e2ff, transparent 65%); animation-delay: -18s; }

#app {
  position: relative; z-index: 1; min-height: 100dvh; display: flex; flex-direction: column;
  max-width: 480px; margin: 0 auto; background: var(--bg);
}
@media (min-width: 760px) {
  body { background: #f3eee9; }
  #app { max-width: 430px; min-height: 0; height: min(900px, calc(100dvh - 48px)); margin: 24px auto; border-radius: 44px; overflow: hidden; box-shadow: 0 30px 80px rgba(50, 30, 70, 0.18), 0 0 0 1px rgba(255,255,255,0.6) inset; }
  #view { overflow-y: auto; }
}

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 20; padding: calc(var(--sat) + 10px) 16px 8px;
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  background: rgba(247, 243, 238, 0.94);
}
.topbar .wordmark { font-family: var(--serif); font-size: 30px; letter-spacing: -0.01em; text-align: center; line-height: 1; position: relative; display: inline-block; justify-self: center; }
.topbar .wordmark .star { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); width: 10px; height: 10px; }
.topbar .title { font-family: var(--sans); font-weight: 500; font-size: 16px; text-align: center; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); transition: background 0.2s var(--ease), transform 0.2s var(--ease); }
.icon-btn:active { background: rgba(29, 27, 47, 0.06); transform: scale(0.94); }
.icon-btn svg { width: 22px; height: 22px; }

/* chip tabs */
.chips { display: flex; gap: 6px; padding: 4px 16px 10px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--ink-3);
  background: transparent; border: 1px solid transparent; transition: all 0.25s var(--ease); white-space: nowrap;
}
.chip.active { background: var(--card-solid); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.chips.wrap { flex-wrap: wrap; justify-content: center; overflow: visible; padding: 0 0 14px; }
.chip.filter { background: var(--card); border-color: var(--line); color: var(--ink-2); }
.chip.filter.active { background: linear-gradient(135deg, #cfe3ff, #e4d6ff); color: var(--ink); }

/* views */
#view { flex: 1; position: relative; padding-bottom: calc(var(--dock-h) + var(--sab) + 28px); }
.screen { padding: 4px 16px 24px; animation: screen-in 0.42s var(--ease) both; }
.screen.sheet-like { animation: sheet-in 0.42s var(--ease) both; }
@keyframes screen-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sheet-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(4%, -5%, 0) scale(1.08); } }

/* typography */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; margin: 0; }
h1 { font-size: 34px; line-height: 1.12; }
h2 { font-size: 26px; line-height: 1.15; }
h3 { font-size: 20px; line-height: 1.2; }
.lede { color: var(--ink-2); font-size: 14px; }
.micro { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.page-head { text-align: center; padding: 14px 8px 18px; }
.page-head h1 { font-size: 30px; }
.page-head .lede { margin-top: 6px; max-width: 300px; margin-inline: auto; }
p { margin: 0; }
.body-copy { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.body-copy + .body-copy { margin-top: 10px; }

/* cards */
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow); padding: 16px; overflow: hidden; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card.lg { border-radius: var(--r-lg); padding: 20px; }
.card.tap:active { transform: translateY(1px) scale(0.995); box-shadow: var(--shadow); }
.card.tap { cursor: pointer; }
.card-glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(22px); opacity: 0.85; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.section { margin-top: 22px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; padding: 0 4px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

/* list rows */
.row {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow); cursor: pointer; transition: transform 0.2s var(--ease);
}
.row:active { transform: scale(0.985); }
.row .text { flex: 1; min-width: 0; }
.row .t { font-weight: 500; font-size: 14.5px; }
.row .s { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.row .meta { text-align: right; color: var(--ink-3); font-size: 12px; line-height: 1.35; }
.chev { color: var(--ink-4); flex: 0 0 auto; }

/* aura orb (small) */
.orb { position: relative; width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
  background: radial-gradient(circle at 35% 35%, var(--c1), var(--c2) 60%, transparent 72%); filter: blur(0.5px); }
.orb::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; background: radial-gradient(circle, var(--c2), transparent 70%); opacity: 0.45; filter: blur(6px); z-index: -1; }
.orb.md { width: 48px; height: 48px; }
.orb.xl { width: 120px; height: 120px; }

/* the Astrogram Aura */
.aura { position: relative; width: 240px; height: 240px; margin: 0 auto; pointer-events: none; }
.aura i { position: absolute; border-radius: 50%; filter: blur(26px); opacity: 0.9; mix-blend-mode: multiply; will-change: transform; }
.aura i:nth-child(1) { width: 62%; height: 62%; left: 10%; top: 8%; background: radial-gradient(circle, var(--c1), transparent 68%); animation: aura-a 11s ease-in-out infinite alternate; }
.aura i:nth-child(2) { width: 66%; height: 66%; right: 6%; top: 22%; background: radial-gradient(circle, var(--c2), transparent 68%); animation: aura-b 14s ease-in-out infinite alternate; }
.aura i:nth-child(3) { width: 58%; height: 58%; left: 22%; bottom: 6%; background: radial-gradient(circle, var(--c3), transparent 68%); animation: aura-c 17s ease-in-out infinite alternate; }
.aura i:nth-child(4) { width: 46%; height: 46%; left: 30%; top: 28%; background: radial-gradient(circle, var(--c4), transparent 70%); animation: aura-d 9s ease-in-out infinite alternate; opacity: 0.7; }
.aura .star { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 22%; height: 22%; filter: drop-shadow(0 0 14px rgba(255,255,255,0.9)); animation: star-breathe 6s ease-in-out infinite; }
.aura.sm { width: 150px; height: 150px; }
.aura.sm i { filter: blur(16px); }
.aura.lg { width: 300px; height: 300px; }
.aura.bg { position: absolute; inset: -20% -10% auto; width: auto; height: 120%; margin: 0; z-index: 0; }
@keyframes aura-a { from { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(6%, 5%, 0) scale(1.08); } to { transform: translate3d(-3%, 7%, 0) scale(0.98); } }
@keyframes aura-b { from { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-7%, -4%, 0) scale(1.06); } to { transform: translate3d(4%, -8%, 0) scale(1.1); } }
@keyframes aura-c { from { transform: translate3d(0,0,0) scale(1.02); } 50% { transform: translate3d(5%, -6%, 0) scale(0.95); } to { transform: translate3d(-6%, 3%, 0) scale(1.08); } }
@keyframes aura-d { from { transform: scale(0.92); opacity: 0.5; } to { transform: scale(1.12); opacity: 0.8; } }
@keyframes star-breathe { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.95; } 50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .aura i, .aura .star, .backdrop span { animation: none !important; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  font-weight: 500; font-size: 14px; color: var(--ink); background: var(--card-solid); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: linear-gradient(90deg, #ffd3b3, #f3c4ff 55%, #bfd8ff); border-color: transparent; }
.btn.ghost { background: transparent; box-shadow: none; border-color: var(--line-2); }
.btn.block { width: 100%; }
.btn.sm { padding: 9px 16px; font-size: 13px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.link { font-size: 13px; font-weight: 500; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }

/* tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 7px 12px; border-radius: 999px; background: var(--card-solid); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }

/* energy bars */
.bar { height: 6px; border-radius: 999px; background: rgba(29, 27, 47, 0.06); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c1), var(--c2)); transform-origin: left; animation: bar-in 1.2s var(--ease) both; }
@keyframes bar-in { from { transform: scaleX(0); } }
.energy-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; margin-bottom: 10px; }
.energy-row .lbl { font-size: 12.5px; font-weight: 500; }
.energy-row .val { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.energy-row .bar { grid-column: 1 / -1; }

/* tabs (segmented) */
.seg { display: flex; background: rgba(29, 27, 47, 0.05); border-radius: 999px; padding: 3px; margin: 14px 0; }
.seg button { flex: 1; padding: 8px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-3); transition: all 0.25s var(--ease); }
.seg button.active { background: var(--card-solid); color: var(--ink); box-shadow: var(--shadow); }

/* dock */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; pointer-events: none;
  padding: 0 14px calc(var(--sab) + 10px);
}
@media (min-width: 760px) { .dock { position: absolute; } }
.dock-inner {
  pointer-events: auto; width: 100%; max-width: 420px; height: var(--dock-h); display: grid; grid-template-columns: 1fr 1fr 76px 1fr 1fr; align-items: center;
  background: rgba(255, 253, 251, 0.78); border: 1px solid rgba(255,255,255,0.8); border-radius: 30px; box-shadow: var(--shadow-lift);
  backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
}
.dock-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink-3); font-size: 10.5px; font-weight: 500; height: 100%; justify-content: center; transition: color 0.2s; }
.dock-btn svg { width: 22px; height: 22px; stroke-width: 1.5; }
.dock-btn.active { color: var(--ink); }
.dock-center { display: grid; place-items: center; height: 100%; }
.dock-orb { position: relative; width: 56px; height: 56px; border-radius: 50%; transform: translateY(-14px); transition: transform 0.25s var(--ease); }
.dock-orb:active { transform: translateY(-14px) scale(0.94); }
.dock-orb .aura { width: 100%; height: 100%; }
.dock-orb .aura i { filter: blur(5px); mix-blend-mode: normal; opacity: 1; }
.dock-orb .aura i:nth-child(4) { opacity: 0.9; }
.dock-orb::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffd9b8, #e8c8ff 55%, #bfe0ff 100%); }
.dock-orb .ring { position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 10px 24px rgba(180, 140, 255, 0.35); }

/* home hero */
.hero { position: relative; text-align: center; padding: 8px 0 6px; }
.hero .meta-l, .hero .meta-r { position: absolute; top: 18px; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); line-height: 1.7; font-weight: 500; }
.hero .meta-l { left: 6px; text-align: left; }
.hero .meta-r { right: 6px; text-align: right; }
.hero h1 { margin-top: 2px; }
.hero .lede { margin: 8px auto 16px; max-width: 290px; }
.hero .spark { position: absolute; right: 24px; top: 46%; width: 14px; height: 14px; color: #ffb79a; animation: star-breathe 5s ease-in-out infinite; }

/* wheel */
.wheel { width: 100%; max-width: 340px; margin: 0 auto; display: block; }
.wheel .sign-text { font-size: 11px; fill: var(--ink-2); font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols', serif; }
.wheel .deg-text { font-size: 7px; fill: var(--ink-4); }
.wheel .planet { cursor: pointer; }
.wheel .planet text { font-size: 10px; fill: var(--ink); font-weight: 600; font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols', serif; }
.wheel .house-num { font-size: 7.5px; fill: var(--ink-4); }
.wheel .asp { stroke-width: 0.8; opacity: 0.55; stroke-linecap: round; animation: fade-in 1.4s ease both; }
.wheel .marker { animation: pop-in 0.8s var(--ease) both; transform-box: fill-box; transform-origin: center; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.4); } }

/* planet detail hero */
.detail-hero { text-align: center; padding: 8px 0 4px; position: relative; }
.detail-hero .aura { width: 200px; height: 200px; margin-bottom: -40px; }
.detail-hero h1 { font-size: 30px; }

/* houses grid */
.house-card { padding: 12px 10px; min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; }
.house-card .num { font-family: var(--serif); font-size: 24px; color: var(--ink-3); line-height: 1; }
.house-card .orb { position: absolute; right: 10px; top: 10px; width: 24px; height: 24px; opacity: 0.9; }
.house-card .name { font-weight: 500; font-size: 12px; margin-top: 10px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.house-card .kw { font-size: 10px; color: var(--ink-3); margin-top: 2px; line-height: 1.3; }

/* featured insight */
.feature { min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--ink); }
.feature .bg { position: absolute; inset: 0; z-index: 0; }
.feature .bg i { position: absolute; border-radius: 50%; filter: blur(34px); }
.feature > * { position: relative; z-index: 1; }
.feature .arrow { position: absolute; right: 16px; bottom: 16px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.75); display: grid; place-items: center; }

/* transit timeline */
.timeline { position: relative; padding: 6px 0 8px; height: 70px; margin: 4px 0 14px; }
.timeline .axis { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-2); }
.timeline .now { position: absolute; top: 10%; bottom: 10%; width: 1px; background: var(--ink-3); }
.timeline .dot { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--c1), var(--c2) 65%, transparent 75%); filter: blur(0.4px); }
.timeline .dot::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; background: radial-gradient(circle, var(--c2), transparent 70%); opacity: 0.5; z-index: -1; filter: blur(4px); }

/* chat */
.chat { display: flex; flex-direction: column; gap: 10px; padding: 6px 0 12px; }
.bubble { max-width: 86%; padding: 12px 15px; border-radius: 20px; font-size: 14.5px; line-height: 1.5; animation: screen-in 0.35s var(--ease) both; }
.bubble.me { align-self: flex-end; background: linear-gradient(135deg, #ffe0c9, #efd6ff); border-bottom-right-radius: 8px; }
.bubble.ai { align-self: flex-start; background: var(--card-solid); border: 1px solid var(--line); border-bottom-left-radius: 8px; box-shadow: var(--shadow); color: var(--ink-2); }
.bubble.ai .dots i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--ink-4); animation: blink 1.2s infinite; }
.bubble.ai .dots i:nth-child(2) { animation-delay: 0.2s; } .bubble.ai .dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
.ask-screen { padding-bottom: 8px; min-height: calc(100dvh - 120px); display: flex; flex-direction: column; }
.ask-screen .chat { flex: 1; padding-bottom: 12px; }
.composer { position: sticky; bottom: calc(var(--dock-h) + var(--sab) + 14px); z-index: 25; padding: 6px 0 0; background: linear-gradient(to top, var(--bg) 70%, rgba(247,243,238,0)); }
.composer form { width: 100%; display: flex; gap: 8px; align-items: center; background: rgba(255,253,251,0.96); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 16px; box-shadow: var(--shadow-lift); }
.composer input { flex: 1; border: 0; background: transparent; outline: none; font-size: 16px; min-width: 0; }
.composer button { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #ffcaa8, #d8c0ff); display: grid; place-items: center; flex: 0 0 auto; }
body.kb .dock { opacity: 0; pointer-events: none; }
body.kb .composer { bottom: calc(var(--kb, 0px) + 8px); }
.starters { display: flex; flex-direction: column; gap: 8px; }
.starters button { text-align: left; padding: 12px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); box-shadow: var(--shadow); }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 500; color: var(--ink-2); padding-left: 4px; }
.field .hint { font-size: 12px; color: var(--ink-3); padding-left: 4px; }
.input { width: 100%; padding: 13px 16px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--card-solid); outline: none; font-size: 16px; transition: box-shadow 0.2s; -webkit-appearance: none; appearance: none; }
.input:focus { box-shadow: 0 0 0 4px rgba(201, 184, 255, 0.35); border-color: var(--lavender); }
.input-row { display: flex; gap: 8px; }
.input-row .input { min-width: 0; }
input[type="date"].input, input[type="time"].input { min-height: 48px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.toggle .sw { position: relative; width: 44px; height: 26px; border-radius: 999px; background: rgba(29,27,47,0.12); transition: background 0.25s; flex: 0 0 auto; }
.toggle .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.25s var(--ease); }
.toggle.on .sw { background: linear-gradient(90deg, #ffc7a1, #c9b8ff); }
.toggle.on .sw::after { transform: translateX(18px); }
.suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: var(--card-solid); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lift); overflow: hidden; margin-top: 4px; }
.suggest button { display: block; width: 100%; text-align: left; padding: 11px 14px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.suggest button:last-child { border-bottom: 0; }
.suggest button .s { display: block; font-size: 11.5px; color: var(--ink-3); }
.notice { padding: 12px 14px; border-radius: 14px; background: rgba(255, 216, 180, 0.3); border: 1px solid rgba(255, 180, 120, 0.3); font-size: 13px; color: var(--ink-2); }

/* onboarding */
.onb { min-height: calc(100dvh - 40px); display: flex; flex-direction: column; justify-content: center; padding: 24px 24px 40px; text-align: center; }
@media (min-width: 760px) { .onb { min-height: 100%; } }
.onb h1 { font-size: 40px; }
.onb .lede { margin: 12px auto 28px; max-width: 300px; font-size: 15px; }
.onb form { text-align: left; }
.dots-nav { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.dots-nav i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); }
.dots-nav i.on { background: var(--ink); width: 18px; border-radius: 999px; }

/* sheet / modal */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(29, 27, 47, 0.25); z-index: 40; animation: fade-in 0.25s both; backdrop-filter: blur(4px); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; margin: 0 auto; max-width: 480px; background: var(--bg-2); border-radius: 28px 28px 0 0; padding: 12px 20px calc(var(--sab) + 24px); max-height: 88dvh; overflow-y: auto; animation: sheet-up 0.4s var(--ease) both; box-shadow: 0 -10px 40px rgba(60,40,80,0.15); }
.sheet .grab { width: 40px; height: 4px; border-radius: 999px; background: var(--ink-4); margin: 0 auto 14px; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 760px) { .sheet { max-width: 430px; border-radius: 28px; bottom: 40px; } }

/* meditation player */
.player { text-align: center; padding: 10px 0; }
.player .time { font-family: var(--serif); font-size: 56px; line-height: 1; margin: 10px 0 6px; font-variant-numeric: tabular-nums; }
.player .aura { transition: transform 4s ease-in-out; }
.player.breathing .aura { animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(0.9); } 50% { transform: scale(1.1); } }

/* misc */
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 13px; }
.kv .k { color: var(--ink-3); }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 500; background: rgba(201,184,255,0.3); color: var(--ink-2); }
.badge.tension { background: rgba(255, 170, 180, 0.3); }
.badge.flow { background: rgba(170, 220, 255, 0.35); }
.badge.blend { background: rgba(255, 210, 160, 0.35); }
.empty { text-align: center; color: var(--ink-3); padding: 30px 10px; font-size: 13.5px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--dock-h) + var(--sab) + 24px); transform: translateX(-50%); z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 13px; animation: screen-in 0.3s both; }
textarea.input { min-height: 120px; resize: vertical; border-radius: 16px; line-height: 1.5; }
.journal-entry { font-size: 13.5px; color: var(--ink-2); white-space: pre-wrap; }
.spin { width: 18px; height: 18px; border: 2px solid var(--ink-4); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* line glyphs */
.glyph { vertical-align: -3px; flex: 0 0 auto; }
h2 .glyph, .row .glyph { vertical-align: middle; }
