/* ════════════════════════════════════════════════
   POCHOP — sam seba
   ════════════════════════════════════════════════ */

:root {
    --font-base-size: 20px;
    --content-shell-max: 1120px;
    --nav-shell-max: 1280px;
    --page-shell-gutter: clamp(14px, 2vw, 24px);
    --landing-copy-max: 880px;
    --bg-0: #07070d;
    --bg-1: #0c0c16;
    --bg-2: #13131f;
    --bg-3: #1a1a2e;
    --bg-4: #22223a;
    --tx-1: #eaeaf2;
    --tx-2: #a0a0be;
    --tx-3: #6a6a88;
    --accent: #8b5cf6;
    --accent2: #6366f1;
    --green: #10b981;
    --red: #ef4444;
    --amber: #f59e0b;
    --border: rgba(255,255,255,0.06);
    --glow: rgba(139,92,246,0.25);
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 20px;
    --font: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
    --font-d: var(--font);
    --font-display: var(--font);
    --type-hero-auth: clamp(1.55rem, 4vw, 2.35rem);
    --type-hero-compact: clamp(1.35rem, 3.5vw, 2.05rem);
    --type-display-xl: clamp(2.35rem, 4.8vw, 3.9rem);
    --type-display-lg: clamp(1.95rem, 3vw, 2.9rem);
    --type-display-md: clamp(1.5rem, 2.2vw, 2rem);
    --type-copy-lg: clamp(1.28rem, 1.9vw, 1.62rem);
    --type-copy-md: clamp(1.18rem, 1.5vw, 1.4rem);
    --type-copy-sm: clamp(1.12rem, 1.2vw, 1.24rem);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    font-size: var(--font-base-size);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}
body {
    font-family: var(--font);
    background: var(--bg-0);
    color: var(--tx-1);
    line-height: 1.6;
    letter-spacing: 0;
    font-weight: 560;
    font-optical-sizing: auto;
    font-kerning: normal;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}
button,
input,
select,
textarea {
    font: inherit;
}
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.022em;
}
::selection { background: rgba(139,92,246,0.3); }

/* ═══ COSMIC STARFIELD BACKGROUND ═══ */
.starfield-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
/* Nebula / cosmic dust overlay — multiple soft gradients */
.nebula-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        /* Deep purple nebula - top right */
        radial-gradient(ellipse 800px 600px at 85% 15%,
            rgba(99,60,180,0.07) 0%,
            rgba(99,60,180,0.03) 40%,
            transparent 70%),
        /* Blue nebula - bottom left */
        radial-gradient(ellipse 900px 700px at 10% 80%,
            rgba(56,80,180,0.05) 0%,
            rgba(56,80,180,0.02) 40%,
            transparent 70%),
        /* Warm nebula - center */
        radial-gradient(ellipse 600px 500px at 50% 50%,
            rgba(139,92,246,0.03) 0%,
            transparent 60%),
        /* Teal accent - bottom right */
        radial-gradient(ellipse 500px 400px at 75% 70%,
            rgba(6,182,212,0.03) 0%,
            transparent 60%),
        /* Subtle pink - top left */
        radial-gradient(ellipse 700px 500px at 20% 20%,
            rgba(168,85,247,0.04) 0%,
            transparent 55%);
    animation: nebulaDrift 30s ease-in-out infinite alternate;
}
html.starfield-lite .nebula-layer {
    animation: none;
    opacity: 0.75;
    transform: none;
}
@keyframes nebulaDrift {
    0% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
    100% { opacity: 0.85; transform: scale(0.99); }
}
@media (prefers-reduced-motion: reduce) {
    .nebula-layer { animation: none; }
    .navbar::before,
    .navbar::after,
    .nav-logo-pro-btn,
    .nav-logo-pro-btn::before,
    .nav-logo-pro-btn::after,
    .nav-moment-link,
    .nav-moment-link::before,
    .nav-moment-link::after,
    .nav-ai-trigger,
    .nav-ai-dropdown,
    .nav-ai-item,
    .nav-ai-trigger-model,
    .nav-ai-dropdown-active,
    .nav-ai-item.is-active .nav-ai-item-label {
        animation: none !important;
        transition: none !important;
    }
    .tl-header-moon::before,
    .tl-header-moon-icon {
        animation: none !important;
        transition: none !important;
    }
    .tl-mobile-calendar,
    .gantt-current-day-text,
    .gantt-axis-trigger {
        animation: none !important;
        transition: none !important;
    }
}
/* Ensure all content sits above the starfield */
.navbar, .main-content, .footer { position: relative; z-index: 1; }
.main-content {
    flex: 1 0 auto;
    width: 100%;
}

/* ═══ NAVBAR ═══ */
.navbar {
    position: sticky; top: 0; z-index: 200;
    width: 100%;
    background: linear-gradient(115deg, rgba(20, 15, 31, 0.9), rgba(9, 10, 20, 0.82) 46%, rgba(16, 18, 34, 0.88));
    backdrop-filter: blur(28px) saturate(1.48);
    -webkit-backdrop-filter: blur(28px) saturate(1.48);
    border-bottom: 1px solid rgba(236, 223, 192, 0.12);
    box-shadow: 0 16px 38px rgba(5, 6, 16, 0.46), inset 0 1px 0 rgba(255,255,255,0.12);
    overflow: visible;
}
.navbar::before {
    content: "";
    position: absolute;
    inset: -138% -18% -18%;
    background:
        radial-gradient(circle at 18% 32%, rgba(255, 220, 164, 0.12), transparent 34%),
        radial-gradient(circle at 50% -8%, rgba(166, 124, 255, 0.2), transparent 40%),
        radial-gradient(circle at 82% 24%, rgba(126, 189, 255, 0.14), transparent 34%);
    animation: liquidFlow 28s ease-in-out infinite;
    opacity: 0.74;
    pointer-events: none;
}
.navbar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 16%, rgba(255, 246, 220, 0.03) 34%, rgba(255, 246, 220, 0.08) 48%, rgba(136, 197, 255, 0.08) 58%, rgba(255, 220, 167, 0.05) 68%, transparent 82%);
    transform: translateX(-120%);
    animation: glassSweep 14s ease-in-out infinite;
    opacity: 0.48;
    pointer-events: none;
}
@keyframes liquidFlow {
    0% { transform: translateX(-2%) rotate(0deg) scale(1); }
    50% { transform: translateX(2.5%) rotate(1deg) scale(1.03); }
    100% { transform: translateX(-2%) rotate(0deg) scale(1); }
}
@keyframes glassSweep {
    0% { transform: translateX(-120%); opacity: 0; }
    26% { opacity: 0.5; }
    42% { transform: translateX(140%); opacity: 0; }
    100% { transform: translateX(140%); opacity: 0; }
}
@keyframes logoGradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.nav-container {
    max-width: var(--nav-shell-max); margin: 0 auto; padding: 0 var(--page-shell-gutter);
    width: 100%;
    min-height: 74px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
    column-gap: 20px; row-gap: 8px;
    position: relative; z-index: 1;
}
.nav-brand-wrap {
    display: flex; align-items: center;
    min-width: 0;
    position: relative;
    padding: 4px 10px;
    margin: -4px -10px;
    border-radius: 14px;
    overflow: hidden;
    isolation: isolate;
}
.nav-brand-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 130% 95% at 0% 50%, rgba(182, 119, 255, 0.14), transparent 58%),
        radial-gradient(ellipse 140% 105% at 100% 50%, rgba(130, 76, 255, 0.12), transparent 62%);
    opacity: 0.7;
    pointer-events: none;
}
.nav-logo {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; color: var(--tx-1);
    position: relative;
    z-index: 1;
}
.nav-brand-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    position: relative;
    z-index: 1;
    min-width: 230px;
}
.nav-brand-stack .nav-logo {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
}
.nav-brand-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}
.nav-brand-meta-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}
.nav-brand-beta {
    font-size: .72rem;
    font-weight: 500;
    line-height: 1;
    color: rgba(255, 228, 174, 0.92);
    text-shadow: 0 0 8px rgba(255, 205, 112, 0.18);
    letter-spacing: .01em;
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
    align-left: 330px;
    margin-top: -0px;
}
.nav-logo-pro-btn,
.nav-moment-link {
    --nav-pill-border: rgba(242, 218, 173, 0.42);
    --nav-pill-border-strong: rgba(255, 239, 206, 0.92);
    --nav-pill-text: #fff0cc;
    /* --nav-pill-aura: rgba(255, 224, 166, 0.28);
    --nav-pill-aura-soft: rgba(124, 184, 255, 0.18);
    --nav-pill-fill-start: rgba(76, 50, 19, 0.9);
    --nav-pill-fill-mid: rgba(24, 17, 31, 0.96);
    --nav-pill-fill-end: rgba(13, 20, 38, 0.92); */
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 17px;
    border-radius: 999px;
    /* border: 1px solid var(--nav-pill-border); */
    /* background: linear-gradient(135deg, rgba(24, 18, 17, 0.62), rgba(8, 10, 20, 0.68)); */
    background: black;
    color: var(--nav-pill-text);
    font-family: var(--font-d);
    font-size: clamp(1.01rem, 0.98rem + 0.16vw, 1.08rem);
    font-style: italic;
    font-weight: 700;
    letter-spacing: .018em;
    line-height: 1;
    text-decoration: none;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.88), 0 0 14px rgba(255, 226, 164, 0.18);
    white-space: nowrap;
    box-shadow:
        0 14px 30px rgba(7, 7, 14, 0.34),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 250, 235, 0.14);
    isolation: isolate;
    overflow: hidden;
    transform: translateY(0);
    transition:
        transform .28s cubic-bezier(.2, .8, .2, 1),
        border-color .28s ease,
        box-shadow .32s ease,
        filter .32s ease,
        color .28s ease;
}
.nav-logo-pro-btn::before,
.nav-moment-link::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: black;
    /* background:
        radial-gradient(circle at 14% 18%, var(--nav-pill-aura), transparent 38%),
        radial-gradient(circle at 84% 12%, var(--nav-pill-aura-soft), transparent 34%),
        linear-gradient(138deg, var(--nav-pill-fill-start) 0%, var(--nav-pill-fill-mid) 48%, var(--nav-pill-fill-end) 100%); */
    background-size: 148% 148%, 148% 148%, 100% 100%;
    background-position: 0% 0%, 100% 0%, 50% 50%;
    opacity: .98;
    z-index: -2;
    transition:
        background-position .64s cubic-bezier(.2, .8, .2, 1),
        transform .4s ease,
        opacity .28s ease;
}
.nav-logo-pro-btn::after,
.nav-moment-link::after {
    content: "";
    position: absolute;
    inset: -38% -12%;
    border-radius: inherit;
    background: black;
    /* background: linear-gradient(
        116deg,
        rgba(255, 255, 255, 0) 18%,
        rgba(255, 247, 221, 0.05) 34%,
        rgba(255, 238, 204, 0.34) 49%,
        rgba(150, 206, 255, 0.18) 60%,
        rgba(255, 255, 255, 0) 76%
    ); */
    filter: blur(7px);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-92%) skewX(-18deg);
    z-index: -1;
    transition:
        transform .78s cubic-bezier(.19, 1, .22, 1),
        opacity .28s ease;
}
.nav-logo-pro-btn:hover,
.nav-logo-pro-btn:focus-visible,
.nav-moment-link:hover,
.nav-moment-link:focus-visible {
    text-decoration: none;
    transform: translateY(-2px);
    border-color: var(--nav-pill-border-strong);
    box-shadow:
        0 18px 38px rgba(7, 7, 14, 0.42),
        0 0 28px rgba(255, 207, 109, 0.14),
        inset 0 1px 0 rgba(255, 251, 238, 0.2);
    filter: saturate(1.08) brightness(1.04);
}
.nav-logo-pro-btn:hover::before,
.nav-logo-pro-btn:focus-visible::before,
.nav-moment-link:hover::before,
.nav-moment-link:focus-visible::before {
    background-position: 18% 18%, 78% 12%, 50% 50%;
    transform: scale(1.01);
}
.nav-logo-pro-btn:hover::after,
.nav-logo-pro-btn:focus-visible::after,
.nav-moment-link:hover::after,
.nav-moment-link:focus-visible::after {
    opacity: .94;
    transform: translateX(84%) skewX(-18deg);
}
.nav-logo-pro-btn.is-active,
.nav-logo-pro-btn.is-current-page,
.nav-moment-link.is-active,
.nav-moment-link[aria-current="page"] {
    --nav-pill-border: rgba(255, 233, 188, 0.8);
    --nav-pill-border-strong: rgba(255, 246, 223, 0.98);
    --nav-pill-text: #fff7e0;
    --nav-pill-aura: rgba(255, 231, 184, 0.34);
    --nav-pill-aura-soft: rgba(156, 214, 255, 0.18);
    box-shadow:
        0 16px 36px rgba(7, 7, 14, 0.42),
        0 0 32px rgba(255, 208, 111, 0.18),
        inset 0 1px 0 rgba(255, 250, 232, 0.2);
}
.nav-logo-pro-btn--tagline {
    font-size: clamp(1.03rem, 1rem + 0.22vw, 1.12rem);
}
.nav-brand-meta-main .nav-logo-pro-btn:not(.nav-logo-pro-btn--tagline) {
    min-height: 31px;
    padding: 5px 12px;
    font-size: .96rem;
}
/* ── Logo: "Pochop" efektový nápis ── */
.logo-pochop {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.7rem, 2.2vw, 2.22rem);
    letter-spacing: -0.04em;
    line-height: 1;
    position: relative;
    color: #f7f0ff;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform .24s ease, color .24s ease, text-shadow .24s ease;
    transform: translateZ(0);
    font-synthesis: none;
}
.logo-pochop-dot {
    margin: 0 .02em 0 .01em;
    color: rgba(223, 193, 255, 0.98);
}
.logo-pochop-suffix {
    font-size: .46em;
    font-weight: 500;
    font-style: normal;
    line-height: 1;
    vertical-align: middle;
    letter-spacing: .01em;
    opacity: 0.96;
    color: rgba(233, 218, 255, 0.9);
}
.nav-beta-icon {
    font-size: .82rem;
    line-height: 1;
}
/* "sam seba" */
.logo-sub {
    font-family: var(--font-d);
    font-weight: 400;
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: lowercase;
    color: rgba(255,255,255,0.5);
}
.nav-tagline {
    margin: 0;
    color: #fff;
    font-family: var(--font-d);
    font-size: clamp(1.24rem, 1.48vw, 1.58rem);
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.15;
    white-space: nowrap;
    text-align: center;
    justify-self: center;
    max-width: 720px;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 14px rgba(187, 129, 255, 0.24), 0 8px 24px rgba(8, 6, 18, 0.26);
    transition: transform .28s ease, color .28s ease, text-shadow .28s ease;
}
.nav-tagline-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    justify-self: center;
    min-width: 0;
}
.nav-tagline-ai {
    display: inline-block;
    margin-left: .22em;
    font-weight: 900;
    /* font-style: italic; */
    letter-spacing: .05em;
    background: linear-gradient(120deg, #ffffff 0%, #e8d9ff 38%, #bf9dff 68%, #ffffff 100%);
    background-size: 180% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    animation: aiWordShimmer 5.4s ease-in-out infinite;
    transform: translateY(-0.03em);
}
@keyframes aiWordShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.nav-brand-wrap:hover .logo-pochop {
    transform: translateY(-1px);
    color: #fff8ff;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 12px rgba(193, 148, 255, 0.1);
}
.logo-pochop--pro {
    color: #ffe8bc;
    text-shadow: 0 1px 0 rgba(255, 247, 219, 0.2), 0 0 12px rgba(243, 190, 87, 0.1);
}
.nav-brand-wrap--pro:hover .logo-pochop--pro {
    transform: translateY(-1px);
    color: #fff1d3;
    text-shadow: 0 1px 0 rgba(255, 250, 228, 0.22), 0 0 14px rgba(245, 197, 103, 0.14);
}
.nav-tagline--pro {
    color: #fff2cd;
    text-shadow: 0 0 10px rgba(255, 215, 130, 0.3), 0 0 22px rgba(245, 184, 70, 0.2);
    animation: proGoldPulse 3.5s ease-in-out infinite;
}
.nav-tagline--pro .nav-tagline-ai {
    background: linear-gradient(108deg, #fff7dc 8%, #ffd57d 32%, #fff5d8 54%, #f3bf5a 74%, #fff0be 92%);
    background-size: 230% 100%;
    animation: aiWordShimmer 4.4s ease-in-out infinite;
}
@keyframes proGoldPulse {
    0% {
        text-shadow: 0 0 10px rgba(255, 214, 124, 0.28), 0 0 24px rgba(238, 172, 55, 0.18);
        filter: brightness(1);
    }
    50% {
        text-shadow: 0 0 16px rgba(255, 230, 163, 0.52), 0 0 38px rgba(247, 189, 77, 0.34);
        filter: brightness(1.06);
    }
    100% {
        text-shadow: 0 0 10px rgba(255, 214, 124, 0.28), 0 0 24px rgba(238, 172, 55, 0.18);
        filter: brightness(1);
    }
}
.nav-right {
    display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; justify-content: flex-end;
    justify-self: end;
    position: relative;
    z-index: 1;
}
.nav-tier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    border: 1px solid transparent;
    white-space: nowrap;
}
.nav-tier-badge--pro {
    color: #f7edff;
    background: linear-gradient(135deg, rgba(166, 106, 255, 0.25), rgba(96, 55, 182, 0.24));
    border-color: rgba(208, 164, 255, 0.46);
    box-shadow: 0 10px 24px rgba(101, 58, 176, 0.26);
}
.nav-tier-badge--free {
    color: rgba(241, 237, 252, 0.9);
    background: rgba(25, 20, 41, 0.66);
    border-color: rgba(188, 170, 216, 0.28);
}
.nav-moment {
    display: flex; align-items: center; gap: 10px;
}
.nav-moment-link {
    --nav-pill-border: rgba(205, 193, 255, 0.3);
    --nav-pill-border-strong: rgba(234, 236, 255, 0.76);
    --nav-pill-text: #f1eeff;
    --nav-pill-aura: rgba(182, 122, 255, 0.18);
    --nav-pill-aura-soft: rgba(124, 184, 255, 0.18);
    --nav-pill-fill-start: rgba(45, 30, 82, 0.88);
    --nav-pill-fill-mid: rgba(18, 16, 37, 0.96);
    --nav-pill-fill-end: rgba(10, 19, 40, 0.92);
}
.nav-moment-link--gold {
    --nav-pill-border: rgba(242, 218, 173, 0.42);
    --nav-pill-border-strong: rgba(255, 239, 206, 0.92);
    --nav-pill-text: #fff0cc;
    --nav-pill-aura: rgba(255, 224, 166, 0.28);
    --nav-pill-aura-soft: rgba(124, 184, 255, 0.18);
    --nav-pill-fill-start: rgba(76, 50, 19, 0.9);
    --nav-pill-fill-mid: rgba(24, 17, 31, 0.96);
    --nav-pill-fill-end: rgba(13, 20, 38, 0.92);
}
.nav-moment-link--moon {
    min-width: 88px;
}
.nav-logo-pro-btn.is-current-page {
    color: #fff7e0;
}
.nav-moment-link--register-cta {
    padding-inline: 19px;
}
.nav-moment-link--lexikon.is-auto-hidden {
    display: none;
}
.nav-ai.is-auto-hidden {
    display: none !important;
}
.nav-ai,
.ai-panel,
.ai-compare-controls,
.ai-compare-chip,
.ai-compare-card,
.natal-compare-card,
.natal-compare-load-btn {
    --model-bg1: rgba(99, 75, 194, 0.28);
    --model-bg2: rgba(18, 23, 56, 0.92);
    --model-bg3: rgba(9, 12, 28, 0.94);
    --model-glow: rgba(126, 107, 255, 0.42);
    --model-glowSoft: rgba(74, 82, 179, 0.28);
    --model-border: rgba(153, 138, 255, 0.34);
    --model-borderStrong: rgba(199, 188, 255, 0.72);
    --model-text: #d8e5ff;
    --model-textStrong: #f6f8ff;
    --model-ink: #07111f;
    --model-chip1: rgba(31, 40, 86, 0.9);
    --model-chip2: rgba(18, 24, 52, 0.92);
    --model-chipBorder: rgba(138, 161, 210, 0.36);
    --model-chipHover: rgba(185, 223, 255, 0.72);
    --model-chipActive1: #8fc6ff;
    --model-chipActive2: #8ce9d0;
    --model-chipActiveInk: #08111d;
    --model-chipActiveGlow: rgba(117, 197, 255, 0.42);
    --model-badgeBg: rgba(100, 122, 255, 0.16);
    --model-badgeBorder: rgba(163, 188, 255, 0.26);
    --model-badgeText: #dce9ff;
    --model-sheen: rgba(255, 255, 255, 0.22);
}

@keyframes modelChipSweep {
    0% { transform: translateX(-135%); opacity: 0; }
    18% { opacity: .14; }
    48% { opacity: .5; }
    100% { transform: translateX(135%); opacity: 0; }
}

@keyframes modelHaloPulse {
    0%, 100% {
        transform: scale(.98);
        opacity: .36;
    }
    50% {
        transform: scale(1.03);
        opacity: .72;
    }
}

.nav-ai {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    color: var(--model-textStrong);
}
.nav-ai::after {
    content: "";
    position: absolute;
    left: -10px;
    right: -10px;
    top: 100%;
    height: 14px;
}
.nav-ai--tagline .nav-ai-trigger {
    width: fit-content;
    min-width: 0;
}
.nav-ai--tagline .nav-ai-dropdown {
    left: 50%;
    right: auto;
    transform: translate(-50%, -12px) scale(.96);
    transform-origin: top center;
}
.nav-ai--brand .nav-ai-trigger {
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 14px;
}
.nav-ai--brand .nav-ai-trigger-model {
    font-size: .8rem;
}
.nav-ai-dropdown--brand {
    min-width: 280px;
}
.nav-ai-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: fit-content;
    min-width: 0;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid var(--model-border);
    background:
        radial-gradient(circle at 14% 0%, var(--model-bg1), transparent 56%),
        linear-gradient(145deg, var(--model-bg2), var(--model-bg3));
    color: var(--model-textStrong);
    text-align: left;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 16px 34px var(--model-glowSoft);
    overflow: hidden;
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, filter .24s ease;
}
.nav-ai-trigger::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 12%, var(--model-sheen) 48%, transparent 82%);
    transform: translateX(-135%);
    pointer-events: none;
}
.nav-ai-trigger-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    position: relative;
    z-index: 1;
}
.nav-ai-trigger-kicker {
    font-size: .62rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--model-text);
    opacity: .8;
    white-space: nowrap;
}
.nav-ai-trigger-model {
    font-size: 1rem;
    font-family: var(--font-d);
    font-weight: 600;
    color: var(--model-textStrong);
    letter-spacing: 0;
    line-height: 1.2;
    white-space: nowrap;
    transition: filter .22s ease, transform .22s ease;
}
.nav-ai-trigger-lock {
    display: inline-flex;
    align-items: center;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--model-badgeText);
    white-space: nowrap;
    position: relative;
    z-index: 1;
}
.nav-ai-trigger--locked {
    border-color: var(--model-borderStrong);
}
.nav-ai-trigger-arrow {
    flex-shrink: 0;
    color: var(--model-text);
    font-size: .98rem;
    transform: translateY(-1px);
    transition: transform .22s ease;
    position: relative;
    z-index: 1;
}
.nav-ai:hover .nav-ai-trigger,
.nav-ai:focus-within .nav-ai-trigger,
.nav-ai.is-open .nav-ai-trigger {
    border-color: var(--model-borderStrong);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 18px 42px var(--model-glowSoft),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    filter: saturate(1.06);
}
.nav-ai:hover .nav-ai-trigger::before,
.nav-ai:focus-within .nav-ai-trigger::before,
.nav-ai.is-open .nav-ai-trigger::before {
    animation: modelChipSweep 1.35s ease;
}
.nav-ai:hover .nav-ai-trigger-arrow,
.nav-ai:focus-within .nav-ai-trigger-arrow,
.nav-ai.is-open .nav-ai-trigger-arrow {
    transform: rotate(180deg) translateY(1px);
}
.nav-ai:hover .nav-ai-trigger-model,
.nav-ai:focus-within .nav-ai-trigger-model,
.nav-ai.is-open .nav-ai-trigger-model {
    background: linear-gradient(112deg, var(--model-textStrong) 10%, #ffffff 42%, var(--model-chipActive1) 72%, var(--model-textStrong) 96%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px var(--model-glow));
    animation: logoGradientFlow 5.5s ease-in-out infinite;
}
.nav-ai--pro .nav-ai-trigger {
    box-shadow:
        inset 0 1px 0 rgba(255, 250, 233, 0.18),
        0 18px 38px var(--model-glowSoft),
        0 0 0 1px rgba(255, 230, 176, 0.06);
}
.nav-ai--pro .nav-ai-trigger-model {
    color: var(--model-textStrong);
    text-shadow: 0 0 16px var(--model-glow);
}
.nav-ai--pro .nav-ai-trigger-arrow {
    color: var(--model-text);
}
.nav-ai--pro:hover .nav-ai-trigger,
.nav-ai--pro:focus-within .nav-ai-trigger,
.nav-ai--pro.is-open .nav-ai-trigger {
    border-color: var(--model-borderStrong);
    box-shadow:
        inset 0 1px 0 rgba(255, 250, 233, 0.22),
        0 22px 44px var(--model-glowSoft),
        0 0 0 1px rgba(255, 221, 140, 0.12);
    filter: saturate(1.14);
}
.nav-ai--pro:hover .nav-ai-trigger-model,
.nav-ai--pro:focus-within .nav-ai-trigger-model,
.nav-ai--pro.is-open .nav-ai-trigger-model {
    background: linear-gradient(110deg, var(--model-textStrong) 10%, #ffffff 36%, var(--model-chipActive1) 62%, var(--model-textStrong) 92%);
    background-size: 230% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px var(--model-glow));
    animation: logoGradientFlow 4.8s ease-in-out infinite;
}
.nav-ai-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    width: fit-content;
    min-width: 100%;
    max-width: min(92vw, 520px);
    border-radius: 18px;
    border: 1px solid var(--model-border);
    background:
        radial-gradient(circle at 18% 0%, var(--model-bg1), transparent 56%),
        linear-gradient(150deg, var(--model-bg2), var(--model-bg3));
    box-shadow:
        0 26px 72px rgba(7, 6, 17, 0.52),
        0 0 24px var(--model-glowSoft),
        inset 0 1px 0 rgba(255,255,255,0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 14px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-12px) scale(.96);
    transform-origin: top right;
    transition: opacity .2s ease, transform .24s ease, max-height .32s ease;
    z-index: 60;
}
.nav-ai--pro .nav-ai-dropdown {
    box-shadow:
        0 26px 72px rgba(16, 10, 4, 0.58),
        0 0 28px var(--model-glowSoft),
        inset 0 1px 0 rgba(255, 229, 162, 0.16);
}
.nav-ai-dropdown::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}
.nav-ai:hover .nav-ai-dropdown,
.nav-ai:focus-within .nav-ai-dropdown,
.nav-ai.is-open .nav-ai-dropdown {
    opacity: 1;
    max-height: 560px;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.nav-ai.nav-ai--tagline:hover .nav-ai-dropdown,
.nav-ai.nav-ai--tagline:focus-within .nav-ai-dropdown,
.nav-ai.nav-ai--tagline.is-open .nav-ai-dropdown {
    transform: translate(-50%, 0) scale(1);
}
.nav-ai-active-card {
    position: relative;
    display: grid;
    gap: 3px;
    margin: 0 0 12px;
    padding: 12px 13px;
    border-radius: 14px;
    border: 1px solid var(--model-border);
    background:
        radial-gradient(circle at 16% 0%, var(--model-bg1), transparent 56%),
        linear-gradient(145deg, rgba(8, 12, 29, 0.44), rgba(8, 10, 24, 0.18));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        0 12px 28px var(--model-glowSoft);
    overflow: hidden;
}
.nav-ai-active-card::after {
    content: "";
    position: absolute;
    inset: -30% auto auto -12%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--model-glow), transparent 72%);
    filter: blur(8px);
    opacity: .5;
    animation: modelHaloPulse 4.6s ease-in-out infinite;
    pointer-events: none;
}
.nav-ai-active-kicker {
    position: relative;
    z-index: 1;
    font-size: .62rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--model-text);
}
.nav-ai-active-title {
    position: relative;
    z-index: 1;
    font-family: var(--font-d);
    font-size: 1rem;
    font-weight: 700;
    color: var(--model-textStrong);
}
.nav-ai-active-meta {
    position: relative;
    z-index: 1;
    color: rgba(225, 234, 255, 0.76);
    font-size: .78rem;
}
.nav-ai-dropdown-kicker {
    margin: 0 0 3px;
    color: var(--model-text);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-weight: 700;
}
.nav-ai-dropdown-active {
    margin: 0;
    font-size: 1.08rem;
    font-family: var(--font-d);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .01em;
    color: #f9f1ff;
}
.nav-ai:hover .nav-ai-dropdown-active,
.nav-ai:focus-within .nav-ai-dropdown-active,
.nav-ai.is-open .nav-ai-dropdown-active {
    background: linear-gradient(112deg, #f9f1ff 12%, #dbc8ff 36%, #ffffff 52%, #c7a8ff 70%, #f9f1ff 90%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 14px rgba(196, 144, 255, 0.4)) drop-shadow(0 0 30px rgba(147, 102, 242, 0.24));
    animation: logoGradientFlow 6s ease-in-out infinite;
}
.nav-ai-dropdown-hint {
    margin: 6px 0 12px;
    color: rgba(217, 198, 244, 0.82);
    font-size: .8rem;
}
.nav-ai-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nav-ai-item {
    width: 100%;
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3px 10px;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--model-border);
    border-radius: 12px;
    padding: 10px 11px;
    background:
        radial-gradient(circle at 12% 0%, var(--model-bg1), transparent 58%),
        linear-gradient(145deg, rgba(14, 10, 26, 0.7), rgba(9, 10, 20, 0.76));
    opacity: 0;
    transform: translateY(8px) scale(.985);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: opacity .25s ease, transform .25s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
    transition-delay: calc(var(--stagger, 0) * 55ms);
}
.nav-ai:hover .nav-ai-item,
.nav-ai:focus-within .nav-ai-item,
.nav-ai.is-open .nav-ai-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.nav-ai-item:hover {
    border-color: var(--model-borderStrong);
    box-shadow:
        0 12px 28px var(--model-glowSoft),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.nav-ai-item--readonly,
.nav-ai-item--empty {
    cursor: default;
}
.nav-ai.is-switching .nav-ai-item[data-ai-model-option] {
    pointer-events: none;
    opacity: 0.68;
}
.nav-ai-switch-status {
    margin: 7px 2px 0;
    min-height: 1.1em;
    font-size: .72rem;
    color: #baf2dc;
}
.nav-ai-switch-status.is-error {
    color: #ffb0c6;
}
.nav-ai-item-label {
    display: inline-block;
    color: var(--model-textStrong);
    font-size: .93rem;
    font-weight: 700;
    line-height: 1.2;
}
.nav-ai-item-pill {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid var(--model-badgeBorder);
    background: var(--model-badgeBg);
    color: var(--model-badgeText);
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    white-space: nowrap;
}
.nav-ai-item-runtime {
    grid-column: 1 / -1;
    color: rgba(219, 227, 255, 0.72);
    font-size: .76rem;
    letter-spacing: .02em;
}
.nav-ai-item-live {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 9px;
    border-radius: 999px;
    border: 1px solid rgba(167, 255, 224, 0.38);
    background: rgba(25, 118, 88, 0.22);
    color: #a6ffe0;
    font-size: .66rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 700;
    white-space: nowrap;
}
.nav-ai-item.is-active {
    border-color: var(--model-borderStrong);
    background:
        radial-gradient(circle at 10% 0%, var(--model-bg1), transparent 58%),
        linear-gradient(145deg, rgba(10, 13, 32, 0.88), rgba(7, 9, 19, 0.9));
    box-shadow:
        0 16px 34px var(--model-glowSoft),
        inset 0 1px 0 rgba(255,255,255,0.14);
}
.nav-ai-item.is-active .nav-ai-item-label {
    background: linear-gradient(112deg, var(--model-textStrong) 10%, #ffffff 40%, var(--model-chipActive1) 72%, var(--model-textStrong) 96%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: logoGradientFlow 6.2s ease-in-out infinite;
}
.nav-links { display: flex; gap: 16px; align-items: center; }
.nav-links a { text-decoration: none; }
.nav-links a:not(.nav-moment-link) { color: var(--tx-2); font-size: 0.98rem; font-weight: 600; transition: color .15s; }
.nav-links a:not(.nav-moment-link):hover { color: var(--tx-1); }
.nav-user { color: var(--tx-3); font-size: .82rem; }
.nav-btn {
    padding: 6px 14px; border-radius: 100px; font-size: .82rem; font-weight: 600;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff !important; text-decoration: none;
}
.nav-btn:hover { filter: brightness(1.15); }
.nav-btn-outline {
    padding: 5px 13px; border-radius: 100px; font-size: .82rem; font-weight: 500;
    border: 1px solid var(--border); color: var(--tx-2) !important;
}
.nav-btn-outline:hover { border-color: var(--accent); color: var(--tx-1) !important; }

/* ═══ HERO (index) ═══ */
.hero {
    position: relative; padding: 58px 20px 56px; text-align: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.stars,.stars2 { display: none; } /* Stars now rendered by canvas */
.hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
    background: linear-gradient(transparent, rgba(7,7,13,0.8)); pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.hero-icon { display: block; font-size: 1.8rem; margin-bottom: 12px; letter-spacing: 6px; opacity: .7; }
.hero-title {
    font-family: var(--font-display); font-size: var(--type-hero-auth); font-weight: 600;
    line-height: 1.06; letter-spacing: -0.028em; margin-bottom: 14px;
    color: #f2ebff;
    text-shadow: 0 8px 26px rgba(121, 84, 212, 0.18);
}
.hero-title--compact { font-size: var(--type-hero-compact); }
.outage-title {
    margin-bottom: 10px;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.08;
    color: #f5ecff;
}
.hero-landing { padding: 34px 20px 54px; }
.hero-pro {
    max-width: var(--content-shell-max);
    margin: 0 auto;
    padding: 18px var(--page-shell-gutter) 68px;
}
.hero-content--pro {
    text-align: center;
    max-width: none;
}
.pro-title {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-size: var(--type-display-md);
    line-height: 1.1;
    color: #f4eeff;
    text-shadow: 0 6px 22px rgba(154, 112, 244, 0.2);
}
.hero-shell {
    max-width: 620px;
    margin: 0 auto;
    padding: 26px 24px 24px;
    border-radius: 24px;
    background:
        radial-gradient(ellipse 120% 80% at 50% -15%, rgba(171, 121, 255, 0.12), transparent 58%),
        linear-gradient(150deg, rgba(28, 20, 44, 0.72), rgba(14, 11, 26, 0.68));
    border: 1px solid rgba(201, 162, 255, 0.2);
    box-shadow: 0 24px 80px rgba(8, 6, 18, 0.5), inset 0 1px 0 rgba(255,255,255,0.12);
    position: relative;
    overflow: hidden;
}
.hero-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.06) 45%, transparent 72%);
    transform: translateX(-130%);
    animation: heroShellSheen 18s ease-in-out infinite;
    pointer-events: none;
}
.hero-pro .hero-shell {
    max-width: none;
    padding: 30px 28px 28px;
}
.hero-pro .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 14px;
    margin-top: 24px;
}
.hero-pro .hero-actions .btn-hero {
    width: 100%;
    max-width: none;
    min-height: 88px;
    justify-content: flex-start;
    text-align: left;
}
.hero-pro .hero-actions .hero-pro-cta {
    grid-column: 1 / -1;
    max-width: 320px;
    min-height: auto;
    justify-content: center;
    justify-self: center;
    text-align: center;
    margin-top: 2px;
}
@keyframes heroShellSheen {
    0% { transform: translateX(-130%); opacity: 0; }
    28% { opacity: 0.36; }
    44% { transform: translateX(130%); opacity: 0; }
    100% { transform: translateX(130%); opacity: 0; }
}
.hero-subtitle {
    font-size: clamp(1.14rem, 2.8vw, 1.45rem);
    color: rgba(241, 235, 255, 0.94);
    line-height: 1.65;
    max-width: 560px;
    margin: 0 auto;
    text-shadow: 0 2px 18px rgba(153, 106, 246, 0.18);
}
.hero-subtitle-ai {
    display: inline-block;
    margin-left: .22em;
    font-family: var(--font-d);
    font-size: 1.22em;
    font-weight: 700;
    letter-spacing: .01em;
}
.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}
.hero-actions .btn-hero {
    width: 100%;
    max-width: 520px;
    text-align: center;
}
.btn-hero { padding: 14px 32px; font-size: 1rem; border-radius: var(--r-md); text-decoration: none; font-weight: 600; font-family: var(--font-d); transition: transform .2s, box-shadow .2s; }
.btn-hero:hover { transform: translateY(-2px); }
.btn-outline {
    background: rgba(255,255,255,0.02); color: var(--tx-1); border: 1px solid rgba(200, 155, 255, 0.22);
    display: flex; align-items: center; justify-content: center;
}
.btn-outline:hover { border-color: rgba(203, 155, 255, 0.58); box-shadow: 0 6px 22px rgba(139,92,246,.18); }
.btn-hero-pro {
    border-radius: 999px;
    border: 1px solid rgba(213, 174, 255, 0.35);
    box-shadow: 0 12px 34px rgba(106, 88, 233, 0.32), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-hero-pro:hover {
    filter: brightness(1.1);
    box-shadow: 0 16px 42px rgba(112, 92, 240, 0.4), inset 0 1px 0 rgba(255,255,255,0.24);
}

/* Features */
.landing-highlights {
    max-width: var(--content-shell-max);
    margin: 0 auto;
    padding: 10px var(--page-shell-gutter) 94px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.landing-moment {
    max-width: 1180px;
    margin: 14px auto 6px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 14px;
    align-items: stretch;
}
.landing-moment .moment-card--landing {
    padding-bottom: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
}
.landing-moment .moment-card--landing .moment-card-top {
    justify-content: center;
    text-align: center;
    padding: 10px 0 0;
}
.landing-moment .moment-card--landing .moment-card-top h2 {
    width: 100%;
}
.moment-wheel-wrap--landing {
    padding-top: 0;
}
.moment-card--landing-moon {
    padding: 14px 16px 16px;
}
.landing-moon-phase {
    margin: 6px auto 2px;
}
.landing-moon-meta {
    margin: 8px 0 0;
    text-align: center;
    font-size: .84rem;
    color: rgba(233, 240, 255, 0.9);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.62);
}
.landing-moment-meta {
    margin: 0 22px;
    color: rgba(212, 195, 238, 0.76);
    font-size: .84rem;
    letter-spacing: .02em;
}
.moment-mini-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(203, 165, 255, 0.34);
    background: linear-gradient(135deg, rgba(162, 102, 241, 0.14), rgba(118, 70, 209, 0.16));
    color: #f3ebff;
    text-decoration: none;
    font-size: .76rem;
    font-weight: 700;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.moment-mini-link:hover {
    transform: translateY(-1px);
    border-color: rgba(214, 178, 255, 0.56);
    box-shadow: 0 10px 26px rgba(132, 78, 214, 0.22);
}
@media (max-width: 980px) {
    .landing-hero-grid {
        grid-template-columns: 1fr;
        max-width: 760px;
    }
    .landing-moment {
        grid-template-columns: 1fr;
    }
    .landing-model-panel-grid {
        grid-template-columns: 1fr;
    }
    .landing-model-lab--hero .landing-model-lab-head {
        margin-bottom: 10px;
    }
}
.timeline-showcase-card {
    display: grid;
    grid-template-columns: minmax(260px, .95fr) minmax(340px, 1.45fr);
    gap: 18px;
    align-items: stretch;
    border: 1px solid rgba(194, 162, 255, 0.26);
    border-radius: 20px;
    padding: 20px;
    background:
        radial-gradient(ellipse 90% 75% at 0% 0%, rgba(165, 111, 246, 0.14), transparent 58%),
        linear-gradient(145deg, rgba(23, 15, 39, 0.84), rgba(11, 9, 21, 0.76));
    box-shadow: 0 18px 56px rgba(10, 7, 22, 0.42), inset 0 1px 0 rgba(255,255,255,0.1);
    overflow: hidden;
}
.timeline-showcase-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 2px;
}
.timeline-showcase-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.timeline-showcase-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: radial-gradient(circle at 30% 30%, rgba(121, 178, 255, 0.34), rgba(74, 103, 238, 0.2));
    border: 1px solid rgba(157, 181, 255, 0.36);
    box-shadow: 0 0 20px rgba(97, 130, 239, 0.24);
}
.timeline-showcase-kicker {
    margin: 0;
    color: #f0e6ff;
    font-family: var(--font-d);
    font-size: .94rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.timeline-showcase-copy h3 {
    margin: 0 0 12px;
    font-family: var(--font-d);
    font-size: clamp(1.25rem, 2.2vw, 1.52rem);
    color: #f3ebff;
    letter-spacing: .01em;
    line-height: 1.25;
    text-shadow: 0 2px 20px rgba(155, 116, 239, 0.24);
}
.timeline-showcase-copy p {
    margin: 0;
    color: rgba(226, 211, 249, 0.9);
    font-size: clamp(.97rem, 1.4vw, 1.07rem);
    line-height: 1.64;
}
.timeline-showcase-note {
    margin-top: 10px !important;
    color: rgba(197, 173, 238, 0.88) !important;
    font-size: .92rem !important;
}
.timeline-showcase-visual {
    position: relative;
    margin: 0;
    border-radius: 16px;
    border: 1px solid rgba(183, 146, 255, 0.26);
    overflow: hidden;
    min-height: 220px;
    background: rgba(9, 8, 18, 0.72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.timeline-showcase-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}
.timeline-showcase-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 11, 28, 0.12), rgba(9, 7, 20, 0.22));
    pointer-events: none;
}
.features-section { max-width: 1040px; margin: 0 auto; padding: 0 20px 90px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.security-section { max-width: 1040px; margin: 0 auto; padding: 2px 20px 32px; }
.security-card {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 16px;
    align-items: start;
    background:
        radial-gradient(circle at 10% 0%, rgba(182, 125, 255, 0.14), transparent 36%),
        linear-gradient(145deg, rgba(24, 16, 40, 0.86), rgba(12, 10, 22, 0.76));
    border: 1px solid rgba(186, 154, 255, 0.24);
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 18px 56px rgba(10, 7, 20, 0.42), inset 0 1px 0 rgba(255,255,255,0.11);
}
.security-card--highlight {
    width: 100%;
    border-color: rgba(194, 166, 255, 0.31);
    box-shadow:
        0 20px 64px rgba(10, 7, 20, 0.5),
        inset 0 1px 0 rgba(255,255,255,0.14),
        0 0 0 1px rgba(136, 100, 219, 0.08);
}
.security-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: radial-gradient(circle at 30% 30%, rgba(170, 130, 255, 0.32), rgba(104, 76, 255, 0.2));
    border: 1px solid rgba(178, 152, 255, 0.36);
    box-shadow: 0 0 24px rgba(140, 102, 240, 0.25);
}
.security-content h3 {
    margin-bottom: 8px;
    font-size: clamp(1.3rem, 2.4vw, 1.55rem);
    color: #f3ebff;
    font-family: var(--font-d);
    letter-spacing: .01em;
    text-shadow: 0 2px 20px rgba(160, 122, 243, 0.32);
}
.security-content p {
    color: rgba(228, 215, 250, 0.9);
    font-size: clamp(1.04rem, 1.5vw, 1.16rem);
    margin-bottom: 10px;
    line-height: 1.64;
    text-shadow: 0 2px 14px rgba(116, 88, 176, 0.26);
}
.security-content ul { padding-left: 18px; }
.security-content li {
    color: rgba(214, 198, 242, 0.86);
    font-size: clamp(1rem, 1.3vw, 1.09rem);
    margin: 4px 0;
    line-height: 1.52;
}
.features-grid--landing {
    gap: 20px;
}
.feature-card {
    background:
        radial-gradient(circle at 50% -24%, rgba(178, 123, 255, 0.2), transparent 54%),
        linear-gradient(155deg, rgba(24, 16, 40, 0.78), rgba(13, 10, 24, 0.7));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(201, 162, 255, 0.2);
    border-radius: 18px;
    padding: 38px 26px;
    text-align: center;
    transition: border-color .35s, transform .35s, background .35s, box-shadow .35s, filter .35s;
    position: relative;
    overflow: hidden;
    min-height: 248px;
}
.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% -18%, rgba(173, 121, 255, 0.14), transparent 55%);
    opacity: 0.75;
    pointer-events: none;
}
.feature-card:hover {
    border-color: rgba(212, 172, 255, 0.44);
    transform: translateY(-8px);
    background:
        radial-gradient(circle at 50% -30%, rgba(190, 136, 255, 0.25), transparent 56%),
        linear-gradient(155deg, rgba(32, 19, 52, 0.82), rgba(15, 11, 28, 0.76));
    box-shadow: 0 18px 46px rgba(66, 24, 112, 0.26);
    filter: saturate(1.04);
}
.feature-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    opacity: .9;
    text-shadow: 0 0 18px rgba(174, 132, 255, 0.3);
}
.feature-card h3 {
    font-family: var(--font-d);
    font-size: clamp(1.24rem, 2.2vw, 1.42rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: rgba(247, 240, 255, 0.98);
    text-shadow: 0 0 18px rgba(177, 136, 252, 0.3);
}
.feature-card p {
    font-size: clamp(1.04rem, 1.4vw, 1.15rem);
    font-weight: 600;
    color: rgba(233, 220, 252, 0.96);
    line-height: 1.62;
    text-shadow: 0 2px 20px rgba(112, 82, 175, 0.32);
}
.feature-lead {
    display: block;
    margin-bottom: 4px;
    color: rgba(248, 241, 255, 0.99);
    font-size: clamp(1.12rem, 1.6vw, 1.2rem);
    font-weight: 700;
    text-shadow: 0 0 20px rgba(189, 145, 255, 0.4);
}
.landing-model-lab {
    max-width: var(--content-shell-max);
    margin: 0 auto;
    padding: 8px var(--page-shell-gutter) 22px;
}
.landing-model-lab-head {
    max-width: 860px;
    margin: 0 0 14px;
}
.landing-model-lab-kicker {
    margin: 0 0 6px;
    font-family: var(--font-d);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #97f3ff;
}
.landing-model-lab-head h2 {
    margin: 0 0 8px;
    font-family: var(--font-d);
    font-size: clamp(1.35rem, 2.5vw, 1.9rem);
    color: #f4f8ff;
    text-shadow: 0 10px 28px rgba(87, 181, 255, 0.18);
}
.landing-model-lab-head p {
    margin: 0;
    color: rgba(211, 226, 255, 0.82);
    font-size: 1rem;
    line-height: 1.62;
}
.landing-model-switch {
    border: 1px solid rgba(112, 189, 255, 0.24);
    border-radius: 24px;
    padding: 16px;
    background:
        radial-gradient(circle at 8% 0%, rgba(100, 168, 255, 0.14), transparent 34%),
        linear-gradient(145deg, rgba(14, 18, 37, 0.88), rgba(8, 11, 24, 0.84));
    box-shadow: 0 18px 56px rgba(3, 9, 28, 0.42), inset 0 1px 0 rgba(255,255,255,0.08);
}
.landing-model-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}
.landing-model-tab {
    border: 1px solid rgba(113, 183, 255, 0.24);
    border-radius: 999px;
    padding: 10px 16px;
    background: rgba(11, 17, 34, 0.74);
    color: rgba(223, 234, 255, 0.78);
    font-family: var(--font-d);
    font-size: .96rem;
    font-weight: 700;
    letter-spacing: .01em;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, color .2s ease;
}
.landing-model-tab:hover,
.landing-model-tab:focus-visible {
    border-color: rgba(140, 215, 255, 0.54);
    color: #effaff;
    box-shadow: 0 0 0 1px rgba(86, 177, 255, 0.16), 0 14px 32px rgba(17, 79, 137, 0.18);
    transform: translateY(-1px);
}
.landing-model-tab.is-active {
    border-color: rgba(145, 230, 255, 0.64);
    color: #f8fdff;
    background: linear-gradient(135deg, rgba(22, 56, 88, 0.86), rgba(14, 29, 54, 0.88));
    box-shadow: 0 12px 32px rgba(8, 80, 142, 0.24), inset 0 1px 0 rgba(255,255,255,0.12);
}
.landing-model-panel {
    border-radius: 20px;
    padding: 18px;
    background:
        linear-gradient(135deg, rgba(18, 36, 62, 0.82), rgba(11, 16, 33, 0.84)),
        radial-gradient(circle at 50% 0%, rgba(134, 226, 255, 0.12), transparent 48%);
    border: 1px solid rgba(111, 190, 255, 0.22);
}
.landing-model-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.landing-model-panel-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(132, 214, 255, 0.34);
    background: rgba(11, 28, 48, 0.88);
    color: #dff7ff;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.landing-model-panel-meta {
    color: rgba(157, 230, 255, 0.78);
    font-size: .8rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.landing-model-panel h3 {
    margin: 0 0 8px;
    font-family: var(--font-d);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: #f3f9ff;
}
.landing-model-panel-lead,
.landing-model-panel-block p,
.landing-model-panel-block li {
    color: rgba(225, 236, 255, 0.88);
    line-height: 1.64;
    font-size: 1rem;
}
.landing-model-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.landing-model-panel-block {
    min-height: 100%;
    padding: 14px;
    border-radius: 16px;
    background: rgba(8, 14, 29, 0.48);
    border: 1px solid rgba(123, 198, 255, 0.16);
}
.landing-model-panel-block--wide {
    grid-column: 1 / -1;
}
.landing-model-panel-block h4 {
    margin: 0 0 8px;
    color: #f1f9ff;
    font-family: var(--font-d);
    font-size: .95rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.landing-model-panel-block ul {
    margin: 0;
    padding-left: 18px;
}
.landing-hero-stage {
    position: relative;
    max-width: var(--content-shell-max);
    margin: 0 auto;
    padding: 30px var(--page-shell-gutter) 42px;
}
.landing-hero-aurora {
    position: absolute;
    inset: 0 var(--page-shell-gutter) auto;
    height: 560px;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 12%, rgba(136, 195, 255, 0.18), transparent 34%),
        radial-gradient(circle at 12% 34%, rgba(128, 82, 228, 0.18), transparent 38%),
        radial-gradient(circle at 86% 28%, rgba(115, 88, 216, 0.18), transparent 36%);
    filter: blur(24px);
    opacity: 0.9;
}
.landing-zodiac-shell {
    position: relative;
    z-index: 1;
    max-width: 840px;
    margin: 0 auto 28px;
    text-align: center;
}
.landing-zodiac-kicker {
    margin: 0 0 12px;
    font-family: var(--font-d);
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(155, 232, 255, 0.92);
    text-shadow: 0 0 18px rgba(94, 184, 255, 0.22);
}
.landing-zodiac-shell .moment-card--landing {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
}
.landing-zodiac-shell .moment-wheel-wrap--landing {
    padding: 0;
    display: flex;
    justify-content: center;
}
.landing-zodiac-shell .moment-wheel-svg {
    width: min(100%, 540px);
    max-width: 540px;
    filter:
        drop-shadow(0 0 22px rgba(140, 105, 240, 0.22))
        drop-shadow(0 0 42px rgba(78, 201, 255, 0.12));
}
.landing-zodiac-caption {
    max-width: 860px;
    margin: 14px auto 0;
    font-family: var(--font-d);
    font-size: clamp(1.4rem, 2.2vw, 2.1rem);
    font-weight: 700;
    line-height: 1.34;
    color: rgba(247, 241, 255, 0.97);
    text-shadow: 0 4px 24px rgba(12, 10, 28, 0.62), 0 0 24px rgba(130, 108, 214, 0.2);
}
.landing-zodiac-caption a {
    color: #ffe6aa;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}
.landing-hero-grid {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}
.landing-hero-stage .hero {
    padding: 0;
    text-align: left;
    overflow: visible;
}
.landing-hero-stage .hero::after,
.landing-hero-stage .hero-bg {
    display: none;
}
.hero-content--landing {
    max-width: none;
}
.hero-shell--landing {
    max-width: none;
    height: 100%;
    padding: 30px 28px 28px;
}
.landing-hero-kicker {
    margin: 0 0 10px;
    font-family: var(--font-d);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 218, 146, 0.92);
    text-shadow: 0 0 16px rgba(255, 199, 91, 0.2);
}
.landing-hero-title {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: var(--type-display-lg);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #f6f0ff;
    text-shadow: 0 10px 34px rgba(120, 86, 210, 0.22);
}
.hero-shell--landing .hero-subtitle {
    max-width: none;
    margin: 0;
    font-size: clamp(1.08rem, 1.65vw, 1.34rem);
}
.landing-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.landing-hero-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(190, 163, 255, 0.26);
    background: rgba(11, 9, 22, 0.36);
    color: rgba(239, 233, 255, 0.92);
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.hero-actions--landing {
    margin-top: 24px;
    align-items: stretch;
    gap: 10px;
}
.hero-actions--landing .btn-hero {
    max-width: none;
}
.btn-hero-upgrade {
    border-color: rgba(255, 218, 129, 0.66);
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 224, 144, 0.14), transparent 56%),
        linear-gradient(145deg, rgba(11, 9, 18, 0.96), rgba(4, 4, 9, 0.96));
    color: #ffde75;
    box-shadow:
        0 12px 28px rgba(8, 6, 4, 0.42),
        0 0 18px rgba(252, 192, 85, 0.14),
        inset 0 1px 0 rgba(255, 238, 196, 0.12);
}
.btn-hero-upgrade:hover,
.btn-hero-upgrade:focus-visible {
    border-color: rgba(255, 231, 176, 0.92);
    box-shadow:
        0 16px 36px rgba(8, 6, 4, 0.48),
        0 0 24px rgba(255, 208, 116, 0.26),
        inset 0 1px 0 rgba(255, 244, 214, 0.22);
}
.btn-hero-upgrade-accent {
    margin-left: 6px;
    font-style: italic;
    font-weight: 800;
}

