:root {
    --st-ink: #0f1419;
    --st-ink-soft: #1c2430;
    --st-slate: #3d4a5c;
    --st-muted: #5c6b7e;
    --st-line: #d8dee8;
    --st-surface: #ffffff;
    --st-bg: #f3f5f8;
    --st-lime: #c8f542;
    --st-lime-deep: #9bc41a;
    --st-accent: #1a5cff;
    --st-danger: #c0392b;
    --st-warn: #b7791f;
    --st-radius: 14px;
    --st-radius-sm: 10px;
    --st-shadow: 0 18px 50px rgba(15, 20, 25, 0.12);
    --st-font: "Manrope", system-ui, sans-serif;
    --st-display: "DM Sans", "Manrope", system-ui, sans-serif;
    --st-header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--st-font);
    color: var(--st-ink);
    background: var(--st-bg);
    line-height: 1.5;
    min-height: 100vh;
}

img { max-width: 100%; display: block; }

a { color: var(--st-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

button, input, select {
    font: inherit;
    color: inherit;
}

.st-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.st-hidden { display: none !important; }

/* ---------- Header ---------- */
.st-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(243, 245, 248, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--st-line);
}

.st-page-landing .st-header {
    background: rgba(15, 20, 25, 0.72);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.st-page-landing .st-logo__text,
.st-page-landing .st-nav__link,
.st-page-landing .st-header__hint { color: #f5f7fa; }

.st-page-landing .st-nav__link:hover { color: var(--st-lime); }

.st-header__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: var(--st-header-h);
    display: flex;
    align-items: center;
    gap: 20px;
}

.st-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.st-logo__text {
    font-family: var(--st-display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--st-ink);
}

.st-nav {
    display: flex;
    gap: 18px;
    margin-left: 12px;
}

.st-nav__link {
    color: var(--st-slate);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.st-nav__link:hover { color: var(--st-ink); text-decoration: none; }

.st-header__aside {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.st-header__hint {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--st-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.st-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--st-line);
    border-radius: 10px;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.st-nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
}

.st-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 20px 16px;
    border-top: 1px solid var(--st-line);
}

.st-mobile-nav a {
    font-weight: 600;
    color: inherit;
    padding: 8px 0;
}

/* ---------- Search ---------- */
.st-search-wrap { position: relative; width: 100%; }

.st-search-wrap--header { width: min(260px, 32vw); }

.st-search-input {
    width: 100%;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid var(--st-line);
    border-radius: 999px;
    background: var(--st-surface);
    outline: none;
}

.st-search-input:focus {
    border-color: var(--st-ink);
    box-shadow: 0 0 0 3px rgba(200, 245, 66, 0.35);
}

.st-search-input--lg {
    min-height: 52px;
    border-radius: var(--st-radius);
    font-size: 1.05rem;
}

.st-page-landing .st-search-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.st-page-landing .st-search-input::placeholder { color: rgba(255, 255, 255, 0.55); }

.st-ac {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 40;
    max-height: 360px;
    overflow: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--st-surface);
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius-sm);
    box-shadow: var(--st-shadow);
    color: var(--st-ink);
}

.st-ac[hidden] { display: none; }

.st-ac-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    border: 0;
    width: 100%;
    background: transparent;
    text-align: left;
}

.st-ac-item:hover,
.st-ac-item[aria-selected="true"] { background: rgba(200, 245, 66, 0.22); }

.st-ac-item img,
.st-ac-ph {
    width: 40px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--st-bg);
}

.st-ac-title { display: block; font-weight: 600; }
.st-ac-meta { display: block; color: var(--st-muted); font-size: 12px; margin-top: 2px; }
.st-ac-status { padding: 14px; color: var(--st-muted); font-size: 13px; text-align: center; }

/* ---------- Buttons / chips ---------- */
.st-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.st-btn:hover { text-decoration: none; transform: translateY(-1px); }

.st-btn:disabled {
    cursor: default;
    opacity: 0.65;
    transform: none;
}

.st-btn--primary {
    background: var(--st-ink);
    color: #fff;
}

.st-btn--primary:hover { background: var(--st-ink-soft); }

.st-btn--lime {
    background: var(--st-lime);
    color: var(--st-ink);
}

