/* =====================================================================
   ORBIT · the ultimate witch planner · move with the moon, live your magick
   Two skies. Midnight: deep midnight blue, antique gold, candlelight and soft aura
   glows. Moonlight: moonlit parchment, cobalt ink, gold leaf and pastel auras.
   Bodoni Moda for headings, Cormorant Garamond italics, Jost for reading,
   Pinyon Script for the odd flourish. Every star, moon, orbit and frame is drawn here.
   ===================================================================== */
:root, [data-theme="midnight"] {
  --bg: #0B1029; --bg-2: #10173A; --panel: rgba(20, 27, 66, .82); --panel-solid: #141B42; --panel-2: #1B2456; --panel-3: #232D66;
  --ink: #F4EEE3; --ink-2: #CDD0EA; --ink-3: #A3A8D2; --line: rgba(175, 185, 242, .18); --line-2: rgba(175, 185, 242, .32);
  --gold: #D7B46A; --gold-ink: #E3C47F; --gold-line: rgba(215, 180, 106, .42); --gold-soft: rgba(215, 180, 106, .14);
  --peri: #AFB9F2; --cobalt: #4A5FD6; --pink: #F1C6DC; --rose-ink: #F4B9D4; --lilac: #C7B8EE; --teal: #9FD8D6; --butter: #F3E2B0;
  --good: #9FE0BE; --good-bg: rgba(159, 224, 190, .12); --warn: #F3D58A; --warn-bg: rgba(243, 213, 138, .12); --bad: #FFA7B6; --bad-bg: rgba(255, 167, 182, .12);
  --primary: #D7B46A; --on-primary: #12173A; --field: rgba(255, 255, 255, .05); --field-2: rgba(255, 255, 255, .09);
  --moon: #E7E0D0; --moon-hi: #FFFCF4; --moon-lo: #A9A293; --moon-dark: rgba(214, 220, 255, .07); --moon-glow: rgba(240, 232, 210, .14); --crater: rgba(60, 55, 45, .16);
  --aura1: rgba(122, 140, 255, .26); --aura2: rgba(241, 160, 205, .18); --aura3: rgba(120, 214, 210, .14); --star: #F6EFD9;
  --side-bg: rgba(8, 12, 34, .9); --shadow: 0 24px 48px -28px rgba(0, 0, 0, .8); --glow: 0 0 0 1px var(--gold-line), 0 0 22px -4px rgba(215, 180, 106, .45);
  --c1: #D7B46A; --c2: #AFB9F2; --c3: #F1A9CB; --c4: #8FD3CF; --c5: #C7B8EE; --c6: #F3E2B0;
  --f-disp: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif; --f-ital: 'Cormorant Garamond', 'Cormorant', Georgia, serif; --f-body: 'Jost', 'Futura', system-ui, -apple-system, 'Segoe UI', sans-serif; --f-script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --r: 16px; --r-sm: 11px; color-scheme: dark;
}
[data-theme="moonlight"] {
  --bg: #F4EEE3; --bg-2: #EEE5D6; --panel: rgba(255, 251, 243, .9); --panel-solid: #FFFBF3; --panel-2: #F7F0E3; --panel-3: #EFE6D6;
  --ink: #1D2869; --ink-2: #3B4381; --ink-3: #555B8E; --line: rgba(43, 60, 155, .14); --line-2: rgba(43, 60, 155, .28);
  --gold: #A27A35; --gold-ink: #7A571B; --gold-line: rgba(162, 122, 53, .45); --gold-soft: rgba(162, 122, 53, .1);
  --peri: #7F8EE0; --cobalt: #2B3C9B; --pink: #F2C7DD; --rose-ink: #9A2C60; --lilac: #B9A8E6; --teal: #7EC7C4; --butter: #F3E2B0;
  --good: #1D6B47; --good-bg: #DDF0E5; --warn: #7D5300; --warn-bg: #FBEFD3; --bad: #A8273A; --bad-bg: #FBE1E5;
  --primary: #2B3C9B; --on-primary: #FFFBF3; --field: #FFFDF8; --field-2: #F7F0E3;
  --moon: #E9E2D2; --moon-hi: #FFFFFF; --moon-lo: #B7AF9E; --moon-dark: rgba(43, 60, 155, .12); --moon-glow: rgba(43, 60, 155, .06); --crater: rgba(60, 55, 45, .14);
  --aura1: rgba(127, 142, 224, .26); --aura2: rgba(242, 160, 200, .3); --aura3: rgba(126, 199, 196, .22); --star: #B4924F;
  --side-bg: rgba(250, 245, 236, .94); --shadow: 0 22px 40px -28px rgba(29, 40, 105, .45); --glow: 0 0 0 1px var(--gold-line), 0 0 20px -6px rgba(162, 122, 53, .5);
  --c1: #A27A35; --c2: #2B3C9B; --c3: #C2457F; --c4: #2F8C88; --c5: #6E5BB8; --c6: #C79A3B;
  color-scheme: light;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: radial-gradient(1200px 800px at 85% -10%, var(--bg-2), transparent 70%), var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; min-height: 100vh; }