.location-search-card {
    position: relative;
    z-index: 2;
    width: min(100%, 920px);
    margin: 22px auto 0;
    padding: 18px;
    border-radius: 26px;
    border: 1px solid rgba(173, 218, 255, 0.18);
    background:
        radial-gradient(circle at 10% 0%, rgba(138, 204, 255, 0.14), transparent 34%),
        radial-gradient(circle at 88% 10%, rgba(255, 217, 147, 0.12), transparent 30%),
        linear-gradient(145deg, rgba(11, 13, 27, 0.88), rgba(25, 19, 40, 0.84));
    box-shadow:
        0 24px 60px rgba(6, 9, 22, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.location-search-card--moment {
    scroll-margin-top: 108px;
    margin-top: 26px;
}
.location-search-card[data-show-submit="0"] .location-search-input-wrap {
    grid-template-columns: 34px minmax(0, 1fr) auto;
}
.location-search-card::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 25px;
    background:
        linear-gradient(115deg, rgba(255,255,255,0.05), transparent 32%, rgba(255,255,255,0.04) 62%, transparent 100%);
    pointer-events: none;
}
.location-search-copy {
    position: relative;
    margin-bottom: 12px;
}
.location-search-kicker {
    margin: 0 0 6px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(159, 228, 255, 0.92);
}
.location-search-title {
    margin: 0;
    font-family: var(--font-d);
    font-size: clamp(1.18rem, 1.8vw, 1.56rem);
    color: rgba(247, 242, 255, 0.98);
}
.location-search-subtitle {
    margin: 8px 0 0;
    font-size: .96rem;
    line-height: 1.62;
    color: rgba(213, 223, 245, 0.8);
}
.location-search-bar {
    position: relative;
}
.location-search-input-wrap {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    min-height: 68px;
    padding: 10px 12px;
    border-radius: 22px;
    border: 1px solid rgba(173, 218, 255, 0.18);
    background:
        linear-gradient(145deg, rgba(7, 11, 24, 0.92), rgba(18, 17, 35, 0.9));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 16px 34px rgba(6, 9, 22, 0.26);
}
.location-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: rgba(157, 226, 255, 0.95);
    background: radial-gradient(circle at 30% 30%, rgba(118, 196, 255, 0.2), rgba(20, 27, 52, 0.15));
    font-size: 1rem;
}
.location-search-input {
    width: 100%;
    border: none;
    background: transparent;
    color: #f5efff;
    font-family: var(--font-d);
    font-size: 1.08rem;
    outline: none;
}
.location-search-input.form-input {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}
.location-search-input::placeholder {
    color: rgba(194, 206, 230, 0.48);
}
.location-search-gps,
.location-search-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 15px;
    border-radius: 999px;
    border: 1px solid rgba(255, 223, 152, 0.4);
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 226, 156, 0.16), transparent 58%),
        linear-gradient(145deg, rgba(55, 38, 14, 0.78), rgba(19, 15, 9, 0.84));
    color: rgba(255, 240, 206, 0.97);
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .18s ease, border-color .18s ease;
}
.location-search-gps:hover,
.location-search-submit:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 226, 156, 0.62);
    box-shadow: 0 10px 22px rgba(20, 14, 8, 0.24);
}
.location-search-gps {
    min-width: 56px;
}
.location-search-selected {
    margin: 10px 2px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: rgba(241, 239, 250, 0.94);
    font-size: .92rem;
}
.location-search-helper {
    margin: 10px 2px 0;
    color: rgba(213, 223, 245, 0.8);
    font-size: .96rem;
    line-height: 1.62;
}
.location-search-selected-label {
    font-weight: 700;
}
.location-search-selected-note {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(95, 143, 212, 0.16);
    color: rgba(186, 222, 255, 0.96);
    font-size: .78rem;
    letter-spacing: .02em;
}
.location-search-status {
    min-height: 1.35rem;
    margin: 8px 2px 0;
    color: rgba(199, 211, 235, 0.72);
    font-size: .84rem;
}
.location-search-status[data-state="error"] {
    color: rgba(255, 172, 172, 0.94);
}
.location-search-status[data-state="loading"] {
    color: rgba(157, 228, 255, 0.92);
}
.location-search-status a {
    color: #ffe6aa;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}
.location-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 8px;
    border-radius: 22px;
    border: 1px solid rgba(173, 218, 255, 0.18);
    background:
        linear-gradient(145deg, rgba(8, 12, 24, 0.95), rgba(24, 20, 41, 0.94));
    box-shadow: 0 24px 54px rgba(6, 9, 22, 0.46);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 30;
}
.location-search-result {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border: none;
    border-radius: 14px;
    background: transparent;
    color: rgba(243, 239, 250, 0.94);
    text-align: left;
    cursor: pointer;
    transition: background .16s ease, transform .16s ease;
}
.location-search-result:hover {
    background: rgba(101, 149, 217, 0.14);
    transform: translateX(2px);
}
.location-search-result.is-active {
    background: rgba(101, 149, 217, 0.2);
    transform: translateX(2px);
    outline: 1px solid rgba(173, 218, 255, 0.28);
}
.location-search-result-main {
    font-weight: 700;
}
.location-search-result-meta {
    color: rgba(188, 204, 230, 0.72);
    font-size: .78rem;
    white-space: nowrap;
}
.location-search-card--landing {
    margin-top: 18px;
}
.location-search-card--form {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    border-radius: 18px;
}
.location-search-card--form .location-search-copy {
    margin-bottom: 8px;
}
.location-search-card--form .location-search-title {
    font-size: 1rem;
}
.location-search-card--form .location-search-subtitle {
    font-size: .86rem;
}
.location-search-card--form .location-search-input-wrap {
    min-height: 58px;
    border-radius: 18px;
}
.landing-model-lab--hero {
    max-width: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.landing-model-lab--hero .landing-model-lab-head {
    max-width: none;
    margin: 0 0 12px;
}
.landing-model-lab--hero .landing-model-switch {
    flex: 1 1 auto;
}
.landing-model-lock {
    margin: 12px 4px 0;
    color: rgba(221, 233, 255, 0.78);
    font-size: .92rem;
    line-height: 1.55;
}
.landing-knowledge-browser {
    max-width: var(--content-shell-max);
    margin: 0 auto;
    padding: 8px var(--page-shell-gutter) 34px;
}
.moment-card--landing-knowledge {
    max-width: none;
    margin: 0;
    padding: 24px;
}
.landing-knowledge-head {
    align-items: flex-start;
    gap: 18px;
}
.landing-knowledge-head-main {
    display: grid;
    gap: 6px;
}
.landing-knowledge-kicker {
    margin: 0;
    font-family: var(--font-d);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(155, 232, 255, 0.92);
}
.landing-knowledge-head h2 {
    margin: 0;
    font-family: var(--font-d);
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.16;
    color: #f4ecff;
    text-shadow: 0 8px 28px rgba(121, 86, 210, 0.16);
}
.landing-knowledge-tools {
    align-items: flex-end;
}
.moment-card--landing-knowledge .moment-moon-memory-meta {
    margin-top: 14px;
}
.landing-knowledge-archive {
    display: grid;
    gap: 6px;
    margin-top: 16px;
}
.landing-knowledge-archive label {
    color: rgba(236, 246, 255, 0.9);
    font-family: var(--font-d);
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.landing-knowledge-timeline-wrap {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    transition: max-height .24s ease, opacity .18s ease, transform .24s ease, margin .24s ease;
}
.landing-knowledge-timeline-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.landing-knowledge-timeline-head h3 {
    margin: 0;
    color: rgba(244, 235, 255, 0.96);
    font-family: var(--font-d);
    font-size: .98rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.moment-card--landing-knowledge.is-versions-collapsed .landing-knowledge-timeline-wrap {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    margin-top: 0;
}
.landing-knowledge-body {
    margin-top: 20px;
    padding-top: 18px;
    /* border-top: 1px solid rgba(182, 152, 240, 0.16); */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.08rem, 1.45vw, 1.2rem);
    font-weight: 900;
}
.landing-knowledge-copy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    max-width: var(--landing-copy-max);
    margin: 0 auto;
    font-size: clamp(1.08rem, 1.45vw, 1.2rem);
    font-weight: 900;
}
.landing-knowledge-copy > .moment-list-block--discovery,
.landing-knowledge-copy > .landing-knowledge-summary,
.landing-knowledge-copy > .moment-moon-memory-emotion {
    grid-column: 1 / -1;
}
.landing-knowledge-summary {
    margin-bottom: 0;
    font-size: clamp(1.08rem, 1.45vw, 1.2rem);
    font-weight: 900;
}
.moment-moon-memory-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.moment-moon-memory-tab {
    display: inline-grid;
    gap: 3px;
    min-width: 96px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(191, 160, 255, 0.22);
    background:
        radial-gradient(circle at 12% 14%, rgba(143, 104, 235, 0.18), transparent 56%),
        linear-gradient(145deg, rgba(22, 17, 37, 0.9), rgba(11, 10, 22, 0.9));
    color: rgba(246, 236, 255, 0.94);
    font-family: var(--font-d);
    text-align: left;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 12px 24px rgba(8, 6, 20, 0.22);
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, background .24s ease;
}
.moment-moon-memory-tab:hover,
.moment-moon-memory-tab:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(216, 187, 255, 0.4);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 16px 28px rgba(8, 6, 20, 0.26);
}
.moment-moon-memory-tab.is-active {
    border-color: rgba(255, 221, 154, 0.46);
    background:
        radial-gradient(circle at 12% 14%, rgba(255, 222, 151, 0.2), transparent 56%),
        linear-gradient(145deg, rgba(56, 40, 20, 0.92), rgba(20, 14, 8, 0.92));
    color: #fff2cf;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 16px 30px rgba(36, 24, 8, 0.28),
        0 0 22px rgba(246, 191, 86, 0.12);
}
.moment-moon-memory-tab-version {
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: .03em;
}
.moment-moon-memory-tab-phase {
    font-size: .82rem;
    color: rgba(228, 218, 244, 0.84);
}
.moment-card--landing-knowledge .moment-list-block {
    margin-top: 100px;
}
.moment-card--landing-knowledge .moment-list-block ul {
    gap: 8px;
}