.st-btn--lime:hover { background: #d6ff63; }

.st-btn--ghost,
.st-btn--ghost-light {
    background: transparent;
    border-color: var(--st-line);
    color: var(--st-ink);
}

.st-btn--ghost-light {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.st-btn--sm { min-height: 36px; padding: 6px 12px; font-size: 0.875rem; }

.st-chip-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--st-line);
    background: var(--st-surface);
    color: var(--st-ink);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.st-chip-link:hover,
.st-chip-link.is-active {
    border-color: var(--st-ink);
    background: var(--st-lime);
    text-decoration: none;
}

.st-window-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- Landing ---------- */
.st-hero {
    position: relative;
    min-height: calc(100vh - var(--st-header-h));
    display: flex;
    align-items: flex-end;
    padding: 48px 20px 72px;
    background:
        radial-gradient(1200px 600px at 80% 10%, rgba(200, 245, 66, 0.18), transparent 55%),
        linear-gradient(160deg, #0f1419 0%, #1a2433 45%, #101820 100%);
    color: #f7f8fa;
    overflow: hidden;
}

.st-hero__veil {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            -12deg,
            transparent,
            transparent 40px,
            rgba(255, 255, 255, 0.015) 40px,
            rgba(255, 255, 255, 0.015) 41px
        );
    pointer-events: none;
}

.st-hero__content {
    position: relative;
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    animation: st-rise 0.8s ease both;
}

.st-hero__brand {
    font-family: var(--st-display);
    font-weight: 800;
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin: 0 0 20px;
    color: var(--st-lime);
}

.st-hero__headline {
    margin: 0 0 14px;
    max-width: 16ch;
    font-family: var(--st-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.st-hero__lead {
    margin: 0 0 28px;
    max-width: 42ch;
    color: rgba(247, 248, 250, 0.78);
    font-size: 1.1rem;
}

.st-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.st-pitch {
    background: var(--st-surface);
    border-bottom: 1px solid var(--st-line);
}

.st-pitch__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 72px 20px;
}

.st-pitch__text {
    max-width: 58ch;
    color: var(--st-slate);
    font-size: 1.1rem;
}

.st-pitch__stats { margin-top: 36px; }

.st-pitch__stat strong {
    display: block;
    font-family: var(--st-display);
    font-size: clamp(3rem, 8vw, 5rem);
    letter-spacing: -0.04em;
    line-height: 1;
}

.st-pitch__stat span {
    color: var(--st-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

@keyframes st-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- App shell ---------- */
.st-app {
    max-width: 960px;
    margin: 0 auto;
    padding: 36px 20px 80px;
    display: grid;
    gap: 28px;
}

.st-app-hero__title {
    margin: 6px 0 8px;
    font-family: var(--st-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.st-app-hero__label {
    display: block;
    font-size: 0.85rem;
    font-family: var(--st-font);
    font-weight: 600;
    color: var(--st-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.st-app-hero__title strong {
    color: var(--st-ink);
}

.st-eyebrow,
.st-section-title {
    margin: 0 0 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--st-muted);
}

.st-section-title {
    font-size: 0.9rem;
    color: var(--st-ink);
    letter-spacing: 0.06em;
}

.st-section__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.st-section__head .st-section-title { margin: 0; }

.st-muted { color: var(--st-muted); }

.st-panel {
    padding: 18px;
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    background: var(--st-surface);
}

.st-panel__title {
    margin: 0 0 12px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.st-workspace {
    display: grid;
    gap: 18px;
}

.st-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.st-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.st-field {
    display: grid;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--st-slate);
}

.st-field input,
.st-field select {
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--st-line);
    border-radius: 10px;
    background: #fff;
}

.st-field--inline {
    margin-top: 16px;
    max-width: 220px;
}

.st-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.st-metric {
    text-align: center;
    padding: 16px 10px;
    border-radius: var(--st-radius-sm);
    background: var(--st-surface);
    border: 1px solid var(--st-line);
}

.st-metric--accent {
    background: rgba(200, 245, 66, 0.2);
    border-color: rgba(155, 196, 26, 0.45);
}

.st-metric strong {
    display: block;
    font-family: var(--st-display);
    font-size: 1.45rem;
    line-height: 1.15;
}

.st-metric span {
    display: block;
    margin-top: 4px;
    color: var(--st-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.st-progress { margin-top: 12px; }
.st-progress__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--st-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.st-progress__track {
    height: 10px;
    border-radius: 999px;
    background: #e4e9f0;
    overflow: hidden;
}

.st-progress__fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--st-ink);
    transition: width 0.25s ease;
}

.st-real-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.st-real-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--st-muted);
}
.st-real-list li strong { color: var(--st-ink); }
.st-real-list li.is-accent strong { color: var(--st-lime-deep); }

.st-stepper { display: flex; align-items: center; gap: 8px; }
.st-stepper button {
    min-height: 36px;
    width: 36px;
    border-radius: 10px;
    border: 1px solid var(--st-line);
    background: #fff;
    cursor: pointer;
}
.st-stepper input { text-align: center; max-width: 90px; min-height: 36px; border-radius: 10px; border: 1px solid var(--st-line); }

.st-scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.st-scenario {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--st-line);
    background: var(--st-bg);
    text-align: center;
}
.st-scenario strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.st-scenario span { color: var(--st-muted); font-size: 0.8rem; }

.st-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--st-slate);
    cursor: pointer;
}

.st-inline-checks { display: flex; flex-wrap: wrap; gap: 14px; }
.st-inline-checks label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--st-slate);
    cursor: pointer;
}