img { max-width: 100%; display: block; }
a { color: var(--gold-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0; color: var(--ink); font-family: var(--f-disp); font-weight: 500; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold-ink); font-weight: 400; }
h3 { font-size: 19px; } p { margin: .45rem 0; }
.small { font-size: 14px; } .muted { color: var(--ink-2); } .num { font-variant-numeric: tabular-nums lining-nums; } .pre { white-space: pre-wrap; } .grow { flex: 1; min-width: 0; } .center { text-align: center; justify-content: center; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.boot { display: grid; place-items: center; min-height: 100vh; font: italic 400 72px var(--f-disp); color: var(--gold-ink); letter-spacing: .02em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
kbd { font: 500 12.5px var(--f-body); background: var(--panel-2); border: 1px solid var(--gold-line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; }
.kick { display: inline-flex; align-items: center; gap: 6px; font: italic 500 19px/1.2 var(--f-ital); color: var(--gold-ink); letter-spacing: .01em; }
.label { display: block; font: 500 11px var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.script { font-family: var(--f-script); font-weight: 400; color: var(--gold-ink); }
.error-text { color: var(--bad); font-weight: 600; } .ok { color: var(--good); }
::selection { background: var(--gold); color: var(--on-primary); }

/* ---------- The night sky behind everything ---------- */
#sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#sky .aura { position: absolute; border-radius: 50%; filter: blur(60px); }
#sky .a1 { width: 60vw; height: 60vw; left: -18vw; top: 30vh; background: radial-gradient(closest-side, var(--aura1), transparent); animation: drift 38s ease-in-out infinite alternate; }
#sky .a2 { width: 46vw; height: 46vw; right: -12vw; top: -14vw; background: radial-gradient(closest-side, var(--aura2), transparent); animation: drift 46s ease-in-out infinite alternate-reverse; }
#sky .a3 { width: 40vw; height: 40vw; right: 10vw; bottom: -18vw; background: radial-gradient(closest-side, var(--aura3), transparent); animation: drift 52s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(4vw, -3vh) scale(1.08); } }
#sky .st { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: var(--star); opacity: .5; animation: twinkle var(--d, 4s) ease-in-out var(--w, 0s) infinite alternate; }
#sky .st.big { width: 3px; height: 3px; box-shadow: 0 0 6px var(--star); }
[data-theme="moonlight"] #sky .st { opacity: .35; }
@keyframes twinkle { 0% { opacity: .12; transform: scale(.7); } 100% { opacity: .85; transform: scale(1.2); } }
#sky .orbits { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--gold-line); stroke-width: 1; stroke-dasharray: 2 7; vector-effect: non-scaling-stroke; opacity: .55; }
#sky .orbits ellipse { vector-effect: non-scaling-stroke; }
.plain #sky .st, .plain #sky .orbits { display: none; }

/* ---------- Ornaments ---------- */
.spk { display: inline-block; width: 18px; height: 18px; fill: var(--gold); vertical-align: middle; }
.orn { display: flex; align-items: center; gap: 12px; color: var(--gold); margin: 18px 0; }
.orn i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-line), transparent); }
.orn span { display: inline-flex; gap: 7px; align-items: center; font-size: 10px; letter-spacing: 0; } .orn span b { font-weight: 400; opacity: .85; } .orn span b.big { font-size: 15px; opacity: 1; }
.tg { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font: 500 12px/1.6 var(--f-body); letter-spacing: .02em; border: 1px solid var(--line-2); color: var(--ink); background: var(--field); white-space: nowrap; }
.tg .ic { width: 13px; height: 13px; }
.tg.gold { border-color: var(--gold-line); color: var(--gold-ink); background: var(--gold-soft); }
.tg.pink, .tg.rose { border-color: color-mix(in srgb, var(--pink) 55%, transparent); color: var(--rose-ink); background: color-mix(in srgb, var(--pink) 14%, transparent); }
.tg.lilac { border-color: color-mix(in srgb, var(--lilac) 60%, transparent); color: var(--ink); background: color-mix(in srgb, var(--lilac) 16%, transparent); }
.tg.green { border-color: color-mix(in srgb, var(--teal) 60%, transparent); color: var(--ink); background: color-mix(in srgb, var(--teal) 15%, transparent); }
.tg.ink { border-color: var(--line-2); background: var(--panel-3); }
.tg.soft { border-style: dashed; }

/* ---------- Panels and arches ---------- */
.panel { position: relative; background: var(--panel); border: 1px solid var(--gold-line); border-radius: var(--r); padding: 22px 24px 22px; margin-bottom: 20px; min-width: 0; box-shadow: var(--shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.panel::before { content: ''; position: absolute; inset: 5px; border: 1px solid var(--line); border-radius: calc(var(--r) - 4px); pointer-events: none; }
.panel .pc { position: absolute; width: 11px; height: 11px; background: var(--gold); clip-path: path('M5.5 0C5.9 3.2 7.8 5.1 11 5.5 7.8 5.9 5.9 7.8 5.5 11 5.1 7.8 3.2 5.9 0 5.5 3.2 5.1 5.1 3.2 5.5 0Z'); }
.pc.tl { left: -5.5px; top: -5.5px; } .pc.tr { right: -5.5px; top: -5.5px; } .pc.bl { left: -5.5px; bottom: -5.5px; } .pc.br { right: -5.5px; bottom: -5.5px; }
.panel-h { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 12px; margin-bottom: 14px; }
.panel-h .kick { flex-basis: 100%; font-size: 17px; }
.panel-h h2 { font: 500 26px/1.1 var(--f-disp); flex: 1; min-width: 0; }
.panel-act { display: flex; gap: 6px; flex-wrap: wrap; }
.panel-b { position: relative; min-width: 0; }
.arch { position: relative; border: 1px solid var(--gold-line); border-radius: 999px 999px 16px 16px; padding: 10px; background: var(--panel); min-width: 0; }
.arch::before { content: ''; position: absolute; inset: 5px; border: 1px solid var(--line); border-radius: 999px 999px 12px 12px; pointer-events: none; }
.arch-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 14px 16px; }
.arch .spk { position: absolute; width: 14px; height: 14px; } .arch-s1 { left: 10%; top: 26%; } .arch-s2 { right: 10%; top: 26%; width: 9px !important; height: 9px !important; }
.arch-l { position: absolute; left: 50%; top: -11px; transform: translateX(-50%); background: var(--bg); padding: 0 10px; font: italic 500 15px var(--f-ital); color: var(--gold-ink); white-space: nowrap; }
.sub-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 30px 0 14px; }
.sub-h h2 { font: 500 30px/1.05 var(--f-disp); } .sub-act { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 20px; border-radius: 999px; border: 1px solid var(--gold-line); background: var(--field); color: var(--ink); font: 500 14.5px var(--f-body); letter-spacing: .02em; cursor: pointer; text-decoration: none; transition: box-shadow .2s, background .2s, transform .1s; white-space: nowrap; }
.btn:hover { box-shadow: var(--glow); background: var(--field-2); } .btn:active { transform: translateY(1px); }
.btn.solid { background: var(--primary); color: var(--on-primary); border-color: var(--primary); font-weight: 600; }
.btn.solid:hover { box-shadow: 0 0 0 3px var(--gold-soft), 0 0 24px -4px var(--gold); }
.btn.ghost { border-color: transparent; background: transparent; } .btn.ghost:hover { border-color: var(--gold-line); box-shadow: none; background: var(--field); }
.btn.danger, .icon-btn.danger { color: var(--bad); } .btn.sm { min-height: 34px; padding: 4px 14px; font-size: 13.5px; gap: 6px; } .btn.big { min-height: 54px; padding: 10px 30px; font-size: 17px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; } .btn.busy, label.busy { opacity: .6; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid transparent; background: transparent; color: inherit; cursor: pointer; flex: none; text-decoration: none; }
.icon-btn.sm { width: 32px; height: 32px; } .icon-btn:hover { border-color: var(--gold-line); background: var(--field); } .icon-btn[disabled] { opacity: .3; } .icon-btn.armed { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
.icon-btn.flip .ic { transform: scaleX(-1); }
.link, .link-plain { background: none; border: 0; padding: 0; font: inherit; color: var(--gold-ink); cursor: pointer; text-align: left; }
.link { text-decoration: underline; text-underline-offset: 3px; } .link-plain { color: inherit; font-weight: 500; } .link-plain:hover { color: var(--gold-ink); }
.input { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--field); color: var(--ink); font: 15.5px var(--f-body); }
.input::placeholder { color: var(--ink-3); opacity: .85; }
.input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-soft); }
.input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }
.input.sm { min-height: 34px; padding: 4px 11px; font-size: 13.5px; width: auto; }
textarea.input { min-height: 74px; resize: vertical; line-height: 1.55; }
textarea.lined { background-image: repeating-linear-gradient(transparent 0 27px, var(--line) 27px 28px); line-height: 28px; padding-top: 4px; }
select.input { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
select.input option { background: var(--panel-solid); color: var(--ink); }
select.input.sm { padding-right: 30px; background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span:first-child { font: 500 11px var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.field small { font-size: 12.5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; } .form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .wide, .field.wide, .switch.wide, .form-grid .hint { grid-column: 1 / -1; }
.switch { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; } .switch input { width: 20px; height: 20px; accent-color: var(--gold); margin-top: 2px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip, .chip-btn { display: inline-flex; gap: 6px; align-items: center; padding: 5px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--field); color: var(--ink); font: 500 13.5px var(--f-body); cursor: pointer; text-decoration: none; }
.chip:has(input:checked), .chip-btn.on, .chip-btn[aria-pressed="true"] { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-ink); } .chip input { accent-color: var(--gold); }
.rating, .scale { display: flex; gap: 6px; flex-wrap: wrap; } .rate { position: relative; cursor: pointer; } .rate input { position: absolute; opacity: 0; }
.rate span[aria-hidden] { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); font: 600 15px var(--f-body); background: var(--field); }
.rate input:checked + span { background: var(--gold-soft); border-color: var(--gold); box-shadow: var(--glow); } .rate input:focus-visible + span { outline: 2px solid var(--gold); }
.inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .stack { display: flex; flex-direction: column; gap: 0; } .right { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cfield { display: flex; align-items: center; gap: 8px; } .cfield input[type=color] { width: 44px; height: 42px; border: 1px solid var(--line-2); border-radius: 10px; padding: 2px; background: var(--field); cursor: pointer; flex: none; }
.cfield .hex { width: 112px; font: 600 14px var(--f-body); text-transform: uppercase; letter-spacing: .06em; } .cfield .hex.sm { width: 92px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold-line); flex: none; } .hex-err { color: var(--bad); font-size: 12.5px; font-weight: 600; } .hex-err:empty { display: none; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 999px; background: var(--field); border: 1px solid var(--gold-line); }
.seg button, .seg .seg-r span { border: 0; background: transparent; color: var(--ink); padding: 6px 15px; border-radius: 999px; font: 500 13.5px var(--f-body); cursor: pointer; display: inline-block; }
.seg.sm button { padding: 3px 11px; font-size: 12.5px; }
.seg button[aria-pressed="true"], .seg .seg-r input:checked + span { background: var(--primary); color: var(--on-primary); }
.seg .seg-r { position: relative; } .seg .seg-r input { position: absolute; opacity: 0; } .seg .seg-r input:focus-visible + span { outline: 2px solid var(--gold); }
.tt-seg { composes: seg; } .tt-seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 999px; background: var(--field); border: 1px solid var(--gold-line); }
.tt-seg button { border: 0; background: transparent; color: var(--ink); padding: 6px 14px; border-radius: 999px; font: 500 13px var(--f-body); cursor: pointer; } .tt-seg.sm button { padding: 3px 10px; font-size: 12px; } .tt-seg button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.tick, .tt-tick { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold-line); background: var(--field); color: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; }
.tick .ic, .tt-tick .ic { width: 15px; height: 15px; } .tick.on, .tt-tick.on { background: var(--gold); color: var(--on-primary); border-color: var(--gold); } .tt-tick.sm { width: 22px; height: 22px; }