.moon-page-stage {
    --moon-font-scale: 1.33;
    --moon-body-size: clamp(1.42rem, 1.24rem + 0.34vw, 1.6rem);
    --moon-label-size: 1rem;
    --moon-readable-heading: #fff;
    --moon-readable-copy: #fff;
    --moon-readable-copy-soft: #fff;
    --moon-readable-label: #fff;
    --moon-grad-gold: rgba(255, 223, 154, 0.16);
    --moon-grad-gold-strong: rgba(255, 223, 154, 0.22);
    --moon-grad-blue: rgba(143, 186, 255, 0.14);
    --moon-grad-blue-soft: rgba(143, 186, 255, 0.08);
    --moon-grad-pearl: rgba(255, 255, 255, 0.08);
    --moon-surface-top: rgba(18, 20, 30, 0.96);
    --moon-surface-bottom: rgba(9, 11, 18, 0.94);
    --moon-readable-shadow-hero:
        0 2px 6px rgba(0, 0, 0, 0.9),
        0 18px 42px rgba(0, 0, 0, 0.44);
    --moon-readable-shadow-copy:
        0 1px 2px rgba(0, 0, 0, 0.95),
        0 10px 26px rgba(0, 0, 0, 0.34);
    --moon-readable-shadow-label:
        0 1px 1px rgba(0, 0, 0, 0.9),
        0 6px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: var(--content-shell-max);
    margin: 0 auto;
    padding: 34px var(--page-shell-gutter) 18px;
}
.moon-page-aurora {
    position: absolute;
    inset: 0 var(--page-shell-gutter) auto;
    height: 520px;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 8%, rgba(255, 223, 154, 0.16), transparent 34%),
        radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.08), transparent 36%),
        radial-gradient(circle at 82% 22%, rgba(143, 186, 255, 0.12), transparent 34%);
    filter: blur(28px);
    opacity: 0.92;
}
.moon-page-head {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto 22px;
    text-align: center;
}
.moon-page-head .moment-hero-kicker {
    margin-left: auto;
    margin-right: auto;
    color: var(--moon-readable-heading);
    font-size: calc(var(--moon-label-size) * var(--moon-font-scale));
    text-shadow: var(--moon-readable-shadow-label);
}
.moon-page-stage .moment-section-kicker,
.moon-page-stage .moment-hero-pill {
    color: var(--moon-readable-heading);
    text-shadow: var(--moon-readable-shadow-label);
}
.moon-page-stage .moment-section-kicker {
    font-size: calc(var(--moon-label-size) * var(--moon-font-scale));
}
.moon-page-stage .moment-hero-pill {
    font-size: calc(1.04rem * var(--moon-font-scale));
}
.moon-page-head h1.moon-page-zodiac-caption {
    max-width: 980px;
    margin: 14px auto 0;
    font-family: var(--font-d);
    font-weight: 700;
    color: var(--moon-readable-heading);
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.2;
    text-shadow:
        0 4px 24px rgba(0, 0, 0, 0.64),
        0 18px 40px rgba(0, 0, 0, 0.32);
    text-wrap: balance;
}
.moon-page-head h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: calc(clamp(2.35rem, 4.2vw, 3.7rem) * var(--moon-font-scale));
    line-height: 1.02;
    color: var(--moon-readable-heading);
    text-wrap: balance;
    text-shadow: var(--moon-readable-shadow-hero);
}
.moon-page-subtitle {
    max-width: 900px;
    margin: 18px auto 0;
    color: var(--moon-readable-copy);
    font-size: var(--moon-body-size);
    line-height: 1.76;
    font-weight: 560;
    text-shadow: var(--moon-readable-shadow-copy);
}
.moon-page-pills {
    justify-content: center;
    margin-top: 24px;
}
.moon-page-orbit-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(320px, .98fr);
    gap: 26px;
    align-items: center;
    max-width: 1080px;
    margin: 26px auto 0;
    padding: 28px 30px;
    border-radius: 30px;
    border: 1px solid rgba(255, 223, 164, 0.24);
    background:
        radial-gradient(circle at 16% 18%, var(--moon-grad-gold-strong), transparent 32%),
        radial-gradient(circle at 84% 16%, var(--moon-grad-blue), transparent 30%),
        radial-gradient(circle at 58% 48%, var(--moon-grad-pearl), transparent 54%),
        linear-gradient(150deg, var(--moon-surface-top), var(--moon-surface-bottom));
    box-shadow:
        0 28px 82px rgba(8, 7, 18, 0.44),
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 0 34px rgba(255, 205, 102, 0.1);
    overflow: hidden;
}
.moon-page-orbit-shell.moon-page-orbit-shell--visual-only {
    grid-template-columns: 1fr;
    justify-items: center;
    max-width: 1120px;
    padding-inline: clamp(20px, 3vw, 38px);
}
.moon-page-orbit-shell.moon-page-orbit-shell--visual-only::before {
    inset: auto 10% -22%;
}
.moon-page-orbit-shell::before {
    content: "";
    position: absolute;
    inset: auto -10% -22% 48%;
    height: 240px;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(255, 217, 132, 0.16), transparent 64%);
    filter: blur(22px);
}
.moon-page-orbit-copy,
.moon-page-orbit-visual {
    position: relative;
    z-index: 1;
}
.moon-page-orbit-copy h2 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: calc(clamp(2rem, 2.8vw, 2.8rem) * var(--moon-font-scale));
    line-height: 1.06;
    color: var(--moon-readable-heading);
    text-shadow: var(--moon-readable-shadow-hero);
}
.moon-page-orbit-copy p:last-child {
    color: var(--moon-readable-copy);
    font-size: var(--moon-body-size);
    line-height: 1.76;
    font-weight: 560;
    text-shadow: var(--moon-readable-shadow-copy);
}
.moon-page-orbit-visual {
    display: grid;
    justify-items: center;
    gap: 16px;
}
.moon-page-vector {
    width: min(100%, 428px);
    height: auto;
    display: block;
    filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.46));
}
.moon-page-photo-shadow-overlay {
    fill: #04060d;
    opacity: .78;
}
.moon-page-photo-glow {
    fill: rgba(246, 240, 222, 0.16);
    mix-blend-mode: screen;
    pointer-events: none;
}
.moon-page-photo-outline {
    fill: none;
    stroke: rgba(255, 255, 255, 0.28);
    stroke-width: 1.5px;
}
.moon-page-orbit-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.moon-page-orbit-phase,
.moon-page-orbit-illumination {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 223, 160, 0.3);
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 223, 154, 0.18), transparent 56%),
        radial-gradient(circle at 82% 18%, rgba(143, 186, 255, 0.08), transparent 48%),
        linear-gradient(145deg, rgba(28, 24, 19, 0.94), rgba(11, 12, 18, 0.94));
    color: var(--moon-readable-heading);
    font-size: calc(1rem * var(--moon-font-scale));
    font-weight: 700;
    text-shadow: var(--moon-readable-shadow-label);
    box-shadow:
        0 10px 24px rgba(8, 6, 4, 0.24),
        inset 0 1px 0 rgba(255,255,255,0.1);
}
.moon-page-browser {
    max-width: var(--content-shell-max);
    margin: 0 auto;
    padding: 0 var(--page-shell-gutter) 64px;
}
.moon-page-panel {
    position: relative;
    overflow: hidden;
}
.moon-page-panel.moment-card {
    border-color: rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 223, 154, 0.12), transparent 24%),
        radial-gradient(circle at 88% 8%, rgba(143, 186, 255, 0.12), transparent 22%),
        radial-gradient(circle at 52% 18%, rgba(255, 255, 255, 0.04), transparent 36%),
        linear-gradient(145deg, rgba(14, 16, 24, 0.97), rgba(8, 9, 15, 0.95));
    box-shadow:
        0 28px 78px rgba(4, 6, 15, 0.52),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 30px rgba(255, 255, 255, 0.03);
}
.moon-page-panel::before {
    content: "";
    position: absolute;
    inset: -20% 10% auto;
    height: 220px;
    pointer-events: none;
    background: radial-gradient(circle at top center, rgba(255, 241, 211, 0.14), transparent 60%);
}
.moon-page-panel .landing-knowledge-kicker {
    color: var(--moon-readable-heading);
    font-size: calc(.88rem * var(--moon-font-scale));
    text-shadow: var(--moon-readable-shadow-label);
}
.moon-page-panel .landing-knowledge-head h2 {
    font-size: calc(clamp(1.72rem, 2.7vw, 2.34rem) * var(--moon-font-scale));
    color: var(--moon-readable-heading);
    text-shadow: var(--moon-readable-shadow-hero);
}
.moon-page-panel .landing-knowledge-body {
    border-top-color: rgba(255, 255, 255, 0.08);
}
.moon-page-panel .landing-knowledge-copy {
    max-width: 1040px;
}
.moon-page-panel .landing-knowledge-copy > .landing-knowledge-summary,
.moon-page-panel .landing-knowledge-copy > .moment-moon-memory-emotion {
    width: min(100%, 64ch);
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    text-wrap: pretty;
}
.moon-page-panel .moment-moon-memory-meta span,
.moon-page-panel .moment-moon-memory-model {
    border-color: rgba(255, 255, 255, 0.14);
    background:
        radial-gradient(circle at 14% 16%, rgba(255, 223, 154, 0.12), transparent 56%),
        linear-gradient(145deg, rgba(25, 24, 25, 0.9), rgba(13, 14, 18, 0.88));
    color: var(--moon-readable-label);
    text-shadow: var(--moon-readable-shadow-label);
}
.moon-page-panel .moment-moon-memory-meta span {
    font-size: calc(.82rem * var(--moon-font-scale));
}
.moon-page-panel .moment-moon-memory-model {
    font-size: calc(.92rem * var(--moon-font-scale));
}
.moon-page-panel .landing-knowledge-archive label,
.moon-page-panel .landing-knowledge-timeline-head h3,
.moon-page-panel .moment-card--moon-memory .moment-list-block h3 {
    color: var(--moon-readable-label);
    text-shadow: var(--moon-readable-shadow-label);
}
.moon-page-panel .landing-knowledge-archive label {
    font-size: calc(.9rem * var(--moon-font-scale));
}
.moon-page-panel .landing-knowledge-timeline-head h3,
.moon-page-panel .moment-card--moon-memory .moment-list-block h3 {
    font-size: calc(1rem * var(--moon-font-scale));
}
.moon-page-panel .moment-moon-memory-select {
    border-color: rgba(255, 255, 255, 0.14);
    background:
        radial-gradient(circle at 14% 16%, rgba(255, 223, 154, 0.1), transparent 54%),
        radial-gradient(circle at 84% 18%, rgba(143, 186, 255, 0.07), transparent 48%),
        linear-gradient(145deg, rgba(14, 15, 21, 0.98), rgba(9, 10, 15, 0.98));
    color: var(--moon-readable-heading);
    font-size: calc(1.06rem * var(--moon-font-scale));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 24px rgba(5, 8, 18, 0.18);
}
.moon-page-panel .moment-moon-memory-select option {
    color: #fff;
    background: #101521;
}
.moon-page-panel .moment-moon-memory-toggle {
    border-color: rgba(255, 255, 255, 0.18);
    background:
        radial-gradient(circle at 12% 16%, rgba(255, 223, 154, 0.12), transparent 58%),
        linear-gradient(135deg, rgba(19, 20, 27, 0.98), rgba(11, 12, 17, 0.98));
    color: var(--moon-readable-heading);
    font-size: calc(.86rem * var(--moon-font-scale));
    text-shadow: var(--moon-readable-shadow-label);
}
.moon-page-panel .moment-moon-memory-toggle:hover {
    border-color: rgba(255, 255, 255, 0.26);
    background:
        radial-gradient(circle at 12% 16%, rgba(255, 223, 154, 0.16), transparent 58%),
        radial-gradient(circle at 82% 18%, rgba(143, 186, 255, 0.08), transparent 48%),
        linear-gradient(135deg, rgba(24, 25, 34, 0.98), rgba(13, 14, 20, 0.98));
}
.moon-page-panel .moment-score--moon {
    color: var(--moon-readable-heading);
    font-size: calc(1.04rem * var(--moon-font-scale));
    text-shadow: var(--moon-readable-shadow-label);
}
.moon-page-panel .moment-moon-memory-tab {
    border-color: rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at 12% 14%, rgba(255, 223, 154, 0.1), transparent 56%),
        radial-gradient(circle at 84% 18%, rgba(143, 186, 255, 0.08), transparent 48%),
        linear-gradient(145deg, rgba(16, 17, 24, 0.96), rgba(9, 10, 15, 0.96));
    color: var(--moon-readable-copy);
    font-size: calc(1.04rem * var(--moon-font-scale));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 12px 24px rgba(8, 10, 20, 0.24);
}
.moon-page-panel .moment-moon-memory-tab-version {
    font-size: calc(.9rem * var(--moon-font-scale));
}
.moon-page-panel .moment-moon-memory-tab:hover,
.moon-page-panel .moment-moon-memory-tab:focus-visible {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 18px 30px rgba(8, 10, 20, 0.3);
}
.moon-page-panel .moment-moon-memory-tab.is-active {
    border-color: rgba(255, 223, 154, 0.42);
    background:
        radial-gradient(circle at 12% 14%, rgba(255, 228, 171, 0.2), transparent 56%),
        radial-gradient(circle at 82% 18%, rgba(143, 186, 255, 0.08), transparent 46%),
        linear-gradient(145deg, rgba(34, 30, 23, 0.96), rgba(13, 13, 18, 0.96));
    color: var(--moon-readable-heading);
}
.moon-page-panel .moment-moon-memory-tab-phase,
.moon-page-panel .moment-moon-memory-item-top,
.moon-page-panel .moment-moon-memory-empty {
    color: var(--moon-readable-copy-soft);
}
.moon-page-panel .moment-moon-memory-tab-phase {
    font-size: calc(.88rem * var(--moon-font-scale));
}
.moon-page-panel .moment-moon-memory-item-top {
    font-size: calc(.84rem * var(--moon-font-scale));
}
.moon-page-panel .moment-card--landing-knowledge .moment-list-block,
.moon-page-panel .moment-list-block {
    border-color: rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 223, 154, 0.08), transparent 38%),
        radial-gradient(circle at 84% 14%, rgba(143, 186, 255, 0.06), transparent 44%),
        linear-gradient(145deg, rgba(14, 15, 21, 0.8), rgba(10, 11, 16, 0.8));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 26px rgba(4, 7, 16, 0.18);
}
.moon-page-panel .moment-card--moon-memory .moment-list-block li {
    color: var(--moon-readable-copy);
    font-size: var(--moon-body-size);
    line-height: 1.76;
    text-shadow: var(--moon-readable-shadow-copy);
}
.moon-page-panel .moment-card--moon-memory .moment-list-block li::before {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}
.moon-page-panel .moment-energy,
.moon-page-panel .moment-moon-memory-emotion {
    color: var(--moon-readable-copy);
    font-size: var(--moon-body-size);
    line-height: 1.76;
    font-weight: 560;
    text-shadow: var(--moon-readable-shadow-copy);
    margin-top: 50px;
}
.moon-page-panel .moment-moon-memory-discovery {
    color: var(--moon-readable-heading);
    background:
        radial-gradient(circle at top left, rgba(255, 223, 154, 0.12), transparent 55%),
        radial-gradient(circle at 86% 18%, rgba(143, 186, 255, 0.08), transparent 48%),
        linear-gradient(145deg, rgba(18, 19, 26, 0.96), rgba(11, 12, 18, 0.98));
    border-color: rgba(255, 255, 255, 0.12);
    font-size: var(--moon-body-size);
    line-height: 1.76;
    font-weight: 560;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.94),
        0 12px 28px rgba(4, 8, 20, 0.34),
        0 0 20px rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 14px 32px rgba(4, 8, 22, 0.24);
}
.moon-page-panel .moment-moon-memory-delta {
    color: var(--moon-readable-copy);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    font-size: var(--moon-body-size);
    line-height: 1.76;
    font-weight: 560;
    text-shadow: var(--moon-readable-shadow-copy);
}
.moon-page-panel .moment-moon-memory-item {
    border-color: rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(circle at 12% 16%, rgba(255, 223, 154, 0.08), transparent 58%),
        linear-gradient(145deg, rgba(18, 18, 23, 0.92), rgba(11, 11, 15, 0.88));
    color: var(--moon-readable-copy);
    font-size: calc(1.06rem * var(--moon-font-scale));
}
.moon-page-panel .moment-moon-memory-item:hover {
    border-color: rgba(255, 255, 255, 0.18);
}
.moon-page-panel .moment-moon-memory-item.is-active {
    border-color: rgba(255, 223, 154, 0.38);
    background:
        radial-gradient(circle at 12% 14%, rgba(255, 223, 154, 0.16), transparent 56%),
        radial-gradient(circle at 82% 18%, rgba(143, 186, 255, 0.08), transparent 46%),
        linear-gradient(145deg, rgba(42, 35, 24, 0.68), rgba(15, 15, 22, 0.88));
}
.moon-page-panel .moment-moon-memory-item-phase,
.moon-page-panel .moment-moon-memory-item-headline {
    color: var(--moon-readable-heading);
    text-shadow: var(--moon-readable-shadow-label);
}
.moon-page-panel .moment-moon-memory-item-phase {
    font-size: calc(.9rem * var(--moon-font-scale));
}
.moon-page-panel .moment-moon-memory-item-headline {
    font-size: calc(1.12rem * var(--moon-font-scale));
}
.moon-page-empty {
    max-width: var(--content-shell-max);
    margin: 0 auto;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(198, 154, 255, 0.16);
    background:
        radial-gradient(circle at top center, rgba(255, 221, 154, 0.1), transparent 48%),
        linear-gradient(145deg, rgba(24, 16, 38, 0.78), rgba(11, 9, 20, 0.72));
    box-shadow: 0 24px 72px rgba(8, 7, 18, 0.45), inset 0 1px 0 rgba(255,255,255,0.08);
}
.moon-page-empty h2 {
    margin: 0 0 12px;
    color: var(--moon-readable-heading);
    font-size: calc(clamp(1.6rem, 2.6vw, 2.2rem) * var(--moon-font-scale));
    text-shadow: var(--moon-readable-shadow-hero);
}
.moon-page-empty p:last-child {
    margin-top: 10px;
    color: var(--moon-readable-copy);
    font-size: calc(var(--type-copy-md) * var(--moon-font-scale));
    line-height: 1.7;
    text-shadow: var(--moon-readable-shadow-copy);
}

/* ═══ ACCOUNT BILLING ═══ */
.billing-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 30px 20px 72px;
}
.billing-shell {
    border-radius: 24px;
    border: 1px solid rgba(188, 154, 255, 0.28);
    background:
        radial-gradient(ellipse 90% 65% at 10% -12%, rgba(171, 122, 255, 0.18), transparent 60%),
        linear-gradient(150deg, rgba(22, 16, 39, 0.84), rgba(10, 10, 22, 0.8));
    box-shadow: 0 20px 64px rgba(8, 7, 20, 0.48), inset 0 1px 0 rgba(255,255,255,0.12);
    padding: 24px;
}
.billing-head h1 {
    margin: 0;
    font-family: var(--font-d);
    font-size: clamp(1.4rem, 2.4vw, 1.95rem);
    color: #f5edff;
}
.billing-kicker {
    margin: 0 0 8px;
    font-size: .72rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    font-weight: 800;
    color: rgba(255, 224, 149, 0.96);
}
.billing-sub {
    margin: 10px 0 0;
    color: rgba(225, 214, 247, 0.9);
}
.billing-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.billing-card {
    border-radius: 16px;
    border: 1px solid rgba(169, 214, 255, 0.22);
    background: linear-gradient(145deg, rgba(24, 26, 58, 0.72), rgba(14, 16, 36, 0.76));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 10px 30px rgba(8, 10, 27, 0.34);
    padding: 16px 16px 15px;
}
.billing-card h2 {
    margin: 0 0 12px;
    font-size: 1rem;
    font-family: var(--font-d);
    color: #eef3ff;
}
.billing-card--settings {
    margin-top: 14px;
}
.billing-settings-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.billing-stat {
    margin: 5px 0;
    color: rgba(225, 234, 252, 0.9);
    font-size: .92rem;
}
.billing-note {
    margin: 0;
    color: rgba(215, 226, 247, 0.88);
    line-height: 1.55;
    font-size: .92rem;
}
.billing-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 9px;
    border-radius: 999px;
    border: 1px solid rgba(157, 191, 245, 0.4);
    background: rgba(26, 32, 72, 0.66);
    color: #e7efff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.billing-pill--pro {
    border-color: rgba(255, 227, 157, 0.7);
    background: linear-gradient(145deg, rgba(64, 46, 21, 0.72), rgba(31, 22, 11, 0.78));
    color: #ffe9b8;
    box-shadow: 0 0 16px rgba(246, 192, 91, 0.18);
}
.billing-action {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(141, 198, 255, 0.44);
    background: linear-gradient(145deg, rgba(35, 53, 98, 0.78), rgba(16, 25, 56, 0.82));
    color: #eef7ff;
    text-decoration: none;
    font-size: .84rem;
    font-weight: 700;
}
.billing-action:hover,
.billing-action:focus-visible {
    text-decoration: none;
    border-color: rgba(180, 225, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(113, 181, 255, 0.2), 0 10px 24px rgba(7, 12, 34, 0.42);
}
.billing-action--ghost {
    background: rgba(16, 20, 44, 0.65);
}
.billing-settings-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.billing-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.billing-choice {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 160px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(132, 152, 196, 0.34);
    background: linear-gradient(135deg, rgba(18, 24, 52, 0.9), rgba(22, 22, 48, 0.9));
    color: rgba(220, 231, 255, 0.9);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.billing-choice:hover,
.billing-choice:focus-within {
    border-color: rgba(125, 211, 252, 0.62);
    color: #d9f8ff;
    background: linear-gradient(135deg, rgba(31, 54, 108, 0.78), rgba(19, 34, 78, 0.85));
    box-shadow:
        0 0 0 1px rgba(125, 211, 252, 0.16),
        0 0 18px rgba(93, 167, 255, 0.16),
        inset 0 1px 0 rgba(255,255,255,0.12);
    transform: translateY(-1px);
}
.billing-choice.is-selected {
    border-color: rgba(125, 211, 252, 0.95);
    background:
        radial-gradient(circle at 15% 18%, rgba(125, 211, 252, 0.22), transparent 30%),
        radial-gradient(circle at 85% 80%, rgba(110, 231, 183, 0.16), transparent 36%),
        linear-gradient(135deg, rgba(18, 24, 52, 0.92), rgba(22, 22, 48, 0.94));
    box-shadow:
        0 0 0 1px rgba(125, 211, 252, 0.24),
        0 0 24px rgba(93, 167, 255, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.14);
}
.billing-choice input {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 18px;
    height: 18px;
    accent-color: #7dd3fc;
}
.billing-choice-title {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    width: fit-content;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.95);
    background: linear-gradient(135deg, #7dd3fc, #6ee7b7);
    color: #0f172a;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow:
        0 0 0 1px rgba(125, 211, 252, 0.16),
        0 0 16px rgba(93, 167, 255, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.24);
}
.billing-choice-text {
    color: rgba(231, 239, 255, 0.92);
    line-height: 1.62;
    font-size: .94rem;
    text-wrap: pretty;
}
.billing-choice-footnote {
    margin: 0;
    color: rgba(205, 222, 248, 0.82);
    line-height: 1.58;
    font-size: .88rem;
}
.billing-feedback {
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(132, 152, 196, 0.3);
    font-size: .9rem;
    line-height: 1.58;
}
.billing-feedback a {
    color: #c7e8ff;
    font-weight: 700;
}
.billing-feedback--success {
    border-color: rgba(110, 231, 183, 0.34);
    background: rgba(14, 41, 36, 0.42);
    color: rgba(224, 250, 241, 0.94);
}
.billing-feedback--error {
    border-color: rgba(248, 113, 113, 0.34);
    background: rgba(61, 18, 23, 0.34);
    color: rgba(254, 226, 226, 0.94);
}
.billing-card--table {
    margin-top: 14px;
}
.billing-table-wrap {
    overflow-x: auto;
}
.billing-table {
    width: 100%;
    border-collapse: collapse;
}
.billing-table th,
.billing-table td {
    padding: 8px 10px;
    text-align: left;
    font-size: .84rem;
}
.billing-table th {
    color: rgba(195, 216, 251, 0.88);
    font-weight: 700;
    letter-spacing: .02em;
    border-bottom: 1px solid rgba(150, 186, 247, 0.28);
}
.billing-table td {
    color: rgba(230, 237, 252, 0.92);
    border-bottom: 1px solid rgba(128, 160, 214, 0.16);
}
.billing-guest-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
@media (max-width: 980px) {
    .billing-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .billing-page {
        padding: 22px 12px 56px;
    }
    .billing-shell {
        border-radius: 18px;
        padding: 16px 14px;
    }
    .billing-head h1 {
        font-size: clamp(1.22rem, 6.6vw, 1.52rem);
    }
    .billing-sub {
        font-size: .9rem;
    }
    .billing-grid {
        margin-top: 14px;
        gap: 10px;
    }
    .billing-card {
        padding: 13px 12px;
    }
    .billing-settings-head {
        flex-direction: column;
    }
    .billing-choice-grid {
        grid-template-columns: 1fr;
    }
    .billing-choice {
        min-height: 0;
        padding: 14px;
    }
    .billing-table th,
    .billing-table td {
        padding: 7px 8px;
        font-size: .79rem;
    }
    .billing-guest-actions {
        flex-wrap: wrap;
    }
    .billing-action {
        width: 100%;
    }
}

/* ═══ LEXIKON PAGE ═══ */
.lex-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 22px 96px;
}
.lex-hero {
    border: 1px solid rgba(196, 160, 255, 0.23);
    border-radius: 26px;
    padding: 34px clamp(24px, 3vw, 38px);
    background:
        radial-gradient(ellipse 78% 84% at 18% -12%, rgba(168, 103, 255, 0.18), transparent 58%),
        radial-gradient(ellipse 54% 58% at 82% 10%, rgba(104, 76, 221, 0.12), transparent 62%),
        linear-gradient(145deg, rgba(24, 15, 40, 0.86), rgba(10, 9, 22, 0.78));
    box-shadow: 0 24px 70px rgba(8, 6, 20, 0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}
.lex-hero-head {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.lex-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: radial-gradient(circle at 30% 30%, rgba(133, 168, 255, 0.35), rgba(95, 74, 235, 0.2));
    border: 1px solid rgba(162, 187, 255, 0.38);
    box-shadow: 0 0 24px rgba(93, 124, 231, 0.28);
}
.lex-hero-label {
    margin: 0;
    color: #f7efff;
    font-family: var(--font-d);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(146, 115, 230, 0.28);
}
.lex-hero h1 {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: clamp(2.35rem, 4.25vw, 3.95rem);
    line-height: 1.02;
    color: #f9f3ff;
    text-wrap: balance;
    max-width: 920px;
    text-shadow: 0 10px 28px rgba(96, 61, 180, 0.2);
}
.lex-hero p {
    margin: 0;
    max-width: 780px;
    color: rgba(238, 228, 250, 0.95);
    line-height: 1.54;
    font-size: var(--type-copy-lg);
}
.lex-block {
    margin-top: 24px;
    border: 1px solid rgba(188, 152, 255, 0.2);
    border-radius: 22px;
    padding: 24px;
    background:
        radial-gradient(ellipse 84% 74% at 10% -12%, rgba(147, 99, 238, 0.12), transparent 58%),
        linear-gradient(145deg, rgba(20, 14, 35, 0.8), rgba(10, 9, 21, 0.74));
    box-shadow: 0 18px 46px rgba(7, 6, 16, 0.38), inset 0 1px 0 rgba(255,255,255,0.08);
}
.lex-block h2 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.4vw, 3.05rem);
    color: #f7efff;
    line-height: .98;
    letter-spacing: -0.03em;
}
.lex-block p {
    margin: 0;
    color: rgba(235, 226, 248, 0.94);
    line-height: 1.64;
    font-size: var(--type-copy-md);
    font-weight: 560;
}
.lex-guide-list {
    margin: 14px 0 0;
    padding-left: 20px;
    color: rgba(220, 202, 246, 0.9);
}
.lex-guide-list li {
    margin: 8px 0;
    line-height: 1.56;
    font-size: var(--type-copy-md);
}
.lex-grid {
    display: grid;
    gap: 12px;
}
.lex-grid--planets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lex-grid--aspects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lex-grid--signs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.lex-card {
    border: 1px solid rgba(184, 148, 255, 0.22);
    border-radius: 18px;
    padding: 18px 18px 16px;
    background:
        radial-gradient(circle at 12% 0%, rgba(144, 102, 234, 0.1), transparent 40%),
        rgba(15, 11, 27, 0.68);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 16px 34px rgba(7, 6, 18, 0.24);
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.lex-card:hover,
.lex-study-card:hover,
.lex-luminary-card:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 22px 42px rgba(7, 6, 18, 0.3);
}
.lex-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.lex-card-top h3 {
    margin: 0;
    color: #f8efff;
    font-family: var(--font-d);
    font-size: clamp(1.22rem, 1.65vw, 1.42rem);
    line-height: 1.16;
}
.lex-card-top small {
    color: rgba(204, 182, 239, 0.82);
    font-weight: 500;
}
.lex-symbol {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(193, 160, 255, 0.32);
    background: radial-gradient(circle at 30% 30%, rgba(176, 125, 255, 0.24), rgba(98, 74, 225, 0.18));
    font-size: 1.25rem;
}
.lex-keywords {
    margin: 0 0 10px !important;
    color: rgba(205, 186, 239, 0.87) !important;
    font-size: .92rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.lex-focus {
    margin-top: 10px !important;
    color: rgba(235, 222, 255, 0.95) !important;
    font-size: var(--type-copy-sm) !important;
}
.lex-ask-astrologer {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(121, 203, 255, 0.28);
    background: linear-gradient(145deg, rgba(17, 29, 50, 0.88), rgba(10, 17, 31, 0.9));
    color: #d9f7ff;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 10px 26px rgba(6, 19, 40, 0.26);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.lex-ask-astrologer:hover,
.lex-ask-astrologer:focus-visible {
    transform: translateY(-1px) scale(1.04);
    color: #ffffff;
    border-color: rgba(138, 219, 255, 0.56);
    box-shadow: 0 14px 30px rgba(15, 82, 144, 0.26), 0 0 0 1px rgba(91, 179, 255, 0.16);
}
.lex-tone {
    margin: 0 0 7px !important;
    color: rgba(205, 244, 231, 0.86) !important;
    font-weight: 600;
}
.lex-card--sign {
    position: relative;
    overflow: hidden;
    border-color: var(--sign-color);
    background: linear-gradient(152deg, rgba(21, 16, 31, 0.97), rgba(9, 9, 19, 0.94));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        0 20px 42px rgba(8, 6, 18, 0.32);
}
.lex-card--sign::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 2%, var(--sign-color), transparent 48%),
        radial-gradient(circle at 80% 100%, var(--sign-color), transparent 62%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 38%);
    opacity: 0.18;
    pointer-events: none;
}
.lex-card--sign::after {
    content: "";
    position: absolute;
    inset: auto 12px 10px;
    height: 38%;
    border-radius: 999px;
    background: radial-gradient(circle, var(--sign-color), transparent 72%);
    opacity: 0.09;
    filter: blur(26px);
    pointer-events: none;
}
.lex-card--sign p {
    position: relative;
    z-index: 1;
    color: rgba(252, 247, 255, 0.96);
    font-size: var(--type-copy-md);
    line-height: 1.66;
    font-weight: 580;
    text-shadow: 0 1px 0 rgba(7, 6, 18, 0.96), 0 6px 18px rgba(4, 4, 12, 0.42);
}
.lex-sign-top {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 10px;
}
.lex-sign-top h3 {
    margin: 0;
    color: #fff7ff;
    font-family: var(--font-d);
    font-size: clamp(1.34rem, 1.7vw, 1.58rem);
    line-height: 1.08;
    text-shadow: 0 1px 0 rgba(6, 4, 16, 0.98), 0 8px 22px rgba(6, 4, 16, 0.38);
}
.lex-sign-symbol {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sign-color);
    border: 1px solid var(--sign-color);
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.28), rgba(24, 16, 38, 0.78));
    box-shadow: 0 0 18px var(--sign-color);
    font-size: 1.28rem;
    font-family: "Noto Sans Symbols 2", "Segoe UI Symbol", "Noto Sans Symbols", "Apple Symbols", sans-serif;
    font-weight: 700;
}
.lex-sign-meta {
    margin: 1px 0 0 !important;
    color: rgba(236, 224, 250, 0.94) !important;
    font-size: .92rem !important;
    letter-spacing: .02em;
    text-shadow: 0 1px 0 rgba(7, 6, 18, 0.94), 0 6px 18px rgba(4, 4, 12, 0.32);
}
.lex-sign-theme {
    margin: 0 0 10px !important;
    color: var(--sign-color) !important;
    font-weight: 600;
    font-size: clamp(1.28rem, 1.75vw, 1.54rem) !important;
    line-height: 1.18;
    text-shadow: 0 1px 0 rgba(7, 6, 18, 0.96), 0 8px 20px rgba(4, 4, 12, 0.34);
}
.lex-card--sign .lex-keywords {
    color: rgba(250, 243, 255, 0.98) !important;
    font-size: 1.02rem !important;
    line-height: 1.5;
    text-shadow: 0 1px 0 rgba(7, 6, 18, 0.98), 0 8px 18px rgba(4, 4, 12, 0.32);
}
.lex-sign-advice {
    margin-top: 12px !important;
    color: rgba(255, 239, 248, 0.98) !important;
}
.lex-card--sign .lex-focus {
    font-size: 1rem !important;
}
.lex-signs-intro {
    margin-bottom: 20px !important;
}
.lex-study-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.lex-study-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.lex-study-card {
    border: 1px solid rgba(182, 146, 255, 0.2);
    border-radius: 18px;
    padding: 20px;
    background:
        radial-gradient(circle at 10% 0%, rgba(143, 102, 234, 0.14), transparent 38%),
        rgba(14, 11, 26, 0.66);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 14px 32px rgba(7, 6, 18, 0.22);
}
.lex-study-card--soft {
    border-color: rgba(135, 190, 255, 0.2);
    background:
        radial-gradient(circle at 10% 0%, rgba(100, 150, 255, 0.14), transparent 38%),
        rgba(12, 14, 29, 0.66);
}
.lex-study-label {
    margin: 0 0 6px !important;
    color: rgba(255, 215, 144, 0.86) !important;
    font-size: .8rem !important;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 700;
}
.lex-study-card h3 {
    margin: 0 0 10px;
    color: #faf1ff;
    font-family: var(--font-d);
    font-size: clamp(1.34rem, 1.92vw, 1.62rem);
    line-height: 1.12;
}
.lex-study-card p:not(.lex-study-label) {
    color: rgba(245, 238, 255, 0.96);
    font-size: clamp(1.16rem, 1.42vw, 1.34rem);
    line-height: 1.68;
    font-weight: 560;
}
.lex-study-formula {
    margin-top: 16px !important;
    color: rgba(240, 230, 251, 0.94) !important;
    font-size: clamp(1.18rem, 1.48vw, 1.38rem) !important;
    line-height: 1.66;
    font-weight: 600;
}
.lex-learning-list {
    margin: 14px 0 0;
    padding-left: 20px;
    color: rgba(225, 210, 246, 0.92);
}
.lex-learning-list li {
    margin: 7px 0;
    font-size: clamp(1.16rem, 1.44vw, 1.34rem);
    line-height: 1.7;
    font-weight: 560;
}
.lex-luminary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.lex-luminary-card {
    border: 1px solid rgba(186, 150, 255, 0.24);
    border-radius: 20px;
    padding: 20px;
    background:
        radial-gradient(circle at 18% -6%, rgba(150, 110, 240, 0.16), transparent 46%),
        linear-gradient(145deg, rgba(15, 11, 28, 0.84), rgba(9, 9, 20, 0.78));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), 0 18px 40px rgba(7, 6, 18, 0.32);
}
.lex-luminary-card--sun {
    border-color: rgba(255, 191, 92, 0.34);
    background:
        radial-gradient(circle at 18% -8%, rgba(255, 187, 72, 0.18), transparent 44%),
        linear-gradient(150deg, rgba(28, 18, 11, 0.88), rgba(12, 10, 19, 0.8));
}
.lex-luminary-card--moon {
    border-color: rgba(153, 197, 255, 0.28);
    background:
        radial-gradient(circle at 14% -8%, rgba(122, 169, 255, 0.16), transparent 46%),
        linear-gradient(150deg, rgba(17, 18, 35, 0.86), rgba(10, 10, 22, 0.8));
}
.lex-luminary-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.lex-luminary-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.lex-symbol--luminary {
    width: 42px;
    height: 42px;
    font-size: 1.45rem;
}
.lex-luminary-kicker {
    margin: 0 0 2px !important;
    color: rgba(255, 220, 156, 0.9) !important;
    font-size: .8rem !important;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 700;
}
.lex-luminary-head h3 {
    margin: 0;
    color: #fbf4ff;
    font-family: var(--font-d);
    font-size: clamp(1.32rem, 1.95vw, 1.62rem);
    line-height: 1.12;
}
.lex-keywords--luminary {
    margin-bottom: 0 !important;
}
.lex-luminary-intro {
    margin-bottom: 14px !important;
    color: rgba(239, 227, 251, 0.95) !important;
    font-size: var(--type-copy-md);
}
.lex-luminary-sections {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.lex-luminary-section {
    border-top: 1px solid rgba(183, 148, 242, 0.16);
    padding-top: 14px;
}
.lex-luminary-section h4 {
    margin: 0 0 8px;
    color: #f8efff;
    font-size: 1.18rem;
    font-family: var(--font-d);
}
.lex-luminary-section p {
    color: rgba(242, 235, 252, 0.96);
    font-size: clamp(1.12rem, 1.34vw, 1.3rem);
    line-height: 1.68;
    font-weight: 560;
}
.lex-luminary-section p + p {
    margin-top: 9px;
}
.lex-luminary-closing {
    margin-top: 14px !important;
    color: rgba(248, 239, 210, 0.95) !important;
    font-weight: 600;
}
.lex-luminary-bridge {
    margin-top: 14px !important;
    color: rgba(224, 212, 246, 0.9) !important;
}
.lex-card-link {
    margin-top: 10px !important;
}
.lex-card-link a {
    color: #c9e2ff;
    text-decoration: none;
    font-weight: 700;
}
.lex-card-link a:hover,
.lex-card-link a:focus-visible {
    text-decoration: underline;
}
.lex-transits-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.lex-transits-head p {
    color: rgba(198, 176, 234, 0.84);
    font-size: .86rem;
}
.lex-search-wrap {
    margin-bottom: 12px;
}
.lex-transit-groups {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lex-group {
    border: 1px solid rgba(182, 144, 252, 0.23);
    border-radius: 14px;
    background: rgba(13, 10, 24, 0.62);
    overflow: hidden;
}
.lex-group summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    cursor: pointer;
    user-select: none;
    color: #f1e8ff;
    font-family: var(--font-d);
    font-weight: 600;
    font-size: 1.12rem;
}
.lex-group summary::-webkit-details-marker { display: none; }
.lex-group-symbol {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(182, 142, 255, 0.28);
    background: rgba(124, 84, 203, 0.24);
    font-size: 1rem;
}
.lex-group-title {
    flex: 1;
}
.lex-group-count {
    font-size: .8rem;
    color: rgba(205, 186, 235, 0.86);
}
.lex-group-body {
    padding: 0 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.lex-transit-item {
    border: 1px solid rgba(188, 151, 255, 0.2);
    border-radius: 16px;
    padding: 14px 15px;
    background:
        radial-gradient(circle at 12% 0%, rgba(142, 102, 234, 0.08), transparent 42%),
        rgba(12, 10, 22, 0.72);
}
.lex-transit-item header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}
.lex-transit-item h3 {
    margin: 0;
    color: #d8c0ff;
    font-size: clamp(1.12rem, 1.45vw, 1.3rem);
    line-height: 1.18;
}
.lex-transit-item > p {
    margin: 0;
    color: #ffffff;
    font-size: var(--type-copy-md);
    line-height: 1.48;
}
.lex-transit-insight {
    margin-top: 12px !important;
    padding-top: 12px;
    border-top: 1px solid rgba(170, 210, 255, 0.14);
}
.lex-transit-layers {
    display: grid;
    gap: 8px;
}
.lex-transit-layer {
    padding: 11px 12px;
    border-radius: 11px;
    border: 1px solid rgba(184, 162, 236, 0.16);
    background:
        linear-gradient(155deg, rgba(18, 14, 31, 0.92), rgba(11, 10, 22, 0.82)),
        rgba(12, 10, 22, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.lex-transit-layer--primary {
    border-color: rgba(255, 221, 154, 0.44);
    background:
        radial-gradient(circle at 14% 0%, rgba(255, 220, 146, 0.18), transparent 48%),
        linear-gradient(155deg, rgba(56, 40, 20, 0.96), rgba(20, 14, 8, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 26px rgba(70, 46, 10, 0.28),
        0 0 24px rgba(246, 191, 86, 0.12);
}
.lex-transit-layer--secondary {
    opacity: 0.96;
}
.lex-transit-layer--tertiary {
    opacity: 0.84;
}
.lex-transit-layer--legacy {
    border-color: rgba(226, 203, 151, 0.26);
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 215, 140, 0.08), transparent 48%),
        linear-gradient(155deg, rgba(34, 23, 13, 0.92), rgba(16, 12, 8, 0.82));
}
.lex-transit-layer--knowledge {
    border-color: rgba(149, 211, 255, 0.2);
    background:
        radial-gradient(circle at 12% 0%, rgba(116, 189, 255, 0.08), transparent 48%),
        linear-gradient(155deg, rgba(12, 23, 36, 0.92), rgba(9, 12, 24, 0.82));
}
.lex-transit-layer-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.lex-transit-layer-label {
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f4ebff !important;
    font-family: var(--font-d);
    font-size: .92rem !important;
    font-weight: 700;
    line-height: 1.25;
}
.lex-transit-layer-version {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(162, 218, 255, 0.24);
    background: rgba(71, 138, 198, 0.14);
    color: #cfeaff;
    font-size: .76rem;
    letter-spacing: .04em;
}
.lex-transit-layer-meta {
    margin: 0 !important;
    color: rgba(180, 198, 226, 0.82) !important;
    font-size: .8rem !important;
    line-height: 1.3;
    text-align: right;
}
.lex-transit-layer-text {
    margin: 0 !important;
    color: rgba(234, 240, 252, 0.94) !important;
    font-size: 1.08rem !important;
    line-height: 1.62;
    font-weight: 560;
}
.lex-transit-layer--primary .lex-transit-layer-text {
    font-size: 1.26rem !important;
    color: #fff8e8 !important;
    font-weight: 620;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.88), 0 8px 18px rgba(48, 29, 6, 0.22);
}
.lex-transit-layer--secondary .lex-transit-layer-text {
    font-size: 1.14rem !important;
    color: rgba(240, 244, 255, 0.96) !important;
}
.lex-transit-layer--tertiary .lex-transit-layer-text {
    font-size: 1.02rem !important;
    color: rgba(231, 234, 244, 0.84) !important;
}
.lex-transit-layer--primary .lex-transit-layer-label {
    color: #ffe8b8 !important;
}
.lex-transit-layer--primary .lex-transit-layer-version {
    border-color: rgba(255, 228, 171, 0.44);
    background: rgba(112, 79, 22, 0.34);
    color: #fff0c8;
}
.lex-transit-layer--primary .lex-transit-layer-meta {
    color: rgba(255, 226, 180, 0.8) !important;
}
.lex-effect {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    border: 1px solid rgba(255,255,255,0.2);
}
.lex-transit-item--positive .lex-effect {
    color: #9ff1cb;
    border-color: rgba(106, 231, 179, 0.38);
    background: rgba(26, 119, 89, 0.2);
}
.lex-transit-item--negative .lex-effect {
    color: #ffb0c6;
    border-color: rgba(246, 117, 160, 0.36);
    background: rgba(132, 35, 71, 0.2);
}
.lex-transit-item--neutral .lex-effect {
    color: #d8c0ff;
    border-color: rgba(187, 143, 255, 0.33);
    background: rgba(101, 62, 165, 0.22);
}
.lex-focus-target {
    border-color: rgba(110, 246, 193, 0.56) !important;
    box-shadow: 0 0 0 2px rgba(106, 231, 179, 0.18), 0 0 24px rgba(91, 224, 164, 0.14);
}

/* ═══ MOMENT PAGE ═══ */
.moment-hero-stage {
    position: relative;
    max-width: var(--content-shell-max);
    margin: 0 auto;
    padding: 42px var(--page-shell-gutter) 54px;
}
.moment-hero-aurora {
    position: absolute;
    inset: 0 var(--page-shell-gutter) auto;
    height: 520px;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 10%, rgba(136, 195, 255, 0.16), transparent 34%),
        radial-gradient(circle at 14% 30%, rgba(128, 82, 228, 0.16), transparent 36%),
        radial-gradient(circle at 84% 24%, rgba(115, 88, 216, 0.16), transparent 36%);
    filter: blur(24px);
    opacity: 0.9;
}
.moment-head {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 34px auto 54px;
    text-align: center;
}
.moment-hero-kicker,
.moment-section-kicker,
.moment-knowledge-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 15px;
    margin: 0 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 221, 146, 0.58);
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 226, 154, 0.26), transparent 56%),
        linear-gradient(145deg, rgba(52, 35, 14, 0.92), rgba(21, 15, 8, 0.94));
    box-shadow:
        0 10px 26px rgba(8, 6, 4, 0.42),
        0 0 18px rgba(252, 192, 85, 0.14),
        inset 0 1px 0 rgba(255, 238, 196, 0.18);
    font-family: var(--font-d);
    font-size: .94rem;
    font-weight: 800;
    letter-spacing: .12em;
    /* text-transform: uppercase; */
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.88), 0 0 12px rgba(255, 214, 120, 0.18);
}
.moment-hero-kicker {
    color: #ffe7b0;
}
.moment-section-kicker,
.moment-knowledge-kicker {
    color: #ffe7b0;
}
.moment-head h1 {
    margin: 0;
    font-family: var(--font-d);
    font-size: clamp(2.3rem, 3.65vw, 3.35rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #f6f0ff;
    text-shadow: 0 8px 32px rgba(120, 86, 210, 0.24);
}
.moment-date {
    margin-top: 8px;
    font-size: 1.06rem;
    font-weight: 600;
    color: rgba(242, 239, 250, 0.86);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.72), 0 6px 16px rgba(0, 0, 0, 0.52);
}
.moment-date--location {
    color: rgba(214, 226, 255, 0.78);
}
.moment-hero-subtitle {
    max-width: 700px;
    margin: 16px auto 0;
    color: rgba(243, 239, 250, 0.94);
    font-size: clamp(1.2rem, 1.7vw, 1.42rem);
    line-height: 1.74;
    font-weight: 600;
    text-shadow: 0 2px 18px rgba(111, 82, 176, 0.18);
}
.moment-wheel-stage-shell {
    max-width: 920px;
    margin-bottom: 0;
}
.moment-wheel-stage-headline {
    margin: 0 0 26px;
}
.moment-wheel-stage-title {
    display: grid;
    gap: 14px;
    margin: 0;
    justify-items: center;
}
.moment-wheel-stage-title-intro {
    font-family: var(--font-d);
    font-size: clamp(1.12rem, 1vw + 0.9rem, 1.44rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .06em;
    color: rgba(224, 232, 252, 0.82);
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 3px 18px rgba(17, 15, 35, 0.36);
}
.moment-wheel-stage-location {
    display: inline-block;
    margin: 0;
    max-width: min(100%, 16ch);
    text-decoration: none;
    text-align: center;
    white-space: normal;
    font-family: var(--font-d);
    font-size: clamp(2.8rem, 5vw, 4.7rem);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: -0.05em;
    text-transform: none;
    color: #fff0cb;
    text-shadow: 0 14px 42px rgba(116, 81, 208, 0.28), 0 3px 0 rgba(12, 10, 22, 0.86);
    transition: transform .16s ease, color .18s ease, text-shadow .18s ease;
}
.moment-wheel-stage-location:hover {
    transform: translateY(-1px);
    color: #fff6dc;
    text-shadow: 0 16px 46px rgba(116, 81, 208, 0.34), 0 3px 0 rgba(12, 10, 22, 0.9);
}
.moment-card--wheel-stage {
    position: relative;
}
.moment-card--wheel-stage::before {
    content: "";
    position: absolute;
    inset: auto 12% -16% 12%;
    height: 180px;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(130, 191, 255, 0.18), transparent 66%);
    filter: blur(18px);
}
.moment-wheel-wrap--stage {
    padding: 18px 0 8px;
}
.moment-wheel-angle-line {
    margin: 20px auto 0;
    text-align: center;
    font-family: var(--font-d);
    font-size: clamp(1.18rem, 1.45vw, 1.34rem);
    font-weight: 700;
    line-height: 1.45;
    color: rgba(255, 238, 195, 0.97);
    text-shadow: 0 4px 24px rgba(12, 10, 28, 0.58), 0 0 20px rgba(130, 108, 214, 0.16);
}
.moment-stream-shell {
    max-width: var(--content-shell-max);
    margin: 0 auto;
    padding: 18px var(--page-shell-gutter) 0;
}
.moment-card--aspects-stream {
    max-width: 980px;
    margin: 0 auto;
}
.moment-overview-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: 24px;
    align-items: stretch;
}
.moment-card {
    border-radius: 24px;
    border: 1px solid rgba(198, 154, 255, 0.16);
    background:
        radial-gradient(ellipse 120% 85% at 50% -12%, rgba(171, 121, 255, 0.12), transparent 58%),
        linear-gradient(145deg, rgba(24, 16, 38, 0.78), rgba(11, 9, 20, 0.72));
    box-shadow: 0 24px 72px rgba(8, 7, 18, 0.45), inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
}
.moment-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 0;
    margin-bottom: 0;
}
.moment-card-top--stack {
    flex-direction: column;
}
.moment-card h2 {
    margin: 0;
    font-family: var(--font-d);
    font-size: clamp(1.32rem, 1.16rem + .36vw, 1.58rem);
    line-height: 1.2;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.72), 0 5px 14px rgba(0, 0, 0, 0.58);
}
.moment-overview-note {
    max-width: 420px;
    color: rgba(230, 235, 245, 0.86);
    font-size: 1.08rem;
    line-height: 1.66;
    font-weight: 560;
}
.moment-card--overview {
    min-height: 100%;
}
.moment-wheel-wrap {
    padding: 8px 18px 22px;
    position: relative;
}
.moment-wheel-svg {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    display: block;
}
.wheel-bg { fill: rgba(3, 3, 9, 0.9); }
.wheel-ring { fill: none; stroke: rgba(201, 157, 255, 0.3); stroke-width: 1.3; }
.wheel-ring--inner { stroke: rgba(201, 157, 255, 0.18); }
.wheel-divider { stroke: rgba(201, 157, 255, 0.14); stroke-width: 1; }
.wheel-sign {
    font-size: 40px;
    font-weight: 700;
    font-family: "Noto Sans Symbols 2", "Segoe UI Symbol", "Noto Sans Symbols", "Apple Symbols", sans-serif;
    text-anchor: middle;
    dominant-baseline: middle;
    paint-order: stroke;
    stroke: rgba(13, 9, 24, 0.8);
    stroke-width: 2.2px;
    user-select: none;
    cursor: pointer;
}
.wheel-sign-orb {
    opacity: 0.08;
    filter: blur(0.2px);
    cursor: pointer;
}
.wheel-aspect {
    stroke-width: 2.7;
    opacity: 0.98;
    pointer-events: stroke;
    cursor: pointer;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.15));
    transition: stroke-width .18s ease, opacity .18s ease, filter .18s ease;
}
.wheel-aspect:hover {
    stroke-width: 3.1;
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.22));
}
.wheel-aspect--positive { stroke: rgba(102, 255, 195, 0.95); }
.wheel-aspect--negative { stroke: rgba(255, 120, 166, 0.95); }
.wheel-aspect--neutral { stroke: rgba(208, 156, 255, 0.92); }
.wheel-planet-halo,
.wheel-planet-dot {
    display: none;
}
.wheel-planet-symbol {
    fill: #ffffff;
    font-size: 46px;
    font-weight: 700;
    font-family: "Noto Sans Symbols 2", "Segoe UI Symbol", "Noto Sans Symbols", "Apple Symbols", sans-serif;
    text-anchor: middle;
    dominant-baseline: middle;
    paint-order: stroke;
    stroke: rgba(9, 6, 22, 0.96);
    stroke-width: 3.2px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,.42));
    user-select: none;
    cursor: pointer;
}
.wheel-click-ready {
    transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}