.st-ep-tools { display: grid; grid-template-columns: 1fr 160px; gap: 12px; margin-bottom: 12px; }
.st-ep-list {
    width: 100%;
    max-width: 100%;
    max-height: 420px;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.st-ep-rows { display: grid; gap: 6px; }

.st-ep-more {
    position: sticky;
    left: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    width: min-content;
    min-width: 100%;
    padding-top: 10px;
}

.st-ep-more__count { color: var(--st-muted); font-size: 12px; white-space: nowrap; }

.st-spinner {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid rgba(15, 20, 25, 0.18);
    border-top-color: var(--st-lime-deep);
    animation: st-spin 0.7s linear infinite;
}

.st-spinner[hidden] { display: none; }

@keyframes st-spin {
    to { transform: rotate(360deg); }
}
.st-ep-row {
    display: grid;
    min-width: 620px;
    grid-template-columns: auto 64px 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: var(--st-bg);
}
.st-ep-row.is-start {
    border-color: rgba(155, 196, 26, 0.55);
    background: rgba(200, 245, 66, 0.18);
}
.st-ep-row.is-watched { opacity: 0.72; }
.st-ep-code { color: var(--st-lime-deep); font-size: 12px; font-weight: 700; }
.st-ep-title { font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-ep-runtime { color: var(--st-muted); font-size: 12px; white-space: nowrap; }
.st-ep-row button {
    min-height: 30px;
    padding: 4px 10px;
    font-size: 11px;
    background: transparent;
    border: 1px solid var(--st-line);
    border-radius: 8px;
    cursor: pointer;
}

.st-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.st-detail { color: var(--st-muted); font-size: 0.92rem; line-height: 1.6; }
.st-detail strong { color: var(--st-ink); }

.st-show-hero {
    display: none;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    align-items: start;
    padding: 18px;
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    background: var(--st-surface);
}
.st-show-hero.is-visible { display: grid; }
.st-show-hero__poster {
    width: 140px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--st-bg);
}
.st-show-hero__title {
    margin: 0 0 6px;
    font-family: var(--st-display);
    font-size: 1.8rem;
    letter-spacing: -0.02em;
}
.st-show-hero__meta { margin: 0; color: var(--st-muted); font-size: 0.92rem; }
.st-show-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.st-chip {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(200, 245, 66, 0.2);
    border: 1px solid rgba(155, 196, 26, 0.35);
    color: var(--st-ink);
    font-size: 12px;
    font-weight: 700;
}
.st-show-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }

.st-prompt,
.st-empty,
.st-error,
.st-warn {
    text-align: center;
    padding: 18px;
    border-radius: 10px;
    font-size: 0.95rem;
}
.st-prompt, .st-empty {
    color: var(--st-muted);
    border: 1px dashed var(--st-line);
    background: var(--st-surface);
}
.st-empty__title {
    margin: 0 0 8px;
    font-family: var(--st-display);
    font-size: 1.3rem;
    color: var(--st-ink);
}
.st-empty__text { margin: 0 0 16px; }
.st-empty::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    margin: 0 auto 12px;
    border-radius: 4px;
    background: var(--st-lime);
    box-shadow: 4px 4px 0 var(--st-ink);
}
.st-error {
    color: var(--st-danger);
    border: 1px solid rgba(192, 57, 43, 0.35);
    background: rgba(192, 57, 43, 0.06);
}
.st-warn {
    color: var(--st-warn);
    border: 1px solid rgba(183, 121, 31, 0.3);
    background: rgba(183, 121, 31, 0.08);
    text-align: left;
}

.st-skeleton { display: none; gap: 10px; }
.st-skeleton.is-visible { display: grid; }
.st-skel {
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e8edf3, #f7f9fb, #e8edf3);
    background-size: 200% 100%;
    animation: st-shimmer 1.2s ease infinite;
}
.st-skel--lg { height: 160px; }
.st-skel--sm { width: 60%; }
@keyframes st-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Dashboard lists */
.st-watchlist { display: grid; gap: 12px; }
.st-watchlist-row {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    background: var(--st-surface);
}
.st-watchlist-row__poster {
    width: 56px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--st-bg);
}
.st-watchlist-row__title {
    margin: 0 0 4px;
    font-family: var(--st-display);
    font-size: 1.1rem;
}
.st-watchlist-row__meta,
.st-watchlist-row__time {
    margin: 0;
    color: var(--st-muted);
    font-size: 0.88rem;
}
.st-watchlist-row__time { font-weight: 700; color: var(--st-ink); margin-top: 4px; }
.st-watchlist-row__catch {
    margin: 4px 0 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--st-lime-deep);
}
.st-watchlist-row__actions { display: flex; flex-direction: column; gap: 8px; }

.st-forecast__list,
.st-ww-list,
.st-schedule-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.st-forecast__list li,
.st-ww-list li,
.st-schedule-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius-sm);
    background: var(--st-surface);
    font-size: 0.95rem;
}

.st-forecast__head { margin-bottom: 12px; }

.st-forecast-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(72px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
}

.st-forecast-day {
    scroll-snap-align: start;
    min-width: 72px;
    padding: 12px 8px;
    border-radius: var(--st-radius-sm);
    border: 1px solid var(--st-line);
    background: var(--st-surface);
    text-align: center;
    display: grid;
    gap: 4px;
}

.st-forecast-day.has-eps {
    border-color: rgba(155, 196, 26, 0.5);
    background: rgba(200, 245, 66, 0.12);
}

.st-forecast-day__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--st-muted);
}

.st-forecast-day__time {
    font-family: var(--st-display);
    font-size: 1rem;
    color: var(--st-ink);
}

.st-forecast-day__count {
    font-size: 0.75rem;
    color: var(--st-muted);
}

.st-ww-list li {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
}

.st-ww-list__meta { color: var(--st-muted); font-size: 0.85rem; }

.st-window-chips--scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
}

.st-window-chips--scroll .st-chip-link {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-height: 44px;
}

.st-health {
    margin: 10px 0 0;
    font-size: 0.92rem;
    font-weight: 600;
    max-width: 52ch;
}

.st-health--grow { color: var(--st-warn); }
.st-health--shrink { color: var(--st-lime-deep); }
.st-health--stable { color: var(--st-muted); }

.st-next-ep__main { margin: 0 0 6px; font-size: 1.05rem; }
.st-next-ep__meta { margin: 0; color: var(--st-muted); font-size: 0.92rem; }

.st-nav__link.is-active,
.st-mobile-nav a.is-active {
    color: var(--st-ink);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.st-page-landing .st-nav__link.is-active { color: var(--st-lime); }

.st-hero__search {
    max-width: 520px;
    margin-bottom: 20px;
}

.st-value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.st-value-card {
    padding: 20px;
    border-radius: var(--st-radius);
    border: 1px solid var(--st-line);
    background: var(--st-bg);
}

.st-value-card h2 {
    margin: 0 0 8px;
    font-family: var(--st-display);
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.st-value-card p {
    margin: 0;
    color: var(--st-muted);
    font-size: 0.95rem;
}

.st-pitch__cta { margin-top: 36px; }

.st-advanced {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    background: var(--st-surface);
    padding: 0;
}

.st-advanced > summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--st-slate);
    min-height: 48px;
    display: flex;
    align-items: center;
}