/* ---------- Shell ---------- */
#root { position: relative; z-index: 1; min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: 284px; background: var(--side-bg); color: var(--ink); display: flex; flex-direction: column; overflow-y: auto; z-index: 40; border-right: 1px solid var(--gold-line); scrollbar-width: thin; backdrop-filter: blur(10px); }
.side-top { padding: 24px 22px 16px; text-align: left; } .side-top .brand { text-decoration: none; color: inherit; display: inline-flex; }
.side-tag { display: block; margin-top: 6px; font: italic 500 15.5px/1.3 var(--f-ital); color: var(--gold-ink); }
.logo { display: inline-flex; align-items: center; color: var(--ink); } .logo b { font: italic 400 46px/1 var(--f-disp); letter-spacing: .01em; margin-left: -4px; }
.logo-o { width: 52px; height: 52px; overflow: visible; } .lo-ring { fill: none; stroke: var(--gold); stroke-width: 1.6; } .lo-moon { fill: var(--moon); } .lo-shade { fill: var(--bg); opacity: .78; }
.logo.sm b { font-size: 32px; } .logo.sm .logo-o { width: 38px; height: 38px; }
.side-timers { padding: 6px 14px 0; display: flex; flex-direction: column; gap: 6px; }
.side-nav { padding: 0 12px 10px; flex: 1; } .side-group { margin-top: 14px; }
.side-hub { display: flex; align-items: center; gap: 6px; padding: 2px 12px 4px; font: italic 500 16px var(--f-ital); color: var(--gold-ink); }
.side-hub .spk { width: 10px; height: 10px; }
.side-link { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 7px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font: 400 14.5px var(--f-body); border: 0; background: none; cursor: pointer; text-align: left; }
.side-link .ic { width: 19px; height: 19px; color: var(--ink-3); } .side-link:hover { background: var(--field); color: var(--ink); }
.side-link[aria-current="page"] { background: linear-gradient(90deg, var(--gold-soft), transparent); color: var(--ink); font-weight: 500; }
.side-link[aria-current="page"]::before { content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.side-link[aria-current="page"] .ic { color: var(--gold-ink); }
.side-lock { margin-left: auto; color: var(--ink-3); } .side-lock .ic { width: 14px; height: 14px; }
.side-foot { padding: 10px 12px 22px; border-top: 1px solid var(--line); }
.main-col { margin-left: 284px; min-height: 100vh; display: flex; flex-direction: column; }
main { width: 100%; max-width: 1340px; margin: 0 auto; padding: 30px 44px 70px; flex: 1; }
.foot { text-align: center; color: var(--ink-3); padding: 24px; font: italic 500 15px var(--f-ital); }
.top, .tabbar, .scrim { display: none; }
.demo-band { background: linear-gradient(90deg, var(--gold-soft), var(--panel-2), var(--gold-soft)); color: var(--ink); text-align: center; padding: 8px 16px; font: 500 13px var(--f-body); border-bottom: 1px solid var(--gold-line); } .demo-band a { color: var(--gold-ink); font-weight: 600; margin-left: 8px; }

/* ---------- Page furniture ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin: 4px 0 26px; flex-wrap: wrap; }
.ph-main { min-width: 0; flex: 1 1 520px; }
.page-head .kick { font-size: 21px; } .ph-glyph { font-style: normal; font-size: 22px; }
.page-head h1 { font: 500 clamp(42px, 5.6vw, 78px)/.98 var(--f-disp); letter-spacing: -.01em; margin-top: 4px; }
.page-head h1 em { font-weight: 400; }
.ph-orn { max-width: 380px; margin: 16px 0 0; }
.lede { max-width: 64ch; color: var(--ink-2); margin-top: 12px; font-size: 16.5px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 24px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 16px; color: var(--ink-2); text-decoration: none; font: 500 14px var(--f-body); border: 1px solid transparent; border-radius: 999px; }
.tabs a .ic { width: 16px; height: 16px; color: var(--ink-3); }
.tabs a:hover { color: var(--ink); border-color: var(--line-2); }
.tabs a[aria-current="page"] { color: var(--gold-ink); border-color: var(--gold-line); background: var(--gold-soft); } .tabs a[aria-current="page"] .ic { color: var(--gold-ink); }
.grid { display: grid; gap: 20px; margin-bottom: 4px; } .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid > .panel { margin-bottom: 0; } .grid { margin-bottom: 20px; }
.span2 { grid-column: span 2; }
.empty { text-align: center; padding: 34px 20px; border: 1px dashed var(--gold-line); border-radius: var(--r); background: var(--panel); color: var(--ink-2); margin-bottom: 20px; }
.empty-doodle { width: 120px; height: 90px; margin: 0 auto 8px; display: block; } .ed-orbit { fill: none; stroke: var(--gold-line); stroke-width: 1.5; stroke-dasharray: 3 4; } .ed-moon { fill: var(--moon); } .ed-star { fill: var(--gold); }
.empty p { max-width: 46ch; margin: 0 auto 14px; font: italic 500 23px/1.25 var(--f-ital); color: var(--ink); }
.tb-solo { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.metric { position: relative; background: var(--panel); border: 1px solid var(--gold-line); border-radius: 14px; padding: 14px 18px; min-width: 0; text-decoration: none; color: inherit; }
.metric .label { margin: 0; } .metric b { display: block; font: 500 32px/1.15 var(--f-disp); margin: 4px 0 2px; color: var(--ink); } .metric small { color: var(--ink-2); font-size: 13px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 6px 0; } .kv div { display: contents; } .kv dt { font: 500 11px/2 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); } .kv dd { margin: 0; text-align: right; }
.rows, .todos { list-style: none; margin: 0; padding: 0; }
.rows li, .todos li { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rows li:last-child, .todos li:last-child { border-bottom: 0; }
.rows .main { flex: 1; min-width: 140px; display: flex; flex-direction: column; } .rows small { color: var(--ink-2); }
.todos li.done > span { text-decoration: line-through; color: var(--ink-3); }
.d-date { font: 500 12.5px var(--f-body); letter-spacing: .06em; color: var(--ink-3); min-width: 64px; text-transform: uppercase; }
.tt-check { list-style: none; margin: 0; padding: 0; } .tt-check li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); } .tt-check li:last-child { border: 0; } .tt-check li > span { flex: 1; padding-top: 2px; } .tt-check li.done > span { text-decoration: line-through; color: var(--ink-3); }
.tt-scroll { overflow-x: auto; border-radius: 14px; border: 1px solid var(--gold-line); background: var(--panel); margin-bottom: 16px; }
.tt-tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tt-tbl th { text-align: left; font: 500 11px var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); background: var(--panel-2); padding: 11px 12px; white-space: nowrap; }
.tt-tbl td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; } .tt-tbl .num, .tt-tbl th.num { text-align: right; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar .search { position: relative; flex: 1 1 240px; display: flex; } .toolbar .search .ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--gold-ink); pointer-events: none; }
.toolbar .search .input { padding-left: 42px; border-radius: 999px; } .toolbar .filter { flex: 0 1 200px; } .toolbar .filter .input { border-radius: 999px; }
.shown { margin: 8px 2px; }
.tt-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; background: var(--gold-soft); color: var(--ink); font-size: 14px; margin: 0 0 16px; border: 1px solid var(--gold-line); }
.tt-note .ic { margin-top: 3px; flex: none; color: var(--gold-ink); }
.bar { display: block; height: 8px; border-radius: 999px; background: var(--field-2); overflow: hidden; margin: 6px 0; flex: 1; min-width: 60px; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--butter)); border-radius: inherit; transition: width .4s; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; margin-top: 8px; color: var(--ink-2); } .legend span { display: inline-flex; gap: 6px; align-items: center; }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 4px; flex: none; }
.day-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; } .day-nav h2 { font: 500 30px var(--f-disp); } .day-nav h2 em { font-weight: 400; }
.pring { position: relative; display: inline-grid; place-items: center; width: 92px; height: 92px; } .pring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.pr-bg { fill: none; stroke: var(--field-2); stroke-width: 8; } .pr-fg { fill: none; stroke: var(--gold); stroke-width: 8; stroke-linecap: round; stroke-dasharray: calc(var(--p) * 100) 100; } .pring b { font: 500 20px var(--f-disp); }

/* ---------- Charts ---------- */
.chart { margin: 0; } .chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-dasharray: 3 4; display: inline; } .chart .base { stroke: var(--ink-3); stroke-width: 1; } .chart .axis { font: 11px var(--f-body); fill: var(--ink-2); } .chart .hit { fill: transparent; }
.bar-mark.c1, .donut-seg.c1, .key.c1 { fill: var(--c1); background: var(--c1); } .bar-mark.c2, .donut-seg.c2, .key.c2 { fill: var(--c2); background: var(--c2); } .bar-mark.c3, .donut-seg.c3, .key.c3 { fill: var(--c3); background: var(--c3); }
.bar-mark.c4, .donut-seg.c4, .key.c4 { fill: var(--c4); background: var(--c4); } .bar-mark.c5, .donut-seg.c5, .key.c5 { fill: var(--c5); background: var(--c5); } .bar-mark.c6, .donut-seg.c6, .key.c6 { fill: var(--c6); background: var(--c6); }
.line-mark { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; } .line-mark.c1 { stroke: var(--c1); } .line-mark.c2 { stroke: var(--c2); } .line-mark.c3 { stroke: var(--c3); } .line-mark.c4 { stroke: var(--c4); }
.dot-mark { stroke: var(--panel-solid); stroke-width: 2; } .dot-mark.c1 { fill: var(--c1); } .dot-mark.c2 { fill: var(--c2); } .dot-mark.c3 { fill: var(--c3); } .dot-mark.c4 { fill: var(--c4); }
.mark:focus { outline: none; } .mark:hover .bar-mark { filter: brightness(1.12); }
.donut .donut-wrap { position: relative; max-width: 210px; margin: 0 auto; } .donut-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; } .donut-mid b { font: 500 22px var(--f-disp); } .donut-mid span { font: 500 10px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.donut-seg { stroke: var(--panel-solid); stroke-width: 2; } .donut-key { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 14px; font-size: 14px; } .donut-key li { display: flex; align-items: center; gap: 8px; }
.tip { position: fixed; z-index: 100; transform: translate(-50%, -100%); background: var(--panel-solid); color: var(--ink); border: 1px solid var(--gold-line); font: 500 12.5px var(--f-body); padding: 6px 10px; border-radius: 8px; pointer-events: none; white-space: nowrap; }

/* ---------- Modal, toasts, lightbox ---------- */
dialog#modal { border: 0; padding: 0; background: transparent; width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 32px); color: var(--ink); overflow: visible; }
dialog#modal.narrow { width: min(500px, calc(100vw - 24px)); } dialog#modal.wide { width: min(1000px, calc(100vw - 24px)); } dialog#modal.photo { width: min(1100px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(5, 8, 25, .62); backdrop-filter: blur(3px); }
.modal-inner { position: relative; display: flex; flex-direction: column; max-height: calc(100vh - 32px); background: var(--panel-solid); border-radius: 20px; overflow: hidden; border: 1px solid var(--gold-line); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), 0 0 40px -18px var(--gold); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 16px 12px 24px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font: 500 26px/1.1 var(--f-disp); } .modal-head .icon-btn { border-color: var(--gold-line); }
.modal-body { padding: 20px 24px; overflow-y: auto; } .modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 24px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ed-photos { display: flex; flex-wrap: wrap; gap: 10px; } .ed-ph { position: relative; margin: 0; width: 110px; height: 110px; border-radius: 12px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--gold-line); }
.ed-ph img { width: 100%; height: 100%; object-fit: cover; } .ed-ph .icon-btn { position: absolute; top: 4px; right: 4px; background: rgba(255, 255, 255, .92); width: 28px; height: 28px; color: #12173A; }
.ed-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 110px; min-height: 110px; padding: 12px; border: 1px dashed var(--gold); border-radius: 12px; color: var(--gold-ink); background: var(--gold-soft); cursor: pointer; font-size: 13px; text-align: center; }
#toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: center; background: var(--panel-solid); color: var(--ink); padding: 11px 20px; border-radius: 999px; border: 1px solid var(--gold-line); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6), 0 0 18px -6px var(--gold); font-weight: 500; max-width: min(560px, calc(100vw - 24px)); animation: toastIn .25s ease-out; }
.toast.err { border-color: var(--bad); color: var(--bad); } .toast button { background: var(--gold-soft); color: var(--gold-ink); border: 1px solid var(--gold-line); border-radius: 999px; padding: 3px 12px; font-weight: 600; cursor: pointer; }
@keyframes toastIn { from { transform: translateY(10px); opacity: 0; } }
.pop-fx { position: fixed; z-index: 300; pointer-events: none; }
i.pop-p { position: absolute; width: 7px; height: 7px; border-radius: 50%; animation: popOut .9s ease-out forwards; }
@keyframes popOut { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }
.calm *, .calm *::before, .calm *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition: none !important; } }
body.ding::after { content: ''; position: fixed; inset: 0; z-index: 250; pointer-events: none; border: 8px solid var(--gold); animation: ding .5s ease-in-out 6 alternate; }
@keyframes ding { from { opacity: 1; } to { opacity: 0; } }
.lightbox { position: relative; background: var(--panel-solid); border-radius: 18px; padding: 16px; border: 1px solid var(--gold-line); }
.lightbox figure { margin: 0; } .lightbox img { max-height: calc(100vh - 190px); margin: 0 auto; border-radius: 10px; object-fit: contain; }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 10px 4px 0; align-items: baseline; }
.lb-close { position: absolute; top: 22px; right: 22px; background: var(--panel-solid); z-index: 2; } .lb-prev, .lb-next { position: absolute; top: 45%; background: var(--panel-solid); border: 1px solid var(--gold-line); } .lb-prev { left: 24px; } .lb-next { right: 24px; }
.lb-tools { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding-top: 10px; }
.pdf-chip { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 100%; background: var(--gold-soft); color: var(--gold-ink); }
.qa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .qa-grid .btn { justify-content: flex-start; }