.wheel-click-ready:hover {
    filter: brightness(1.1) saturate(1.12);
}
.wheel-tip {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -100%);
    background: rgba(22, 14, 34, 0.92);
    border: 1px solid rgba(213, 176, 255, 0.4);
    border-radius: 8px;
    color: #f6edff;
    font-size: .78rem;
    font-weight: 600;
    padding: 5px 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .12s ease;
    z-index: 4;
    white-space: nowrap;
}
.wheel-tip.is-visible {
    opacity: 1;
}
.moment-card--aspects {
    padding: 0 18px 20px;
}
.moment-aspects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.moment-aspect {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid rgba(198, 154, 255, 0.18);
    background: rgba(19, 14, 31, 0.58);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.moment-aspect:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(8, 6, 20, 0.32), inset 0 1px 0 rgba(255,255,255,0.08);
}
.moment-aspect:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(198, 159, 255, 0.45), 0 10px 24px rgba(8, 6, 20, 0.32);
}
.moment-aspect-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.moment-aspect-headline {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}
.moment-aspect-symbols {
    color: #f0e3ff;
    font-size: 1.14rem;
    cursor: help;
}
.moment-aspect-effect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(187, 143, 255, 0.32);
    color: rgba(232, 215, 250, 0.9);
    background: rgba(86, 56, 138, 0.32);
    font-size: .76rem;
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: .03em;
    white-space: nowrap;
}
.moment-aspect-effect--positive {
    border-color: rgba(90, 222, 162, 0.46);
    color: #b8f5dc;
    background: rgba(27, 102, 73, 0.42);
}
.moment-aspect-effect--negative {
    border-color: rgba(255, 108, 153, 0.5);
    color: #ffc3d7;
    background: rgba(120, 42, 70, 0.42);
}
.moment-aspect-effect--neutral {
    border-color: rgba(187, 142, 255, 0.44);
    color: #e2cfff;
    background: rgba(76, 51, 131, 0.42);
}
.moment-aspect-orb {
    font-size: .88rem;
    color: rgba(203, 185, 227, 0.78);
}
.moment-aspect-text {
    margin: 6px 0 0;
    padding: 10px 11px;
    border-radius: 10px;
    border: 1px solid rgba(190, 173, 233, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    font-size: 1.08rem;
    line-height: 1.68;
    font-weight: 600;
    display: block;
    overflow: visible;
    white-space: normal;
}
.moment-aspect-history {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(190, 214, 255, 0.12);
}
.moment-aspect-history .transit-history-layer {
    padding: 9px 10px;
    border-radius: 12px;
}
.moment-aspect-history .transit-history-label {
    font-size: .72rem;
}
.moment-aspect-history .transit-history-meta {
    font-size: .78rem;
}
.moment-aspect-history .transit-history-layer--primary .transit-history-text {
    font-size: 1.18rem;
}
.moment-aspect-history .transit-history-layer--secondary .transit-history-text {
    font-size: 1.06rem;
}
.moment-aspect-history .transit-history-layer--tertiary .transit-history-text {
    font-size: .98rem;
}
.moment-aspect--positive .moment-aspect-text {
    background: rgba(31, 120, 84, 0.34);
}
.moment-aspect--negative .moment-aspect-text {
    background: rgba(118, 43, 68, 0.34);
}
.moment-aspect--positive {
    border-color: rgba(90, 222, 162, 0.38);
    background: linear-gradient(145deg, rgba(22, 90, 65, 0.36), rgba(13, 26, 24, 0.62));
}
.moment-aspect--negative {
    border-color: rgba(255, 108, 153, 0.4);
    background: linear-gradient(145deg, rgba(110, 38, 65, 0.34), rgba(28, 14, 23, 0.64));
}
.moment-aspect--neutral {
    border-color: rgba(187, 142, 255, 0.32);
    background: linear-gradient(145deg, rgba(64, 42, 111, 0.3), rgba(17, 13, 31, 0.62));
}
.moment-report-shell,
.moment-bridge-shell,
.moment-knowledge-browser {
    max-width: var(--content-shell-max);
    margin: 0 auto;
    padding: 18px var(--page-shell-gutter) 28px;
}
.moment-card--report {
    padding: 28px 30px;
}
.moment-report-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.moment-report-head--main {
    margin-bottom: 18px;
}
.moment-report-head-main {
    display: grid;
    gap: 4px;
}
.moment-bridge-shell {
    padding-top: 4px;
    padding-bottom: 22px;
}
.moment-hero-subtitle--bridge {
    margin-top: 0;
    text-align: center;
}
.moment-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 223, 154, 0.42);
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 224, 144, 0.18), transparent 58%),
        linear-gradient(145deg, rgba(47, 33, 14, 0.84), rgba(18, 13, 7, 0.92));
    font-family: var(--font-d);
    font-weight: 700;
    color: #fff0c8;
    font-size: 1.04rem;
    letter-spacing: .03em;
    white-space: nowrap;
}
.moment-report-body {
    display: grid;
    gap: 20px;
}
.moment-energy {
    color: rgba(248, 252, 255, 0.96);
    font-size: clamp(1.18rem, 1.08rem + .3vw, 1.38rem);
    font-weight: 560;
    line-height: 1.78;
    letter-spacing: .004em;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.94),
        0 2px 12px rgba(0, 0, 0, 0.52);
    margin: 0;
}
.moment-report-lists {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.moment-list-block {
    margin-top: 0;
}
.moment-card--report .moment-list-block,
.moment-knowledge-copy .moment-list-block {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(188, 160, 255, 0.16);
    background:
        radial-gradient(circle at 0% 0%, rgba(105, 75, 173, 0.18), transparent 40%),
        rgba(17, 13, 30, 0.42);
}
.moment-list-block h3 {
    font-family: var(--font-d);
    font-size: .92rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(236, 246, 255, 0.96);
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.88),
        0 0 10px rgba(0, 0, 0, 0.42),
        0 0 18px rgba(121, 198, 255, 0.14);
    margin-bottom: 10px;
}
.moment-list-block ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.moment-list-block li {
    position: relative;
    padding-left: 15px;
    color: rgba(243, 249, 255, 0.94);
    font-size: clamp(1.08rem, 1rem + .16vw, 1.18rem);
    font-weight: 560;
    line-height: 1.64;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.92),
        0 2px 10px rgba(0, 0, 0, 0.44);
}
.moment-list-block li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(186, 128, 255, 0.78);
}
.moment-card--moon-memory {
    padding: 24px;
}
.moment-report-head--moon-memory {
    align-items: flex-start;
    gap: 18px;
}
.moment-knowledge-head-main {
    display: grid;
    gap: 6px;
}
.moment-knowledge-note {
    max-width: 720px;
    color: rgba(221, 233, 255, 0.78);
    font-size: 1.04rem;
    line-height: 1.68;
    font-weight: 560;
}
.moment-score--moon {
    white-space: nowrap;
}
.moment-moon-memory-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}
.moment-moon-memory-toggle {
    appearance: none;
    border: 1px solid rgba(151, 213, 255, 0.34);
    background: linear-gradient(135deg, rgba(23, 33, 70, 0.86), rgba(10, 15, 36, 0.92));
    color: rgba(235, 245, 255, 0.96);
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(3, 6, 20, 0.26), inset 0 1px 0 rgba(255,255,255,0.06);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.moment-moon-memory-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(214, 184, 255, 0.42);
    background: linear-gradient(135deg, rgba(42, 58, 112, 0.9), rgba(22, 24, 52, 0.96));
    box-shadow: 0 14px 32px rgba(3, 6, 20, 0.32), 0 0 18px rgba(120, 173, 255, 0.16);
}
.moment-moon-memory-model {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(22, 29, 56, 0.78);
    border: 1px solid rgba(117, 176, 255, 0.22);
    color: rgba(228, 242, 255, 0.92);
    font-size: .84rem;
    letter-spacing: .03em;
    text-align: center;
}
.moment-knowledge-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(182, 152, 240, 0.16);
}
.moment-moon-phase {
    margin: 0;
}
.moment-knowledge-orbit-copy {
    display: grid;
    gap: 6px;
    justify-items: start;
}
.moment-date--moon {
    margin-top: 0;
    font-size: 1rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: rgba(228, 237, 255, 0.84);
}
.moment-knowledge-phase-note {
    color: rgba(221, 233, 255, 0.74);
    font-size: 1.02rem;
    line-height: 1.66;
    font-weight: 560;
}
.moment-moon-memory-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.moment-moon-memory-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(97, 64, 170, 0.32);
    border: 1px solid rgba(196, 152, 255, 0.18);
    color: rgba(242, 232, 255, 0.92);
    font-size: .78rem;
    letter-spacing: .02em;
}
.moment-moon-memory-archive {
    display: grid;
    gap: 6px;
    margin-top: 16px;
}
.moment-moon-memory-archive label {
    color: rgba(236, 246, 255, 0.9);
    font-family: var(--font-d);
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.moment-moon-memory-select {
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(180, 145, 240, 0.22);
    background: rgba(12, 11, 23, 0.74);
    color: rgba(243, 235, 255, 0.94);
    padding: 10px 12px;
}
.moment-knowledge-body {
    margin-top: 20px;
}
.moment-moon-memory-layout {
    display: flex;
    align-items: stretch;
    gap: 18px;
    margin-top: 0;
}
.moment-moon-memory-layout.is-rail-disabled .moment-moon-memory-detail {
    max-width: 100%;
}
.moment-moon-memory-layout.is-rail-collapsed .moment-moon-memory-rail {
    flex-basis: 0;
    max-width: 0;
    opacity: 0;
    transform: translateX(18px);
    pointer-events: none;
    margin: 0;
}
.moment-moon-memory-detail {
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 20px;
    border: 1px solid rgba(205, 168, 255, 0.14);
    background: linear-gradient(145deg, rgba(25, 18, 40, 0.7), rgba(12, 10, 23, 0.7));
    padding: 18px;
    margin: 0;
}
.moment-knowledge-copy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    max-width: var(--landing-copy-max);
    margin: 0 auto;
}
.moment-knowledge-copy > .moment-list-block--discovery,
.moment-knowledge-copy > .moment-knowledge-summary,
.moment-knowledge-copy > .moment-moon-memory-emotion {
    grid-column: 1 / -1;
}
.moment-knowledge-copy > .moment-list-block:last-child {
    grid-column: 1 / -1;
}
.moment-list-block--discovery {
    margin-bottom: 0;
}
.moment-moon-memory-discovery {
    color: rgba(245, 239, 255, 0.95);
    background:
        radial-gradient(circle at top left, rgba(128, 219, 255, 0.12), transparent 55%),
        linear-gradient(145deg, rgba(62, 84, 145, 0.26), rgba(83, 48, 136, 0.34));
    border: 1px solid rgba(167, 187, 255, 0.2);
    border-radius: 14px;
    padding: 12px 14px;
    line-height: 1.68;
    font-size: clamp(1.08rem, 1.01rem + .24vw, 1.18rem);
    font-weight: 500;
    letter-spacing: .003em;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.92),
        0 0 14px rgba(104, 76, 177, 0.18),
        0 2px 12px rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 12px 30px rgba(4, 8, 22, 0.18);
}
.moment-moon-memory-emotion {
    margin-top: 0;
    color: rgba(231, 222, 248, 0.92);
    font-size: clamp(1.07rem, .98rem + .24vw, 1.2rem);
    font-weight: 700;
    line-height: 1.74;
    letter-spacing: .003em;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.94),
        0 0 16px rgba(105, 74, 173, 0.18),
        0 2px 12px rgba(0, 0, 0, 0.44);
}
.moment-moon-memory-delta {
    color: rgba(233, 224, 248, 0.92);
    background: rgba(71, 49, 119, 0.24);
    border: 1px solid rgba(198, 157, 255, 0.1);
    border-radius: 12px;
    padding: 11px 12px;
    font-size: clamp(1rem, .95rem + .14vw, 1.08rem);
    font-weight: 500;
    line-height: 1.62;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.92),
        0 0 12px rgba(101, 72, 167, 0.16),
        0 2px 10px rgba(0, 0, 0, 0.36);
}
.moment-moon-memory-rail {
    min-width: 0;
    flex: 0 0 34%;
    max-width: 360px;
    overflow: hidden;
    transition: flex-basis .24s ease, max-width .24s ease, opacity .18s ease, transform .24s ease, margin .24s ease;
}
.moment-moon-memory-rail h3 {
    margin: 2px 0 12px;
    color: rgba(236, 246, 255, 0.94);
    font-family: var(--font-d);
    font-size: .98rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.9),
        0 0 12px rgba(0, 0, 0, 0.44),
        0 0 16px rgba(113, 194, 255, 0.12);
}
.moment-moon-memory-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 620px;
    overflow: auto;
    padding-right: 4px;
}
.moment-moon-memory-item {
    width: 100%;
    text-align: left;
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid rgba(197, 159, 255, 0.14);
    background: rgba(18, 14, 31, 0.6);
    color: rgba(243, 235, 255, 0.92);
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.moment-moon-memory-item:hover {
    transform: translateY(-1px);
    border-color: rgba(211, 176, 255, 0.28);
    box-shadow: 0 14px 28px rgba(8, 6, 20, 0.24);
}
.moment-moon-memory-item.is-active {
    border-color: rgba(246, 214, 134, 0.48);
    background: linear-gradient(145deg, rgba(69, 47, 121, 0.56), rgba(20, 15, 36, 0.84));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 14px 28px rgba(8, 6, 20, 0.24);
}
.moment-moon-memory-item-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    font-size: .76rem;
    color: rgba(226, 211, 246, 0.68);
}
.moment-moon-memory-item-phase {
    display: block;
    font-size: .84rem;
    color: rgba(250, 238, 255, 0.88);
    margin-bottom: 6px;
}
.moment-moon-memory-item-headline {
    display: block;
    color: #fff;
    font-size: 1.04rem;
    line-height: 1.42;
    font-weight: 600;
}
.moment-moon-memory-empty {
    color: rgba(219, 205, 238, 0.72);
    font-size: .92rem;
}
.moment-card--moon-memory .moment-energy {
    color: rgba(235, 226, 250, 0.93);
    font-size: clamp(1.1rem, 1rem + .26vw, 1.26rem);
    font-weight: 500;
    line-height: 1.8;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.94),
        0 0 18px rgba(100, 73, 169, 0.22),
        0 10px 24px rgba(0, 0, 0, 0.22);
}
.moment-card--moon-memory .moment-list-block h3 {
    color: rgba(230, 243, 255, 0.94);
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.9),
        0 0 12px rgba(92, 146, 255, 0.14),
        0 0 18px rgba(111, 78, 182, 0.16);
}
.moment-card--moon-memory .moment-list-block li {
    color: rgba(228, 219, 244, 0.92);
    font-size: clamp(1.02rem, .98rem + .14vw, 1.12rem);
    line-height: 1.64;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.92),
        0 0 12px rgba(95, 68, 161, 0.16);
}

@media (max-width: 980px) {
    .moment-overview-grid {
        grid-template-columns: 1fr;
    }
    .moment-report-lists {
        grid-template-columns: 1fr;
    }
    .moment-knowledge-overview {
        align-items: flex-start;
        flex-direction: column;
    }
    .moment-knowledge-copy {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .security-card { grid-template-columns: 1fr; gap: 10px; }
    .landing-hero-stage {
        padding: 18px 14px 28px;
    }
    .landing-hero-aurora {
        left: 14px;
        right: 14px;
        height: 420px;
    }
    .landing-zodiac-shell {
        margin-bottom: 18px;
    }
    .landing-zodiac-kicker {
        margin-bottom: 10px;
        font-size: .76rem;
    }
    .landing-zodiac-shell .moment-wheel-svg {
        width: min(100%, 440px);
    }
    .landing-zodiac-caption {
        font-size: 1.26rem;
        line-height: 1.42;
    }
    .location-search-card {
        margin-top: 14px;
        padding: 14px;
        border-radius: 20px;
    }
    .location-search-input-wrap {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 8px;
    }
    .location-search-card[data-show-submit="0"] .location-search-input-wrap {
        grid-template-columns: 30px minmax(0, 1fr);
    }
    .location-search-gps,
    .location-search-submit {
        grid-column: span 2;
        width: 100%;
    }
    .location-search-result {
        flex-direction: column;
        align-items: flex-start;
    }
    .landing-hero-title {
        font-size: 1.92rem;
    }
    .landing-hero-pills {
        gap: 8px;
        margin-top: 16px;
    }
    .landing-hero-pill {
        width: 100%;
        justify-content: flex-start;
    }
    .landing-model-lock {
        margin-top: 10px;
        font-size: .86rem;
    }
    .landing-knowledge-browser {
        padding: 0 14px 24px;
    }
    .moment-card--landing-knowledge {
        padding: 16px;
    }
    .landing-knowledge-head {
        gap: 14px;
    }
    .landing-knowledge-tools {
        align-items: flex-start;
    }
    .landing-knowledge-timeline-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .moon-page-stage {
        padding: 22px 14px 12px;
    }
    .moon-page-head {
        margin-bottom: 14px;
    }
    .moon-page-head h1.moon-page-zodiac-caption {
        font-size: clamp(1.58rem, 7vw, 2.22rem);
        line-height: 1.18;
    }
    .moon-page-subtitle {
        font-size: 1.16rem;
        line-height: 1.7;
    }
    .moon-page-orbit-shell {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px 18px;
        border-radius: 24px;
    }
    .moon-page-orbit-copy {
        text-align: center;
    }
    .moon-page-orbit-copy h2 {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
    }
    .moon-page-vector {
        width: min(100%, 330px);
    }
    .moon-page-browser {
        padding: 0 14px 38px;
    }
    .landing-highlights { padding: 0 14px 76px; gap: 16px; }
    .timeline-showcase-card {
        grid-template-columns: 1fr;
        padding: 14px;
        gap: 12px;
        border-radius: 16px;
    }
    .timeline-showcase-copy h3 {
        font-size: 1.18rem;
    }
    .timeline-showcase-copy p {
        font-size: .95rem;
    }
    .timeline-showcase-kicker {
        font-size: .72rem;
        letter-spacing: .04em;
    }
    .timeline-showcase-head {
        margin-bottom: 14px;
        gap: 10px;
    }
    .timeline-showcase-icon {
        width: 40px;
        height: 40px;
    }
    .timeline-showcase-visual {
        min-height: 0;
    }
    .timeline-showcase-visual img {
        aspect-ratio: 16 / 10;
    }
    .lex-wrap {
        padding: 24px 14px 72px;
    }
    .lex-hero {
        padding: 18px 14px;
        border-radius: 16px;
    }
    .lex-hero-head {
        gap: 10px;
        margin-bottom: 12px;
    }
    .lex-hero-icon {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }
    .lex-hero-label {
        font-size: .84rem;
        letter-spacing: .06em;
    }
    .lex-hero h1 {
        margin-bottom: 12px;
        font-size: clamp(2rem, 10.2vw, 2.95rem);
        line-height: 1.04;
        max-width: 12ch;
    }
    .lex-block {
        margin-top: 14px;
        padding: 14px;
        border-radius: 14px;
    }
    .lex-grid--planets,
    .lex-grid--aspects,
    .lex-grid--signs,
    .lex-study-grid,
    .lex-luminary-grid {
        grid-template-columns: 1fr;
    }
    .lex-group summary {
        padding: 10px;
    }
    .lex-group-body {
        padding: 0 10px 10px;
    }
    .lex-transit-layer-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .lex-transit-layer-meta {
        text-align: left;
    }
    .transit-history-label-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .transit-history-meta {
        text-align: left;
    }
    .landing-moment {
        padding: 0 14px;
        margin-top: 8px;
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .moment-hero-stage {
        padding: 26px 14px 34px;
    }
    .moment-hero-aurora {
        left: 14px;
        right: 14px;
        height: 420px;
    }
    .moment-head {
        margin: 26px auto 36px;
    }
    .moment-wheel-stage-headline {
        margin-bottom: 18px;
    }
    .moment-wheel-stage-title-intro {
        font-size: .92rem;
        letter-spacing: .08em;
    }
    .moment-wheel-stage-location {
        max-width: 100%;
        font-size: clamp(2.2rem, 9vw, 3rem);
    }
    .moment-hero-pills {
        gap: 8px;
    }
    .moment-hero-pill {
        width: 100%;
        justify-content: flex-start;
    }
    .moment-report-shell,
    .moment-bridge-shell,
    .moment-knowledge-browser {
        padding: 8px 14px 24px;
    }
    .moment-card--report,
    .moment-card--moon-memory {
        padding: 16px;
    }
    .moment-card-top {
        padding: 18px 16px 0;
    }
    .moment-card--aspects {
        padding: 0 12px 14px;
    }
    .moment-wheel-wrap {
        padding: 4px 10px 12px;
    }
    .landing-moment-meta { margin: 0 14px; font-size: .78rem; }
    .moment-mini-link { padding: 5px 10px; font-size: .7rem; }
    .features-grid { grid-template-columns: 1fr; }
    .hero-shell { padding: 24px 16px 22px; border-radius: 18px; }
    .hero-shell--landing {
        padding: 24px 18px 20px;
    }
    .hero-subtitle { font-size: 1rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-hero { width: 100%; max-width: 280px; text-align: center; }
    .wheel-sign { font-size: 34px; }
    .wheel-planet-symbol { font-size: 40px; }
}

@media (max-width: 980px) {
    .landing-knowledge-copy {
        grid-template-columns: 1fr;
    }
    .hero-pro .hero-actions {
        grid-template-columns: 1fr;
    }
    .hero-pro .hero-actions .hero-pro-cta {
        max-width: none;
    }
}

/* Auth extras */
.auth-alt { text-align: center; margin-top: 20px; font-size: .85rem; color: var(--tx-3); }
.auth-alt a { color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-alt a:hover { text-decoration: underline; }
.field-error { color: var(--red); font-size: .78rem; margin-top: 3px; }
.auth-success-note {
    background: rgba(16,185,129,.08);
    border: 1px solid rgba(16,185,129,.3);
    border-radius: var(--r-sm);
    padding: 10px 14px;
    color: #34d399;
    font-size: .88rem;
    margin-bottom: 16px;
}

/* ═══ FORM (index) ═══ */
.form-section { max-width: 600px; margin: -16px auto 60px; padding: 0 20px; position: relative; z-index: 1; }
.form-card {
    background: rgba(26,26,46,0.7);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(255,255,255,0.06); border-radius: var(--r-lg);
    padding: 36px; box-shadow: 0 16px 64px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,0.04);
    position: relative; overflow: hidden;
}
.form-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent));
}
.form-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.2vw, 1.9rem);
    font-weight: 600;
    line-height: 1.08;
    margin-bottom: 28px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group-full { grid-column: 1/-1; position: relative; }
.form-group label {
    font-family: var(--font-d);
    font-size: .95rem;
    font-weight: 500;
    color: rgba(220, 209, 241, 0.8);
}
.form-input {
    width: 100%; padding: 11px 14px;
    background: rgba(12,12,22,0.6); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--r-sm); color: var(--tx-1); font-family: var(--font); font-size: 1rem;
    transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,92,246,.12); }
.form-input::placeholder { color: var(--tx-3); }

