/* MAYAA — design system
   Crisp, modern, warm. A deep orchid brand, a coral-to-peach glow, and a
   colour for every part of the app, so a patient learns the map by hue.
   Mobile first. */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..600&family=Great+Vibes&display=swap');

:root {
  /* ink */
  --ink: #1c1633;
  --ink-2: #4a4460;
  --ink-3: #7c7691;
  --line: rgba(28, 22, 51, 0.08);
  --line-2: rgba(28, 22, 51, 0.14);

  /* brand */
  --brand: #5b34a8;
  --brand-deep: #3f2380;
  --brand-2: #e0607a;
  --brand-3: #f6a36b;
  --grad: linear-gradient(120deg, #7b4fd6 0%, #e0607a 58%, #f6a36b 100%);
  --grad-deep: linear-gradient(145deg, #1f1340 0%, #3a1e6e 52%, #5a2a74 100%);
  --lilac: #f1ebfb;
  --pearl: #faf8fc;

  /* the older token names, kept so every existing component re-themes */
  --sage: #8a63d2;
  --sage-deep: var(--brand);
  --sage-mist: var(--lilac);
  --ivory: var(--pearl);
  --sand: #fff1ea;
  --sand-deep: #f9d9c8;
  --gold: #e0607a;
  --gold-soft: #fce4e8;
  --blush: #f7cfd8;
  --white: #ffffff;
  --danger: #d64545;
  --ok: #1e9e6a;
  --warn: #d88a0b;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(28, 22, 51, 0.05), 0 4px 14px -6px rgba(63, 35, 128, 0.12);
  --shadow: 0 2px 6px rgba(28, 22, 51, 0.05), 0 18px 40px -14px rgba(63, 35, 128, 0.24);
  --shadow-lg: 0 10px 30px -8px rgba(28, 22, 51, 0.18), 0 40px 80px -24px rgba(63, 35, 128, 0.32);
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans Kannada', sans-serif;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --maxw: 1160px;

  /* navigation surfaces — dark pages override these, nothing else */
  --nav-bg: rgba(250, 248, 252, 0.78);
  --nav-ink: var(--ink);
  --nav-ink-2: var(--ink-2);
  --nav-line: var(--line);
  --nav-pill: rgba(91, 52, 168, 0.08);
  --nav-pill-ink: var(--brand);
  --lang-on-bg: var(--ink);
  --lang-on-ink: #fff;
  --bar-bg: rgba(255, 255, 255, 0.9);
  --bar-ink: #8a849e;
  --bar-active: var(--brand);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.62; color: var(--ink);
  background: var(--pearl); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* A faint aurora behind the light pages. The dark surfaces paint their own. */
body:not(.st-body):not(.sc-body):not(.twin-dark):not(.admin)::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 36% at 8% 0%, rgba(123, 79, 214, 0.10), transparent 70%),
    radial-gradient(38% 32% at 96% 6%, rgba(246, 163, 107, 0.12), transparent 70%),
    radial-gradient(40% 40% at 70% 100%, rgba(224, 96, 122, 0.07), transparent 70%);
}

h1, h2, h3, h4 { font-family: var(--sans); font-weight: 750; line-height: 1.12; letter-spacing: -0.028em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.32rem); letter-spacing: -0.018em; }
/* The elegant accent: one word of a heading in italic serif. */
h1 em, h2 em, h3 em, .accent {
  font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.01em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.06em;
}
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration-color: rgba(91, 52, 168, 0.35); text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
img, svg { max-width: 100%; }
small { font-size: 0.82rem; }
::selection { background: rgba(224, 96, 122, 0.22); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 780px; }
.wrap-tight { max-width: 560px; }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.serif { font-family: var(--serif); }
.hide { display: none !important; }
.ic { flex: none; display: block; }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; color: var(--nav-ink); text-decoration: none; font-weight: 800; font-size: 1.1rem; letter-spacing: 0.04em; line-height: 1.1; }
.brand:hover { color: var(--nav-ink); }
.brand-mark { width: 34px; height: 34px; flex: none; border-radius: 11px; box-shadow: 0 8px 18px -8px rgba(224, 96, 122, 0.7); }
.brand small { display: block; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--nav-ink-2); font-weight: 600; margin-top: 2px; opacity: 0.85; }
/* The wordmark: MAYAA exactly as before, "One" in script beside it. */
.wm { display: inline-flex; align-items: baseline; white-space: nowrap; }
.wm-one {
  font-family: 'Great Vibes', 'Snell Roundhand', 'Apple Chancery', cursive; font-weight: 400;
  font-size: 1.62em; letter-spacing: 0; line-height: .5; margin-left: .06em;
  background: linear-gradient(100deg, #E0607A 10%, #F6A36B 95%); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em;
}
.brand-light .wm-one { background-image: linear-gradient(100deg, #ff9fb1 10%, #ffd0a8 95%); }
.wm-tm { font-size: .55em; font-weight: 600; margin-left: 1px; vertical-align: super; line-height: 0; }
.brand small.brand-promise { margin-top: 1px; color: var(--brand-2); opacity: 1; letter-spacing: .1em; }
.brand-light small.brand-promise { color: #ffb3c1; }
.hero-promise { font-family: var(--serif); font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--brand); margin: -4px 0 14px; letter-spacing: -.005em; }
.hero-promise em { color: var(--brand-2); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg); backdrop-filter: saturate(170%) blur(18px); -webkit-backdrop-filter: saturate(170%) blur(18px);
  border-bottom: 1px solid var(--nav-line);
}
.nav-inner { display: flex; align-items: center; gap: 14px; height: 68px; position: relative; }
.nav-primary { display: flex; align-items: center; gap: 2px; margin-left: 18px; }
.nav-primary > a, .nav-explore > summary {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; color: var(--nav-ink-2); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background 0.16s ease, color 0.16s ease;
}
.nav-primary > a:hover, .nav-explore > summary:hover, .nav-explore[open] > summary { background: var(--nav-pill); color: var(--nav-ink); }
.nav-primary > a.is-active { background: var(--nav-pill); color: var(--nav-pill-ink); }
.nav-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-login { font-size: 0.9rem; font-weight: 600; color: var(--nav-ink-2); text-decoration: none; padding: 8px 6px; }
.nav-login:hover { color: var(--nav-ink); }
.cta-short { display: none; }

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.nav-explore .chev { transition: transform 0.2s ease; opacity: 0.6; }
.nav-explore[open] .chev { transform: rotate(180deg); }

/* Explore: the whole app in three columns, under the header. */
.mega {
  position: absolute; top: calc(100% + 10px); left: 20px; right: 20px; margin: 0 auto; max-width: 860px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 18px; padding: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg);
  animation: popIn 0.18s ease-out; color: var(--ink);
}
.mega h6, .sheet h6 {
  margin: 4px 10px 8px; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); font-weight: 700;
}
.mi { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 16px; text-decoration: none; color: var(--ink); transition: background 0.14s ease; }
.mi:hover { background: var(--lilac); color: var(--ink); }
.mi.is-active { background: var(--lilac); }
.mi-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex: none;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 8px 16px -8px var(--c1); }
.mi-text b { display: block; font-size: 0.9rem; font-weight: 700; line-height: 1.25; }
.mi-text small { display: block; font-size: 0.76rem; color: var(--ink-3); line-height: 1.3; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }

/* Account */
.nav-account { position: relative; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 0.92rem; flex: none;
  box-shadow: 0 0 0 2px var(--pearl), 0 0 0 3.5px rgba(123, 79, 214, 0.35);
}
.avatar-lg { width: 44px; height: 44px; font-size: 1.05rem; }
.pop {
  position: absolute; right: 0; top: calc(100% + 12px); width: 260px; padding: 10px; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg);
  animation: popIn 0.18s ease-out; color: var(--ink);
}
.pop-head { display: flex; gap: 11px; align-items: center; padding: 8px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.pop-head b { display: block; font-size: 0.94rem; }
.pop-head small { display: block; color: var(--ink-3); font-size: 0.76rem; word-break: break-all; }
.pop a { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.pop a:hover { background: var(--lilac); color: var(--ink); }
.pop a.pop-out { color: var(--danger); }

/* ---------- Language switch ---------- */
.lang-switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--nav-pill); flex: none; }
.lang-switch a { padding: 5px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; text-decoration: none; color: var(--nav-ink-2); }
.lang-switch a:hover { color: var(--nav-ink); }
.lang-switch a.on { background: var(--lang-on-bg); color: var(--lang-on-ink); }
.lang-short { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 0.97rem; font-weight: 700; letter-spacing: -0.005em; cursor: pointer;
  text-decoration: none; transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease, filter 0.16s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(224, 96, 122, 0.7), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-primary:hover { color: #fff; filter: saturate(1.1) brightness(1.04); box-shadow: 0 14px 30px -10px rgba(224, 96, 122, 0.8); transform: translateY(-1px); }
.btn-gold { background: var(--ink); color: #fff; }
.btn-gold:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.7); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: #fff; border-color: rgba(91, 52, 168, 0.35); color: var(--brand); }
.btn-white { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-white:hover { color: var(--brand); }
.btn-glass { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn-sm { padding: 9px 17px; font-size: 0.86rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Cards & chips ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.card-tight { padding: 20px; border-radius: var(--radius); }
.card-sand { background: linear-gradient(160deg, #fff4ee 0%, #fdeef3 100%); border-color: rgba(224, 96, 122, 0.16); }
.card-mist { background: linear-gradient(160deg, #f4effd 0%, #f9f5ff 100%); border-color: rgba(123, 79, 214, 0.16); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--lilac); color: var(--brand); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.chip-gold { background: var(--gold-soft); color: #a8304b; }
.chip-blush { background: #fde8ec; color: #a8304b; }
.chip-plain { background: rgba(28, 22, 51, 0.06); color: var(--ink-2); text-transform: none; letter-spacing: 0; font-weight: 600; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand); font-weight: 800; margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 52px 0 28px; }
.hero h1 { max-width: 16ch; }
.hero .lead, .lead { font-size: clamp(1.03rem, 2.2vw, 1.18rem); color: var(--ink-2); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } .hero { padding: 72px 0 40px; } }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; color: var(--ink-3); font-size: 0.86rem; font-weight: 500; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); flex: none; }

/* ---------- Sections ---------- */
section { padding: 52px 0; }
.section-head { max-width: 62ch; margin-bottom: 30px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Journey cards */
.journey {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; transition: transform 0.2s ease, box-shadow 0.2s ease; position: relative; overflow: hidden;
}
.journey::after { content: ''; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, var(--c2, #f6a36b), transparent 70%); opacity: 0.18; }
.journey:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.journey h3 { margin: 0; font-size: 1.16rem; }
.journey p { margin: 0; color: var(--ink-3); font-size: 0.92rem; }
.journey .go { margin-top: auto; padding-top: 12px; color: var(--brand); font-weight: 700; font-size: 0.9rem; display: inline-flex; gap: 6px; align-items: center; }
.journey-icon { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--c1, #7b4fd6), var(--c2, #e0607a)); box-shadow: 0 10px 20px -10px var(--c1, #7b4fd6); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 14px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 22px 22px 22px 64px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 21px; width: 30px; height: 30px; border-radius: 10px;
  background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 0.86rem; font-weight: 800;
}
.step h4 { font-size: 1rem; font-weight: 750; margin: 0 0 4px; letter-spacing: -0.01em; }
.step p { margin: 0; font-size: 0.9rem; color: var(--ink-3); }

/* Why MAYAA */
.doctor { display: grid; gap: 26px; align-items: center; }
@media (min-width: 860px) { .doctor { grid-template-columns: 180px 1fr; } }
.doctor-portrait {
  width: 100%; max-width: 180px; aspect-ratio: 1; border-radius: 36%; margin: 0 auto;
  background: var(--grad); display: grid; place-items: center; font-family: var(--serif); font-size: 3.4rem; color: #fff;
  box-shadow: 0 24px 50px -22px rgba(224, 96, 122, 0.8);
}

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 18px; }
.field > label, .label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.hint { font-size: 0.82rem; color: var(--ink-3); margin-top: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; padding: 13px 15px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid rgba(28, 22, 51, 0.16); border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px rgba(123, 79, 214, 0.16); }
.input-row { display: grid; gap: 14px; }
@media (min-width: 620px) { .input-row.two { grid-template-columns: 1fr 1fr; } }
.checkline { display: flex; gap: 11px; align-items: flex-start; font-size: 0.89rem; color: var(--ink-2); margin-bottom: 12px; }
.checkline input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--sage-deep); flex: none; }
.form-error { background: #fbeceb; border: 1px solid rgba(168, 68, 58, 0.3); color: #83352d; padding: 12px 15px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 16px; }
.form-ok { background: #eaf7f0; border: 1px solid rgba(76, 122, 86, 0.3); color: #17744e; padding: 12px 15px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 16px; }

/* Option buttons (assessment) */
.options { display: grid; gap: 9px; }
.option {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer;
  border: 1.5px solid rgba(28, 22, 51, 0.13); border-radius: 14px; background: #fff;
  font-size: 0.96rem; transition: border-color 0.14s ease, background 0.14s ease, transform 0.14s ease;
}
.option:hover { border-color: var(--sage); background: #fbf9ff; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .mark {
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(28, 22, 51, 0.28);
  flex: none; display: grid; place-items: center; transition: all 0.14s ease;
}
.option.multi .mark { border-radius: 6px; }
.option.is-selected { border-color: var(--sage-deep); background: var(--sage-mist); }
.option.is-selected .mark { border-color: var(--sage-deep); background: var(--sage-deep); }
.option.is-selected .mark::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.option.multi.is-selected .mark::after { width: 10px; height: 6px; border-radius: 0; background: none; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }

.scale-row { display: flex; gap: 6px; flex-wrap: wrap; }
.scale-btn { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid rgba(28, 22, 51,0.13); background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.scale-btn.is-selected { background: var(--sage-deep); color: #fff; border-color: var(--sage-deep); }

/* ---------- Progress ---------- */
.progress { height: 5px; background: rgba(28, 22, 51, 0.09); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--grad); border-radius: 999px; transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.progress-sticky { position: sticky; top: 68px; z-index: 30; background: var(--ivory); padding-top: 14px; padding-bottom: 12px; }

/* ---------- Score ring & report ---------- */
.score-hero { display: grid; gap: 26px; align-items: center; }
@media (min-width: 820px) { .score-hero { grid-template-columns: 260px 1fr; } }
.ring { position: relative; width: 240px; max-width: 100%; margin: 0 auto; }
.ring svg { transform: rotate(-90deg); overflow: visible; }
.ring-track { fill: none; stroke: rgba(28, 22, 51, 0.08); stroke-width: 14; }
.ring-fill { fill: none; stroke: url(#ringGrad); stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.ring-value { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-value b { font-family: var(--serif); font-size: 3.4rem; font-weight: 500; line-height: 1; display: block; }
.ring-value span { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }

.domain { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 14px 0; border-bottom: 1px solid rgba(28, 22, 51,0.07); }
.domain:last-child { border-bottom: 0; }
.domain-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.domain-head strong { font-weight: 600; font-size: 0.97rem; }
.domain-head b { font-family: var(--serif); font-size: 1.05rem; }
.bar { height: 7px; background: rgba(28, 22, 51,0.07); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.bar.good > i { background: linear-gradient(90deg, #1e9e6a, #4cc38a); }
.bar.mid > i { background: linear-gradient(90deg, #c9a227, #dcbd5c); }
.bar.low > i { background: linear-gradient(90deg, #b6604f, #cc8271); }

.priority { border-left: 3px solid var(--gold); padding: 4px 0 4px 18px; }
.priority h3 { margin-bottom: 6px; font-size: 1.16rem; }
.priority ul { margin: 10px 0 0; padding-left: 18px; }
.priority li { margin-bottom: 6px; font-size: 0.94rem; }

/* ---------- Program ---------- */
.day-card { position: relative; }
.day-card.locked { opacity: 0.55; }
.task { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid rgba(28, 22, 51,0.07); }
.task:first-of-type { border-top: 0; }
.task input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--sage-deep); flex: none; cursor: pointer; }
.task strong { display: block; font-size: 0.97rem; font-weight: 600; }
.task span { font-size: 0.89rem; color: var(--ink-3); }
.task.done strong { text-decoration: line-through; color: var(--ink-3); }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; height: min(70vh, 620px); }
.chat-log { flex: 1; overflow-y: auto; padding: 4px 2px 14px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 88%; padding: 14px 17px; border-radius: 18px; font-size: 0.95rem; line-height: 1.58; }
.msg.user { align-self: flex-end; background: var(--sage-deep); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid rgba(28, 22, 51,0.08); border-bottom-left-radius: 6px; }
.msg h2, .msg h3 { font-size: 1.05rem; margin: 0 0 8px; }
.msg p { margin: 0 0 10px; }
.msg p:last-child, .msg ul:last-child { margin-bottom: 0; }
.msg ul, .msg ol { margin: 0 0 10px; padding-left: 20px; }
.msg em { color: var(--ink-3); font-size: 0.86rem; }
.chat-form { display: flex; gap: 10px; align-items: flex-end; padding-top: 12px; border-top: 1px solid rgba(28, 22, 51,0.08); }
.chat-form textarea { min-height: 48px; max-height: 140px; border-radius: 16px; }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.suggestion { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(28, 22, 51,0.14); background: #fff; font: inherit; font-size: 0.84rem; cursor: pointer; text-align: left; }
.suggestion:hover { border-color: var(--sage); background: var(--sage-mist); }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

/* ---------- Tiles (lists of sections inside pages) ---------- */
.tiles { display: grid; gap: 14px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; transition: transform 0.18s ease, box-shadow 0.18s ease; box-shadow: var(--shadow-sm); }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.tile h3 { margin: 0 0 4px; font-size: 1.05rem; }
.tile p { margin: 0; font-size: 0.9rem; color: var(--ink-3); }
.tile-icon { width: 42px; height: 42px; border-radius: 14px; background: var(--lilac); color: var(--brand); display: grid; place-items: center; flex: none; }

/* ---------- Footer ---------- */
.footer { position: relative; background: #170e2e; color: rgba(255,255,255,0.7); margin-top: 64px; padding: 54px 0 36px; overflow: hidden; }
.footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }
.footer::after { content: ''; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 96, 122, 0.22), transparent 65%); pointer-events: none; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: #f6a36b; }
.footer h4 { color: #fff; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px; font-weight: 800; }
.footer-grid { display: grid; gap: 30px; position: relative; z-index: 1; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand p { max-width: 36ch; font-size: 0.9rem; margin: 16px 0 10px; }
.footer-eco { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem !important; color: rgba(255,255,255,0.55); }
.brand-light { --nav-ink: #fff; --nav-ink-2: rgba(255,255,255,0.6); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 0.9rem; }
.disclaimer { position: relative; z-index: 1; margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.78rem; line-height: 1.65; color: rgba(255,255,255,0.5); }

/* ---------- Admin ---------- */
.admin { background: #f6f4fa; min-height: 100vh; }
.admin-shell { display: grid; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .admin-shell { grid-template-columns: 232px 1fr; } }
.admin-side { background: var(--grad-deep); color: rgba(255,255,255,0.8); padding: 22px 18px; }
.admin-side .brand { --nav-ink: #fff; --nav-ink-2: rgba(255,255,255,.6); }
@media (min-width: 1000px) { .admin-side { min-height: 100vh; position: sticky; top: 0; } }
.admin-side .brand { color: #fff; }
.admin-nav { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 4px; }
.admin-nav a { display: block; padding: 10px 13px; border-radius: 10px; color: rgba(255,255,255,0.78); text-decoration: none; font-size: 0.92rem; }
.admin-nav a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.admin-nav a.active { background: rgba(255,255,255,0.16); color: #fff; font-weight: 600; }
.admin-main { padding: 26px 22px 60px; max-width: 1280px; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: #fff; border: 1px solid rgba(28, 22, 51,0.08); border-radius: var(--radius); padding: 18px; }
.kpi b { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1.1; }
.kpi span { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid rgba(28, 22, 51,0.08); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(28, 22, 51,0.07); white-space: nowrap; }
th { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; background: #fbfbfa; position: sticky; top: 0; }
tbody tr:hover { background: #fafbfa; }
tbody tr { cursor: pointer; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; }
.pill-new { background: var(--sage-mist); color: var(--sage-deep); }
.pill-contacted { background: #e9eff7; color: #35597f; }
.pill-booked { background: var(--gold-soft); color: #7d5a1c; }
.pill-converted { background: #e3f0e6; color: #2f6139; }
.pill-closed { background: #eceae7; color: #6b6259; }
.pill-hot { background: #fbe7e3; color: #93392c; }
.score-badge { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-weight: 650; font-size: 0.86rem; color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.filters input, .filters select { width: auto; min-width: 160px; padding: 9px 12px; font-size: 0.9rem; }
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.open { display: block; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(28, 22, 51, 0.4); backdrop-filter: blur(2px); }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(680px, 100%); background: var(--ivory); overflow-y: auto; box-shadow: var(--shadow-lg); padding: 24px; animation: slideIn 0.22s ease; }
@keyframes slideIn { from { transform: translateX(28px); opacity: 0.4; } to { transform: none; opacity: 1; } }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid rgba(28, 22, 51,0.1); }
.timeline li { position: relative; padding: 0 0 16px 6px; font-size: 0.9rem; }
.timeline li::before { content: ''; position: absolute; left: -25px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--sage); border: 2px solid var(--ivory); }
.timeline time { display: block; font-size: 0.76rem; color: var(--ink-3); }
.msg-preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; max-width: 440px; line-height: 1.45; }
.qr-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.qr-card { background: #fff; border: 1px solid rgba(28, 22, 51,0.08); border-radius: var(--radius); padding: 18px; text-align: center; }
.qr-card svg { width: 100%; height: auto; border-radius: 8px; }

/* ---------- Pamphlet (print) ---------- */
.pamphlet { display: grid; gap: 24px; }
@media (min-width: 1000px) { .pamphlet { grid-template-columns: 1fr 1fr; } }
.panel {
  width: 100%; aspect-ratio: 148 / 210; background: var(--ivory); border-radius: 6px;
  box-shadow: var(--shadow); padding: 30px; display: flex; flex-direction: column;
  border: 1px solid rgba(28, 22, 51,0.08); position: relative; overflow: hidden;
}
.panel-front { background: linear-gradient(165deg, #fbf8f3 0%, #f2ece1 55%, #e8efe8 100%); }
.panel h1 { font-size: 2rem; }
.panel .qr-box { background: #fff; padding: 12px; border-radius: 14px; box-shadow: var(--shadow-sm); width: 150px; }

@media print {
  body { background: #fff; }
  .nav, .footer, .no-print, .admin-side { display: none !important; }
  .admin-main, .wrap { padding: 0; max-width: none; }
  .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  .panel { box-shadow: none; border: 1px dashed #bbb; break-inside: avoid; }
  .pamphlet { grid-template-columns: 1fr 1fr; }
  a { text-decoration: none; color: inherit; }
  section { padding: 12px 0; }
}

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 90;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 0.9rem;
  opacity: 0; pointer-events: none; transition: all 0.25s ease; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Daily plan ---------- */
.plan-head { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: flex-end; }
.plan-stats { display: flex; gap: 20px; }
.plan-stats b { display: block; font-family: var(--serif); font-size: 1.7rem; line-height: 1; }
.plan-stats span { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.week-strip { display: flex; align-items: center; gap: 7px; margin-top: 12px; }
.week-dot {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(28, 22, 51,.07); color: var(--ink-3); font-size: .72rem; font-weight: 600;
}
.week-dot.on { background: var(--sage-deep); color: #fff; }
.week-strip small { margin-left: 6px; }

.plan-card {
  display: flex; gap: 14px; align-items: flex-start; background: #fff;
  border: 1px solid rgba(28, 22, 51,.08); border-radius: var(--radius-lg); padding: 18px 20px;
  transition: border-color .18s ease, background .18s ease, opacity .18s ease;
}
.plan-card.is-done { background: #f7faf7; border-color: rgba(123, 79, 214,.35); }
.plan-card.is-done h3 { color: var(--ink-3); text-decoration: line-through; }
.plan-body { flex: 1; min-width: 0; }
.plan-body h3 { margin: 4px 0 6px; font-size: 1.12rem; }
.plan-body p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.plan-meta { display: flex; align-items: center; gap: 8px; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--sage); font-weight: 650; }
.plan-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; }
.plan-icon svg { width: 16px; height: 16px; }
.plan-mins { background: var(--sand); color: #7d5a1c; padding: 2px 8px; border-radius: 999px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.plan-link { display: inline-block; margin-top: 10px; font-size: .86rem; font-weight: 600; text-decoration: none; }

.plan-check { position: relative; flex: none; cursor: pointer; padding: 2px; }
.plan-check input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.plan-tick {
  display: block; width: 30px; height: 30px; border-radius: 10px;
  border: 2px solid rgba(28, 22, 51,.22); transition: all .16s ease;
}
.plan-check input:checked + .plan-tick { background: var(--sage-deep); border-color: var(--sage-deep); }
.plan-check input:checked + .plan-tick::after {
  content: ''; position: absolute; left: 11px; top: 8px; width: 8px; height: 14px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.plan-check input:focus-visible + .plan-tick { box-shadow: 0 0 0 4px rgba(123, 79, 214,.25); }

.counter { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.counter button {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(28, 22, 51,.16);
  background: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--sage-deep);
}
.counter button:hover { background: var(--sage-mist); }
.counter > span { font-size: 1rem; }
.counter b { font-family: var(--serif); font-size: 1.5rem; }
.counter small { width: 100%; }

/* ---------- Pillar pages ---------- */
.back-link { font-size: .88rem; text-decoration: none; color: var(--ink-3); }
.tick-list { list-style: none; margin: 10px 0 0; padding: 0; }
.tick-list li { position: relative; padding: 0 0 10px 26px; font-size: .95rem; }
.tick-list li::before {
  content: ''; position: absolute; left: 4px; top: 6px; width: 8px; height: 13px;
  border: solid var(--sage); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.tick-list.cross li::before, .tick-list.warn li::before {
  content: '×'; border: 0; transform: none; left: 2px; top: -1px; font-size: 1.1rem;
  color: var(--danger); font-weight: 700; width: auto; height: auto;
}
.tick-list.warn li::before { content: '⚠︎'; color: var(--warn); font-size: .95rem; }
.step-list { margin: 10px 0 0; padding-left: 20px; }
.step-list li { margin-bottom: 7px; font-size: .95rem; }
.caution {
  margin: 12px 0 0; padding: 10px 13px; border-radius: 12px; font-size: .88rem;
  background: #fbf3e8; color: #7d5a1c; border: 1px solid rgba(224, 96, 122,.25);
}
.water-figure { font-family: var(--serif); font-size: clamp(3rem, 12vw, 4.6rem); line-height: 1; color: var(--sage-deep); }

/* ---------- Evidence cards ---------- */
.evidence-card { border-left: 3px solid var(--gold); }
.evidence-figure { font-family: var(--serif); font-size: 2.1rem; line-height: 1.05; color: var(--ink); }
.evidence-note { margin: 4px 0 10px; font-size: .95rem; color: var(--ink-2); font-weight: 550; }
.evidence-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .8rem; margin-top: 10px; }

@media (max-width: 520px) {
  .plan-card { padding: 16px; gap: 12px; }
  .plan-stats { gap: 14px; }
  .plan-stats b { font-size: 1.4rem; }
}

/* ---------- AI Fertility Twin: body surface (the lab styles are below) ---------- */
body.twin-dark { background: #030a14; color: #dcecf5; }
body.twin-dark .footer { background: #020810; }

/* ---------- Passport ---------- */
.pp-progress { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.pp-progress .progress { flex: 1; }
.pp-progress span { font-size: .84rem; color: var(--ink-3); white-space: nowrap; }
.pp-grid { display: grid; gap: 16px; margin-top: 14px; }
@media (min-width: 640px) { .pp-grid { grid-template-columns: 1fr 1fr; } }
.pp-field { min-width: 0; }
.pp-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.pp-label label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.pp-band { font-size: .74rem; font-weight: 650; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.tone-good { background: #e3f0e6; color: #2f6139; }
.tone-mid { background: #fbf0dc; color: #7d5a1c; }
.tone-low { background: #fbe7e3; color: #93392c; }
.tone-unknown, .tone-neutral { background: rgba(28, 22, 51,.07); color: var(--ink-3); }
.pp-meta { font-size: .76rem; color: var(--ink-3); margin-top: 6px; }
.pp-multi { display: grid; gap: 6px; }
.pp-multi .option { padding: 9px 12px; font-size: .88rem; }
.pp-mini { display: grid; gap: 4px; font-size: .82rem; }
.pp-mini span { color: var(--ink-3); }
.pp-mini input, .pp-mini select { padding: 7px 9px; font-size: .88rem; }
.pp-mini-grid { display: grid; gap: 10px; margin-top: 10px; }
@media (min-width: 520px) { .pp-mini-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Scan onboarding ---------- */
.ob-body { overflow: hidden; }
.ob { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 30px 22px; }
.ob-body, .ob-body main { min-height: 100vh; }
.ob-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 50% at 50% 26%, #ffffff 0%, var(--ivory) 45%, #efe7d9 100%);
  animation: obBg 2s ease-out both;
}
@keyframes obBg { from { transform: scale(1.12); opacity: .5; } to { transform: none; opacity: 1; } }
.ob-inner { position: relative; z-index: 1; max-width: 420px; }
.ob-mark { width: 104px; height: 104px; }
.ob-ring { transform-origin: center; animation: obRing 1.4s cubic-bezier(.22,1,.36,1) both; }
@keyframes obRing { from { transform: rotate(-120deg) scale(.4); opacity: 0; } to { transform: none; opacity: .45; } }
.ob-seed { transform-origin: 60px 34px; animation: obPop .6s cubic-bezier(.34,1.56,.64,1) .1s both; }
@keyframes obPop { from { transform: scale(0); } to { transform: scale(1); } }
.ob-stem { stroke-dasharray: 50; stroke-dashoffset: 50; animation: obDraw .5s ease-out .3s forwards; }
@keyframes obDraw { to { stroke-dashoffset: 0; } }
.ob-leaf { transform-origin: 60px 88px; opacity: 0; }
.ob-leaf-l { animation: obLeafL .6s cubic-bezier(.34,1.4,.64,1) .45s both; }
.ob-leaf-r { animation: obLeafR .6s cubic-bezier(.34,1.4,.64,1) .55s both; }
@keyframes obLeafL { from { transform: rotate(35deg) scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes obLeafR { from { transform: rotate(-35deg) scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
.ob-word {
  font-family: var(--serif); font-size: clamp(2.6rem, 13vw, 3.8rem); letter-spacing: .22em;
  margin: 14px 0 0; color: var(--ink); animation: obWord .9s cubic-bezier(.22,1,.36,1) .35s both;
}
.ob-word sup { font-size: .28em; vertical-align: super; letter-spacing: 0; color: var(--gold); }
.ob-one {
  font-family: 'Great Vibes', 'Snell Roundhand', 'Apple Chancery', cursive; font-weight: 400; letter-spacing: 0;
  font-size: 1.05em; margin-left: -.12em; line-height: .6;
  background: linear-gradient(100deg, #E0607A 10%, #F6A36B 95%); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.ob-promise { color: var(--brand-2); font-family: var(--serif); font-style: italic; font-size: 1.02rem; margin: 6px 0 0; animation: obFade .7s ease-out 1s both; }
@keyframes obWord { from { opacity: 0; letter-spacing: .5em; } to { opacity: 1; letter-spacing: .22em; } }
.ob-tag { color: var(--sage); font-size: .92rem; letter-spacing: .1em; margin: 2px 0 0; animation: obFade .7s ease-out .8s both; }
.ob-journey {
  display: inline-block; margin: 18px 0 0; padding: 6px 16px; border-radius: 999px;
  background: var(--sage-mist); color: var(--sage-deep); font-size: .82rem; font-weight: 650;
  animation: obFade .6s ease-out 1.1s both;
}
.ob-steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.ob-steps li { font-size: .95rem; color: var(--ink-2); opacity: 0; animation: obStep .7s ease-out both; }
@keyframes obStep { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes obFade { from { opacity: 0; } to { opacity: 1; } }
.ob-go {
  display: inline-flex; margin-top: 24px; padding: 15px 32px; border-radius: 999px;
  background: var(--sage-deep); color: #fff; text-decoration: none; font-weight: 600;
  animation: obFade .5s ease-out 1.3s both; box-shadow: var(--shadow);
}
.ob-go:hover { color: #fff; background: #3f2380; }
.ob-bar { width: 132px; height: 3px; border-radius: 999px; background: rgba(28, 22, 51,.1); margin: 18px auto 0; overflow: hidden; }
.ob-bar > i { display: block; height: 100%; background: var(--gold); animation: obBar 2s linear both; }
@keyframes obBar { from { width: 0; } to { width: 100%; } }
.ob-eco { margin-top: 14px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); animation: obFade .6s ease-out 1.4s both; }
@media (prefers-reduced-motion: reduce) {
  .ob * { animation-duration: .01ms !important; }
  .ob-leaf { opacity: 1; }
}

/* ---------- Studio ---------- */
body.st-body { background: #0a0f1c; color: #e6ecf5; }
body.st-body .footer { background: #070b16; }

.st-main { padding-bottom: 40px; }
.st-hero { padding: 26px 0 6px; }
.st-greet { color: #8fa3c4; font-size: .92rem; margin: 0; }
.st-hero h1 { font-size: clamp(1.7rem,4.6vw,2.3rem); color: #f2f6fb; margin: 4px 0 6px; }
.st-sub { color: #93a6c2; font-size: .92rem; margin: 0; }
.st-section { padding: 16px 0; }
.st-h2 { font-size: 1.15rem; color: #eef3fa; margin: 0 0 12px; }

.art { width: 100%; display: block; }
.st-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .st-grid { grid-template-columns: 1fr 1fr; } }
.st-card {
  display: block; text-decoration: none; color: inherit; border-radius: 20px; overflow: hidden;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  transition: transform .18s ease, border-color .18s ease;
}
.st-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.28); color: inherit; }
.st-art { position: relative; }
.st-purpose {
  position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.42); backdrop-filter: blur(6px);
  color: #fff; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
}
.st-card-body { padding: 16px 18px 18px; }
.st-card-body h3 { margin: 0 0 6px; font-size: 1.15rem; color: #f2f6fb; }
.st-card-body p { margin: 0; color: #93a6c2; font-size: .9rem; }
.st-count { display: inline-block; margin-top: 10px; font-size: .78rem; color: #6f84a6; }

.st-rec { display: block; text-decoration: none; border-radius: 24px; overflow: hidden; position: relative; }
.st-rec-art { position: relative; }
.st-rec-over {
  position: absolute; inset: auto 0 0 0; padding: 20px;
  background: linear-gradient(180deg, rgba(8,12,22,0), rgba(8,12,22,.86));
}
.st-rec-over h2 { margin: 8px 0 4px; color: #fff; font-size: 1.5rem; }
.st-rec-over p { margin: 0; color: #cfdaea; font-size: .9rem; }
.st-badge {
  display: inline-block; background: rgba(255,255,255,.16); color: #fff; font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.st-play-hint { display: inline-block; margin-top: 12px; color: #fff; font-weight: 600; font-size: .9rem; }

.st-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-recent a {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline; text-decoration: none;
  padding: 13px 16px; border-radius: 14px; background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08); color: #e6ecf5;
}
.st-recent a:hover { background: rgba(255,255,255,.09); color: #fff; }
.st-recent span { color: #8fa3c4; font-size: .82rem; }
.st-note { color: #7e93b4; font-size: .84rem; line-height: 1.6; }
.st-note a { color: #9fb6e8; }

/* player */
.st-player-art { position: relative; }
.st-player-title { position: absolute; inset: auto 0 0 0; padding: 22px; background: linear-gradient(180deg, rgba(8,12,22,0), rgba(8,12,22,.9)); }
.st-player-title h1 { margin: 10px 0 2px; font-size: clamp(1.6rem,5vw,2.1rem); color: #fff; }
.st-player-title p { margin: 0; color: #c2d0e6; font-size: .86rem; }
.st-back, .st-fav {
  position: absolute; top: 16px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10,15,28,.55); backdrop-filter: blur(8px); color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,.18); font-size: 1.1rem; cursor: pointer;
}
.st-back { left: 16px; }
.st-fav { right: 16px; }
.st-fav.on { background: #e8788b; border-color: #e8788b; }
.st-desc { color: #b9c8df; font-size: .95rem; line-height: 1.65; }

.st-transport { display: flex; align-items: center; gap: 18px; margin: 18px 0 14px; }
.st-play {
  width: 74px; height: 74px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
  background: linear-gradient(140deg, #f19b8a, #e8788b); color: #fff; font-size: 1.5rem;
  box-shadow: 0 10px 30px rgba(232,120,139,.35); transition: transform .15s ease;
}
.st-play:hover { transform: scale(1.04); }
.st-play:active { transform: scale(.97); }
.st-time b { font-family: var(--serif); font-size: 1.9rem; color: #fff; display: block; line-height: 1; }
.st-time span { font-size: .78rem; color: #8fa3c4; letter-spacing: .08em; text-transform: uppercase; }
.st-level { flex: 1; height: 4px; background: rgba(255,255,255,.1); border-radius: 999px; overflow: hidden; }
.st-level > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg,#f19b8a,#7ad3e8); transition: width .2s linear; }

.st-durations { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.st-dur {
  padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.06); color: #cfdaea;
  border: 1px solid rgba(255,255,255,.12); font: inherit; font-size: .86rem; cursor: pointer;
}
.st-dur.on { background: #fff; color: #10182b; border-color: #fff; font-weight: 600; }

.st-mix { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: 20px; padding: 18px; margin-bottom: 14px; }
.st-mix h3 { margin: 0 0 12px; font-size: 1.05rem; color: #eef3fa; }
.st-mix-head { display: flex; justify-content: space-between; align-items: center; }
.st-reset { background: rgba(255,255,255,.12); border: 0; color: #dbe5f2; border-radius: 999px; padding: 5px 14px; font: inherit; font-size: .8rem; cursor: pointer; }
.st-slider { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; margin-bottom: 12px; }
.st-slider label { font-size: .9rem; color: #c3d1e6; }
.st-slider input[type=range] { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 999px; background: rgba(255,255,255,.18); }
.st-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #f19b8a; box-shadow: 0 2px 8px rgba(0,0,0,.35); cursor: pointer;
}
.st-slider input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #f19b8a; cursor: pointer; }
.st-head-note { color: #8fa3c4; font-size: .82rem; margin: 10px 0 0; }

.st-breath { text-align: center; margin: 10px 0 18px; }
.st-breath-ring {
  width: 130px; height: 130px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(241,155,138,.22), rgba(241,155,138,.05));
  border: 1px solid rgba(241,155,138,.45); color: #ffd9cf; font-size: .9rem;
}
.st-breath p { color: #8fa3c4; font-size: .82rem; margin-top: 10px; }

.st-guide { margin: 0 0 18px; padding-left: 20px; color: #7e93b4; }
.st-guide li { margin-bottom: 7px; transition: color .4s ease; font-size: .94rem; }
.st-guide li.on { color: #fff; font-weight: 600; }

.st-links { display: grid; gap: 8px; margin: 18px 0; }
.st-link {
  display: flex; justify-content: space-between; gap: 12px; padding: 13px 16px; border-radius: 14px;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); text-decoration: none; color: #e6ecf5;
}
.st-link:hover { background: rgba(255,255,255,.09); color: #fff; }
.st-link span { color: #8fa3c4; font-size: .82rem; }
.st-counts { color: #9ec8b0; font-size: .86rem; }
.st-player.is-playing .st-play { animation: stPulse 3.4s ease-in-out infinite; }
@keyframes stPulse { 0%,100% { box-shadow: 0 10px 30px rgba(232,120,139,.35); } 50% { box-shadow: 0 10px 46px rgba(232,120,139,.6); } }
body.st-body .evidence-card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); border-left-color: #f19b8a; }
body.st-body .evidence-figure, body.st-body .evidence-note { color: #eef3fa; }
body.st-body .evidence-card .muted { color: #8fa3c4; }

/* ---------- Circles (community) ---------- */
.cm-main { padding-bottom: 48px; }
.cm-hero { padding: 26px 0 4px; }
.cm-hero h1 { font-size: clamp(1.8rem,5vw,2.6rem); margin: 6px 0 10px; }
.cm-section { padding: 14px 0; }
.cm-h2 { font-size: 1.2rem; margin: 0 0 12px; }
.cm-blurb { color: var(--ink-2); font-size: .95rem; margin: 0 0 18px; }

.cm-rooms { display: grid; gap: 16px; }
@media (min-width: 680px) { .cm-rooms { grid-template-columns: 1fr 1fr; } }
.cm-room {
  display: block; text-decoration: none; color: inherit; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); border: 1px solid rgba(28, 22, 51,.08); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cm-room:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.cm-room-art { position: relative; line-height: 0; }
.cm-banner-art { width: 100%; display: block; }
.cm-room-body { padding: 16px 18px 18px; }
.cm-room-body h3 { margin: 6px 0; font-size: 1.2rem; }
.cm-room-body p { margin: 0; color: var(--ink-3); font-size: .9rem; }
.cm-purpose {
  display: inline-block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); font-weight: 650;
}
.cm-room-meta { display: inline-block; margin-top: 10px; font-size: .8rem; color: var(--ink-3); }
.cm-unread, .cm-joined {
  position: absolute; top: 12px; padding: 4px 11px; border-radius: 999px; font-size: .7rem; font-weight: 650;
  letter-spacing: .04em; backdrop-filter: blur(6px); line-height: 1.7;
}
.cm-unread { right: 12px; background: var(--gold); color: #fff; }
.cm-joined { left: 12px; background: rgba(255,255,255,.85); color: var(--sage-deep); }

.cm-suggests { display: grid; gap: 10px; }
.cm-suggest {
  display: grid; gap: 2px; padding: 14px 18px; border-radius: var(--radius); text-decoration: none;
  background: linear-gradient(160deg, var(--sand) 0%, #f7efe2 100%);
  border: 1px solid rgba(224, 96, 122,.2); color: var(--ink);
}
.cm-suggest:hover { border-color: var(--gold); color: var(--ink); }
.cm-suggest span { color: var(--ink-2); font-size: .88rem; }
.cm-suggest em { color: var(--gold); font-style: normal; font-size: .84rem; font-weight: 650; }

.cm-mine { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cm-mine a {
  display: grid; gap: 2px; padding: 12px 16px; border-radius: 14px; text-decoration: none;
  background: var(--white); border: 1px solid rgba(28, 22, 51,.08); color: var(--ink);
}
.cm-mine a:hover { border-color: var(--sage); color: var(--ink); }
.cm-mine strong { font-weight: 500; font-size: .92rem; }
.cm-mine span { color: var(--ink-3); font-size: .8rem; }
.cm-rules ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.cm-rules li { margin-bottom: 8px; font-size: .92rem; }

/* room */
.cm-banner { position: relative; line-height: 0; }
.cm-banner-text { position: absolute; inset: auto 0 0 0; padding: 18px 20px; line-height: 1.4;
  background: linear-gradient(180deg, rgba(10,14,20,0), rgba(10,14,20,.78)); }
.cm-banner-text h1 { color: #fff; font-size: clamp(1.5rem,4.6vw,2rem); margin: 4px 0 2px; }
.cm-banner-text p { color: rgba(255,255,255,.8); font-size: .84rem; margin: 0; }
.cm-banner-text .cm-purpose { color: rgba(255,255,255,.85); }
.cm-back {
  position: absolute; top: 14px; left: 14px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0,0,0,.4); backdrop-filter: blur(8px);
  color: #fff; text-decoration: none; line-height: 1;
}
.cm-back:hover { color: #fff; background: rgba(0,0,0,.6); }
.cm-crumb { display: inline-block; margin-bottom: 14px; font-size: .88rem; text-decoration: none; }

/* composer */
.cm-composer, .cm-join { background: var(--white); border: 1px solid rgba(28, 22, 51,.1);
  border-radius: var(--radius-lg); padding: 18px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.cm-composer-head, .cm-preview { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cm-composer-head b, .cm-preview b { display: block; font-weight: 600; font-size: .95rem; }
.cm-composer-head span, .cm-preview span { display: block; color: var(--ink-3); font-size: .78rem; }
.cm-composer textarea {
  width: 100%; border: 1px solid rgba(28, 22, 51,.14); border-radius: var(--radius); padding: 13px 15px;
  font: inherit; font-size: .98rem; resize: none; background: var(--ivory); color: var(--ink);
}
.cm-composer textarea:focus { outline: 2px solid var(--sage); outline-offset: 1px; background: #fff; }
.cm-prompts { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.cm-prompt {
  border: 1px dashed rgba(91, 52, 168,.28); background: transparent; color: var(--ink-2);
  border-radius: 999px; padding: 6px 13px; font: inherit; font-size: .8rem; cursor: pointer;
}
.cm-prompt:hover { background: var(--sage-mist); border-style: solid; }
.cm-composer-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.cm-count { color: var(--ink-3); font-size: .78rem; }
.cm-redaction { color: var(--ink-3); font-size: .78rem; margin: 10px 0 0; line-height: 1.5; }
.cm-preview { padding: 12px; border-radius: var(--radius); background: var(--sage-mist); margin-bottom: 14px; }

/* posts */
.cm-feed { display: grid; gap: 14px; }
.cm-post {
  background: var(--white); border: 1px solid rgba(28, 22, 51,.08); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow-sm);
}
.cm-post.is-compact { padding: 15px 18px; background: #fdfcfa; }
.cm-post.is-care { border-color: rgba(63,120,168,.35); background: linear-gradient(170deg,#f4f9fd,#fff); }
.cm-post.is-held { border-style: dashed; opacity: .92; }
.cm-post.cm-new { animation: cmIn .35s ease-out; }
@keyframes cmIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cm-post-head { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.cm-post-head b { font-weight: 600; font-size: .92rem; display: block; }
.cm-time { color: var(--ink-3); font-size: .78rem; }
.cm-avatar { display: inline-grid; place-items: center; border-radius: 12px; overflow: hidden; flex: none; }
.cm-avatar svg { display: block; }
.cm-avatar-care { background: linear-gradient(140deg,#3f78a8,#2f5f88); border-radius: 12px; }
.cm-verified { color: #3f78a8; margin-left: 5px; font-size: .8rem; }
.cm-body { color: var(--ink-2); font-size: .96rem; line-height: 1.68; }
.cm-body p { margin: 0 0 .7em; }
.cm-body p:last-child { margin-bottom: 0; }

.cm-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.cm-heart {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; cursor: pointer;
  color: var(--ink-3); font: inherit; font-size: .84rem; padding: 4px 0;
}
.cm-heart .cm-heart-mark { font-size: 1rem; transition: transform .18s ease; }
.cm-heart:hover { color: var(--danger); }
.cm-heart.on { color: var(--danger); font-weight: 600; }
.cm-heart.on .cm-heart-mark { transform: scale(1.18); }
.cm-replies { color: var(--ink-3); font-size: .84rem; text-decoration: none; }
.cm-replies:hover { color: var(--sage-deep); }
.cm-report { margin-left: auto; border: 0; background: transparent; color: var(--ink-3);
  font: inherit; font-size: .78rem; cursor: pointer; text-decoration: underline; }
.cm-report:hover { color: var(--danger); }
.cm-empty { color: var(--ink-3); font-size: .93rem; line-height: 1.65; padding: 8px 2px; }

/* flags and notices */
.cm-flag { border-radius: 12px; padding: 9px 13px; font-size: .82rem; margin-bottom: 10px; line-height: 1.5; }
.cm-flag-held { background: rgba(168,68,58,.08); color: var(--danger); border: 1px solid rgba(168,68,58,.2); }
.cm-flag-review { background: rgba(181,131,44,.1); color: #8c6520; border: 1px solid rgba(181,131,44,.25); }
.cm-notice {
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px;
  background: rgba(181,131,44,.09); border: 1px solid rgba(181,131,44,.26);
}
.cm-notice.is-crisis { background: rgba(168,68,58,.08); border-color: rgba(168,68,58,.3); }
.cm-notice b { display: block; margin-bottom: 4px; }
.cm-notice p { margin: 0; font-size: .89rem; color: var(--ink-2); line-height: 1.6; }
.cm-crisis {
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 18px;
  background: linear-gradient(165deg,#fdf3f1,#fff); border: 1px solid rgba(168,68,58,.28);
}
.cm-crisis h3 { margin: 0 0 8px; color: var(--danger); font-size: 1.2rem; }
.cm-crisis p { font-size: .92rem; color: var(--ink-2); line-height: 1.65; }
.cm-crisis ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cm-crisis li { display: grid; }
.cm-crisis li a { font-size: 1.22rem; font-family: var(--serif); text-decoration: none; color: var(--danger); }
.cm-crisis li span { color: var(--ink-3); font-size: .82rem; }

.cm-cross {
  display: flex; flex-direction: column; gap: 2px; margin-top: 20px; padding: 15px 18px;
  border-radius: var(--radius); text-decoration: none; color: #eef3fa;
  background: linear-gradient(140deg,#131a2e,#26305a);
}
.cm-cross:hover { color: #fff; }
.cm-cross span { color: #a9b8d4; font-size: .86rem; }

.cm-dialog { border: 0; border-radius: var(--radius-lg); padding: 22px; max-width: 420px; width: calc(100% - 32px);
  box-shadow: var(--shadow-lg); color: var(--ink); }
.cm-dialog::backdrop { background: rgba(28, 22, 51,.45); }
.cm-dialog h3 { margin: 0 0 6px; }
.cm-reasons { display: grid; gap: 6px; margin: 14px 0 18px; }
.cm-reasons label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px;
  border: 1px solid rgba(28, 22, 51,.12); cursor: pointer; font-size: .9rem; }
.cm-reasons label:hover { background: var(--sage-mist); }
.cm-dialog-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- Scores ---------- */
body.sc-body { background: #07090e; color: #e9eef6; }
body.sc-body .footer { background: #04060a; }
body.sc-body .evidence-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.09); border-left-color: #3ddc97; }
body.sc-body .evidence-figure, body.sc-body .evidence-note { color: #eef3fa; }
body.sc-body .evidence-card .muted { color: #8b9cb5; }

.sc-main { padding-bottom: 96px; }
.sc-hero { padding: 20px 0 6px; }
.sc-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.sc-greet { color: #7e90ab; font-size: .86rem; margin: 0; letter-spacing: .04em; }
.sc-hero h1 { font-size: clamp(2.2rem,7vw,3.2rem); color: #fff; margin: 2px 0 0; letter-spacing: -.02em; }
.sc-connect-btn {
  flex: none; margin-top: 8px; padding: 9px 18px; border-radius: 999px; text-decoration: none;
  background: rgba(61,220,151,.14); color: #3ddc97; border: 1px solid rgba(61,220,151,.35); font-size: .86rem; font-weight: 600;
}
.sc-connect-btn:hover { background: rgba(61,220,151,.24); color: #3ddc97; }

.gz { display: block; margin: 0 auto; overflow: visible; }
.gz-value { fill: #fff; font-family: var(--sans); font-weight: 700; letter-spacing: -.03em; }
.gz-sub { fill: #7e90ab; font-family: var(--sans); font-size: 11px; }

.sc-headline {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 14px 0 6px;
  background: linear-gradient(150deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08); border-radius: 26px; padding: 18px 20px 14px;
}
.sc-headline-text { flex: 1; min-width: 210px; }
.sc-headline-text h2 { font-size: 1.22rem; color: #fff; margin: 8px 0 4px; }
.sc-headline-text p { color: #9cabc2; font-size: .92rem; margin: 0 0 4px; }
.sc-meta { font-size: .84rem !important; color: #7e90ab !important; }
.sc-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sc-caveat { color: #6f819b; font-size: .82rem; line-height: 1.6; margin: 10px 2px 0; }

.sc-section { padding: 18px 0; }
.sc-h2 { font-size: 1.1rem; color: #eef3fa; margin: 0 0 14px; letter-spacing: -.01em; }
.sc-note { color: #7b8da7; font-size: .85rem; line-height: 1.65; }

.sc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 720px) { .sc-grid { grid-template-columns: repeat(3, 1fr); } }
.sc-tile {
  display: block; text-decoration: none; color: inherit; padding: 14px 12px 8px; border-radius: 22px;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); transition: border-color .18s ease, transform .18s ease;
}
.sc-tile:hover { border-color: rgba(255,255,255,.22); transform: translateY(-2px); color: inherit; }
.sc-tile-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; min-height: 34px; }
.sc-tile-head b { font-size: .82rem; font-weight: 600; color: #cfdaea; line-height: 1.25; }
.sc-ic { color: #7e90ab; font-size: .95rem; flex: none; }

.sc-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 720px) { .sc-metrics { grid-template-columns: repeat(3, 1fr); } }
.sc-metric { padding: 15px 16px; border-radius: 20px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); color: #7ad3e8; }
.sc-metric-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.sc-metric-head span { color: #9cabc2; font-size: .8rem; }
.sc-metric-head em { font-style: normal; font-size: .76rem; color: #7e90ab; }
.sc-metric-head em.ok { color: #3ddc97; }
.sc-metric-head em.off { color: #f5c451; }
.sc-metric b { display: block; font-family: var(--serif); font-size: 1.75rem; color: #fff; line-height: 1.1; margin: 4px 0 2px; }
.sc-metric b small { font-size: .8rem; color: #7e90ab; margin-left: 3px; font-family: var(--sans); }
.sc-spark { width: 100%; height: 26px; display: block; margin: 4px 0; opacity: .75; }
.sc-metric-foot { color: #6f819b; font-size: .72rem; }

.sc-gaps { display: grid; gap: 10px; }
.sc-gap { padding: 15px 17px; border-radius: 20px; background: rgba(245,196,81,.07); border: 1px solid rgba(245,196,81,.26); }
.sc-gap > b { color: #f5c451; font-size: .9rem; }
.sc-gap-row { display: flex; align-items: center; gap: 14px; margin: 10px 0 8px; }
.sc-said, .sc-measured { font-size: .74rem; color: #8b9cb5; line-height: 1.45; }
.sc-said em, .sc-measured em { font-style: normal; font-size: 1.05rem; color: #fff; font-weight: 600; }
.sc-arrow { color: #f5c451; font-size: 1.1rem; }
.sc-gap-note { font-size: .78rem; color: #8b9cb5; }

.sc-reports { display: grid; gap: 10px; }
@media (min-width: 560px) { .sc-reports { grid-template-columns: 1fr 1fr; } }
.sc-report {
  display: grid; grid-template-columns: 26px 1fr; grid-template-rows: auto auto; gap: 0 10px; align-items: center;
  padding: 14px 16px; border-radius: 16px; text-decoration: none; color: #e9eef6;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07);
}
.sc-report:hover { background: rgba(255,255,255,.08); color: #fff; }
.sc-report .sc-ic { grid-row: 1 / 3; font-size: 1.1rem; }
.sc-report b { font-size: .9rem; font-weight: 600; }
.sc-report span { color: #8b9cb5; font-size: .78rem; }

.sc-syncbar { position: fixed; inset: auto 0 0 0; background: rgba(7,9,14,.94); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.08); padding: 11px 16px; z-index: 40; }
.sy { display: flex; align-items: center; justify-content: center; gap: 4px; text-decoration: none; flex-wrap: wrap; }
.sy-node { color: #8b9cb5; font-size: 1rem; }
.sy-line { display: block; width: 26px; height: 1.5px; background: rgba(255,255,255,.14); }
.sy-line.on { background: #3ddc97; }
.sy-tick { color: #55657d; font-size: .8rem; }
.sy-tick.on { color: #3ddc97; }
.sy-label { width: 100%; text-align: center; color: #8b9cb5; font-size: .76rem; margin-top: 4px; }
.sy:hover .sy-label { color: #3ddc97; }

/* ---------- Connect ---------- */
.cn-main { padding-bottom: 48px; }
.cn-hero { padding: 26px 0 4px; }
.cn-hero h1 { font-size: clamp(1.7rem,4.6vw,2.4rem); }
.cn-section { padding: 14px 0; }
.cn-h2 { font-size: 1.15rem; margin: 0 0 12px; }
.cn-sources { display: grid; gap: 14px; }
.cn-source { background: var(--white); border: 1px solid rgba(28, 22, 51,.1); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.cn-source.is-on { border-color: rgba(76,122,86,.4); background: linear-gradient(170deg,#f6faf6,#fff); }
.cn-source-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; flex-wrap: wrap; }
.cn-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.cn-source-head b { display: block; font-size: 1.05rem; }
.cn-source-head span { display: block; color: var(--ink-3); font-size: .8rem; }
.cn-state { margin-left: auto; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  padding: 4px 11px; border-radius: 999px; background: rgba(28, 22, 51,.06); }
.cn-state.on { background: var(--ok); color: #fff; }
.cn-reality { color: var(--ink-2); font-size: .92rem; line-height: 1.65; margin: 0 0 10px; }
.cn-metrics { color: var(--ink-3); font-size: .8rem; margin: 0 0 14px; }
.cn-stats { display: flex; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: var(--ink-3); margin-bottom: 12px; }
.cn-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cn-actions form { margin: 0; }
.cn-upload { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cn-upload label { cursor: pointer; margin: 0; }
.cn-file-hint { color: var(--ink-3); font-size: .76rem; }
.cn-revoke { background: none; border: 0; color: var(--danger); font: inherit; font-size: .82rem; text-decoration: underline; cursor: pointer; padding: 0; }

.cn-token { margin-top: 16px; padding: 18px; border-radius: var(--radius); background: #101828; color: #dbe5f2; }
.cn-token h4 { margin: 0 0 10px; color: #fff; font-family: var(--serif); font-size: 1.05rem; }
.cn-token ol { margin: 0 0 16px; padding-left: 20px; color: #a9b8d4; font-size: .88rem; }
.cn-token li { margin-bottom: 6px; }
.cn-token label { display: block; color: #8fa3c4; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; margin: 12px 0 5px; }
.cn-copy { display: flex; gap: 8px; align-items: flex-start; background: rgba(0,0,0,.35); border-radius: 12px; padding: 10px 12px; }
.cn-copy code { flex: 1; font-size: .76rem; color: #9fe8c4; word-break: break-all; white-space: pre-wrap; font-family: ui-monospace, Menlo, monospace; }
.cn-copy-btn { flex: none; background: rgba(255,255,255,.12); border: 0; color: #fff; border-radius: 999px; padding: 5px 13px; font: inherit; font-size: .76rem; cursor: pointer; }
.cn-copy-btn:hover { background: rgba(255,255,255,.22); }
.cn-once { color: #8fa3c4; font-size: .8rem; margin: 14px 0 0; line-height: 1.6; }
.cn-notice { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: .92rem; line-height: 1.6; }
.cn-notice.ok { background: rgba(76,122,86,.1); border: 1px solid rgba(76,122,86,.35); }
.cn-notice.bad { background: rgba(168,68,58,.08); border: 1px solid rgba(168,68,58,.3); }
.cn-busy { opacity: .6; pointer-events: none; }

/* =====================================================================
   MAYAA — colour wall, app shell and home
   ===================================================================== */

/* ---------- Hues: one colour per part of the app ---------- */
.hue-emerald { --c1: #0c9b78; --c2: #34d399; }
.hue-indigo  { --c1: #4338ca; --c2: #38bdf8; }
.hue-amber   { --c1: #e07b00; --c2: #fbbf24; }
.hue-slate   { --c1: #2e3a55; --c2: #6b7a99; }
.hue-teal    { --c1: #0b7f8a; --c2: #2dd4bf; }
.hue-coral   { --c1: #ee4d5f; --c2: #f79a6d; }
.hue-violet  { --c1: #7c3aed; --c2: #d946ef; }
.hue-lime    { --c1: #3f8f16; --c2: #9bd43a; }
.hue-sky     { --c1: #0369c9; --c2: #38bdf8; }
.hue-rose    { --c1: #db2777; --c2: #fb7185; }
.hue-blue    { --c1: #2856e0; --c2: #8b93f8; }
.hue-plum    { --c1: #8a2a78; --c2: #d4589a; }
.hue-orange  { --c1: #e2530a; --c2: #fbad4b; }
.hue-stone   { --c1: #4f4a45; --c2: #9a938c; }
.hue-brand   { --c1: #7b4fd6; --c2: #e0607a; }

/* ---------- Home hero ---------- */
.home { padding-top: 22px; }
.home-hero {
  position: relative; overflow: hidden; border-radius: 32px; padding: 30px 28px; color: #fff;
  background: var(--grad-deep); box-shadow: var(--shadow-lg); isolation: isolate;
  display: grid; gap: 24px; align-items: center;
}
@media (min-width: 860px) { .home-hero { grid-template-columns: 1fr 300px; padding: 40px 44px; } }
.home-hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 70% at 92% 10%, rgba(246, 163, 107, 0.45), transparent 60%),
    radial-gradient(40% 60% at 70% 110%, rgba(224, 96, 122, 0.45), transparent 60%),
    radial-gradient(40% 50% at 0% 0%, rgba(123, 79, 214, 0.55), transparent 60%); }
.home-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.35;
  background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%); }
.hh-date { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.65); font-weight: 700; margin: 0 0 8px; }
.home-hero h1 { font-size: clamp(2rem, 5.4vw, 3rem); margin: 0 0 10px; color: #fff; }
.home-hero h1 em { background: linear-gradient(90deg, #ffd2b8, #ffb3c1); -webkit-background-clip: text; background-clip: text; }
.hh-line { color: rgba(255,255,255,0.8); font-size: 1.02rem; max-width: 46ch; margin: 0 0 20px; }
.hh-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; max-width: 460px; }
.hh-bar { flex: 1; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.16); overflow: hidden; }
.hh-bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ffd2b8, #ff8fa3); }
.hh-progress b { font-size: 0.9rem; white-space: nowrap; }
.hh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.hh-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.16); font-size: 0.82rem; font-weight: 600; color: #fff; text-decoration: none; }
.hh-chip:hover { background: rgba(255,255,255,0.2); color: #fff; }
.hh-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hh-actions .btn-primary { background: #fff; color: var(--brand-deep); box-shadow: 0 12px 28px -12px rgba(0,0,0,.5); }
.hh-actions .btn-primary:hover { color: var(--brand-2); }

/* The bloom: petals around the score ring. */
.bloom { width: 100%; max-width: 300px; margin: 0 auto; display: block; }
.bloom .petals { transform-origin: 150px 150px; animation: bloomTurn 60s linear infinite; }
.bloom-num { font-family: var(--sans); font-weight: 800; fill: #fff; letter-spacing: -0.04em; }
.bloom-cap { font-family: var(--sans); font-weight: 700; fill: rgba(255,255,255,0.7); letter-spacing: 0.16em; }
@keyframes bloomTurn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bloom .petals { animation: none; } }

/* ---------- Today strip ---------- */
.today { margin-top: 26px; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.row-head h2 { font-size: 1.28rem; margin: 0; }
.row-head a { font-size: 0.88rem; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.today-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 1fr); gap: 12px; overflow-x: auto;
  padding: 2px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.today-row::-webkit-scrollbar { display: none; }
.td {
  scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 22px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease; position: relative;
}
.td:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.td-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.td b { font-size: 0.9rem; line-height: 1.3; font-weight: 700; }
.td small { color: var(--ink-3); font-size: 0.76rem; font-weight: 600; margin-top: auto; }
.td.is-done { background: linear-gradient(160deg, #f1fbf6, #fff); border-color: rgba(30,158,106,.25); }
.td.is-done::after { content: '✓'; position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ok); color: #fff; font-size: 0.78rem; font-weight: 800; }
.td.is-done b { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(28,22,51,.25); }

/* ---------- The colour wall ---------- */
.wall-wrap { margin-top: 34px; }
.wall { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
@media (min-width: 760px) { .wall { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(176px, auto); } }
.w {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 6px;
  min-height: 164px; padding: 18px; border-radius: 26px; color: #fff; text-decoration: none;
  background: linear-gradient(140deg, var(--c1), var(--c2));
  box-shadow: 0 18px 34px -22px var(--c1); transition: transform 0.22s cubic-bezier(.2,.8,.2,1), box-shadow 0.22s ease;
}
.w:hover { transform: translateY(-4px) rotate(-0.25deg); color: #fff; box-shadow: 0 26px 44px -22px var(--c1); }
.w::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 60% at 0% 0%, rgba(255,255,255,.28), transparent 60%); }
.w-mark { position: absolute; right: -22px; bottom: -26px; z-index: -1; opacity: 0.16; color: #fff; }
.w-mark .ic { width: 132px; height: 132px; }
.w-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: auto; }
/* No backdrop-filter here: the tile behind is an opaque gradient, so there is
   nothing to blur — and it drops the icon in some renderers. */
.w-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.28); }
.w-tag { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,0.2); }
.w-stat { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-top: 14px; }
.w-stat small { font-size: 0.9rem; font-weight: 700; opacity: 0.8; margin-left: 2px; letter-spacing: 0; }
.w b { font-size: 1.02rem; font-weight: 750; letter-spacing: -0.01em; line-height: 1.25; }
.w p { margin: 0; font-size: 0.82rem; color: rgba(255,255,255,0.85); line-height: 1.4; }
.w-go { position: absolute; right: 16px; bottom: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.22); opacity: 0; transform: translateX(-4px); transition: all 0.2s ease; }
.w:hover .w-go { opacity: 1; transform: none; }
@media (min-width: 760px) {
  .w.wide { grid-column: span 2; }
  .w.tall { grid-row: span 2; }
}
.w.hero-tile { padding: 22px; }
.w.hero-tile .w-stat { font-size: 3.2rem; }
.w-ring { position: absolute; right: 18px; top: 18px; }
.w-dots { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.w-dots span { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,0.18); }
.w-dots span.on { background: #fff; color: var(--c1); }
.w-bars { display: grid; gap: 9px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.22); }
.w-bars em { font-style: normal; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; }
.w-bar { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr 28px; align-items: center; gap: 10px; font-size: 0.82rem; font-weight: 600; }
.w-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-bar i { height: 7px; border-radius: 999px; background: rgba(255,255,255,0.22); overflow: hidden; }
.w-bar u { display: block; height: 100%; border-radius: 999px; background: #fff; }
.w-bar b { text-align: right; font-size: 0.86rem; }
/* The big tile is the one place the score gets room to explain itself. */
.w.hero-tile { justify-content: flex-start; }
.w.hero-tile .w-top { margin-bottom: 18px; }
@media (max-width: 759px) { .w-bar:nth-of-type(n+4) { display: none; } }
.w.light { color: var(--ink); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.w.light p { color: var(--ink-3); }
.w.light .w-ic { background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; border: 0; }
.w.light .w-mark { color: var(--c1); opacity: 0.08; }
.w.light:hover { color: var(--ink); }

.home-note { margin-top: 26px; font-size: 0.82rem; color: var(--ink-3); text-align: center; }

/* ---------- Landing: feature wall ---------- */
.feature-wall { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fw { position: relative; overflow: hidden; padding: 18px; border-radius: 24px; color: #fff; min-height: 138px;
  background: linear-gradient(140deg, var(--c1), var(--c2)); box-shadow: 0 18px 30px -20px var(--c1);
  display: flex; flex-direction: column; gap: 6px; isolation: isolate; }
.fw::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 0% 0%, rgba(255,255,255,.28), transparent 60%); }
.fw .w-ic { margin-bottom: auto; }
.fw b { font-size: 0.98rem; font-weight: 750; line-height: 1.2; }
.fw p { margin: 0; font-size: 0.78rem; color: rgba(255,255,255,0.85); line-height: 1.4; }
.fw.big { grid-column: span 2; min-height: 150px; }
.fw .w-mark .ic { width: 110px; height: 110px; }
.float-a { animation: floaty 7s ease-in-out infinite; }
.float-b { animation: floaty 8s ease-in-out -3s infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .float-a, .float-b { animation: none; } }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 0.84rem; font-weight: 700; color: var(--ink-2); }
.hero-badge .td-ic { width: 28px; height: 28px; border-radius: 9px; }

/* ---------- Mobile tab bar ---------- */
.tabbar { display: none; }
.sheet { display: none; }

/* ---------- Dark surfaces set the shell's colours, nothing more ---------- */
body.st-body, body.sc-body, body.twin-dark {
  --nav-bg: rgba(8, 10, 20, 0.8); --nav-ink: #f2f4fb; --nav-ink-2: #a9b3c9; --nav-line: rgba(255,255,255,0.08);
  --nav-pill: rgba(255,255,255,0.09); --nav-pill-ink: #fff; --lang-on-bg: #fff; --lang-on-ink: #0b0d18;
  --bar-bg: rgba(10, 12, 22, 0.92); --bar-ink: #8993aa; --bar-active: #fff;
}
body.st-body .avatar, body.sc-body .avatar, body.twin-dark .avatar { box-shadow: 0 0 0 2px #0b0d18, 0 0 0 3.5px rgba(255,255,255,.25); }

/* ---------- Responsive shell ---------- */
@media (max-width: 1120px) {
  .brand small { display: none; }
  .nav-primary { margin-left: 8px; }
  .nav-primary > a, .nav-explore > summary { padding: 8px 11px; }
}
@media (max-width: 980px) {
  /* Icons only, with the label still available to screen readers. */
  .nav-primary > a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav-primary > a { padding: 9px; }
}
@media (max-width: 760px) {
  .nav-inner { height: 60px; gap: 10px; }
  .nav-primary { display: none; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang-switch a { padding: 5px 9px; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .brand { font-size: 1rem; }
  .brand-mark { width: 32px; height: 32px; }

  body.has-tabs { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.has-tabs .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
  body.has-tabs .footer { margin-top: 40px; }

  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 70; height: 64px; padding: 0 4px;
    background: var(--bar-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--nav-line); border-radius: 24px; box-shadow: 0 18px 40px -16px rgba(28, 22, 51, 0.35);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--bar-ink); text-decoration: none; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.01em; position: relative; }
  .tabbar a .ic { transition: transform 0.18s ease; }
  .tabbar a.is-active { color: var(--bar-active); }
  .tabbar a.is-active::before { content: ''; position: absolute; top: 7px; width: 46px; height: 30px; border-radius: 12px; background: var(--nav-pill); z-index: -1; }
  .tabbar a.is-active .ic { transform: translateY(-1px); }
  .tabbar a:active .ic { transform: scale(0.9); }

  .sheet:target, .sheet.open { display: block; position: fixed; inset: 0; z-index: 90; }
  .sheet-scrim { position: absolute; inset: 0; background: rgba(15, 10, 30, 0.45); backdrop-filter: blur(3px); animation: fadeIn 0.2s ease; }
  .sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto;
    background: var(--pearl); color: var(--ink); border-radius: 30px 30px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
    box-shadow: var(--shadow-lg); animation: sheetUp 0.28s cubic-bezier(.2,.8,.2,1); }
  .sheet-grip { width: 42px; height: 5px; border-radius: 999px; background: rgba(28,22,51,.16); margin: 2px auto 14px; }
  .sheet-head { display: flex; align-items: center; gap: 12px; padding: 0 2px 14px; }
  .sheet-head b { display: block; font-size: 1rem; }
  .sheet-head small { display: block; color: var(--ink-3); font-size: 0.76rem; }
  .sheet-x { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--ink); }
  .sheet h6 { margin: 12px 4px 10px; }
  .sheet-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .sw { display: flex; flex-direction: column; gap: 10px; padding: 14px 12px; border-radius: 20px; text-decoration: none; color: #fff; min-height: 96px;
    background: linear-gradient(140deg, var(--c1), var(--c2)); box-shadow: 0 12px 22px -16px var(--c1); position: relative; overflow: hidden; }
  .sw::before { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 70% at 0% 0%, rgba(255,255,255,.28), transparent 60%); }
  .sw-ic { position: relative; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.2); }
  .sw b { position: relative; font-size: 0.8rem; font-weight: 750; line-height: 1.2; }
  .sw.is-active { outline: 3px solid rgba(28,22,51,.18); outline-offset: 2px; }
  .sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
  .sheet-foot .lang-switch { --nav-pill: rgba(91,52,168,.08); --nav-ink-2: var(--ink-2); --nav-ink: var(--ink); --lang-on-bg: var(--ink); --lang-on-ink: #fff; }
  .sheet-out { display: inline-flex; align-items: center; gap: 8px; color: var(--danger); font-weight: 700; text-decoration: none; font-size: 0.9rem; }
  body.sheet-open { overflow: hidden; }

  .home-hero { padding: 26px 22px; border-radius: 28px; gap: 12px; }
  .bloom { max-width: 210px; }
  .hh-actions { flex-wrap: nowrap; }
  .hh-actions .btn { flex: 1 1 0; padding: 12px 14px; font-size: 0.9rem; }
  .w { min-height: 150px; padding: 16px; border-radius: 22px; }
  .w.wide { grid-column: span 2; }
  .w-stat { font-size: 1.65rem; }
  .w.hero-tile .w-stat { font-size: 2.6rem; }
}
@media (max-width: 380px) {
  .brand > span { font-size: 0.95rem; }
  .nav-login { padding: 8px 2px; }
}
@keyframes sheetUp { from { transform: translateY(40%); opacity: 0.4; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* The Scores sync strip rides just above the tab bar on a phone. */
@media (max-width: 760px) {
  body.has-tabs .sc-syncbar {
    left: 18px; right: 18px; bottom: calc(82px + env(safe-area-inset-bottom));
    border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 8px 12px;
  }
  body.has-tabs .sc-main { padding-bottom: 150px; }
}
@media (max-width: 760px) { .progress-sticky { top: 60px; } }

/* =====================================================================
   Daily plan — illustrated
   ===================================================================== */
.hue-indigo-deep { --c1: #312e81; --c2: #6366f1; }
.pl-main { padding-bottom: 30px; }
.pl-hero { padding: 26px 0 6px; }
.pl-hero-card {
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 24px 26px; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.pl-hero-card::before { content: ''; position: absolute; right: -80px; top: -90px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(246,163,107,.22), transparent 65%); pointer-events: none; }
.pl-hero-card h1 { font-size: clamp(1.7rem, 4.6vw, 2.4rem); margin: 0 0 6px; }
.pl-hero-card p { margin: 0 0 12px; }
.pl-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pl-stats span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--lilac); color: var(--brand); font-size: .84rem; font-weight: 600; }
.pl-stats b { font-weight: 800; }
.pl-ring { width: 128px; height: 128px; position: relative; }
.pl-ring-n { font: 800 24px var(--sans); fill: var(--ink); letter-spacing: -.02em; }
.pl-ring-l { font: 700 9px var(--sans); fill: var(--ink-3); letter-spacing: .16em; }
#plan-ring { transition: stroke-dasharray .6s cubic-bezier(.2,.8,.2,1); }
.week-strip { display: flex; align-items: center; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.week-dot { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(28,22,51,.06); color: var(--ink-3); font-size: .72rem; font-weight: 700; }
.week-dot.on { background: var(--grad); color: #fff; }
.week-dot.today { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(123,79,214,.45); }
.pl-pillnav { display: flex; gap: 8px; overflow-x: auto; padding: 16px 2px 4px; scrollbar-width: none; }
.pl-pillnav::-webkit-scrollbar { display: none; }
.pl-pillnav a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: .84rem; font-weight: 650; }
.pl-pillnav a span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.pl-pillnav a.done { color: var(--ok); border-color: rgba(30,158,106,.3); background: #f1fbf6; }
.pl-pillnav a.done span { background: var(--ok); }
.pl-notify { margin-top: 10px; }
.pl-section { padding: 12px 0 18px; }
.pl-list { display: grid; gap: 16px; }

/* one action */
.pa {
  position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 0; background: #fff; overflow: hidden;
  border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-sm); transition: border-color .2s ease, box-shadow .2s ease;
  scroll-margin-top: 90px;
}
.pa:hover { box-shadow: var(--shadow); }
.pa-art { position: relative; display: grid; place-items: center; padding: 14px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c2) 16%, #fff), color-mix(in srgb, var(--c1) 8%, #fff)); }
.pa-body { padding: 20px 22px 18px; min-width: 0; }
.pa-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--c1); }
.pa-step { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; letter-spacing: 0; font-size: .74rem; }
.pa-ic { display: inline-grid; }
.pa-mins { background: rgba(28,22,51,.06); color: var(--ink-2); padding: 2px 9px; border-radius: 999px; letter-spacing: 0; text-transform: none; font-weight: 700; }
.pa-body h3 { margin: 8px 0 6px; font-size: 1.14rem; padding-right: 70px; }
.pa-body p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.pa-cue { display: flex; gap: 7px; align-items: center; margin-top: 10px !important; font-size: .86rem !important; color: var(--c1) !important; font-weight: 600; }
.pa-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-size: .86rem; font-weight: 700; text-decoration: none; }
.pa-check { position: absolute; top: 16px; right: 16px; display: grid; justify-items: center; gap: 3px; }
.pa-check small { font-size: .66rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.plan-check input:checked + .plan-tick { background: var(--ok); border-color: var(--ok); }
.pa.is-done { border-color: rgba(30,158,106,.35); }
.pa.is-done .pa-body h3 { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(28,22,51,.25); }
.pa.is-done .pa-art { filter: saturate(.7); }
.pa-art .yoga-fig { width: 100%; }
.pa-art .vessel { width: 128px; }
.pa-art .ingr { justify-content: center; margin-top: 4px; }
.pa-art-water .bottle { height: 150px; }
.pa-art-sleep { padding: 0; }
.pa-art-sleep .mini-night { width: 100%; height: 100%; min-height: 150px; }
.pl-done { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 16px 20px; border-radius: 22px;
  background: linear-gradient(135deg, #f1fbf6, #fff); border: 1px solid rgba(30,158,106,.3); }
.pl-done span { font-size: 1.6rem; }
@media (max-width: 640px) {
  .pa { grid-template-columns: 1fr; }
  .pa-art { min-height: 150px; padding: 12px 18px; }
  .pa-art .yoga-fig { max-width: 300px; }
  .pl-hero-card { grid-template-columns: 1fr; padding: 22px; }
  .pl-ring { width: 104px; height: 104px; position: absolute; top: 18px; right: 16px; }
  .pl-hero-card h1 { padding-right: 104px; }
}

/* pillar tiles */
.pl-pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .pl-pillars { grid-template-columns: repeat(3, 1fr); } }
.pp { position: relative; display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.pp:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.pp-art { height: 118px; display: grid; place-items: center; padding: 8px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c2) 22%, #fff), color-mix(in srgb, var(--c1) 12%, #fff)); }
.pp-art > * { max-height: 104px; }
.pp-art .yoga-fig { width: 100%; }
.pp-art .vessel { width: 86px; }
.pp-art .bottle { height: 100px; }
.pp-art .mini-night { width: 100%; height: 118px; margin: -8px; border-radius: 0; }
.pp-text { padding: 12px 14px 14px; }
.pp-text b { display: block; font-size: .94rem; }
.pp-text small { display: block; color: var(--ink-3); font-size: .78rem; line-height: 1.35; margin-top: 2px; }
.pp-go { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.8); color: var(--c1); }

/* ---------- yoga figure ---------- */
.yoga-fig { display: block; width: 100%; height: auto; overflow: visible; }
.yf-limb, .yf-torso { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.yf-limb { stroke-width: 8; }
.yf-torso { stroke-width: 11; }
.yf-limb.far { opacity: .42; }
.yf-mat { fill: #bfe9df; }
.yf-mat-top { fill: #e9f8f4; stroke: #bfe9df; stroke-width: 2; }
.yf-wall { fill: #d4dbe6; }

/* ---------- pillar pages ---------- */
.pg-hero { padding: 24px 0 4px; }
.pg-head { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; margin: 14px 0 12px; padding: 22px 24px;
  border-radius: 28px; background: linear-gradient(150deg, color-mix(in srgb, var(--c2) 20%, #fff), color-mix(in srgb, var(--c1) 10%, #fff));
  border: 1px solid color-mix(in srgb, var(--c1) 18%, transparent); }
.pg-head h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 8px 0 0; }
.pg-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c1); }
.pg-head-art { width: 190px; }
.pg-head-art .vessel { width: 120px; margin: 0 auto; display: block; }
@media (max-width: 640px) { .pg-head { grid-template-columns: 1fr; } .pg-head-art { width: 100%; max-width: 260px; margin: 0 auto; } }
.pg-why { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 16px 20px; box-shadow: var(--shadow-sm); }
.pg-why strong { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.pg-why p { margin: 6px 0 0; }
.pg-block { margin-top: 22px; }
.pg-h { font-size: 1.14rem; margin: 0 0 12px; }

/* yoga sequence */
.yoga-seq { display: grid; gap: 14px; }
.yp { display: grid; grid-template-columns: 240px 1fr; background: #fff; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-sm); }
.yp-art { background: linear-gradient(160deg, #e3f7f2, #f4fbf9); display: grid; place-items: center; padding: 10px; }
.yp-body { padding: 18px 20px; }
.yp-top { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-bottom: 8px; }
.yp-top h3 { margin: 0; font-size: 1.06rem; }
.yp-top small { color: var(--ink-3); }
.yp-top .chip { gap: 5px; }
.yp-n { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #0b7f8a, #2dd4bf); }
.yp-move { display: flex; gap: 7px; align-items: center; color: #0b7f8a; font-weight: 600; font-size: .88rem; margin: 0 0 8px; }
.yp-body p { margin: 0 0 8px; font-size: .94rem; }
.yp-cue { color: var(--ink-3); font-size: .88rem !important; margin: 0 !important; }
@media (max-width: 640px) { .yp { grid-template-columns: 1fr; } .yp-art { padding: 6px 30px; } }

/* diet */
.plate-wrap { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 14px; box-shadow: var(--shadow-sm); }
.plate-pic { display: block; width: 100%; max-width: 520px; margin: 0 auto; }
.plate-pic text { font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.plate-pic .pl-lab text { font-family: var(--sans); }
.plate-pic .pl-big { font-size: 12.5px; font-weight: 800; fill: var(--ink); }
.plate-pic .pl-small { font-size: 10px; font-weight: 600; fill: var(--ink-3); }
.plate-pic.sm { max-width: 170px; }
.hands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 560px) { .hands { grid-template-columns: repeat(2, 1fr); } }
.hand { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 16px 10px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.hand-e { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; font-size: 2rem; margin-bottom: 6px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--c2) 30%, #fff), color-mix(in srgb, var(--c1) 16%, #fff)); }
.hand b { font-size: .9rem; }
.hand small { color: var(--ink-3); font-size: .78rem; }
.protein { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.protein-num b { display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.protein-num span { font-size: .78rem; color: var(--ink-3); font-weight: 600; }
.protein-parts { display: flex; flex-wrap: wrap; gap: 8px; }
.protein-parts span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--sand); font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.protein-parts em { font-style: normal; font-size: 1.05rem; }
@media (max-width: 560px) { .protein { grid-template-columns: 1fr; } }
.meal-line { list-style: none; margin: 0; padding: 0; position: relative; }
.meal-line::before { content: ''; position: absolute; left: 23px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--c2, #b594f0), var(--c1, #e0607a)); opacity: .35; }
.meal-line li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; padding: 8px 0; }
.ml-dot { width: 48px; height: 48px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.5rem; box-shadow: var(--shadow-sm); z-index: 1; }
.meal-line b { display: flex; gap: 8px; align-items: baseline; font-size: .96rem; }
.meal-line b em { font-style: normal; font-size: .76rem; color: var(--ink-3); font-weight: 700; }
.meal-line p { margin: 2px 0 0; color: var(--ink-2); font-size: .92rem; }
.stops { display: grid; gap: 10px; }
@media (min-width: 640px) { .stops { grid-template-columns: repeat(2, 1fr); } }
.stop { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 20px; background: #fff7f5; border: 1px solid rgba(214,69,69,.18); }
.stop-e, .il-e { position: relative; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 1.7rem; background: #fff; }
.stop-e i, .crossed .il-e i { position: absolute; inset: 8px; border-radius: 50%; border: 3px solid #d64545; }
.stop-e i::after, .crossed .il-e i::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 3px; background: #d64545; transform: translateX(-50%) rotate(45deg); }
.stop p { margin: 0; font-size: .9rem; color: var(--ink-2); }

/* recipes */
.rc-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .rc-grid { grid-template-columns: repeat(2, 1fr); } }
.rc { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }
.rc-top { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.rc-art { border-radius: 22px; background: linear-gradient(150deg, #fff4ea, #fdf1f4); display: grid; place-items: center; padding: 6px; }
.rc-art .vessel { width: 84px; }
.rc h3 { margin: 0 0 6px; font-size: 1.02rem; }
.ingr { display: flex; gap: 4px; }
.ingr i { font-style: normal; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); font-size: 1rem; }
.rc-when { display: inline-flex; gap: 6px; margin-top: 8px; font-size: .78rem; font-weight: 700; color: #b0521b; background: #fff1e6; padding: 4px 10px; border-radius: 999px; }
.rc-why { margin: 0; color: var(--ink-2); font-size: .92rem; }
.rc-need { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .82rem; }
.rc-need b { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.rc-need span { padding: 4px 10px; border-radius: 999px; background: var(--lilac); color: var(--brand-deep); font-weight: 600; }
.rc-steps { counter-reset: s; list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.rc-steps li { counter-increment: s; position: relative; padding-left: 38px; font-size: .9rem; color: var(--ink-2); }
.rc-steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, #e2530a, #fbad4b); color: #fff; font-size: .78rem; font-weight: 800; }
.vessel { display: block; overflow: visible; }

/* meditation */
.orb { position: relative; width: 220px; height: 220px; margin: 0 auto; display: grid; place-items: center; }
.orb.sm { width: 140px; height: 140px; }
.orb-core, .orb-ring { position: absolute; border-radius: 50%; }
.orb-core { width: 56%; height: 56%; background: radial-gradient(circle at 35% 30%, #f5e9ff, #b58cff 55%, #7c3aed); box-shadow: 0 20px 50px -18px rgba(124,58,237,.7); animation: breathe 10s ease-in-out infinite; }
.orb-ring { inset: 6%; border: 2px solid rgba(124,58,237,.25); animation: breathe 10s ease-in-out infinite; }
.orb-ring.r2 { inset: 0; border-color: rgba(217,70,239,.14); animation-delay: -.4s; }
@keyframes breathe { 0% { transform: scale(.72); } 40% { transform: scale(1); } 100% { transform: scale(.72); } }
.orb-word { position: relative; z-index: 1; font-weight: 800; font-size: .86rem; color: #fff; letter-spacing: .02em; text-shadow: 0 1px 8px rgba(60,20,120,.5); }
.orb.sm .orb-word { font-size: .68rem; }
.orb-word.in { animation: wordIn 10s linear infinite; }
.orb-word.out { position: absolute; animation: wordOut 10s linear infinite; }
@keyframes wordIn { 0%, 38% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes wordOut { 0%, 38% { opacity: 0; } 42%, 96% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .orb-core, .orb-ring, .orb-word { animation: none !important; } .orb-word.out { display: none; } }
.md-hero { text-align: center; background: linear-gradient(160deg, #f5eeff, #fff); border: 1px solid var(--line); border-radius: 28px; padding: 22px 20px; box-shadow: var(--shadow-sm); }
.md-hero p { max-width: 44ch; margin: 12px auto; color: var(--ink-2); font-size: .92rem; }
.md-list { display: grid; gap: 12px; margin-top: 16px; }
.md { display: grid; grid-template-columns: 58px 1fr; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 16px; box-shadow: var(--shadow-sm); }
.md-e { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 1.8rem; background: linear-gradient(140deg, #f3e8ff, #fae8ff); }
.md-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.md h3 { margin: 0; font-size: 1.02rem; }
.md p { margin: 6px 0; color: var(--ink-2); font-size: .92rem; }
.md small { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-3); font-size: .8rem; }

/* water */
.bottle { display: block; height: 210px; width: auto; margin: 0 auto; overflow: visible; }
.bottle-water { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.wt-hero { display: grid; grid-template-columns: 170px 1fr; gap: 22px; align-items: center; background: linear-gradient(160deg, #eaf5ff, #fff); border: 1px solid rgba(3,105,201,.14); border-radius: 30px; padding: 22px 24px; box-shadow: var(--shadow-sm); }
@media (max-width: 560px) { .wt-hero { grid-template-columns: 1fr; text-align: center; } .wt-hero .glasses { justify-content: center; } }
.wt-kicker, .sl-kicker { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #0369c9; }
.wt-big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 4px 0; }
@media (max-width: 560px) { .wt-big { justify-content: center; } }
.wt-big b { font-size: 3.2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: #0b3d6e; }
.wt-big span { font-size: 1rem; color: var(--ink-3); font-weight: 600; }
.wt-now p { margin: 0 0 12px; }
.wt-track { margin-bottom: 8px; }
.glasses { display: flex; flex-wrap: wrap; gap: 6px; }
.gl { width: 34px; height: 44px; padding: 2px; border: 0; background: none; cursor: pointer; border-radius: 10px; transition: transform .15s ease; }
.gl:hover { transform: translateY(-2px); }
.gl:active { transform: scale(.92); }
.gl:focus-visible { outline: 2px solid #0369c9; outline-offset: 2px; }
.gl svg { width: 100%; height: 100%; display: block; }
.gl-cup { fill: #fff; stroke: #9cc2e8; stroke-width: 2; stroke-linejoin: round; }
.gl-fill { fill: #3c9ef0; opacity: 0; transform-origin: 50% 100%; transform: scaleY(.2); transition: opacity .25s ease, transform .35s cubic-bezier(.2,.8,.2,1); }
.gl.on .gl-fill { opacity: 1; transform: none; }
.gl.on .gl-cup { stroke: #3c9ef0; }
.pa-water { margin-top: 12px; }
.pa-water .gl { width: 28px; height: 36px; }
.pa-water-n { display: block; margin-top: 6px; font-size: .86rem; color: var(--ink-3); }
.pa-water-n b { color: #0b3d6e; font-size: 1rem; }
.wtimes { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.wtimes li { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.wtimes span { font-size: 1.4rem; }
.wtimes b { font-size: .92rem; }
.wtimes small { font-size: .68rem; color: var(--ink-3); text-transform: uppercase; font-weight: 700; }
.wt-rules { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: .9rem; }
.wt-rules li { margin-bottom: 4px; }
.urine { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.u { position: relative; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 10px 4px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.u span { width: 44px; height: 58px; border-radius: 8px 8px 16px 16px; border: 2px solid rgba(0,0,0,.06); }
.u b { font-size: .78rem; line-height: 1.2; }
.u small { font-size: .7rem; color: var(--ink-3); line-height: 1.2; }
.u.best { border-color: var(--ok); background: #f1fbf6; }
.u em { position: absolute; top: -8px; right: -6px; width: 24px; height: 24px; border-radius: 50%; background: var(--ok); color: #fff; font-style: normal; font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
@media (max-width: 480px) { .u span { width: 34px; height: 46px; } .u b { font-size: .7rem; } .u small { display: none; } }
.iconlist { display: grid; gap: 10px; }
@media (min-width: 640px) { .iconlist { grid-template-columns: repeat(2, 1fr); } }
.il { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.il-e { background: #eef6ff; }
.il p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.crossed .il { background: #fff7f5; border-color: rgba(214,69,69,.18); box-shadow: none; }
.crossed .il-e { background: #fff; }

/* sleep */
.sl-hero { position: relative; overflow: hidden; border-radius: 30px; padding: 26px 24px; color: #fff; isolation: isolate;
  background: radial-gradient(60% 80% at 80% 0%, #4b3a9c 0%, transparent 60%), linear-gradient(170deg, #0f1235 0%, #1d1a4f 55%, #2c1f5e 100%);
  box-shadow: var(--shadow-lg); }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.moon { position: absolute; right: 22px; top: 18px; width: 86px; height: 86px; z-index: -1; }
.sl-hero-in { position: relative; max-width: 460px; }
.sl-kicker { color: #c7c2ff; }
.sl-big { font-size: 3.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 4px 0 6px; }
.sl-big span { font-size: 1.1rem; font-weight: 600; color: #c7c2ff; letter-spacing: 0; }
.sl-hero p { margin: 0 0 14px; color: rgba(255,255,255,.8); }
.sl-last { display: grid; gap: 6px; margin-bottom: 14px; font-size: .9rem; color: rgba(255,255,255,.85); }
.sl-last span { display: inline-flex; gap: 8px; align-items: center; }
.sl-counter button { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #fff; }
.sl-counter button:hover { background: rgba(255,255,255,.22); }
.sl-counter b { color: #fff; }
.sl-counter small { color: rgba(255,255,255,.7); }
.mini-night { position: relative; overflow: hidden; border-radius: 20px; background: linear-gradient(170deg, #0f1235, #2c1f5e); min-height: 110px; }
.mini-night .moon { width: 56px; height: 56px; right: 50%; top: 50%; transform: translate(50%, -50%); z-index: 0; }
.sl-clock { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 16px; box-shadow: var(--shadow-sm); }
.sl-wake { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.sl-wake input { position: absolute; opacity: 0; pointer-events: none; }
.sl-wake label { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); cursor: pointer; font-weight: 700; font-size: .84rem; }
.sl-wake input:checked + label { background: #312e81; color: #fff; border-color: #312e81; }
.sl-wake input:focus-visible + label { outline: 2px solid #6366f1; outline-offset: 2px; }
.sl-dial { display: none; }
.sl-clock:has(#wake0:checked) [data-for="wake0"], .sl-clock:has(#wake1:checked) [data-for="wake1"], .sl-clock:has(#wake2:checked) [data-for="wake2"] { display: block; }
.sleep-clock { display: block; width: 100%; max-width: 380px; margin: 0 auto; overflow: visible; }
.sc-track { fill: none; stroke: #eeecf8; stroke-width: 20; }
.sc-sleep { fill: none; stroke: #4338ca; stroke-width: 20; stroke-linecap: round; }
.sc-wind { fill: none; stroke: #a5b4fc; stroke-width: 20; stroke-linecap: round; }
.sc-day { fill: none; stroke: #fbbf24; stroke-width: 20; stroke-linecap: round; }
.sc-h { font: 700 9.5px var(--sans); fill: var(--ink-3); }
.sc-dot { fill: #d6d2e4; }
.sc-big { font: 800 30px var(--sans); fill: var(--ink); letter-spacing: -.03em; }
.sc-sub { font: 600 11px var(--sans); fill: var(--ink-3); }
.sc-tick { stroke: var(--line-2); stroke-width: 1.5; }
.sc-e { font-size: 15px; }
.sc-t { font: 700 9.5px var(--sans); fill: var(--ink-2); }
.ssteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ssteps li { display: grid; grid-template-columns: 50px 1fr; gap: 12px; align-items: center; padding: 12px 14px 12px 12px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; }
.ss-e { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: linear-gradient(140deg, #eef0ff, #f3eeff); }
.ss-n { position: absolute; left: 50px; top: 8px; width: 20px; height: 20px; border-radius: 50%; background: #312e81; color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; }
.ssteps p { margin: 0; font-size: .92rem; color: var(--ink-2); }

/* =====================================================================
   Charts
   ===================================================================== */
.chart { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 14px 14px 6px; box-shadow: var(--shadow-sm); }
.ch-svg { display: block; width: 100%; height: auto; overflow: visible; }
.ch-grid { stroke: #efedf4; stroke-width: 1; }
.ch-axis { stroke: #dcd8e6; stroke-width: 1; }
.ch-target { stroke: #7c7691; stroke-width: 1; }
.ch-tlab { font: 700 9px var(--sans); fill: var(--ink-3); }
.ch-tick { font: 600 9px var(--sans); fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.ch-x { font: 600 9.5px var(--sans); fill: var(--ink-3); }
.ch-val { font: 800 10px var(--sans); fill: var(--ink); }
.ch-hit { fill: transparent; }
.ch-empty { stroke: #cfcadb; stroke-width: 2; stroke-linecap: round; }
.ch-col { outline: none; cursor: default; }
.ch-col .ch-bar { transition: opacity .15s ease; }
.ch-col.is-hover .ch-bar, .ch-col:focus-visible .ch-bar { opacity: .78; }
.ch-col:focus-visible .ch-hit { fill: rgba(123,79,214,.06); }
.ch-table { margin: 4px 2px 6px; font-size: .8rem; }
.ch-table summary { cursor: pointer; color: var(--ink-3); font-weight: 600; font-size: .76rem; }
.ch-table table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.ch-table caption { text-align: left; font-weight: 700; padding: 4px 0; color: var(--ink-2); }
.ch-table td, .ch-table th { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: left; white-space: normal; font-variant-numeric: tabular-nums; }
.ch-tip { position: fixed; z-index: 100; pointer-events: none; transform: translate(-50%, -100%); background: var(--ink); color: #fff;
  padding: 7px 11px; border-radius: 12px; font-size: .78rem; display: grid; gap: 1px; opacity: 0; transition: opacity .12s ease; box-shadow: var(--shadow); white-space: nowrap; }
.ch-tip.on { opacity: 1; }
.ch-tip b { font-size: .92rem; }
.ch-tip span { color: rgba(255,255,255,.7); }
.barlist { margin: 0; display: grid; gap: 9px; }
.bl-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 2fr 34px; gap: 10px; align-items: center; outline: none; border-radius: 8px; }
.bl-row:focus-visible { box-shadow: 0 0 0 2px rgba(123,79,214,.35); }
.bl-lab { display: flex; gap: 7px; align-items: center; font-size: .84rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-lab i { font-style: normal; }
.bl-track { height: 8px; border-radius: 999px; background: #f0edf6; overflow: hidden; }
.bl-fill { display: block; height: 100%; border-radius: 999px; }
.bl-val { text-align: right; font-size: .86rem; font-variant-numeric: tabular-nums; }
/* A centred grid shrinks an SVG with no intrinsic width to nothing useful;
   flex lets the drawing take the panel's full width. */
.pa-art, .pp-art, .yp-art { display: flex; align-items: center; justify-content: center; }
.pa-art > .yoga-fig, .pp-art > .yoga-fig, .yp-art > .yoga-fig { width: 100%; flex: 1 1 auto; }
.pa-art { flex-direction: column; }
@media (max-width: 640px) {
  .pl-ring { width: 88px; height: 88px; }
  .pl-hero-text > h1, .pl-hero-text > p { padding-right: 92px; }
}
@media (max-width: 400px) { .pl-hero-text > p { padding-right: 0; } }
.mini-night { isolation: isolate; }
.pa-art-sleep .mini-night { border-radius: 0; flex: 1 1 auto; align-self: stretch; }
@media (max-width: 640px) {
  .pa[data-pillar="sleep"] .pa-check small { color: rgba(255,255,255,.8); }
  .pa[data-pillar="sleep"] .plan-tick { border-color: rgba(255,255,255,.6); }
}
.yp-art > .yoga-fig { max-width: 340px; }
.pg-head-art .yoga-fig { max-width: 230px; margin: 0 auto; }

/* =====================================================================
   Home — the dashboard detail below the colour wall
   ===================================================================== */
.dash { margin-top: 36px; }
.dash-range { font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.dstats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 760px) { .dstats { grid-template-columns: repeat(6, 1fr); } }
.ds { position: relative; display: grid; gap: 2px; padding: 14px 14px 12px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); }
.ds-ic { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--lilac); color: var(--brand); }
.ds-label { font-size: .74rem; font-weight: 700; color: var(--ink-3); padding-right: 34px; }
.ds-value { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--ink); }
.ds small { font-size: .74rem; color: var(--ink-3); }
.dgrid { display: grid; gap: 14px; margin-bottom: 14px; }
@media (min-width: 760px) { .dgrid { grid-template-columns: repeat(2, 1fr); } }
.dc { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 16px 16px 10px; box-shadow: var(--shadow-sm); min-width: 0; }
.dc header { margin-bottom: 8px; }
.dc h3 { margin: 0; font-size: 1rem; }
.dc header p { margin: 2px 0 0; font-size: .8rem; color: var(--ink-3); }
.dc .chart { border: 0; box-shadow: none; padding: 0; }
.dc .barlist { padding: 4px 0 2px; }
.dc-areas { margin-bottom: 14px; }
.dc-more { display: inline-flex; align-items: center; gap: 5px; margin: 8px 0 6px; font-size: .84rem; font-weight: 700; text-decoration: none; }
.dlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dlist li > a, .dlist li { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; }
.dlist li > a { padding: 8px; margin: 0 -8px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.dlist li > a:hover { background: var(--lilac); color: var(--ink); }
.dlist span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #f6f3fb; font-size: 1.1rem; }
.dlist b { display: block; font-size: .88rem; font-weight: 700; line-height: 1.3; }
.dlist small { display: block; font-size: .76rem; color: var(--ink-3); }
.dfeed li { padding: 6px 0; border-bottom: 1px solid var(--line); grid-template-columns: 38px 1fr; }
.dfeed li:last-child { border-bottom: 0; }

/* =====================================================================
   MAYAA Twin Lab
   ===================================================================== */
body.tl-body { --lab: #5ef0ff; --lab-2: #7aa6ff; --lab-ink: #dff6ff; --lab-dim: #7f9fbf; --lab-line: rgba(120, 220, 255, .15);
  --lab-panel: rgba(9, 26, 44, .62); --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace; }
.tl { position: relative; overflow: hidden; padding-bottom: 20px; color: var(--lab-ink); isolation: isolate; }
.tl-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 50% 28%, rgba(46, 170, 255, .20), transparent 70%),
    radial-gradient(30% 40% at 12% 70%, rgba(94, 240, 255, .08), transparent 70%),
    radial-gradient(30% 40% at 88% 60%, rgba(160, 120, 255, .10), transparent 70%),
    linear-gradient(rgba(94,240,255,.045) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(94,240,255,.045) 1px, transparent 1px) 0 0 / 34px 34px,
    #030a14; }
.tl-bg::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px); }
.tl-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 20px; }

/* status bar */
.tl-hud { padding: 16px 0 6px; }
.tl-hud .tl-wrap { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; }
.hud-id { display: inline-flex; align-items: center; gap: 8px; font: 700 .68rem var(--mono); letter-spacing: .18em; color: var(--lab); }
.hud-id b { color: #fff; padding: 2px 7px; border: 1px solid var(--lab-line); border-radius: 6px; letter-spacing: .1em; }
.hud-live { width: 8px; height: 8px; border-radius: 50%; background: #46e3a6; box-shadow: 0 0 10px #46e3a6; animation: blinkDot 1.6s ease-in-out infinite; }
@keyframes blinkDot { 50% { opacity: .35; } }
.tl-hud h1 { margin: 6px 0 2px; font-size: clamp(1.6rem, 3.6vw, 2.4rem); color: #fff; letter-spacing: -.03em; }
.tl-hud h1 span { color: var(--lab-dim); font-weight: 600; }
.tl-hud p { margin: 0; font: 600 .74rem var(--mono); color: var(--lab-dim); letter-spacing: .06em; }
.hud-new { color: #46e3a6; font-style: normal; }
.hud-m { display: flex; gap: 10px; flex-wrap: wrap; }
.hud-stat { display: grid; gap: 4px; padding: 8px 12px; border: 1px solid var(--lab-line); border-radius: 12px; background: var(--lab-panel); min-width: 150px; }
.hud-stat span { font: 700 .6rem var(--mono); letter-spacing: .18em; color: var(--lab-dim); }
.hud-stat b { font: 700 .9rem var(--mono); color: #fff; }
.hud-stat { grid-template-columns: 1fr auto; grid-template-areas: 'l b' 's s'; }
.hud-stat span { grid-area: l; } .hud-stat b { grid-area: b; } .hud-stat .segs, .hud-stat .hud-sig { grid-area: s; }
.hud-sig { height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; }
.hud-sig.on { background: linear-gradient(90deg, transparent, #46e3a6, transparent); background-size: 200% 100%; animation: sigRun 1.6s linear infinite; }
@keyframes sigRun { to { background-position: -200% 0; } }
.hud-r { display: grid; justify-items: end; gap: 8px; }
.hud-clock { font: 700 1.2rem var(--mono); color: var(--lab); letter-spacing: .08em; text-shadow: 0 0 12px rgba(94,240,255,.5); }
.hud-btn { display: inline-flex; gap: 6px; align-items: center; padding: 7px 13px; border-radius: 10px; border: 1px solid rgba(94,240,255,.4); background: rgba(94,240,255,.08);
  color: var(--lab); font: 700 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.hud-btn:hover { background: rgba(94,240,255,.18); }

/* segmented meters */
.segs { display: inline-flex; gap: 2px; }
.segs i { width: 8px; height: 6px; border-radius: 1.5px; background: rgba(255,255,255,.1); }
.segs i.on { background: var(--lab); box-shadow: 0 0 6px rgba(94,240,255,.6); }
.segs.mini i { width: 6px; height: 4px; }

/* deck */
.tl-deck { padding: 10px 0 8px; }
.tl-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.tl-left, .tl-right { display: grid; gap: 12px; }
.tl-ready, .tl-panel, .tl-g, .lab, .tl-miss li, .hud-stat { position: relative; }
.tl-ready, .tl-panel, .lab { background: var(--lab-panel); border: 1px solid var(--lab-line); border-radius: 18px; backdrop-filter: blur(6px); }
/* corner brackets: the one detail that makes a panel feel like an instrument */
.tl-ready::before, .tl-panel::before, .lab::before { content: ''; position: absolute; inset: -1px; border-radius: 18px; pointer-events: none;
  background:
    linear-gradient(var(--lab), var(--lab)) top left / 14px 1.5px no-repeat, linear-gradient(var(--lab), var(--lab)) top left / 1.5px 14px no-repeat,
    linear-gradient(var(--lab), var(--lab)) bottom right / 14px 1.5px no-repeat, linear-gradient(var(--lab), var(--lab)) bottom right / 1.5px 14px no-repeat;
  opacity: .55; }
.tl-ready { display: grid; grid-template-columns: auto 1fr; gap: 6px; align-items: center; padding: 10px 14px 10px 6px; }
.tl-ready small, .tp-head small, .lab header span { font: 700 .62rem var(--mono); letter-spacing: .18em; color: var(--lab-dim); }
.tl-ready b { display: block; font-size: 1.02rem; color: #fff; margin: 4px 0; line-height: 1.25; }
.tl-ready p { margin: 0; font-size: .74rem; color: var(--lab-dim); }
.tl-gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tl-g { display: grid; justify-items: center; gap: 2px; padding: 10px 6px 10px; border-radius: 16px; cursor: pointer; font: inherit; color: inherit;
  background: rgba(9, 26, 44, .5); border: 1px solid var(--lab-line); transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.tl-g:hover { border-color: rgba(94,240,255,.4); transform: translateY(-2px); }
.tl-g.on { border-color: var(--tone); background: rgba(9, 26, 44, .85); box-shadow: 0 0 0 1px var(--tone), 0 0 26px -8px var(--tone); }
.tl-g-name { font-size: .74rem; font-weight: 700; text-align: center; line-height: 1.2; color: #e8f6ff; }
.tl-g-conf { display: flex; gap: 6px; align-items: center; min-height: 14px; }
.tl-g-conf em { font: 700 .56rem var(--mono); letter-spacing: .12em; color: #ffc85c; font-style: normal; animation: blinkDot 2s ease-in-out infinite; }

/* gauge */
.gauge { display: block; overflow: visible; }
.g-bezel { fill: #06121f; stroke: rgba(120, 220, 255, .18); stroke-width: 1; }
.g-face { fill: #081829; }
.g-zone { fill: none; stroke-width: 2; opacity: .45; }
.z-low { stroke: #ff7f6e; } .z-mid { stroke: #ffc85c; } .z-good { stroke: #46e3a6; }
.g-tick { stroke: rgba(200, 235, 255, .35); stroke-width: .8; }
.g-tick.major { stroke: rgba(220, 245, 255, .8); stroke-width: 1.4; }
.g-track { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 6; stroke-linecap: round; }
.g-arc { fill: none; stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 4px currentColor); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s cubic-bezier(.2,.8,.2,1); }
.tl.is-scanned .g-arc { stroke-dashoffset: 0; }
.g-needle { transform-origin: 60px 60px; transform: rotate(135deg); transition: transform 1.8s cubic-bezier(.34, 1.4, .5, 1); }
.tl.is-scanned .g-needle { transform: rotate(var(--to)); }
.g-hub { fill: #0c2438; stroke: var(--lab); stroke-width: 1.2; }
.g-read { font: 700 15px var(--mono); fill: #fff; letter-spacing: -.02em; }
.gauge.big .g-read { font-size: 17px; }
.gauge.empty .g-read { fill: #6f93b8; }
.gauge.empty .g-tick { opacity: .5; }

/* stage */
.tl-stage { position: relative; min-height: 640px; perspective: 1400px; }
.tl-holo-wrap { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 560 / 660; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.tl-holo { position: absolute; inset: 0; transform-style: preserve-3d; }
.tl-holo[hidden] { display: none; }
.tl-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tl-back { transform: translateZ(-60px) scale(1.06); }
.tl-body { transform: translateZ(0); }
.tl-front { transform: translateZ(50px) scale(.94); }
.hb-grid { stroke: var(--lab); stroke-width: .6; }
.hb-ring { fill: none; stroke: var(--lab); stroke-width: 1.2; }
.hb-ring.r0 { opacity: .25; } .hb-ring.r1 { opacity: .4; } .hb-ring.r2 { opacity: .55; } .hb-ring.r3 { opacity: .8; fill: rgba(94,240,255,.08); }
.hb-dash { fill: none; stroke: var(--lab); stroke-width: 1.4; stroke-dasharray: 3 12; opacity: .6; }
.hb-spin .hb-dash { animation: dashRun 12s linear infinite; }
@keyframes dashRun { to { stroke-dashoffset: -150; } }
.hb-p { fill: #9ff7ff; }
.hb-edge { fill: none; stroke: #9ff7ff; stroke-width: 1.6; opacity: .95; }
.hm-h { fill: none; stroke: #7ff4ff; stroke-width: .7; opacity: .22; }
.hm-v { fill: none; stroke: #7ff4ff; stroke-width: .6; opacity: .14; }
.hs-v { fill: #b6f6ff; opacity: .28; }
.hs-r { fill: none; stroke: #b6f6ff; stroke-width: 1.1; opacity: .22; }
.tl-beam { animation: beam 5.5s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes beam { 0% { transform: translateY(0); } 50% { transform: translateY(680px); } 100% { transform: translateY(0); } }
.an { fill: rgba(140, 240, 255, .08); stroke: #a8f6ff; stroke-width: 1.1; opacity: .8; }
.an-faint { opacity: .35; }
.an-dot { fill: #ffd1f0; stroke: none; }
.an-heart path { fill: rgba(255, 110, 150, .5); stroke: #ff9ec0; transform-box: fill-box; transform-origin: center; }
.an-repro { stroke: #ffc2e6; fill: rgba(255, 150, 210, .10); }
.an-ovary { fill: rgba(255, 190, 230, .35); }
.an-lining { fill: rgba(255, 120, 190, .32); stroke: none; }
.ax-path { fill: none; stroke: #c9a4ff; stroke-width: 1; stroke-dasharray: 2 5; opacity: .6; }
.ax-back { stroke: #ff9ec0; }
.ax-sig { fill: #d7b8ff; filter: drop-shadow(0 0 4px #b98bff); }
.ax-sig2 { fill: #ffb3d6; filter: drop-shadow(0 0 4px #ff79b4); }
.ax-lab { font: 700 8.5px var(--mono); letter-spacing: .14em; fill: #cbb2ff; }
.ax-lab2 { fill: #ffb3d6; }
.ax-lab3 { fill: #9fdcff; }
.tl-holo.no-mesh .hm, .tl-holo.no-mesh .hs { display: none; }
.tl-holo.no-anatomy .an { display: none; }
.tl-holo.no-axis .axis { display: none; }

/* nodes and callouts */
.nd { cursor: pointer; outline: none; }
.nd-pulse { fill: none; stroke: var(--tone); stroke-width: 1.4; }
.nd-core { fill: var(--tone); filter: drop-shadow(0 0 6px var(--tone)); }
.nd-ring { fill: none; stroke: var(--tone); stroke-width: 1.2; opacity: .8; }
.nd[data-tone="unknown"] .nd-ring { stroke-dasharray: 3 3; }
.nd-lead { fill: none; stroke: var(--tone); stroke-width: 1; opacity: .55; }
.nd-box { fill: rgba(6, 20, 34, .88); stroke: var(--tone); stroke-width: 1; stroke-opacity: .55; }
.nd-bar { fill: var(--tone); }
.nd-name { font: 700 8.5px var(--sans); letter-spacing: .06em; fill: #cfe9ff; text-transform: uppercase; }
.nd-val { font: 700 13px var(--mono); fill: #fff; }
.nd[data-tone="unknown"] .nd-val { fill: #ffc85c; font-size: 10px; letter-spacing: .12em; }
.nd-of { font-size: 8px; fill: var(--lab-dim); }
.nd:hover .nd-box, .nd:focus-visible .nd-box, .nd.on .nd-box { stroke-opacity: 1; stroke-width: 1.6; fill: rgba(10, 34, 56, .95); }
.nd.on .nd-lead { opacity: 1; stroke-width: 1.6; }
.nd.on .nd-core { r: 9; }
.nd { opacity: 0; transition: opacity .5s ease; }
.tl.is-scanned .nd, .tl.no-intro .nd { opacity: 1; }

/* layers + log */
.tl-layers, .tl-figtoggle { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.tl-figtoggle { position: absolute; top: 0; left: 0; z-index: 3; }
.tl-layers button, .tl-figtoggle button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--lab-line); background: rgba(6, 20, 34, .7);
  color: var(--lab-dim); font: 700 .66rem var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.tl-layers button.on, .tl-figtoggle button.on { color: #03121c; background: var(--lab); border-color: var(--lab); }
.tl-log { list-style: none; margin: 10px auto 0; padding: 10px 14px; max-width: 440px; min-height: 60px; border-radius: 12px;
  background: rgba(3, 12, 22, .75); border: 1px solid var(--lab-line); font: 500 .68rem/1.6 var(--mono); color: #9fdcff; }
.tl-log li { opacity: 0; transform: translateX(-4px); transition: opacity .25s ease, transform .25s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-log li::before { content: '› '; color: var(--lab); }
.tl-log li.on { opacity: 1; transform: none; }
.tl-log li.on:last-child { color: #46e3a6; }
.tl.no-intro .tl-log li { opacity: 1; transform: none; }

/* console */
.tl-panel { padding: 16px 16px 14px; }
.tl-panel[hidden] { display: none; }
.tl-panel { animation: panelIn .35s ease-out; }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tp-head { display: flex; gap: 12px; align-items: center; }
.tp-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: rgba(94,240,255,.08); border: 1px solid var(--lab-line); }
.tp-head h2 { margin: 3px 0 0; font-size: 1.22rem; color: #fff; }
.tp-read { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 14px 0 10px; }
.tp-num { font: 700 3.4rem/1 var(--mono); color: #fff; letter-spacing: -.04em; text-shadow: 0 0 22px color-mix(in srgb, var(--tone) 60%, transparent); }
.tp-of { font: 700 .9rem var(--mono); color: var(--lab-dim); }
.tp-band { margin-left: auto; padding: 5px 10px; border-radius: 8px; font-size: .74rem; font-weight: 700; color: var(--tone); border: 1px solid color-mix(in srgb, var(--tone) 50%, transparent); background: color-mix(in srgb, var(--tone) 12%, transparent); }
.tp-conf { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(3,12,22,.6); border: 1px solid var(--lab-line); }
.tp-conf span { font: 700 .6rem var(--mono); letter-spacing: .16em; color: var(--lab-dim); }
.tp-conf b { font: 700 .86rem var(--mono); color: #fff; grid-row: span 2; }
.tp-note { font-size: .86rem; color: #b9d7ec; margin: 12px 0; line-height: 1.55; }
.tp-list { margin-top: 10px; }
.tp-list h4 { margin: 0 0 6px; font: 700 .64rem var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.tp-list.up h4 { color: #46e3a6; } .tp-list.down h4 { color: #ff9a8a; } .tp-list.miss h4 { color: #ffc85c; }
.tp-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.tp-list li { padding: 7px 10px; border-radius: 10px; background: rgba(3,12,22,.55); border: 1px solid var(--lab-line); font-size: .82rem; color: #e2f3ff; }
.tp-list li small { display: block; color: var(--lab-dim); font-size: .72rem; margin-top: 2px; }
.tp-add { display: inline-flex; gap: 7px; align-items: center; margin-top: 10px; padding: 8px 12px; border-radius: 10px; text-decoration: none;
  background: linear-gradient(135deg, #5ef0ff, #7aa6ff); color: #03121c; font-weight: 800; font-size: .8rem; }
.tp-add:hover { color: #03121c; filter: brightness(1.08); }

/* lab bench */
.tl-bench, .tl-missions, .tl-foot { padding: 18px 0 6px; }
.tl-sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tl-sec-h h2 { margin: 0; font-size: 1.25rem; color: #fff; }
.tl-sec-h p { margin: 0; font-size: .82rem; color: var(--lab-dim); }
.tl-labs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1100px) { .tl-labs { grid-template-columns: repeat(2, 1fr); } }
.lab { display: flex; flex-direction: column; text-align: left; padding: 12px; cursor: pointer; font: inherit; color: inherit; transition: transform .2s ease, border-color .2s ease; }
.lab:hover { transform: translateY(-3px); border-color: rgba(94,240,255,.4); }
.lab[disabled] { cursor: default; }
.lab.on { border-color: var(--lab); box-shadow: 0 0 26px -10px var(--lab); }
.lab header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lab header em { font: 700 .56rem var(--mono); letter-spacing: .14em; font-style: normal; padding: 3px 7px; border-radius: 6px; }
.lab header em.live { color: #46e3a6; background: rgba(70,227,166,.1); border: 1px solid rgba(70,227,166,.35); }
.lab header em.wait { color: #ffc85c; background: rgba(255,200,92,.08); border: 1px solid rgba(255,200,92,.3); }
.lab-view { margin: 8px 0; border-radius: 12px; background: rgba(3, 12, 22, .6); border: 1px solid var(--lab-line); padding: 6px; }
.lab-view .inst { display: block; width: 100%; height: auto; }
.lab footer b { display: block; font: 700 1.2rem var(--mono); color: #fff; }
.lab footer b span { font: 600 .74rem var(--sans); color: var(--lab-dim); }
.lab footer small { display: block; color: var(--lab-dim); font-size: .74rem; margin-top: 2px; }
.inst-empty { font: 700 9px var(--mono); letter-spacing: .2em; fill: #ffc85c; }
.inst-empty.sm { font-size: 7.5px; }
.us-frame { fill: none; stroke: rgba(94,240,255,.4); stroke-width: 1; }
.us-ov { fill: rgba(170, 200, 210, .18); }
.us-fol { fill: #02060a; stroke: rgba(210, 230, 240, .35); stroke-width: .6; }
.us-sweep { stroke: rgba(94,240,255,.35); stroke-width: 1.2; }
.v-shelf { fill: rgba(94,240,255,.18); }
.v-cap { fill: #5a7896; }
.v-glass { fill: rgba(160, 230, 255, .06); stroke: rgba(160, 230, 255, .5); stroke-width: 1; }
.v-glass.empty { stroke-dasharray: 3 3; stroke: rgba(255, 200, 92, .5); }
.v-fill { filter: drop-shadow(0 0 5px currentColor); opacity: .9; }
.v-bub { fill: #fff; opacity: .6; }
.v-lab { font: 700 7.5px var(--mono); fill: #cfe9ff; letter-spacing: .08em; }
.v-val { font: 700 8px var(--mono); fill: var(--lab-dim); }
.vial { outline: none; cursor: default; }
.em-dish { fill: rgba(94,240,255,.04); stroke: rgba(94,240,255,.35); stroke-width: 1; }
.em-well { fill: rgba(94,240,255,.05); stroke: rgba(94,240,255,.15); }
.em-zona { fill: none; stroke: rgba(255, 220, 190, .45); stroke-width: 2.2; }
.em-cell { fill: rgba(255, 214, 180, .28); stroke: rgba(255, 226, 200, .75); stroke-width: .9; }
.em-blast { fill: rgba(255, 214, 180, .16); stroke: rgba(255, 226, 200, .8); stroke-width: 2.4; }
.em-cavity { fill: rgba(3, 12, 22, .6); }
.em-icm { fill: rgba(255, 200, 170, .55); }
.em-day { font: 700 8px var(--mono); fill: var(--lab); letter-spacing: .1em; }
.sc-ring { fill: none; stroke: rgba(94,240,255,.35); stroke-width: 3; }
.sc-grid { stroke: rgba(94,240,255,.08); stroke-width: .6; }
.sp-head { fill: #d8f6ff; }
.sp-tail { fill: none; stroke: #bfeeff; stroke-width: 1; opacity: .8; }
.cw-outer { fill: none; stroke: rgba(94,240,255,.15); stroke-width: 1; }
.cw-seg { fill: none; stroke-width: 9; }
.cw-seg.men { stroke: #ff7f9e; } .cw-seg.fol { stroke: #8fa7ff; } .cw-seg.ovu { stroke: #46e3a6; } .cw-seg.lut { stroke: #b58cff; }
.cw-seg.sp1 { stroke: #5ab8ff; } .cw-seg.sp2 { stroke: #7fd8ff; } .cw-seg.sp3 { stroke: #46e3a6; }
.cw-spin { transform-origin: 100px 62px; animation: turn 14s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.cw-dot { fill: #fff; filter: drop-shadow(0 0 5px #fff); }
.cw-big { font: 700 20px var(--mono); fill: #fff; }
.cw-sub { font: 700 6.5px var(--mono); fill: var(--lab-dim); letter-spacing: .14em; }
.ecg-grid { stroke: rgba(70, 227, 166, .08); stroke-width: .6; }
.ecg-line { fill: none; stroke: #46e3a6; stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 0 3px #46e3a6); }
.ecg-fade { fill: rgba(3,12,22,.7); }
.dna-rung { stroke: rgba(160, 200, 255, .35); stroke-width: 1; }
.dna-a { fill: #5ef0ff; } .dna-b { fill: #c9a4ff; }

/* missions */
.tl-miss { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 900px) { .tl-miss { grid-template-columns: repeat(3, 1fr); } }
.tl-miss li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--lab-panel); border: 1px solid var(--lab-line); }
.m-n { font: 700 1.3rem var(--mono); color: var(--lab); }
.tl-miss b { display: block; color: #fff; font-size: .92rem; }
.tl-miss small { display: block; color: var(--lab-dim); font-size: .74rem; }
.m-go { display: inline-flex; gap: 5px; align-items: center; padding: 7px 11px; border-radius: 10px; border: 1px solid rgba(94,240,255,.4); color: var(--lab); text-decoration: none; font-weight: 700; font-size: .78rem; }
.m-go:hover { background: rgba(94,240,255,.12); color: var(--lab); }
.tl-disc { color: var(--lab-dim); font-size: .8rem; line-height: 1.6; max-width: 80ch; }
.tl-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* responsive cockpit */
@media (max-width: 1180px) {
  .tl-grid { grid-template-columns: 260px minmax(0, 1fr); }
  .tl-right { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .tl-hud .tl-wrap { grid-template-columns: 1fr auto; }
  .hud-m { grid-column: 1 / -1; order: 3; }
  .hud-stat { min-width: 0; flex: 1 1 120px; }
  .tl-grid { grid-template-columns: 1fr; }
  .tl-stage { order: -1; min-height: 0; }
  .tl-left { grid-template-columns: 1fr; }
  .tl-gauges { grid-template-columns: repeat(3, 1fr); }
  .tl-ready { grid-template-columns: auto 1fr; }
  .tl-ready .gauge { width: 130px; height: 130px; }
}
@media (max-width: 520px) {
  .tl-gauges { grid-template-columns: repeat(2, 1fr); }
  .tl-labs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lab { padding: 10px; }
  .lab footer b { font-size: 1rem; }
  .tl-front .nd-tag { transform-box: fill-box; }
  .hud-clock { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-beam, .hb-spin .hb-dash, .cw-spin, .hud-live, .hud-sig.on { animation: none !important; }
  .tl-holo-wrap { transform: none !important; }
}
/* On a phone the callouts would be 5px text: keep the nodes (bigger, still
   tappable) and let the gauge deck below carry names and numbers. */
@media (max-width: 560px) {
  .tl-front .nd-tag, .tl-front .nd-lead { display: none; }
  .tl-front .nd-core { r: 9; }
  .tl-front .nd-ring { r: 14; }
  .tl-holo-wrap { max-width: 400px; }
  .ax-lab { font-size: 10px; }
}

/* The Twin: MAYAA's signature, marked in the menus with its own glow. */
.nav-primary > a.nav-sig { color: var(--nav-ink); background: linear-gradient(120deg, rgba(94,240,255,.16), rgba(123,79,214,.14)); box-shadow: inset 0 0 0 1px rgba(94,200,255,.35); }
.nav-primary > a.nav-sig .ic { color: #0aa6c8; filter: drop-shadow(0 0 4px rgba(94,240,255,.6)); }
body.st-body .nav-primary > a.nav-sig .ic, body.sc-body .nav-primary > a.nav-sig .ic, body.twin-dark .nav-primary > a.nav-sig .ic { color: #5ef0ff; }
.nav-primary > a.nav-sig:hover, .nav-primary > a.nav-sig.is-active { background: linear-gradient(120deg, rgba(94,240,255,.28), rgba(123,79,214,.24)); color: var(--nav-ink); }
.tabbar a.tab-sig .sig-ic { width: 34px; height: 30px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #0aa6c8, #7b4fd6); box-shadow: 0 6px 16px -6px rgba(10,166,200,.8), 0 0 0 1px rgba(94,240,255,.35); }
.tabbar a.tab-sig { color: var(--bar-active); }
.tabbar a.tab-sig.is-active::before { display: none; }
.tabbar a.tab-sig.is-active .sig-ic { box-shadow: 0 0 0 2px var(--bar-bg), 0 0 0 3.5px #5ef0ff, 0 8px 20px -6px rgba(10,166,200,.9); }


/* ---------- Assessment checkpoints ---------- */
.cp { display: grid; gap: 16px; }
.cp > * { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.cp.is-in > * { opacity: 1; transform: none; }
.cp.is-in > *:nth-child(2) { transition-delay: .08s; }
.cp.is-in > *:nth-child(3) { transition-delay: .16s; }
.cp.is-in > *:nth-child(4) { transition-delay: .28s; }
.cp.is-in > *:nth-child(5) { transition-delay: .4s; }
.cp-hero {
  display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: 24px; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #7B4FD6 0%, #5b34a8 45%, #3f2380 100%);
  box-shadow: 0 24px 48px -28px rgba(63, 35, 128, .8);
}
.cp-hero h2 { color: #fff; font-size: clamp(1.3rem, 3.6vw, 1.75rem); margin: 0 0 6px; }
.cp-hero p { margin: 0; color: rgba(255,255,255,.82); font-size: .96rem; }
.cp-ring-wrap { position: relative; flex: none; width: 108px; height: 108px; }
.cp-ring { width: 100%; height: 100%; color: #fff; display: block; }
.cp-ring-arc { transition: stroke-dashoffset 1.3s cubic-bezier(.22,1,.36,1) .2s; }
.cp-ring-n { font: 700 30px var(--sans); fill: #fff; }
.cp-ring-of { font-size: 16px; fill-opacity: .7; }
.cp-ring-l { font: 600 9.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; fill: rgba(255,255,255,.72); }
.cp-spark {
  position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%;
  background: #F6A36B; opacity: 0; transform: rotate(var(--a)) translateY(0);
}
.cp.is-in .cp-spark { animation: cpSpark 1s cubic-bezier(.22,1,.36,1) calc(1.1s + var(--d)) both; }
.cp-spark:nth-child(even) { background: #ffd0dc; }
@keyframes cpSpark { 0% { opacity: 0; transform: rotate(var(--a)) translateY(-30px) scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-66px) scale(1); } }
.cp-path { list-style: none; margin: 0; padding: 0 4px; display: flex; gap: 6px; }
.cp-path li { flex: 1; }
.cp-path span { display: block; height: 6px; border-radius: 999px; background: rgba(91, 52, 168, .12); }
.cp-path li.done span { background: linear-gradient(90deg, #7B4FD6, #E0607A); }
.cp-card { background: #fff; border-radius: 22px; padding: 20px; box-shadow: var(--shadow-sm, 0 10px 30px -18px rgba(28,22,51,.3)); border: 1px solid rgba(91, 52, 168, .08); }
.cp-card h3 { font-size: 1.05rem; margin: 0 0 12px; }
.cp-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cp-chip { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--lilac); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.cp-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cp-bar-top { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; margin-bottom: 6px; }
.cp-bar-top span { color: var(--ink); font-weight: 600; }
.cp-bar-top b { font-size: .8rem; font-weight: 700; white-space: nowrap; }
.cp-bar-top em { font-style: normal; }
.cp-track { height: 10px; border-radius: 999px; background: rgba(28, 22, 51, .07); overflow: hidden; }
.cp-track i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 1.1s cubic-bezier(.22,1,.36,1) .45s; }
.cp.is-in .cp-track i { width: var(--w); }
.cp-bar.tier-strong b { color: #1f8a5b; } .cp-bar.tier-strong .cp-track i { background: linear-gradient(90deg, #3fbf87, #1f8a5b); }
.cp-bar.tier-steady b { color: #b7791f; } .cp-bar.tier-steady .cp-track i { background: linear-gradient(90deg, #f6c35b, #e09a2b); }
.cp-bar.tier-grow b { color: #c8455f; } .cp-bar.tier-grow .cp-track i { background: linear-gradient(90deg, #f6a36b, #e0607a); }
.cp-note { font-size: .8rem; color: var(--ink-3); margin: 14px 0 0; }
.cp-fact { display: flex; gap: 14px; align-items: flex-start; }
.cp-fact p { margin: 0 0 8px; color: var(--ink-2); }
.cp-fact h3 { margin-bottom: 6px; }
.cp-fact cite, .cp-dyk cite { display: block; font-size: .76rem; color: var(--ink-3); font-style: normal; margin-top: 4px; }
.cp-fact cite::before, .cp-dyk cite::before { content: 'Source · '; font-weight: 700; }
.cp-fact-ic { flex: none; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; font-weight: 800; color: #fff; }
.cp-fact.is-lever { background: linear-gradient(180deg, #fff6f2, #fff); }
.cp-fact.is-lever .cp-fact-ic { background: linear-gradient(135deg, #F6A36B, #E0607A); }
.cp-fact.is-strength { background: linear-gradient(180deg, #f1fbf6, #fff); }
.cp-fact.is-strength .cp-fact-ic { background: linear-gradient(135deg, #3fbf87, #1f8a5b); }
.cp-next-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-next-chip { display: grid; padding: 10px 14px; border-radius: 14px; background: var(--lilac); min-width: 0; }
.cp-next-chip b { font-size: .92rem; color: var(--brand-deep); }
.cp-next-chip small { font-size: .76rem; color: var(--ink-3); }
.cp-dyk { margin: 14px 0 0; font-size: .92rem; color: var(--ink-2); }
.cp-dyk span { font-weight: 800; color: var(--brand-2); }
.cp-left { margin: 12px 0 0; font-size: .8rem; font-weight: 700; color: var(--brand); letter-spacing: .04em; }
@media (max-width: 480px) {
  .cp-hero { flex-direction: column; text-align: center; padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .cp > *, .cp-track i, .cp-ring-arc { transition: none !important; }
}