.st-advanced > summary::-webkit-details-marker { display: none; }

.st-advanced > summary::after {
    content: "+";
    margin-left: auto;
    font-size: 1.2rem;
    color: var(--st-muted);
}

.st-advanced[open] > summary::after { content: "–"; }

.st-advanced__body {
    display: grid;
    min-width: 0;
    gap: 14px;
    padding: 0 14px 16px;
}

.st-advanced__body > *,
.st-advanced .st-panel {
    min-width: 0;
    max-width: 100%;
}

.st-panel--nested {
    box-shadow: none;
    background: var(--st-bg);
}

/* Nested panels that sit between siblings inside a parent panel, which has no gap. */
.st-panel--spaced { margin: 14px 0; }

.st-panel--primary {
    box-shadow: 0 1px 0 rgba(15, 20, 25, 0.03);
}

.st-sticky-cta {
    display: none;
}

.st-seo {
    margin-top: 28px;
}

.st-seo__wrap {
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    background: var(--st-surface);
}

.st-seo__summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
    font-family: var(--st-display);
    font-weight: 700;
    font-size: 1.05rem;
    min-height: 48px;
}

.st-seo__summary::-webkit-details-marker { display: none; }

.st-seo__body {
    padding: 0 18px 20px;
    display: grid;
    gap: 20px;
    color: var(--st-slate);
    font-size: 0.95rem;
}

.st-seo__block h2,
.st-seo__block h3 {
    font-family: var(--st-display);
    color: var(--st-ink);
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.st-seo__block h2 { font-size: 1.2rem; }
.st-seo__block h3 { font-size: 1rem; margin-top: 12px; }
.st-seo__block p,
.st-seo__block li { line-height: 1.65; }
.st-seo__block ul,
.st-seo__block ol { padding-left: 1.2rem; }

.st-faq {
    margin-top: 24px;
    display: grid;
    gap: 8px;
}

.st-faq > .st-section-title { margin-bottom: 4px; }

.st-faq details {
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius-sm);
    background: var(--st-surface);
    padding: 0 14px;
}

.st-faq summary {
    cursor: pointer;
    padding: 14px 0;
    font-weight: 700;
    min-height: 44px;
    color: var(--st-ink);
}

.st-faq details p {
    margin: 0 0 14px;
    color: var(--st-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.st-search-wrap--mobile {
    margin-bottom: 8px;
}

.st-btn:focus-visible,
.st-chip-link:focus-visible,
.st-search-input:focus-visible,
.st-field input:focus-visible,
.st-field select:focus-visible,
.st-nav-toggle:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(200, 245, 66, 0.65);
    outline-offset: 2px;
}

@media (max-width: 820px) {
    .st-nav,
    .st-header__aside { display: none; }
    .st-nav-toggle { display: inline-flex; margin-left: auto; min-height: 44px; min-width: 44px; }
    .st-show-hero.is-visible { grid-template-columns: 1fr; }
    .st-show-hero__poster { width: 100px; height: 145px; }
    .st-grid-2,
    .st-grid-4,
    .st-metrics,
    .st-scenarios,
    .st-ep-tools,
    .st-watchlist-row,
    .st-value-grid {
        grid-template-columns: 1fr;
    }
    .st-watchlist-row__actions { flex-direction: row; }
    .st-forecast-days {
        grid-template-columns: repeat(7, minmax(88px, 1fr));
    }
    .st-app { padding-bottom: 100px; }
    .st-sticky-cta {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid var(--st-line);
        backdrop-filter: blur(10px);
        box-shadow: 0 -8px 24px rgba(15, 20, 25, 0.08);
    }
    .st-sticky-cta[hidden] { display: none !important; }
    .st-sticky-cta__label {
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--st-muted);
    }
    .st-sticky-cta__time strong {
        font-family: var(--st-display);
        font-size: 1.2rem;
    }
    .st-hero { padding-bottom: 56px; align-items: flex-end; min-height: calc(100svh - var(--st-header-h)); }
    .st-hero__cta { flex-direction: column; align-items: stretch; }
    .st-hero__cta .st-btn { width: 100%; }
}

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

[hidden] {
    display: none;
}