.place-results {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(26,26,46,0.92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.06); border-radius: var(--r-sm);
    box-shadow: 0 8px 32px rgba(0,0,0,.5); z-index: 50; max-height: 180px; overflow-y: auto; margin-top: 4px;
}
.place-result-item {
    padding: 9px 14px; font-size: .82rem; color: var(--tx-2); cursor: pointer;
    transition: background .12s; border-bottom: 1px solid var(--border);
}
.place-result-meta { color: var(--tx-3); font-size: .8rem; }
.place-result-item:last-child { border-bottom: none; }
.place-result-item:hover { background: var(--bg-4); color: var(--tx-1); }

.btn-primary {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff; border: none; border-radius: var(--r-md);
    font-family: var(--font-d); font-size: .95rem; font-weight: 600;
    cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(139,92,246,.3); }
.btn-icon { font-size: 1rem; }

.alert-error {
    background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3);
    border-radius: var(--r-sm); padding: 10px 14px; color: var(--red); font-size: .88rem; margin-bottom: 16px;
}

.profiles-section { margin-top: 40px; }
.profiles-title { font-family: var(--font-d); font-size: 1rem; font-weight: 600; margin-bottom: 12px; color: var(--tx-2); }
.profiles-grid { display: grid; gap: 10px; }
.profile-card {
    display: flex; align-items: center; gap: 14px; padding: 14px 18px;
    background: rgba(26,26,46,0.5); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--r-md);
    text-decoration: none; color: var(--tx-1); transition: border-color .2s, transform .2s;
}
.profile-card:hover { border-color: var(--glow); transform: translateY(-1px); }
.profile-icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.profile-info { display: flex; flex-direction: column; gap: 1px; }
.profile-name { font-weight: 600; font-size: .9rem; }
.profile-date,.profile-place { font-size: .78rem; color: var(--tx-3); }

/* ═══ TIMELINE HEADER ═══ */
.tl-header {
    padding: 24px 20px 16px;
    background: rgba(12,12,22,0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.tl-header--analysis {
    padding-bottom: 24px;
}
.tl-header-inner {
    max-width: 1400px;
    margin: 0 auto;
}
.back-link {
    display: inline-block; color: var(--tx-3); text-decoration: none; font-size: .82rem;
    margin-bottom: 12px; transition: color .15s;
}
.back-link:hover { color: var(--tx-1); }
.tl-header-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: center;
    gap: 16px;
}
.tl-header-row--analysis {
    align-items: flex-start;
    gap: 24px;
}
.tl-profile { display: flex; align-items: center; gap: 12px; }
.tl-profile--analysis {
    align-items: flex-start;
}
.tl-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem;
}
.tl-name { font-family: var(--font-d); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.tl-meta { font-size: .8rem; color: var(--tx-3); }
.tl-meta--analysis {
    margin: 10px 0 0;
    font-family: var(--font-d);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .01em;
    color: rgba(244, 247, 255, 0.96);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.66), 0 0 14px rgba(178, 214, 255, 0.24);
}

/* display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    padding-top: 4px; */

.tl-analysis-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    padding-top: 4px;
}
.tl-analysis-side .moment-moon-phase {
    margin: 0;
}
.tl-moon-illumination {
    margin: 0;
    font-family: var(--font-d);
    font-size: .98rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(241, 244, 255, 0.92);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
}
.tl-header-moon {
    --moon-beam-width: 300px;
    --moon-edge-pad: 22px;
    --moon-phase: 0.5;
    --moon-track: calc(var(--moon-beam-width) - (var(--moon-edge-pad) * 2));
    --moon-pos: calc(var(--moon-edge-pad) + (var(--moon-track) * var(--moon-phase)));
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
    gap: 7px;
    width: var(--moon-beam-width);
    min-width: var(--moon-beam-width);
    padding-top: 2px;
}
.tl-header-moon--orb {
    width: auto;
    min-width: 0;
    gap: 10px;
    padding-top: 0;
}
.tl-header-moon--orb::before {
    display: none;
}
.tl-header-moon--orb .tl-header-moon-icon {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    font-size: 1.88rem;
    animation: tlMoonFloatOrb 3.4s ease-in-out infinite;
    transition: filter .28s ease;
}
.tl-header-moon--orb .tl-header-moon-label {
    margin-top: 0;
    text-align: center;
}
@keyframes tlMoonFloatOrb {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
.tl-header-moon::before {
    content: "";
    position: absolute;
    left: var(--moon-pos);
    top: 12px;
    transform: translateX(-50%);
    width: 84px;
    height: 24px;
    border-radius: 999px;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.8) 0%, rgba(210, 232, 255, 0.34) 52%, rgba(160, 206, 255, 0) 100%);
    filter: blur(4px);
    opacity: .92;
    transition: left .55s cubic-bezier(.22, .61, .36, 1);
}
.tl-header-moon-icon {
    position: absolute;
    left: var(--moon-pos);
    top: -20px;
    transform: translateX(-50%);
    font-size: 1.72rem;
    line-height: 1;
    z-index: 1;
    filter: drop-shadow(0 0 8px rgba(255, 252, 235, 0.46)) drop-shadow(0 0 16px rgba(194, 226, 255, 0.4));
    animation: tlMoonFloat 3.4s ease-in-out infinite;
    transition: left .55s cubic-bezier(.22, .61, .36, 1), filter .28s ease;
}
@keyframes tlMoonFloat {
    0% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -3px); }
    100% { transform: translate(-50%, 0); }
}
.tl-header-moon-beam {
    margin-top: 16px;
    width: var(--moon-beam-width);
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(8, 10, 18, 0.95) 0%,
        rgba(255, 255, 255, 0.98) 50%,
        rgba(8, 10, 18, 0.95) 100%
    );
    box-shadow:
        0 0 16px rgba(255, 255, 255, 0.32),
        0 0 30px rgba(255, 255, 255, 0.24),
        inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}
.tl-header-moon-label {
    margin-top: 3px;
    font-family: var(--font-d);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: rgba(241, 244, 255, 0.9);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.24);
}
.tl-day-select-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    margin-left: 0;
    justify-self: end;
}
.tl-analysis-side .tl-day-select-wrap {
    justify-content: flex-end;
    margin-top: 4px;
}
.ai-section-wrap--timeline-top {
    max-width: none;
    padding: 18px 0 0;
}
.tl-model-switch.ai-compare-controls {
    margin: 0;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
.tl-model-switch .ai-compare-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}
.tl-model-switch .ai-compare-chip {
    padding: 9px 15px;
    font-size: .82rem;
    white-space: nowrap;
}
.tl-model-switch-hint {
    display: block;
    margin: 0;
    padding-left: 2px;
}
.tl-model-switch-hint.ai-compare-hint--error {
    color: #fecaca;
}
.tl-day-select-wrap .tl-range-switch {
    margin-left: 0;
    flex: 0 0 auto;
}
.tl-day-label { font-size: .82rem; color: var(--tx-3); }
.tl-mobile-calendar {
    position: relative;
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding: 12px 12px 13px;
    border-radius: 18px;
    border: 1px solid rgba(127, 180, 255, 0.36);
    background:
        radial-gradient(circle at 18% 18%, rgba(124, 95, 246, 0.28), transparent 48%),
        radial-gradient(circle at 82% 76%, rgba(107, 219, 255, 0.22), transparent 45%),
        linear-gradient(150deg, rgba(20, 26, 60, 0.92), rgba(10, 13, 34, 0.95));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.14),
        0 14px 34px rgba(5, 8, 24, 0.5),
        0 0 28px rgba(77, 150, 255, 0.2);
    animation: tlCalendarPulse 6s ease-in-out infinite;
}
@keyframes tlCalendarPulse {
    0% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 14px 34px rgba(5, 8, 24, 0.5), 0 0 18px rgba(77, 150, 255, 0.16); }
    50% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 16px 38px rgba(5, 8, 24, 0.55), 0 0 30px rgba(112, 193, 255, 0.28); }
    100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 14px 34px rgba(5, 8, 24, 0.5), 0 0 18px rgba(77, 150, 255, 0.16); }
}
.tl-mobile-calendar-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    color: rgba(229, 241, 255, 0.9);
}
.tl-mobile-calendar-trigger {
    width: 100%;
    min-height: 58px;
    padding: 12px 15px;
    border-radius: 13px;
    border: 1px solid rgba(165, 204, 255, 0.42);
    background:
        linear-gradient(145deg, rgba(25, 34, 71, 0.92), rgba(12, 16, 42, 0.95));
    color: #f5f9ff;
    font-family: var(--font-d);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .015em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 10px 24px rgba(7, 12, 34, 0.45);
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.tl-mobile-calendar-trigger:hover {
    border-color: rgba(168, 230, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.24), 0 14px 30px rgba(9, 16, 42, 0.52), 0 0 16px rgba(104, 184, 255, 0.2);
}
.tl-mobile-calendar-trigger:focus-visible {
    border-color: rgba(156, 222, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(104, 184, 255, 0.24), 0 14px 34px rgba(11, 18, 40, 0.5);
}
.tl-mobile-calendar-trigger-icon {
    font-size: 1.04rem;
    filter: drop-shadow(0 0 8px rgba(188, 231, 255, 0.34));
}
.tl-mobile-calendar-trigger-text {
    flex: 1;
    text-align: left;
    text-transform: lowercase;
}
.tl-mobile-calendar-input {
    width: 100%;
    min-height: 58px;
    padding: 12px 15px;
    border-radius: 13px;
    border: 1px solid rgba(165, 204, 255, 0.42);
    background:
        linear-gradient(145deg, rgba(25, 34, 71, 0.92), rgba(12, 16, 42, 0.95));
    color: #f5f9ff;
    font-family: var(--font-d);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .015em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 10px 24px rgba(7, 12, 34, 0.45);
    outline: none;
}
.tl-mobile-calendar-input:focus {
    border-color: rgba(156, 222, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(104, 184, 255, 0.24), 0 14px 34px rgba(11, 18, 40, 0.5);
}
.tl-mobile-calendar-input::-webkit-calendar-picker-indicator {
    width: 24px;
    height: 24px;
    cursor: pointer;
    filter: invert(.96) sepia(.33) saturate(1.25) hue-rotate(173deg);
    opacity: .95;
}
.tl-range-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid rgba(113, 196, 255, 0.35);
    background: linear-gradient(135deg, rgba(14, 24, 52, 0.82), rgba(28, 20, 60, 0.78));
    box-shadow: 0 0 0 1px rgba(92, 160, 255, 0.12), 0 0 24px rgba(57, 150, 255, 0.22);
}
.tl-range-chip {
    min-width: 86px;
    text-decoration: none;
    text-align: center;
}
.tl-range-switch .ai-compare-chip {
    padding: 7px 13px;
    font-size: .8rem;
    color: rgba(220, 231, 255, 0.84);
    border-color: rgba(132, 152, 196, 0.34);
    background: linear-gradient(135deg, rgba(18, 24, 52, 0.9), rgba(22, 22, 48, 0.9));
    transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}

.tl-range-switch .ai-compare-chip:hover,
.tl-range-switch .ai-compare-chip.is-selected,
.tl-range-switch .ai-compare-chip[aria-current="page"] {
    border-color: rgba(125, 211, 252, 0.62);
    color: #d9f8ff;
    background: linear-gradient(135deg, rgba(31, 54, 108, 0.78), rgba(19, 34, 78, 0.85));
    box-shadow:
        0 0 0 1px rgba(125, 211, 252, 0.24),
        0 0 18px rgba(93, 167, 255, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tl-range-switch .ai-compare-chip:focus-visible {
    outline: 2px solid rgba(125, 211, 252, 0.75);
    outline-offset: 2px;
}
.tl-day-select {
    padding: 8px 12px; background: rgba(26,26,46,0.6); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--r-sm); color: var(--tx-1); font-family: var(--font); font-size: .85rem;
    cursor: pointer; outline: none; max-width: 240px;
}
.tl-day-select:focus { border-color: var(--accent); }
/* ═══ GANTT CHART ═══ */
.gantt-section {
    padding: 18px 0 0;
    border-top: 1px solid rgba(124, 167, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(8, 10, 19, 0.88), rgba(5, 7, 14, 0.94)),
        radial-gradient(circle at 50% 0%, rgba(64, 114, 186, 0.08), transparent 34%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.gantt-head {
    max-width: 1400px;
    margin: 0 auto 8px;
    padding: 0 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.gantt-head--timeline {
    padding: 14px 16px;
    margin-bottom: 8px;
    border-radius: 18px;
    border: 1px solid rgba(122, 177, 255, 0.25);
    background:
        radial-gradient(circle at 84% 76%, rgba(101, 218, 255, 0.08), transparent 40%),
        radial-gradient(circle at 10% 18%, rgba(54, 98, 168, 0.07), transparent 34%),
        linear-gradient(145deg, rgba(11, 14, 27, 0.92), rgba(7, 9, 18, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 14px 30px rgba(4, 8, 21, 0.22);
    overflow: hidden;
}
.gantt-head--timeline::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 8%, rgba(255, 255, 255, 0.04) 52%, transparent 92%);
    opacity: .24;
}
.gantt-head-intro {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}
.gantt-section-title {
    margin: 0;
    font-family: var(--font-d);
    font-size: 1.16rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: rgba(236, 242, 255, 0.96);
}
.gantt-section-subtitle {
    margin: 0;
    font-size: .8rem;
    color: rgba(196, 215, 245, 0.82);
    line-height: 1.45;
}
.gantt-head--analysis .gantt-axis-title {
    width: 100%;
    text-align: center;
    font-size: 1.22rem;
    letter-spacing: .02em;
    text-transform: none;
    color: rgba(235, 241, 255, 0.96);
}
.gantt-section--moon {
    padding-top: 6px;
    border-top: none;
    background: transparent;
}
.gantt-head--moon {
    margin-bottom: 8px;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.gantt-head--moon .gantt-axis-title {
    font-size: 1.06rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(225, 235, 255, 0.92);
}
.gantt-wrapper--moon {
    border-top: none;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.gantt-moon-phase-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .74;
    mix-blend-mode: normal;
    transition: background .28s ease-out, opacity .2s ease-out;
}
.gantt-wrapper--moon > :not(.gantt-moon-phase-overlay) {
    position: relative;
    z-index: 1;
}
.gantt-bar--moon-only {
    box-shadow:
        0 0 0 1px rgba(206, 224, 255, 0.09),
        0 12px 22px rgba(10, 14, 36, 0.2),
        inset 0 0 24px rgba(160, 196, 255, 0.1);
}
.gantt-head-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 1;
    min-height: 40px;
    padding-top: 4px;
}
.gantt-profile-block {
    display: flex;
    align-items: center;
    min-width: 0;
    width: 100%;
}
.gantt-profile-inline {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}
.gantt-head-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
}
.gantt-profile-name {
    margin: 0;
    font-family: var(--font-d);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: rgba(233, 242, 255, 0.94);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.56);
}
.gantt-profile-meta-item {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(121, 163, 232, 0.32);
    background: linear-gradient(135deg, rgba(24, 34, 78, 0.58), rgba(15, 20, 51, 0.64));
    font-size: .77rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: rgba(214, 232, 255, 0.92);
}
.gantt-profile-meta-item--place {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gantt-profile-cta {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(131, 194, 255, 0.45);
    background: linear-gradient(135deg, rgba(30, 53, 102, 0.74), rgba(17, 35, 76, 0.8));
    color: #e8f4ff;
    font-family: var(--font-d);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 6px 14px rgba(8,12,34,.26);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.gantt-profile-cta:hover {
    border-color: rgba(172, 225, 255, 0.86);
    background: linear-gradient(135deg, rgba(42, 71, 132, 0.85), rgba(26, 49, 102, 0.9));
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 10px 22px rgba(8,12,34,.34), 0 0 14px rgba(104,184,255,.24);
}
.gantt-profile-cta--edit {
    border-color: rgba(255, 211, 136, 0.5);
    background: linear-gradient(135deg, rgba(70, 48, 20, 0.72), rgba(56, 39, 16, 0.82));
    color: #fff1d0;
}
.gantt-profile-cta--edit:hover {
    border-color: rgba(255, 226, 163, 0.86);
    background: linear-gradient(135deg, rgba(98, 68, 25, 0.86), rgba(78, 53, 20, 0.9));
}
.gantt-profile-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.gantt-profile-switch-label {
    font-size: .65rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(191, 212, 247, 0.8);
}
.gantt-profile-select {
    appearance: none;
    min-width: 148px;
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 9px;
    border: 1px solid rgba(127, 187, 255, 0.34);
    background: linear-gradient(135deg, rgba(25, 34, 77, 0.9), rgba(16, 21, 49, 0.92));
    color: #eff6ff;
    font-family: var(--font-d);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .01em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 16px rgba(8, 12, 34, 0.24);
    cursor: pointer;
    outline: none;
}
.gantt-profile-select:focus-visible {
    border-color: rgba(168, 226, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(96, 170, 255, 0.2), 0 10px 24px rgba(8, 12, 34, 0.34);
}
.gantt-current-day-text {
    margin: 0;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-d);
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: .01em;
    color: #f4f7ff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.66), 0 0 14px rgba(178, 214, 255, 0.24);
}
.gantt-head--timeline .gantt-current-day-text {
    flex: 1 1 auto;
    text-align: center;
}
.gantt-axis-title {
    text-align: center;
    margin: 0;
    width: auto;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: none;
    color: inherit;
}
.gantt-axis-trigger {
    appearance: none;
    border: 1px solid rgba(123, 193, 255, 0.36);
    background: linear-gradient(135deg, rgba(21, 32, 70, 0.9), rgba(17, 20, 48, 0.88));
    margin: 0;
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #eaf5ff;
    font-family: var(--font-d);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    text-align: left;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 9px 22px rgba(8, 12, 34, 0.36);
    transition: border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.gantt-axis-trigger--hero {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 14px;
}
.gantt-head--timeline .gantt-axis-trigger {
    width: auto;
    flex: 0 0 auto;
}
.gantt-axis-trigger-icon {
    font-size: .88rem;
    filter: drop-shadow(0 0 8px rgba(193, 233, 255, 0.34));
}
.gantt-axis-trigger-text {
    font-size: .78rem;
    line-height: 1;
}
.gantt-axis-trigger:hover {
    border-color: rgba(160, 221, 255, 0.72);
    color: #ffffff;
    background: linear-gradient(135deg, rgba(34, 60, 124, 0.88), rgba(22, 40, 94, 0.9));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 12px 24px rgba(9, 16, 42, 0.48), 0 0 20px rgba(104, 184, 255, 0.24);
    transform: translateY(-1px);
}
.gantt-axis-trigger:focus-visible {
    outline: 2px solid rgba(145, 213, 255, 0.86);
    outline-offset: 3px;
    border-radius: 8px;
}
.gantt-axis-calendar-input {
    position: absolute;
    right: 0;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    border: 0;
    padding: 0;
    margin: 0;
}
.gantt-wrapper {
    position: relative;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: auto;
    scrollbar-color: rgba(139,92,246,.5) rgba(255,255,255,.05);
    cursor: grab;
}
.gantt-wrapper::-webkit-scrollbar { height: 14px; }
.gantt-wrapper::-webkit-scrollbar-track { background: rgba(255,255,255,.04); border-radius: 7px; }
.gantt-wrapper::-webkit-scrollbar-thumb { background: rgba(139,92,246,.45); border-radius: 7px; border: 2px solid var(--bg-0); }
.gantt-wrapper::-webkit-scrollbar-thumb:hover { background: rgba(139,92,246,.65); }

.gantt-header {
    display: flex;
    position: relative; z-index: 10;
    padding-top: 30px;
    overflow: visible;
    background: rgba(12,12,22,0.8);
    border-bottom: 2px solid rgba(139,92,246,0.25);
}
.gantt-label-header {
    width: 0; min-width: 0; padding: 0; border: none;
}
.gantt-days-header {
    display: flex;
    overflow: visible;
}
.gantt-day-cell {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 13px 0 11px;
    border-right: 1px solid var(--border);
    font-size: .7rem;
    color: rgba(246, 249, 255, 0.92);
    cursor: pointer;
    background:
        linear-gradient(180deg, rgba(18, 20, 38, 0.52), rgba(8, 10, 24, 0.52));
    border-top: none; border-bottom: none; border-left: none;
    font-family: var(--font);
    transition: background .15s, color .15s;
    position: relative;
    overflow: visible;
    z-index: 1;
}
.gantt-day-cell::before {
    content: "";
    position: absolute;
    left: 16%;
    right: 16%;
    bottom: 7px;
    height: 2px;
    border-radius: 999px;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(8, 10, 18, 0.95) 0%,
        rgba(255, 255, 255, 0.98) 50%,
        rgba(8, 10, 18, 0.95) 100%
    );
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
    opacity: .72;
    transition: opacity .15s ease, box-shadow .15s ease;
}
.gantt-day-cell:hover,
.gantt-day-cell:focus-visible {
    background: #dbaf43 !important;
    color: #140f04 !important;
    z-index: 14;
    box-shadow:
        inset 0 0 0 1px rgba(255, 241, 189, 0.72),
        0 8px 20px rgba(6, 5, 14, 0.32);
}
.gantt-day-cell:hover::before,
.gantt-day-cell:focus-visible::before {
    opacity: 0;
    box-shadow: none;
}
.gantt-day-cell:hover .gdc-num,
.gantt-day-cell:hover .gdc-name,
.gantt-day-cell:focus-visible .gdc-num,
.gantt-day-cell:focus-visible .gdc-name {
    color: #120d03;
    text-shadow: none;
}
.gantt-day-cell--weekend {
    background:
        linear-gradient(180deg, rgba(22, 24, 46, 0.62), rgba(10, 12, 28, 0.66));
    box-shadow: inset 0 -16px 24px rgba(255, 255, 255, 0.03);
}
.gantt-day-cell--moon-full:not(.gantt-day-cell--active) {
    background:
        linear-gradient(180deg, rgba(58, 70, 106, 0.82), rgba(24, 30, 55, 0.9));
    box-shadow:
        inset 0 0 0 1px rgba(222, 238, 255, 0.34),
        inset 0 -18px 28px rgba(255, 255, 255, 0.13);
}
.gantt-day-cell--moon-full:not(.gantt-day-cell--active) .gdc-num,
.gantt-day-cell--moon-full:not(.gantt-day-cell--active) .gdc-name {
    color: #ffffff;
    text-shadow: 0 0 14px rgba(225, 240, 255, 0.34), 0 1px 0 rgba(0, 0, 0, 0.6);
}
.gantt-day-cell--moon-new:not(.gantt-day-cell--active) {
    background:
        linear-gradient(180deg, rgba(6, 8, 18, 0.94), rgba(3, 5, 12, 0.96));
    box-shadow:
        inset 0 0 0 1px rgba(123, 145, 210, 0.34),
        inset 0 -16px 24px rgba(0, 0, 0, 0.32);
}
.gantt-day-cell--moon-new:not(.gantt-day-cell--active) .gdc-num,
.gantt-day-cell--moon-new:not(.gantt-day-cell--active) .gdc-name {
    color: rgba(221, 233, 255, 0.92);
    text-shadow: 0 0 8px rgba(120, 154, 236, 0.22), 0 1px 0 rgba(0, 0, 0, 0.74);
}
.gantt-day-cell--moon-full .gdc-name::after,
.gantt-day-cell--moon-new .gdc-name::after {
    display: block;
    margin-top: 2px;
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1;
    opacity: .9;
}
.gantt-day-cell--moon-full .gdc-name::after {
    content: 'SPLN';
    color: rgba(236, 245, 255, 0.96);
}
.gantt-day-cell--moon-new .gdc-name::after {
    content: 'NOV';
    color: rgba(189, 209, 255, 0.9);
}
.gantt-day-cell--today { color: var(--accent); font-weight: 700; }
.gantt-day-cell--today::after {
    content: ''; position: absolute; bottom: 0; left: 15%; right: 15%;
    height: 3px; background: var(--accent); border-radius: 2px;
}
.gantt-day-cell--active {
    background: #000 !important; color: #fff !important;
    font-weight: 700 !important;
}
.gantt-day-cell--active:hover,
.gantt-day-cell--active:focus-visible {
    background: #dbaf43 !important;
    color: #140f04 !important;
}
.gantt-day-cell--active::before {
    opacity: 1;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.44);
}
.gantt-day-cell--active.gantt-day-cell--today::after {
    background: #fff;
}
.gantt-day-cell--preview:not(.gantt-day-cell--active) {
    background:
        linear-gradient(180deg, rgba(180, 216, 248, 0.1), rgba(130, 170, 228, 0.07)) !important;
    color: #edf8ff !important;
    box-shadow:
        inset 0 0 0 1px rgba(182, 226, 255, 0.14),
        0 2px 8px rgba(42, 78, 134, 0.08),
        0 0 8px rgba(112, 190, 255, 0.06);
}
.gantt-day-cell--preview:not(.gantt-day-cell--active)::before {
    opacity: .42;
    box-shadow: 0 0 8px rgba(178, 227, 255, 0.14);
}
.gantt-day-cell--tap-flash {
    animation: ganttDayTapFlash .34s ease-out;
}
@keyframes ganttDayTapFlash {
    0% {
        box-shadow:
            inset 0 0 0 1px rgba(255, 238, 178, 0.88),
            0 0 0 rgba(255, 221, 126, 0);
    }
    45% {
        box-shadow:
            inset 0 0 0 1px rgba(255, 236, 170, 0.92),
            0 0 24px rgba(255, 226, 135, 0.42);
    }
    100% {
        box-shadow:
            inset 0 0 0 1px rgba(255, 238, 178, 0),
            0 0 0 rgba(255, 221, 126, 0);
    }
}
.gdc-num {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    color: #f8fbff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.72), 0 0 8px rgba(197, 224, 255, 0.16);
}
.gdc-name {
    font-size: .84rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    font-weight: 700;
    color: rgba(240, 246, 255, 0.86);
}
.gdc-weekend-mark {
    position: absolute;
    bottom: 3px;
    width: 22px;
    height: 3px;
    border-radius: 999px;
    transform: translateX(-50%);
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(8, 10, 18, 0.96) 0%,
        rgba(255, 255, 255, 0.98) 50%,
        rgba(8, 10, 18, 0.96) 100%
    );
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    opacity: .88;
}
.gdc-hover-tip {
    position: absolute;
    left: 50%;
    top: -36px;
    transform: translate(-50%, 4px) scale(.95);
    opacity: 0;
    pointer-events: none;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 232, 162, 0.5);
    background: rgba(10, 12, 24, 0.94);
    color: #fff5cf;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(4, 6, 18, 0.42), 0 0 16px rgba(255, 209, 115, 0.26);
    transition: opacity .18s ease, transform .18s ease;
    z-index: 30;
}
.gantt-day-cell:hover .gdc-hover-tip,
.gantt-day-cell:focus-visible .gdc-hover-tip {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}
.gantt-day-cell--week {
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 10px 4px 8px;
    text-align: center;
}
.gantt-day-cell--week-compact {
    align-items: center;
    text-align: center;
    padding: 9px 3px 7px;
}
.gantt-day-cell--week .gdc-num {
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: .01em;
}
.gantt-day-cell--week .gdc-name {
    font-size: .86rem;
    text-transform: none;
    letter-spacing: .005em;
    color: rgba(228, 239, 255, 0.9);
}
.gantt-day-cell--week-compact .gdc-num {
    font-size: .98rem;
}
.gantt-day-cell--week-compact .gdc-name {
    font-size: .76rem;
    letter-spacing: .005em;
}

/* Canvas layout: packed bars */
.gantt-canvas-wrap {
    display: flex;
    min-height: 60px;
    margin-top: 12px;
    position: relative;
}
.gantt-canvas-wrap--scrollable {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(133, 96, 238, 0.72) rgba(255,255,255,0.05);
    box-shadow:
        inset 0 14px 18px -16px rgba(255,255,255,0.12),
        inset 0 -14px 18px -16px rgba(255,255,255,0.12);
}
.gantt-canvas-wrap--scrollable::-webkit-scrollbar {
    width: 10px;
}
.gantt-canvas-wrap--scrollable::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.04);
    border-radius: 999px;
}
.gantt-canvas-wrap--scrollable::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(145, 105, 255, 0.86), rgba(90, 167, 255, 0.72));
    border-radius: 999px;
    border: 2px solid rgba(10, 11, 24, 0.88);
}
.gantt-canvas-wrap--scrollable::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(165, 126, 255, 0.92), rgba(117, 193, 255, 0.82));
}
.gantt-label-stack {
    width: 0; flex-shrink: 0; /* labels su v baroch */
}
.gantt-canvas {
    position: relative;
    flex-shrink: 0;
}
.gantt-grid {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.gantt-grid-line {
    position: absolute; top: 0; bottom: 0; width: 1px;
    background: rgba(255,255,255,0.03);
}
.gantt-hover-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 1;
    background:
        radial-gradient(130% 45% at 50% 6%, rgba(234, 247, 255, 0.1) 0%, rgba(170, 217, 255, 0.04) 44%, rgba(119, 166, 236, 0.015) 74%, transparent 100%),
        linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(182, 226, 255, 0.05) 24%, rgba(180, 223, 255, 0.075) 50%, rgba(182, 226, 255, 0.05) 76%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(180deg, rgba(162, 210, 251, 0.05) 0%, rgba(132, 184, 244, 0.03) 36%, rgba(112, 153, 220, 0.02) 70%, rgba(88, 108, 176, 0.01) 100%);
    box-shadow:
        inset 0 0 0 1px rgba(172, 220, 255, 0.06),
        0 0 10px rgba(104, 180, 246, 0.05);
    transition: left .15s ease, width .15s ease, opacity .15s ease;
}
.gantt-hover-marker.is-visible {
    opacity: .36;
}

.gantt-bar {
    position: absolute;
    border-radius: 5px;
    border: 1px solid;
    cursor: pointer;
    transition: filter .15s, box-shadow .15s, transform .12s;
    z-index: 2;
    min-width: 6px;
    overflow: visible;
}
.gantt-bar--weekly {
    border-radius: 10px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 10px 24px rgba(8, 12, 30, 0.22);
}
.gantt-bar--weekly .gantt-bar-label {
    font-size: 2rem;
    text-shadow: 0 0 9px rgba(215, 230, 255, 0.24);
}
.gantt-bar:hover,
.gantt-bar--show-explain {
    filter: brightness(1.08);
    box-shadow: 0 0 8px rgba(139,92,246,0.16);
}
.gantt-bar--show-explain {
    z-index: 14;
}
.gantt-bar--interactive:focus-visible {
    outline: 2px solid rgba(174, 223, 255, 0.92);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(123, 194, 255, 0.3), 0 0 16px rgba(112, 192, 255, 0.24);
}