/* ---------- Pictures ---------- */
.pic { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--panel-2); cursor: pointer; overflow: hidden; border-radius: 12px; aspect-ratio: 1; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic.empty { display: grid; place-items: center; align-content: center; gap: 6px; border: 1px dashed var(--gold-line); color: var(--gold-ink); font-size: 13.5px; text-align: center; padding: 12px; background: var(--field); }
.pic.empty .ic { width: 22px; height: 22px; } .pic.empty.drag, [data-drop].drag { outline: 2px dashed var(--gold); outline-offset: 2px; }

/* ===== Shift engine aliases so the board styles carry over ===== */
:root { --edge: var(--gold-line); --paper: var(--panel-solid); --paper-2: var(--panel-2); --pink-ink: var(--rose-ink); --pink-2: color-mix(in srgb, var(--pink) 30%, transparent); --pink-3: color-mix(in srgb, var(--pink) 16%, transparent); --lilac-2: var(--panel-2); --lilac-ink: var(--gold-ink); --f-mono: var(--f-body); --shade: rgba(0,0,0,.25); --yellow: var(--butter); --blue: var(--peri); --mint: var(--teal); --lime: var(--teal); }
/* ---------- Vision board ---------- */
.vb-wrap { position: relative; margin-bottom: 8px; }
.vb-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.vb-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .vb-pick .kick { font: 30px/1 var(--f-script); color: var(--pink-ink); text-transform: none; letter-spacing: 0; margin-right: 4px; }
.vb-sel { width: auto; min-width: 200px; font-weight: 700; border-radius: 999px; border-color: var(--edge); }
.vb-right { display: flex; gap: 8px; } .vb-title { font: 400 30px var(--f-disp); }
.vb-add, .vb-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; background: var(--paper); border: 1.5px solid var(--edge); border-radius: 16px 16px 0 0; border-bottom: 0; }
.vb-tools { background: var(--lilac-2); border-radius: 0; } .vb-tools + .vb-canvas, .vb-add + .vb-canvas { border-top-left-radius: 0; border-top-right-radius: 0; }
.vt-col { display: inline-flex; align-items: center; gap: 4px; } .vt-col input[type=color] { width: 32px; height: 30px; border: 1.5px solid var(--line-2); border-radius: 8px; padding: 1px; background: var(--paper); cursor: pointer; } .vt-col .hex { font: 700 12px var(--f-mono); width: 86px; text-transform: uppercase; }
.vt-size { display: inline-flex; align-items: center; gap: 2px; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 0 4px; background: var(--paper); } .vt-size b { min-width: 28px; text-align: center; font: 700 12px var(--f-mono); }
.vb-canvas { position: relative; aspect-ratio: 16 / 10; container-type: inline-size; border: 1.5px solid var(--edge); border-radius: 18px; overflow: hidden; box-shadow: 6px 6px 0 var(--shade); touch-action: none; user-select: none; -webkit-user-select: none; }
.vb-canvas.vb-none { display: grid; place-items: center; background: var(--paper); }
.vb-bgimg { position: absolute; inset: 0; } .vb-bgimg img { width: 100%; height: 100%; object-fit: cover; }
.vb-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 8px; padding: 20px; pointer-events: none; } .vb-none .vb-empty { position: static; pointer-events: auto; } .vb-empty b { font: italic 400 30px var(--f-ital); } .vb-empty span { color: var(--ink-2); max-width: 40ch; margin: 0 auto; } .vb-empty .btn { justify-self: center; }
.vbi { position: absolute; transform: rotate(var(--rot, 0deg)); transform-origin: center; cursor: grab; outline: none; }
.vbi:focus-visible { outline: 2px dashed var(--lilac-ink); outline-offset: 3px; }
.locked .vbi, .view .vbi { cursor: default; }
.vbi.sel { outline: 2px solid #3D8BFF; outline-offset: 2px; } .vbi.dragging { cursor: grabbing; opacity: .92; }
.vh { position: absolute; width: 16px; height: 16px; background: #3D8BFF; border: 2.5px solid #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.35); z-index: 5; touch-action: none; }
.vh.nw { left: -10px; top: -10px; cursor: nwse-resize; } .vh.ne { right: -10px; top: -10px; cursor: nesw-resize; } .vh.sw { left: -10px; bottom: -10px; cursor: nesw-resize; } .vh.se { right: -10px; bottom: -10px; cursor: nwse-resize; }
.vrot { position: absolute; left: 50%; top: -34px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; border: 2.5px solid #3D8BFF; cursor: grab; z-index: 5; touch-action: none; } .vrot::after { content: ''; position: absolute; left: 50%; top: 16px; width: 2px; height: 16px; background: #3D8BFF; margin-left: -1px; }
.vb-ph { width: 100%; height: 100%; } .vb-ph img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.vb-noimg { display: grid; place-items: center; width: 100%; height: 100%; background: var(--paper-2); color: var(--ink-3); }
.vb-ph.fr-polaroid { background: #fff; padding: 5% 5% 20%; box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 12px 24px -12px rgba(0,0,0,.45); position: relative; }
.vb-cap { position: absolute; left: 0; right: 0; bottom: 3%; text-align: center; font: 3.1cqw/1 var(--f-script); color: #1C1A1F; white-space: nowrap; overflow: hidden; }
.vb-ph.fr-dash { border: .5cqw dashed #3B8B3E; padding: .9cqw; background: #fff; }
.vb-ph.fr-stripe { padding: 1.4cqw; background: repeating-linear-gradient(90deg, #F25C6E 0 .7cqw, #FFE6EA .7cqw 1.4cqw); border-radius: 4px; }
.vb-ph.fr-stripe img { border-radius: 40% 40% 36% 36% / 22% 22% 18% 18%; }
.vb-ph.fr-ticket { padding: 1cqw; background: #fff; border: .45cqw double #6B7BC4; -webkit-mask: radial-gradient(circle 1.6cqw at 0 0, #0000 98%, #000) top left, radial-gradient(circle 1.6cqw at 100% 0, #0000 98%, #000) top right, radial-gradient(circle 1.6cqw at 0 100%, #0000 98%, #000) bottom left, radial-gradient(circle 1.6cqw at 100% 100%, #0000 98%, #000) bottom right; -webkit-mask-size: 51% 51%; -webkit-mask-repeat: no-repeat; mask: radial-gradient(circle 1.6cqw at 0 0, #0000 98%, #000) top left / 51% 51% no-repeat, radial-gradient(circle 1.6cqw at 100% 0, #0000 98%, #000) top right / 51% 51% no-repeat, radial-gradient(circle 1.6cqw at 0 100%, #0000 98%, #000) bottom left / 51% 51% no-repeat, radial-gradient(circle 1.6cqw at 100% 100%, #0000 98%, #000) bottom right / 51% 51% no-repeat; }
.vb-ph.fr-loops { padding: 1cqw; background: #fff; border: .7cqw dotted #F4C430; border-radius: 1.6cqw; }
.vb-ph.fr-wavy, .vb-ph.fr-scallop { --s: 1.1cqw; padding: calc(var(--s) * 1.6); background: var(--fc, #FF8FC6); -webkit-mask: radial-gradient(circle var(--s), #000 97%, #0000) 0 0 / calc(var(--s) * 2) calc(var(--s) * 2) round, linear-gradient(#000 0 0) no-repeat 50% / calc(100% - var(--s) * 2) calc(100% - var(--s) * 2); mask: radial-gradient(circle var(--s), #000 97%, #0000) 0 0 / calc(var(--s) * 2) calc(var(--s) * 2) round, linear-gradient(#000 0 0) no-repeat 50% / calc(100% - var(--s) * 2) calc(100% - var(--s) * 2); }
.vb-ph.fr-scallop { --fc: #9DB0E8; --s: 1.5cqw; } .vb-ph.fr-wavy img { border: .5cqw solid #fff; }
.vb-ph.fr-none img { border-radius: 2px; }
.vb-text { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; line-height: 1.05; overflow: hidden; padding: 2%; white-space: normal; word-break: break-word; }
.vb-text[style*="text-align:left"] { justify-content: flex-start; } .vb-text[style*="text-align:right"] { justify-content: flex-end; }
.vb-text.ts-bubble { background: var(--tb); border: .25cqw solid #1C1A1F; border-radius: 1.8cqw; position: relative; overflow: visible; padding: 4%; }
.vb-text.ts-bubble::after { content: ''; position: absolute; left: 14%; bottom: -1.2cqw; width: 2cqw; height: 2cqw; background: var(--tb); border-right: .25cqw solid #1C1A1F; border-bottom: .25cqw solid #1C1A1F; transform: rotate(45deg); }
.vb-text.ts-label { background: var(--tb); border: .2cqw solid #1C1A1F; border-radius: 999px; padding: 2% 5%; }
.vb-text.ts-note { background: var(--tb); box-shadow: .3cqw .5cqw 1cqw rgba(0,0,0,.18); padding: 6%; }
.vb-text.ts-pop { background: #fff; border: .25cqw solid #1C1A1F; border-radius: 1.4cqw; padding: 14% 5% 5%; box-shadow: .5cqw .5cqw 0 var(--tb); position: relative; overflow: visible; }
.vb-text.ts-pop::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 22%; background: var(--tb); border-bottom: .25cqw solid #1C1A1F; border-radius: 1.2cqw 1.2cqw 0 0; }
.vb-stk path, .vb-shape path { stroke: #1C1A1F; stroke-width: 2; } .vb-shape path { stroke: none; }
.vb-emoji { display: grid; place-items: center; width: 100%; height: 100%; font-size: 7cqw; line-height: 1; }
.vb-block { display: block; width: 100%; height: 100%; } .vb-block.sh-round { border-radius: 2cqw; } .vb-block.sh-pill { border-radius: 999px; } .vb-block.sh-rect { border-radius: 0; }
.vb-hint { margin-top: 12px; }
.stk-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; margin: 8px 0 14px; }
.stk-btn { aspect-ratio: 1; padding: 8px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--paper); cursor: pointer; } .stk-btn:hover { border-color: var(--edge); background: var(--paper-2); } .stk-btn.emo { font-size: 28px; padding: 0; }
.grads { display: flex; gap: 8px; flex-wrap: wrap; } .grad { width: 48px; height: 36px; border-radius: 10px; border: 1.5px solid var(--edge); cursor: pointer; }
.lay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lay-card { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--edge); border-radius: 16px; background: var(--paper); cursor: pointer; text-align: left; color: var(--ink); font: inherit; } .lay-card:hover { background: var(--pink-3); } .lay-card small { color: var(--ink-2); }
.lay-pv { position: relative; width: 100%; aspect-ratio: 16/10; background: var(--paper-2); border-radius: 8px; margin-bottom: 4px; } .lay-pv i { position: absolute; background: var(--pink-2); border: 1px solid var(--edge); }
.lp-grid i:nth-child(1) { left: 6%; top: 8%; width: 26%; height: 38%; } .lp-grid i:nth-child(2) { left: 37%; top: 8%; width: 26%; height: 38%; } .lp-grid i:nth-child(3) { left: 68%; top: 8%; width: 26%; height: 38%; } .lp-grid i:nth-child(4) { left: 6%; top: 54%; width: 26%; height: 38%; }
.lp-collage i:nth-child(1) { left: 6%; top: 10%; width: 30%; height: 50%; transform: rotate(-6deg); } .lp-collage i:nth-child(2) { left: 30%; top: 30%; width: 32%; height: 52%; transform: rotate(4deg); background: var(--lilac); } .lp-collage i:nth-child(3) { left: 62%; top: 8%; width: 28%; height: 44%; transform: rotate(-3deg); background: var(--butter); } .lp-collage i:nth-child(4) { left: 66%; top: 58%; width: 18%; height: 30%; border-radius: 50%; background: var(--yellow); }
.lp-polaroid i { background: #fff; width: 18%; height: 44%; top: 26%; } .lp-polaroid i:nth-child(1) { left: 8%; transform: rotate(-5deg); } .lp-polaroid i:nth-child(2) { left: 30%; transform: rotate(3deg); } .lp-polaroid i:nth-child(3) { left: 52%; transform: rotate(-2deg); } .lp-polaroid i:nth-child(4) { left: 74%; transform: rotate(5deg); }
.lp-minimal i:nth-child(1) { left: 25%; top: 40%; width: 50%; height: 8%; background: var(--edge); } .lp-minimal i:nth-child(2) { left: 6%; top: 8%; width: 12%; height: 22%; } .lp-minimal i:nth-child(3) { left: 82%; top: 62%; width: 12%; height: 22%; } .lp-minimal i:nth-child(4) { display: none; }
/* Visualize */
.viz { position: fixed; inset: 0; z-index: 400; background: #0F0D12; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 24px; gap: 18px; }
.viz-board { width: min(100%, calc((100vh - 120px) * 1.6)); } .viz-board .vb-canvas { box-shadow: 0 30px 80px -30px rgba(255,143,198,.5); border-color: #fff; }
.viz-bar { display: flex; align-items: center; gap: 16px; color: #fff; flex-wrap: wrap; justify-content: center; } .viz-cue { font: italic 22px var(--f-ital); } .viz-clock { font: 700 20px var(--f-mono); background: var(--pink); color: #1C1A1F; border-radius: 999px; padding: 4px 14px; }
.viz-breathe { width: 22px; height: 22px; border-radius: 50%; background: var(--lilac); animation: breathe 10s ease-in-out infinite; } @keyframes breathe { 0%, 100% { transform: scale(.6); } 50% { transform: scale(1.4); } }
.viz .btn { background: transparent; color: #fff; border-color: #fff; }

/* Orbit board frames and colours */
.vb-canvas { border-color: var(--gold-line); box-shadow: var(--shadow), 0 0 40px -20px var(--gold); background: #151D45; }
.vb-pick .kick { font: 34px/1 var(--f-script); color: var(--gold-ink); }
.vbi.sel { outline-color: var(--gold); } .vh { background: var(--gold); } .vrot { border-color: var(--gold); } .vrot::after { background: var(--gold); }
.vb-ph.fr-polaroid { background: #FBF6EA; } .vb-cap { color: #1D2869; }
.vb-ph.fr-arch { padding: 1cqw; background: linear-gradient(#E6CB8E, #B48C46); border-radius: 999px 999px 1.2cqw 1.2cqw; } .vb-ph.fr-arch img { border-radius: 999px 999px .8cqw .8cqw; }
.vb-ph.fr-oval { padding: .8cqw; background: linear-gradient(135deg, #E6CB8E, #AFB9F2); border-radius: 50%; } .vb-ph.fr-oval img { border-radius: 50%; }
.vb-ph.fr-circle { padding: .6cqw; border: .3cqw solid #D7B46A; border-radius: 50%; } .vb-ph.fr-circle img { border-radius: 50%; aspect-ratio: 1; }
.vb-ph.fr-lace { --s: 1cqw; padding: calc(var(--s) * 1.8); background: #F4EEE3; -webkit-mask: radial-gradient(circle var(--s), #000 97%, #0000) 0 0 / calc(var(--s) * 2) calc(var(--s) * 2) round, linear-gradient(#000 0 0) no-repeat 50% / calc(100% - var(--s) * 2) calc(100% - var(--s) * 2); mask: radial-gradient(circle var(--s), #000 97%, #0000) 0 0 / calc(var(--s) * 2) calc(var(--s) * 2) round, linear-gradient(#000 0 0) no-repeat 50% / calc(100% - var(--s) * 2) calc(100% - var(--s) * 2); }
.vb-ph.fr-dash { border-color: #D7B46A; background: transparent; }
.vb-ph.fr-ticket { background: #FBF6EA; border-color: #2B3C9B; }
.viz { background: #070B20; } .viz-clock { background: var(--gold); color: #12173A; font-weight: 600; } .viz-breathe { background: var(--peri); }
.stk-btn { background: var(--field); border-color: var(--line-2); } .stk-btn:hover { border-color: var(--gold); background: var(--field-2); }
.lay-card { background: var(--field); } .lay-card:hover { background: var(--gold-soft); } .lay-pv { background: var(--panel-2); } .lay-pv i { background: var(--gold-soft); border-color: var(--gold-line); }

/* ---------- The moon ---------- */
.moon { display: block; width: 100%; height: auto; overflow: visible; }
.moon-glow { fill: var(--moon-glow); filter: blur(4px); } .moon-dark { fill: var(--moon-dark); stroke: var(--line-2); stroke-width: .6; } .moon-rim { fill: none; stroke: var(--gold-line); stroke-width: .6; } .crater { fill: var(--crater); }
.pstrip { display: flex; justify-content: space-between; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.pstrip > span { flex: 1; max-width: 40px; opacity: .55; } .pstrip > span.on { opacity: 1; filter: drop-shadow(0 0 6px var(--gold)); }
.mphase { display: inline-block; width: 22px; height: 22px; vertical-align: -6px; }

/* ---------- Home Altar ---------- */
.altar-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: center; margin: 0 0 18px; }
.greet { font: 500 clamp(46px, 6vw, 88px)/.96 var(--f-disp); letter-spacing: -.015em; margin: 8px 0 6px; } .greet em { font-weight: 400; }
.qa-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.orbit-hero { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin: 0 auto; }
.oh-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.oh-text { font: 500 13.5px var(--f-body); letter-spacing: .38em; text-transform: uppercase; fill: var(--gold-ink); }
.oh-ring { fill: none; stroke: var(--gold-line); stroke-width: 1.2; } .oh-ring.dash { stroke-dasharray: 2 6; stroke: var(--line-2); }
.oh-planet.p1 { fill: var(--pink); } .oh-planet.p2 { fill: var(--peri); } .oh-planet.p3 { fill: var(--gold); }
.oh-spin, .oh-spin2, .oh-spin3 { transform-origin: 200px 200px; transform-box: view-box; }
.oh-spin { animation: spin 120s linear infinite; } .oh-spin2 { animation: spin 70s linear infinite reverse; } .oh-spin3 { animation: spin 45s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.oh-moon { position: absolute; inset: 27%; animation: moonbob 9s ease-in-out infinite alternate; filter: drop-shadow(0 0 30px var(--moon-glow)); }
.oh-moon .moon { animation: spin 400s linear infinite; }
@keyframes moonbob { to { transform: translateY(-6px); } }
.orbit-hero .spk { position: absolute; animation: twinkle 3s ease-in-out infinite alternate; } .oh-s1 { left: 6%; top: 14%; } .oh-s2 { right: 4%; top: 62%; width: 12px; height: 12px; animation-delay: 1s !important; } .oh-s3 { left: 22%; bottom: 4%; width: 10px; height: 10px; animation-delay: 2s !important; }
.energy { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: center; }
.en-moon { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; } .en-moon .moon { width: 140px; margin-bottom: 8px; } .en-moon b { font: 500 22px var(--f-disp); } .en-moon span { font-size: 13.5px; color: var(--ink-2); }
.en-list, .corr { margin: 0; display: grid; gap: 0; }
.en-list > div, .corr > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.en-list > div:last-child, .corr > div:last-child { border: 0; }
.en-list dt, .corr dt { font: 500 11px var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); } .en-list dd, .corr dd { margin: 0; font-size: 15.5px; } .en-list small, .corr small { color: var(--ink-2); }
.countdowns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 30px 0 22px; }
.cd .arch-in { padding-top: 40px; } .cd-k { font: italic 500 18px var(--f-ital); color: var(--gold-ink); }
.cd-m { width: 78px !important; margin: 12px auto; } .cd-wheel { display: grid; place-items: center; width: 78px; height: 78px; margin: 12px auto; color: var(--gold); } .cd-wheel .ic { width: 64px; height: 64px; stroke-width: 1; animation: spin 60s linear infinite; }
.cd-n { font: 500 34px/1.1 var(--f-disp); } .cd small { color: var(--ink-2); font-size: 13px; }
.aff { font: italic 500 27px/1.3 var(--f-ital); color: var(--ink); margin: 6px 0 10px; }
.hab-today, .tw-list { list-style: none; margin: 0 0 10px; padding: 0; } .hab-today li { display: flex; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); } .hab-today li:last-child { border: 0; }
.practice { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; } .pr-pics { display: flex; gap: 16px; align-items: flex-end; }
.pr-pic { width: 130px; } .pr-pic.round .pp, .pr-pic.round .pic { border-radius: 50%; aspect-ratio: 1; border: 1px solid var(--gold-line); } .pr-pic.arch-pic { width: 150px; } .pr-pic.arch-pic .pic { aspect-ratio: 3/4; border-radius: 999px 999px 14px 14px; border: 1px solid var(--gold-line); }

/* Habit moons: a circle that fills like a full moon when done */
.hmoon { --t: var(--gold); flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--t); background: radial-gradient(circle at 70% 50%, transparent 52%, color-mix(in srgb, var(--t) 22%, transparent) 54%); cursor: pointer; padding: 0; transition: background .25s, box-shadow .25s; }
.hmoon.on { background: radial-gradient(circle at 35% 32%, #fff, var(--t) 70%); box-shadow: 0 0 12px -2px var(--t); }
.hmoon.t-pink { --t: var(--pink); } .hmoon.t-lilac { --t: var(--lilac); } .hmoon.t-teal { --t: var(--teal); } .hmoon.t-blue { --t: var(--peri); }
.hmoon.sm { width: 22px; height: 22px; } .hmoon.off { opacity: .25; cursor: default; }

/* Card of the day + tarot cards */
.cotd { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: start; } .cotd-b h3 { font-size: 26px; } .kw { font: italic 500 20px/1.3 var(--f-ital); color: var(--gold-ink); }
.cotd-draw { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 auto; background: none; border: 0; color: var(--gold-ink); font: italic 500 19px var(--f-ital); cursor: pointer; }
.cotd-draw .tcard-b { width: 150px; }
.tcard-f, .tcard-b { position: relative; width: 100%; aspect-ratio: 7 / 12; margin: 0; border-radius: 12px; overflow: hidden; }
.tcard-f { background: linear-gradient(170deg, #1A2460, #0E1436 70%); border: 1px solid #D7B46A; box-shadow: 0 10px 24px -14px rgba(0,0,0,.7); color: #F4EEE3; }
.tcard-f::before { content: ''; position: absolute; inset: 5px; border: 1px solid rgba(215, 180, 106, .5); border-radius: 999px 999px 8px 8px; }
.tf-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 14% 8% 9%; }
.tf-num { font: 500 clamp(11px, 1.3vw, 16px)/1 var(--f-disp); color: #E3C47F; letter-spacing: .08em; }
.tf-sig { width: 62%; fill: none; stroke: #E3C47F; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(215,180,106,.55)); }
.tf-name { font: 500 clamp(10px, 1.1vw, 14px)/1.15 var(--f-disp); text-align: center; color: #F4EEE3; min-height: 2.3em; display: flex; align-items: flex-end; }
.tcard-f .spk { position: absolute; width: 9px; height: 9px; fill: #E3C47F; } .tf-s1 { left: 14%; top: 30%; } .tf-s2 { right: 14%; top: 56%; width: 6px !important; height: 6px !important; }
.tcard-f.s-cups { background: linear-gradient(170deg, #20357A, #0E1436 70%); } .tcard-f.s-wands { background: linear-gradient(170deg, #4A2346, #140F30 70%); } .tcard-f.s-swords { background: linear-gradient(170deg, #2C3B6B, #0D1330 70%); } .tcard-f.s-pentacles { background: linear-gradient(170deg, #1E4A4C, #0D1630 70%); }
.tcard-f.rev .tf-in { transform: rotate(180deg); }
.tf-rev { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); font: 500 8.5px var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: #F1C6DC; background: rgba(14,20,54,.85); padding: 1px 6px; border-radius: 99px; }
.tcard-b { background: radial-gradient(circle at 50% 42%, #2A3A9A, #0E1436 72%); border: 1px solid #D7B46A; }
.tcard-b::before { content: ''; position: absolute; inset: 5px; border: 1px solid rgba(215,180,106,.5); border-radius: 999px 999px 8px 8px; }
.tb-in { position: absolute; inset: 0; display: grid; place-items: center; } .tb-moon { width: 46% !important; } .tcard-b .spk { position: absolute; fill: #E3C47F; width: 10px; height: 10px; } .tb-s1 { left: 18%; top: 18%; } .tb-s2 { right: 16%; top: 30%; width: 7px !important; } .tb-s3 { left: 30%; bottom: 16%; width: 8px !important; }
.pulse { animation: cardPulse 2.4s ease-in-out infinite alternate; } @keyframes cardPulse { to { box-shadow: 0 0 0 1px #D7B46A, 0 0 28px -2px rgba(215,180,106,.6); } }
.flip { perspective: 900px; } .flip > * { animation: flipIn .7s ease-out; } @keyframes flipIn { from { transform: rotateY(90deg); opacity: .2; } }

/* Month grid */
.mgrid { border: 1px solid var(--gold-line); border-radius: 16px; overflow: hidden; background: var(--panel); }
.mg-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--panel-2); } .mg-head span { padding: 9px 8px; font: 500 11px var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); text-align: center; }
.mg-body { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mg-d { min-height: 118px; padding: 6px 7px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mg-d:nth-child(7n+1) { border-left: 0; } .mg-d.out { background: rgba(0,0,0,.08); } .mg-d.out .mg-n { opacity: .4; }
.mg-d.today { background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.mg-top { display: flex; justify-content: space-between; align-items: center; gap: 4px; } .mg-n { font: 500 15px var(--f-disp); color: var(--ink); text-decoration: none; } a.mg-n:hover { color: var(--gold-ink); }
.mg-top .moon { width: 18px; } .mg-d .tg { font-size: 10.5px; padding: 0 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.mg-ev { font-size: 12px; line-height: 1.3; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mg-ev b { color: var(--ink); font-weight: 500; }
.mgrid.mini .mg-d { min-height: 0; aspect-ratio: 1; align-items: center; justify-content: center; padding: 2px; } .mgrid.mini .mg-head span { padding: 6px 0; letter-spacing: .04em; }
.mgrid.mini .moon { width: 64%; max-width: 34px; }

/* Week & day */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; overflow-x: auto; }
.wcol { background: var(--panel); border: 1px solid var(--gold-line); border-radius: 14px; padding: 10px 10px 12px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.wcol.today { box-shadow: var(--glow); } .wcol-h { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.wcol-h b { font: 500 22px/1 var(--f-disp); display: block; } .wcol-h small { font: 500 10.5px var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); } .wcol-h .moon { width: 26px; }
.wcol .tg { font-size: 10.5px; white-space: normal; line-height: 1.3; padding: 1px 7px; } .wcol ul { list-style: none; margin: 0; padding: 0; } .wcol li { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; padding: 3px 0; } .wcol li .tick { width: 20px; height: 20px; }
.wcol .btn.sm { margin-top: auto; min-height: 30px; font-size: 12px; padding: 2px 10px; }
.dpage { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; }
.sched { list-style: none; margin: 0; padding: 0; } .sched li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.sched li > span:first-child { font: 500 12.5px var(--f-body); color: var(--ink-3); letter-spacing: .06em; } .sched .input { min-height: 36px; padding: 5px 10px; }
.sky-strip { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }

/* Wheel, zodiac, lists of cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-bottom: 18px; }
.cards.sm { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } .cards.xs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ocard { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--panel); border: 1px solid var(--gold-line); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.ocard .pic { margin: -4px -6px 6px; width: calc(100% + 12px); aspect-ratio: 4/3; border-radius: 10px; }
.ocard h3 { font: 500 20px/1.15 var(--f-disp); } .ocard .tags, .tags { display: flex; flex-wrap: wrap; gap: 5px; } .ocard p { margin: 0; font-size: 14px; color: var(--ink-2); }
.ocard .oc-act { display: flex; gap: 4px; margin-top: auto; padding-top: 6px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.ocard.low { border-color: var(--bad); } .ocard.done { opacity: .8; }
.ocard .oc-glyph { font: 400 34px/1 var(--f-disp); color: var(--gold-ink); }
a.ocard { text-decoration: none; color: inherit; } a.ocard:hover, button.ocard:hover { box-shadow: var(--glow); } button.ocard { font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ocard.on { box-shadow: var(--glow); background: var(--gold-soft); }
.wheel-wrap { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 28px; align-items: center; }
.wheel { width: 100%; overflow: visible; } .wheel .wh-ring { fill: none; stroke: var(--gold-line); } .wheel .wh-seg { fill: none; stroke: var(--line); }
.wheel .wh-dot { fill: var(--panel-solid); stroke: var(--gold); stroke-width: 1.5; cursor: pointer; } .wheel .wh-dot.on { fill: var(--gold); } .wheel .wh-dot.past { stroke: var(--ink-3); }
.wheel text { font: 500 12px var(--f-body); fill: var(--ink); letter-spacing: .04em; } .wheel text.wh-date { font-size: 10.5px; fill: var(--ink-2); } .wheel .wh-now { stroke: var(--pink); stroke-width: 2; } .wheel .wh-nowdot { fill: var(--pink); }
.wheel .wh-season { font: italic 500 15px var(--f-ital); fill: var(--gold-ink); }
.big-glyph { font: 400 64px/1 var(--f-disp); color: var(--gold-ink); }
.spread { position: relative; width: 100%; margin: 10px 0 18px; }
.spread-slot { position: absolute; width: var(--w, 13%); transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); text-align: center; }
.spread-slot .sl-lbl { display: block; font: 500 10.5px/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-top: 4px; }
.spread-slot .slot-e { aspect-ratio: 7/12; border: 1px dashed var(--gold-line); border-radius: 10px; display: grid; place-items: center; color: var(--gold-ink); font: 500 18px var(--f-disp); background: var(--field); }
.spread-slot button { width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.readout { list-style: none; margin: 0; padding: 0; counter-reset: r; } .readout li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.readout li:last-child { border: 0; } .readout h4 { font: 500 18px var(--f-disp); } .readout .pos { font: 500 11px var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.card-row { display: flex; gap: 8px; flex-wrap: wrap; } .card-row .tcard-f { width: 56px; } .card-row .tcard-f .tf-name, .card-row .tcard-f .tf-num { font-size: 7px; } .card-row .tf-rev { display: none; }
.deck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; } .deck-grid button { background: none; border: 0; padding: 0; cursor: pointer; text-align: center; color: var(--ink); } .deck-grid small { display: block; margin-top: 4px; font-size: 11.5px; color: var(--ink-2); }
.rune { display: inline-grid; place-items: center; width: 64px; height: 80px; border-radius: 40% 40% 36% 36%; background: linear-gradient(160deg, #EDE4D1, #BDB09A); color: #1D2869; font: 500 34px var(--f-body); box-shadow: inset 0 -4px 0 rgba(0,0,0,.15), 0 8px 18px -10px #000; }
.rune.rev { transform: rotate(180deg); }
.pendulum { position: relative; width: 120px; height: 160px; margin: 0 auto; } .pendulum i { position: absolute; left: 50%; top: 0; width: 1px; height: 110px; background: var(--gold); transform-origin: top; animation: swing 1.6s ease-in-out infinite alternate; }
.pendulum i::after { content: ''; position: absolute; left: -12px; bottom: -26px; width: 24px; height: 30px; background: linear-gradient(135deg, var(--peri), var(--lilac)); clip-path: polygon(50% 100%, 0 30%, 50% 0, 100% 30%); }
.pendulum.still i { animation: none; } @keyframes swing { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
.big-ans { font: italic 500 44px/1.1 var(--f-ital); color: var(--gold-ink); text-align: center; margin: 6px 0; }
.chakras { display: grid; gap: 10px; } .chakra { display: grid; grid-template-columns: 30px minmax(0, 1fr) 140px; gap: 12px; align-items: center; } .chakra i { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 14px -2px currentColor; background: currentColor; }
.chakra input[type=range] { width: 100%; accent-color: var(--gold); }
.breathe { width: 140px; height: 140px; border-radius: 50%; margin: 10px auto; background: radial-gradient(circle, var(--peri), transparent 70%); border: 1px solid var(--gold-line); display: grid; place-items: center; font: italic 500 19px var(--f-ital); color: var(--ink); animation: breathe 10s ease-in-out infinite; }
.p369 { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.prompt-card { text-align: center; padding: 10px 6px; } .prompt-card p { font: italic 500 27px/1.3 var(--f-ital); margin: 0 auto 14px; max-width: 34ch; color: var(--ink); }
.yeargrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.ym { display: flex; flex-direction: column; gap: 6px; background: var(--panel); border: 1px solid var(--gold-line); border-radius: 999px 999px 14px 14px; padding: 10px 10px 12px; text-decoration: none; color: inherit; text-align: center; }
.ym .pic { aspect-ratio: 3/4; border-radius: 999px 999px 8px 8px; } .ym b { font: 500 20px var(--f-disp); } .ym small { color: var(--ink-2); font-size: 12px; }
.stars { color: var(--gold); letter-spacing: 2px; }
.habgrid { overflow-x: auto; } .habgrid table { border-collapse: separate; border-spacing: 3px; } .habgrid th { font: 500 10px var(--f-body); color: var(--ink-3); text-align: center; padding: 0; } .habgrid th.hn { text-align: left; font-size: 14px; color: var(--ink); min-width: 140px; padding-right: 10px; letter-spacing: 0; text-transform: none; }
.habgrid th.t { color: var(--gold-ink); }
.shop li.got > .main { text-decoration: line-through; opacity: .6; }
.warnbox { border: 1px solid color-mix(in srgb, var(--bad) 60%, transparent); background: var(--bad-bg); color: var(--ink); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.warnbox b { color: var(--bad); }
.bigstat { font: 500 46px/1 var(--f-disp); color: var(--ink); }
.yom { text-align: center; } .yom .bigstat { font-size: 54px; } .yom .label { margin-top: 6px; }

/* ---------- Timers ---------- */
.presets { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.preset { display: flex; flex-direction: column; align-items: flex-start; padding: 10px 16px; border: 1px solid var(--gold-line); border-radius: 14px; background: var(--field); cursor: pointer; color: var(--ink); font: inherit; } .preset:hover { box-shadow: var(--glow); } .preset b { font: 500 15px var(--f-body); } .preset small { color: var(--ink-2); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 10px 0 18px; }
.tcard { position: relative; display: grid; grid-template-columns: 100px 1fr; gap: 14px; align-items: center; padding: 14px; background: var(--panel); border: 1px solid var(--gold-line); border-radius: var(--r); }
.tc-ring { position: relative; } .tc-ring svg { width: 100px; height: 100px; transform: rotate(-90deg); } .tr-bg { fill: none; stroke: var(--field-2); stroke-width: 8; } .tr-fg { fill: none; stroke: var(--gold); stroke-width: 8; stroke-linecap: round; stroke-dasharray: calc((1 - var(--p, 0)) * 100) 100; }
.tc-candle { position: absolute; left: 50%; bottom: 22px; width: 16px; height: calc(18px + (1 - var(--p, 0)) * 30px); transform: translateX(-50%); background: linear-gradient(90deg, #EFE3C8, #FFF8E6, #D9CBA8); border-radius: 3px 3px 2px 2px; }
.tc-candle i { position: absolute; left: 50%; top: -16px; width: 10px; height: 16px; margin-left: -5px; background: radial-gradient(ellipse at 50% 70%, #FFF3C4, #F5B84A 55%, transparent 70%); border-radius: 50% 50% 45% 45%; animation: flicker .18s ease-in-out infinite alternate; filter: drop-shadow(0 0 6px #F5B84A); }
.tcard:not(.running) .tc-candle i { animation: none; opacity: .3; } @keyframes flicker { to { transform: scale(.92, 1.08) translateX(.5px); } }
.tc-body h3 { font: 500 20px var(--f-disp); } .tc-clock { display: block; font: 500 34px/1.1 var(--f-body); margin: 2px 0 8px; letter-spacing: .02em; } .tc-btns { display: flex; flex-wrap: wrap; gap: 6px; } .tc-btns .btn { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.tcard.ringing { animation: cardPulse 1s ease-in-out infinite alternate; border-color: var(--gold); } .tcard.done { opacity: .75; }
.tmini { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; border: 1px solid var(--gold-line); border-radius: 12px; background: var(--field); overflow: hidden; }
.tmini::before { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--p, 0) * 100%); background: var(--gold); } .tmini .tm-n { flex: 1; font-weight: 500; font-size: 13.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tmini .tm-t { font-variant-numeric: tabular-nums; font-size: 13.5px; }
.tmini.ringing { background: var(--gold-soft); }

/* ---------- Lock, settings, guide ---------- */
.lock-wrap { max-width: 480px; margin: 30px auto; } .lock { text-align: center; } .lock h2 { font: 500 32px var(--f-disp); margin: 6px 0; } .lock-moon { width: 90px !important; margin: 0 auto 10px; }
.pin-form { display: flex; gap: 8px; justify-content: center; margin: 16px 0 8px; } .pin-in { max-width: 180px; text-align: center; font: 600 24px var(--f-body); letter-spacing: .3em; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.theme-opt { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--field); cursor: pointer; text-align: left; color: var(--ink); font: inherit; }
.theme-opt[aria-pressed="true"] { border-color: var(--gold); box-shadow: var(--glow); } .theme-opt small { color: var(--ink-2); } .theme-opt b { font: 500 21px var(--f-disp); }
.theme-sw { display: flex; border-radius: 999px; overflow: hidden; margin-bottom: 4px; border: 1px solid var(--gold-line); } .theme-sw i { width: 26px; height: 22px; }
.guide-flows { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 18px; }
.flow { display: block; background: var(--panel); border: 1px solid var(--gold-line); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: inherit; } .flow:hover { box-shadow: var(--glow); } .flow h3 { font-size: 19px; margin-bottom: 4px; } .flow p { margin: 0; font-size: 14px; color: var(--ink-2); }
.keys { display: flex; flex-wrap: wrap; gap: 10px 18px; }

/* ---------- Sign-in ---------- */
.auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; position: relative; z-index: 1; }
.auth-art { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 50px 40px; border-right: 1px solid var(--gold-line); overflow: hidden; text-align: center; }
.auth-art .orbit-hero { width: min(420px, 80%); } .aa-title { font: italic 400 clamp(72px, 9vw, 120px)/.9 var(--f-disp); margin: 14px 0 6px; color: var(--ink); } .aa-tag { font: italic 500 26px var(--f-ital); color: var(--gold-ink); margin: 0; }
.aa-lede { max-width: 46ch; margin-top: 18px; color: var(--ink-2); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-card { position: relative; width: min(430px, 100%); background: var(--panel); border: 1px solid var(--gold-line); border-radius: 20px; padding: 28px 28px 22px; box-shadow: var(--shadow); }
.auth-card h2 { font: 500 34px var(--f-disp); margin-bottom: 10px; } .key-input { text-transform: uppercase; letter-spacing: .1em; }

/* ---------- Print ---------- */
@media print {
  #sky, .side, .top, .tabbar, .foot, .demo-band, .head-actions, .toolbar, #toasts, .tabs, .no-print, .btn, .icon-btn { display: none !important; }
  .main-col { margin: 0; } main { padding: 0; max-width: none; } body { background: #fff !important; color: #111; } .panel { box-shadow: none; break-inside: avoid; backdrop-filter: none; }
}

/* ---------- Tablet & phone ---------- */
@media (max-width: 1240px) { .grid.three, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .energy { grid-template-columns: 160px minmax(0, 1fr); } .week { grid-template-columns: repeat(7, minmax(150px, 1fr)); } }
@media (max-width: 960px) {
  .side { transform: translateX(-100%); transition: transform .25s; width: 290px; } body.nav-on .side { box-shadow: 10px 0 30px rgba(0,0,0,.4); transform: none; }
  body.nav-on .scrim { display: block; position: fixed; inset: 0; background: rgba(5, 8, 25, .55); z-index: 39; }
  .main-col { margin-left: 0; }
  .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; z-index: 30; padding: 8px 10px; background: var(--side-bg); border-bottom: 1px solid var(--gold-line); backdrop-filter: blur(10px); } .top .logo { text-decoration: none; }
  main { padding: 18px 16px 100px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--side-bg); border-top: 1px solid var(--gold-line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; align-items: flex-end; backdrop-filter: blur(10px); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; font: 500 10.5px var(--f-body); letter-spacing: .06em; color: var(--ink-2); text-decoration: none; background: none; border: 0; padding: 4px 8px; min-width: 56px; cursor: pointer; }
  .tabbar .ic { width: 22px; height: 22px; } .tabbar [aria-current="page"] { color: var(--gold-ink); }
  .tabbar .fab { width: 56px; height: 56px; min-width: 0; border-radius: 50%; background: var(--gold); color: #12173A; border: 0; margin-top: -24px; justify-content: center; box-shadow: 0 0 22px -4px var(--gold); }
  .foot { padding-bottom: 90px; }
  .grid.two, .grid.three, .grid.four, .altar-head, .dpage, .wheel-wrap, .energy { grid-template-columns: minmax(0, 1fr); } .span2 { grid-column: auto; }
  .countdowns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .week { grid-template-columns: repeat(7, minmax(170px, 72vw)); scroll-snap-type: x mandatory; } .wcol { scroll-snap-align: start; }
  .vb-tools { overflow-x: auto; flex-wrap: nowrap; } .vb-tools > * { flex: none; }
  #toasts { bottom: 90px; } .orbit-hero { width: min(80vw, 340px); }
  .auth { grid-template-columns: minmax(0, 1fr); } .auth-art { border-right: 0; padding: 40px 20px 10px; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .form-grid, .form-grid.three, .qa-grid { grid-template-columns: minmax(0, 1fr); }
  .page-head { margin-bottom: 16px; } .page-head h1 { font-size: 44px; } .head-actions { width: 100%; } .head-actions .btn { flex: 1 1 auto; }
  .panel { padding: 18px 16px; } .panel-h h2 { font-size: 23px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .metric b { font-size: 26px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; } .tabs a { flex: none; padding: 6px 13px; font-size: 13px; } .tabs a .ic { display: none; }
  .toolbar .filter { flex: 1 1 140px; }
  .modal-body { padding: 14px 16px; } .modal-foot { padding: 10px 16px 14px; }
  .countdowns { grid-template-columns: minmax(0, 1fr); } .cd .arch-in { padding-top: 26px; }
  .en-list > div, .corr > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .cotd { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
  .mg-d { min-height: 64px; padding: 3px; } .mg-d .tg, .mg-ev { display: none; } .mg-d .tg.keep { display: inline-flex; font-size: 0; padding: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); border: 0; } .mg-top { flex-direction: column; align-items: flex-start; }
  .tcard { grid-template-columns: 76px 1fr; } .tc-ring svg { width: 76px; height: 76px; } .tc-clock { font-size: 28px; } .tc-candle { bottom: 16px; }
  .vb-pick .kick { font-size: 26px; } .vb-sel { min-width: 0; flex: 1; } .vb-right { width: 100%; } .vb-right .btn { flex: 1; }
  .readout li { grid-template-columns: 54px minmax(0, 1fr); } .chakra { grid-template-columns: 26px minmax(0, 1fr); } .chakra input { grid-column: 1 / -1; }
  .p369 { grid-template-columns: 70px 1fr auto; } .sched li { grid-template-columns: 54px minmax(0, 1fr) auto; }
  .greet { font-size: 50px; } .aff { font-size: 23px; } .spread-slot .sl-lbl { font-size: 8.5px; letter-spacing: 0; }
}
/* ui.card shares the panel look */
.card { position: relative; background: var(--panel); border: 1px solid var(--gold-line); border-radius: var(--r); padding: 22px 24px; margin-bottom: 20px; min-width: 0; box-shadow: var(--shadow); }
.card::before { content: ''; position: absolute; inset: 5px; border: 1px solid var(--line); border-radius: calc(var(--r) - 4px); pointer-events: none; }
.card-head { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; } .card-head h2 { font: 500 24px/1.1 var(--f-disp); } .card-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.card > *:not(.card-head) { position: relative; }
.grid > .card { margin-bottom: 0; } .settings .wide { grid-column: 1 / -1; }
.stats-row { display: flex; gap: 30px; flex-wrap: wrap; margin-bottom: 10px; } .stats-row .bigstat { display: flex; flex-direction: column; font-size: 16px; } .stats-row .bigstat b { font: 500 40px/1 var(--f-disp); } .stats-row .bigstat span { color: var(--ink-2); font-size: 13px; }
.flow-n { font: italic 500 26px var(--f-ital); color: var(--gold-ink); display: block; } .flow b { font: 500 19px var(--f-disp); display: block; margin-bottom: 4px; }
.br-wrap { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.br-orb { --secs: 4s; width: 170px; height: 170px; border-radius: 50%; margin: 6px auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle, color-mix(in srgb, var(--peri) 40%, transparent), transparent 70%); border: 1px solid var(--gold-line); transform: scale(.72); transition: transform var(--secs) ease-in-out; }
.br-orb[data-phase="in"] { transform: scale(1); } .br-orb[data-phase="hold"] { transform: scale(var(--hold, 1)); } .br-orb[data-phase="out"] { transform: scale(.72); }
.br-orb span { font: italic 500 19px var(--f-ital); } .br-orb b { font: 500 30px var(--f-disp); }
.tt-rows { list-style: none; margin: 0; padding: 0; } .tt-rows li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tt-kv { display: grid; gap: 6px; margin: 0; } .tt-kv div { display: flex; justify-content: space-between; gap: 10px; } .tt-kv dt { color: var(--ink-3); font-size: 13px; } .tt-kv dd { margin: 0; }
.habgrid td { padding: 0; text-align: center; } .habgrid .hmoon { width: 24px; height: 24px; } .habgrid td.st { font: 500 12px var(--f-body); color: var(--ink-2); padding: 0 6px; white-space: nowrap; }
.ym.cur { box-shadow: var(--glow); } .ym .ym-c { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.money-pos { color: var(--good); } .money-neg { color: var(--bad); }
ul.tags { list-style: none; padding: 0; margin: 2px 0; }
.hmoon { background: radial-gradient(circle at 72% 50%, var(--field) 50%, color-mix(in srgb, var(--t) 26%, transparent) 52%); }