.gantt-bar-label {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .2em;
    padding: 0 4px;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    font-family: "Noto Sans Symbols 2", "Segoe UI Symbol", "Noto Sans Symbols", "Apple Symbols", sans-serif;
    color: #fff;
    text-shadow:
        0 2px 3px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(0, 0, 0, 0.72),
        0 0 6px rgba(210, 226, 255, 0.18);
    pointer-events: none;
    z-index: 3;
    min-width: 24px;
    max-width: calc(100% - 8px);
}
.gantt-bar-label-glyphs {
    display: inline-flex;
    align-items: center;
    gap: .2em;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.86));
    transition: opacity .18s ease, transform .18s ease, color .18s ease, text-shadow .18s ease, filter .18s ease;
}
.gantt-bar-glyph,
.gantt-bar-aspect {
    display: inline-block;
    line-height: 1;
}
.gantt-bar:hover .gantt-bar-label-glyphs,
.gantt-bar:focus-visible .gantt-bar-label-glyphs,
.gantt-bar--show-explain .gantt-bar-label-glyphs {
    font-weight: 900;
    opacity: 1;
    transform: none;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.92));
    text-shadow:
        0 2px 3px rgba(0, 0, 0, 0.95),
        0 0 10px rgba(0, 0, 0, 0.86),
        0 0 18px rgba(0, 0, 0, 0.72);
}
.gantt-bar--effect-positive:hover .gantt-bar-label-glyphs,
.gantt-bar--effect-positive:focus-visible .gantt-bar-label-glyphs,
.gantt-bar--effect-positive.gantt-bar--show-explain .gantt-bar-label-glyphs {
    color: var(--green);
    text-shadow:
        0 2px 3px rgba(0, 0, 0, 0.95),
        0 0 10px rgba(0, 0, 0, 0.86),
        0 0 18px rgba(0, 0, 0, 0.72),
        0 0 9px rgba(16, 185, 129, 0.42),
        0 0 16px rgba(16, 185, 129, 0.32);
}
.gantt-bar--effect-negative:hover .gantt-bar-label-glyphs,
.gantt-bar--effect-negative:focus-visible .gantt-bar-label-glyphs,
.gantt-bar--effect-negative.gantt-bar--show-explain .gantt-bar-label-glyphs {
    color: var(--red);
    text-shadow:
        0 2px 3px rgba(0, 0, 0, 0.95),
        0 0 10px rgba(0, 0, 0, 0.86),
        0 0 18px rgba(0, 0, 0, 0.72),
        0 0 9px rgba(239, 68, 68, 0.42),
        0 0 16px rgba(239, 68, 68, 0.32);
}
.gantt-bar--effect-neutral:hover .gantt-bar-label-glyphs,
.gantt-bar--effect-neutral:focus-visible .gantt-bar-label-glyphs,
.gantt-bar--effect-neutral.gantt-bar--show-explain .gantt-bar-label-glyphs {
    color: var(--accent);
    text-shadow:
        0 2px 3px rgba(0, 0, 0, 0.95),
        0 0 10px rgba(0, 0, 0, 0.86),
        0 0 18px rgba(0, 0, 0, 0.72),
        0 0 9px rgba(139, 92, 246, 0.44),
        0 0 16px rgba(139, 92, 246, 0.34);
}
.gantt-bar-explain-panel {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1260;
    max-width: min(620px, calc(100vw - 24px));
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(150, 190, 255, 0.18);
    background: rgba(19, 19, 31, 0.84);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #ffffff;
    font-family: var(--font);
    font-size: 1.18rem;
    font-weight: 540;
    line-height: 1.56;
    letter-spacing: .004em;
    white-space: normal;
    word-break: break-word;
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(8px) scale(.98);
    transition: opacity .16s ease, transform .16s ease;
    pointer-events: none;
    display: grid;
    gap: 8px;
    overflow: hidden;
    isolation: isolate;
}
.gantt-bar-explain-panel .transit-history-stack {
    gap: 6px;
}
.gantt-bar-explain-panel .transit-history-layer {
    padding: 10px 11px;
    border-radius: 12px;
}
.gantt-bar-explain-panel .transit-history-label {
    font-size: .72rem;
}
.gantt-bar-explain-panel .transit-history-version {
    min-height: 18px;
    font-size: .66rem;
}
.gantt-bar-explain-panel .transit-history-meta {
    font-size: .8rem;
}
.gantt-bar-explain-panel .transit-history-layer--primary .transit-history-text {
    font-size: 1.12rem;
}
.gantt-bar-explain-panel .transit-history-layer--secondary .transit-history-text {
    font-size: 1.02rem;
}
.gantt-bar-explain-panel .transit-history-layer--tertiary .transit-history-text {
    font-size: .96rem;
}
.gantt-bar-explain-main {
    margin: 0;
    font-size: 1.36rem;
    font-weight: 600;
    line-height: 1.68;
    color: #ffffff;
}
.gantt-bar-explain-sub {
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(162, 209, 255, 0.16);
    font-size: 1.14rem;
    font-weight: 560;
    line-height: 1.68;
    color: rgba(226, 236, 251, 0.86);
}
.gantt-bar-explain-range {
    margin: 0;
    padding-top: 7px;
    border-top: 1px solid rgba(162, 209, 255, 0.24);
}
.gantt-bar-explain-range-grid,
.transit-date-range {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}
.transit-date-pill {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 223, 164, 0.22);
    background:
        radial-gradient(circle at 12% 16%, rgba(255, 224, 144, 0.1), transparent 56%),
        linear-gradient(145deg, rgba(24, 19, 33, 0.9), rgba(11, 10, 21, 0.88));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.72);
}
.transit-date-pill--exact {
    border-color: rgba(145, 207, 255, 0.22);
    background:
        radial-gradient(circle at 12% 16%, rgba(124, 190, 255, 0.1), transparent 56%),
        linear-gradient(145deg, rgba(19, 27, 43, 0.92), rgba(10, 14, 24, 0.9));
}
.transit-date-prefix {
    color: #fff4da;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.1;
}
.transit-date-main {
    color: #fff6d6;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: .01em;
}
.transit-date-meta {
    color: rgba(187, 194, 209, 0.76);
    font-size: .96rem;
    font-weight: 680;
    line-height: 1.15;
}
.gantt-bar-explain-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(170, 221, 255, 0.14), rgba(255,255,255,0));
    opacity: .45;
}
.gantt-bar-explain-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, var(--accent), #6366f1, #06b6d4, var(--accent));
    background-size: 300% 300%;
    animation: aiGradientShift 4s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: .95;
}
.gantt-bar-explain-panel.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.gantt-bar-explain-panel--long {
    border-color: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.74),
        0 18px 36px rgba(0, 0, 0, 0.56),
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 0 26px rgba(255, 255, 255, 0.2);
}
.gantt-bar-explain-panel--long::after {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(233, 241, 255, 0.88), rgba(255, 255, 255, 0.95));
    background-size: 100% 100%;
    animation: none;
    opacity: .78;
}
.gantt-bar-explain-cta {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(99, 218, 255, 0.42);
    background: linear-gradient(135deg, rgba(18, 27, 58, 0.96), rgba(10, 18, 41, 0.96));
    color: #dff5ff;
    font-family: var(--font);
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.gantt-bar-explain-cta:hover,
.gantt-bar-explain-cta:focus-visible {
    outline: none;
    color: #ffffff;
    border-color: rgba(122, 230, 255, 0.75);
    box-shadow:
        0 0 0 1px rgba(122, 230, 255, 0.25),
        0 14px 28px rgba(0, 0, 0, 0.42),
        0 0 18px rgba(91, 201, 255, 0.26);
}
@media (max-width: 900px) {
    .gantt-bar-explain-panel {
        max-width: calc(100vw - 24px);
        padding: 14px 16px;
        border-radius: 14px;
        font-size: 1.06rem;
        line-height: 1.5;
        letter-spacing: 0;
    }
    .gantt-bar-explain-panel .transit-history-label-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .gantt-bar-explain-panel .transit-history-meta {
        text-align: left;
    }
    .gantt-bar-explain-main {
        font-size: 1.22rem;
        line-height: 1.5;
    }
    .gantt-bar-explain-sub {
        font-size: 1rem;
        line-height: 1.55;
    }
    .gantt-bar-explain-range {
        padding-top: 10px;
    }
    .gantt-bar-explain-range-grid,
    .transit-date-range {
        gap: 8px;
    }
    .transit-date-pill {
        width: 100%;
        padding: 10px 12px;
    }
    .transit-date-prefix {
        font-size: .98rem;
    }
    .transit-date-main {
        font-size: 1.12rem;
    }
    .transit-date-meta {
        font-size: .9rem;
    }
}

.modal--timeline .modal-gradient-bar {
    display: none;
}

/* exact marker nahradeny labelom */

.gantt-today-line {
    position: absolute; top: 0; bottom: 0; width: 2px;
    background: var(--accent);
    box-shadow: 0 0 12px var(--glow);
    z-index: 1;
    pointer-events: none;
}

/* ═══ DAY DETAIL PANEL ═══ */
.day-detail {
    max-width: 900px; margin: 0 auto;
    padding: 26px 20px 38px;
    transition: opacity .15s ease;
}
.day-detail-title {
    font-family: var(--font-d); font-size: 1.34rem; font-weight: 600;
    margin-bottom: 20px; letter-spacing: -0.01em; color: var(--tx-2);
}
.day-detail-highlight {
    margin-bottom: 18px;
}
.dd-hero {
    --dd-hero-a: 125, 211, 252;
    --dd-hero-b: 110, 231, 183;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(125, 211, 252, 0.42);
    background:
        linear-gradient(135deg, rgba(18, 24, 52, 0.94), rgba(22, 22, 48, 0.94));
    box-shadow:
        0 16px 34px rgba(5, 11, 29, 0.42),
        0 0 24px rgba(77, 150, 255, 0.16),
        inset 0 1px 0 rgba(255,255,255,0.16);
    animation: ddHeroPulse 6.8s ease-in-out infinite;
}
.dd-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 18%, rgba(var(--dd-hero-a), 0.34), transparent 34%),
        radial-gradient(circle at 84% 82%, rgba(var(--dd-hero-b), 0.22), transparent 38%),
        linear-gradient(135deg, rgba(var(--dd-hero-a), 0.08), rgba(var(--dd-hero-b), 0.08));
    pointer-events: none;
}
.dd-hero::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 23px;
    border: 1px solid rgba(255,255,255,0.08);
    pointer-events: none;
}
@keyframes ddHeroPulse {
    0% {
        box-shadow:
            0 16px 34px rgba(5, 11, 29, 0.42),
            0 0 18px rgba(77, 150, 255, 0.12),
            inset 0 1px 0 rgba(255,255,255,0.15);
    }
    50% {
        box-shadow:
            0 18px 38px rgba(5, 11, 29, 0.46),
            0 0 30px rgba(99, 187, 255, 0.22),
            inset 0 1px 0 rgba(255,255,255,0.2);
    }
    100% {
        box-shadow:
            0 16px 34px rgba(5, 11, 29, 0.42),
            0 0 18px rgba(77, 150, 255, 0.12),
            inset 0 1px 0 rgba(255,255,255,0.15);
    }
}
.day-detail-highlight--negative .dd-hero {
    --dd-hero-a: 248, 113, 113;
    --dd-hero-b: 251, 191, 36;
    border-color: rgba(248, 113, 113, 0.42);
}
.day-detail-highlight--neutral .dd-hero {
    --dd-hero-a: 125, 211, 252;
    --dd-hero-b: 167, 139, 250;
    border-color: rgba(139, 92, 246, 0.4);
}
.day-detail-highlight--lunar .dd-hero {
    --dd-hero-a: 165, 204, 255;
    --dd-hero-b: 191, 219, 254;
}
.dd-hero-top,
.dd-hero-title-row,
.dd-hero-footer {
    position: relative;
    z-index: 1;
}
.dd-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.dd-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 221, 146, 0.88);
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 228, 159, 0.28), transparent 56%),
        linear-gradient(145deg, rgba(56, 39, 16, 0.96), rgba(24, 17, 8, 0.94));
    color: #ffeab8;
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow:
        0 0 0 1px rgba(255, 221, 146, 0.12),
        0 0 18px rgba(246, 191, 86, 0.18),
        inset 0 1px 0 rgba(255, 243, 214, 0.18);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.88), 0 0 10px rgba(255, 223, 146, 0.2);
}
.dd-hero-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.dd-hero-symbols {
    flex: 0 0 auto;
    font-size: calc(2rem + 4px);
}
.dd-hero-title-copy {
    min-width: 0;
}
.dd-hero-title {
    margin: 0 0 5px;
    font-family: var(--font-d);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    color: #dcc7ff;
}
.dd-hero-meta {
    margin: 0;
    color: rgba(220, 234, 255, 0.78);
    font-size: 1rem;
    line-height: 1.55;
}
.dd-hero-base-text,
.dd-hero-support {
    position: relative;
    z-index: 1;
}
.dd-hero-base-text {
    margin: 0;
    color: #ffffff;
    font-size: 1.18rem;
    line-height: 1.76;
    text-wrap: pretty;
}
.transit-history-stack {
    display: grid;
    gap: 8px;
}
.transit-history-stack--hero {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(206, 231, 255, 0.14);
}
.transit-history-stack--card {
    margin: 12px 0 8px;
    padding-top: 11px;
    border-top: 1px solid rgba(165, 191, 234, 0.14);
}
.transit-history-stack--modal {
    margin-top: 4px;
}
.transit-history-layer {
    padding: 10px 11px;
    border-radius: 14px;
    border: 1px solid rgba(168, 177, 231, 0.14);
    background:
        linear-gradient(150deg, rgba(18, 18, 38, 0.92), rgba(10, 12, 24, 0.92)),
        rgba(255,255,255,0.02);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.transit-history-layer--knowledge {
    border-color: rgba(173, 157, 255, 0.2);
    background:
        radial-gradient(circle at 14% 0%, rgba(137, 102, 255, 0.09), transparent 46%),
        linear-gradient(150deg, rgba(20, 17, 41, 0.94), rgba(10, 12, 24, 0.92));
}
.transit-history-layer--legacy {
    border-color: rgba(242, 206, 152, 0.2);
    background:
        radial-gradient(circle at 14% 0%, rgba(242, 206, 152, 0.08), transparent 46%),
        linear-gradient(150deg, rgba(34, 25, 16, 0.94), rgba(16, 12, 8, 0.92));
}
.transit-history-layer--primary {
    border-color: rgba(255, 221, 154, 0.42);
    background:
        radial-gradient(circle at 14% 0%, rgba(255, 220, 146, 0.18), transparent 48%),
        linear-gradient(150deg, rgba(56, 40, 20, 0.96), rgba(20, 14, 8, 0.94));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 12px 24px rgba(70, 46, 10, 0.28),
        0 0 24px rgba(246, 191, 86, 0.12);
}
.transit-history-layer--secondary {
    opacity: 0.96;
}
.transit-history-layer--tertiary {
    opacity: 0.84;
}
.transit-history-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}
.transit-history-label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-d);
    font-size: .86rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(218, 224, 255, 0.88);
}
.transit-history-version {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(176, 195, 255, 0.22);
    background: rgba(72, 94, 183, 0.18);
    color: #dce7ff;
    font-size: .8rem;
    letter-spacing: .04em;
}
.transit-history-meta {
    margin: 0;
    font-size: .9rem;
    line-height: 1.42;
    color: rgba(192, 202, 231, 0.76);
    text-align: right;
}
.transit-history-text {
    margin: 0;
    line-height: 1.72;
    text-wrap: pretty;
}
.transit-history-layer--primary .transit-history-text {
    font-size: 1.26rem;
    color: #fff8e8;
    font-weight: 620;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.88), 0 8px 18px rgba(48, 29, 6, 0.22);
}
.transit-history-layer--secondary .transit-history-text {
    font-size: 1.14rem;
    color: rgba(242, 246, 255, 0.96);
}
.transit-history-layer--tertiary .transit-history-text {
    font-size: 1.04rem;
    color: rgba(219, 224, 237, 0.8);
}
.transit-history-layer--primary .transit-history-label {
    color: #ffe8b8;
}
.transit-history-layer--primary .transit-history-version {
    border-color: rgba(255, 228, 171, 0.42);
    background: rgba(112, 79, 22, 0.34);
    color: #fff0c8;
}
.transit-history-layer--primary .transit-history-meta {
    color: rgba(255, 226, 180, 0.8);
}
.dd-hero-support {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(206, 231, 255, 0.14);
    color: rgba(224, 236, 255, 0.84);
    font-size: 1.04rem;
    line-height: 1.7;
}
.dd-hero-footer {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(206, 231, 255, 0.12);
}
.dd-hero-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dd-empty {
    padding: 40px; text-align: center; color: var(--tx-3); font-size: .9rem;
}

.dd-card {
    background: rgba(19,19,31,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.05);
    border-left: 3px solid var(--accent);
    border-radius: var(--r-md); padding: 14px 16px;
    margin-bottom: 8px; cursor: default;
    transition: border-color .2s, transform .2s, background .2s, box-shadow .2s;
}
.dd-card:hover {
    background: rgba(26,26,46,0.66);
    box-shadow: 0 3px 14px rgba(0,0,0,.22);
}
.dd-card--interactive {
    appearance: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font: inherit;
}
.dd-card--interactive:focus-visible {
    outline: 2px solid rgba(165, 220, 255, 0.86);
    outline-offset: 2px;
}

.dd-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.dd-symbols { display: flex; align-items: center; gap: 7px; font-size: calc(1.9rem + 3px); line-height: 1; }
.dd-symbol-glyph,
.dd-symbol-aspect {
    display: inline-block;
    line-height: 1;
    color: #f7f5ff;
    text-shadow: 0 1px 3px rgba(0,0,0,.7), 0 0 10px rgba(0,0,0,.42);
}
.dd-symbol-aspect {
    font-size: calc(1.22rem + 3px);
    opacity: .95;
}
.dd-symbols--positive .dd-symbol-glyph { text-shadow: 0 1px 3px rgba(0,0,0,.7), 0 0 14px rgba(16,185,129,.35); }
.dd-symbols--negative .dd-symbol-glyph { text-shadow: 0 1px 3px rgba(0,0,0,.7), 0 0 14px rgba(239,68,68,.35); }
.dd-symbols--neutral .dd-symbol-glyph { text-shadow: 0 1px 3px rgba(0,0,0,.7), 0 0 14px rgba(139,92,246,.35); }

.dd-badge {
    padding: 2px 8px; border-radius: 100px; font-size: .65rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
}
.dd-badge--positive { background: rgba(16,185,129,.12); color: var(--green); border: 1px solid rgba(16,185,129,.2); }
.dd-badge--negative { background: rgba(239,68,68,.12); color: var(--red); border: 1px solid rgba(239,68,68,.2); }
.dd-badge--neutral { background: rgba(139,92,246,.12); color: var(--accent); border: 1px solid rgba(139,92,246,.2); }

.dd-title { font-family: var(--font-d); font-size: 1.14rem; font-weight: 600; margin-bottom: 7px; color: #d7c0ff; }

.dd-intensity-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.dd-intensity-bar {
    flex: 1; height: 4px; background: rgba(255,255,255,.05);
    border-radius: 100px; overflow: hidden;
}
.dd-intensity-fill { height: 100%; border-radius: 100px; }
.dd-intensity-val { font-size: .7rem; color: var(--tx-3); font-weight: 600; min-width: 32px; text-align: right; }

.dd-text { font-size: 1.17rem; color: white; line-height: 1.45; margin-bottom: 4px; }
.dd-base-note {
    margin: 12px 0 8px;
    padding-top: 11px;
    border-top: 1px solid rgba(165, 191, 234, 0.14);
}
.dd-base-label {
    margin: 0 0 6px;
    font-family: var(--font-d);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(176, 197, 232, 0.72);
}
.dd-base-text {
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.72;
    color: rgba(205, 216, 236, 0.74);
    text-wrap: pretty;
}
.dd-dates {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.dd-hero-dates .transit-date-pill,
.dd-dates .transit-date-pill {
    background:
        radial-gradient(circle at 12% 16%, rgba(255, 224, 144, 0.12), transparent 56%),
        linear-gradient(145deg, rgba(28, 22, 38, 0.92), rgba(12, 10, 21, 0.9));
}
.dd-hero-dates .transit-date-main {
    font-size: 1.18rem;
}
.dd-dates .transit-date-main {
    font-size: 1.1rem;
}

/* ═══ TLDR FOOTER INSIGHT ═══ */
.timeline-tldr-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 34px;
}
.timeline-tldr-panel {
    border-radius: var(--r-lg);
    border: 1px solid rgba(108, 170, 255, 0.35);
    background:
        linear-gradient(145deg, rgba(20, 15, 36, 0.82), rgba(10, 11, 24, 0.82)),
        rgba(255,255,255,0.02);
    box-shadow:
        0 16px 46px rgba(5, 7, 20, 0.36),
        inset 0 1px 0 rgba(255,255,255,0.08);
    padding: 18px 20px 16px;
}
.timeline-tldr-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.timeline-tldr-icon {
    font-size: 1.24rem;
    filter: drop-shadow(0 0 10px rgba(132, 224, 255, 0.24));
}
.timeline-tldr-title {
    margin: 0;
    font-family: var(--font-d);
    font-size: 1.14rem;
    font-weight: 700;
    color: #f1ecff;
    letter-spacing: .01em;
}
.timeline-tldr-text {
    margin: 0;
    color: rgba(242, 235, 255, 0.92);
    font-size: 1.08rem;
    line-height: 1.76;
    min-height: 1.72em;
}
.timeline-moon-visual {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(146, 129, 209, 0.24);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.timeline-moon-visual-section {
    margin-top: 18px;
}
.timeline-moon-svg {
    width: clamp(170px, 24vw, 280px);
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 26px rgba(3, 6, 18, 0.46));
}
.timeline-moon-shadow-overlay {
    fill: #04060d;
    opacity: .56;
}
.timeline-moon-glow {
    fill: rgba(236, 244, 255, 0.1);
    mix-blend-mode: screen;
    pointer-events: none;
}
.timeline-moon-phase-title {
    margin: 0;
    font-family: var(--font-d);
    font-size: .88rem;
    letter-spacing: .09em;
    color: rgba(241, 244, 255, 0.9);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.24);
}
.timeline-lunar-transits {
    display: none;
    margin-top: 14px;
    padding: 18px 20px 6px;
    border-radius: 22px;
    border: 1px solid rgba(135, 188, 255, 0.2);
    background:
        radial-gradient(circle at 14% 0%, rgba(144, 198, 255, 0.08), transparent 38%),
        linear-gradient(145deg, rgba(19, 18, 32, 0.78), rgba(10, 11, 22, 0.72));
    box-shadow: 0 18px 46px rgba(5, 7, 20, 0.24), inset 0 1px 0 rgba(255,255,255,0.07);
}
.timeline-lunar-title {
    margin: 0 0 6px;
    font-family: var(--font-d);
    font-size: 1.26rem;
    font-weight: 700;
    color: rgba(244, 239, 255, 0.96);
    letter-spacing: .01em;
}
.timeline-lunar-copy {
    margin: 0 0 14px;
    color: rgba(214, 226, 247, 0.88);
    font-size: 1.06rem;
    line-height: 1.66;
    font-weight: 560;
}
.timeline-lunar-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dd-card--lunar {
    background:
        radial-gradient(circle at 14% 0%, rgba(119, 190, 255, 0.08), transparent 40%),
        rgba(14, 14, 22, 0.68);
}

/* ═══ MODAL ═══ */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.7);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
    padding: 20px; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal {
    width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto;
    background: rgba(26,26,46,0.85);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--r-lg); box-shadow: 0 24px 80px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,0.05);
    transform: translateY(16px) scale(.97); transition: transform .25s; position: relative;
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }

.modal-close {
    position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
    border-radius: 50%; background: rgba(255,255,255,.08); border: none;
    color: var(--tx-2); font-size: 1.2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s; z-index: 10;
}
.modal-close:hover { background: rgba(255,255,255,.15); color: var(--tx-1); }

.modal-header { padding: 28px 28px 16px; text-align: center; }
.modal-header--positive { border-top: 3px solid var(--green); }
.modal-header--negative { border-top: 3px solid var(--red); }
.modal-header--neutral { border-top: 3px solid var(--accent); }

.modal-symbols { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; }
.modal-symbol { font-size: 2.2rem; line-height: 1; }
.modal-aspect-symbol { font-size: 1.3rem; color: var(--tx-3); }
.modal-title { font-family: var(--font-d); font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; color: #d8c0ff; }
.modal-dates { margin: 10px 0 0; }
.modal-dates--rich {
    justify-content: center;
}
.modal-dates--rich .transit-date-pill {
    justify-content: center;
    min-width: 176px;
}
.modal-dates--rich .transit-date-prefix {
    font-size: 1rem;
}
.modal-dates--rich .transit-date-main {
    font-size: 1.14rem;
}
.modal-dates--rich .transit-date-meta {
    color: rgba(196, 205, 223, 0.78);
}
.modal-orb { font-size: .9rem; color: var(--tx-3); }

.modal-gradient-bar {
    height: 6px; margin: 12px 28px 0; border-radius: 100px; position: relative;
}
.gradient-marker {
    position: absolute; top: -5px; width: 16px; height: 16px;
    background: #fff; border-radius: 50%; transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(255,255,255,.5);
    border: 2px solid var(--bg-3);
}
.gradient-labels {
    display: flex; justify-content: space-between; font-size: .65rem; color: var(--tx-3);
    padding-top: 8px;
}

.modal-body { padding: 16px 28px; }
.modal-text { font-size: 1.2rem; line-height: 1.84; color: #ffffff; font-weight: 560; }
.modal-insight {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(150, 189, 255, 0.18);
}
.modal-insight-label {
    margin: 0 0 8px;
    font-family: var(--font-d);
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(180, 220, 255, 0.88);
}
.modal-insight-text {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.82;
    color: rgba(241, 246, 255, 0.96);
}
.modal-knowledge-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
}
.modal-knowledge-model,
.modal-knowledge-version {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(17, 28, 52, 0.76);
    border: 1px solid rgba(121, 185, 255, 0.2);
    color: rgba(235, 244, 255, 0.94);
    font-size: .84rem;
}
.modal-knowledge-archive,
.modal-knowledge-focus,
.modal-knowledge-delta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(150, 189, 255, 0.12);
}
.modal-knowledge-focus-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
    color: rgba(236, 242, 255, 0.9);
    line-height: 1.55;
}
.modal-footer { padding: 12px 28px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.modal-effect { display: flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 500; color: var(--tx-2); }
.modal-chat-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(104, 221, 255, 0.4);
    background: linear-gradient(135deg, rgba(18, 32, 72, 0.98), rgba(9, 19, 46, 0.96));
    color: #e3f8ff;
    font-family: var(--font);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.modal-chat-cta:hover,
.modal-chat-cta:focus-visible {
    outline: none;
    color: #ffffff;
    border-color: rgba(137, 228, 255, 0.72);
    box-shadow:
        0 0 0 1px rgba(117, 224, 255, 0.18),
        0 14px 30px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(105, 196, 255, 0.22);
}
.effect-dot { width: 8px; height: 8px; border-radius: 50%; }
.modal-duration {
    margin: 4px 0 3px;
    font-family: var(--font-d);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #f6faff;
    text-shadow: 0 1px 0 rgba(0,0,0,.62), 0 0 10px rgba(175, 223, 255, .22);
}
.modal-library-count {
    color: rgba(199, 220, 250, 0.78);
    font-size: .74rem;
}
.modal-overlay--timeline {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    overflow: hidden;
    z-index: 1200;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.modal--timeline {
    position: fixed;
    top: 98px;
    right: 18px;
    left: auto;
    margin: 0;
    width: min(560px, calc(100vw - 36px));
    max-width: 560px;
    max-height: calc(100dvh - 118px);
    transition: transform .25s, left .2s ease, top .2s ease;
    z-index: 1;
    box-shadow: 0 20px 50px rgba(20, 30, 56, 0.28);
}

.timeline-calendar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 14, 0.56);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 1080;
}
.timeline-calendar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.timeline-calendar-panel {
    position: fixed;
    width: min(380px, calc(100vw - 20px));
    max-height: min(540px, calc(100dvh - 26px));
    overflow: auto;
    border-radius: 18px;
    border: 1px solid rgba(124, 188, 255, 0.45);
    background:
        radial-gradient(circle at 12% 18%, rgba(122, 92, 246, 0.28), transparent 48%),
        radial-gradient(circle at 88% 84%, rgba(101, 218, 255, 0.2), transparent 46%),
        linear-gradient(145deg, rgba(20, 24, 56, 0.97), rgba(10, 12, 32, 0.98));
    box-shadow: 0 26px 60px rgba(2, 5, 18, 0.64), inset 0 1px 0 rgba(255,255,255,0.16), 0 0 28px rgba(84, 170, 255, 0.24);
    padding: 14px 14px 12px;
    color: #f5f9ff;
    transform: translateY(6px) scale(.985);
    opacity: 0;
    transform-origin: top right;
    transition: transform .2s ease, opacity .2s ease;
}
.timeline-calendar-panel.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.timeline-calendar-head {
    display: grid;
    grid-template-columns: 38px 1fr 38px 38px;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.timeline-calendar-month {
    margin: 0;
    text-align: center;
    font-family: var(--font-d);
    font-size: 1.03rem;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: capitalize;
}
.timeline-calendar-nav,
.timeline-calendar-close,
.timeline-calendar-footer-btn {
    appearance: none;
    border: 1px solid rgba(136, 190, 255, 0.42);
    background: linear-gradient(145deg, rgba(31, 43, 90, 0.82), rgba(14, 23, 60, 0.92));
    color: #eef7ff;
    border-radius: 10px;
    font-family: var(--font-d);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 36px;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.timeline-calendar-nav:hover,
.timeline-calendar-close:hover,
.timeline-calendar-footer-btn:hover {
    border-color: rgba(175, 224, 255, 0.9);
    background: linear-gradient(145deg, rgba(43, 66, 132, 0.88), rgba(23, 44, 102, 0.92));
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(4, 8, 24, 0.42), 0 0 16px rgba(87, 173, 255, 0.22);
}
.timeline-calendar-nav:disabled {
    opacity: .42;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.timeline-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 6px;
}
.timeline-calendar-weekday {
    text-align: center;
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(205, 224, 248, 0.82);
}
.timeline-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}
.timeline-calendar-cell {
    appearance: none;
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(118, 174, 242, 0.24);
    background: linear-gradient(160deg, rgba(25, 31, 70, 0.76), rgba(12, 16, 40, 0.88));
    color: #f3f8ff;
    font-family: var(--font-d);
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .14s ease, background .14s ease, transform .14s ease, box-shadow .14s ease, color .14s ease;
}
.timeline-calendar-cell:hover {
    border-color: rgba(172, 225, 255, 0.86);
    background: linear-gradient(160deg, rgba(43, 70, 138, 0.86), rgba(26, 43, 98, 0.92));
    box-shadow: 0 8px 18px rgba(5, 10, 30, 0.42), 0 0 12px rgba(96, 173, 255, 0.22);
    transform: translateY(-1px);
}
.timeline-calendar-cell.is-outside {
    opacity: .58;
}
.timeline-calendar-cell.is-disabled {
    opacity: .26;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.timeline-calendar-cell.is-selected {
    border-color: rgba(255, 230, 162, 0.95);
    color: #171004;
    background: linear-gradient(160deg, rgba(235, 198, 101, 0.98), rgba(212, 167, 68, 0.98));
    box-shadow: 0 8px 18px rgba(10, 8, 18, 0.42), 0 0 18px rgba(255, 214, 132, 0.3);
}
.timeline-calendar-cell.is-today:not(.is-selected) {
    border-color: rgba(142, 209, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(142, 209, 255, 0.6);
}
.timeline-calendar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}
.timeline-calendar-footer-btn {
    flex: 1;
    min-height: 38px;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.timeline-calendar-footer-btn--ghost {
    border-color: rgba(180, 206, 240, 0.34);
    background: linear-gradient(145deg, rgba(20, 27, 60, 0.68), rgba(10, 14, 36, 0.74));
}
.timeline-calendar-footer-btn:disabled {
    opacity: .38;
    cursor: not-allowed;
}
.ui-overlay-lock {
    overflow: hidden;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.astro-chat-shell {
    position: fixed;
    right: 12px;
    bottom: 10px;
    z-index: 60;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 12px;
}
.astro-chat-launcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 58px;
    min-width: 58px;
    height: 58px;
    min-height: 58px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(131, 211, 255, 0.34);
    background:
        radial-gradient(circle at 18% 22%, rgba(111, 194, 255, 0.22), transparent 42%),
        linear-gradient(145deg, rgba(16, 25, 46, 0.94), rgba(8, 14, 29, 0.96));
    color: #f5fbff;
    box-shadow: 0 18px 46px rgba(6, 17, 37, 0.42), inset 0 1px 0 rgba(255,255,255,0.08);
    overflow: hidden;
    position: relative;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.astro-chat-launcher::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background:
        radial-gradient(circle at 24% 28%, rgba(255, 255, 255, 0.08), transparent 28%),
        linear-gradient(135deg, rgba(89, 196, 255, 0.08), rgba(121, 92, 228, 0.02) 58%, transparent 100%);
    opacity: .96;
    pointer-events: none;
}
.astro-chat-launcher::after {
    content: "AI astrológ";
    position: absolute;
    right: calc(100% + 12px);
    bottom: 50%;
    transform: translateY(50%) translateX(6px);
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(146, 214, 255, 0.34);
    background:
        radial-gradient(circle at top left, rgba(120, 198, 255, 0.12), transparent 46%),
        linear-gradient(145deg, rgba(15, 23, 43, 0.96), rgba(8, 14, 28, 0.98));
    color: rgba(240, 248, 255, 0.96);
    font-family: var(--font-d);
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: .03em;
    white-space: nowrap;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.94),
        0 0 12px rgba(86, 166, 255, 0.16);
    box-shadow:
        0 18px 42px rgba(6, 15, 32, 0.38),
        inset 0 1px 0 rgba(255,255,255,0.08);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}
.astro-chat-launcher:hover,
.astro-chat-launcher:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(157, 224, 255, 0.58);
    box-shadow: 0 20px 52px rgba(8, 41, 80, 0.38), inset 0 1px 0 rgba(255,255,255,0.12);
}
.astro-chat-launcher:hover::after,
.astro-chat-launcher:focus-visible::after {
    opacity: 1;
    transform: translateY(50%) translateX(0);
}
.astro-chat-launcher-emoji {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(88, 170, 255, 0.12));
    font-size: 2.3rem;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 26px rgba(104, 168, 255, 0.2);
    animation: astroOrbPulse 3.2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}
.astro-chat-launcher-copy {
    display: none;
}
.astro-chat-panel[hidden] {
    display: none !important;
}
.astro-chat-panel {
    width: min(520px, calc(100vw - 36px));
    height: min(84vh, 780px);
    min-height: 620px;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 26px;
    border: 1px solid rgba(123, 202, 255, 0.28);
    background:
        radial-gradient(circle at 50% 0%, rgba(103, 171, 255, 0.14), transparent 34%),
        radial-gradient(circle at 14% 18%, rgba(122, 214, 255, 0.08), transparent 32%),
        linear-gradient(165deg, rgba(14, 18, 36, 0.96), rgba(8, 12, 25, 0.98));
    box-shadow: 0 32px 90px rgba(5, 10, 24, 0.56), inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: visible;
    transform-origin: 100% 100%;
}
.astro-chat-head,
.astro-chat-form {
    padding: 14px 16px;
}
.astro-chat-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(123, 202, 255, 0.14);
}
.astro-chat-overview-toggle {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: #f4fbff;
    text-align: left;
}
.astro-chat-overview-toggle:hover,
.astro-chat-overview-toggle:focus-visible {
    outline: none;
    color: #ffffff;
}
.astro-chat-overview-arrow {
    color: rgba(163, 223, 255, 0.84);
    font-size: 1rem;
    transition: transform .18s ease;
}
.astro-chat-shell.is-overview-open .astro-chat-overview-arrow {
    transform: rotate(180deg);
}
.astro-chat-overview {
    padding: 10px 16px 0;
}
.astro-chat-headline {
    min-width: 0;
}
.astro-chat-kicker {
    display: block;
    margin-bottom: 4px;
    color: #8fe8ff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.astro-chat-head h3 {
    margin: 0;
    color: #f4fbff;
    font-family: var(--font-d);
    font-size: 1.12rem;
}
.astro-chat-head-context {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.astro-chat-location-badge,
.astro-chat-memory-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(127, 209, 255, 0.18);
    background:
        radial-gradient(circle at top left, rgba(121, 201, 255, 0.12), transparent 46%),
        linear-gradient(145deg, rgba(10, 18, 35, 0.8), rgba(9, 13, 24, 0.92));
    color: rgba(226, 240, 255, 0.86);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
}
.astro-chat-location-badge.is-fallback {
    border-color: rgba(255, 209, 135, 0.24);
    color: rgba(255, 230, 189, 0.92);
}
.astro-chat-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.astro-chat-close,
.astro-chat-lock-cta {
    border-radius: 999px;
    border: 1px solid rgba(126, 205, 255, 0.28);
    background: rgba(12, 23, 45, 0.82);
    color: #e8f7ff;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}
.astro-chat-close {
    padding: 7px 11px;
    font-size: .78rem;
}
.astro-chat-close {
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 1.1rem;
}
.astro-chat-models {
    display: flex;
    gap: 8px;
    padding: 12px 16px 0;
    overflow-x: auto;
}
.astro-chat-models::-webkit-scrollbar {
    height: 6px;
}
.astro-chat-models::-webkit-scrollbar-thumb {
    background: rgba(126, 196, 255, 0.22);
    border-radius: 999px;
}
.astro-chat-model-chip {
    flex: 0 0 auto;
    border-radius: 999px;
    border: 1px solid rgba(122, 197, 255, 0.22);
    background: rgba(9, 19, 36, 0.72);
    color: rgba(218, 231, 255, 0.76);
    padding: 8px 12px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
}
.astro-chat-model-chip.is-active {
    color: #f7fdff;
    border-color: rgba(133, 215, 255, 0.48);
    background: linear-gradient(145deg, rgba(20, 58, 92, 0.9), rgba(12, 25, 46, 0.92));
    box-shadow: 0 12px 26px rgba(9, 54, 97, 0.22);
}
.astro-chat-lock {
    margin: 14px 16px 0;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(189, 201, 227, 0.18);
    background: linear-gradient(145deg, rgba(42, 45, 55, 0.84), rgba(25, 28, 35, 0.88));
    color: rgba(233, 238, 247, 0.82);
}
.astro-chat-lock p {
    margin: 0 0 12px;
    line-height: 1.58;
}
.astro-chat-lock-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
}
.astro-chat-inspector {
    padding: 12px 0 0;
}
.astro-chat-inspector-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(127, 208, 255, 0.18);
    background:
        radial-gradient(circle at top left, rgba(121, 200, 255, 0.12), transparent 40%),
        radial-gradient(circle at 100% 0%, rgba(144, 115, 255, 0.08), transparent 28%),
        linear-gradient(145deg, rgba(11, 18, 34, 0.86), rgba(8, 13, 26, 0.92));
    color: #f1f8ff;
    text-align: left;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.astro-chat-inspector-toggle:hover,
.astro-chat-inspector-toggle:focus-visible {
    outline: none;
    transform: translateY(-1px);
    border-color: rgba(144, 219, 255, 0.34);
    box-shadow: 0 16px 32px rgba(5, 14, 29, 0.2);
}
.astro-chat-inspector-toggle-copy {
    display: grid;
    gap: 4px;
}
.astro-chat-inspector-kicker {
    color: rgba(142, 226, 255, 0.82);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.astro-chat-inspector-toggle strong {
    font-size: .98rem;
    line-height: 1.35;
}
.astro-chat-inspector-toggle-arrow {
    font-size: 1rem;
    transition: transform .18s ease;
}
.astro-chat-shell.is-inspector-open .astro-chat-inspector-toggle-arrow {
    transform: rotate(180deg);
}
.astro-chat-inspector-body {
    margin-top: 10px;
    border-radius: 20px;
    border: 1px solid rgba(124, 203, 255, 0.14);
    background:
        radial-gradient(circle at top left, rgba(109, 194, 255, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(11, 17, 31, 0.84), rgba(8, 12, 24, 0.9));
    overflow: hidden;
}
.astro-chat-inspector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.astro-chat-inspector-card {
    padding: 16px;
    border-right: 1px solid rgba(123, 201, 255, 0.08);
    border-bottom: 1px solid rgba(123, 201, 255, 0.08);
}
.astro-chat-inspector-card:nth-child(2n) {
    border-right: 0;
}
.astro-chat-inspector-card h4 {
    margin: 0 0 12px;
    color: #f4f9ff;
    font-size: .96rem;
    font-weight: 800;
}
.astro-chat-inspector-copy {
    margin: 0;
    color: rgba(228, 238, 250, 0.88);
    font-size: .88rem;
    line-height: 1.62;
}
.astro-chat-inspector-copy--tight {
    margin-bottom: 10px;
}
.astro-chat-inspector-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.astro-chat-inspector-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(230, 239, 250, 0.82);
    font-size: .72rem;
    font-weight: 700;
}
.astro-chat-inspector-block + .astro-chat-inspector-block {
    margin-top: 12px;
}
.astro-chat-inspector-block strong {
    display: block;
    margin-bottom: 8px;
    color: rgba(240, 248, 255, 0.94);
    font-size: .8rem;
    letter-spacing: .03em;
}
.astro-chat-inspector-list {
    margin: 0;
    padding-left: 18px;
    color: rgba(225, 237, 251, 0.86);
    font-size: .84rem;
    line-height: 1.55;
}
.astro-chat-inspector-list li + li {
    margin-top: 6px;
}
.astro-chat-inspector-cluster {
    display: grid;
    gap: 10px;
    margin: 12px 0;
}
.astro-chat-mini-transit {
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid rgba(128, 206, 255, 0.12);
    background:
        radial-gradient(circle at top left, rgba(115, 193, 255, 0.1), transparent 46%),
        rgba(12, 20, 37, 0.7);
}
.astro-chat-mini-transit strong {
    display: block;
    color: #f4fbff;
    font-size: .82rem;
    line-height: 1.4;
}
.astro-chat-mini-transit-meta,
.astro-chat-mini-transit-copy {
    margin: 6px 0 0;
    color: rgba(215, 230, 248, 0.8);
    font-size: .78rem;
    line-height: 1.55;
}
.astro-chat-stream {
    flex: 1 1 auto;
    min-height: 0;
    padding: 14px 16px;
    overflow-y: auto;
    background:
        linear-gradient(180deg, rgba(10, 16, 31, 0.34), rgba(6, 10, 21, 0.08)),
        radial-gradient(circle at top right, rgba(83, 162, 255, 0.08), transparent 28%);
}
.astro-chat-empty {
    padding: 15px 16px;
    border-radius: 18px;
    border: 1px dashed rgba(123, 201, 255, 0.2);
    background:
        radial-gradient(circle at top left, rgba(106, 190, 255, 0.1), transparent 42%),
        linear-gradient(145deg, rgba(8, 16, 31, 0.64), rgba(7, 14, 28, 0.46));
    color: rgba(225, 235, 250, 0.8);
    line-height: 1.58;
}
.astro-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
}
.astro-chat-message {
    max-width: 92%;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(126, 198, 255, 0.16);
    background:
        radial-gradient(circle at top left, rgba(87, 168, 255, 0.08), transparent 40%),
        rgba(13, 20, 37, 0.86);
    color: #edf7ff;
    line-height: 1.62;
}
.astro-chat-message--user {
    align-self: flex-end;
    background: linear-gradient(145deg, rgba(52, 80, 126, 0.92), rgba(17, 32, 63, 0.96));
    box-shadow: 0 14px 30px rgba(5, 18, 39, 0.24);
}
.astro-chat-message--assistant {
    align-self: flex-start;
    border-color: rgba(233, 191, 91, 0.28);
    background:
        radial-gradient(circle at top left, rgba(255, 214, 128, 0.16), transparent 42%),
        linear-gradient(145deg, rgba(70, 46, 14, 0.94), rgba(38, 25, 8, 0.98) 54%, rgba(84, 59, 19, 0.9));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.07),
        0 18px 40px rgba(23, 13, 4, 0.34);
}
.astro-chat-message-text {
    color: rgba(241, 247, 255, 0.96);
    font-size: .98rem;
    white-space: pre-wrap;
    word-break: break-word;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.9),
        0 0 10px rgba(99, 171, 255, 0.06);
}
.astro-chat-message--assistant .astro-chat-message-text--expandable {
    display: block;
    margin: -2px -2px 0;
    padding: 15px 16px;
    border-radius: 18px;
    border: 1px solid rgba(244, 205, 112, 0.34);
    background:
        radial-gradient(circle at top left, rgba(255, 221, 146, 0.22), transparent 50%),
        linear-gradient(145deg, rgba(88, 58, 16, 0.96), rgba(51, 32, 10, 0.98) 56%, rgba(94, 67, 23, 0.9));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 18px 34px rgba(28, 16, 5, 0.24);
    cursor: zoom-in;
    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
    text-shadow:
        0 2px 0 rgba(0, 0, 0, 0.9),
        0 0 14px rgba(255, 219, 134, 0.16);
}
.astro-chat-message--assistant .astro-chat-message-text--expandable:hover,
.astro-chat-message--assistant .astro-chat-message-text--expandable:focus-visible {
    outline: none;
    transform: translateY(-1px);
    border-color: rgba(255, 223, 146, 0.46);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 20px 36px rgba(28, 16, 5, 0.28);
    background:
        radial-gradient(circle at top left, rgba(255, 227, 157, 0.26), transparent 52%),
        linear-gradient(145deg, rgba(103, 68, 18, 0.98), rgba(58, 37, 10, 0.99) 54%, rgba(103, 74, 23, 0.92));
}
.astro-chat-message-meta {
    margin-top: 8px;
    color: rgba(175, 204, 235, 0.66);
    font-size: .74rem;
}
.astro-chat-report-card {
    display: grid;
    gap: 12px;
    white-space: normal;
}
.astro-chat-report-card--reader {
    gap: 18px;
}
.astro-chat-report-intro {
    margin: 0;
    color: rgba(243, 248, 255, 0.94);
    font-size: 1rem;
    line-height: 1.72;
}
.astro-chat-report-section {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(243, 208, 122, 0.18);
    background:
        radial-gradient(circle at top left, rgba(255, 224, 152, 0.16), transparent 44%),
        linear-gradient(145deg, rgba(102, 68, 19, 0.74), rgba(58, 37, 11, 0.9));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.astro-chat-report-title {
    margin: 0 0 8px;
    color: #fff4cd;
    font-size: .96rem;
    font-weight: 900;
    letter-spacing: .02em;
    line-height: 1.45;
    text-transform: none;
}
.astro-chat-report-copy {
    margin: 0;
    color: rgba(255, 247, 229, 0.94);
    line-height: 1.7;
}
.astro-chat-report-facts {
    display: grid;
    gap: 9px;
}
.astro-chat-report-fact {
    padding: 10px 12px 11px;
    border-radius: 14px;
    border: 1px solid rgba(255, 224, 162, 0.14);
    background:
        radial-gradient(circle at top left, rgba(255, 228, 166, 0.12), transparent 42%),
        linear-gradient(150deg, rgba(94, 63, 17, 0.58), rgba(57, 37, 11, 0.72));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.astro-chat-report-fact--positive {
    border-color: rgba(150, 234, 208, 0.18);
    background:
        radial-gradient(circle at top left, rgba(151, 238, 214, 0.14), transparent 42%),
        linear-gradient(150deg, rgba(20, 74, 64, 0.62), rgba(16, 47, 41, 0.76));
}
.astro-chat-report-fact--caution {
    border-color: rgba(255, 176, 158, 0.18);
    background:
        radial-gradient(circle at top left, rgba(255, 183, 167, 0.14), transparent 42%),
        linear-gradient(150deg, rgba(91, 42, 29, 0.64), rgba(57, 25, 18, 0.78));
}
.astro-chat-report-fact--action {
    border-color: rgba(148, 214, 255, 0.18);
    background:
        radial-gradient(circle at top left, rgba(149, 220, 255, 0.14), transparent 42%),
        linear-gradient(150deg, rgba(20, 54, 88, 0.62), rgba(13, 32, 55, 0.78));
}
.astro-chat-report-fact-label {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 232, 177, 0.84);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.astro-chat-report-fact-value {
    margin: 0;
    color: rgba(255, 248, 235, 0.96);
    line-height: 1.66;
}
.astro-chat-report-list {
    margin: 0;
    padding-left: 18px;
    color: rgba(255, 247, 229, 0.94);
    line-height: 1.68;
}
.astro-chat-report-list li + li {
    margin-top: 7px;
}
.astro-chat-form {
    border-top: 1px solid rgba(123, 202, 255, 0.14);
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(95, 182, 255, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(12, 18, 34, 0.92), rgba(8, 12, 24, 0.98));
}
.astro-chat-form::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 16px;
    width: calc(100% - 32px);
    height: 1px;
    background: linear-gradient(90deg, rgba(95, 182, 255, 0.24), rgba(140, 92, 228, 0.24), transparent 100%);
    pointer-events: none;
}
.astro-chat-composer {
    position: relative;
    display: block;
    padding: 14px 16px 16px;
}
.astro-chat-preset-rail {
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: -170px;
    width: 152px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    overflow-y: auto;
    padding-right: 4px;
}
.astro-chat-preset {
    display: grid;
    gap: 5px;
    align-content: start;
    flex: 1 1 0;
    width: 100%;
    min-height: 0;
    padding: 12px 13px;
    border-radius: 18px;
    border: 1px solid rgba(150, 221, 255, 0.18);
    background:
        radial-gradient(circle at top left, rgba(141, 221, 255, 0.26), transparent 42%),
        linear-gradient(165deg, rgba(19, 42, 78, 0.8), rgba(10, 19, 39, 0.72) 56%, rgba(7, 72, 92, 0.52));
    color: #f4fbff;
    text-align: left;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 18px 36px rgba(5, 15, 33, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}
.astro-chat-preset:hover,
.astro-chat-preset:focus-visible {
    outline: none;
    transform: translateY(-1px);
    border-color: rgba(149, 224, 255, 0.38);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 20px 40px rgba(5, 16, 35, 0.28);
    background:
        radial-gradient(circle at top left, rgba(148, 228, 255, 0.34), transparent 44%),
        linear-gradient(165deg, rgba(24, 55, 101, 0.88), rgba(12, 24, 48, 0.78) 56%, rgba(9, 90, 111, 0.58));
}
.astro-chat-preset-kicker {
    color: rgba(152, 229, 255, 0.86);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.astro-chat-preset strong {
    display: block;
    font-size: 1rem;
    line-height: 1.2;
}
.astro-chat-preset span:last-child {
    color: rgba(219, 234, 248, 0.78);
    font-size: .76rem;
    line-height: 1.45;
}
.astro-chat-compose-main {
    min-width: 0;
}
.astro-chat-input {
    width: 100%;
    resize: vertical;
    min-height: 108px;
    border-radius: 18px;
    border: 1px solid rgba(129, 203, 255, 0.24);
    background:
        radial-gradient(circle at top left, rgba(110, 197, 255, 0.12), transparent 42%),
        linear-gradient(145deg, rgba(8, 16, 31, 0.9), rgba(6, 12, 26, 0.96));
    color: #f5fbff;
    padding: 15px 16px;
    font: inherit;
    font-size: 1rem;
    line-height: 1.62;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        inset 0 0 0 1px rgba(81, 147, 234, 0.04),
        0 14px 26px rgba(5, 10, 24, 0.16);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.astro-chat-input::placeholder {
    color: transparent;
}
.astro-chat-input:focus {
    outline: none;
    border-color: rgba(145, 215, 255, 0.44);
    background:
        radial-gradient(circle at top left, rgba(110, 197, 255, 0.16), transparent 42%),
        linear-gradient(145deg, rgba(10, 19, 36, 0.94), rgba(7, 13, 27, 0.98));
    box-shadow:
        0 0 0 1px rgba(106, 193, 255, 0.14),
        0 16px 34px rgba(5, 13, 29, 0.22);
}
.astro-chat-foot {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 8px;
}
.astro-chat-foot[hidden] {
    display: none !important;
}
.astro-chat-status {
    color: rgba(176, 203, 234, 0.76);
    font-size: .74rem;
    line-height: 1.45;
}
.astro-chat-status.is-error {
    color: #ffb8c7;
}
.astro-chat-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, var(--model-bg1), transparent 26%),
        radial-gradient(circle at top left, rgba(255,255,255,0.03), transparent 22%),
        linear-gradient(180deg, #121a2d 0%, #0a0f1a 52%, #070a12 100%);
    border: 1px solid var(--model-border, rgba(122, 177, 255, 0.28));
    box-shadow:
        0 28px 60px rgba(3, 7, 19, 0.6),
        0 0 34px var(--model-glowSoft, rgba(74, 82, 179, 0.24));
}
.astro-chat-overview {
    padding: 10px 16px 12px;
}
.astro-chat-head,
.astro-chat-models {
    background: transparent;
}
.astro-chat-head {
    position: relative;
    z-index: 3;
}
.astro-chat-models {
    position: relative;
    z-index: 2;
    display: block;
    min-height: 70px;
    overflow: hidden;
    scrollbar-width: none;
    padding: 10px 12px 10px;
    border-top: 1px solid rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(112, 143, 199, 0.14);
}
.astro-chat-models::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.astro-chat-models.tl-model-switch .astro-chat-model-chip-row,
.astro-chat-model-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    overflow: visible;
    padding-bottom: 0;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(118, 147, 205, 0.18);
    background:
        radial-gradient(circle at top left, var(--model-bg1), transparent 44%),
        linear-gradient(180deg, rgba(18, 24, 43, 0.9), rgba(11, 16, 29, 0.96));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.astro-chat-models.tl-model-switch .ai-compare-chips {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
}
.astro-chat-model-chip.ai-compare-chip {
    min-height: 38px;
    padding: 8px 14px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
}
.astro-chat-model-chip.ai-compare-chip.is-selected {
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.12),
        0 0 28px var(--model-chipActiveGlow),
        0 16px 34px var(--model-glowSoft);
}
.astro-chat-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    flex: 1 1 auto;
    min-height: 0;
    border-top: 1px solid rgba(112, 143, 199, 0.16);
}
.astro-chat-sidebar {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border-right: 1px solid rgba(112, 143, 199, 0.16);
    background:
        linear-gradient(180deg, rgba(5, 8, 14, 0.98), rgba(7, 10, 17, 0.98));
    overflow: visible;
}
.astro-chat-sidebar-section {
    display: grid;
    gap: 10px;
}
.astro-chat-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.astro-chat-sidebar-title {
    color: rgba(224, 232, 245, 0.9);
    font-size: .73rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.astro-chat-new-session {
    border: 1px solid rgba(122, 154, 214, 0.22);
    border-radius: 999px;
    background: #0d1320;
    color: #e9effb;
    padding: 8px 12px;
    font-size: .72rem;
    font-weight: 800;
}
.astro-chat-new-session:hover,
.astro-chat-new-session:focus-visible {
    outline: none;
    border-color: rgba(167, 193, 242, 0.34);
}
.astro-chat-session-switcher {
    position: relative;
}
.astro-chat-session-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid rgba(118, 147, 205, 0.18);
    border-radius: 14px;
    background: linear-gradient(180deg, #0f1624 0%, #0b101a 100%);
    color: #eef4ff;
    text-align: left;
    font-size: .82rem;
    font-weight: 800;
}
.astro-chat-session-toggle:hover,
.astro-chat-session-toggle:focus-visible {
    outline: none;
    border-color: rgba(167, 193, 242, 0.3);
}
.astro-chat-session-toggle-arrow {
    color: rgba(173, 198, 242, 0.78);
    font-size: .94rem;
    transition: transform .18s ease;
}
.astro-chat-shell.is-session-menu-open .astro-chat-session-toggle-arrow {
    transform: rotate(180deg);
}
.astro-chat-session-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 8;
    padding: 8px;
    border: 1px solid rgba(118, 147, 205, 0.2);
    border-radius: 16px;
    background: #06080d;
    box-shadow: 0 26px 44px rgba(0, 0, 0, 0.42);
}
.astro-chat-preset-rail {
    position: static;
    width: auto;
    display: grid;
    gap: 8px;
    overflow: visible;
    padding: 0;
}
.astro-chat-preset {
    display: grid;
    gap: 4px;
    width: 100%;
    min-height: 0;
    position: relative;
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid rgba(118, 147, 205, 0.16);
    background: linear-gradient(180deg, #101725 0%, #0b101a 100%);
    color: #f3f7ff;
    text-align: left;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}
.astro-chat-preset:hover,
.astro-chat-preset:focus-visible {
    outline: none;
    transform: translateY(-1px);
    border-color: rgba(168, 194, 242, 0.3);
    background: linear-gradient(180deg, #141d2f 0%, #0d1320 100%);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.26);
}
.astro-chat-preset.is-active {
    border-color: var(--model-borderStrong, rgba(232, 191, 108, 0.42));
    background:
        radial-gradient(circle at top left, var(--model-chipActive1), transparent 34%),
        radial-gradient(circle at 100% 0%, var(--model-chipActive2), transparent 42%),
        linear-gradient(180deg, rgba(26, 36, 63, 0.98) 0%, rgba(12, 18, 30, 0.98) 100%);
    color: #ffffff;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.08),
        0 12px 26px rgba(0, 0, 0, 0.24),
        0 0 24px var(--model-glowSoft, rgba(74, 82, 179, 0.24));
}
.astro-chat-preset.is-active strong,
.astro-chat-preset.is-active span:last-child {
    color: #ffffff;
}
.astro-chat-preset.is-used:not(.is-active) {
    border-color: rgba(210, 224, 255, 0.34);
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.04), transparent 42%),
        linear-gradient(180deg, #1a2338 0%, #101724 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.05),
        0 10px 20px rgba(0, 0, 0, 0.18);
}
.astro-chat-preset.is-used:not(.is-active) strong,
.astro-chat-preset.is-used:not(.is-active) span:last-child {
    color: rgba(247, 250, 255, 0.96);
}
.astro-chat-preset.is-used::before {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: .72rem;
    font-weight: 900;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}
.astro-chat-preset.is-active::before {
    background: rgba(255,255,255,0.18);
}
.astro-chat-preset.is-cached:not(.is-active) {
    border-color: rgba(205, 221, 255, 0.24);
    box-shadow: inset 0 0 0 1px rgba(205, 221, 255, 0.04);
}
.astro-chat-preset strong {
    display: block;
    font-size: .98rem;
    line-height: 1.22;
}
.astro-chat-preset span:last-child {
    color: rgba(182, 196, 221, 0.78);
    font-size: .74rem;
    line-height: 1.4;
}
.astro-chat-preset::after {
    content: attr(data-chat-prompt);
    position: absolute;
    z-index: 18;
    left: calc(100% + 16px);
    top: 50%;
    width: 460px;
    max-width: min(56vw, 560px);
    padding: 22px 24px;
    border-radius: 22px;
    border: 1px solid rgba(138, 164, 212, 0.42);
    background:
        radial-gradient(circle at 14% 0%, rgba(255,255,255,0.05), transparent 26%),
        radial-gradient(circle at 100% 100%, rgba(120, 159, 255, 0.08), transparent 30%),
        linear-gradient(180deg, #05070a 0%, #010204 100%);
    color: rgba(245, 248, 255, 0.98);
    font-size: 1.14rem;
    font-weight: 650;
    line-height: 1.62;
    letter-spacing: .01em;
    white-space: normal;
    box-shadow:
        0 34px 70px rgba(0, 0, 0, 0.62),
        0 0 40px rgba(62, 92, 168, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    opacity: 0;
    transform: translateY(-50%) translateX(-8px) scale(.982);
    filter: blur(10px);
    pointer-events: none;
    transition: opacity .16s ease, transform .18s cubic-bezier(.2, .9, .22, 1), filter .18s ease;
}
.astro-chat-preset:hover::after,
.astro-chat-preset:focus-visible::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
    filter: blur(0);
}
.astro-chat-preset.is-launching::after {
    opacity: 0;
    transform: translateY(-50%) translateX(24px) scale(.958);
    filter: blur(18px);
}
.astro-chat-preset-kicker {
    display: none;
}
.astro-chat-session-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    overflow-y: auto;
}
.astro-chat-session-empty {
    margin: 0;
    color: rgba(164, 178, 203, 0.72);
    font-size: .82rem;
    line-height: 1.55;
}
.astro-chat-session-item {
    width: 100%;
    display: grid;
    gap: 5px;
    padding: 11px 12px;
    border: 1px solid rgba(118, 147, 205, 0.14);
    border-radius: 14px;
    background: #0b111b;
    color: #f1f6ff;
    text-align: left;
}
.astro-chat-session-item:hover,
.astro-chat-session-item:focus-visible {
    outline: none;
    border-color: rgba(167, 193, 242, 0.28);
    background: #0f1726;
}
.astro-chat-session-item.is-active {
    border-color: rgba(211, 167, 86, 0.24);
    background: linear-gradient(180deg, #171209 0%, #0d111a 100%);
}
.astro-chat-session-item.is-selected {
    border-color: rgba(167, 193, 242, 0.38);
    background: #121b2c;
}
.astro-chat-session-label {
    display: block;
    font-size: .92rem;
    line-height: 1.45;
}
.astro-chat-session-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 22px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(227, 186, 104, 0.22);
    background: #171109;
    color: rgba(255, 230, 182, 0.9);
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.astro-chat-session-preview,
.astro-chat-session-meta {
    display: block;
    color: rgba(178, 193, 216, 0.74);
    font-size: .78rem;
    line-height: 1.48;
}
.astro-chat-main {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0b101a 0%, #070a12 100%);
    overflow: hidden;
}
.astro-chat-lock {
    margin: 14px 14px 0;
    border-radius: 14px;
    border: 1px solid rgba(110, 124, 151, 0.2);
    background: #12161f;
}
.astro-chat-stream {
    flex: 1 1 auto;
    min-height: 0;
    padding: 14px 8px 0 8px;
    overflow-y: auto;
    background: #090d15;
}
.astro-chat-empty {
    padding: 14px 8px 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(246, 249, 255, 0.96);
}
.astro-chat-empty p {
    margin: 0;
    color: inherit;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.62;
    letter-spacing: .01em;
}
.astro-chat-messages {
    gap: 8px;
    min-height: 100%;
}
.astro-chat-message {
    max-width: 96%;
    padding: 9px 10px;
    border-radius: 16px;
    border: 1px solid rgba(90, 110, 144, 0.2);
    background: #111725;
    box-shadow: none;
}
.astro-chat-message--user {
    background: linear-gradient(180deg, #17233a 0%, #121b2b 100%);
    border-color: rgba(109, 140, 197, 0.24);
}
.astro-chat-message--assistant {
    max-width: 98%;
    border-color: var(--model-borderStrong, rgba(211, 167, 86, 0.24));
    background:
        radial-gradient(circle at top left, var(--model-bg1), transparent 44%),
        linear-gradient(150deg, rgba(18, 23, 37, 0.94), rgba(11, 15, 26, 0.98) 54%, rgba(15, 20, 31, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.07),
        0 18px 40px rgba(3, 7, 16, 0.34),
        0 0 26px var(--model-glowSoft, rgba(74, 82, 179, 0.2));
}
.astro-chat-message-text {
    font-size: 1.02rem;
    line-height: 1.56;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.72);
}
.astro-chat-inline-strong {
    color: #ffffff;
    font-size: 1.04em;
    font-weight: 800;
    letter-spacing: .01em;
}
.astro-chat-inline-code {
    color: #f5fbff;
    font-size: .96em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.astro-chat-message--assistant .astro-chat-message-text--expandable {
    margin: 0;
    padding: 10px 11px;
    border-radius: 14px;
    border: 1px solid var(--model-borderStrong, rgba(244, 205, 112, 0.34));
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.05), transparent 46%),
        radial-gradient(circle at top left, var(--model-bg1), transparent 58%),
        linear-gradient(145deg, rgba(14, 18, 29, 0.98), rgba(8, 11, 19, 0.98) 56%, rgba(12, 15, 24, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 14px 28px rgba(4, 8, 18, 0.24);
}
.astro-chat-message--assistant .astro-chat-message-text--expandable:hover,
.astro-chat-message--assistant .astro-chat-message-text--expandable:focus-visible {
    transform: translateY(-1px);
    border-color: var(--model-chipHover, rgba(255, 223, 146, 0.46));
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.06), transparent 48%),
        radial-gradient(circle at top left, var(--model-bg1), transparent 58%),
        linear-gradient(145deg, rgba(16, 21, 33, 0.99), rgba(9, 13, 22, 0.99) 54%, rgba(13, 17, 27, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 18px 34px rgba(4, 8, 18, 0.28),
        0 0 24px var(--model-glowSoft, rgba(74, 82, 179, 0.16));
}
.astro-chat-report-card {
    gap: 8px;
}
.astro-chat-report-intro {
    font-size: 1.02rem;
    line-height: 1.56;
}
.astro-chat-report-section {
    padding: 9px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        radial-gradient(circle at top left, var(--model-bg1), transparent 48%),
        linear-gradient(145deg, rgba(18, 23, 36, 0.9), rgba(11, 15, 25, 0.98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.astro-chat-report-title {
    margin: 0 0 6px;
    color: var(--model-textStrong, #fff4cd);
    font-size: .92rem;
    line-height: 1.32;
}
.astro-chat-report-copy,
.astro-chat-report-list,
.astro-chat-report-fact-value {
    font-size: .98rem;
    line-height: 1.54;
}
.astro-chat-report-facts {
    gap: 6px;
}
.astro-chat-report-fact {
    padding: 7px 8px;
    border-radius: 10px;
}
.astro-chat-form {
    position: relative;
    margin-top: auto;
    margin-right: 0;
    margin-bottom: 0;
    border-top: 0;
    background: #070a12;
}
.astro-chat-form::before {
    display: none;
}
.astro-chat-composer {
    display: block;
    padding: 0;
}
.astro-chat-compose-main {
    min-width: 0;
}
.astro-chat-input {
    width: 100%;
    min-height: 48px;
    max-height: 88px;
    resize: vertical;
    border: 0;
    border-top: 1px solid rgba(112, 143, 199, 0.08);
    border-radius: 0;
    background: linear-gradient(180deg, #0b111c 0%, #070b12 100%);
    color: #f5fbff;
    padding: 8px 10px 9px;
    box-shadow: none;
    display: block;
    margin: 0;
    transition:
        opacity .14s ease,
        transform .18s cubic-bezier(.2, .88, .22, 1.04),
        filter .18s ease,
        background .18s ease,
        border-color .18s ease;
}
.astro-chat-input:focus {
    border-color: rgba(167, 193, 242, 0.22);
    background: linear-gradient(180deg, #0d1422 0%, #080c15 100%);
    box-shadow: none;
}
.astro-chat-input.is-prefill-animating {
    opacity: 0;
    transform: translateY(7px) scale(.994);
    filter: blur(6px);
}
.astro-chat-input.is-prefill-animating.is-prefill-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}
.astro-chat-foot {
    padding: 0 10px 2px;
    margin-top: 0;
}
.astro-chat-resize {
    position: absolute;
    z-index: 2;
    pointer-events: auto;
}
.astro-chat-resize--west {
    top: 22px;
    left: -7px;
    bottom: 22px;
    width: 14px;
    cursor: ew-resize;
}
.astro-chat-resize--north {
    top: -7px;
    left: 22px;
    right: 22px;
    height: 14px;
    cursor: ns-resize;
}
.astro-chat-resize--corner {
    top: -8px;
    left: -8px;
    width: 20px;
    height: 20px;
    cursor: nwse-resize;
}
.astro-chat-resize::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 999px;
    background: rgba(140, 216, 255, 0.16);
    opacity: 0;
    transition: opacity .18s ease, background .18s ease;
}
.astro-chat-resize:hover::before,
.astro-chat-resize:focus-visible::before,
body.astro-chat-resizing .astro-chat-resize::before {
    opacity: 1;
    background: rgba(151, 224, 255, 0.28);
}
.astro-chat-shell.is-open .astro-chat-panel {
    animation: astroChatIn .32s cubic-bezier(.2, .88, .22, 1.06);
}
body.astro-chat-resizing {
    cursor: nwse-resize;
    user-select: none;
}
body.astro-chat-reader-open {
    overflow: hidden;
}
.astro-chat-reader-overlay[hidden] {
    display: none !important;
}
.astro-chat-reader-overlay {
    position: fixed;
    inset: 0;
    z-index: 1350;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}
.astro-chat-reader-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background:
        radial-gradient(circle at center, rgba(91, 153, 255, 0.08), transparent 34%),
        rgba(4, 7, 16, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
}
.astro-chat-reader {
    position: relative;
    z-index: 1;
    width: min(980px, calc(100vw - 72px));
    max-height: min(90vh, 920px);
    display: flex;
    flex-direction: column;
    border-radius: 30px;
    border: 1px solid rgba(119, 206, 255, 0.32);
    background:
        radial-gradient(circle at top right, rgba(129, 208, 255, 0.14), transparent 26%),
        radial-gradient(circle at 0% 0%, rgba(116, 223, 255, 0.1), transparent 30%),
        linear-gradient(145deg, rgba(26, 41, 69, 0.98), rgba(26, 27, 56, 0.98) 58%, rgba(30, 63, 78, 0.9));
    box-shadow:
        0 42px 96px rgba(4, 8, 20, 0.58),
        inset 0 1px 0 rgba(255,255,255,0.1);
    overflow: hidden;
}
.astro-chat-reader-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px 14px;
    border-bottom: 1px solid rgba(126, 202, 255, 0.16);
}
.astro-chat-reader-heading h3 {
    margin: 10px 0 0;
    color: #f8fcff;
    font-family: var(--font-d);
    font-size: clamp(1.22rem, 1.45vw, 1.42rem);
    text-shadow:
        0 2px 0 rgba(0, 0, 0, 0.72),
        0 0 16px rgba(115, 194, 255, 0.08);
}
.astro-chat-reader-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(127, 224, 255, 0.96), rgba(95, 230, 193, 0.94));
    color: #14304a;
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow:
        0 12px 26px rgba(13, 42, 72, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.42);
}
.astro-chat-reader-close {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 999px;
    border: 1px solid rgba(126, 203, 255, 0.28);
    background: rgba(12, 23, 45, 0.84);
    color: #ebf8ff;
    font-size: 1.28rem;
    line-height: 1;
    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}
.astro-chat-reader-close:hover,
.astro-chat-reader-close:focus-visible {
    outline: none;
    transform: translateY(-1px);
    border-color: rgba(154, 223, 255, 0.44);
    box-shadow: 0 18px 34px rgba(7, 18, 39, 0.22);
}
.astro-chat-reader-meta {
    padding: 0 24px 10px;
    color: rgba(183, 208, 233, 0.78);
    font-size: .82rem;
    letter-spacing: .03em;
}
.astro-chat-reader-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0 24px 26px;
    color: rgba(245, 249, 255, 0.96);
    font-size: clamp(1.08rem, 1.28vw, 1.24rem);
    line-height: 1.92;
    white-space: pre-wrap;
    word-break: break-word;
    text-shadow:
        0 2px 0 rgba(0, 0, 0, 0.82),
        0 0 18px rgba(132, 102, 228, 0.08);
}
.astro-chat-reader-body .astro-chat-report-card {
    white-space: normal;
}
.astro-chat-reader-body .astro-chat-report-section {
    padding: 18px 20px;
    border-radius: 20px;
}
.astro-chat-reader-body .astro-chat-report-title {
    font-size: .94rem;
}
.astro-chat-reader-body .astro-chat-report-intro,
.astro-chat-reader-body .astro-chat-report-copy,
.astro-chat-reader-body .astro-chat-report-list {
    font-size: 1.04rem;
    line-height: 1.84;
}
@keyframes astroChatIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.92);
    }
    60% {
        opacity: 1;
        transform: translateY(-2px) scale(1.01);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes astroOrbPulse {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.08),
            0 0 18px rgba(104, 168, 255, 0.16);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.12),
            0 0 26px rgba(104, 168, 255, 0.24);
    }
}

/* ═══ FOOTER ═══ */
.footer-lead {
    padding: 28px 20px 18px;
}
.footer {
    border-top: 1px solid rgba(255,255,255,0.04); padding: 28px 20px; text-align: center;
    background: rgba(7,7,13,0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    margin-top: auto;
}
.footer-container {
    max-width: 1220px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.footer-container--lead {
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    text-align: center;
}
.footer-main {
    color: white;
    /* text-color: white; */
    font-size: 1.3rem;
    margin: 0;
}
.footer-big {
    color: white;
    font-size: 1.5rem;
    margin: 0;
}
.footer-big--lead {
    max-width: 980px;
    font-size: clamp(1.55rem, 2vw, 2rem);
    line-height: 1.35;
}
.footer-lead-copy {
    max-width: 980px;
    margin: 0;
    color: rgba(240, 237, 246, 0.88);
    font-size: clamp(1.06rem, 1.4vw, 1.22rem);
    line-height: 1.78;
    text-align: center;
}
.footer-main {
    color: var(--tx-3);
    font-size: .8rem;
    margin: 0;
}
.footer-oss {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.footer-oss-label {
    color: #ffffff;
    font-size: .84rem;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
    white-space: nowrap;
}
.footer-oss-link {
    font-size: .76rem;
    padding: 6px 12px;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1320px) {
    .nav-tagline-wrap {
        flex-direction: column;
        gap: 8px;
    }
    .nav-ai--tagline .nav-ai-trigger {
        max-width: min(86vw, 420px);
    }
}

@media (max-width: 1760px) {
    .nav-container {
        column-gap: 14px;
    }
    .nav-tagline-wrap {
        gap: 8px 10px;
    }
    .nav-tagline {
        font-size: clamp(1.16rem, 1.14vw, 1.3rem);
    }
    .nav-right {
        gap: 12px;
        flex-wrap: wrap;
    }
    .nav-moment {
        gap: 8px;
    }
    .nav-links {
        gap: 12px;
    }
}

@media (max-width: 1024px) {
    .nav-container {
        grid-template-columns: 1fr;
        justify-items: center;
        row-gap: 10px;
    }
    .nav-tagline-wrap {
        display: flex;
        width: 100%;
        justify-content: center;
    }
    .nav-ai {
        display: none !important;
    }
    .nav-tagline {
        font-size: 1.18rem;
        white-space: normal;
        text-align: center;
    }
    .nav-right {
        width: 100%;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    .nav-tier-badge {
        min-height: 30px;
        padding: 5px 10px;
        font-size: .68rem;
    }
    .nav-moment,
    .nav-links {
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .nav-container {
        display: flex;
        padding: 10px 14px;
        gap: 12px;
        align-items: center;
        flex-direction: column;
    }
    .nav-brand-wrap {
        width: 100%;
        justify-content: center;
        margin: 0;
    }
    .nav-brand-stack {
        width: 100%;
        align-items: center;
        gap: 6px;
        min-width: 0;
    }
    .nav-brand-stack .nav-logo {
        align-items: center;
    }
    .nav-brand-meta {
        width: min(260px, 100%);
    }
    .nav-brand-meta-main {
        width: 100%;
        align-items: stretch;
    }
    .nav-brand-beta {
        text-align: right;
    }
    .nav-logo-pro-btn {
        min-height: 32px;
        padding: 5px 14px;
        font-size: .98rem;
    }
    .nav-tagline-wrap {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    .nav-tagline {
        font-size: 1.16rem;
        width: 100%;
        text-align: center;
        white-space: normal;
        line-height: 1.28;
    }
    .nav-tagline-ai {
        font-size: inherit;
    }
    .nav-right {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }
    .nav-moment {
        width: 100%;
        justify-content: center;
    }
    .nav-ai {
        width: 100%;
        max-width: 520px;
    }
    .nav-ai-trigger {
        width: 100%;
        min-width: 0;
        min-height: 54px;
    }
    .nav-ai-dropdown {
        position: static;
        width: 100%;
        margin-top: 8px;
        transform-origin: top center;
        transform: translateY(-8px) scale(.985);
    }
    .nav-ai.nav-ai--tagline .nav-ai-dropdown {
        transform: translateY(-8px) scale(.985);
    }
    .nav-ai:not(.is-open) .nav-ai-dropdown {
        margin-top: 0;
    }
    .nav-ai.is-open .nav-ai-dropdown {
        transform: translateY(0) scale(1);
    }
    .nav-ai.nav-ai--tagline:hover .nav-ai-dropdown,
    .nav-ai.nav-ai--tagline:focus-within .nav-ai-dropdown,
    .nav-ai.nav-ai--tagline.is-open .nav-ai-dropdown {
        transform: translateY(0) scale(1);
    }
    .nav-moment-link {
        font-size: 1rem;
        padding: 10px 17px;
        min-height: 46px;
    }
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 14px;
        flex-wrap: wrap;
    }
    .nav-links a,
    .nav-btn,
    .nav-btn-outline {
        min-height: 46px;
        padding: 10px 17px;
        font-size: 1rem;
    }
    .gantt-header {
        padding-top: 26px;
    }
    .gantt-day-cell {
        padding: 11px 0 9px;
    }
    .gdc-num {
        font-size: 1.16rem;
    }
    .gdc-name {
        font-size: .72rem;
    }
    .gantt-day-cell--week .gdc-num {
        font-size: .92rem;
    }
    .gantt-day-cell--week .gdc-name {
        font-size: .74rem;
    }
    .gantt-day-cell--week-compact .gdc-num {
        font-size: .84rem;
    }
    .gantt-day-cell--week-compact .gdc-name {
        font-size: .68rem;
    }
    .gdc-hover-tip {
        top: -32px;
        font-size: .6rem;
    }
    .moment-hero-stage { padding: 28px 14px 34px; }
    .moment-wheel-stage-title-intro { font-size: .88rem; }
    .moment-wheel-stage-location { font-size: clamp(2.05rem, 10vw, 2.7rem); }
    .moment-overview-grid { grid-template-columns: 1fr; gap: 12px; }
    .moment-stream-shell {
        padding: 14px 14px 0;
    }
    .moment-wheel-angle-line {
        font-size: 1.04rem;
        line-height: 1.52;
        padding: 0 10px;
    }
    .moment-aspects-grid { grid-template-columns: 1fr; }
    .moment-report-lists { grid-template-columns: 1fr; }
    .moment-knowledge-overview {
        align-items: flex-start;
        flex-direction: column;
    }
    .moment-knowledge-copy { grid-template-columns: 1fr; }
    .moment-moon-memory-layout { flex-direction: column; }
    .moment-moon-memory-layout.is-rail-collapsed .moment-moon-memory-rail {
        flex-basis: auto;
        max-width: none;
        max-height: 0;
        opacity: 0;
        transform: translateY(-8px);
        margin: 0;
    }
    .moment-moon-memory-tools { align-items: flex-start; }
    .moment-card--moon-memory { padding: 14px; }
    .moment-moon-memory-rail { max-width: none; width: 100%; transition: max-height .24s ease, opacity .18s ease, transform .24s ease, margin .24s ease; }
    .moment-moon-memory-timeline { max-height: none; }
    .landing-model-lab {
        padding: 8px 14px 18px;
    }
    .landing-model-switch {
        padding: 14px;
        border-radius: 20px;
    }
    .landing-model-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
    }
    .landing-model-tab {
        flex: 0 0 auto;
    }
    .moment-moon-memory-tabs {
        gap: 8px;
    }
    .moment-moon-memory-tab {
        min-width: 84px;
        padding: 9px 11px;
    }
    .astro-chat-shell {
        right: 10px;
        left: auto;
        bottom: 10px;
        align-items: flex-end;
    }
    .astro-chat-launcher {
        width: 56px;
        min-width: 56px;
        height: 56px;
        min-height: 56px;
        justify-content: center;
    }
    .astro-chat-panel {
        width: min(520px, calc(100vw - 24px));
        height: auto;
        min-height: 0;
        max-height: min(82vh, 760px);
        border-radius: 22px;
        overflow: hidden;
    }
    .astro-chat-layout {
        grid-template-columns: 1fr;
    }
    .astro-chat-sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(112, 143, 199, 0.16);
        padding: 10px;
    }
    .astro-chat-composer {
        display: block;
    }
    .astro-chat-session-menu {
        position: static;
        margin-top: 8px;
    }
    .astro-chat-preset-rail {
        position: static;
        width: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
        max-height: none;
        padding: 0;
    }
    .astro-chat-preset {
        min-height: 72px;
    }
    .astro-chat-preset::after {
        display: none;
    }
    .astro-chat-session-list {
        max-height: 160px;
    }
    .astro-chat-inspector-grid {
        grid-template-columns: 1fr;
    }
    .astro-chat-inspector-card {
        border-right: 0;
    }
    .astro-chat-input {
        border-radius: 0 0 22px 22px;
    }
    .astro-chat-resize {
        display: none;
    }
    .astro-chat-reader-overlay {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
    }
    .astro-chat-reader {
        width: 100vw;
        max-width: none;
        height: 100vh;
        max-height: none;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }
    .astro-chat-reader-head {
        padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 12px;
    }
    .astro-chat-reader-meta {
        padding: 0 16px 8px;
    }
    .astro-chat-reader-body {
        padding: 0 16px calc(26px + env(safe-area-inset-bottom, 0px));
        font-size: 1.04rem;
        line-height: 1.84;
    }
    .astro-chat-lock-cta {
        width: 100%;
        justify-content: center;
    }
    .form-grid { grid-template-columns: 1fr; }
    .form-card { padding: 24px; }
    .hero { padding: 48px 16px 36px; }
    .modal { margin: 8px; border-radius: var(--r-md); }
    .modal-header { padding: 20px 18px 12px; }
    .modal-body { padding: 12px 18px; }
    .modal-gradient-bar { margin: 10px 18px 0; }
    .modal-footer { padding: 10px 18px 18px; }
    .modal-symbol { font-size: 1.8rem; }
    .tl-header-row {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }
    .tl-analysis-side {
        width: 100%;
        align-items: flex-start;
    }
    .tl-header-moon {
        justify-self: center;
        min-width: 0;
        width: 100%;
        max-width: 320px;
        --moon-beam-width: min(300px, 86vw);
    }
    .tl-header-moon-beam {
        width: var(--moon-beam-width);
    }
    .tl-header-moon-label {
        font-size: .7rem;
    }
    .tl-day-select-wrap {
        width: 100%;
        justify-content: flex-start;
        align-items: stretch;
        margin-left: 0;
        justify-self: start;
    }
    .tl-analysis-side .tl-day-select-wrap {
        justify-content: flex-start;
    }
    .tl-model-switch .ai-compare-chips {
        flex-wrap: wrap;
    }
    .tl-mobile-calendar {
        display: none;
        margin-top: 10px;
        padding: 12px;
        border-radius: 16px;
        border: 1px solid rgba(122, 177, 255, 0.4);
        background:
            radial-gradient(circle at 10% 22%, rgba(120, 95, 240, 0.3), transparent 48%),
            radial-gradient(circle at 88% 82%, rgba(98, 209, 255, 0.2), transparent 45%),
            linear-gradient(150deg, rgba(18, 22, 56, 0.94), rgba(10, 13, 34, 0.96));
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 16px 36px rgba(5, 8, 24, 0.56), 0 0 28px rgba(74, 154, 255, 0.24);
    }
    .tl-mobile-calendar-trigger {
        min-height: 60px;
        font-size: 1.08rem;
        border-radius: 13px;
    }
    .gantt-head--timeline {
        padding: 12px;
        margin: 0 12px 10px;
        border-radius: 16px;
    }
    .gantt-head--moon .gantt-axis-title {
        font-size: .9rem;
    }
    .gantt-head--analysis {
        padding: 0 16px;
        margin-bottom: 6px;
    }
    .gantt-current-day-text {
        width: auto;
        justify-content: center;
        font-size: 1.04rem;
        min-height: 40px;
    }
    .gantt-head-topline {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .gantt-head-intro {
        margin-bottom: 8px;
    }
    .gantt-section-title {
        font-size: 1.02rem;
    }
    .gantt-section-subtitle {
        font-size: .76rem;
    }
    .gantt-profile-block {
        width: 100%;
        align-items: flex-start;
    }
    .gantt-profile-inline {
        width: 100%;
        flex-wrap: wrap;
    }
    .gantt-profile-meta-item {
        font-size: .65rem;
    }
    .gantt-profile-meta-item--place {
        max-width: 100%;
    }
    .gantt-profile-cta {
        min-height: 30px;
        font-size: .68rem;
        padding: 0 9px;
    }
    .gantt-head-actions {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
    }
    .gantt-profile-name {
        font-size: .9rem;
    }
    .gantt-profile-switch {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }
    .gantt-profile-select {
        width: 100%;
        min-width: 0;
        min-height: 46px;
    }
    .gantt-axis-title {
        width: auto;
        font-size: .78rem;
        letter-spacing: .08em;
        margin-top: 0;
    }
    .gantt-head--analysis .gantt-axis-title {
        margin-top: 0;
        font-size: 1.12rem;
        letter-spacing: .02em;
        text-transform: none;
    }
    .gantt-axis-trigger {
        width: 40px;
        min-width: 40px;
        min-height: 40px;
        padding: 6px;
        justify-content: center;
        border-radius: 10px;
    }
    .gantt-axis-trigger-text {
        font-size: .96rem;
    }
    .dd-card { padding: 16px; }
    .day-detail { padding: 24px 16px 60px; }
    .dd-hero {
        padding: 15px 14px 14px;
        border-radius: 20px;
    }
    .dd-hero-top {
        align-items: flex-start;
        flex-direction: column;
    }
    .dd-hero-kicker {
        min-height: 28px;
        padding: 5px 10px;
        font-size: .76rem;
    }
    .dd-hero-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
    .dd-hero-symbols {
        font-size: calc(1.75rem + 3px);
    }
    .dd-hero-title {
        font-size: 1.24rem;
    }
    .dd-hero-text {
        font-size: 1.12rem;
        line-height: 1.72;
    }
    .dd-hero-support {
        font-size: 1.04rem;
    }
    .timeline-tldr-wrap { padding: 0 16px 24px; }
    .timeline-tldr-panel { padding: 15px 14px 14px; }
    .timeline-tldr-text { font-size: 1.08rem; line-height: 1.76; }
    .timeline-moon-svg { width: min(68vw, 250px); }
    .timeline-moon-phase-title { font-size: .92rem; }
    .gantt-bar-label { font-size: 1.4rem; }
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
    .footer-oss {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .modal-overlay--timeline {
        --mobile-nav-offset: 74px;
        align-items: stretch;
        justify-content: stretch;
        padding-top: var(--mobile-nav-offset);
        background: transparent;
    }
    .modal--timeline {
        position: relative;
        top: 0;
        right: 0;
        width: 100vw;
        max-width: 100vw;
        max-height: calc(100dvh - var(--mobile-nav-offset));
        height: calc(100dvh - var(--mobile-nav-offset));
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        left: 0 !important;
    }
    .modal--timeline .modal-header {
        padding: 22px 16px 12px;
    }
    .modal--timeline .modal-duration {
        font-size: .95rem;
    }
    .modal--timeline .modal-body {
        padding: 10px 16px;
    }
    .modal--timeline .modal-footer {
        padding: 10px 16px 16px;
        align-items: stretch;
    }
    .timeline-calendar-overlay {
        background: rgba(4, 7, 18, 0.8);
    }
    .timeline-calendar-panel {
        width: 100vw;
        max-height: 100dvh;
        height: 100dvh;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        padding: 14px 12px 14px;
        left: 0 !important;
        top: 0 !important;
    }
    .timeline-calendar-head {
        grid-template-columns: 42px 1fr 42px 42px;
        gap: 8px;
        margin-bottom: 12px;
    }
    .timeline-calendar-month {
        font-size: 1.1rem;
    }
    .timeline-calendar-nav,
    .timeline-calendar-close {
        min-height: 42px;
        font-size: 1rem;
    }
    .timeline-calendar-weekday {
        font-size: .7rem;
    }
    .timeline-calendar-cell {
        min-height: 50px;
        font-size: 1rem;
    }
    .timeline-calendar-footer-btn {
        min-height: 44px;
        font-size: .84rem;
    }
}

@media (max-width: 380px) {
    .gantt-bar-label { font-size: 1.2rem; }
    .gantt-header {
        padding-top: 24px;
    }
    .tl-header-moon {
        --moon-edge-pad: 18px;
    }
    .nav-ai-item {
        grid-template-columns: 1fr;
    }
    .nav-ai-item-pill {
        justify-self: flex-start;
    }
    .nav-ai-item-live {
        justify-self: flex-start;
    }
}

/* Date inputs */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(.7); cursor: pointer;
}

/* ═══ AI PANEL ═══ */
.ai-section-wrap {
    max-width: 900px; margin: 0 auto;
    padding: 24px 20px 0;
}
.ai-panel {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 0%, var(--model-bg1), transparent 58%),
        linear-gradient(145deg, rgba(10, 14, 35, 0.88), rgba(8, 10, 24, 0.92));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 1;
    box-shadow:
        0 20px 48px rgba(4, 7, 21, 0.46),
        0 0 34px var(--model-glowSoft);
    transition: opacity .3s, transform .26s ease, box-shadow .26s ease;
}
.ai-panel-border {
    position: absolute; inset: 0;
    border-radius: var(--r-lg);
    padding: 2px;
    background: linear-gradient(135deg, var(--model-chipActive1), var(--model-chipActive2), var(--model-borderStrong), var(--model-chipActive1));
    background-size: 300% 300%;
    animation: aiGradientShift 4s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
@keyframes aiGradientShift {
    0%,100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.ai-panel-inner {
    padding: 24px 28px;
}
.ai-panel-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.ai-head-meta {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.ai-icon {
    font-size: 1.4rem;
    animation: aiPulse 2s ease-in-out infinite;
}
@keyframes aiPulse {
    0%,100% { opacity: .7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}
.ai-panel-title {
    font-family: var(--font-d); font-size: 1.1rem; font-weight: 700; flex: 1;
    background: linear-gradient(90deg, var(--model-textStrong), var(--model-chipActive1));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.ai-badge {
    font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    padding: 3px 8px; border-radius: 100px;
    background: linear-gradient(135deg, var(--model-badgeBg), rgba(255,255,255,0.02));
    color: var(--model-badgeText);
    border: 1px solid var(--model-badgeBorder);
    white-space: nowrap;
}
.ai-badge--model {
    margin-left: 4px;
    font-size: .66rem;
    letter-spacing: .075em;
    text-shadow: 0 0 12px var(--model-glow);
}
.ai-generated-at {
    font-size: .7rem;
    color: var(--tx-3);
    letter-spacing: .03em;
    line-height: 1.2;
    text-align: right;
}
.ai-generated-at--cached {
    color: #7af1ce;
}
.ai-progress-wrap {
    margin-bottom: 18px;
    border: 1px solid var(--model-border);
    border-radius: var(--r-md);
    padding: 14px 16px;
    background:
        linear-gradient(135deg, var(--model-bg1), rgba(18, 26, 52, 0.5)),
        rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 0 22px var(--model-glowSoft);
}
.ai-progress-track {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--model-border);
    overflow: hidden;
}
.ai-progress-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--model-chipActive1), var(--model-chipActive2), var(--model-borderStrong));
    background-size: 220% 100%;
    animation: aiProgressFlow 1.7s linear infinite;
    transition: width .5s cubic-bezier(.16, .8, .24, 1);
}
.ai-progress-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,.28), transparent 40%);
    mix-blend-mode: screen;
    animation: aiProgressGlow 2.6s ease-in-out infinite;
}
.ai-progress-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 12px;
}
.ai-progress-step {
    font-size: .78rem;
    color: var(--tx-3);
    opacity: .78;
    transition: color .25s ease, opacity .25s ease, transform .25s ease;
}
.ai-progress-step::before {
    content: '\25E6';
    display: inline-block;
    width: 14px;
    color: rgba(147, 197, 253, 0.7);
}
.ai-progress-step.is-active {
    color: #c4f2ff;
    opacity: 1;
    transform: translateX(3px);
}
.ai-progress-step.is-active::before {
    content: '\25B8';
    color: #67d9ff;
}
.ai-progress-step.is-done {
    color: #86f7cf;
    opacity: .95;
}
.ai-progress-step.is-done::before {
    content: '\2713';
    color: #86f7cf;
}
@keyframes aiProgressFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
@keyframes aiProgressGlow {
    0%, 100% { transform: translateX(-25%); opacity: .45; }
    50% { transform: translateX(40%); opacity: .8; }
}

.ai-compare-controls {
    position: relative;
    margin: 0 0 16px;
    padding: 13px 15px;
    border: 1px solid var(--model-border);
    border-radius: 20px;
    background:
        radial-gradient(circle at 16% 0%, var(--model-bg1), transparent 56%),
        linear-gradient(145deg, rgba(14, 22, 49, 0.86), rgba(10, 12, 28, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        0 18px 38px rgba(4, 7, 20, 0.38),
        0 0 28px var(--model-glowSoft);
    overflow: hidden;
}
.ai-compare-controls::before {
    content: "";
    position: absolute;
    inset: -36% auto auto -10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--model-glow), transparent 72%);
    filter: blur(12px);
    opacity: .54;
    animation: modelHaloPulse 5.4s ease-in-out infinite;
    pointer-events: none;
}
.ai-compare-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.ai-compare-label {
    font-size: .78rem;
    color: var(--model-text);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
}
.ai-compare-hint {
    position: relative;
    z-index: 1;
    font-size: .72rem;
    color: rgba(224, 233, 255, 0.76);
}
.ai-compare-hint--error {
    color: #fca5a5;
}
.ai-compare-chips {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ai-compare-chip {
    appearance: none;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--model-chipBorder);
    background: linear-gradient(135deg, var(--model-chip1), var(--model-chip2));
    color: var(--model-text);
    border-radius: 999px;
    padding: 6px 11px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .01em;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        0 10px 24px rgba(5, 8, 23, 0.2);
    transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}
.ai-compare-chip::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 18%, var(--model-sheen) 48%, transparent 82%);
    transform: translateX(-135%);
    pointer-events: none;
}
.ai-compare-chip:hover {
    border-color: var(--model-chipHover);
    color: var(--model-textStrong);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.14),
        0 14px 28px var(--model-glowSoft);
}
.ai-compare-chip:hover::before,
.ai-compare-chip:focus-visible::before,
.ai-compare-chip.is-selected::before {
    animation: modelChipSweep 1.2s ease;
}
.ai-compare-chip.is-selected {
    color: var(--model-chipActiveInk);
    border-color: var(--model-borderStrong);
    background: linear-gradient(135deg, var(--model-chipActive1), var(--model-chipActive2));
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.12),
        0 0 24px var(--model-chipActiveGlow),
        0 14px 34px var(--model-glowSoft);
}
.ai-compare-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}
.ai-compare-grid--cache-swap {
    animation: aiCacheSwapFlash .52s ease;
}
.ai-compare-errors {
    grid-column: 1 / -1;
    font-size: .82rem;
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.32);
    background: rgba(127, 29, 29, 0.2);
    border-radius: var(--r-sm);
    padding: 9px 10px;
}
.ai-compare-card {
    border: 1px solid var(--model-border);
    border-radius: var(--r-md);
    background:
        radial-gradient(circle at 14% 0%, var(--model-bg1), transparent 58%),
        linear-gradient(145deg, rgba(12, 16, 34, 0.8), rgba(8, 11, 25, 0.88));
    padding: 12px;
    display: grid;
    gap: 10px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 18px 32px rgba(5, 8, 20, 0.2);
}
.ai-compare-card--error {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(127, 29, 29, 0.18);
}
.ai-compare-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.ai-compare-generated {
    font-size: .7rem;
    color: var(--tx-3);
    white-space: nowrap;
}
.ai-panel--cache-swap {
    animation: aiCacheSwapFlash .52s ease;
}

@keyframes aiCacheSwapFlash {
    0% {
        transform: translateY(0);
        box-shadow:
            0 20px 48px rgba(4, 7, 21, 0.46),
            0 0 0 rgba(255,255,255,0);
    }
    35% {
        transform: translateY(-1px);
        box-shadow:
            0 24px 54px rgba(4, 7, 21, 0.52),
            0 0 28px var(--model-chipActiveGlow);
    }
    100% {
        transform: translateY(0);
        box-shadow:
            0 20px 48px rgba(4, 7, 21, 0.46),
            0 0 34px var(--model-glowSoft);
    }
}
.ai-compare-rating {
    font-size: .78rem;
    color: #fde68a;
    letter-spacing: .02em;
}
.ai-compare-part {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    padding-top: 8px;
}
.ai-compare-part-title {
    margin: 0 0 6px;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--tx-3);
}
.ai-compare-energy,
.ai-compare-empty {
    margin: 0;
    font-size: .85rem;
    color: var(--tx-1);
    line-height: 1.55;
}
.ai-compare-list {
    margin: 0;
    padding: 0 0 0 14px;
    display: grid;
    gap: 4px;
}
.ai-compare-list li {
    font-size: .82rem;
    color: var(--tx-1);
    line-height: 1.45;
}
.ai-compare-error {
    margin: 2px 0 0;
    font-size: .84rem;
    color: #fecaca;
}
.ai-compare-warning {
    margin: 2px 0 0;
    font-size: .84rem;
    color: #fde68a;
}

/* Shimmer loading (legacy, kept for fallback states) */
.ai-loading {
    margin-bottom: 18px;
}
.ai-shimmer-line {
    height: 14px; border-radius: 7px; width: 100%;
    background: linear-gradient(90deg, var(--bg-3) 0%, var(--bg-4) 50%, var(--bg-3) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease infinite;
}
.ai-shimmer-short { width: 40%; }
.ai-shimmer-med { width: 70%; }
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Rating row */
.ai-rating-row {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px; margin-bottom: 20px;
    background: rgba(255,255,255,.03); border-radius: var(--r-md);
    border: 1px solid var(--border);
}
.ai-rating-label { font-size: .82rem; color: var(--tx-3); font-weight: 500; }
.ai-stars { display: flex; gap: 2px; flex: 1; justify-content: center; }
.ai-star {
    font-size: 1.2rem; color: var(--tx-3); opacity: 0;
    animation: starAppear .3s ease forwards;
}
.ai-star--filled { color: #fbbf24; }
@keyframes starAppear {
    from { opacity: 0; transform: scale(0) rotate(-30deg); }
    to { opacity: 1; transform: scale(1) rotate(0deg); }
}
.ai-rating-num {
    font-family: var(--font-d); font-weight: 700; font-size: 1.1rem;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Sections */
.ai-section {
    display: flex; gap: 14px; padding: 16px 0;
    border-top: 1px solid var(--border);
    opacity: 0; transform: translateY(10px);
    transition: opacity .4s ease, transform .4s ease;
}
.ai-section--visible { opacity: 1; transform: translateY(0); }
.ai-section-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.ai-section-content { flex: 1; }
.ai-section-content h4 {
    font-family: var(--font-d);
    font-size: clamp(.98rem, .92rem + .16vw, 1.08rem);
    font-weight: 800;
    color: rgba(237, 247, 255, 0.96);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.9),
        0 0 12px rgba(0, 0, 0, 0.42),
        0 0 18px rgba(117, 201, 255, 0.14);
}
.ai-section-content p {
    font-size: .92rem; color: var(--tx-1); line-height: 1.7;
}
.ai-section-content ul {
    list-style: none; padding: 0;
}
.ai-section-content li {
    font-size: .9rem; color: var(--tx-1); line-height: 1.6;
    padding: 4px 0 4px 18px; position: relative;
}
.ai-section-content li::before {
    content: ''; position: absolute; left: 0; top: 12px;
    width: 6px; height: 6px; border-radius: 50%;
}
.ai-section-focus li::before { background: var(--green); }
.ai-section-avoid li::before { background: var(--red); }

/* Error state */
.ai-error {
    padding: 16px; text-align: center;
    color: var(--red); font-size: .88rem;
    background: rgba(239,68,68,.06); border-radius: var(--r-sm);
}

/* Loaded glow */
.ai-panel--loaded .ai-panel-border {
    box-shadow: 0 0 30px var(--model-chipActiveGlow);
}

/* Responsive */
@media (max-width: 640px) {
    .ai-panel-header { flex-wrap: wrap; align-items: flex-start; }
    .ai-head-meta { width: 100%; align-items: flex-start; margin-left: 34px; }
    .ai-generated-at { text-align: left; }
    .ai-compare-head { flex-direction: column; align-items: flex-start; margin-bottom: 8px; }
    .ai-compare-chip { font-size: .7rem; padding: 6px 10px; }
    .ai-compare-grid { grid-template-columns: 1fr; gap: 10px; }
    .ai-compare-meta { align-items: flex-start; flex-direction: column; }
    .ai-compare-generated { white-space: normal; }
    .ai-progress-wrap { padding: 12px 12px; }
    .ai-progress-step { font-size: .72rem; }
    .ai-panel-inner { padding: 18px 16px; }
    .ai-section { gap: 10px; }
    .ai-star { font-size: 1rem; }
    .ai-rating-row { flex-wrap: wrap; gap: 8px; }
}

/* ═══ NATÁLNA ANALÝZA ═══ */
.natal-header {
    padding: 24px 20px 16px;
    background: rgba(12,12,22,0.7);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.natal-header-inner { max-width: 900px; margin: 0 auto; }
.natal-profile-row { display: flex; align-items: center; gap: 14px; }

.natal-overview { max-width: 900px; margin: 0 auto; padding: 28px 20px 0; }
.natal-overview-inner {}

.natal-planets-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px; margin-bottom: 24px;
}
.natal-planet-card {
    background: rgba(19,19,31,0.5);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--r-sm); padding: 14px 10px; text-align: center;
    transition: border-color .3s, transform .3s, background .3s, box-shadow .3s;
}
.natal-planet-card:hover {
    border-color: rgba(139,92,246,.25); transform: translateY(-3px);
    background: rgba(26,26,46,0.6); box-shadow: 0 4px 16px rgba(139,92,246,.1);
}
.natal-planet-card--special { border-color: rgba(139,92,246,.12); }
.natal-planet-symbol { font-size: 1.4rem; margin-bottom: 4px; }
.natal-planet-name { font-size: .72rem; color: var(--tx-3); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.natal-planet-sign { font-family: var(--font-d); font-size: .82rem; font-weight: 600; margin-top: 2px; }

.natal-balance-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.natal-balance-card {
    background: rgba(19,19,31,0.5);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--r-md); padding: 18px 20px;
}
.natal-balance-card h3 {
    font-family: var(--font-d); font-size: .85rem; font-weight: 600;
    margin-bottom: 14px; color: var(--tx-2); text-transform: uppercase;
    letter-spacing: .04em;
}
.natal-bars { display: flex; flex-direction: column; gap: 8px; }
.natal-bar-row { display: flex; align-items: center; gap: 10px; }
.natal-bar-label { font-size: .78rem; color: var(--tx-2); min-width: 70px; font-weight: 500; }
.natal-bar-track { flex: 1; height: 6px; background: rgba(255,255,255,.05); border-radius: 100px; overflow: hidden; }
.natal-bar-fill { height: 100%; border-radius: 100px; transition: width .6s ease; }
.natal-bar-fill--oheň { background: linear-gradient(90deg, #ef4444, #f97316); }
.natal-bar-fill--zem { background: linear-gradient(90deg, #10b981, #34d399); }
.natal-bar-fill--vzduch { background: linear-gradient(90deg, #06b6d4, #67e8f9); }
.natal-bar-fill--voda { background: linear-gradient(90deg, #6366f1, #818cf8); }
.natal-bar-fill--mod { background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.natal-bar-val { font-size: .75rem; color: var(--tx-3); font-weight: 600; min-width: 18px; text-align: right; }

/* AI section */
.natal-ai-section { max-width: 900px; margin: 0 auto; padding: 0 20px 0; }
.natal-ai-inner { padding: 0 0 24px; }
.natal-ai-item { min-height: 40px; }
.natal-wait {
    padding: 6px 2px 2px;
}
.natal-wait-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.natal-wait-icon {
    font-size: 1.35rem;
    color: var(--accent);
    line-height: 1;
    margin-top: 2px;
    animation: aiPulse 1.8s ease-in-out infinite;
}
.natal-wait-title {
    font-family: var(--font-d);
    font-size: .95rem;
    font-weight: 700;
    color: var(--tx-1);
}
.natal-wait-sub {
    font-size: .86rem;
    color: var(--tx-2);
    margin-top: 2px;
}
.natal-wait-shimmer { margin-top: 8px; }

/* Aspects deep analysis */
.natal-aspects-section { max-width: 900px; margin: 0 auto; padding: 0 20px 80px; }
.natal-aspects-inner {}
.aspects-header-row {
    display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.natal-section-title {
    font-family: var(--font-d); font-size: 1.1rem; font-weight: 600;
    color: var(--tx-2); margin: 0;
}

/* Aspect cards */
.aspect-card {
    background: rgba(19,19,31,0.5);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.05);
    border-left: 3px solid var(--accent);
    border-radius: var(--r-md);
    padding: 20px 24px;
    margin-bottom: 12px;
    opacity: 0; transform: translateY(12px);
    transition: opacity .4s ease, transform .4s ease, box-shadow .2s;
}
.aspect-card--visible { opacity: 1; transform: translateY(0); }
.aspect-card--loading { opacity: 1; transform: none; }
.aspect-wait-list { display: flex; flex-direction: column; gap: 12px; }
.aspect-card--loading .aspect-card-name { color: var(--tx-2); font-size: .92rem; }
.aspect-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.25); }

.aspect-card-header {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-bottom: 10px; flex-wrap: wrap;
}
.aspect-card-name {
    font-family: var(--font-d); font-size: 1rem; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
}
.aspect-symbol { font-size: 1.15rem; }
.aspect-card-orb {
    font-size: .72rem; color: var(--tx-3); font-weight: 500;
    padding: 2px 10px; border-radius: 100px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
    white-space: nowrap;
}
.aspect-card-text {
    font-size: .9rem; color: var(--tx-2); line-height: 1.7;
    margin: 0;
}
.aspect-shimmer {
    display: flex; flex-direction: column; gap: 8px; padding-top: 4px;
}

.natal-compare-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 80px;
}
.natal-compare-controls {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--r-md);
    background: rgba(15, 23, 42, 0.45);
    padding: 12px;
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}
.natal-compare-load-btn {
    justify-self: start;
    appearance: none;
    border: 1px solid var(--model-border);
    background: linear-gradient(135deg, var(--model-chip1), var(--model-chip2));
    color: var(--model-textStrong);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        0 12px 26px rgba(5, 8, 22, 0.24);
    transition: transform .18s ease, opacity .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.natal-compare-load-btn:hover {
    transform: translateY(-1px);
    border-color: var(--model-borderStrong);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.16),
        0 16px 30px var(--model-glowSoft);
}
.natal-compare-load-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}
.natal-compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 12px;
}
.natal-compare-card {
    border: 1px solid var(--model-border);
    border-radius: var(--r-md);
    background:
        radial-gradient(circle at 14% 0%, var(--model-bg1), transparent 58%),
        linear-gradient(145deg, rgba(12, 16, 34, 0.8), rgba(8, 11, 25, 0.88));
    padding: 12px;
    display: grid;
    gap: 10px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 18px 32px rgba(5, 8, 20, 0.2);
}
.natal-compare-card--error {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(127, 29, 29, 0.16);
}
.natal-compare-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.natal-compare-generated {
    font-size: .7rem;
    color: var(--tx-3);
    white-space: nowrap;
}
.natal-compare-sections {
    display: grid;
    gap: 8px;
}
.natal-compare-subcard {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    padding-top: 8px;
}
.natal-compare-subtitle {
    margin: 0 0 5px;
    font-size: .76rem;
    color: var(--tx-3);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.natal-compare-subtext {
    margin: 0;
    font-size: .86rem;
    color: var(--tx-1);
    line-height: 1.55;
}
.natal-compare-sublist {
    margin: 0;
    padding: 0 0 0 14px;
    display: grid;
    gap: 4px;
}
.natal-compare-sublist li {
    font-size: .82rem;
    color: var(--tx-1);
    line-height: 1.45;
}
.natal-compare-aspects {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    padding-top: 8px;
    display: grid;
    gap: 6px;
}
.natal-compare-aspect {
    padding: 7px 8px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: var(--r-sm);
    background: rgba(15, 23, 42, 0.38);
}
.natal-compare-aspect-title {
    margin: 0 0 4px;
    font-size: .78rem;
    color: #d0f2ff;
}
.natal-compare-aspect-text {
    margin: 0;
    font-size: .8rem;
    color: var(--tx-2);
    line-height: 1.45;
}
.natal-compare-error {
    margin: 2px 0 0;
    color: #fecaca;
    font-size: .84rem;
}

@media (max-width: 640px) {
    .aspect-card { padding: 16px 18px; }
    .aspect-card-name { font-size: .92rem; }
    .aspects-header-row { gap: 8px; }
    .natal-compare-grid { grid-template-columns: 1fr; }
    .natal-compare-meta { flex-direction: column; align-items: flex-start; }
    .natal-compare-generated { white-space: normal; }
}

@media (max-width: 640px) {
    .natal-planets-grid { grid-template-columns: repeat(3, 1fr); }
    .natal-balance-row { grid-template-columns: 1fr; }
    .natal-bar-label { min-width: 55px; }
}

/* Scrollbar global */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.14); }
