:root {
    --bg: #080c12;
    --bg-elevated: #0d1219;
    --bg-panel: #101720;
    --bg-panel-2: #141d28;
    --bg-panel-3: #182230;
    --panel: linear-gradient(180deg, rgba(16, 23, 32, 0.97), rgba(11, 17, 25, 0.99));
    --panel-border: rgba(118, 136, 161, 0.18);
    --panel-border-strong: rgba(136, 157, 186, 0.3);
    --text: #f3f7fd;
    --muted: #91a1b8;
    --muted-strong: #b4c0d3;
    --accent: #55aefe;
    --accent-strong: #3090f0;
    --accent-soft: rgba(85, 174, 254, 0.12);
    --positive: #28d79c;
    --negative: #ff6b6b;
    --warning: #f3b45d;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
    --header-bg: #0a1015;
    --header-border: rgba(102, 255, 173, 0.08);
    --body-bg-default:
        radial-gradient(circle at top left, rgba(48, 144, 240, 0.12), transparent 26%),
        radial-gradient(circle at top right, rgba(40, 215, 156, 0.07), transparent 22%),
        linear-gradient(180deg, #070b11 0%, #0b1017 42%, #0a0f15 100%);
    --body-bg-stock:
        radial-gradient(circle at top left, rgba(40, 215, 156, 0.1), transparent 24%),
        radial-gradient(circle at top right, rgba(243, 180, 93, 0.08), transparent 20%),
        linear-gradient(180deg, #070b11 0%, #0b1017 42%, #0a0f15 100%);
    --body-bg-directory:
        radial-gradient(circle at top left, rgba(48, 144, 240, 0.1), transparent 24%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.04), transparent 18%),
        linear-gradient(180deg, #070b11 0%, #0b1017 42%, #0a0f15 100%);
    --body-bg-strat-ai: #0b1017;
    --body-bg-landing:
        radial-gradient(circle at top left, rgba(85, 174, 254, 0.14), transparent 26%),
        radial-gradient(circle at top right, rgba(114, 165, 255, 0.08), transparent 22%),
        linear-gradient(180deg, #070b11 0%, #0b1017 42%, #0a0f15 100%);
    --body-grid-line: rgba(255, 255, 255, 0.025);
    --body-grid-opacity: 0.34;
    --body-grid-mask: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 78%);
    --body-overlay-after:
        radial-gradient(circle at 50% 0%, rgba(85, 174, 254, 0.08), transparent 34%),
        radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.04), transparent 18%);
    --field-bg: #0a1016;
    --field-border: var(--panel-border);
    --field-placeholder: #607189;
    --field-disabled-bg: rgba(16, 35, 45, 0.92);
    --field-disabled-border: rgba(87, 151, 160, 0.14);
    --field-disabled-text: #8fa4a9;
    --field-disabled-placeholder: #6f868c;
    --secondary-bg: rgba(255, 255, 255, 0.05);
    --secondary-border: rgba(118, 136, 161, 0.16);
    --secondary-text: var(--text);
    --secondary-hover-bg: rgba(255, 255, 255, 0.08);
    --secondary-hover-border: rgba(85, 174, 254, 0.2);
    --secondary-hover-text: #ffffff;
    --metric-bg: rgba(18, 29, 41, 0.72);
    --metric-border: rgba(121, 149, 178, 0.12);
    --metric-text: var(--text);
    --list-hover-bg: rgba(82, 211, 219, 0.08);
}

html[data-theme="dark"] {
    color-scheme: dark;
}

html[data-theme="light"] {
    color-scheme: light;
    --bg: #eff4f7;
    --bg-elevated: #f6fafc;
    --bg-panel: #ffffff;
    --bg-panel-2: #f7fafc;
    --bg-panel-3: #edf3f6;
    --panel: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.99));
    --panel-border: rgba(23, 49, 61, 0.1);
    --panel-border-strong: rgba(23, 49, 61, 0.18);
    --text: #17313d;
    --muted: #6c818d;
    --muted-strong: #4f6773;
    --accent: #23c7d9;
    --accent-strong: #15b3c4;
    --accent-soft: rgba(35, 199, 217, 0.12);
    --positive: #1f7a4d;
    --negative: #a33a3a;
    --warning: #9a6700;
    --shadow: 0 10px 28px rgba(16, 35, 46, 0.08);
    --header-bg: #0e2430;
    --header-border: rgba(255, 255, 255, 0.08);
    --body-bg-default:
        radial-gradient(circle at top left, rgba(35, 199, 217, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(15, 23, 42, 0.04), transparent 20%),
        linear-gradient(180deg, #f5f8fa 0%, #edf3f6 44%, #e8eff3 100%);
    --body-bg-stock:
        radial-gradient(circle at top left, rgba(35, 199, 217, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(243, 180, 93, 0.08), transparent 20%),
        linear-gradient(180deg, #f5f8fa 0%, #edf3f6 44%, #e8eff3 100%);
    --body-bg-directory:
        radial-gradient(circle at top left, rgba(35, 199, 217, 0.08), transparent 26%),
        radial-gradient(circle at top right, rgba(19, 49, 61, 0.06), transparent 18%),
        linear-gradient(180deg, #eff4f6 0%, #f7fafb 32%, #f3f7f9 100%);
    --body-bg-strat-ai: linear-gradient(180deg, #f5f8fa 0%, #edf3f6 100%);
    --body-bg-landing:
        radial-gradient(circle at top left, rgba(35, 199, 217, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(114, 165, 255, 0.06), transparent 22%),
        linear-gradient(180deg, #f5f8fa 0%, #edf3f6 44%, #e8eff3 100%);
    --body-grid-line: rgba(23, 49, 61, 0.04);
    --body-grid-opacity: 0.18;
    --body-grid-mask: linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 82%);
    --body-overlay-after:
        radial-gradient(circle at 50% 0%, rgba(35, 199, 217, 0.08), transparent 34%),
        radial-gradient(circle at 84% 10%, rgba(23, 49, 61, 0.05), transparent 20%);
    --field-bg: #ffffff;
    --field-border: rgba(23, 49, 61, 0.12);
    --field-placeholder: #7a8f9a;
    --field-disabled-bg: #f1f5f7;
    --field-disabled-border: rgba(23, 49, 61, 0.1);
    --field-disabled-text: #80929b;
    --field-disabled-placeholder: #98a7af;
    --secondary-bg: rgba(255, 255, 255, 0.94);
    --secondary-border: rgba(23, 49, 61, 0.12);
    --secondary-text: #17313d;
    --secondary-hover-bg: #f3f7f9;
    --secondary-hover-border: rgba(21, 179, 196, 0.24);
    --secondary-hover-text: #17313d;
    --metric-bg: rgba(241, 246, 249, 0.96);
    --metric-border: rgba(23, 49, 61, 0.08);
    --metric-text: #17313d;
    --list-hover-bg: rgba(35, 199, 217, 0.08);
}

body {
    position: relative;
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--body-bg-default);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--body-grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--body-grid-line) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: var(--body-grid-mask);
    opacity: var(--body-grid-opacity);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: var(--body-overlay-after);
}

body.site-mode-stock {
    background: var(--body-bg-stock);
}

body.page-directory {
    background: var(--body-bg-directory);
}

body.page-strat-ai {
    background: var(--body-bg-strat-ai);
}

body.page-strat-ai::before {
    display: none;
}

body.page-strat-ai::after {
    display: none;
}

body.site-mode-landing {
    background: var(--body-bg-landing);
}

.page-daily-engine .page-shell {
    width: min(1240px, calc(100% - 32px));
}

.daily-engine-shell {
    display: grid;
    gap: 18px;
    padding: 18px 0 40px;
}

.daily-engine-header,
.daily-engine-market,
.daily-engine-card,
.daily-engine-check {
    border: 1px solid var(--panel-border);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.daily-engine-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    min-height: 156px;
    padding: 26px;
    border-radius: 8px;
}

.daily-engine-header h1,
.daily-engine-market h2 {
    margin: 0;
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    letter-spacing: 0;
    line-height: 1.05;
}

.daily-engine-header h1 {
    font-size: 3rem;
}

.daily-engine-header p,
.daily-engine-market p,
.daily-engine-card p,
.daily-engine-check p,
.daily-engine-check small {
    margin: 0;
    color: var(--muted);
}

.daily-engine-kicker {
    margin: 0 0 8px;
    color: var(--accent);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.daily-engine-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid var(--panel-border-strong);
    color: var(--muted-strong);
    background: var(--secondary-bg);
    font-weight: 700;
    white-space: nowrap;
    text-transform: capitalize;
}

.daily-engine-status-ok,
.daily-engine-status-open {
    color: var(--positive);
    border-color: color-mix(in srgb, var(--positive) 36%, transparent);
    background: color-mix(in srgb, var(--positive) 12%, transparent);
}

.daily-engine-status-warning,
.daily-engine-status-closed {
    color: var(--warning);
    border-color: color-mix(in srgb, var(--warning) 34%, transparent);
    background: color-mix(in srgb, var(--warning) 12%, transparent);
}

.daily-engine-status-error {
    color: var(--negative);
    border-color: color-mix(in srgb, var(--negative) 34%, transparent);
    background: color-mix(in srgb, var(--negative) 12%, transparent);
}

.daily-engine-summary {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.daily-engine-check-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.daily-engine-card,
.daily-engine-check {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 118px;
    padding: 18px;
    border-radius: 8px;
}

.daily-engine-card span,
.daily-engine-check span {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.daily-engine-card strong,
.daily-engine-check strong {
    color: var(--text);
    font-size: 1.2rem;
    line-height: 1.15;
}

.daily-engine-alert-card > p:not(.daily-engine-alert-counts) {
    display: none;
}

.daily-engine-alert-failures {
    display: grid;
    gap: 5px;
}

.daily-engine-alert-failures span {
    display: block;
    overflow: hidden;
    max-width: 100%;
    border: 1px solid color-mix(in srgb, var(--negative) 22%, var(--panel-border));
    border-radius: 8px;
    padding: 7px 9px;
    background: color-mix(in srgb, var(--negative) 8%, var(--secondary-bg));
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.daily-engine-action-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.daily-engine-action-form button {
    min-height: 32px;
    border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
    border-radius: 8px;
    padding: 0 12px;
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
}

.daily-engine-action-form button:disabled {
    opacity: 0.6;
}

.daily-engine-action-form em {
    color: var(--muted);
    font-size: 0.78rem;
    font-style: normal;
}

.daily-engine-markets {
    display: grid;
    gap: 16px;
}

.daily-engine-market {
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 8px;
}

.daily-engine-market-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.daily-engine-check-ok {
    border-color: color-mix(in srgb, var(--positive) 28%, var(--panel-border));
}

.daily-engine-check-warning {
    border-color: color-mix(in srgb, var(--warning) 30%, var(--panel-border));
}

.daily-engine-check-error {
    border-color: color-mix(in srgb, var(--negative) 32%, var(--panel-border));
}

@media (max-width: 1100px) {
    .daily-engine-summary,
    .daily-engine-check-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .daily-engine-header h1 {
        font-size: 2.2rem;
    }

    .daily-engine-header,
    .daily-engine-market-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .daily-engine-summary,
    .daily-engine-check-grid {
        grid-template-columns: 1fr;
    }
}

.admin-shell {
    display: grid;
    gap: 18px;
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 24px 0 42px;
}

.page-admin .page-shell,
.page-admin-daily-engine .page-shell {
    width: 100%;
    padding-top: 0;
}

.admin-topbar {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 62px;
    position: sticky;
    top: 0;
    z-index: 50;
    border: 0;
    border-bottom: 1px solid rgba(142, 236, 245, 0.22);
    border-radius: 0;
    padding: 8px max(18px, calc((100vw - 1180px) / 2)) 8px;
    background: linear-gradient(90deg, #082f3d 0%, #0b5f6d 58%, #0d7180 100%);
    box-shadow: none;
}

body.page-admin .topbar,
body.page-admin-daily-engine .topbar {
    display: none;
}

body.page-admin,
body.page-admin-daily-engine {
    background: var(--body-bg-default);
}

body.page-admin-daily-engine .daily-engine-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding-top: 24px;
}

.admin-brand {
    display: inline-grid;
    gap: 0;
    min-width: 128px;
    color: #f5fdff;
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.admin-brand span {
    font-size: 1rem;
}

.admin-brand small {
    color: #78eef8;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.admin-logout-form {
    margin-left: auto;
}

.admin-theme-toggle {
    flex: 0 0 auto;
    min-height: 34px;
    border-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.admin-theme-toggle .theme-toggle-option {
    min-height: 26px;
    border-radius: 7px;
    padding: 0 9px;
    color: rgba(245, 253, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 800;
}

.admin-theme-toggle .theme-toggle-option:hover {
    color: #ffffff;
}

.admin-theme-toggle .theme-toggle-option.is-active {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.admin-mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #f5fdff;
}

.admin-mobile-menu-toggle span {
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
}

.admin-mobile-menu-toggle span:nth-child(1) {
    transform: translateY(-6px);
}

.admin-mobile-menu-toggle span:nth-child(3) {
    transform: translateY(6px);
}

.admin-topbar.is-admin-menu-open .admin-mobile-menu-toggle span:nth-child(1) {
    transform: rotate(45deg);
}

.admin-topbar.is-admin-menu-open .admin-mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.admin-topbar.is-admin-menu-open .admin-mobile-menu-toggle span:nth-child(3) {
    transform: rotate(-45deg);
}

.admin-logout-form button {
    min-height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(245, 253, 255, 0.86);
    font-size: 0.8rem;
    font-weight: 800;
}

.admin-logout-form button:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.admin-page-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0 2px;
}

.admin-page-title h1 {
    margin: 0;
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 2.15rem;
    line-height: 1.05;
    letter-spacing: 0;
}

.admin-page-title span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.95rem;
}

.admin-header,
.admin-panel,
.admin-login-card,
.admin-summary-grid > div,
.admin-review-card,
.admin-subscription-row,
.admin-empty {
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
}

.admin-header h1,
.admin-login-card h1,
.admin-panel h2 {
    margin: 0;
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    letter-spacing: 0;
}

.admin-header h1 {
    font-size: 2.3rem;
    line-height: 1.05;
}

.admin-header span,
.admin-login-card p,
.admin-empty,
.admin-subscription-main span,
.admin-subscription-meta,
.admin-dashboard-card span,
.admin-panel-head > span {
    color: var(--muted);
}

.admin-kicker {
    margin: 0 0 7px;
    color: var(--accent);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.admin-login-card {
    display: grid;
    gap: 14px;
    width: min(460px, 100%);
    margin: 48px auto;
    padding: 24px;
}

.admin-login-form,
.admin-activation-form {
    display: grid;
    gap: 10px;
}

.admin-login-form label,
.admin-activation-form label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.admin-login-form label > span,
.admin-activation-form label > span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
}

.admin-login-form input,
.admin-activation-form input,
.admin-activation-form select,
.admin-strategy-gate-form select {
    min-height: 38px;
    box-sizing: border-box;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 0 11px;
    background: var(--secondary-bg);
    color: var(--text);
}

.admin-login-form button,
.admin-primary-link,
.admin-secondary-button,
.admin-page-title-action button,
.admin-review-title button,
.admin-strategy-gate-form button,
.admin-review-actions button,
.admin-invite-copy,
.admin-activation-form button,
.admin-row-action button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
    border-radius: 8px;
    padding: 0 14px;
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.admin-secondary-button {
    border-color: var(--panel-border);
    background: var(--secondary-bg);
    color: var(--muted);
}

.admin-page-title-action {
    margin: 0;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 6px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-topbar .admin-nav {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.admin-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 8px;
    padding: 0 13px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.admin-topbar .admin-nav a {
    min-height: 34px;
    border-radius: 8px;
    padding: 0 11px;
    color: rgba(245, 253, 255, 0.72);
    font-size: 0.8rem;
}

.admin-nav a.is-active,
.admin-nav a:hover {
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    color: var(--text);
}

.admin-topbar .admin-nav a.is-active,
.admin-topbar .admin-nav a:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.admin-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    padding-top: 6px;
}

.admin-menu-group {
    min-width: 0;
}

.admin-menu-group h2 {
    margin: 0 0 18px;
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0;
}

.admin-menu-group h2::before {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 9px;
    border-radius: 999px;
    background: var(--accent);
    vertical-align: 0.12em;
    content: "";
}

.admin-menu-group a {
    display: grid;
    gap: 3px;
    min-height: 46px;
    padding: 8px 0;
    border-bottom: 1px solid var(--panel-border);
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 650;
    text-decoration: none;
}

.admin-menu-group a:hover {
    color: var(--accent);
}

.admin-menu-group small {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-menu-group a:hover small {
    color: var(--muted-strong);
}

.admin-home-operator {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 22px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-home-operator.is-ready {
    border-color: color-mix(in srgb, var(--positive) 42%, var(--panel-border));
}

.admin-home-operator.is-action {
    border-color: color-mix(in srgb, var(--negative) 42%, var(--panel-border));
}

.admin-home-operator-main {
    min-width: 0;
}

.admin-home-operator-main h2 {
    margin: 0;
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    letter-spacing: 0;
}

.admin-home-operator-main span {
    display: block;
    margin-top: 12px;
    color: var(--muted-strong);
    font-size: 1rem;
    font-weight: 650;
}

.admin-home-operator-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
}

.admin-home-operator-steps {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.admin-home-step {
    display: grid;
    gap: 7px;
    min-height: 98px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 14px;
    background: var(--secondary-bg);
    color: inherit;
    text-decoration: none;
}

.admin-home-step.is-ready {
    border-color: color-mix(in srgb, var(--positive) 34%, var(--panel-border));
}

.admin-home-step.is-action {
    border-color: color-mix(in srgb, var(--negative) 34%, var(--panel-border));
}

.admin-home-step small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-home-step strong {
    overflow: hidden;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-home-step span {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-home-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.admin-home-metrics div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 0 16px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-home-metrics span {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-home-metrics strong {
    overflow: hidden;
    color: var(--text);
    font-size: 1.1rem;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-home-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.admin-home-action {
    display: grid;
    align-content: space-between;
    gap: 14px;
    min-height: 170px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 18px;
    background: var(--panel);
    box-shadow: var(--shadow);
    color: inherit;
    text-decoration: none;
}

.admin-home-action:hover {
    border-color: color-mix(in srgb, var(--accent) 34%, var(--panel-border));
}

.admin-home-action small {
    color: var(--accent);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    font-weight: 800;
}

.admin-home-action strong {
    display: block;
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.28rem;
    letter-spacing: 0;
}

.admin-home-action span {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

.admin-message {
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 12px 14px;
    background: var(--secondary-bg);
    color: var(--muted);
    font-weight: 650;
}

.admin-message.is-success {
    color: var(--positive);
    border-color: color-mix(in srgb, var(--positive) 34%, var(--panel-border));
}

.admin-message.is-warning {
    color: var(--warning);
    border-color: color-mix(in srgb, var(--warning) 34%, var(--panel-border));
}

.admin-message.is-error {
    color: var(--negative);
    border-color: color-mix(in srgb, var(--negative) 34%, var(--panel-border));
}

.admin-audit-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 18px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-audit-hero strong {
    display: block;
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.7rem;
    line-height: 1;
}

.admin-audit-hero span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
}

.admin-audit-hero.is-ready {
    border-color: color-mix(in srgb, var(--positive) 34%, var(--panel-border));
}

.admin-audit-hero.is-action {
    border-color: color-mix(in srgb, var(--negative) 34%, var(--panel-border));
}

.admin-audit-hero.is-watch {
    border-color: color-mix(in srgb, var(--warning) 34%, var(--panel-border));
}

.admin-audit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.admin-audit-card,
.admin-audit-pill {
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--panel);
    color: inherit;
    text-decoration: none;
}

.admin-audit-card {
    display: grid;
    gap: 7px;
    min-height: 112px;
    padding: 14px;
    box-shadow: var(--shadow);
}

.admin-audit-card small,
.admin-audit-pill small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-audit-card strong {
    overflow: hidden;
    color: var(--text);
    font-size: 1.05rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-audit-card span {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.admin-audit-card.is-ready,
.admin-audit-pill.is-ready {
    border-color: color-mix(in srgb, var(--positive) 28%, var(--panel-border));
}

.admin-audit-card.is-watch,
.admin-audit-pill.is-watch {
    border-color: color-mix(in srgb, var(--warning) 30%, var(--panel-border));
}

.admin-audit-card.is-action,
.admin-audit-pill.is-action {
    border-color: color-mix(in srgb, var(--negative) 30%, var(--panel-border));
}

.admin-audit-section {
    display: grid;
    gap: 10px;
}

.admin-audit-section header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.admin-audit-section h2 {
    margin: 0;
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.1rem;
}

.admin-audit-market-list {
    display: grid;
    gap: 8px;
}

.admin-audit-market-row {
    display: grid;
    grid-template-columns: 70px repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: center;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 10px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-audit-market-row > strong {
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
}

.admin-audit-pill {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 8px 10px;
    background: var(--secondary-bg);
}

.admin-audit-pill span {
    overflow: hidden;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-audit-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-audit-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 0 13px;
    background: var(--panel);
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
}

.admin-audit-links a:hover {
    border-color: color-mix(in srgb, var(--accent) 34%, var(--panel-border));
    color: var(--accent);
}

.admin-digest-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.admin-digest-summary > div,
.admin-digest-market-row,
.admin-digest-candidate {
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-digest-summary > div {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 14px;
}

.admin-digest-summary small,
.admin-digest-market-row small,
.admin-digest-proof small,
.admin-digest-candidate small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-digest-summary strong,
.admin-digest-market-row strong,
.admin-digest-proof strong,
.admin-digest-candidate strong {
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-digest-summary span,
.admin-digest-market-row span,
.admin-digest-market-row em,
.admin-digest-candidate span,
.admin-digest-candidate em {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.78rem;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-digest-summary .is-ready,
.admin-digest-market-row.is-ready {
    border-color: color-mix(in srgb, var(--positive) 30%, var(--panel-border));
}

.admin-digest-summary .is-action,
.admin-digest-market-row.is-action {
    border-color: color-mix(in srgb, var(--negative) 30%, var(--panel-border));
}

.admin-digest-summary .is-watch,
.admin-digest-market-row.is-watch {
    border-color: color-mix(in srgb, var(--warning) 30%, var(--panel-border));
}

.admin-digest-market-list,
.admin-digest-reasons,
.admin-digest-candidates {
    display: grid;
    gap: 8px;
}

.admin-digest-market-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) repeat(4, minmax(78px, 0.35fr));
    gap: 8px;
    align-items: center;
    padding: 12px;
}

.admin-digest-market-main,
.admin-digest-market-row > div,
.admin-digest-proof span,
.admin-digest-reasons span {
    display: grid;
    gap: 3px;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 9px 10px;
    background: var(--secondary-bg);
    color: inherit;
    text-decoration: none;
}

.admin-digest-market-main:hover,
.admin-digest-candidate:hover {
    border-color: color-mix(in srgb, var(--accent) 34%, var(--panel-border));
}

.admin-digest-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 12px;
}

.admin-digest-reasons span {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
}

.admin-digest-reasons strong {
    color: var(--accent);
}

.admin-digest-reasons em {
    overflow: hidden;
    color: var(--muted);
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-digest-proof {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.admin-digest-proof .is-positive {
    color: var(--positive);
}

.admin-digest-proof .is-negative {
    color: var(--negative);
}

.admin-ops-summary,
.admin-ops-detail-grid {
    display: grid;
    gap: 10px;
}

.admin-ops-summary {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-ops-card,
.admin-ops-market-row,
.admin-ops-detail-grid span {
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-ops-card {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 14px;
    color: inherit;
    text-decoration: none;
}

.admin-ops-card small,
.admin-ops-market-row small,
.admin-ops-detail-grid small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-ops-card strong,
.admin-ops-detail-grid strong {
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-ops-card span {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-ops-card.is-ready,
.admin-ops-market-row.is-ready {
    border-color: color-mix(in srgb, var(--positive) 30%, var(--panel-border));
}

.admin-ops-card.is-action,
.admin-ops-market-row.is-action {
    border-color: color-mix(in srgb, var(--negative) 30%, var(--panel-border));
}

.admin-ops-card.is-watch,
.admin-ops-market-row.is-watch {
    border-color: color-mix(in srgb, var(--warning) 30%, var(--panel-border));
}

.admin-ops-market-list,
.admin-ops-deliveries,
.admin-ops-failures {
    display: grid;
    gap: 8px;
}

.admin-ops-market-row {
    display: grid;
    grid-template-columns: 64px repeat(5, minmax(0, 1fr));
    gap: 8px;
    align-items: center;
    padding: 12px;
    color: inherit;
    text-decoration: none;
}

.admin-ops-market-row > strong {
    color: var(--text);
    font-size: 1.2rem;
}

.admin-ops-market-row span,
.admin-ops-detail-grid span {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 9px 10px;
    background: var(--secondary-bg);
}

.admin-ops-market-row em {
    overflow: hidden;
    color: var(--text);
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-ops-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.admin-ops-detail-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-ops-failures span {
    border: 1px solid color-mix(in srgb, var(--negative) 28%, var(--panel-border));
    border-radius: 8px;
    padding: 9px 10px;
    background: color-mix(in srgb, var(--negative) 6%, var(--secondary-bg));
    color: var(--muted-strong);
    font-size: 0.82rem;
}

.admin-ops-deliveries {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.admin-ops-deliveries span {
    display: grid;
    gap: 3px;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 9px 10px;
    background: var(--secondary-bg);
}

.admin-ops-deliveries span.is-ready {
    border-color: color-mix(in srgb, var(--positive) 30%, var(--panel-border));
}

.admin-ops-deliveries span.is-action {
    border-color: color-mix(in srgb, var(--negative) 30%, var(--panel-border));
}

.admin-ops-deliveries small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-ops-deliveries strong,
.admin-ops-deliveries em {
    overflow: hidden;
    color: var(--text);
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-ops-deliveries em {
    color: var(--muted);
    font-size: 0.78rem;
}

.admin-lab-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-glossary-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.admin-glossary-card {
    display: grid;
    gap: 6px;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 14px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-glossary-card small {
    color: var(--accent);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-glossary-card strong {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.25;
}

.admin-glossary-card span {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.4;
}

.admin-digest-health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.admin-digest-health-grid > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 12px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-digest-health-grid > div.is-ready {
    border-color: color-mix(in srgb, var(--positive) 30%, var(--panel-border));
}

.admin-digest-health-grid > div.is-watch {
    border-color: color-mix(in srgb, var(--warning) 30%, var(--panel-border));
}

.admin-digest-health-grid > div.is-action {
    border-color: color-mix(in srgb, var(--negative) 30%, var(--panel-border));
}

.admin-digest-health-grid small {
    overflow: hidden;
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-digest-health-grid strong {
    overflow: hidden;
    color: var(--text);
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-digest-health-grid .is-ready strong {
    color: var(--positive);
}

.admin-digest-health-grid .is-watch strong {
    color: var(--warning);
}

.admin-digest-health-grid .is-action strong {
    color: var(--negative);
}

.admin-digest-health-grid span,
.admin-digest-health-grid em {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.78rem;
    font-style: normal;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-digest-candidates {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.admin-digest-candidate {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 13px;
    color: inherit;
    text-decoration: none;
}

.admin-digest-proof-list {
    display: grid;
    gap: 10px;
}

.admin-digest-proof-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.65fr) minmax(220px, 0.8fr) minmax(320px, 1.2fr) minmax(220px, 0.9fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 12px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-digest-proof-row.is-positive {
    border-color: color-mix(in srgb, var(--positive) 30%, var(--panel-border));
}

.admin-digest-proof-row.is-negative {
    border-color: color-mix(in srgb, var(--negative) 28%, var(--panel-border));
}

.admin-digest-proof-main,
.admin-digest-proof-latest,
.admin-digest-proof-horizons,
.admin-digest-proof-items {
    min-width: 0;
}

.admin-digest-proof-main {
    display: grid;
    gap: 5px;
}

.admin-digest-proof-main strong {
    overflow: hidden;
    color: var(--text);
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-digest-proof-main small {
    color: var(--muted);
}

.admin-digest-proof-latest,
.admin-digest-proof-horizons {
    display: grid;
    gap: 6px;
}

.admin-digest-proof-latest {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-digest-proof-horizons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-digest-proof-latest span,
.admin-digest-proof-horizons span,
.admin-digest-proof-items span {
    display: grid;
    gap: 2px;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 8px;
    background: var(--secondary-bg);
}

.admin-digest-proof-latest small,
.admin-digest-proof-horizons small,
.admin-digest-proof-items small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-digest-proof-latest strong,
.admin-digest-proof-horizons strong,
.admin-digest-proof-items strong {
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-digest-proof-horizons em {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.68rem;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-digest-proof-items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.admin-digest-proof-latest .is-positive strong,
.admin-digest-proof-horizons .is-positive strong,
.admin-digest-proof-items .is-positive small,
.admin-digest-proof-counts .is-positive strong {
    color: var(--positive);
}

.admin-digest-proof-latest .is-negative strong,
.admin-digest-proof-horizons .is-negative strong,
.admin-digest-proof-items .is-negative small,
.admin-digest-proof-counts .is-negative strong {
    color: var(--negative);
}

.admin-digest-history-list {
    display: grid;
    gap: 10px;
}

.admin-digest-history-row {
    display: grid;
    grid-template-columns: minmax(170px, 0.7fr) minmax(220px, 0.75fr) minmax(320px, 1.25fr) minmax(220px, 0.85fr);
    gap: 10px;
    align-items: stretch;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 12px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-digest-history-row.is-ready {
    border-color: color-mix(in srgb, var(--positive) 28%, var(--panel-border));
}

.admin-digest-history-row.is-action {
    border-color: color-mix(in srgb, var(--negative) 28%, var(--panel-border));
}

.admin-digest-history-main,
.admin-digest-history-stats,
.admin-digest-history-message,
.admin-digest-history-deliveries {
    min-width: 0;
}

.admin-digest-history-main {
    display: grid;
    align-content: start;
    gap: 7px;
}

.admin-digest-history-main strong {
    overflow: hidden;
    color: var(--text);
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-digest-history-main small {
    overflow: hidden;
    color: var(--muted);
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-digest-history-stats,
.admin-digest-history-deliveries {
    display: grid;
    gap: 6px;
    align-content: start;
}

.admin-digest-history-stats span,
.admin-digest-history-deliveries span {
    display: grid;
    gap: 2px;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 8px;
    background: var(--secondary-bg);
}

.admin-digest-history-stats small,
.admin-digest-history-deliveries small {
    overflow: hidden;
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.62rem;
    font-weight: 800;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-digest-history-stats strong,
.admin-digest-history-deliveries strong {
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-digest-history-deliveries em {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.68rem;
    font-style: normal;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-digest-history-deliveries .is-ready strong {
    color: var(--positive);
}

.admin-digest-history-deliveries .is-action strong {
    color: var(--negative);
}

.admin-digest-history-message textarea {
    width: 100%;
    min-height: 170px;
    height: 100%;
    min-width: 0;
    resize: vertical;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 10px;
    background: var(--secondary-bg);
    color: var(--text);
    font: 0.82rem/1.45 "IBM Plex Mono", monospace;
}

.admin-edge-profile-grid,
.admin-edge-profile-list,
.admin-edge-candidates,
.admin-edge-reasons {
    display: grid;
    gap: 10px;
}

.admin-edge-profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-edge-profile,
.admin-edge-candidate {
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-edge-profile {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 16px;
}

.admin-edge-profile.is-ready {
    border-color: color-mix(in srgb, var(--positive) 30%, var(--panel-border));
}

.admin-edge-profile.is-watch {
    border-color: color-mix(in srgb, var(--warning) 30%, var(--panel-border));
}

.admin-edge-profile.is-action {
    border-color: color-mix(in srgb, var(--negative) 30%, var(--panel-border));
}

.admin-edge-profile-head h2 {
    margin: 0;
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.16rem;
    letter-spacing: 0;
}

.admin-edge-profile-head span,
.admin-edge-candidate span,
.admin-edge-candidate em,
.admin-edge-reasons em {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.78rem;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-edge-counts,
.admin-edge-thresholds {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.admin-edge-thresholds {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-edge-counts span,
.admin-edge-thresholds span,
.admin-edge-reasons span {
    display: grid;
    gap: 2px;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 8px;
    background: var(--secondary-bg);
}

.admin-edge-counts small,
.admin-edge-thresholds small,
.admin-edge-candidate small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-edge-counts strong,
.admin-edge-thresholds strong,
.admin-edge-candidate strong,
.admin-edge-reasons strong {
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-edge-candidates {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.admin-edge-candidate {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 12px;
    color: inherit;
    text-decoration: none;
}

.admin-edge-candidate:hover {
    border-color: color-mix(in srgb, var(--accent) 34%, var(--panel-border));
}

.admin-edge-reasons {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-edge-reasons span {
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
}

.admin-edge-reasons strong {
    color: var(--accent);
}

.admin-regime-source {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-regime-source span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 0 10px;
    background: var(--panel);
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-regime-compare,
.admin-regime-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-regime-panel {
    display: grid;
    gap: 8px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 18px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-regime-panel small,
.admin-regime-stats small,
.admin-regime-change-list small,
.admin-regime-component-list small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-regime-panel strong {
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.45rem;
    line-height: 1;
}

.admin-regime-panel span {
    color: var(--muted);
    line-height: 1.35;
}

.admin-regime-panel.is-positive {
    border-color: color-mix(in srgb, var(--positive) 34%, var(--panel-border));
}

.admin-regime-panel.is-negative {
    border-color: color-mix(in srgb, var(--negative) 34%, var(--panel-border));
}

.admin-regime-panel.is-watch {
    border-color: color-mix(in srgb, var(--warning) 34%, var(--panel-border));
}

.admin-regime-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.admin-regime-stats span,
.admin-regime-change-list span,
.admin-regime-component-list span {
    display: grid;
    gap: 3px;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 9px 10px;
    background: var(--secondary-bg);
}

.admin-regime-stats strong,
.admin-regime-change-list strong,
.admin-regime-component-list strong {
    overflow: hidden;
    color: var(--text);
    font-size: 0.88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-regime-change-list,
.admin-regime-component-list {
    display: grid;
    gap: 7px;
}

.admin-regime-change-list span.is-positive {
    border-color: color-mix(in srgb, var(--positive) 32%, var(--panel-border));
}

.admin-regime-change-list span.is-negative {
    border-color: color-mix(in srgb, var(--negative) 32%, var(--panel-border));
}

.admin-regime-change-list span.is-watch {
    border-color: color-mix(in srgb, var(--warning) 32%, var(--panel-border));
}

.admin-regime-impact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.admin-score-bucket-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.admin-score-bucket {
    display: grid;
    gap: 12px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 14px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-score-bucket.is-ready {
    border-color: color-mix(in srgb, var(--positive) 28%, var(--panel-border));
}

.admin-score-bucket.is-watch {
    border-color: color-mix(in srgb, var(--warning) 30%, var(--panel-border));
}

.admin-regime-impact-list {
    display: grid;
    gap: 8px;
}

.admin-score-impact-list {
    display: grid;
    gap: 8px;
}

.admin-regime-impact-row,
.admin-score-impact-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) minmax(220px, 1.2fr) minmax(220px, 1fr) minmax(160px, 0.8fr);
    gap: 10px;
    align-items: center;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 12px;
    background: var(--panel);
}

.admin-regime-impact-row.is-allow {
    border-color: color-mix(in srgb, var(--positive) 22%, var(--panel-border));
}

.admin-regime-impact-row.is-block {
    border-color: color-mix(in srgb, var(--negative) 22%, var(--panel-border));
}

.admin-score-impact-row.is-worked {
    border-color: color-mix(in srgb, var(--positive) 24%, var(--panel-border));
}

.admin-score-impact-row.is-failed {
    border-color: color-mix(in srgb, var(--negative) 24%, var(--panel-border));
}

.admin-regime-impact-main,
.admin-regime-impact-detail,
.admin-score-impact-main,
.admin-score-impact-detail {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-regime-impact-main strong,
.admin-regime-impact-main small,
.admin-regime-impact-detail strong,
.admin-regime-impact-detail span,
.admin-score-impact-main strong,
.admin-score-impact-main small,
.admin-score-impact-detail strong,
.admin-score-impact-detail span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-regime-impact-main strong,
.admin-regime-impact-detail strong,
.admin-score-impact-main strong,
.admin-score-impact-detail strong {
    color: var(--text);
    font-size: 0.95rem;
}

.admin-regime-impact-main small,
.admin-regime-impact-detail span,
.admin-score-impact-main small,
.admin-score-impact-detail span {
    color: var(--muted);
    font-size: 0.78rem;
}

.admin-regime-impact-decision,
.admin-regime-impact-result,
.admin-score-impact-score,
.admin-score-impact-result {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.admin-regime-impact-decision span,
.admin-regime-impact-result span,
.admin-score-impact-score span,
.admin-score-impact-result span {
    display: grid;
    gap: 2px;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 7px;
    background: var(--secondary-bg);
}

.admin-regime-impact-decision small,
.admin-regime-impact-result small,
.admin-score-impact-score small,
.admin-score-impact-result small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-regime-impact-decision strong,
.admin-regime-impact-result strong,
.admin-score-impact-score strong,
.admin-score-impact-result strong {
    overflow: hidden;
    color: var(--text);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-regime-stats .is-positive strong,
.admin-regime-impact-decision .is-positive strong,
.admin-regime-impact-result .is-positive strong,
.admin-score-impact-result .is-positive strong {
    color: var(--positive);
}

.admin-regime-stats .is-negative strong,
.admin-regime-impact-decision .is-negative strong,
.admin-regime-impact-result .is-negative strong,
.admin-score-impact-result .is-negative strong {
    color: var(--negative);
}

.admin-regime-stats .is-watch strong,
.admin-regime-impact-decision .is-watch strong,
.admin-regime-impact-result .is-watch strong,
.admin-score-impact-result .is-watch strong {
    color: var(--warning);
}

.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.admin-summary-grid > div {
    display: grid;
    gap: 6px;
    padding: 15px;
}

.admin-summary-grid span,
.admin-subscription-badges span {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.admin-summary-grid strong {
    color: var(--text);
    font-size: 1.35rem;
    line-height: 1;
}

.admin-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.admin-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-panel h2 {
    font-size: 1.16rem;
}

.admin-invite-panel {
    gap: 12px;
}

.admin-invite-language-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    background: var(--secondary-bg);
}

.admin-invite-language-tabs button {
    min-height: 28px;
    border: 0;
    border-radius: 999px;
    padding: 0 12px;
    background: transparent;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.admin-invite-language-tabs button.is-active,
.admin-invite-language-tabs button:hover {
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    color: var(--text);
}

.admin-invite-link-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 750;
}

.admin-invite-link-row code {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
}

.admin-invite-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.admin-invite-item {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.admin-invite-item header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.admin-invite-item .admin-kicker {
    margin: 0;
    color: var(--muted-strong);
}

.admin-invite-copy {
    min-height: 32px;
    padding: 0 12px;
    border-color: var(--panel-border-strong);
    background: var(--secondary-bg);
    color: var(--muted-strong);
}

.admin-invite-copy:hover {
    color: var(--text);
    border-color: color-mix(in srgb, var(--accent) 34%, var(--panel-border-strong));
}

.admin-invite-text {
    width: 100%;
    min-height: 188px;
    box-sizing: border-box;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 11px;
    resize: vertical;
    background: var(--secondary-bg);
    color: var(--text);
    font: inherit;
    font-size: 0.88rem;
    line-height: 1.45;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.admin-dashboard-card {
    display: grid;
    align-content: space-between;
    gap: 16px;
    min-height: 190px;
    padding: 18px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-dashboard-card h2 {
    margin: 0;
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.18rem;
    letter-spacing: 0;
}

.admin-dashboard-card span {
    display: block;
    margin-top: 6px;
    font-size: 0.86rem;
    line-height: 1.4;
}

.admin-activation-form {
    grid-template-columns: 140px minmax(220px, 1fr) 100px 140px;
    align-items: end;
}

.admin-wide-field,
.admin-checks {
    grid-column: 1 / -1;
}

.admin-checks {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-checks label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    background: var(--secondary-bg);
}

.admin-filter-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    background: var(--secondary-bg);
}

.admin-filter-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    min-width: 72px;
    border-radius: 999px;
    padding: 0 11px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 750;
    text-decoration: none;
}

.admin-filter-tabs a.is-active,
.admin-filter-tabs a:hover {
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    color: var(--text);
}

.admin-review-title form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.admin-product-mode-form {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
}

.admin-product-mode-form label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-product-mode-form select {
    width: 140px;
    min-height: 34px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 0 8px;
    background: var(--secondary-bg);
    color: var(--text);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: none;
}

.admin-product-mode-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
    border-radius: 8px;
    padding: 0 11px;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--accent);
    font-weight: 800;
}

.admin-review-send-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.admin-review-title button.is-secondary {
    border-color: var(--panel-border);
    background: var(--secondary-bg);
    color: var(--muted-strong);
}

.admin-guard-override {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
    white-space: nowrap;
}

.admin-guard-override input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--accent);
}

.admin-review-title button:disabled,
.admin-review-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.52;
}

.admin-review-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-review-counts {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-review-counts span {
    display: grid;
    gap: 2px;
    min-width: 92px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 8px 10px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-review-counts small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-review-counts strong {
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1;
}

.admin-review-counts .admin-review-regime.is-positive {
    border-color: color-mix(in srgb, var(--positive) 34%, var(--panel-border));
}

.admin-review-counts .admin-review-regime.is-negative {
    border-color: color-mix(in srgb, var(--negative) 34%, var(--panel-border));
}

.admin-review-counts .admin-review-regime.is-watch {
    border-color: color-mix(in srgb, var(--warning) 34%, var(--panel-border));
}

.admin-review-counts .admin-review-guard.is-ready {
    border-color: color-mix(in srgb, var(--positive) 34%, var(--panel-border));
}

.admin-review-counts .admin-review-guard.is-action {
    border-color: color-mix(in srgb, var(--negative) 34%, var(--panel-border));
}

.admin-review-counts .admin-review-guard.is-watch {
    border-color: color-mix(in srgb, var(--warning) 34%, var(--panel-border));
}

.admin-review-counts .admin-review-regime.is-positive strong {
    color: var(--positive);
}

.admin-review-counts .admin-review-regime.is-negative strong {
    color: var(--negative);
}

.admin-review-counts .admin-review-regime.is-watch strong {
    color: var(--warning);
}

.admin-review-counts .admin-review-guard.is-ready strong {
    color: var(--positive);
}

.admin-review-counts .admin-review-guard.is-action strong {
    color: var(--negative);
}

.admin-review-counts .admin-review-guard.is-watch strong {
    color: var(--warning);
}

.admin-review-preview textarea,
.admin-send-preview textarea {
    width: 100%;
    min-height: 190px;
    box-sizing: border-box;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 12px;
    resize: vertical;
    background: var(--secondary-bg);
    color: var(--text);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.82rem;
    line-height: 1.5;
}

.admin-send-preview {
    display: grid;
    gap: 12px;
    border-color: color-mix(in srgb, var(--warning) 28%, var(--panel-border));
}

.admin-send-preview.is-ready {
    border-color: color-mix(in srgb, var(--positive) 34%, var(--panel-border));
}

.admin-send-preview.is-action {
    border-color: color-mix(in srgb, var(--negative) 34%, var(--panel-border));
}

.admin-send-preview-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.admin-send-preview-stats span {
    display: grid;
    gap: 3px;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 9px 10px;
    background: var(--secondary-bg);
}

.admin-send-preview-stats small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-send-preview-stats strong,
.admin-send-preview-subject {
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-send-preview-subject {
    display: block;
    font-size: 0.9rem;
}

.admin-review-list {
    display: grid;
    gap: 10px;
}

.admin-review-card {
    display: grid;
    grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1.2fr) minmax(180px, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 13px;
    box-shadow: none;
}

.admin-review-card.is-approved {
    border-color: color-mix(in srgb, var(--positive) 34%, var(--panel-border));
}

.admin-review-card.is-skipped {
    opacity: 0.72;
}

.admin-review-card-main,
.admin-review-card-detail {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-review-card-main strong,
.admin-review-card-main small,
.admin-review-card-detail strong,
.admin-review-card-detail span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-review-card-main strong,
.admin-review-card-detail strong {
    color: var(--text);
    font-size: 0.95rem;
}

.admin-review-card-main small,
.admin-review-card-detail span {
    color: var(--muted);
    font-size: 0.78rem;
}

.admin-strategy-gate-form {
    display: flex;
    gap: 6px;
    align-items: center;
    min-width: 0;
    margin: 3px 0 0;
}

.admin-strategy-gate-form select {
    width: min(132px, 100%);
    min-height: 34px;
    padding: 0 9px;
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-strategy-gate-form button {
    min-height: 34px;
    padding: 0 11px;
    font-size: 0.78rem;
}

.admin-review-thesis {
    display: grid;
    gap: 5px;
    margin-top: 4px;
}

.admin-review-thesis span {
    display: grid;
    gap: 2px;
    min-width: 0;
    border-left: 2px solid color-mix(in srgb, var(--accent) 42%, var(--panel-border));
    padding-left: 8px;
}

.admin-review-thesis small {
    overflow: hidden;
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.56rem;
    font-weight: 800;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-review-thesis strong {
    overflow: visible;
    color: var(--text);
    font-size: 0.74rem;
    font-weight: 650;
    line-height: 1.35;
    text-overflow: clip;
    white-space: normal;
}

.admin-review-card-top {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.admin-review-card-top span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    padding: 0 8px;
    background: var(--secondary-bg);
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-review-card.is-approved .admin-review-card-top span:nth-child(2) {
    color: var(--positive);
    border-color: color-mix(in srgb, var(--positive) 34%, var(--panel-border));
}

.admin-review-card.is-skipped .admin-review-card-top span:nth-child(2) {
    color: var(--warning);
    border-color: color-mix(in srgb, var(--warning) 34%, var(--panel-border));
}

.admin-review-card-top span.is-positive {
    color: var(--positive);
    border-color: color-mix(in srgb, var(--positive) 34%, var(--panel-border));
}

.admin-review-card-top span.is-negative {
    color: var(--negative);
    border-color: color-mix(in srgb, var(--negative) 30%, var(--panel-border));
}

.admin-review-card-top .admin-score-badge {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 38%, var(--panel-border));
}

.admin-review-card-top .admin-edge-badge {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 42%, var(--panel-border));
    background: color-mix(in srgb, var(--accent) 8%, var(--secondary-bg));
}

.admin-review-card-top .admin-strategy-gate-badge {
    color: var(--muted);
    border-color: color-mix(in srgb, var(--muted) 26%, var(--panel-border));
    background: color-mix(in srgb, var(--muted) 6%, var(--secondary-bg));
}

.admin-review-card-top .admin-product-policy-badge {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 36%, var(--panel-border));
    background: color-mix(in srgb, var(--accent) 8%, var(--secondary-bg));
}

.admin-review-card-top .admin-product-policy-badge.is-ready {
    color: var(--positive);
    border-color: color-mix(in srgb, var(--positive) 40%, var(--panel-border));
    background: color-mix(in srgb, var(--positive) 8%, var(--secondary-bg));
}

.admin-review-card-top .admin-product-policy-badge.is-watch {
    color: var(--warning);
    border-color: color-mix(in srgb, var(--warning) 40%, var(--panel-border));
    background: color-mix(in srgb, var(--warning) 8%, var(--secondary-bg));
}

.admin-review-card-top .admin-product-policy-badge.is-action {
    color: var(--negative);
    border-color: color-mix(in srgb, var(--negative) 36%, var(--panel-border));
    background: color-mix(in srgb, var(--negative) 8%, var(--secondary-bg));
}

.admin-review-card-top .admin-auto-decision-badge {
    color: var(--muted);
    border-color: color-mix(in srgb, var(--muted) 28%, var(--panel-border));
    background: color-mix(in srgb, var(--muted) 6%, var(--secondary-bg));
}

.admin-review-card-top .admin-auto-decision-badge.is-ready {
    color: var(--positive);
    border-color: color-mix(in srgb, var(--positive) 40%, var(--panel-border));
    background: color-mix(in srgb, var(--positive) 8%, var(--secondary-bg));
}

.admin-review-card-top .admin-auto-decision-badge.is-watch {
    color: var(--warning);
    border-color: color-mix(in srgb, var(--warning) 40%, var(--panel-border));
    background: color-mix(in srgb, var(--warning) 8%, var(--secondary-bg));
}

.admin-review-card-top .admin-auto-decision-badge.is-action {
    color: var(--negative);
    border-color: color-mix(in srgb, var(--negative) 36%, var(--panel-border));
    background: color-mix(in srgb, var(--negative) 8%, var(--secondary-bg));
}

.admin-review-card-top .admin-strategy-gate-badge.is-positive {
    color: var(--positive);
    border-color: color-mix(in srgb, var(--positive) 40%, var(--panel-border));
    background: color-mix(in srgb, var(--positive) 8%, var(--secondary-bg));
}

.admin-review-card-top .admin-strategy-gate-badge.is-watch {
    color: var(--warning);
    border-color: color-mix(in srgb, var(--warning) 40%, var(--panel-border));
    background: color-mix(in srgb, var(--warning) 8%, var(--secondary-bg));
}

.admin-review-card-top .admin-strategy-gate-badge.is-negative {
    color: var(--negative);
    border-color: color-mix(in srgb, var(--negative) 36%, var(--panel-border));
    background: color-mix(in srgb, var(--negative) 8%, var(--secondary-bg));
}

.admin-review-card-top .admin-edge-badge.is-positive {
    color: var(--positive);
    border-color: color-mix(in srgb, var(--positive) 40%, var(--panel-border));
    background: color-mix(in srgb, var(--positive) 8%, var(--secondary-bg));
}

.admin-review-card-top .admin-edge-badge.is-watch {
    color: var(--warning);
    border-color: color-mix(in srgb, var(--warning) 40%, var(--panel-border));
    background: color-mix(in srgb, var(--warning) 8%, var(--secondary-bg));
}

.admin-review-card-top .admin-edge-badge.is-negative {
    color: var(--negative);
    border-color: color-mix(in srgb, var(--negative) 36%, var(--panel-border));
    background: color-mix(in srgb, var(--negative) 8%, var(--secondary-bg));
}

.admin-review-card-top .admin-digest-pick-badge.is-ready {
    color: var(--positive);
    border-color: color-mix(in srgb, var(--positive) 40%, var(--panel-border));
    background: color-mix(in srgb, var(--positive) 8%, var(--secondary-bg));
}

.admin-review-card-top .admin-digest-pick-badge.is-watch {
    color: var(--warning);
    border-color: color-mix(in srgb, var(--warning) 40%, var(--panel-border));
    background: color-mix(in srgb, var(--warning) 8%, var(--secondary-bg));
}

.admin-review-card-top .admin-score-badge.is-strong {
    color: var(--positive);
    border-color: color-mix(in srgb, var(--positive) 36%, var(--panel-border));
}

.admin-review-card-top .admin-score-badge.is-watch {
    color: var(--warning);
    border-color: color-mix(in srgb, var(--warning) 36%, var(--panel-border));
}

.admin-review-card-top .admin-score-badge.is-mixed,
.admin-review-card-top .admin-score-badge.is-unproven {
    color: var(--muted);
    border-color: color-mix(in srgb, var(--muted) 24%, var(--panel-border));
}

.admin-review-card-top .admin-score-badge.is-weak {
    color: var(--negative);
    border-color: color-mix(in srgb, var(--negative) 32%, var(--panel-border));
}

.admin-review-card-top .admin-score-badge.is-positive {
    color: var(--positive);
    border-color: color-mix(in srgb, var(--positive) 36%, var(--panel-border));
}

.admin-review-card-top .admin-score-badge.is-negative {
    color: var(--negative);
    border-color: color-mix(in srgb, var(--negative) 32%, var(--panel-border));
}

.admin-review-evidence {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.admin-review-edge {
    display: grid;
    gap: 2px;
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--panel-border));
    border-radius: 8px;
    padding: 8px;
    background: color-mix(in srgb, var(--accent) 7%, var(--secondary-bg));
}

.admin-review-edge strong,
.admin-review-edge span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-review-edge strong {
    color: var(--accent);
    font-size: 0.76rem;
}

.admin-review-edge span {
    color: var(--muted);
    font-size: 0.7rem;
}

.admin-review-edge.is-positive {
    border-color: color-mix(in srgb, var(--positive) 30%, var(--panel-border));
    background: color-mix(in srgb, var(--positive) 7%, var(--secondary-bg));
}

.admin-review-edge.is-positive strong {
    color: var(--positive);
}

.admin-review-edge.is-watch {
    border-color: color-mix(in srgb, var(--warning) 32%, var(--panel-border));
    background: color-mix(in srgb, var(--warning) 8%, var(--secondary-bg));
}

.admin-review-edge.is-watch strong {
    color: var(--warning);
}

.admin-review-edge.is-negative {
    border-color: color-mix(in srgb, var(--negative) 32%, var(--panel-border));
    background: color-mix(in srgb, var(--negative) 8%, var(--secondary-bg));
}

.admin-review-edge.is-negative strong {
    color: var(--negative);
}

.admin-review-proof {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.admin-review-proof span {
    display: grid;
    gap: 2px;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 7px;
    background: var(--secondary-bg);
}

.admin-review-proof small,
.admin-review-proof strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-review-proof small {
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 700;
}

.admin-review-proof strong {
    color: var(--text);
    font-size: 0.72rem;
}

.admin-review-warnings {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.admin-review-warnings span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    border: 1px solid color-mix(in srgb, var(--warning) 34%, var(--panel-border));
    border-radius: 999px;
    padding: 0 8px;
    background: color-mix(in srgb, var(--warning) 8%, var(--secondary-bg));
    color: var(--warning);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-review-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.admin-review-actions form {
    margin: 0;
}

.admin-review-actions button.is-secondary {
    border-color: var(--panel-border-strong);
    background: var(--secondary-bg);
    color: var(--muted-strong);
}

.admin-review-actions button.is-secondary:hover {
    color: var(--text);
    border-color: color-mix(in srgb, var(--accent) 34%, var(--panel-border-strong));
}

.admin-journal-counts {
    justify-content: flex-start;
}

.admin-journal-note {
    padding: 14px 16px;
}

.admin-journal-list {
    display: grid;
    gap: 10px;
}

.admin-journal-row {
    display: grid;
    grid-template-columns: minmax(140px, 0.75fr) minmax(220px, 1.15fr) minmax(210px, 0.9fr) minmax(190px, 0.85fr);
    gap: 12px;
    align-items: center;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 13px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-journal-row.is-worked {
    border-color: color-mix(in srgb, var(--positive) 34%, var(--panel-border));
}

.admin-journal-row.is-failed {
    border-color: color-mix(in srgb, var(--negative) 30%, var(--panel-border));
}

.admin-journal-row.is-skipped {
    opacity: 0.72;
}

.admin-journal-main,
.admin-journal-detail {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-journal-main strong,
.admin-journal-main small,
.admin-journal-detail strong,
.admin-journal-detail span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-journal-main strong,
.admin-journal-detail strong {
    color: var(--text);
    font-size: 0.95rem;
}

.admin-journal-main small,
.admin-journal-detail span {
    color: var(--muted);
    font-size: 0.78rem;
}

.admin-journal-prices,
.admin-journal-moves,
.admin-journal-outcome {
    display: grid;
    gap: 6px;
}

.admin-journal-prices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-journal-moves {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-journal-outcome {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-journal-prices span,
.admin-journal-moves span,
.admin-journal-outcome span {
    display: grid;
    gap: 2px;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 7px;
    background: var(--secondary-bg);
}

.admin-journal-prices small,
.admin-journal-moves small,
.admin-journal-outcome small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-journal-prices strong,
.admin-journal-moves strong,
.admin-journal-outcome strong {
    overflow: hidden;
    color: var(--text);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-journal-prices .is-positive strong,
.admin-journal-moves .is-positive strong,
.admin-journal-outcome .is-positive strong {
    color: var(--positive);
}

.admin-journal-prices .is-negative strong,
.admin-journal-moves .is-negative strong,
.admin-journal-outcome .is-negative strong {
    color: var(--negative);
}

.admin-journal-form {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 140px minmax(220px, 1fr) auto auto;
    gap: 8px;
}

.admin-journal-form select,
.admin-journal-form input[type="text"] {
    min-height: 38px;
    box-sizing: border-box;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 0 11px;
    background: var(--secondary-bg);
    color: var(--text);
}

.admin-journal-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
    border-radius: 8px;
    padding: 0 14px;
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    color: var(--accent);
    font-weight: 800;
}

.admin-journal-form button.is-secondary {
    border-color: var(--panel-border-strong);
    background: var(--secondary-bg);
    color: var(--muted-strong);
}

.admin-confidence-source {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-confidence-counts {
    justify-content: flex-start;
}

.admin-confidence-list {
    display: grid;
    gap: 10px;
}

.admin-confidence-row {
    display: grid;
    grid-template-columns: minmax(240px, 1.2fr) minmax(260px, 1fr) minmax(260px, 1fr);
    gap: 12px;
    align-items: center;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 13px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-confidence-row.is-promising {
    border-color: color-mix(in srgb, var(--positive) 34%, var(--panel-border));
}

.admin-confidence-row.is-strong {
    border-color: color-mix(in srgb, var(--positive) 46%, var(--panel-border));
}

.admin-confidence-row.is-weak {
    border-color: color-mix(in srgb, var(--negative) 30%, var(--panel-border));
}

.admin-confidence-row.is-mixed {
    border-color: color-mix(in srgb, var(--warning) 32%, var(--panel-border));
}

.admin-confidence-row.is-unproven {
    opacity: 0.86;
}

.admin-confidence-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-confidence-main strong,
.admin-confidence-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-confidence-main strong {
    color: var(--text);
    font-size: 0.96rem;
}

.admin-confidence-main small {
    color: var(--muted);
    font-size: 0.78rem;
}

.admin-confidence-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.admin-confidence-stats span {
    display: grid;
    gap: 2px;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 7px;
    background: var(--secondary-bg);
}

.admin-confidence-stats small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.56rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-confidence-stats strong {
    overflow: hidden;
    color: var(--text);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-board {
    display: grid;
    gap: 18px;
}

.admin-strategy-board-section {
    display: grid;
    gap: 10px;
}

.admin-strategy-board-section > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-strategy-board-section h2 {
    margin: 0;
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0;
}

.admin-strategy-board-section > header span {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    font-weight: 800;
}

.admin-strategy-board-list {
    display: grid;
    gap: 8px;
}

.admin-strategy-board-row {
    display: grid;
    grid-template-columns: minmax(230px, 1.15fr) minmax(280px, 1.15fr) minmax(210px, 0.85fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 12px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-strategy-board-row.is-ready {
    border-color: color-mix(in srgb, var(--positive) 42%, var(--panel-border));
}

.admin-strategy-board-row.is-testing {
    border-color: color-mix(in srgb, var(--warning) 32%, var(--panel-border));
}

.admin-strategy-board-row.is-reject {
    border-color: color-mix(in srgb, var(--negative) 30%, var(--panel-border));
    opacity: 0.88;
}

.admin-strategy-board-main,
.admin-strategy-board-note {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-strategy-board-main strong,
.admin-strategy-board-main small,
.admin-strategy-board-note strong,
.admin-strategy-board-note span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-board-main strong {
    color: var(--text);
    font-size: 0.95rem;
}

.admin-strategy-board-main small,
.admin-strategy-board-note span {
    color: var(--muted);
    font-size: 0.78rem;
}

.admin-strategy-board-note strong {
    color: var(--text);
    font-size: 0.86rem;
}

.admin-strategy-board-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.admin-strategy-board-metrics span {
    display: grid;
    gap: 2px;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 7px;
    background: var(--secondary-bg);
}

.admin-strategy-board-metrics small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-strategy-board-metrics strong {
    overflow: hidden;
    color: var(--text);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-board-action {
    display: flex;
    justify-content: flex-end;
}

.admin-strategy-board-action form {
    margin: 0;
}

.admin-strategy-board-action button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
    border-radius: 8px;
    padding: 0 14px;
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    color: var(--accent);
    font-weight: 800;
}

.admin-strategy-board-action button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.admin-miner-title {
    align-items: flex-start;
}

.admin-miner-run-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.admin-miner-run-actions form {
    margin: 0;
}

.admin-miner-run-actions button,
.admin-strategy-miner-action button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
    border-radius: 8px;
    padding: 0 14px;
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    color: var(--accent);
    font-weight: 800;
}

.admin-strategy-miner {
    display: grid;
    gap: 18px;
}

.admin-strategy-miner-section {
    display: grid;
    gap: 10px;
}

.admin-strategy-miner-section > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-strategy-miner-section h2 {
    margin: 0;
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0;
}

.admin-strategy-miner-section > header span {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    font-weight: 800;
}

.admin-strategy-miner-list {
    display: grid;
    gap: 8px;
}

.admin-strategy-miner-row {
    display: grid;
    grid-template-columns: minmax(240px, 1.2fr) minmax(280px, 1.1fr) minmax(210px, 0.85fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 12px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-strategy-miner-row.is-top {
    border-color: color-mix(in srgb, var(--positive) 42%, var(--panel-border));
}

.admin-strategy-miner-row.is-testing {
    border-color: color-mix(in srgb, var(--warning) 32%, var(--panel-border));
}

.admin-strategy-miner-row.is-reject {
    border-color: color-mix(in srgb, var(--negative) 30%, var(--panel-border));
    opacity: 0.88;
}

.admin-strategy-miner-main,
.admin-strategy-miner-note {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-strategy-miner-main {
    color: inherit;
    text-decoration: none;
}

.admin-strategy-miner-main strong,
.admin-strategy-miner-main small,
.admin-strategy-miner-note strong,
.admin-strategy-miner-note span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-miner-main strong {
    color: var(--text);
    font-size: 0.95rem;
}

.admin-strategy-miner-main small,
.admin-strategy-miner-note span {
    color: var(--muted);
    font-size: 0.78rem;
}

.admin-strategy-miner-note strong {
    color: var(--text);
    font-size: 0.86rem;
}

.admin-strategy-miner-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.admin-strategy-miner-metrics span {
    display: grid;
    gap: 2px;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 7px;
    background: var(--secondary-bg);
}

.admin-strategy-miner-metrics small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-strategy-miner-metrics strong {
    overflow: hidden;
    color: var(--text);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-miner-action {
    display: flex;
    justify-content: flex-end;
}

.admin-strategy-miner-action form {
    margin: 0;
}

.admin-miner-run-actions button:hover,
.admin-strategy-miner-action button:hover {
    border-color: color-mix(in srgb, var(--accent) 64%, transparent);
}

.admin-strategy-miner-action button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.admin-strategy-title {
    align-items: flex-start;
}

.admin-strategy-run-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.admin-strategy-run-actions form,
.admin-strategy-workbench-form {
    margin: 0;
}

.admin-strategy-run-actions button,
.admin-strategy-workbench-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
    border-radius: 8px;
    padding: 0 14px;
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    color: var(--accent);
    font-weight: 800;
}

.admin-strategy-proof-gaps {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 12px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-strategy-proof-gaps.is-ready {
    border-color: color-mix(in srgb, var(--positive) 40%, var(--panel-border));
}

.admin-strategy-proof-gaps.is-watch {
    border-color: color-mix(in srgb, var(--warning) 28%, var(--panel-border));
}

.admin-strategy-proof-gaps.is-action {
    border-color: color-mix(in srgb, var(--negative) 32%, var(--panel-border));
}

.admin-strategy-invite-status {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(240px, 0.7fr);
    gap: 12px;
    align-items: center;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 12px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-strategy-invite-status.is-ready {
    border-color: color-mix(in srgb, var(--positive) 40%, var(--panel-border));
}

.admin-strategy-invite-status.is-watch {
    border-color: color-mix(in srgb, var(--warning) 28%, var(--panel-border));
}

.admin-strategy-invite-status.is-action {
    border-color: color-mix(in srgb, var(--negative) 32%, var(--panel-border));
}

.admin-strategy-invite-status > div:first-child {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.admin-strategy-invite-status strong {
    color: var(--text);
}

.admin-strategy-invite-status span {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-invite-status > div:first-child > small {
    overflow: hidden;
    color: var(--muted-strong);
    font-size: 0.74rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-invite-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.admin-strategy-invite-metrics span {
    display: grid;
    gap: 2px;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 7px;
    background: var(--secondary-bg);
}

.admin-strategy-invite-metrics small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-strategy-invite-metrics strong {
    color: var(--text);
    font-size: 0.84rem;
}

.admin-strategy-invite-metrics .is-ready strong {
    color: var(--accent);
}

.admin-strategy-invite-metrics .is-watch strong {
    color: #fcd34d;
}

.admin-strategy-invite-metrics .is-action strong {
    color: #fca5a5;
}

.admin-strategy-progress {
    display: grid;
    grid-template-columns: minmax(240px, 0.7fr) minmax(180px, 0.35fr) minmax(320px, 0.95fr);
    gap: 12px;
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--panel-border));
    border-radius: 8px;
    padding: 12px;
    background: color-mix(in srgb, var(--accent) 4%, var(--panel));
    box-shadow: var(--shadow);
}

.admin-strategy-progress.is-ready {
    border-color: color-mix(in srgb, var(--positive) 40%, var(--panel-border));
}

.admin-strategy-progress.is-action {
    border-color: color-mix(in srgb, var(--negative) 34%, var(--panel-border));
    background: color-mix(in srgb, var(--negative) 4%, var(--panel));
}

.admin-strategy-progress.is-complete,
.admin-strategy-progress.is-idle {
    grid-template-columns: minmax(240px, 0.7fr) minmax(360px, 1fr);
}

.admin-strategy-progress.is-complete .admin-strategy-progress-meter,
.admin-strategy-progress.is-idle .admin-strategy-progress-meter {
    display: none;
}

.admin-strategy-progress-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.admin-strategy-progress-main strong,
.admin-strategy-progress-main span,
.admin-strategy-progress-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-progress-main strong {
    color: var(--text);
    font-size: 0.98rem;
}

.admin-strategy-progress-main span {
    color: var(--muted);
    font-size: 0.82rem;
}

.admin-strategy-progress-main small {
    color: color-mix(in srgb, var(--accent) 76%, var(--muted));
    font-size: 0.72rem;
    font-weight: 800;
}

.admin-strategy-progress-meter {
    display: grid;
    align-content: center;
    gap: 7px;
    min-width: 0;
}

.admin-strategy-progress-meter > div {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted) 18%, transparent);
}

.admin-strategy-progress-meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transition: width 240ms ease;
}

.admin-strategy-progress.is-action .admin-strategy-progress-meter span {
    background: #fca5a5;
}

.admin-strategy-progress-meter b {
    color: var(--muted-strong);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    font-weight: 800;
}

.admin-strategy-progress-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.admin-strategy-progress-metrics span {
    display: grid;
    gap: 2px;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 7px;
    background: var(--secondary-bg);
}

.admin-strategy-progress-metrics small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-strategy-progress-metrics strong,
.admin-strategy-progress-metrics em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-progress-metrics strong {
    color: var(--text);
    font-size: 0.78rem;
}

.admin-strategy-progress-metrics em {
    color: var(--muted);
    font-size: 0.68rem;
    font-style: normal;
}

.admin-strategy-progress-metrics .is-ready strong {
    color: var(--accent);
}

.admin-strategy-progress-metrics .is-action strong {
    color: #fca5a5;
}

.admin-strategy-progress-metrics .is-watch strong {
    color: #fcd34d;
}

.admin-strategy-use-now {
    display: grid;
    grid-template-columns: minmax(220px, 0.55fr) minmax(360px, 1fr) minmax(220px, 0.45fr);
    gap: 12px;
    align-items: stretch;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 12px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-strategy-use-now.is-ready {
    border-color: color-mix(in srgb, var(--positive) 42%, var(--panel-border));
}

.admin-strategy-use-now.is-watch {
    border-color: color-mix(in srgb, var(--warning) 30%, var(--panel-border));
}

.admin-strategy-use-now.is-action {
    border-color: color-mix(in srgb, var(--negative) 34%, var(--panel-border));
}

.admin-strategy-use-now-main,
.admin-strategy-use-now-list a,
.admin-strategy-use-now-metrics span {
    min-width: 0;
}

.admin-strategy-use-now-main {
    display: grid;
    align-content: center;
    gap: 4px;
}

.admin-strategy-use-now-main strong {
    color: var(--text);
    font-size: 1.04rem;
}

.admin-strategy-use-now-main span,
.admin-strategy-use-now-main small {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-use-now-main small {
    color: color-mix(in srgb, var(--accent) 70%, var(--muted));
    font-size: 0.72rem;
    font-weight: 800;
}

.admin-strategy-use-now-list {
    display: grid;
    gap: 6px;
}

.admin-strategy-use-now-list a {
    display: grid;
    gap: 3px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 9px;
    background: var(--secondary-bg);
    color: inherit;
    text-decoration: none;
}

.admin-strategy-use-now-list small,
.admin-strategy-use-now-list em {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.7rem;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-use-now-list strong {
    overflow: hidden;
    color: var(--text);
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-use-now-list a.is-ready strong,
.admin-strategy-use-now-metrics .is-ready strong {
    color: var(--accent);
}

.admin-strategy-use-now-list a.is-watch strong,
.admin-strategy-use-now-metrics .is-watch strong {
    color: #fcd34d;
}

.admin-strategy-use-now-list a.is-action strong,
.admin-strategy-use-now-metrics .is-action strong {
    color: #fca5a5;
}

.admin-strategy-use-now-list a > span {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}

.admin-strategy-use-now-list b {
    overflow: hidden;
    color: var(--muted-strong);
    font-size: 0.64rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-use-now-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.admin-strategy-use-now-metrics span {
    display: grid;
    align-content: center;
    gap: 2px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 7px;
    background: var(--secondary-bg);
}

.admin-strategy-use-now-metrics small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-strategy-use-now-metrics strong {
    color: var(--text);
    font-size: 0.9rem;
}

.admin-strategy-proof-gap-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.admin-strategy-proof-gap-main strong {
    color: var(--text);
    font-size: 1rem;
}

.admin-strategy-proof-gap-main span {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-gate-freshness {
    overflow: hidden;
    color: var(--muted-strong);
    font-size: 0.72rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-gate-freshness.is-ready {
    color: var(--accent);
}

.admin-strategy-gate-freshness.is-action {
    color: #fca5a5;
}

.admin-strategy-gate-freshness.is-watch {
    color: #fcd34d;
}

.admin-strategy-proof-gap-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.admin-strategy-proof-gap-list span {
    display: grid;
    gap: 2px;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 7px;
    background: var(--secondary-bg);
}

.admin-strategy-proof-gap-list small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-strategy-proof-gap-list strong {
    color: var(--text);
    font-size: 0.9rem;
}

.admin-strategy-proof-gap-list em {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.7rem;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-proof-gap-list .is-ready strong {
    color: var(--accent);
}

.admin-strategy-proof-gap-list .is-watch strong {
    color: #fcd34d;
}

.admin-strategy-proof-gap-list .is-action strong {
    color: #fca5a5;
}

.admin-strategy-proof-gap-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-strategy-proof-gap-actions form {
    margin: 0;
}

.admin-strategy-proof-gap-actions button,
.admin-strategy-proof-gap-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
    border-radius: 8px;
    padding: 0 12px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
}

.admin-strategy-hypothesis {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(240px, 0.8fr);
    gap: 14px;
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--panel-border));
    border-radius: 8px;
    padding: 14px;
    background: color-mix(in srgb, var(--accent) 5%, var(--panel));
}

.admin-strategy-hypothesis.is-ready {
    border-color: color-mix(in srgb, var(--positive) 34%, var(--panel-border));
}

.admin-strategy-hypothesis.is-action {
    border-color: color-mix(in srgb, var(--negative) 30%, var(--panel-border));
    background: color-mix(in srgb, var(--negative) 5%, var(--panel));
}

.admin-strategy-hypothesis-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.admin-strategy-hypothesis-main strong {
    color: var(--text);
    font-size: 1rem;
}

.admin-strategy-hypothesis-main span,
.admin-strategy-hypothesis-main small {
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-hypothesis-main span {
    font-size: 0.82rem;
}

.admin-strategy-hypothesis-main small {
    color: var(--muted-strong);
    font-size: 0.74rem;
    font-weight: 800;
}

.admin-strategy-hypothesis-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.admin-strategy-hypothesis-metrics span {
    display: grid;
    gap: 2px;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 7px;
    background: var(--secondary-bg);
}

.admin-strategy-hypothesis-metrics small,
.admin-strategy-hypothesis-proof small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-strategy-hypothesis-metrics strong,
.admin-strategy-hypothesis-proof strong {
    overflow: hidden;
    color: var(--text);
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-hypothesis-metrics .is-ready strong,
.admin-strategy-hypothesis-row.is-ready .admin-strategy-hypothesis-next strong {
    color: var(--accent);
}

.admin-strategy-hypothesis-metrics .is-action strong,
.admin-strategy-hypothesis-row.is-action .admin-strategy-hypothesis-next strong {
    color: #fca5a5;
}

.admin-strategy-search-plan {
    display: grid;
    grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
    gap: 12px;
    align-items: stretch;
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--panel-border));
    border-radius: 8px;
    padding: 12px;
    background: var(--panel);
}

.admin-strategy-search-plan.is-action {
    border-color: color-mix(in srgb, var(--negative) 28%, var(--panel-border));
}

.admin-strategy-search-plan-main {
    display: grid;
    align-content: center;
    gap: 3px;
    min-width: 0;
}

.admin-strategy-search-plan-main strong {
    overflow: hidden;
    color: var(--text);
    font-size: 0.98rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-search-plan-main span,
.admin-strategy-search-plan-main small {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-search-plan-main small {
    color: color-mix(in srgb, var(--accent) 74%, var(--muted));
    font-size: 0.72rem;
    font-weight: 800;
}

.admin-strategy-track-retest-form {
    display: flex;
    margin: 5px 0 0;
}

.admin-strategy-track-retest-form button {
    border: 1px solid color-mix(in srgb, var(--accent) 46%, var(--panel-border));
    border-radius: 8px;
    padding: 7px 10px;
    background: color-mix(in srgb, var(--accent) 14%, var(--secondary-bg));
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 800;
}

.admin-strategy-search-plan-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.admin-strategy-search-budget .admin-strategy-search-plan-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-strategy-ai-lessons .admin-strategy-search-plan-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-strategy-repair-lessons .admin-strategy-search-plan-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-strategy-ai-gate .admin-strategy-search-plan-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-strategy-ai-rejections .admin-strategy-search-plan-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-strategy-ai-experiment .admin-strategy-search-plan-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.admin-strategy-active-edge .admin-strategy-search-plan-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-strategy-track-escalation .admin-strategy-search-plan-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.admin-strategy-baseline-autopsy .admin-strategy-search-plan-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.admin-strategy-search-plan-list span,
.admin-strategy-search-plan-list a {
    display: grid;
    gap: 2px;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 8px;
    background: var(--secondary-bg);
    color: inherit;
    text-decoration: none;
}

.admin-strategy-search-plan-list small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-strategy-search-plan-list strong,
.admin-strategy-search-plan-list em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-search-plan-list strong {
    color: var(--text);
    font-size: 0.78rem;
}

.admin-strategy-search-plan-list em {
    color: var(--muted);
    font-size: 0.7rem;
    font-style: normal;
}

.admin-strategy-search-plan-list .is-ready strong {
    color: var(--accent);
}

.admin-strategy-search-plan-list .is-action strong {
    color: #fca5a5;
}

.admin-strategy-search-plan-list .is-watch strong {
    color: #fcd34d;
}

.admin-strategy-edge-diagnostics {
    display: grid;
    gap: 10px;
}

.admin-strategy-edge-diagnostics > header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.admin-strategy-edge-diagnostics h2 {
    margin: 0;
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0;
}

.admin-strategy-edge-diagnostics header span {
    color: var(--muted);
    font-size: 0.8rem;
}

.admin-strategy-edge-diagnostic-list {
    display: grid;
    gap: 8px;
}

.admin-strategy-edge-diagnostic-row {
    display: grid;
    grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
    gap: 12px;
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--negative) 24%, var(--panel-border));
    border-radius: 8px;
    padding: 11px 12px;
    background: color-mix(in srgb, var(--negative) 4%, var(--panel));
}

.admin-strategy-edge-diagnostic-title {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-strategy-edge-diagnostic-title strong,
.admin-strategy-edge-diagnostic-title small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-edge-diagnostic-title strong {
    color: var(--text);
    font-size: 0.94rem;
}

.admin-strategy-edge-diagnostic-title small {
    color: #fca5a5;
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-strategy-edge-diagnostic-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
}

.admin-strategy-edge-diagnostic-metrics span {
    display: grid;
    gap: 2px;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 7px;
    background: var(--secondary-bg);
}

.admin-strategy-edge-diagnostic-metrics small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-strategy-edge-diagnostic-metrics strong {
    overflow: hidden;
    color: var(--text);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-return-capture {
    display: grid;
    grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
    gap: 12px;
    align-items: stretch;
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--panel-border));
    border-radius: 8px;
    padding: 12px;
    background: var(--panel);
}

.admin-strategy-return-capture.is-action {
    border-color: color-mix(in srgb, var(--negative) 30%, var(--panel-border));
}

.admin-strategy-return-capture.is-ready {
    border-color: color-mix(in srgb, var(--positive) 36%, var(--panel-border));
}

.admin-strategy-return-capture-main {
    display: grid;
    align-content: center;
    gap: 3px;
    min-width: 0;
}

.admin-strategy-return-capture-main h2 {
    overflow: hidden;
    margin: 0;
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-return-capture-main span,
.admin-strategy-return-capture-main small {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-return-capture-form {
    display: flex;
    margin-top: 4px;
}

.admin-strategy-return-capture-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    gap: 6px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 5px 7px;
    background: var(--secondary-bg);
}

.admin-strategy-return-capture-status strong,
.admin-strategy-return-capture-status em,
.admin-strategy-return-capture-log {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-return-capture-status strong {
    color: var(--text);
    font-size: 0.72rem;
}

.admin-strategy-return-capture-status em {
    color: var(--muted);
    font-size: 0.72rem;
    font-style: normal;
}

.admin-strategy-return-capture-status.is-ready strong {
    color: var(--accent);
}

.admin-strategy-return-capture-status.is-action strong {
    color: #fca5a5;
}

.admin-strategy-return-capture-log {
    display: block;
    max-width: 100%;
    font-family: "IBM Plex Mono", monospace;
}

.admin-strategy-return-capture-form button {
    border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--panel-border));
    border-radius: 8px;
    padding: 7px 10px;
    background: color-mix(in srgb, var(--accent) 12%, var(--secondary-bg));
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 800;
}

.admin-strategy-return-capture-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.admin-strategy-return-capture-metrics span,
.admin-strategy-return-capture-list span {
    display: grid;
    gap: 2px;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 8px;
    background: var(--secondary-bg);
}

.admin-strategy-return-capture-metrics small,
.admin-strategy-return-capture-list small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-strategy-return-capture-metrics strong,
.admin-strategy-return-capture-list strong {
    overflow: hidden;
    color: var(--text);
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-return-capture-metrics .is-ready strong,
.admin-strategy-return-capture-list .is-ready strong {
    color: var(--accent);
}

.admin-strategy-return-capture-metrics .is-action strong,
.admin-strategy-return-capture-list .is-action strong {
    color: #fca5a5;
}

.admin-strategy-return-capture-list {
    display: grid;
    grid-column: 1 / -1;
    gap: 6px;
}

.admin-strategy-return-capture-list article {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(0, 0.5fr));
    gap: 6px;
    align-items: center;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 8px;
    background: var(--secondary-bg);
}

.admin-strategy-return-capture-list article.is-ready {
    border-color: color-mix(in srgb, var(--positive) 32%, var(--panel-border));
}

.admin-strategy-return-capture-list article.is-action {
    border-color: color-mix(in srgb, var(--negative) 28%, var(--panel-border));
}

.admin-strategy-return-capture-list article > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.admin-strategy-workbench-section,
.admin-strategy-blocked-section,
.admin-strategy-hypothesis-section,
.admin-strategy-proof-section {
    display: grid;
    gap: 10px;
}

.admin-strategy-workbench-section > header,
.admin-strategy-blocked-section > header,
.admin-strategy-hypothesis-section > header,
.admin-strategy-proof-section > header {
    display: grid;
    gap: 2px;
}

.admin-strategy-workbench-section h2,
.admin-strategy-blocked-section h2,
.admin-strategy-hypothesis-section h2,
.admin-strategy-proof-section h2 {
    margin: 0;
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0;
}

.admin-strategy-workbench-list,
.admin-strategy-blocked-list,
.admin-strategy-hypothesis-list,
.admin-strategy-proof-list {
    display: grid;
    gap: 8px;
}

.admin-strategy-workbench-row {
    display: grid;
    grid-template-columns: minmax(240px, 1.05fr) minmax(260px, 1fr) minmax(220px, 0.85fr) minmax(168px, auto);
    gap: 12px;
    align-items: center;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 12px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-strategy-blocked-row {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(210px, 0.65fr) minmax(260px, 1fr);
    gap: 12px;
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--negative) 28%, var(--panel-border));
    border-radius: 8px;
    padding: 11px 12px;
    background: color-mix(in srgb, var(--negative) 5%, var(--panel));
}

.admin-strategy-hypothesis-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(300px, 0.9fr) minmax(180px, 0.55fr);
    gap: 12px;
    align-items: center;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 11px 12px;
    background: var(--panel);
}

.admin-strategy-hypothesis-row.is-ready {
    border-color: color-mix(in srgb, var(--positive) 34%, var(--panel-border));
}

.admin-strategy-hypothesis-row.is-action {
    border-color: color-mix(in srgb, var(--negative) 30%, var(--panel-border));
}

.admin-strategy-workbench-row.is-ready,
.admin-strategy-proof-row.is-ready {
    border-color: color-mix(in srgb, var(--positive) 40%, var(--panel-border));
}

.admin-strategy-workbench-row.is-watch,
.admin-strategy-proof-row.is-watch {
    border-color: color-mix(in srgb, var(--warning) 30%, var(--panel-border));
}

.admin-strategy-workbench-row.is-action,
.admin-strategy-proof-row.is-action {
    border-color: color-mix(in srgb, var(--negative) 30%, var(--panel-border));
}

.admin-strategy-workbench-main,
.admin-strategy-workbench-note,
.admin-strategy-blocked-main,
.admin-strategy-blocked-reason,
.admin-strategy-hypothesis-title,
.admin-strategy-hypothesis-next,
.admin-strategy-proof-row > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-strategy-workbench-main {
    color: inherit;
    text-decoration: none;
}

.admin-strategy-blocked-main {
    color: inherit;
    text-decoration: none;
}

.admin-strategy-workbench-main strong,
.admin-strategy-workbench-main small,
.admin-strategy-workbench-note strong,
.admin-strategy-workbench-note span,
.admin-strategy-blocked-main strong,
.admin-strategy-blocked-main small,
.admin-strategy-blocked-reason strong,
.admin-strategy-hypothesis-title strong,
.admin-strategy-hypothesis-title small,
.admin-strategy-hypothesis-next strong,
.admin-strategy-hypothesis-next small,
.admin-strategy-proof-row strong,
.admin-strategy-proof-row small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-workbench-main strong,
.admin-strategy-blocked-main strong,
.admin-strategy-hypothesis-title strong,
.admin-strategy-proof-row > div > strong {
    color: var(--text);
    font-size: 0.95rem;
}

.admin-strategy-workbench-main small,
.admin-strategy-workbench-note span,
.admin-strategy-blocked-main small,
.admin-strategy-hypothesis-title small,
.admin-strategy-hypothesis-next small,
.admin-strategy-proof-row small {
    color: var(--muted);
    font-size: 0.78rem;
}

.admin-strategy-workbench-note strong,
.admin-strategy-blocked-reason strong {
    color: var(--text);
    font-size: 0.86rem;
}

.admin-strategy-path-to-use {
    overflow: hidden;
    color: var(--muted-strong);
    font-size: 0.76rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-path-to-use.is-ready {
    color: var(--accent);
}

.admin-strategy-path-to-use.is-action {
    color: #fca5a5;
}

.admin-strategy-path-to-use.is-watch {
    color: #fcd34d;
}

.admin-strategy-workbench-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}

.admin-strategy-candidate-metrics {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.admin-strategy-blocked-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.admin-strategy-hypothesis-proof {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.admin-strategy-workbench-metrics span,
.admin-strategy-blocked-metrics span,
.admin-strategy-hypothesis-proof span,
.admin-strategy-proof-row > span {
    display: grid;
    gap: 2px;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 7px;
    background: var(--secondary-bg);
}

.admin-strategy-workbench-metrics small,
.admin-strategy-blocked-metrics small,
.admin-strategy-hypothesis-proof small,
.admin-strategy-proof-row > span small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-strategy-workbench-metrics strong,
.admin-strategy-blocked-metrics strong,
.admin-strategy-hypothesis-proof strong,
.admin-strategy-proof-row > span strong {
    overflow: hidden;
    color: var(--text);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-workbench-metrics span.is-ready strong,
.admin-strategy-workbench-metrics span.is-positive strong,
.admin-strategy-blocked-metrics span.is-ready strong,
.admin-strategy-blocked-metrics span.is-positive strong {
    color: var(--accent);
}

.admin-strategy-workbench-metrics span.is-action strong,
.admin-strategy-workbench-metrics span.is-negative strong,
.admin-strategy-blocked-metrics span.is-action strong,
.admin-strategy-blocked-metrics span.is-negative strong {
    color: #fca5a5;
}

.admin-strategy-workbench-metrics span.is-watch strong,
.admin-strategy-blocked-metrics span.is-watch strong {
    color: #fcd34d;
}

.admin-strategy-workbench-form {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.admin-strategy-workbench-form select {
    width: 92px;
    min-height: 38px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 0 8px;
    background: var(--secondary-bg);
    color: var(--text);
    font-weight: 800;
}

.admin-strategy-proof-row {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(120px, 0.45fr));
    gap: 10px;
    align-items: center;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 12px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-subscription-list {
    display: grid;
    gap: 8px;
}

.admin-subscription-row {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) minmax(250px, 1fr) minmax(180px, 0.8fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    box-shadow: none;
}

.admin-subscription-main,
.admin-subscription-meta {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.admin-subscription-main strong,
.admin-subscription-main span,
.admin-subscription-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-subscription-main strong {
    color: var(--text);
    font-size: 0.96rem;
}

.admin-subscription-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-subscription-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    padding: 0 9px;
    background: var(--secondary-bg);
}

.admin-subscription-badges .is-pro {
    color: var(--positive);
    border-color: color-mix(in srgb, var(--positive) 34%, var(--panel-border));
}

.admin-subscription-badges .is-free {
    color: var(--warning);
    border-color: color-mix(in srgb, var(--warning) 34%, var(--panel-border));
}

.admin-subscription-badges .is-proof {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 36%, var(--panel-border));
}

.admin-subscription-badges .is-expiring {
    color: var(--warning);
    border-color: color-mix(in srgb, var(--warning) 42%, var(--panel-border));
    background: color-mix(in srgb, var(--warning) 10%, var(--secondary-bg));
}

.admin-note-form {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.admin-note-form input[type="text"] {
    width: min(420px, 100%);
    min-height: 38px;
    box-sizing: border-box;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 0 11px;
    background: var(--secondary-bg);
    color: var(--text);
}

.admin-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-row-action button.is-secondary {
    border-color: var(--panel-border-strong);
    background: var(--secondary-bg);
    color: var(--muted-strong);
}

.admin-note-form button.is-secondary {
    border-color: var(--panel-border-strong);
    background: var(--secondary-bg);
    color: var(--muted-strong);
}

.admin-row-action button.is-secondary:hover,
.admin-note-form button.is-secondary:hover {
    color: var(--text);
    border-color: color-mix(in srgb, var(--accent) 34%, var(--panel-border-strong));
}

.admin-empty {
    padding: 16px;
}

@media (max-width: 980px) {
    .admin-header,
    .admin-page-title,
    .admin-panel-head,
    .admin-audit-hero,
    .admin-strategy-edge-diagnostics > header,
    .admin-audit-section header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-home-operator {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .admin-home-operator-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .admin-home-operator-steps {
        grid-template-columns: 1fr;
    }

    .admin-home-actions,
    .admin-home-metrics,
    .admin-home-tools,
    .admin-lab-tools {
        grid-template-columns: 1fr;
    }

    .admin-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-menu-grid.admin-home-tools {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-grid,
    .admin-digest-summary,
    .admin-digest-market-row,
    .admin-digest-grid,
    .admin-ops-summary,
    .admin-ops-market-row,
    .admin-ops-grid,
    .admin-ops-detail-grid,
    .admin-edge-profile-grid,
    .admin-edge-counts,
    .admin-edge-thresholds,
    .admin-invite-grid,
    .admin-activation-form,
    .admin-review-card,
    .admin-journal-row,
    .admin-journal-form,
    .admin-confidence-row,
    .admin-audit-market-row,
    .admin-regime-compare,
    .admin-regime-grid,
    .admin-regime-impact-grid,
    .admin-regime-impact-row,
    .admin-score-bucket-grid,
    .admin-score-impact-row,
    .admin-digest-proof-row,
    .admin-digest-history-row,
    .admin-strategy-progress,
    .admin-strategy-use-now,
    .admin-strategy-invite-status,
    .admin-strategy-proof-gaps,
    .admin-strategy-hypothesis,
    .admin-strategy-search-plan,
    .admin-strategy-return-capture,
    .admin-strategy-edge-diagnostic-row,
    .admin-strategy-return-capture-list article,
    .admin-strategy-workbench-row,
    .admin-strategy-blocked-row,
    .admin-strategy-hypothesis-row,
    .admin-strategy-proof-row,
    .admin-strategy-board-row,
    .admin-strategy-miner-row,
    .admin-regime-stats,
    .admin-subscription-row {
        grid-template-columns: 1fr;
    }

    .admin-regime-impact-decision,
    .admin-regime-impact-result,
    .admin-score-impact-score,
    .admin-score-impact-result,
    .admin-digest-proof-latest,
    .admin-digest-proof-horizons,
    .admin-digest-proof-items,
    .admin-digest-history-stats,
    .admin-digest-history-deliveries,
    .admin-strategy-progress-metrics,
    .admin-strategy-invite-metrics,
    .admin-strategy-proof-gap-list,
    .admin-strategy-hypothesis-metrics,
    .admin-strategy-hypothesis-proof,
    .admin-strategy-search-plan-list,
    .admin-strategy-return-capture-metrics,
    .admin-strategy-edge-diagnostic-metrics,
    .admin-strategy-workbench-metrics,
    .admin-strategy-blocked-metrics {
        grid-template-columns: 1fr;
    }

    .admin-review-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-strategy-run-actions,
    .admin-strategy-proof-gap-actions,
    .admin-strategy-workbench-form {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .admin-topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        min-height: 58px;
        padding: 9px 14px;
    }

    .admin-brand {
        min-width: 0;
    }

    .admin-mobile-menu-toggle {
        display: inline-flex;
        position: relative;
    }

    .admin-topbar .admin-nav,
    .admin-theme-toggle,
    .admin-logout-form {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
    }

    .admin-topbar.is-admin-menu-open .admin-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding-top: 6px;
    }

    .admin-topbar.is-admin-menu-open .admin-theme-toggle {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-height: 40px;
    }

    .admin-topbar.is-admin-menu-open .admin-logout-form {
        display: block;
    }

    .admin-topbar .admin-nav a {
        justify-content: flex-start;
        min-height: 40px;
        padding: 0 12px;
        background: rgba(255, 255, 255, 0.08);
    }

    .admin-logout-form button {
        width: 100%;
        justify-content: center;
        min-height: 40px;
    }
}

@media (max-width: 620px) {
    .admin-summary-grid {
        grid-template-columns: 1fr;
    }

    .admin-page-title h1 {
        font-size: 1.8rem;
    }

    .admin-menu-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .admin-note-form {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-note-form input[type="text"] {
        width: 100%;
    }

    .admin-journal-prices,
    .admin-journal-moves,
    .admin-journal-outcome,
    .admin-digest-proof {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-confidence-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-filter-tabs,
    .admin-filter-tabs a,
    .admin-product-mode-form,
    .admin-product-mode-form label,
    .admin-product-mode-form select,
    .admin-product-mode-form button,
    .admin-confidence-stats,
    .admin-invite-language-tabs,
    .admin-invite-language-tabs button,
    .admin-nav,
    .admin-nav a,
    .admin-login-form button,
    .admin-primary-link,
    .admin-secondary-button,
    .admin-page-title-action,
    .admin-page-title-action button,
    .admin-review-title button,
    .admin-review-send-actions,
    .admin-strategy-run-actions,
    .admin-strategy-run-actions form,
    .admin-strategy-run-actions button,
    .admin-strategy-track-retest-form,
    .admin-strategy-track-retest-form button,
    .admin-strategy-workbench-form,
    .admin-strategy-workbench-form select,
    .admin-strategy-workbench-form button,
    .admin-strategy-gate-form,
    .admin-strategy-gate-form select,
    .admin-strategy-gate-form button,
    .admin-review-actions,
    .admin-review-actions form,
    .admin-review-actions button,
    .admin-review-counts,
    .admin-review-counts span,
    .admin-invite-copy,
    .admin-activation-form button,
    .admin-journal-form button,
    .admin-note-form button,
    .admin-row-action button {
        width: 100%;
    }

    .admin-send-preview-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.page-live-signals .page-shell,
.page-alerts-pro .page-shell,
.page-performance-ledger .page-shell {
    width: min(1240px, calc(100% - 32px));
}

body.page-strategy-follow .page-shell,
body.page-strat-ai .page-shell,
body.page-live-signals .page-shell {
    width: min(1320px, calc(var(--stratlab-visual-viewport-width, 100vw) - 20px)) !important;
    max-width: calc(var(--stratlab-visual-viewport-width, 100vw) - 20px) !important;
}

.live-signals-shell {
    display: grid;
    gap: 16px;
    padding: 18px 0 42px;
}

.live-signals-header,
.live-signals-alert-card,
.live-signals-payment-proof-card,
.live-signals-alert-status,
.live-signals-notice,
.live-signals-section,
.live-signals-stat,
.live-signal-card,
.live-signals-empty {
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.live-signals-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
}

.live-signals-header h1,
.live-signals-alert-card h2,
.live-signals-payment-proof-card h2,
.live-signals-alert-status h2,
.live-signals-section-head h2 {
    margin: 0;
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    letter-spacing: 0;
}

.live-signals-header h1 {
    font-size: 2.4rem;
    line-height: 1.05;
}

.live-signals-header span,
.live-signals-alert-card span,
.live-signals-alert-status span,
.live-signals-notice span,
.live-signals-empty,
.live-signal-main span,
.live-signal-meta span,
.live-signal-risk,
.live-signal-freshness,
.live-signal-proof small {
    color: var(--muted);
}

.live-signals-kicker {
    margin: 0 0 8px;
    color: var(--accent);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.live-signals-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.live-signals-telegram-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
    border-radius: 8px;
    padding: 0 14px;
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.live-signals-telegram-cta:hover {
    background: color-mix(in srgb, var(--accent) 24%, transparent);
    color: var(--text);
}

.live-signals-market-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    background: var(--secondary-bg);
}

.live-signals-market-tabs a,
.live-signals-market-state,
.live-signals-regime,
.live-signal-card-status span,
.live-signal-card-status small,
.live-signals-section-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 0 11px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 650;
    letter-spacing: 0;
    text-decoration: none;
}

.live-signals-market-tabs a {
    gap: 6px;
    min-width: 56px;
}

.live-signals-market-tabs a.is-active,
.live-signals-market-tabs a:hover {
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--text);
}

.live-signals-market-tabs small {
    min-width: 18px;
    min-height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 22%, transparent);
    color: var(--accent);
    font-size: 0.66rem;
}

.live-signals-market-state {
    border: 1px solid var(--panel-border-strong);
    background: var(--secondary-bg);
}

.live-signals-regime {
    border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--panel-border));
    background: color-mix(in srgb, var(--accent) 10%, var(--secondary-bg));
    color: var(--accent);
}

.live-signals-regime.is-positive {
    border-color: color-mix(in srgb, var(--positive) 34%, var(--panel-border));
    background: color-mix(in srgb, var(--positive) 11%, transparent);
    color: var(--positive);
}

.live-signals-regime.is-negative {
    border-color: color-mix(in srgb, var(--negative) 34%, var(--panel-border));
    background: color-mix(in srgb, var(--negative) 11%, transparent);
    color: var(--negative);
}

.live-signals-regime.is-watch {
    border-color: color-mix(in srgb, var(--warning) 34%, var(--panel-border));
    background: color-mix(in srgb, var(--warning) 11%, transparent);
    color: var(--warning);
}

.home-live-regime {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border: 1px solid color-mix(in srgb, var(--accent) 30%, rgba(111, 229, 238, 0.22));
    border-radius: 999px;
    padding: 0 11px;
    background: rgba(111, 229, 238, 0.08);
    color: #6fe5ee;
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
}

.home-live-regime.is-positive {
    color: var(--positive);
    border-color: color-mix(in srgb, var(--positive) 32%, rgba(111, 229, 238, 0.22));
    background: color-mix(in srgb, var(--positive) 9%, transparent);
}

.home-live-regime.is-negative {
    color: var(--negative);
    border-color: color-mix(in srgb, var(--negative) 32%, rgba(111, 229, 238, 0.22));
    background: color-mix(in srgb, var(--negative) 9%, transparent);
}

.home-live-regime.is-watch {
    color: var(--warning);
    border-color: color-mix(in srgb, var(--warning) 32%, rgba(111, 229, 238, 0.22));
    background: color-mix(in srgb, var(--warning) 9%, transparent);
}

.live-signals-market-state.is-open {
    color: var(--positive);
    border-color: color-mix(in srgb, var(--positive) 34%, var(--panel-border));
    background: color-mix(in srgb, var(--positive) 11%, transparent);
}

.live-signals-market-state.is-closed {
    color: var(--warning);
    border-color: color-mix(in srgb, var(--warning) 34%, var(--panel-border));
    background: color-mix(in srgb, var(--warning) 11%, transparent);
}

.live-signals-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.live-signals-stat {
    display: grid;
    gap: 6px;
    padding: 15px;
}

.live-signals-stat span {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.live-signals-stat strong {
    color: var(--text);
    font-size: 1.35rem;
    line-height: 1;
}

.live-signals-subscribe-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--panel-border));
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.live-signals-subscribe-strip div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.live-signals-subscribe-strip strong {
    color: var(--text);
    font-size: 0.94rem;
}

.live-signals-subscribe-strip span {
    color: var(--muted);
    font-size: 0.82rem;
}

.live-signals-subscribe-strip a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
    border-radius: 8px;
    padding: 0 14px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.live-signals-subscribe-strip a:hover {
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    color: var(--text);
}

.live-signals-alert-card {
    display: grid;
    grid-template-columns: minmax(210px, 0.55fr) minmax(0, 1.45fr);
    gap: 16px;
    align-items: center;
    padding: 18px;
}

.live-signals-pro-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, auto) auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--panel-border));
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.alerts-pro-hero-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 16px;
    align-items: stretch;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--panel-border));
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.alerts-pro-hero-copy {
    display: grid;
    align-content: center;
    gap: 12px;
    min-width: 0;
}

.alerts-pro-hero-copy h2 {
    margin: 0;
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.72rem;
    letter-spacing: 0;
    line-height: 1.05;
}

.alerts-pro-hero-copy > span {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.alerts-pro-hero-copy .live-signals-pro-actions {
    justify-content: flex-start;
}

.live-signals-alert-kicker {
    margin: 0 0 6px;
    color: var(--accent);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.live-signals-pro-kicker {
    margin: 0 0 6px;
    color: var(--accent);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.live-signals-pro-card h2 {
    margin: 0;
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.28rem;
    letter-spacing: 0;
}

.live-signals-pro-card span,
.live-signals-pro-card small {
    color: var(--muted);
}

.live-signals-pro-card > div:first-child span {
    display: block;
    margin-top: 4px;
    font-size: 0.86rem;
}

.live-signals-pro-points,
.live-signals-pro-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.live-signals-pro-points {
    margin-top: 12px;
}

.live-signals-pro-points span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    padding: 0 10px;
    background: var(--secondary-bg);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.live-signals-pro-actions {
    justify-content: flex-end;
}

.live-signals-pro-offer {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--secondary-bg);
}

.live-signals-pro-offer strong {
    color: var(--text);
    font-size: 1.32rem;
    line-height: 1;
    white-space: nowrap;
}

.live-signals-pro-offer strong span {
    color: var(--muted);
    font-size: 0.76rem;
}

.live-signals-pro-offer small {
    max-width: 190px;
    font-size: 0.72rem;
    line-height: 1.25;
}

.live-signals-pro-offer em {
    color: var(--muted);
    font-size: 0.72rem;
    font-style: normal;
    line-height: 1.25;
}

.live-signals-pro-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
    border-radius: 8px;
    padding: 0 16px;
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.live-signals-pro-button:hover {
    border-color: color-mix(in srgb, var(--accent) 70%, transparent);
    background: color-mix(in srgb, var(--accent) 24%, transparent);
    color: var(--text);
}

.live-signals-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 0 14px;
    background: var(--secondary-bg);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.live-signals-secondary-link:hover {
    border-color: color-mix(in srgb, var(--accent) 28%, var(--panel-border));
    color: var(--text);
}

.live-signals-conversion-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
    gap: 16px;
    align-items: stretch;
}

.live-signals-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.live-signals-plan-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.live-signals-plan-card.is-pro {
    border-color: color-mix(in srgb, var(--accent) 30%, var(--panel-border));
}

.live-signals-plan-card p,
.live-signals-plan-card ul {
    margin: 0;
}

.live-signals-plan-card p {
    color: var(--accent);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.live-signals-plan-card strong {
    display: block;
    margin-top: 3px;
    color: var(--text);
    font-size: 1rem;
}

.live-signals-plan-card ul {
    display: grid;
    gap: 7px;
    padding: 0;
    list-style: none;
}

.live-signals-plan-card li {
    position: relative;
    padding-left: 16px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.35;
}

.live-signals-plan-card li::before {
    position: absolute;
    top: 0.58em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 64%, transparent);
    content: "";
}

.live-signals-digest-preview {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(300px, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--panel-border));
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.live-signals-digest-preview h2 {
    margin: 0;
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.14rem;
    letter-spacing: 0;
}

.live-signals-digest-preview-copy span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.4;
}

.live-signals-telegram-preview {
    min-width: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--panel-border));
    border-radius: 8px;
    background: color-mix(in srgb, #05080f 92%, var(--panel));
}

.live-signals-telegram-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.live-signals-telegram-preview-head strong {
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-signals-telegram-preview-head span {
    color: var(--accent);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.live-signals-telegram-preview pre {
    overflow: auto;
    margin: 0;
    max-height: 220px;
    padding: 12px;
    color: color-mix(in srgb, var(--text) 88%, white);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.76rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

.alerts-pro-preview {
    min-height: 100%;
}

.alerts-pro-preview pre {
    max-height: 420px;
    overflow: auto;
}

.alerts-pro-flow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.alerts-pro-flow-grid a,
.alerts-pro-next-card,
.alerts-pro-step-card {
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.alerts-pro-flow-grid a {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 15px;
    color: inherit;
    text-decoration: none;
}

.alerts-pro-flow-grid a:hover {
    border-color: color-mix(in srgb, var(--accent) 32%, var(--panel-border));
}

.alerts-pro-flow-grid small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--panel-border));
    border-radius: 999px;
    color: var(--accent);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    font-weight: 800;
}

.alerts-pro-flow-grid strong,
.alerts-pro-next-card strong,
.alerts-pro-step-card h2 {
    color: var(--text);
}

.alerts-pro-flow-grid strong {
    font-size: 1rem;
}

.alerts-pro-flow-grid span,
.alerts-pro-next-card span,
.alerts-pro-step-card > div > span {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.4;
}

.alerts-pro-info-link {
    justify-self: start;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 750;
    text-decoration: none;
}

.alerts-pro-info-link:hover {
    color: var(--accent);
}

.alerts-pro-info-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.alerts-pro-info-panel article {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 132px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 16px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.alerts-pro-info-panel h2,
.alerts-pro-info-panel p {
    margin: 0;
}

.alerts-pro-info-panel h2 {
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.02rem;
    letter-spacing: 0;
}

.alerts-pro-info-panel p {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.alerts-pro-step-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 18px;
}

.alerts-pro-redirect-card {
    display: grid;
    justify-items: center;
    gap: 14px;
    min-height: min(440px, calc(100vh - 180px));
    padding: clamp(32px, 7vw, 72px) 18px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
    text-align: center;
}

.alerts-pro-redirect-card h1 {
    max-width: 680px;
    margin: 0;
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: clamp(1.9rem, 4vw, 3.6rem);
    letter-spacing: 0;
    line-height: 1.04;
}

.alerts-pro-redirect-card > span,
.alerts-pro-redirect-note {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.5;
}

.alerts-pro-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid color-mix(in srgb, var(--accent) 18%, transparent);
    border-top-color: var(--accent);
    border-radius: 999px;
    animation: alertsProSpin 820ms linear infinite;
}

@keyframes alertsProSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .alerts-pro-spinner {
        animation: none;
    }
}

.alerts-pro-redirect-card .alerts-pro-info-link {
    justify-self: center;
}

.alerts-pro-success-card,
.alerts-pro-active-card,
.alerts-pro-cancel-card,
.alerts-pro-connect-card {
    display: grid;
    gap: 14px;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.alerts-pro-success-card {
    justify-items: center;
    text-align: center;
}

.alerts-pro-active-card {
    justify-items: center;
    min-height: min(520px, calc(100vh - 160px));
    align-content: center;
    text-align: center;
}

.alerts-pro-cancel-card {
    justify-items: center;
    min-height: min(440px, calc(100vh - 180px));
    align-content: center;
    text-align: center;
}

.alerts-pro-success-card h1,
.alerts-pro-active-card h1,
.alerts-pro-cancel-card h1,
.alerts-pro-connect-copy h2 {
    margin: 0;
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    letter-spacing: 0;
    line-height: 1.05;
}

.alerts-pro-success-card h1 {
    max-width: 780px;
    font-size: clamp(2.1rem, 5vw, 4.2rem);
}

.alerts-pro-active-card h1 {
    max-width: 760px;
    font-size: clamp(2.3rem, 5vw, 4.6rem);
}

.alerts-pro-cancel-card h1 {
    max-width: 720px;
    font-size: clamp(2.1rem, 4.6vw, 4rem);
}

.alerts-pro-success-card > span,
.alerts-pro-active-card > span,
.alerts-pro-cancel-card > span,
.alerts-pro-connect-copy > span {
    max-width: 620px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.5;
}

.alerts-pro-active-mark {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--panel-border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 10%, var(--panel));
}

.alerts-pro-active-mark span {
    display: block;
    width: 28px;
    height: 16px;
    border-bottom: 5px solid var(--accent);
    border-left: 5px solid var(--accent);
    transform: rotate(-45deg) translate(2px, -2px);
}

.alerts-pro-active-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: min(680px, 100%);
    margin-top: 10px;
}

.alerts-pro-active-meta span {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--secondary-bg);
}

.alerts-pro-active-meta small {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.alerts-pro-active-meta strong {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.2;
}

.alerts-pro-active-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.alerts-pro-return-urls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: min(720px, 100%);
    margin: 8px 0 2px;
}

.alerts-pro-return-urls span {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--secondary-bg);
}

.alerts-pro-missing-config {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: min(720px, 100%);
    margin-top: 2px;
}

.alerts-pro-missing-config strong {
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 900;
}

.alerts-pro-missing-config code {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border: 1px solid var(--panel-border);
    border-radius: 7px;
    padding: 0 9px;
    background: var(--secondary-bg);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0;
}

.alerts-pro-return-urls small {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.alerts-pro-return-urls code,
.alerts-pro-redirect-note code {
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.alerts-pro-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid var(--panel-border);
    border-radius: 7px;
    padding: 0 14px;
    background: var(--panel);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
}

.alerts-pro-secondary-link:hover {
    border-color: color-mix(in srgb, var(--accent) 42%, var(--panel-border));
    color: var(--accent);
}

.alerts-pro-connect-card {
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.alerts-pro-connect-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.alerts-pro-connect-copy h2 {
    font-size: 1.28rem;
}

.alerts-pro-connect-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.alerts-pro-connect-steps span {
    display: grid;
    align-content: start;
    gap: 7px;
    min-width: 0;
    min-height: 136px;
    padding: 14px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--secondary-bg);
}

.alerts-pro-connect-steps em {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0;
}

.alerts-pro-connect-steps strong {
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.2;
}

.alerts-pro-connect-steps small {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.alerts-pro-connect-steps code {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    min-height: 30px;
    align-items: center;
    border: 1px solid var(--panel-border);
    border-radius: 7px;
    padding: 0 10px;
    background: var(--panel);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0;
}

.alerts-pro-connect-actions {
    grid-column: 2;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.alerts-pro-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid var(--panel-border);
    border-radius: 7px;
    padding: 0 14px;
    background: var(--panel);
    color: var(--text);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.alerts-pro-secondary-button:hover {
    border-color: color-mix(in srgb, var(--accent) 42%, var(--panel-border));
    color: var(--accent);
}

.alerts-pro-secondary-button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.alerts-pro-connect-unavailable {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    border: 1px solid var(--panel-border);
    border-radius: 7px;
    padding: 0 12px;
    color: var(--muted);
    font-size: 0.82rem;
}

.alerts-pro-connect-message {
    grid-column: 2;
    margin: 0;
}

.alerts-pro-connect-card.is-connected .alerts-pro-connect-message {
    color: #007f62;
    font-weight: 800;
}

.alerts-pro-step-card h2 {
    margin: 0;
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.22rem;
    letter-spacing: 0;
}

.alerts-pro-next-card {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    padding: 14px 16px;
}

.alerts-pro-next-card.is-quiet {
    align-items: flex-start;
    justify-content: flex-start;
}

.alerts-pro-next-card.is-quiet > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.alerts-pro-next-card strong,
.alerts-pro-next-card span {
    min-width: 0;
}

.alerts-pro-next-card span {
    flex: 1 1 auto;
}

.alerts-pro-email-link {
    display: inline-block;
    overflow: hidden;
    max-width: 100%;
    margin-top: 12px;
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alerts-pro-main-grid {
    display: grid;
    gap: 14px;
}

.alerts-pro-setup-card,
.alerts-pro-proof-card {
    align-items: start;
}

.alerts-pro-request-row {
    grid-template-columns: minmax(150px, auto) minmax(220px, 1fr) auto;
}

.alerts-pro-hidden-fields {
    display: none;
}

.alerts-pro-setup-helper {
    display: grid;
    gap: 10px;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 10px;
    background: var(--secondary-bg);
}

.alerts-pro-setup-helper summary {
    cursor: pointer;
    color: var(--muted-strong);
    font-size: 0.82rem;
    font-weight: 800;
}

.alerts-pro-setup-helper[open] summary {
    color: var(--text);
}

.alerts-pro-setup-helper > * + * {
    margin-top: 10px;
}

.alerts-pro-proof-form {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
}

.live-signals-steps-card {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.live-signals-steps-card h2,
.live-signals-steps-card ol {
    margin: 0;
}

.live-signals-steps-card h2 {
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.12rem;
    letter-spacing: 0;
}

.live-signals-steps-card ol {
    display: grid;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.live-signals-steps-card li {
    display: grid;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--secondary-bg);
}

.live-signals-steps-card li strong {
    color: var(--text);
    font-size: 0.86rem;
}

.live-signals-steps-card li span {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.live-signals-steps-card a {
    overflow: hidden;
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-signals-action-grid {
    display: grid;
    gap: 16px;
}

.alerts-pro-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.alerts-pro-trust-grid div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.alerts-pro-trust-grid strong {
    color: var(--text);
    font-size: 0.9rem;
}

.alerts-pro-trust-grid span {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.35;
}

.live-signals-activation-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.1fr) minmax(190px, auto);
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.live-signals-activation-kicker {
    margin: 0 0 6px;
    color: var(--accent);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.live-signals-activation-card h2,
.live-signals-activation-card ol {
    margin: 0;
}

.live-signals-activation-card h2 {
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.14rem;
    letter-spacing: 0;
}

.live-signals-activation-card span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.35;
}

.live-signals-activation-card ol {
    display: grid;
    gap: 6px;
    padding-left: 20px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.35;
}

.live-signals-activation-contact {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 12px;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--panel-border));
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent) 8%, var(--secondary-bg));
}

.live-signals-activation-contact small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.live-signals-activation-contact a,
.live-signals-activation-contact strong {
    overflow: hidden;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-signals-payment-proof-card {
    display: grid;
    grid-template-columns: minmax(210px, 0.52fr) minmax(0, 1.48fr);
    gap: 16px;
    align-items: start;
    padding: 18px;
}

.live-signals-payment-proof-card h2 {
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.16rem;
    letter-spacing: 0;
}

.live-signals-payment-proof-card span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.35;
}

.live-signals-payment-proof-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.live-signals-payment-proof-form label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.live-signals-payment-proof-form label > span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 650;
}

.live-signals-payment-proof-form input[type="text"],
.live-signals-payment-proof-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--secondary-bg);
    color: var(--text);
    font-size: 0.9rem;
}

.live-signals-payment-proof-form input[type="text"] {
    min-height: 38px;
    padding: 0 11px;
}

.live-signals-payment-proof-form textarea {
    min-height: 70px;
    padding: 10px 11px;
    resize: vertical;
}

.live-signals-payment-proof-wide {
    grid-column: 1 / -1;
}

.live-signals-payment-proof-form button {
    min-height: 38px;
    border: 1px solid color-mix(in srgb, var(--accent) 46%, transparent);
    border-radius: 8px;
    padding: 0 16px;
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    color: var(--accent);
    font-weight: 700;
    white-space: nowrap;
}

.live-signals-payment-proof-form button:disabled {
    opacity: 0.62;
}

.live-signals-alert-card h2 {
    font-size: 1.2rem;
}

.live-signals-alert-status {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(260px, auto) minmax(220px, 0.9fr);
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
}

.live-signals-alert-status h2 {
    font-size: 1rem;
}

.live-signals-alert-status h2,
.live-signals-alert-status span,
.live-signals-history-main strong,
.live-signals-history-main span {
    display: block;
}

.live-signals-alert-status-metrics,
.live-signals-history-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(70px, 1fr));
    gap: 8px;
}

.live-signals-alert-status-metrics span,
.live-signals-history-metrics span {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--secondary-bg);
}

.live-signals-alert-status-metrics small,
.live-signals-history-metrics small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.live-signals-alert-status-metrics strong,
.live-signals-history-metrics strong {
    overflow: hidden;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-signals-alert-status.is-warning {
    border-color: color-mix(in srgb, var(--warning) 34%, var(--panel-border));
}

.live-signals-alert-connection {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--secondary-bg);
}

.live-signals-alert-connection strong,
.live-signals-alert-connection span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-signals-alert-connection strong {
    color: var(--text);
    font-size: 0.88rem;
}

.live-signals-alert-connection span {
    color: var(--muted);
    font-size: 0.76rem;
}

.live-signals-alert-connection.is-connected {
    border-color: color-mix(in srgb, var(--positive) 26%, var(--panel-border));
    background: color-mix(in srgb, var(--positive) 8%, var(--secondary-bg));
}

.live-signals-alert-form {
    display: grid;
    gap: 10px;
}

.live-signals-telegram-help {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 32px;
}

.live-signals-telegram-help a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
    border-radius: 999px;
    padding: 0 11px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.live-signals-telegram-help span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 550;
}

.live-signals-connect-code {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--secondary-bg);
}

.live-signals-connect-code > span {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.live-signals-connect-code code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--panel-border));
    border-radius: 8px;
    padding: 0 10px;
    background: var(--panel);
    color: var(--text);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.live-signals-alert-main-row {
    display: grid;
    grid-template-columns: auto minmax(240px, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.live-signals-alert-options {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.live-signals-channel-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 38px;
    padding: 4px;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    background: var(--secondary-bg);
}

.live-signals-channel-tabs label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.live-signals-channel-tabs.is-telegram-first .is-primary {
    color: var(--accent);
}

.live-signals-channel-tabs.is-telegram-first .is-secondary {
    color: color-mix(in srgb, var(--muted) 72%, transparent);
    font-weight: 650;
}

.live-signals-channel-tabs input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.live-signals-channel-tabs label:has(input:checked) {
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    color: var(--text);
}

.live-signals-channel-tabs.is-telegram-first .is-primary:has(input:checked) {
    background: color-mix(in srgb, var(--accent) 22%, transparent);
    color: var(--text);
}

.live-signals-alert-form label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.live-signals-alert-form label > span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 650;
}

.live-signals-alert-form .live-signals-channel-tabs label {
    display: inline-flex;
    gap: 0;
}

.live-signals-alert-form .live-signals-channel-tabs label > span {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.live-signals-alert-form input[type="email"],
.live-signals-alert-form input[type="text"] {
    width: 100%;
    min-height: 38px;
    box-sizing: border-box;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 0 11px;
    background: var(--secondary-bg);
    color: var(--text);
    font-size: 0.9rem;
}

.live-signals-checks {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.live-signals-checks label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    background: var(--secondary-bg);
    color: var(--muted);
}

.live-signals-checks input {
    margin: 0;
}

.live-signals-alert-form button {
    min-height: 38px;
    border: 1px solid color-mix(in srgb, var(--accent) 46%, transparent);
    border-radius: 8px;
    padding: 0 16px;
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    color: var(--accent);
    font-weight: 700;
    white-space: nowrap;
}

.live-signals-alert-buttons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.live-signals-alert-form button.is-secondary {
    border-color: var(--panel-border);
    background: var(--secondary-bg);
    color: var(--muted);
}

.live-signals-alert-form button.is-secondary:hover {
    color: var(--text);
    border-color: color-mix(in srgb, var(--accent) 30%, var(--panel-border));
}

.live-signals-alert-form button:disabled {
    opacity: 0.62;
}

.live-signals-alert-message {
    grid-column: 1 / -1;
    min-height: 18px;
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.live-signals-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
}

.live-signals-notice strong {
    color: var(--text);
}

.live-signals-section {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.live-signals-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.live-signals-section-head h2 {
    font-size: 1.1rem;
}

.live-signals-section-head span,
.live-signal-card-status small {
    background: var(--secondary-bg);
}

.live-signals-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.live-signal-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 13px;
    color: inherit;
    text-decoration: none;
    box-shadow: none;
}

.live-signal-card > *,
.live-signal-main,
.live-signal-meta {
    min-width: 0;
}

.live-signal-card:hover {
    border-color: color-mix(in srgb, var(--accent) 34%, var(--panel-border));
    transform: translateY(-1px);
}

.live-signal-card-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.live-signal-card-status span {
    color: #117d88;
    border: 1px solid rgba(17, 125, 136, 0.2);
    background: rgba(214, 247, 250, 0.86);
}

.live-signal-card.is-open .live-signal-card-status span {
    color: #2766b0;
    border-color: rgba(39, 102, 176, 0.18);
    background: rgba(225, 239, 255, 0.9);
}

.live-signal-card.is-watch .live-signal-card-status span {
    color: #9a6314;
    border-color: rgba(154, 99, 20, 0.2);
    background: rgba(255, 243, 222, 0.92);
}

.live-signal-action {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 650;
}

.live-signal-main strong,
.live-signal-main span,
.live-signal-meta strong,
.live-signal-meta span,
.live-signal-reason,
.live-signal-risk,
.live-signal-freshness {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-signal-main strong {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 650;
}

.live-signal-main span,
.live-signal-meta span {
    font-size: 0.8rem;
}

.live-signal-meta strong {
    margin-top: 2px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 650;
}

.live-signal-meta span {
    display: -webkit-box;
    line-height: 1.28;
    max-height: calc(1.28em * 2);
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.live-signal-reason {
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 650;
}

.live-signal-thesis-line {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 680;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.live-signal-thesis-mini {
    display: grid;
    gap: 6px;
}

.live-signal-thesis-mini span {
    display: grid;
    gap: 2px;
    min-width: 0;
    border-left: 2px solid color-mix(in srgb, var(--accent) 38%, var(--panel-border));
    padding-left: 8px;
}

.live-signal-thesis-mini small {
    overflow: hidden;
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.58rem;
    font-weight: 800;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.live-signal-thesis-mini strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 620;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.live-signal-gate,
.home-live-signal-gate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    min-height: 25px;
    border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--panel-border));
    border-radius: 999px;
    padding: 0 9px;
    background: color-mix(in srgb, var(--accent) 9%, transparent);
    color: var(--accent);
}

.live-signal-gate span,
.home-live-signal-gate span,
.live-signal-gate small,
.home-live-signal-gate small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-signal-gate span,
.home-live-signal-gate span {
    color: inherit;
    font-size: 0.72rem;
    font-weight: 850;
}

.live-signal-gate small,
.home-live-signal-gate small {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
}

.live-signal-gate.is-positive,
.home-live-signal-gate.is-positive {
    border-color: color-mix(in srgb, var(--positive) 34%, var(--panel-border));
    background: color-mix(in srgb, var(--positive) 9%, transparent);
    color: var(--positive);
}

.live-signal-gate.is-negative,
.home-live-signal-gate.is-negative {
    border-color: color-mix(in srgb, var(--negative) 34%, var(--panel-border));
    background: color-mix(in srgb, var(--negative) 9%, transparent);
    color: var(--negative);
}

.live-signal-regime,
.home-live-signal-regime,
.live-signal-sector,
.home-live-signal-sector,
.live-signal-quality,
.home-live-signal-quality {
    display: block;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-signal-regime.is-positive,
.home-live-signal-regime.is-positive,
.live-signal-sector.is-positive,
.home-live-signal-sector.is-positive,
.live-signal-quality.is-positive,
.home-live-signal-quality.is-positive {
    color: var(--positive);
}

.live-signal-regime.is-negative,
.home-live-signal-regime.is-negative,
.live-signal-sector.is-negative,
.home-live-signal-sector.is-negative,
.live-signal-quality.is-negative,
.home-live-signal-quality.is-negative {
    color: var(--negative);
}

.live-signal-regime.is-watch,
.home-live-signal-regime.is-watch,
.live-signal-sector.is-watch,
.home-live-signal-sector.is-watch,
.live-signal-quality.is-watch,
.home-live-signal-quality.is-watch {
    color: var(--warning);
}

.live-signal-risk,
.live-signal-freshness {
    font-size: 0.76rem;
}

.live-signal-proof {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
    gap: 6px;
    min-width: 0;
}

.live-signal-proof span {
    display: grid;
    gap: 1px;
    min-width: 0;
    max-width: 100%;
    padding: 7px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--secondary-bg);
}

.live-signal-proof small,
.live-signal-proof strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-signal-proof small {
    font-size: 0.66rem;
    font-weight: 600;
}

.live-signal-proof strong {
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 650;
}

.live-signals-empty {
    padding: 14px;
    color: var(--muted);
    box-shadow: none;
}

.live-signals-history-list {
    display: grid;
    gap: 8px;
}

.live-signals-history-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(260px, 0.9fr) minmax(150px, auto);
    gap: 12px;
    align-items: center;
    padding: 11px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--secondary-bg);
}

.live-signals-history-main {
    min-width: 0;
}

.live-signals-history-main strong,
.live-signals-history-main span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-signals-history-main strong {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 700;
}

.live-signals-history-main span {
    color: var(--muted);
    font-size: 0.78rem;
}

.live-signals-history-alert {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 0 12px;
    background: var(--panel);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 650;
    white-space: nowrap;
}

.live-signals-history-row.is-ok .live-signals-history-alert {
    color: var(--positive);
    background: color-mix(in srgb, var(--positive) 11%, var(--panel));
}

.live-signals-history-row.is-warning .live-signals-history-alert {
    color: var(--warning);
    background: color-mix(in srgb, var(--warning) 12%, var(--panel));
}

.live-signal-detail-shell {
    display: grid;
    gap: 14px;
    padding: 18px 0 42px;
}

.live-signal-detail-back,
.live-signal-detail-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.live-signal-detail-back {
    color: var(--muted);
    font-size: 0.82rem;
}

.live-signal-detail-back a,
.live-signal-detail-actions a {
    color: var(--accent);
    font-weight: 750;
    text-decoration: none;
}

.live-signal-detail-hero,
.live-signal-detail-panel,
.live-signal-detail-stats > div,
.live-signal-detail-chart-panel {
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.live-signal-detail-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
}

.live-signal-detail-hero h1,
.live-signal-detail-panel h2 {
    margin: 0;
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    letter-spacing: 0;
}

.live-signal-detail-hero h1 {
    font-size: 2.45rem;
    line-height: 1;
}

.live-signal-detail-hero span,
.live-signal-detail-panel > span,
.live-signal-detail-disclaimer {
    color: var(--muted);
}

.live-signal-detail-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--panel-border));
    border-radius: 8px;
    padding: 0 14px;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.live-signal-detail-stats,
.live-signal-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.live-signal-detail-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr) minmax(260px, 0.9fr);
}

.live-signal-detail-stats > div,
.live-signal-detail-panel,
.live-signal-detail-chart-panel {
    padding: 16px;
}

.live-signal-detail-stats span,
.live-signal-detail-levels small,
.live-signal-detail-proof small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
}

.live-signal-detail-stats strong {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    color: var(--text);
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-signal-detail-panel {
    display: grid;
    gap: 10px;
}

.live-signal-detail-panel h2 {
    font-size: 1.2rem;
}

.live-signal-thesis-grid {
    display: grid;
    gap: 8px;
}

.live-signal-thesis-grid span {
    display: grid;
    gap: 3px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 10px;
    background: var(--secondary-bg);
}

.live-signal-thesis-grid small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.live-signal-thesis-grid strong {
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1.35;
}

.live-signal-detail-warnings,
.live-signal-detail-levels,
.live-signal-detail-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.live-signal-detail-warnings span {
    border: 1px solid color-mix(in srgb, var(--warning) 36%, var(--panel-border));
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--warning);
    font-size: 0.72rem;
    font-weight: 800;
}

.live-signal-detail-gate {
    display: grid;
    gap: 3px;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--panel-border));
    border-radius: 8px;
    padding: 10px;
    background: color-mix(in srgb, var(--accent) 7%, var(--secondary-bg));
}

.live-signal-detail-gate strong {
    color: var(--accent);
    font-size: 0.92rem;
}

.live-signal-detail-gate span {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.live-signal-detail-gate.is-positive {
    border-color: color-mix(in srgb, var(--positive) 30%, var(--panel-border));
    background: color-mix(in srgb, var(--positive) 7%, var(--secondary-bg));
}

.live-signal-detail-gate.is-positive strong {
    color: var(--positive);
}

.live-signal-detail-gate.is-negative {
    border-color: color-mix(in srgb, var(--negative) 30%, var(--panel-border));
    background: color-mix(in srgb, var(--negative) 7%, var(--secondary-bg));
}

.live-signal-detail-gate.is-negative strong {
    color: var(--negative);
}

.live-signal-detail-warnings.is-gate span {
    border-color: color-mix(in srgb, var(--accent) 30%, var(--panel-border));
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 7%, var(--secondary-bg));
}

.live-signal-detail-regime,
.live-signal-detail-sector,
.live-signal-detail-quality {
    display: grid;
    gap: 3px;
    border: 1px solid color-mix(in srgb, var(--warning) 30%, var(--panel-border));
    border-radius: 8px;
    padding: 10px;
    background: color-mix(in srgb, var(--warning) 7%, var(--secondary-bg));
}

.live-signal-detail-regime strong,
.live-signal-detail-sector strong,
.live-signal-detail-quality strong {
    color: var(--warning);
    font-size: 0.92rem;
}

.live-signal-detail-regime span,
.live-signal-detail-sector span,
.live-signal-detail-quality span {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.live-signal-detail-regime.is-positive,
.live-signal-detail-sector.is-positive,
.live-signal-detail-quality.is-positive {
    border-color: color-mix(in srgb, var(--positive) 30%, var(--panel-border));
    background: color-mix(in srgb, var(--positive) 7%, var(--secondary-bg));
}

.live-signal-detail-regime.is-positive strong,
.live-signal-detail-sector.is-positive strong,
.live-signal-detail-quality.is-positive strong {
    color: var(--positive);
}

.live-signal-detail-regime.is-negative,
.live-signal-detail-sector.is-negative,
.live-signal-detail-quality.is-negative {
    border-color: color-mix(in srgb, var(--negative) 30%, var(--panel-border));
    background: color-mix(in srgb, var(--negative) 7%, var(--secondary-bg));
}

.live-signal-detail-regime.is-negative strong,
.live-signal-detail-sector.is-negative strong,
.live-signal-detail-quality.is-negative strong {
    color: var(--negative);
}

.live-signal-detail-levels span,
.live-signal-detail-proof span {
    display: grid;
    gap: 2px;
    min-width: 118px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 9px 10px;
    background: var(--secondary-bg);
}

.live-signal-detail-levels strong,
.live-signal-detail-proof strong {
    overflow: hidden;
    color: var(--text);
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-signal-detail-levels .is-stop {
    border-color: color-mix(in srgb, var(--negative) 30%, var(--panel-border));
}

.live-signal-detail-levels .is-target {
    border-color: color-mix(in srgb, var(--positive) 30%, var(--panel-border));
}

.live-signal-detail-checks {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 0.86rem;
}

.live-signal-detail-tv-chart {
    min-height: 520px;
    margin-top: 12px;
}

.live-signal-detail-disclaimer {
    margin: 0;
    font-size: 0.78rem;
    text-align: center;
}

.performance-ledger-shell {
    display: grid;
    gap: 14px;
    padding: 18px 0 42px;
}

.performance-ledger-hero,
.performance-ledger-proof,
.performance-ledger-summary > div,
.performance-ledger-panel,
.performance-ledger-message {
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.performance-ledger-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
}

.performance-ledger-kicker {
    margin: 0 0 8px;
    color: var(--accent);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.performance-ledger-hero h1,
.performance-ledger-panel h2 {
    margin: 0;
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    letter-spacing: 0;
}

.performance-ledger-hero h1 {
    font-size: 2.45rem;
    line-height: 1;
}

.performance-ledger-hero span,
.performance-ledger-panel-head > span,
.performance-ledger-symbol span,
.performance-ledger-setup span,
.performance-ledger-summary small,
.performance-ledger-strategies small,
.performance-ledger-empty,
.performance-ledger-disclaimer {
    color: var(--muted);
}

.performance-ledger-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    background: var(--secondary-bg);
}

.performance-ledger-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    min-width: 58px;
    border-radius: 999px;
    padding: 0 12px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
}

.performance-ledger-tabs a.is-active,
.performance-ledger-tabs a:hover {
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    color: var(--text);
}

.performance-ledger-message {
    padding: 12px 14px;
    color: var(--negative);
}

.performance-ledger-proof {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
    gap: 14px;
    align-items: stretch;
    padding: 16px;
}

.performance-ledger-proof-copy {
    display: grid;
    align-content: center;
    gap: 8px;
    min-width: 0;
}

.performance-ledger-proof-copy h2 {
    margin: 0;
    color: var(--text);
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.65rem;
    line-height: 1.05;
    letter-spacing: 0;
}

.performance-ledger-proof-copy span {
    color: var(--muted);
}

.performance-ledger-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.performance-ledger-summary > div {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 15px;
}

.performance-ledger-summary span,
.performance-ledger-symbol small,
.performance-ledger-moves small,
.performance-ledger-buckets span {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.performance-ledger-summary strong {
    overflow: hidden;
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.performance-ledger-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 14px;
}

.performance-ledger-panel {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 16px;
}

.performance-ledger-panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.performance-ledger-panel h2 {
    font-size: 1.15rem;
}

.performance-ledger-buckets {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.performance-ledger-buckets div,
.performance-ledger-strategies div,
.performance-ledger-moves span {
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--secondary-bg);
}

.performance-ledger-buckets div {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 10px;
}

.performance-ledger-buckets strong,
.performance-ledger-strategies strong,
.performance-ledger-symbol strong,
.performance-ledger-setup strong,
.performance-ledger-moves strong,
.performance-ledger-result strong {
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.performance-ledger-buckets em,
.performance-ledger-strategies em {
    color: var(--muted);
    font-style: normal;
    font-weight: 800;
}

.performance-ledger-strategies {
    display: grid;
    gap: 8px;
}

.performance-ledger-strategies div {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    min-width: 0;
    padding: 10px;
}

.performance-ledger-strategies span {
    color: var(--accent);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    font-weight: 800;
}

.performance-ledger-list {
    display: grid;
    gap: 8px;
}

.performance-ledger-row {
    display: grid;
    grid-template-columns: minmax(130px, 0.7fr) minmax(220px, 1.1fr) minmax(320px, 1.1fr) minmax(110px, auto);
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 11px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--secondary-bg);
}

.performance-ledger-row.is-positive {
    border-color: color-mix(in srgb, var(--positive) 26%, var(--panel-border));
}

.performance-ledger-row.is-negative {
    border-color: color-mix(in srgb, var(--negative) 26%, var(--panel-border));
}

.performance-ledger-symbol,
.performance-ledger-setup,
.performance-ledger-result {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.performance-ledger-moves {
    display: grid;
    grid-template-columns: repeat(4, minmax(66px, 1fr));
    gap: 6px;
}

.performance-ledger-moves span {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 7px 8px;
}

.performance-ledger-result {
    justify-items: end;
}

.performance-ledger-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 0 10px;
    background: var(--panel);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 850;
}

.performance-ledger-status.is-positive,
.performance-ledger-summary .is-positive,
.performance-ledger-buckets .is-positive,
.performance-ledger-strategies .is-positive,
.performance-ledger-moves .is-positive strong,
.performance-ledger-result .is-positive {
    color: var(--positive);
}

.performance-ledger-status.is-negative,
.performance-ledger-summary .is-negative,
.performance-ledger-buckets .is-negative,
.performance-ledger-strategies .is-negative,
.performance-ledger-moves .is-negative strong,
.performance-ledger-result .is-negative {
    color: var(--negative);
}

.performance-ledger-result a {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.performance-ledger-empty {
    padding: 12px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--secondary-bg);
}

.performance-ledger-disclaimer {
    margin: 0;
    font-size: 0.78rem;
    text-align: center;
}

@media (max-width: 1040px) {
    .live-signals-grid,
    .live-signals-summary,
    .performance-ledger-summary,
    .performance-ledger-buckets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .alerts-pro-hero-card,
    .alerts-pro-flow-grid,
    .alerts-pro-info-panel,
    .alerts-pro-step-card,
    .alerts-pro-proof-form,
    .alerts-pro-request-row,
    .live-signals-alert-card,
    .alerts-pro-trust-grid,
    .live-signals-pro-card,
    .live-signals-conversion-grid,
    .live-signals-plan-grid,
    .live-signals-digest-preview,
    .live-signals-activation-card,
    .live-signals-payment-proof-card,
    .live-signals-payment-proof-form,
    .live-signals-alert-form,
    .live-signals-alert-main-row,
    .live-signals-history-row,
    .live-signal-detail-grid,
    .live-signal-detail-stats,
    .performance-ledger-proof,
    .performance-ledger-grid,
    .performance-ledger-row,
    .performance-ledger-strategies div {
        grid-template-columns: 1fr;
    }

    .live-signals-alert-status {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .live-signals-header,
    .live-signals-header-actions,
    .live-signal-detail-hero,
    .live-signal-detail-actions,
    .performance-ledger-hero,
    .performance-ledger-panel-head,
    .alerts-pro-next-card,
    .live-signals-subscribe-strip,
    .live-signals-notice {
        align-items: flex-start;
        flex-direction: column;
    }

    .live-signals-header h1 {
        font-size: 2rem;
    }

    .live-signal-detail-hero h1 {
        font-size: 2.1rem;
    }

    .live-signals-grid,
    .live-signals-summary,
    .performance-ledger-summary,
    .performance-ledger-buckets,
    .performance-ledger-moves {
        grid-template-columns: 1fr;
    }

    .live-signals-market-tabs,
    .performance-ledger-tabs,
    .live-signals-telegram-cta,
    .live-signals-subscribe-strip a,
    .live-signal-detail-actions a,
    .live-signals-pro-actions,
    .live-signals-pro-button,
    .live-signals-secondary-link,
    .alerts-pro-proof-form button,
    .live-signals-alert-buttons,
    .live-signals-payment-proof-form button,
    .live-signals-alert-form button {
        width: 100%;
    }

    .live-signals-market-tabs a,
    .performance-ledger-tabs a,
    .live-signals-channel-tabs label {
        flex: 1 1 0;
    }

    .live-signals-channel-tabs,
    .live-signals-pro-actions,
    .live-signals-alert-options {
        width: 100%;
    }

    .live-signals-alert-buttons button {
        flex: 1 1 0;
    }

    .live-signal-proof {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

::selection {
    background: rgba(85, 174, 254, 0.26);
    color: #ffffff;
}

a,
button,
input,
select,
textarea {
    font-family: inherit;
}

a {
    transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.page-shell,
.topbar-shell {
    width: min(1280px, calc(100% - 40px));
}

.topbar {
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    box-shadow: none;
}

.topbar-shell {
    min-height: 72px;
    gap: 20px;
}

.page-shell {
    padding: 26px 0 44px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-shell {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 154px;
    height: 40px;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-logo-image {
    display: block;
    width: auto;
    height: 40px;
    max-width: none;
    object-fit: contain;
    flex-shrink: 0;
    transform: translateX(-10px) scale(1.18);
    transform-origin: left center;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(102, 255, 173, 0.08);
    background: #0d151c;
    box-shadow: none;
}

.brand-mark-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand {
    color: #f5f8fd;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

@media (max-width: 720px) {
    .brand-logo-shell {
        width: 132px;
        height: 34px;
    }

    .brand-logo-image {
        height: 34px;
        transform: translateX(-8px) scale(1.16);
    }
}

.main-nav {
    gap: 10px;
}

.nav-link {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    color: #98aa9f;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link.active {
    background: #132019;
    border-color: rgba(102, 255, 173, 0.12);
    color: #effff5;
}

.topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
}

.topbar-user-menu {
    position: relative;
    display: inline-block;
}

.topbar-user-menu summary {
    list-style: none;
}

.topbar-user-menu summary::-webkit-details-marker {
    display: none;
}

.topbar-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 12px 0 8px;
    border-radius: 12px;
    border: 1px solid rgba(118, 136, 161, 0.14);
    background: rgba(12, 18, 26, 0.96);
    cursor: pointer;
    user-select: none;
}

.topbar-user-chip:hover {
    border-color: rgba(125, 193, 196, 0.24);
    background: rgba(14, 23, 31, 0.98);
}

.topbar-user-menu[open] .topbar-user-chip {
    border-color: rgba(125, 193, 196, 0.28);
    background: rgba(15, 25, 33, 0.99);
}

.topbar-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.topbar-user-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(85, 174, 254, 0.16);
    color: #dcefff;
    font-size: 0.78rem;
    font-weight: 700;
}

.topbar-user-name {
    color: #edf5fe;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.topbar-user-caret {
    width: 8px;
    height: 8px;
    margin-left: 2px;
    border-right: 1.5px solid rgba(180, 192, 211, 0.9);
    border-bottom: 1.5px solid rgba(180, 192, 211, 0.9);
    transform: rotate(45deg) translateY(-1px);
    transition: transform 140ms ease;
    flex-shrink: 0;
}

.topbar-user-menu[open] .topbar-user-caret {
    transform: rotate(225deg) translateY(-1px);
}

.topbar-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 152px;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(118, 136, 161, 0.16);
    background: rgba(10, 18, 25, 0.98);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    z-index: 50;
}

.topbar-user-dropdown-divider {
    display: block;
    height: 1px;
    margin: 5px 4px;
    background: rgba(118, 136, 161, 0.14);
}

.topbar-login-button,
.topbar-logout-button {
    min-height: 40px;
    font-size: 0.8rem;
    font-weight: 700;
}

.topbar-login-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 0 13px 0 11px;
    border-radius: 12px;
    border: 1px solid rgba(125, 193, 196, 0.18);
    background: rgba(11, 23, 30, 0.92);
    color: #eef7fb;
    line-height: 1;
    white-space: nowrap;
}

.topbar-login-button:hover {
    background: rgba(16, 31, 40, 0.98);
    border-color: rgba(125, 193, 196, 0.28);
    color: #ffffff;
}

.topbar-login-icon {
    width: 16px;
    height: 16px;
    color: #71dce5;
    flex-shrink: 0;
}

.topbar-logout-button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    color: #ff7d7d;
    background: transparent;
    border: 0;
}

.topbar-logout-button:hover {
    color: #ff9a9a;
    background: rgba(255, 107, 107, 0.08);
}

.topbar-account-link {
    color: #cfe7ef;
}

.topbar-account-link:hover {
    color: #f1fdff;
    background: rgba(120, 214, 219, 0.08);
}

.auth-gate-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 42px 0 6px;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.auth-gate-illustration {
    width: min(100%, 420px);
    height: auto;
    margin-bottom: 8px;
    opacity: 0.95;
}

.auth-gate-panel h2 {
    margin: 0;
    font-size: clamp(1.7rem, 2.4vw, 2.2rem);
}

.auth-gate-panel p {
    max-width: 38rem;
    margin: 0;
    color: #9fb2c4;
}

.auth-gate-note {
    color: #7f95a3;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.auth-gate-actions {
    display: flex;
    justify-content: center;
}

.auth-gate-panel::before {
    display: none !important;
}

.auth-gate-actions .primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(120, 214, 219, 0.24);
    background: rgba(13, 29, 37, 0.92);
    color: #ecfbff;
    box-shadow: none;
}

.auth-gate-actions .primary-button::after {
    content: "\203A";
    font-size: 1.2rem;
    line-height: 1;
    color: #76e7ec;
    transform: translateY(-1px);
}

.auth-gate-actions .primary-button:hover {
    background: rgba(17, 35, 43, 0.98);
    border-color: rgba(120, 214, 219, 0.38);
    color: #ffffff;
    transform: translateY(-1px);
}

.auth-page-shell {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: clamp(2.5rem, 7vw, 5rem) 1rem;
}

.auth-card {
    display: grid;
    gap: 1rem;
    padding: clamp(1.4rem, 4vw, 2.5rem);
    border: 1px solid rgba(120, 214, 219, 0.16);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(10, 22, 29, 0.96), rgba(8, 17, 24, 0.98));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.auth-kicker,
.auth-form-field span {
    color: #71dce5;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-card h1 {
    margin: 0;
    color: #f1fdff;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: 0;
}

.auth-card p {
    margin: 0;
    max-width: 52ch;
    color: #9fb2c4;
    line-height: 1.6;
}

.auth-provider-list,
.auth-form {
    display: grid;
    gap: 0.8rem;
    margin-top: 0.4rem;
}

.auth-provider-button {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 52px;
    padding: 0 1rem;
    border: 1px solid rgba(120, 214, 219, 0.18);
    border-radius: 14px;
    background: rgba(15, 31, 39, 0.92);
    color: #effbff;
    font-weight: 800;
}

.auth-provider-button:hover {
    border-color: rgba(120, 214, 219, 0.36);
    background: rgba(20, 39, 48, 0.98);
    color: #ffffff;
}

.auth-provider-mark {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(82, 211, 219, 0.16);
    color: #8df1f5;
    font-weight: 900;
}

.auth-provider-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.auth-provider-mark-google {
    background: #ffffff;
}

.auth-provider-mark-discord {
    background: #5865f2;
    color: #ffffff;
}

.auth-form-field {
    display: grid;
    gap: 0.45rem;
}

.auth-form-field input {
    min-height: 52px;
    width: 100%;
    padding: 0 1rem;
    border: 1px solid rgba(120, 214, 219, 0.16);
    border-radius: 14px;
    background: rgba(8, 22, 30, 0.88);
    color: #f1fdff;
    font: inherit;
    font-weight: 800;
}

.auth-form-field input:focus {
    outline: none;
    border-color: rgba(120, 214, 219, 0.42);
    box-shadow: 0 0 0 4px rgba(82, 211, 219, 0.12);
}

.auth-form-error {
    color: #ff9aa4 !important;
    font-weight: 700;
}

.auth-form-note {
    color: #7f95a3 !important;
    font-size: 0.86rem;
}

.auth-submit-button {
    justify-self: start;
    min-height: 46px;
    border-radius: 999px;
}

.market-switch {
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: #0f171d;
    border: 1px solid rgba(102, 255, 173, 0.1);
    box-shadow: none;
}

.market-switch-pill {
    min-width: 48px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 9px;
    color: #8ea797;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.market-switch-pill:hover {
    color: #f5f8fd;
    transform: none;
}

.market-switch-pill.active {
    background: #6cffad;
    color: #07130c;
    box-shadow: none;
}

.site-copy,
.muted,
.table-asset-copy span,
.compact-tag,
.compact-meta,
.table-reason,
.field-help,
.detail-card p,
.hero p,
.card p,
.list-row p,
.stock-directory-summary p,
.asset-picker-option-copy span,
.researcher-help-popover span {
    color: var(--muted);
}

.hero,
.chart-panel,
.list-panel,
.card,
.detail-card,
.home-category,
.mode-card,
.stock-directory-table-wrap,
.stock-directory-controls,
.stock-directory-stat-card,
.researcher-idea-card,
.results-panel,
.results-table-card,
.results-metric-card,
.results-snapshot-item,
.results-hero-card,
.sidebar-tile,
.builder-subpanel,
.asset-picker-panel,
.strategy-wizard-step,
.asset-modal-dialog,
.exit-rule-card,
.asset-picker-option {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.hero,
.detail-card,
.chart-panel,
.stock-directory-controls,
.mode-card,
.researcher-generator-card,
.strategy-builder-card,
.strategy-results-card,
.strategy-library-card,
.researcher-score-card,
.researcher-family-card {
    padding: 24px;
}

.hero,
.detail-card,
.chart-panel,
.mode-card,
.home-category,
.stock-directory-controls,
.stock-directory-table-wrap {
    position: relative;
    overflow: hidden;
}

.hero::before,
.detail-card::before,
.chart-panel::before,
.mode-card::before,
.home-category::before,
.stock-directory-controls::before,
.stock-directory-table-wrap::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    pointer-events: none;
}

.page-intro {
    margin-bottom: 18px;
    padding: 30px 32px;
    background:
        radial-gradient(circle at top right, rgba(85, 174, 254, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(17, 24, 34, 0.98), rgba(10, 16, 24, 0.99));
    border: 1px solid rgba(118, 136, 161, 0.18);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.page-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 20px;
    align-items: start;
}

.page-intro-copy h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    line-height: 0.94;
    letter-spacing: 0;
}

.page-intro-copy p {
    margin: 0;
    max-width: 60ch;
    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.6;
}

.page-intro-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.page-intro-metric {
    display: grid;
    gap: 10px;
    min-height: 112px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(118, 136, 161, 0.16);
    background: linear-gradient(180deg, rgba(20, 28, 39, 0.94), rgba(13, 19, 29, 0.98));
}

.page-intro-metric span,
.stat-card span,
.stock-directory-stat-card span,
.strategy-hero-stat span,
.results-metric-card span,
.results-snapshot-item span,
.sidebar-tile span,
.builder-summary-item span,
.wizard-summary-label,
.home-category-header .muted {
    color: #7f91aa;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-intro-metric strong {
    font-size: clamp(1.3rem, 2.6vw, 2rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.eyebrow,
.badge {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(85, 174, 254, 0.18);
    background: rgba(85, 174, 254, 0.09);
    color: #bdddff;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mini-pill,
.rank-pill,
.status-pill,
.strategy-hero-chip,
.backtest-summary-pill,
.stock-chip,
.results-state-badge,
.rule-status,
.stock-directory-highlight {
    border-radius: 9px;
}

.rank-pill,
.mini-pill,
.strategy-hero-chip,
.backtest-summary-pill,
.stock-directory-highlight {
    padding: 6px 10px;
    border: 1px solid rgba(118, 136, 161, 0.16);
    background: rgba(18, 26, 37, 0.94);
    color: #d9e5f5;
}

.status-pill {
    border-color: rgba(118, 136, 161, 0.16);
    background: rgba(18, 26, 37, 0.94);
}

.status-passed,
.change,
.positive {
    color: var(--positive);
}

.status-failed,
.negative {
    color: var(--negative);
}

.status-warning {
    color: var(--warning);
}

.status-grey {
    color: #a1afc2;
}

.breadcrumbs {
    margin-bottom: 16px;
    color: #7f91aa;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.breadcrumbs a:hover {
    color: #eaf4ff;
}

.hero h1,
.strategy-hero-copy h1,
.stock-directory-hero-copy h1 {
    color: #f5f8fd;
    font-weight: 600;
}

.section-header {
    margin: 24px 0 12px;
}

.section-header h2,
.chart-header h2,
.strategy-card-head h2,
.researcher-section-head h2,
.stock-directory-controls-head h2,
.home-category-header h2,
.mode-card h2,
.builder-section-copy h3,
.results-panel-head h3,
.results-table-head h3,
.strategy-wizard-step-head h3 {
    color: #f5f8fd;
    letter-spacing: 0;
}

.homepage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    column-count: initial;
    column-width: auto;
    column-gap: 0;
}

.home-category {
    display: block;
    margin: 0;
    break-inside: auto;
    -webkit-column-break-inside: auto;
    page-break-inside: auto;
}

.home-category-header,
.stock-directory-controls-head,
.chart-header,
.results-panel-head,
.results-table-head,
.researcher-section-head {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(118, 136, 161, 0.12);
}

.compact-list {
    padding: 6px;
}

.compact-row,
.list-row {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.compact-row:hover,
.list-row:hover,
.card:hover,
.mode-card:hover,
.asset-picker-option:hover {
    transform: translateY(-1px);
    border-color: rgba(85, 174, 254, 0.18);
    background: linear-gradient(180deg, rgba(20, 28, 39, 1), rgba(12, 18, 27, 1));
}

.compact-copy strong,
.table-asset-copy strong,
.card h3,
.list-row h3,
.asset-picker-option-copy strong {
    color: #edf4ff;
    font-weight: 600;
}

.mode-card-action,
.inline-action {
    color: #bdddff;
}

.coin-logo {
    border-radius: 10px;
    border: 1px solid rgba(118, 136, 161, 0.16);
    background: rgba(12, 18, 26, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.coin-logo[hidden],
.coin-logo-large[hidden],
.coin-logo-fallback[hidden] {
    display: none !important;
}

.coin-logo-large {
    border-radius: 14px;
}

.coin-logo-fallback {
    color: #ecf5ff;
    background: linear-gradient(180deg, rgba(48, 144, 240, 0.3), rgba(48, 144, 240, 0.12));
}

.stats-grid,
.results-metric-grid,
.results-snapshot-grid {
    gap: 12px;
}

.stat-card,
.stock-directory-stat-card,
.strategy-hero-stat,
.results-metric-card,
.results-snapshot-item,
.sidebar-tile,
.researcher-parameter-item {
    border-radius: 12px;
    border: 1px solid rgba(118, 136, 161, 0.16);
    background: linear-gradient(180deg, rgba(20, 28, 39, 0.96), rgba(13, 19, 29, 0.98));
    box-shadow: none;
}

.stat-card strong,
.stock-directory-stat-card strong,
.strategy-hero-stat strong,
.results-metric-card strong,
.results-snapshot-item strong,
.sidebar-tile strong {
    color: #f3f7fd;
    letter-spacing: 0;
}

.stock-directory-summary,
.builder-inline-summary,
.asset-filter-summary {
    border-color: rgba(118, 136, 161, 0.14);
    background: rgba(12, 18, 26, 0.76);
}

.stock-directory-summary {
    min-height: 46px;
    border-radius: 10px;
}

.stock-chip {
    min-height: 34px;
    border-radius: 8px;
    border-color: rgba(118, 136, 161, 0.16);
    background: rgba(14, 21, 30, 0.96);
    color: #c9d7e8;
}

.stock-chip:hover {
    border-color: rgba(85, 174, 254, 0.26);
    color: #eef5ff;
}

.stock-chip.active {
    border-color: rgba(85, 174, 254, 0.3);
    background: rgba(85, 174, 254, 0.12);
    color: #d7ecff;
}

.screener-table-wrap,
.stock-directory-table-wrap {
    border-radius: 12px;
    border: 1px solid rgba(118, 136, 161, 0.14);
    background: rgba(10, 15, 23, 0.92);
}

.screener-table {
    border-collapse: separate;
    border-spacing: 0;
}

.screener-table th,
.screener-table td {
    border-bottom-color: rgba(118, 136, 161, 0.12);
    color: #e2eaf5;
}

.screener-table th {
    background: #0d131c;
    color: #7f91aa;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.screener-table tbody tr:hover {
    background: rgba(85, 174, 254, 0.06);
}

.table-reason {
    color: var(--muted);
}

.table-metric,
.compact-meta,
.results-main-number {
    font-family: "IBM Plex Mono", monospace;
}

.strategy-select,
.strategy-input,
.strategy-multiselect {
    border-radius: 10px;
    border: 1px solid rgba(118, 136, 161, 0.18);
    background: #0c121a;
    color: #edf4ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.strategy-select::placeholder,
.strategy-input::placeholder {
    color: #607189;
}

.strategy-select:focus,
.strategy-input:focus,
.strategy-multiselect:focus,
.primary-button:focus,
.secondary-button:focus,
.icon-button:focus,
.inline-action:focus,
.researcher-help-trigger:focus-visible {
    outline: 2px solid rgba(85, 174, 254, 0.34);
    outline-offset: 2px;
}

.strategy-choice-card,
.strategy-choice-card-rich,
.exit-rule-card,
.builder-subpanel,
.results-panel,
.results-table-card,
.researcher-idea-card {
    border-radius: 12px;
}

.strategy-choice-card {
    min-height: 54px;
    padding: 0 16px;
    border-color: rgba(118, 136, 161, 0.16);
    background: linear-gradient(180deg, rgba(18, 26, 37, 0.96), rgba(11, 17, 25, 0.98));
    color: #d9e5f5;
}

.strategy-choice-card:hover,
.strategy-choice-card:has(input:checked),
.asset-picker-option:has(input:checked) {
    border-color: rgba(85, 174, 254, 0.28);
    background: linear-gradient(180deg, rgba(24, 34, 47, 1), rgba(14, 20, 29, 1));
}

.strategy-wizard-progress {
    gap: 12px;
    padding-bottom: 14px;
    border-bottom-color: rgba(118, 136, 161, 0.12);
}

.strategy-wizard-progress-item {
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(118, 136, 161, 0.12);
    border-radius: 12px;
    background: rgba(13, 19, 29, 0.82);
    color: #8ea0b8;
}

.strategy-wizard-progress-item span {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(118, 136, 161, 0.12);
    color: #c6d3e4;
}

.strategy-wizard-progress-item strong {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.strategy-wizard-progress-item.is-active,
.strategy-wizard-progress-item.is-complete {
    color: #eef5ff;
    border-color: rgba(85, 174, 254, 0.24);
    background: rgba(85, 174, 254, 0.09);
}

.strategy-wizard-progress-item.is-active span,
.strategy-wizard-progress-item.is-complete span {
    background: linear-gradient(180deg, rgba(85, 174, 254, 0.92), rgba(48, 144, 240, 0.82));
    color: #03101f;
}

.primary-button,
.secondary-button,
.icon-button,
.researcher-help-trigger {
    border-radius: 10px;
}

.primary-button {
    border: 1px solid rgba(85, 174, 254, 0.22);
    background: linear-gradient(180deg, rgba(85, 174, 254, 0.96), rgba(48, 144, 240, 0.88));
    color: #03101f;
    box-shadow: none;
}

.primary-button:hover {
    background: linear-gradient(180deg, rgba(113, 188, 255, 0.98), rgba(60, 152, 243, 0.9));
}

.secondary-button,
.icon-button,
.researcher-help-trigger {
    border: 1px solid rgba(118, 136, 161, 0.16);
    background: rgba(12, 18, 26, 0.96);
    color: #ecf4ff;
}

.secondary-button:hover,
.icon-button:hover {
    border-color: rgba(85, 174, 254, 0.2);
    color: #ffffff;
}

.researcher-help-popover,
.asset-modal-dialog {
    background: linear-gradient(180deg, rgba(15, 21, 31, 0.99), rgba(9, 15, 23, 1));
    border-color: rgba(118, 136, 161, 0.18);
}

.asset-modal-backdrop {
    background: rgba(3, 7, 12, 0.72);
    backdrop-filter: blur(12px);
}

.asset-picker-grid {
    scrollbar-color: rgba(118, 136, 161, 0.44) transparent;
}

.tv-chart-shell {
    border-radius: 12px;
    border-color: rgba(118, 136, 161, 0.16);
    background: #0c121a;
}

.empty-chart-state,
.stock-directory-empty {
    border-radius: 12px;
    border: 1px solid rgba(118, 136, 161, 0.14);
    background: rgba(12, 18, 26, 0.92);
    color: var(--muted-strong);
}

.results-state-positive {
    background: rgba(40, 215, 156, 0.12);
    color: #aef0d5;
}

.results-state-negative {
    background: rgba(255, 107, 107, 0.12);
    color: #ffc2c2;
}

.results-state-neutral {
    background: rgba(118, 136, 161, 0.12);
    color: #d2dceb;
}

.results-hero-positive,
.results-hero-negative,
.results-hero-neutral,
.strategy-hero-panel,
.researcher-generator-card {
    background:
        radial-gradient(circle at top right, rgba(85, 174, 254, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(17, 24, 34, 0.98), rgba(10, 16, 24, 0.99));
    border: 1px solid rgba(118, 136, 161, 0.18);
}

.results-kicker {
    color: #8ea0b8;
    letter-spacing: 0.1em;
}

.results-main-number {
    color: #f5f8fd;
}

.researcher-remove-button {
    border-color: rgba(255, 107, 107, 0.22);
    color: #ffc2c2;
    background: rgba(52, 18, 22, 0.9);
}

.stock-directory-empty h3,
.empty-chart-state h3 {
    color: #f0f5fc;
}

@media (max-width: 980px) {
    .page-shell,
    .topbar-shell {
        width: min(1280px, calc(100% - 24px));
    }

    .page-intro-grid,
    .hero-split,
    .stock-directory-toolbar,
    .researcher-hero-grid {
        grid-template-columns: 1fr;
    }

    .page-intro-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .page-intro,
    .hero,
    .detail-card,
    .chart-panel,
    .stock-directory-controls,
    .mode-card,
    .researcher-generator-card,
    .strategy-builder-card,
    .strategy-results-card,
    .strategy-library-card,
    .researcher-score-card,
    .researcher-family-card {
        padding: 18px;
    }

    .page-intro-copy h1 {
        font-size: clamp(1.8rem, 9vw, 2.6rem);
    }

    .page-intro-metrics,
    .stats-grid,
    .results-metric-grid,
    .results-snapshot-grid,
    .stock-directory-hero-stats {
        grid-template-columns: 1fr;
    }

    .homepage-grid,
    .mode-grid {
        grid-template-columns: 1fr;
    }

    .strategy-wizard-progress {
        grid-template-columns: 1fr;
    }

    .topbar-user-name {
        display: none;
    }

    .topbar-user-chip {
        padding-right: 8px;
    }
}

/* Premium refinement pass */

:root {
    --bg: #061219;
    --bg-elevated: #08171d;
    --bg-panel: #0a1b22;
    --bg-panel-2: #0f242c;
    --bg-panel-3: #14303a;
    --bg-selected: #17404a;
    --panel: rgba(8, 21, 28, 0.92);
    --panel-strong: rgba(10, 24, 31, 0.97);
    --panel-muted: rgba(8, 18, 24, 0.76);
    --panel-border: rgba(108, 164, 168, 0.12);
    --panel-border-strong: rgba(125, 193, 196, 0.22);
    --text: #eefbfa;
    --muted: #87a6a9;
    --muted-strong: #bfd8d7;
    --accent: #74e5dd;
    --accent-strong: #32c8ca;
    --accent-soft: rgba(80, 211, 207, 0.16);
    --positive: #63d6a4;
    --negative: #ff7f88;
    --warning: #d7bf6c;
    --shadow: none;
}

body,
body.site-mode-stock,
body.site-mode-landing {
    background:
        radial-gradient(circle at 14% 0%, rgba(50, 200, 202, 0.13), transparent 28%),
        radial-gradient(circle at 88% 10%, rgba(116, 229, 221, 0.08), transparent 22%),
        linear-gradient(180deg, #061017 0%, #08161c 48%, #09171e 100%);
}

body::before {
    opacity: 0.12;
}

body::after {
    display: none;
}

.topbar {
    background: rgba(5, 14, 20, 0.86);
    border-bottom-color: var(--panel-border);
    box-shadow: none;
}

.brand-mark {
    border-color: rgba(80, 211, 207, 0.24);
    background:
        linear-gradient(180deg, rgba(80, 211, 207, 0.18), rgba(80, 211, 207, 0.05)),
        rgba(10, 24, 31, 0.98);
    box-shadow: none;
}

.nav-link {
    border: 0;
    color: #91adb0;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(80, 211, 207, 0.11);
    border-color: transparent;
    color: #f1fbfa;
}

.market-switch {
    background: rgba(255, 255, 255, 0.035);
    border-color: transparent;
}

.market-switch-pill {
    color: #8ca6aa;
}

.market-switch-pill.active {
    background: linear-gradient(180deg, #7cebe0, #35cacc);
    color: #082127;
    box-shadow: none;
}

.hero,
.chart-panel,
.list-panel,
.card,
.detail-card,
.home-category,
.mode-card,
.stock-directory-table-wrap,
.stock-directory-controls,
.stock-directory-stat-card,
.researcher-idea-card,
.results-panel,
.results-table-card,
.results-metric-card,
.results-snapshot-item,
.results-hero-card,
.sidebar-tile,
.builder-subpanel,
.asset-picker-panel,
.strategy-wizard-step,
.asset-modal-dialog,
.exit-rule-card,
.asset-picker-option,
.researcher-generator-card,
.strategy-builder-card,
.strategy-results-card,
.strategy-library-card,
.researcher-score-card,
.researcher-family-card,
.strategy-hero-panel {
    background: var(--panel-strong);
    border-color: transparent;
    box-shadow: none;
}

.hero::before,
.detail-card::before,
.chart-panel::before,
.mode-card::before,
.home-category::before,
.stock-directory-controls::before,
.stock-directory-table-wrap::before {
    display: none;
}

.page-intro {
    padding: 26px 0 22px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--panel-border);
    border-radius: 0;
    box-shadow: none;
}

.page-intro-copy p,
.hero p,
.detail-card p,
.card p,
.list-row p {
    color: var(--muted);
}

.page-intro-metric,
.stat-card,
.stock-directory-stat-card,
.strategy-hero-stat,
.results-metric-card,
.results-snapshot-item,
.sidebar-tile,
.researcher-parameter-item {
    background: var(--bg-panel-2);
    border: 0;
    box-shadow: none;
}

.eyebrow,
.badge {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #8ec8c6;
    letter-spacing: 0.14em;
}

.rank-pill,
.mini-pill,
.status-pill,
.strategy-hero-chip,
.backtest-summary-pill,
.stock-directory-highlight {
    border: 0;
    background: rgba(255, 255, 255, 0.05);
    color: #d8e1ec;
}

.status-passed,
.change,
.positive {
    color: var(--positive);
}

.status-failed,
.negative {
    color: var(--negative);
}

.compact-row,
.list-row,
.mode-card,
.stock-chip,
.asset-picker-option,
.strategy-choice-card,
.strategy-choice-card-rich,
.secondary-button,
.icon-button,
.researcher-help-trigger {
    border: 0;
}

.compact-row:hover,
.list-row:hover,
.card:hover,
.mode-card:hover,
.asset-picker-option:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.04);
}

.stock-directory-summary,
.asset-filter-summary {
    min-height: auto;
    padding: 14px 0 0;
    border: 0;
    border-top: 1px solid var(--panel-border);
    border-radius: 0;
    background: transparent;
}

.builder-inline-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 0;
    border: 0;
    background: transparent;
}

.builder-inline-summary strong {
    color: #d8e1ec;
    font-size: 0.92rem;
    font-weight: 500;
}

.builder-inline-meta {
    display: flex;
    align-items: center;
}

.stock-chip {
    background: rgba(255, 255, 255, 0.045);
    color: #c9d5e4;
}

.stock-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f3f7fc;
}

.stock-chip.active {
    background: var(--accent-strong);
    color: #082127;
}

.screener-table-wrap,
.stock-directory-table-wrap {
    border: 0;
    background: rgba(10, 15, 22, 0.9);
}

.screener-table th {
    background: rgba(11, 16, 23, 0.94);
}

.screener-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

.strategy-select,
.strategy-input,
.strategy-multiselect {
    border: 1px solid var(--panel-border);
    background: #0a1016;
    box-shadow: none;
}

.strategy-select:focus,
.strategy-input:focus,
.strategy-multiselect:focus,
.primary-button:focus,
.secondary-button:focus,
.icon-button:focus,
.inline-action:focus,
.researcher-help-trigger:focus-visible {
    outline: 1px solid rgba(227, 236, 246, 0.24);
    outline-offset: 0;
}

.strategy-choice-card {
    background: var(--bg-panel-2);
    color: #d7e1ec;
}

.strategy-choice-card:hover {
    background: var(--bg-panel-3);
}

.strategy-choice-card:has(input:checked),
.asset-picker-option:has(input:checked) {
    background: var(--bg-selected);
    color: #f5f8fc;
    box-shadow: inset 2px 0 0 rgba(227, 236, 246, 0.8);
}

.strategy-wizard-layout {
    gap: 32px;
}

.strategy-wizard-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--panel-border);
    overflow-x: auto;
}

.strategy-wizard-progress-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 0 10px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
}

.strategy-wizard-progress-item span {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.58;
}

.strategy-wizard-progress-item strong {
    font-size: 0.77rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.strategy-wizard-progress-item.is-active {
    border-bottom-color: rgba(227, 236, 246, 0.96);
    color: #f5f8fc;
}

.strategy-wizard-progress-item.is-complete {
    border-bottom-color: rgba(157, 177, 201, 0.34);
    color: #c4d0df;
}

.strategy-wizard-progress-item.is-active span,
.strategy-wizard-progress-item.is-complete span {
    background: transparent;
    color: inherit;
    opacity: 1;
}

.strategy-wizard-progress-item.is-disabled {
    opacity: 0.34;
}

.strategy-wizard-summary-panel {
    gap: 12px;
    padding-left: 16px;
    border-left-color: var(--panel-border);
}

.strategy-wizard-summary-panel h3 {
    margin: 0;
    color: #98a7b9;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wizard-summary-group {
    gap: 8px;
}

.builder-summary-item {
    padding: 8px 0;
    border-bottom-color: var(--panel-border);
}

.builder-summary-item strong {
    color: #c9d4e2;
    font-size: 0.88rem;
    font-weight: 500;
}

.strategy-wizard-actions {
    bottom: 0;
    gap: 14px;
    padding: 16px 0 0;
    border-top-color: var(--panel-border);
    background: linear-gradient(180deg, rgba(8, 12, 18, 0) 0%, rgba(8, 12, 18, 0.92) 34%, rgba(8, 12, 18, 0.96) 100%);
    backdrop-filter: blur(10px);
}

.strategy-wizard-actions-text {
    color: #7d8da2;
    font-size: 0.81rem;
}

#strategy-step-next,
#strategy-run-backtest {
    min-width: 144px;
    box-shadow: none;
}

.strategy-run-panel {
    gap: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--panel-border);
}

.strategy-progress-card {
    border-top-color: var(--panel-border);
}

.strategy-progress-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.strategy-progress-fill {
    background: var(--accent-strong);
}

.primary-button {
    background: var(--accent-strong);
    color: #091019;
}

.primary-button:hover {
    background: #f3f7fb;
}

.secondary-button,
.icon-button,
.researcher-help-trigger {
    background: rgba(255, 255, 255, 0.05);
    color: #edf3fa;
}

.secondary-button:hover,
.icon-button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.results-state-badge {
    background: rgba(255, 255, 255, 0.06);
}

.results-state-positive {
    color: #bce7d2;
}

.results-state-negative {
    color: #ffc6c6;
}

.results-state-neutral {
    color: #d4deeb;
}

.results-hero-positive,
.results-hero-negative,
.results-hero-neutral,
.strategy-hero-panel,
.researcher-generator-card {
    background: var(--panel-strong);
    border: 0;
}

.researcher-generator-footer {
    align-items: flex-start;
    padding-top: 14px;
    border-top: 1px solid var(--panel-border);
}

.researcher-generate-button {
    min-width: 200px;
}

.researcher-remove-button {
    background: rgba(101, 34, 38, 0.62);
}

.asset-modal-dialog,
.researcher-help-popover {
    background: rgba(14, 20, 29, 0.98);
}

.asset-modal-backdrop {
    background: rgba(4, 8, 13, 0.68);
}

.tv-chart-shell,
.empty-chart-state,
.stock-directory-empty {
    border: 0;
    background: rgba(11, 16, 23, 0.94);
}

@media (max-width: 720px) {
    .builder-inline-summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .strategy-wizard-progress {
        gap: 12px;
    }

    .strategy-wizard-actions,
    .strategy-wizard-actions-main {
        display: grid;
    }
}

/* Visual QA pass */

.strategy-hero-panel {
    padding: 0;
}

.strategy-hero-grid,
.researcher-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
    gap: 24px;
    align-items: start;
    padding: 20px 28px;
}

.strategy-hero-copy p {
    max-width: 48ch;
    margin-bottom: 0;
}

.strategy-hero-chip-row {
    gap: 8px;
    margin-top: 14px;
}

.strategy-hero-chip {
    background: rgba(255, 255, 255, 0.045);
}

.strategy-hero-stats,
.researcher-hero-stats {
    display: grid;
    gap: 10px;
    align-content: start;
}

.strategy-hero-stat {
    min-height: 92px;
    padding: 14px 16px;
}

.researcher-hero-head {
    align-items: flex-start;
}

.researcher-help-trigger {
    width: 32px;
    height: 32px;
}

.strategy-builder-card {
    background: rgba(16, 22, 30, 0.96);
    padding: 20px 26px 22px;
}

.strategy-card-head {
    margin-bottom: 14px;
}

.strategy-card-head h2 {
    font-size: 1.7rem;
    letter-spacing: 0;
}

.strategy-wizard-layout {
    grid-template-columns: 1fr;
    gap: 16px;
}

.strategy-wizard-main {
    gap: 14px;
}

.strategy-wizard-step {
    max-width: none;
    gap: 16px;
    padding: 18px 18px 16px;
    background: rgba(19, 26, 36, 0.92);
    border-radius: 12px;
}

.strategy-wizard-step-head {
    gap: 4px;
}

.strategy-wizard-step-head h3 {
    font-size: 1.42rem;
    line-height: 1.02;
}

.strategy-choice-row {
    gap: 10px;
}

.strategy-choice-row-single {
    grid-template-columns: 1fr;
}

.strategy-choice-card {
    min-height: 54px;
    padding: 12px 14px;
    border-radius: 10px;
}

.strategy-choice-card strong,
.strategy-choice-copy strong {
    font-size: 0.95rem;
}

.strategy-choice-card span,
.strategy-choice-copy span {
    color: #9db0c6;
}

.strategy-choice-card:has(input:checked) {
    box-shadow: inset 3px 0 0 rgba(243, 247, 252, 0.92);
}

.strategy-wizard-progress {
    gap: 16px;
    padding-bottom: 12px;
}

.strategy-wizard-progress-item {
    padding-bottom: 10px;
}

.strategy-wizard-progress-item strong {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    opacity: 0.82;
}

.strategy-wizard-progress-item.is-active strong {
    font-size: 0.82rem;
    opacity: 1;
}

.strategy-wizard-progress-item.is-complete strong {
    opacity: 0.9;
}

.strategy-wizard-summary-panel {
    position: static;
    gap: 14px;
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wizard-summary-label {
    color: #75859a;
}

.strategy-wizard-summary-panel .eyebrow,
.strategy-wizard-summary-panel h3 {
    display: none;
}

.wizard-summary-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.builder-summary-list {
    gap: 4px;
}

.builder-summary-item {
    padding: 6px 0;
}

.builder-summary-item strong {
    color: #d3dde8;
    font-size: 0.92rem;
}

.strategy-wizard-actions {
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    background: transparent;
    backdrop-filter: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.strategy-wizard-actions-main {
    gap: 14px;
    align-items: center;
}

.strategy-wizard-actions-text {
    color: #8594a8;
    font-size: 0.8rem;
}

#strategy-step-back {
    background: transparent;
    padding-left: 0;
    padding-right: 0;
    color: #d7e0ea;
}

#strategy-step-next,
#strategy-run-backtest {
    min-width: 132px;
    min-height: 44px;
}

.strategy-run-panel {
    padding-top: 0;
    border-top: 0;
}

.strategy-progress-card {
    margin-top: 8px;
}

.results-panel,
.results-table-card {
    background: rgba(14, 20, 28, 0.94);
}

.results-head {
    align-items: center;
}

.results-state-badge {
    font-weight: 600;
}

.researcher-hero-panel {
    margin-bottom: 14px;
}

.researcher-generator-card {
    background: rgba(16, 22, 30, 0.96);
}

.researcher-generator-grid {
    gap: 14px;
}

.researcher-generator-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    display: grid;
    gap: 16px;
    align-items: center;
}

.researcher-generator-summary {
    min-height: 0;
}

.researcher-generate-button {
    align-self: end;
}

.mode-card {
    padding: 22px 20px;
}

.mode-card-meta {
    margin: 14px 0 12px;
}

.page-intro {
    padding-top: 22px;
}

.stock-directory-controls {
    background: rgba(15, 21, 29, 0.94);
}

.stock-directory-controls-head {
    padding-bottom: 14px;
}

.stock-directory-controls-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.stock-directory-market-switch-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.stock-directory-summary .mini-pill {
    background: rgba(255, 255, 255, 0.08);
}

.stock-directory-table-panel {
    display: grid;
    gap: 12px;
    padding: 14px 12px 10px;
}

.stock-directory-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 4px;
}

.stock-directory-pagination[hidden],
.stock-directory-table [hidden],
.stock-directory-empty[hidden] {
    display: none !important;
}

.stock-directory-pagination-top {
    padding-bottom: 2px;
}

.stock-directory-pagination-bottom {
    padding-top: 4px;
}

.stock-page-status {
    margin: 0;
    color: #8595a9;
    font-size: 0.82rem;
}

.stock-pagination-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.stock-page-button {
    min-width: 42px;
    min-height: 36px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.04);
}

.stock-page-button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
}

.stock-page-button.active {
    background: var(--accent-strong);
    color: #091019;
}

.stock-page-button:disabled {
    opacity: 0.38;
    cursor: default;
}

.stock-page-ellipsis {
    color: #6f8094;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

@media (max-width: 980px) {
    .strategy-hero-grid,
    .researcher-hero-grid,
    .researcher-generator-footer {
        grid-template-columns: 1fr;
    }

    .strategy-wizard-summary-panel {
        padding-top: 16px;
    }

    .wizard-summary-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .strategy-hero-grid,
    .researcher-hero-grid {
        padding: 20px;
    }

    .strategy-card-head h2 {
        font-size: 1.55rem;
    }

    .strategy-builder-card {
        padding: 18px;
    }

    .strategy-wizard-step {
        padding: 16px 14px;
    }

    .wizard-summary-groups {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .stock-directory-pagination {
        display: grid;
        gap: 12px;
        padding-left: 0;
        padding-right: 0;
    }

    .stock-pagination-controls {
        justify-content: flex-start;
    }

    .strategy-wizard-progress-item.is-active strong {
        font-size: 0.78rem;
    }
}

/* Strategy Lab refinement pass */

.strategy-hero-panel {
    background: linear-gradient(180deg, rgba(16, 22, 31, 0.98), rgba(13, 18, 26, 0.98));
    border-color: rgba(118, 136, 161, 0.1);
}

.strategy-hero-panel .strategy-hero-grid {
    grid-template-columns: minmax(0, 760px);
    gap: 0;
    justify-content: start;
    padding: 22px 28px 20px;
}

.strategy-hero-copy h1 {
    margin-bottom: 10px;
    font-size: clamp(2.6rem, 4vw, 3.45rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.strategy-hero-copy p {
    max-width: 44ch;
    color: #94a7bd;
    line-height: 1.55;
}

.strategy-hero-chip-row {
    margin-top: 18px;
}

.strategy-hero-chip {
    background: rgba(255, 255, 255, 0.04);
    color: #d6e0ec;
}

.strategy-builder-card {
    padding: 22px 28px 20px;
}

.strategy-card-head {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
}

.strategy-card-head p {
    max-width: 38ch;
    color: #8b9cb0;
}

.strategy-wizard-shell {
    gap: 16px;
}

.strategy-wizard-progress {
    gap: 18px;
    padding: 0 0 14px;
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.strategy-wizard-progress-item {
    gap: 7px;
    padding: 0 0 10px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #5f7187;
}

.strategy-wizard-progress-item:hover {
    color: #96a8bd;
}

.strategy-wizard-progress-item span {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #9fb0c4;
}

.strategy-wizard-progress-item strong {
    opacity: 0.62;
}

.strategy-wizard-progress-item.is-active,
.strategy-wizard-progress-item.is-complete {
    background: transparent;
}

.strategy-wizard-progress-item.is-active {
    border-bottom-color: rgba(116, 229, 221, 0.94);
    color: #eefbfa;
}

.strategy-wizard-progress-item.is-complete {
    border-bottom-color: rgba(74, 140, 145, 0.5);
    color: #b8d8d8;
}

.strategy-wizard-progress-item.is-active span {
    background: #74e5dd;
    color: #082127;
}

.strategy-wizard-progress-item.is-complete span {
    background: rgba(80, 211, 207, 0.28);
    color: #dff7f4;
}

.strategy-wizard-progress-item.is-active strong,
.strategy-wizard-progress-item.is-complete strong {
    opacity: 1;
}

.strategy-wizard-step {
    gap: 18px;
    padding: 20px 20px 18px;
    background: linear-gradient(180deg, rgba(18, 25, 35, 0.96), rgba(15, 21, 30, 0.96));
}

.strategy-wizard-step-head {
    padding-bottom: 2px;
}

.strategy-wizard-step-head h3 {
    font-size: 1.5rem;
}

.builder-subpanel {
    gap: 16px;
}

.strategy-choice-card {
    min-height: 56px;
    padding: 12px 14px;
    border-color: transparent;
    background: rgba(20, 28, 38, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.strategy-choice-card:hover {
    border-color: transparent;
    background: rgba(27, 36, 48, 0.9);
}

.strategy-choice-card:has(input:checked) {
    border-color: transparent;
    background: rgba(33, 45, 60, 0.96);
    box-shadow: inset 3px 0 0 rgba(243, 247, 252, 0.92), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.strategy-choice-copy span,
.strategy-choice-card span {
    color: #93a6bb;
}

.strategy-wizard-actions {
    gap: 14px;
    padding-top: 16px;
    border-top-color: rgba(255, 255, 255, 0.05);
}

.strategy-wizard-actions-main {
    gap: 12px;
}

.strategy-wizard-actions-text {
    color: #96a7bb;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

#strategy-step-next,
#strategy-run-backtest {
    border: 1px solid rgba(80, 211, 207, 0.16);
    background: linear-gradient(180deg, #7cebe0, #35cacc);
    color: #082127;
}

#strategy-step-next:hover,
#strategy-run-backtest:hover {
    background: linear-gradient(180deg, #8ef2e7, #48d4d3);
}

.strategy-wizard-summary-panel {
    gap: 12px;
    padding-top: 16px;
    border-top-color: rgba(255, 255, 255, 0.05);
}

.wizard-summary-groups {
    gap: 18px;
}

.wizard-summary-group {
    gap: 8px;
}

.builder-summary-item {
    gap: 3px;
    padding: 8px 0;
}

.builder-summary-item span {
    color: #6f8196;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.builder-summary-item strong {
    color: #d9e3ee;
    font-size: 0.98rem;
    line-height: 1.3;
}

.strategy-results-card {
    padding: 20px 28px 22px;
}

.results-head {
    margin-bottom: 14px;
}

.strategy-results-card .empty-chart-state {
    min-height: 72px;
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-radius: 12px;
    color: #adbcce;
    background: rgba(10, 15, 22, 0.94);
}

@media (max-width: 980px) {
    .strategy-hero-panel .strategy-hero-grid {
        grid-template-columns: 1fr;
        padding: 20px 22px;
    }

    .strategy-builder-card,
    .strategy-results-card {
        padding-left: 22px;
        padding-right: 22px;
    }
}

@media (max-width: 720px) {
    .strategy-hero-copy h1 {
        font-size: 2.3rem;
    }

    .strategy-builder-card,
    .strategy-results-card {
        padding: 18px;
    }

    .strategy-wizard-step {
        padding: 16px 14px;
    }

    .strategy-wizard-progress {
        gap: 12px;
    }

    .strategy-wizard-progress-item {
        padding-bottom: 8px;
    }
}

/* Logo-inspired theme pass */

:root {
    --bg: #07161f;
    --bg-elevated: #0a1c26;
    --bg-panel: #0d212d;
    --bg-panel-2: #122936;
    --bg-panel-3: #183342;
    --bg-selected: #173846;
    --panel: rgba(9, 22, 30, 0.92);
    --panel-strong: rgba(10, 24, 33, 0.97);
    --panel-muted: rgba(8, 19, 27, 0.78);
    --panel-border: rgba(87, 151, 160, 0.14);
    --panel-border-strong: rgba(101, 190, 194, 0.28);
    --text: #edf5f3;
    --muted: #8ba3a8;
    --muted-strong: #c1d3d1;
    --accent: #67ddd8;
    --accent-strong: #20bec8;
    --accent-soft: rgba(32, 190, 200, 0.16);
    --positive: #7bd3ac;
    --negative: #ef7b87;
    --warning: #c8aa62;
}

body,
body.site-mode-stock,
body.site-mode-landing {
    background:
        radial-gradient(circle at 12% 0%, rgba(32, 190, 200, 0.12), transparent 28%),
        radial-gradient(circle at 82% 8%, rgba(103, 221, 216, 0.06), transparent 22%),
        radial-gradient(circle at 50% 100%, rgba(15, 48, 58, 0.2), transparent 34%),
        linear-gradient(180deg, #061219 0%, #08161d 46%, #091920 100%);
}

::selection {
    background: rgba(32, 190, 200, 0.26);
    color: #f7fbfb;
}

.topbar {
    background: rgba(6, 17, 24, 0.9);
    border-bottom-color: rgba(87, 151, 160, 0.16);
}

.brand-mark {
    border-color: rgba(32, 190, 200, 0.3);
    background:
        linear-gradient(135deg, rgba(32, 190, 200, 0.22), rgba(32, 190, 200, 0.05) 52%, rgba(11, 27, 38, 0.86) 52%, rgba(11, 27, 38, 0.98)),
        rgba(10, 24, 33, 0.98);
    color: #ecf5f2;
}

.brand,
.strategy-hero-copy h1,
.strategy-card-head h2,
.results-head h2,
.researcher-section-head h2,
.detail-card h2,
.detail-card h3,
.card h2,
.card h3 {
    color: #edf5f3;
}

.brand-subtitle,
.page-intro-copy p,
.hero p,
.detail-card p,
.card p,
.list-row p,
.strategy-card-head p,
.field-help,
.site-copy,
.muted {
    color: var(--muted);
}

.nav-link {
    color: #8ea4a9;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(32, 190, 200, 0.1);
    color: #f4fbfa;
}

.market-switch {
    background: rgba(255, 255, 255, 0.03);
}

.market-switch-pill {
    color: #8aa0a6;
}

.market-switch-pill.active {
    background: linear-gradient(180deg, #6ce3dc, #22bfca);
    color: #07212a;
}

.hero,
.chart-panel,
.list-panel,
.card,
.detail-card,
.home-category,
.mode-card,
.stock-directory-table-wrap,
.stock-directory-controls,
.stock-directory-stat-card,
.researcher-idea-card,
.results-panel,
.results-table-card,
.results-metric-card,
.results-snapshot-item,
.results-hero-card,
.sidebar-tile,
.builder-subpanel,
.asset-picker-panel,
.strategy-wizard-step,
.asset-modal-dialog,
.exit-rule-card,
.asset-picker-option,
.researcher-generator-card,
.strategy-builder-card,
.strategy-results-card,
.strategy-library-card,
.researcher-score-card,
.researcher-family-card,
.strategy-hero-panel,
.analyst-summary-card,
.analyst-output-card,
.analyst-history-item,
.analyst-experiment-item,
.analyst-leaderboard-card {
    background: var(--panel-strong);
    border-color: var(--panel-border);
}

.eyebrow,
.badge,
.field-label,
.wizard-summary-label,
.table-asset-copy span,
.compact-meta,
.table-reason {
    color: #7fc6c7;
}

.rank-pill,
.mini-pill,
.status-pill,
.strategy-hero-chip,
.backtest-summary-pill,
.stock-directory-highlight,
.results-state-badge {
    background: rgba(255, 255, 255, 0.05);
    color: #d8e7e4;
}

.strategy-select,
.strategy-input,
.strategy-multiselect,
.asset-modal-dialog,
.researcher-help-popover,
.tv-chart-shell,
.empty-chart-state,
.stock-directory-empty,
.screener-table-wrap,
.stock-directory-table-wrap {
    background: rgba(9, 20, 28, 0.96);
    border-color: var(--panel-border);
}

.strategy-select,
.strategy-input,
.strategy-multiselect {
    color: var(--text);
}

.strategy-select:focus,
.strategy-input:focus,
.strategy-multiselect:focus,
.primary-button:focus,
.secondary-button:focus,
.icon-button:focus,
.inline-action:focus,
.researcher-help-trigger:focus-visible {
    outline: 1px solid rgba(103, 221, 216, 0.38);
}

.strategy-choice-card,
.asset-picker-option,
.stock-chip,
.stock-page-button,
.analyst-criteria-item,
.analyst-change-item {
    background: rgba(255, 255, 255, 0.045);
    color: #d9e7e5;
}

.strategy-choice-card span,
.strategy-choice-copy span,
.stock-page-status,
.wizard-summary-label {
    color: #91a8ad;
}

.strategy-choice-card:hover,
.asset-picker-option:hover,
.stock-chip:hover,
.stock-page-button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
}

.strategy-choice-card:has(input:checked),
.asset-picker-option:has(input:checked) {
    background: rgba(23, 56, 70, 0.95);
    box-shadow: inset 3px 0 0 rgba(103, 221, 216, 0.9);
}

.stock-chip.active,
.stock-page-button.active,
.strategy-wizard-progress-item.is-active span {
    background: linear-gradient(180deg, #6ce3dc, #22bfca);
    color: #07212a;
}

.strategy-wizard-progress-item {
    color: #6f858c;
}

.strategy-wizard-progress-item:hover {
    color: #a7c6c9;
}

.strategy-wizard-progress-item span {
    background: rgba(255, 255, 255, 0.05);
    color: #96afb4;
}

.strategy-wizard-progress-item.is-active {
    border-bottom-color: rgba(103, 221, 216, 0.94);
    color: #ecf5f3;
}

.strategy-wizard-progress-item.is-complete {
    border-bottom-color: rgba(69, 132, 138, 0.52);
    color: #bdd9d8;
}

.strategy-wizard-progress-item.is-complete span {
    background: rgba(32, 190, 200, 0.24);
    color: #def4f2;
}

.exit-rule-card {
    border-bottom-color: rgba(87, 151, 160, 0.14);
}

.exit-rule-card:has(.exit-rule-toggle input:checked) {
    border-color: rgba(32, 190, 200, 0.28);
    box-shadow: inset 3px 0 0 #20bec8;
}

.exit-rule-card.is-disabled {
    opacity: 0.96;
}

.exit-rule-card.is-disabled .strategy-input {
    background: rgba(16, 35, 45, 0.92);
    border-color: rgba(87, 151, 160, 0.14);
    color: #8fa4a9;
}

.exit-rule-card.is-disabled .strategy-input::placeholder {
    color: #6f868c;
}

.exit-rule-toggle input {
    accent-color: #20bec8;
}

.rule-status {
    background: rgba(255, 255, 255, 0.045);
    color: #8da5aa;
}

.exit-rule-card:has(.exit-rule-toggle input:checked) .rule-status {
    background: rgba(32, 190, 200, 0.14);
    color: #9be9e6;
}

.strategy-progress-track {
    background: rgba(255, 255, 255, 0.06);
}

.strategy-progress-fill {
    background: linear-gradient(90deg, #1caebb, #67ddd8);
}

.primary-button,
#strategy-step-next,
#strategy-run-backtest {
    border: 1px solid rgba(32, 190, 200, 0.14);
    background: linear-gradient(180deg, #6ce3dc, #22bfca);
    color: #07212a;
}

.primary-button:hover,
#strategy-step-next:hover,
#strategy-run-backtest:hover {
    background: linear-gradient(180deg, #7de9e1, #35c9d2);
    color: #07212a;
}

.secondary-button,
.icon-button,
.researcher-help-trigger,
#strategy-step-back {
    background: rgba(255, 255, 255, 0.045);
    color: #edf5f3;
}

.secondary-button:hover,
.icon-button:hover,
.researcher-help-trigger:hover,
#strategy-step-back:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f6fbfb;
}

.results-state-positive,
.status-passed,
.change,
.positive {
    color: var(--positive);
}

.results-state-negative,
.status-failed,
.negative {
    color: var(--negative);
}

.analyst-section .analyst-experiment-item,
.analyst-section .analyst-history-item,
.analyst-section .analyst-summary-card,
.analyst-section .analyst-output-card,
.analyst-section .analyst-criteria-item,
.analyst-section .analyst-change-item {
    border-color: var(--panel-border);
}

.table-action-cell {
    vertical-align: middle;
}

.researcher-action-stack {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    min-width: 132px;
}

.researcher-action-stack .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    line-height: 1.2;
}

/* Researcher hero cleanup */

.researcher-hero-panel .researcher-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    justify-content: normal;
}

.researcher-hero-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    margin-bottom: 8px;
}

.researcher-hero-panel .strategy-hero-copy {
    max-width: 760px;
}

.researcher-hero-panel .strategy-hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(3rem, 5.2vw, 4.6rem);
    line-height: 0.92;
    letter-spacing: 0;
    text-wrap: balance;
}

.researcher-hero-panel .strategy-hero-copy p {
    max-width: 34ch;
    font-size: 1.05rem;
    line-height: 1.58;
}

.researcher-hero-panel .strategy-hero-chip-row {
    gap: 10px;
    margin-top: 22px;
}

.researcher-hero-panel .strategy-hero-chip {
    min-height: 38px;
    padding: 0 14px;
}

.researcher-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-content: start;
}

.researcher-hero-stats .strategy-hero-stat {
    min-height: 0;
    padding: 16px 18px;
    gap: 10px;
}

.researcher-hero-stats .strategy-hero-stat:first-child {
    grid-column: 1 / -1;
    min-height: 132px;
}

.researcher-hero-stats .strategy-hero-stat span {
    color: #7fc6c7;
}

.researcher-hero-stats .strategy-hero-stat strong {
    font-size: 1.05rem;
    line-height: 1.35;
    text-wrap: balance;
}

@media (max-width: 980px) {
    .researcher-hero-panel .researcher-hero-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .researcher-hero-panel .strategy-hero-copy {
        max-width: none;
    }

    .researcher-hero-panel .strategy-hero-copy h1 {
        max-width: 14ch;
    }

    .researcher-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .researcher-hero-stats .strategy-hero-stat:first-child {
        grid-column: 1 / -1;
        min-height: 0;
    }
}

@media (max-width: 720px) {
    .researcher-hero-panel .researcher-hero-grid {
        padding: 20px;
    }

    .researcher-hero-panel .strategy-hero-copy h1 {
        max-width: none;
        font-size: clamp(2.55rem, 10vw, 3.35rem);
    }

    .researcher-hero-panel .strategy-hero-copy p {
        max-width: none;
        font-size: 0.98rem;
    }

    .researcher-hero-stats {
        grid-template-columns: 1fr;
    }

.researcher-hero-stats .strategy-hero-stat:first-child {
    grid-column: auto;
}
}

.strategy-confirmation-panel {
    display: grid;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--panel-border);
}

.strategy-confirmation-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
}

.strategy-card-head-compact {
    margin-bottom: 0;
}

.strategy-card-head-compact p {
    max-width: none;
}

.strategy-confirmation-grid {
    align-items: start;
}

.strategy-advanced-grid[hidden],
.strategy-confirmation-grid.is-hidden {
    display: none;
}

.strategy-field.is-hidden,
.asset-filter-summary.is-hidden,
.asset-picker-selected.is-hidden,
.wizard-inline-chip-row.is-hidden {
    display: none;
}

.strategy-confirmation-button {
    min-width: 132px;
    min-height: 42px;
    padding: 0 16px;
    align-self: center;
}

.strategy-confirmation-summary {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.strategy-confirmation-summary strong {
    color: var(--muted-strong);
    font-size: 0.92rem;
    line-height: 1.45;
}

.trade-log-chart-suite {
    margin: 0 0 18px;
}

.trade-log-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.trade-log-chart-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    min-height: 360px;
}

.trade-log-chart-head {
    display: grid;
    gap: 6px;
}

.trade-log-chart-head h3 {
    margin: 0;
    font-size: 1.05rem;
}

.trade-log-chart-head p {
    margin: 0;
    color: var(--muted);
}

.trade-log-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 2px;
}

.trade-log-chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dce9ee;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.trade-log-chart-legend-swatch {
    display: inline-flex;
    width: 26px;
    height: 0;
    border-top: 3px solid currentColor;
    border-radius: 999px;
    color: #22c55e;
}

.trade-log-chart-legend-swatch.is-gross {
    background: linear-gradient(90deg, #ef4444 0%, #22c55e 100%);
    border-top: none;
    height: 3px;
}

.trade-log-chart-legend-swatch.is-net {
    color: #f59e0b;
    border-top-style: dashed;
}

.trade-log-chart-legend-swatch.is-net-point {
    width: 10px;
    height: 10px;
    border-top: none;
    border-radius: 999px;
    background: #f59e0b;
}

.trade-log-chart-note {
    margin-top: 12px;
    font-size: 0.78rem;
    color: #9fb0bd;
    line-height: 1.45;
}

.trade-log-chart-suite-note {
    max-width: 78ch;
    margin: 0 0 6px;
    padding-top: 2px;
}

.trade-log-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.trade-log-summary-card {
    min-height: 88px;
}

.trade-log-chart-surface {
    position: relative;
    min-height: 250px;
}

.trade-log-chart-frame {
    position: relative;
    width: 100%;
    min-height: 250px;
    cursor: grab;
    touch-action: pan-y;
    overscroll-behavior: contain;
    user-select: none;
}

.trade-log-chart-frame.is-dragging {
    cursor: grabbing;
}

.trade-log-chart-svg {
    display: block;
    width: 100%;
    height: 250px;
    overflow: visible;
}

.trade-log-chart-svg [tabindex="0"]:focus {
    outline: none;
}

.trade-log-chart-tooltip {
    position: absolute;
    z-index: 5;
    min-width: 128px;
    padding: 10px 12px;
    border: 1px solid rgba(127, 198, 199, 0.22);
    border-radius: 12px;
    background: rgba(7, 18, 27, 0.96);
    color: #eef7fb;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    pointer-events: none;
    font-size: 0.82rem;
    line-height: 1.45;
}

.trade-log-chart-tooltip[hidden] {
    display: none;
}

.trade-log-chart-empty {
    min-height: 250px;
    display: grid;
    place-items: center;
    text-align: center;
}

.strategy-range-field {
    gap: 10px;
}

.strategy-range-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.strategy-range-column {
    display: grid;
    gap: 8px;
}

.field-label-subtle {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.strategy-confirmation-toggle {
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    grid-column: 1 / -1;
}

.strategy-confirmation-toggle:hover {
    background: rgba(255, 255, 255, 0.07);
}

.strategy-confirmation-toggle input {
    accent-color: #20bec8;
}

@media (max-width: 980px) {
    .trade-log-chart-grid {
        grid-template-columns: 1fr;
    }

    .trade-log-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Final contrast pass for native selects and candidate stock cards */
.strategy-select,
.strategy-input,
.strategy-multiselect,
select {
    color-scheme: dark;
}

.strategy-select option,
.strategy-select optgroup,
select option,
select optgroup {
    background: #0d1b23;
    color: #ecf7f5;
}

.strategy-select option:disabled,
select option:disabled {
    color: #8ea1a8;
}

.researcher-stock-card {
    border: 1px solid rgba(117, 178, 181, 0.16);
    background: linear-gradient(180deg, rgba(16, 29, 38, 0.98), rgba(11, 21, 29, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.researcher-stock-card:hover {
    border-color: rgba(103, 221, 216, 0.32);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.researcher-stock-copy strong {
    color: #f3fbfb;
}

.researcher-stock-copy span {
    color: #cfe0e4;
}

.researcher-stock-copy small {
    color: #89a2aa;
}

.coin-logo,
.coin-logo-large {
    background: #ffffff;
    object-fit: contain;
    padding: 6px;
}

.coin-logo-fallback {
    padding: 0;
}

@media (max-width: 720px) {
    .strategy-confirmation-head,
    .strategy-range-grid {
        grid-template-columns: 1fr;
    }

    .strategy-confirmation-button {
        width: 100%;
    }
}

/* Readability pass */

:root {
    --bg: #050e14;
    --bg-elevated: #07131b;
    --bg-panel: #0b1821;
    --bg-panel-2: #10212b;
    --bg-panel-3: #15303b;
    --panel-strong: rgba(10, 21, 29, 0.96);
    --panel-muted: rgba(8, 17, 24, 0.9);
    --panel-border: rgba(117, 178, 181, 0.14);
    --panel-border-strong: rgba(137, 209, 211, 0.22);
    --text: #f2fbfa;
    --muted: #9aafb2;
    --muted-strong: #c7d9d8;
}

body,
body.site-mode-stock,
body.site-mode-landing {
    background:
        radial-gradient(circle at 12% 0%, rgba(50, 200, 202, 0.09), transparent 24%),
        radial-gradient(circle at 88% 8%, rgba(116, 229, 221, 0.05), transparent 18%),
        linear-gradient(180deg, #041019 0%, #07141c 46%, #08171f 100%);
}

body::before {
    opacity: 0.05;
}

.topbar {
    background:
        linear-gradient(180deg, rgba(71, 184, 180, 0.98) 0%, rgba(46, 151, 153, 0.98) 18%, rgba(24, 98, 109, 0.99) 62%, rgba(11, 48, 58, 0.99) 100%),
        linear-gradient(120deg, rgba(129, 246, 233, 0.12), transparent 22%, rgba(20, 120, 131, 0.08) 48%, transparent 72%),
        radial-gradient(circle at 14% 20%, rgba(126, 241, 230, 0.14), transparent 20%);
    border-bottom-color: rgba(137, 223, 216, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(160, 246, 235, 0.18),
        inset 0 -1px 0 rgba(7, 24, 31, 0.28),
        0 18px 36px rgba(2, 8, 11, 0.18);
}

.nav-link {
    color: rgba(241, 255, 253, 0.88);
    text-shadow: 0 1px 0 rgba(7, 24, 31, 0.2);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(170, 247, 238, 0.14);
    color: #f5fbfb;
}

.market-switch {
    background: rgba(10, 33, 40, 0.28);
    border: 1px solid rgba(236, 255, 252, 0.22);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.market-switch-pill {
    color: rgba(238, 255, 252, 0.84);
    text-shadow: 0 1px 0 rgba(7, 24, 31, 0.16);
}

.market-switch-pill:hover {
    color: #f6fbfb;
}

.market-switch-pill.active {
    background: linear-gradient(180deg, #91f0e5, #59d4cc 52%, #35afb1 100%);
    color: #083039;
    box-shadow:
        inset 0 1px 0 rgba(205, 255, 249, 0.38),
        inset 0 -1px 0 rgba(20, 101, 111, 0.24),
        0 6px 18px rgba(2, 8, 11, 0.14);
}

.brand-mark {
    border-color: rgba(224, 255, 251, 0.34);
    background:
        linear-gradient(180deg, rgba(150, 247, 236, 0.24), rgba(96, 220, 211, 0.22) 40%, rgba(32, 122, 130, 0.2)),
        rgba(9, 32, 39, 0.94);
    color: #f0fffd;
    box-shadow:
        inset 0 1px 0 rgba(190, 255, 248, 0.16),
        0 6px 18px rgba(2, 8, 11, 0.12);
}

.brand,
.brand-subtitle {
    color: #effbfa;
    text-shadow: 0 1px 0 rgba(7, 24, 31, 0.2);
}

.hero,
.chart-panel,
.list-panel,
.card,
.detail-card,
.home-category,
.mode-card,
.stock-directory-table-wrap,
.stock-directory-controls,
.stock-directory-stat-card,
.researcher-idea-card,
.results-panel,
.results-table-card,
.results-metric-card,
.results-snapshot-item,
.results-hero-card,
.sidebar-tile,
.builder-subpanel,
.asset-picker-panel,
.strategy-wizard-step,
.asset-modal-dialog,
.exit-rule-card,
.asset-picker-option,
.researcher-generator-card,
.strategy-builder-card,
.strategy-results-card,
.strategy-library-card,
.researcher-score-card,
.researcher-family-card,
.strategy-hero-panel,
.analyst-summary-card,
.analyst-output-card,
.analyst-history-item,
.analyst-experiment-item,
.analyst-leaderboard-card {
    background:
        linear-gradient(180deg, rgba(14, 31, 40, 0.96), rgba(9, 20, 28, 0.97));
    border-color: rgba(117, 178, 181, 0.13);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.02),
        0 18px 42px rgba(2, 8, 11, 0.16);
}

.page-intro-metric,
.stat-card,
.stock-directory-stat-card,
.strategy-hero-stat,
.results-metric-card,
.results-snapshot-item,
.sidebar-tile,
.researcher-parameter-item,
.strategy-choice-card,
.asset-picker-option,
.stock-chip,
.stock-page-button,
.analyst-criteria-item,
.analyst-change-item,
.strategy-confirmation-toggle {
    background: linear-gradient(180deg, rgba(18, 37, 46, 0.94), rgba(12, 26, 34, 0.96));
    border: 1px solid rgba(117, 178, 181, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.page-intro-copy p,
.hero p,
.detail-card p,
.card p,
.list-row p,
.strategy-card-head p,
.field-help,
.site-copy,
.muted,
.table-asset-copy span,
.compact-meta,
.table-reason,
.researcher-help-popover span {
    color: var(--muted);
}

.brand,
.strategy-hero-copy h1,
.strategy-card-head h2,
.results-head h2,
.researcher-section-head h2,
.detail-card h2,
.detail-card h3,
.card h2,
.card h3,
.screener-table td strong,
.table-asset-copy strong {
    color: var(--text);
}

.field-label,
.wizard-summary-label,
.eyebrow,
.badge,
.backtest-summary-pill,
.strategy-hero-chip,
.mini-pill,
.rank-pill,
.status-pill,
.results-state-badge,
.stock-directory-highlight {
    color: #dce9e7;
}

.eyebrow,
.badge,
.field-label,
.wizard-summary-label {
    color: #88c8ca;
}

.page-intro {
    border-bottom-color: rgba(117, 178, 181, 0.11);
}

.builder-inline-summary,
.stock-directory-summary,
.asset-filter-summary {
    border-top-color: rgba(117, 178, 181, 0.11);
}

.screener-table-wrap,
.stock-directory-table-wrap,
.tv-chart-shell,
.empty-chart-state,
.stock-directory-empty,
.researcher-help-popover {
    background: linear-gradient(180deg, rgba(7, 16, 22, 0.97), rgba(5, 13, 19, 0.98));
    border: 1px solid rgba(117, 178, 181, 0.11);
}

.screener-table,
.stock-directory-table {
    border-collapse: separate;
    border-spacing: 0;
}

.screener-table th,
.stock-directory-table th {
    background: rgba(13, 25, 33, 0.98);
    color: #b6cccf;
    border-bottom: 1px solid rgba(117, 178, 181, 0.12);
}

.screener-table td,
.stock-directory-table td {
    border-bottom: 1px solid rgba(117, 178, 181, 0.08);
}

.screener-table tbody tr:nth-child(even),
.stock-directory-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.018);
}

.screener-table tbody tr:hover,
.stock-directory-table tbody tr:hover {
    background: rgba(80, 211, 207, 0.055);
}

.strategy-select,
.strategy-input,
.strategy-multiselect,
input[type="text"],
input[type="number"],
input[type="search"],
textarea,
select {
    background: linear-gradient(180deg, rgba(7, 16, 22, 0.98), rgba(9, 20, 27, 0.98));
    border-color: rgba(117, 178, 181, 0.16);
    color: var(--text);
}

.strategy-select::placeholder,
.strategy-input::placeholder,
input::placeholder,
textarea::placeholder {
    color: #80959b;
}

.strategy-select:focus,
.strategy-input:focus,
.strategy-multiselect:focus,
input[type="text"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus,
.primary-button:focus,
.secondary-button:focus,
.icon-button:focus,
.inline-action:focus,
.researcher-help-trigger:focus-visible {
    outline: 1px solid rgba(103, 221, 216, 0.42);
    border-color: rgba(103, 221, 216, 0.24);
}

.secondary-button,
.icon-button,
.researcher-help-trigger,
#strategy-step-back {
    background: linear-gradient(180deg, rgba(20, 35, 43, 0.95), rgba(14, 25, 32, 0.95));
    border: 1px solid rgba(117, 178, 181, 0.13);
    color: #eef6f6;
}

.secondary-button:hover,
.icon-button:hover,
.researcher-help-trigger:hover,
#strategy-step-back:hover {
    background: linear-gradient(180deg, rgba(24, 43, 52, 0.95), rgba(17, 31, 39, 0.95));
}

.rank-pill,
.mini-pill,
.status-pill,
.strategy-hero-chip,
.backtest-summary-pill,
.stock-directory-highlight,
.results-state-badge {
    background: rgba(255, 255, 255, 0.065);
}

.strategy-choice-card span,
.strategy-choice-copy span,
.stock-page-status,
.wizard-summary-label,
.stat-card span,
.stock-directory-stat-card span,
.strategy-hero-stat span,
.results-metric-card span,
.results-snapshot-item span,
.builder-summary-item span {
    color: #9db5b8;
}

.page-intro-metric strong,
.stat-card strong,
.stock-directory-stat-card strong,
.strategy-hero-stat strong,
.results-metric-card strong,
.results-snapshot-item strong,
.results-main-number,
.table-metric {
    color: #f4fbfb;
}
.strat-ai-page {
    display: grid;
    gap: 1.5rem;
    position: relative;
    padding: 0.25rem 0 1rem;
    isolation: isolate;
}

.strat-ai-page::before {
    display: none;
}

.strat-ai-page::after {
    display: none;
}

.strat-ai-code-rain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.strat-ai-code-line {
    position: absolute;
    display: block;
    max-width: 32rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: rgba(110, 255, 170, 0.16);
    text-shadow: 0 0 10px rgba(76, 255, 157, 0.08);
    opacity: 0;
    filter: blur(0.15px);
    animation: strat-ai-code-flicker 12s ease-in-out infinite;
}

.strat-ai-code-line-1 {
    top: 5%;
    left: 4%;
    animation-delay: 0s;
}

.strat-ai-code-line-2 {
    top: 18%;
    right: 8%;
    animation-delay: 1.8s;
}

.strat-ai-code-line-3 {
    top: 37%;
    left: 7%;
    animation-delay: 3.4s;
}

.strat-ai-code-line-4 {
    top: 54%;
    right: 12%;
    animation-delay: 5.2s;
}

.strat-ai-code-line-5 {
    top: 72%;
    left: 12%;
    animation-delay: 7.1s;
}

.strat-ai-code-line-6 {
    top: 84%;
    right: 10%;
    animation-delay: 8.6s;
}

.strat-ai-page > * {
    position: relative;
    z-index: 1;
}

.strat-ai-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.95fr);
    padding: 1.8rem;
    border: 1px solid rgba(103, 232, 249, 0.18);
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 38%),
        radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.16), transparent 30%),
        linear-gradient(145deg, rgba(7, 22, 31, 0.98), rgba(10, 36, 43, 0.94));
    box-shadow: 0 28px 70px rgba(6, 24, 31, 0.28);
}

.strat-ai-hero::after {
    content: "";
    position: absolute;
    inset: auto -20% -30% auto;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(103, 232, 249, 0.16), transparent 62%);
    animation: strat-ai-breathe 5.5s ease-in-out infinite;
}

.strat-ai-hero h1 {
    margin: 0;
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 0.95;
    color: #eefbff;
}

.strat-ai-hero p,
.strat-ai-system-copy p {
    margin: 0;
    max-width: 60ch;
    color: rgba(221, 238, 244, 0.82);
}

.strat-ai-hero-copy,
.strat-ai-hero-metrics,
.strat-ai-system-copy {
    position: relative;
    z-index: 1;
}

.strat-ai-chip-row,
.strat-ai-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.strat-ai-chip,
.strat-ai-mini-pill,
.strat-ai-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.strat-ai-chip,
.strat-ai-mini-pill {
    color: #d7f7ff;
    background: rgba(100, 221, 250, 0.12);
    border: 1px solid rgba(100, 221, 250, 0.18);
}

.strat-ai-card-badge {
    color: #06242f;
    background: linear-gradient(135deg, #67e8f9, #34d399);
}

.strat-ai-hero-metrics,
.strat-ai-worker-stats,
.strat-ai-system-grid,
.strat-ai-card-metrics,
.strat-ai-live-grid {
    display: grid;
    gap: 1rem;
}

.strat-ai-hero-metrics {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    align-content: start;
}

.strat-ai-metric-card,
.strat-ai-worker-card,
.strat-ai-system-card,
.strat-ai-card,
.strat-ai-empty-card {
    border-radius: 22px;
}

.strat-ai-metric-card {
    padding: 1rem 1.05rem;
    border: 1px solid rgba(100, 221, 250, 0.16);
    background: rgba(5, 19, 26, 0.42);
    backdrop-filter: blur(10px);
}

.strat-ai-metric-card span,
.strat-ai-worker-stats span,
.strat-ai-system-grid span,
.strat-ai-card-metrics span,
.strat-ai-card-category,
.strat-ai-mini-meta {
    display: block;
    color: rgba(186, 214, 223, 0.72);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.strat-ai-metric-card strong,
.strat-ai-worker-stats strong,
.strat-ai-system-grid strong,
.strat-ai-card-metrics strong {
    color: #eefbff;
    font-size: 1.05rem;
}

.strat-ai-live-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
}

.strat-ai-section-head,
.strat-ai-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.strat-ai-section-head h2,
.strat-ai-card h3 {
    margin: 0.15rem 0 0;
    color: #effcff;
}

.strat-ai-heartbeat {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #d7f7ff;
}

.strat-ai-heartbeat-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45);
    animation: strat-ai-pulse 1.8s infinite;
}

.strat-ai-worker-card,
.strat-ai-system-card,
.strat-ai-card-panel {
    background:
        linear-gradient(180deg, rgba(12, 27, 35, 0.96), rgba(7, 20, 27, 0.98)),
        #07161f;
    border: 1px solid rgba(99, 221, 250, 0.12);
}

.strat-ai-worker-stats,
.strat-ai-system-grid,
.strat-ai-card-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.strat-ai-progress {
    display: grid;
    gap: 0.55rem;
}

.strat-ai-progress-track {
    height: 0.7rem;
    border-radius: 999px;
    background: rgba(117, 156, 171, 0.18);
    overflow: hidden;
}

.strat-ai-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #38bdf8, #34d399);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.45);
    transition: width 220ms ease;
}

.strat-ai-event-feed {
    display: grid;
    gap: 0.8rem;
    max-height: 360px;
    overflow: auto;
}

.strat-ai-event-item {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(100, 221, 250, 0.1);
    background: rgba(10, 32, 40, 0.58);
}

.strat-ai-event-item strong,
.strat-ai-card h3 {
    display: block;
}

.strat-ai-event-item span,
.strat-ai-card-insight {
    color: rgba(210, 228, 235, 0.78);
}

.strat-ai-card-panel {
    padding: 1.4rem;
}

.strat-ai-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.strat-ai-card,
.strat-ai-empty-card {
    padding: 1.1rem;
    border: 1px solid rgba(100, 221, 250, 0.12);
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(10, 29, 36, 0.96), rgba(7, 18, 24, 0.98));
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.strat-ai-card:hover {
    transform: translateY(-3px);
    border-color: rgba(103, 232, 249, 0.26);
    box-shadow: 0 20px 40px rgba(4, 19, 25, 0.28);
}

.strat-ai-card-insight {
    min-height: 3.5rem;
    margin: 0.8rem 0 0;
}

.strat-ai-card-metrics {
    margin: 1rem 0;
}

@keyframes strat-ai-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
    }
}

@keyframes strat-ai-breathe {
    0%, 100% {
        transform: scale(1) translate3d(0, 0, 0);
    }
    50% {
        transform: scale(1.08) translate3d(-12px, 6px, 0);
    }
}

@media (max-width: 1080px) {
    .strat-ai-hero,
    .strat-ai-live-grid,
    .strat-ai-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .strat-ai-worker-stats,
    .strat-ai-system-grid,
    .strat-ai-card-metrics {
        grid-template-columns: 1fr;
    }

    .strat-ai-hero {
        padding: 1.35rem;
        border-radius: 24px;
    }

    .strat-ai-card-panel {
        padding: 1rem;
    }
}

.strat-ai-commandbar {
    display: grid;
    gap: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.strat-ai-commandbar::after {
    content: none;
}

.strat-ai-terminal-shell {
    position: relative;
    display: grid;
    gap: 1rem;
    padding: 0.95rem;
    border-radius: 24px;
    border: 1px solid rgba(108, 240, 171, 0.14);
    background:
        linear-gradient(180deg, rgba(7, 12, 16, 0.98), rgba(5, 10, 14, 0.98)),
        #060b10;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    animation: strat-ai-terminal-idle 6.8s ease-in-out infinite;
}

.strat-ai-terminal-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(120, 255, 173, 0.03), transparent 18%, transparent 82%, rgba(120, 255, 173, 0.025)),
        radial-gradient(circle at 50% 0%, rgba(120, 255, 173, 0.05), transparent 40%);
    opacity: 0.55;
    animation: strat-ai-terminal-phosphor 4.6s ease-in-out infinite;
}

.strat-ai-terminal-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(110, 139, 148, 0.14);
}

.strat-ai-terminal-dots {
    display: inline-flex;
    gap: 0.45rem;
}

.strat-ai-terminal-dots span {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    background: rgba(150, 163, 173, 0.38);
}

.strat-ai-terminal-dots span:nth-child(1) {
    background: #fb7185;
}

.strat-ai-terminal-dots span:nth-child(2) {
    background: #fbbf24;
}

.strat-ai-terminal-dots span:nth-child(3) {
    background: #4ade80;
}

.strat-ai-terminal-title {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(188, 214, 221, 0.66);
}

.strat-ai-terminal-title::after,
.strat-ai-terminal-copy#strat-ai-robot-line::after {
    content: "_";
    display: inline-block;
    margin-left: 0.22rem;
    color: rgba(120, 255, 173, 0.72);
    animation: strat-ai-terminal-cursor 1.15s steps(1, end) infinite;
}

.strat-ai-commandbar-head,
.strat-ai-title-lockup,
.strat-ai-command-meta,
.strat-ai-command-stats,
.strat-ai-terminal-grid,
.strat-ai-terminal-line,
.strat-ai-section-head,
.strat-ai-strategy-head,
.strat-ai-pill-row,
.strat-ai-metric-grid,
.strat-ai-feed-item,
.strat-ai-feed-side,
.strat-ai-ranked-item,
.strat-ai-ranked-side,
.strat-ai-history-list {
    display: flex;
    gap: 0.8rem;
}

.strat-ai-commandbar-head,
.strat-ai-section-head,
.strat-ai-feed-item,
.strat-ai-ranked-item,
.strat-ai-strategy-head {
    align-items: center;
    justify-content: space-between;
}

.strat-ai-title-lockup,
.strat-ai-command-meta,
.strat-ai-pill-row,
.strat-ai-feed-side,
.strat-ai-ranked-side {
    align-items: center;
}

.strat-ai-title-lockup h1 {
    margin: 0;
    font-size: clamp(2.1rem, 3vw, 3rem);
    line-height: 0.95;
    color: #ebfff4;
    letter-spacing: 0.02em;
}

.strat-ai-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(106, 255, 172, 0.18);
    background: rgba(12, 28, 22, 0.82);
    color: #b6ffd2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: "IBM Plex Mono", monospace;
}

.strat-ai-live-core {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
    animation: strat-ai-pulse 1.6s infinite;
}

.strat-ai-command-meta {
    flex-wrap: wrap;
    justify-content: flex-end;
    color: rgba(184, 215, 223, 0.78);
    font-family: "IBM Plex Mono", monospace;
}

.strat-ai-command-meta span {
    padding: 0.2rem 0;
}

.strat-ai-terminal-grid {
    align-items: start;
}

.strat-ai-robot-console {
    flex: 1 1 0;
    display: grid;
    gap: 0.55rem;
    min-width: 0;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(92, 110, 120, 0.16);
    background:
        linear-gradient(180deg, rgba(1, 6, 8, 0.98), rgba(4, 11, 14, 0.98)),
        #03090c;
}

.strat-ai-command-sidecar {
    flex: 0 0 320px;
    min-width: 320px;
}

.strat-ai-terminal-log {
    display: grid;
    gap: 0.45rem;
}

.strat-ai-terminal-line {
    align-items: flex-start;
    gap: 0.75rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.86rem;
    line-height: 1.45;
}

.strat-ai-terminal-line-system .strat-ai-terminal-prefix {
    color: #60a5fa;
}

.strat-ai-terminal-line-robot .strat-ai-terminal-prefix {
    color: #4ade80;
}

.strat-ai-terminal-prefix {
    flex: 0 0 96px;
    color: rgba(120, 248, 175, 0.82);
    text-transform: lowercase;
}

.strat-ai-terminal-prefix::before {
    content: ">";
    margin-right: 0.35rem;
    color: rgba(120, 248, 175, 0.44);
}

.strat-ai-terminal-copy {
    color: #d8ffe7;
}

.strat-ai-command-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(92, 110, 120, 0.16);
    background:
        linear-gradient(180deg, rgba(1, 6, 8, 0.98), rgba(4, 11, 14, 0.98)),
        #03090c;
}

.strat-ai-strategy-card,
.strat-ai-feed-item,
.strat-ai-ranked-item,
.strat-ai-empty-state {
    border-radius: 20px;
    border: 1px solid rgba(95, 206, 224, 0.12);
    background: rgba(8, 23, 29, 0.74);
}

.strat-ai-command-statline {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: baseline;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.86rem;
    line-height: 1.45;
}

.strat-ai-command-key,
.strat-ai-card-category,
.strat-ai-metric-grid span,
.strat-ai-feed-main span,
.strat-ai-board-title,
.strat-ai-mini-meta {
    display: block;
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(186, 216, 223, 0.7);
}

.strat-ai-command-key::before {
    content: "$ ";
    color: rgba(102, 255, 173, 0.46);
}

.strat-ai-command-statline strong,
.strat-ai-feed-score,
.strat-ai-ranked-side strong,
.strat-ai-metric-grid strong {
    color: #f1fdff;
}

.strat-ai-section-head h2,
.strat-ai-strategy-card h3,
.strat-ai-feed-main strong,
.strat-ai-ranked-item strong {
    margin: 0;
    color: #f1fdff;
}

.strat-ai-section-head h2,
.strat-ai-board-title,
.strat-ai-panel-head,
.strat-ai-mini-meta,
.strat-ai-card-category,
.strat-ai-command-stat span {
    font-family: "IBM Plex Mono", monospace;
}

.strat-ai-latest-panel,
.strat-ai-tabs-panel {
    position: relative;
    padding: 1.2rem;
    background: #0b1017;
    border: 1px solid rgba(102, 255, 173, 0.12);
    box-shadow: none;
}

.strat-ai-latest-panel .strat-ai-section-head {
    margin-bottom: 1.15rem;
}

.strat-ai-latest-panel::before,
.strat-ai-tabs-panel::before {
    content: none;
}

.strat-ai-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    transition: opacity 180ms ease, transform 180ms ease;
}

.strat-ai-latest-grid.is-replacing {
    opacity: 0.18;
    transform: translateY(-14px) scale(0.985);
}

.strat-ai-latest-grid.is-entering {
    animation: strat-ai-latest-strip-in 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.strat-ai-skeleton-stack {
    display: grid;
    gap: 0.9rem;
}

.strat-ai-skeleton-card {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(118, 136, 161, 0.14);
    background: #0b1017;
}

.strat-ai-skeleton-head,
.strat-ai-skeleton-feed-row,
.strat-ai-skeleton-ranked-side {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.strat-ai-skeleton-copy,
.strat-ai-skeleton-feed-main,
.strat-ai-skeleton-ranked-main {
    display: grid;
    gap: 0.65rem;
}

.strat-ai-skeleton-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.strat-ai-skeleton-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.strat-ai-skeleton-metric {
    display: grid;
    gap: 0.45rem;
}

.strat-ai-skeleton-card-feed {
    padding: 1rem 1.05rem;
}

.strat-ai-skeleton-card-feed,
.strat-ai-skeleton-card-ranked {
    min-height: 0;
}

.strat-ai-skeleton-card-board {
    min-height: 180px;
}

.strat-ai-skeleton-feed-main {
    flex: 1 1 auto;
}

.strat-ai-skeleton-feed-side {
    display: grid;
    gap: 0.6rem;
    min-width: 110px;
}

.strat-ai-skeleton-feed-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-top: 0.25rem;
    flex: 0 0 auto;
}

.strat-ai-skeleton-rank {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    flex: 0 0 auto;
}

.strat-ai-skeleton-ranked-main {
    flex: 1 1 auto;
}

.strat-ai-skeleton-ranked-side {
    display: grid;
    gap: 0.55rem;
    min-width: 88px;
}

.strat-ai-skeleton-kicker {
    width: 110px;
}

.strat-ai-skeleton-badge {
    width: 92px;
}

.strat-ai-skeleton-title {
    width: min(340px, 82%);
}

.strat-ai-skeleton-chip-short {
    width: 72px;
}

.strat-ai-skeleton-copy-short {
    width: min(260px, 58%);
}

.strat-ai-skeleton-table-row td {
    padding: 0.85rem 0.75rem;
}

.strat-ai-skeleton-table-cell {
    width: 100%;
    min-width: 54px;
}

.strat-ai-tab-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.strat-ai-tablist {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem;
    border-radius: 14px;
    background: rgba(5, 12, 15, 0.96);
    border: 1px solid rgba(102, 255, 173, 0.1);
}

.strat-ai-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: rgba(168, 203, 190, 0.76);
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.strat-ai-tab::before {
    content: "$";
    margin-right: 0.45rem;
    color: rgba(102, 255, 173, 0.54);
}

.strat-ai-tab:hover {
    color: #effcff;
}

#strat-ai-tab-feed-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[data-target="feed"],
#strat-ai-tab-board-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[data-target="board"],
#strat-ai-tab-all-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[data-target="all"] {
    color: #caffdf;
    background: rgba(18, 38, 26, 0.92);
    box-shadow: inset 0 0 0 1px rgba(102, 255, 173, 0.18);
}

.strat-ai-tab-panel {
    display: grid;
    gap: 0.9rem;
}

.strat-ai-tab-content {
    display: grid;
    margin-top: 1rem;
}

.strat-ai-tab-panel {
    display: none;
}

#strat-ai-tab-feed-toggle:checked ~ .strat-ai-tab-content .strat-ai-tab-panel-feed,
#strat-ai-tab-board-toggle:checked ~ .strat-ai-tab-content .strat-ai-tab-panel-board,
#strat-ai-tab-all-toggle:checked ~ .strat-ai-tab-content .strat-ai-tab-panel-all {
    display: grid;
}

.strat-ai-panel-head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.strat-ai-strategy-card {
    padding: 1rem;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
    background: #0b1017;
    border-color: rgba(102, 255, 173, 0.11);
    box-shadow: none;
}

.strat-ai-card-link,
.strat-ai-feed-link,
.strat-ai-ranked-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.strat-ai-card-link:hover .strat-ai-strategy-card,
.strat-ai-feed-link:hover .strat-ai-feed-item,
.strat-ai-ranked-link:hover .strat-ai-ranked-item {
    border-color: rgba(102, 255, 173, 0.3);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(102, 255, 173, 0.06);
    transform: translateY(-2px);
}

.strat-ai-strategy-card.latest {
    min-height: 100%;
}

.strat-ai-strategy-card.latest.featured {
    background: #0b1017;
    border-color: rgba(102, 255, 173, 0.18);
}

.strat-ai-strategy-card.latest.compact {
    padding: 0.9rem;
}

.strat-ai-strategy-card.latest.compact h3 {
    font-size: 1rem;
}

.strat-ai-strategy-card.latest.is-fresh {
    animation: strat-ai-latest-card-in 720ms cubic-bezier(0.18, 0.8, 0.2, 1);
}

.strat-ai-strategy-card.compact {
    min-height: 100%;
}

.strat-ai-strategy-card.is-fresh {
    border-color: rgba(110, 231, 183, 0.42);
    box-shadow: 0 0 0 1px rgba(110, 231, 183, 0.12), 0 0 28px rgba(52, 211, 153, 0.18);
}

.strat-ai-card-badge,
.strat-ai-mini-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
}

.strat-ai-card-badge {
    color: #0a130d;
    background: linear-gradient(135deg, #6cffad, #9bffcb);
    font-family: "IBM Plex Mono", monospace;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.strat-ai-mini-pill {
    color: #d6fbe0;
    background: rgba(18, 33, 23, 0.92);
    border: 1px solid rgba(102, 255, 173, 0.12);
    font-family: "IBM Plex Mono", monospace;
}

.strat-ai-pill-row {
    flex-wrap: wrap;
    margin: 0.8rem 0 0.65rem;
}

.strat-ai-note {
    margin: 0 0 0.9rem;
    color: rgba(212, 233, 239, 0.8);
}

.strat-ai-metric-grid {
    flex-wrap: wrap;
}

.strat-ai-metric-grid > div {
    min-width: 118px;
    flex: 1 1 118px;
}

.strat-ai-history-list {
    flex-direction: column;
}

.strat-ai-latest-empty {
    min-height: 100%;
    display: grid;
    place-items: center;
}

.strat-ai-feed-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.95rem;
    padding: 1rem 1.05rem;
    background:
        linear-gradient(180deg, rgba(7, 13, 17, 0.98), rgba(6, 11, 14, 0.98)),
        rgba(8, 23, 29, 0.74);
    border-left: none;
}

.strat-ai-feed-marker {
    width: 10px;
    height: 10px;
    margin-top: 0.38rem;
    border-radius: 999px;
    background: rgba(102, 255, 173, 0.34);
    box-shadow: 0 0 0 4px rgba(102, 255, 173, 0.06);
}

.strat-ai-feed-marker.status-positive {
    background: rgba(78, 214, 153, 0.92);
    box-shadow: 0 0 0 4px rgba(78, 214, 153, 0.1);
}

.strat-ai-feed-marker.status-negative {
    background: rgba(255, 107, 107, 0.88);
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.08);
}

.strat-ai-feed-marker.status-warning {
    background: rgba(255, 193, 96, 0.9);
    box-shadow: 0 0 0 4px rgba(255, 193, 96, 0.08);
}

.strat-ai-feed-main {
    display: grid;
    gap: 0.15rem;
}

.strat-ai-feed-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.8rem;
}

.strat-ai-feed-subtitle {
    color: rgba(144, 162, 179, 0.72);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.strat-ai-feed-summary {
    margin: 0;
    color: rgba(214, 230, 236, 0.82);
    font-size: 0.78rem;
    line-height: 1.55;
}

.strat-ai-feed-side {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
    color: rgba(220, 241, 245, 0.78);
    min-width: 0;
}

.strat-ai-feed-score {
    color: rgba(231, 243, 247, 0.82);
    white-space: nowrap;
}

.strat-ai-feed-score-label {
    color: rgba(214, 230, 236, 0.82);
}

.strat-ai-feed-score-value {
    font-weight: 700;
}

.strat-ai-feed-time {
    color: rgba(150, 169, 183, 0.72);
    font-size: 0.74rem;
    white-space: nowrap;
}

.strat-ai-feed-time-mobile {
    display: none;
}

.strat-ai-board-shell {
    display: grid;
    gap: 1rem;
}

.strat-ai-highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.strat-ai-board-panel {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(102, 255, 173, 0.1);
    background: #0b1017;
}

.strat-ai-board-title::before,
.strat-ai-section-head h2::before {
    content: "// ";
    color: rgba(102, 255, 173, 0.48);
}

.strat-ai-board-panel-featured {
    min-height: 100%;
}

.strat-ai-board-panel-ranked {
    padding-top: 1.05rem;
}

.strat-ai-ranked-item {
    padding: 0.9rem 1rem;
    align-items: center;
    background:
        linear-gradient(180deg, rgba(7, 13, 17, 0.98), rgba(6, 11, 14, 0.98)),
        rgba(8, 23, 29, 0.74);
    border-left: 2px solid rgba(102, 255, 173, 0.14);
}

.strat-ai-ranked-index {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(102, 255, 173, 0.16);
    background: rgba(11, 26, 18, 0.92);
    color: #d5ffdf;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 700;
}

.strat-ai-ranked-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.strat-ai-ranked-copy span {
    display: block;
    color: rgba(188, 217, 224, 0.74);
}

.strat-ai-ranked-metric {
    color: rgba(214, 246, 255, 0.88);
    font-weight: 600;
}

.strat-ai-empty-state {
    padding: 1rem;
}

.strat-ai-detail-hero {
    margin-bottom: 1rem;
}

.strat-ai-detail-hero-grid {
    align-items: start;
}

.strat-ai-detail-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.strat-ai-detail-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.strat-ai-detail-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(94, 234, 212, 0.15);
    background: rgba(8, 24, 31, 0.76);
    color: #dffcff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.strat-ai-detail-grid {
    align-items: start;
}

.strat-ai-detail-stack {
    display: grid;
    gap: 1rem;
}

.strat-ai-detail-vertical-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.strat-ai-detail-description {
    margin: 0 0 0.8rem;
}

.strat-ai-detail-definition-grid,
.strat-ai-diagnostics-grid {
    display: grid;
    gap: 1rem;
}

.strat-ai-detail-definition-block {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(95, 206, 224, 0.12);
    background: rgba(9, 24, 30, 0.62);
}

.strat-ai-detail-definition-block > span {
    display: block;
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(186, 216, 223, 0.7);
}

.strat-ai-period-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.strat-ai-period-card {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(95, 206, 224, 0.12);
    background:
        linear-gradient(180deg, rgba(9, 24, 30, 0.92), rgba(6, 17, 23, 0.98)),
        #07161f;
}

.strat-ai-period-card.is-primary {
    border-color: rgba(94, 234, 212, 0.26);
    box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.08), 0 20px 40px rgba(2, 12, 18, 0.18);
}

.strat-ai-period-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.strat-ai-period-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.strat-ai-period-metrics span {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(186, 216, 223, 0.7);
}

.strat-ai-period-metrics strong {
    color: #f1fdff;
}

.strat-ai-detail-list {
    display: grid;
    gap: 0.55rem;
}

.strat-ai-detail-list-item {
    padding: 0.7rem 0.85rem;
    border-radius: 16px;
    border: 1px solid rgba(248, 180, 180, 0.16);
    background: rgba(40, 16, 18, 0.32);
    color: rgba(248, 214, 214, 0.9);
}

.strat-ai-detail-note {
    margin: 0;
    color: rgba(212, 233, 239, 0.8);
}

body .topbar {
    background: #0a1015;
    border-bottom: 1px solid rgba(102, 255, 173, 0.08);
    box-shadow: none;
}

body .brand-mark {
    border-color: rgba(102, 255, 173, 0.12);
    background: #111920;
    color: #dbffe8;
    box-shadow: none;
}

body .nav-link {
    color: #98aa9f;
    border-color: transparent;
    background: transparent;
    text-shadow: none;
}

body .nav-link:hover,
body .nav-link.active {
    background: #132019;
    border-color: rgba(102, 255, 173, 0.12);
    color: #effff5;
}

body .market-switch {
    background: #0f171d;
    border: 1px solid rgba(102, 255, 173, 0.1);
    backdrop-filter: none;
    box-shadow: none;
}

body .market-switch-pill {
    color: #8ea797;
    text-shadow: none;
}

body .market-switch-pill.active {
    background: #6cffad;
    color: #07130c;
    box-shadow: none;
}

@keyframes strat-ai-code-flicker {
    0% {
        opacity: 0;
        transform: translate3d(0, 12px, 0);
    }
    8% {
        opacity: 0.22;
        transform: translate3d(0, 0, 0);
    }
    16% {
        opacity: 0.08;
        transform: translate3d(2px, -3px, 0);
    }
    24% {
        opacity: 0.2;
        transform: translate3d(0, -8px, 0);
    }
    36% {
        opacity: 0;
        transform: translate3d(0, -14px, 0);
    }
    100% {
        opacity: 0;
        transform: translate3d(0, -18px, 0);
    }
}

@keyframes strat-ai-terminal-idle {
    0%, 100% {
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 0 rgba(120, 255, 173, 0);
        border-color: rgba(108, 240, 171, 0.14);
    }
    50% {
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 24px rgba(120, 255, 173, 0.03);
        border-color: rgba(108, 240, 171, 0.18);
    }
}

@keyframes strat-ai-terminal-phosphor {
    0%, 100% {
        opacity: 0.32;
    }
    50% {
        opacity: 0.58;
    }
}

@keyframes strat-ai-terminal-cursor {
    0%, 48% {
        opacity: 0;
    }
    49%, 100% {
        opacity: 1;
    }
}

@keyframes strat-ai-latest-strip-in {
    0% {
        opacity: 0.28;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes strat-ai-latest-card-in {
    0% {
        opacity: 0;
        transform: translateY(26px) scale(0.97);
        border-color: rgba(110, 231, 183, 0.52);
        box-shadow: 0 0 0 1px rgba(110, 231, 183, 0.12), 0 0 0 rgba(52, 211, 153, 0);
    }
    55% {
        opacity: 1;
        transform: translateY(-3px) scale(1.01);
        border-color: rgba(110, 231, 183, 0.52);
        box-shadow: 0 0 0 1px rgba(110, 231, 183, 0.12), 0 0 34px rgba(52, 211, 153, 0.22);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        border-color: rgba(110, 231, 183, 0.42);
        box-shadow: 0 0 0 1px rgba(110, 231, 183, 0.12), 0 0 28px rgba(52, 211, 153, 0.18);
    }
}

@media (max-width: 1080px) {
    .strat-ai-terminal-grid,
    .strat-ai-latest-grid,
    .strat-ai-highlight-grid,
    .strat-ai-period-grid,
    .strat-ai-commandbar-head,
    .strat-ai-feed-item {
        flex-direction: column;
        align-items: stretch;
    }

    .strat-ai-command-meta,
    .strat-ai-feed-side {
        justify-content: flex-start;
    }

    .strat-ai-feed-item {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .strat-ai-feed-marker {
        display: none;
    }

    .strat-ai-feed-time {
        display: none;
    }

    .strat-ai-feed-time-mobile {
        display: inline-flex;
    }

    .strat-ai-feed-title-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .strat-ai-highlight-grid {
        grid-template-columns: 1fr;
    }

    .strat-ai-latest-grid {
        grid-template-columns: 1fr;
    }

    .strat-ai-period-grid {
        grid-template-columns: 1fr;
    }

    .strat-ai-command-sidecar {
        flex: 1 1 auto;
        min-width: 0;
    }
}

@media (max-width: 720px) {
    .strat-ai-commandbar,
    .strat-ai-latest-panel,
    .strat-ai-tabs-panel {
        padding: 1rem;
        border-radius: 22px;
    }

    .strat-ai-command-stats {
        gap: 0.45rem;
    }

    .strat-ai-command-statline {
        grid-template-columns: 94px minmax(0, 1fr);
    }

    .strat-ai-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .strat-ai-tablist {
        width: 100%;
    }

    .strat-ai-tab {
        flex: 1 1 0;
    }

    .strat-ai-latest-grid {
        gap: 0.8rem;
    }

    .strat-ai-terminal-prefix {
        flex-basis: 78px;
    }

    .strat-ai-detail-hero-stats,
    .strat-ai-period-metrics {
        grid-template-columns: 1fr;
    }
}

.strat-ai-table-shell {
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid rgba(95, 206, 224, 0.12);
    background: rgba(8, 23, 29, 0.56);
}

.strat-ai-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.strat-ai-table-toolbar-bottom {
    margin-top: 0.85rem;
    margin-bottom: 0;
}

.strat-ai-table-summary {
    color: #f1fdff;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
}

.strat-ai-filter-bar {
    display: grid;
    grid-template-columns: minmax(15rem, 1.6fr) repeat(5, minmax(8.5rem, 1fr)) auto;
    gap: 0.85rem;
    margin-bottom: 0.95rem;
    align-items: end;
}

.strat-ai-filter-field {
    display: grid;
    gap: 0.38rem;
}

.strat-ai-filter-field span {
    color: rgba(186, 216, 223, 0.78);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.strat-ai-filter-input,
.strat-ai-filter-select,
.strat-ai-filter-reset {
    min-height: 2.7rem;
    border-radius: 12px;
    border: 1px solid rgba(95, 206, 224, 0.14);
    background: rgba(8, 23, 29, 0.56);
    color: #f1fdff;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
}

.strat-ai-filter-input,
.strat-ai-filter-select {
    width: 100%;
    padding: 0.68rem 0.85rem;
}

.strat-ai-filter-input::placeholder {
    color: rgba(186, 216, 223, 0.48);
}

.strat-ai-filter-input:focus,
.strat-ai-filter-select:focus,
.strat-ai-filter-reset:focus {
    outline: none;
    border-color: rgba(102, 255, 173, 0.3);
    box-shadow: 0 0 0 3px rgba(102, 255, 173, 0.08);
}

.strat-ai-filter-select {
    appearance: none;
}

.strat-ai-filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.68rem 1rem;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.strat-ai-filter-reset:hover {
    background: rgba(14, 32, 39, 0.9);
    border-color: rgba(102, 255, 173, 0.18);
    color: #f1fdff;
}

.strat-ai-pagination {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.strat-ai-page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(95, 206, 224, 0.14);
    background: rgba(8, 23, 29, 0.56);
    color: rgba(225, 245, 249, 0.88);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.76rem;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.strat-ai-page-button:hover:not(:disabled) {
    background: rgba(14, 32, 39, 0.9);
    border-color: rgba(102, 255, 173, 0.18);
    color: #f1fdff;
}

.strat-ai-page-button.is-active {
    background: rgba(18, 38, 26, 0.92);
    border-color: rgba(102, 255, 173, 0.18);
    color: #caffdf;
}

.strat-ai-page-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.strat-ai-page-button.is-disabled,
.strat-ai-page-button[aria-disabled="true"] {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

.strat-ai-detail-tabs-panel {
    display: grid;
    gap: 1rem;
}

.strat-ai-footprint-window-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.strat-ai-footprint-window {
    display: grid;
    gap: 0.16rem;
    min-width: 132px;
    padding: 0.72rem 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(95, 206, 224, 0.12);
    background: rgba(8, 23, 29, 0.4);
    color: rgba(225, 245, 249, 0.82);
    text-align: left;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.strat-ai-footprint-window strong {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.strat-ai-footprint-window span {
    font-size: 0.72rem;
    color: rgba(186, 216, 223, 0.72);
}

.strat-ai-footprint-window:hover {
    background: rgba(14, 32, 39, 0.82);
    color: #f1fdff;
}

.strat-ai-footprint-window.is-active {
    background: rgba(18, 38, 26, 0.92);
    border-color: rgba(102, 255, 173, 0.18);
    color: #caffdf;
}

.strat-ai-footprint-window.is-active span {
    color: rgba(202, 255, 223, 0.8);
}

.strat-ai-symbol-row {
    cursor: pointer;
    transition: background 140ms ease, color 140ms ease;
}

.strat-ai-symbol-row td {
    transition: background 140ms ease, border-color 140ms ease;
}

.strat-ai-symbol-row:hover td {
    background: rgba(32, 43, 57, 0.68);
}

.strat-ai-symbol-row.is-active {
    color: #f8fbff;
}

.strat-ai-symbol-row.is-active td {
    background: rgba(17, 28, 40, 0.96);
    border-bottom-color: transparent;
}

.strat-ai-symbol-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px 16px;
}

.strat-ai-symbol-modal[hidden] {
    display: none !important;
}

.strat-ai-symbol-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.68);
    backdrop-filter: blur(12px);
}

.strat-ai-symbol-dialog {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    max-height: calc(100dvh - 40px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(8, 14, 22, 0.985), rgba(10, 16, 25, 0.985));
    border: 1px solid rgba(93, 114, 140, 0.24);
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.58);
    color: #e2e8f0;
    overflow: hidden;
}

.strat-ai-symbol-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.strat-ai-symbol-dialog-head h2 {
    margin: 4px 0 0;
    color: #f8fafc;
}

.strat-ai-symbol-dialog-subtitle {
    margin: 8px 0 0;
    color: rgba(148, 163, 184, 0.82);
    font-size: 0.94rem;
}

.strat-ai-symbol-dialog-close {
    width: 2.2rem;
    height: 2.2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.strat-ai-symbol-dialog-close:hover {
    background: rgba(148, 163, 184, 0.2);
}

.strat-ai-symbol-modal-body {
    min-height: 0;
    min-width: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    display: grid;
    gap: 18px;
    padding-right: 4px;
}

.strat-ai-symbol-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.strat-ai-symbol-stat {
    padding: 16px;
    border-radius: 16px;
    background: rgba(12, 20, 31, 0.82);
    border: 1px solid rgba(93, 114, 140, 0.2);
}

.strat-ai-symbol-stat span {
    display: block;
    margin-bottom: 6px;
    color: rgba(148, 163, 184, 0.84);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.strat-ai-symbol-stat strong {
    display: block;
    color: #f8fafc;
    font-size: 1.12rem;
    line-height: 1.1;
}

.strat-ai-symbol-chart-shell {
    min-width: 0;
    height: 560px;
    border-radius: 20px;
    background: rgba(9, 15, 23, 0.96);
    overflow: hidden;
}

.strat-ai-symbol-modal-tv-chart {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.strat-ai-symbol-trade-panel {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.strat-ai-symbol-trade-table-wrap {
    width: 100%;
    min-width: 0;
    max-height: min(38vh, 380px);
    overflow-x: auto;
    overflow-y: auto;
    border-radius: 18px;
    border: 1px solid rgba(93, 114, 140, 0.2);
    background: rgba(9, 15, 23, 0.9);
}

.strat-ai-symbol-trade-table-wrap .screener-table {
    width: max-content;
    min-width: 100%;
}

.strat-ai-symbol-trade-table-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(11, 18, 28, 0.98);
}

html.strat-ai-symbol-modal-open,
body.strat-ai-symbol-modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .strat-ai-symbol-dialog {
        width: min(100%, 1120px);
        max-height: calc(100dvh - 20px);
        padding: 18px;
    }
}

.strat-ai-detail-tab-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.strat-ai-detail-tablist {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.strat-ai-detail-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.45rem;
    padding: 0.58rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(95, 206, 224, 0.14);
    background: rgba(8, 23, 29, 0.4);
    color: rgba(225, 245, 249, 0.78);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.strat-ai-detail-tab:hover {
    background: rgba(14, 32, 39, 0.82);
    color: #f1fdff;
}

#strat-ai-detail-tab-symbols-toggle:checked ~ .strat-ai-detail-tablist .strat-ai-detail-tab[data-target="symbols"],
#strat-ai-detail-tab-trades-toggle:checked ~ .strat-ai-detail-tablist .strat-ai-detail-tab[data-target="trades"],
#researcher-detail-tab-symbols-toggle:checked ~ .strat-ai-detail-tablist .strat-ai-detail-tab[data-target="researcher-symbols"],
#researcher-detail-tab-trades-toggle:checked ~ .strat-ai-detail-tablist .strat-ai-detail-tab[data-target="researcher-trades"] {
    background: rgba(18, 38, 26, 0.92);
    border-color: rgba(102, 255, 173, 0.18);
    color: #caffdf;
}

.strat-ai-detail-tab-content {
    display: grid;
}

.strat-ai-detail-tab-panel {
    display: none;
    min-width: 0;
}

#strat-ai-detail-tab-symbols-toggle:checked ~ .strat-ai-detail-tab-content .strat-ai-detail-tab-panel-symbols,
#strat-ai-detail-tab-trades-toggle:checked ~ .strat-ai-detail-tab-content .strat-ai-detail-tab-panel-trades,
#researcher-detail-tab-symbols-toggle:checked ~ .strat-ai-detail-tab-content .strat-ai-detail-tab-panel-symbols,
#researcher-detail-tab-trades-toggle:checked ~ .strat-ai-detail-tab-content .strat-ai-detail-tab-panel-trades {
    display: block;
}

.strat-ai-table {
    width: 100%;
    min-width: 1020px;
    border-collapse: collapse;
}

.strat-ai-table thead th {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(95, 206, 224, 0.12);
    text-align: left;
    white-space: nowrap;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(186, 216, 223, 0.78);
}

.strat-ai-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid rgba(95, 206, 224, 0.08);
    color: #f1fdff;
    vertical-align: top;
}

.strat-ai-table tbody tr:last-child td {
    border-bottom: 0;
}

.strat-ai-table tbody tr:hover {
    background: rgba(95, 206, 224, 0.04);
}

.strat-ai-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.strat-ai-sort-button::after {
    content: "↕";
    opacity: 0.35;
    font-size: 0.8rem;
}

.strat-ai-sort-button.is-active::after {
    content: attr(data-direction);
    opacity: 1;
    font-size: 0.7rem;
}

.strat-ai-table-link {
    display: grid;
    gap: 0.3rem;
    color: inherit;
    text-decoration: none;
}

.strat-ai-table-link-inline {
    display: inline-grid;
}

.strat-ai-table-link strong {
    color: #f1fdff;
}

.strat-ai-table-link span {
    font-size: 0.78rem;
    color: rgba(186, 216, 223, 0.76);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.strat-ai-table-source-origin {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    border: 1px solid rgba(149, 169, 191, 0.26);
    background: rgba(17, 29, 40, 0.9);
    color: #edf6fb;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
}

.strat-ai-table-link-inline span {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    border: 1px solid rgba(149, 169, 191, 0.26);
    background: rgba(17, 29, 40, 0.9);
    color: #edf6fb;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
}

.strat-ai-table-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(18, 33, 23, 0.92);
    border: 1px solid rgba(102, 255, 173, 0.12);
    color: #d6fbe0;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.strat-ai-card-badge.is-positive,
.strat-ai-mini-pill.is-positive,
.strat-ai-table-badge.is-positive {
    background: rgba(18, 56, 35, 0.94);
    border-color: rgba(110, 231, 183, 0.2);
    color: #bff9d8;
}

.strat-ai-card-badge.is-negative,
.strat-ai-mini-pill.is-negative,
.strat-ai-table-badge.is-negative {
    background: rgba(68, 22, 28, 0.94);
    border-color: rgba(252, 165, 165, 0.18);
    color: #ffc5ca;
}

.strat-ai-status-text.is-positive {
    color: #8ee6b5;
}

.strat-ai-status-text.is-negative {
    color: #ff9aa4;
}

.strat-ai-score-value {
    --score-color: #ffd166;
    display: inline-block;
    color: var(--score-color);
    -webkit-text-fill-color: currentColor;
    font-weight: 700;
}

.strat-ai-score-value-inline {
    font-size: inherit;
    line-height: inherit;
}

.strat-ai-score-value-table {
    font-size: 0.95rem;
}

.strat-ai-table-baseline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(149, 169, 191, 0.28);
    background: rgba(17, 29, 40, 0.92);
    color: #edf6fb;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.strat-ai-lineage-flow {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.strat-ai-lineage-node {
    display: grid;
    gap: 0.25rem;
    min-width: 180px;
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
    border: 1px solid rgba(95, 206, 224, 0.12);
    background: rgba(8, 23, 29, 0.46);
    color: inherit;
    text-decoration: none;
}

.strat-ai-lineage-node span {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(186, 216, 223, 0.76);
}

.strat-ai-lineage-node strong {
    color: #f1fdff;
}

.strat-ai-lineage-node.is-baseline {
    border-color: rgba(186, 216, 223, 0.18);
}

.strat-ai-lineage-node.is-current {
    border-color: rgba(102, 255, 173, 0.18);
    box-shadow: inset 0 0 0 1px rgba(102, 255, 173, 0.05);
}

.strat-ai-lineage-arrow {
    color: rgba(186, 216, 223, 0.58);
    font-size: 1rem;
}

.strat-ai-lineage-parents {
    margin-top: 1rem;
    display: grid;
    gap: 0.65rem;
}

.strat-ai-lineage-parents > span {
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(186, 216, 223, 0.76);
}

.strat-ai-lineage-parent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.strat-ai-lineage-parent-chip {
    display: grid;
    gap: 0.2rem;
    padding: 0.7rem 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(95, 206, 224, 0.12);
    background: rgba(8, 23, 29, 0.42);
    color: inherit;
    text-decoration: none;
}

.strat-ai-lineage-parent-chip strong {
    color: #f1fdff;
}

.strat-ai-lineage-parent-chip small {
    color: rgba(186, 216, 223, 0.72);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.strat-ai-lineage-score {
    color: rgba(225, 239, 244, 0.84);
    font-size: 0.74rem;
    letter-spacing: 0.01em;
    text-transform: none;
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

.strat-ai-detail-more-info {
    padding-top: 0.35rem;
    border: none;
    background: transparent;
    box-shadow: none;
}

.strat-ai-detail-more-info-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    cursor: pointer;
    list-style: none;
    color: #dce9ee;
    font-weight: 600;
    width: 100%;
    padding: 0.35rem 0;
    text-align: center;
}

.strat-ai-detail-more-info-toggle::-webkit-details-marker {
    display: none;
}

.strat-ai-detail-more-info-toggle::before {
    content: "›";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border: none;
    color: rgba(186, 216, 223, 0.82);
    transform: rotate(0deg);
    transition: transform 140ms ease;
    font-size: 1rem;
    line-height: 1;
}

.strat-ai-detail-more-info[open] .strat-ai-detail-more-info-toggle::before {
    transform: rotate(90deg);
}

.strat-ai-detail-more-info .strat-ai-diagnostics-grid {
    margin-top: 1rem;
}

@media (max-width: 720px) {
    .strat-ai-table-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .strat-ai-filter-bar {
        grid-template-columns: 1fr;
    }

    .strat-ai-filter-field-search {
        grid-column: auto;
    }
}

.screener-hero-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.screener-detail-page {
    display: grid;
    gap: 0.9rem;
}

.screener-detail-hero {
    padding: 0.1rem 0 0.45rem;
}

.screener-detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.screener-detail-hero-main {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}

.screener-detail-hero-main h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.7rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.screener-detail-tagline {
    margin: 0;
    max-width: 68ch;
    color: rgba(188, 215, 223, 0.78);
    font-size: 1rem;
    line-height: 1.55;
}

.screener-detail-results {
    min-width: 0;
}

.screener-results-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.65rem;
}

.screener-market-switch {
    gap: 0.24rem;
    padding: 0.22rem;
    border-radius: 12px;
    background: rgba(8, 20, 26, 0.38);
}

.screener-market-switch .market-switch-pill {
    min-width: 42px;
    min-height: 30px;
    padding: 0 0.72rem;
    border-radius: 9px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.screener-market-switch .market-switch-pill.active {
    background: rgba(255, 255, 255, 0.065);
    border-color: rgba(116, 142, 152, 0.16);
    color: #f3fbfd;
    box-shadow: none;
}

.screener-market-switch .market-switch-pill:hover {
    transform: none;
}

.screener-empty-inline {
    display: flex;
    justify-content: center;
    padding: 2.4rem 0 1.8rem;
    text-align: center;
}

.screener-empty-inline p {
    margin: 0;
    color: rgba(188, 215, 223, 0.72);
    font-size: 0.98rem;
    line-height: 1.55;
}

.screener-detail-table-wrap {
    overflow: auto;
    border: 1px solid rgba(84, 111, 121, 0.14);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(8, 20, 26, 0.58), rgba(6, 17, 22, 0.46)),
        rgba(7, 18, 24, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.015);
}

.screener-detail-table {
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

.screener-detail-table thead th {
    padding: 0.95rem 0.95rem 0.8rem;
    border-bottom: 1px solid rgba(90, 116, 126, 0.22);
    background: rgba(255, 255, 255, 0.01);
    color: rgba(176, 203, 211, 0.68);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.screener-detail-table tbody td {
    padding: 0.95rem;
    border-bottom: 1px solid rgba(90, 116, 126, 0.14);
    background: rgba(255, 255, 255, 0.012);
    vertical-align: middle;
}

.screener-detail-table tbody tr {
    transition: background-color 160ms ease;
}

.screener-detail-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.024);
}

.screener-detail-table tbody tr:hover td {
    background: rgba(11, 27, 35, 0.56);
}

.screener-detail-table .table-asset-link {
    gap: 0.85rem;
}

.screener-detail-table .table-asset-copy strong {
    color: #f2fdff;
}

.screener-detail-table .table-asset-copy span,
.screener-detail-table .table-reason {
    color: rgba(181, 208, 216, 0.76);
}

.screener-detail-table .table-reason {
    max-width: 30ch;
    line-height: 1.45;
}

.forecast-panel {
    display: grid;
    gap: 18px;
    margin: 18px 0;
}

.forecast-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.forecast-panel-copy {
    display: grid;
    gap: 10px;
}

.forecast-panel-copy h2,
.forecast-panel-copy p,
.forecast-panel-note,
.forecast-empty-state p {
    margin: 0;
}

.forecast-bias {
    display: inline-grid;
    gap: 4px;
    min-width: 176px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(117, 178, 181, 0.14);
    text-align: right;
}

.forecast-bias span {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.forecast-bias strong {
    font-size: 1.02rem;
    letter-spacing: 0;
}

.forecast-bias-bullish {
    background: rgba(27, 71, 52, 0.5);
    border-color: rgba(63, 201, 146, 0.2);
    color: #bdf8df;
}

.forecast-bias-bearish {
    background: rgba(82, 33, 42, 0.46);
    border-color: rgba(235, 112, 134, 0.18);
    color: #ffd2db;
}

.forecast-bias-neutral {
    background: rgba(55, 68, 78, 0.48);
    border-color: rgba(148, 163, 184, 0.16);
    color: #d7e2ea;
}

.forecast-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.forecast-metric {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid rgba(117, 178, 181, 0.12);
    border-radius: 14px;
    background: rgba(14, 27, 36, 0.58);
}

.forecast-metric span {
    color: rgba(149, 167, 181, 0.78);
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.forecast-metric strong {
    color: #edf8fa;
    font-size: 1.1rem;
    letter-spacing: 0;
}

.forecast-panel-note {
    max-width: 72ch;
    line-height: 1.55;
}

.forecast-empty-state {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border: 1px dashed rgba(117, 178, 181, 0.16);
    border-radius: 14px;
    background: rgba(14, 27, 36, 0.42);
}

.forecast-empty-state strong {
    color: #eef8fb;
    font-size: 1rem;
}

.screener-strategy-launch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 2.5rem;
    padding: 0 0.92rem;
    border: 1px solid rgba(92, 119, 130, 0.2);
    border-radius: 999px;
    background: rgba(9, 22, 28, 0.55);
    color: #dffbff;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
    white-space: nowrap;
}

.screener-strategy-launch:hover {
    background: rgba(12, 29, 36, 0.8);
    border-color: rgba(82, 211, 219, 0.28);
    transform: translateY(-1px);
}

.screener-strategy-launch.is-disabled,
.screener-strategy-launch:disabled {
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(92, 119, 130, 0.12);
    color: rgba(199, 214, 220, 0.72);
    cursor: default;
    transform: none;
    box-shadow: none;
}

.screener-strategy-launch.is-disabled:hover,
.screener-strategy-launch:disabled:hover {
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(92, 119, 130, 0.12);
    transform: none;
}

.screener-strategy-launch-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: rgba(82, 211, 219, 0.16);
    color: #7aeaf4;
    font-size: 0.8rem;
    line-height: 1;
}

.screener-strategy-launch.is-disabled .screener-strategy-launch-icon,
.screener-strategy-launch:disabled .screener-strategy-launch-icon {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(176, 194, 201, 0.68);
}

.screener-strategy-launch-count {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(223, 251, 255, 0.76);
}

.screener-strategy-launch.is-disabled .screener-strategy-launch-count,
.screener-strategy-launch:disabled .screener-strategy-launch-count {
    color: rgba(199, 214, 220, 0.72);
}

@media (max-width: 900px) {
    .screener-detail-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .screener-hero-actions {
        justify-content: flex-start;
    }

    .screener-results-toolbar {
        justify-content: flex-start;
    }

    .forecast-panel-header {
        flex-direction: column;
    }

    .forecast-bias {
        min-width: 0;
        width: 100%;
        text-align: left;
    }

    .forecast-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

.screener-strategy-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
}

.screener-strategy-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(10px);
}

.screener-strategy-dialog {
    position: relative;
    z-index: 1;
    width: min(920px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(3, 10, 18, 0.98), rgba(8, 17, 28, 0.98));
    border: 1px solid rgba(71, 85, 105, 0.32);
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.55);
    color: #e2e8f0;
}

.screener-strategy-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.screener-strategy-dialog-head h2 {
    margin: 4px 0 0;
    color: #f8fafc;
}

.screener-strategy-dialog-close {
    width: 2.2rem;
    height: 2.2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.screener-strategy-dialog-close:hover {
    background: rgba(148, 163, 184, 0.2);
}

.screener-strategy-modal-body {
    overflow-y: auto;
    padding-right: 4px;
    min-height: 0;
}

.screener-strategy-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.screener-strategy-stat {
    padding: 16px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(71, 85, 105, 0.3);
}

.screener-strategy-stat span {
    display: block;
    margin-bottom: 6px;
    color: rgba(148, 163, 184, 0.88);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.screener-strategy-stat strong {
    display: block;
    color: #f8fafc;
    font-size: 1.2rem;
    line-height: 1.1;
}

.screener-strategy-table-wrap {
    max-height: min(60vh, 560px);
    overflow: auto;
    border-radius: 18px;
    border: 1px solid rgba(71, 85, 105, 0.3);
    background: rgba(2, 6, 23, 0.5);
}

.screener-strategy-table {
    min-width: 880px;
}

.screener-strategy-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(8, 17, 28, 0.96);
    color: rgba(148, 163, 184, 0.88);
    border-bottom-color: rgba(71, 85, 105, 0.4);
}

.screener-strategy-table td {
    color: #dbe4ef;
    border-bottom-color: rgba(51, 65, 85, 0.45);
}

.screener-strategy-table tbody tr:hover {
    background: rgba(15, 23, 42, 0.5);
}

.screener-strategy-link {
    color: inherit;
    text-decoration: none;
}

.screener-strategy-link .table-asset-copy strong {
    color: #f8fafc;
}

.screener-strategy-link .table-asset-copy span,
.screener-strategy-table .table-reason {
    color: rgba(148, 163, 184, 0.82);
}

.screener-strategy-table .status-pill {
    border-width: 1px;
}

.screener-strategy-table .status-passed {
    color: #86efac;
    background: rgba(20, 83, 45, 0.48);
    border-color: rgba(74, 222, 128, 0.28);
}

.screener-strategy-table .status-failed {
    color: #fca5a5;
    background: rgba(127, 29, 29, 0.48);
    border-color: rgba(248, 113, 113, 0.28);
}

.screener-strategy-table .status-grey {
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(100, 116, 139, 0.28);
}

@media (max-width: 900px) {
    .screener-strategy-dialog {
        width: min(100vw - 20px, 920px);
        max-height: calc(100vh - 20px);
        margin: 10px auto;
        padding: 18px;
    }
}

body.screener-strategy-modal-open {
    overflow: hidden;
}

.compact-copy strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.compact-strategy-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    color: #0f766e;
    font-size: 0.7rem;
    line-height: 1;
    background: rgba(20, 184, 166, 0.14);
    box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.18);
}

.compact-strategy-indicator.is-published {
    color: #0f766e;
    background: rgba(34, 197, 94, 0.14);
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.2);
}

.compact-strategy-count {
    margin-left: 8px;
    color: rgba(15, 118, 110, 0.92);
    font-size: 0.72rem;
    font-weight: 700;
}

.builder-mode-switch {
    display: grid;
    justify-items: center;
    gap: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.builder-mode-switch-copy {
    display: grid;
    gap: 6px;
    justify-items: center;
}

.builder-mode-switch-copy h2,
.builder-mode-switch-copy p {
    margin: 0;
}

.builder-mode-switch-copy p {
    color: var(--muted);
    max-width: 640px;
}

.builder-mode-switch-actions {
    display: inline-grid;
    grid-auto-flow: column;
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    justify-content: center;
    align-items: center;
}

.builder-mode-switch-actions .secondary-button {
    min-height: 42px;
    min-width: 164px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted-strong);
    box-shadow: none;
}

.strategy-builder-shell {
    position: relative;
}

.strategy-builder-shell.is-loading {
    cursor: wait;
}

.strategy-builder-shell [data-builder-page-body] {
    will-change: opacity, transform;
}

.strategy-builder-shell [data-builder-page-body].is-builder-pane-entering {
    animation: homePanelIn 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
    transform-origin: top center;
}

.strategy-builder-shell .builder-mode-switch-actions .secondary-button.is-loading {
    opacity: 0.82;
    pointer-events: none;
}

.builder-loading-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 18px;
    margin-top: 20px;
}

.builder-loading-card {
    display: grid;
    align-content: start;
    gap: 14px;
    min-height: 168px;
    padding: 22px;
}

.builder-loading-card:first-child {
    min-height: 220px;
}

.builder-loading-line {
    height: 12px;
    border-radius: 999px;
}

.builder-loading-line-title {
    width: min(260px, 62%);
    height: 16px;
}

.builder-loading-line-copy {
    width: min(420px, 88%);
}

.builder-loading-line-short {
    width: min(180px, 44%);
}

@keyframes strategyBuilderPaneIn {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.builder-mode-switch-actions .secondary-button.is-active {
    background: var(--accent-bright-bg);
    color: var(--accent-bright-text);
}

.strategy-leaderboard-shell {
    display: grid;
    gap: 18px;
}

.strategy-leaderboard-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.strategy-leaderboard-summary-copy {
    display: grid;
    gap: 4px;
}

.strategy-leaderboard-summary-copy strong {
    color: #f4fbff;
    font-size: 0.98rem;
    line-height: 1.2;
}

.strategy-leaderboard-summary-copy span {
    color: #9fb1c2;
    font-size: 0.9rem;
    line-height: 1.4;
}

.strategy-leaderboard-summary-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.strategy-leaderboard-list {
    display: grid;
    gap: 14px;
}

.strategy-leaderboard-row {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(180deg, rgba(17, 31, 42, 0.96), rgba(11, 20, 28, 0.98));
}

.strategy-leaderboard-rank {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.strategy-leaderboard-rank span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 52px;
    padding: 0 10px;
    border-radius: 16px;
    background: rgba(86, 181, 216, 0.12);
    color: #cfeffc;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: inset 0 0 0 1px rgba(86, 181, 216, 0.18);
}

.strategy-leaderboard-main {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.strategy-leaderboard-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.strategy-leaderboard-title {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.strategy-leaderboard-title strong {
    color: #f6fbff;
    font-size: 1rem;
    line-height: 1.25;
}

.strategy-leaderboard-title span {
    color: #8fa6b9;
    font-size: 0.9rem;
    line-height: 1.35;
}

.strategy-leaderboard-score-block {
    display: grid;
    gap: 3px;
    place-items: center;
    align-content: center;
    min-width: 88px;
    min-height: 56px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(17, 34, 43, 0.92), rgba(10, 22, 29, 0.96));
    border: 1px solid rgba(117, 178, 181, 0.14);
    box-shadow: 0 14px 24px rgba(2, 8, 12, 0.16);
    text-align: center;
}

.strategy-leaderboard-score-block span {
    color: #8ca3b5;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.strategy-leaderboard-score-block strong {
    color: #ffffff;
    font-size: 1.08rem;
    line-height: 1;
}

.strategy-leaderboard-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.strategy-leaderboard-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.strategy-leaderboard-metric {
    display: grid;
    gap: 4px;
    padding: 12px 13px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(17, 34, 43, 0.92), rgba(10, 22, 29, 0.96));
    border: 1px solid rgba(117, 178, 181, 0.14);
    box-shadow: 0 14px 24px rgba(2, 8, 12, 0.16);
}

.strategy-leaderboard-metric span {
    color: #89a2b5;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.strategy-leaderboard-metric strong {
    color: #f4fbff;
    font-size: 0.96rem;
    line-height: 1.15;
}

.strategy-leaderboard-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.strategy-leaderboard-validation {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.strategy-leaderboard-validation span:last-child {
    color: #8da4b7;
    font-size: 0.88rem;
    line-height: 1.4;
}

.strategy-leaderboard-actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.strategy-leaderboard-actions .secondary-button {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 11px;
}

@media (max-width: 900px) {
    .builder-mode-switch-actions {
        width: 100%;
        grid-auto-flow: row;
    }

    .builder-mode-switch-actions .secondary-button {
        width: 100%;
    }

    .strategy-leaderboard-summary,
    .strategy-leaderboard-foot,
    .strategy-leaderboard-head {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .strategy-leaderboard-summary-meta {
        justify-content: flex-start;
    }

    .strategy-leaderboard-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .strategy-leaderboard-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .strategy-leaderboard-row {
        grid-template-columns: 1fr;
    }

    .strategy-leaderboard-rank {
        justify-content: flex-start;
    }

    .strategy-leaderboard-metrics {
        grid-template-columns: 1fr;
    }
}

.brand-lockup .brand-stack {
    gap: 2px;
}

body .brand-lockup .brand {
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 0.96;
    color: #f7fbff;
    text-shadow: 0 1px 0 rgba(4, 10, 16, 0.28);
}

select,
.strategy-select {
    color-scheme: dark;
}

select option,
select optgroup,
.strategy-select option,
.strategy-select optgroup {
    background-color: #0d1b23;
    color: #ecf7f5;
}

.screener-table td.table-metric.positive,
.screener-table .table-metric.positive,
.results-metric-card .positive,
.results-main-number.positive {
    color: #22c55e;
    font-weight: 700;
}

.screener-table td.table-metric.negative,
.screener-table .table-metric.negative,
.results-metric-card .negative,
.results-main-number.negative {
    color: #ef4444;
    font-weight: 700;
}

.home-leaderboard-spotlight {
    margin: 0 0 24px;
    padding: 26px;
    border-radius: 24px;
    border: 1px solid rgba(86, 181, 216, 0.18);
    background:
        linear-gradient(180deg, rgba(11, 24, 34, 0.98), rgba(8, 15, 22, 0.99));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-leaderboard-header {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
}

.home-leaderboard-copy h2,
.home-screeners-head h2 {
    margin: 6px 0 10px;
    color: #f5fbff;
    font-size: clamp(1.85rem, 2.9vw, 2.55rem);
    letter-spacing: 0;
}

.home-leaderboard-copy p,
.home-screeners-head p {
    max-width: 760px;
    margin: 0;
    color: #aab9cb;
    font-size: 1rem;
    line-height: 1.7;
}

.home-leaderboard-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-leaderboard-meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(126, 154, 182, 0.16);
    background: rgba(14, 22, 31, 0.96);
    color: #cfe0ef;
    font-size: 0.82rem;
    font-weight: 600;
}

.home-top-five-list {
    display: grid;
    gap: 12px;
}

.home-top-five-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(126, 154, 182, 0.14);
    background: linear-gradient(180deg, rgba(15, 24, 34, 0.92), rgba(9, 15, 22, 0.97));
}

.home-top-five-row.is-first {
    border-color: rgba(86, 181, 216, 0.28);
    background:
        linear-gradient(90deg, rgba(36, 130, 140, 0.14), transparent 20%),
        linear-gradient(180deg, rgba(15, 27, 37, 0.98), rgba(8, 15, 22, 1));
}

.home-top-five-rank {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-top-five-rank span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(98, 232, 225, 0.18);
    background: linear-gradient(180deg, rgba(98, 232, 225, 0.16), rgba(47, 150, 204, 0.1));
    color: #f6fbff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.96rem;
    font-weight: 650;
    letter-spacing: 0;
}

.home-top-five-main {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.home-top-five-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.home-top-five-title h3 {
    margin: 0 0 6px;
    color: #f7fbff;
    font-size: 1.02rem;
    font-weight: 650;
    line-height: 1.28;
    letter-spacing: 0;
}

.home-top-five-title p {
    margin: 0;
    color: #95a8bc;
    line-height: 1.55;
}

.home-top-five-score {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(8, 16, 24, 0.86);
    color: #8fe2ff;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.76rem;
    font-weight: 650;
    white-space: nowrap;
}

.home-top-five-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-top-five-metric {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(126, 154, 182, 0.12);
    background: rgba(8, 14, 20, 0.64);
    color: #d3dfeb;
    font-size: 0.78rem;
    font-weight: 550;
}

.home-top-five-actions {
    display: grid;
    gap: 8px;
    min-width: 92px;
}

.follow-button {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(20, 184, 166, 0.24);
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #f8fffe;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.2);
    transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.follow-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 14px 26px rgba(15, 118, 110, 0.24);
}

.home-top-five-actions .secondary-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
}

@media (min-width: 1024px) {
    .home-top-five-main {
        grid-template-columns: minmax(280px, 1.1fr) minmax(340px, 0.9fr);
        align-items: center;
        column-gap: 18px;
    }

    .home-top-five-title h3 {
        margin-bottom: 0;
    }

    .home-top-five-metrics {
        justify-content: flex-start;
    }
}

.home-leaderboard-empty {
    padding: 22px;
    border-radius: 18px;
    border: 1px dashed rgba(126, 154, 182, 0.2);
    background: rgba(7, 13, 19, 0.56);
    color: #c5d2e0;
}

.home-leaderboard-empty strong {
    display: block;
    margin-bottom: 8px;
    color: #f4f9ff;
    font-size: 1.1rem;
}

.home-leaderboard-empty p {
    margin: 0;
    color: #a7b8c9;
    line-height: 1.6;
}

.follow-inline-note {
    margin-top: 14px;
}

.follow-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.follow-hero-actions .secondary-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
}

.follow-hero-minimal {
    padding: 0;
}

.follow-hero-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 28px 32px 24px;
}

.follow-hero-minimal .strategy-hero-copy {
    flex: 1;
    min-width: 0;
    max-width: min(860px, 100%);
}

.follow-hero-minimal .strategy-hero-copy h1 {
    max-width: none;
    margin-bottom: 12px;
    font-size: clamp(1.85rem, 2.45vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: 0;
    text-wrap: pretty;
    overflow-wrap: anywhere;
}

.follow-hero-minimal .strategy-hero-chip-row {
    margin-top: 12px;
}

.follow-primary-action {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    min-width: 160px;
}

.follow-primary-action .secondary-button {
    min-height: 42px;
}

.save-strategy-button.is-saved,
.save-strategy-button:disabled {
    cursor: default;
    opacity: 0.78;
}

.save-strategy-button.is-saved {
    border-color: rgba(78, 214, 153, 0.24);
    background: rgba(78, 214, 153, 0.12);
    color: #bff9d8;
}

.saved-strategies-page {
    display: grid;
    gap: 1rem;
}

.saved-strategies-card {
    display: grid;
    gap: 1.1rem;
}

.saved-strategies-list {
    display: grid;
    gap: 0.85rem;
}

.saved-strategy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(120, 214, 219, 0.14);
    border-radius: 16px;
    background: rgba(11, 23, 30, 0.68);
}

.saved-strategy-copy {
    min-width: 0;
    display: grid;
    gap: 0.55rem;
}

.saved-strategy-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.saved-strategy-title-row h3 {
    margin: 0;
    font-size: 1rem;
    color: #f1fdff;
}

.saved-strategy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.saved-strategy-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(120, 214, 219, 0.12);
    color: #b7cbd4;
    font-size: 0.82rem;
}

.saved-strategy-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    flex: 0 0 auto;
}

.saved-strategy-actions .secondary-button,
.saved-strategy-actions .follow-button {
    min-height: 40px;
    padding: 0 14px;
}

.saved-strategy-remove-button {
    cursor: pointer;
    font: inherit;
}

.saved-strategy-remove-button:hover {
    border-color: rgba(248, 113, 113, 0.34);
    color: #fecaca;
}

.saved-strategy-row.is-removing {
    opacity: 0.58;
    pointer-events: none;
    transform: translateY(1px);
}

.saved-strategies-empty {
    display: grid;
    gap: 0.4rem;
    padding: 1.2rem;
    border: 1px dashed rgba(120, 214, 219, 0.18);
    border-radius: 16px;
}

.saved-strategies-empty strong {
    color: #f1fdff;
}

@media (max-width: 720px) {
    .saved-strategy-row {
        align-items: stretch;
        flex-direction: column;
    }

    .saved-strategy-actions,
    .follow-primary-action {
        justify-content: stretch;
    }

    .saved-strategy-actions .secondary-button,
    .saved-strategy-actions .follow-button,
    .follow-primary-action .secondary-button {
        width: 100%;
    }
}

.follow-shell-loading-card {
    min-height: 220px;
}

.follow-shell-loading {
    display: grid;
    gap: 10px;
    padding: 8px 2px;
}

.follow-shell-progress-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.follow-shell-loading h2 {
    margin: 0;
}

.follow-shell-progress-value {
    color: #204154;
    font-size: 0.96rem;
    line-height: 1;
    white-space: nowrap;
}

.follow-shell-progress {
    position: relative;
    width: 100%;
    height: 4px;
    background: transparent;
    overflow: visible;
}

.follow-shell-progress-bar {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2eb6c5, #67ddd8);
    box-shadow: 0 0 0 1px rgba(72, 205, 204, 0.06);
    transition: width 180ms ease;
}

.follow-shell-loading p {
    margin: 0;
    max-width: 34rem;
}

.follow-focus-card {
    display: grid;
    gap: 18px;
}

.follow-decision-card {
    display: grid;
    gap: 14px;
}

.follow-decision-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.follow-decision-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.follow-decision-copy h2 {
    margin: 0;
    color: #f6fbff;
    font-size: 1.55rem;
    line-height: 1.08;
    font-weight: 650;
    letter-spacing: 0;
}

.follow-decision-copy p {
    margin: 0;
    color: #91a8b8;
    line-height: 1.45;
}

.follow-decision-status {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.follow-decision-risk,
.follow-decision-proof {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.follow-decision-proof {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.follow-decision-risk span,
.follow-decision-proof span {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid rgba(126, 154, 182, 0.12);
    border-radius: 8px;
    background: rgba(10, 18, 26, 0.62);
}

.follow-decision-risk small,
.follow-decision-proof small {
    overflow: hidden;
    color: #7f98a9;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.follow-decision-risk strong,
.follow-decision-proof strong {
    overflow: hidden;
    color: #eef8fb;
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.follow-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.follow-focus-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(88, 198, 186, 0.18);
    background: linear-gradient(180deg, rgba(18, 34, 42, 0.96), rgba(10, 20, 28, 0.98));
}

.follow-active-collection-card {
    display: grid;
    gap: 24px;
}

.follow-active-list {
    display: grid;
    gap: 24px;
}

.follow-active-panel {
    display: grid;
    gap: 18px;
}

.follow-active-panel + .follow-active-panel {
    padding-top: 28px;
    border-top: 1px solid rgba(126, 154, 182, 0.14);
}

.follow-active-overview {
    position: relative;
}

.follow-active-index {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(103, 221, 216, 0.98), rgba(69, 204, 221, 0.92));
    color: #0d2230;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: 0 14px 26px rgba(19, 34, 46, 0.18);
}

.follow-focus-stock {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.follow-focus-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.follow-focus-copy strong {
    color: #f8fbff;
    font-size: 1.15rem;
    letter-spacing: 0;
}

.follow-focus-copy span {
    color: #d6e1eb;
}

.follow-focus-copy small {
    color: #8fa4b8;
}

.follow-focus-status {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.follow-beginner-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.follow-step-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(126, 154, 182, 0.14);
    background: rgba(10, 18, 26, 0.88);
}

.follow-step-number {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: #05232b;
    background: linear-gradient(135deg, #67ddd8, #33c6cf);
    box-shadow: 0 10px 20px rgba(21, 177, 186, 0.2);
}

.follow-step-card strong {
    color: #f8fbff;
    font-size: 1.25rem;
    letter-spacing: 0;
}

.follow-step-card p {
    margin: 0;
    color: #a7bbce;
    line-height: 1.6;
}

.follow-chart-panel {
    display: grid;
    gap: 14px;
}

.follow-focus-chart {
    padding-top: 6px;
    border-top: 0;
}

.follow-trade-log-card {
    display: grid;
    gap: 14px;
}

.follow-trade-log-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.follow-trade-log-toolbar {
    margin-top: -2px;
}

.follow-sort-header {
    cursor: pointer;
    user-select: none;
}

.follow-details-card {
    padding-top: 0;
}

.follow-details-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    cursor: pointer;
}

.follow-details-summary::-webkit-details-marker {
    display: none;
}

.follow-details-summary h2 {
    margin: 4px 0 0;
}

.follow-details-grid {
    padding: 18px 24px 24px;
}

.follow-criteria-grid {
    display: grid;
    gap: 20px;
}

.follow-criteria-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.follow-setup-detail-card {
    --follow-detail-card-shadow: none;
    min-height: 96px;
    padding: 1rem;
    display: grid;
    align-content: start;
    gap: 0.35rem;
    border-radius: 18px;
    border: 1px solid rgba(117, 178, 181, 0.14);
    background: linear-gradient(180deg, rgba(17, 34, 43, 0.92), rgba(10, 22, 29, 0.96));
    box-shadow: var(--follow-detail-card-shadow);
}

.follow-setup-detail-card span {
    margin: 0;
    color: #8ec8cb;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    font-weight: 700;
}

.follow-setup-detail-card strong {
    color: #f4fbfb;
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: 0;
}

.follow-criteria-parameters {
    gap: 0.85rem;
}

@media (max-width: 980px) {
    .follow-criteria-metrics {
        grid-template-columns: 1fr;
    }
}

.follow-validation-card .unified-score-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.follow-validation-card .unified-score-card .strategy-card-head {
    display: none;
}

.follow-validation-card .unified-score-hero,
.follow-validation-card .unified-score-segment-grid {
    margin-top: 0;
}

.follow-performance-grid {
    display: grid;
    gap: 0;
}

.follow-performance-grid .trade-log-chart-suite {
    margin: 0;
}

.follow-details-card[open] .follow-details-summary {
    border-bottom: 1px solid rgba(118, 136, 161, 0.14);
}

.follow-chart-head p {
    margin: 6px 0 0;
}

.follow-chart-levels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.follow-chart-level {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(126, 154, 182, 0.14);
    background: rgba(12, 20, 28, 0.92);
    color: #ebf4ff;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.follow-chart-level::before {
    content: "";
    width: 10px;
    height: 10px;
    margin-right: 10px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.follow-chart-level.is-entry {
    color: #67ddd8;
}

.follow-chart-level.is-stop {
    color: #ff7d7d;
}

.follow-chart-level.is-target {
    color: #f3b45d;
}

.follow-chart-level.is-timed {
    color: #8fa3ff;
}

.follow-tv-chart {
    min-height: 520px;
}

.follow-chart-loading-state {
    display: grid;
    min-height: inherit;
    place-items: center;
    gap: 12px;
    padding: 32px 18px;
    color: #bfeff1;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0;
    text-align: center;
}

.follow-chart-loading-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #67ddd8;
    box-shadow: 0 0 0 0 rgba(103, 221, 216, 0.32);
    animation: follow-chart-loading-pulse 1.35s ease-out infinite;
}

@keyframes follow-chart-loading-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(103, 221, 216, 0.32);
        transform: scale(0.92);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(103, 221, 216, 0);
        transform: scale(1);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(103, 221, 216, 0);
        transform: scale(0.92);
    }
}

@media (prefers-reduced-motion: reduce) {
    .follow-chart-loading-dot {
        animation: none;
    }
}

.follow-tv-chart.is-fallback-chart {
    position: relative;
    display: grid;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid rgba(117, 178, 181, 0.12);
    border-radius: 12px;
    background: #071017;
}

.follow-tv-chart.is-fallback-chart svg {
    width: 100%;
    height: 100%;
    min-height: 520px;
    display: block;
}

.follow-chart-fallback-grid line {
    stroke: rgba(143, 163, 191, 0.13);
    stroke-width: 1;
}

.follow-chart-fallback-grid text {
    fill: #8fa3bf;
    font-family: "IBM Plex Mono", monospace;
    font-size: 15px;
    font-weight: 700;
}

.follow-chart-fallback-area {
    fill: rgba(103, 221, 216, 0.08);
}

.follow-chart-fallback-line {
    fill: none;
    stroke: #67ddd8;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.follow-chart-fallback-level line,
.follow-chart-fallback-exit line {
    stroke-width: 2;
    stroke-dasharray: 8 8;
}

.follow-chart-fallback-level text,
.follow-chart-fallback-exit text {
    font-family: "IBM Plex Mono", monospace;
    font-size: 15px;
    font-weight: 800;
}

.follow-chart-fallback-level.is-entry line,
.follow-chart-fallback-level.is-entry text,
.follow-chart-fallback-last {
    stroke: #67ddd8;
    fill: #67ddd8;
}

.follow-chart-fallback-level.is-stop line,
.follow-chart-fallback-level.is-stop text {
    stroke: #ff7d7d;
    fill: #ff7d7d;
}

.follow-chart-fallback-level.is-target line,
.follow-chart-fallback-level.is-target text {
    stroke: #f3b45d;
    fill: #f3b45d;
}

.follow-chart-fallback-exit line,
.follow-chart-fallback-exit text {
    stroke: #8fa3ff;
    fill: #8fa3ff;
}

.follow-chart-fallback-caption {
    position: absolute;
    left: 18px;
    bottom: 14px;
    padding: 6px 10px;
    border: 1px solid rgba(117, 178, 181, 0.14);
    border-radius: 999px;
    background: rgba(6, 15, 22, 0.86);
    color: #b8d6dd;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    font-weight: 800;
}

.follow-chart-fallback-empty {
    display: grid;
    min-height: 520px;
    place-items: center;
    color: #9bb7c3;
    font-weight: 800;
}

.follow-secondary-grid {
    display: grid;
    gap: 14px;
}

.follow-secondary-card {
    display: grid;
    gap: 14px;
    padding: 18px 20px 18px;
    border-radius: 20px;
    border: 1px solid rgba(126, 154, 182, 0.14);
    background:
        radial-gradient(circle at top right, rgba(103, 221, 216, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(12, 21, 29, 0.92), rgba(8, 15, 22, 0.96));
}

.follow-secondary-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.follow-secondary-state {
    align-self: flex-start;
    background: rgba(103, 221, 216, 0.1);
    border: 1px solid rgba(103, 221, 216, 0.16);
    color: #c9fbfb;
}

.follow-secondary-reason {
    font-size: 0.92rem;
    line-height: 1.55;
}

.follow-secondary-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.follow-secondary-metric {
    --follow-secondary-metric-bg: rgba(19, 31, 41, 0.88);
    --follow-secondary-metric-border: rgba(126, 154, 182, 0.12);
    --follow-secondary-metric-accent: #d0dbe7;
    --follow-secondary-metric-label: #88a0b0;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-height: 56px;
    padding: 11px 14px 10px 15px;
    border-radius: 16px;
    border: 1px solid var(--follow-secondary-metric-border);
    background: var(--follow-secondary-metric-bg);
    color: var(--follow-secondary-metric-accent);
    font-size: 0.84rem;
    font-weight: 700;
}

.follow-secondary-metric::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--follow-secondary-metric-accent);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.follow-secondary-metric small {
    color: var(--follow-secondary-metric-label);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.follow-secondary-metric strong {
    color: var(--follow-secondary-metric-accent);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
}

.follow-secondary-metric.is-trigger {
    --follow-secondary-metric-bg: rgba(32, 44, 56, 0.92);
    --follow-secondary-metric-border: rgba(151, 170, 184, 0.16);
    --follow-secondary-metric-accent: #ccdae5;
    --follow-secondary-metric-label: #93a8b8;
}

.follow-secondary-metric.is-plan {
    --follow-secondary-metric-bg: rgba(38, 47, 84, 0.88);
    --follow-secondary-metric-border: rgba(143, 163, 255, 0.16);
    --follow-secondary-metric-accent: #cfd7ff;
    --follow-secondary-metric-label: #9eaef2;
}

.follow-secondary-metric.is-entry,
.follow-secondary-metric.is-current {
    --follow-secondary-metric-bg: rgba(18, 58, 60, 0.88);
    --follow-secondary-metric-border: rgba(103, 221, 216, 0.16);
    --follow-secondary-metric-accent: #baf7f3;
    --follow-secondary-metric-label: #7dcfca;
}

.follow-secondary-metric.is-stop {
    --follow-secondary-metric-bg: rgba(70, 26, 33, 0.9);
    --follow-secondary-metric-border: rgba(255, 125, 125, 0.14);
    --follow-secondary-metric-accent: #ffc1c1;
    --follow-secondary-metric-label: #ef9c9c;
}

.follow-secondary-metric.is-target {
    --follow-secondary-metric-bg: rgba(73, 51, 18, 0.9);
    --follow-secondary-metric-border: rgba(243, 180, 93, 0.14);
    --follow-secondary-metric-accent: #ffd9a4;
    --follow-secondary-metric-label: #e1b777;
}

.home-tab-panel-leaderboard .home-top-five-actions {
    align-self: center;
    justify-content: center;
}

.follow-setup-grid {
    display: grid;
    gap: 14px;
}

.follow-setup-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(126, 154, 182, 0.16);
    background: linear-gradient(180deg, rgba(15, 24, 34, 0.92), rgba(9, 15, 22, 0.97));
}

.follow-setup-head,
.follow-setup-footer {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.follow-setup-stock {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.follow-setup-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.follow-setup-copy strong {
    color: #f7fbff;
    font-size: 1rem;
    letter-spacing: 0;
}

.follow-setup-copy span {
    color: #d4dee9;
}

.follow-setup-copy small {
    color: #8fa4b8;
}

.follow-setup-status {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.follow-setup-reason {
    margin: 0;
    color: #bfd1e2;
    line-height: 1.65;
}

.follow-setup-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.follow-setup-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.validation-inline-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.6rem;
}

.validation-inline-note {
    color: #9fb7ba;
    font-size: 0.84rem;
    letter-spacing: 0.01em;
}

.validation-chip,
.validation-mini-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(141, 184, 186, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #eef9f8;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.validation-chip {
    padding: 0.4rem 0.8rem;
    font-size: 0.82rem;
}

.table-validation-cell {
    text-align: center;
}

.table-validation-cell .validation-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.validation-mini-badge {
    padding: 0.28rem 0.62rem;
    font-size: 0.74rem;
}

.validation-chip.is-positive,
.validation-mini-badge.is-positive {
    background: rgba(78, 214, 153, 0.16);
    border-color: rgba(78, 214, 153, 0.32);
    color: #8ef0c2;
}

.validation-chip.is-warning,
.validation-mini-badge.is-warning {
    background: rgba(255, 193, 96, 0.14);
    border-color: rgba(255, 193, 96, 0.3);
    color: #ffd486;
}

.validation-chip.is-negative,
.validation-mini-badge.is-negative {
    background: rgba(255, 107, 107, 0.14);
    border-color: rgba(255, 107, 107, 0.28);
    color: #ff9494;
}

.validation-chip.is-neutral,
.validation-mini-badge.is-neutral {
    background: rgba(164, 184, 189, 0.12);
    border-color: rgba(164, 184, 189, 0.18);
    color: #dbe7e9;
}

.validation-cell {
    min-width: 10.5rem;
    gap: 0.45rem;
}

.validation-cell strong {
    display: inline-flex;
}

.validation-summary-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.validation-summary-main,
.validation-summary-stat,
.validation-check-card,
.validation-window-card {
    background: linear-gradient(180deg, rgba(17, 34, 43, 0.92), rgba(10, 22, 29, 0.96));
    border: 1px solid rgba(117, 178, 181, 0.14);
    border-radius: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.validation-summary-main {
    padding: 1.15rem 1.2rem;
    display: grid;
    gap: 0.75rem;
    align-content: start;
}

.validation-summary-main h3 {
    margin: 0;
    font-size: 1.22rem;
    line-height: 1.3;
}

.validation-summary-main p,
.validation-check-card p {
    margin: 0;
}

.validation-summary-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.validation-summary-stat {
    padding: 1rem 1.05rem;
    display: grid;
    gap: 0.4rem;
}

.validation-summary-stat span,
.validation-window-head span:first-child,
.validation-check-head span:first-child {
    color: #8ec8cb;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
    font-weight: 700;
}

.validation-summary-stat strong,
.validation-window-head strong {
    color: #f4fbfb;
    font-size: 1rem;
    line-height: 1.35;
}

.validation-check-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.validation-check-card {
    padding: 0.95rem 1rem;
    display: grid;
    gap: 0.7rem;
}

.validation-check-head,
.validation-window-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.8rem;
}

.validation-check-card p {
    font-size: 0.9rem;
}

.validation-window-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.validation-window-card {
    padding: 1rem 1.05rem;
    display: grid;
    gap: 0.85rem;
}

.validation-window-head > div {
    display: grid;
    gap: 0.35rem;
}

.validation-window-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.validation-window-metrics span {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.68rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(117, 178, 181, 0.1);
    color: #dce9e7;
    font-size: 0.82rem;
    line-height: 1.3;
}

.home-screeners-head {
    margin-top: 30px;
}

.home-screeners-head h2 {
    font-size: 1.5rem;
}

@media (max-width: 1080px) {
    .home-top-five-row {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .home-top-five-actions {
        grid-column: 2;
        grid-template-columns: repeat(2, minmax(0, max-content));
    }

    .validation-summary-panel,
    .validation-window-grid {
        grid-template-columns: 1fr;
    }

    .validation-check-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .home-leaderboard-spotlight {
        padding: 20px;
    }

    .home-top-five-head {
        flex-direction: column;
        align-items: start;
    }

    .follow-setup-metrics {
        grid-template-columns: 1fr;
    }

    .follow-beginner-steps {
        grid-template-columns: 1fr;
    }

    .follow-setup-head,
    .follow-setup-footer,
    .follow-section-head,
    .follow-trade-log-head,
    .follow-focus-overview,
    .follow-decision-main,
    .follow-secondary-head {
        flex-direction: column;
    }

    .follow-setup-status {
        justify-content: flex-start;
    }

    .follow-focus-status {
        justify-content: flex-start;
    }

    .follow-decision-status {
        justify-content: flex-start;
    }

    .follow-decision-risk,
    .follow-decision-proof {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .follow-hero-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 22px 22px 20px;
    }

    .follow-hero-minimal .strategy-hero-copy h1 {
        font-size: clamp(1.6rem, 7vw, 2.15rem);
        line-height: 1.12;
    }

    .follow-primary-action {
        min-width: 0;
    }

    .validation-summary-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .follow-decision-risk,
    .follow-decision-proof {
        grid-template-columns: 1fr;
    }

    .home-top-five-row {
        grid-template-columns: 1fr;
    }

    .home-top-five-rank {
        justify-content: start;
    }

    .home-top-five-actions {
        grid-column: auto;
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .home-top-five-actions .secondary-button {
        width: 100%;
    }

    .follow-button {
        width: 100%;
    }

    .follow-hero-actions {
        flex-direction: column;
    }

    .follow-hero-actions .secondary-button {
        width: 100%;
    }

    .follow-tv-chart {
        min-height: 420px;
    }

    .validation-check-grid {
        grid-template-columns: 1fr;
    }
}

/* Final button and toggle alignment */
body .market-switch-pill.active,
.market-switch-pill.active {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    border-color: rgba(20, 184, 166, 0.28);
    color: #f8fffe;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.2);
}

.follow-button,
.home-top-five-actions .secondary-button,
.follow-hero-actions .secondary-button {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-align: center;
}

.follow-button {
    border: 1px solid rgba(20, 184, 166, 0.28);
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #f8fffe;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.2);
    transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.follow-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 14px 26px rgba(15, 118, 110, 0.24);
}

.home-top-five-actions .secondary-button,
.follow-hero-actions .secondary-button {
    border-radius: 14px;
}

#strategy-step-back {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 700;
    color: #eef6f6;
}

.follow-setup-footer {
    align-items: center;
}

.follow-setup-footer .secondary-button {
    min-height: 42px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    line-height: 1;
    text-align: center;
}

.coin-logo,
.coin-logo-large {
    background: #ffffff;
    object-fit: cover;
    object-position: center;
    padding: 0;
    border: none;
    box-shadow: none;
    overflow: hidden;
}

.researcher-stock-card .coin-logo,
.researcher-stock-card .coin-logo-large,
.follow-setup-stock .coin-logo,
.follow-setup-stock .coin-logo-large {
    display: block;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.researcher-stock-card img.coin-logo,
.researcher-stock-card img.coin-logo-large,
.follow-setup-stock img.coin-logo,
.follow-setup-stock img.coin-logo-large {
    transform: scale(1.2);
    transform-origin: center;
    clip-path: inset(1px round 12px);
}

.researcher-back-button {
    width: fit-content;
    min-width: 0;
    min-height: 42px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

/* Shared bright-action accent matches the primary Generate Strategy button */
:root {
    --accent-bright-bg: linear-gradient(180deg, #6ce3dc, #22bfca);
    --accent-bright-bg-hover: linear-gradient(180deg, #7de9e1, #35c9d2);
    --accent-bright-border: rgba(32, 190, 200, 0.14);
    --accent-bright-text: #07212a;
    --accent-bright-shadow: 0 10px 22px rgba(22, 164, 174, 0.18);
    --accent-bright-shadow-hover: 0 14px 26px rgba(22, 164, 174, 0.24);
}

body .market-switch-pill.active,
.market-switch-pill.active,
.follow-button,
.builder-mode-switch-actions .secondary-button.is-active {
    border-color: var(--accent-bright-border);
    background: var(--accent-bright-bg);
    color: var(--accent-bright-text);
    box-shadow: none;
}

body .market-switch-pill.active:hover,
.market-switch-pill.active:hover,
.follow-button:hover,
.builder-mode-switch-actions .secondary-button.is-active:hover {
    background: var(--accent-bright-bg-hover);
    color: var(--accent-bright-text);
    box-shadow: none;
}

.strategy-lab-page.is-builder .builder-mode-switch,
.strategy-lab-page.is-builder .strategy-builder-card,
.strategy-lab-page.is-builder .researcher-score-card,
.strategy-lab-page.is-builder .strategy-progress-card {
    background: #0e1721;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.strategy-lab-page.is-builder .builder-mode-switch,
.strategy-lab-page.is-builder .strategy-builder-card,
.strategy-lab-page.is-builder .researcher-score-card {
    border-radius: 22px;
}

.strategy-lab-page.is-builder .strategy-main-grid,
.strategy-lab-page.is-builder .researcher-score-card,
.strategy-lab-page.is-builder .strategy-progress-card {
    margin-top: 32px;
}

.strategy-lab-page.is-builder #researcher-progress-card {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 14px;
    display: grid;
    gap: 8px;
    background: #0d1620;
}

.strategy-lab-page.is-builder #researcher-progress-card .strategy-progress-head {
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.strategy-lab-page.is-builder #researcher-progress-card .strategy-progress-head strong {
    font-size: 0.95rem;
    line-height: 1.2;
}

.strategy-lab-page.is-builder #researcher-progress-card .strategy-progress-message {
    margin: 0;
    color: #9fb0c3;
    font-size: 0.92rem;
}

.strategy-lab-page.is-builder #researcher-progress-card.is-hidden {
    display: none !important;
}

.strategy-lab-page.is-builder #researcher-progress-card .strategy-progress-track {
    height: 8px;
}

.strategy-lab-page.is-builder .strategy-wizard-shell,
.strategy-lab-page.is-builder .builder-subpanel,
.strategy-lab-page.is-builder .strategy-confirmation-panel,
.strategy-lab-page.is-builder .strategy-run-panel {
    background: #101b26;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

.strategy-lab-page.is-builder .strategy-wizard-shell,
.strategy-lab-page.is-builder .strategy-wizard-summary-panel {
    background: transparent;
    border: none;
    box-shadow: none;
}

.strategy-lab-page.is-builder .strategy-wizard-layout,
.strategy-lab-page.is-builder .strategy-wizard-main {
    gap: 22px;
}

.strategy-lab-page.is-builder .strategy-wizard-step {
    background: #101b26;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: none;
    border-radius: 18px;
    padding: 26px 28px 24px;
}

.strategy-lab-page.is-builder .strategy-card-head {
    margin-bottom: 18px;
}

.strategy-lab-page.is-builder .strategy-card-head p {
    max-width: none;
    color: #92a4b7;
}

.strategy-lab-page.is-builder .strategy-wizard-progress {
    padding-bottom: 18px;
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.strategy-lab-page.is-builder .strategy-wizard-progress-item {
    padding-bottom: 12px;
}

.strategy-lab-page.is-builder .strategy-wizard-summary-panel {
    padding-top: 8px;
}

.strategy-lab-page.is-builder .wizard-summary-groups {
    gap: 20px;
}

.strategy-lab-page.is-builder .strategy-choice-card,
.strategy-lab-page.is-builder .exit-rule-card,
.strategy-lab-page.is-builder .asset-filter-summary,
.strategy-lab-page.is-builder .empty-chart-state,
.strategy-lab-page.is-builder .screener-table-wrap {
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

.strategy-lab-page.is-builder .asset-filter-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #131f2b;
}

.strategy-lab-page.is-builder .asset-filter-summary-copy {
    display: grid;
    gap: 4px;
}

.strategy-lab-page.is-builder .asset-filter-summary-copy strong {
    color: #edf4fb;
    font-size: 1rem;
    line-height: 1.2;
}

.strategy-lab-page.is-builder .asset-filter-summary-meta {
    color: #8ea2b6;
    font-size: 0.92rem;
    line-height: 1.35;
}

.strategy-lab-page.is-builder .asset-filter-summary-button {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    white-space: nowrap;
}

.strategy-lab-page.is-builder .strategy-wizard-step-head {
    padding-bottom: 0;
}

.strategy-lab-page.is-builder .strategy-wizard-step-head h3 {
    font-size: 1.3rem;
    line-height: 1.1;
}

.strategy-lab-page.is-builder .builder-subpanel {
    gap: 18px;
    background: transparent;
    border: none;
    padding: 0;
}

.strategy-lab-page.is-builder .strategy-field {
    display: grid;
    gap: 10px;
}

.strategy-lab-page.is-builder .strategy-field.is-hidden,
.strategy-lab-page.is-builder .asset-filter-summary.is-hidden,
.strategy-lab-page.is-builder .asset-picker-selected.is-hidden,
.strategy-lab-page.is-builder .wizard-inline-chip-row.is-hidden {
    display: none;
}

.strategy-lab-page.is-builder .field-label {
    color: #8fbfc4;
    font-size: 0.86rem;
}

.strategy-lab-page.is-builder .strategy-select,
.strategy-lab-page.is-builder .strategy-input {
    min-height: 56px;
    border-color: rgba(255, 255, 255, 0.05);
    background: #0b141c;
    box-shadow: none;
}

.strategy-lab-page.is-builder .wizard-inline-chip-row {
    margin-top: -2px;
}

.strategy-lab-page.is-builder .mini-pill {
    background: rgba(255, 255, 255, 0.05);
    color: #d8e3ed;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.strategy-lab-page.is-builder .strategy-confirmation-panel {
    background: transparent;
    border: none;
    padding: 0;
    gap: 16px;
}

.strategy-lab-page.is-builder .strategy-confirmation-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 0 0 14px;
}

.strategy-lab-page.is-builder .strategy-confirmation-head .strategy-card-head {
    margin-bottom: 0;
}

.strategy-lab-page.is-builder .strategy-confirmation-head .strategy-card-head p {
    font-size: 0.96rem;
}

.strategy-lab-page.is-builder .strategy-confirmation-button {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
}

.strategy-lab-page.is-builder .strategy-confirmation-summary {
    background: #131f2b;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 16px 18px;
}

.strategy-lab-page.is-builder .strategy-confirmation-summary strong {
    font-size: 0.98rem;
    line-height: 1.35;
}

.strategy-lab-page.is-builder .strategy-advanced-grid {
    gap: 14px;
}

.strategy-lab-page.is-builder .strategy-date-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.strategy-lab-page.is-builder .strategy-date-shortcut {
    min-width: 72px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    background: #131f2b;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

.strategy-lab-page.is-builder .exit-rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.strategy-lab-page.is-builder .exit-rule-card {
    background: #131f2b;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.045);
}

.strategy-lab-page.is-builder .exit-builder-panel {
    gap: 18px;
}

.strategy-lab-page.is-builder .exit-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.strategy-lab-page.is-builder .exit-section-head.is-hidden,
.strategy-lab-page.is-builder .exit-rule-card.is-hidden,
.strategy-lab-page.is-builder .exit-rule-grid.is-hidden {
    display: none;
}

.strategy-lab-page.is-builder .exit-section-head .builder-summary-text {
    max-width: none;
    margin: 6px 0 0;
    color: rgba(196, 208, 219, 0.72);
}

.strategy-lab-page.is-builder .exit-section-head-advanced {
    padding-top: 2px;
}

.strategy-lab-page.is-builder .exit-rule-copy {
    margin: 4px 0 14px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(196, 208, 219, 0.72);
}

.strategy-lab-page.is-builder .exit-rule-grid-advanced {
    padding-top: 4px;
}

.strategy-lab-page.is-builder .exit-rule-card-advanced {
    background: #101b26;
}

.strategy-lab-page.is-builder .strategy-run-panel {
    background: transparent;
    border: none;
    padding: 0;
}

.strategy-lab-page.is-builder .strategy-run-panel h3 {
    font-size: 1.18rem;
}

.strategy-lab-page.is-builder .strategy-wizard-step[data-step-key="review"] {
    padding-bottom: 18px;
}

.strategy-lab-page.is-builder .strategy-review-panel {
    min-height: 0;
    padding: 0;
}

.strategy-lab-page.is-builder .strategy-review-panel .builder-summary-text {
    max-width: none;
    margin: 0;
    color: #9aaebf;
}

.strategy-lab-page.is-builder .strategy-wizard-step[data-step-key="review"] .builder-subpanel {
    gap: 10px;
}

.strategy-lab-page.is-builder .screener-table-wrap,
.strategy-lab-page.is-builder .empty-chart-state {
    background: #101b26;
}

@media (max-width: 820px) {
    .strategy-lab-page.is-builder .exit-rule-grid {
        grid-template-columns: 1fr;
    }

    .strategy-lab-page.is-builder .asset-filter-summary {
        align-items: stretch;
        flex-direction: column;
    }

    .strategy-lab-page.is-builder .asset-filter-summary-button {
        width: 100%;
    }
}

.strategy-lab-page.is-builder .strategy-wizard-actions,
.strategy-lab-page.is-builder .wizard-summary-group,
.strategy-lab-page.is-builder .builder-summary-item,
.strategy-lab-page.is-builder .strategy-confirmation-head,
.strategy-lab-page.is-builder .strategy-confirmation-summary {
    border-color: rgba(255, 255, 255, 0.06);
}

.strategy-lab-page.is-builder .strategy-wizard-actions {
    margin-top: 4px;
    padding-top: 18px;
}

.home-tabs-shell {
    display: grid;
    gap: 12px;
}

.home-panels-shell {
    display: grid;
    gap: 14px;
}

.home-panel-loading {
    min-height: clamp(120px, 22vh, 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
}

.home-panel-loading-line {
    position: relative;
    display: block;
    width: min(180px, 42vw);
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid rgba(35, 199, 217, 0.18);
    background: rgba(35, 199, 217, 0.12);
}

.home-panel-loading-line::after {
    content: "";
    position: absolute;
    inset: -1px auto -1px -45%;
    width: 45%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(35, 199, 217, 0.86), transparent);
    animation: homeLoadingLine 1.05s ease-in-out infinite;
}

.home-tab-nav {
    --home-tab-gap: 4px;
    --home-tab-inset: 4px;
    display: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(112px, 1fr);
    gap: var(--home-tab-gap);
    width: fit-content;
    margin: 0 0 2px;
    padding: var(--home-tab-inset);
    border-radius: 999px;
    border: 1px solid rgba(121, 149, 178, 0.12);
    background: rgba(10, 18, 27, 0.94);
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.home-tab-nav::before {
    content: "";
    position: absolute;
    top: var(--home-tab-inset);
    bottom: var(--home-tab-inset);
    left: var(--home-tab-inset);
    width: calc((100% - (var(--home-tab-inset) * 2) - (var(--home-tab-gap) * 2)) / 3);
    border-radius: 999px;
    border: 1px solid rgba(82, 211, 219, 0.2);
    background: rgba(82, 211, 219, 0.14);
    transform: translateX(0);
    transition: transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 180ms ease, background-color 180ms ease;
    pointer-events: none;
}

.home-tab-nav[data-active-tab="screener"]::before {
    transform: translateX(calc(100% + var(--home-tab-gap)));
}

.home-tab-control {
    min-height: 32px;
    min-width: 112px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: transparent;
    color: #90a5b8;
    box-shadow: none;
    transition: color 180ms ease, opacity 180ms ease;
    position: relative;
    z-index: 1;
}

.home-tab-link {
    text-decoration: none;
}

.home-tab-control span {
    color: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
}

.home-tab-control.is-active {
    color: #eef7fb;
}

.home-tab-control.is-active span {
    color: inherit;
}

.home-tab-control:hover {
    color: #dbe8f2;
}

.home-tab-panel {
    display: none;
    gap: 10px;
}

.home-tab-panel.is-active {
    display: grid;
}

.home-tab-panel.is-animating-in {
    animation: homePanelIn 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
    transform-origin: top center;
}

.home-screener-content.is-animating-in {
    animation: homePanelIn 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
    transform-origin: top center;
}

.home-tab-panel[hidden] {
    display: none !important;
}

.home-market-switch {
    --home-market-gap: 4px;
    --home-market-inset: 4px;
    width: fit-content;
    margin: 0;
    padding: var(--home-market-inset);
    border-radius: 13px;
    position: relative;
    overflow: hidden;
    background: rgba(10, 18, 27, 0.94);
    border: 1px solid rgba(121, 149, 178, 0.1);
    display: inline-grid;
    grid-auto-flow: column;
    align-items: center;
    gap: var(--home-market-gap);
}

.home-market-switch::before {
    content: "";
    position: absolute;
    top: var(--home-market-inset);
    bottom: var(--home-market-inset);
    left: var(--home-market-inset);
    width: calc((100% - (var(--home-market-inset) * 2) - var(--home-market-gap)) / 2);
    border-radius: 9px;
    border: 1px solid rgba(82, 211, 219, 0.18);
    background: rgba(82, 211, 219, 0.14);
    transform: translateX(0);
    transition: transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 180ms ease;
    pointer-events: none;
}

.home-market-switch[data-active-market="US"]::before {
    transform: translateX(calc(100% + var(--home-market-gap)));
}

.home-market-switch .market-switch-pill {
    min-width: 40px;
    min-height: 30px;
    padding: 0 11px;
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    position: relative;
    z-index: 1;
    color: #8fa4b8;
    transition: color 180ms ease, opacity 180ms ease;
}

.home-market-switch .market-switch-pill.active {
    color: #eef7fb;
}

.home-market-switch .market-switch-pill:hover {
    color: #dbe8f2;
}

.home-screener-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin: 0 auto 2px;
    padding: 0 2px;
}

.home-screener-toolbar-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}

.home-screener-toolbar-label {
    color: #8fa4b8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-leaderboard-filter-tabs {
    --leaderboard-filter-gap: 4px;
    --leaderboard-filter-inset: 4px;
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(114px, 1fr);
    gap: var(--leaderboard-filter-gap);
    width: fit-content;
    margin: 0;
    padding: var(--leaderboard-filter-inset);
    border-radius: 16px;
    border: 1px solid rgba(26, 41, 56, 0.94);
    background: rgba(10, 18, 27, 0.94);
    box-shadow: none;
    backdrop-filter: none;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.home-leaderboard-filter-tabs::before {
    content: "";
    position: absolute;
    top: var(--leaderboard-filter-inset);
    bottom: var(--leaderboard-filter-inset);
    left: var(--leaderboard-filter-inset);
    width: calc((100% - (var(--leaderboard-filter-inset) * 2) - (var(--leaderboard-filter-gap) * 2)) / 3);
    border-radius: 11px;
    border: 1px solid rgba(82, 211, 219, 0.2);
    background: rgba(82, 211, 219, 0.14);
    transform: translateX(0);
    transition: transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 180ms ease, background-color 180ms ease;
    pointer-events: none;
}

.home-leaderboard-filter-tabs[data-active-filter="my"]::before {
    transform: translateX(calc(100% + var(--leaderboard-filter-gap)));
}

.home-leaderboard-filter-tabs[data-active-filter="us"]::before {
    transform: translateX(calc((100% + var(--leaderboard-filter-gap)) * 2));
}

.home-leaderboard-filter-tab {
    min-height: 34px;
    min-width: 118px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    background: transparent;
    color: #90a5b8;
    box-shadow: none;
    transition: color 180ms ease, opacity 180ms ease;
    position: relative;
    z-index: 1;
}

.home-leaderboard-filter-tab span {
    color: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
}

.home-leaderboard-filter-tab.is-active {
    background: transparent;
    color: #eef7fb;
    box-shadow: none;
}

.home-leaderboard-filter-tab.is-active span {
    color: inherit;
}

.home-leaderboard-filter-tab:hover {
    background: transparent;
    color: #dbe8f2;
    transform: none;
}

.home-skeleton-stack {
    display: grid;
    gap: 12px;
}

.home-skeleton-card {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 170px;
    gap: 14px;
    align-items: center;
    padding: 15px 16px;
    border-radius: 18px;
    border: 1px solid rgba(126, 154, 182, 0.12);
    background: linear-gradient(180deg, rgba(10, 19, 28, 0.92), rgba(8, 14, 20, 0.98));
}

.home-skeleton-rank {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.home-skeleton-main {
    display: grid;
    gap: 10px;
}

.home-skeleton-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-skeleton-actions {
    display: grid;
    gap: 8px;
}

.home-skeleton-category {
    overflow: hidden;
}

.home-skeleton-row {
    cursor: default;
}

.shimmer-block {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
}

.shimmer-block::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
    animation: homeShimmer 1.15s ease-in-out infinite;
}

.shimmer-line {
    border-radius: 10px;
}

.shimmer-line-title {
    width: min(320px, 68%);
    height: 18px;
}

.shimmer-line-copy {
    width: min(420px, 84%);
    height: 14px;
}

.shimmer-line-item {
    width: 70%;
    height: 16px;
}

.shimmer-line-meta {
    width: 42%;
    height: 12px;
}

.shimmer-chip {
    width: 92px;
    height: 30px;
}

.shimmer-button {
    width: 100%;
    height: 38px;
    border-radius: 12px;
}

.shimmer-button.is-secondary {
    width: 82%;
}

.shimmer-counter {
    width: 34px;
    height: 16px;
    justify-self: end;
}

.shimmer-toggle-pill {
    width: 44px;
    height: 32px;
    border-radius: 9px;
}

.home-market-switch-skeleton {
    display: inline-flex;
    gap: 4px;
    width: fit-content;
    margin: 0;
    padding: 3px;
    border-radius: 11px;
    background: #0f171d;
    border: 1px solid rgba(102, 255, 173, 0.1);
}

.home-market-switch-skeleton::before {
    display: none;
}

@keyframes homeShimmer {
    100% {
        transform: translateX(100%);
    }
}

@keyframes homeLoadingLine {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(320%);
    }
}

@keyframes homePanelIn {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.home-top-five-list {
    gap: 8px;
}

.home-top-five-row {
    position: relative;
    overflow: hidden;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(82, 211, 219, 0.12);
    background:
        linear-gradient(135deg, rgba(82, 211, 219, 0.06), transparent 24%),
        linear-gradient(180deg, rgba(10, 19, 28, 0.94), rgba(8, 14, 20, 0.98));
}

.home-top-five-rank span {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 0.88rem;
    background: rgba(82, 211, 219, 0.1);
    border: 1px solid rgba(82, 211, 219, 0.14);
    color: #d9fbff;
}

.home-top-five-main {
    gap: 7px;
}

.home-top-five-title h3 {
    margin: 0 0 2px;
    font-size: 0.95rem;
    line-height: 1.25;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.home-strategy-origin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    border: 1px solid rgba(82, 211, 219, 0.16);
    background: rgba(82, 211, 219, 0.1);
    color: #c9faff;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    vertical-align: middle;
}

.home-strategy-owner-text {
    margin-left: 8px;
    color: #8fa1b4;
    font-size: 0.76em;
    font-weight: 500;
    letter-spacing: 0;
    vertical-align: middle;
}

.home-top-five-market-inline {
    color: #95a8bc;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.home-top-five-score,
.home-top-five-metric {
    min-height: 26px;
    padding: 0 8px;
    font-size: 0.72rem;
}

.home-top-five-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 7px;
    border: 1px solid rgba(82, 211, 219, 0.18);
    background: rgba(82, 211, 219, 0.12);
    color: #dffbff;
    font-size: 0.66rem;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
}

.home-top-five-metric {
    border: 1px solid rgba(121, 149, 178, 0.12);
    background: rgba(18, 29, 41, 0.72);
}

.home-top-five-actions {
    min-width: 124px;
    display: grid;
    gap: 6px;
    justify-items: stretch;
}

.follow-button,
.home-top-five-actions .secondary-button {
    min-height: 32px;
    padding: 0 11px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    width: 100%;
    justify-content: center;
}

.researcher-action-stack .researcher-run-button {
    width: 100%;
    justify-content: center;
}

.home-top-five-open-link {
    gap: 6px;
    min-width: 0;
    padding: 0 10px;
    color: #d7eaf4;
}

.home-top-five-open-link span:last-child {
    font-size: 0.95rem;
    line-height: 1;
    opacity: 0.88;
}

.home-top-five-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.home-top-five-head .home-top-five-title {
    min-width: 0;
}

.home-top-five-status {
    font-weight: 700;
}

.home-top-five-status.is-positive,
.home-top-five-status.is-success {
    border-color: rgba(52, 211, 153, 0.18);
    background: rgba(16, 185, 129, 0.12);
    color: #9cf7cf;
}

.home-top-five-status.is-warning {
    border-color: rgba(245, 158, 11, 0.18);
    background: rgba(245, 158, 11, 0.12);
    color: #facc15;
}

.home-top-five-status.is-danger,
.home-top-five-status.is-negative {
    border-color: rgba(248, 113, 113, 0.18);
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

.home-top-five-note {
    color: #aebfd0;
}

.home-leaderboard-empty {
    padding: 18px 20px;
    border: 1px solid rgba(82, 211, 219, 0.12);
    background:
        linear-gradient(135deg, rgba(82, 211, 219, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(10, 19, 28, 0.94), rgba(8, 14, 20, 0.98));
}

.home-screeners-grid {
    margin-top: 0;
    gap: 20px;
}

.directory-page {
    display: grid;
    gap: 1rem;
}

.directory-page.is-animating-in {
    animation: homePanelIn 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
    transform-origin: top center;
    will-change: opacity, transform, filter;
}

.directory-page.is-loading {
    pointer-events: none;
}

.directory-header {
    padding: 0.1rem 0 0.35rem;
}

.directory-header-main {
    display: grid;
    gap: 0.85rem;
}

.directory-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.directory-header-copy {
    min-width: 0;
}

.directory-header-copy h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.7rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.directory-header-copy p {
    margin: 0.65rem 0 0;
    max-width: 62ch;
    color: rgba(188, 215, 223, 0.78);
    font-size: 1rem;
    line-height: 1.55;
}

.directory-header-side {
    display: grid;
    gap: 0.45rem;
    justify-items: end;
    flex: 0 0 auto;
}

.directory-market-switch {
    gap: 0.35rem;
    padding: 0.3rem;
    border-radius: 14px;
    border: 1px solid rgba(84, 111, 121, 0.16);
    background: rgba(8, 20, 26, 0.46);
    box-shadow: none;
}

.directory-market-switch .market-switch-pill {
    min-width: 54px;
    min-height: 36px;
    padding: 0 0.95rem;
    border-radius: 11px;
    color: rgba(181, 208, 216, 0.72);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.directory-market-switch .market-switch-pill:hover {
    transform: none;
    color: #effcff;
    background: rgba(255, 255, 255, 0.035);
}

.directory-market-switch .market-switch-pill.active {
    border-color: rgba(116, 142, 152, 0.16);
    background: rgba(255, 255, 255, 0.065);
    color: #f3fbfd;
}

.directory-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.directory-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.2rem;
    padding: 0 0.82rem;
    border-radius: 999px;
    background: rgba(8, 22, 28, 0.42);
    color: rgba(207, 229, 235, 0.84);
    font-size: 0.82rem;
    font-weight: 600;
}

.directory-meta-pill strong {
    color: #f1fdff;
    font-weight: 700;
}

.directory-controls-panel {
    display: grid;
    gap: 0.95rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(84, 111, 121, 0.14);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(8, 20, 26, 0.56), rgba(6, 17, 22, 0.42)),
        rgba(7, 18, 24, 0.3);
}

.directory-controls-row {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.8fr) auto;
    gap: 0.95rem;
    align-items: end;
}

.directory-filter-row {
    display: grid;
    gap: 0.55rem;
}

.directory-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(117, 178, 181, 0.1);
}

.directory-summary-row p {
    margin: 0;
}

.stock-directory-table-panel {
    display: grid;
    gap: 0.75rem;
}

.stock-directory-table-wrap {
    overflow: auto;
    border: 1px solid rgba(84, 111, 121, 0.14);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(8, 20, 26, 0.58), rgba(6, 17, 22, 0.46)),
        rgba(7, 18, 24, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.015);
}

.stock-directory-table {
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

.stock-directory-table th {
    padding: 0.95rem 0.95rem 0.8rem;
    background: rgba(255, 255, 255, 0.01);
    color: rgba(176, 203, 211, 0.68);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(90, 116, 126, 0.22);
}

.stock-directory-table td {
    padding: 0.95rem;
    background: rgba(255, 255, 255, 0.012);
    border-bottom: 1px solid rgba(90, 116, 126, 0.14);
    vertical-align: middle;
}

.stock-directory-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.024);
}

.stock-directory-table tbody tr:hover td {
    background: rgba(11, 27, 35, 0.56);
}

.stock-directory-empty {
    border: 1px solid rgba(84, 111, 121, 0.14);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(8, 20, 26, 0.56), rgba(6, 17, 22, 0.42)),
        rgba(7, 18, 24, 0.3);
}

@media (max-width: 980px) {
    .directory-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .directory-header-side {
        justify-items: start;
    }

    .directory-controls-row {
        grid-template-columns: 1fr;
    }
}

.home-category {
    margin: 0 0 12px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(121, 149, 178, 0.12);
    background: linear-gradient(180deg, rgba(10, 18, 27, 0.94), rgba(8, 14, 20, 0.98));
}

.home-screeners-grid .home-category::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(82, 211, 219, 0.72);
}

.home-screeners-grid .home-category:nth-child(4n + 2)::before {
    background: rgba(118, 233, 182, 0.72);
}

.home-screeners-grid .home-category:nth-child(4n + 3)::before {
    background: rgba(255, 200, 109, 0.72);
}

.home-screeners-grid .home-category:nth-child(4n + 4)::before {
    background: rgba(255, 134, 134, 0.68);
}

.home-category-header {
    padding: 12px 14px 9px;
    background: rgba(255, 255, 255, 0.015);
}

.home-category-header h2 {
    font-size: 0.92rem;
}

.compact-list {
    padding: 4px;
}

.compact-row {
    padding: 9px 10px;
    border-radius: 10px;
}

.home-screeners-grid .compact-row:hover {
    background: rgba(82, 211, 219, 0.08);
}

.compact-copy strong {
    font-size: 0.88rem;
}

.compact-tag,
.compact-meta {
    font-size: 0.76rem;
}

@media (max-width: 1080px) {
    .home-skeleton-card {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .home-skeleton-actions {
        grid-column: 2;
        grid-template-columns: repeat(2, minmax(0, max-content));
    }

    .home-top-five-row {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .home-top-five-actions {
        grid-column: 2;
        justify-content: flex-start;
        max-width: none;
    }
}

@media (max-width: 720px) {
    .home-tab-nav {
        width: fit-content;
        max-width: 100%;
        grid-auto-flow: column;
        grid-auto-columns: minmax(88px, 1fr);
    }

    .home-tab-control {
        min-width: 0;
        padding: 0 10px;
    }

    .home-leaderboard-filter-tabs {
        width: fit-content;
        max-width: 100%;
        grid-auto-flow: column;
        grid-auto-columns: minmax(72px, 1fr);
    }

    .home-leaderboard-filter-tab {
        min-width: 0;
    }

    .home-market-switch {
        width: 100%;
        justify-content: center;
    }

    .stock-directory-controls-actions,
    .stock-directory-market-switch-wrap {
        width: 100%;
        justify-content: space-between;
    }

    .home-screener-toolbar {
        justify-content: center;
        margin-bottom: 4px;
    }

    .home-screener-toolbar-group {
        width: 100%;
        justify-content: center;
    }

    .home-market-switch::before {
        width: calc((100% - (var(--home-market-inset) * 2) - var(--home-market-gap)) / 2);
    }

    .home-skeleton-card {
        grid-template-columns: 1fr;
    }

    .home-skeleton-actions {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .home-top-five-row {
        grid-template-columns: 1fr;
    }

    .home-top-five-rank {
        justify-content: flex-start;
    }

    .home-top-five-actions {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .follow-button,
    .home-top-five-actions .secondary-button {
        width: 100%;
    }

    .builder-loading-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-market-switch::before,
    .home-market-switch .market-switch-pill,
    .home-tab-nav::before,
    .home-tab-control,
    .home-tab-panel.is-animating-in,
    .strategy-builder-shell [data-builder-page-body].is-builder-pane-entering,
    .directory-page.is-animating-in,
    .home-panel-loading-line::after,
    .shimmer-block::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        filter: none !important;
    }
}

.unified-score-card {
    display: grid;
    gap: 1rem;
}

.unified-score-hero {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.unified-score-total,
.unified-score-summary-card,
.unified-score-component-card,
.unified-score-segment-card {
    border-radius: 18px;
    border: 1px solid rgba(117, 178, 181, 0.14);
    background: linear-gradient(180deg, rgba(17, 34, 43, 0.92), rgba(10, 22, 29, 0.96));
}

.unified-score-total {
    padding: 1.2rem;
    display: grid;
    gap: 0.75rem;
}

.unified-score-total-label {
    color: #8ec8cb;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
    font-weight: 700;
}

.unified-score-total strong {
    font-size: 2.4rem;
    line-height: 1;
    letter-spacing: 0;
    color: #f4fbfb;
}

.unified-score-total p,
.unified-score-summary-card p,
.unified-score-component-card p {
    margin: 0;
    color: #a9c5c7;
}

.unified-score-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.unified-score-summary-card {
    padding: 1rem;
    display: grid;
    gap: 0.35rem;
}

.unified-score-summary-card span,
.unified-score-component-head span,
.unified-score-segment-head span:first-child {
    color: #8ec8cb;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    font-weight: 700;
}

.unified-score-summary-card strong,
.unified-score-component-head strong,
.unified-score-segment-head strong {
    color: #f4fbfb;
    font-size: 1rem;
}

.unified-score-summary-card.is-positive {
    border-color: rgba(78, 214, 153, 0.2);
}

.unified-score-summary-card.is-warning {
    border-color: rgba(255, 193, 96, 0.2);
}

.unified-score-summary-card.is-negative {
    border-color: rgba(255, 107, 107, 0.2);
}

.unified-score-component-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.unified-score-component-card {
    padding: 1rem;
    display: grid;
    gap: 0.7rem;
}

.unified-score-component-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.75rem;
}

.unified-score-bar {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.unified-score-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(82, 211, 219, 0.95), rgba(102, 255, 173, 0.9));
}

.unified-score-segment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.unified-score-segment-card {
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
}

.unified-score-segment-card.is-positive {
    border-color: rgba(78, 214, 153, 0.18);
}

.unified-score-segment-card.is-warning {
    border-color: rgba(255, 193, 96, 0.18);
}

.unified-score-segment-card.is-negative {
    border-color: rgba(255, 107, 107, 0.18);
}

.unified-score-segment-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.75rem;
}

.unified-score-segment-head > div {
    display: grid;
    gap: 0.25rem;
}

.unified-score-segment-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.unified-score-segment-metrics span {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(117, 178, 181, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #dce9e7;
    font-size: 0.8rem;
}

@media (max-width: 1080px) {
    .unified-score-component-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .unified-score-segment-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .unified-score-hero,
    .unified-score-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .unified-score-component-grid {
        grid-template-columns: 1fr;
    }
}

/* Simplified analyst layout, inline progress, and larger branding */
body .topbar-shell {
    min-height: 84px;
}

body .brand-lockup {
    padding: 6px 0;
}

body .brand-logo-image {
    height: 52px;
    max-width: min(300px, 100%);
}

@media (max-width: 720px) {
    body .brand-logo-image {
        height: 40px;
        max-width: min(240px, 100%);
    }
}

.strategy-progress-inline-slot {
    width: 100%;
}

.researcher-shared-progress-slot {
    margin: 20px 0 0;
}

.researcher-generate-progress-slot {
    margin: 0;
}

.strategy-progress-inline {
    margin-top: 12px;
}

.researcher-generate-progress-slot .strategy-progress-inline,
.researcher-shared-progress-slot .strategy-progress-inline {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.researcher-generate-progress-slot .strategy-progress-inline {
    margin: 18px 0 12px;
}

.researcher-generate-progress-slot .strategy-progress-card,
.researcher-shared-progress-slot .strategy-progress-card {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 6px;
}

.analyst-run-card .strategy-progress-inline-slot,
.analyst-run-card .strategy-progress-inline,
.analyst-run-card .strategy-progress-card {
    background: transparent;
    border: none;
    box-shadow: none;
}

.analyst-run-card .strategy-progress-inline,
.analyst-run-card .strategy-progress-card {
    padding: 0;
    gap: 6px;
}

.analyst-run-card .strategy-progress-track {
    background: transparent;
}

.researcher-generate-progress-slot .strategy-progress-head,
.researcher-generate-progress-slot .strategy-progress-message,
.researcher-shared-progress-slot .strategy-progress-head,
.researcher-shared-progress-slot .strategy-progress-message {
    padding-left: 0;
    padding-right: 0;
}

.researcher-generate-progress-slot .strategy-progress-message,
.researcher-shared-progress-slot .strategy-progress-message,
.analyst-run-card .strategy-progress-message,
.analyst-experiment-progress-slot .strategy-progress-message {
    margin: 0;
    padding-top: 0;
    padding-bottom: 6px;
}

.researcher-generate-progress-slot .strategy-progress-track,
.researcher-shared-progress-slot .strategy-progress-track {
    background: transparent;
}

.strategy-lab-page.is-builder .researcher-shared-progress-slot #researcher-progress-card {
    margin: 0 0 12px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.strategy-lab-page.is-builder .researcher-shared-progress-slot #researcher-progress-card .strategy-progress-track {
    height: 8px;
}

.researcher-generate-form .researcher-generator-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.analyst-simple-grid {
    align-items: start;
}

#analyst-latest-report {
    grid-column: 1 / -1;
}

.analyst-simple-card,
.analyst-history-card {
    gap: 16px;
}

.analyst-report-summary,
.analyst-section-block,
.analyst-experiment-simple-item,
.analyst-history-simple-item {
    border: 1px solid rgba(117, 178, 181, 0.12);
    background: rgba(10, 20, 28, 0.82);
    border-radius: 16px;
    padding: 16px 18px;
}

.analyst-report-summary strong,
.analyst-experiment-simple-head strong,
.analyst-history-simple-item strong {
    display: block;
    color: #f2fbfb;
}

.analyst-report-summary p,
.analyst-section-block ul,
.analyst-experiment-simple-item p,
.analyst-history-simple-item p {
    margin: 10px 0 0;
}

.analyst-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.analyst-report-summary + .analyst-section-grid {
    margin-top: 18px;
}

.analyst-section-block .eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
}

.analyst-output-list {
    display: grid;
    gap: 8px;
    padding-left: 18px;
}

.analyst-experiment-simple-list,
.analyst-history-simple-list {
    display: grid;
    gap: 14px;
}

.analyst-experiment-simple-head,
.analyst-history-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.analyst-simple-bullets {
    margin: 12px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

.analyst-simple-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.analyst-experiment-actions {
    margin-top: 14px;
}

.analyst-next-experiments-card .analyst-symbol-preview {
    margin-top: 12px;
}

.analyst-next-experiments-card .analyst-experiment-simple-list {
    gap: 14px;
}

.analyst-next-experiments-card .analyst-experiment-simple-item {
    display: grid;
    gap: 14px;
}

.analyst-experiment-title-block {
    display: grid;
    gap: 4px;
}

.analyst-next-experiments-card .analyst-experiment-title-block strong {
    font-size: 1rem;
    line-height: 1.35;
}

.analyst-next-experiments-card .analyst-experiment-meta {
    margin-top: 0;
}

.analyst-experiment-copy {
    display: grid;
    gap: 8px;
}

.analyst-next-experiments-card .analyst-experiment-idea {
    margin: 0;
    color: #f2fbfb;
    font-size: 0.96rem;
    font-weight: 700;
}

.analyst-experiment-reason {
    margin: 0;
    line-height: 1.6;
}

.analyst-experiment-panel {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(111, 145, 158, 0.16);
    background: rgba(255, 255, 255, 0.03);
}

.analyst-experiment-panel-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #7ecfd8;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.analyst-next-experiments-card .analyst-simple-bullets {
    margin: 0;
    padding-left: 18px;
    gap: 8px;
}

.analyst-next-experiments-card .analyst-simple-metrics,
.analyst-next-experiments-card .analyst-symbol-preview {
    margin-top: 0;
    gap: 10px;
}

.analyst-next-experiments-card .analyst-experiment-meta .mini-pill,
.analyst-next-experiments-card .analyst-simple-metrics .mini-pill,
.analyst-next-experiments-card .analyst-symbol-preview .mini-pill,
.analyst-next-experiments-card .analyst-experiment-actions .mini-pill {
    min-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    border: 1px solid rgba(82, 211, 219, 0.18);
    background: rgba(82, 211, 219, 0.12);
    color: #dffbff;
    line-height: 1;
    box-shadow: none;
}

#analyst-latest-report .strategy-card-head .mini-pill {
    min-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    border: 1px solid rgba(82, 211, 219, 0.18);
    background: rgba(82, 211, 219, 0.12);
    color: #dffbff;
    line-height: 1;
    box-shadow: none;
}

.analyst-experiment-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.analyst-next-experiments-card .analyst-experiment-actions {
    margin-top: 0;
    margin-left: auto;
    flex: 0 0 auto;
}

.analyst-experiment-progress-slot {
    width: min(460px, 100%);
    max-width: 460px;
    flex: 0 1 460px;
}

.analyst-experiment-progress-slot .strategy-progress-inline,
.analyst-experiment-progress-slot .strategy-progress-card {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 6px;
}

.analyst-experiment-progress-slot .strategy-progress-track {
    background: transparent;
}

.analyst-experiment-progress-slot .strategy-progress-head,
.analyst-experiment-progress-slot .strategy-progress-message {
    padding-left: 0;
    padding-right: 0;
}

.analyst-experiment-progress-slot .strategy-progress-head {
    justify-content: flex-start;
    gap: 12px;
}

.analyst-next-experiments-card .secondary-button {
    min-height: 40px;
    padding-inline: 16px;
    font-weight: 700;
}

.analyst-next-experiments-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.analyst-experiment-redesign-list {
    gap: 18px;
}

.analyst-next-experiments-card .analyst-experiment-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-color: rgba(111, 145, 158, 0.18);
    background:
        linear-gradient(180deg, rgba(10, 22, 30, 0.94), rgba(8, 17, 24, 0.98)),
        #08141c;
}

.analyst-experiment-index {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
    border-right: 1px solid rgba(117, 178, 181, 0.12);
    background:
        linear-gradient(180deg, rgba(82, 211, 219, 0.12), rgba(82, 211, 219, 0.02));
    color: #9be8ef;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.analyst-experiment-main {
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: 18px;
}

.analyst-experiment-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 30%);
    gap: 16px;
    align-items: start;
}

.analyst-next-experiments-card .analyst-experiment-title-block {
    gap: 7px;
}

.analyst-next-experiments-card .analyst-experiment-title-block strong {
    font-size: 1.08rem;
    line-height: 1.3;
}

.analyst-next-experiments-card .analyst-experiment-idea,
.analyst-next-experiments-card .analyst-experiment-reason {
    margin: 0;
}

.analyst-next-experiments-card .analyst-experiment-idea {
    max-width: 78ch;
    color: #f2fbfb;
    font-size: 0.95rem;
    font-weight: 750;
    line-height: 1.45;
}

.analyst-experiment-reason {
    max-width: 82ch;
    line-height: 1.6;
}

.analyst-experiment-status-panel {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(111, 145, 158, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.analyst-experiment-base {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.analyst-experiment-base span,
.analyst-change-row > span,
.analyst-run-spec-item span {
    color: #8fb1bd;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.analyst-experiment-base strong {
    color: #e8f6f7;
    font-size: 0.82rem;
    line-height: 1.35;
}

.analyst-experiment-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.analyst-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    width: fit-content;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(118, 136, 161, 0.16);
    background: rgba(255, 255, 255, 0.055);
    color: #d9e8ea;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.analyst-status-pill.is-ready {
    border-color: rgba(94, 234, 212, 0.2);
    background: rgba(13, 72, 66, 0.36);
    color: #abf4e8;
}

.analyst-status-pill.is-blocked {
    border-color: rgba(244, 114, 114, 0.2);
    background: rgba(84, 26, 34, 0.32);
    color: #ffc7c7;
}

.analyst-experiment-detail-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
    gap: 12px;
}

.analyst-next-experiments-card .analyst-experiment-panel {
    align-content: start;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border-radius: 14px;
    border-color: rgba(111, 145, 158, 0.13);
    background: rgba(255, 255, 255, 0.025);
}

.analyst-experiment-symbol-panel {
    grid-column: 1 / -1;
}

.analyst-change-list {
    display: grid;
    gap: 8px;
}

.analyst-change-row {
    display: grid;
    grid-template-columns: minmax(110px, 0.3fr) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid rgba(118, 136, 161, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.analyst-change-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: #dce9ea;
    line-height: 1.35;
}

.analyst-change-flow em {
    color: #9fb8c3;
    font-style: normal;
}

.analyst-change-flow small {
    color: #6f8995;
    font-weight: 800;
    text-transform: uppercase;
}

.analyst-change-flow strong {
    color: #f2fbfb;
    font-size: 0.9rem;
}

.analyst-run-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 8px;
}

.analyst-run-spec-item {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid rgba(118, 136, 161, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.analyst-run-spec-item strong {
    color: #f2fbfb;
    font-size: 0.86rem;
    line-height: 1.35;
}

.analyst-next-experiments-card .analyst-symbol-preview {
    margin-top: 0;
    gap: 8px;
}

.analyst-experiment-footer {
    align-items: center;
    padding-top: 2px;
}

.analyst-next-experiments-card .analyst-experiment-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0;
    margin-left: 0;
}

.analyst-experiment-run-form {
    margin: 0;
}

.analyst-next-experiments-card .analyst-experiment-run-button,
.analyst-next-experiments-card .primary-button {
    min-height: 42px;
    padding-inline: 18px;
    font-weight: 800;
}

html[data-theme="light"] .analyst-report-summary,
html[data-theme="light"] .analyst-section-block,
html[data-theme="light"] .analyst-experiment-simple-item,
html[data-theme="light"] .analyst-history-simple-item {
    border: 1px solid rgba(23, 49, 61, 0.1);
    background: linear-gradient(180deg, rgba(248, 251, 253, 0.98), rgba(241, 246, 249, 0.98));
    box-shadow: 0 10px 24px rgba(16, 35, 46, 0.06);
}

html[data-theme="light"] .analyst-report-summary strong,
html[data-theme="light"] .analyst-experiment-simple-head strong,
html[data-theme="light"] .analyst-history-simple-item strong,
html[data-theme="light"] .analyst-simple-card .strategy-card-head h2,
html[data-theme="light"] .analyst-simple-card .strategy-card-head p {
    color: #17313d;
}

html[data-theme="light"] .analyst-report-summary p,
html[data-theme="light"] .analyst-section-block ul,
html[data-theme="light"] .analyst-experiment-simple-item p,
html[data-theme="light"] .analyst-history-simple-item p,
html[data-theme="light"] .analyst-live-text,
html[data-theme="light"] .analyst-simple-bullets {
    color: #526874;
}

html[data-theme="light"] .analyst-section-block .eyebrow,
html[data-theme="light"] .analyst-simple-card .eyebrow {
    color: #2c97a4;
}

html[data-theme="light"] .analyst-simple-card .mini-pill,
html[data-theme="light"] .analyst-next-experiments-card .mini-pill,
html[data-theme="light"] .analyst-history-card .mini-pill {
    background: linear-gradient(180deg, rgba(229, 239, 244, 0.95), rgba(220, 232, 238, 0.95));
    border-color: rgba(89, 117, 130, 0.16);
    color: #314b57;
    box-shadow: none;
}

html[data-theme="light"] .analyst-next-experiments-card .analyst-simple-metrics .mini-pill,
html[data-theme="light"] .analyst-next-experiments-card .analyst-symbol-preview .mini-pill,
html[data-theme="light"] .analyst-next-experiments-card .analyst-experiment-meta .mini-pill,
html[data-theme="light"] .analyst-next-experiments-card .analyst-experiment-actions .mini-pill {
    background: linear-gradient(180deg, rgba(226, 247, 250, 0.98), rgba(214, 241, 245, 0.98));
    border-color: rgba(21, 179, 196, 0.14);
    color: #117d88;
    box-shadow: none;
    min-height: 22px;
    padding: 0 7px;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1;
}

html[data-theme="light"] #analyst-latest-report .strategy-card-head .mini-pill {
    background: linear-gradient(180deg, rgba(226, 247, 250, 0.98), rgba(214, 241, 245, 0.98));
    border-color: rgba(21, 179, 196, 0.14);
    color: #117d88;
    box-shadow: none;
    min-height: 22px;
    padding: 0 7px;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1;
}

html[data-theme="light"] .analyst-next-experiments-card .secondary-button {
    background: #ffffff;
    border-color: rgba(23, 49, 61, 0.12);
    color: #17313d;
}

html[data-theme="light"] .analyst-next-experiments-card .secondary-button:hover {
    background: #f3f7f9;
    border-color: rgba(21, 179, 196, 0.24);
    color: #17313d;
}

html[data-theme="light"] .analyst-next-experiments-card .analyst-experiment-simple-item {
    box-shadow: 0 10px 24px rgba(16, 35, 46, 0.06);
}

html[data-theme="light"] .analyst-next-experiments-card .analyst-experiment-idea {
    color: #17313d;
}

html[data-theme="light"] .analyst-experiment-progress-slot .strategy-progress-inline,
html[data-theme="light"] .analyst-experiment-progress-slot .strategy-progress-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

html[data-theme="light"] .analyst-experiment-progress-slot .strategy-progress-track {
    background: transparent !important;
}

html[data-theme="light"] .analyst-next-experiments-card .analyst-experiment-progress-slot .strategy-progress-card,
html[data-theme="light"] .analyst-next-experiments-card .analyst-experiment-progress-slot .strategy-progress-inline,
html[data-theme="light"] .analyst-next-experiments-card .analyst-experiment-progress-slot .strategy-progress-inline-slot {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

html[data-theme="light"] .analyst-experiment-panel {
    border-color: rgba(23, 49, 61, 0.08);
    background: rgba(231, 239, 244, 0.52);
}

html[data-theme="light"] .analyst-experiment-panel-label {
    color: #2597a6;
}

html[data-theme="light"] .analyst-experiment-reason {
    color: #526874;
}

html[data-theme="light"] .analyst-next-experiments-card .analyst-simple-bullets {
    color: #4f6672;
}

html[data-theme="light"] .analyst-next-experiments-card .analyst-experiment-card {
    border-color: rgba(23, 49, 61, 0.1);
    background: linear-gradient(180deg, rgba(248, 251, 253, 0.98), rgba(241, 246, 249, 0.98));
}

html[data-theme="light"] .analyst-experiment-index {
    border-right-color: rgba(23, 49, 61, 0.08);
    background: linear-gradient(180deg, rgba(35, 199, 217, 0.14), rgba(35, 199, 217, 0.035));
    color: #138391;
}

html[data-theme="light"] .analyst-experiment-status-panel,
html[data-theme="light"] .analyst-next-experiments-card .analyst-experiment-panel,
html[data-theme="light"] .analyst-change-row,
html[data-theme="light"] .analyst-run-spec-item {
    border-color: rgba(23, 49, 61, 0.08);
    background: rgba(255, 255, 255, 0.56);
}

html[data-theme="light"] .analyst-experiment-base span,
html[data-theme="light"] .analyst-change-row > span,
html[data-theme="light"] .analyst-run-spec-item span {
    color: #6f8390;
}

html[data-theme="light"] .analyst-experiment-base strong,
html[data-theme="light"] .analyst-change-flow strong,
html[data-theme="light"] .analyst-run-spec-item strong {
    color: #17313d;
}

html[data-theme="light"] .analyst-change-flow,
html[data-theme="light"] .analyst-change-flow em {
    color: #526874;
}

html[data-theme="light"] .analyst-change-flow small {
    color: #8798a2;
}

html[data-theme="light"] .analyst-status-pill {
    border-color: rgba(89, 117, 130, 0.16);
    background: #f3f7f9;
    color: #314b57;
}

html[data-theme="light"] .analyst-status-pill.is-ready {
    border-color: rgba(31, 122, 77, 0.14);
    background: #e4f6ed;
    color: #1f7a4d;
}

html[data-theme="light"] .analyst-status-pill.is-blocked {
    border-color: rgba(163, 58, 58, 0.16);
    background: #fff2f2;
    color: #9c3b3b;
}

html[data-theme="light"] .analyst-next-experiments-card .primary-button {
    color: #0f2731;
}

@media (max-width: 980px) {
    .analyst-section-grid {
        grid-template-columns: 1fr;
    }

    .analyst-next-experiments-card .analyst-experiment-meta {
        justify-content: flex-start;
    }

    .analyst-experiment-hero,
    .analyst-experiment-detail-grid {
        grid-template-columns: 1fr;
    }

    .analyst-experiment-status-panel {
        max-width: none;
    }
}

@media (max-width: 680px) {
    .analyst-next-experiments-head,
    .analyst-experiment-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .analyst-experiment-progress-slot {
        width: 100%;
        max-width: none;
        flex-basis: auto;
    }

    .analyst-next-experiments-card .analyst-experiment-card {
        grid-template-columns: 1fr;
    }

    .analyst-experiment-index {
        justify-content: flex-start;
        padding: 12px 16px;
        border-right: 0;
        border-bottom: 1px solid rgba(117, 178, 181, 0.12);
    }

    html[data-theme="light"] .analyst-experiment-index {
        border-right: 0;
        border-bottom-color: rgba(23, 49, 61, 0.08);
    }

    .analyst-experiment-main {
        padding: 16px;
    }

    .analyst-change-row {
        grid-template-columns: 1fr;
    }

    .analyst-next-experiments-card .analyst-experiment-actions,
    .analyst-experiment-run-form,
    .analyst-next-experiments-card .analyst-experiment-run-button {
        width: 100%;
    }
}

body.page-strat-ai .strat-ai-code-rain {
    display: none;
}

body.page-strat-ai .strat-ai-terminal-shell,
body.page-strat-ai .strat-ai-tabs-panel,
body.page-strat-ai .strat-ai-board-panel,
body.page-strat-ai .strat-ai-strategy-card,
body.page-strat-ai .strat-ai-feed-item,
body.page-strat-ai .strat-ai-ranked-item,
body.page-strat-ai .strat-ai-empty-state {
    border-color: rgba(118, 136, 161, 0.14);
    background:
        linear-gradient(180deg, rgba(10, 19, 28, 0.94), rgba(8, 14, 20, 0.98)),
        #07161f;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

body.page-strat-ai .strat-ai-strategy-card {
    display: flex;
    flex-direction: column;
}

body.page-strat-ai .strat-ai-latest-panel {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

body.page-strat-ai .strat-ai-latest-panel .strat-ai-section-head h2::before {
    content: none;
}

body.page-strat-ai .strat-ai-tabs-panel {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

body.page-strat-ai .strat-ai-tabs-panel .strat-ai-section-head h2::before {
    content: none;
}

body.page-strat-ai .strat-ai-terminal-shell,
body.page-strat-ai .strat-ai-robot-console,
body.page-strat-ai .strat-ai-command-stats {
    animation: none;
}

body.page-strat-ai .strat-ai-terminal-shell::after {
    background:
        linear-gradient(180deg, rgba(82, 211, 219, 0.025), transparent 18%, transparent 82%, rgba(82, 211, 219, 0.02)),
        radial-gradient(circle at 50% 0%, rgba(82, 211, 219, 0.035), transparent 40%);
    opacity: 0.3;
}

body.page-strat-ai .strat-ai-terminal-topline {
    border-bottom-color: rgba(118, 136, 161, 0.14);
}

body.page-strat-ai .strat-ai-terminal-title,
body.page-strat-ai .strat-ai-panel-head,
body.page-strat-ai .strat-ai-mini-meta,
body.page-strat-ai .strat-ai-card-category,
body.page-strat-ai .strat-ai-command-key,
body.page-strat-ai .strat-ai-metric-grid span,
body.page-strat-ai .strat-ai-board-title,
body.page-strat-ai .strat-ai-feed-subtitle {
    color: rgba(168, 186, 204, 0.72);
}

body.page-strat-ai .strat-ai-terminal-title::after,
body.page-strat-ai .strat-ai-terminal-copy#strat-ai-robot-line::after {
    color: rgba(82, 211, 219, 0.62);
}

body.page-strat-ai .strat-ai-title-lockup h1,
body.page-strat-ai .strat-ai-section-head h2,
body.page-strat-ai .strat-ai-strategy-card h3,
body.page-strat-ai .strat-ai-feed-main strong,
body.page-strat-ai .strat-ai-ranked-item strong {
    color: #f3f7fd;
}

body.page-strat-ai .strat-ai-terminal-copy,
body.page-strat-ai .strat-ai-note,
body.page-strat-ai .strat-ai-feed-summary,
body.page-strat-ai .strat-ai-ranked-copy span {
    color: rgba(214, 230, 236, 0.82);
}

body.page-strat-ai .strat-ai-metric-grid {
    margin-top: auto;
}

body.page-strat-ai .strat-ai-terminal-line-system .strat-ai-terminal-prefix {
    color: #8ec6ff;
}

body.page-strat-ai .strat-ai-terminal-line-robot .strat-ai-terminal-prefix,
body.page-strat-ai .strat-ai-terminal-prefix {
    color: rgba(103, 221, 216, 0.82);
}

body.page-strat-ai .strat-ai-terminal-prefix::before,
body.page-strat-ai .strat-ai-command-key::before,
body.page-strat-ai .strat-ai-tab::before,
body.page-strat-ai .strat-ai-board-title::before,
body.page-strat-ai .strat-ai-section-head h2::before {
    color: rgba(82, 211, 219, 0.42);
}

body.page-strat-ai .strat-ai-tab::before {
    content: none;
}

body.page-strat-ai .strat-ai-live-pill {
    border-color: rgba(82, 211, 219, 0.18);
    background: rgba(10, 18, 26, 0.9);
    color: #d8f7fb;
}

body.page-strat-ai .strat-ai-live-core {
    background: #52d3db;
    box-shadow: 0 0 0 4px rgba(82, 211, 219, 0.12);
    animation: none;
}

body.page-strat-ai .strat-ai-robot-console,
body.page-strat-ai .strat-ai-command-stats {
    border-color: rgba(118, 136, 161, 0.14);
    background:
        linear-gradient(180deg, rgba(8, 17, 28, 0.96), rgba(6, 12, 18, 0.98)),
        #07131b;
}

body.page-strat-ai .strat-ai-tablist {
    background: rgba(10, 18, 27, 0.94);
    border-color: rgba(118, 136, 161, 0.16);
}

body.page-strat-ai .strat-ai-tab {
    color: rgba(152, 168, 186, 0.82);
}

body.page-strat-ai #strat-ai-tab-feed-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[data-target="feed"],
body.page-strat-ai #strat-ai-tab-board-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[data-target="board"],
body.page-strat-ai #strat-ai-tab-all-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[data-target="all"] {
    color: #effcff;
    background: rgba(82, 211, 219, 0.14);
    box-shadow: inset 0 0 0 1px rgba(82, 211, 219, 0.16);
}

body.page-strat-ai .strat-ai-card-link:hover .strat-ai-strategy-card,
body.page-strat-ai .strat-ai-feed-link:hover .strat-ai-feed-item,
body.page-strat-ai .strat-ai-ranked-link:hover .strat-ai-ranked-item {
    border-color: rgba(82, 211, 219, 0.24);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(82, 211, 219, 0.04);
}

body.page-strat-ai .strat-ai-card-badge {
    color: #dffcff;
    background: rgba(82, 211, 219, 0.14);
    border: 1px solid rgba(82, 211, 219, 0.18);
}

body.page-strat-ai .strat-ai-mini-pill {
    color: #d7e4ef;
    background: rgba(17, 29, 40, 0.78);
    border-color: rgba(118, 136, 161, 0.14);
}

body.page-strat-ai .strat-ai-strategy-card.latest.featured {
    background:
        radial-gradient(circle at top right, rgba(82, 211, 219, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(10, 19, 28, 0.96), rgba(8, 14, 20, 0.98));
    border-color: rgba(82, 211, 219, 0.18);
}

body.page-strat-ai .strat-ai-strategy-card.is-fresh {
    border-color: rgba(82, 211, 219, 0.26);
    box-shadow: 0 0 0 1px rgba(82, 211, 219, 0.08), 0 0 18px rgba(82, 211, 219, 0.08);
}

body.page-strat-ai .strat-ai-feed-marker {
    background: rgba(82, 211, 219, 0.34);
    box-shadow: 0 0 0 4px rgba(82, 211, 219, 0.06);
}

body.page-strat-ai .strat-ai-ranked-item {
    border-left-color: rgba(82, 211, 219, 0.14);
}

body.page-strat-ai .strat-ai-ranked-index {
    border-color: rgba(82, 211, 219, 0.16);
    background: rgba(15, 28, 38, 0.92);
    color: #d8f7fb;
}

body.page-strat-ai .strat-ai-card-badge.is-positive,
body.page-strat-ai .strat-ai-mini-pill.is-positive,
body.page-strat-ai .strat-ai-table-badge.is-positive {
    background: rgba(18, 56, 35, 0.92);
    border-color: rgba(110, 231, 183, 0.24);
    color: #bff9d8;
}

body.page-strat-ai .strat-ai-card-badge.is-negative,
body.page-strat-ai .strat-ai-mini-pill.is-negative,
body.page-strat-ai .strat-ai-table-badge.is-negative {
    background: rgba(68, 22, 28, 0.92);
    border-color: rgba(252, 165, 165, 0.22);
    color: #ffc5ca;
}

body.page-strat-ai .strat-ai-card-badge.is-warning,
body.page-strat-ai .strat-ai-mini-pill.is-warning,
body.page-strat-ai .strat-ai-table-badge.is-warning {
    background: rgba(78, 57, 19, 0.9);
    border-color: rgba(243, 180, 93, 0.22);
    color: #ffd89a;
}

body.page-strat-ai .strat-ai-status-text.is-warning {
    color: #f5c979;
}

body.page-strat-ai .strat-ai-feed-item {
    border-left: none;
}

body.page-strat-ai .strat-ai-feed-item.is-positive {
    border-left-color: transparent;
}

body.page-strat-ai .strat-ai-feed-item.is-warning {
    border-left-color: transparent;
}

body.page-strat-ai .strat-ai-feed-item.is-negative {
    border-left-color: transparent;
}

body.page-strat-ai .strat-ai-feed-marker.status-positive {
    background: rgba(40, 215, 156, 0.9);
    box-shadow: 0 0 0 4px rgba(40, 215, 156, 0.08);
}

body.page-strat-ai .strat-ai-feed-marker.status-warning {
    background: rgba(243, 180, 93, 0.92);
    box-shadow: 0 0 0 4px rgba(243, 180, 93, 0.08);
}

body.page-strat-ai .strat-ai-feed-marker.status-negative {
    background: rgba(255, 107, 107, 0.9);
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.08);
}

body.page-strat-ai .strat-ai-feed-marker {
    display: none;
}

body.page-strat-ai .strat-ai-feed-meta,
body.page-strat-ai .strat-ai-ranked-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

body.page-strat-ai .strat-ai-info-token {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.52rem;
    border-radius: 999px;
    border: 1px solid rgba(118, 136, 161, 0.14);
    background: rgba(14, 24, 34, 0.78);
    color: rgba(196, 210, 228, 0.86);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}

body.page-strat-ai .strat-ai-info-token.tone-trend,
body.page-strat-ai .strat-ai-mini-pill.tone-trend {
    background: rgba(36, 90, 145, 0.24);
    border-color: rgba(85, 174, 254, 0.2);
    color: #b7dcff;
}

body.page-strat-ai .strat-ai-info-token.tone-breakout,
body.page-strat-ai .strat-ai-mini-pill.tone-breakout {
    background: rgba(22, 95, 92, 0.24);
    border-color: rgba(82, 211, 219, 0.18);
    color: #aef2f5;
}

body.page-strat-ai .strat-ai-info-token.tone-reversion,
body.page-strat-ai .strat-ai-mini-pill.tone-reversion,
body.page-strat-ai .strat-ai-info-token.tone-medium-risk,
body.page-strat-ai .strat-ai-mini-pill.tone-medium-risk {
    background: rgba(94, 69, 23, 0.24);
    border-color: rgba(243, 180, 93, 0.2);
    color: #ffd59a;
}

body.page-strat-ai .strat-ai-info-token.tone-volume,
body.page-strat-ai .strat-ai-mini-pill.tone-volume,
body.page-strat-ai .strat-ai-info-token.tone-ai,
body.page-strat-ai .strat-ai-mini-pill.tone-ai {
    background: rgba(96, 64, 178, 0.52);
    border-color: rgba(191, 165, 255, 0.42);
    color: #f0e9ff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

body.page-strat-ai .strat-ai-info-token.tone-pattern,
body.page-strat-ai .strat-ai-mini-pill.tone-pattern {
    background: rgba(46, 78, 110, 0.24);
    border-color: rgba(127, 173, 219, 0.18);
    color: #c3dfff;
}

body.page-strat-ai .strat-ai-info-token.tone-baseline,
body.page-strat-ai .strat-ai-mini-pill.tone-baseline,
body.page-strat-ai .strat-ai-info-token.tone-neutral,
body.page-strat-ai .strat-ai-mini-pill.tone-neutral {
    background: rgba(17, 29, 40, 0.92);
    border-color: rgba(149, 169, 191, 0.28);
    color: #edf6fb;
}

body.page-strat-ai .strat-ai-info-token.tone-low-risk,
body.page-strat-ai .strat-ai-mini-pill.tone-low-risk {
    background: rgba(18, 56, 35, 0.86);
    border-color: rgba(110, 231, 183, 0.18);
    color: #bff9d8;
}

body.page-strat-ai .strat-ai-info-token.tone-high-risk,
body.page-strat-ai .strat-ai-mini-pill.tone-high-risk {
    background: rgba(68, 22, 28, 0.88);
    border-color: rgba(252, 165, 165, 0.18);
    color: #ffc5ca;
}

body.page-strat-ai .strat-ai-feed-score.is-positive,
body.page-strat-ai .strat-ai-ranked-metric.is-positive {
    color: #8ee6b5;
}

body.page-strat-ai .strat-ai-feed-score.is-warning {
    color: #f5c979;
}

body.page-strat-ai .strat-ai-feed-score.is-negative,
body.page-strat-ai .strat-ai-ranked-metric.is-negative {
    color: #ff9aa4;
}

body.page-strat-ai .strat-ai-history-list {
    display: grid;
    gap: 0;
    overflow: hidden;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(10, 19, 28, 0.95), rgba(8, 14, 20, 0.98)),
        #07161f;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

body.page-strat-ai .strat-ai-history-list > .strat-ai-skeleton-card-feed {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.page-strat-ai .strat-ai-history-list > .strat-ai-skeleton-card-feed:not(:last-child) {
    border-bottom: 1px solid rgba(118, 136, 161, 0.14);
}

body.page-strat-ai .strat-ai-history-list > .strat-ai-skeleton-card-feed .strat-ai-skeleton-feed-row {
    padding: 1rem 1.15rem;
}

body.page-strat-ai .strat-ai-feed-toolbar {
    margin-top: 0.85rem;
    padding: 0;
    border: none;
    background: transparent;
}

body.page-strat-ai .strat-ai-feed-range {
    color: rgba(170, 186, 203, 0.78);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.page-strat-ai .strat-ai-feed-toolbar .strat-ai-pagination {
    gap: 0.45rem;
}

body.page-strat-ai .strat-ai-feed-toolbar .strat-ai-page-button {
    min-width: 2.1rem;
    min-height: 2rem;
    padding: 0.42rem 0.78rem;
    border-radius: 10px;
    border-color: rgba(118, 136, 161, 0.14);
    background: rgba(11, 20, 30, 0.82);
    color: rgba(220, 234, 244, 0.88);
    font-family: inherit;
    font-size: 0.78rem;
    letter-spacing: 0;
}

body.page-strat-ai .strat-ai-feed-toolbar .strat-ai-page-button.is-active {
    background: #47d0da;
    border-color: rgba(71, 208, 218, 0.7);
    color: #0d2831;
}

body.page-strat-ai .strat-ai-feed-toolbar .strat-ai-page-button:disabled {
    background: rgba(13, 22, 32, 0.48);
    color: rgba(170, 186, 203, 0.46);
}

body.page-strat-ai .strat-ai-feed-link {
    display: block;
}

body.page-strat-ai .strat-ai-feed-item {
    padding: 1rem 1.15rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(118, 136, 161, 0.14);
    border-radius: 0;
    box-shadow: none;
    transition: background-color 140ms ease, color 140ms ease;
}

body.page-strat-ai .strat-ai-feed-link:last-child .strat-ai-feed-item {
    border-bottom: none;
}

body.page-strat-ai .strat-ai-feed-link:hover .strat-ai-feed-item {
    transform: none;
    border-color: rgba(118, 136, 161, 0.14);
    box-shadow: none;
    background: rgba(255, 255, 255, 0.028);
}

body.page-strat-ai .strat-ai-board-shell {
    display: grid;
    gap: 1.1rem;
    padding: 1.1rem;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(10, 19, 28, 0.95), rgba(8, 14, 20, 0.98)),
        #07161f;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

body.page-strat-ai .strat-ai-highlight-grid {
    gap: 1rem;
}

body.page-strat-ai .strat-ai-board-panel {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.page-strat-ai .strat-ai-board-panel-featured {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.022);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

body.page-strat-ai .strat-ai-board-panel-ranked {
    padding-top: 0.7rem;
    border-top: 1px solid rgba(118, 136, 161, 0.14);
}

body.page-strat-ai .strat-ai-board-title {
    margin-bottom: 0.7rem;
    color: rgba(170, 186, 203, 0.58);
}

body.page-strat-ai .strat-ai-board-title::before {
    content: none;
}

body.page-strat-ai .strat-ai-board-panel-featured .strat-ai-board-title {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    width: fit-content;
    max-width: max-content;
    min-height: 2rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(20, 56, 72, 0.32);
    box-shadow: inset 0 0 0 1px rgba(90, 165, 194, 0.2);
    color: rgba(214, 228, 238, 0.82);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.page-strat-ai .strat-ai-market-meta {
    display: inline-flex;
    align-items: center;
    color: rgba(170, 186, 203, 0.62);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.page-strat-ai .strat-ai-type-meta {
    display: inline-flex;
    align-items: center;
    color: rgba(208, 220, 232, 0.72);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

body.page-strat-ai .strat-ai-meta-line {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(170, 186, 203, 0.66);
}

body.page-strat-ai .strat-ai-meta-dot {
    color: rgba(170, 186, 203, 0.4);
    font-size: 0.72rem;
    line-height: 1;
}

body.page-strat-ai .strat-ai-board-panel-ranked .strat-ai-board-title {
    margin-bottom: 0.9rem;
    padding-top: 0.15rem;
}

body.page-strat-ai .strat-ai-board-panel-featured .strat-ai-card-link {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
}

body.page-strat-ai .strat-ai-board-panel-featured .strat-ai-card-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.page-strat-ai .strat-ai-board-panel-featured .strat-ai-strategy-card.compact {
    min-height: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.page-strat-ai .strat-ai-board-panel-featured .strat-ai-card-link:hover .strat-ai-strategy-card.compact {
    background: transparent;
}

body.page-strat-ai .strat-ai-metric-grid strong .strat-ai-score-value,
body.page-strat-ai .strat-ai-metric-grid .strat-ai-score-value {
    color: var(--score-color);
}

body.page-strat-ai .strat-ai-board-panel-featured .strat-ai-strategy-card.compact .strat-ai-note {
    margin-top: 0.85rem;
    color: rgba(201, 214, 226, 0.68);
    font-size: 0.92rem;
    line-height: 1.5;
}

body.page-strat-ai .strat-ai-board-panel-featured .strat-ai-strategy-card.compact .strat-ai-pill-row {
    margin-top: 0.55rem;
}

body.page-strat-ai .strat-ai-board-panel-featured .strat-ai-strategy-card.compact .strat-ai-metric-grid {
    margin-top: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.page-strat-ai .strat-ai-board-panel-featured .strat-ai-strategy-card.compact .strat-ai-metric-grid > div {
    min-width: 0;
}

body.page-strat-ai .strat-ai-ranked-list,
body.page-strat-ai #strat-ai-ranked-list {
    display: grid;
    gap: 0;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.015);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

body.page-strat-ai .strat-ai-ranked-link {
    display: block;
}

body.page-strat-ai .strat-ai-ranked-item {
    padding: 1rem 1.05rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(118, 136, 161, 0.14);
    box-shadow: none;
    transition: background-color 140ms ease, color 140ms ease;
}

body.page-strat-ai .strat-ai-ranked-copy {
    display: grid;
    gap: 0.55rem;
}

body.page-strat-ai .strat-ai-ranked-copy strong {
    display: block;
    line-height: 1.3;
}

body.page-strat-ai .strat-ai-ranked-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

body.page-strat-ai .strat-ai-ranked-link:last-child .strat-ai-ranked-item {
    border-bottom: none;
}

body.page-strat-ai .strat-ai-ranked-link:hover .strat-ai-ranked-item {
    transform: none;
    border-color: rgba(118, 136, 161, 0.14);
    background: rgba(255, 255, 255, 0.022);
    box-shadow: none;
}

body.page-strat-ai .strat-ai-ranked-index {
    border-color: rgba(118, 136, 161, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(232, 240, 249, 0.9);
}

.theme-toggle {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(118, 136, 161, 0.16);
    background: rgba(12, 18, 26, 0.92);
}

.theme-toggle-option {
    appearance: none;
    border: 0;
    margin: 0;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 8px;
    background: transparent;
    color: #9db1bd;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background-color 140ms ease, color 140ms ease;
}

.theme-toggle-option:hover {
    color: #edf7fb;
}

.theme-toggle-option.is-active {
    background: rgba(35, 199, 217, 0.16);
    color: #f6fdff;
}

html[data-theme="light"] .page-shell,
html[data-theme="light"] .page-shell main {
    color: var(--text);
}

html[data-theme="light"] .card,
html[data-theme="light"] .mode-card,
html[data-theme="light"] .compact-row,
html[data-theme="light"] .list-row,
html[data-theme="light"] .strategy-wizard-step,
html[data-theme="light"] .asset-modal-dialog,
html[data-theme="light"] .exit-rule-card,
html[data-theme="light"] .asset-picker-option,
html[data-theme="light"] .researcher-generator-card,
html[data-theme="light"] .strategy-builder-card,
html[data-theme="light"] .builder-subpanel,
html[data-theme="light"] .results-panel,
html[data-theme="light"] .results-table-card,
html[data-theme="light"] .researcher-latest-card,
html[data-theme="light"] .researcher-history-card,
html[data-theme="light"] .researcher-next-card,
html[data-theme="light"] .home-leaderboard-empty,
html[data-theme="light"] .home-category,
html[data-theme="light"] .follow-guide-card,
html[data-theme="light"] .follow-setup-card,
html[data-theme="light"] .follow-chart-card,
html[data-theme="light"] .follow-other-setups,
html[data-theme="light"] .strategy-leaderboard-card,
html[data-theme="light"] .strat-ai-card,
html[data-theme="light"] .strat-ai-detail-card {
    background: var(--panel);
    border-color: var(--panel-border);
    box-shadow: var(--shadow);
}

html[data-theme="light"] .compact-row:hover,
html[data-theme="light"] .list-row:hover,
html[data-theme="light"] .card:hover,
html[data-theme="light"] .mode-card:hover,
html[data-theme="light"] .home-screeners-grid .compact-row:hover {
    background: var(--list-hover-bg);
}

html[data-theme="light"] .strategy-select,
html[data-theme="light"] .strategy-input,
html[data-theme="light"] .strategy-multiselect,
html[data-theme="light"] input[type="text"],
html[data-theme="light"] input[type="number"],
html[data-theme="light"] input[type="date"],
html[data-theme="light"] textarea,
html[data-theme="light"] select {
    background: var(--field-bg);
    border-color: var(--field-border);
    color: var(--text);
}

html[data-theme="light"] .strategy-select,
html[data-theme="light"] select {
    color-scheme: light;
}

html[data-theme="light"] .strategy-select::placeholder,
html[data-theme="light"] .strategy-input::placeholder,
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
    color: var(--field-placeholder);
}

html[data-theme="light"] .strategy-select:focus,
html[data-theme="light"] .strategy-input:focus,
html[data-theme="light"] .strategy-multiselect:focus,
html[data-theme="light"] input[type="text"]:focus,
html[data-theme="light"] input[type="number"]:focus,
html[data-theme="light"] input[type="date"]:focus,
html[data-theme="light"] textarea:focus,
html[data-theme="light"] select:focus,
html[data-theme="light"] .primary-button:focus,
html[data-theme="light"] .secondary-button:focus,
html[data-theme="light"] .icon-button:focus,
html[data-theme="light"] .inline-action:focus,
html[data-theme="light"] .researcher-help-trigger:focus-visible {
    border-color: rgba(21, 179, 196, 0.34);
    box-shadow: 0 0 0 4px rgba(35, 199, 217, 0.16);
}

html[data-theme="light"] .secondary-button,
html[data-theme="light"] .icon-button,
html[data-theme="light"] .researcher-help-trigger,
html[data-theme="light"] #strategy-step-back {
    background: var(--secondary-bg);
    border-color: var(--secondary-border);
    color: var(--secondary-text);
}

html[data-theme="light"] .secondary-button:hover,
html[data-theme="light"] .icon-button:hover,
html[data-theme="light"] .researcher-help-trigger:hover,
html[data-theme="light"] #strategy-step-back:hover {
    background: var(--secondary-hover-bg);
    border-color: var(--secondary-hover-border);
    color: var(--secondary-hover-text);
}

html[data-theme="light"] .home-top-five-row {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.98));
    border-color: rgba(23, 49, 61, 0.1);
    box-shadow: var(--shadow);
}

html[data-theme="light"] .home-top-five-row.is-first {
    border-color: rgba(35, 199, 217, 0.26);
    background:
        linear-gradient(90deg, rgba(35, 199, 217, 0.08), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 253, 0.98));
}

html[data-theme="light"] .home-top-five-metric,
html[data-theme="light"] .home-top-five-score,
html[data-theme="light"] .home-top-five-note {
    background: var(--metric-bg);
    border-color: var(--metric-border);
    color: var(--metric-text);
}

html[data-theme="light"] .home-top-five-market-inline,
html[data-theme="light"] .home-strategy-owner-text,
html[data-theme="light"] .compact-tag,
html[data-theme="light"] .field-help,
html[data-theme="light"] .exit-rule-copy,
html[data-theme="light"] .compact-meta,
html[data-theme="light"] .home-leaderboard-empty p {
    color: var(--muted);
}

html[data-theme="light"] .home-leaderboard-filter-tabs {
    background: #e6edf2;
    border: 1px solid rgba(23, 49, 61, 0.08);
    box-shadow: none;
}

html[data-theme="light"] .home-leaderboard-filter-tabs::before {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 18px rgba(16, 35, 46, 0.08);
}

html[data-theme="light"] .home-leaderboard-filter-tab {
    color: var(--muted);
}

html[data-theme="light"] .home-leaderboard-filter-tab.is-active,
html[data-theme="light"] .home-leaderboard-filter-tab:hover {
    color: var(--text);
}

html[data-theme="light"] .strategy-lab-page.is-builder .strategy-choice-card,
html[data-theme="light"] .strategy-lab-page.is-builder .exit-rule-card,
html[data-theme="light"] .strategy-lab-page.is-builder .asset-filter-summary,
html[data-theme="light"] .strategy-lab-page.is-builder .empty-chart-state,
html[data-theme="light"] .strategy-lab-page.is-builder .screener-table-wrap {
    background: var(--panel);
    border-color: var(--panel-border);
}

html[data-theme="light"] .strategy-lab-page.is-builder .strategy-select,
html[data-theme="light"] .strategy-lab-page.is-builder .strategy-input {
    border-color: var(--field-border);
    background: var(--field-bg);
    color: var(--text);
}

html[data-theme="light"] .strategy-lab-page.is-builder .exit-rule-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
}

html[data-theme="light"] .strategy-lab-page.is-builder .exit-rule-card-advanced {
    background: #f5f9fb;
}

html[data-theme="light"] .exit-rule-card:has(.exit-rule-toggle input:checked) {
    border-color: rgba(21, 179, 196, 0.24);
    box-shadow: inset 3px 0 0 #23c7d9;
}

html[data-theme="light"] .exit-rule-card:has(.exit-rule-toggle input:checked) .rule-status {
    background: rgba(35, 199, 217, 0.12);
    color: #117d88;
}

html[data-theme="light"] .exit-rule-card.is-disabled .strategy-input {
    background: var(--field-disabled-bg);
    border-color: var(--field-disabled-border);
    color: var(--field-disabled-text);
}

html[data-theme="light"] .exit-rule-card.is-disabled .strategy-input::placeholder {
    color: var(--field-disabled-placeholder);
}

html[data-theme="light"] table {
    color: var(--text);
}

html[data-theme="light"] th {
    color: var(--muted);
}

html[data-theme="light"] td,
html[data-theme="light"] th {
    border-color: rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] .compact-strategy-indicator,
html[data-theme="light"] .home-strategy-origin-badge,
html[data-theme="light"] .topbar-user-avatar-fallback {
    box-shadow: none;
}

html[data-theme="light"] .shimmer-block {
    background: linear-gradient(90deg, rgba(226, 236, 242, 0.9), rgba(240, 246, 249, 0.96), rgba(226, 236, 242, 0.9));
}

html[data-theme="light"] body.page-strat-ai .strat-ai-ranked-list,
html[data-theme="light"] body.page-strat-ai #strat-ai-ranked-list {
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0 0 1px rgba(23, 49, 61, 0.06);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-ranked-item {
    border-bottom-color: rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-ranked-link:hover .strat-ai-ranked-item {
    background: rgba(35, 199, 217, 0.07);
    border-color: rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-ranked-index {
    border-color: rgba(23, 49, 61, 0.12);
    background: rgba(241, 246, 249, 0.95);
    color: var(--text);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-board-panel-featured .strat-ai-strategy-card.compact .strat-ai-note {
    color: var(--muted);
}

@media (max-width: 980px) {
    .theme-toggle {
        order: -1;
    }
}

@media (max-width: 760px) {
    .theme-toggle {
        width: 100%;
    }

    .theme-toggle-option {
        width: 100%;
    }
}

html[data-theme="light"] body,
html[data-theme="light"] body.site-mode-stock,
html[data-theme="light"] body.page-directory,
html[data-theme="light"] body.page-strat-ai,
html[data-theme="light"] body.site-mode-landing {
    background:
        radial-gradient(circle at top left, rgba(35, 199, 217, 0.08), transparent 26%),
        radial-gradient(circle at top right, rgba(19, 49, 61, 0.06), transparent 18%),
        linear-gradient(180deg, #eff4f6 0%, #f7fafb 32%, #f3f7f9 100%) !important;
    color: var(--text);
}

html[data-theme="light"] body::before {
    opacity: 0.12;
}

html[data-theme="light"] body::after {
    opacity: 0.55;
}

html[data-theme="light"] .page-shell {
    position: relative;
}

html[data-theme="light"] .page-shell main {
    color: var(--text);
}

html[data-theme="light"] .home-tabs-shell {
    gap: 18px;
}

html[data-theme="light"] .home-tab-nav {
    border-color: rgba(23, 49, 61, 0.08);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 32px rgba(16, 35, 46, 0.08);
}

html[data-theme="light"] .home-tab-nav::before {
    border-color: rgba(21, 179, 196, 0.16);
    background: linear-gradient(180deg, rgba(35, 199, 217, 0.14), rgba(35, 199, 217, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .home-tab-control {
    color: #6b808a;
}

html[data-theme="light"] .home-tab-control.is-active,
html[data-theme="light"] .home-tab-control:hover {
    color: #17313d;
}

html[data-theme="light"] .home-leaderboard-toolbar,
html[data-theme="light"] .home-screener-toolbar {
    background: transparent;
}

html[data-theme="light"] .home-leaderboard-filter-tabs {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(23, 49, 61, 0.08);
    box-shadow: 0 12px 28px rgba(16, 35, 46, 0.06);
}

html[data-theme="light"] .home-leaderboard-filter-tabs::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 252, 0.98));
    border-color: rgba(21, 179, 196, 0.14);
    box-shadow: 0 8px 18px rgba(16, 35, 46, 0.06);
}

html[data-theme="light"] .home-leaderboard-filter-tab {
    color: #6f8390;
}

html[data-theme="light"] .home-leaderboard-filter-tab.is-active,
html[data-theme="light"] .home-leaderboard-filter-tab:hover {
    color: #17313d;
}

html[data-theme="light"] .home-top-five-list {
    gap: 12px;
}

html[data-theme="light"] .home-top-five-row {
    border-color: rgba(23, 49, 61, 0.08);
    background:
        radial-gradient(circle at left top, rgba(35, 199, 217, 0.05), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 252, 0.98));
    box-shadow: 0 16px 30px rgba(16, 35, 46, 0.08);
}

html[data-theme="light"] .home-top-five-row.is-first {
    border-color: rgba(35, 199, 217, 0.18);
    background:
        radial-gradient(circle at left top, rgba(35, 199, 217, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(248, 251, 253, 0.99));
}

html[data-theme="light"] .home-top-five-rank span {
    background: linear-gradient(180deg, rgba(226, 247, 250, 0.98), rgba(214, 241, 245, 0.98));
    border-color: rgba(21, 179, 196, 0.14);
    color: #117d88;
}

html[data-theme="light"] .home-top-five-title h3 {
    color: #17313d;
}

html[data-theme="light"] .home-top-five-score {
    background: rgba(226, 247, 250, 0.95);
    border-color: rgba(21, 179, 196, 0.14);
    color: #117d88;
}

html[data-theme="light"] .home-strategy-origin-badge {
    border-color: rgba(21, 179, 196, 0.12);
    background: rgba(35, 199, 217, 0.08);
    color: #117d88;
}

html[data-theme="light"] .home-strategy-owner-text,
html[data-theme="light"] .home-top-five-market-inline {
    color: #6f8390;
}

html[data-theme="light"] .home-top-five-metric {
    background: #f4f7f9;
    border-color: rgba(23, 49, 61, 0.08);
    color: #1f3a46;
}

html[data-theme="light"] .home-top-five-status {
    border-color: rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] .home-top-five-note {
    color: #5b717d;
}

html[data-theme="light"] .follow-button {
    border-color: rgba(21, 179, 196, 0.18);
    background: linear-gradient(180deg, #49d5e1, #22c7d8);
    color: #0f2731;
    box-shadow: 0 12px 22px rgba(35, 199, 217, 0.18);
}

html[data-theme="light"] .follow-button:hover {
    background: linear-gradient(180deg, #5fdae5, #31cbdb);
    box-shadow: 0 14px 26px rgba(35, 199, 217, 0.22);
}

html[data-theme="light"] .home-top-five-actions .secondary-button {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(23, 49, 61, 0.12);
    color: #24404c;
}

html[data-theme="light"] .home-top-five-actions .secondary-button:hover {
    background: #f4f8fa;
    border-color: rgba(21, 179, 196, 0.16);
    color: #17313d;
}

html[data-theme="light"] .home-category {
    border-color: rgba(23, 49, 61, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.98));
    box-shadow: 0 16px 28px rgba(16, 35, 46, 0.07);
}

html[data-theme="light"] .follow-focus-overview {
    border-color: rgba(23, 49, 61, 0.08);
    background:
        radial-gradient(circle at top left, rgba(35, 199, 217, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 252, 0.98));
    box-shadow: 0 14px 28px rgba(16, 35, 46, 0.06);
}

html[data-theme="light"] .follow-active-panel + .follow-active-panel {
    border-top-color: rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] .follow-active-index {
    background: linear-gradient(180deg, rgba(100, 224, 218, 0.98), rgba(67, 207, 224, 0.92));
    color: #15333f;
    box-shadow: 0 12px 24px rgba(16, 35, 46, 0.08);
}

html[data-theme="light"] .follow-focus-copy strong,
html[data-theme="light"] .follow-decision-copy h2,
html[data-theme="light"] .follow-step-card strong,
html[data-theme="light"] .follow-secondary-head strong {
    color: #17313d;
}

html[data-theme="light"] .follow-focus-copy span,
html[data-theme="light"] .follow-decision-copy p,
html[data-theme="light"] .follow-setup-reason {
    color: #5f7581;
}

html[data-theme="light"] .follow-focus-copy small,
html[data-theme="light"] .follow-setup-copy span {
    color: #7a909c;
}

html[data-theme="light"] .follow-step-card,
html[data-theme="light"] .follow-secondary-card {
    border-color: rgba(23, 49, 61, 0.08);
    background:
        radial-gradient(circle at top right, rgba(71, 208, 218, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 250, 252, 0.98));
    box-shadow: 0 12px 24px rgba(16, 35, 46, 0.05);
}

html[data-theme="light"] .follow-secondary-state {
    background: linear-gradient(180deg, rgba(236, 248, 251, 0.98), rgba(228, 244, 247, 0.98));
    border-color: rgba(21, 179, 196, 0.14);
    color: #1b6d77;
}

html[data-theme="light"] .follow-secondary-reason {
    color: #6f8591;
}

html[data-theme="light"] .follow-secondary-metric {
    --follow-secondary-metric-bg: #f4f8fa;
    --follow-secondary-metric-border: rgba(23, 49, 61, 0.08);
    --follow-secondary-metric-accent: #24404c;
    --follow-secondary-metric-label: #78909c;
    box-shadow: none;
}

html[data-theme="light"] .follow-secondary-metric::before {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .follow-secondary-metric.is-trigger {
    --follow-secondary-metric-bg: linear-gradient(180deg, rgba(241, 245, 248, 0.98), rgba(234, 240, 244, 0.98));
    --follow-secondary-metric-border: rgba(109, 129, 141, 0.14);
    --follow-secondary-metric-accent: #39505c;
    --follow-secondary-metric-label: #738894;
}

html[data-theme="light"] .follow-secondary-metric.is-plan {
    --follow-secondary-metric-bg: linear-gradient(180deg, rgba(241, 242, 255, 0.98), rgba(234, 236, 255, 0.98));
    --follow-secondary-metric-border: rgba(118, 129, 221, 0.16);
    --follow-secondary-metric-accent: #4657b8;
    --follow-secondary-metric-label: #7786c9;
}

html[data-theme="light"] .follow-secondary-metric.is-entry,
html[data-theme="light"] .follow-secondary-metric.is-current {
    --follow-secondary-metric-bg: linear-gradient(180deg, rgba(233, 249, 249, 0.99), rgba(223, 244, 244, 0.98));
    --follow-secondary-metric-border: rgba(21, 179, 196, 0.14);
    --follow-secondary-metric-accent: #0f828d;
    --follow-secondary-metric-label: #4b9ea5;
}

html[data-theme="light"] .follow-secondary-metric.is-stop {
    --follow-secondary-metric-bg: linear-gradient(180deg, rgba(255, 245, 245, 0.98), rgba(254, 238, 238, 0.98));
    --follow-secondary-metric-border: rgba(181, 78, 78, 0.14);
    --follow-secondary-metric-accent: #b04d4d;
    --follow-secondary-metric-label: #ca7a7a;
}

html[data-theme="light"] .follow-secondary-metric.is-target {
    --follow-secondary-metric-bg: linear-gradient(180deg, rgba(255, 249, 240, 0.99), rgba(254, 243, 226, 0.99));
    --follow-secondary-metric-border: rgba(188, 134, 47, 0.14);
    --follow-secondary-metric-accent: #b87820;
    --follow-secondary-metric-label: #c59856;
}

html[data-theme="light"] .follow-focus-chart {
    border-top: 0;
}

html[data-theme="light"] .follow-step-card .field-label {
    color: #6b808a;
}

html[data-theme="light"] .follow-decision-risk span,
html[data-theme="light"] .follow-decision-proof span {
    border-color: rgba(23, 49, 61, 0.08);
    background: rgba(245, 249, 251, 0.82);
}

html[data-theme="light"] .follow-decision-risk small,
html[data-theme="light"] .follow-decision-proof small {
    color: #6d8490;
}

html[data-theme="light"] .follow-decision-risk strong,
html[data-theme="light"] .follow-decision-proof strong {
    color: #17313d;
}

html[data-theme="light"] .follow-details-card[open] .follow-details-summary {
    border-bottom-color: rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] .follow-setup-detail-card {
    --follow-detail-card-shadow: 0 14px 24px rgba(16, 35, 46, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
    border-color: rgba(23, 49, 61, 0.08);
    box-shadow: var(--follow-detail-card-shadow);
}

html[data-theme="light"] .follow-setup-detail-card span {
    color: #6b7f8a;
}

html[data-theme="light"] .follow-setup-detail-card strong {
    color: #17313d;
}

html[data-theme="light"] .follow-chart-level {
    border-color: rgba(23, 49, 61, 0.08);
    background: #f3f7f9;
    color: #24404c;
    box-shadow: none;
}

html[data-theme="light"] .follow-chart-level::before {
    box-shadow: 0 0 0 4px rgba(23, 49, 61, 0.04);
}

html[data-theme="light"] .follow-chart-level.is-entry {
    background: linear-gradient(180deg, rgba(228, 248, 248, 0.98), rgba(217, 244, 243, 0.98));
    border-color: rgba(33, 182, 178, 0.16);
    color: #138e95;
}

html[data-theme="light"] .follow-chart-level.is-stop {
    background: linear-gradient(180deg, rgba(255, 244, 245, 0.98), rgba(255, 235, 237, 0.98));
    border-color: rgba(199, 78, 86, 0.16);
    color: #c54d59;
}

html[data-theme="light"] .follow-chart-level.is-target {
    background: linear-gradient(180deg, rgba(255, 248, 237, 0.98), rgba(255, 241, 221, 0.98));
    border-color: rgba(203, 142, 53, 0.16);
    color: #bf8331;
}

html[data-theme="light"] .follow-chart-level.is-timed {
    background: linear-gradient(180deg, rgba(241, 244, 255, 0.98), rgba(232, 237, 255, 0.98));
    border-color: rgba(105, 124, 214, 0.16);
    color: #5c70d2;
}

html[data-theme="light"] .follow-tv-chart {
    border: 1px solid rgba(23, 49, 61, 0.08);
    border-radius: 20px;
    overflow: hidden;
    background: #f8fbfc;
}

html[data-theme="light"] .follow-tv-chart.is-fallback-chart {
    background: #f8fbfc;
    border-color: rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] .follow-chart-loading-state {
    color: #315263;
}

html[data-theme="light"] .follow-chart-loading-dot {
    background: #21b6b2;
    box-shadow: 0 0 0 0 rgba(33, 182, 178, 0.24);
}

html[data-theme="light"] .follow-chart-fallback-grid line {
    stroke: rgba(94, 117, 129, 0.14);
}

html[data-theme="light"] .follow-chart-fallback-grid text {
    fill: #587482;
}

html[data-theme="light"] .follow-chart-fallback-area {
    fill: rgba(33, 182, 178, 0.08);
}

html[data-theme="light"] .follow-chart-fallback-caption {
    background: rgba(248, 251, 252, 0.9);
    color: #315263;
    border-color: rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] .follow-chart-fallback-empty {
    color: #587482;
}

html[data-theme="light"] .home-category-header {
    background: rgba(35, 199, 217, 0.03);
    border-bottom-color: rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] .home-category-header h2,
html[data-theme="light"] .compact-copy strong {
    color: #17313d;
}

html[data-theme="light"] .compact-tag,
html[data-theme="light"] .compact-meta {
    color: #6f8390;
}

html[data-theme="light"] .compact-row {
    background: transparent;
}

html[data-theme="light"] .home-screeners-grid .compact-row:hover {
    background: rgba(35, 199, 217, 0.08);
}

html[data-theme="light"] .theme-toggle {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(7, 16, 22, 0.78);
}

html[data-theme="light"] .theme-toggle-option {
    color: rgba(219, 230, 236, 0.78);
}

html[data-theme="light"] .theme-toggle-option:hover {
    color: #f4fbff;
}

html[data-theme="light"] .theme-toggle-option.is-active {
    background: rgba(35, 199, 217, 0.22);
    color: #f4fdff;
}

html[data-theme="light"] .detail-card,
html[data-theme="light"] .strategy-hero-panel,
html[data-theme="light"] .builder-mode-switch,
html[data-theme="light"] .strategy-builder-card,
html[data-theme="light"] .researcher-score-card,
html[data-theme="light"] .researcher-family-card,
html[data-theme="light"] .strategy-progress-card,
html[data-theme="light"] .researcher-generator-card,
html[data-theme="light"] .strategy-results-card,
html[data-theme="light"] .strategy-library-card,
html[data-theme="light"] .researcher-latest-card,
html[data-theme="light"] .researcher-history-card,
html[data-theme="light"] .researcher-next-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
    border-color: rgba(23, 49, 61, 0.08);
    box-shadow: 0 18px 32px rgba(16, 35, 46, 0.08);
}

html[data-theme="light"] .researcher-generate-progress-slot .strategy-progress-inline,
html[data-theme="light"] .researcher-shared-progress-slot .strategy-progress-inline {
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}

html[data-theme="light"] .researcher-generate-progress-slot .strategy-progress-card,
html[data-theme="light"] .researcher-shared-progress-slot .strategy-progress-card {
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}

html[data-theme="light"] .researcher-generate-progress-slot .strategy-progress-track,
html[data-theme="light"] .researcher-shared-progress-slot .strategy-progress-track {
    background: transparent !important;
}

html[data-theme="light"] .analyst-run-card .builder-inline-summary strong {
    color: #17313d;
}

html[data-theme="light"] .analyst-run-card .builder-inline-summary .field-label {
    color: #2aaeb8;
}

html[data-theme="light"] .analyst-run-card .strategy-progress-inline-slot,
html[data-theme="light"] .analyst-run-card .strategy-progress-inline,
html[data-theme="light"] .analyst-run-card .strategy-progress-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

html[data-theme="light"] .analyst-run-card .strategy-progress-inline,
html[data-theme="light"] .analyst-run-card .strategy-progress-card {
    padding: 0 !important;
}

html[data-theme="light"] .analyst-run-card .strategy-progress-track {
    background: transparent !important;
}

html[data-theme="light"] .strategy-lab-page.is-builder .researcher-shared-progress-slot #researcher-progress-card {
    background: transparent;
    border: none;
    box-shadow: none;
}

html[data-theme="light"] .strategy-card-head h2,
html[data-theme="light"] .researcher-section-head h2,
html[data-theme="light"] .results-panel-head h3,
html[data-theme="light"] .results-table-head h3,
html[data-theme="light"] .strategy-wizard-step-head h3,
html[data-theme="light"] .builder-mode-switch-copy h2,
html[data-theme="light"] .strategy-hero-copy h1,
html[data-theme="light"] .detail-card h2,
html[data-theme="light"] .detail-card h3 {
    color: #17313d;
}

html[data-theme="light"] .strategy-hero-copy p,
html[data-theme="light"] .builder-mode-switch-copy p,
html[data-theme="light"] .detail-card p,
html[data-theme="light"] .field-help,
html[data-theme="light"] .researcher-help-popover span,
html[data-theme="light"] .strategy-confirmation-summary,
html[data-theme="light"] .strategy-empty-copy,
html[data-theme="light"] .empty-chart-state p {
    color: #5f7581;
}

html[data-theme="light"] .eyebrow,
html[data-theme="light"] .badge {
    color: #68bfc8;
}

html[data-theme="light"] .strategy-hero-chip,
html[data-theme="light"] .rank-pill,
html[data-theme="light"] .mini-pill,
html[data-theme="light"] .status-pill,
html[data-theme="light"] .researcher-parameter-item,
html[data-theme="light"] .page-intro-metric,
html[data-theme="light"] .strategy-hero-stat,
html[data-theme="light"] .results-metric-card,
html[data-theme="light"] .results-snapshot-item,
html[data-theme="light"] .sidebar-tile {
    background: #f3f7f9;
    border-color: rgba(23, 49, 61, 0.08);
    color: #1f3a46;
}

html[data-theme="light"] .strategy-hero-stat strong,
html[data-theme="light"] .page-intro-metric strong,
html[data-theme="light"] .results-metric-card strong,
html[data-theme="light"] .results-snapshot-item strong,
html[data-theme="light"] .sidebar-tile strong,
html[data-theme="light"] .researcher-parameter-item strong,
html[data-theme="light"] .table-metric {
    color: #17313d;
}

html[data-theme="light"] .builder-mode-switch-actions {
    background: rgba(241, 246, 249, 0.96);
    border-color: rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] .builder-mode-switch-actions .secondary-button {
    background: transparent;
    color: #5f7581;
}

html[data-theme="light"] .builder-mode-switch-actions .secondary-button.is-active {
    background: linear-gradient(180deg, #49d5e1, #22c7d8);
    color: #0f2731;
}

html[data-theme="light"] .strategy-choice-card,
html[data-theme="light"] .strategy-choice-card-rich,
html[data-theme="light"] .strategy-confirmation-panel,
html[data-theme="light"] .builder-subpanel,
html[data-theme="light"] .strategy-wizard-shell,
html[data-theme="light"] .strategy-run-panel,
html[data-theme="light"] .exit-rule-card,
html[data-theme="light"] .screener-table-wrap,
html[data-theme="light"] .empty-chart-state,
html[data-theme="light"] .asset-filter-summary {
    background: #ffffff;
    border-color: rgba(23, 49, 61, 0.08);
    box-shadow: none;
}

html[data-theme="light"] .strategy-choice-card,
html[data-theme="light"] .strategy-choice-card-rich {
    color: #17313d;
}

html[data-theme="light"] .strategy-choice-card input:checked + span,
html[data-theme="light"] .strategy-choice-card-rich input:checked + span {
    color: #17313d;
}

html[data-theme="light"] .strategy-choice-card:has(input:checked),
html[data-theme="light"] .strategy-choice-card-rich:has(input:checked),
html[data-theme="light"] .exit-rule-card:has(.exit-rule-toggle input:checked) {
    border-color: rgba(35, 199, 217, 0.18);
    background: linear-gradient(180deg, rgba(230, 248, 250, 0.8), rgba(255, 255, 255, 0.98));
    box-shadow: inset 3px 0 0 #23c7d9;
}

html[data-theme="light"] .strategy-confirmation-head,
html[data-theme="light"] .researcher-generator-footer,
html[data-theme="light"] .results-panel-head,
html[data-theme="light"] .results-table-head,
html[data-theme="light"] .researcher-section-head,
html[data-theme="light"] .strategy-card-head {
    border-color: rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] .strategy-wizard-progress-item,
html[data-theme="light"] .strategy-wizard-progress-item strong,
html[data-theme="light"] .strategy-wizard-progress-item span {
    color: #7b8f9b;
}

html[data-theme="light"] .strategy-wizard-progress-item.is-active,
html[data-theme="light"] .strategy-wizard-progress-item.is-active strong,
html[data-theme="light"] .strategy-wizard-progress-item.is-active span {
    color: #17313d;
}

html[data-theme="light"] .strategy-wizard-step {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.98));
    border-color: rgba(23, 49, 61, 0.08);
    box-shadow: 0 14px 28px rgba(16, 35, 46, 0.06);
}

html[data-theme="light"] .strategy-wizard-step-head {
    border-bottom-color: rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] .strategy-wizard-step-head h3,
html[data-theme="light"] .strategy-wizard-step-head .eyebrow,
html[data-theme="light"] .strategy-wizard-step-head span {
    color: #17313d;
}

html[data-theme="light"] .strategy-choice-card,
html[data-theme="light"] .strategy-choice-card-rich {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
}

html[data-theme="light"] .strategy-choice-card span,
html[data-theme="light"] .strategy-choice-card strong,
html[data-theme="light"] .strategy-choice-card-rich span,
html[data-theme="light"] .strategy-choice-card-rich strong {
    color: #17313d;
}

html[data-theme="light"] .strategy-choice-card .strategy-choice-copy span,
html[data-theme="light"] .strategy-choice-card-rich .strategy-choice-copy span {
    color: #6f8390;
}

html[data-theme="light"] .strategy-field .field-label,
html[data-theme="light"] .strategy-confirmation-summary strong,
html[data-theme="light"] .strategy-confirmation-summary .field-label,
html[data-theme="light"] .wizard-summary-label,
html[data-theme="light"] .strategy-run-summary p,
html[data-theme="light"] .strategy-run-summary span {
    color: #17313d;
}

html[data-theme="light"] .strategy-page-note,
html[data-theme="light"] .strategy-run-summary .muted,
html[data-theme="light"] .strategy-empty-copy span,
html[data-theme="light"] .strategy-field .field-help,
html[data-theme="light"] .field-label.field-label-subtle {
    color: #6f8390;
}

html[data-theme="light"] .researcher-help-trigger {
    background: #ffffff;
    border-color: rgba(23, 49, 61, 0.12);
    color: #17313d;
}

html[data-theme="light"] .researcher-help-popover,
html[data-theme="light"] .asset-modal-dialog {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 253, 0.99));
    border-color: rgba(23, 49, 61, 0.1);
    color: #17313d;
}

html[data-theme="light"] .researcher-remove-button {
    background: #fff4f4;
    border-color: rgba(163, 58, 58, 0.16);
    color: #9c3b3b;
}

html[data-theme="light"] .researcher-remove-button:hover {
    background: #fdecec;
    border-color: rgba(163, 58, 58, 0.22);
    color: #8f2f2f;
}

html[data-theme="light"] .screener-table th {
    color: #6f8390;
    border-bottom-color: rgba(23, 49, 61, 0.1);
    background: rgba(244, 247, 249, 0.92);
}

html[data-theme="light"] .screener-table td {
    color: #17313d;
    border-bottom-color: rgba(23, 49, 61, 0.08);
    background: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] .screener-table tbody tr:nth-child(even) td {
    background: rgba(247, 250, 252, 0.92);
}

html[data-theme="light"] .screener-table tbody tr:hover td {
    background: rgba(230, 247, 249, 0.8);
}

html[data-theme="light"] .screener-detail-tagline {
    color: #5f7581;
}

html[data-theme="light"] .screener-detail-table .table-asset-link,
html[data-theme="light"] .screener-detail-table .table-asset-copy strong {
    color: #17313d;
}

html[data-theme="light"] .screener-detail-table .table-asset-copy span {
    color: #5f7581;
}

html[data-theme="light"] .screener-detail-table .table-reason {
    color: #4d6571;
}

html[data-theme="light"] .strategy-lab-page.is-builder .builder-mode-switch,
html[data-theme="light"] .strategy-lab-page.is-builder .strategy-builder-card,
html[data-theme="light"] .strategy-lab-page.is-builder .researcher-score-card,
html[data-theme="light"] .strategy-lab-page.is-builder .strategy-progress-card,
html[data-theme="light"] .strategy-lab-page.is-builder .strategy-wizard-shell,
html[data-theme="light"] .strategy-lab-page.is-builder .strategy-wizard-step,
html[data-theme="light"] .strategy-lab-page.is-builder .strategy-confirmation-panel,
html[data-theme="light"] .strategy-lab-page.is-builder .strategy-run-panel,
html[data-theme="light"] .strategy-lab-page.is-builder .screener-table-wrap,
html[data-theme="light"] .strategy-lab-page.is-builder .empty-chart-state {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
    border-color: rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] .strategy-lab-page.is-builder .builder-subpanel {
    background: transparent;
    border: 0;
}

html[data-theme="light"] .strategy-lab-page.is-builder .strategy-card-head p,
html[data-theme="light"] .strategy-lab-page.is-builder .field-label,
html[data-theme="light"] .strategy-lab-page.is-builder .field-help,
html[data-theme="light"] .strategy-lab-page.is-builder .asset-filter-summary-meta,
html[data-theme="light"] .strategy-lab-page.is-builder .wizard-summary-label {
    color: #6f8390;
}

html[data-theme="light"] .strategy-lab-page.is-builder .asset-filter-summary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
    border-color: rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] .strategy-lab-page.is-builder .asset-filter-summary-copy strong,
html[data-theme="light"] .strategy-lab-page.is-builder .strategy-wizard-step-head h3,
html[data-theme="light"] .strategy-lab-page.is-builder .strategy-card-head h2 {
    color: #17313d;
}

html[data-theme="light"] .strategy-lab-page.is-builder .strategy-select,
html[data-theme="light"] .strategy-lab-page.is-builder .strategy-input {
    border-color: rgba(23, 49, 61, 0.12);
    background: #ffffff;
    color: #17313d;
}

html[data-theme="light"] .strategy-lab-page.is-builder .strategy-select::placeholder,
html[data-theme="light"] .strategy-lab-page.is-builder .strategy-input::placeholder {
    color: #8ea0aa;
}

html[data-theme="light"] .strategy-lab-page.is-builder .strategy-choice-card,
html[data-theme="light"] .strategy-lab-page.is-builder .exit-rule-card,
html[data-theme="light"] .strategy-lab-page.is-builder .asset-filter-summary,
html[data-theme="light"] .strategy-lab-page.is-builder .empty-chart-state,
html[data-theme="light"] .strategy-lab-page.is-builder .screener-table-wrap {
    border-color: rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] .strategy-lab-page.is-builder .strategy-confirmation-summary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
    border: 1px solid rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] .strategy-lab-page.is-builder .strategy-date-shortcut {
    background: #ffffff;
    border: 1px solid rgba(23, 49, 61, 0.1);
    color: #24404c;
}

html[data-theme="light"] .strategy-lab-page.is-builder .strategy-date-shortcut:hover,
html[data-theme="light"] .strategy-lab-page.is-builder .strategy-date-shortcut.is-active {
    background: rgba(35, 199, 217, 0.08);
    border-color: rgba(21, 179, 196, 0.16);
    color: #17313d;
}

html[data-theme="light"] .asset-picker-panel,
html[data-theme="light"] .asset-modal-dialog,
html[data-theme="light"] .asset-picker-option {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.98));
    border-color: rgba(23, 49, 61, 0.08);
    color: #17313d;
    box-shadow: none;
}

html[data-theme="light"] .asset-modal-backdrop {
    background: rgba(13, 24, 33, 0.24);
    backdrop-filter: blur(10px);
}

html[data-theme="light"] .asset-picker-option:hover {
    background: rgba(35, 199, 217, 0.07);
    border-color: rgba(21, 179, 196, 0.14);
}

html[data-theme="light"] .asset-picker-option:has(input:checked) {
    background: linear-gradient(180deg, rgba(230, 248, 250, 0.8), rgba(255, 255, 255, 0.98));
    border-color: rgba(21, 179, 196, 0.18);
    box-shadow: inset 3px 0 0 #23c7d9;
}

html[data-theme="light"] .asset-picker-option-copy strong,
html[data-theme="light"] .asset-picker-panel strong,
html[data-theme="light"] .asset-modal-dialog h2,
html[data-theme="light"] .asset-modal-dialog h3 {
    color: #17313d;
}

html[data-theme="light"] .asset-picker-option-copy span,
html[data-theme="light"] .asset-modal-dialog .field-help,
html[data-theme="light"] .asset-modal-dialog .muted,
html[data-theme="light"] .asset-modal-dialog .asset-picker-summary {
    color: #6f8390;
}

html[data-theme="light"] .strategy-select,
html[data-theme="light"] select {
    color-scheme: light !important;
}

html[data-theme="light"] .strategy-select option,
html[data-theme="light"] .strategy-select optgroup,
html[data-theme="light"] select option,
html[data-theme="light"] select optgroup {
    background: #ffffff !important;
    color: #17313d !important;
}

html[data-theme="light"] .strategy-select option:disabled,
html[data-theme="light"] select option:disabled {
    color: #8ea0aa !important;
}

html[data-theme="light"] .strategy-lab-page.is-builder #researcher-progress-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
    border: 1px solid rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] .strategy-lab-page.is-builder .researcher-shared-progress-slot #researcher-progress-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

html[data-theme="light"] .strategy-lab-page.is-builder #researcher-progress-card .strategy-progress-message {
    color: #5f7581;
}

html[data-theme="light"] .strategy-leaderboard-row {
    border-color: rgba(23, 49, 61, 0.08);
    background:
        radial-gradient(circle at left top, rgba(35, 199, 217, 0.05), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.98));
    box-shadow: 0 16px 28px rgba(16, 35, 46, 0.08);
}

html[data-theme="light"] .strategy-leaderboard-rank span {
    background: linear-gradient(180deg, rgba(226, 247, 250, 0.98), rgba(214, 241, 245, 0.98));
    color: #117d88;
    box-shadow: inset 0 0 0 1px rgba(21, 179, 196, 0.12);
}

html[data-theme="light"] .strategy-leaderboard-title strong {
    color: #17313d;
}

html[data-theme="light"] .strategy-leaderboard-title span {
    color: #6f8390;
}

html[data-theme="light"] .strategy-leaderboard-score-block {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
    border-color: rgba(23, 49, 61, 0.08);
    box-shadow: 0 14px 24px rgba(16, 35, 46, 0.06);
}

html[data-theme="light"] .strategy-leaderboard-score-block span {
    color: #6f8390;
}

html[data-theme="light"] .strategy-leaderboard-score-block strong {
    color: #17313d;
}

html[data-theme="light"] .strategy-leaderboard-metric {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
    border-color: rgba(23, 49, 61, 0.08);
    box-shadow: 0 14px 24px rgba(16, 35, 46, 0.06);
}

html[data-theme="light"] .strategy-leaderboard-metric span {
    color: #6f8390;
}

html[data-theme="light"] .strategy-leaderboard-metric strong {
    color: #17313d;
}

html[data-theme="light"] .strategy-leaderboard-validation span:last-child {
    color: #5f7581;
}

html[data-theme="light"] .unified-score-total,
html[data-theme="light"] .unified-score-summary-card,
html[data-theme="light"] .unified-score-component-card,
html[data-theme="light"] .unified-score-segment-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
    border-color: rgba(23, 49, 61, 0.08);
    box-shadow: 0 14px 24px rgba(16, 35, 46, 0.06);
}

html[data-theme="light"] .unified-score-total-label,
html[data-theme="light"] .unified-score-summary-card span,
html[data-theme="light"] .unified-score-component-head span,
html[data-theme="light"] .unified-score-segment-head span:first-child {
    color: #6b7f8a;
}

html[data-theme="light"] .unified-score-total strong,
html[data-theme="light"] .unified-score-summary-card strong,
html[data-theme="light"] .unified-score-component-head strong,
html[data-theme="light"] .unified-score-segment-head strong {
    color: #17313d;
}

html[data-theme="light"] .unified-score-total p,
html[data-theme="light"] .unified-score-summary-card p,
html[data-theme="light"] .unified-score-component-card p {
    color: #5f7581;
}

html[data-theme="light"] .follow-details-card .follow-setup-detail-card {
    --follow-detail-card-shadow: 0 14px 24px rgba(16, 35, 46, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
    border-color: rgba(23, 49, 61, 0.08);
    box-shadow: var(--follow-detail-card-shadow);
}

html[data-theme="light"] .follow-details-card .follow-setup-detail-card span {
    color: #6b7f8a;
}

html[data-theme="light"] .follow-details-card .follow-setup-detail-card strong {
    color: #17313d;
}

html[data-theme="light"] .unified-score-bar {
    background: rgba(23, 49, 61, 0.08);
}

.follow-validation-card > .follow-validation-grid > .unified-score-card,
html[data-theme="light"] .follow-validation-card > .follow-validation-grid > .unified-score-card {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.follow-validation-card .unified-score-total,
.follow-validation-card .unified-score-summary-card,
.follow-validation-card .unified-score-segment-card,
.follow-validation-card .unified-score-component-card {
    min-height: 96px !important;
    padding: 1rem !important;
    border-radius: 18px !important;
    border: 1px solid rgba(117, 178, 181, 0.14) !important;
    background: linear-gradient(180deg, rgba(17, 34, 43, 0.92), rgba(10, 22, 29, 0.96)) !important;
    box-shadow: none !important;
}

.follow-validation-card .unified-score-total.follow-setup-detail-card,
.follow-validation-card .unified-score-summary-card.follow-setup-detail-card,
.follow-validation-card .unified-score-segment-card.follow-setup-detail-card,
.follow-validation-card .unified-score-component-card.follow-setup-detail-card {
    box-shadow: var(--follow-detail-card-shadow) !important;
}

html[data-theme="light"] .follow-validation-card .unified-score-total,
html[data-theme="light"] .follow-validation-card .unified-score-summary-card,
html[data-theme="light"] .follow-validation-card .unified-score-segment-card,
html[data-theme="light"] .follow-validation-card .unified-score-component-card {
    border-color: rgba(23, 49, 61, 0.08) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98)) !important;
    box-shadow: 0 14px 24px rgba(16, 35, 46, 0.06) !important;
}

html[data-theme="light"] .follow-validation-card .unified-score-total.follow-setup-detail-card,
html[data-theme="light"] .follow-validation-card .unified-score-summary-card.follow-setup-detail-card,
html[data-theme="light"] .follow-validation-card .unified-score-segment-card.follow-setup-detail-card,
html[data-theme="light"] .follow-validation-card .unified-score-component-card.follow-setup-detail-card {
    box-shadow: var(--follow-detail-card-shadow) !important;
}

html[data-theme="light"] .unified-score-segment-metrics span {
    background: #f3f7f9;
    border-color: rgba(23, 49, 61, 0.08);
    color: #24404c;
}

html[data-theme="light"] .validation-chip.is-positive,
html[data-theme="light"] .validation-mini-badge.is-positive {
    background: rgba(232, 247, 239, 0.98);
    border-color: rgba(31, 122, 77, 0.14);
    color: #1f7a4d;
}

html[data-theme="light"] .validation-chip.is-warning,
html[data-theme="light"] .validation-mini-badge.is-warning {
    background: rgba(255, 244, 221, 0.98);
    border-color: rgba(154, 103, 0, 0.14);
    color: #9a6700;
}

html[data-theme="light"] .validation-chip.is-negative,
html[data-theme="light"] .validation-mini-badge.is-negative {
    background: rgba(253, 234, 234, 0.98);
    border-color: rgba(163, 58, 58, 0.14);
    color: #a33a3a;
}

html[data-theme="light"] .validation-chip.is-neutral,
html[data-theme="light"] .validation-mini-badge.is-neutral {
    background: #f3f7f9;
    border-color: rgba(23, 49, 61, 0.08);
    color: #5f7581;
}

html[data-theme="light"] .trade-log-chart-legend-item {
    color: #6b7f8a;
}

html[data-theme="light"] .strategy-confirmation-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

html[data-theme="light"] .strategy-confirmation-toggle {
    background: #f8fbfc !important;
    border: 1px solid rgba(23, 49, 61, 0.08) !important;
    box-shadow: none !important;
}

html[data-theme="light"] .strategy-confirmation-toggle:hover {
    background: #f3f7f9 !important;
}

html[data-theme="light"] .strategy-confirmation-toggle span {
    color: #24404c !important;
}

html[data-theme="light"] .strategy-advanced-grid,
html[data-theme="light"] #researcher-advanced-fields {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

html[data-theme="light"] .strategy-leaderboard-actions .secondary-button {
    background: #ffffff;
    border: 1px solid rgba(23, 49, 61, 0.12);
    color: #24404c;
}

html[data-theme="light"] .strategy-leaderboard-actions .secondary-button:hover {
    background: #f4f8fa;
    border-color: rgba(21, 179, 196, 0.16);
    color: #17313d;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-latest-panel,
html[data-theme="light"] body.page-strat-ai .strat-ai-tabs-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.98));
    border-color: rgba(23, 49, 61, 0.08);
    box-shadow: 0 18px 32px rgba(16, 35, 46, 0.08);
    padding: 1.45rem 1.5rem;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-section-head h2,
html[data-theme="light"] body.page-strat-ai .strat-ai-card h3,
html[data-theme="light"] body.page-strat-ai .strat-ai-table-link strong,
html[data-theme="light"] body.page-strat-ai .strat-ai-ranked-copy strong {
    color: #17313d;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-mini-meta,
html[data-theme="light"] body.page-strat-ai .strat-ai-card-category,
html[data-theme="light"] body.page-strat-ai .strat-ai-card-insight,
html[data-theme="light"] body.page-strat-ai .strat-ai-table-link span,
html[data-theme="light"] body.page-strat-ai .strat-ai-market-meta,
html[data-theme="light"] body.page-strat-ai .strat-ai-type-meta,
html[data-theme="light"] body.page-strat-ai .strat-ai-meta-line,
html[data-theme="light"] body.page-strat-ai .strat-ai-board-title,
html[data-theme="light"] body.page-strat-ai .strat-ai-panel-head .strat-ai-mini-meta,
html[data-theme="light"] body.page-strat-ai .strat-ai-ranked-meta,
html[data-theme="light"] body.page-strat-ai .strat-ai-history-list .strat-ai-mini-meta {
    color: #6f8390;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-tablist {
    background: rgba(241, 246, 249, 0.96);
    border: 1px solid rgba(23, 49, 61, 0.08);
    border-radius: 16px;
    padding: 4px;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-tab {
    color: #6f8390;
    border-color: transparent;
    background: transparent;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-tab:hover {
    color: #17313d;
    background: rgba(35, 199, 217, 0.06);
}

html[data-theme="light"] body.page-strat-ai #strat-ai-tab-feed-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[data-target="feed"],
html[data-theme="light"] body.page-strat-ai #strat-ai-tab-board-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[data-target="board"],
html[data-theme="light"] body.page-strat-ai #strat-ai-tab-all-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[data-target="all"] {
    background: linear-gradient(180deg, rgba(71, 208, 218, 0.92), rgba(35, 199, 217, 0.9));
    color: #0f2731;
    border-color: rgba(21, 179, 196, 0.12);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-skeleton-card,
html[data-theme="light"] body.page-strat-ai .strat-ai-card,
html[data-theme="light"] body.page-strat-ai .strat-ai-empty-card,
html[data-theme="light"] body.page-strat-ai .strat-ai-board-panel-featured,
html[data-theme="light"] body.page-strat-ai .strat-ai-worker-card,
html[data-theme="light"] body.page-strat-ai .strat-ai-system-card,
html[data-theme="light"] body.page-strat-ai .strat-ai-card-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.98));
    border-color: rgba(23, 49, 61, 0.08);
    box-shadow: 0 14px 24px rgba(16, 35, 46, 0.06);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-chip,
html[data-theme="light"] body.page-strat-ai .strat-ai-mini-pill,
html[data-theme="light"] body.page-strat-ai .strat-ai-info-token.tone-baseline,
html[data-theme="light"] body.page-strat-ai .strat-ai-info-token.tone-neutral,
html[data-theme="light"] body.page-strat-ai .strat-ai-mini-pill.tone-baseline,
html[data-theme="light"] body.page-strat-ai .strat-ai-mini-pill.tone-neutral {
    background: #f3f7f9;
    border-color: rgba(23, 49, 61, 0.08);
    color: #24404c;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-info-token,
html[data-theme="light"] body.page-strat-ai .strat-ai-mini-pill {
    font-weight: 700;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-info-token.tone-volume,
html[data-theme="light"] body.page-strat-ai .strat-ai-mini-pill.tone-volume,
html[data-theme="light"] body.page-strat-ai .strat-ai-info-token.tone-ai,
html[data-theme="light"] body.page-strat-ai .strat-ai-mini-pill.tone-ai {
    background: #e6dcff;
    border-color: rgba(112, 75, 190, 0.32);
    color: #4c2a87;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-info-token.tone-breakout,
html[data-theme="light"] body.page-strat-ai .strat-ai-mini-pill.tone-breakout {
    background: #d8f3f4;
    border-color: rgba(21, 179, 196, 0.24);
    color: #09636d;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-info-token.tone-reversion,
html[data-theme="light"] body.page-strat-ai .strat-ai-mini-pill.tone-reversion {
    background: #fff0cf;
    border-color: rgba(177, 117, 0, 0.22);
    color: #8a5a00;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-info-token.tone-baseline,
html[data-theme="light"] body.page-strat-ai .strat-ai-mini-pill.tone-baseline {
    background: #e6eef2;
    border-color: rgba(23, 49, 61, 0.2);
    color: #17313d;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-info-token.tone-neutral,
html[data-theme="light"] body.page-strat-ai .strat-ai-mini-pill.tone-neutral {
    background: #dff4f5;
    border-color: rgba(21, 179, 196, 0.2);
    color: #17616a;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-card-badge,
html[data-theme="light"] body.page-strat-ai .strat-ai-table-badge {
    background: linear-gradient(180deg, rgba(255, 245, 245, 0.98), rgba(254, 237, 237, 0.98));
    border-color: rgba(163, 58, 58, 0.16);
    color: #9c3b3b;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-feed-score.is-positive,
html[data-theme="light"] body.page-strat-ai .strat-ai-ranked-metric.is-positive {
    color: #1f7a4d;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-feed-score.is-warning {
    color: #9a6700;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-feed-score.is-negative,
html[data-theme="light"] body.page-strat-ai .strat-ai-ranked-metric.is-negative {
    color: #a33a3a;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-mini-pill.is-negative,
html[data-theme="light"] body.page-strat-ai .strat-ai-table-badge.is-negative,
html[data-theme="light"] body.page-strat-ai .strat-ai-card-badge.is-negative {
    background: linear-gradient(180deg, rgba(255, 245, 245, 0.98), rgba(254, 237, 237, 0.98));
    border-color: rgba(163, 58, 58, 0.16);
    color: #9c3b3b;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-mini-pill.is-positive,
html[data-theme="light"] body.page-strat-ai .strat-ai-table-badge.is-positive,
html[data-theme="light"] body.page-strat-ai .strat-ai-card-badge.is-positive {
    background: linear-gradient(180deg, rgba(232, 247, 239, 0.98), rgba(223, 243, 231, 0.98));
    border-color: rgba(31, 122, 77, 0.14);
    color: #1f7a4d;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-history-list {
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 0 0 1px rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-feed-item {
    border-bottom-color: rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-feed-link:hover .strat-ai-feed-item {
    background: rgba(35, 199, 217, 0.07);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-board-shell {
    background: rgba(255, 255, 255, 0.84);
    box-shadow: inset 0 0 0 1px rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-board-panel-ranked {
    border-top-color: rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-board-panel-featured .strat-ai-board-title {
    background: #f3f7f9;
    border-color: rgba(23, 49, 61, 0.08);
    color: #5f7581;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-board-panel-featured .strat-ai-note {
    color: #5f7581;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-ranked-list,
html[data-theme="light"] body.page-strat-ai #strat-ai-ranked-list {
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 0 0 1px rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-ranked-item {
    border-bottom-color: rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-ranked-link:hover .strat-ai-ranked-item {
    background: rgba(35, 199, 217, 0.07);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-ranked-index {
    border-color: rgba(23, 49, 61, 0.12);
    background: rgba(241, 246, 249, 0.95);
    color: #17313d;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-table-shell {
    border-color: rgba(23, 49, 61, 0.08);
    background: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-filter-field span {
    color: #8aa0ab;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-filter-input,
html[data-theme="light"] body.page-strat-ai .strat-ai-filter-select {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(23, 49, 61, 0.12);
    color: #17313d;
    box-shadow: 0 8px 16px rgba(16, 35, 46, 0.04);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-filter-input::placeholder {
    color: #8aa0ab;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-filter-input:focus,
html[data-theme="light"] body.page-strat-ai .strat-ai-filter-select:focus,
html[data-theme="light"] body.page-strat-ai .strat-ai-filter-reset:focus {
    border-color: rgba(21, 179, 196, 0.32);
    box-shadow: 0 0 0 4px rgba(35, 199, 217, 0.14);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-filter-reset {
    background: #f4f8fa;
    border-color: rgba(23, 49, 61, 0.1);
    color: #24404c;
    font-weight: 700;
    box-shadow: none;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-filter-reset:hover {
    background: #eaf3f6;
    border-color: rgba(21, 179, 196, 0.18);
    color: #17313d;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-table-summary,
html[data-theme="light"] body.page-strat-ai .strat-ai-table-range {
    color: #5f7581;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-page-button {
    border-color: rgba(23, 49, 61, 0.08);
    background: #ffffff;
    color: #24404c;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-page-button:hover:not(:disabled) {
    background: #f4f8fa;
    border-color: rgba(21, 179, 196, 0.16);
    color: #17313d;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-page-button.is-active {
    background: linear-gradient(180deg, rgba(71, 208, 218, 0.92), rgba(35, 199, 217, 0.9));
    border-color: rgba(21, 179, 196, 0.12);
    color: #0f2731;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-feed-range {
    color: #536b78 !important;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-feed-toolbar .strat-ai-page-button {
    border-color: rgba(23, 49, 61, 0.08);
    background: #ffffff;
    color: #17313d;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-feed-toolbar .strat-ai-page-button.is-active {
    background: #47d0da;
    border-color: rgba(21, 179, 196, 0.18);
    color: #0f2731;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-feed-toolbar .strat-ai-page-button:disabled {
    background: #f6f9fb;
    color: #9aabb4;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-table thead th {
    color: #6f8390;
    border-bottom-color: rgba(23, 49, 61, 0.1);
    background: rgba(244, 247, 249, 0.96);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-table tbody td {
    color: #17313d;
    border-bottom-color: rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-table tbody tr:hover {
    background: rgba(35, 199, 217, 0.05);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-table-source-origin,
html[data-theme="light"] body.page-strat-ai .strat-ai-table-link-inline span,
html[data-theme="light"] body.page-strat-ai .strat-ai-table-baseline {
    background: #e6eef2;
    border-color: rgba(23, 49, 61, 0.2);
    color: #17313d;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-table-source-origin.tone-ai {
    background: #e6dcff;
    border-color: rgba(112, 75, 190, 0.32);
    color: #4c2a87;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-strategy-card,
html[data-theme="light"] body.page-strat-ai .strat-ai-feed-item,
html[data-theme="light"] body.page-strat-ai .strat-ai-ranked-item,
html[data-theme="light"] body.page-strat-ai .strat-ai-empty-state {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98)) !important;
    border-color: rgba(23, 49, 61, 0.1) !important;
    box-shadow: 0 14px 24px rgba(16, 35, 46, 0.06) !important;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-latest-grid {
    gap: 1.15rem;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-latest-grid .strat-ai-card-link,
html[data-theme="light"] body.page-strat-ai .strat-ai-latest-grid .strat-ai-strategy-card {
    min-height: 100%;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-strategy-card {
    padding: 1.25rem 1.25rem 1.15rem !important;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-strategy-head {
    gap: 1rem;
    margin-bottom: 0.55rem;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-pill-row {
    margin-top: 0.4rem;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-strategy-card h3,
html[data-theme="light"] body.page-strat-ai .strat-ai-feed-main strong,
html[data-theme="light"] body.page-strat-ai .strat-ai-ranked-copy strong,
html[data-theme="light"] body.page-strat-ai .strat-ai-empty-state strong {
    color: #17313d !important;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-note,
html[data-theme="light"] body.page-strat-ai .strat-ai-feed-time,
html[data-theme="light"] body.page-strat-ai .strat-ai-feed-score-label,
html[data-theme="light"] body.page-strat-ai .strat-ai-feed-subtitle,
html[data-theme="light"] body.page-strat-ai .strat-ai-mini-meta,
html[data-theme="light"] body.page-strat-ai .strat-ai-card-category,
html[data-theme="light"] body.page-strat-ai .strat-ai-market-meta,
html[data-theme="light"] body.page-strat-ai .strat-ai-type-meta,
html[data-theme="light"] body.page-strat-ai .strat-ai-meta-line,
html[data-theme="light"] body.page-strat-ai .strat-ai-board-title,
html[data-theme="light"] body.page-strat-ai .strat-ai-table-summary,
html[data-theme="light"] body.page-strat-ai .strat-ai-table-range {
    color: #5f7581 !important;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-metric-grid span,
html[data-theme="light"] body.page-strat-ai .strat-ai-card-metrics span {
    color: #6b7f8a !important;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-metric-grid strong,
html[data-theme="light"] body.page-strat-ai .strat-ai-card-metrics strong,
html[data-theme="light"] body.page-strat-ai .strat-ai-feed-score {
    color: #17313d !important;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-history-list {
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: inset 0 0 0 1px rgba(23, 49, 61, 0.08) !important;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-feed-item {
    background: transparent !important;
    border-bottom: 1px solid rgba(23, 49, 61, 0.08) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 1.2rem 1.35rem !important;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-feed-link:last-child .strat-ai-feed-item {
    border-bottom: none !important;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-feed-link:hover .strat-ai-feed-item {
    background: rgba(35, 199, 217, 0.07) !important;
    border-color: rgba(23, 49, 61, 0.08) !important;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-panel-head {
    padding: 0 0.1rem 0.3rem;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-section-head {
    margin-bottom: 1.15rem;
}

html[data-theme="light"] .topbar {
    background:
        radial-gradient(circle at 14% 22%, rgba(63, 133, 175, 0.34), transparent 22%),
        radial-gradient(circle at 88% 100%, rgba(30, 150, 136, 0.34), transparent 30%),
        linear-gradient(135deg, rgba(18, 43, 70, 0.94), rgba(20, 60, 83, 0.92) 48%, rgba(22, 105, 107, 0.9) 100%);
    border-bottom-color: rgba(23, 49, 61, 0.14);
    box-shadow: 0 10px 24px rgba(16, 35, 46, 0.11);
}

html[data-theme="light"] .brand-lockup .brand,
html[data-theme="light"] .nav-link,
html[data-theme="light"] .topbar-user-name,
html[data-theme="light"] .topbar-login-button {
    color: #eff8fb;
    text-shadow: none;
}

html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-link.active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(184, 235, 239, 0.18);
    color: #f7fdff;
}

html[data-theme="light"] .theme-toggle {
    border-color: rgba(204, 240, 242, 0.14);
    background: rgba(9, 26, 39, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .theme-toggle-option {
    color: rgba(228, 243, 246, 0.78);
}

html[data-theme="light"] .theme-toggle-option:hover {
    color: #f6fdff;
}

html[data-theme="light"] .theme-toggle-option.is-active {
    background: linear-gradient(180deg, rgba(108, 226, 236, 0.96), rgba(61, 209, 221, 0.92));
    color: #0f2731;
}

html[data-theme="light"] .topbar-user-chip,
html[data-theme="light"] .topbar-login-button {
    border-color: rgba(204, 240, 242, 0.14);
    background: rgba(9, 26, 39, 0.22);
    color: #eff8fb;
}

html[data-theme="light"] .topbar-user-chip:hover,
html[data-theme="light"] .topbar-login-button:hover,
html[data-theme="light"] .topbar-user-menu[open] .topbar-user-chip {
    border-color: rgba(184, 235, 239, 0.18);
    background: rgba(255, 255, 255, 0.12);
    color: #f7fdff;
}

html[data-theme="light"] .topbar-user-dropdown {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 252, 0.99));
    border-color: rgba(23, 49, 61, 0.1);
}

html[data-theme="light"] .topbar-user-dropdown-divider {
    background: rgba(23, 49, 61, 0.1);
}

html[data-theme="light"] .topbar-logout-button {
    color: #17313d;
}

html[data-theme="light"] .topbar-logout-button:hover {
    background: rgba(35, 199, 217, 0.08);
}

html[data-theme="light"] .topbar-account-link {
    color: #17313d;
}

html[data-theme="light"] .auth-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.98));
    border-color: rgba(23, 49, 61, 0.08);
    box-shadow: 0 24px 60px rgba(16, 35, 46, 0.08);
}

html[data-theme="light"] .auth-card h1 {
    color: #17313d;
}

html[data-theme="light"] .auth-card p,
html[data-theme="light"] .auth-form-note {
    color: #5f7581 !important;
}

html[data-theme="light"] .auth-provider-button {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(23, 49, 61, 0.1);
    color: #17313d;
}

html[data-theme="light"] .auth-provider-button:hover {
    background: #f4f8fa;
    border-color: rgba(21, 179, 196, 0.2);
    color: #102a35;
}

html[data-theme="light"] .auth-provider-mark {
    background: #dff4f5;
    color: #17616a;
}

html[data-theme="light"] .auth-provider-mark-google {
    background: #ffffff;
}

html[data-theme="light"] .auth-provider-mark-discord {
    background: #5865f2;
    color: #ffffff;
}

html[data-theme="light"] .auth-form-field input {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(23, 49, 61, 0.12);
    color: #17313d;
}

html[data-theme="light"] .save-strategy-button.is-saved {
    background: rgba(232, 247, 239, 0.98);
    border-color: rgba(31, 122, 77, 0.16);
    color: #1f7a4d;
}

html[data-theme="light"] .saved-strategy-row {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(23, 49, 61, 0.1);
}

html[data-theme="light"] .saved-strategy-title-row h3,
html[data-theme="light"] .saved-strategies-empty strong {
    color: #17313d;
}

html[data-theme="light"] .saved-strategy-meta span {
    background: #f3f7f9;
    border-color: rgba(23, 49, 61, 0.08);
    color: #49606b;
}

html[data-theme="light"] .saved-strategy-remove-button:hover {
    background: #fff1f2;
    border-color: rgba(225, 29, 72, 0.22);
    color: #9f1239;
}

html[data-theme="light"] .saved-strategies-empty {
    border-color: rgba(23, 49, 61, 0.12);
}

html[data-theme="light"] .directory-header-copy h1 {
    color: #17313d;
}

html[data-theme="light"] .directory-market-switch {
    border-color: rgba(23, 49, 61, 0.08);
    background: rgba(241, 246, 249, 0.96);
}

html[data-theme="light"] .directory-market-switch .market-switch-pill {
    color: #6f8390;
}

html[data-theme="light"] .directory-market-switch .market-switch-pill:hover {
    color: #17313d;
    background: rgba(35, 199, 217, 0.08);
}

html[data-theme="light"] .directory-market-switch .market-switch-pill.active {
    border-color: rgba(21, 179, 196, 0.14);
    background: linear-gradient(180deg, rgba(71, 208, 218, 0.92), rgba(35, 199, 217, 0.9));
    color: #0f2731;
}

html[data-theme="light"] .directory-controls-panel {
    border-color: rgba(23, 49, 61, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.96));
    box-shadow: 0 16px 30px rgba(16, 35, 46, 0.06);
}

html[data-theme="light"] .directory-controls-panel .field-label,
html[data-theme="light"] .directory-summary-row p,
html[data-theme="light"] .stock-page-status {
    color: #6b7f8a;
}

html[data-theme="light"] .directory-summary-row {
    border-top-color: rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] .directory-controls-panel .strategy-input,
html[data-theme="light"] .directory-controls-panel .strategy-select {
    background: #ffffff;
    border-color: rgba(23, 49, 61, 0.1);
    color: #17313d;
    box-shadow: none;
}

html[data-theme="light"] .directory-controls-panel .strategy-input::placeholder {
    color: #8aa0ad;
}

html[data-theme="light"] .directory-controls-panel .strategy-input:focus,
html[data-theme="light"] .directory-controls-panel .strategy-select:focus {
    border-color: rgba(35, 199, 217, 0.38);
    box-shadow: 0 0 0 4px rgba(35, 199, 217, 0.12);
}

html[data-theme="light"] .directory-controls-panel .secondary-button {
    background: #ffffff;
    border-color: rgba(23, 49, 61, 0.1);
    color: #24404c;
}

html[data-theme="light"] .directory-controls-panel .secondary-button:hover {
    background: #f4f8fa;
    border-color: rgba(21, 179, 196, 0.16);
    color: #17313d;
}

html[data-theme="light"] .stock-chip-row .mini-pill,
html[data-theme="light"] .stock-chip-row .stock-chip,
html[data-theme="light"] .stock-chip-row button {
    background: #f3f7f9;
    border: 1px solid rgba(23, 49, 61, 0.08);
    color: #24404c;
    box-shadow: none;
}

html[data-theme="light"] .stock-chip-row .mini-pill:hover,
html[data-theme="light"] .stock-chip-row .stock-chip:hover,
html[data-theme="light"] .stock-chip-row button:hover {
    background: rgba(35, 199, 217, 0.08);
    border-color: rgba(21, 179, 196, 0.16);
    color: #17313d;
}

html[data-theme="light"] .stock-chip-row .mini-pill.active,
html[data-theme="light"] .stock-chip-row .stock-chip.active,
html[data-theme="light"] .stock-chip-row button.active,
html[data-theme="light"] .stock-chip-row [aria-pressed="true"] {
    background: linear-gradient(180deg, rgba(71, 208, 218, 0.92), rgba(35, 199, 217, 0.9));
    border-color: rgba(21, 179, 196, 0.14);
    color: #0f2731;
}

html[data-theme="light"] .stock-detail-hero,
html[data-theme="light"] .stock-detail-chart-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
    border-color: rgba(23, 49, 61, 0.08);
    box-shadow: 0 16px 28px rgba(16, 35, 46, 0.08);
}

html[data-theme="light"] .stock-detail-hero::before,
html[data-theme="light"] .stock-detail-chart-panel::before {
    display: none;
}

html[data-theme="light"] .stock-detail-hero h1,
html[data-theme="light"] .stock-detail-chart-panel h2 {
    color: #17313d;
}

html[data-theme="light"] .stock-detail-hero .muted,
html[data-theme="light"] .stock-detail-hero p {
    color: #6b7f8a;
}

html[data-theme="light"] .stock-detail-hero .stat-card {
    background: #f3f7f9;
    border-color: rgba(23, 49, 61, 0.08);
    box-shadow: none;
}

html[data-theme="light"] .stock-detail-hero .stat-card span {
    color: #6b7f8a;
}

html[data-theme="light"] .stock-detail-hero .stat-card strong {
    color: #17313d;
}

html[data-theme="light"] .stock-detail-hero .mini-pill {
    background: #eef5f7;
    border-color: rgba(23, 49, 61, 0.08);
    color: #24404c;
}

html[data-theme="light"] .stock-detail-forecast-empty {
    background: linear-gradient(180deg, rgba(248, 251, 253, 0.98), rgba(241, 247, 250, 0.98));
    border-color: rgba(23, 49, 61, 0.08);
    color: #24404c;
}

html[data-theme="light"] .stock-detail-forecast-empty strong {
    color: #17313d;
}

html[data-theme="light"] .stock-detail-forecast-empty p {
    color: #6b7f8a;
}

html[data-theme="light"] .stock-detail-chart-panel .chart-header {
    border-bottom-color: rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] .stock-detail-chart-panel .tv-chart-shell {
    background: #ffffff;
    border-color: rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] .stock-directory-table-wrap {
    border-color: rgba(23, 49, 61, 0.08);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 24px rgba(16, 35, 46, 0.05);
}

html[data-theme="light"] .stock-directory-table th {
    background: rgba(244, 247, 249, 0.96);
    color: #6f8390;
    border-bottom-color: rgba(23, 49, 61, 0.1);
}

html[data-theme="light"] .stock-directory-table td {
    background: rgba(255, 255, 255, 0.88);
    color: #17313d;
    border-bottom-color: rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] .stock-directory-table tbody tr:nth-child(even) td {
    background: rgba(249, 251, 253, 0.94);
}

html[data-theme="light"] .stock-directory-table tbody tr:hover td {
    background: rgba(35, 199, 217, 0.05);
}

html[data-theme="light"] .stock-directory-table .table-asset-copy strong,
html[data-theme="light"] .stock-directory-table .table-asset-link {
    color: #17313d;
}

html[data-theme="light"] .stock-directory-table .table-asset-copy span,
html[data-theme="light"] .stock-directory-table .table-metric {
    color: #5f7581;
}

html[data-theme="light"] .stock-pagination-controls .stock-page-button,
html[data-theme="light"] .stock-pagination-controls button {
    background: #ffffff;
    border: 1px solid rgba(23, 49, 61, 0.08);
    color: #24404c;
}

html[data-theme="light"] .stock-pagination-controls .stock-page-button:hover:not(:disabled),
html[data-theme="light"] .stock-pagination-controls button:hover:not(:disabled) {
    background: #f4f8fa;
    border-color: rgba(21, 179, 196, 0.16);
    color: #17313d;
}

html[data-theme="light"] .stock-pagination-controls .stock-page-button.is-active,
html[data-theme="light"] .stock-pagination-controls button.is-active,
html[data-theme="light"] .stock-pagination-controls [aria-current="page"] {
    background: linear-gradient(180deg, rgba(71, 208, 218, 0.92), rgba(35, 199, 217, 0.9));
    border-color: rgba(21, 179, 196, 0.14);
    color: #0f2731;
}

html[data-theme="light"] .stock-directory-empty {
    border-color: rgba(23, 49, 61, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.96));
    color: #17313d;
    box-shadow: 0 14px 24px rgba(16, 35, 46, 0.05);
}

@media (max-width: 720px) {
    .page-shell,
    .topbar-shell {
        width: min(100% - 24px, 1280px);
    }

    .topbar {
        position: static;
    }

    .topbar-shell,
    body .topbar-shell {
        min-height: auto;
        padding: 12px 0;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .brand-lockup,
    body .brand-lockup {
        justify-self: start;
        padding: 0;
    }

    .brand-logo-shell {
        width: 118px;
        height: 32px;
    }

    .brand-logo-image,
    body .brand-logo-image {
        height: 32px;
        max-width: none;
        transform: translateX(-7px) scale(1.14);
    }

    .topbar-center,
    .topbar-right {
        width: 100%;
        justify-content: flex-start;
    }

    .topbar-center {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .topbar-center::-webkit-scrollbar,
    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav {
        width: max-content;
        max-width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .nav-link {
        min-height: 32px;
        padding: 0 10px;
        border-radius: 9px;
        font-size: 0.78rem;
        flex: 0 0 auto;
    }

    .topbar-right {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        align-items: center;
    }

    .theme-toggle {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 34px;
        padding: 3px;
    }

    .theme-toggle-option {
        min-height: 28px;
        padding: 0 10px;
        font-size: 0.78rem;
    }

    .topbar-right > .nav-link {
        justify-self: start;
    }

    .topbar-login-button,
    .topbar-user-chip {
        min-height: 34px;
        padding: 0 10px;
        border-radius: 10px;
        font-size: 0.78rem;
    }

    .topbar-login-icon,
    .topbar-user-avatar {
        width: 20px;
        height: 20px;
    }

    .page-shell {
        padding: 16px 0 28px;
    }

    .breadcrumbs {
        gap: 8px;
        margin-bottom: 12px;
        font-size: 0.72rem;
        letter-spacing: 0.1em;
        flex-wrap: wrap;
    }

    .stock-detail-hero,
    .stock-detail-forecast-panel,
    .stock-detail-chart-panel {
        border-radius: 14px;
        padding: 16px;
        margin-bottom: 14px;
        box-shadow: 0 12px 22px rgba(16, 35, 46, 0.06);
    }

    .stock-detail-hero {
        display: grid;
        gap: 14px;
    }

    .stock-detail-hero .asset-profile-head {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 12px;
        align-items: center;
    }

    .stock-detail-hero .coin-logo,
    .stock-detail-hero .coin-logo-large {
        width: 56px;
        height: 56px;
        margin: 0;
        border-radius: 16px;
    }

    .stock-detail-hero h1 {
        margin: 0;
        font-size: 1.55rem;
        line-height: 1.08;
        letter-spacing: 0;
    }

    .stock-detail-hero .asset-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 8px;
    }

    .stock-detail-hero .mini-pill {
        min-height: 26px;
        padding: 0 9px;
        font-size: 0.7rem;
        margin: 0;
    }

    .stock-detail-hero .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .stock-detail-hero .stat-card {
        min-height: 76px;
        padding: 12px;
        border-radius: 14px;
    }

    .stock-detail-hero .stat-card span {
        margin-bottom: 8px;
        font-size: 0.64rem;
        line-height: 1.25;
        letter-spacing: 0.08em;
    }

    .stock-detail-hero .stat-card strong {
        font-size: 1rem;
        line-height: 1.15;
        letter-spacing: 0;
    }

    .forecast-panel-header {
        display: grid;
        gap: 12px;
    }

    .forecast-panel-copy {
        gap: 8px;
    }

    .forecast-panel-copy h2,
    .stock-detail-chart-panel h2 {
        font-size: 1.4rem;
        line-height: 1.15;
    }

    .forecast-panel-copy p,
    .forecast-empty-state p {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .stock-detail-forecast-empty {
        padding: 14px;
        border-radius: 14px;
    }

    .stock-detail-forecast-empty strong {
        font-size: 1rem;
    }

    .stock-detail-chart-panel .chart-header {
        padding-bottom: 12px;
    }

    .stock-detail-chart-panel .tv-chart-shell {
        height: 320px;
        min-height: 320px;
        border-radius: 14px;
    }
}

@media (max-width: 420px) {
    .stock-detail-hero .stat-card {
        min-height: 66px;
    }

    .stock-detail-chart-panel .tv-chart-shell {
        height: 300px;
        min-height: 300px;
    }
}

@media (max-width: 720px) {
    .topbar-right {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .topbar-right::-webkit-scrollbar {
        display: none;
    }

    .theme-toggle {
        grid-column: auto;
        width: auto;
        min-width: 132px;
        flex: 0 0 auto;
    }

    .topbar-right > .nav-link,
    .topbar-login-button,
    .topbar-user-chip {
        flex: 0 0 auto;
    }

    .stock-detail-hero .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 340px) {
    .stock-detail-hero .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    body .topbar-center {
        overflow: visible;
    }

    body .main-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        max-width: none;
        gap: 8px;
        overflow: visible;
        padding-bottom: 0;
    }

    body .main-nav .nav-link {
        width: 100%;
        min-width: 0;
        min-height: 38px;
        padding: 0 8px;
        border-radius: 10px;
        font-size: 0.76rem;
        white-space: nowrap;
    }

    body .main-nav .nav-link:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    body .topbar-right {
        flex-wrap: wrap;
        overflow: visible;
    }
}

@media (max-width: 380px) {
    body .main-nav .nav-link {
        font-size: 0.72rem;
    }
}

.mobile-menu-toggle {
    display: none;
}

@media (max-width: 720px) {
    body .topbar-shell.has-no-primary-nav {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    body .topbar-shell.has-no-primary-nav .topbar-right,
    body .topbar-shell.has-no-primary-nav:not(.is-mobile-menu-open) .topbar-right {
        display: flex;
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-end;
        width: auto;
    }

    body .topbar-shell.has-no-primary-nav .theme-toggle {
        display: none;
    }

    body .topbar-shell.has-no-primary-nav .topbar-login-button,
    body .topbar-shell.has-no-primary-nav .topbar-user-chip {
        min-height: 38px;
        padding-inline: 12px;
    }

    body .topbar-shell {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
    }

    body .brand-lockup {
        grid-column: 1;
        grid-row: 1;
    }

    .mobile-menu-toggle {
        appearance: none;
        position: relative;
        display: inline-flex;
        grid-column: 2;
        grid-row: 1;
        align-items: center;
        justify-content: center;
        justify-self: end;
        width: 42px;
        height: 38px;
        padding: 0;
        border: 1px solid rgba(125, 193, 196, 0.18);
        border-radius: 12px;
        background: rgba(11, 23, 30, 0.92);
        color: #edf7fb;
        cursor: pointer;
    }

    .mobile-menu-toggle::before {
        content: "X";
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        font-size: 1.35rem;
        font-weight: 700;
        line-height: 1;
        opacity: 0;
    }

    .mobile-menu-toggle-line {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 16px;
        height: 2px;
        margin-top: -1px;
        margin-left: -8px;
        border-radius: 999px;
        background: currentColor;
        transform-origin: center center;
        transition: transform 160ms ease, opacity 160ms ease;
    }

    .mobile-menu-toggle-line:nth-child(1) {
        transform: translateY(-6px);
    }

    .mobile-menu-toggle-line:nth-child(2) {
        transform: none;
    }

    .mobile-menu-toggle-line:nth-child(3) {
        transform: translateY(6px);
    }

    .topbar-shell.is-mobile-menu-open .mobile-menu-toggle-line:nth-child(1) {
        opacity: 0;
    }

    .topbar-shell.is-mobile-menu-open .mobile-menu-toggle-line:nth-child(2) {
        opacity: 0;
    }

    .topbar-shell.is-mobile-menu-open .mobile-menu-toggle-line:nth-child(3) {
        opacity: 0;
    }

    .topbar-shell.is-mobile-menu-open .mobile-menu-toggle::before {
        opacity: 1;
    }

    body .topbar-shell:not(.is-mobile-menu-open) .topbar-center,
    body .topbar-shell:not(.is-mobile-menu-open) .topbar-right {
        display: none;
    }

    body .topbar-shell.is-mobile-menu-open .topbar-center,
    body .topbar-shell.is-mobile-menu-open .topbar-right {
        grid-column: 1 / -1;
        width: 100%;
    }

    body .topbar-shell.is-mobile-menu-open .topbar-center {
        display: block;
        padding-top: 2px;
    }

    body .topbar-shell.is-mobile-menu-open .topbar-right {
        display: flex;
        flex-wrap: wrap;
        justify-content: stretch;
        gap: 8px;
        padding-top: 2px;
    }

    body .topbar-shell.is-mobile-menu-open .main-nav {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 8px;
    }

    body .topbar-shell.is-mobile-menu-open .main-nav .nav-link {
        justify-content: flex-start;
        min-height: 40px;
        padding: 0 12px;
        font-size: 0.82rem;
    }

    body .topbar-shell.is-mobile-menu-open .main-nav .nav-link:last-child:nth-child(odd) {
        grid-column: auto;
    }

    body .topbar-shell.is-mobile-menu-open .theme-toggle {
        flex: 1 1 150px;
        min-width: 0;
        width: auto;
    }

    body .topbar-shell.is-mobile-menu-open .topbar-login-button,
    body .topbar-shell.is-mobile-menu-open .topbar-user-menu {
        flex: 1 1 130px;
    }

    body .topbar-shell.is-mobile-menu-open .topbar-login-button,
    body .topbar-shell.is-mobile-menu-open .topbar-user-chip {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 720px) {
    html[data-theme="light"] .mobile-menu-toggle {
        border-color: rgba(204, 240, 242, 0.14);
        background: rgba(9, 26, 39, 0.22);
        color: #eff8fb;
    }
}

.stock-detail-hero .stat-card {
    min-height: 96px;
    padding: 1rem;
    display: grid;
    align-content: start;
    gap: 0.35rem;
    border-radius: 18px;
    border: 1px solid rgba(117, 178, 181, 0.14);
    background: linear-gradient(180deg, rgba(18, 29, 39, 0.94), rgba(10, 18, 27, 0.98));
    box-shadow: none;
}

.stock-detail-hero .stat-card span {
    margin: 0;
    color: #8ec8cb;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    line-height: 1.2;
    font-weight: 700;
}

.stock-detail-hero .stat-card strong {
    color: #f4fbfb;
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: 0;
}

html[data-theme="light"] .stock-detail-hero .stat-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
    border-color: rgba(23, 49, 61, 0.08);
    box-shadow: 0 14px 24px rgba(16, 35, 46, 0.06);
}

html[data-theme="light"] .stock-detail-hero .stat-card span {
    color: #6b7f8a;
}

html[data-theme="light"] .stock-detail-hero .stat-card strong {
    color: #17313d;
}

@media (max-width: 720px) {
    .stock-detail-hero .stat-card {
        min-height: 86px;
        padding: 14px;
        border-radius: 16px;
    }
}

/* Home — Clickable card + Save button */
.home-top-five-row {
    position: relative;
    transition: border-color 150ms ease, background 150ms ease;
}

.home-top-five-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    cursor: pointer;
}

.home-top-five-row:hover {
    border-color: rgba(143, 226, 255, 0.3);
    background: linear-gradient(180deg, rgba(20, 32, 46, 0.97), rgba(12, 20, 30, 1));
}

.home-top-five-row.is-first:hover {
    border-color: rgba(86, 181, 216, 0.5);
}

.home-top-five-row:hover .home-top-five-title h3 {
    color: #8fe2ff;
}

.home-top-five-title h3 {
    transition: color 150ms ease;
}

.home-top-five-rank,
.home-top-five-main {
    position: relative;
    z-index: 0;
}

.home-top-five-actions {
    position: relative;
    z-index: 2;
}

.home-save-btn {
    background: transparent;
    border: 1.5px solid #8fe2ff;
    box-shadow: none;
    color: #8fe2ff;
    font-weight: 700;
}

.home-save-btn:hover {
    background: rgba(143, 226, 255, 0.08);
    box-shadow: none;
    filter: none;
    transform: none;
}

.home-save-btn.is-saved {
    border-color: var(--muted);
    color: var(--muted);
    opacity: 0.6;
    cursor: default;
}

html[data-theme="light"] .home-top-five-row:hover {
    border-color: rgba(17, 125, 136, 0.35);
    background: rgba(230, 247, 250, 0.7);
}

html[data-theme="light"] .home-top-five-row:hover .home-top-five-title h3 {
    color: #117d88;
}

html[data-theme="light"] .home-save-btn {
    background: transparent;
    border: 1.5px solid #117d88;
    box-shadow: none;
    color: #117d88;
}

html[data-theme="light"] .home-save-btn:hover {
    background: rgba(17, 125, 136, 0.07);
    box-shadow: none;
}

body.page-strat-ai .strat-ai-today-panel {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

body.page-strat-ai .strat-ai-today-head {
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 0.95rem;
}

body.page-strat-ai .strat-ai-today-head h2::before {
    content: none;
}

body.page-strat-ai .strat-ai-today-summary {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

body.page-strat-ai .strat-ai-today-chip,
body.page-strat-ai .strat-ai-activity-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    border-radius: 999px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

body.page-strat-ai .strat-ai-today-chip {
    gap: 0.5rem;
    min-height: 2.1rem;
    padding: 0.4rem 0.72rem;
    border: 1px solid rgba(118, 136, 161, 0.14);
    background: rgba(12, 22, 31, 0.82);
    color: rgba(214, 228, 238, 0.78);
}

body.page-strat-ai .strat-ai-today-chip span,
body.page-strat-ai .strat-ai-today-chip strong,
body.page-strat-ai .strat-ai-activity-pill span {
    display: inline-flex;
    align-items: center;
    color: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-transform: inherit;
}

body.page-strat-ai .strat-ai-today-chip strong {
    justify-content: center;
    min-width: 1.35rem;
    min-height: 1.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #f3f7fd;
}

body.page-strat-ai .strat-ai-today-chip.is-active,
body.page-strat-ai .strat-ai-activity-pill.is-active {
    border-color: rgba(82, 211, 219, 0.28);
    background: rgba(23, 84, 94, 0.42);
    color: #b9f8ff;
}

body.page-strat-ai .strat-ai-today-chip.is-pending {
    border-color: rgba(110, 231, 183, 0.24);
    background: rgba(18, 78, 51, 0.38);
    color: #bff9d8;
}

body.page-strat-ai .strat-ai-today-chip.is-open,
body.page-strat-ai .strat-ai-activity-pill.is-open {
    border-color: rgba(142, 198, 255, 0.26);
    background: rgba(27, 68, 116, 0.4);
    color: #c8e4ff;
}

body.page-strat-ai .strat-ai-today-chip.is-watch,
body.page-strat-ai .strat-ai-activity-pill.is-watch {
    border-color: rgba(243, 180, 93, 0.28);
    background: rgba(94, 69, 23, 0.36);
    color: #ffd89a;
}

body.page-strat-ai .strat-ai-activity-pill.is-idle {
    border-color: rgba(118, 136, 161, 0.16);
    background: rgba(23, 33, 45, 0.72);
    color: rgba(190, 205, 218, 0.72);
}

body.page-strat-ai .strat-ai-activity-pill {
    gap: 0.35rem;
    min-height: 1.75rem;
    padding: 0.34rem 0.58rem;
    border: 1px solid rgba(118, 136, 161, 0.14);
    white-space: nowrap;
}

body.page-strat-ai .strat-ai-activity-pill.is-compact {
    min-height: 1.55rem;
    padding: 0.28rem 0.5rem;
    font-size: 0.64rem;
}

body.page-strat-ai .strat-ai-today-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.85rem;
}

body.page-strat-ai .strat-ai-today-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

body.page-strat-ai .strat-ai-today-card {
    display: grid;
    gap: 0.85rem;
    min-height: 100%;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(118, 136, 161, 0.14);
    background:
        linear-gradient(180deg, rgba(10, 19, 28, 0.94), rgba(8, 14, 20, 0.98)),
        #07161f;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
    transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

body.page-strat-ai .strat-ai-today-link:hover .strat-ai-today-card {
    border-color: rgba(82, 211, 219, 0.24);
    background: rgba(255, 255, 255, 0.028);
    transform: translateY(-1px);
}

body.page-strat-ai .strat-ai-today-card-head,
body.page-strat-ai .strat-ai-today-card-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
}

body.page-strat-ai .strat-ai-today-symbol {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

body.page-strat-ai .strat-ai-today-symbol strong {
    color: #f3f7fd;
    font-size: 1.12rem;
}

body.page-strat-ai .strat-ai-today-symbol span,
body.page-strat-ai .strat-ai-today-card-meta {
    color: rgba(170, 186, 203, 0.76);
    font-size: 0.78rem;
    line-height: 1.35;
}

body.page-strat-ai .strat-ai-today-card-meta {
    flex-wrap: wrap;
    justify-content: flex-start;
}

body.page-strat-ai .strat-ai-today-score,
body.page-strat-ai .strat-ai-today-return {
    color: rgba(214, 228, 238, 0.86);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    font-weight: 700;
}

body.page-strat-ai .strat-ai-today-return.is-positive {
    color: #8ee6b5;
}

body.page-strat-ai .strat-ai-today-return.is-negative {
    color: #ff9aa4;
}

body.page-strat-ai .strat-ai-today-card-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
}

body.page-strat-ai .strat-ai-today-card-metrics > div {
    display: grid;
    gap: 0.28rem;
    min-width: 0;
    padding: 0.58rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

body.page-strat-ai .strat-ai-today-card-metrics span {
    color: rgba(170, 186, 203, 0.66);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.page-strat-ai .strat-ai-today-card-metrics strong {
    overflow-wrap: anywhere;
    color: #f3f7fd;
    font-size: 0.8rem;
}

body.page-strat-ai .strat-ai-today-empty {
    min-height: 5rem;
    display: grid;
    place-items: center;
}

body.page-strat-ai .strat-ai-feed-title-row,
body.page-strat-ai .strat-ai-pill-row,
body.page-strat-ai .strat-ai-ranked-meta {
    align-items: center;
}

body.page-strat-ai .strat-ai-feed-title-row {
    flex-wrap: wrap;
    justify-content: flex-start;
}

body.page-strat-ai .strat-ai-table-link .strat-ai-activity-pill {
    margin-top: 0.05rem;
}

body.page-strat-ai .strat-ai-table-link .strat-ai-activity-pill,
body.page-strat-ai .strat-ai-table-link .strat-ai-activity-pill span {
    color: inherit;
    font-size: 0.62rem;
    text-transform: uppercase;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-today-chip {
    border-color: rgba(23, 49, 61, 0.1);
    background: rgba(255, 255, 255, 0.86);
    color: #5f7581;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-today-chip strong {
    background: rgba(23, 49, 61, 0.06);
    color: #17313d;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-today-card {
    border-color: rgba(23, 49, 61, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
    box-shadow: var(--shadow);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-today-link:hover .strat-ai-today-card {
    background: rgba(35, 199, 217, 0.07);
    border-color: rgba(23, 49, 61, 0.08);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-today-symbol strong,
html[data-theme="light"] body.page-strat-ai .strat-ai-today-card-metrics strong {
    color: #17313d;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-today-symbol span,
html[data-theme="light"] body.page-strat-ai .strat-ai-today-card-meta,
html[data-theme="light"] body.page-strat-ai .strat-ai-today-card-metrics span {
    color: #5f7581;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-today-card-metrics > div {
    background: rgba(241, 246, 249, 0.92);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-activity-pill.is-active,
html[data-theme="light"] body.page-strat-ai .strat-ai-today-chip.is-active {
    border-color: rgba(17, 125, 136, 0.22);
    background: rgba(214, 247, 250, 0.86);
    color: #117d88;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-today-chip.is-pending {
    border-color: rgba(31, 122, 77, 0.16);
    background: rgba(232, 247, 239, 0.9);
    color: #1f7a4d;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-activity-pill.is-open,
html[data-theme="light"] body.page-strat-ai .strat-ai-today-chip.is-open {
    border-color: rgba(39, 102, 176, 0.18);
    background: rgba(225, 239, 255, 0.9);
    color: #2766b0;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-activity-pill.is-watch,
html[data-theme="light"] body.page-strat-ai .strat-ai-today-chip.is-watch {
    border-color: rgba(154, 99, 20, 0.2);
    background: rgba(255, 243, 222, 0.92);
    color: #9a6314;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-activity-pill.is-idle {
    border-color: rgba(23, 49, 61, 0.12);
    background: rgba(234, 241, 245, 0.92);
    color: #6f8390;
}

@media (max-width: 760px) {
    body.page-strat-ai .strat-ai-today-head {
        align-items: stretch;
        flex-direction: column;
    }

    body.page-strat-ai .strat-ai-today-summary {
        justify-content: flex-start;
    }

    body.page-strat-ai .strat-ai-today-grid {
        grid-template-columns: 1fr;
    }

    body.page-strat-ai .strat-ai-today-card-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.home-live-signals-card {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid rgba(35, 199, 217, 0.18);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(245, 253, 254, 0.96), rgba(255, 255, 255, 0.98));
    box-shadow: 0 14px 32px rgba(17, 125, 136, 0.08);
}

.home-live-signals-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.home-live-signals-head h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 650;
    line-height: 1.2;
}

.home-leaderboard-toolbar {
    display: flex;
    justify-content: center;
    width: 100%;
}

.home-live-signals-head span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.home-live-signals-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.home-live-signals-link {
    flex: 0 0 auto;
    color: #117d88;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
}

.home-live-market-switch {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(121, 149, 178, 0.14);
    border-radius: 999px;
    background: rgba(7, 18, 28, 0.26);
}

.home-live-market-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 42px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    color: #9fb4c1;
    font-size: 0.74rem;
    font-weight: 650;
    letter-spacing: 0;
    text-decoration: none;
}

.home-live-market-option:hover,
.home-live-market-option.is-active {
    background: rgba(82, 211, 219, 0.14);
    color: #edf8fb;
}

.home-live-market-option small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    min-height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(82, 211, 219, 0.22);
    color: #bff7fb;
    font-size: 0.66rem;
    font-weight: 700;
}

.home-live-signals-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.home-live-signal {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(23, 49, 61, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: inherit;
    text-decoration: none;
}

.home-live-signal:hover {
    border-color: rgba(35, 199, 217, 0.32);
    transform: translateY(-1px);
}

.home-live-signal-main,
.home-live-signal-meta,
.home-live-signal-reason,
.home-live-signal-risk,
.home-live-signal-freshness {
    min-width: 0;
}

.home-live-signal-main strong,
.home-live-signal-main span,
.home-live-signal-meta span,
.home-live-signal-meta strong,
.home-live-signal-reason,
.home-live-signal-risk,
.home-live-signal-freshness {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-live-signal-main strong {
    color: var(--text);
    font-size: 1rem;
    font-weight: 650;
}

.home-live-signal-main span,
.home-live-signal-meta span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.home-live-signal-status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.home-live-signal-status span,
.home-live-signal-status small {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 0 9px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-live-signal-status span {
    border: 1px solid rgba(17, 125, 136, 0.2);
    background: rgba(214, 247, 250, 0.86);
    color: #117d88;
}

.home-live-signal-state {
    order: 1;
}

.home-live-signal-score {
    order: 2;
}

.home-live-signal-market {
    order: 3;
}

.home-live-signal.is-open .home-live-signal-status span {
    border-color: rgba(39, 102, 176, 0.18);
    background: rgba(225, 239, 255, 0.9);
    color: #2766b0;
}

.home-live-signal.is-watch .home-live-signal-status span {
    border-color: rgba(154, 99, 20, 0.2);
    background: rgba(255, 243, 222, 0.92);
    color: #9a6314;
}

.home-live-signal-status small {
    background: rgba(241, 246, 249, 0.92);
    color: var(--muted);
}

.home-live-signal-action {
    color: #38d1d6;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.25;
}

.home-live-signal-meta strong {
    margin-top: 2px;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 650;
}

.home-live-signal-reason {
    color: #c8f7fb;
    font-size: 0.76rem;
    font-weight: 650;
}

.home-live-signal-risk {
    color: #8ba4b3;
    font-size: 0.76rem;
    font-weight: 500;
}

.home-live-signal-proof {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.home-live-signal-proof span {
    display: grid;
    gap: 1px;
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid rgba(121, 149, 178, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.home-live-signal-proof small {
    overflow: hidden;
    color: #8ba4b3;
    font-size: 0.66rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-live-signal-proof strong {
    overflow: hidden;
    color: #edf8fb;
    font-size: 0.76rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-live-signal-freshness {
    color: #7b94a4;
    font-size: 0.72rem;
    font-weight: 500;
}

.home-live-signals-empty {
    border: 1px solid rgba(23, 49, 61, 0.08);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--muted);
    font-size: 0.9rem;
}

.home-live-signals-empty p {
    margin: 4px 0 0;
    font-size: 0.8rem;
    font-weight: 450;
}

@media (max-width: 860px) {
    .home-live-signals-grid {
        grid-template-columns: 1fr;
    }
}

.home-live-signals-card {
    border-color: rgba(82, 211, 219, 0.16);
    background: linear-gradient(180deg, rgba(12, 34, 43, 0.96), rgba(7, 18, 28, 0.98));
    box-shadow: 0 14px 32px rgba(2, 8, 13, 0.28);
}

.home-live-signals-head h2,
.home-live-signal-main strong,
.home-live-signal-meta strong {
    color: #edf8fb;
}

.home-live-signals-head span,
.home-live-signal-main span,
.home-live-signal-meta span {
    color: #9fb4c1;
}

.home-live-signal {
    border-color: rgba(121, 149, 178, 0.16);
    background: rgba(12, 30, 42, 0.86);
}

.home-live-signals-empty {
    border-color: rgba(121, 149, 178, 0.14);
    background: rgba(12, 30, 42, 0.7);
    color: #9fb4c1;
}

.home-live-signal-status small {
    background: rgba(121, 149, 178, 0.12);
    color: #9fb4c1;
}

html[data-theme="light"] .home-live-signals-card {
    border-color: rgba(35, 199, 217, 0.18);
    background: linear-gradient(180deg, rgba(245, 253, 254, 0.96), rgba(255, 255, 255, 0.98));
    box-shadow: 0 14px 32px rgba(17, 125, 136, 0.08);
}

html[data-theme="light"] .home-live-signals-head h2,
html[data-theme="light"] .home-live-signal-main strong,
html[data-theme="light"] .home-live-signal-meta strong {
    color: var(--text);
}

html[data-theme="light"] .home-live-signals-head span,
html[data-theme="light"] .home-live-signal-main span,
html[data-theme="light"] .home-live-signal-meta span {
    color: var(--muted);
}

html[data-theme="light"] .home-live-signal-reason {
    color: var(--text);
}

html[data-theme="light"] .home-live-market-switch {
    border-color: rgba(23, 49, 61, 0.08);
    background: rgba(241, 246, 249, 0.86);
}

html[data-theme="light"] .home-live-market-option {
    color: var(--muted);
}

html[data-theme="light"] .home-live-market-option:hover,
html[data-theme="light"] .home-live-market-option.is-active {
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    box-shadow: 0 8px 18px rgba(16, 35, 46, 0.06);
}

html[data-theme="light"] .home-live-market-option small {
    background: rgba(35, 199, 217, 0.18);
    color: #0f8d96;
}

html[data-theme="light"] .home-live-signal {
    border-color: rgba(23, 49, 61, 0.1);
    background: rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] .home-live-signals-empty {
    border-color: rgba(23, 49, 61, 0.08);
    background: rgba(255, 255, 255, 0.78);
    color: var(--muted);
}

html[data-theme="light"] .home-live-signal-status small {
    background: rgba(241, 246, 249, 0.92);
    color: var(--muted);
}

html[data-theme="light"] .home-live-signal-action {
    color: #0f8d96;
}

html[data-theme="light"] .home-live-signal-risk,
html[data-theme="light"] .home-live-signal-freshness,
html[data-theme="light"] .home-live-signal-proof small {
    color: var(--muted);
}

html[data-theme="light"] .home-live-signal-proof span {
    border-color: rgba(23, 49, 61, 0.08);
    background: rgba(241, 246, 249, 0.64);
}

html[data-theme="light"] .home-live-signal-proof strong {
    color: var(--text);
}

@media (max-width: 560px) {
    .home-live-signals-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-live-signals-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .home-live-market-switch {
        width: 100%;
    }

    .home-live-market-option {
        flex: 1 1 0;
    }

    .home-live-signals-card {
        padding: 14px;
    }

    .home-live-signal-proof {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Home desktop density and softer typography */
.home-top-five-list {
    gap: 10px;
}

.home-top-five-row {
    grid-template-columns: 44px minmax(0, 1fr) max-content;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
}

.home-top-five-rank span {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0;
}

.home-top-five-main {
    gap: 8px;
}

.home-top-five-title h3 {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.32;
    letter-spacing: 0;
}

.home-top-five-score,
.home-strategy-origin-badge,
.home-top-five-market-inline,
.home-top-five-metric,
.home-strategy-owner-text {
    letter-spacing: 0;
}

.home-top-five-score {
    min-height: 22px;
    padding: 0 8px;
    font-size: 0.66rem;
    font-weight: 600;
}

.home-strategy-origin-badge,
.home-top-five-market-inline,
.home-strategy-owner-text {
    font-weight: 500;
}

.home-top-five-metrics {
    gap: 6px;
}

.home-top-five-metric {
    min-height: 24px;
    padding: 0 9px;
    font-size: 0.73rem;
    font-weight: 500;
}

.home-top-five-updated {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 450;
    line-height: 1.35;
}

.home-top-five-actions {
    min-width: 84px;
}

.follow-button,
.home-top-five-actions .secondary-button {
    min-height: 32px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0;
}

.home-live-signals-card {
    gap: 12px;
    padding: 16px;
    border-radius: 10px;
}

.home-live-signals-head h2,
.home-live-signal-main strong,
.home-live-signal-meta strong {
    font-weight: 600;
    letter-spacing: 0;
}

.home-live-signals-head span,
.home-live-signal-main span,
.home-live-signal-meta span {
    font-weight: 450;
}

.home-live-signals-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.home-live-signal {
    gap: 8px;
    padding: 12px;
}

.home-live-signal-status span,
.home-live-signal-status small {
    font-weight: 650;
}

.site-footer {
    border-top: 1px solid var(--panel-border);
    background: color-mix(in srgb, var(--panel) 84%, transparent);
}

.site-footer-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 22px 0;
}

.site-footer-shell div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.site-footer-shell strong {
    color: var(--text);
    font-size: 0.95rem;
}

.site-footer-shell span,
.site-footer-shell p {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.site-footer-shell p {
    grid-column: 1 / -1;
    margin: 0;
}

.site-footer-shell nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 14px;
}

.site-footer-shell a {
    color: var(--muted-strong);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.site-footer-shell a:hover {
    color: var(--accent);
}

@media (min-width: 1180px) {
    .home-top-five-main {
        grid-template-columns: minmax(320px, 1fr) minmax(330px, max-content);
        align-items: center;
        column-gap: 18px;
    }

    .home-top-five-updated {
        grid-column: 1 / -1;
    }

    .home-top-five-metrics {
        justify-content: flex-end;
    }
}

@media (max-width: 1080px) {
    .home-top-five-row {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .home-top-five-actions {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 780px) {
    .home-live-signals-grid {
        grid-template-columns: 1fr;
    }

    .site-footer-shell {
        grid-template-columns: 1fr;
    }

    .site-footer-shell nav {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .home-top-five-row {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .home-top-five-actions {
        grid-column: auto;
        width: 100%;
    }
}
/* Stock detail — SYMBOL | NAME title */
.stock-detail-title,
.stock-detail-hero h1.stock-detail-title,
html[data-theme="light"] .stock-detail-hero h1.stock-detail-title {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.stock-detail-symbol {
    font-weight: 800;
    letter-spacing: 0.03em;
}

.stock-detail-sep {
    color: var(--muted);
    font-weight: 300;
}

.stock-detail-name {
    color: var(--muted);
    font-weight: 500;
}

/* Strategy follow page — 1-liner description */
.strategy-follow-oneliner {
    margin: 4px 0 10px;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

.follow-backtest-status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 10px;
}

.follow-backtest-status-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.follow-backtest-status-copy span {
    color: #1aa1aa;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.follow-backtest-status-copy strong {
    color: var(--text);
    font-size: 1rem;
    font-weight: 620;
    letter-spacing: 0;
}

.follow-backtest-status-copy small,
.follow-backtest-update-form small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 450;
}

.follow-backtest-status-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.follow-backtest-update-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.follow-backtest-update-form .secondary-button {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 10px;
}

html[data-theme="light"] .follow-backtest-status-copy span {
    color: #0f8d96;
}

@media (max-width: 640px) {
    .follow-backtest-status-card,
    .follow-backtest-status-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* UI clarity pass: keep default screens focused and push proof/debug detail behind expansion. */
html[data-theme="light"] .site-footer {
    background: var(--header-bg);
    color: rgba(255, 255, 255, 0.92);
    border-top: 1px solid var(--header-border);
}

html[data-theme="light"] .site-footer span,
html[data-theme="light"] .site-footer p,
html[data-theme="light"] .site-footer a {
    color: rgba(255, 255, 255, 0.72);
}

.page-shell,
.admin-shell,
.live-signals-shell,
.performance-ledger-shell {
    line-height: 1.55;
}

.admin-page-title h1,
.live-signals-header h1,
.performance-ledger-hero h1 {
    letter-spacing: 0;
}

.live-signals-header,
.performance-ledger-hero,
.admin-page-title {
    margin-bottom: 22px;
}

.live-signals-header h1,
.performance-ledger-hero h1 {
    font-size: clamp(2rem, 4vw, 3.15rem);
}

.live-signals-summary-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.live-signals-card-status small,
.live-signal-card-status small,
.live-signal-freshness,
.performance-ledger-row small,
.admin-review-card small {
    color: var(--muted);
}

.live-signal-card {
    display: grid;
    gap: 12px;
    padding: 20px;
    text-decoration: none;
}

.live-signal-main strong {
    font-size: 1.25rem;
}

.live-signal-details {
    border-top: 1px solid var(--panel-border);
    padding-top: 10px;
}

.live-signal-details summary,
.live-signals-history-section > summary,
.performance-ledger-details > summary,
.admin-panel > summary {
    cursor: pointer;
    list-style: none;
}

.live-signal-details summary::-webkit-details-marker,
.live-signals-history-section > summary::-webkit-details-marker,
.performance-ledger-details > summary::-webkit-details-marker,
.admin-panel > summary::-webkit-details-marker {
    display: none;
}

.live-signal-details summary,
.live-signal-open-link {
    color: var(--accent);
    font-weight: 700;
}

.live-signal-open-link {
    justify-self: start;
}

.live-signal-hidden-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.84rem;
}

.live-signals-history-section {
    padding: 18px 20px;
}

.performance-ledger-proof,
.performance-ledger-panel,
.live-signals-section,
.admin-audit-section {
    padding: 22px;
}

.performance-ledger-details {
    margin-top: 18px;
}

.performance-ledger-subpanel {
    display: grid;
    gap: 14px;
    padding: 0;
    box-shadow: none;
}

.performance-ledger-details:not([open]) .performance-ledger-grid {
    display: none;
}

.performance-ledger-guide {
    padding-block: 18px;
}

.performance-ledger-guide-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.performance-ledger-guide-list span {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 12px 0;
    border-top: 1px solid var(--panel-border);
}

.performance-ledger-guide-list strong {
    color: var(--text);
    font-size: 0.9rem;
}

.performance-ledger-guide-list small {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.admin-ops-line-summary {
    display: grid;
    gap: 0;
    border-block: 1px solid var(--panel-border);
}

.admin-ops-line-summary .admin-ops-card {
    border: 0;
    border-bottom: 1px solid var(--panel-border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 16px 4px;
}

.admin-ops-line-summary .admin-ops-card:last-child {
    border-bottom: 0;
}

.admin-ops-line-summary .admin-ops-card strong {
    font-size: 1.05rem;
}

.admin-ops-progressive {
    grid-template-columns: 1fr;
}

.admin-ops-progressive .admin-panel {
    padding: 0;
    overflow: hidden;
}

.admin-ops-progressive .admin-panel-head {
    padding: 18px 20px;
}

.admin-ops-progressive .admin-panel[open] {
    padding-bottom: 18px;
}

.admin-ops-progressive .admin-ops-detail-grid,
.admin-ops-progressive .admin-ops-deliveries,
.admin-ops-progressive .admin-empty,
.admin-ops-progressive .admin-ops-failures {
    margin-inline: 20px;
}

.admin-auto-decision {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
}

.admin-auto-decision small {
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
}

.admin-review-card {
    gap: 22px;
}

.admin-review-card-top {
    gap: 6px;
}

.admin-explain-intro {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
    padding: 18px 0;
    border-block: 1px solid var(--panel-border);
}

.admin-explain-intro strong {
    font-size: 1.15rem;
}

.admin-glossary-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.admin-glossary-card {
    min-height: 0;
}

@media (max-width: 720px) {
    .live-signals-summary-compact {
        grid-template-columns: 1fr;
    }

    .performance-ledger-proof,
    .performance-ledger-panel,
    .live-signals-section,
    .admin-audit-section {
        padding: 18px;
    }

    .performance-ledger-guide-list {
        grid-template-columns: 1fr;
    }

    html[data-theme="light"] .site-footer-shell {
        grid-template-areas:
            "brand"
            "note"
            "nav";
    }

    html[data-theme="light"] .site-footer-shell nav {
        justify-self: start;
    }
}

/* Admin Strategy decision-first layout. */
.admin-strategy-title {
    gap: 18px;
}

.admin-strategy-tool-menu,
.admin-strategy-mode-menu,
.admin-strategy-research-detail,
.admin-strategy-row-detail,
.admin-strategy-secondary-section {
    min-width: 0;
}

.admin-strategy-tool-menu > summary,
.admin-strategy-mode-menu > summary,
.admin-strategy-research-detail > summary,
.admin-strategy-row-detail > summary,
.admin-strategy-secondary-section > summary {
    cursor: pointer;
    list-style: none;
}

.admin-strategy-tool-menu > summary::-webkit-details-marker,
.admin-strategy-mode-menu > summary::-webkit-details-marker,
.admin-strategy-research-detail > summary::-webkit-details-marker,
.admin-strategy-row-detail > summary::-webkit-details-marker,
.admin-strategy-secondary-section > summary::-webkit-details-marker {
    display: none;
}

.admin-strategy-tool-menu {
    position: relative;
}

.admin-strategy-tool-menu > summary,
.admin-strategy-mode-menu > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 0 13px;
    background: var(--secondary-bg);
    color: var(--muted-strong);
    font-weight: 800;
}

.admin-strategy-tool-menu[open] > summary,
.admin-strategy-mode-menu[open] > summary {
    border-color: color-mix(in srgb, var(--accent) 36%, var(--panel-border));
    color: var(--accent);
}

.admin-strategy-tool-menu > div,
.admin-strategy-mode-menu > form {
    position: absolute;
    right: 0;
    z-index: 20;
    display: grid;
    gap: 8px;
    width: max-content;
    min-width: 210px;
    margin-top: 8px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 10px;
    background: var(--bg-panel);
    box-shadow: var(--shadow);
}

.admin-strategy-mode-menu {
    position: relative;
}

.admin-strategy-mode-menu > form {
    left: 0;
    right: auto;
}

.admin-strategy-research-detail {
    display: grid;
    gap: 12px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 0;
    background: color-mix(in srgb, var(--panel) 82%, transparent);
}

.admin-strategy-research-detail > summary,
.admin-strategy-secondary-section > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
}

.admin-strategy-research-detail > summary span,
.admin-strategy-secondary-section > summary {
    min-width: 0;
}

.admin-strategy-research-detail > summary strong,
.admin-strategy-secondary-section > summary h2 {
    color: var(--text);
    font-size: 1rem;
}

.admin-strategy-research-detail > summary small,
.admin-strategy-research-detail > summary em,
.admin-strategy-secondary-section > summary span {
    color: var(--muted);
    font-size: 0.82rem;
    font-style: normal;
}

.admin-strategy-research-detail[open] {
    padding-bottom: 14px;
}

.admin-strategy-research-detail > section {
    margin-inline: 14px;
}

.admin-strategy-workbench-row {
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 0.9fr) minmax(154px, auto);
    align-items: start;
}

.admin-strategy-decision-snapshot {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
}

.admin-strategy-decision-snapshot span {
    display: grid;
    gap: 2px;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 8px;
    background: var(--secondary-bg);
}

.admin-strategy-decision-snapshot small {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.56rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-strategy-decision-snapshot strong {
    overflow: hidden;
    color: var(--text);
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-strategy-decision-snapshot .is-ready strong,
.admin-strategy-decision-snapshot .is-positive strong {
    color: var(--accent);
}

.admin-strategy-decision-snapshot .is-watch strong {
    color: var(--warning);
}

.admin-strategy-decision-snapshot .is-action strong,
.admin-strategy-decision-snapshot .is-negative strong {
    color: var(--negative);
}

.admin-strategy-row-detail {
    grid-column: 1 / -1;
    border-top: 1px solid var(--panel-border);
    padding-top: 10px;
}

.admin-strategy-row-detail > summary {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
}

.admin-strategy-row-detail[open] > summary {
    margin-bottom: 10px;
}

.admin-strategy-row-detail .admin-strategy-workbench-note {
    margin-top: 8px;
}

.admin-strategy-secondary-section {
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--panel);
}

.admin-strategy-secondary-section > summary p,
.admin-strategy-secondary-section > summary h2 {
    margin: 0;
}

.admin-strategy-secondary-section > summary h2 {
    flex: 1 1 auto;
}

.admin-strategy-secondary-section[open] {
    padding-bottom: 14px;
}

.admin-strategy-secondary-section > div {
    margin-inline: 14px;
}

@media (max-width: 980px) {
    .admin-strategy-workbench-row,
    .admin-strategy-decision-snapshot {
        grid-template-columns: 1fr;
    }

    .admin-strategy-tool-menu > div,
    .admin-strategy-mode-menu > form {
        position: static;
        width: auto;
    }
}

/* Light mode polish: header/footer match, and loading states should not create a dead page. */
html[data-theme="light"] {
    --stratlab-public-header-bg:
        linear-gradient(120deg, rgba(28, 72, 96, 0.98) 0%, rgba(31, 82, 103, 0.98) 36%, rgba(28, 132, 125, 0.98) 100%);
    --stratlab-public-footer-bg: #236d75;
    --stratlab-public-header-border: rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] body .topbar,
html[data-theme="light"] .site-footer {
    background: var(--stratlab-public-header-bg) !important;
    border-color: var(--stratlab-public-header-border);
    box-shadow: none;
}

html[data-theme="light"] .site-footer {
    position: relative;
    background: var(--stratlab-public-header-bg) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .site-footer-shell {
    align-items: start;
}

html[data-theme="light"] .site-footer-shell nav {
    display: grid;
    justify-items: start;
    justify-self: end;
    gap: 8px;
}

html[data-theme="light"] .site-footer-shell {
    grid-template-areas:
        "brand nav"
        "note nav";
    gap: 2px 28px;
    padding: 18px 0 20px;
}

html[data-theme="light"] .site-footer-shell > div {
    grid-area: brand;
}

html[data-theme="light"] .site-footer-shell > nav {
    grid-area: nav;
}

html[data-theme="light"] .site-footer-shell > p {
    grid-area: note;
    margin-top: 0;
}

html[data-theme="light"] .site-footer strong {
    color: rgba(246, 253, 255, 0.96);
}

html[data-theme="light"] .site-footer span,
html[data-theme="light"] .site-footer p,
html[data-theme="light"] .site-footer a {
    color: rgba(230, 244, 248, 0.78);
}

html[data-theme="light"] .site-footer a:hover {
    color: #ffffff;
}

.home-panel-loading {
    min-height: 72px;
    padding: 12px 0 16px;
}

html[data-theme="light"] .home-panels-shell.is-loading,
html[data-theme="light"] .home-tab-panel:has(.home-panel-loading) {
    min-height: 0;
}

html[data-theme="light"] .home-tabs-shell:has(.home-panel-loading) {
    gap: 8px;
}

.home-live-signals-head .home-live-regime {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-top: 0;
    padding: 0 13px;
    line-height: 1;
}

html[data-theme="light"] .home-live-signals-head .home-live-regime.is-positive {
    border-color: rgba(22, 163, 116, 0.42);
    background: rgba(209, 250, 229, 0.98);
    color: #047857;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .home-live-signals-head .home-live-regime.is-watch {
    border-color: rgba(180, 83, 9, 0.34);
    background: rgba(254, 243, 199, 0.98);
    color: #92400e;
}

html[data-theme="light"] .home-live-signals-head .home-live-regime.is-negative {
    border-color: rgba(185, 28, 28, 0.34);
    background: rgba(254, 226, 226, 0.98);
    color: #991b1b;
}

/* Daily Watchlist: decision-first page layout. */
html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) {
    background:
        radial-gradient(circle at top left, rgba(35, 199, 217, 0.06), transparent 24%),
        linear-gradient(180deg, #eff5f7 0%, #f8fbfc 34%, #f4f8fa 100%) !important;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .page-shell {
    width: min(1120px, calc(100% - 32px));
    padding: 0;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-shell {
    gap: 14px;
    padding: 28px 0 42px;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-header {
    align-items: flex-end;
    margin: 0;
    border: 0;
    padding: 6px 0 12px;
    background: transparent;
    box-shadow: none;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-kicker {
    margin-bottom: 4px;
    font-size: 0.68rem;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-header h1 {
    font-size: clamp(2.05rem, 3vw, 2.65rem);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-header span {
    font-size: 0.82rem;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-header-actions {
    gap: 8px;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-market-tabs,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-market-state,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-regime {
    min-height: 34px;
}

html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-market-tabs {
    border-color: rgba(23, 49, 61, 0.08);
    background: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-regime.is-positive {
    border-color: rgba(22, 163, 116, 0.42);
    background: rgba(209, 250, 229, 0.96);
    color: #047857;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-notice {
    display: grid;
    gap: 8px;
    border: 1px solid var(--watch-line);
    border-radius: 8px;
    padding: 18px;
    background: var(--watch-surface-strong);
    color: var(--watch-ink);
    box-shadow: none;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-notice strong {
    color: var(--watch-ink);
    font-size: 0.98rem;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-notice span {
    color: var(--watch-muted);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-section {
    gap: 14px;
    padding: 18px;
    border-color: rgba(23, 49, 61, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 28px rgba(16, 35, 46, 0.06);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-section-head h2 {
    font-size: 1.05rem;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-section-head span {
    min-width: 30px;
    background: #eef7f8;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card {
    gap: 10px;
    min-height: 0;
    padding: 16px;
    border-color: rgba(23, 49, 61, 0.1);
    background: #ffffff;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card-status {
    gap: 6px;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-main strong {
    font-size: 1.2rem;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-meta span {
    display: block;
    max-height: 1.35em;
    font-size: 0.78rem;
    line-height: 1.35;
    white-space: nowrap;
    -webkit-line-clamp: unset;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-meta strong {
    font-size: 0.92rem;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-details {
    margin-top: 0;
    padding-top: 8px;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-details:not([open]) {
    border-top-color: rgba(23, 49, 61, 0.06);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-details summary,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-open-link {
    font-size: 0.8rem;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-history-section:not([open]) {
    padding: 14px 18px;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-history-section:not([open]) .live-signals-section-head {
    margin: 0;
}

@media (max-width: 760px) {
    body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .page-shell {
        width: min(100% - 24px, 1120px);
    }

    body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-header {
        align-items: flex-start;
        flex-direction: column;
    }

    body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-header-actions {
        justify-content: flex-start;
    }

    body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-grid {
        grid-template-columns: 1fr;
    }
}

/* Keep the public footer at the bottom on short/loading screens. */
html {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

body > .topbar,
body > .site-footer {
    flex: 0 0 auto;
}

body > .page-shell {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

body > .page-shell > main {
    flex: 1 0 auto;
}

/* StratLab atelier theme: industrial Swiss terminal, cut for dense market work. */
:root {
    --font-display: "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
    --font-body: "IBM Plex Sans", sans-serif;
    --font-mono: "IBM Plex Mono", monospace;
    --sl-ink: #f5f0e6;
    --sl-ink-soft: #c9c0ad;
    --sl-muted: #8a8377;
    --sl-field: #111416;
    --sl-paper: #090b0f;
    --sl-panel: rgba(14, 17, 18, 0.92);
    --sl-panel-strong: rgba(18, 22, 23, 0.98);
    --sl-line: rgba(245, 240, 230, 0.13);
    --sl-line-strong: rgba(245, 240, 230, 0.28);
    --sl-volt: #2dd4bf;
    --sl-volt-rgb: 45, 212, 191;
    --sl-copper: #ff8f3f;
    --sl-rust: #ff5b4a;
    --sl-cyan: #42e8d7;
    --sl-shadow: 12px 14px 0 rgba(0, 0, 0, 0.38);
    --sl-shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.34);
    --bg: var(--sl-paper);
    --bg-elevated: #0f1213;
    --bg-panel: #111416;
    --bg-panel-2: #171b1c;
    --bg-panel-3: #202526;
    --panel: linear-gradient(180deg, rgba(19, 23, 24, 0.96), rgba(10, 12, 13, 0.98));
    --panel-border: var(--sl-line);
    --panel-border-strong: var(--sl-line-strong);
    --text: var(--sl-ink);
    --muted: var(--sl-muted);
    --muted-strong: var(--sl-ink-soft);
    --accent: var(--sl-volt);
    --accent-strong: var(--sl-volt);
    --accent-soft: rgba(var(--sl-volt-rgb), 0.11);
    --positive: #8cffb6;
    --negative: var(--sl-rust);
    --warning: #ffd36e;
    --shadow: var(--sl-shadow-soft);
    --header-bg: rgba(7, 9, 11, 0.91);
    --header-border: rgba(var(--sl-volt-rgb), 0.2);
    --body-bg-default:
        linear-gradient(120deg, rgba(45, 212, 191, 0.08), transparent 32%),
        repeating-linear-gradient(90deg, rgba(245, 240, 230, 0.035) 0 1px, transparent 1px 96px),
        repeating-linear-gradient(0deg, rgba(245, 240, 230, 0.025) 0 1px, transparent 1px 72px),
        linear-gradient(180deg, #090b0f 0%, #0d1011 48%, #090a0c 100%);
    --body-bg-stock:
        linear-gradient(120deg, rgba(66, 232, 215, 0.09), transparent 30%),
        repeating-linear-gradient(90deg, rgba(245, 240, 230, 0.035) 0 1px, transparent 1px 96px),
        repeating-linear-gradient(0deg, rgba(245, 240, 230, 0.025) 0 1px, transparent 1px 72px),
        linear-gradient(180deg, #090b0f 0%, #0e1111 48%, #090a0c 100%);
    --body-bg-directory:
        linear-gradient(120deg, rgba(255, 143, 63, 0.08), transparent 34%),
        repeating-linear-gradient(90deg, rgba(245, 240, 230, 0.035) 0 1px, transparent 1px 96px),
        repeating-linear-gradient(0deg, rgba(245, 240, 230, 0.025) 0 1px, transparent 1px 72px),
        linear-gradient(180deg, #090b0f 0%, #0e1112 46%, #090a0c 100%);
    --body-bg-strat-ai:
        linear-gradient(120deg, rgba(45, 212, 191, 0.08), transparent 30%),
        repeating-linear-gradient(90deg, rgba(245, 240, 230, 0.035) 0 1px, transparent 1px 96px),
        repeating-linear-gradient(0deg, rgba(245, 240, 230, 0.025) 0 1px, transparent 1px 72px),
        linear-gradient(180deg, #08090c 0%, #0c0f10 100%);
    --body-bg-landing: var(--body-bg-default);
    --field-bg: #0d1012;
    --field-border: rgba(245, 240, 230, 0.16);
    --field-placeholder: #68635a;
    --secondary-bg: rgba(245, 240, 230, 0.045);
    --secondary-border: rgba(245, 240, 230, 0.14);
    --secondary-text: var(--sl-ink);
    --secondary-hover-bg: rgba(45, 212, 191, 0.09);
    --secondary-hover-border: rgba(var(--sl-volt-rgb), 0.38);
    --secondary-hover-text: var(--sl-volt);
    --metric-bg: rgba(245, 240, 230, 0.045);
    --metric-border: rgba(245, 240, 230, 0.12);
    --metric-text: var(--sl-ink);
    --list-hover-bg: rgba(var(--sl-volt-rgb), 0.07);
    --pointer-x: 50%;
    --pointer-y: 18%;
}

html[data-theme="light"] {
    --sl-ink: #151513;
    --sl-ink-soft: #343127;
    --sl-muted: #706a5d;
    --sl-field: #fbf7ec;
    --sl-paper: #f4efe3;
    --sl-panel: rgba(255, 252, 243, 0.93);
    --sl-panel-strong: rgba(255, 253, 247, 0.98);
    --sl-line: rgba(21, 21, 19, 0.14);
    --sl-line-strong: rgba(21, 21, 19, 0.27);
    --sl-volt: #047b86;
    --sl-volt-rgb: 4, 123, 134;
    --sl-copper: #b45117;
    --sl-rust: #bd2f24;
    --sl-cyan: #057a74;
    --sl-shadow: 10px 10px 0 rgba(21, 21, 19, 0.12);
    --sl-shadow-soft: 0 18px 44px rgba(21, 21, 19, 0.1);
    --bg: var(--sl-paper);
    --bg-elevated: #fbf7ec;
    --bg-panel: #fffaf0;
    --bg-panel-2: #f4ead9;
    --bg-panel-3: #e8dfcf;
    --panel: linear-gradient(180deg, rgba(255, 253, 247, 0.97), rgba(244, 239, 227, 0.98));
    --panel-border: var(--sl-line);
    --panel-border-strong: var(--sl-line-strong);
    --text: var(--sl-ink);
    --muted: var(--sl-muted);
    --muted-strong: var(--sl-ink-soft);
    --accent: var(--sl-volt);
    --accent-strong: #344600;
    --accent-soft: rgba(var(--sl-volt-rgb), 0.1);
    --positive: #006b3a;
    --negative: var(--sl-rust);
    --warning: #8b5d00;
    --shadow: var(--sl-shadow-soft);
    --header-bg: rgba(21, 21, 19, 0.95);
    --header-border: rgba(4, 123, 134, 0.34);
    --body-bg-default:
        linear-gradient(120deg, rgba(4, 123, 134, 0.08), transparent 35%),
        repeating-linear-gradient(90deg, rgba(21, 21, 19, 0.035) 0 1px, transparent 1px 96px),
        repeating-linear-gradient(0deg, rgba(21, 21, 19, 0.026) 0 1px, transparent 1px 72px),
        linear-gradient(180deg, #f4efe3 0%, #fbf7ec 46%, #eee5d5 100%);
    --body-bg-stock:
        linear-gradient(120deg, rgba(5, 122, 116, 0.08), transparent 35%),
        repeating-linear-gradient(90deg, rgba(21, 21, 19, 0.035) 0 1px, transparent 1px 96px),
        repeating-linear-gradient(0deg, rgba(21, 21, 19, 0.026) 0 1px, transparent 1px 72px),
        linear-gradient(180deg, #f4efe3 0%, #fbf7ec 46%, #eee5d5 100%);
    --body-bg-directory:
        linear-gradient(120deg, rgba(180, 81, 23, 0.08), transparent 35%),
        repeating-linear-gradient(90deg, rgba(21, 21, 19, 0.035) 0 1px, transparent 1px 96px),
        repeating-linear-gradient(0deg, rgba(21, 21, 19, 0.026) 0 1px, transparent 1px 72px),
        linear-gradient(180deg, #f4efe3 0%, #fbf7ec 46%, #eee5d5 100%);
    --body-bg-strat-ai: var(--body-bg-default);
    --body-bg-landing: var(--body-bg-default);
    --field-bg: #fffaf0;
    --field-border: rgba(21, 21, 19, 0.15);
    --field-placeholder: #8b8372;
    --secondary-bg: rgba(255, 253, 247, 0.72);
    --secondary-border: rgba(21, 21, 19, 0.14);
    --secondary-text: var(--sl-ink);
    --secondary-hover-bg: rgba(4, 123, 134, 0.08);
    --secondary-hover-border: rgba(4, 123, 134, 0.28);
    --secondary-hover-text: #344600;
    --metric-bg: rgba(21, 21, 19, 0.04);
    --metric-border: rgba(21, 21, 19, 0.1);
    --metric-text: var(--sl-ink);
    --list-hover-bg: rgba(4, 123, 134, 0.06);
}

html {
    background: var(--bg);
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

body {
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--body-bg-default);
    letter-spacing: 0;
    text-rendering: geometricPrecision;
}

body.site-mode-stock {
    background: var(--body-bg-stock);
}

body.page-directory {
    background: var(--body-bg-directory);
}

body.page-strat-ai {
    background: var(--body-bg-strat-ai);
}

body.site-mode-landing {
    background: var(--body-bg-landing);
}

body::before,
body::after,
body.page-strat-ai::before,
body.page-strat-ai::after {
    display: block;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 7px),
        linear-gradient(90deg, transparent, rgba(var(--sl-volt-rgb), 0.08) 50%, transparent);
    background-size: auto, 100% 1px;
    opacity: 0.58;
    mask-image: linear-gradient(180deg, black 0%, rgba(0, 0, 0, 0.72) 42%, transparent 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent calc(var(--pointer-x) - 1px), rgba(var(--sl-volt-rgb), 0.18) var(--pointer-x), transparent calc(var(--pointer-x) + 1px)),
        linear-gradient(180deg, transparent calc(var(--pointer-y) - 1px), rgba(66, 232, 215, 0.13) var(--pointer-y), transparent calc(var(--pointer-y) + 1px));
    opacity: 0;
    transition: opacity 180ms ease;
}

body[data-pointer-active="true"]::after {
    opacity: 0.28;
}

body > .topbar,
body > .page-shell,
body > .site-footer {
    position: relative;
    z-index: 1;
}

::selection {
    background: rgba(var(--sl-volt-rgb), 0.3);
    color: var(--text);
}

a,
button,
input,
select,
textarea {
    font-family: inherit;
    letter-spacing: 0;
}

h1,
h2,
h3,
.hero h1,
.section-header h2,
.strategy-hero-copy h1,
.researcher-hero-head h1,
.stock-directory-hero-copy h1,
.directory-header-copy h1,
.strat-ai-hero h1,
.strat-ai-section-head h2,
.live-signals-header h1,
.performance-ledger-hero h1,
.admin-page-title h1,
.admin-header h1 {
    font-family: var(--font-display);
    letter-spacing: 0;
    color: var(--text);
}

.eyebrow,
.badge,
.admin-kicker,
.daily-engine-kicker,
.auth-kicker,
.field-label,
.strat-ai-mini-meta,
.home-top-five-score,
.home-top-five-metric,
.compact-meta,
.table-metric,
.strategy-hero-chip,
.mini-pill {
    font-family: var(--font-mono);
    letter-spacing: 0;
}

.page-shell,
.topbar-shell {
    width: min(1360px, calc(100% - 48px));
}

.page-shell {
    padding-top: 34px;
}

.topbar {
    position: sticky;
    top: 0;
    isolation: isolate;
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.06), transparent 22%),
        var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    backdrop-filter: blur(18px) saturate(1.15);
}

.topbar::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(var(--sl-volt-rgb), 0.85) 42%, rgba(255, 143, 63, 0.72) 52%, transparent 68%);
    transform: translateX(-100%);
    animation: stratlabTopbarScan 7s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

.topbar-shell {
    min-height: 76px;
}

.brand-logo-shell {
    width: 170px;
    height: 42px;
}

.brand-logo-image {
    height: 42px;
    filter: contrast(1.06) saturate(0.86);
}

.main-nav {
    gap: 8px;
}

.nav-link,
.theme-toggle-option,
.topbar-login-button,
.topbar-user-chip,
.market-switch-pill,
.home-tab-control,
.home-leaderboard-filter-tab,
.secondary-button,
.primary-button,
.follow-button,
.strat-ai-tab,
.strat-ai-filter-reset,
.strat-ai-page-button,
.stock-chip-row button,
.stock-page-button {
    border-radius: 6px;
}

.nav-link {
    position: relative;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid transparent;
    color: rgba(245, 240, 230, 0.66);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-link::before {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 6px;
    left: 10px;
    height: 2px;
    background: var(--sl-volt);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(245, 240, 230, 0.06);
    border-color: rgba(var(--sl-volt-rgb), 0.23);
    color: var(--sl-ink);
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: scaleX(1);
}

.theme-toggle {
    min-height: 40px;
    padding: 4px;
    border: 1px solid rgba(245, 240, 230, 0.14);
    border-radius: 8px;
    background: rgba(245, 240, 230, 0.045);
}

.theme-toggle-option {
    min-height: 30px;
    padding: 0 11px;
    color: rgba(245, 240, 230, 0.6);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.theme-toggle-option:hover,
.theme-toggle-option.is-active {
    background: var(--sl-volt);
    color: #090b0f;
}

.topbar-user-chip,
.topbar-login-button {
    border-color: rgba(245, 240, 230, 0.14);
    background: rgba(245, 240, 230, 0.055);
    color: var(--sl-ink);
}

.topbar-user-chip:hover,
.topbar-login-button:hover,
.topbar-user-menu[open] .topbar-user-chip {
    border-color: rgba(var(--sl-volt-rgb), 0.36);
    background: rgba(var(--sl-volt-rgb), 0.1);
    color: var(--sl-ink);
    transform: translateY(-1px);
}

.topbar-user-dropdown {
    border-radius: 8px;
    border-color: var(--panel-border-strong);
    background: var(--sl-panel-strong);
    box-shadow: var(--sl-shadow);
}

.topbar-logout-button,
.topbar-account-link {
    border-radius: 5px;
}

.mobile-menu-toggle {
    border-radius: 6px;
    border-color: rgba(245, 240, 230, 0.16);
    background: rgba(245, 240, 230, 0.055);
}

.hero,
.chart-panel,
.list-panel,
.card,
.detail-card,
.home-category,
.home-live-signals-card,
.mode-card,
.strategy-hero-panel,
.strategy-builder-card,
.strategy-sidebar-card,
.strategy-results-card,
.strategy-library-card,
.researcher-generator-card,
.researcher-score-card,
.researcher-family-card,
.researcher-idea-card,
.stock-detail-hero,
.stock-detail-chart-panel,
.directory-header,
.directory-controls-panel,
.stock-directory-table-panel,
.stock-directory-table-wrap,
.results-panel,
.results-table-card,
.results-metric-card,
.results-snapshot-item,
.sidebar-tile,
.builder-subpanel,
.asset-picker-panel,
.asset-modal-dialog,
.exit-rule-card,
.asset-picker-option,
.daily-engine-header,
.daily-engine-market,
.daily-engine-card,
.daily-engine-check,
.admin-header,
.admin-panel,
.admin-login-card,
.admin-summary-grid > div,
.admin-review-card,
.admin-subscription-row,
.admin-empty,
.live-signals-section,
.live-signal-card,
.live-signals-alert-card,
.live-signals-pro-card,
.alerts-pro-hero-card,
.alerts-pro-step-card,
.alerts-pro-next-card,
.performance-ledger-hero {
    border-radius: 8px;
    border: 1px solid var(--panel-border);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero,
.detail-card,
.chart-panel,
.home-category,
.home-live-signals-card,
.mode-card,
.strategy-hero-panel,
.strategy-builder-card,
.strategy-results-card,
.strategy-library-card,
.directory-header,
.directory-controls-panel,
.stock-directory-table-wrap,
.strat-ai-latest-panel,
.strat-ai-tabs-panel,
.strat-ai-board-panel,
.strat-ai-strategy-card,
.strat-ai-card-link,
.live-signal-card,
.admin-panel {
    position: relative;
    overflow: hidden;
}

.hero::before,
.detail-card::before,
.chart-panel::before,
.home-category::before,
.home-live-signals-card::before,
.mode-card::before,
.strategy-hero-panel::before,
.directory-header::before,
.directory-controls-panel::before,
.stock-directory-table-wrap::before,
.strat-ai-latest-panel::before,
.strat-ai-tabs-panel::before,
.strat-ai-board-panel::before,
.strat-ai-strategy-card::before,
.strat-ai-card-link::before,
.live-signal-card::before,
.admin-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--sl-volt), var(--sl-copper), transparent);
    opacity: 0.72;
}

.hero h1,
.strategy-hero-copy h1,
.directory-header-copy h1,
.stock-directory-hero-copy h1,
.researcher-hero-head h1,
.strat-ai-hero h1,
.live-signals-header h1,
.performance-ledger-hero h1 {
    max-width: 12ch;
    font-size: 4rem;
    line-height: 0.92;
}

.hero p,
.card p,
.list-row p,
.detail-card p,
.strategy-hero-copy p,
.directory-summary-row p,
.home-live-signals-head span,
.compact-tag,
.table-reason,
.muted,
.site-copy {
    color: var(--muted);
}

.eyebrow,
.badge,
.mini-pill,
.compact-meta,
.home-top-five-score,
.home-top-five-metric,
.strat-ai-mini-meta,
.strat-ai-card-category,
.strat-ai-board-title,
.field-label,
.stock-page-status,
.daily-engine-card span,
.daily-engine-check span {
    min-height: 24px;
    border-radius: 999px;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 800;
}

.eyebrow,
.badge {
    width: fit-content;
    max-width: 100%;
}

.eyebrow,
.badge,
.mini-pill,
.home-top-five-score,
.home-top-five-metric,
.strat-ai-card-category {
    border: 1px solid rgba(var(--sl-volt-rgb), 0.22);
    background: rgba(var(--sl-volt-rgb), 0.08);
}

.primary-button,
.admin-login-form button,
.admin-primary-link,
.admin-page-title-action button,
.admin-review-title button,
.admin-strategy-gate-form button,
.admin-review-actions button,
.admin-activation-form button,
.admin-row-action button,
.live-signals-pro-button,
.live-signals-alert-form button,
.alerts-pro-proof-form button,
.live-signals-payment-proof-form button {
    min-height: 42px;
    border: 1px solid rgba(var(--sl-volt-rgb), 0.44);
    background: var(--sl-volt);
    color: #090b0f;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.28);
    font-weight: 800;
    transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.primary-button:hover,
.admin-login-form button:hover,
.admin-primary-link:hover,
.admin-page-title-action button:hover,
.admin-review-title button:hover,
.admin-strategy-gate-form button:hover,
.admin-review-actions button:hover,
.admin-activation-form button:hover,
.admin-row-action button:hover,
.live-signals-pro-button:hover,
.live-signals-alert-form button:hover,
.alerts-pro-proof-form button:hover,
.live-signals-payment-proof-form button:hover {
    background: #f4ffb7;
    border-color: rgba(var(--sl-volt-rgb), 0.68);
    color: #090b0f;
    transform: translate(-2px, -2px);
    box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.34);
}

.secondary-button,
.icon-button,
.researcher-help-trigger,
.follow-button,
.home-save-btn,
.strat-ai-filter-reset,
.strat-ai-page-button,
.stock-chip-row button,
.stock-pagination-controls button,
.stock-pagination-controls .stock-page-button,
.admin-secondary-button,
.admin-logout-form button,
.home-live-signals-link {
    border: 1px solid var(--secondary-border);
    background: var(--secondary-bg);
    color: var(--secondary-text);
    box-shadow: none;
    font-weight: 800;
    transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.secondary-button:hover,
.icon-button:hover,
.researcher-help-trigger:hover,
.follow-button:hover,
.home-save-btn:hover,
.strat-ai-filter-reset:hover,
.strat-ai-page-button:hover:not(:disabled),
.stock-chip-row button:hover,
.stock-pagination-controls button:hover:not(:disabled),
.stock-pagination-controls .stock-page-button:hover:not(:disabled),
.admin-secondary-button:hover,
.admin-logout-form button:hover,
.home-live-signals-link:hover {
    border-color: var(--secondary-hover-border);
    background: var(--secondary-hover-bg);
    color: var(--secondary-hover-text);
    transform: translateY(-1px);
}

input,
select,
textarea,
.strategy-input,
.strategy-select,
.strategy-multiselect,
.strat-ai-filter-input,
.strat-ai-filter-select,
.admin-login-form input,
.admin-activation-form input,
.admin-activation-form select,
.live-signals-alert-form input[type="email"],
.live-signals-alert-form input[type="text"],
.live-signals-payment-proof-form input[type="text"] {
    border-radius: 6px;
    border: 1px solid var(--field-border);
    background: var(--field-bg);
    color: var(--text);
    box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.12);
}

input::placeholder,
textarea::placeholder,
.strategy-input::placeholder,
.strat-ai-filter-input::placeholder {
    color: var(--field-placeholder);
}

input:focus,
select:focus,
textarea:focus,
.strategy-input:focus,
.strategy-select:focus,
.strategy-multiselect:focus,
.strat-ai-filter-input:focus,
.strat-ai-filter-select:focus {
    outline: 2px solid rgba(var(--sl-volt-rgb), 0.34);
    outline-offset: 2px;
    border-color: rgba(var(--sl-volt-rgb), 0.54);
    box-shadow: 0 0 0 4px rgba(var(--sl-volt-rgb), 0.08);
}

.home-tabs-shell {
    display: grid;
    gap: 22px;
}

.home-tab-nav {
    justify-self: center;
    display: inline-grid;
    grid-template-columns: repeat(3, minmax(112px, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 4px;
    padding: 5px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
}

.home-tab-nav::before {
    display: none;
}

.home-tab-control {
    position: relative;
    min-height: 44px;
    min-width: 0;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    font-weight: 900;
    text-transform: uppercase;
}

.home-tab-control:hover,
.home-tab-control.is-active {
    border-color: rgba(var(--sl-volt-rgb), 0.25);
    background: rgba(var(--sl-volt-rgb), 0.1);
    color: var(--text);
}

.home-leaderboard-toolbar {
    margin-bottom: 12px;
}

.home-leaderboard-filter-tabs {
    border-radius: 8px;
    border: 1px solid var(--panel-border);
    background: rgba(0, 0, 0, 0.18);
    box-shadow: none;
}

.home-leaderboard-filter-tab {
    color: var(--muted);
    text-transform: uppercase;
}

.home-leaderboard-filter-tab.is-active,
.home-leaderboard-filter-tab:hover {
    background: var(--sl-volt);
    color: #090b0f;
    box-shadow: none;
}

.home-top-five-list {
    gap: 14px;
}

.home-top-five-row {
    position: relative;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    min-height: 106px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--panel-border);
    background:
        linear-gradient(90deg, rgba(var(--sl-volt-rgb), 0.08), transparent 18%),
        var(--panel);
    box-shadow: none;
    transition: transform 170ms ease, border-color 170ms ease, background-color 170ms ease, box-shadow 170ms ease;
}

.home-top-five-row::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 8px;
    width: 3px;
    background: var(--sl-volt);
    transform: scaleY(0.35);
    transform-origin: top;
    transition: transform 180ms ease;
}

.home-top-five-row:hover,
.home-top-five-row.is-first:hover {
    border-color: rgba(var(--sl-volt-rgb), 0.42);
    background:
        linear-gradient(90deg, rgba(var(--sl-volt-rgb), 0.13), transparent 28%),
        var(--panel);
    box-shadow: var(--sl-shadow);
    transform: translate(-3px, -3px);
}

.home-top-five-row:hover::before {
    transform: scaleY(1);
}

.home-top-five-rank span {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    border-color: rgba(var(--sl-volt-rgb), 0.32);
    background: rgba(var(--sl-volt-rgb), 0.1);
    color: var(--accent);
    font-family: var(--font-mono);
}

.home-top-five-title h3 {
    color: var(--text);
    font-size: 1.08rem;
    font-weight: 800;
}

.home-top-five-row:hover .home-top-five-title h3 {
    color: var(--accent);
}

.home-top-five-metric.positive,
.positive {
    color: var(--positive);
}

.home-top-five-metric.negative,
.negative {
    color: var(--negative);
}

.home-live-signals-card {
    padding: 20px;
    border-color: rgba(var(--sl-volt-rgb), 0.23);
}

.home-live-signals-head h2 {
    font-family: var(--font-display);
    font-size: 1.55rem;
}

.home-live-signals-link {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border-radius: 6px;
    text-transform: uppercase;
}

.home-live-market-switch,
.market-switch {
    border-radius: 8px;
    border-color: var(--panel-border);
    background: rgba(0, 0, 0, 0.2);
    box-shadow: none;
}

.home-live-market-option,
.market-switch-pill {
    border-radius: 5px;
    color: var(--muted);
}

.home-live-market-option:hover,
.home-live-market-option.is-active,
.market-switch-pill.active {
    background: var(--sl-volt);
    color: #090b0f;
}

.home-live-signal {
    border-radius: 8px;
    border-color: var(--panel-border);
    background: rgba(245, 240, 230, 0.04);
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.home-live-signal:hover {
    border-color: rgba(var(--sl-volt-rgb), 0.34);
    background: rgba(var(--sl-volt-rgb), 0.08);
    transform: translateY(-2px);
}

.home-category {
    border-radius: 8px;
}

.home-category-header {
    border-bottom-color: var(--panel-border);
    background: rgba(245, 240, 230, 0.035);
}

.home-category-header h2,
.compact-copy strong {
    color: var(--text);
}

.compact-row {
    border-radius: 6px;
}

.compact-row:hover {
    border-color: rgba(var(--sl-volt-rgb), 0.25);
    background: rgba(var(--sl-volt-rgb), 0.07);
}

.directory-page {
    display: grid;
    gap: 18px;
}

.directory-header {
    padding: 26px;
}

.directory-header-copy h1 {
    font-size: 3.4rem;
    line-height: 0.94;
}

.directory-controls-panel {
    padding: 18px;
}

.stock-chip-row .stock-chip.active,
.stock-chip-row button.active,
.stock-pagination-controls .stock-page-button.is-active,
.stock-pagination-controls button.is-active,
.stock-pagination-controls [aria-current="page"],
.strat-ai-page-button.is-active {
    background: var(--sl-volt);
    border-color: rgba(var(--sl-volt-rgb), 0.44);
    color: #090b0f;
}

.screener-table-wrap,
.stock-directory-table-wrap,
.strat-ai-table-shell {
    border-radius: 8px;
    border: 1px solid var(--panel-border);
    background: rgba(0, 0, 0, 0.18);
}

.screener-table,
.stock-directory-table,
.strat-ai-table {
    border-collapse: separate;
    border-spacing: 0;
}

.screener-table th,
.stock-directory-table th,
.strat-ai-table thead th {
    background: rgba(245, 240, 230, 0.08);
    color: var(--muted-strong);
    border-bottom: 1px solid var(--panel-border-strong);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0;
}

.screener-table td,
.stock-directory-table td,
.strat-ai-table tbody td {
    border-bottom-color: var(--panel-border);
    color: var(--text);
}

.screener-table tbody tr:hover,
.stock-directory-table tbody tr:hover td,
.strat-ai-table tbody tr:hover {
    background: rgba(var(--sl-volt-rgb), 0.065);
}

.coin-logo,
.coin-logo-large {
    border-radius: 6px;
    border-color: var(--panel-border-strong);
    background: var(--field-bg);
}

body.page-strat-ai .page-shell {
    width: min(1440px, calc(100% - 48px));
}

.strat-ai-page {
    gap: 22px;
}

.strat-ai-latest-panel,
.strat-ai-tabs-panel,
.strat-ai-board-panel,
.strat-ai-card-link,
.strat-ai-strategy-card,
.strat-ai-skeleton-card,
body.page-strat-ai .strat-ai-today-card {
    border-radius: 8px;
    border-color: var(--panel-border);
    background: var(--panel);
    box-shadow: none;
}

.strat-ai-section-head {
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 14px;
}

.strat-ai-section-head h2,
.strat-ai-board-title {
    color: var(--text);
}

.strat-ai-tablist {
    gap: 5px;
    padding: 5px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.strat-ai-tab {
    min-height: 36px;
    color: var(--muted);
    font-weight: 900;
    text-transform: uppercase;
}

#strat-ai-tab-feed-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[for="strat-ai-tab-feed-toggle"],
#strat-ai-tab-board-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[for="strat-ai-tab-board-toggle"],
#strat-ai-tab-all-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[for="strat-ai-tab-all-toggle"],
.strat-ai-tab:hover {
    background: var(--sl-volt);
    color: #090b0f;
}

.strat-ai-filter-bar {
    border-radius: 8px;
    border: 1px solid var(--panel-border);
    background: rgba(245, 240, 230, 0.035);
}

.strat-ai-card-metrics > div,
body.page-strat-ai .strat-ai-today-card-metrics > div,
.stat-card,
.strategy-hero-stat,
.results-metric-card,
.daily-engine-card,
.daily-engine-check {
    border-radius: 6px;
    border: 1px solid var(--metric-border);
    background: var(--metric-bg);
}

.stat-card span,
.strategy-hero-stat span,
.results-metric-card span,
.daily-engine-card span,
.daily-engine-check span,
body.page-strat-ai .strat-ai-today-card-metrics span {
    color: var(--muted);
}

.stat-card strong,
.strategy-hero-stat strong,
.results-metric-card strong,
.daily-engine-card strong,
.daily-engine-check strong,
body.page-strat-ai .strat-ai-today-card-metrics strong {
    color: var(--metric-text);
}

.strategy-choice-card,
.exit-rule-card,
.asset-picker-option,
.sidebar-note-card,
.builder-summary-card,
.saved-strategy-row,
.live-signal-card,
.admin-review-card {
    border-radius: 8px;
    border-color: var(--panel-border);
    background: rgba(245, 240, 230, 0.04);
    box-shadow: none;
}

.strategy-choice-card:hover,
.exit-rule-card:hover,
.asset-picker-option:hover,
.live-signal-card:hover,
.admin-review-card:hover {
    border-color: rgba(var(--sl-volt-rgb), 0.3);
    background: rgba(var(--sl-volt-rgb), 0.065);
    transform: translateY(-2px);
}

.strategy-choice-card:has(input:checked),
.asset-picker-option:has(input:checked),
.exit-rule-card:has(.exit-rule-toggle input:checked) {
    border-color: rgba(var(--sl-volt-rgb), 0.44);
    background: rgba(var(--sl-volt-rgb), 0.1);
    box-shadow: inset 4px 0 0 var(--sl-volt);
}

.strategy-wizard-progress-item.is-active,
.strategy-wizard-progress-item.is-complete {
    color: var(--text);
    border-bottom-color: var(--sl-volt);
}

.strategy-wizard-progress-item.is-active span,
.strategy-wizard-progress-item.is-complete span {
    background: var(--sl-volt);
    color: #090b0f;
}

.site-footer {
    border-top: 1px solid var(--panel-border-strong);
    background:
        linear-gradient(90deg, rgba(var(--sl-volt-rgb), 0.08), transparent 30%),
        var(--header-bg);
}

.site-footer-shell {
    color: var(--sl-ink);
}

.site-footer-shell span,
.site-footer-shell p,
.site-footer-shell a {
    color: rgba(245, 240, 230, 0.7);
}

.admin-topbar {
    background:
        linear-gradient(90deg, rgba(var(--sl-volt-rgb), 0.12), transparent 32%),
        #090b0f;
    border-bottom-color: var(--header-border);
}

.admin-brand {
    font-family: var(--font-display);
}

html[data-theme="light"] .topbar,
html[data-theme="light"] .site-footer,
html[data-theme="light"] .admin-topbar {
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.12), transparent 28%),
        #151513;
}

html[data-theme="light"] .brand-lockup .brand,
html[data-theme="light"] .nav-link,
html[data-theme="light"] .topbar-user-name,
html[data-theme="light"] .topbar-login-button,
html[data-theme="light"] .theme-toggle-option {
    color: rgba(245, 240, 230, 0.76);
}

html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-link.active,
html[data-theme="light"] .topbar-user-chip:hover,
html[data-theme="light"] .topbar-login-button:hover,
html[data-theme="light"] .topbar-user-menu[open] .topbar-user-chip {
    color: #fffaf0;
}

html[data-theme="light"] .theme-toggle-option:hover,
html[data-theme="light"] .theme-toggle-option.is-active {
    background: #2dd4bf;
    color: #031315;
}

html[data-theme="light"] .home-tab-nav,
html[data-theme="light"] .home-leaderboard-filter-tabs,
html[data-theme="light"] .market-switch,
html[data-theme="light"] .home-live-market-switch,
html[data-theme="light"] .strat-ai-tablist,
html[data-theme="light"] .screener-table-wrap,
html[data-theme="light"] .stock-directory-table-wrap,
html[data-theme="light"] .strat-ai-table-shell {
    background: rgba(21, 21, 19, 0.04);
}

html[data-theme="light"] .home-leaderboard-filter-tab.is-active,
html[data-theme="light"] .home-leaderboard-filter-tab:hover,
html[data-theme="light"] .home-live-market-option:hover,
html[data-theme="light"] .home-live-market-option.is-active,
html[data-theme="light"] .market-switch-pill.active,
html[data-theme="light"] .stock-chip-row .stock-chip.active,
html[data-theme="light"] .stock-chip-row button.active,
html[data-theme="light"] .stock-pagination-controls .stock-page-button.is-active,
html[data-theme="light"] .stock-pagination-controls button.is-active,
html[data-theme="light"] .stock-pagination-controls [aria-current="page"],
html[data-theme="light"] .strat-ai-page-button.is-active {
    background: #2dd4bf;
    color: #031315;
}

html[data-theme="light"] .primary-button,
html[data-theme="light"] .admin-login-form button,
html[data-theme="light"] .admin-primary-link,
html[data-theme="light"] .admin-page-title-action button,
html[data-theme="light"] .admin-review-title button,
html[data-theme="light"] .admin-strategy-gate-form button,
html[data-theme="light"] .admin-review-actions button,
html[data-theme="light"] .admin-activation-form button,
html[data-theme="light"] .admin-row-action button,
html[data-theme="light"] .live-signals-pro-button,
html[data-theme="light"] .live-signals-alert-form button,
html[data-theme="light"] .alerts-pro-proof-form button,
html[data-theme="light"] .live-signals-payment-proof-form button {
    background: #151513;
    border-color: #151513;
    color: #fffaf0;
    box-shadow: 6px 6px 0 rgba(21, 21, 19, 0.14);
}

html[data-theme="light"] .primary-button:hover,
html[data-theme="light"] .admin-login-form button:hover,
html[data-theme="light"] .admin-primary-link:hover,
html[data-theme="light"] .admin-page-title-action button:hover,
html[data-theme="light"] .admin-review-title button:hover,
html[data-theme="light"] .admin-strategy-gate-form button:hover,
html[data-theme="light"] .admin-review-actions button:hover,
html[data-theme="light"] .admin-activation-form button:hover,
html[data-theme="light"] .admin-row-action button:hover,
html[data-theme="light"] .live-signals-pro-button:hover,
html[data-theme="light"] .live-signals-alert-form button:hover,
html[data-theme="light"] .alerts-pro-proof-form button:hover,
html[data-theme="light"] .live-signals-payment-proof-form button:hover {
    background: #2a2a25;
    color: #fffaf0;
}

html[data-theme="light"] .site-footer-shell span,
html[data-theme="light"] .site-footer-shell p,
html[data-theme="light"] .site-footer-shell a {
    color: rgba(255, 250, 240, 0.72);
}

.is-animating-in {
    animation: stratlabPanelIn 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes stratlabTopbarScan {
    0%,
    48% {
        transform: translateX(-100%);
    }
    62%,
    100% {
        transform: translateX(100%);
    }
}

@keyframes stratlabPanelIn {
    from {
        opacity: 0;
        transform: translateY(10px);
        filter: saturate(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: saturate(1);
    }
}

@media (max-width: 980px) {
    .hero h1,
    .strategy-hero-copy h1,
    .directory-header-copy h1,
    .stock-directory-hero-copy h1,
    .researcher-hero-head h1,
    .strat-ai-hero h1,
    .live-signals-header h1,
    .performance-ledger-hero h1 {
        max-width: 14ch;
        font-size: 3rem;
    }

    .home-live-signals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .page-shell,
    .topbar-shell,
    body.page-strat-ai .page-shell {
        width: calc(100% - 28px) !important;
        max-width: 100%;
    }

    .topbar {
        position: sticky;
    }

    .topbar-shell {
        min-height: auto;
    }

    .brand-logo-shell {
        width: 136px;
        height: 34px;
    }

    .brand-logo-image {
        height: 34px;
    }

    .hero h1,
    .strategy-hero-copy h1,
    .directory-header-copy h1,
    .stock-directory-hero-copy h1,
    .researcher-hero-head h1,
    .strat-ai-hero h1,
    .live-signals-header h1,
    .performance-ledger-hero h1 {
        max-width: 12ch;
        font-size: 2.25rem;
        line-height: 0.98;
    }

    .home-tab-nav {
        box-sizing: border-box;
        width: 100%;
        max-width: calc(100vw - 28px) !important;
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        grid-auto-columns: auto;
    }

    .home-tabs-shell,
    .home-panels-shell,
    .home-tab-panel {
        width: 100%;
        min-width: 0;
        max-width: calc(100vw - 28px) !important;
        overflow-x: hidden;
    }

    .home-tab-control {
        width: 100%;
    }

    .home-live-signals-card,
    .home-leaderboard-empty,
    .home-leaderboard-filter-empty {
        width: 100%;
        max-width: calc(100vw - 28px) !important;
        justify-self: start;
    }

    .home-leaderboard-empty p {
        max-width: 30ch;
    }

    .home-top-five-row {
        grid-template-columns: 52px minmax(0, 1fr);
        align-items: start;
    }

    .home-top-five-actions {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .home-save-btn,
    .home-top-five-actions .secondary-button {
        width: 100%;
    }

    .home-live-signals-head,
    .directory-header-row,
    .directory-controls-row,
    .daily-engine-header,
    .admin-page-title {
        align-items: stretch;
        flex-direction: column;
    }

    .home-live-signals-actions,
    .home-live-market-switch {
        width: 100%;
        justify-content: stretch;
    }

    .home-live-market-option {
        flex: 1 1 0;
    }

    .home-live-signals-grid,
    .home-screeners-grid,
    .homepage-grid {
        display: grid;
        grid-template-columns: 1fr;
        column-count: auto;
    }

    .strat-ai-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .strat-ai-tablist {
        display: grid;
        grid-template-columns: 1fr;
    }

    .primary-button,
    .secondary-button,
    .follow-button,
    .strat-ai-filter-reset,
    .live-signals-pro-button,
    .live-signals-alert-form button,
    .alerts-pro-proof-form button,
    .live-signals-payment-proof-form button {
        min-width: 0;
    }
}

@media (max-width: 420px) {
    .hero h1,
    .strategy-hero-copy h1,
    .directory-header-copy h1,
    .stock-directory-hero-copy h1,
    .researcher-hero-head h1,
    .strat-ai-hero h1,
    .live-signals-header h1,
    .performance-ledger-hero h1 {
        font-size: 1.9rem;
    }

    .home-top-five-row {
        grid-template-columns: 1fr;
    }

    .home-top-five-rank {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    body::after {
        display: none;
    }
}

/* Landing page: industrial research atelier, built as a public front door. */
body.page-landing {
    --landing-ink: var(--sl-ink);
    --landing-paper: var(--sl-paper);
    --landing-line: rgba(245, 240, 230, 0.16);
    --landing-line-strong: rgba(245, 240, 230, 0.32);
    --landing-volt: #2dd4bf;
    --landing-copper: #ff8f3f;
    --landing-cyan: #42e8d7;
    --landing-red: #ff5b4a;
    background:
        linear-gradient(102deg, rgba(45, 212, 191, 0.11), transparent 24%),
        linear-gradient(168deg, transparent 0 54%, rgba(255, 143, 63, 0.09) 54% 62%, transparent 62%),
        repeating-linear-gradient(90deg, rgba(245, 240, 230, 0.04) 0 1px, transparent 1px 112px),
        repeating-linear-gradient(0deg, rgba(245, 240, 230, 0.025) 0 1px, transparent 1px 88px),
        linear-gradient(180deg, #08090b 0%, #11120f 45%, #090b0f 100%);
}

body.page-landing .page-shell {
    width: min(1440px, calc(100% - 48px));
    padding-top: 24px;
}

body.page-landing .site-footer {
    margin-top: 0;
}

.landing-atelier {
    display: grid;
    gap: 28px;
}

.landing-hero {
    position: relative;
    min-height: calc(100svh - 188px);
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(430px, 0.78fr);
    gap: 34px;
    align-items: center;
    padding: 18px 0 22px;
}

.landing-hero::before {
    content: "STRATEGY / SIGNAL / PROOF";
    position: absolute;
    top: 11%;
    right: 2%;
    z-index: -1;
    color: rgba(245, 240, 230, 0.035);
    font-family: var(--font-mono);
    font-size: 4.7rem;
    font-weight: 800;
    line-height: 0.9;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.landing-hero-copy {
    display: grid;
    justify-items: start;
    gap: 16px;
    max-width: 760px;
}

.landing-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid rgba(var(--sl-volt-rgb), 0.35);
    border-radius: 999px;
    background: rgba(var(--sl-volt-rgb), 0.08);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.landing-hero h1 {
    margin: 0;
    color: var(--landing-ink);
    font-family: "Instrument Serif", var(--font-display);
    font-size: 8.4rem;
    font-weight: 400;
    line-height: 0.78;
}

.landing-hero p {
    max-width: 58ch;
    margin: 0;
    color: rgba(245, 240, 230, 0.72);
    font-size: 1.06rem;
    line-height: 1.58;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 6px;
}

.landing-hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: min(640px, 100%);
    padding-top: 10px;
}

.landing-hero-proof span {
    position: relative;
    display: grid;
    gap: 5px;
    min-height: 72px;
    align-content: center;
    padding: 12px;
    border: 1px solid rgba(245, 240, 230, 0.13);
    border-radius: 6px;
    background:
        linear-gradient(90deg, rgba(var(--sl-volt-rgb), 0.07), transparent 56%),
        rgba(245, 240, 230, 0.035);
}

.landing-hero-proof span::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;
    width: 3px;
    background: var(--sl-volt);
    transform: scaleY(0.45);
    transform-origin: top;
    transition: transform 170ms ease;
}

.landing-hero-proof span:hover::before {
    transform: scaleY(1);
}

.landing-hero-proof strong,
.landing-hero-proof small {
    color: var(--landing-ink);
}

.landing-hero-proof strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1;
}

.landing-hero-proof small {
    color: rgba(245, 240, 230, 0.56);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.landing-action {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 6px;
    font-weight: 900;
    text-transform: uppercase;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.landing-action-primary {
    border: 1px solid rgba(var(--sl-volt-rgb), 0.58);
    background: var(--sl-volt);
    color: #090b0f;
    box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.34);
}

.landing-action-secondary {
    border: 1px solid rgba(245, 240, 230, 0.18);
    background: rgba(245, 240, 230, 0.045);
    color: var(--landing-ink);
}

.landing-action:hover {
    transform: translate(-2px, -2px);
}

.landing-action-primary:hover {
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.4);
}

.landing-action-secondary:hover {
    border-color: rgba(var(--sl-volt-rgb), 0.38);
    background: rgba(var(--sl-volt-rgb), 0.09);
    color: var(--accent);
}

.landing-command {
    position: relative;
    min-width: 0;
    perspective: 1200px;
}

.landing-command::before {
    content: "";
    position: absolute;
    top: 26px;
    right: -12px;
    bottom: -12px;
    left: 32px;
    border: 1px solid rgba(255, 143, 63, 0.28);
    background: rgba(255, 143, 63, 0.035);
    transform: rotate(2deg);
}

.landing-command-plate {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--landing-line-strong);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(45, 212, 191, 0.08), transparent 34%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 9px),
        rgba(9, 11, 15, 0.92);
    box-shadow: 18px 20px 0 rgba(0, 0, 0, 0.32);
    transform: rotateX(3deg) rotateY(-5deg);
    transition: transform 240ms ease, box-shadow 240ms ease;
}

.landing-command:hover .landing-command-plate {
    transform: rotateX(0) rotateY(0) translate(-3px, -3px);
    box-shadow: 24px 26px 0 rgba(0, 0, 0, 0.38);
}

.landing-command-topline {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 6px 8px;
    border: 1px solid rgba(245, 240, 230, 0.13);
    border-radius: 6px;
    background: rgba(245, 240, 230, 0.04);
}

.landing-command-topline img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.landing-command-topline span,
.landing-command-topline strong,
.landing-command-grid span,
.landing-scan-ticket small,
.landing-deck-panel span,
.landing-deck-panel small,
.landing-proof-unit span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.landing-command-topline span {
    color: rgba(245, 240, 230, 0.76);
}

.landing-command-topline strong {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--sl-volt);
    color: #090b0f;
}

.landing-scan-stage {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    border: 1px solid rgba(245, 240, 230, 0.12);
    border-radius: 6px;
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.1), transparent 15% 85%, rgba(66, 232, 215, 0.08)),
        repeating-linear-gradient(90deg, rgba(245, 240, 230, 0.06) 0 1px, transparent 1px 64px),
        repeating-linear-gradient(0deg, rgba(245, 240, 230, 0.045) 0 1px, transparent 1px 48px),
        #0d1012;
}

.landing-scan-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0 42%, rgba(var(--sl-volt-rgb), 0.13) 42% 43%, transparent 43% 100%);
    animation: landingScanline 5.4s linear infinite;
}

.landing-scan-stage::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 36%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.34));
}

.landing-scan-axis {
    position: absolute;
    z-index: 1;
    background: var(--sl-volt);
    opacity: 0.52;
    box-shadow: 0 0 22px rgba(var(--sl-volt-rgb), 0.42);
}

.landing-scan-axis-x {
    right: 8%;
    left: 8%;
    top: 47%;
    height: 1px;
    animation: landingAxisX 5s ease-in-out infinite;
}

.landing-scan-axis-y {
    top: 8%;
    bottom: 8%;
    left: 51%;
    width: 1px;
    animation: landingAxisY 4.4s ease-in-out infinite;
}

.landing-scan-core {
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: 2;
    width: 182px;
    height: 182px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(var(--sl-volt-rgb), 0.42);
    border-radius: 50%;
    background:
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(var(--sl-volt-rgb), 0.26) 50%, transparent calc(50% + 1px)),
        linear-gradient(0deg, transparent calc(50% - 1px), rgba(var(--sl-volt-rgb), 0.26) 50%, transparent calc(50% + 1px));
}

.landing-scan-core span {
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(245, 240, 230, 0.16);
    border-radius: 50%;
}

.landing-scan-core span:nth-child(2) {
    inset: 42px;
    border-color: rgba(66, 232, 215, 0.34);
}

.landing-scan-core span:nth-child(3) {
    inset: 72px;
    border-color: rgba(255, 143, 63, 0.34);
}

.landing-scan-ticket {
    position: absolute;
    z-index: 3;
    display: grid;
    gap: 4px;
    width: min(210px, calc(100% - 28px));
    padding: 12px;
    border: 1px solid rgba(245, 240, 230, 0.15);
    border-radius: 6px;
    background: rgba(12, 15, 17, 0.88);
    backdrop-filter: blur(10px);
}

.landing-scan-ticket small {
    color: var(--accent);
}

.landing-scan-ticket strong {
    color: var(--landing-ink);
    font-size: 0.95rem;
    line-height: 1.18;
}

.landing-scan-ticket-a {
    top: 24px;
    left: 22px;
}

.landing-scan-ticket-b {
    right: 18px;
    bottom: 76px;
}

.landing-scan-ticket-c {
    bottom: 22px;
    left: 42px;
}

.landing-scan-tape {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(245, 240, 230, 0.14);
    background: rgba(9, 11, 15, 0.78);
    backdrop-filter: blur(8px);
}

.landing-scan-tape span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-right: 1px solid rgba(245, 240, 230, 0.12);
    color: rgba(245, 240, 230, 0.7);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.landing-scan-tape span:last-child {
    border-right: 0;
}

.landing-command-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.landing-command-grid div {
    display: grid;
    gap: 5px;
    min-height: 72px;
    align-content: center;
    padding: 12px;
    border: 1px solid rgba(245, 240, 230, 0.12);
    border-radius: 6px;
    background: rgba(245, 240, 230, 0.035);
}

.landing-command-grid span {
    color: rgba(245, 240, 230, 0.52);
}

.landing-command-grid strong {
    color: var(--landing-ink);
    font-size: 1.02rem;
}

.landing-proof {
    display: grid;
    grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
    gap: 24px;
    padding: 30px 0 2px;
    border-top: 1px solid rgba(245, 240, 230, 0.14);
}

.landing-section-head {
    display: grid;
    align-content: start;
    gap: 14px;
}

.landing-section-head h2 {
    max-width: 13ch;
    margin: 0;
    color: var(--landing-ink);
    font-family: var(--font-display);
    font-size: 3.2rem;
    line-height: 0.96;
}

.landing-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.landing-proof-unit {
    position: relative;
    display: grid;
    gap: 12px;
    min-height: 238px;
    padding: 18px;
    border: 1px solid rgba(245, 240, 230, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(245, 240, 230, 0.06), rgba(245, 240, 230, 0.025)),
        rgba(9, 11, 15, 0.5);
    transition: transform 170ms ease, border-color 170ms ease, background-color 170ms ease;
}

.landing-proof-unit::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    height: 3px;
    background: linear-gradient(90deg, var(--sl-volt), var(--sl-copper), transparent);
    transform: scaleX(0.22);
    transform-origin: left;
    transition: transform 180ms ease;
}

.landing-proof-unit:hover {
    border-color: rgba(var(--sl-volt-rgb), 0.36);
    background:
        linear-gradient(180deg, rgba(var(--sl-volt-rgb), 0.08), rgba(245, 240, 230, 0.03)),
        rgba(9, 11, 15, 0.58);
    transform: translate(-3px, -3px);
}

.landing-proof-unit:hover::after {
    transform: scaleX(1);
}

.landing-proof-unit span {
    color: var(--accent);
}

.landing-proof-unit strong {
    max-width: 12ch;
    color: var(--landing-ink);
    font-family: var(--font-display);
    font-size: 1.72rem;
    line-height: 1;
}

.landing-proof-unit p {
    margin: 0;
    color: rgba(245, 240, 230, 0.64);
    line-height: 1.55;
}

.landing-deck {
    display: grid;
    grid-template-columns: 1.25fr 0.8fr 0.8fr;
    gap: 12px;
    padding: 18px 0 52px;
}

.landing-deck-panel {
    min-height: 210px;
    display: grid;
    align-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(245, 240, 230, 0.14);
    border-radius: 8px;
    background:
        repeating-linear-gradient(135deg, rgba(245, 240, 230, 0.028) 0 1px, transparent 1px 10px),
        rgba(245, 240, 230, 0.035);
    transition: transform 170ms ease, border-color 170ms ease, background-color 170ms ease;
}

.landing-deck-panel-wide {
    min-height: 258px;
    background:
        linear-gradient(110deg, rgba(255, 143, 63, 0.13), transparent 40%),
        repeating-linear-gradient(135deg, rgba(245, 240, 230, 0.028) 0 1px, transparent 1px 10px),
        rgba(245, 240, 230, 0.04);
}

.landing-deck-panel:hover {
    border-color: rgba(var(--sl-volt-rgb), 0.36);
    background-color: rgba(var(--sl-volt-rgb), 0.07);
    transform: translateY(-3px);
}

.landing-deck-panel span,
.landing-deck-panel small {
    color: var(--accent);
}

.landing-deck-panel strong {
    max-width: 18ch;
    color: var(--landing-ink);
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
}

.landing-deck-panel-wide strong {
    max-width: 20ch;
    font-size: 2.75rem;
    line-height: 0.96;
}

.landing-action:focus-visible,
.landing-proof-unit:focus-visible,
.landing-deck-panel:focus-visible {
    outline: 2px solid rgba(var(--sl-volt-rgb), 0.72);
    outline-offset: 3px;
}

.landing-hero-copy > *,
.landing-command,
.landing-proof,
.landing-deck {
    animation: landingReveal 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.landing-hero-copy > :nth-child(2) {
    animation-delay: 45ms;
}

.landing-hero-copy > :nth-child(3) {
    animation-delay: 90ms;
}

.landing-hero-copy > :nth-child(4) {
    animation-delay: 135ms;
}

.landing-hero-copy > :nth-child(5) {
    animation-delay: 180ms;
}

.landing-command {
    animation-delay: 160ms;
}

.landing-proof {
    animation-delay: 220ms;
}

.landing-deck {
    animation-delay: 280ms;
}

html[data-theme="light"] body.page-landing {
    --landing-ink: #14130f;
    --landing-paper: #f7f4ec;
    --landing-line: rgba(20, 19, 15, 0.16);
    --landing-line-strong: rgba(20, 19, 15, 0.3);
    --landing-volt: #047b86;
    --landing-copper: #b45117;
    --landing-cyan: #057a74;
    --landing-red: #bd2f24;
    background:
        linear-gradient(108deg, rgba(5, 122, 116, 0.13), transparent 31%),
        linear-gradient(166deg, transparent 0 54%, rgba(180, 81, 23, 0.1) 54% 62%, transparent 62%),
        repeating-linear-gradient(90deg, rgba(20, 19, 15, 0.045) 0 1px, transparent 1px 112px),
        repeating-linear-gradient(0deg, rgba(20, 19, 15, 0.03) 0 1px, transparent 1px 88px),
        linear-gradient(180deg, #f7f4ec 0%, #fffdf6 46%, #eaf1ec 100%);
}

html[data-theme="light"] body.page-landing::before {
    background:
        repeating-linear-gradient(115deg, rgba(20, 19, 15, 0.035) 0 1px, transparent 1px 7px),
        linear-gradient(90deg, transparent, rgba(4, 123, 134, 0.09) 50%, transparent);
    opacity: 0.5;
}

html[data-theme="light"] .landing-hero::before {
    color: rgba(20, 19, 15, 0.06);
}

html[data-theme="light"] .landing-hero p,
html[data-theme="light"] .landing-proof-unit p {
    color: rgba(20, 19, 15, 0.68);
}

html[data-theme="light"] .landing-kicker {
    border-color: rgba(4, 123, 134, 0.28);
    background: rgba(4, 123, 134, 0.08);
    color: #405400;
}

html[data-theme="light"] .landing-command::before {
    border-color: rgba(180, 81, 23, 0.24);
    background: rgba(180, 81, 23, 0.07);
}

html[data-theme="light"] .landing-command-plate {
    border-color: rgba(20, 19, 15, 0.26);
    background:
        linear-gradient(135deg, rgba(4, 123, 134, 0.12), transparent 30%),
        linear-gradient(162deg, transparent 0 70%, rgba(5, 122, 116, 0.08) 70%),
        repeating-linear-gradient(135deg, rgba(20, 19, 15, 0.04) 0 1px, transparent 1px 9px),
        rgba(255, 253, 247, 0.94);
    box-shadow: 16px 18px 0 rgba(20, 19, 15, 0.12);
}

html[data-theme="light"] .landing-command:hover .landing-command-plate {
    box-shadow: 20px 22px 0 rgba(20, 19, 15, 0.15);
}

html[data-theme="light"] .landing-command-topline {
    border-color: rgba(20, 19, 15, 0.13);
    background: rgba(20, 19, 15, 0.035);
}

html[data-theme="light"] .landing-command-topline span,
html[data-theme="light"] .landing-command-grid span,
html[data-theme="light"] .landing-hero-proof small {
    color: rgba(20, 19, 15, 0.58);
}

html[data-theme="light"] .landing-hero-proof span {
    border-color: rgba(20, 19, 15, 0.13);
    background:
        linear-gradient(90deg, rgba(4, 123, 134, 0.08), transparent 56%),
        rgba(255, 253, 247, 0.72);
}

html[data-theme="light"] .landing-hero-proof strong {
    color: #14130f;
}

html[data-theme="light"] .landing-command-topline strong,
html[data-theme="light"] .landing-action-primary {
    background: #14130f;
    border-color: #14130f;
    color: #fffdf6;
}

html[data-theme="light"] .landing-action-primary {
    box-shadow: 7px 7px 0 rgba(4, 123, 134, 0.18);
}

html[data-theme="light"] .landing-action-primary:hover {
    box-shadow: 10px 10px 0 rgba(4, 123, 134, 0.23);
}

html[data-theme="light"] .landing-action-secondary {
    border-color: rgba(20, 19, 15, 0.17);
    background: rgba(255, 253, 247, 0.76);
    color: #14130f;
}

html[data-theme="light"] .landing-action-secondary:hover {
    border-color: rgba(5, 122, 116, 0.35);
    background: rgba(5, 122, 116, 0.08);
    color: #045f5a;
}

html[data-theme="light"] .landing-scan-stage {
    border-color: rgba(20, 19, 15, 0.15);
    background:
        linear-gradient(90deg, rgba(4, 123, 134, 0.12), transparent 18% 80%, rgba(5, 122, 116, 0.1)),
        repeating-linear-gradient(90deg, rgba(20, 19, 15, 0.08) 0 1px, transparent 1px 64px),
        repeating-linear-gradient(0deg, rgba(20, 19, 15, 0.055) 0 1px, transparent 1px 48px),
        #f8f4e9;
}

html[data-theme="light"] .landing-scan-stage::after {
    background: linear-gradient(180deg, transparent, rgba(20, 19, 15, 0.12));
}

html[data-theme="light"] .landing-scan-core span {
    border-color: rgba(20, 19, 15, 0.2);
}

html[data-theme="light"] .landing-scan-core span:nth-child(2) {
    border-color: rgba(5, 122, 116, 0.36);
}

html[data-theme="light"] .landing-scan-core span:nth-child(3) {
    border-color: rgba(180, 81, 23, 0.34);
}

html[data-theme="light"] .landing-scan-ticket {
    border-color: rgba(20, 19, 15, 0.16);
    background: rgba(255, 253, 247, 0.88);
    box-shadow: 0 14px 28px rgba(20, 19, 15, 0.08);
}

html[data-theme="light"] .landing-scan-tape {
    border-top-color: rgba(20, 19, 15, 0.14);
    background: rgba(255, 253, 247, 0.82);
}

html[data-theme="light"] .landing-scan-tape span {
    border-right-color: rgba(20, 19, 15, 0.12);
    color: rgba(20, 19, 15, 0.62);
}

html[data-theme="light"] .landing-scan-ticket strong,
html[data-theme="light"] .landing-command-grid strong,
html[data-theme="light"] .landing-proof-unit strong,
html[data-theme="light"] .landing-deck-panel strong {
    color: #14130f;
}

html[data-theme="light"] .landing-command-grid div {
    border-color: rgba(20, 19, 15, 0.12);
    background: rgba(20, 19, 15, 0.035);
}

html[data-theme="light"] .landing-proof {
    border-top-color: rgba(20, 19, 15, 0.14);
}

html[data-theme="light"] .landing-proof-unit {
    border-color: rgba(20, 19, 15, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 253, 247, 0.88), rgba(244, 239, 227, 0.6)),
        rgba(255, 253, 247, 0.74);
}

html[data-theme="light"] .landing-proof-unit:hover {
    border-color: rgba(5, 122, 116, 0.32);
    background:
        linear-gradient(180deg, rgba(5, 122, 116, 0.08), rgba(255, 253, 247, 0.78)),
        rgba(255, 253, 247, 0.88);
}

html[data-theme="light"] .landing-deck-panel {
    border-color: rgba(20, 19, 15, 0.14);
    background:
        repeating-linear-gradient(135deg, rgba(20, 19, 15, 0.035) 0 1px, transparent 1px 10px),
        rgba(255, 253, 247, 0.74);
}

html[data-theme="light"] .landing-deck-panel-wide {
    background:
        linear-gradient(110deg, rgba(180, 81, 23, 0.11), transparent 40%),
        repeating-linear-gradient(135deg, rgba(20, 19, 15, 0.035) 0 1px, transparent 1px 10px),
        rgba(255, 253, 247, 0.78);
}

html[data-theme="light"] .landing-deck-panel:hover {
    border-color: rgba(4, 123, 134, 0.32);
    background-color: rgba(4, 123, 134, 0.07);
}

@keyframes landingScanline {
    0% {
        transform: translateY(-80%);
    }
    100% {
        transform: translateY(80%);
    }
}

@keyframes landingAxisX {
    0%,
    100% {
        transform: translateY(-74px);
    }
    50% {
        transform: translateY(86px);
    }
}

@keyframes landingAxisY {
    0%,
    100% {
        transform: translateX(-88px);
    }
    50% {
        transform: translateX(76px);
    }
}

@keyframes landingReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
        filter: saturate(0.82);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: saturate(1);
    }
}

@media (max-width: 1120px) {
    .landing-hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
        align-items: start;
    }

    .landing-hero::before {
        display: none;
    }

    .landing-command-plate {
        transform: none;
    }

    .landing-proof {
        grid-template-columns: 1fr;
    }

    .landing-section-head h2 {
        max-width: 18ch;
    }
}

@media (max-width: 820px) {
    body.page-landing .page-shell {
        width: calc(100% - 28px);
        padding-top: 16px;
    }

    .landing-atelier {
        gap: 18px;
    }

    .landing-hero {
        gap: 18px;
        padding-top: 8px;
    }

    .landing-hero-copy {
        gap: 12px;
    }

    .landing-hero h1 {
        font-size: 4.35rem;
        line-height: 0.84;
    }

    .landing-hero p {
        font-size: 0.98rem;
        line-height: 1.45;
    }

    .landing-actions,
    .landing-action {
        width: 100%;
    }

    .landing-scan-stage {
        min-height: 302px;
    }

    .landing-command::before {
        display: none;
    }

    .landing-command-plate {
        padding: 12px;
        box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.26);
    }

    .landing-command-grid,
    .landing-hero-proof,
    .landing-proof-grid,
    .landing-deck {
        grid-template-columns: 1fr;
    }

    .landing-proof {
        padding-top: 20px;
    }

    .landing-section-head h2 {
        font-size: 2.2rem;
    }

    .landing-proof-unit {
        min-height: 180px;
    }

    .landing-deck-panel,
    .landing-deck-panel-wide {
        min-height: 172px;
    }

    .landing-deck-panel strong,
    .landing-deck-panel-wide strong {
        font-size: 1.78rem;
    }
}

@media (max-width: 520px) {
    .landing-hero h1 {
        font-size: 3.65rem;
    }

    .landing-command-topline {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .landing-command-topline strong {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .landing-scan-stage {
        min-height: 276px;
    }

    .landing-scan-core {
        width: 138px;
        height: 138px;
    }

    .landing-scan-ticket {
        width: min(180px, calc(100% - 22px));
        padding: 10px;
    }

    .landing-scan-ticket-a {
        top: 14px;
        left: 12px;
    }

    .landing-scan-ticket-b {
        right: 10px;
        bottom: 66px;
    }

    .landing-scan-ticket-c {
        bottom: 34px;
        left: 16px;
    }

    .landing-scan-ticket strong {
        font-size: 0.82rem;
    }

    .landing-scan-tape {
        grid-template-columns: 1fr;
    }

    .landing-scan-tape span {
        min-height: 28px;
        border-right: 0;
        border-bottom: 1px solid rgba(245, 240, 230, 0.1);
    }

    .landing-scan-tape span:last-child {
        border-bottom: 0;
    }

    html[data-theme="light"] .landing-scan-tape span {
        border-bottom-color: rgba(20, 19, 15, 0.1);
    }
}

/* Landing v2: teal-blue signal desk, deliberately away from the old volt-yellow identity. */
body.page-landing {
    --sl-volt: #2dd4bf;
    --sl-volt-rgb: 45, 212, 191;
    --sl-copper: #ff6f61;
    --sl-cyan: #67e8f9;
    --accent: #2dd4bf;
    --accent-strong: #67e8f9;
    --landing-ink: #effcfb;
    --landing-muted: rgba(239, 252, 251, 0.66);
    --landing-dim: rgba(239, 252, 251, 0.42);
    --landing-panel: rgba(7, 20, 24, 0.78);
    --landing-panel-strong: rgba(4, 16, 20, 0.92);
    --landing-line: rgba(103, 232, 249, 0.16);
    --landing-line-strong: rgba(45, 212, 191, 0.34);
    background:
        radial-gradient(circle at 18% 20%, rgba(45, 212, 191, 0.18), transparent 28%),
        linear-gradient(130deg, rgba(7, 20, 24, 0.2), transparent 42%),
        repeating-linear-gradient(90deg, rgba(103, 232, 249, 0.035) 0 1px, transparent 1px 112px),
        repeating-linear-gradient(0deg, rgba(239, 252, 251, 0.025) 0 1px, transparent 1px 92px),
        linear-gradient(180deg, #061013 0%, #0b181c 46%, #05090d 100%);
}

body.page-landing::before {
    background:
        repeating-linear-gradient(118deg, rgba(103, 232, 249, 0.035) 0 1px, transparent 1px 10px),
        linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.08) 50%, transparent);
    opacity: 0.48;
}

body.page-landing .topbar::after {
    background: linear-gradient(90deg, transparent 0%, rgba(45, 212, 191, 0.85) 42%, rgba(103, 232, 249, 0.72) 56%, transparent 72%);
}

.landing-atelier-sonar {
    gap: 34px;
}

.landing-hero-sonar {
    min-height: calc(100svh - 168px);
    grid-template-columns: minmax(0, 0.84fr) minmax(520px, 0.86fr);
    gap: 56px;
    padding: 42px 0 30px;
}

.landing-hero-sonar::before {
    content: "SIGNAL DESK / RISK GATE / PROOF LEDGER";
    right: auto;
    left: -12px;
    top: 4%;
    color: rgba(103, 232, 249, 0.05);
    font-size: 4.2rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.landing-sonar-copy {
    max-width: 720px;
    gap: 18px;
}

.landing-sonar-copy h1 {
    max-width: 9ch;
    font-family: var(--font-display);
    font-size: clamp(5.2rem, 10vw, 9.4rem);
    font-weight: 800;
    line-height: 0.82;
    color: #effcfb;
}

.landing-sonar-copy p {
    max-width: 52ch;
    color: var(--landing-muted);
    font-size: 1.08rem;
    line-height: 1.62;
}

.landing-atelier-sonar .landing-kicker {
    border-color: rgba(45, 212, 191, 0.42);
    background: rgba(45, 212, 191, 0.08);
    color: #67e8f9;
}

.landing-atelier-sonar .landing-action-primary {
    border-color: rgba(45, 212, 191, 0.72);
    background: #2dd4bf;
    color: #031315;
    box-shadow: 7px 7px 0 rgba(103, 232, 249, 0.13);
}

.landing-atelier-sonar .landing-action-primary:hover {
    background: #67e8f9;
    box-shadow: 10px 10px 0 rgba(103, 232, 249, 0.16);
}

.landing-atelier-sonar .landing-action-secondary {
    border-color: rgba(103, 232, 249, 0.18);
    background: rgba(103, 232, 249, 0.045);
    color: #effcfb;
}

.landing-atelier-sonar .landing-action-secondary:hover {
    border-color: rgba(45, 212, 191, 0.48);
    background: rgba(45, 212, 191, 0.1);
    color: #67e8f9;
}

.landing-instrument {
    position: relative;
    min-width: 0;
}

.landing-instrument::before {
    content: "";
    position: absolute;
    inset: 28px -14px -14px 36px;
    border: 1px solid rgba(255, 111, 97, 0.22);
    background: rgba(255, 111, 97, 0.035);
    transform: skewY(-2deg);
}

.landing-instrument-panel {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--landing-line-strong);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(45, 212, 191, 0.11), transparent 34%),
        linear-gradient(168deg, transparent 0 62%, rgba(103, 232, 249, 0.08) 62%),
        rgba(4, 16, 20, 0.9);
    box-shadow: 22px 24px 0 rgba(0, 0, 0, 0.32);
    transform: rotate(-1.2deg);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.landing-instrument:hover .landing-instrument-panel {
    transform: rotate(0deg) translate(-3px, -3px);
    box-shadow: 28px 30px 0 rgba(0, 0, 0, 0.36);
}

.landing-instrument-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid rgba(103, 232, 249, 0.14);
    border-radius: 7px;
    background: rgba(103, 232, 249, 0.045);
}

.landing-instrument-head span,
.landing-instrument-head strong,
.landing-map-node small,
.landing-rail span,
.landing-proof-sonar .landing-proof-unit span,
.landing-deck-sonar .landing-deck-panel span,
.landing-deck-sonar .landing-deck-panel small {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.landing-instrument-head span {
    color: rgba(239, 252, 251, 0.68);
}

.landing-instrument-head strong {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #2dd4bf;
    color: #031315;
}

.landing-market-map {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border: 1px solid rgba(103, 232, 249, 0.13);
    border-radius: 8px;
    background:
        radial-gradient(circle at 66% 43%, rgba(45, 212, 191, 0.16), transparent 20%),
        linear-gradient(90deg, rgba(45, 212, 191, 0.08), transparent 28% 70%, rgba(103, 232, 249, 0.08)),
        #081417;
}

.landing-map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(103, 232, 249, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(103, 232, 249, 0.07) 1px, transparent 1px);
    background-size: 72px 58px;
    mask-image: linear-gradient(180deg, black, transparent 92%);
}

.landing-map-sweep {
    position: absolute;
    inset: -30% auto auto 50%;
    width: 2px;
    height: 160%;
    background: linear-gradient(180deg, transparent, rgba(45, 212, 191, 0.92), transparent);
    box-shadow: 0 0 28px rgba(45, 212, 191, 0.42);
    transform-origin: bottom center;
    animation: landingSonarSweep 5.8s linear infinite;
}

.landing-market-map::after {
    content: "";
    position: absolute;
    inset: 28% auto auto 52%;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(45, 212, 191, 0.36);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
        0 0 0 42px rgba(45, 212, 191, 0.05),
        0 0 0 88px rgba(103, 232, 249, 0.035);
}

.landing-map-node {
    position: absolute;
    z-index: 2;
    display: grid;
    gap: 5px;
    width: min(220px, calc(100% - 28px));
    padding: 13px;
    border: 1px solid rgba(103, 232, 249, 0.17);
    border-radius: 7px;
    background: rgba(5, 18, 22, 0.88);
    backdrop-filter: blur(10px);
}

.landing-map-node small {
    color: #67e8f9;
}

.landing-map-node strong {
    color: #effcfb;
    font-size: 0.98rem;
    line-height: 1.18;
}

.landing-map-node-a {
    top: 26px;
    left: 24px;
}

.landing-map-node-b {
    right: 22px;
    top: 46%;
}

.landing-map-node-c {
    bottom: 24px;
    left: 42px;
}

.landing-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.landing-rail div {
    display: grid;
    gap: 6px;
    min-height: 76px;
    align-content: center;
    padding: 12px;
    border: 1px solid rgba(103, 232, 249, 0.13);
    border-radius: 7px;
    background: rgba(103, 232, 249, 0.04);
}

.landing-rail span {
    color: rgba(103, 232, 249, 0.68);
}

.landing-rail strong {
    color: #effcfb;
    font-size: 1rem;
}

.landing-quant-stage {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border: 1px solid rgba(103, 232, 249, 0.13);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.08), transparent 32% 70%, rgba(103, 232, 249, 0.08)),
        repeating-linear-gradient(90deg, rgba(103, 232, 249, 0.055) 0 1px, transparent 1px 72px),
        repeating-linear-gradient(0deg, rgba(103, 232, 249, 0.045) 0 1px, transparent 1px 56px),
        #081417;
}

.landing-quant-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0 44%, rgba(45, 212, 191, 0.08) 44% 45%, transparent 45%),
        radial-gradient(circle at 74% 24%, rgba(255, 111, 97, 0.11), transparent 20%);
    animation: landingQuantScan 4.6s ease-in-out infinite;
}

.landing-quant-matrix {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(6, 24px);
    gap: 4px;
    padding: 10px;
    border: 1px solid rgba(103, 232, 249, 0.16);
    border-radius: 7px;
    background: rgba(4, 16, 20, 0.72);
    backdrop-filter: blur(8px);
}

.landing-quant-matrix span {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    background: rgba(45, 212, 191, 0.18);
    box-shadow: inset 0 0 0 1px rgba(103, 232, 249, 0.08);
    animation: landingMatrixPulse 3.2s ease-in-out infinite;
}

.landing-quant-matrix span:nth-child(6n + 1),
.landing-quant-matrix span:nth-child(7),
.landing-quant-matrix span:nth-child(14),
.landing-quant-matrix span:nth-child(21),
.landing-quant-matrix span:nth-child(28),
.landing-quant-matrix span:nth-child(35) {
    background: rgba(103, 232, 249, 0.42);
}

.landing-quant-matrix span:nth-child(4n) {
    background: rgba(255, 111, 97, 0.26);
    animation-delay: 320ms;
}

.landing-quant-matrix span:nth-child(5n) {
    background: rgba(45, 212, 191, 0.32);
    animation-delay: 680ms;
}

.landing-quant-plot {
    position: absolute;
    right: 22px;
    bottom: 96px;
    z-index: 1;
    width: min(72%, 560px);
    height: 300px;
    overflow: visible;
}

.landing-plot-gridline {
    fill: none;
    stroke: rgba(103, 232, 249, 0.08);
    stroke-width: 1;
}

.landing-plot-axis {
    fill: none;
    stroke: rgba(239, 252, 251, 0.32);
    stroke-width: 1.4;
}

.landing-plot-path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.landing-plot-path-muted {
    stroke: rgba(103, 232, 249, 0.36);
    stroke-width: 2;
    stroke-dasharray: 620;
    stroke-dashoffset: 620;
    animation: landingPathDraw 4.8s ease-in-out infinite;
}

.landing-plot-delay {
    animation-delay: 520ms;
    stroke: rgba(45, 212, 191, 0.28);
}

.landing-frontier {
    stroke: #2dd4bf;
    stroke-width: 3.2;
    stroke-dasharray: 620;
    stroke-dashoffset: 620;
    filter: drop-shadow(0 0 10px rgba(45, 212, 191, 0.34));
    animation: landingPathDraw 5.6s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.landing-frontier-dot {
    fill: #2dd4bf;
    filter: drop-shadow(0 0 12px rgba(45, 212, 191, 0.55));
    animation: landingDotPulse 2.8s ease-in-out infinite;
}

.landing-frontier-dot-alt {
    fill: #67e8f9;
    animation-delay: 620ms;
}

.landing-quant-card {
    position: absolute;
    z-index: 3;
    display: grid;
    gap: 5px;
    width: min(218px, calc(100% - 28px));
    padding: 12px;
    border: 1px solid rgba(103, 232, 249, 0.17);
    border-radius: 7px;
    background: rgba(5, 18, 22, 0.88);
    backdrop-filter: blur(10px);
}

.landing-quant-card small,
.landing-quant-readout span {
    color: #67e8f9;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.landing-quant-card strong {
    color: #effcfb;
    font-size: 0.98rem;
    line-height: 1.18;
}

.landing-quant-card-a {
    top: 188px;
    left: 24px;
}

.landing-quant-card-b {
    top: 38px;
    right: 28px;
}

.landing-quant-card-c {
    right: 34px;
    bottom: 30px;
}

.landing-quant-readout {
    position: absolute;
    right: 24px;
    bottom: 24px;
    left: 24px;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.landing-quant-readout div {
    display: grid;
    gap: 4px;
    min-height: 70px;
    align-content: center;
    padding: 12px;
    border: 1px solid rgba(103, 232, 249, 0.13);
    border-radius: 7px;
    background: rgba(4, 16, 20, 0.72);
    backdrop-filter: blur(8px);
}

.landing-quant-readout strong {
    color: #effcfb;
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1;
}

.landing-proof-sonar {
    border-top-color: rgba(103, 232, 249, 0.14);
}

.landing-proof-sonar .landing-section-head h2 {
    max-width: 15ch;
}

.landing-proof-sonar .landing-proof-unit {
    min-height: 250px;
    border-color: rgba(103, 232, 249, 0.14);
    background:
        linear-gradient(180deg, rgba(103, 232, 249, 0.055), rgba(45, 212, 191, 0.025)),
        rgba(7, 20, 24, 0.58);
}

.landing-proof-sonar .landing-proof-unit::after {
    background: linear-gradient(90deg, #2dd4bf, #67e8f9, transparent);
}

.landing-proof-sonar .landing-proof-unit:hover {
    border-color: rgba(45, 212, 191, 0.4);
    background:
        linear-gradient(180deg, rgba(45, 212, 191, 0.08), rgba(103, 232, 249, 0.025)),
        rgba(7, 20, 24, 0.72);
}

.landing-proof-sonar .landing-proof-unit span,
.landing-deck-sonar .landing-deck-panel span,
.landing-deck-sonar .landing-deck-panel small {
    color: #67e8f9;
}

.landing-proof-sonar .landing-proof-unit strong {
    max-width: 16ch;
}

.landing-proof-sonar .landing-proof-unit p {
    color: rgba(239, 252, 251, 0.62);
}

.landing-deck-sonar .landing-deck-panel {
    border-color: rgba(103, 232, 249, 0.14);
    background:
        repeating-linear-gradient(135deg, rgba(103, 232, 249, 0.028) 0 1px, transparent 1px 10px),
        rgba(7, 20, 24, 0.54);
}

.landing-deck-sonar .landing-deck-panel-wide {
    background:
        linear-gradient(110deg, rgba(45, 212, 191, 0.12), transparent 46%),
        repeating-linear-gradient(135deg, rgba(103, 232, 249, 0.028) 0 1px, transparent 1px 10px),
        rgba(7, 20, 24, 0.58);
}

.landing-deck-sonar .landing-deck-panel:hover {
    border-color: rgba(45, 212, 191, 0.42);
    background-color: rgba(45, 212, 191, 0.065);
}

html[data-theme="light"] body.page-landing {
    --sl-volt: #047b86;
    --sl-volt-rgb: 4, 123, 134;
    --sl-copper: #c75246;
    --accent: #047b86;
    --accent-strong: #0f9ca8;
    --landing-ink: #0b2228;
    --landing-muted: rgba(11, 34, 40, 0.68);
    --landing-dim: rgba(11, 34, 40, 0.45);
    --landing-panel: rgba(248, 253, 252, 0.78);
    --landing-panel-strong: rgba(250, 254, 253, 0.94);
    --landing-line: rgba(4, 123, 134, 0.16);
    --landing-line-strong: rgba(4, 123, 134, 0.28);
    background:
        radial-gradient(circle at 18% 20%, rgba(4, 123, 134, 0.15), transparent 28%),
        linear-gradient(130deg, rgba(15, 156, 168, 0.1), transparent 42%),
        repeating-linear-gradient(90deg, rgba(11, 34, 40, 0.04) 0 1px, transparent 1px 112px),
        repeating-linear-gradient(0deg, rgba(11, 34, 40, 0.028) 0 1px, transparent 1px 92px),
        linear-gradient(180deg, #eef8f6 0%, #fbfefd 46%, #e8f1ef 100%);
}

html[data-theme="light"] body.page-landing::before {
    background:
        repeating-linear-gradient(118deg, rgba(11, 34, 40, 0.035) 0 1px, transparent 1px 10px),
        linear-gradient(90deg, transparent, rgba(4, 123, 134, 0.08) 50%, transparent);
}

html[data-theme="light"] .landing-sonar-copy h1,
html[data-theme="light"] .landing-map-node strong,
html[data-theme="light"] .landing-rail strong,
html[data-theme="light"] .landing-proof-sonar .landing-proof-unit strong,
html[data-theme="light"] .landing-deck-sonar .landing-deck-panel strong {
    color: #0b2228;
}

html[data-theme="light"] .landing-sonar-copy p,
html[data-theme="light"] .landing-proof-sonar .landing-proof-unit p {
    color: rgba(11, 34, 40, 0.68);
}

html[data-theme="light"] .landing-atelier-sonar .landing-kicker {
    border-color: rgba(4, 123, 134, 0.26);
    background: rgba(4, 123, 134, 0.08);
    color: #047b86;
}

html[data-theme="light"] .landing-atelier-sonar .landing-action-primary,
html[data-theme="light"] .landing-instrument-head strong {
    background: #047b86;
    border-color: #047b86;
    color: #fbfefd;
}

html[data-theme="light"] .landing-atelier-sonar .landing-action-primary {
    box-shadow: 7px 7px 0 rgba(4, 123, 134, 0.14);
}

html[data-theme="light"] .landing-atelier-sonar .landing-action-secondary {
    border-color: rgba(11, 34, 40, 0.16);
    background: rgba(250, 254, 253, 0.78);
    color: #0b2228;
}

html[data-theme="light"] .landing-instrument::before {
    border-color: rgba(199, 82, 70, 0.2);
    background: rgba(199, 82, 70, 0.06);
}

html[data-theme="light"] .landing-instrument-panel {
    background:
        linear-gradient(135deg, rgba(4, 123, 134, 0.12), transparent 34%),
        linear-gradient(168deg, transparent 0 62%, rgba(15, 156, 168, 0.08) 62%),
        rgba(250, 254, 253, 0.92);
    box-shadow: 18px 20px 0 rgba(11, 34, 40, 0.11);
}

html[data-theme="light"] .landing-instrument:hover .landing-instrument-panel {
    box-shadow: 22px 24px 0 rgba(11, 34, 40, 0.14);
}

html[data-theme="light"] .landing-instrument-head,
html[data-theme="light"] .landing-rail div,
html[data-theme="light"] .landing-proof-sonar .landing-proof-unit,
html[data-theme="light"] .landing-deck-sonar .landing-deck-panel {
    border-color: rgba(4, 123, 134, 0.15);
    background: rgba(4, 123, 134, 0.045);
}

html[data-theme="light"] .landing-instrument-head span,
html[data-theme="light"] .landing-rail span {
    color: rgba(11, 34, 40, 0.55);
}

html[data-theme="light"] .landing-market-map {
    border-color: rgba(4, 123, 134, 0.15);
    background:
        radial-gradient(circle at 66% 43%, rgba(4, 123, 134, 0.13), transparent 20%),
        linear-gradient(90deg, rgba(4, 123, 134, 0.08), transparent 28% 70%, rgba(15, 156, 168, 0.08)),
        #f4fbf9;
}

html[data-theme="light"] .landing-map-grid {
    background-image:
        linear-gradient(rgba(11, 34, 40, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 34, 40, 0.07) 1px, transparent 1px);
}

html[data-theme="light"] .landing-map-node {
    border-color: rgba(4, 123, 134, 0.16);
    background: rgba(250, 254, 253, 0.88);
    box-shadow: 0 14px 30px rgba(11, 34, 40, 0.08);
}

html[data-theme="light"] .landing-map-node small,
html[data-theme="light"] .landing-proof-sonar .landing-proof-unit span,
html[data-theme="light"] .landing-deck-sonar .landing-deck-panel span,
html[data-theme="light"] .landing-deck-sonar .landing-deck-panel small {
    color: #047b86;
}

html[data-theme="light"] .landing-quant-stage {
    border-color: rgba(4, 123, 134, 0.15);
    background:
        linear-gradient(90deg, rgba(4, 123, 134, 0.08), transparent 32% 70%, rgba(15, 156, 168, 0.08)),
        repeating-linear-gradient(90deg, rgba(11, 34, 40, 0.055) 0 1px, transparent 1px 72px),
        repeating-linear-gradient(0deg, rgba(11, 34, 40, 0.045) 0 1px, transparent 1px 56px),
        #f4fbf9;
}

html[data-theme="light"] .landing-quant-stage::before {
    background:
        linear-gradient(90deg, transparent 0 44%, rgba(4, 123, 134, 0.08) 44% 45%, transparent 45%),
        radial-gradient(circle at 74% 24%, rgba(199, 82, 70, 0.1), transparent 20%);
}

html[data-theme="light"] .landing-quant-matrix,
html[data-theme="light"] .landing-quant-card,
html[data-theme="light"] .landing-quant-readout div {
    border-color: rgba(4, 123, 134, 0.15);
    background: rgba(250, 254, 253, 0.84);
    box-shadow: 0 14px 30px rgba(11, 34, 40, 0.07);
}

html[data-theme="light"] .landing-quant-matrix span {
    box-shadow: inset 0 0 0 1px rgba(11, 34, 40, 0.08);
}

html[data-theme="light"] .landing-plot-gridline {
    stroke: rgba(11, 34, 40, 0.08);
}

html[data-theme="light"] .landing-plot-axis {
    stroke: rgba(11, 34, 40, 0.38);
}

html[data-theme="light"] .landing-quant-card small,
html[data-theme="light"] .landing-quant-readout span {
    color: #047b86;
}

html[data-theme="light"] .landing-quant-card strong,
html[data-theme="light"] .landing-quant-readout strong {
    color: #0b2228;
}

html[data-theme="light"] .landing-proof-sonar,
html[data-theme="light"] .landing-proof-sonar .landing-proof-unit,
html[data-theme="light"] .landing-deck-sonar .landing-deck-panel {
    border-top-color: rgba(4, 123, 134, 0.14);
}

html[data-theme="light"] .landing-proof-sonar .landing-proof-unit:hover,
html[data-theme="light"] .landing-deck-sonar .landing-deck-panel:hover {
    border-color: rgba(4, 123, 134, 0.32);
    background-color: rgba(4, 123, 134, 0.07);
}

@keyframes landingSonarSweep {
    from {
        transform: rotate(-48deg);
    }
    to {
        transform: rotate(312deg);
    }
}

@keyframes landingQuantScan {
    0%,
    100% {
        transform: translateX(-8%);
        opacity: 0.72;
    }
    50% {
        transform: translateX(10%);
        opacity: 1;
    }
}

@keyframes landingMatrixPulse {
    0%,
    100% {
        opacity: 0.48;
        transform: scale(0.92);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes landingPathDraw {
    0% {
        stroke-dashoffset: 620;
        opacity: 0.32;
    }
    42%,
    72% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
    100% {
        stroke-dashoffset: -620;
        opacity: 0.42;
    }
}

@keyframes landingDotPulse {
    0%,
    100% {
        opacity: 0.62;
        transform: scale(0.92);
    }
    50% {
        opacity: 1;
        transform: scale(1.22);
    }
}

@media (max-width: 1120px) {
    .landing-hero-sonar {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: auto;
    }

    .landing-instrument-panel {
        transform: none;
    }
}

@media (max-width: 820px) {
    .landing-hero-sonar {
        padding-top: 12px;
    }

    .landing-sonar-copy h1 {
        font-size: 4.4rem;
        line-height: 0.88;
    }

    .landing-market-map {
        min-height: 350px;
    }

    .landing-quant-stage {
        min-height: 430px;
    }

    .landing-quant-plot {
        right: 14px;
        bottom: 112px;
        width: min(78%, 520px);
    }

    .landing-quant-readout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .landing-sonar-copy h1 {
        font-size: 3.55rem;
    }

    .landing-instrument::before {
        display: none;
    }

    .landing-instrument-panel {
        padding: 12px;
        box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.24);
    }

    .landing-instrument-head {
        align-items: flex-start;
        flex-direction: column;
        padding: 10px;
    }

    .landing-market-map {
        min-height: 328px;
    }

    .landing-quant-stage {
        min-height: 520px;
    }

    .landing-quant-matrix {
        top: 12px;
        left: 10px;
        grid-template-columns: repeat(6, 18px);
        gap: 3px;
        padding: 8px;
    }

    .landing-quant-matrix span {
        width: 18px;
        height: 18px;
    }

    .landing-quant-plot {
        right: -22px;
        bottom: 188px;
        width: 112%;
        height: 250px;
        opacity: 0.86;
    }

    .landing-quant-card {
        width: min(178px, calc(100% - 20px));
        padding: 10px;
    }

    .landing-quant-card-a {
        top: 128px;
        left: 10px;
    }

    .landing-quant-card-b {
        top: 82px;
        right: 10px;
    }

    .landing-quant-card-c {
        right: 10px;
        bottom: 148px;
    }

    .landing-quant-readout {
        right: 10px;
        bottom: 10px;
        left: 10px;
        grid-template-columns: 1fr;
    }

    .landing-quant-readout div {
        min-height: 54px;
    }

    .landing-map-node {
        width: min(178px, calc(100% - 20px));
        padding: 10px;
    }

    .landing-map-node-a {
        top: 12px;
        left: 10px;
    }

    .landing-map-node-b {
        right: 10px;
        top: 42%;
    }

    .landing-map-node-c {
        bottom: 12px;
        left: 10px;
    }

    .landing-rail {
        grid-template-columns: 1fr;
    }
}

/* Landing v4: signal-first operating desk, flat teal system. */
body.page-landing {
    --landing-bg: #061013;
    --landing-surface: rgba(8, 23, 27, 0.84);
    --landing-surface-strong: rgba(10, 29, 34, 0.96);
    --landing-ink: #effcfb;
    --landing-muted: rgba(239, 252, 251, 0.68);
    --landing-faint: rgba(239, 252, 251, 0.44);
    --landing-line: rgba(103, 232, 249, 0.15);
    --landing-line-strong: rgba(45, 212, 191, 0.34);
    --landing-teal: #2dd4bf;
    --landing-cyan: #67e8f9;
    --landing-warn: #ff7a68;
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.08), transparent 30% 70%, rgba(103, 232, 249, 0.06)),
        repeating-linear-gradient(90deg, rgba(103, 232, 249, 0.04) 0 1px, transparent 1px 104px),
        repeating-linear-gradient(0deg, rgba(103, 232, 249, 0.028) 0 1px, transparent 1px 88px),
        var(--landing-bg);
}

body.page-landing .page-shell {
    max-width: 1480px;
    padding-top: 34px;
}

.landing-ops {
    display: grid;
    gap: 64px;
    color: var(--landing-ink);
}

body.page-landing [data-landing-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 540ms ease,
        transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--landing-reveal-delay, 0ms);
    will-change: opacity, transform;
}

body.page-landing [data-landing-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

body.page-landing .landing-desk-panel[data-landing-reveal].is-visible:hover,
body.page-landing .landing-desk-panel[data-landing-reveal].is-visible:focus-visible {
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    body.page-landing [data-landing-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.landing-ops-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(620px, 1.22fr);
    gap: 34px;
    align-items: center;
    min-height: calc(100svh - 220px);
}

.landing-ops-copy {
    display: grid;
    gap: 20px;
    align-content: center;
    min-width: 0;
}

.landing-ops-kicker {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--landing-line-strong);
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.08);
    color: var(--landing-cyan);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.landing-ops h1,
.landing-ops h2 {
    margin: 0;
    color: var(--landing-ink);
    font-family: var(--font-display);
    letter-spacing: 0;
}

.landing-ops-copy p,
.landing-join p,
.landing-flow p {
    max-width: 54ch;
    margin: 0;
    color: var(--landing-muted);
    font-size: 1rem;
    line-height: 1.62;
}

.landing-ops-title {
    max-width: 620px;
    font-size: 2.45rem;
    font-weight: 800;
    line-height: 1;
}

.landing-ops-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.landing-ops-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid var(--landing-line);
    border-radius: 8px;
    background: rgba(103, 232, 249, 0.05);
    color: var(--landing-ink);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.landing-ops-button:hover,
.landing-ops-button:focus-visible {
    border-color: var(--landing-line-strong);
    background: rgba(45, 212, 191, 0.12);
    color: var(--landing-cyan);
}

.landing-ops-button.is-primary {
    border-color: rgba(45, 212, 191, 0.72);
    background: var(--landing-teal);
    color: #031315;
}

.landing-ops-button.is-primary:hover,
.landing-ops-button.is-primary:focus-visible {
    background: var(--landing-cyan);
    color: #031315;
}

.landing-ops-button.is-disabled {
    cursor: default;
    border-color: var(--landing-line);
    background: rgba(45, 212, 191, 0.08);
    color: var(--landing-teal);
    box-shadow: none;
}

.landing-ops-button.is-disabled:hover,
.landing-ops-button.is-disabled:focus-visible {
    border-color: var(--landing-line);
    background: rgba(45, 212, 191, 0.08);
    color: var(--landing-teal);
}

.landing-ops-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    max-width: 700px;
}

.landing-ops-stats span {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--landing-line);
    border-radius: 8px;
    background: rgba(8, 23, 27, 0.58);
}

.landing-ops-stats strong {
    color: var(--landing-ink);
    font-family: var(--font-display);
    font-size: 1.65rem;
    line-height: 1;
}

.landing-ops-stats small,
.landing-panel-meta,
.landing-live-score small,
.landing-rank-score small,
.landing-rank-metrics small,
.landing-product-grid span,
.landing-product-grid small,
.landing-flow-grid span {
    color: var(--landing-faint);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.landing-desk {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 12px;
    min-width: 0;
}

.landing-desk-panel {
    position: relative;
    display: grid;
    align-content: start;
    gap: 14px;
    min-width: 0;
    min-height: 520px;
    padding: 16px;
    border: 1px solid var(--landing-line);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(103, 232, 249, 0.06), rgba(45, 212, 191, 0.025)),
        var(--landing-surface);
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.landing-desk-panel:hover,
.landing-desk-panel:focus-visible {
    border-color: var(--landing-line-strong);
    background:
        linear-gradient(180deg, rgba(103, 232, 249, 0.09), rgba(45, 212, 191, 0.04)),
        var(--landing-surface);
    transform: translateY(-2px);
    outline: none;
}

.landing-panel-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
}

.landing-panel-head h2 {
    margin-top: 9px;
    font-size: 1.45rem;
    line-height: 1;
}

.landing-panel-head a {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--landing-line);
    border-radius: 7px;
    color: var(--landing-cyan);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.landing-panel-head a:hover,
.landing-panel-head a:focus-visible {
    border-color: var(--landing-line-strong);
    background: rgba(45, 212, 191, 0.09);
}

.landing-panel-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.landing-panel-meta span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 8px;
    border: 1px solid var(--landing-line);
    border-radius: 999px;
    color: var(--landing-muted);
}

.landing-live-list,
.landing-rank-list {
    display: grid;
    gap: 8px;
}

.landing-live-row,
.landing-rank-row {
    display: grid;
    min-width: 0;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(103, 232, 249, 0.12);
    border-radius: 9px;
    background: rgba(3, 14, 17, 0.44);
    color: inherit;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease;
}

.landing-live-row {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    min-height: 118px;
    padding: 12px;
}

.landing-live-row:hover,
.landing-live-row:focus-visible,
.landing-rank-row:hover,
.landing-rank-row:focus-visible {
    border-color: var(--landing-line-strong);
    background: rgba(45, 212, 191, 0.08);
}

.landing-live-logo {
    position: relative;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--landing-line);
    border-radius: 12px;
    background: rgba(103, 232, 249, 0.07);
    color: var(--landing-cyan);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.landing-live-logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    background: #ffffff;
}

.landing-live-main {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.landing-live-topline {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
}

.landing-live-topline strong,
.landing-rank-main strong {
    overflow: hidden;
    color: var(--landing-ink);
    font-size: 1.1rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing-live-topline small {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding: 0 7px;
    border: 1px solid rgba(45, 212, 191, 0.24);
    border-radius: 999px;
    color: var(--landing-cyan);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
}

.landing-live-name,
.landing-live-price,
.landing-rank-main small {
    overflow: hidden;
    color: var(--landing-muted);
    font-size: 0.86rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing-live-price {
    color: var(--landing-ink);
    font-weight: 750;
}

.landing-live-score,
.landing-rank-score {
    display: grid;
    gap: 3px;
    min-width: 66px;
    justify-items: end;
}

.landing-live-score strong,
.landing-rank-score strong {
    color: var(--landing-ink);
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1;
}

.landing-rank-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    min-height: 98px;
    padding: 12px;
}

.landing-rank-number {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--landing-line);
    border-radius: 10px;
    color: var(--landing-cyan);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 900;
}

.landing-rank-main {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.landing-rank-metrics {
    grid-column: 2 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.landing-rank-metrics small {
    color: var(--landing-muted);
}

.landing-empty {
    display: grid;
    gap: 6px;
    min-height: 160px;
    align-content: center;
    padding: 18px;
    border: 1px dashed var(--landing-line);
    border-radius: 9px;
    color: var(--landing-muted);
}

.landing-empty strong {
    color: var(--landing-ink);
}

.landing-section-copy {
    display: grid;
    gap: 12px;
    max-width: 620px;
}

.landing-section-copy h2,
.landing-join h2 {
    font-size: 2.45rem;
    line-height: 1;
}

.landing-flow,
.landing-products,
.landing-join {
    display: grid;
    gap: 22px;
    padding-top: 28px;
    border-top: 1px solid var(--landing-line);
}

.landing-flow-grid,
.landing-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.landing-flow-grid article,
.landing-product-grid a {
    display: grid;
    gap: 12px;
    min-height: 210px;
    align-content: start;
    padding: 16px;
    border: 1px solid var(--landing-line);
    border-radius: 10px;
    background: rgba(8, 23, 27, 0.58);
}

.landing-flow-grid strong,
.landing-product-grid strong {
    color: var(--landing-ink);
    font-size: 1.08rem;
    line-height: 1.2;
}

.landing-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-product-grid a {
    align-content: center;
    color: inherit;
    justify-items: center;
    text-align: center;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease;
}

.landing-product-grid a:hover,
.landing-product-grid a:focus-visible {
    border-color: var(--landing-line-strong);
    background: rgba(45, 212, 191, 0.08);
}

.landing-product-grid small {
    margin-top: 2px;
    color: var(--landing-cyan);
}

.landing-product-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--landing-line-strong);
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.08);
    color: var(--landing-cyan);
}

.landing-product-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.landing-join {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    margin-bottom: 28px;
    padding: 28px;
    border: 1px solid var(--landing-line-strong);
    border-radius: 12px;
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.12), transparent 72%),
        var(--landing-surface-strong);
}

html[data-theme="light"] body.page-landing {
    --landing-bg: #eff8f6;
    --landing-surface: rgba(250, 254, 253, 0.84);
    --landing-surface-strong: rgba(250, 254, 253, 0.96);
    --landing-ink: #0b2228;
    --landing-muted: rgba(11, 34, 40, 0.68);
    --landing-faint: rgba(11, 34, 40, 0.48);
    --landing-line: rgba(4, 123, 134, 0.15);
    --landing-line-strong: rgba(4, 123, 134, 0.32);
    --landing-teal: #047b86;
    --landing-cyan: #0f9ca8;
    --landing-warn: #c75246;
    background:
        linear-gradient(90deg, rgba(4, 123, 134, 0.09), transparent 30% 70%, rgba(15, 156, 168, 0.06)),
        repeating-linear-gradient(90deg, rgba(11, 34, 40, 0.04) 0 1px, transparent 1px 104px),
        repeating-linear-gradient(0deg, rgba(11, 34, 40, 0.028) 0 1px, transparent 1px 88px),
        var(--landing-bg);
}

html[data-theme="light"] .landing-ops-stats span,
html[data-theme="light"] .landing-desk-panel,
html[data-theme="light"] .landing-live-row,
html[data-theme="light"] .landing-rank-row,
html[data-theme="light"] .landing-flow-grid article,
html[data-theme="light"] .landing-product-grid a {
    background: rgba(250, 254, 253, 0.82);
}

html[data-theme="light"] .landing-live-logo {
    background: rgba(4, 123, 134, 0.08);
}

html[data-theme="light"] .landing-ops-button.is-primary,
html[data-theme="light"] .landing-ops-button.is-primary:hover,
html[data-theme="light"] .landing-ops-button.is-primary:focus-visible {
    color: #ffffff;
}

html[data-theme="light"] .landing-ops-button.is-disabled,
html[data-theme="light"] .landing-ops-button.is-disabled:hover,
html[data-theme="light"] .landing-ops-button.is-disabled:focus-visible {
    color: #007f86;
}

html[data-theme="light"] .landing-live-row:hover,
html[data-theme="light"] .landing-live-row:focus-visible,
html[data-theme="light"] .landing-rank-row:hover,
html[data-theme="light"] .landing-rank-row:focus-visible,
html[data-theme="light"] .landing-product-grid a:hover,
html[data-theme="light"] .landing-product-grid a:focus-visible {
    background: rgba(4, 123, 134, 0.07);
}

@media (max-width: 1180px) {
    .landing-ops-hero,
    .landing-desk,
    .landing-join {
        grid-template-columns: 1fr;
    }

    .landing-desk-panel {
        min-height: 0;
    }
}

@media (max-width: 860px) {
    body.page-landing .page-shell {
        padding-top: 20px;
    }

    .landing-ops {
        gap: 44px;
    }

    .landing-ops-hero {
        min-height: auto;
    }

    .landing-ops-title,
    .landing-section-copy h2,
    .landing-join h2 {
        font-size: 2rem;
    }

    .landing-flow-grid,
    .landing-product-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .landing-ops h1 {
        font-size: 3.15rem;
    }

    .landing-ops-actions,
    .landing-ops-button {
        width: 100%;
    }

    .landing-flow-grid,
    .landing-product-grid {
        grid-template-columns: 1fr;
    }

    .landing-ops-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-desk-panel,
    .landing-join {
        padding: 12px;
    }

    .landing-live-row {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .landing-live-logo {
        width: 48px;
        height: 48px;
    }

    .landing-live-score {
        grid-column: 2;
        justify-items: start;
    }

    .landing-rank-row {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .landing-rank-score,
    .landing-rank-metrics {
        grid-column: 2;
        justify-items: start;
    }
}

/* Landing v5: tighten hero-to-flow rhythm. */
body.page-landing .landing-ops {
    gap: clamp(34px, 3.8vw, 48px);
}

body.page-landing .landing-ops-hero {
    min-height: 0;
    align-items: start;
}

body.page-landing .landing-flow,
body.page-landing .landing-products,
body.page-landing .landing-join {
    gap: 18px;
    padding-top: 22px;
}

body.page-landing .landing-section-copy {
    gap: 10px;
}

body.page-landing .landing-flow-grid article {
    min-height: 176px;
}

@media (max-width: 860px) {
    body.page-landing .landing-ops {
        gap: 32px;
    }

    body.page-landing .landing-flow,
    body.page-landing .landing-products,
    body.page-landing .landing-join {
        padding-top: 18px;
    }
}

/* Lab page v2: research bench, adapted from the teal landing system. */
body.page-lab {
    --sl-volt: #2dd4bf;
    --sl-volt-rgb: 45, 212, 191;
    --sl-copper: #ff6f61;
    --sl-cyan: #67e8f9;
    --sl-ink: #effcfb;
    --sl-ink-soft: rgba(239, 252, 251, 0.8);
    --sl-muted: rgba(239, 252, 251, 0.58);
    --sl-line: rgba(103, 232, 249, 0.14);
    --sl-line-strong: rgba(45, 212, 191, 0.32);
    --bg: #061013;
    --bg-elevated: #08171b;
    --bg-panel: #0a181c;
    --bg-panel-2: #0f2227;
    --panel: linear-gradient(180deg, rgba(8, 23, 27, 0.94), rgba(4, 13, 17, 0.98));
    --panel-border: rgba(103, 232, 249, 0.14);
    --panel-border-strong: rgba(45, 212, 191, 0.3);
    --text: #effcfb;
    --muted: rgba(239, 252, 251, 0.6);
    --muted-strong: rgba(239, 252, 251, 0.78);
    --accent: #2dd4bf;
    --accent-strong: #67e8f9;
    --accent-soft: rgba(45, 212, 191, 0.1);
    --positive: #78f7c4;
    --negative: #ff6f61;
    --warning: #ffd166;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    --header-bg: rgba(4, 14, 18, 0.92);
    --header-border: rgba(103, 232, 249, 0.16);
    --body-bg-stock:
        radial-gradient(circle at 18% 2%, rgba(45, 212, 191, 0.16), transparent 30%),
        linear-gradient(126deg, rgba(6, 16, 19, 0.18), transparent 48%),
        repeating-linear-gradient(90deg, rgba(103, 232, 249, 0.032) 0 1px, transparent 1px 112px),
        repeating-linear-gradient(0deg, rgba(239, 252, 251, 0.024) 0 1px, transparent 1px 92px),
        linear-gradient(180deg, #061013 0%, #0b181c 46%, #05090d 100%);
    --field-bg: rgba(4, 16, 20, 0.86);
    --field-border: rgba(103, 232, 249, 0.16);
    --secondary-bg: rgba(103, 232, 249, 0.045);
    --secondary-border: rgba(103, 232, 249, 0.16);
    --secondary-text: #effcfb;
    --secondary-hover-bg: rgba(45, 212, 191, 0.11);
    --secondary-hover-border: rgba(45, 212, 191, 0.4);
    --secondary-hover-text: #67e8f9;
    --metric-bg: rgba(103, 232, 249, 0.055);
    --metric-border: rgba(103, 232, 249, 0.13);
    --metric-text: #effcfb;
    background: var(--body-bg-stock);
}

body.page-lab::before {
    background:
        repeating-linear-gradient(118deg, rgba(103, 232, 249, 0.032) 0 1px, transparent 1px 10px),
        linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.08) 50%, transparent);
    opacity: 0.46;
}

body.page-lab::after {
    background:
        linear-gradient(90deg, transparent calc(var(--pointer-x) - 1px), rgba(45, 212, 191, 0.18) var(--pointer-x), transparent calc(var(--pointer-x) + 1px)),
        linear-gradient(180deg, transparent calc(var(--pointer-y) - 1px), rgba(103, 232, 249, 0.13) var(--pointer-y), transparent calc(var(--pointer-y) + 1px));
}

body.page-lab .page-shell {
    width: min(1440px, calc(100% - 48px));
    padding-top: 26px;
}

body.page-lab .topbar {
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.08), transparent 30%),
        var(--header-bg);
    border-bottom-color: rgba(103, 232, 249, 0.16);
}

body.page-lab .topbar::after {
    background: linear-gradient(90deg, transparent 0%, rgba(45, 212, 191, 0.85) 42%, rgba(103, 232, 249, 0.72) 56%, transparent 72%);
}

body.page-lab .nav-link:hover,
body.page-lab .nav-link.active {
    border-color: rgba(45, 212, 191, 0.28);
    background: rgba(45, 212, 191, 0.08);
    color: #effcfb;
}

body.page-lab .theme-toggle-option:hover,
body.page-lab .theme-toggle-option.is-active {
    background: #2dd4bf;
    color: #031315;
}

.lab-console-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    margin: 0 0 22px;
    padding: 24px 0 20px;
    overflow: hidden;
    border-top: 1px solid rgba(103, 232, 249, 0.14);
    border-bottom: 1px solid rgba(103, 232, 249, 0.14);
}

.lab-console-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.12), transparent 24% 82%, rgba(255, 111, 97, 0.08)),
        repeating-linear-gradient(90deg, rgba(103, 232, 249, 0.05) 0 1px, transparent 1px 84px);
    opacity: 0.64;
    mask-image: linear-gradient(90deg, black, transparent 96%);
}

.lab-console-copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    gap: 12px;
    min-width: 0;
    max-width: 660px;
}

body.page-lab .landing-kicker {
    width: fit-content;
    max-width: 100%;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(45, 212, 191, 0.42);
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.08);
    color: #67e8f9;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.lab-console-copy h1 {
    max-width: 9ch;
    margin: 0;
    font-family: var(--font-display);
    font-size: 4.35rem;
    font-weight: 800;
    line-height: 0.86;
    color: #effcfb;
}

.lab-console-copy p {
    margin: 0;
    max-width: 48ch;
    color: rgba(239, 252, 251, 0.62);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

body.page-lab .home-tabs-shell {
    gap: 18px;
}

body.page-lab .home-tab-nav {
    justify-self: stretch;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 6px;
    border-color: rgba(103, 232, 249, 0.15);
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.08), transparent 42%),
        rgba(4, 16, 20, 0.56);
}

body.page-lab .home-tab-control {
    min-height: 46px;
    color: rgba(239, 252, 251, 0.62);
}

body.page-lab .home-tab-control:hover,
body.page-lab .home-tab-control.is-active {
    border-color: rgba(45, 212, 191, 0.36);
    background: rgba(45, 212, 191, 0.12);
    color: #effcfb;
}

body.page-lab .home-tab-control:focus-visible,
body.page-lab .home-leaderboard-filter-tab:focus-visible,
body.page-lab .home-live-market-option:focus-visible,
body.page-lab .home-live-signals-link:focus-visible,
body.page-lab .home-save-btn:focus-visible {
    outline: 2px solid rgba(103, 232, 249, 0.7);
    outline-offset: 2px;
}

body.page-lab .home-live-signals-card,
body.page-lab .home-category {
    border-color: rgba(103, 232, 249, 0.14);
    background:
        linear-gradient(125deg, rgba(45, 212, 191, 0.08), transparent 42%),
        rgba(5, 18, 22, 0.74);
    box-shadow: none;
}

body.page-lab .home-live-signals-card::before,
body.page-lab .home-category::before {
    background: linear-gradient(90deg, #2dd4bf, #67e8f9, transparent);
}

body.page-lab .home-live-signals-head h2,
body.page-lab .home-category-header h2 {
    color: #effcfb;
}

body.page-lab .home-live-signals-head span,
body.page-lab .home-live-signal-main span,
body.page-lab .home-live-signal-meta span,
body.page-lab .home-live-signal-risk,
body.page-lab .home-top-five-updated {
    color: rgba(239, 252, 251, 0.6);
}

body.page-lab .home-live-signals-link,
body.page-lab .home-save-btn {
    border-color: rgba(103, 232, 249, 0.18);
    background: rgba(103, 232, 249, 0.055);
    color: #effcfb;
}

body.page-lab .home-live-signals-link:hover,
body.page-lab .home-save-btn:hover {
    border-color: rgba(45, 212, 191, 0.44);
    background: rgba(45, 212, 191, 0.12);
    color: #67e8f9;
}

body.page-lab .home-live-market-switch,
body.page-lab .home-leaderboard-filter-tabs {
    border-color: rgba(103, 232, 249, 0.14);
    background: rgba(4, 16, 20, 0.58);
}

body.page-lab .home-live-market-option,
body.page-lab .home-leaderboard-filter-tab {
    color: rgba(239, 252, 251, 0.64);
}

body.page-lab .home-live-market-option:hover,
body.page-lab .home-live-market-option.is-active,
body.page-lab .home-leaderboard-filter-tab:hover,
body.page-lab .home-leaderboard-filter-tab.is-active {
    border-color: rgba(45, 212, 191, 0.4);
    background: #2dd4bf;
    color: #031315;
}

body.page-lab .home-top-five-list {
    gap: 12px;
}

body.page-lab .home-top-five-row {
    border-color: rgba(103, 232, 249, 0.13);
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.1), transparent 25%),
        repeating-linear-gradient(135deg, rgba(103, 232, 249, 0.028) 0 1px, transparent 1px 10px),
        rgba(5, 18, 22, 0.72);
    box-shadow: none;
}

body.page-lab .home-top-five-row::before {
    background: #2dd4bf;
    box-shadow: 0 0 14px rgba(45, 212, 191, 0.34);
}

body.page-lab .home-top-five-row:hover,
body.page-lab .home-top-five-row.is-first:hover {
    border-color: rgba(45, 212, 191, 0.38);
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.14), transparent 32%),
        repeating-linear-gradient(135deg, rgba(103, 232, 249, 0.034) 0 1px, transparent 1px 10px),
        rgba(6, 24, 28, 0.88);
    box-shadow: 12px 14px 0 rgba(0, 0, 0, 0.2);
}

body.page-lab .home-top-five-rank span {
    border-color: rgba(45, 212, 191, 0.28);
    background: rgba(45, 212, 191, 0.11);
    color: #67e8f9;
}

body.page-lab .home-top-five-title h3,
body.page-lab .home-live-signal-main strong,
body.page-lab .home-live-signal-meta strong {
    color: #effcfb;
}

body.page-lab .home-top-five-row:hover .home-top-five-title h3 {
    color: #67e8f9;
}

body.page-lab .home-top-five-score,
body.page-lab .home-top-five-metric,
body.page-lab .home-top-five-market-inline {
    border-color: rgba(103, 232, 249, 0.14);
    background: rgba(103, 232, 249, 0.055);
    color: rgba(239, 252, 251, 0.72);
}

body.page-lab .home-top-five-metric.positive,
body.page-lab .positive {
    color: #78f7c4;
}

body.page-lab .home-top-five-metric.negative,
body.page-lab .negative {
    color: #ff8a7f;
}

body.page-lab .home-live-signal {
    border-color: rgba(103, 232, 249, 0.14);
    background: rgba(4, 16, 20, 0.64);
}

body.page-lab .home-live-signal:hover {
    border-color: rgba(45, 212, 191, 0.34);
    background: rgba(45, 212, 191, 0.08);
}

body.page-lab .home-live-signal-state,
body.page-lab .home-live-signal-score,
body.page-lab .home-live-signal-market,
body.page-lab .home-live-signal-action {
    color: #67e8f9;
}

body.page-lab .home-category-header {
    border-bottom-color: rgba(103, 232, 249, 0.14);
    background: rgba(103, 232, 249, 0.045);
}

body.page-lab .compact-row:hover {
    border-color: rgba(45, 212, 191, 0.26);
    background: rgba(45, 212, 191, 0.07);
}

body.page-lab .home-panel-loading {
    border-color: rgba(103, 232, 249, 0.14);
    background: rgba(4, 16, 20, 0.62);
}

body.page-lab .home-panel-loading-line {
    background: linear-gradient(90deg, transparent, #2dd4bf, #67e8f9, transparent);
}

body.page-lab .topbar::after,
body.page-lab .home-panel-loading-line,
body.page-lab .home-tab-panel.is-animating-in,
body.page-lab .is-animating-in {
    animation: none;
}

html[data-theme="light"] body.page-lab {
    --sl-volt: #047b86;
    --sl-volt-rgb: 4, 123, 134;
    --sl-copper: #c75246;
    --sl-cyan: #0f9ca8;
    --sl-ink: #0b2228;
    --sl-ink-soft: rgba(11, 34, 40, 0.78);
    --sl-muted: rgba(11, 34, 40, 0.58);
    --sl-line: rgba(4, 123, 134, 0.14);
    --sl-line-strong: rgba(4, 123, 134, 0.28);
    --bg: #eef8f6;
    --bg-elevated: #fbfefd;
    --bg-panel: #f4fbf9;
    --panel: linear-gradient(180deg, rgba(250, 254, 253, 0.95), rgba(238, 248, 246, 0.98));
    --panel-border: rgba(4, 123, 134, 0.14);
    --panel-border-strong: rgba(4, 123, 134, 0.28);
    --text: #0b2228;
    --muted: rgba(11, 34, 40, 0.62);
    --muted-strong: rgba(11, 34, 40, 0.78);
    --accent: #047b86;
    --accent-strong: #0f9ca8;
    --accent-soft: rgba(4, 123, 134, 0.08);
    --positive: #007a4a;
    --negative: #b3433a;
    --warning: #815500;
    --shadow: 0 18px 44px rgba(11, 34, 40, 0.1);
    --header-bg: rgba(11, 34, 40, 0.94);
    --header-border: rgba(4, 123, 134, 0.24);
    --body-bg-stock:
        radial-gradient(circle at 18% 2%, rgba(4, 123, 134, 0.13), transparent 30%),
        linear-gradient(126deg, rgba(15, 156, 168, 0.08), transparent 48%),
        repeating-linear-gradient(90deg, rgba(11, 34, 40, 0.038) 0 1px, transparent 1px 112px),
        repeating-linear-gradient(0deg, rgba(11, 34, 40, 0.028) 0 1px, transparent 1px 92px),
        linear-gradient(180deg, #eef8f6 0%, #fbfefd 46%, #e8f1ef 100%);
    --field-bg: rgba(250, 254, 253, 0.9);
    --field-border: rgba(4, 123, 134, 0.16);
    --secondary-bg: rgba(250, 254, 253, 0.78);
    --secondary-border: rgba(4, 123, 134, 0.16);
    --secondary-text: #0b2228;
    --secondary-hover-bg: rgba(4, 123, 134, 0.09);
    --secondary-hover-border: rgba(4, 123, 134, 0.32);
    --secondary-hover-text: #047b86;
    --metric-bg: rgba(4, 123, 134, 0.06);
    --metric-border: rgba(4, 123, 134, 0.12);
    --metric-text: #0b2228;
}

html[data-theme="light"] body.page-lab::before {
    background:
        repeating-linear-gradient(118deg, rgba(11, 34, 40, 0.034) 0 1px, transparent 1px 10px),
        linear-gradient(90deg, transparent, rgba(4, 123, 134, 0.08) 50%, transparent);
}

html[data-theme="light"] body.page-lab .topbar,
html[data-theme="light"] body.page-lab .site-footer {
    background:
        linear-gradient(90deg, rgba(4, 123, 134, 0.14), transparent 30%),
        #0b2228;
    border-color: rgba(4, 123, 134, 0.26);
}

html[data-theme="light"] body.page-lab .theme-toggle-option:hover,
html[data-theme="light"] body.page-lab .theme-toggle-option.is-active {
    background: #047b86;
    color: #fbfefd;
}

html[data-theme="light"] body.page-lab .lab-console-hero {
    border-color: rgba(4, 123, 134, 0.14);
}

html[data-theme="light"] body.page-lab .lab-console-hero::before {
    background:
        linear-gradient(90deg, rgba(4, 123, 134, 0.11), transparent 24% 82%, rgba(199, 82, 70, 0.08)),
        repeating-linear-gradient(90deg, rgba(11, 34, 40, 0.046) 0 1px, transparent 1px 84px);
}

html[data-theme="light"] body.page-lab .landing-kicker {
    border-color: rgba(4, 123, 134, 0.26);
    background: rgba(4, 123, 134, 0.08);
    color: #047b86;
}

html[data-theme="light"] body.page-lab .lab-console-copy h1,
html[data-theme="light"] body.page-lab .home-live-signals-head h2,
html[data-theme="light"] body.page-lab .home-category-header h2,
html[data-theme="light"] body.page-lab .home-top-five-title h3,
html[data-theme="light"] body.page-lab .home-live-signal-main strong,
html[data-theme="light"] body.page-lab .home-live-signal-meta strong {
    color: #0b2228;
}

html[data-theme="light"] body.page-lab .lab-console-copy p,
html[data-theme="light"] body.page-lab .home-live-signals-head span,
html[data-theme="light"] body.page-lab .home-live-signal-main span,
html[data-theme="light"] body.page-lab .home-live-signal-meta span,
html[data-theme="light"] body.page-lab .home-live-signal-risk,
html[data-theme="light"] body.page-lab .home-top-five-updated {
    color: rgba(11, 34, 40, 0.62);
}

html[data-theme="light"] body.page-lab .home-live-signal-state,
html[data-theme="light"] body.page-lab .home-live-signal-score,
html[data-theme="light"] body.page-lab .home-live-signal-market,
html[data-theme="light"] body.page-lab .home-live-signal-action {
    color: #047b86;
}

html[data-theme="light"] body.page-lab .home-tab-nav,
html[data-theme="light"] body.page-lab .home-live-market-switch,
html[data-theme="light"] body.page-lab .home-leaderboard-filter-tabs,
html[data-theme="light"] body.page-lab .home-live-signal,
html[data-theme="light"] body.page-lab .home-panel-loading {
    border-color: rgba(4, 123, 134, 0.14);
    background: rgba(250, 254, 253, 0.72);
}

html[data-theme="light"] body.page-lab .home-tab-control,
html[data-theme="light"] body.page-lab .home-live-market-option,
html[data-theme="light"] body.page-lab .home-leaderboard-filter-tab {
    color: rgba(11, 34, 40, 0.64);
}

html[data-theme="light"] body.page-lab .home-tab-control:hover,
html[data-theme="light"] body.page-lab .home-tab-control.is-active {
    border-color: rgba(4, 123, 134, 0.28);
    background: rgba(4, 123, 134, 0.09);
    color: #0b2228;
}

html[data-theme="light"] body.page-lab .home-live-market-option:hover,
html[data-theme="light"] body.page-lab .home-live-market-option.is-active,
html[data-theme="light"] body.page-lab .home-leaderboard-filter-tab:hover,
html[data-theme="light"] body.page-lab .home-leaderboard-filter-tab.is-active {
    border-color: rgba(4, 123, 134, 0.32);
    background: #047b86;
    color: #fbfefd;
}

html[data-theme="light"] body.page-lab .home-live-signals-card,
html[data-theme="light"] body.page-lab .home-category,
html[data-theme="light"] body.page-lab .home-top-five-row {
    border-color: rgba(4, 123, 134, 0.13);
    background:
        linear-gradient(125deg, rgba(4, 123, 134, 0.08), transparent 42%),
        rgba(250, 254, 253, 0.78);
}

html[data-theme="light"] body.page-lab .home-live-signals-card::before,
html[data-theme="light"] body.page-lab .home-category::before {
    background: linear-gradient(90deg, #047b86, #0f9ca8, transparent);
}

html[data-theme="light"] body.page-lab .home-top-five-row:hover,
html[data-theme="light"] body.page-lab .home-top-five-row.is-first:hover {
    border-color: rgba(4, 123, 134, 0.3);
    background:
        linear-gradient(90deg, rgba(4, 123, 134, 0.11), transparent 32%),
        rgba(250, 254, 253, 0.92);
    box-shadow: 10px 12px 0 rgba(11, 34, 40, 0.08);
}

html[data-theme="light"] body.page-lab .home-top-five-row:hover .home-top-five-title h3,
html[data-theme="light"] body.page-lab .home-top-five-rank span {
    color: #047b86;
}

html[data-theme="light"] body.page-lab .home-top-five-score,
html[data-theme="light"] body.page-lab .home-top-five-metric,
html[data-theme="light"] body.page-lab .home-top-five-market-inline,
html[data-theme="light"] body.page-lab .home-live-signals-link,
html[data-theme="light"] body.page-lab .home-save-btn {
    border-color: rgba(4, 123, 134, 0.14);
    background: rgba(4, 123, 134, 0.055);
    color: rgba(11, 34, 40, 0.72);
}

html[data-theme="light"] body.page-lab .home-live-signals-link:hover,
html[data-theme="light"] body.page-lab .home-save-btn:hover {
    border-color: rgba(4, 123, 134, 0.32);
    background: rgba(4, 123, 134, 0.09);
    color: #047b86;
}

@media (max-width: 980px) {
    .lab-console-hero {
        grid-template-columns: 1fr;
    }

    .lab-console-copy h1 {
        font-size: 3.45rem;
    }
}

@media (max-width: 720px) {
    body.page-lab .page-shell {
        width: calc(100% - 28px);
    }

    .lab-console-hero {
        gap: 18px;
        padding: 18px 0;
    }

    .lab-console-copy h1 {
        font-size: 2.55rem;
    }
}

@media (max-width: 420px) {
    .lab-console-copy h1 {
        font-size: 2.18rem;
    }
}

/* Proof page v2: forward-evidence audit desk. */
body.page-performance-ledger {
    --sl-volt: #2dd4bf;
    --sl-volt-rgb: 45, 212, 191;
    --sl-copper: #ff6f61;
    --sl-cyan: #67e8f9;
    --sl-ink: #effcfb;
    --sl-ink-soft: rgba(239, 252, 251, 0.78);
    --sl-muted: rgba(239, 252, 251, 0.58);
    --sl-line: rgba(103, 232, 249, 0.14);
    --sl-line-strong: rgba(45, 212, 191, 0.3);
    --bg: #061013;
    --bg-elevated: #08171b;
    --bg-panel: #08171b;
    --panel: linear-gradient(180deg, rgba(7, 20, 24, 0.92), rgba(4, 13, 17, 0.98));
    --panel-border: rgba(103, 232, 249, 0.14);
    --panel-border-strong: rgba(45, 212, 191, 0.3);
    --text: #effcfb;
    --muted: rgba(239, 252, 251, 0.6);
    --muted-strong: rgba(239, 252, 251, 0.78);
    --accent: #2dd4bf;
    --accent-strong: #67e8f9;
    --accent-soft: rgba(45, 212, 191, 0.1);
    --positive: #78f7c4;
    --negative: #ff7c70;
    --warning: #ffd166;
    --shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
    --header-bg: rgba(4, 14, 18, 0.92);
    --header-border: rgba(103, 232, 249, 0.16);
    --body-bg-stock:
        radial-gradient(circle at 14% 0%, rgba(45, 212, 191, 0.15), transparent 30%),
        linear-gradient(120deg, rgba(255, 111, 97, 0.055), transparent 38%),
        repeating-linear-gradient(90deg, rgba(103, 232, 249, 0.032) 0 1px, transparent 1px 112px),
        repeating-linear-gradient(0deg, rgba(239, 252, 251, 0.023) 0 1px, transparent 1px 92px),
        linear-gradient(180deg, #061013 0%, #0b181c 46%, #05090d 100%);
    --secondary-bg: rgba(103, 232, 249, 0.045);
    --secondary-border: rgba(103, 232, 249, 0.15);
    --secondary-text: #effcfb;
    --secondary-hover-bg: rgba(45, 212, 191, 0.1);
    --secondary-hover-border: rgba(45, 212, 191, 0.36);
    --secondary-hover-text: #67e8f9;
    background: var(--body-bg-stock);
}

body.page-performance-ledger::before {
    background:
        repeating-linear-gradient(118deg, rgba(103, 232, 249, 0.032) 0 1px, transparent 1px 10px),
        linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.08) 50%, transparent);
    opacity: 0.46;
}

body.page-performance-ledger .page-shell {
    width: min(1440px, calc(100% - 48px));
    padding-top: 26px;
}

body.page-performance-ledger .topbar {
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.08), transparent 30%),
        var(--header-bg);
    border-bottom-color: rgba(103, 232, 249, 0.16);
}

body.page-performance-ledger .topbar::after {
    background: linear-gradient(90deg, transparent 0%, rgba(45, 212, 191, 0.85) 42%, rgba(103, 232, 249, 0.72) 56%, transparent 72%);
}

body.page-performance-ledger .nav-link:hover,
body.page-performance-ledger .nav-link.active {
    border-color: rgba(45, 212, 191, 0.28);
    background: rgba(45, 212, 191, 0.08);
    color: #effcfb;
}

body.page-performance-ledger .theme-toggle-option:hover,
body.page-performance-ledger .theme-toggle-option.is-active {
    background: #2dd4bf;
    color: #031315;
}

body.page-performance-ledger .performance-ledger-shell {
    gap: 18px;
    padding: 10px 0 48px;
}

body.page-performance-ledger .performance-ledger-hero,
body.page-performance-ledger .performance-ledger-proof,
body.page-performance-ledger .performance-ledger-panel,
body.page-performance-ledger .performance-ledger-message {
    border-color: rgba(103, 232, 249, 0.14);
    background:
        linear-gradient(125deg, rgba(45, 212, 191, 0.08), transparent 42%),
        rgba(5, 18, 22, 0.72);
    box-shadow: none;
}

body.page-performance-ledger .performance-ledger-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.62fr);
    align-items: stretch;
    gap: 26px;
    overflow: hidden;
    margin-bottom: 0;
    padding: 28px;
}

body.page-performance-ledger .performance-ledger-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.12), transparent 28% 74%, rgba(255, 111, 97, 0.08)),
        repeating-linear-gradient(90deg, rgba(103, 232, 249, 0.048) 0 1px, transparent 1px 88px);
    opacity: 0.62;
    mask-image: linear-gradient(90deg, black, transparent 96%);
}

body.page-performance-ledger .performance-ledger-hero::after {
    content: "FORWARD / TRACKED / RECEIPTS";
    position: absolute;
    right: 24px;
    bottom: -10px;
    color: rgba(103, 232, 249, 0.055);
    font-family: var(--font-mono);
    font-size: 2.45rem;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

body.page-performance-ledger .performance-ledger-hero-copy,
body.page-performance-ledger .performance-ledger-audit {
    position: relative;
    z-index: 1;
}

body.page-performance-ledger .performance-ledger-hero-copy {
    display: grid;
    align-content: center;
    gap: 14px;
    min-width: 0;
    max-width: 760px;
}

body.page-performance-ledger .performance-ledger-kicker {
    margin: 0;
    color: #67e8f9;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.page-performance-ledger .performance-ledger-hero h1 {
    max-width: 9ch;
    margin: 0;
    color: #effcfb;
    font-family: var(--font-display);
    font-size: 4.55rem;
    font-weight: 800;
    line-height: 0.84;
}

body.page-performance-ledger .performance-ledger-hero span {
    max-width: 52ch;
    color: rgba(239, 252, 251, 0.64);
    font-size: 1.02rem;
    line-height: 1.58;
}

body.page-performance-ledger .performance-ledger-audit {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-content: end;
}

body.page-performance-ledger .performance-ledger-audit-card,
body.page-performance-ledger .performance-ledger-summary > div,
body.page-performance-ledger .performance-ledger-buckets div,
body.page-performance-ledger .performance-ledger-strategies div,
body.page-performance-ledger .performance-ledger-moves span,
body.page-performance-ledger .performance-ledger-empty {
    border: 1px solid rgba(103, 232, 249, 0.14);
    border-radius: 7px;
    background: rgba(4, 16, 20, 0.72);
    box-shadow: none;
}

body.page-performance-ledger .performance-ledger-audit-card {
    display: grid;
    gap: 5px;
    min-width: 0;
    min-height: 104px;
    align-content: center;
    padding: 14px;
}

body.page-performance-ledger .performance-ledger-audit-card span,
body.page-performance-ledger .performance-ledger-summary span,
body.page-performance-ledger .performance-ledger-symbol small,
body.page-performance-ledger .performance-ledger-moves small,
body.page-performance-ledger .performance-ledger-buckets span {
    color: #67e8f9;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.page-performance-ledger .performance-ledger-audit-card strong {
    overflow: hidden;
    color: #effcfb;
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 0.95;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-performance-ledger .performance-ledger-audit-card small,
body.page-performance-ledger .performance-ledger-proof-copy span,
body.page-performance-ledger .performance-ledger-panel-head > span,
body.page-performance-ledger .performance-ledger-symbol span,
body.page-performance-ledger .performance-ledger-setup span,
body.page-performance-ledger .performance-ledger-summary small,
body.page-performance-ledger .performance-ledger-strategies small,
body.page-performance-ledger .performance-ledger-empty,
body.page-performance-ledger .performance-ledger-disclaimer {
    color: rgba(239, 252, 251, 0.6);
}

body.page-performance-ledger .performance-ledger-tabs {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 5px;
    padding: 5px;
    border: 1px solid rgba(103, 232, 249, 0.14);
    border-radius: 8px;
    background: rgba(4, 16, 20, 0.58);
}

body.page-performance-ledger .performance-ledger-tabs a {
    min-height: 38px;
    min-width: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    color: rgba(239, 252, 251, 0.64);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.page-performance-ledger .performance-ledger-tabs a.is-active,
body.page-performance-ledger .performance-ledger-tabs a:hover {
    border-color: rgba(45, 212, 191, 0.38);
    background: rgba(45, 212, 191, 0.12);
    color: #effcfb;
}

body.page-performance-ledger .performance-ledger-message {
    padding: 14px 16px;
    color: #ff9a91;
}

body.page-performance-ledger .performance-ledger-proof {
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
    gap: 18px;
    padding: 18px;
}

body.page-performance-ledger .performance-ledger-proof-copy {
    padding: 4px 0 4px 10px;
    border-left: 3px solid #2dd4bf;
}

body.page-performance-ledger .performance-ledger-proof-copy h2,
body.page-performance-ledger .performance-ledger-panel h2 {
    color: #effcfb;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0;
}

body.page-performance-ledger .performance-ledger-proof-copy h2 {
    font-size: 2rem;
}

body.page-performance-ledger .performance-ledger-summary {
    gap: 8px;
}

body.page-performance-ledger .performance-ledger-summary > div {
    position: relative;
    gap: 7px;
    min-height: 112px;
    padding: 14px;
    overflow: hidden;
}

body.page-performance-ledger .performance-ledger-summary > div::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 3px;
    background: #2dd4bf;
    transform: scaleY(0.42);
    transform-origin: top;
}

body.page-performance-ledger .performance-ledger-summary strong {
    color: #effcfb;
    font-family: var(--font-display);
    font-size: 1.62rem;
    font-weight: 800;
}

body.page-performance-ledger .performance-ledger-panel {
    gap: 14px;
    padding: 18px;
}

body.page-performance-ledger .performance-ledger-panel-head {
    align-items: flex-end;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(103, 232, 249, 0.13);
}

body.page-performance-ledger .performance-ledger-panel h2 {
    font-size: 1.45rem;
}

body.page-performance-ledger .performance-ledger-guide-list {
    gap: 10px;
}

body.page-performance-ledger .performance-ledger-guide-list span {
    position: relative;
    min-height: 112px;
    gap: 5px;
    padding: 14px;
    border: 1px solid rgba(103, 232, 249, 0.14);
    border-radius: 7px;
    background:
        linear-gradient(135deg, rgba(45, 212, 191, 0.09), transparent 58%),
        rgba(4, 16, 20, 0.58);
}

body.page-performance-ledger .performance-ledger-guide-list em {
    color: rgba(103, 232, 249, 0.62);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 800;
}

body.page-performance-ledger .performance-ledger-guide-list strong {
    color: #effcfb;
    font-size: 1.05rem;
}

body.page-performance-ledger .performance-ledger-guide-list small {
    color: rgba(239, 252, 251, 0.58);
}

body.page-performance-ledger .performance-ledger-list {
    gap: 10px;
}

body.page-performance-ledger .performance-ledger-row {
    position: relative;
    grid-template-columns: minmax(136px, 0.74fr) minmax(240px, 1.15fr) minmax(300px, 1fr) minmax(118px, auto);
    gap: 14px;
    min-height: 112px;
    padding: 14px;
    border-color: rgba(103, 232, 249, 0.13);
    border-radius: 8px;
    background:
        repeating-linear-gradient(135deg, rgba(103, 232, 249, 0.026) 0 1px, transparent 1px 10px),
        rgba(4, 16, 20, 0.62);
    transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

body.page-performance-ledger .performance-ledger-row::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 0;
    width: 3px;
    background: rgba(103, 232, 249, 0.4);
}

body.page-performance-ledger .performance-ledger-row:hover {
    border-color: rgba(45, 212, 191, 0.36);
    background-color: rgba(6, 24, 28, 0.86);
    transform: translateY(-1px);
}

body.page-performance-ledger .performance-ledger-row.is-positive::before {
    background: #78f7c4;
}

body.page-performance-ledger .performance-ledger-row.is-negative::before {
    background: #ff7c70;
}

body.page-performance-ledger .performance-ledger-symbol,
body.page-performance-ledger .performance-ledger-setup,
body.page-performance-ledger .performance-ledger-result {
    gap: 5px;
}

body.page-performance-ledger .performance-ledger-buckets strong,
body.page-performance-ledger .performance-ledger-strategies strong,
body.page-performance-ledger .performance-ledger-symbol strong,
body.page-performance-ledger .performance-ledger-setup strong,
body.page-performance-ledger .performance-ledger-moves strong,
body.page-performance-ledger .performance-ledger-result strong {
    color: #effcfb;
}

body.page-performance-ledger .performance-ledger-symbol strong {
    font-family: var(--font-display);
    font-size: 1.28rem;
    line-height: 1;
}

body.page-performance-ledger .performance-ledger-moves {
    gap: 6px;
}

body.page-performance-ledger .performance-ledger-moves span {
    min-height: 60px;
    padding: 8px 9px;
}

body.page-performance-ledger .performance-ledger-result {
    align-content: center;
}

body.page-performance-ledger .performance-ledger-status {
    min-height: 30px;
    border: 1px solid rgba(103, 232, 249, 0.14);
    border-radius: 999px;
    background: rgba(103, 232, 249, 0.055);
    color: rgba(239, 252, 251, 0.7);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
}

body.page-performance-ledger .performance-ledger-result a {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid rgba(103, 232, 249, 0.16);
    border-radius: 6px;
    background: rgba(103, 232, 249, 0.045);
    color: #67e8f9;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.page-performance-ledger .performance-ledger-result a:hover,
body.page-performance-ledger .performance-ledger-result a:focus-visible {
    border-color: rgba(45, 212, 191, 0.4);
    background: rgba(45, 212, 191, 0.1);
    color: #effcfb;
}

body.page-performance-ledger .performance-ledger-details {
    margin-top: 0;
}

body.page-performance-ledger .performance-ledger-details > summary {
    cursor: pointer;
}

body.page-performance-ledger .performance-ledger-details > summary::after {
    content: "+";
    color: #67e8f9;
    font-family: var(--font-display);
    font-size: 1.8rem;
    line-height: 1;
}

body.page-performance-ledger .performance-ledger-details[open] > summary::after {
    content: "-";
}

body.page-performance-ledger .performance-ledger-grid {
    gap: 12px;
}

body.page-performance-ledger .performance-ledger-subpanel {
    border: 1px solid rgba(103, 232, 249, 0.12);
    border-radius: 8px;
    background: rgba(4, 16, 20, 0.42);
    padding: 14px;
}

body.page-performance-ledger .performance-ledger-buckets {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

body.page-performance-ledger .performance-ledger-buckets div {
    min-height: 98px;
    padding: 11px;
}

body.page-performance-ledger .performance-ledger-strategies {
    gap: 8px;
}

body.page-performance-ledger .performance-ledger-strategies div {
    grid-template-columns: 46px minmax(0, 1fr) auto auto;
    padding: 11px;
}

body.page-performance-ledger .performance-ledger-strategies span {
    color: #67e8f9;
}

body.page-performance-ledger .performance-ledger-buckets em,
body.page-performance-ledger .performance-ledger-strategies em {
    font-style: normal;
}

body.page-performance-ledger .performance-ledger-status.is-positive,
body.page-performance-ledger .performance-ledger-summary .is-positive,
body.page-performance-ledger .performance-ledger-buckets .is-positive,
body.page-performance-ledger .performance-ledger-strategies .is-positive,
body.page-performance-ledger .performance-ledger-moves .is-positive strong,
body.page-performance-ledger .performance-ledger-result .is-positive {
    color: #78f7c4;
}

body.page-performance-ledger .performance-ledger-status.is-negative,
body.page-performance-ledger .performance-ledger-summary .is-negative,
body.page-performance-ledger .performance-ledger-buckets .is-negative,
body.page-performance-ledger .performance-ledger-strategies .is-negative,
body.page-performance-ledger .performance-ledger-moves .is-negative strong,
body.page-performance-ledger .performance-ledger-result .is-negative {
    color: #ff8a7f;
}

body.page-performance-ledger .performance-ledger-disclaimer {
    padding-top: 6px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
}

html[data-theme="light"] body.page-performance-ledger {
    --sl-volt: #047b86;
    --sl-volt-rgb: 4, 123, 134;
    --sl-copper: #c75246;
    --sl-cyan: #0f9ca8;
    --sl-ink: #0b2228;
    --sl-muted: rgba(11, 34, 40, 0.6);
    --bg: #eef8f6;
    --bg-elevated: #fbfefd;
    --bg-panel: #f4fbf9;
    --panel: linear-gradient(180deg, rgba(250, 254, 253, 0.95), rgba(238, 248, 246, 0.98));
    --panel-border: rgba(4, 123, 134, 0.14);
    --text: #0b2228;
    --muted: rgba(11, 34, 40, 0.62);
    --muted-strong: rgba(11, 34, 40, 0.78);
    --accent: #047b86;
    --accent-strong: #0f9ca8;
    --positive: #007a4a;
    --negative: #b3433a;
    --warning: #815500;
    --header-bg: rgba(11, 34, 40, 0.94);
    --header-border: rgba(4, 123, 134, 0.24);
    --body-bg-stock:
        radial-gradient(circle at 14% 0%, rgba(4, 123, 134, 0.13), transparent 30%),
        linear-gradient(120deg, rgba(199, 82, 70, 0.045), transparent 38%),
        repeating-linear-gradient(90deg, rgba(11, 34, 40, 0.038) 0 1px, transparent 1px 112px),
        repeating-linear-gradient(0deg, rgba(11, 34, 40, 0.028) 0 1px, transparent 1px 92px),
        linear-gradient(180deg, #eef8f6 0%, #fbfefd 46%, #e8f1ef 100%);
    background: var(--body-bg-stock);
}

html[data-theme="light"] body.page-performance-ledger::before {
    background:
        repeating-linear-gradient(118deg, rgba(11, 34, 40, 0.034) 0 1px, transparent 1px 10px),
        linear-gradient(90deg, transparent, rgba(4, 123, 134, 0.08) 50%, transparent);
}

html[data-theme="light"] body.page-performance-ledger .topbar,
html[data-theme="light"] body.page-performance-ledger .site-footer {
    background:
        linear-gradient(90deg, rgba(4, 123, 134, 0.14), transparent 30%),
        #0b2228;
    border-color: rgba(4, 123, 134, 0.26);
}

html[data-theme="light"] body.page-performance-ledger .theme-toggle-option:hover,
html[data-theme="light"] body.page-performance-ledger .theme-toggle-option.is-active {
    background: #047b86;
    color: #fbfefd;
}

html[data-theme="light"] body.page-performance-ledger .performance-ledger-hero,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-proof,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-panel,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-message {
    border-color: rgba(4, 123, 134, 0.14);
    background:
        linear-gradient(125deg, rgba(4, 123, 134, 0.08), transparent 42%),
        rgba(250, 254, 253, 0.78);
}

html[data-theme="light"] body.page-performance-ledger .performance-ledger-hero::before {
    background:
        linear-gradient(90deg, rgba(4, 123, 134, 0.11), transparent 28% 74%, rgba(199, 82, 70, 0.08)),
        repeating-linear-gradient(90deg, rgba(11, 34, 40, 0.046) 0 1px, transparent 1px 88px);
}

html[data-theme="light"] body.page-performance-ledger .performance-ledger-hero::after {
    color: rgba(4, 123, 134, 0.08);
}

html[data-theme="light"] body.page-performance-ledger .performance-ledger-hero h1,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-proof-copy h2,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-panel h2,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-audit-card strong,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-summary strong,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-guide-list strong,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-buckets strong,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-strategies strong,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-symbol strong,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-setup strong,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-moves strong,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-result strong {
    color: #0b2228;
}

html[data-theme="light"] body.page-performance-ledger .performance-ledger-hero span,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-audit-card small,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-proof-copy span,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-panel-head > span,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-symbol span,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-setup span,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-summary small,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-strategies small,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-empty,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-disclaimer,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-guide-list small {
    color: rgba(11, 34, 40, 0.62);
}

html[data-theme="light"] body.page-performance-ledger .performance-ledger-kicker,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-audit-card span,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-summary span,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-symbol small,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-moves small,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-buckets span,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-guide-list em,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-strategies span {
    color: #047b86;
}

html[data-theme="light"] body.page-performance-ledger .performance-ledger-audit-card,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-summary > div,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-buckets div,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-strategies div,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-moves span,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-empty,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-tabs,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-subpanel {
    border-color: rgba(4, 123, 134, 0.14);
    background: rgba(250, 254, 253, 0.72);
}

html[data-theme="light"] body.page-performance-ledger .performance-ledger-guide-list span,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-row {
    border-color: rgba(4, 123, 134, 0.13);
    background:
        linear-gradient(135deg, rgba(4, 123, 134, 0.08), transparent 58%),
        rgba(250, 254, 253, 0.72);
}

html[data-theme="light"] body.page-performance-ledger .performance-ledger-tabs a {
    color: rgba(11, 34, 40, 0.64);
}

html[data-theme="light"] body.page-performance-ledger .performance-ledger-tabs a.is-active,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-tabs a:hover {
    border-color: rgba(4, 123, 134, 0.28);
    background: rgba(4, 123, 134, 0.09);
    color: #0b2228;
}

html[data-theme="light"] body.page-performance-ledger .performance-ledger-result a {
    border-color: rgba(4, 123, 134, 0.16);
    background: rgba(4, 123, 134, 0.055);
    color: #047b86;
}

html[data-theme="light"] body.page-performance-ledger .performance-ledger-status {
    border-color: rgba(4, 123, 134, 0.14);
    background: rgba(4, 123, 134, 0.055);
    color: rgba(11, 34, 40, 0.7);
}

html[data-theme="light"] body.page-performance-ledger .performance-ledger-status.is-positive,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-summary .is-positive,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-buckets .is-positive,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-strategies .is-positive,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-moves .is-positive strong,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-result .is-positive {
    color: #007a4a;
}

html[data-theme="light"] body.page-performance-ledger .performance-ledger-status.is-negative,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-summary .is-negative,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-buckets .is-negative,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-strategies .is-negative,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-moves .is-negative strong,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-result .is-negative {
    color: #b3433a;
}

@media (max-width: 1120px) {
    body.page-performance-ledger .performance-ledger-hero,
    body.page-performance-ledger .performance-ledger-proof,
    body.page-performance-ledger .performance-ledger-grid,
    body.page-performance-ledger .performance-ledger-row,
    body.page-performance-ledger .performance-ledger-strategies div {
        grid-template-columns: 1fr;
    }

    body.page-performance-ledger .performance-ledger-buckets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body.page-performance-ledger .page-shell {
        width: calc(100% - 28px);
    }

    body.page-performance-ledger .performance-ledger-hero,
    body.page-performance-ledger .performance-ledger-proof,
    body.page-performance-ledger .performance-ledger-panel {
        padding: 16px;
    }

    body.page-performance-ledger .performance-ledger-hero h1 {
        font-size: 2.65rem;
    }

    body.page-performance-ledger .performance-ledger-audit,
    body.page-performance-ledger .performance-ledger-summary,
    body.page-performance-ledger .performance-ledger-guide-list,
    body.page-performance-ledger .performance-ledger-buckets,
    body.page-performance-ledger .performance-ledger-moves {
        grid-template-columns: 1fr;
    }

    body.page-performance-ledger .performance-ledger-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    body.page-performance-ledger .performance-ledger-tabs {
        grid-template-columns: 1fr;
    }
}

/* Builder page v1: one-workspace strategy bench. */
body.page-builder {
    --sl-volt: #2dd4bf;
    --sl-volt-rgb: 45, 212, 191;
    --sl-copper: #ff6f61;
    --sl-cyan: #67e8f9;
    --sl-ink: #effcfb;
    --sl-muted: rgba(239, 252, 251, 0.58);
    --bg: #061013;
    --bg-elevated: #08171b;
    --bg-panel: #08171b;
    --panel: linear-gradient(180deg, rgba(7, 20, 24, 0.92), rgba(4, 13, 17, 0.98));
    --panel-border: rgba(103, 232, 249, 0.14);
    --panel-border-strong: rgba(45, 212, 191, 0.3);
    --text: #effcfb;
    --muted: rgba(239, 252, 251, 0.6);
    --muted-strong: rgba(239, 252, 251, 0.78);
    --accent: #2dd4bf;
    --accent-strong: #67e8f9;
    --accent-soft: rgba(45, 212, 191, 0.1);
    --positive: #78f7c4;
    --negative: #ff7c70;
    --warning: #ffd166;
    --shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
    --header-bg: rgba(4, 14, 18, 0.92);
    --header-border: rgba(103, 232, 249, 0.16);
    --body-bg-stock:
        radial-gradient(circle at 14% 0%, rgba(45, 212, 191, 0.15), transparent 30%),
        repeating-linear-gradient(90deg, rgba(103, 232, 249, 0.032) 0 1px, transparent 1px 112px),
        repeating-linear-gradient(0deg, rgba(239, 252, 251, 0.023) 0 1px, transparent 1px 92px),
        linear-gradient(180deg, #061013 0%, #0b181c 46%, #05090d 100%);
    --field-bg: rgba(4, 16, 20, 0.82);
    --field-border: rgba(103, 232, 249, 0.16);
    --secondary-bg: rgba(103, 232, 249, 0.045);
    --secondary-border: rgba(103, 232, 249, 0.15);
    --secondary-text: #effcfb;
    --secondary-hover-bg: rgba(45, 212, 191, 0.1);
    --secondary-hover-border: rgba(45, 212, 191, 0.36);
    --secondary-hover-text: #67e8f9;
    background: var(--body-bg-stock);
}

body.page-builder::before {
    background:
        repeating-linear-gradient(118deg, rgba(103, 232, 249, 0.032) 0 1px, transparent 1px 10px),
        linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.08) 50%, transparent);
    opacity: 0.46;
}

body.page-builder .page-shell {
    width: min(1440px, calc(100% - 48px));
    padding-top: 26px;
}

body.page-builder .topbar {
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.08), transparent 30%),
        var(--header-bg);
    border-bottom-color: rgba(103, 232, 249, 0.16);
}

body.page-builder .topbar::after {
    background: linear-gradient(90deg, transparent 0%, rgba(45, 212, 191, 0.85) 42%, rgba(103, 232, 249, 0.72) 56%, transparent 72%);
}

body.page-builder .nav-link:hover,
body.page-builder .nav-link.active {
    border-color: rgba(45, 212, 191, 0.28);
    background: rgba(45, 212, 191, 0.08);
    color: #effcfb;
}

body.page-builder .theme-toggle-option:hover,
body.page-builder .theme-toggle-option.is-active {
    background: #2dd4bf;
    color: #031315;
}

body.page-builder .breadcrumbs {
    margin: 0 0 14px;
    color: rgba(239, 252, 251, 0.56);
}

body.page-builder .breadcrumbs a {
    color: #67e8f9;
}

body.page-builder .strategy-builder-shell {
    display: grid;
    gap: 18px;
}

body.page-builder .builder-mode-switch {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: end;
    justify-items: stretch;
    margin: 0;
    padding: 24px;
    overflow: hidden;
    border: 1px solid rgba(103, 232, 249, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(125deg, rgba(45, 212, 191, 0.09), transparent 42%),
        rgba(5, 18, 22, 0.72);
    box-shadow: none;
    text-align: left;
}

body.page-builder .builder-mode-switch::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.12), transparent 30% 82%, rgba(255, 111, 97, 0.07)),
        repeating-linear-gradient(90deg, rgba(103, 232, 249, 0.045) 0 1px, transparent 1px 88px);
    opacity: 0.58;
    mask-image: linear-gradient(90deg, black, transparent 96%);
}

body.page-builder .builder-mode-switch-copy,
body.page-builder .builder-mode-switch-actions {
    position: relative;
    z-index: 1;
}

body.page-builder .builder-mode-switch-copy {
    justify-items: start;
    max-width: 720px;
}

body.page-builder .builder-mode-switch-copy .eyebrow,
body.page-builder .strategy-card-head .eyebrow,
body.page-builder .field-label {
    color: #67e8f9;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.page-builder .builder-workbench-head .eyebrow,
body.page-builder .strategy-confirmation-head .eyebrow,
body.page-builder .builder-output-panel > .strategy-card-head .eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-width: 128px;
    min-height: 30px;
    padding: 0 14px;
    border: 1px solid rgba(103, 232, 249, 0.26);
    border-radius: 999px;
    background: rgba(103, 232, 249, 0.08);
    white-space: nowrap;
}

body.page-builder .builder-mode-switch-copy h2 {
    color: #effcfb;
    font-family: var(--font-display);
    font-size: 3.35rem;
    font-weight: 800;
    line-height: 0.88;
}

body.page-builder .builder-mode-switch-copy p {
    max-width: 58ch;
    color: rgba(239, 252, 251, 0.62);
    font-size: 1rem;
    line-height: 1.55;
}

body.page-builder .builder-mode-switch-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 6px;
    min-width: min(380px, 100%);
    padding: 6px;
    border: 1px solid rgba(103, 232, 249, 0.14);
    border-radius: 8px;
    background: rgba(4, 16, 20, 0.58);
}

body.page-builder .builder-mode-switch-actions .secondary-button {
    min-height: 44px;
    min-width: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    color: rgba(239, 252, 251, 0.68);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.page-builder .builder-mode-switch-actions .secondary-button:hover,
body.page-builder .builder-mode-switch-actions .secondary-button.is-active {
    border-color: rgba(45, 212, 191, 0.36);
    background: rgba(45, 212, 191, 0.12);
    color: #effcfb;
}

body.page-builder .builder-workspace-map {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(88px, 1fr));
    gap: 6px;
    width: min(430px, 100%);
    padding: 6px;
    border: 1px solid rgba(103, 232, 249, 0.14);
    border-radius: 8px;
    background: rgba(4, 16, 20, 0.58);
}

body.page-builder .builder-workspace-map span {
    display: grid;
    gap: 5px;
    min-height: 62px;
    align-content: center;
    padding: 10px;
    border: 1px solid rgba(103, 232, 249, 0.1);
    border-radius: 6px;
    color: rgba(239, 252, 251, 0.76);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.page-builder .builder-workspace-map strong {
    color: #67e8f9;
    font-size: 0.64rem;
}

body.page-builder .builder-suggest-panel .researcher-generator-card {
    display: grid;
    gap: 18px;
    margin: 0;
}

body.page-builder .builder-suggest-panel .researcher-generator-footer {
    justify-content: flex-start;
}

body.page-builder .researcher-generate-progress-slot {
    margin-top: -6px;
}

body.page-builder .researcher-toolbar,
body.page-builder .strategy-main-grid,
body.page-builder .results-dashboard-grid,
body.page-builder .researcher-score-card,
body.page-builder .strategy-progress-inline-slot {
    margin-top: 0;
}

body.page-builder .detail-card,
body.page-builder .researcher-generator-card,
body.page-builder .researcher-score-card,
body.page-builder .strategy-builder-card,
body.page-builder .strategy-results-card,
body.page-builder .strategy-progress-card,
body.page-builder .builder-subpanel,
body.page-builder .strategy-confirmation-panel,
body.page-builder .strategy-choice-card,
body.page-builder .exit-rule-card {
    border-color: rgba(103, 232, 249, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(125deg, rgba(45, 212, 191, 0.055), transparent 44%),
        rgba(5, 18, 22, 0.72);
    box-shadow: none;
}

body.page-builder .strategy-card-head {
    gap: 8px;
}

body.page-builder .strategy-card-head h2,
body.page-builder .strategy-wizard-step-head h3 {
    color: #effcfb;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0;
}

body.page-builder .strategy-card-head p,
body.page-builder .field-help,
body.page-builder .empty-chart-state,
body.page-builder .strategy-choice-copy span {
    color: rgba(239, 252, 251, 0.6);
}

body.page-builder .researcher-generator-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body.page-builder .strategy-input,
body.page-builder .strategy-select,
body.page-builder input,
body.page-builder select,
body.page-builder textarea {
    border-color: rgba(103, 232, 249, 0.16);
    background: rgba(4, 16, 20, 0.82);
    color: #effcfb;
}

body.page-builder .strategy-input:focus,
body.page-builder .strategy-select:focus,
body.page-builder input:focus,
body.page-builder select:focus,
body.page-builder textarea:focus {
    outline: 2px solid rgba(103, 232, 249, 0.65);
    outline-offset: 2px;
    border-color: rgba(45, 212, 191, 0.44);
}

body.page-builder .primary-button,
body.page-builder .researcher-generate-button {
    border-color: rgba(45, 212, 191, 0.54);
    background: #2dd4bf;
    color: #031315;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.22);
}

body.page-builder .primary-button:hover,
body.page-builder .researcher-generate-button:hover {
    background: #67e8f9;
    color: #031315;
}

body.page-builder .secondary-button {
    border-color: rgba(103, 232, 249, 0.16);
    background: rgba(103, 232, 249, 0.045);
    color: #effcfb;
}

body.page-builder .secondary-button:hover {
    border-color: rgba(45, 212, 191, 0.36);
    background: rgba(45, 212, 191, 0.1);
    color: #67e8f9;
}

body.page-builder .strategy-wizard-progress {
    border-color: rgba(103, 232, 249, 0.14);
    background: rgba(4, 16, 20, 0.58);
}

body.page-builder .strategy-wizard-progress-item.is-active,
body.page-builder .strategy-wizard-progress-item.is-complete {
    color: #effcfb;
    border-bottom-color: #2dd4bf;
}

body.page-builder .strategy-wizard-progress-item.is-active span,
body.page-builder .strategy-wizard-progress-item.is-complete span {
    background: #2dd4bf;
    color: #031315;
}

body.page-builder .strategy-choice-card:has(input:checked),
body.page-builder .asset-picker-option:has(input:checked),
body.page-builder .exit-rule-card:has(.exit-rule-toggle input:checked) {
    border-color: rgba(45, 212, 191, 0.44);
    background: rgba(45, 212, 191, 0.1);
}

body.page-builder .screener-table-wrap,
body.page-builder .strat-ai-table-shell {
    border-color: rgba(103, 232, 249, 0.14);
    background: rgba(4, 16, 20, 0.58);
}

body.page-builder .screener-table th {
    background: rgba(103, 232, 249, 0.07);
    color: rgba(239, 252, 251, 0.68);
}

body.page-builder .screener-table td {
    border-bottom-color: rgba(103, 232, 249, 0.1);
}

body.page-builder .table-asset-copy strong,
body.page-builder .table-metric {
    color: #effcfb;
}

body.page-builder .strategy-builder-shell [data-builder-page-body].is-builder-pane-entering {
    animation: none;
}

html[data-theme="light"] body.page-builder {
    --sl-volt: #047b86;
    --sl-volt-rgb: 4, 123, 134;
    --sl-copper: #c75246;
    --sl-cyan: #0f9ca8;
    --bg: #eef8f6;
    --bg-elevated: #fbfefd;
    --bg-panel: #f4fbf9;
    --panel: linear-gradient(180deg, rgba(250, 254, 253, 0.95), rgba(238, 248, 246, 0.98));
    --panel-border: rgba(4, 123, 134, 0.14);
    --text: #0b2228;
    --muted: rgba(11, 34, 40, 0.62);
    --muted-strong: rgba(11, 34, 40, 0.78);
    --accent: #047b86;
    --accent-strong: #0f9ca8;
    --positive: #007a4a;
    --negative: #b3433a;
    --header-bg: rgba(11, 34, 40, 0.94);
    --header-border: rgba(4, 123, 134, 0.24);
    --body-bg-stock:
        radial-gradient(circle at 14% 0%, rgba(4, 123, 134, 0.13), transparent 30%),
        repeating-linear-gradient(90deg, rgba(11, 34, 40, 0.038) 0 1px, transparent 1px 112px),
        repeating-linear-gradient(0deg, rgba(11, 34, 40, 0.028) 0 1px, transparent 1px 92px),
        linear-gradient(180deg, #eef8f6 0%, #fbfefd 46%, #e8f1ef 100%);
    background: var(--body-bg-stock);
}

html[data-theme="light"] body.page-builder .topbar {
    background:
        linear-gradient(90deg, rgba(4, 123, 134, 0.14), transparent 30%),
        #0b2228;
}

html[data-theme="light"] body.page-builder .theme-toggle-option:hover,
html[data-theme="light"] body.page-builder .theme-toggle-option.is-active {
    background: #047b86;
    color: #fbfefd;
}

html[data-theme="light"] body.page-builder .builder-mode-switch,
html[data-theme="light"] body.page-builder .detail-card,
html[data-theme="light"] body.page-builder .researcher-generator-card,
html[data-theme="light"] body.page-builder .researcher-score-card,
html[data-theme="light"] body.page-builder .strategy-builder-card,
html[data-theme="light"] body.page-builder .strategy-results-card,
html[data-theme="light"] body.page-builder .strategy-progress-card,
html[data-theme="light"] body.page-builder .builder-subpanel,
html[data-theme="light"] body.page-builder .strategy-confirmation-panel,
html[data-theme="light"] body.page-builder .strategy-choice-card,
html[data-theme="light"] body.page-builder .exit-rule-card {
    border-color: rgba(4, 123, 134, 0.14);
    background:
        linear-gradient(125deg, rgba(4, 123, 134, 0.07), transparent 44%),
        rgba(250, 254, 253, 0.78);
}

html[data-theme="light"] body.page-builder .builder-mode-switch-copy h2,
html[data-theme="light"] body.page-builder .strategy-card-head h2,
html[data-theme="light"] body.page-builder .strategy-wizard-step-head h3,
html[data-theme="light"] body.page-builder .table-asset-copy strong,
html[data-theme="light"] body.page-builder .table-metric {
    color: #0b2228;
}

html[data-theme="light"] body.page-builder .builder-mode-switch-copy p,
html[data-theme="light"] body.page-builder .strategy-card-head p,
html[data-theme="light"] body.page-builder .field-help,
html[data-theme="light"] body.page-builder .empty-chart-state,
html[data-theme="light"] body.page-builder .strategy-choice-copy span {
    color: rgba(11, 34, 40, 0.62);
}

html[data-theme="light"] body.page-builder .builder-mode-switch-copy .eyebrow,
html[data-theme="light"] body.page-builder .strategy-card-head .eyebrow,
html[data-theme="light"] body.page-builder .field-label,
html[data-theme="light"] body.page-builder .breadcrumbs a {
    color: #047b86;
}

html[data-theme="light"] body.page-builder .builder-workbench-head .eyebrow,
html[data-theme="light"] body.page-builder .strategy-confirmation-head .eyebrow,
html[data-theme="light"] body.page-builder .builder-output-panel > .strategy-card-head .eyebrow {
    border-color: rgba(4, 123, 134, 0.24);
    background: rgba(4, 123, 134, 0.07);
}

html[data-theme="light"] body.page-builder .builder-mode-switch-actions,
html[data-theme="light"] body.page-builder .strategy-wizard-progress,
html[data-theme="light"] body.page-builder .screener-table-wrap {
    border-color: rgba(4, 123, 134, 0.14);
    background: rgba(250, 254, 253, 0.72);
}

html[data-theme="light"] body.page-builder .builder-mode-switch-actions .secondary-button {
    color: rgba(11, 34, 40, 0.66);
}

html[data-theme="light"] body.page-builder .builder-mode-switch-actions .secondary-button:hover,
html[data-theme="light"] body.page-builder .builder-mode-switch-actions .secondary-button.is-active {
    border-color: rgba(4, 123, 134, 0.28);
    background: rgba(4, 123, 134, 0.09);
    color: #0b2228;
}

html[data-theme="light"] body.page-builder .builder-workspace-map {
    border-color: rgba(4, 123, 134, 0.14);
    background: rgba(250, 254, 253, 0.72);
}

html[data-theme="light"] body.page-builder .builder-workspace-map span {
    border-color: rgba(4, 123, 134, 0.1);
    color: rgba(11, 34, 40, 0.72);
}

html[data-theme="light"] body.page-builder .builder-workspace-map strong {
    color: #047b86;
}

html[data-theme="light"] body.page-builder .strategy-input,
html[data-theme="light"] body.page-builder .strategy-select,
html[data-theme="light"] body.page-builder input,
html[data-theme="light"] body.page-builder select,
html[data-theme="light"] body.page-builder textarea {
    border-color: rgba(4, 123, 134, 0.16);
    background: rgba(250, 254, 253, 0.9);
    color: #0b2228;
}

html[data-theme="light"] body.page-builder .primary-button,
html[data-theme="light"] body.page-builder .researcher-generate-button,
html[data-theme="light"] body.page-builder .strategy-wizard-progress-item.is-active span,
html[data-theme="light"] body.page-builder .strategy-wizard-progress-item.is-complete span {
    background: #047b86;
    border-color: #047b86;
    color: #fbfefd;
}

@media (max-width: 1040px) {
    body.page-builder .builder-mode-switch,
    body.page-builder .researcher-generator-grid {
        grid-template-columns: 1fr;
    }

    body.page-builder .builder-mode-switch-actions {
        width: 100%;
    }
}

@media (max-width: 720px) {
    body.page-builder .page-shell {
        width: calc(100% - 28px);
    }

    body.page-builder .builder-mode-switch,
    body.page-builder .detail-card,
    body.page-builder .researcher-generator-card,
    body.page-builder .researcher-score-card,
    body.page-builder .strategy-builder-card {
        padding: 16px;
    }

    body.page-builder .builder-mode-switch-copy h2 {
        font-size: 2.45rem;
    }

    body.page-builder .builder-mode-switch-actions {
        grid-template-columns: 1fr;
    }

    body.page-builder .builder-workspace-map {
        grid-template-columns: 1fr;
    }
}

/* Builder page v2: collapsed single-card workflow. */
body.page-builder .builder-simple-page {
    display: block;
}

body.page-builder .builder-workbench-card {
    position: relative;
    display: block;
    padding: 0;
    overflow: hidden;
    border-color: rgba(103, 232, 249, 0.18);
    background:
        linear-gradient(125deg, rgba(45, 212, 191, 0.08), transparent 36%),
        linear-gradient(180deg, rgba(6, 19, 23, 0.94), rgba(4, 13, 17, 0.98));
}

body.page-builder .builder-workbench-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 0%, rgba(45, 212, 191, 0.16), transparent 32%),
        repeating-linear-gradient(90deg, rgba(103, 232, 249, 0.045) 0 1px, transparent 1px 104px);
    opacity: 0.8;
}

body.page-builder .builder-workbench-card > * {
    position: relative;
    z-index: 1;
}

body.page-builder .builder-workbench-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 30px 22px;
    border-bottom: 1px solid rgba(103, 232, 249, 0.12);
}

body.page-builder .builder-workbench-head h2 {
    margin: 8px 0 0;
    color: #effcfb;
    font-family: var(--font-display);
    font-size: clamp(2.35rem, 5vw, 4.7rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: 0;
}

body.page-builder .builder-workbench-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

body.page-builder .builder-workbench-meta span {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    border: 1px solid rgba(103, 232, 249, 0.16);
    border-radius: 999px;
    padding: 0 14px;
    background: rgba(4, 16, 20, 0.72);
    color: rgba(239, 252, 251, 0.76);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.page-builder .builder-quick-form {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 22px 30px;
    border-bottom: 1px solid rgba(103, 232, 249, 0.12);
    background: rgba(4, 16, 20, 0.34);
}

body.page-builder .builder-quick-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
}

body.page-builder .builder-quick-form .strategy-confirmation-panel {
    margin-top: 0;
}

body.page-builder .builder-quick-form .strategy-card-head {
    margin: 0;
}

body.page-builder .builder-quick-form .researcher-generator-footer {
    justify-content: flex-end;
    margin: 0;
}

body.page-builder .builder-workbench-rule {
    padding: 24px 30px 30px;
}

body.page-builder .builder-workbench-card .strategy-wizard-shell {
    padding: 0;
    border: 0;
    background: transparent;
}

body.page-builder .builder-workbench-card .strategy-wizard-layout,
body.page-builder .builder-workbench-card .strategy-wizard-main {
    display: block;
}

body.page-builder .builder-workbench-card .strategy-wizard-progress {
    margin-bottom: 18px;
}

body.page-builder .builder-workbench-card .strategy-wizard-step {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

body.page-builder .builder-workbench-card .strategy-wizard-step-head {
    margin-bottom: 16px;
}

body.page-builder .builder-workbench-card .builder-subpanel,
body.page-builder .builder-workbench-card .strategy-confirmation-panel,
body.page-builder .builder-workbench-card .strategy-choice-card,
body.page-builder .builder-workbench-card .exit-rule-card {
    background: rgba(4, 16, 20, 0.66);
}

body.page-builder .builder-workbench-card .strategy-progress-inline-slot {
    margin: 0;
    padding: 0 30px;
}

body.page-builder .builder-workbench-card .strategy-progress-inline {
    margin: 0 0 18px;
}

body.page-builder .builder-output-stack {
    display: grid;
    border-top: 1px solid rgba(103, 232, 249, 0.14);
}

body.page-builder .builder-output-panel {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 24px 30px 30px;
    border-top: 1px solid rgba(103, 232, 249, 0.12);
    background: rgba(4, 16, 20, 0.28);
}

body.page-builder .builder-output-panel:first-child {
    border-top: 0;
}

body.page-builder .builder-output-panel .strategy-card-head {
    margin: 0;
}

body.page-builder .builder-output-panel .strategy-card-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

body.page-builder .builder-output-panel .empty-chart-state {
    min-height: 0;
    padding: 18px;
    border: 1px solid rgba(103, 232, 249, 0.12);
    border-radius: 8px;
    background: rgba(4, 16, 20, 0.58);
}

body.page-builder .builder-workbench-card .researcher-score-card,
body.page-builder .builder-workbench-card .researcher-generator-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

html[data-theme="light"] body.page-builder .builder-workbench-card {
    border-color: rgba(4, 123, 134, 0.18);
    background:
        linear-gradient(125deg, rgba(4, 123, 134, 0.08), transparent 36%),
        linear-gradient(180deg, rgba(250, 254, 253, 0.94), rgba(236, 247, 245, 0.98));
}

html[data-theme="light"] body.page-builder .builder-workbench-card::before {
    background:
        radial-gradient(circle at 8% 0%, rgba(4, 123, 134, 0.12), transparent 32%),
        repeating-linear-gradient(90deg, rgba(11, 34, 40, 0.04) 0 1px, transparent 1px 104px);
}

html[data-theme="light"] body.page-builder .builder-workbench-head,
html[data-theme="light"] body.page-builder .builder-quick-form,
html[data-theme="light"] body.page-builder .builder-output-stack,
html[data-theme="light"] body.page-builder .builder-output-panel {
    border-color: rgba(4, 123, 134, 0.14);
}

html[data-theme="light"] body.page-builder .builder-workbench-head h2 {
    color: #0b2228;
}

html[data-theme="light"] body.page-builder .builder-workbench-meta span,
html[data-theme="light"] body.page-builder .builder-output-panel .empty-chart-state {
    border-color: rgba(4, 123, 134, 0.14);
    background: rgba(250, 254, 253, 0.72);
    color: rgba(11, 34, 40, 0.7);
}

html[data-theme="light"] body.page-builder .builder-quick-form,
html[data-theme="light"] body.page-builder .builder-output-panel {
    background: rgba(250, 254, 253, 0.46);
}

html[data-theme="light"] body.page-builder .builder-workbench-card .builder-subpanel,
html[data-theme="light"] body.page-builder .builder-workbench-card .strategy-confirmation-panel,
html[data-theme="light"] body.page-builder .builder-workbench-card .strategy-choice-card,
html[data-theme="light"] body.page-builder .builder-workbench-card .exit-rule-card {
    background: rgba(250, 254, 253, 0.72);
}

@media (max-width: 1120px) {
    body.page-builder .builder-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body.page-builder .builder-workbench-head {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }

    body.page-builder .builder-workbench-meta {
        justify-content: flex-start;
    }

    body.page-builder .builder-quick-form,
    body.page-builder .builder-workbench-rule,
    body.page-builder .builder-output-panel {
        padding: 18px;
    }

    body.page-builder .builder-quick-grid {
        grid-template-columns: 1fr;
    }

    body.page-builder .builder-workbench-card .strategy-progress-inline-slot {
        padding: 0 18px;
    }
}

/* Signal detail v2: decision dossier for one setup. */
body.page-live-signal-detail {
    --sl-volt: #2dd4bf;
    --sl-volt-rgb: 45, 212, 191;
    --sl-copper: #ff6f61;
    --sl-cyan: #67e8f9;
    --sl-ink: #effcfb;
    --sl-ink-soft: rgba(239, 252, 251, 0.8);
    --sl-muted: rgba(239, 252, 251, 0.58);
    --sl-line: rgba(103, 232, 249, 0.14);
    --sl-line-strong: rgba(45, 212, 191, 0.32);
    --bg: #061013;
    --bg-elevated: #08171b;
    --bg-panel: #08171b;
    --panel: linear-gradient(180deg, rgba(7, 20, 24, 0.92), rgba(4, 13, 17, 0.98));
    --panel-border: rgba(103, 232, 249, 0.14);
    --panel-border-strong: rgba(45, 212, 191, 0.3);
    --text: #effcfb;
    --muted: rgba(239, 252, 251, 0.6);
    --muted-strong: rgba(239, 252, 251, 0.78);
    --accent: #2dd4bf;
    --accent-strong: #67e8f9;
    --accent-soft: rgba(45, 212, 191, 0.1);
    --positive: #78f7c4;
    --negative: #ff7c70;
    --warning: #ffd166;
    --shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
    --header-bg: rgba(4, 14, 18, 0.92);
    --header-border: rgba(103, 232, 249, 0.16);
    --body-bg-stock:
        radial-gradient(circle at 14% 0%, rgba(45, 212, 191, 0.15), transparent 30%),
        linear-gradient(120deg, rgba(255, 111, 97, 0.05), transparent 38%),
        repeating-linear-gradient(90deg, rgba(103, 232, 249, 0.032) 0 1px, transparent 1px 112px),
        repeating-linear-gradient(0deg, rgba(239, 252, 251, 0.023) 0 1px, transparent 1px 92px),
        linear-gradient(180deg, #061013 0%, #0b181c 46%, #05090d 100%);
    background: var(--body-bg-stock);
}

body.page-live-signal-detail::before {
    background:
        repeating-linear-gradient(118deg, rgba(103, 232, 249, 0.032) 0 1px, transparent 1px 10px),
        linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.08) 50%, transparent);
    opacity: 0.46;
}

body.page-live-signal-detail .page-shell {
    width: min(1320px, calc(100% - 48px));
    padding-top: 26px;
}

body.page-live-signal-detail .topbar {
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.08), transparent 30%),
        var(--header-bg);
    border-bottom-color: rgba(103, 232, 249, 0.16);
}

body.page-live-signal-detail .topbar::after {
    background: linear-gradient(90deg, transparent 0%, rgba(45, 212, 191, 0.85) 42%, rgba(103, 232, 249, 0.72) 56%, transparent 72%);
}

body.page-live-signal-detail .nav-link:hover,
body.page-live-signal-detail .nav-link.active {
    border-color: rgba(45, 212, 191, 0.28);
    background: rgba(45, 212, 191, 0.08);
    color: #effcfb;
}

body.page-live-signal-detail .theme-toggle-option:hover,
body.page-live-signal-detail .theme-toggle-option.is-active {
    background: #2dd4bf;
    color: #031315;
}

body.page-live-signal-detail .live-signal-detail-shell {
    display: grid;
    gap: 18px;
    padding: 6px 0 50px;
}

body.page-live-signal-detail .live-signal-detail-back {
    gap: 8px;
    margin: 0;
    color: rgba(239, 252, 251, 0.54);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.page-live-signal-detail .live-signal-detail-back a {
    color: #67e8f9;
}

body.page-live-signal-detail .live-signal-detail-hero,
body.page-live-signal-detail .live-signal-detail-panel,
body.page-live-signal-detail .live-signal-detail-stats > div,
body.page-live-signal-detail .live-signal-detail-chart-panel {
    border-color: rgba(103, 232, 249, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(125deg, rgba(45, 212, 191, 0.08), transparent 42%),
        rgba(5, 18, 22, 0.72);
    box-shadow: none;
}

body.page-live-signal-detail .live-signal-detail-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.42fr);
    align-items: stretch;
    gap: 24px;
    overflow: hidden;
    padding: 28px;
}

body.page-live-signal-detail .live-signal-detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.12), transparent 32% 76%, rgba(255, 111, 97, 0.08)),
        repeating-linear-gradient(90deg, rgba(103, 232, 249, 0.048) 0 1px, transparent 1px 88px);
    opacity: 0.62;
    mask-image: linear-gradient(90deg, black, transparent 96%);
}

body.page-live-signal-detail .live-signal-detail-hero-copy,
body.page-live-signal-detail .live-signal-detail-decision {
    position: relative;
    z-index: 1;
}

body.page-live-signal-detail .live-signal-detail-hero-copy {
    display: grid;
    align-content: center;
    gap: 12px;
    min-width: 0;
}

body.page-live-signal-detail .live-signals-kicker,
body.page-live-signal-detail .live-signal-detail-stats span,
body.page-live-signal-detail .live-signal-detail-decision small,
body.page-live-signal-detail .live-signal-detail-levels small,
body.page-live-signal-detail .live-signal-detail-proof small {
    color: #67e8f9;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.page-live-signal-detail .live-signal-detail-hero h1 {
    max-width: 10ch;
    margin: 0;
    color: #effcfb;
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.4rem);
    font-weight: 800;
    line-height: 0.84;
}

body.page-live-signal-detail .live-signal-detail-hero-copy > span {
    color: rgba(239, 252, 251, 0.64);
    font-size: 1rem;
}

body.page-live-signal-detail .live-signal-detail-hero-copy > strong {
    max-width: 64ch;
    color: #effcfb;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.22;
}

body.page-live-signal-detail .live-signal-detail-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding-top: 6px;
}

body.page-live-signal-detail .live-signal-detail-meta-strip span {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border: 1px solid rgba(103, 232, 249, 0.14);
    border-radius: 999px;
    background: rgba(4, 16, 20, 0.58);
    color: rgba(239, 252, 251, 0.68);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.page-live-signal-detail .live-signal-detail-decision {
    display: grid;
    gap: 10px;
    align-content: stretch;
}

body.page-live-signal-detail .live-signal-detail-score,
body.page-live-signal-detail .live-signal-detail-decision-grid span {
    border: 1px solid rgba(103, 232, 249, 0.14);
    border-radius: 7px;
    background: rgba(4, 16, 20, 0.72);
}

body.page-live-signal-detail .live-signal-detail-score {
    display: grid;
    gap: 5px;
    align-content: center;
    min-height: 150px;
    padding: 16px;
}

body.page-live-signal-detail .live-signal-detail-score span {
    color: #67e8f9;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.page-live-signal-detail .live-signal-detail-score strong {
    color: #effcfb;
    font-family: var(--font-display);
    font-size: 3.25rem;
    line-height: 0.9;
}

body.page-live-signal-detail .live-signal-detail-score small {
    color: rgba(239, 252, 251, 0.6);
}

body.page-live-signal-detail .live-signal-detail-decision-grid {
    display: grid;
    gap: 8px;
}

body.page-live-signal-detail .live-signal-detail-decision-grid span {
    display: grid;
    gap: 5px;
    padding: 11px 12px;
}

body.page-live-signal-detail .live-signal-detail-decision-grid strong {
    overflow: hidden;
    color: #effcfb;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-live-signal-detail .live-signal-detail-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body.page-live-signal-detail .live-signal-detail-actions a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(103, 232, 249, 0.16);
    border-radius: 6px;
    background: rgba(103, 232, 249, 0.045);
    color: #effcfb;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.page-live-signal-detail .live-signal-detail-actions a:hover,
body.page-live-signal-detail .live-signal-detail-actions a:focus-visible {
    border-color: rgba(45, 212, 191, 0.4);
    background: rgba(45, 212, 191, 0.1);
    color: #67e8f9;
}

body.page-live-signal-detail .live-signal-detail-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

body.page-live-signal-detail .live-signal-detail-stats > div {
    min-height: 92px;
    gap: 6px;
    padding: 14px;
}

body.page-live-signal-detail .live-signal-detail-stats strong {
    overflow: hidden;
    color: #effcfb;
    font-family: var(--font-display);
    font-size: 1.24rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-live-signal-detail .live-signal-detail-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 14px;
}

body.page-live-signal-detail .live-signal-detail-rail {
    display: grid;
    gap: 14px;
    align-content: start;
}

body.page-live-signal-detail .live-signal-detail-panel,
body.page-live-signal-detail .live-signal-detail-chart-panel {
    gap: 14px;
    padding: 18px;
}

body.page-live-signal-detail .live-signal-detail-thesis {
    min-height: 320px;
    align-content: start;
}

body.page-live-signal-detail .live-signal-detail-panel h2,
body.page-live-signal-detail .live-signals-section-head h2 {
    color: #effcfb;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0;
}

body.page-live-signal-detail .live-signal-detail-panel h2 {
    font-size: clamp(1.45rem, 3vw, 2.35rem);
    line-height: 0.98;
}

body.page-live-signal-detail .live-signal-thesis-grid,
body.page-live-signal-detail .live-signal-detail-warnings,
body.page-live-signal-detail .live-signal-detail-levels,
body.page-live-signal-detail .live-signal-detail-proof {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body.page-live-signal-detail .live-signal-thesis-grid span,
body.page-live-signal-detail .live-signal-detail-levels span,
body.page-live-signal-detail .live-signal-detail-proof span {
    display: grid;
    gap: 6px;
    min-height: 72px;
    align-content: center;
    padding: 12px;
    border: 1px solid rgba(103, 232, 249, 0.14);
    border-radius: 7px;
    background: rgba(4, 16, 20, 0.62);
}

body.page-live-signal-detail .live-signal-thesis-grid strong,
body.page-live-signal-detail .live-signal-detail-levels strong,
body.page-live-signal-detail .live-signal-detail-proof strong {
    color: #effcfb;
}

body.page-live-signal-detail .live-signal-detail-levels {
    grid-template-columns: 1fr;
}

body.page-live-signal-detail .live-signal-detail-levels .is-stop {
    border-color: rgba(255, 124, 112, 0.26);
}

body.page-live-signal-detail .live-signal-detail-levels .is-target {
    border-color: rgba(120, 247, 196, 0.26);
}

body.page-live-signal-detail .live-signal-detail-warnings {
    grid-template-columns: 1fr;
}

body.page-live-signal-detail .live-signal-detail-warnings span {
    padding: 10px 12px;
    border: 1px solid rgba(255, 209, 102, 0.2);
    border-radius: 7px;
    background: rgba(255, 209, 102, 0.07);
    color: rgba(239, 252, 251, 0.76);
}

body.page-live-signal-detail .live-signal-detail-checks {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.page-live-signal-detail .live-signal-detail-checks li {
    position: relative;
    padding: 0 0 0 18px;
    color: rgba(239, 252, 251, 0.72);
    line-height: 1.48;
}

body.page-live-signal-detail .live-signal-detail-checks li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2dd4bf;
}

body.page-live-signal-detail .live-signal-detail-panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

body.page-live-signal-detail .live-signal-detail-proof {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.page-live-signal-detail .live-signals-section-head {
    align-items: flex-end;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(103, 232, 249, 0.13);
}

body.page-live-signal-detail .live-signals-section-head span,
body.page-live-signal-detail .live-signals-empty,
body.page-live-signal-detail .live-signal-detail-disclaimer {
    color: rgba(239, 252, 251, 0.6);
}

body.page-live-signal-detail .live-signal-detail-tv-chart {
    min-height: 520px;
    border: 1px solid rgba(103, 232, 249, 0.14);
    border-radius: 7px;
    background: rgba(4, 16, 20, 0.78);
}

body.page-live-signal-detail .live-signal-detail-disclaimer {
    margin: 0;
    padding-top: 4px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
}

html[data-theme="light"] body.page-live-signal-detail {
    --sl-volt: #047b86;
    --sl-volt-rgb: 4, 123, 134;
    --sl-copper: #c75246;
    --sl-cyan: #0f9ca8;
    --sl-ink: #0b2228;
    --sl-muted: rgba(11, 34, 40, 0.6);
    --bg: #eef8f6;
    --bg-elevated: #fbfefd;
    --bg-panel: #f4fbf9;
    --panel: linear-gradient(180deg, rgba(250, 254, 253, 0.95), rgba(238, 248, 246, 0.98));
    --panel-border: rgba(4, 123, 134, 0.14);
    --text: #0b2228;
    --muted: rgba(11, 34, 40, 0.62);
    --muted-strong: rgba(11, 34, 40, 0.78);
    --accent: #047b86;
    --accent-strong: #0f9ca8;
    --positive: #007a4a;
    --negative: #b3433a;
    --warning: #815500;
    --header-bg: rgba(11, 34, 40, 0.94);
    --header-border: rgba(4, 123, 134, 0.24);
    --body-bg-stock:
        radial-gradient(circle at 14% 0%, rgba(4, 123, 134, 0.13), transparent 30%),
        linear-gradient(120deg, rgba(199, 82, 70, 0.045), transparent 38%),
        repeating-linear-gradient(90deg, rgba(11, 34, 40, 0.038) 0 1px, transparent 1px 112px),
        repeating-linear-gradient(0deg, rgba(11, 34, 40, 0.028) 0 1px, transparent 1px 92px),
        linear-gradient(180deg, #eef8f6 0%, #fbfefd 46%, #e8f1ef 100%);
    background: var(--body-bg-stock);
}

html[data-theme="light"] body.page-live-signal-detail .topbar {
    background:
        linear-gradient(90deg, rgba(4, 123, 134, 0.14), transparent 30%),
        #0b2228;
}

html[data-theme="light"] body.page-live-signal-detail .theme-toggle-option:hover,
html[data-theme="light"] body.page-live-signal-detail .theme-toggle-option.is-active {
    background: #047b86;
    color: #fbfefd;
}

html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-hero,
html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-panel,
html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-stats > div,
html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-chart-panel {
    border-color: rgba(4, 123, 134, 0.14);
    background:
        linear-gradient(125deg, rgba(4, 123, 134, 0.08), transparent 42%),
        rgba(250, 254, 253, 0.78);
}

html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-hero::before {
    background:
        linear-gradient(90deg, rgba(4, 123, 134, 0.11), transparent 32% 76%, rgba(199, 82, 70, 0.08)),
        repeating-linear-gradient(90deg, rgba(11, 34, 40, 0.046) 0 1px, transparent 1px 88px);
}

html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-hero h1,
html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-hero-copy > strong,
html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-score strong,
html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-decision-grid strong,
html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-stats strong,
html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-panel h2,
html[data-theme="light"] body.page-live-signal-detail .live-signals-section-head h2,
html[data-theme="light"] body.page-live-signal-detail .live-signal-thesis-grid strong,
html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-levels strong,
html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-proof strong {
    color: #0b2228;
}

html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-hero-copy > span,
html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-score small,
html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-checks li,
html[data-theme="light"] body.page-live-signal-detail .live-signals-section-head span,
html[data-theme="light"] body.page-live-signal-detail .live-signals-empty,
html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-disclaimer {
    color: rgba(11, 34, 40, 0.62);
}

html[data-theme="light"] body.page-live-signal-detail .live-signals-kicker,
html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-stats span,
html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-decision small,
html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-levels small,
html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-proof small,
html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-score span,
html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-back a {
    color: #047b86;
}

html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-meta-strip span,
html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-score,
html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-decision-grid span,
html[data-theme="light"] body.page-live-signal-detail .live-signal-thesis-grid span,
html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-levels span,
html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-proof span,
html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-tv-chart {
    border-color: rgba(4, 123, 134, 0.14);
    background: rgba(250, 254, 253, 0.72);
}

html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-meta-strip span {
    color: rgba(11, 34, 40, 0.64);
}

html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-actions a {
    border-color: rgba(4, 123, 134, 0.16);
    background: rgba(4, 123, 134, 0.055);
    color: #047b86;
}

html[data-theme="light"] body.page-live-signal-detail .live-signal-detail-warnings span {
    border-color: rgba(129, 85, 0, 0.18);
    background: rgba(129, 85, 0, 0.06);
    color: rgba(11, 34, 40, 0.72);
}

@media (max-width: 1060px) {
    body.page-live-signal-detail .live-signal-detail-hero,
    body.page-live-signal-detail .live-signal-detail-grid {
        grid-template-columns: 1fr;
    }

    body.page-live-signal-detail .live-signal-detail-stats,
    body.page-live-signal-detail .live-signal-detail-proof {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body.page-live-signal-detail .page-shell {
        width: calc(100% - 28px);
    }

    body.page-live-signal-detail .live-signal-detail-hero,
    body.page-live-signal-detail .live-signal-detail-panel,
    body.page-live-signal-detail .live-signal-detail-chart-panel {
        padding: 16px;
    }

    body.page-live-signal-detail .live-signal-detail-stats,
    body.page-live-signal-detail .live-signal-detail-proof,
    body.page-live-signal-detail .live-signal-thesis-grid,
    body.page-live-signal-detail .live-signal-detail-actions {
        grid-template-columns: 1fr;
    }

    body.page-live-signal-detail .live-signal-detail-score {
        min-height: 122px;
    }

    body.page-live-signal-detail .live-signal-detail-tv-chart {
        min-height: 420px;
    }
}

/* Accent guard: keep light-mode controls in the teal system, never the old volt-yellow identity. */
html[data-theme="light"] .theme-toggle-option:hover,
html[data-theme="light"] .theme-toggle-option.is-active,
html[data-theme="light"] .market-switch-pill.active,
html[data-theme="light"] .home-leaderboard-filter-tab.is-active,
html[data-theme="light"] .home-leaderboard-filter-tab:hover,
html[data-theme="light"] .home-live-market-option.is-active,
html[data-theme="light"] .home-live-market-option:hover,
html[data-theme="light"] .stock-chip-row .stock-chip.active,
html[data-theme="light"] .stock-chip-row button.active,
html[data-theme="light"] .stock-pagination-controls .stock-page-button.is-active,
html[data-theme="light"] .stock-pagination-controls button.is-active,
html[data-theme="light"] .stock-pagination-controls [aria-current="page"],
html[data-theme="light"] .strat-ai-page-button.is-active {
    background: #2dd4bf;
    color: #031315;
}

/* Final mobile lab overrides: no hero wash, readable active market tabs. */
html[data-theme="light"] body.page-lab {
    background: #f5fafb !important;
}

html[data-theme="light"] body.page-lab::before,
html[data-theme="light"] body.page-lab .lab-console-hero::before,
body.page-lab .lab-console-hero::before {
    display: none !important;
}

body.page-lab .lab-console-hero,
html[data-theme="light"] body.page-lab .lab-console-hero {
    border: 0 !important;
    background: transparent !important;
    overflow: visible;
}

html[data-theme="light"] body.page-lab .home-live-market-option.is-active,
html[data-theme="light"] body.page-lab .home-live-market-option:hover {
    border-color: rgba(4, 123, 134, 0.34) !important;
    background: #047b86 !important;
    color: #ffffff !important;
}

html[data-theme="light"] body.page-lab .home-live-market-option.is-active small,
html[data-theme="light"] body.page-lab .home-live-market-option:hover small {
    background: rgba(255, 255, 255, 0.92) !important;
    color: #047b86 !important;
}

/* Strat AI cockpit redesign */
body.page-strat-ai {
    --strat-ink: #051114;
    --strat-ink-2: #07191d;
    --strat-panel: rgba(7, 24, 29, 0.92);
    --strat-panel-strong: rgba(5, 17, 22, 0.98);
    --strat-line: rgba(80, 214, 223, 0.2);
    --strat-line-soft: rgba(129, 154, 166, 0.16);
    --strat-text: #eefcff;
    --strat-muted: rgba(198, 226, 232, 0.68);
    --strat-teal: #30d5d9;
    --strat-cyan: #7ddff4;
    --strat-green: #55dba3;
    --strat-blue: #75b8ff;
    --strat-red: #ff7f89;
    --strat-amber: #f0b96a;
    background:
        linear-gradient(rgba(85, 220, 226, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(85, 220, 226, 0.03) 1px, transparent 1px),
        linear-gradient(145deg, #061316 0%, #06191d 42%, #041114 100%) !important;
    background-size: 44px 44px, 44px 44px, auto;
}

body.page-strat-ai .page-shell {
    max-width: 1680px;
}

body.page-strat-ai .strat-ai-page {
    gap: 20px;
    padding: 10px 0 28px;
}

body.page-strat-ai .strat-ai-page,
body.page-strat-ai .strat-ai-page * {
    letter-spacing: 0;
}

body.page-strat-ai .strat-ai-cockpit,
body.page-strat-ai .strat-ai-terminal-shell,
body.page-strat-ai .strat-ai-today-panel,
body.page-strat-ai .strat-ai-latest-panel,
body.page-strat-ai .strat-ai-tabs-panel {
    border-radius: 8px;
    border: 1px solid var(--strat-line);
    background:
        linear-gradient(135deg, rgba(48, 213, 217, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(8, 30, 36, 0.94), rgba(4, 16, 20, 0.98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

body.page-strat-ai .strat-ai-cockpit {
    position: relative;
    overflow: hidden;
    padding: 30px;
}

body.page-strat-ai .strat-ai-cockpit::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(115deg, rgba(125, 223, 244, 0.08) 0 1px, transparent 1px 18px),
        linear-gradient(90deg, rgba(48, 213, 217, 0.16), transparent 24%, transparent 74%, rgba(117, 184, 255, 0.09));
    opacity: 0.45;
}

body.page-strat-ai .strat-ai-commandbar-head,
body.page-strat-ai .strat-ai-command-stats,
body.page-strat-ai .strat-ai-terminal-grid {
    position: relative;
    z-index: 1;
}

body.page-strat-ai .strat-ai-commandbar-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 20px;
    align-items: start;
}

body.page-strat-ai .strat-ai-title-lockup {
    display: grid;
    gap: 10px;
    align-items: start;
}

body.page-strat-ai .strat-ai-title-lockup .eyebrow,
body.page-strat-ai .strat-ai-today-head .eyebrow,
body.page-strat-ai .strat-ai-section-head .eyebrow {
    color: var(--strat-cyan);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0;
}

body.page-strat-ai .strat-ai-title-lockup h1 {
    max-width: 780px;
    color: var(--strat-text);
    font-size: 7.4rem;
    line-height: 0.78;
    letter-spacing: 0;
    text-transform: none;
}

body.page-strat-ai .strat-ai-title-lockup p {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--strat-muted);
    font-size: 1.08rem;
    line-height: 1.5;
}

body.page-strat-ai .strat-ai-command-sidecar {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--strat-line-soft);
    background: rgba(3, 13, 17, 0.62);
}

body.page-strat-ai .strat-ai-live-pill {
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    border-radius: 6px;
    border-color: rgba(48, 213, 217, 0.28);
    background: rgba(48, 213, 217, 0.1);
    color: var(--strat-text);
}

body.page-strat-ai .strat-ai-live-core {
    background: var(--strat-teal);
    box-shadow: 0 0 0 5px rgba(48, 213, 217, 0.12), 0 0 18px rgba(48, 213, 217, 0.5);
}

body.page-strat-ai .strat-ai-command-meta {
    display: grid;
    justify-content: stretch;
    gap: 6px;
    color: var(--strat-muted);
    font-size: 0.76rem;
}

body.page-strat-ai .strat-ai-command-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 22px;
    padding: 0;
    border: 1px solid var(--strat-line-soft);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(3, 13, 17, 0.58);
}

body.page-strat-ai .strat-ai-command-statline {
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 8px;
    min-height: 92px;
    padding: 14px;
    border-right: 1px solid var(--strat-line-soft);
}

body.page-strat-ai .strat-ai-command-statline:last-child {
    border-right: 0;
}

body.page-strat-ai .strat-ai-command-key {
    color: rgba(197, 227, 234, 0.62);
    font-size: 0.68rem;
}

body.page-strat-ai .strat-ai-command-key::before {
    content: "";
}

body.page-strat-ai .strat-ai-command-statline strong {
    color: var(--strat-text);
    font-size: 1.32rem;
    line-height: 1;
    overflow-wrap: anywhere;
}

body.page-strat-ai .strat-ai-terminal-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
    gap: 20px;
    align-items: stretch;
}

body.page-strat-ai .strat-ai-terminal-shell,
body.page-strat-ai .strat-ai-today-panel {
    min-height: 100%;
    padding: 16px;
}

body.page-strat-ai .strat-ai-terminal-shell::after {
    background: repeating-linear-gradient(180deg, rgba(125, 223, 244, 0.035) 0 1px, transparent 1px 7px);
    opacity: 0.32;
}

body.page-strat-ai .strat-ai-terminal-dots {
    display: none;
}

body.page-strat-ai .strat-ai-terminal-topline {
    border-bottom-color: var(--strat-line-soft);
}

body.page-strat-ai .strat-ai-terminal-title,
body.page-strat-ai .strat-ai-mini-meta,
body.page-strat-ai .strat-ai-panel-head {
    color: rgba(194, 224, 230, 0.64);
}

body.page-strat-ai .strat-ai-robot-console {
    min-height: 250px;
    border-radius: 6px;
    border-color: rgba(48, 213, 217, 0.16);
    background: rgba(1, 9, 12, 0.72);
}

body.page-strat-ai .strat-ai-terminal-line {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
}

body.page-strat-ai .strat-ai-terminal-prefix {
    flex: none;
    color: var(--strat-cyan);
}

body.page-strat-ai .strat-ai-terminal-prefix::before {
    color: rgba(48, 213, 217, 0.55);
}

body.page-strat-ai .strat-ai-terminal-copy {
    color: rgba(232, 252, 255, 0.9);
}

body.page-strat-ai .strat-ai-today-panel {
    display: grid;
    gap: 14px;
}

body.page-strat-ai .strat-ai-today-head {
    margin-bottom: 0;
}

body.page-strat-ai .strat-ai-today-summary {
    justify-content: flex-start;
}

body.page-strat-ai .strat-ai-today-chip,
body.page-strat-ai .strat-ai-activity-pill,
body.page-strat-ai .strat-ai-mini-pill,
body.page-strat-ai .strat-ai-card-badge,
body.page-strat-ai .strat-ai-table-badge,
body.page-strat-ai .strat-ai-info-token {
    border-radius: 6px;
}

body.page-strat-ai .strat-ai-today-chip {
    border-color: var(--strat-line-soft);
    background: rgba(4, 18, 23, 0.72);
}

body.page-strat-ai .strat-ai-today-card,
body.page-strat-ai .strat-ai-strategy-card,
body.page-strat-ai .strat-ai-feed-item,
body.page-strat-ai .strat-ai-ranked-item,
body.page-strat-ai .strat-ai-board-panel,
body.page-strat-ai .strat-ai-empty-state,
body.page-strat-ai .strat-ai-skeleton-card {
    border-radius: 8px;
    border-color: var(--strat-line-soft);
    background:
        linear-gradient(135deg, rgba(48, 213, 217, 0.045), transparent 36%),
        rgba(5, 18, 23, 0.78);
}

body.page-strat-ai .strat-ai-today-card:hover,
body.page-strat-ai .strat-ai-card-link:hover .strat-ai-strategy-card,
body.page-strat-ai .strat-ai-feed-link:hover .strat-ai-feed-item,
body.page-strat-ai .strat-ai-ranked-link:hover .strat-ai-ranked-item {
    transform: translateY(-2px);
    border-color: rgba(48, 213, 217, 0.35);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(48, 213, 217, 0.06);
}

body.page-strat-ai .strat-ai-latest-panel,
body.page-strat-ai .strat-ai-tabs-panel {
    padding: 18px;
}

body.page-strat-ai .strat-ai-section-head {
    margin-bottom: 14px;
}

body.page-strat-ai .strat-ai-section-head h2,
body.page-strat-ai .strat-ai-today-head h2 {
    color: var(--strat-text);
    font-size: 1.48rem;
}

body.page-strat-ai .strat-ai-latest-grid {
    gap: 14px;
}

body.page-strat-ai .strat-ai-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

body.page-strat-ai .strat-ai-metric-grid > div,
body.page-strat-ai .strat-ai-today-card-metrics > div {
    min-width: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
}

body.page-strat-ai .strat-ai-strategy-card h3,
body.page-strat-ai .strat-ai-feed-main strong,
body.page-strat-ai .strat-ai-ranked-item strong,
body.page-strat-ai .strat-ai-today-symbol strong {
    color: var(--strat-text);
}

body.page-strat-ai .strat-ai-note,
body.page-strat-ai .strat-ai-feed-summary,
body.page-strat-ai .strat-ai-ranked-copy span,
body.page-strat-ai .strat-ai-today-symbol span,
body.page-strat-ai .strat-ai-today-card-meta {
    color: var(--strat-muted);
}

body.page-strat-ai .strat-ai-tablist {
    border-radius: 8px;
    border-color: var(--strat-line-soft);
    background: rgba(2, 12, 16, 0.76);
}

body.page-strat-ai .strat-ai-tab {
    border-radius: 6px;
}

body.page-strat-ai #strat-ai-tab-feed-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[data-target="feed"],
body.page-strat-ai #strat-ai-tab-board-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[data-target="board"],
body.page-strat-ai #strat-ai-tab-all-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[data-target="all"] {
    background: rgba(48, 213, 217, 0.16);
    color: var(--strat-text);
    box-shadow: inset 0 0 0 1px rgba(48, 213, 217, 0.22);
}

body.page-strat-ai .strat-ai-history-list,
body.page-strat-ai .strat-ai-table-shell {
    border-radius: 8px;
    border: 1px solid var(--strat-line-soft);
    background: rgba(3, 13, 17, 0.62);
}

body.page-strat-ai .strat-ai-board-shell {
    gap: 14px;
}

body.page-strat-ai .strat-ai-board-panel {
    padding: 14px;
}

body.page-strat-ai .strat-ai-filter-bar {
    border-radius: 8px;
    border: 1px solid var(--strat-line-soft);
    background: rgba(3, 13, 17, 0.58);
}

body.page-strat-ai .strat-ai-filter-input,
body.page-strat-ai .strat-ai-filter-select {
    border-radius: 6px;
    border-color: var(--strat-line-soft);
    background: rgba(2, 11, 15, 0.84);
    color: var(--strat-text);
}

body.page-strat-ai .strat-ai-filter-reset,
body.page-strat-ai .strat-ai-page-button {
    border-radius: 6px;
}

body.page-strat-ai .strat-ai-page-button.is-active {
    background: var(--strat-teal);
    border-color: rgba(48, 213, 217, 0.72);
    color: #031315;
}

body.page-strat-ai .strat-ai-table thead th {
    border-bottom-color: var(--strat-line-soft);
    background: rgba(3, 13, 17, 0.94);
}

body.page-strat-ai .strat-ai-table tbody td {
    border-bottom-color: rgba(129, 154, 166, 0.11);
}

body.page-strat-ai .strat-ai-info-token.tone-ai,
body.page-strat-ai .strat-ai-mini-pill.tone-ai,
body.page-strat-ai .strat-ai-table-source-origin.tone-ai {
    background: rgba(48, 213, 217, 0.14);
    border-color: rgba(48, 213, 217, 0.28);
    color: #c7fbff;
    box-shadow: none;
}

body.page-strat-ai .strat-ai-card-badge.is-positive,
body.page-strat-ai .strat-ai-mini-pill.is-positive,
body.page-strat-ai .strat-ai-table-badge.is-positive {
    background: rgba(38, 142, 100, 0.28);
    border-color: rgba(85, 219, 163, 0.3);
    color: #bff8df;
}

body.page-strat-ai .strat-ai-card-badge.is-warning,
body.page-strat-ai .strat-ai-mini-pill.is-warning,
body.page-strat-ai .strat-ai-table-badge.is-warning {
    background: rgba(116, 77, 27, 0.3);
    border-color: rgba(240, 185, 106, 0.28);
    color: #f7d6a4;
}

body.page-strat-ai .strat-ai-card-badge.is-negative,
body.page-strat-ai .strat-ai-mini-pill.is-negative,
body.page-strat-ai .strat-ai-table-badge.is-negative {
    background: rgba(123, 39, 48, 0.32);
    border-color: rgba(255, 127, 137, 0.28);
    color: #ffc7cc;
}

html[data-theme="light"] body.page-strat-ai {
    --strat-ink: #f4fbfc;
    --strat-ink-2: #eaf6f8;
    --strat-panel: rgba(255, 255, 255, 0.9);
    --strat-panel-strong: #ffffff;
    --strat-line: rgba(17, 125, 136, 0.22);
    --strat-line-soft: rgba(22, 80, 91, 0.12);
    --strat-text: #082a31;
    --strat-muted: #5e7780;
    background:
        linear-gradient(rgba(17, 125, 136, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 125, 136, 0.045) 1px, transparent 1px),
        linear-gradient(145deg, #f5fbfc 0%, #eef8f9 52%, #fbfefe 100%) !important;
    background-size: 44px 44px, 44px 44px, auto;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-cockpit,
html[data-theme="light"] body.page-strat-ai .strat-ai-terminal-shell,
html[data-theme="light"] body.page-strat-ai .strat-ai-today-panel,
html[data-theme="light"] body.page-strat-ai .strat-ai-latest-panel,
html[data-theme="light"] body.page-strat-ai .strat-ai-tabs-panel,
html[data-theme="light"] body.page-strat-ai .strat-ai-today-card,
html[data-theme="light"] body.page-strat-ai .strat-ai-strategy-card,
html[data-theme="light"] body.page-strat-ai .strat-ai-feed-item,
html[data-theme="light"] body.page-strat-ai .strat-ai-ranked-item,
html[data-theme="light"] body.page-strat-ai .strat-ai-board-panel,
html[data-theme="light"] body.page-strat-ai .strat-ai-empty-state,
html[data-theme="light"] body.page-strat-ai .strat-ai-skeleton-card {
    border-color: var(--strat-line-soft);
    background:
        linear-gradient(135deg, rgba(35, 199, 217, 0.07), transparent 38%),
        rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(17, 88, 101, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-command-sidecar,
html[data-theme="light"] body.page-strat-ai .strat-ai-command-stats,
html[data-theme="light"] body.page-strat-ai .strat-ai-robot-console,
html[data-theme="light"] body.page-strat-ai .strat-ai-history-list,
html[data-theme="light"] body.page-strat-ai .strat-ai-table-shell,
html[data-theme="light"] body.page-strat-ai .strat-ai-filter-bar {
    border-color: var(--strat-line-soft);
    background: rgba(255, 255, 255, 0.74);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-title-lockup h1,
html[data-theme="light"] body.page-strat-ai .strat-ai-section-head h2,
html[data-theme="light"] body.page-strat-ai .strat-ai-today-head h2,
html[data-theme="light"] body.page-strat-ai .strat-ai-command-statline strong,
html[data-theme="light"] body.page-strat-ai .strat-ai-strategy-card h3,
html[data-theme="light"] body.page-strat-ai .strat-ai-feed-main strong,
html[data-theme="light"] body.page-strat-ai .strat-ai-ranked-item strong,
html[data-theme="light"] body.page-strat-ai .strat-ai-today-symbol strong,
html[data-theme="light"] body.page-strat-ai .strat-ai-terminal-copy {
    color: var(--strat-text);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-title-lockup p,
html[data-theme="light"] body.page-strat-ai .strat-ai-note,
html[data-theme="light"] body.page-strat-ai .strat-ai-feed-summary,
html[data-theme="light"] body.page-strat-ai .strat-ai-ranked-copy span,
html[data-theme="light"] body.page-strat-ai .strat-ai-today-symbol span,
html[data-theme="light"] body.page-strat-ai .strat-ai-today-card-meta {
    color: var(--strat-muted);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-live-pill,
html[data-theme="light"] body.page-strat-ai .strat-ai-tablist,
html[data-theme="light"] body.page-strat-ai .strat-ai-today-chip,
html[data-theme="light"] body.page-strat-ai .strat-ai-metric-grid > div,
html[data-theme="light"] body.page-strat-ai .strat-ai-today-card-metrics > div {
    background: rgba(230, 247, 250, 0.72);
    border-color: rgba(17, 125, 136, 0.16);
    color: #0f515b;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-filter-input,
html[data-theme="light"] body.page-strat-ai .strat-ai-filter-select {
    background: rgba(255, 255, 255, 0.96);
    color: var(--strat-text);
}

@media (max-width: 1180px) {
    body.page-strat-ai .strat-ai-commandbar-head,
    body.page-strat-ai .strat-ai-terminal-grid {
        grid-template-columns: 1fr;
    }

    body.page-strat-ai .strat-ai-command-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.page-strat-ai .strat-ai-command-statline:nth-child(3n) {
        border-right: 0;
    }

    body.page-strat-ai .strat-ai-title-lockup h1 {
        font-size: 5.8rem;
    }
}

@media (max-width: 760px) {
    body.page-strat-ai .strat-ai-cockpit,
    body.page-strat-ai .strat-ai-terminal-shell,
    body.page-strat-ai .strat-ai-today-panel,
    body.page-strat-ai .strat-ai-latest-panel,
    body.page-strat-ai .strat-ai-tabs-panel {
        padding: 14px;
    }

    body.page-strat-ai .strat-ai-title-lockup h1 {
        font-size: 4.2rem;
        line-height: 0.86;
    }

    body.page-strat-ai .strat-ai-title-lockup p {
        font-size: 1rem;
    }

    body.page-strat-ai .strat-ai-section-head h2,
    body.page-strat-ai .strat-ai-today-head h2 {
        font-size: 1.28rem;
    }

    body.page-strat-ai .strat-ai-command-stats,
    body.page-strat-ai .strat-ai-latest-grid,
    body.page-strat-ai .strat-ai-metric-grid {
        grid-template-columns: 1fr;
    }

    body.page-strat-ai .strat-ai-command-statline,
    body.page-strat-ai .strat-ai-command-statline:nth-child(3n) {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--strat-line-soft);
    }

    body.page-strat-ai .strat-ai-command-statline:last-child {
        border-bottom: 0;
    }

    body.page-strat-ai .strat-ai-terminal-line {
        grid-template-columns: 1fr;
    }

    body.page-strat-ai .strat-ai-tablist {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
    }

    body.page-strat-ai .strat-ai-today-summary {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Strategy follow/detail redesign */
body.page-strategy-follow,
body.page-strat-ai-detail {
    --follow-ink: #041014;
    --follow-panel: rgba(6, 23, 29, 0.94);
    --follow-panel-soft: rgba(9, 33, 40, 0.82);
    --follow-line: rgba(72, 205, 214, 0.2);
    --follow-line-soft: rgba(132, 176, 187, 0.14);
    --follow-text: #effdff;
    --follow-muted: rgba(200, 226, 233, 0.7);
    --follow-cyan: #55dce3;
    --follow-blue: #7db7ff;
    --follow-green: #66e0b4;
    --follow-red: #ff8a95;
    background:
        linear-gradient(rgba(72, 205, 214, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(72, 205, 214, 0.035) 1px, transparent 1px),
        linear-gradient(145deg, #051216 0%, #071f25 48%, #041015 100%) !important;
    background-size: 48px 48px, 48px 48px, auto;
}

body.page-strategy-follow .page-shell,
body.page-strat-ai-detail .page-shell {
    max-width: 1480px;
}

body.page-strategy-follow .page-shell *,
body.page-strat-ai-detail .page-shell * {
    letter-spacing: 0;
}

body.page-strategy-follow .breadcrumbs,
body.page-strat-ai-detail .breadcrumbs {
    margin-bottom: 14px;
    color: var(--follow-muted);
}

body.page-strategy-follow .breadcrumbs a,
body.page-strat-ai-detail .breadcrumbs a {
    color: var(--follow-cyan);
}

body.page-strategy-follow .detail-card,
body.page-strat-ai-detail .detail-card,
body.page-strategy-follow .strategy-hero-panel,
body.page-strat-ai-detail .strategy-hero-panel {
    border-radius: 8px;
    border: 1px solid var(--follow-line);
    background:
        linear-gradient(135deg, rgba(85, 220, 227, 0.075), transparent 34%),
        linear-gradient(180deg, rgba(8, 30, 37, 0.94), rgba(4, 17, 22, 0.98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

body.page-strategy-follow .eyebrow,
body.page-strat-ai-detail .eyebrow {
    color: var(--follow-cyan);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

body.page-strategy-follow .follow-hero-minimal {
    position: relative;
    overflow: hidden;
    padding: 0;
}

body.page-strategy-follow .follow-hero-minimal::before,
body.page-strat-ai-detail .strat-ai-detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(115deg, rgba(125, 223, 244, 0.08) 0 1px, transparent 1px 18px),
        linear-gradient(90deg, rgba(85, 220, 227, 0.12), transparent 42%);
    opacity: 0.42;
}

body.page-strategy-follow .follow-hero-bar {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
    align-items: start;
    gap: 22px;
    padding: 30px;
}

body.page-strategy-follow .follow-hero-minimal .strategy-hero-copy {
    display: grid;
    gap: 10px;
    max-width: 900px;
}

body.page-strategy-follow .follow-hero-minimal .strategy-hero-copy h1,
body.page-strat-ai-detail .strat-ai-detail-hero h1 {
    margin: 0;
    color: var(--follow-text);
    font-size: 3.2rem;
    line-height: 1;
    overflow-wrap: anywhere;
}

body.page-strategy-follow .strategy-follow-oneliner,
body.page-strat-ai-detail .strategy-hero-copy p,
body.page-strat-ai-detail .strat-ai-detail-description,
body.page-strat-ai-detail .strat-ai-detail-note {
    max-width: 820px;
    color: var(--follow-muted);
    font-size: 1rem;
    line-height: 1.55;
}

body.page-strategy-follow .strategy-hero-chip-row,
body.page-strat-ai-detail .strat-ai-detail-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

body.page-strategy-follow .strategy-hero-chip,
body.page-strategy-follow .validation-chip,
body.page-strat-ai-detail .strat-ai-detail-pill,
body.page-strategy-follow .mini-pill {
    min-height: 32px;
    border-radius: 6px;
    border: 1px solid var(--follow-line-soft);
    background: rgba(5, 20, 25, 0.78);
    color: #d8f9fc;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

body.page-strategy-follow .validation-chip {
    border-color: rgba(102, 224, 180, 0.22);
    color: #c6f8df;
}

body.page-strategy-follow .follow-primary-action {
    align-items: stretch;
    display: grid;
    gap: 10px;
    justify-content: stretch;
    min-width: 190px;
}

body.page-strategy-follow .follow-primary-action .secondary-button,
body.page-strategy-follow .follow-backtest-update-form .secondary-button,
body.page-strat-ai-detail .secondary-button {
    min-height: 42px;
    border-radius: 6px;
    border-color: rgba(85, 220, 227, 0.24);
    background: rgba(85, 220, 227, 0.1);
    color: var(--follow-text);
    box-shadow: none;
}

body.page-strategy-follow .follow-primary-action .secondary-button:hover,
body.page-strategy-follow .follow-backtest-update-form .secondary-button:hover,
body.page-strat-ai-detail .secondary-button:hover {
    border-color: rgba(85, 220, 227, 0.42);
    background: rgba(85, 220, 227, 0.18);
    color: var(--follow-text);
}

body.page-strategy-follow .save-strategy-button.is-saved {
    border-color: rgba(102, 224, 180, 0.24);
    background: rgba(102, 224, 180, 0.12);
    color: #c6f8df;
}

body.page-strategy-follow .follow-decision-card {
    position: relative;
    overflow: hidden;
    gap: 16px;
    padding: 20px;
}

body.page-strategy-follow .follow-decision-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--follow-cyan), var(--follow-blue));
}

body.page-strategy-follow .follow-decision-main,
body.page-strategy-follow .follow-decision-risk,
body.page-strategy-follow .follow-decision-proof {
    position: relative;
    z-index: 1;
}

body.page-strategy-follow .follow-decision-copy h2 {
    color: var(--follow-text);
    font-size: 2rem;
    line-height: 1;
}

body.page-strategy-follow .follow-decision-copy .eyebrow {
    width: max-content;
    min-width: 132px;
    justify-content: center;
    padding-inline: 14px;
    white-space: nowrap;
}

body.page-strategy-follow .follow-decision-copy p,
body.page-strategy-follow .follow-focus-copy span,
body.page-strategy-follow .follow-focus-copy small,
body.page-strategy-follow .follow-step-card p {
    color: var(--follow-muted);
}

body.page-strategy-follow .follow-decision-risk,
body.page-strategy-follow .follow-decision-proof {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--follow-line-soft);
    border-radius: 8px;
    background: var(--follow-line-soft);
}

body.page-strategy-follow .follow-decision-proof {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.page-strategy-follow .follow-decision-risk span,
body.page-strategy-follow .follow-decision-proof span {
    border: 0;
    border-radius: 0;
    background: rgba(5, 19, 24, 0.9);
}

body.page-strategy-follow .follow-decision-risk small,
body.page-strategy-follow .follow-decision-proof small,
body.page-strat-ai-detail .results-metric-card span,
body.page-strat-ai-detail .strategy-hero-stat span {
    color: rgba(191, 223, 230, 0.68);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

body.page-strategy-follow .follow-decision-risk strong,
body.page-strategy-follow .follow-decision-proof strong,
body.page-strat-ai-detail .results-metric-card strong,
body.page-strat-ai-detail .strategy-hero-stat strong {
    color: var(--follow-text);
    font-size: 1.08rem;
    line-height: 1.12;
}

body.page-strategy-follow .follow-focus-card,
body.page-strategy-follow .follow-active-collection-card,
body.page-strategy-follow .follow-trade-log-card,
body.page-strategy-follow .follow-details-card,
body.page-strategy-follow .follow-backtest-status-card {
    padding: 18px;
}

body.page-strategy-follow .follow-section-head,
body.page-strategy-follow .follow-trade-log-head,
body.page-strategy-follow .follow-backtest-status-card,
body.page-strategy-follow .follow-details-summary {
    align-items: center;
    border-bottom-color: var(--follow-line-soft);
}

body.page-strategy-follow .follow-active-panel {
    gap: 14px;
}

body.page-strategy-follow .follow-active-panel + .follow-active-panel {
    border-top-color: var(--follow-line-soft);
}

body.page-strategy-follow .follow-focus-overview {
    border-radius: 8px;
    border-color: var(--follow-line-soft);
    background:
        linear-gradient(90deg, rgba(85, 220, 227, 0.08), transparent 42%),
        rgba(5, 19, 24, 0.88);
}

body.page-strategy-follow .follow-active-index,
body.page-strategy-follow .follow-step-number {
    border-radius: 6px;
    background: var(--follow-cyan);
    color: #031315;
    box-shadow: 0 0 0 1px rgba(85, 220, 227, 0.22);
}

body.page-strategy-follow .follow-focus-copy strong {
    color: var(--follow-text);
}

body.page-strategy-follow .follow-beginner-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

body.page-strategy-follow .follow-step-card,
body.page-strategy-follow .follow-setup-detail-card,
body.page-strat-ai-detail .researcher-parameter-item,
body.page-strat-ai-detail .strat-ai-detail-definition-block {
    border-radius: 8px;
    border-color: var(--follow-line-soft);
    background: rgba(5, 19, 24, 0.82);
    box-shadow: none;
}

body.page-strategy-follow .follow-step-card strong,
body.page-strategy-follow .follow-setup-detail-card strong,
body.page-strat-ai-detail .researcher-parameter-item strong {
    color: var(--follow-text);
}

body.page-strategy-follow .follow-step-card .field-label,
body.page-strategy-follow .follow-setup-detail-card span,
body.page-strat-ai-detail .researcher-parameter-item span,
body.page-strat-ai-detail .strat-ai-detail-definition-block > span {
    color: var(--follow-cyan);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

body.page-strategy-follow .follow-chart-level {
    border-radius: 6px;
    border-color: var(--follow-line-soft);
    background: rgba(4, 17, 22, 0.9);
    color: #dffcff;
}

body.page-strategy-follow .follow-chart-level.is-entry {
    color: var(--follow-cyan);
}

body.page-strategy-follow .follow-chart-level.is-stop {
    color: var(--follow-red);
}

body.page-strategy-follow .follow-chart-level.is-target {
    color: var(--follow-green);
}

body.page-strategy-follow .follow-chart-level.is-timed {
    color: var(--follow-blue);
}

body.page-strategy-follow .follow-tv-chart,
body.page-strategy-follow .follow-tv-chart.is-fallback-chart {
    min-height: 520px;
    border-radius: 8px;
    border: 1px solid var(--follow-line-soft);
    background: #031115;
}

body.page-strategy-follow .follow-table-wrap,
body.page-strategy-follow .screener-table-wrap,
body.page-strat-ai-detail .screener-table-wrap,
body.page-strat-ai-detail .strat-ai-table-shell {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    border-radius: 8px;
    border: 1px solid var(--follow-line-soft);
    background: rgba(4, 17, 22, 0.86);
    box-shadow: none;
}

body.page-strategy-follow .screener-table,
body.page-strat-ai-detail .screener-table,
body.page-strat-ai-detail .strat-ai-table {
    min-width: 820px;
}

body.page-strategy-follow .screener-table th,
body.page-strat-ai-detail .screener-table th,
body.page-strat-ai-detail .strat-ai-table th {
    border-bottom: 1px solid var(--follow-line-soft);
    background: rgba(5, 20, 25, 0.96);
    color: rgba(205, 239, 244, 0.68);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

body.page-strategy-follow .screener-table td,
body.page-strat-ai-detail .screener-table td,
body.page-strat-ai-detail .strat-ai-table td {
    border-bottom-color: rgba(132, 176, 187, 0.1);
    color: rgba(236, 252, 255, 0.9);
}

body.page-strategy-follow .screener-table tbody tr:hover td,
body.page-strat-ai-detail .screener-table tbody tr:hover td,
body.page-strat-ai-detail .strat-ai-table tbody tr:hover td {
    background: rgba(85, 220, 227, 0.07);
}

body.page-strategy-follow .table-asset-copy strong,
body.page-strat-ai-detail .table-asset-copy strong {
    color: var(--follow-text);
}

body.page-strategy-follow .table-asset-copy span,
body.page-strat-ai-detail .table-asset-copy span,
body.page-strategy-follow .table-reason,
body.page-strat-ai-detail .table-reason {
    color: var(--follow-muted);
}

body.page-strategy-follow .table-metric.positive,
body.page-strat-ai-detail .table-metric.positive,
body.page-strat-ai-detail .positive {
    color: var(--follow-green);
}

body.page-strategy-follow .table-metric.negative,
body.page-strat-ai-detail .table-metric.negative,
body.page-strat-ai-detail .negative {
    color: var(--follow-red);
}

body.page-strategy-follow .follow-details-card {
    overflow: hidden;
    padding: 0;
}

body.page-strategy-follow .follow-details-summary {
    padding: 18px;
}

body.page-strategy-follow .follow-details-summary h2,
body.page-strategy-follow .follow-trade-log-head h2,
body.page-strategy-follow .follow-section-head h2,
body.page-strat-ai-detail .strategy-card-head h2,
body.page-strat-ai-detail .strat-ai-section-head h2 {
    margin: 0;
    color: var(--follow-text);
    font-size: 1.34rem;
    line-height: 1.15;
}

body.page-strategy-follow .follow-details-grid {
    padding: 16px 18px 18px;
}

body.page-strategy-follow .follow-backtest-status-card {
    display: flex;
    border-radius: 8px;
}

body.page-strategy-follow .follow-backtest-status-copy span,
body.page-strategy-follow .follow-backtest-status-copy small,
body.page-strategy-follow .follow-backtest-update-form small {
    color: var(--follow-muted);
}

body.page-strategy-follow .follow-backtest-status-copy strong {
    color: var(--follow-text);
}

body.page-strategy-follow .follow-shell-loading-card {
    min-height: 220px;
    padding: 22px;
}

body.page-strategy-follow .follow-shell-progress-value {
    color: var(--follow-cyan);
}

body.page-strategy-follow .follow-shell-progress {
    height: 6px;
    border-radius: 999px;
    background: rgba(85, 220, 227, 0.1);
    overflow: hidden;
}

body.page-strategy-follow .follow-shell-progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--follow-cyan), var(--follow-blue));
}

body.page-strat-ai-detail .strat-ai-detail-hero {
    position: relative;
    overflow: hidden;
    padding: 28px;
}

body.page-strat-ai-detail .strat-ai-detail-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: 24px;
}

body.page-strat-ai-detail .strat-ai-detail-hero-stats,
body.page-strat-ai-detail .results-metric-grid {
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--follow-line-soft);
    border-radius: 8px;
    background: var(--follow-line-soft);
}

body.page-strat-ai-detail .strat-ai-detail-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.page-strat-ai-detail .results-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.page-strat-ai-detail .strategy-hero-stat,
body.page-strat-ai-detail .results-metric-card {
    border: 0;
    border-radius: 0;
    background: rgba(5, 19, 24, 0.9);
}

body.page-strat-ai-detail .strat-ai-detail-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 18px;
}

body.page-strat-ai-detail .strat-ai-footprint-window {
    border-radius: 6px;
    border-color: var(--follow-line-soft);
    background: rgba(5, 19, 24, 0.78);
    color: var(--follow-text);
}

body.page-strat-ai-detail .strat-ai-footprint-window.is-active {
    border-color: rgba(85, 220, 227, 0.42);
    background: rgba(85, 220, 227, 0.14);
    color: var(--follow-text);
}

body.page-strat-ai-detail .strat-ai-detail-tablist,
body.page-strat-ai-detail .strat-ai-tablist {
    border-radius: 8px;
    border: 1px solid var(--follow-line-soft);
    background: rgba(5, 19, 24, 0.82);
}

body.page-strat-ai-detail .strat-ai-detail-tab {
    border-radius: 6px;
    color: var(--follow-muted);
}

body.page-strat-ai-detail #strat-ai-detail-tab-symbols-toggle:checked ~ .strat-ai-detail-tablist .strat-ai-detail-tab[data-target="symbols"],
body.page-strat-ai-detail #strat-ai-detail-tab-trades-toggle:checked ~ .strat-ai-detail-tablist .strat-ai-detail-tab[data-target="trades"] {
    background: rgba(85, 220, 227, 0.16);
    color: var(--follow-text);
}

body.page-strat-ai-detail .strat-ai-symbol-dialog {
    border-radius: 8px;
    border-color: var(--follow-line);
    background: linear-gradient(180deg, rgba(6, 23, 29, 0.98), rgba(4, 17, 22, 0.99));
}

body.page-strat-ai-detail .strat-ai-symbol-dialog-close,
body.page-strat-ai-detail .strat-ai-symbol-stat,
body.page-strat-ai-detail .strat-ai-symbol-chart-shell,
body.page-strat-ai-detail .strat-ai-symbol-trade-table-wrap {
    border-radius: 8px;
    border-color: var(--follow-line-soft);
    background: rgba(5, 19, 24, 0.9);
}

html[data-theme="light"] body.page-strategy-follow,
html[data-theme="light"] body.page-strat-ai-detail {
    --follow-ink: #f4fbfc;
    --follow-panel: rgba(255, 255, 255, 0.92);
    --follow-panel-soft: rgba(240, 250, 252, 0.88);
    --follow-line: rgba(17, 125, 136, 0.22);
    --follow-line-soft: rgba(22, 80, 91, 0.13);
    --follow-text: #082a31;
    --follow-muted: #5e7780;
    background:
        linear-gradient(rgba(17, 125, 136, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 125, 136, 0.045) 1px, transparent 1px),
        linear-gradient(145deg, #f5fbfc 0%, #edf8fa 52%, #fbfefe 100%) !important;
    background-size: 48px 48px, 48px 48px, auto;
}

html[data-theme="light"] body.page-strategy-follow .detail-card,
html[data-theme="light"] body.page-strat-ai-detail .detail-card,
html[data-theme="light"] body.page-strategy-follow .strategy-hero-panel,
html[data-theme="light"] body.page-strat-ai-detail .strategy-hero-panel {
    background:
        linear-gradient(135deg, rgba(35, 199, 217, 0.07), transparent 38%),
        rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 44px rgba(17, 88, 101, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] body.page-strategy-follow .strategy-hero-chip,
html[data-theme="light"] body.page-strategy-follow .validation-chip,
html[data-theme="light"] body.page-strategy-follow .mini-pill,
html[data-theme="light"] body.page-strat-ai-detail .strat-ai-detail-pill,
html[data-theme="light"] body.page-strategy-follow .follow-step-card,
html[data-theme="light"] body.page-strategy-follow .follow-setup-detail-card,
html[data-theme="light"] body.page-strategy-follow .follow-decision-risk span,
html[data-theme="light"] body.page-strategy-follow .follow-decision-proof span,
html[data-theme="light"] body.page-strat-ai-detail .researcher-parameter-item,
html[data-theme="light"] body.page-strat-ai-detail .strat-ai-detail-definition-block,
html[data-theme="light"] body.page-strat-ai-detail .strategy-hero-stat,
html[data-theme="light"] body.page-strat-ai-detail .results-metric-card {
    background: rgba(255, 255, 255, 0.78);
    color: #0f515b;
}

html[data-theme="light"] body.page-strategy-follow .follow-focus-overview,
html[data-theme="light"] body.page-strategy-follow .follow-chart-level,
html[data-theme="light"] body.page-strategy-follow .screener-table-wrap,
html[data-theme="light"] body.page-strat-ai-detail .screener-table-wrap,
html[data-theme="light"] body.page-strat-ai-detail .strat-ai-table-shell {
    background: rgba(255, 255, 255, 0.76);
}

html[data-theme="light"] body.page-strategy-follow .screener-table th,
html[data-theme="light"] body.page-strat-ai-detail .screener-table th,
html[data-theme="light"] body.page-strat-ai-detail .strat-ai-table th {
    background: rgba(232, 248, 251, 0.96);
    color: #587780;
}

html[data-theme="light"] body.page-strategy-follow .screener-table td,
html[data-theme="light"] body.page-strat-ai-detail .screener-table td,
html[data-theme="light"] body.page-strat-ai-detail .strat-ai-table td {
    color: #12343b;
}

html[data-theme="light"] body.page-strategy-follow .follow-tv-chart,
html[data-theme="light"] body.page-strategy-follow .follow-tv-chart.is-fallback-chart {
    background: #f4fbfc;
}

@media (max-width: 1100px) {
    body.page-strategy-follow .follow-decision-proof,
    body.page-strategy-follow .follow-beginner-steps,
    body.page-strat-ai-detail .results-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.page-strat-ai-detail .strat-ai-detail-hero-grid,
    body.page-strat-ai-detail .strat-ai-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    body.page-strategy-follow .follow-hero-bar {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    body.page-strategy-follow .follow-hero-minimal .strategy-hero-copy h1,
    body.page-strat-ai-detail .strat-ai-detail-hero h1 {
        font-size: 2.2rem;
    }

    body.page-strategy-follow .follow-primary-action {
        grid-template-columns: 1fr;
        width: 100%;
    }

    body.page-strategy-follow .follow-decision-main,
    body.page-strategy-follow .follow-backtest-status-card,
    body.page-strategy-follow .follow-section-head,
    body.page-strategy-follow .follow-trade-log-head,
    body.page-strategy-follow .follow-details-summary,
    body.page-strategy-follow .follow-focus-overview {
        align-items: stretch;
        flex-direction: column;
    }

    body.page-strategy-follow .follow-decision-status,
    body.page-strategy-follow .follow-focus-status {
        justify-content: flex-start;
    }

    body.page-strategy-follow .follow-decision-risk,
    body.page-strategy-follow .follow-decision-proof,
    body.page-strategy-follow .follow-beginner-steps,
    body.page-strat-ai-detail .strat-ai-detail-hero-stats,
    body.page-strat-ai-detail .results-metric-grid {
        grid-template-columns: 1fr;
    }

    body.page-strategy-follow .follow-tv-chart,
    body.page-strategy-follow .follow-tv-chart.is-fallback-chart {
        min-height: 420px;
    }
}

@media (max-width: 560px) {
    body.page-strategy-follow .follow-hero-minimal .strategy-hero-copy h1,
    body.page-strat-ai-detail .strat-ai-detail-hero h1 {
        font-size: 1.85rem;
    }

    body.page-strategy-follow .follow-decision-copy h2 {
        font-size: 1.45rem;
    }

    body.page-strategy-follow .follow-focus-stock {
        align-items: flex-start;
    }

    body.page-strategy-follow .follow-active-index {
        width: 34px;
        height: 34px;
    }
}

/* Home tab embedding and final readability fixes. */
html[data-theme="light"] body.page-lab .home-live-market-option.is-active > span,
html[data-theme="light"] body.page-lab .home-live-market-option:hover > span {
    color: #ffffff !important;
}

body.page-lab .home-tab-panel-strat-ai {
    min-width: 0;
}

body.page-lab .home-strat-ai-embed {
    min-height: 760px;
    overflow: hidden;
    border: 1px solid rgba(4, 123, 134, 0.14);
    border-radius: 8px;
    background: rgba(250, 254, 253, 0.84);
}

body.page-lab .home-strat-ai-embed iframe {
    display: block;
    width: 100%;
    height: min(1180px, 86vh);
    min-height: 760px;
    border: 0;
    background: transparent;
}

body.page-strat-ai-embed,
html[data-theme="light"] body.page-strat-ai-embed {
    background: transparent !important;
}

body.page-strat-ai-embed::before,
body.page-strat-ai-embed .topbar,
body.page-strat-ai-embed .site-footer {
    display: none !important;
}

body.page-strat-ai-embed .page-shell {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}

body.page-strat-ai-embed .strat-ai-page {
    padding: 0 !important;
}

@media (max-width: 760px) {
    body.page-lab .home-strat-ai-embed,
    body.page-lab .home-strat-ai-embed iframe {
        min-height: 900px;
    }
}

/* Minimal public shell: header stays quiet, navigation lives in the footer. */
body .topbar-shell.has-no-primary-nav {
    grid-template-columns: minmax(0, 1fr) auto;
}

body .topbar-shell.has-no-primary-nav .topbar-center,
body .topbar-shell.has-no-primary-nav .mobile-menu-toggle {
    display: none !important;
}

body .topbar-shell.has-no-primary-nav .topbar-right {
    justify-self: end;
}

body .site-footer-shell nav {
    display: grid;
    gap: 8px;
    justify-items: start;
    justify-self: end;
}

body .site-footer-shell a {
    line-height: 1.2;
}

/* Shared footer v2: category-led navigation with separated risk copy. */
body .site-footer-shell {
    width: min(1240px, calc(100% - 48px));
    grid-template-columns: 1fr;
    grid-template-areas: none;
    align-items: start;
    gap: 22px;
    padding: 30px 0 32px;
}

html[data-theme="light"] body .site-footer-shell {
    grid-template-areas: none;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 30px 0 32px;
}

html[data-theme="light"] body .site-footer-shell > div,
html[data-theme="light"] body .site-footer-shell > nav,
html[data-theme="light"] body .site-footer-shell > p {
    grid-area: auto;
}

html[data-theme="light"] body .site-footer-shell .site-footer-nav {
    justify-self: stretch;
    justify-content: start;
    gap: clamp(28px, 4.2vw, 64px);
}

body .site-footer-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(133, 231, 236, 0.24);
}

body .site-footer-brand {
    display: grid;
    gap: 5px;
    max-width: 600px;
    min-width: 0;
}

body .site-footer-brand strong {
    font-size: 1.18rem;
    line-height: 1.1;
}

body .site-footer-brand p,
body .site-footer-risk p {
    min-width: 0;
    margin: 0;
    color: rgba(230, 244, 248, 0.78);
    font-size: 0.86rem;
    line-height: 1.5;
    white-space: normal;
}

body .site-footer-brand p {
    max-width: 58ch;
}

body .site-footer-main {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: clamp(44px, 7vw, 94px);
}

body .site-footer-shell .site-footer-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(116px, max-content));
    gap: clamp(28px, 4.2vw, 64px);
    flex: 1 1 auto;
    max-width: 720px;
    justify-content: start;
    justify-self: auto;
    justify-items: start;
    padding-top: 0;
}

body .site-footer-link-group {
    display: grid;
    align-content: start;
    gap: 7px;
    min-width: 0;
}

body .site-footer-link-group h2,
body .site-footer-risk h2 {
    margin: 0 0 7px;
    color: rgba(246, 253, 255, 0.96);
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.05;
}

body .site-footer-link-group a {
    color: rgba(230, 244, 248, 0.74);
    font-size: 0.82rem;
    font-weight: 800;
}

body .site-footer-link-group a:hover {
    color: #ffffff;
}

body .site-footer-risk {
    display: grid;
    gap: 7px;
    flex: 0 1 360px;
    max-width: 360px;
    margin-left: auto;
    justify-self: auto;
}

body .site-footer-risk p {
    color: rgba(230, 244, 248, 0.72);
    font-size: 0.82rem;
    line-height: 1.56;
}

@media (max-width: 900px) {
    body .site-footer-main {
        flex-direction: column;
        gap: 24px;
    }

    body .site-footer-risk {
        flex-basis: auto;
        margin-left: 0;
        max-width: 680px;
    }

    body .site-footer-shell .site-footer-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        justify-content: start;
        gap: 18px;
    }
}

@media (max-width: 720px) {
    body .site-footer-shell {
        width: calc(100vw - 28px);
        max-width: calc(100vw - 28px);
    }

    body .site-footer-top,
    body .site-footer-main,
    body .site-footer-brand,
    body .site-footer-risk {
        width: 100%;
        max-width: 100%;
    }

    body .site-footer-brand p,
    body .site-footer-risk p {
        width: 100%;
        max-width: 100%;
        white-space: normal !important;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    body .site-footer-shell .site-footer-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 28px;
    }
}

@media (max-width: 440px) {
    body .site-footer-shell .site-footer-nav {
        grid-template-columns: 1fr;
    }
}

/* Builder workbench refinement: compact inputs, clipped results tape. */
.strategy-leaderboard-shell:not(.is-expanded) .strategy-leaderboard-row[data-preview-hidden="true"] {
    display: none;
}

body.page-builder .builder-workbench-card {
    border-radius: 6px;
    border-color: rgba(103, 232, 249, 0.22);
    background:
        linear-gradient(110deg, rgba(45, 212, 191, 0.1), transparent 34%),
        linear-gradient(180deg, rgba(5, 18, 22, 0.96), rgba(3, 12, 16, 0.99));
}

body.page-builder .builder-workbench-card::before {
    background:
        radial-gradient(circle at 12% -8%, rgba(45, 212, 191, 0.18), transparent 30%),
        linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.05), transparent),
        repeating-linear-gradient(90deg, rgba(103, 232, 249, 0.052) 0 1px, transparent 1px 96px);
    opacity: 0.78;
}

body.page-builder .builder-workbench-head {
    align-items: center;
    padding: 30px 34px 24px;
}

body.page-builder .builder-workbench-head h2 {
    font-size: clamp(3rem, 7vw, 6.8rem);
    line-height: 0.82;
}

body.page-builder .builder-workbench-meta span {
    min-height: 32px;
    border-radius: 6px;
    background: rgba(4, 16, 20, 0.76);
}

body.page-builder .builder-quick-form {
    gap: 16px;
    padding: 24px 34px 28px;
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.04), transparent 48%),
        rgba(4, 16, 20, 0.26);
}

body.page-builder .builder-quick-grid {
    grid-template-columns:
        minmax(142px, 0.72fr)
        minmax(180px, 1fr)
        minmax(180px, 1fr)
        minmax(136px, 0.72fr)
        minmax(150px, 0.78fr);
    gap: 12px;
}

body.page-builder .builder-quick-form .strategy-field {
    min-width: 0;
}

body.page-builder .builder-quick-form .strategy-input,
body.page-builder .builder-quick-form .strategy-select {
    min-height: 48px;
    border-radius: 6px;
    background-color: rgba(2, 11, 14, 0.76);
}

body.page-builder .strategy-confirmation-panel.strategy-field-full {
    padding: 0;
    border: 0;
    background: transparent;
}

body.page-builder .strategy-confirmation-head {
    min-height: 34px;
}

body.page-builder .builder-quick-form .researcher-generator-footer {
    padding-top: 12px;
    border-top: 1px solid rgba(103, 232, 249, 0.1);
}

body.page-builder .builder-output-stack {
    border-top-color: rgba(103, 232, 249, 0.16);
}

body.page-builder .builder-output-panel {
    gap: 18px;
    padding: 26px 34px 32px;
    background:
        linear-gradient(90deg, rgba(103, 232, 249, 0.035), transparent 56%),
        rgba(4, 16, 20, 0.3);
}

body.page-builder .builder-output-panel .strategy-card-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

body.page-builder .builder-output-panel .strategy-card-head h2 {
    font-size: clamp(1.55rem, 2.6vw, 2.25rem);
}

body.page-builder .builder-results-count {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(103, 232, 249, 0.16);
    border-radius: 6px;
    background: rgba(4, 16, 20, 0.7);
    color: rgba(239, 252, 251, 0.68);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.page-builder .strategy-leaderboard-shell {
    gap: 12px;
}

body.page-builder .strategy-leaderboard-list {
    gap: 10px;
}

body.page-builder .strategy-leaderboard-row {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 6px;
    border-color: rgba(103, 232, 249, 0.12);
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.08), transparent 34%),
        rgba(3, 13, 17, 0.78);
}

body.page-builder .strategy-leaderboard-rank span {
    min-width: 40px;
    min-height: 40px;
    border-radius: 6px;
    color: #67e8f9;
}

body.page-builder .strategy-leaderboard-head {
    align-items: center;
}

body.page-builder .strategy-leaderboard-title strong {
    font-size: 0.98rem;
}

body.page-builder .strategy-leaderboard-title span {
    font-size: 0.82rem;
}

body.page-builder .strategy-leaderboard-score-block {
    min-width: 78px;
    min-height: 50px;
    border-radius: 6px;
    box-shadow: none;
}

body.page-builder .strategy-leaderboard-metrics {
    grid-template-columns: repeat(5, minmax(92px, 1fr));
    gap: 8px;
}

body.page-builder .strategy-leaderboard-metric {
    padding: 10px 11px;
    border-radius: 6px;
    box-shadow: none;
}

body.page-builder .strategy-leaderboard-more {
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

body.page-builder .strategy-leaderboard-more-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
}

body.page-builder .strategy-leaderboard-more-button span:last-child {
    color: rgba(103, 232, 249, 0.68);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
}

html[data-theme="light"] body.page-builder .builder-workbench-card {
    border-color: rgba(4, 123, 134, 0.2);
    background:
        linear-gradient(110deg, rgba(4, 123, 134, 0.1), transparent 34%),
        linear-gradient(180deg, rgba(250, 254, 253, 0.98), rgba(232, 244, 242, 0.98));
}

html[data-theme="light"] body.page-builder .builder-workbench-card::before {
    background:
        radial-gradient(circle at 12% -8%, rgba(4, 123, 134, 0.14), transparent 30%),
        linear-gradient(90deg, transparent, rgba(4, 123, 134, 0.06), transparent),
        repeating-linear-gradient(90deg, rgba(11, 34, 40, 0.045) 0 1px, transparent 1px 96px);
}

html[data-theme="light"] body.page-builder .builder-workbench-meta span,
html[data-theme="light"] body.page-builder .builder-results-count {
    border-color: rgba(4, 123, 134, 0.14);
    background: rgba(250, 254, 253, 0.78);
    color: rgba(11, 34, 40, 0.7);
}

html[data-theme="light"] body.page-builder .builder-quick-form,
html[data-theme="light"] body.page-builder .builder-output-panel {
    background:
        linear-gradient(90deg, rgba(4, 123, 134, 0.045), transparent 56%),
        rgba(250, 254, 253, 0.56);
}

html[data-theme="light"] body.page-builder .builder-quick-form .strategy-input,
html[data-theme="light"] body.page-builder .builder-quick-form .strategy-select {
    background-color: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] body.page-builder .strategy-leaderboard-row {
    border-color: rgba(4, 123, 134, 0.12);
    background:
        linear-gradient(90deg, rgba(4, 123, 134, 0.07), transparent 34%),
        rgba(255, 255, 255, 0.74);
    box-shadow: none;
}

html[data-theme="light"] body.page-builder .strategy-leaderboard-more-button span:last-child {
    color: rgba(4, 123, 134, 0.68);
}

@media (max-width: 1120px) {
    body.page-builder .builder-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body.page-builder .builder-workbench-head,
    body.page-builder .builder-output-panel .strategy-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    body.page-builder .builder-workbench-head,
    body.page-builder .builder-quick-form,
    body.page-builder .builder-output-panel {
        padding-left: 18px;
        padding-right: 18px;
    }

    body.page-builder .builder-workbench-head h2 {
        font-size: clamp(2.5rem, 18vw, 4rem);
    }

    body.page-builder .builder-quick-grid,
    body.page-builder .strategy-leaderboard-row,
    body.page-builder .strategy-leaderboard-metrics {
        grid-template-columns: 1fr;
    }

    body.page-builder .strategy-leaderboard-rank {
        justify-content: flex-start;
    }
}

/* Builder light-mode material refresh: solid ledger surfaces, no washed cyan cards. */
html[data-theme="light"] body.page-builder {
    --builder-ink: #10272d;
    --builder-muted: #5a7178;
    --builder-faint: #789098;
    --builder-line: rgba(28, 75, 82, 0.16);
    --builder-line-strong: rgba(4, 123, 134, 0.3);
    --builder-accent: #047b86;
    --builder-accent-soft: #dcefed;
    --builder-page: #edf5f2;
    --builder-paper: #fbfcf9;
    --builder-panel: #f3f8f5;
    --builder-card: #ffffff;
    --body-bg-stock:
        radial-gradient(circle at 12% -6%, rgba(4, 123, 134, 0.12), transparent 28%),
        repeating-linear-gradient(90deg, rgba(16, 39, 45, 0.035) 0 1px, transparent 1px 118px),
        linear-gradient(180deg, #f7fbf8 0%, var(--builder-page) 44%, #e6f0ed 100%);
    background: var(--body-bg-stock);
}

html[data-theme="light"] body.page-builder .builder-workbench-card {
    border-color: var(--builder-line-strong);
    background: var(--builder-paper);
    box-shadow: 0 28px 70px rgba(16, 39, 45, 0.12);
}

html[data-theme="light"] body.page-builder .builder-workbench-card::before {
    background:
        linear-gradient(90deg, rgba(4, 123, 134, 0.08), transparent 34%),
        repeating-linear-gradient(90deg, rgba(16, 39, 45, 0.035) 0 1px, transparent 1px 96px);
    opacity: 0.7;
}

html[data-theme="light"] body.page-builder .builder-workbench-head,
html[data-theme="light"] body.page-builder .builder-quick-form,
html[data-theme="light"] body.page-builder .builder-output-stack,
html[data-theme="light"] body.page-builder .builder-output-panel {
    border-color: var(--builder-line);
}

html[data-theme="light"] body.page-builder .builder-workbench-head,
html[data-theme="light"] body.page-builder .builder-output-panel {
    background: var(--builder-panel);
}

html[data-theme="light"] body.page-builder .builder-quick-form {
    background: #fbfcf9;
}

html[data-theme="light"] body.page-builder .builder-workbench-head h2,
html[data-theme="light"] body.page-builder .builder-output-panel .strategy-card-head h2,
html[data-theme="light"] body.page-builder .strategy-leaderboard-title strong,
html[data-theme="light"] body.page-builder .strategy-leaderboard-score-block strong,
html[data-theme="light"] body.page-builder .strategy-leaderboard-metric strong {
    color: var(--builder-ink);
}

html[data-theme="light"] body.page-builder .builder-workbench-meta span,
html[data-theme="light"] body.page-builder .builder-results-count,
html[data-theme="light"] body.page-builder .builder-workbench-head .eyebrow,
html[data-theme="light"] body.page-builder .strategy-confirmation-head .eyebrow,
html[data-theme="light"] body.page-builder .builder-output-panel > .strategy-card-head .eyebrow {
    border-color: rgba(4, 123, 134, 0.24);
    background: #e7f3f1;
    color: #036b75;
}

html[data-theme="light"] body.page-builder .builder-quick-form .strategy-input,
html[data-theme="light"] body.page-builder .builder-quick-form .strategy-select,
html[data-theme="light"] body.page-builder .strategy-input,
html[data-theme="light"] body.page-builder .strategy-select {
    border-color: var(--builder-line);
    background: #ffffff;
    color: var(--builder-ink);
}

html[data-theme="light"] body.page-builder .builder-quick-form .researcher-generator-footer {
    border-top-color: var(--builder-line);
}

html[data-theme="light"] body.page-builder .strategy-leaderboard-row {
    position: relative;
    overflow: hidden;
    border-color: rgba(28, 75, 82, 0.18);
    background: var(--builder-card);
    box-shadow: 0 10px 28px rgba(16, 39, 45, 0.08);
}

html[data-theme="light"] body.page-builder .strategy-leaderboard-row::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--builder-accent);
}

html[data-theme="light"] body.page-builder .strategy-leaderboard-rank span {
    background: var(--builder-accent-soft);
    color: var(--builder-accent);
    box-shadow: inset 0 0 0 1px rgba(4, 123, 134, 0.18);
}

html[data-theme="light"] body.page-builder .strategy-leaderboard-title span,
html[data-theme="light"] body.page-builder .strategy-leaderboard-validation span:last-child {
    color: var(--builder-muted);
}

html[data-theme="light"] body.page-builder .strategy-leaderboard-meta .mini-pill {
    border-color: rgba(28, 75, 82, 0.12);
    background: #eef5f2;
    color: var(--builder-muted);
}

html[data-theme="light"] body.page-builder .strategy-leaderboard-score-block,
html[data-theme="light"] body.page-builder .strategy-leaderboard-metric {
    border-color: rgba(28, 75, 82, 0.14);
    background: #f7faf8;
    box-shadow: none;
}

html[data-theme="light"] body.page-builder .strategy-leaderboard-score-block span,
html[data-theme="light"] body.page-builder .strategy-leaderboard-metric span {
    color: var(--builder-faint);
}

html[data-theme="light"] body.page-builder .strategy-leaderboard-actions .secondary-button,
html[data-theme="light"] body.page-builder .strategy-leaderboard-more-button {
    border-color: rgba(28, 75, 82, 0.18);
    background: #ffffff;
    color: var(--builder-ink);
}

html[data-theme="light"] body.page-builder .strategy-leaderboard-actions .secondary-button:hover,
html[data-theme="light"] body.page-builder .strategy-leaderboard-more-button:hover {
    border-color: rgba(4, 123, 134, 0.34);
    background: #edf8f6;
    color: var(--builder-accent);
}

html[data-theme="light"] body.page-builder .strategy-leaderboard-more-button span:last-child {
    color: var(--builder-accent);
}

/* Builder light-mode surface flattening: use one white material. */
html[data-theme="light"] body.page-builder .builder-workbench-card,
html[data-theme="light"] body.page-builder .builder-workbench-head,
html[data-theme="light"] body.page-builder .builder-quick-form,
html[data-theme="light"] body.page-builder .builder-output-stack,
html[data-theme="light"] body.page-builder .builder-output-panel,
html[data-theme="light"] body.page-builder #generated-strategies,
html[data-theme="light"] body.page-builder #saved-ranked-results,
html[data-theme="light"] body.page-builder .researcher-score-card,
html[data-theme="light"] body.page-builder .empty-chart-state {
    background: #ffffff !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.page-builder .builder-workbench-card::before {
    background: none !important;
    opacity: 0 !important;
}

html[data-theme="light"] body.page-builder .builder-output-stack {
    border-top-color: rgba(4, 123, 134, 0.12);
}

/* Builder filter panel cleanup: no dark fill in light mode. */
body.page-builder #suggest-setups .strategy-confirmation-head {
    align-items: center;
    min-height: 36px;
    padding: 0;
}

body.page-builder #suggest-setups .strategy-confirmation-head .eyebrow,
body.page-builder #suggest-setups .strategy-field > .field-label {
    min-width: 0;
    min-height: auto;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.page-builder #suggest-setups .strategy-confirmation-button {
    min-height: 38px;
    border-radius: 8px;
    background: transparent;
}

body.page-builder #researcher-advanced-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(103, 232, 249, 0.12);
}

body.page-builder #researcher-advanced-fields[hidden],
body.page-builder #researcher-advanced-fields.is-hidden {
    display: none !important;
}

body.page-builder #researcher-advanced-fields .strategy-input {
    min-height: 44px;
    border-color: rgba(103, 232, 249, 0.16);
    background: transparent !important;
    color: var(--builder-ink);
}

body.page-builder #researcher-advanced-fields .strategy-checkbox {
    grid-column: 1 / -1;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(103, 232, 249, 0.14);
    border-radius: 8px;
    background: transparent;
    color: var(--builder-muted);
}

body.page-builder #researcher-advanced-fields .strategy-checkbox input {
    width: 14px;
    height: 14px;
    accent-color: var(--builder-accent);
}

html[data-theme="light"] body.page-builder .strategy-lab-page.is-builder #suggest-setups .strategy-confirmation-head .eyebrow,
html[data-theme="light"] body.page-builder .strategy-lab-page.is-builder #suggest-setups .strategy-field > .field-label {
    border: 0 !important;
    background: transparent !important;
    color: var(--builder-muted);
    box-shadow: none !important;
}

html[data-theme="light"] body.page-builder .strategy-lab-page.is-builder #suggest-setups .strategy-confirmation-button {
    border-color: rgba(4, 123, 134, 0.16);
    background: transparent;
    color: var(--builder-ink);
}

html[data-theme="light"] body.page-builder .strategy-lab-page.is-builder #suggest-setups .strategy-confirmation-button:hover {
    border-color: rgba(4, 123, 134, 0.3);
    background: rgba(4, 123, 134, 0.06);
    color: var(--builder-accent);
}

html[data-theme="light"] body.page-builder .strategy-lab-page.is-builder #researcher-advanced-fields {
    border-top-color: rgba(4, 123, 134, 0.12);
}

html[data-theme="light"] body.page-builder .strategy-lab-page.is-builder #researcher-advanced-fields .strategy-input,
html[data-theme="light"] body.page-builder .strategy-lab-page.is-builder #researcher-advanced-fields input {
    border-color: rgba(4, 123, 134, 0.16);
    background: transparent !important;
    color: var(--builder-ink);
    box-shadow: none;
}

html[data-theme="light"] body.page-builder .strategy-lab-page.is-builder #researcher-advanced-fields .strategy-input::placeholder,
html[data-theme="light"] body.page-builder .strategy-lab-page.is-builder #researcher-advanced-fields input::placeholder {
    color: var(--builder-faint);
}

html[data-theme="light"] body.page-builder .strategy-lab-page.is-builder #researcher-advanced-fields .strategy-checkbox {
    border-color: rgba(4, 123, 134, 0.14);
    background: transparent;
    color: var(--builder-muted);
}

@media (max-width: 960px) {
    body.page-builder #researcher-advanced-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    body.page-builder #researcher-advanced-fields {
        grid-template-columns: 1fr;
    }
}

/* Builder transparent detail chips: keep structure, remove filled capsules. */
body.page-builder .strategy-field > .field-label {
    min-height: auto;
    padding: 0;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.page-builder .strategy-leaderboard-score-block,
body.page-builder .strategy-leaderboard-metric {
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.page-builder .strategy-field > .field-label {
    border-color: transparent !important;
    background: transparent !important;
}

html[data-theme="light"] body.page-builder .strategy-leaderboard-score-block,
html[data-theme="light"] body.page-builder .strategy-leaderboard-metric {
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.page-builder .empty-chart-state,
html[data-theme="light"] body.page-builder .screener-table-wrap {
    border-color: var(--builder-line);
    background: #ffffff;
    color: var(--builder-muted);
}

/* Daily Watchlist v2: simpler signal cards with visible score. */
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-shell {
    gap: 22px;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-section {
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-section-head {
    padding: 0 2px 8px;
    border-bottom: 1px solid rgba(23, 49, 61, 0.08);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-section-head h2 {
    font-size: 1rem;
    letter-spacing: 0;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-grid {
    gap: 10px;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card {
    position: relative;
    gap: 12px;
    min-height: 0;
    padding: 15px;
    overflow: hidden;
    border-radius: 8px;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), rgba(199, 82, 70, 0.58), transparent 84%);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card-top,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-main,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card-top,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-main {
    justify-content: space-between;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card-status {
    min-width: 0;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-score-pill {
    display: grid;
    gap: 1px;
    min-width: 66px;
    margin-left: auto;
    padding: 7px 9px;
    border: 1px solid var(--panel-border);
    border-radius: 7px;
    background: var(--secondary-bg);
    text-align: right;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-score-pill small {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-score-pill strong {
    color: var(--text);
    font-size: 0.94rem;
    line-height: 1.05;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-action {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-main > div {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-identity {
    flex: 1 1 auto;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-logo {
    position: relative;
    display: inline-grid !important;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(4, 123, 134, 0.16);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(4, 123, 134, 0.14), rgba(255, 255, 255, 0.78)),
        #f7faf8;
    color: var(--accent) !important;
    font-family: var(--font-mono);
    font-size: 0.72rem !important;
    font-weight: 900;
    line-height: 1;
    margin: 0 !important;
    text-transform: uppercase;
    white-space: nowrap !important;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 7px;
    background: #ffffff;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-symbol-block {
    display: grid !important;
    min-width: 0;
    gap: 5px;
    margin: 0 !important;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-main strong:not(.live-signal-price) {
    font-size: 1.45rem;
    line-height: 1;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-main span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.76rem;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-logo > span {
    margin: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    line-height: 1 !important;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-symbol-block > span {
    display: block;
    overflow: hidden;
    margin-top: 0 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-price {
    flex: 0 1 45%;
    max-width: 260px;
    color: var(--text);
    font-size: 0.95rem !important;
    line-height: 1.25;
    text-align: right;
    white-space: normal !important;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-details {
    margin-top: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(23, 49, 61, 0.08);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-details summary {
    display: flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-detail-stack {
    display: grid;
    gap: 8px;
    padding-top: 8px;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-detail-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    min-width: 0;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-detail-row small {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1.35;
    text-transform: uppercase;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-detail-row strong {
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.38;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-detail-row-wide strong {
    color: var(--muted-strong);
    font-weight: 650;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-thesis-mini,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-proof {
    margin-top: 10px;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-proof {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-proof span {
    border-radius: 7px;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card-footer {
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(23, 49, 61, 0.06);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card-footer > span {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-open-link {
    flex: 0 0 auto;
    justify-self: auto;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--panel-border);
    border-radius: 7px;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-open-link:hover {
    border-color: rgba(4, 123, 134, 0.3);
    background: rgba(4, 123, 134, 0.08);
    color: var(--accent);
}

html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-section-head {
    border-bottom-color: rgba(16, 39, 45, 0.1);
}

html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card {
    border-color: rgba(16, 39, 45, 0.12);
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(16, 39, 45, 0.06);
}

html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card:hover {
    border-color: rgba(4, 123, 134, 0.24);
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(16, 39, 45, 0.09);
}

html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-score-pill,
html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-proof span,
html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-open-link {
    border-color: rgba(16, 39, 45, 0.12);
    background: #f7faf8;
}

html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-logo {
    border-color: rgba(16, 39, 45, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

@media (max-width: 720px) {
    body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-main {
        align-items: flex-start;
        flex-direction: column;
    }

    body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-price {
        max-width: none;
        text-align: left;
    }

    body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-proof {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Daily Watchlist v3: centered logo tiles with a whole-card click target. */
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-grid {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 14px;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card {
    isolation: isolate;
    min-height: 292px;
    padding: 16px 16px 14px;
    cursor: pointer;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease,
        background 180ms ease;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card::after {
    content: "";
    position: absolute;
    inset: 3px;
    z-index: 0;
    border-radius: 6px;
    background:
        radial-gradient(circle at 50% 33%, rgba(44, 211, 203, 0.13), transparent 31%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 48%);
    opacity: 0.72;
    pointer-events: none;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card:hover {
    border-color: rgba(4, 123, 134, 0.34);
    box-shadow: 0 18px 42px rgba(11, 42, 47, 0.12);
    transform: translateY(-2px);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card > *:not(.live-signal-card-link) {
    position: relative;
    z-index: 1;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card::before {
    z-index: 1;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    color: inherit;
    text-decoration: none;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card-link:focus-visible {
    outline: 3px solid rgba(44, 211, 203, 0.55);
    outline-offset: 3px;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card:has(.live-signal-card-link:focus-visible) {
    border-color: rgba(4, 123, 134, 0.42);
    box-shadow: 0 0 0 4px rgba(44, 211, 203, 0.14);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card-top {
    width: 100%;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-main {
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 4px 6px 2px;
    text-align: center;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-main > div,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-identity {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-logo {
    flex-basis: 92px;
    width: 92px;
    height: 92px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.88), transparent 30%),
        linear-gradient(145deg, rgba(44, 211, 203, 0.2), rgba(4, 123, 134, 0.08)),
        #f8fbfa;
    font-size: 1.02rem !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.72),
        0 16px 28px rgba(7, 54, 60, 0.12);
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card:hover .live-signal-logo,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card:has(.live-signal-card-link:focus-visible) .live-signal-logo {
    border-color: rgba(4, 123, 134, 0.32);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.82),
        0 20px 34px rgba(7, 54, 60, 0.16);
    transform: scale(1.045);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-logo img {
    padding: 10px;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-symbol-block {
    justify-items: center;
    width: 100%;
    gap: 6px;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-main strong:not(.live-signal-price) {
    font-size: clamp(1.45rem, 5vw, 1.9rem);
    letter-spacing: 0.01em;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-symbol-block > span {
    max-width: 100%;
    text-align: center;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-price {
    flex: 0 1 auto;
    max-width: 100%;
    text-align: center;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-details {
    z-index: 3 !important;
    cursor: default;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-details summary {
    cursor: pointer;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card-footer,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-open-link {
    display: none !important;
}

html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card::after {
    background:
        radial-gradient(circle at 50% 33%, rgba(44, 211, 203, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.85), transparent 52%);
}

html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card:hover {
    box-shadow: 0 18px 42px rgba(16, 39, 45, 0.1);
}

@media (max-width: 720px) {
    body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-grid {
        grid-template-columns: 1fr;
    }

    body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card {
        min-height: 270px;
    }

    body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-main {
        align-items: center;
    }

    body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-logo {
        flex-basis: 82px;
        width: 82px;
        height: 82px;
    }
}

/* Strat AI v5: aligned with the landing signal desk. */
body.page-strat-ai {
    --strat-ai-bg: #061013;
    --strat-ai-surface: rgba(8, 23, 27, 0.84);
    --strat-ai-surface-strong: rgba(10, 29, 34, 0.96);
    --strat-ai-ink: #effcfb;
    --strat-ai-muted: rgba(239, 252, 251, 0.68);
    --strat-ai-faint: rgba(239, 252, 251, 0.46);
    --strat-ai-line: rgba(103, 232, 249, 0.15);
    --strat-ai-line-strong: rgba(45, 212, 191, 0.34);
    --strat-ai-teal: #2dd4bf;
    --strat-ai-cyan: #67e8f9;
    --strat-ai-good: #78f7c4;
    --strat-ai-bad: #ff7a68;
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.08), transparent 30% 70%, rgba(103, 232, 249, 0.06)),
        repeating-linear-gradient(90deg, rgba(103, 232, 249, 0.04) 0 1px, transparent 1px 104px),
        repeating-linear-gradient(0deg, rgba(103, 232, 249, 0.028) 0 1px, transparent 1px 88px),
        var(--strat-ai-bg) !important;
}

body.page-strat-ai::before {
    background:
        repeating-linear-gradient(118deg, rgba(103, 232, 249, 0.03) 0 1px, transparent 1px 10px),
        linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.08) 50%, transparent);
    opacity: 0.42;
}

body.page-strat-ai::after {
    display: none;
}

body.page-strat-ai .page-shell {
    width: min(1480px, calc(100% - 48px));
    max-width: 1480px;
    padding-top: 34px;
}

body.page-strat-ai .strat-ai-page {
    display: grid;
    gap: 64px;
    padding: 0 0 72px;
    color: var(--strat-ai-ink);
}

body.page-strat-ai .strat-ai-page,
body.page-strat-ai .strat-ai-page * {
    letter-spacing: 0;
}

body.page-strat-ai .strat-ai-cockpit {
    display: grid;
    gap: 20px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.page-strat-ai .strat-ai-cockpit::before,
body.page-strat-ai .strat-ai-cockpit::after,
body.page-strat-ai .strat-ai-commandbar::after,
body.page-strat-ai .strat-ai-terminal-shell::after,
body.page-strat-ai .strat-ai-latest-panel::before,
body.page-strat-ai .strat-ai-tabs-panel::before,
body.page-strat-ai .strat-ai-terminal-title::after,
body.page-strat-ai .strat-ai-terminal-copy#strat-ai-robot-line::after,
body.page-strat-ai .strat-ai-board-title::before,
body.page-strat-ai .strat-ai-section-head h2::before {
    content: none;
}

body.page-strat-ai .strat-ai-commandbar-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.44fr);
    gap: 32px;
    align-items: end;
}

body.page-strat-ai .strat-ai-title-lockup {
    display: grid;
    gap: 20px;
    max-width: 880px;
    align-items: start;
}

body.page-strat-ai .strat-ai-title-lockup .eyebrow,
body.page-strat-ai .strat-ai-today-head .eyebrow,
body.page-strat-ai .strat-ai-section-head .eyebrow {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--strat-ai-line-strong);
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.08);
    color: var(--strat-ai-cyan);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

body.page-strat-ai .strat-ai-title-lockup h1 {
    max-width: 7.8ch;
    margin: 0;
    color: var(--strat-ai-ink);
    font-family: var(--font-display);
    font-size: 5.5rem;
    font-weight: 850;
    line-height: 0.88;
    text-transform: none;
}

body.page-strat-ai .strat-ai-title-lockup p {
    max-width: 64ch;
    margin: 0;
    color: var(--strat-ai-muted);
    font-size: 1rem;
    line-height: 1.62;
}

body.page-strat-ai .strat-ai-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

body.page-strat-ai .strat-ai-ops-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid var(--strat-ai-line);
    border-radius: 8px;
    background: rgba(103, 232, 249, 0.05);
    color: var(--strat-ai-ink);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

body.page-strat-ai .strat-ai-ops-button:hover,
body.page-strat-ai .strat-ai-ops-button:focus-visible {
    border-color: var(--strat-ai-line-strong);
    background: rgba(45, 212, 191, 0.12);
    color: var(--strat-ai-cyan);
}

body.page-strat-ai .strat-ai-ops-button.is-primary {
    border-color: rgba(45, 212, 191, 0.72);
    background: var(--strat-ai-teal);
    color: #031315;
}

body.page-strat-ai .strat-ai-ops-button.is-primary:hover,
body.page-strat-ai .strat-ai-ops-button.is-primary:focus-visible {
    background: var(--strat-ai-cyan);
    color: #031315;
}

body.page-strat-ai .strat-ai-command-sidecar,
body.page-strat-ai .strat-ai-command-stats,
body.page-strat-ai .strat-ai-terminal-shell,
body.page-strat-ai .strat-ai-today-panel,
body.page-strat-ai .strat-ai-latest-panel,
body.page-strat-ai .strat-ai-tabs-panel {
    border: 1px solid var(--strat-ai-line);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(103, 232, 249, 0.06), rgba(45, 212, 191, 0.025)),
        var(--strat-ai-surface);
    box-shadow: none;
}

body.page-strat-ai .strat-ai-command-sidecar {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 16px;
}

body.page-strat-ai .strat-ai-live-pill {
    display: inline-flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid var(--strat-ai-line);
    border-radius: 8px;
    background: rgba(45, 212, 191, 0.08);
    color: var(--strat-ai-ink);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

body.page-strat-ai .strat-ai-live-core {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--strat-ai-teal);
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.12);
}

body.page-strat-ai .strat-ai-command-meta {
    display: grid;
    gap: 6px;
    justify-content: stretch;
    color: var(--strat-ai-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.page-strat-ai .strat-ai-command-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    margin-top: 0;
    padding: 0;
}

body.page-strat-ai .strat-ai-command-statline {
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 6px;
    min-height: 86px;
    padding: 14px;
    border-right: 1px solid var(--strat-ai-line);
    font-family: var(--font-mono);
}

body.page-strat-ai .strat-ai-command-statline:last-child {
    border-right: 0;
}

body.page-strat-ai .strat-ai-command-key,
body.page-strat-ai .strat-ai-card-category,
body.page-strat-ai .strat-ai-metric-grid span,
body.page-strat-ai .strat-ai-today-card-metrics span,
body.page-strat-ai .strat-ai-feed-main span,
body.page-strat-ai .strat-ai-board-title,
body.page-strat-ai .strat-ai-mini-meta,
body.page-strat-ai .strat-ai-table thead th,
body.page-strat-ai .strat-ai-filter-field span {
    color: var(--strat-ai-faint);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

body.page-strat-ai .strat-ai-command-key::before,
body.page-strat-ai .strat-ai-tab::before,
body.page-strat-ai .strat-ai-terminal-prefix::before {
    content: "";
}

body.page-strat-ai .strat-ai-command-statline strong,
body.page-strat-ai .strat-ai-feed-score,
body.page-strat-ai .strat-ai-ranked-side strong,
body.page-strat-ai .strat-ai-metric-grid strong,
body.page-strat-ai .strat-ai-today-card-metrics strong {
    color: var(--strat-ai-ink);
}

body.page-strat-ai .strat-ai-command-statline strong {
    font-family: var(--font-display);
    font-size: 1.28rem;
    line-height: 1;
    overflow-wrap: anywhere;
}

body.page-strat-ai .strat-ai-terminal-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
    gap: 12px;
    align-items: stretch;
}

body.page-strat-ai .strat-ai-terminal-shell,
body.page-strat-ai .strat-ai-today-panel {
    display: grid;
    align-content: start;
    gap: 14px;
    min-height: 460px;
    padding: 16px;
}

body.page-strat-ai .strat-ai-terminal-topline,
body.page-strat-ai .strat-ai-section-head,
body.page-strat-ai .strat-ai-today-head,
body.page-strat-ai .strat-ai-strategy-head,
body.page-strat-ai .strat-ai-feed-title-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
}

body.page-strat-ai .strat-ai-terminal-topline {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--strat-ai-line);
}

body.page-strat-ai .strat-ai-terminal-title {
    color: var(--strat-ai-cyan);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

body.page-strat-ai .strat-ai-robot-console,
body.page-strat-ai .strat-ai-history-list,
body.page-strat-ai .strat-ai-table-shell,
body.page-strat-ai .strat-ai-filter-bar,
body.page-strat-ai .strat-ai-tablist {
    border: 1px solid var(--strat-ai-line);
    border-radius: 9px;
    background: rgba(3, 14, 17, 0.44);
    box-shadow: none;
}

body.page-strat-ai .strat-ai-robot-console {
    display: grid;
    gap: 8px;
    min-height: 280px;
    padding: 14px;
}

body.page-strat-ai .strat-ai-terminal-line {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: var(--strat-ai-muted);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.45;
}

body.page-strat-ai .strat-ai-terminal-prefix {
    flex: none;
    color: var(--strat-ai-cyan);
}

body.page-strat-ai .strat-ai-terminal-copy {
    color: var(--strat-ai-ink);
}

body.page-strat-ai .strat-ai-today-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    justify-content: stretch;
}

body.page-strat-ai .strat-ai-today-chip,
body.page-strat-ai .strat-ai-activity-pill,
body.page-strat-ai .strat-ai-mini-pill,
body.page-strat-ai .strat-ai-card-badge,
body.page-strat-ai .strat-ai-table-badge,
body.page-strat-ai .strat-ai-info-token,
body.page-strat-ai .strat-ai-table-source-origin,
body.page-strat-ai .strat-ai-table-baseline {
    border: 1px solid var(--strat-ai-line);
    border-radius: 999px;
    background: rgba(103, 232, 249, 0.055);
    color: var(--strat-ai-muted);
    box-shadow: none;
    font-family: var(--font-mono);
    font-weight: 900;
}

body.page-strat-ai .strat-ai-today-chip {
    display: grid;
    gap: 4px;
    min-height: 62px;
    align-content: center;
    padding: 10px;
}

body.page-strat-ai .strat-ai-today-chip strong {
    color: var(--strat-ai-ink);
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1;
}

body.page-strat-ai .strat-ai-today-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}

body.page-strat-ai .strat-ai-today-link,
body.page-strat-ai .strat-ai-card-link,
body.page-strat-ai .strat-ai-feed-link,
body.page-strat-ai .strat-ai-ranked-link {
    color: inherit;
    text-decoration: none;
}

body.page-strat-ai .strat-ai-today-card,
body.page-strat-ai .strat-ai-strategy-card,
body.page-strat-ai .strat-ai-feed-item,
body.page-strat-ai .strat-ai-ranked-item,
body.page-strat-ai .strat-ai-board-panel,
body.page-strat-ai .strat-ai-empty-state,
body.page-strat-ai .strat-ai-skeleton-card {
    border: 1px solid rgba(103, 232, 249, 0.12);
    border-radius: 9px;
    background: rgba(3, 14, 17, 0.44);
    box-shadow: none;
}

body.page-strat-ai .strat-ai-today-card {
    display: grid;
    gap: 12px;
    min-height: 210px;
    padding: 14px;
}

body.page-strat-ai .strat-ai-today-card:hover,
body.page-strat-ai .strat-ai-card-link:hover .strat-ai-strategy-card,
body.page-strat-ai .strat-ai-feed-link:hover .strat-ai-feed-item,
body.page-strat-ai .strat-ai-ranked-link:hover .strat-ai-ranked-item,
body.page-strat-ai .strat-ai-card-link:focus-visible .strat-ai-strategy-card,
body.page-strat-ai .strat-ai-feed-link:focus-visible .strat-ai-feed-item,
body.page-strat-ai .strat-ai-ranked-link:focus-visible .strat-ai-ranked-item {
    border-color: var(--strat-ai-line-strong);
    background: rgba(45, 212, 191, 0.08);
    box-shadow: none;
    transform: none;
}

body.page-strat-ai .strat-ai-today-card-head,
body.page-strat-ai .strat-ai-today-card-meta {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
}

body.page-strat-ai .strat-ai-today-symbol {
    display: grid;
    min-width: 0;
    gap: 4px;
}

body.page-strat-ai .strat-ai-today-symbol strong,
body.page-strat-ai .strat-ai-strategy-card h3,
body.page-strat-ai .strat-ai-feed-main strong,
body.page-strat-ai .strat-ai-ranked-item strong {
    overflow: hidden;
    color: var(--strat-ai-ink);
    font-size: 1.08rem;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-strat-ai .strat-ai-today-symbol span,
body.page-strat-ai .strat-ai-today-card-meta,
body.page-strat-ai .strat-ai-note,
body.page-strat-ai .strat-ai-feed-summary,
body.page-strat-ai .strat-ai-ranked-copy span {
    color: var(--strat-ai-muted);
}

body.page-strat-ai .strat-ai-today-card-metrics,
body.page-strat-ai .strat-ai-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body.page-strat-ai .strat-ai-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.page-strat-ai .strat-ai-today-card-metrics > div,
body.page-strat-ai .strat-ai-metric-grid > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 9px;
    border: 1px solid var(--strat-ai-line);
    border-radius: 8px;
    background: rgba(103, 232, 249, 0.04);
}

body.page-strat-ai .strat-ai-latest-panel,
body.page-strat-ai .strat-ai-tabs-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
}

body.page-strat-ai .strat-ai-section-head {
    margin-bottom: 0;
}

body.page-strat-ai .strat-ai-section-head > div,
body.page-strat-ai .strat-ai-today-head > div {
    display: grid;
    gap: 9px;
}

body.page-strat-ai .strat-ai-section-head h2,
body.page-strat-ai .strat-ai-today-head h2 {
    margin: 0;
    color: var(--strat-ai-ink);
    font-family: var(--font-display);
    font-size: 1.55rem;
    line-height: 1;
}

body.page-strat-ai .strat-ai-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

body.page-strat-ai .strat-ai-strategy-card {
    display: grid;
    gap: 12px;
    min-height: 100%;
    padding: 14px;
    transition: background 160ms ease, border-color 160ms ease;
}

body.page-strat-ai .strat-ai-tablist {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
}

body.page-strat-ai .strat-ai-tab {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 7px;
    color: var(--strat-ai-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

body.page-strat-ai #strat-ai-tab-feed-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[data-target="feed"],
body.page-strat-ai #strat-ai-tab-board-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[data-target="board"],
body.page-strat-ai #strat-ai-tab-all-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[data-target="all"] {
    background: var(--strat-ai-teal);
    color: #031315;
    box-shadow: none;
}

body.page-strat-ai .strat-ai-history-list {
    display: grid;
    gap: 8px;
    padding: 10px;
}

body.page-strat-ai .strat-ai-feed-item {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 12px;
}

body.page-strat-ai .strat-ai-feed-marker {
    width: 8px;
    height: 100%;
    min-height: 36px;
    margin: 0;
    border-radius: 999px;
    background: var(--strat-ai-cyan);
    box-shadow: none;
}

body.page-strat-ai .strat-ai-feed-main {
    display: grid;
    min-width: 0;
    gap: 5px;
}

body.page-strat-ai .strat-ai-feed-side {
    display: grid;
    gap: 4px;
    justify-items: end;
    min-width: 80px;
}

body.page-strat-ai .strat-ai-board-shell,
body.page-strat-ai .strat-ai-highlight-grid {
    display: grid;
    gap: 10px;
}

body.page-strat-ai .strat-ai-highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.page-strat-ai .strat-ai-board-panel {
    display: grid;
    gap: 10px;
    padding: 12px;
}

body.page-strat-ai .strat-ai-ranked-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
}

body.page-strat-ai .strat-ai-ranked-index {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--strat-ai-line);
    border-radius: 8px;
    background: transparent;
    color: var(--strat-ai-cyan);
    font-family: var(--font-mono);
    font-weight: 900;
}

body.page-strat-ai .strat-ai-filter-bar {
    display: grid;
    grid-template-columns: minmax(15rem, 1.6fr) repeat(5, minmax(8.5rem, 1fr)) auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 0;
    padding: 10px;
}

body.page-strat-ai .strat-ai-filter-field {
    display: grid;
    gap: 5px;
}

body.page-strat-ai .strat-ai-filter-input,
body.page-strat-ai .strat-ai-filter-select,
body.page-strat-ai .strat-ai-filter-reset,
body.page-strat-ai .strat-ai-page-button {
    min-height: 38px;
    border: 1px solid var(--strat-ai-line);
    border-radius: 8px;
    background: rgba(3, 14, 17, 0.58);
    color: var(--strat-ai-ink);
    font-family: var(--font-mono);
    font-size: 0.76rem;
}

body.page-strat-ai .strat-ai-filter-input,
body.page-strat-ai .strat-ai-filter-select {
    width: 100%;
    padding: 0 10px;
}

body.page-strat-ai .strat-ai-filter-reset,
body.page-strat-ai .strat-ai-page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    cursor: pointer;
}

body.page-strat-ai .strat-ai-filter-input:focus,
body.page-strat-ai .strat-ai-filter-select:focus,
body.page-strat-ai .strat-ai-filter-reset:focus-visible,
body.page-strat-ai .strat-ai-page-button:focus-visible {
    outline: 3px solid rgba(45, 212, 191, 0.22);
    outline-offset: 2px;
    border-color: var(--strat-ai-line-strong);
}

body.page-strat-ai .strat-ai-table-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

body.page-strat-ai .strat-ai-table-toolbar-bottom {
    margin: 10px 0 0;
}

body.page-strat-ai .strat-ai-table-shell {
    overflow-x: auto;
}

body.page-strat-ai .strat-ai-table {
    min-width: 1020px;
}

body.page-strat-ai .strat-ai-table thead th {
    padding: 12px;
    border-bottom: 1px solid var(--strat-ai-line);
    background: rgba(3, 14, 17, 0.72);
}

body.page-strat-ai .strat-ai-table tbody td {
    padding: 12px;
    border-bottom: 1px solid rgba(103, 232, 249, 0.09);
    color: var(--strat-ai-ink);
}

body.page-strat-ai .strat-ai-score-value {
    --score-color: var(--strat-ai-cyan);
}

body.page-strat-ai .strat-ai-ranked-metric.is-positive,
body.page-strat-ai .strat-ai-today-return.is-positive,
body.page-strat-ai .strat-ai-status-text.is-positive {
    color: var(--strat-ai-good);
}

body.page-strat-ai .strat-ai-ranked-metric.is-negative,
body.page-strat-ai .strat-ai-today-return.is-negative,
body.page-strat-ai .strat-ai-status-text.is-negative {
    color: var(--strat-ai-bad);
}

body.page-strat-ai .strat-ai-card-badge.is-positive,
body.page-strat-ai .strat-ai-mini-pill.is-positive,
body.page-strat-ai .strat-ai-table-badge.is-positive,
body.page-strat-ai .strat-ai-activity-pill.is-active,
body.page-strat-ai .strat-ai-today-chip.is-active,
body.page-strat-ai .strat-ai-today-chip.is-open {
    border-color: rgba(45, 212, 191, 0.3);
    background: rgba(45, 212, 191, 0.1);
    color: var(--strat-ai-good);
}

body.page-strat-ai .strat-ai-card-badge.is-warning,
body.page-strat-ai .strat-ai-mini-pill.is-warning,
body.page-strat-ai .strat-ai-table-badge.is-warning,
body.page-strat-ai .strat-ai-today-chip.is-pending {
    border-color: rgba(103, 232, 249, 0.28);
    background: rgba(103, 232, 249, 0.08);
    color: var(--strat-ai-cyan);
}

body.page-strat-ai .strat-ai-card-badge.is-negative,
body.page-strat-ai .strat-ai-mini-pill.is-negative,
body.page-strat-ai .strat-ai-table-badge.is-negative {
    border-color: rgba(255, 122, 104, 0.3);
    background: rgba(255, 122, 104, 0.1);
    color: #ffc9c2;
}

html[data-theme="light"] body.page-strat-ai {
    --strat-ai-bg: #eff8f6;
    --strat-ai-surface: rgba(250, 254, 253, 0.84);
    --strat-ai-surface-strong: rgba(250, 254, 253, 0.96);
    --strat-ai-ink: #0b2228;
    --strat-ai-muted: rgba(11, 34, 40, 0.68);
    --strat-ai-faint: rgba(11, 34, 40, 0.48);
    --strat-ai-line: rgba(4, 123, 134, 0.15);
    --strat-ai-line-strong: rgba(4, 123, 134, 0.32);
    --strat-ai-teal: #047b86;
    --strat-ai-cyan: #0f9ca8;
    --strat-ai-good: #047b86;
    --strat-ai-bad: #c75246;
    background:
        linear-gradient(90deg, rgba(4, 123, 134, 0.09), transparent 30% 70%, rgba(15, 156, 168, 0.06)),
        repeating-linear-gradient(90deg, rgba(11, 34, 40, 0.04) 0 1px, transparent 1px 104px),
        repeating-linear-gradient(0deg, rgba(11, 34, 40, 0.028) 0 1px, transparent 1px 88px),
        var(--strat-ai-bg) !important;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-commandbar,
html[data-theme="light"] body.page-strat-ai .strat-ai-latest-panel,
html[data-theme="light"] body.page-strat-ai .strat-ai-tabs-panel {
    border: 0;
    background: transparent;
    box-shadow: none;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-command-sidecar,
html[data-theme="light"] body.page-strat-ai .strat-ai-command-stats,
html[data-theme="light"] body.page-strat-ai .strat-ai-terminal-shell,
html[data-theme="light"] body.page-strat-ai .strat-ai-today-panel,
html[data-theme="light"] body.page-strat-ai .strat-ai-latest-panel,
html[data-theme="light"] body.page-strat-ai .strat-ai-tabs-panel,
html[data-theme="light"] body.page-strat-ai .strat-ai-today-card,
html[data-theme="light"] body.page-strat-ai .strat-ai-strategy-card,
html[data-theme="light"] body.page-strat-ai .strat-ai-feed-item,
html[data-theme="light"] body.page-strat-ai .strat-ai-ranked-item,
html[data-theme="light"] body.page-strat-ai .strat-ai-board-panel,
html[data-theme="light"] body.page-strat-ai .strat-ai-empty-state,
html[data-theme="light"] body.page-strat-ai .strat-ai-skeleton-card {
    background: rgba(250, 254, 253, 0.84);
    box-shadow: none;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-robot-console,
html[data-theme="light"] body.page-strat-ai .strat-ai-history-list,
html[data-theme="light"] body.page-strat-ai .strat-ai-table-shell,
html[data-theme="light"] body.page-strat-ai .strat-ai-filter-bar,
html[data-theme="light"] body.page-strat-ai .strat-ai-tablist,
html[data-theme="light"] body.page-strat-ai .strat-ai-filter-input,
html[data-theme="light"] body.page-strat-ai .strat-ai-filter-select,
html[data-theme="light"] body.page-strat-ai .strat-ai-filter-reset,
html[data-theme="light"] body.page-strat-ai .strat-ai-page-button,
html[data-theme="light"] body.page-strat-ai .strat-ai-today-card-metrics > div,
html[data-theme="light"] body.page-strat-ai .strat-ai-metric-grid > div {
    background: rgba(255, 255, 255, 0.64);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-title-lockup h1,
html[data-theme="light"] body.page-strat-ai .strat-ai-section-head h2,
html[data-theme="light"] body.page-strat-ai .strat-ai-today-head h2,
html[data-theme="light"] body.page-strat-ai .strat-ai-command-statline strong,
html[data-theme="light"] body.page-strat-ai .strat-ai-strategy-card h3,
html[data-theme="light"] body.page-strat-ai .strat-ai-feed-main strong,
html[data-theme="light"] body.page-strat-ai .strat-ai-ranked-item strong,
html[data-theme="light"] body.page-strat-ai .strat-ai-today-symbol strong,
html[data-theme="light"] body.page-strat-ai .strat-ai-terminal-copy,
html[data-theme="light"] body.page-strat-ai .strat-ai-table tbody td {
    color: var(--strat-ai-ink);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-title-lockup p,
html[data-theme="light"] body.page-strat-ai .strat-ai-note,
html[data-theme="light"] body.page-strat-ai .strat-ai-feed-summary,
html[data-theme="light"] body.page-strat-ai .strat-ai-ranked-copy span,
html[data-theme="light"] body.page-strat-ai .strat-ai-today-symbol span,
html[data-theme="light"] body.page-strat-ai .strat-ai-today-card-meta {
    color: var(--strat-ai-muted);
}

@media (max-width: 1180px) {
    body.page-strat-ai .strat-ai-commandbar-head,
    body.page-strat-ai .strat-ai-terminal-grid {
        grid-template-columns: 1fr;
    }

    body.page-strat-ai .strat-ai-command-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.page-strat-ai .strat-ai-command-statline:nth-child(3n) {
        border-right: 0;
    }

    body.page-strat-ai .strat-ai-title-lockup h1 {
        font-size: 4.6rem;
    }
}

@media (max-width: 860px) {
    body.page-strat-ai .page-shell {
        width: min(100% - 28px, 1480px);
        padding-top: 20px;
    }

    body.page-strat-ai .strat-ai-page {
        gap: 44px;
    }

    body.page-strat-ai .strat-ai-title-lockup h1 {
        font-size: 3.6rem;
    }

    body.page-strat-ai .strat-ai-command-stats,
    body.page-strat-ai .strat-ai-latest-grid,
    body.page-strat-ai .strat-ai-highlight-grid,
    body.page-strat-ai .strat-ai-metric-grid,
    body.page-strat-ai .strat-ai-filter-bar {
        grid-template-columns: 1fr;
    }

    body.page-strat-ai .strat-ai-command-statline,
    body.page-strat-ai .strat-ai-command-statline:nth-child(3n) {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--strat-ai-line);
    }

    body.page-strat-ai .strat-ai-command-statline:last-child {
        border-bottom: 0;
    }

    body.page-strat-ai .strat-ai-section-head,
    body.page-strat-ai .strat-ai-today-head,
    body.page-strat-ai .strat-ai-feed-title-row,
    body.page-strat-ai .strat-ai-today-card-head,
    body.page-strat-ai .strat-ai-today-card-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    body.page-strat-ai .strat-ai-tablist,
    body.page-strat-ai .strat-ai-hero-actions,
    body.page-strat-ai .strat-ai-ops-button {
        width: 100%;
    }

    body.page-strat-ai .strat-ai-tablist {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    body.page-strat-ai .strat-ai-title-lockup h1 {
        font-size: 3.05rem;
    }

    body.page-strat-ai .strat-ai-terminal-line,
    body.page-strat-ai .strat-ai-ranked-item {
        grid-template-columns: 1fr;
    }

    body.page-strat-ai .strat-ai-today-summary,
    body.page-strat-ai .strat-ai-today-card-metrics {
        grid-template-columns: 1fr;
    }

    body.page-strat-ai .strat-ai-terminal-shell,
    body.page-strat-ai .strat-ai-today-panel,
    body.page-strat-ai .strat-ai-latest-panel,
    body.page-strat-ai .strat-ai-tabs-panel {
        padding: 12px;
    }
}

/* Daily Watchlist v4: landing-aligned teal cards. */
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) {
    --watch-bg: #061013;
    --watch-surface: rgba(8, 23, 27, 0.84);
    --watch-surface-strong: rgba(10, 29, 34, 0.96);
    --watch-ink: #effcfb;
    --watch-muted: rgba(239, 252, 251, 0.68);
    --watch-faint: rgba(239, 252, 251, 0.46);
    --watch-line: rgba(103, 232, 249, 0.15);
    --watch-line-strong: rgba(45, 212, 191, 0.34);
    --watch-teal: #2dd4bf;
    --watch-cyan: #67e8f9;
    --watch-good: #78f7c4;
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.08), transparent 30% 70%, rgba(103, 232, 249, 0.06)),
        repeating-linear-gradient(90deg, rgba(103, 232, 249, 0.04) 0 1px, transparent 1px 104px),
        repeating-linear-gradient(0deg, rgba(103, 232, 249, 0.028) 0 1px, transparent 1px 88px),
        var(--watch-bg) !important;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail)::before {
    background:
        repeating-linear-gradient(118deg, rgba(103, 232, 249, 0.03) 0 1px, transparent 1px 10px),
        linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.08) 50%, transparent);
    opacity: 0.42;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail)::after {
    display: none;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .page-shell {
    width: min(1480px, calc(100% - 48px));
    max-width: 1480px;
    padding-top: 34px;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-shell {
    gap: 34px;
    color: var(--watch-ink);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-header {
    align-items: end;
    padding: 0 0 8px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-kicker {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--watch-line-strong);
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.08);
    color: var(--watch-cyan);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-header h1 {
    margin-top: 8px;
    color: var(--watch-ink);
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 850;
    line-height: 0.94;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-header span {
    color: var(--watch-muted);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-market-tabs {
    border: 1px solid var(--watch-line);
    border-radius: 999px;
    background: rgba(8, 23, 27, 0.72);
    box-shadow: none;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-market-tabs a {
    min-width: 74px;
    color: var(--watch-muted);
    font-family: var(--font-mono);
    font-weight: 900;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-market-tabs a.is-active,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-market-tabs a:hover {
    background: rgba(45, 212, 191, 0.14);
    color: var(--watch-ink);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-market-tabs small {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 999px;
    background: rgba(103, 232, 249, 0.16);
    color: var(--watch-cyan);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-section {
    gap: 14px;
    padding-top: 26px;
    border-top: 1px solid var(--watch-line);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-section-head {
    padding: 0;
    border: 0;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-section-head h2 {
    color: var(--watch-ink);
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-section-head span {
    display: inline-grid;
    min-width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--watch-line);
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.08);
    color: var(--watch-cyan);
    font-family: var(--font-mono);
    font-weight: 900;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-grid {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 12px;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card {
    min-height: 300px;
    padding: 16px 16px 14px;
    border: 1px solid var(--watch-line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(103, 232, 249, 0.06), rgba(45, 212, 191, 0.025)),
        var(--watch-surface);
    box-shadow: none;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card::before {
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--watch-teal), var(--watch-cyan), transparent 86%);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card::after {
    background:
        radial-gradient(circle at 50% 36%, rgba(45, 212, 191, 0.12), transparent 35%),
        linear-gradient(180deg, rgba(103, 232, 249, 0.035), transparent 54%);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card:hover,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card:has(.live-signal-card-link:focus-visible) {
    border-color: var(--watch-line-strong);
    background:
        linear-gradient(180deg, rgba(103, 232, 249, 0.075), rgba(45, 212, 191, 0.04)),
        var(--watch-surface);
    box-shadow: none;
    transform: none;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card-top {
    width: 100%;
    align-items: flex-start;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card-status {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card-status span,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card.is-watch .live-signal-card-status span,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card.is-open .live-signal-card-status span,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card-status small {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--watch-line-strong);
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.08);
    color: var(--watch-cyan);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card-status small {
    border-color: transparent;
    background: transparent;
    color: var(--watch-muted);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-score-pill {
    display: grid;
    width: 58px;
    min-width: 58px;
    min-height: 58px;
    place-items: center;
    gap: 2px;
    margin-left: auto;
    padding: 7px;
    border: 1px solid var(--watch-line-strong);
    border-radius: 8px;
    background: rgba(45, 212, 191, 0.1);
    color: var(--watch-ink);
    text-align: center;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-score-pill small,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-score-pill strong {
    display: block;
    width: 100%;
    color: inherit;
    text-align: center;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-score-pill small {
    color: var(--watch-cyan);
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-score-pill strong {
    color: var(--watch-ink);
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-main {
    align-items: center;
    flex: 1 1 auto;
    justify-content: center;
    gap: 12px;
    padding: 4px 6px 2px;
    text-align: center;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-main > div,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-identity {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-logo {
    flex-basis: 92px;
    width: 92px;
    height: 92px;
    border-color: var(--watch-line-strong);
    border-radius: 16px;
    background:
        radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.72), transparent 30%),
        linear-gradient(145deg, rgba(45, 212, 191, 0.18), rgba(103, 232, 249, 0.08)),
        rgba(250, 254, 253, 0.9);
    box-shadow: none;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card:hover .live-signal-logo,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card:has(.live-signal-card-link:focus-visible) .live-signal-logo {
    border-color: var(--watch-line-strong);
    box-shadow: none;
    transform: none;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-main strong:not(.live-signal-price) {
    color: var(--watch-ink);
    font-family: var(--font-display);
    font-size: 1.55rem;
    line-height: 1;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-symbol-block > span,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-main span {
    color: var(--watch-muted);
    font-size: 0.78rem;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-price {
    max-width: 100%;
    color: var(--watch-ink);
    text-align: center;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-details {
    border-top: 1px solid var(--watch-line);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-details summary {
    color: var(--watch-cyan);
    font-family: var(--font-mono);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-proof span,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-thesis-mini span,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-empty,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-history-row {
    border-color: var(--watch-line);
    background: var(--watch-surface-strong);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-empty {
    padding: 18px;
    color: var(--watch-ink);
    box-shadow: none;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-empty strong {
    color: var(--watch-ink);
    font-weight: 750;
}

html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) {
    --watch-bg: #eff8f6;
    --watch-surface: rgba(250, 254, 253, 0.84);
    --watch-surface-strong: rgba(250, 254, 253, 0.96);
    --watch-ink: #0b2228;
    --watch-muted: rgba(11, 34, 40, 0.68);
    --watch-faint: rgba(11, 34, 40, 0.48);
    --watch-line: rgba(4, 123, 134, 0.15);
    --watch-line-strong: rgba(4, 123, 134, 0.32);
    --watch-teal: #047b86;
    --watch-cyan: #0f9ca8;
    --watch-good: #047b86;
    background:
        linear-gradient(90deg, rgba(4, 123, 134, 0.09), transparent 30% 70%, rgba(15, 156, 168, 0.06)),
        repeating-linear-gradient(90deg, rgba(11, 34, 40, 0.04) 0 1px, transparent 1px 104px),
        repeating-linear-gradient(0deg, rgba(11, 34, 40, 0.028) 0 1px, transparent 1px 88px),
        var(--watch-bg) !important;
}

html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-market-tabs,
html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-notice,
html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card,
html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-empty,
html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-history-row {
    background: rgba(250, 254, 253, 0.92);
    box-shadow: none;
}

html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card::after {
    background:
        radial-gradient(circle at 50% 36%, rgba(45, 212, 191, 0.12), transparent 35%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.54), transparent 56%);
}

html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-score-pill {
    border-color: rgba(4, 123, 134, 0.24);
    background: rgba(4, 123, 134, 0.08);
    color: var(--watch-ink);
}

html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card-status span,
html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card.is-watch .live-signal-card-status span,
html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card.is-open .live-signal-card-status span {
    border-color: rgba(4, 123, 134, 0.22);
    background: rgba(4, 123, 134, 0.07);
    color: var(--watch-teal);
}

html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-logo {
    background: #ffffff;
}

@media (max-width: 760px) {
    body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .page-shell {
        width: min(100% - 28px, 1480px);
        padding-top: 20px;
    }

    body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-header {
        align-items: flex-start;
        flex-direction: column;
    }

    body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-header h1 {
        font-size: 2.35rem;
    }

    body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-header-actions,
    body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signals-market-tabs {
        width: 100%;
    }
}

/* Daily Watchlist v5: cleaner proof details, no per-card market badge. */
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card-status small {
    display: none !important;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-score-pill {
    display: grid;
    align-content: center;
    justify-items: center;
    background:
        linear-gradient(180deg, rgba(103, 232, 249, 0.13), rgba(45, 212, 191, 0.07)),
        rgba(8, 23, 27, 0.84);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-score-pill small,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-score-pill strong {
    display: block;
    width: 100%;
    text-align: center;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-details {
    display: grid;
    gap: 0;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--watch-line);
    color: var(--watch-muted);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-details[open] {
    gap: 10px;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-details summary {
    display: inline-flex;
    width: fit-content;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid var(--watch-line);
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.07);
    color: var(--watch-cyan);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-details summary:hover {
    border-color: var(--watch-line-strong);
    background: rgba(45, 212, 191, 0.12);
    color: var(--watch-ink);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-detail-stack {
    display: grid;
    gap: 8px;
    padding-top: 0;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-detail-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--watch-line);
    border-radius: 8px;
    background: rgba(103, 232, 249, 0.045);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-detail-row-wide {
    grid-template-columns: 1fr;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-detail-row small,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-thesis-mini small,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-proof small {
    color: var(--watch-cyan);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-detail-row strong,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-thesis-mini strong {
    color: var(--watch-ink);
    font-size: 0.78rem;
    font-weight: 720;
    line-height: 1.36;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-detail-row-wide strong,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-thesis-mini strong {
    color: var(--watch-muted);
    font-weight: 650;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-thesis-mini {
    display: grid;
    gap: 8px;
    margin-top: 0;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-thesis-mini span {
    display: grid;
    gap: 5px;
    padding: 9px 10px;
    border: 1px solid var(--watch-line);
    border-radius: 8px;
    background: rgba(103, 232, 249, 0.04);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-proof {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 0;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-proof span {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--watch-line);
    border-radius: 8px;
    background: rgba(45, 212, 191, 0.055);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-proof strong {
    color: var(--watch-ink);
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.1;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-hidden-metrics {
    margin-top: 0;
    color: var(--watch-faint);
    font-size: 0.72rem;
}

html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-score-pill {
    background:
        linear-gradient(180deg, rgba(15, 156, 168, 0.12), rgba(4, 123, 134, 0.055)),
        rgba(250, 254, 253, 0.92);
}

html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-details summary,
html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-detail-row,
html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-thesis-mini span,
html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-proof span {
    border-color: rgba(4, 123, 134, 0.15);
    background: rgba(4, 123, 134, 0.04);
}

html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-details summary:hover {
    border-color: rgba(4, 123, 134, 0.3);
    background: rgba(4, 123, 134, 0.08);
}

@media (max-width: 520px) {
    body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-detail-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-proof {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Daily Watchlist v6: flat receipt details. */
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-details {
    gap: 0;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--watch-line);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-details[open] {
    gap: 0;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-details summary {
    display: inline-flex;
    min-height: 0;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--watch-cyan);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-details summary:hover {
    background: transparent !important;
    color: var(--watch-ink);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-detail-receipt {
    display: grid;
    gap: 0;
    margin-top: 10px;
    padding-left: 12px;
    border-left: 2px solid var(--watch-line-strong);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-detail-stack,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-thesis-mini {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-detail-row,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-detail-row-wide,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-thesis-mini span {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
    min-width: 0;
    padding: 7px 0;
    border: 0 !important;
    border-bottom: 1px solid var(--watch-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-detail-row small,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-thesis-mini small {
    color: var(--watch-cyan);
    font-size: 0.58rem;
    line-height: 1.35;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-detail-row strong,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-detail-row-wide strong,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-thesis-mini strong {
    color: var(--watch-muted);
    font-size: 0.75rem;
    font-weight: 650;
    line-height: 1.38;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-detail-row:first-child strong {
    color: var(--watch-ink);
    font-weight: 780;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-thesis-mini strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
    margin: 8px 0 0;
    padding: 0;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-proof span {
    display: inline-flex;
    min-width: 0;
    align-items: baseline;
    gap: 5px;
    margin: 4px 0;
    padding: 0 10px 0 0;
    border: 0 !important;
    border-right: 1px solid var(--watch-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-proof span:last-child {
    border-right: 0 !important;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-proof small {
    color: var(--watch-cyan);
    font-size: 0.56rem;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-proof strong {
    color: var(--watch-ink);
    font-size: 0.72rem;
    font-weight: 850;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-hidden-metrics {
    margin: 4px 0 0;
    padding-top: 3px;
    color: var(--watch-faint);
}

html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-details summary,
html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-details summary:hover,
html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-detail-row,
html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-thesis-mini span,
html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-proof span {
    background: transparent !important;
}

@media (max-width: 520px) {
    body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-detail-row,
    body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-detail-row-wide,
    body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-thesis-mini span {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

/* Public header theme switch: quiet segmented rail. */
body .topbar .theme-toggle {
    position: relative;
    display: inline-flex;
    min-height: 38px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(103, 232, 249, 0.18);
    border-radius: 6px;
    background: rgba(3, 16, 20, 0.24);
    box-shadow: none;
}

body .topbar .theme-toggle::before {
    content: "";
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 50%;
    width: 1px;
    background: rgba(103, 232, 249, 0.16);
}

body .topbar .theme-toggle-option {
    position: relative;
    flex: 1 1 0;
    min-width: 58px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 0;
    background: transparent !important;
    color: rgba(239, 252, 251, 0.62) !important;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

body .topbar .theme-toggle-option::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 7px;
    left: 12px;
    height: 2px;
    background: #67e8f9;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 160ms ease;
}

body .topbar .theme-toggle-option:hover,
body .topbar .theme-toggle-option.is-active,
html[data-theme="light"] body .topbar .theme-toggle-option:hover,
html[data-theme="light"] body .topbar .theme-toggle-option.is-active {
    background: transparent !important;
    color: #effcfb !important;
}

body .topbar .theme-toggle-option.is-active::after {
    transform: scaleX(1);
}

html[data-theme="light"] body .topbar .theme-toggle {
    border-color: rgba(204, 240, 242, 0.16);
    background: rgba(9, 26, 39, 0.18);
}

html[data-theme="light"] body .topbar .theme-toggle::before {
    background: rgba(204, 240, 242, 0.14);
}

@media (max-width: 720px) {
    body .topbar .theme-toggle {
        width: 100%;
    }
}

/* Strat AI v6: follow the Live Signals desk language. */
body.page-strat-ai {
    --strat-ai-bg: #061013;
    --strat-ai-surface: rgba(8, 23, 27, 0.84);
    --strat-ai-surface-soft: rgba(3, 14, 17, 0.5);
    --strat-ai-ink: #effcfb;
    --strat-ai-muted: rgba(239, 252, 251, 0.68);
    --strat-ai-faint: rgba(239, 252, 251, 0.46);
    --strat-ai-line: rgba(103, 232, 249, 0.15);
    --strat-ai-line-strong: rgba(45, 212, 191, 0.34);
    --strat-ai-teal: #2dd4bf;
    --strat-ai-cyan: #67e8f9;
    --strat-ai-good: #78f7c4;
    --strat-ai-bad: #ff7a68;
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.08), transparent 30% 70%, rgba(103, 232, 249, 0.06)),
        repeating-linear-gradient(90deg, rgba(103, 232, 249, 0.04) 0 1px, transparent 1px 104px),
        repeating-linear-gradient(0deg, rgba(103, 232, 249, 0.028) 0 1px, transparent 1px 88px),
        var(--strat-ai-bg) !important;
}

body.page-strat-ai .page-shell {
    width: min(1480px, calc(100% - 48px));
    max-width: 1480px;
    padding-top: 34px;
}

body.page-strat-ai .strat-ai-page {
    gap: 34px;
    padding-bottom: 72px;
}

body.page-strat-ai .strat-ai-commandbar,
body.page-strat-ai .strat-ai-latest-panel,
body.page-strat-ai .strat-ai-tabs-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.page-strat-ai .strat-ai-commandbar {
    gap: 18px;
}

body.page-strat-ai .strat-ai-commandbar-head {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
    gap: 28px;
    align-items: end;
    padding-bottom: 8px;
}

body.page-strat-ai .strat-ai-title-lockup {
    gap: 12px;
    max-width: 780px;
}

body.page-strat-ai .strat-ai-title-lockup .eyebrow,
body.page-strat-ai .strat-ai-section-head .eyebrow,
body.page-strat-ai .strat-ai-today-head .eyebrow {
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid var(--strat-ai-line-strong);
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.08);
    color: var(--strat-ai-cyan);
}

body.page-strat-ai .strat-ai-title-lockup h1 {
    max-width: none;
    color: var(--strat-ai-ink);
    font-size: 3rem;
    line-height: 0.94;
}

body.page-strat-ai .strat-ai-title-lockup p {
    max-width: 58ch;
    color: var(--strat-ai-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

body.page-strat-ai .strat-ai-hero-actions {
    gap: 8px;
    margin-top: 4px;
}

body.page-strat-ai .strat-ai-ops-button {
    min-height: 40px;
    padding: 0 13px;
    border-radius: 7px;
    background: rgba(103, 232, 249, 0.04);
    color: var(--strat-ai-ink);
}

body.page-strat-ai .strat-ai-ops-button.is-primary {
    border-color: rgba(45, 212, 191, 0.72);
    background: rgba(45, 212, 191, 0.92);
    color: #031315;
}

body.page-strat-ai .strat-ai-command-sidecar {
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--strat-ai-line);
    border-radius: 8px;
    background: var(--strat-ai-surface);
}

body.page-strat-ai .strat-ai-live-pill {
    min-height: 36px;
    padding: 0 10px;
    border-radius: 7px;
    background: transparent;
}

body.page-strat-ai .strat-ai-command-meta {
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--strat-ai-line);
}

body.page-strat-ai .strat-ai-command-stats {
    overflow: hidden;
    border: 1px solid var(--strat-ai-line);
    border-radius: 8px;
    background: var(--strat-ai-surface);
}

body.page-strat-ai .strat-ai-command-statline {
    min-height: 72px;
    padding: 12px 14px;
}

body.page-strat-ai .strat-ai-command-statline strong {
    font-size: 1.08rem;
}

body.page-strat-ai .strat-ai-terminal-grid {
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: 12px;
}

body.page-strat-ai .strat-ai-terminal-shell,
body.page-strat-ai .strat-ai-today-panel {
    min-height: 0;
    padding: 16px;
    border: 1px solid var(--strat-ai-line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(103, 232, 249, 0.05), rgba(45, 212, 191, 0.018)),
        var(--strat-ai-surface);
}

body.page-strat-ai .strat-ai-robot-console,
body.page-strat-ai .strat-ai-history-list,
body.page-strat-ai .strat-ai-filter-bar,
body.page-strat-ai .strat-ai-tablist {
    border: 1px solid var(--strat-ai-line);
    border-radius: 8px;
    background: var(--strat-ai-surface-soft);
}

body.page-strat-ai .strat-ai-robot-console {
    min-height: 210px;
    padding: 12px;
}

body.page-strat-ai .strat-ai-terminal-line {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 7px 0;
    border-bottom: 1px solid var(--strat-ai-line);
    font-size: 0.78rem;
}

body.page-strat-ai .strat-ai-terminal-line:last-child {
    border-bottom: 0;
}

body.page-strat-ai .strat-ai-today-summary {
    gap: 6px;
}

body.page-strat-ai .strat-ai-today-chip {
    min-height: 52px;
    padding: 8px 10px;
    border-radius: 8px;
    background: transparent;
}

body.page-strat-ai .strat-ai-today-chip strong {
    font-size: 1rem;
}

body.page-strat-ai .strat-ai-today-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

body.page-strat-ai .strat-ai-today-card,
body.page-strat-ai .strat-ai-strategy-card,
body.page-strat-ai .strat-ai-feed-item,
body.page-strat-ai .strat-ai-ranked-item,
body.page-strat-ai .strat-ai-board-panel,
body.page-strat-ai .strat-ai-empty-state,
body.page-strat-ai .strat-ai-skeleton-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--strat-ai-line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(103, 232, 249, 0.052), rgba(45, 212, 191, 0.018)),
        var(--strat-ai-surface);
    box-shadow: none;
}

body.page-strat-ai .strat-ai-today-card::before,
body.page-strat-ai .strat-ai-strategy-card::before,
body.page-strat-ai .strat-ai-feed-item::before,
body.page-strat-ai .strat-ai-ranked-item::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--strat-ai-teal), var(--strat-ai-cyan), transparent 86%);
    pointer-events: none;
}

body.page-strat-ai .strat-ai-feed-item::before,
body.page-strat-ai .strat-ai-ranked-item::before {
    content: none;
}

body.page-strat-ai .strat-ai-today-card:hover,
body.page-strat-ai .strat-ai-card-link:hover .strat-ai-strategy-card,
body.page-strat-ai .strat-ai-feed-link:hover .strat-ai-feed-item,
body.page-strat-ai .strat-ai-ranked-link:hover .strat-ai-ranked-item,
body.page-strat-ai .strat-ai-card-link:focus-visible .strat-ai-strategy-card,
body.page-strat-ai .strat-ai-feed-link:focus-visible .strat-ai-feed-item,
body.page-strat-ai .strat-ai-ranked-link:focus-visible .strat-ai-ranked-item {
    border-color: var(--strat-ai-line-strong);
    background:
        linear-gradient(180deg, rgba(103, 232, 249, 0.072), rgba(45, 212, 191, 0.032)),
        var(--strat-ai-surface);
    transform: none;
    box-shadow: none;
}

body.page-strat-ai .strat-ai-today-card {
    min-height: 0;
    padding: 14px;
}

body.page-strat-ai .strat-ai-today-card-meta {
    display: grid;
    gap: 5px;
    padding-left: 10px;
    border-left: 2px solid var(--strat-ai-line-strong);
}

body.page-strat-ai .strat-ai-today-card-metrics,
body.page-strat-ai .strat-ai-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--strat-ai-line);
}

body.page-strat-ai .strat-ai-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.page-strat-ai .strat-ai-today-card-metrics > div,
body.page-strat-ai .strat-ai-metric-grid > div {
    padding: 8px 8px 7px 0;
    border: 0;
    border-right: 1px solid var(--strat-ai-line);
    border-bottom: 1px solid var(--strat-ai-line);
    border-radius: 0;
    background: transparent;
}

body.page-strat-ai .strat-ai-today-card-metrics > div:nth-child(2n),
body.page-strat-ai .strat-ai-metric-grid > div:nth-child(3n) {
    border-right: 0;
}

body.page-strat-ai .strat-ai-today-card-metrics > div:nth-last-child(-n + 2),
body.page-strat-ai .strat-ai-metric-grid > div:nth-last-child(-n + 3) {
    border-bottom: 0;
}

body.page-strat-ai .strat-ai-latest-panel,
body.page-strat-ai .strat-ai-tabs-panel {
    gap: 14px;
    padding-top: 26px;
    border-top: 1px solid var(--strat-ai-line);
}

body.page-strat-ai .strat-ai-section-head,
body.page-strat-ai .strat-ai-today-head,
body.page-strat-ai .strat-ai-terminal-topline {
    padding: 0;
    border: 0;
}

body.page-strat-ai .strat-ai-section-head h2,
body.page-strat-ai .strat-ai-today-head h2 {
    font-size: 1.45rem;
}

body.page-strat-ai .strat-ai-latest-grid {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 12px;
}

body.page-strat-ai .strat-ai-strategy-card {
    min-height: 230px;
    padding: 14px;
}

body.page-strat-ai .strat-ai-strategy-head {
    gap: 10px;
}

body.page-strat-ai .strat-ai-strategy-card h3,
body.page-strat-ai .strat-ai-feed-main strong,
body.page-strat-ai .strat-ai-ranked-copy strong {
    white-space: normal;
}

body.page-strat-ai .strat-ai-pill-row,
body.page-strat-ai .strat-ai-ranked-meta,
body.page-strat-ai .strat-ai-feed-title-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body.page-strat-ai .strat-ai-activity-pill,
body.page-strat-ai .strat-ai-mini-pill,
body.page-strat-ai .strat-ai-card-badge,
body.page-strat-ai .strat-ai-table-badge,
body.page-strat-ai .strat-ai-info-token,
body.page-strat-ai .strat-ai-table-source-origin,
body.page-strat-ai .strat-ai-table-baseline {
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(103, 232, 249, 0.045);
}

body.page-strat-ai .strat-ai-tablist {
    padding: 0;
    overflow: hidden;
}

body.page-strat-ai .strat-ai-tab {
    position: relative;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 0;
    background: transparent !important;
}

body.page-strat-ai .strat-ai-tab::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 7px;
    left: 12px;
    height: 2px;
    background: var(--strat-ai-cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 160ms ease;
}

body.page-strat-ai #strat-ai-tab-feed-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[data-target="feed"],
body.page-strat-ai #strat-ai-tab-board-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[data-target="board"],
body.page-strat-ai #strat-ai-tab-all-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[data-target="all"] {
    background: transparent !important;
    color: var(--strat-ai-ink);
}

body.page-strat-ai #strat-ai-tab-feed-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[data-target="feed"]::after,
body.page-strat-ai #strat-ai-tab-board-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[data-target="board"]::after,
body.page-strat-ai #strat-ai-tab-all-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[data-target="all"]::after {
    transform: scaleX(1);
}

body.page-strat-ai .strat-ai-history-list,
body.page-strat-ai .strat-ai-table-shell {
    padding: 0;
    border-radius: 8px;
}

body.page-strat-ai .strat-ai-feed-item {
    grid-template-columns: 2px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px;
    border: 0;
    border-bottom: 1px solid var(--strat-ai-line);
    border-radius: 0;
    background: transparent;
}

body.page-strat-ai .strat-ai-feed-link:last-child .strat-ai-feed-item {
    border-bottom: 0;
}

body.page-strat-ai .strat-ai-feed-marker {
    width: 2px;
    min-height: 100%;
    border-radius: 0;
    background: var(--strat-ai-line-strong);
}

body.page-strat-ai .strat-ai-feed-side {
    align-content: start;
}

body.page-strat-ai .strat-ai-board-shell {
    gap: 12px;
}

body.page-strat-ai .strat-ai-board-panel {
    padding: 12px;
}

body.page-strat-ai .strat-ai-board-title {
    color: var(--strat-ai-cyan);
}

body.page-strat-ai .strat-ai-ranked-list,
body.page-strat-ai #strat-ai-ranked-list {
    gap: 0;
}

body.page-strat-ai .strat-ai-ranked-item {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--strat-ai-line);
    border-radius: 0;
    background: transparent;
}

body.page-strat-ai .strat-ai-ranked-link:last-child .strat-ai-ranked-item {
    border-bottom: 0;
}

body.page-strat-ai .strat-ai-ranked-index {
    width: 30px;
    height: 30px;
    border-radius: 7px;
}

body.page-strat-ai .strat-ai-filter-bar {
    grid-template-columns: minmax(15rem, 1.6fr) repeat(5, minmax(8rem, 1fr)) auto;
    gap: 8px;
    padding: 10px;
}

body.page-strat-ai .strat-ai-filter-input,
body.page-strat-ai .strat-ai-filter-select,
body.page-strat-ai .strat-ai-filter-reset,
body.page-strat-ai .strat-ai-page-button {
    min-height: 38px;
    border-radius: 7px;
    background: rgba(3, 14, 17, 0.5);
}

body.page-strat-ai .strat-ai-table {
    border-collapse: separate;
    border-spacing: 0;
}

body.page-strat-ai .strat-ai-table thead th {
    background: rgba(3, 14, 17, 0.68);
}

body.page-strat-ai .strat-ai-table tbody tr:hover td {
    background: rgba(45, 212, 191, 0.055);
}

html[data-theme="light"] body.page-strat-ai {
    --strat-ai-bg: #eff8f6;
    --strat-ai-surface: rgba(250, 254, 253, 0.84);
    --strat-ai-surface-soft: rgba(250, 254, 253, 0.54);
    --strat-ai-ink: #0b2228;
    --strat-ai-muted: rgba(11, 34, 40, 0.68);
    --strat-ai-faint: rgba(11, 34, 40, 0.48);
    --strat-ai-line: rgba(4, 123, 134, 0.15);
    --strat-ai-line-strong: rgba(4, 123, 134, 0.32);
    --strat-ai-teal: #047b86;
    --strat-ai-cyan: #0f9ca8;
    --strat-ai-good: #047b86;
    --strat-ai-bad: #c75246;
    background:
        linear-gradient(90deg, rgba(4, 123, 134, 0.09), transparent 30% 70%, rgba(15, 156, 168, 0.06)),
        repeating-linear-gradient(90deg, rgba(11, 34, 40, 0.04) 0 1px, transparent 1px 104px),
        repeating-linear-gradient(0deg, rgba(11, 34, 40, 0.028) 0 1px, transparent 1px 88px),
        var(--strat-ai-bg) !important;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-commandbar,
html[data-theme="light"] body.page-strat-ai .strat-ai-latest-panel,
html[data-theme="light"] body.page-strat-ai .strat-ai-tabs-panel {
    border: 0;
    background: transparent !important;
    box-shadow: none;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-command-sidecar,
html[data-theme="light"] body.page-strat-ai .strat-ai-command-stats,
html[data-theme="light"] body.page-strat-ai .strat-ai-terminal-shell,
html[data-theme="light"] body.page-strat-ai .strat-ai-today-panel,
html[data-theme="light"] body.page-strat-ai .strat-ai-today-card,
html[data-theme="light"] body.page-strat-ai .strat-ai-strategy-card,
html[data-theme="light"] body.page-strat-ai .strat-ai-board-panel,
html[data-theme="light"] body.page-strat-ai .strat-ai-empty-state,
html[data-theme="light"] body.page-strat-ai .strat-ai-skeleton-card {
    background:
        linear-gradient(180deg, rgba(15, 156, 168, 0.06), rgba(4, 123, 134, 0.018)),
        var(--strat-ai-surface);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-robot-console,
html[data-theme="light"] body.page-strat-ai .strat-ai-history-list,
html[data-theme="light"] body.page-strat-ai .strat-ai-filter-bar,
html[data-theme="light"] body.page-strat-ai .strat-ai-tablist,
html[data-theme="light"] body.page-strat-ai .strat-ai-table-shell,
html[data-theme="light"] body.page-strat-ai .strat-ai-filter-input,
html[data-theme="light"] body.page-strat-ai .strat-ai-filter-select,
html[data-theme="light"] body.page-strat-ai .strat-ai-filter-reset,
html[data-theme="light"] body.page-strat-ai .strat-ai-page-button {
    background: rgba(250, 254, 253, 0.54);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-feed-item,
html[data-theme="light"] body.page-strat-ai .strat-ai-ranked-item,
html[data-theme="light"] body.page-strat-ai .strat-ai-today-card-metrics > div,
html[data-theme="light"] body.page-strat-ai .strat-ai-metric-grid > div {
    background: transparent;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-table thead th {
    background: rgba(250, 254, 253, 0.76);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-table tbody tr:hover td {
    background: rgba(4, 123, 134, 0.045);
}

@media (max-width: 1180px) {
    body.page-strat-ai .strat-ai-commandbar-head,
    body.page-strat-ai .strat-ai-terminal-grid {
        grid-template-columns: 1fr;
    }

    body.page-strat-ai .strat-ai-command-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    body.page-strat-ai .page-shell {
        width: min(100% - 28px, 1480px);
        padding-top: 20px;
    }

    body.page-strat-ai .strat-ai-page {
        gap: 30px;
    }

    body.page-strat-ai .strat-ai-title-lockup h1 {
        font-size: 2.55rem;
    }

    body.page-strat-ai .strat-ai-command-stats,
    body.page-strat-ai .strat-ai-latest-grid,
    body.page-strat-ai .strat-ai-highlight-grid,
    body.page-strat-ai .strat-ai-metric-grid,
    body.page-strat-ai .strat-ai-filter-bar {
        grid-template-columns: 1fr;
    }

    body.page-strat-ai .strat-ai-today-card-metrics,
    body.page-strat-ai .strat-ai-metric-grid {
        grid-template-columns: 1fr;
    }

    body.page-strat-ai .strat-ai-today-card-metrics > div,
    body.page-strat-ai .strat-ai-metric-grid > div {
        border-right: 0;
    }

    body.page-strat-ai .strat-ai-section-head,
    body.page-strat-ai .strat-ai-today-head,
    body.page-strat-ai .strat-ai-feed-title-row,
    body.page-strat-ai .strat-ai-today-card-head,
    body.page-strat-ai .strat-ai-today-card-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    body.page-strat-ai .strat-ai-tablist,
    body.page-strat-ai .strat-ai-hero-actions,
    body.page-strat-ai .strat-ai-ops-button {
        width: 100%;
    }
}

@media (max-width: 560px) {
    body.page-strat-ai .strat-ai-feed-item,
    body.page-strat-ai .strat-ai-ranked-item {
        grid-template-columns: 1fr;
    }

    body.page-strat-ai .strat-ai-feed-marker {
        display: none;
    }

    body.page-strat-ai .strat-ai-ranked-side,
    body.page-strat-ai .strat-ai-feed-side {
        justify-items: start;
    }
}

/* Light mode card refinement: white cards, softer metric rows. */
html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card,
html[data-theme="light"] body.page-strat-ai .strat-ai-today-card,
html[data-theme="light"] body.page-strat-ai .strat-ai-strategy-card,
html[data-theme="light"] body.page-strat-ai .strat-ai-board-panel,
html[data-theme="light"] body.page-strat-ai .strat-ai-empty-state,
html[data-theme="light"] body.page-strat-ai .strat-ai-skeleton-card {
    border-color: rgba(4, 123, 134, 0.16);
    background: #ffffff !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card:hover,
html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card:has(.live-signal-card-link:focus-visible),
html[data-theme="light"] body.page-strat-ai .strat-ai-today-card:hover,
html[data-theme="light"] body.page-strat-ai .strat-ai-card-link:hover .strat-ai-strategy-card,
html[data-theme="light"] body.page-strat-ai .strat-ai-card-link:focus-visible .strat-ai-strategy-card {
    border-color: rgba(4, 123, 134, 0.28);
    background: #ffffff !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card::after {
    display: none !important;
}

html[data-theme="light"] body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card::before,
html[data-theme="light"] body.page-strat-ai .strat-ai-today-card::before,
html[data-theme="light"] body.page-strat-ai .strat-ai-strategy-card::before {
    height: 2px;
    background: linear-gradient(90deg, rgba(4, 123, 134, 0.72), rgba(15, 156, 168, 0.22), transparent 82%);
}

body.page-strat-ai .strat-ai-today-card-metrics,
body.page-strat-ai .strat-ai-metric-grid {
    gap: 10px 16px;
    padding-top: 12px;
    border-top: 1px solid var(--strat-ai-line);
}

body.page-strat-ai .strat-ai-today-card-metrics > div,
body.page-strat-ai .strat-ai-metric-grid > div,
html[data-theme="light"] body.page-strat-ai .strat-ai-today-card-metrics > div,
html[data-theme="light"] body.page-strat-ai .strat-ai-metric-grid > div {
    display: grid;
    gap: 3px;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
}

body.page-strat-ai .strat-ai-today-card-metrics span,
body.page-strat-ai .strat-ai-metric-grid span {
    color: var(--strat-ai-faint);
}

body.page-strat-ai .strat-ai-today-card-metrics strong,
body.page-strat-ai .strat-ai-metric-grid strong {
    color: var(--strat-ai-ink);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-today-card-metrics,
html[data-theme="light"] body.page-strat-ai .strat-ai-metric-grid {
    border-top-color: rgba(4, 123, 134, 0.14);
}

/* Strat AI feed density: use the middle of each activity row. */
body.page-strat-ai .strat-ai-feed-item {
    grid-template-columns: minmax(0, 1fr) minmax(112px, max-content);
    gap: 18px;
    align-items: start;
    min-height: 0;
    padding: 16px 20px;
}

body.page-strat-ai .strat-ai-feed-marker {
    display: none;
}

body.page-strat-ai .strat-ai-feed-main {
    display: grid;
    gap: 8px;
    min-width: 0;
    max-width: 860px;
}

body.page-strat-ai .strat-ai-feed-title-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

body.page-strat-ai .strat-ai-feed-title-row strong {
    flex: 1 1 30rem;
    min-width: min(100%, 22rem);
    max-width: 52rem;
    font-size: 1.02rem;
    line-height: 1.18;
}

body.page-strat-ai .strat-ai-feed-summary {
    max-width: 70ch;
    margin: 0;
    color: var(--strat-ai-muted);
    font-size: 0.86rem;
    line-height: 1.48;
}

body.page-strat-ai .strat-ai-feed-side {
    display: grid;
    gap: 5px;
    justify-items: end;
    min-width: 112px;
    padding-left: 12px;
    border-left: 1px solid var(--strat-ai-line);
    text-align: right;
}

body.page-strat-ai .strat-ai-feed-score {
    white-space: nowrap;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-feed-item {
    background: transparent !important;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-feed-summary {
    color: var(--strat-ai-muted);
}

@media (max-width: 760px) {
    body.page-strat-ai .strat-ai-feed-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px;
    }

    body.page-strat-ai .strat-ai-feed-title-row strong {
        flex-basis: 100%;
        min-width: 0;
    }

    body.page-strat-ai .strat-ai-feed-side {
        justify-items: start;
        padding-left: 0;
        border-left: 0;
        text-align: left;
    }
}

/* Strat AI activity v7: compact strategy board. */
body.page-strat-ai .strat-ai-tabs-panel {
    display: grid;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--strat-ai-line);
    background: transparent !important;
    box-shadow: none !important;
}

body.page-strat-ai .strat-ai-tabs-panel .strat-ai-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
}

body.page-strat-ai .strat-ai-tabs-panel .strat-ai-section-head > div:first-child {
    display: grid;
    gap: 8px;
}

body.page-strat-ai .strat-ai-tabs-panel .strat-ai-section-head h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2.2vw, 2.2rem);
    line-height: 0.98;
}

body.page-strat-ai .strat-ai-tabs-panel .strat-ai-tablist {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: min(430px, 100%);
    padding: 3px;
    border-radius: 8px;
    background: rgba(2, 15, 18, 0.58);
}

body.page-strat-ai .strat-ai-tabs-panel .strat-ai-tab {
    display: grid;
    min-height: 38px;
    place-items: center;
    padding: 0 12px;
    border-radius: 6px;
    color: var(--strat-ai-faint);
    text-align: center;
}

body.page-strat-ai .strat-ai-tabs-panel .strat-ai-tab::after {
    display: none;
}

body.page-strat-ai #strat-ai-tab-feed-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[data-target="feed"],
body.page-strat-ai #strat-ai-tab-board-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[data-target="board"],
body.page-strat-ai #strat-ai-tab-all-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[data-target="all"] {
    background: rgba(45, 212, 191, 0.16) !important;
    color: var(--strat-ai-ink);
    box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.26);
}

body.page-strat-ai .strat-ai-tab-content {
    margin-top: 0;
}

body.page-strat-ai .strat-ai-tab-panel {
    gap: 12px;
}

body.page-strat-ai .strat-ai-tab-panel-feed .strat-ai-panel-head {
    display: none;
}

body.page-strat-ai .strat-ai-history-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
}

body.page-strat-ai .strat-ai-history-list > .strat-ai-empty-state,
body.page-strat-ai .strat-ai-history-list > .strat-ai-skeleton-card-feed {
    min-height: 190px;
    border: 1px solid var(--strat-ai-line);
    border-radius: 8px;
}

body.page-strat-ai .strat-ai-feed-link {
    display: block;
    min-width: 0;
    height: 100%;
}

body.page-strat-ai .strat-ai-feed-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 14px;
    height: 100%;
    min-height: 196px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid var(--strat-ai-line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(103, 232, 249, 0.045), transparent 46%),
        var(--strat-ai-surface);
    box-shadow: none;
    transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

body.page-strat-ai .strat-ai-feed-item::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.78), rgba(103, 232, 249, 0.18), transparent 84%);
}

body.page-strat-ai .strat-ai-feed-item.is-negative::before {
    background: linear-gradient(90deg, rgba(255, 122, 104, 0.82), rgba(103, 232, 249, 0.12), transparent 84%);
}

body.page-strat-ai .strat-ai-feed-link:last-child .strat-ai-feed-item {
    border-bottom: 1px solid var(--strat-ai-line);
}

body.page-strat-ai .strat-ai-feed-link:hover .strat-ai-feed-item,
body.page-strat-ai .strat-ai-feed-link:focus-visible .strat-ai-feed-item {
    border-color: var(--strat-ai-line-strong);
    transform: translateY(-2px);
}

body.page-strat-ai .strat-ai-feed-marker {
    display: none;
}

body.page-strat-ai .strat-ai-feed-main {
    display: grid;
    gap: 10px;
    max-width: none;
    min-width: 0;
}

body.page-strat-ai .strat-ai-feed-title-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: flex-start;
    justify-content: flex-start;
}

body.page-strat-ai .strat-ai-feed-title-row strong {
    flex: 0 0 100%;
    min-width: 0;
    max-width: none;
    color: var(--strat-ai-ink);
    font-size: 1.03rem;
    line-height: 1.18;
}

body.page-strat-ai .strat-ai-feed-summary {
    display: -webkit-box;
    max-width: none;
    margin: 0;
    overflow: hidden;
    color: var(--strat-ai-muted);
    font-size: 0.86rem;
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

body.page-strat-ai .strat-ai-feed-side {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    margin-top: auto;
    padding-top: 11px;
    padding-left: 0;
    border-top: 1px solid var(--strat-ai-line);
    border-left: 0;
    text-align: left;
}

body.page-strat-ai .strat-ai-feed-score {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    border: 1px solid rgba(103, 232, 249, 0.16);
    border-radius: 7px;
    background: rgba(103, 232, 249, 0.045);
    white-space: nowrap;
}

body.page-strat-ai .strat-ai-feed-time {
    color: var(--strat-ai-faint);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-tabs-panel {
    border-top-color: rgba(4, 123, 134, 0.14);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-tabs-panel .strat-ai-tablist {
    border-color: rgba(4, 123, 134, 0.16);
    background: #ffffff;
}

html[data-theme="light"] body.page-strat-ai #strat-ai-tab-feed-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[data-target="feed"],
html[data-theme="light"] body.page-strat-ai #strat-ai-tab-board-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[data-target="board"],
html[data-theme="light"] body.page-strat-ai #strat-ai-tab-all-toggle:checked ~ .strat-ai-section-head .strat-ai-tab[data-target="all"] {
    background: #dff9f7 !important;
    color: #06242c;
    box-shadow: inset 0 0 0 1px rgba(4, 123, 134, 0.22);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-feed-item {
    border-color: rgba(4, 123, 134, 0.16);
    background:
        linear-gradient(180deg, rgba(15, 156, 168, 0.035), transparent 48%),
        #ffffff !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-feed-link:hover .strat-ai-feed-item,
html[data-theme="light"] body.page-strat-ai .strat-ai-feed-link:focus-visible .strat-ai-feed-item {
    border-color: rgba(4, 123, 134, 0.32);
    background: #ffffff !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-feed-summary {
    color: #587178;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-feed-side {
    border-top-color: rgba(4, 123, 134, 0.14);
}

html[data-theme="light"] body.page-strat-ai .strat-ai-feed-score {
    border-color: rgba(4, 123, 134, 0.16);
    background: #f1fbfa;
}

@media (max-width: 920px) {
    body.page-strat-ai .strat-ai-tabs-panel .strat-ai-section-head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    body.page-strat-ai .strat-ai-tabs-panel .strat-ai-tablist {
        width: 100%;
    }
}

@media (max-width: 620px) {
    body.page-strat-ai .strat-ai-tabs-panel {
        padding-top: 14px;
    }

    body.page-strat-ai .strat-ai-history-list {
        grid-template-columns: 1fr;
    }

    body.page-strat-ai .strat-ai-feed-item {
        min-height: 0;
        padding: 14px;
    }

    body.page-strat-ai .strat-ai-feed-side {
        justify-content: flex-start;
    }
}

/* Strat AI activity v8: remove slabs, center labels, brighten data tables. */
body.page-strat-ai .strat-ai-mini-pill,
body.page-strat-ai .strat-ai-card-badge,
body.page-strat-ai .strat-ai-table-badge,
body.page-strat-ai .strat-ai-table-source-origin,
body.page-strat-ai .strat-ai-table-baseline,
body.page-strat-ai .strat-ai-activity-pill,
body.page-strat-ai .strat-ai-tab,
body.page-strat-ai .strat-ai-filter-reset,
body.page-strat-ai .strat-ai-ranked-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

body.page-strat-ai .strat-ai-tabs-panel .strat-ai-tab {
    line-height: 1;
}

body.page-strat-ai .strat-ai-feed-side,
body.page-strat-ai .strat-ai-ranked-side,
body.page-strat-ai .strat-ai-table-toolbar,
body.page-strat-ai .strat-ai-table-toolbar-bottom {
    align-items: center;
}

body.page-strat-ai .strat-ai-board-shell {
    gap: 12px;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.page-strat-ai .strat-ai-board-panel-ranked {
    padding: 0;
    border: 0 !important;
    background: transparent !important;
}

body.page-strat-ai .strat-ai-board-panel-ranked .strat-ai-board-title {
    margin-bottom: 8px;
}

body.page-strat-ai .strat-ai-ranked-list,
body.page-strat-ai #strat-ai-ranked-list {
    display: grid;
    gap: 8px;
    overflow: visible;
    border: 0 !important;
    background: transparent !important;
}

body.page-strat-ai .strat-ai-ranked-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 62px;
    padding: 10px 12px;
    border: 1px solid var(--strat-ai-line);
    border-radius: 8px;
}

body.page-strat-ai .strat-ai-ranked-link:last-child .strat-ai-ranked-item {
    border-bottom: 1px solid var(--strat-ai-line);
}

body.page-strat-ai .strat-ai-ranked-copy {
    align-self: center;
}

body.page-strat-ai .strat-ai-ranked-side {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    text-align: right;
}

body.page-strat-ai .strat-ai-table th,
body.page-strat-ai .strat-ai-table td {
    vertical-align: middle;
}

body.page-strat-ai .strat-ai-sort-button {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    line-height: 1;
}

body.page-strat-ai .strat-ai-filter-input,
body.page-strat-ai .strat-ai-filter-select,
body.page-strat-ai .strat-ai-filter-reset {
    min-height: 42px;
    line-height: 1.15;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-feed-item,
html[data-theme="light"] body.page-strat-ai .strat-ai-board-panel {
    border-color: rgba(4, 123, 134, 0.18);
    background:
        linear-gradient(180deg, rgba(15, 156, 168, 0.035), rgba(255, 255, 255, 0.56) 48%),
        rgba(255, 255, 255, 0.72) !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-board-panel-ranked {
    background: transparent !important;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-ranked-item {
    border-color: rgba(4, 123, 134, 0.14);
    background: rgba(255, 255, 255, 0.76) !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-ranked-link:hover .strat-ai-ranked-item,
html[data-theme="light"] body.page-strat-ai .strat-ai-ranked-link:focus-visible .strat-ai-ranked-item {
    border-color: rgba(4, 123, 134, 0.28);
    background: #ffffff !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-tab-panel-all .strat-ai-panel-head {
    color: #45656d;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-tab-panel-all .strat-ai-table-toolbar,
html[data-theme="light"] body.page-strat-ai .strat-ai-tab-panel-all .strat-ai-table-toolbar-bottom,
html[data-theme="light"] body.page-strat-ai .strat-ai-tab-panel-all .strat-ai-filter-bar {
    border-color: rgba(4, 123, 134, 0.14);
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow: none;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-tab-panel-all .strat-ai-table-shell {
    border-color: rgba(4, 123, 134, 0.16);
    background: #ffffff !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-tab-panel-all .strat-ai-table {
    background: #ffffff;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-tab-panel-all .strat-ai-table thead th {
    border-bottom-color: rgba(4, 123, 134, 0.18);
    background: #f8fffe !important;
    color: #47636c;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-tab-panel-all .strat-ai-table tbody td {
    border-bottom-color: rgba(4, 123, 134, 0.12);
    background: #ffffff !important;
    color: #0e2b34;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-tab-panel-all .strat-ai-table tbody tr:nth-child(even) td {
    background: #fbfefd !important;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-tab-panel-all .strat-ai-table tbody tr:hover td {
    background: #effcfb !important;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-tab-panel-all .strat-ai-table-link strong {
    color: #0a2d36;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-tab-panel-all .strat-ai-table-link span,
html[data-theme="light"] body.page-strat-ai .strat-ai-tab-panel-all .strat-ai-table-summary,
html[data-theme="light"] body.page-strat-ai .strat-ai-tab-panel-all .strat-ai-table-range {
    color: #5c747b;
}

@media (max-width: 720px) {
    body.page-strat-ai .strat-ai-ranked-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.page-strat-ai .strat-ai-ranked-side {
        grid-column: 1 / -1;
        justify-content: flex-start;
        text-align: left;
    }
}

/* Strat AI polish: tab labels centered and latest cards transparent. */
body.page-strat-ai .strat-ai-tabs-panel .strat-ai-tablist {
    align-items: stretch;
}

body.page-strat-ai .strat-ai-tabs-panel .strat-ai-tab {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    line-height: 1;
}

body.page-strat-ai #strat-ai-latest-slot,
body.page-strat-ai #strat-ai-latest-slot .strat-ai-card-link,
body.page-strat-ai #strat-ai-latest-slot .strat-ai-strategy-card,
body.page-strat-ai #strat-ai-latest-slot .strat-ai-empty-state {
    background: transparent !important;
    box-shadow: none !important;
}

body.page-strat-ai #strat-ai-latest-slot .strat-ai-strategy-card.latest.featured,
body.page-strat-ai #strat-ai-latest-slot .strat-ai-card-link:hover .strat-ai-strategy-card,
body.page-strat-ai #strat-ai-latest-slot .strat-ai-card-link:focus-visible .strat-ai-strategy-card {
    background: transparent !important;
    box-shadow: none !important;
}

body.page-strat-ai .strat-ai-latest-panel,
html[data-theme="light"] body.page-strat-ai .strat-ai-latest-panel {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.page-strat-ai .strat-ai-tabs-panel .strat-ai-tablist {
    background: rgba(223, 249, 247, 0.72) !important;
}

/* Strat AI polish: remove activity fills and align pagination with primary CTA. */
body.page-strat-ai #strat-ai-history-list,
body.page-strat-ai #strat-ai-history-list .strat-ai-feed-item,
body.page-strat-ai #strat-ai-history-list .strat-ai-empty-state,
body.page-strat-ai #strat-ai-history-list .strat-ai-skeleton-card-feed,
html[data-theme="light"] body.page-strat-ai #strat-ai-history-list,
html[data-theme="light"] body.page-strat-ai #strat-ai-history-list .strat-ai-feed-item,
html[data-theme="light"] body.page-strat-ai #strat-ai-history-list .strat-ai-empty-state,
html[data-theme="light"] body.page-strat-ai #strat-ai-history-list .strat-ai-skeleton-card-feed {
    background: transparent !important;
    box-shadow: none !important;
}

body.page-strat-ai #strat-ai-history-list .strat-ai-feed-link:hover .strat-ai-feed-item,
body.page-strat-ai #strat-ai-history-list .strat-ai-feed-link:focus-visible .strat-ai-feed-item,
html[data-theme="light"] body.page-strat-ai #strat-ai-history-list .strat-ai-feed-link:hover .strat-ai-feed-item,
html[data-theme="light"] body.page-strat-ai #strat-ai-history-list .strat-ai-feed-link:focus-visible .strat-ai-feed-item {
    background: transparent !important;
    box-shadow: none !important;
}

body.page-strat-ai #strat-ai-panel-all > .strat-ai-table-toolbar,
body.page-strat-ai #strat-ai-panel-all > .strat-ai-table-toolbar-bottom,
html[data-theme="light"] body.page-strat-ai #strat-ai-panel-all > .strat-ai-table-toolbar,
html[data-theme="light"] body.page-strat-ai #strat-ai-panel-all > .strat-ai-table-toolbar-bottom {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.page-strat-ai .strat-ai-page-button.is-active,
html[data-theme="light"] body.page-strat-ai .strat-ai-page-button.is-active,
body.page-strat-ai .strat-ai-feed-toolbar .strat-ai-page-button.is-active,
html[data-theme="light"] body.page-strat-ai .strat-ai-feed-toolbar .strat-ai-page-button.is-active {
    border-color: rgba(45, 212, 191, 0.72) !important;
    background: rgba(45, 212, 191, 0.92) !important;
    color: #031315 !important;
}

body.page-strat-ai #strat-ai-panel-all .strat-ai-table-toolbar-bottom,
body.page-strat-ai #strat-ai-pagination-bottom,
html[data-theme="light"] body.page-strat-ai #strat-ai-panel-all .strat-ai-table-toolbar-bottom,
html[data-theme="light"] body.page-strat-ai #strat-ai-pagination-bottom {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.page-strat-ai #strat-ai-pagination-bottom .strat-ai-page-button.is-active,
html[data-theme="light"] body.page-strat-ai #strat-ai-pagination-bottom .strat-ai-page-button.is-active {
    border-color: rgba(45, 212, 191, 0.72) !important;
    background: rgba(45, 212, 191, 0.92) !important;
    color: #031315 !important;
}

body.page-strat-ai #strat-ai-panel-board .strat-ai-board-panel-ranked .strat-ai-board-title {
    margin-top: 12px;
}

/* Landing polish: clearer join card rhythm. */
body.page-landing .landing-join {
    position: relative;
    margin-top: 18px;
}

body.page-landing .landing-join::before {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    top: -32px;
    height: 1px;
    background: var(--landing-line);
}

body.page-landing .landing-join > div:first-child {
    display: grid;
    gap: 16px;
}

body.page-landing #landing-join-title {
    margin: 0;
}

@media (max-width: 620px) {
    body.page-landing .landing-join {
        margin-top: 14px;
    }

    body.page-landing .landing-join::before {
        top: -26px;
    }

    body.page-landing .landing-join > div:first-child {
        gap: 12px;
    }
}

/* Strat AI mobile feed: keep title pills inside the card. */
@media (max-width: 760px) {
    body.page-strat-ai #strat-ai-history-list,
    body.page-strat-ai #strat-ai-history-list .strat-ai-feed-item {
        overflow: visible !important;
    }

    body.page-strat-ai #strat-ai-history-list .strat-ai-feed-title-row {
        display: grid !important;
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 8px;
        max-width: 100%;
    }

    body.page-strat-ai #strat-ai-history-list .strat-ai-feed-title-row strong,
    body.page-strat-ai #strat-ai-history-list .strat-ai-feed-title-row .strat-ai-mini-pill,
    body.page-strat-ai #strat-ai-history-list .strat-ai-feed-title-row .strat-ai-activity-pill {
        max-width: 100%;
    }

    body.page-strat-ai #strat-ai-history-list .strat-ai-feed-title-row .strat-ai-mini-pill,
    body.page-strat-ai #strat-ai-history-list .strat-ai-feed-title-row .strat-ai-activity-pill {
        justify-self: start;
        width: fit-content;
    }
}

/* Strat AI highlights: keep one card surface only. */
body.page-strat-ai .strat-ai-board-panel-featured .strat-ai-card-link,
body.page-strat-ai .strat-ai-board-panel-featured .strat-ai-strategy-card.compact,
html[data-theme="light"] body.page-strat-ai .strat-ai-board-panel-featured .strat-ai-card-link,
html[data-theme="light"] body.page-strat-ai .strat-ai-board-panel-featured .strat-ai-strategy-card.compact {
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.page-strat-ai .strat-ai-board-panel-featured .strat-ai-strategy-card.compact {
    padding: 0 !important;
}

body.page-strat-ai .strat-ai-board-panel-featured .strat-ai-card-link::before,
body.page-strat-ai .strat-ai-board-panel-featured .strat-ai-strategy-card.compact::before {
    content: none !important;
    display: none !important;
}

body.page-strat-ai .strat-ai-board-panel-featured .strat-ai-card-link:hover .strat-ai-strategy-card.compact,
body.page-strat-ai .strat-ai-board-panel-featured .strat-ai-card-link:focus-visible .strat-ai-strategy-card.compact,
html[data-theme="light"] body.page-strat-ai .strat-ai-board-panel-featured .strat-ai-card-link:hover .strat-ai-strategy-card.compact,
html[data-theme="light"] body.page-strat-ai .strat-ai-board-panel-featured .strat-ai-card-link:focus-visible .strat-ai-strategy-card.compact {
    transform: none !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Strat AI light mode: latest and feed cards stay white. */
html[data-theme="light"] body.page-strat-ai #strat-ai-latest-slot .strat-ai-strategy-card,
html[data-theme="light"] body.page-strat-ai #strat-ai-history-list .strat-ai-feed-item {
    border: 1px solid rgba(4, 123, 134, 0.16) !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.page-strat-ai #strat-ai-latest-slot .strat-ai-card-link:hover .strat-ai-strategy-card,
html[data-theme="light"] body.page-strat-ai #strat-ai-latest-slot .strat-ai-card-link:focus-visible .strat-ai-strategy-card,
html[data-theme="light"] body.page-strat-ai #strat-ai-history-list .strat-ai-feed-link:hover .strat-ai-feed-item,
html[data-theme="light"] body.page-strat-ai #strat-ai-history-list .strat-ai-feed-link:focus-visible .strat-ai-feed-item {
    border-color: rgba(4, 123, 134, 0.28) !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

/* Builder filters: match the surrounding workbench surface. */
body.page-builder #suggest-setups .strategy-confirmation-panel.strategy-field-full {
    border-color: rgba(103, 232, 249, 0.12) !important;
    background: rgba(3, 14, 17, 0.76) !important;
    box-shadow: none !important;
}

body.page-builder #suggest-setups .strategy-confirmation-panel.strategy-field-full .strategy-checkbox,
body.page-builder #suggest-setups .strategy-confirmation-panel.strategy-field-full .strategy-input,
body.page-builder #suggest-setups .strategy-confirmation-panel.strategy-field-full input {
    background: rgba(3, 14, 17, 0.76);
}

html[data-theme="light"] body.page-builder #suggest-setups .strategy-confirmation-panel.strategy-field-full {
    border-color: rgba(4, 123, 134, 0.12) !important;
    background: #fbfefd !important;
    box-shadow: none !important;
}

/* Leaderboard page v1: single-purpose strategy ranking desk. */
body.page-leaderboard .page-shell {
    width: min(1320px, calc(100% - 48px));
    padding-top: 24px;
}

body.page-leaderboard .leaderboard-console-hero {
    margin: 0 0 18px;
    padding: 26px 0 22px;
    border-top: 0;
}

body.page-leaderboard .leaderboard-console-hero::before {
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.13), transparent 36% 84%, rgba(103, 232, 249, 0.08)),
        repeating-linear-gradient(90deg, rgba(103, 232, 249, 0.044) 0 1px, transparent 1px 96px);
    mask-image: linear-gradient(90deg, black, transparent 100%);
}

body.page-leaderboard .leaderboard-console-copy {
    max-width: 980px;
}

body.page-leaderboard .leaderboard-console-copy h1 {
    max-width: none;
    font-size: clamp(3.4rem, 9vw, 7rem);
    line-height: 0.84;
}

body.page-leaderboard .leaderboard-console-copy p {
    max-width: 66ch;
}

body.page-leaderboard .leaderboard-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 150px));
    gap: 8px;
    max-width: 520px;
}

body.page-leaderboard .leaderboard-hero-metrics span {
    display: grid;
    gap: 5px;
    min-height: 62px;
    align-content: center;
    padding: 10px 12px;
    border: 1px solid rgba(103, 232, 249, 0.14);
    border-radius: 8px;
    background: rgba(8, 23, 27, 0.54);
}

body.page-leaderboard .leaderboard-hero-metrics strong {
    color: var(--sl-ink);
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1;
}

body.page-leaderboard .leaderboard-hero-metrics small {
    color: var(--sl-muted);
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

body.page-leaderboard .leaderboard-page-shell {
    display: grid;
    gap: 14px;
}

body.page-leaderboard .leaderboard-panels-shell {
    display: grid;
    gap: 14px;
}

body.page-leaderboard .home-tab-panel-leaderboard {
    display: grid;
    gap: 14px;
}

body.page-leaderboard .home-leaderboard-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 0;
}

body.page-leaderboard .home-leaderboard-filter-tabs {
    width: min(360px, 100%);
    margin-left: auto;
    padding: 4px;
    border-radius: 8px;
}

body.page-leaderboard .home-leaderboard-filter-tab {
    min-height: 36px;
    border-radius: 6px;
    line-height: 1;
}

body.page-leaderboard .home-top-five-list {
    display: grid;
    gap: 10px;
}

body.page-leaderboard .home-top-five-row {
    position: relative;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 112px;
    padding: 16px;
    overflow: hidden;
    border-radius: 8px;
}

body.page-leaderboard .home-top-five-row[hidden],
body.page-leaderboard .home-top-five-row.is-hidden {
    display: none !important;
}

body.page-leaderboard .home-top-five-row::before {
    width: 3px;
    box-shadow: none;
}

body.page-leaderboard .home-top-five-rank {
    align-self: stretch;
    display: grid;
    place-items: center;
}

body.page-leaderboard .home-top-five-rank span {
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
}

body.page-leaderboard .home-top-five-main {
    display: grid;
    gap: 10px;
    min-width: 0;
}

body.page-leaderboard .home-top-five-title h3 {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin: 0;
    line-height: 1.18;
}

body.page-leaderboard .home-top-five-score {
    margin-left: 2px;
}

body.page-leaderboard .home-top-five-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

body.page-leaderboard .home-top-five-metric,
body.page-leaderboard .home-top-five-score,
body.page-leaderboard .home-top-five-market-inline {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border-radius: 999px;
    line-height: 1;
}

body.page-leaderboard .home-top-five-actions {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

body.page-leaderboard .home-save-btn {
    min-height: 38px;
    border-radius: 7px;
}

body.page-leaderboard .home-leaderboard-empty,
body.page-leaderboard .home-leaderboard-filter-empty {
    border-color: rgba(103, 232, 249, 0.14);
    border-radius: 8px;
    background: rgba(8, 23, 27, 0.54);
}

html[data-theme="light"] body.page-leaderboard .leaderboard-hero-metrics span {
    border-color: rgba(4, 123, 134, 0.14);
    background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] body.page-leaderboard .leaderboard-hero-metrics strong {
    color: #0b2228;
}

html[data-theme="light"] body.page-leaderboard .leaderboard-hero-metrics small {
    color: rgba(11, 34, 40, 0.58);
}

html[data-theme="light"] body.page-leaderboard .home-leaderboard-filter-tabs {
    border-color: rgba(4, 123, 134, 0.14);
    background: rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] body.page-leaderboard .home-top-five-row {
    border-color: rgba(4, 123, 134, 0.16);
    background:
        linear-gradient(90deg, rgba(4, 123, 134, 0.055), transparent 34%),
        rgba(255, 255, 255, 0.84);
    box-shadow: none;
}

html[data-theme="light"] body.page-leaderboard .home-top-five-row:hover,
html[data-theme="light"] body.page-leaderboard .home-top-five-row.is-first:hover {
    border-color: rgba(4, 123, 134, 0.3);
    background:
        linear-gradient(90deg, rgba(4, 123, 134, 0.075), transparent 34%),
        #ffffff;
    box-shadow: none;
}

html[data-theme="light"] body.page-leaderboard .home-top-five-score,
html[data-theme="light"] body.page-leaderboard .home-top-five-metric,
html[data-theme="light"] body.page-leaderboard .home-top-five-market-inline {
    border-color: rgba(4, 123, 134, 0.12);
    background: #f2faf8;
    color: rgba(11, 34, 40, 0.72);
}

html[data-theme="light"] body.page-leaderboard .home-leaderboard-empty,
html[data-theme="light"] body.page-leaderboard .home-leaderboard-filter-empty {
    border-color: rgba(4, 123, 134, 0.14);
    background: rgba(255, 255, 255, 0.82);
}

@media (max-width: 860px) {
    body.page-leaderboard .page-shell {
        width: min(100% - 28px, 1320px);
    }

    body.page-leaderboard .leaderboard-console-copy h1 {
        font-size: clamp(3rem, 16vw, 4.6rem);
    }

    body.page-leaderboard .leaderboard-hero-metrics {
        grid-template-columns: 1fr 1fr;
    }

    body.page-leaderboard .home-leaderboard-toolbar,
    body.page-leaderboard .home-leaderboard-filter-tabs {
        width: 100%;
    }

    body.page-leaderboard .home-top-five-row {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    body.page-leaderboard .home-top-five-actions {
        grid-column: 2;
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    body.page-leaderboard .leaderboard-hero-metrics {
        grid-template-columns: 1fr;
    }

    body.page-leaderboard .home-top-five-row {
        grid-template-columns: 1fr;
    }

    body.page-leaderboard .home-top-five-rank,
    body.page-leaderboard .home-top-five-actions {
        justify-content: flex-start;
    }
}

/* Builder page v3: latest StratLab teal-white theme. */
body.page-builder {
    --builder-ink: #effcfb;
    --builder-muted: rgba(239, 252, 251, 0.68);
    --builder-faint: rgba(239, 252, 251, 0.48);
    --builder-line: rgba(103, 232, 249, 0.15);
    --builder-line-strong: rgba(45, 212, 191, 0.34);
    --builder-accent: #2dd4bf;
    --builder-accent-strong: #67e8f9;
    --builder-accent-soft: rgba(45, 212, 191, 0.1);
    --builder-page: #061013;
    --builder-panel: rgba(8, 23, 27, 0.86);
    --builder-card: rgba(3, 14, 17, 0.72);
    --warning: #67e8f9;
    --body-bg-stock:
        linear-gradient(90deg, rgba(45, 212, 191, 0.08), transparent 34% 72%, rgba(103, 232, 249, 0.06)),
        repeating-linear-gradient(90deg, rgba(103, 232, 249, 0.04) 0 1px, transparent 1px 104px),
        repeating-linear-gradient(0deg, rgba(103, 232, 249, 0.028) 0 1px, transparent 1px 88px),
        var(--builder-page);
    background: var(--body-bg-stock) !important;
}

body.page-builder::before {
    background:
        repeating-linear-gradient(118deg, rgba(103, 232, 249, 0.028) 0 1px, transparent 1px 10px),
        linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.06) 48%, transparent);
    opacity: 0.42;
}

body.page-builder .topbar {
    border-bottom-color: rgba(103, 232, 249, 0.16);
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.08), transparent 32%),
        rgba(4, 14, 18, 0.94);
}

body.page-builder .topbar::after {
    background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.72), rgba(103, 232, 249, 0.58), transparent);
}

body.page-builder .nav-link:hover,
body.page-builder .nav-link.active {
    border-color: rgba(45, 212, 191, 0.24);
    background: rgba(45, 212, 191, 0.08);
    color: var(--builder-ink);
}

body.page-builder .theme-toggle-option:hover,
body.page-builder .theme-toggle-option.is-active,
body.page-builder .primary-button,
body.page-builder .researcher-generate-button {
    border-color: rgba(45, 212, 191, 0.62);
    background: var(--builder-accent);
    color: #031315;
    box-shadow: none;
}

body.page-builder .theme-toggle-option:hover,
body.page-builder .theme-toggle-option.is-active {
    color: #031315 !important;
}

body.page-builder .primary-button:hover,
body.page-builder .researcher-generate-button:hover {
    border-color: rgba(103, 232, 249, 0.72);
    background: var(--builder-accent-strong);
    color: #031315;
    box-shadow: none;
}

body.page-builder .breadcrumbs,
body.page-builder .breadcrumbs a {
    color: var(--builder-muted);
}

body.page-builder .builder-workbench-card,
body.page-builder .builder-workbench-head,
body.page-builder .builder-quick-form,
body.page-builder .builder-output-stack,
body.page-builder .builder-output-panel,
body.page-builder .detail-card,
body.page-builder .researcher-generator-card,
body.page-builder .researcher-score-card,
body.page-builder .strategy-builder-card,
body.page-builder .strategy-results-card,
body.page-builder .strategy-progress-card,
body.page-builder .builder-subpanel,
body.page-builder .strategy-confirmation-panel,
body.page-builder .strategy-choice-card,
body.page-builder .exit-rule-card,
body.page-builder .screener-table-wrap,
body.page-builder .strat-ai-table-shell {
    border-color: var(--builder-line);
    background: var(--builder-panel);
    box-shadow: none !important;
}

body.page-builder .builder-workbench-card {
    overflow: hidden;
    background:
        linear-gradient(110deg, rgba(45, 212, 191, 0.08), transparent 36%),
        var(--builder-panel) !important;
}

body.page-builder .builder-workbench-card::before {
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.08), transparent 38%),
        repeating-linear-gradient(90deg, rgba(103, 232, 249, 0.035) 0 1px, transparent 1px 96px);
    opacity: 0.66;
}

body.page-builder .builder-workbench-head,
body.page-builder .builder-output-panel {
    background:
        linear-gradient(90deg, rgba(103, 232, 249, 0.035), transparent 58%),
        var(--builder-panel) !important;
}

body.page-builder .builder-quick-form {
    background: rgba(3, 14, 17, 0.56) !important;
}

body.page-builder .builder-output-stack {
    background: rgba(3, 14, 17, 0.3) !important;
}

body.page-builder .builder-workbench-head h2,
body.page-builder .builder-output-panel .strategy-card-head h2,
body.page-builder .strategy-card-head h2,
body.page-builder .strategy-wizard-step-head h3,
body.page-builder .strategy-leaderboard-title strong,
body.page-builder .strategy-leaderboard-score-block strong,
body.page-builder .strategy-leaderboard-metric strong,
body.page-builder .screener-table strong,
body.page-builder .table-asset-copy strong {
    color: var(--builder-ink);
}

body.page-builder .builder-workbench-head p,
body.page-builder .strategy-card-head p,
body.page-builder .field-help,
body.page-builder .empty-chart-state,
body.page-builder .strategy-choice-copy span,
body.page-builder .strategy-leaderboard-title span,
body.page-builder .strategy-leaderboard-validation span:last-child,
body.page-builder .screener-table,
body.page-builder .screener-table span,
body.page-builder .table-asset-copy span {
    color: var(--builder-muted);
}

body.page-builder .builder-workbench-meta span,
body.page-builder .builder-results-count,
body.page-builder .builder-workbench-head .eyebrow,
body.page-builder .strategy-confirmation-head .eyebrow,
body.page-builder .builder-output-panel > .strategy-card-head .eyebrow,
body.page-builder .strategy-card-head .eyebrow,
body.page-builder .field-label,
body.page-builder .mini-pill,
body.page-builder .status-pill {
    border-color: rgba(103, 232, 249, 0.18);
    background: rgba(103, 232, 249, 0.06);
    color: var(--builder-accent-strong);
    box-shadow: none;
}

body.page-builder .strategy-input,
body.page-builder .strategy-select,
body.page-builder input,
body.page-builder select,
body.page-builder textarea {
    border-color: rgba(103, 232, 249, 0.16);
    background: rgba(3, 14, 17, 0.76);
    color: var(--builder-ink);
    box-shadow: none;
}

body.page-builder .strategy-input::placeholder,
body.page-builder .strategy-select::placeholder,
body.page-builder input::placeholder,
body.page-builder textarea::placeholder {
    color: var(--builder-faint);
}

body.page-builder .strategy-input:focus,
body.page-builder .strategy-select:focus,
body.page-builder input:focus,
body.page-builder select:focus,
body.page-builder textarea:focus {
    border-color: var(--builder-line-strong);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

body.page-builder .secondary-button,
body.page-builder .strategy-leaderboard-actions .secondary-button,
body.page-builder .strategy-leaderboard-more-button,
body.page-builder .researcher-remove-button {
    border-color: rgba(103, 232, 249, 0.16);
    background: rgba(103, 232, 249, 0.045);
    color: var(--builder-ink);
    box-shadow: none;
}

body.page-builder .secondary-button:hover,
body.page-builder .strategy-leaderboard-actions .secondary-button:hover,
body.page-builder .strategy-leaderboard-more-button:hover,
body.page-builder .researcher-remove-button:hover {
    border-color: var(--builder-line-strong);
    background: rgba(45, 212, 191, 0.1);
    color: var(--builder-accent-strong);
    box-shadow: none;
}

body.page-builder .strategy-checkbox,
body.page-builder .strategy-confirmation-toggle {
    color: var(--builder-muted);
}

body.page-builder .strategy-choice-card:has(input:checked),
body.page-builder .asset-picker-option:has(input:checked),
body.page-builder .exit-rule-card:has(.exit-rule-toggle input:checked) {
    border-color: var(--builder-line-strong);
    background: rgba(45, 212, 191, 0.08);
}

body.page-builder .screener-table {
    background: transparent;
}

body.page-builder .screener-table th {
    border-bottom-color: rgba(103, 232, 249, 0.14);
    background: rgba(103, 232, 249, 0.04);
    color: var(--builder-accent-strong);
}

body.page-builder .screener-table td {
    border-top-color: rgba(103, 232, 249, 0.1);
    color: var(--builder-muted);
}

body.page-builder .screener-table tbody tr:hover {
    background: rgba(45, 212, 191, 0.06);
}

body.page-builder .strategy-leaderboard-row {
    position: relative;
    overflow: hidden;
    border-color: rgba(103, 232, 249, 0.14);
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.08), transparent 34%),
        var(--builder-card);
    box-shadow: none !important;
}

body.page-builder .strategy-leaderboard-row.has-row-link {
    cursor: pointer;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        transform 160ms ease;
}

body.page-builder .strategy-leaderboard-row.has-row-link:hover {
    border-color: var(--builder-line-strong);
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.1), transparent 36%),
        var(--builder-card);
}

body.page-builder .strategy-leaderboard-row.has-row-link:focus-within {
    border-color: var(--builder-line-strong);
}

body.page-builder .strategy-leaderboard-hitbox {
    position: absolute;
    inset: 0;
    z-index: 5;
    border-radius: inherit;
    color: transparent;
    text-decoration: none;
}

body.page-builder .strategy-leaderboard-hitbox span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

body.page-builder .strategy-leaderboard-hitbox:focus-visible {
    outline: 3px solid rgba(103, 232, 249, 0.42);
    outline-offset: -4px;
}

body.page-builder .strategy-leaderboard-row::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--builder-accent);
}

body.page-builder .strategy-leaderboard-rank span,
body.page-builder .strategy-leaderboard-score-block,
body.page-builder .strategy-leaderboard-metric,
body.page-builder .strategy-leaderboard-meta .mini-pill {
    border-color: rgba(103, 232, 249, 0.14);
    background: rgba(103, 232, 249, 0.055);
    color: var(--builder-accent-strong);
    box-shadow: none;
}

body.page-builder .strategy-leaderboard-score-block span,
body.page-builder .strategy-leaderboard-metric span {
    color: var(--builder-faint);
}

body.page-builder .strategy-leaderboard-more-button span:last-child {
    color: var(--builder-accent-strong);
}

body.page-builder .strategy-leaderboard-foot {
    justify-content: flex-start;
}

html[data-theme="light"] body.page-builder {
    --builder-ink: #0b2228;
    --builder-muted: #5a7178;
    --builder-faint: #789098;
    --builder-line: rgba(4, 123, 134, 0.15);
    --builder-line-strong: rgba(4, 123, 134, 0.3);
    --builder-accent: #047b86;
    --builder-accent-strong: #0f9ca8;
    --builder-accent-soft: #e8f6f4;
    --builder-page: #eff8f6;
    --builder-panel: #ffffff;
    --builder-card: #ffffff;
    --warning: #0f9ca8;
    --body-bg-stock:
        linear-gradient(90deg, rgba(4, 123, 134, 0.09), transparent 34% 74%, rgba(15, 156, 168, 0.06)),
        repeating-linear-gradient(90deg, rgba(11, 34, 40, 0.038) 0 1px, transparent 1px 104px),
        repeating-linear-gradient(0deg, rgba(11, 34, 40, 0.026) 0 1px, transparent 1px 88px),
        var(--builder-page);
    background: var(--body-bg-stock) !important;
}

html[data-theme="light"] body.page-builder::before {
    background:
        repeating-linear-gradient(118deg, rgba(4, 123, 134, 0.026) 0 1px, transparent 1px 10px),
        linear-gradient(90deg, transparent, rgba(4, 123, 134, 0.05) 48%, transparent);
    opacity: 0.42;
}

html[data-theme="light"] body.page-builder .topbar {
    border-bottom-color: rgba(4, 123, 134, 0.24);
    background:
        linear-gradient(90deg, rgba(4, 123, 134, 0.18), transparent 34%),
        #0b2228;
}

html[data-theme="light"] body.page-builder .theme-toggle-option:hover,
html[data-theme="light"] body.page-builder .theme-toggle-option.is-active,
html[data-theme="light"] body.page-builder .primary-button,
html[data-theme="light"] body.page-builder .researcher-generate-button {
    border-color: rgba(4, 123, 134, 0.36);
    background: var(--builder-accent);
    color: #ffffff;
    box-shadow: none;
}

html[data-theme="light"] body.page-builder .primary-button:hover,
html[data-theme="light"] body.page-builder .researcher-generate-button:hover {
    border-color: rgba(4, 123, 134, 0.44);
    background: #056a74;
    color: #ffffff;
}

html[data-theme="light"] body.page-builder .builder-workbench-card,
html[data-theme="light"] body.page-builder .builder-workbench-head,
html[data-theme="light"] body.page-builder .builder-quick-form,
html[data-theme="light"] body.page-builder .builder-output-stack,
html[data-theme="light"] body.page-builder .builder-output-panel,
html[data-theme="light"] body.page-builder .detail-card,
html[data-theme="light"] body.page-builder .researcher-generator-card,
html[data-theme="light"] body.page-builder .researcher-score-card,
html[data-theme="light"] body.page-builder .strategy-builder-card,
html[data-theme="light"] body.page-builder .strategy-results-card,
html[data-theme="light"] body.page-builder .strategy-progress-card,
html[data-theme="light"] body.page-builder .builder-subpanel,
html[data-theme="light"] body.page-builder .strategy-confirmation-panel,
html[data-theme="light"] body.page-builder .strategy-choice-card,
html[data-theme="light"] body.page-builder .exit-rule-card,
html[data-theme="light"] body.page-builder .screener-table-wrap,
html[data-theme="light"] body.page-builder .strat-ai-table-shell {
    border-color: var(--builder-line);
    background: #ffffff !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.page-builder .builder-workbench-card {
    background:
        linear-gradient(110deg, rgba(4, 123, 134, 0.045), transparent 36%),
        #ffffff !important;
}

html[data-theme="light"] body.page-builder .builder-workbench-card::before {
    background:
        linear-gradient(90deg, rgba(4, 123, 134, 0.055), transparent 38%),
        repeating-linear-gradient(90deg, rgba(4, 123, 134, 0.028) 0 1px, transparent 1px 96px);
    opacity: 0.56;
}

html[data-theme="light"] body.page-builder .builder-workbench-head,
html[data-theme="light"] body.page-builder .builder-output-panel {
    background:
        linear-gradient(90deg, rgba(4, 123, 134, 0.035), transparent 56%),
        #ffffff !important;
}

html[data-theme="light"] body.page-builder .builder-quick-form {
    background: #fbfefd !important;
}

html[data-theme="light"] body.page-builder .builder-output-stack {
    background: #fbfefd !important;
}

html[data-theme="light"] body.page-builder .builder-workbench-head h2,
html[data-theme="light"] body.page-builder .builder-output-panel .strategy-card-head h2,
html[data-theme="light"] body.page-builder .strategy-card-head h2,
html[data-theme="light"] body.page-builder .strategy-wizard-step-head h3,
html[data-theme="light"] body.page-builder .strategy-leaderboard-title strong,
html[data-theme="light"] body.page-builder .strategy-leaderboard-score-block strong,
html[data-theme="light"] body.page-builder .strategy-leaderboard-metric strong,
html[data-theme="light"] body.page-builder .screener-table strong,
html[data-theme="light"] body.page-builder .table-asset-copy strong {
    color: var(--builder-ink);
}

html[data-theme="light"] body.page-builder .builder-workbench-head p,
html[data-theme="light"] body.page-builder .strategy-card-head p,
html[data-theme="light"] body.page-builder .field-help,
html[data-theme="light"] body.page-builder .empty-chart-state,
html[data-theme="light"] body.page-builder .strategy-choice-copy span,
html[data-theme="light"] body.page-builder .strategy-leaderboard-title span,
html[data-theme="light"] body.page-builder .strategy-leaderboard-validation span:last-child,
html[data-theme="light"] body.page-builder .screener-table,
html[data-theme="light"] body.page-builder .screener-table span,
html[data-theme="light"] body.page-builder .table-asset-copy span {
    color: var(--builder-muted);
}

html[data-theme="light"] body.page-builder .builder-workbench-meta span,
html[data-theme="light"] body.page-builder .builder-results-count,
html[data-theme="light"] body.page-builder .builder-workbench-head .eyebrow,
html[data-theme="light"] body.page-builder .strategy-confirmation-head .eyebrow,
html[data-theme="light"] body.page-builder .builder-output-panel > .strategy-card-head .eyebrow,
html[data-theme="light"] body.page-builder .strategy-card-head .eyebrow,
html[data-theme="light"] body.page-builder .field-label,
html[data-theme="light"] body.page-builder .mini-pill,
html[data-theme="light"] body.page-builder .status-pill {
    border-color: rgba(4, 123, 134, 0.18);
    background: #e8f6f4;
    color: var(--builder-accent);
    box-shadow: none;
}

html[data-theme="light"] body.page-builder .strategy-input,
html[data-theme="light"] body.page-builder .strategy-select,
html[data-theme="light"] body.page-builder input,
html[data-theme="light"] body.page-builder select,
html[data-theme="light"] body.page-builder textarea {
    border-color: rgba(4, 123, 134, 0.16);
    background: #ffffff;
    color: var(--builder-ink);
    box-shadow: none;
}

html[data-theme="light"] body.page-builder .strategy-input:focus,
html[data-theme="light"] body.page-builder .strategy-select:focus,
html[data-theme="light"] body.page-builder input:focus,
html[data-theme="light"] body.page-builder select:focus,
html[data-theme="light"] body.page-builder textarea:focus {
    border-color: var(--builder-line-strong);
    box-shadow: 0 0 0 3px rgba(4, 123, 134, 0.1);
}

html[data-theme="light"] body.page-builder .secondary-button,
html[data-theme="light"] body.page-builder .strategy-leaderboard-actions .secondary-button,
html[data-theme="light"] body.page-builder .strategy-leaderboard-more-button,
html[data-theme="light"] body.page-builder .researcher-remove-button {
    border-color: rgba(4, 123, 134, 0.16);
    background: #ffffff;
    color: var(--builder-ink);
    box-shadow: none;
}

html[data-theme="light"] body.page-builder .secondary-button:hover,
html[data-theme="light"] body.page-builder .strategy-leaderboard-actions .secondary-button:hover,
html[data-theme="light"] body.page-builder .strategy-leaderboard-more-button:hover,
html[data-theme="light"] body.page-builder .researcher-remove-button:hover {
    border-color: rgba(4, 123, 134, 0.3);
    background: #edf8f6;
    color: var(--builder-accent);
}

html[data-theme="light"] body.page-builder .screener-table th {
    border-bottom-color: rgba(4, 123, 134, 0.14);
    background: #f3faf8;
    color: var(--builder-accent);
}

html[data-theme="light"] body.page-builder .screener-table td {
    border-top-color: rgba(4, 123, 134, 0.11);
    color: var(--builder-muted);
}

html[data-theme="light"] body.page-builder .screener-table tbody tr:hover {
    background: #f2faf8;
}

html[data-theme="light"] body.page-builder .strategy-leaderboard-row {
    border-color: rgba(4, 123, 134, 0.16);
    background: #ffffff;
    box-shadow: none !important;
}

html[data-theme="light"] body.page-builder .strategy-leaderboard-row:hover {
    border-color: rgba(4, 123, 134, 0.28);
    background: #fbfefd;
}

html[data-theme="light"] body.page-builder .strategy-leaderboard-row.has-row-link:hover {
    border-color: rgba(4, 123, 134, 0.32);
    background: #fbfefd;
}

html[data-theme="light"] body.page-builder .strategy-leaderboard-hitbox:focus-visible {
    outline-color: rgba(4, 123, 134, 0.38);
}

html[data-theme="light"] body.page-builder .strategy-leaderboard-row::before {
    background: var(--builder-accent);
}

html[data-theme="light"] body.page-builder .strategy-leaderboard-rank span,
html[data-theme="light"] body.page-builder .strategy-leaderboard-score-block,
html[data-theme="light"] body.page-builder .strategy-leaderboard-metric,
html[data-theme="light"] body.page-builder .strategy-leaderboard-meta .mini-pill {
    border-color: rgba(4, 123, 134, 0.14);
    background: #f2faf8;
    color: var(--builder-accent);
    box-shadow: none;
}

html[data-theme="light"] body.page-builder .strategy-leaderboard-score-block span,
html[data-theme="light"] body.page-builder .strategy-leaderboard-metric span {
    color: var(--builder-faint);
}

html[data-theme="light"] body.page-builder .strategy-leaderboard-more-button span:last-child {
    color: var(--builder-accent);
}
/* Builder final light-mode unification: one white section surface. */
html[data-theme="light"] body.page-builder .strategy-lab-page.is-builder,
html[data-theme="light"] body.page-builder .strategy-builder-card.builder-workbench-card,
html[data-theme="light"] body.page-builder .builder-workbench-card,
html[data-theme="light"] body.page-builder .builder-workbench-head,
html[data-theme="light"] body.page-builder .builder-quick-form,
html[data-theme="light"] body.page-builder #suggest-setups,
html[data-theme="light"] body.page-builder .builder-output-stack,
html[data-theme="light"] body.page-builder .builder-output-panel,
html[data-theme="light"] body.page-builder #generated-strategies,
html[data-theme="light"] body.page-builder #saved-ranked-results,
html[data-theme="light"] body.page-builder .researcher-score-card,
html[data-theme="light"] body.page-builder .empty-chart-state {
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.page-builder .builder-workbench-card::before,
html[data-theme="light"] body.page-builder .builder-workbench-card::after,
html[data-theme="light"] body.page-builder .builder-output-stack::before,
html[data-theme="light"] body.page-builder .builder-output-panel::before {
    background: none !important;
    opacity: 0 !important;
}

/* Proof page v3: clean forward-evidence ledger. */
body.page-performance-ledger {
    --proof-bg: #061013;
    --proof-panel: rgba(7, 20, 24, 0.9);
    --proof-card: rgba(4, 16, 20, 0.68);
    --proof-soft: rgba(103, 232, 249, 0.055);
    --proof-line: rgba(103, 232, 249, 0.15);
    --proof-line-strong: rgba(45, 212, 191, 0.34);
    --proof-ink: #effcfb;
    --proof-muted: rgba(239, 252, 251, 0.64);
    --proof-faint: rgba(239, 252, 251, 0.44);
    --proof-accent: #2dd4bf;
    --proof-accent-strong: #67e8f9;
    --positive: #78f7c4;
    --negative: #ff7c70;
    --warning: #67e8f9;
    --body-bg-stock:
        linear-gradient(90deg, rgba(45, 212, 191, 0.08), transparent 34% 72%, rgba(103, 232, 249, 0.06)),
        repeating-linear-gradient(90deg, rgba(103, 232, 249, 0.04) 0 1px, transparent 1px 104px),
        repeating-linear-gradient(0deg, rgba(103, 232, 249, 0.028) 0 1px, transparent 1px 88px),
        var(--proof-bg);
    background: var(--body-bg-stock) !important;
}

body.page-performance-ledger::before {
    background:
        repeating-linear-gradient(118deg, rgba(103, 232, 249, 0.028) 0 1px, transparent 1px 10px),
        linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.06) 48%, transparent);
    opacity: 0.42;
}

body.page-performance-ledger .page-shell {
    width: min(1360px, calc(100% - 48px));
    padding-top: 24px;
}

body.page-performance-ledger .performance-ledger-shell {
    gap: 14px;
    padding: 12px 0 48px;
}

body.page-performance-ledger .performance-ledger-hero,
body.page-performance-ledger .performance-ledger-proof,
body.page-performance-ledger .performance-ledger-panel,
body.page-performance-ledger .performance-ledger-message,
body.page-performance-ledger .performance-ledger-subpanel {
    border: 1px solid var(--proof-line);
    border-radius: 8px;
    background: var(--proof-panel) !important;
    background-image: none !important;
    box-shadow: none !important;
}

body.page-performance-ledger .performance-ledger-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
    gap: 18px;
    align-items: stretch;
    min-height: 260px;
    padding: 26px;
    overflow: hidden;
}

body.page-performance-ledger .performance-ledger-hero::before {
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.08), transparent 44%),
        repeating-linear-gradient(90deg, rgba(103, 232, 249, 0.035) 0 1px, transparent 1px 92px);
    opacity: 0.52;
    mask-image: none;
}

body.page-performance-ledger .performance-ledger-hero::after {
    content: "";
}

body.page-performance-ledger .performance-ledger-hero-copy {
    max-width: 760px;
}

body.page-performance-ledger .performance-ledger-kicker {
    margin: 0;
    color: var(--proof-accent-strong);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

body.page-performance-ledger .performance-ledger-hero h1 {
    max-width: 9ch;
    color: var(--proof-ink);
    font-family: var(--font-display);
    font-size: clamp(4rem, 8vw, 6.7rem);
    font-weight: 800;
    line-height: 0.82;
}

body.page-performance-ledger .performance-ledger-hero span {
    max-width: 56ch;
    color: var(--proof-muted);
    font-size: 1rem;
    line-height: 1.55;
}

body.page-performance-ledger .performance-ledger-audit {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: end;
    gap: 8px;
}

body.page-performance-ledger .performance-ledger-audit-card,
body.page-performance-ledger .performance-ledger-summary > div,
body.page-performance-ledger .performance-ledger-guide-list span,
body.page-performance-ledger .performance-ledger-row,
body.page-performance-ledger .performance-ledger-buckets div,
body.page-performance-ledger .performance-ledger-strategies div,
body.page-performance-ledger .performance-ledger-moves span,
body.page-performance-ledger .performance-ledger-empty,
body.page-performance-ledger .performance-ledger-tabs {
    border: 1px solid var(--proof-line);
    border-radius: 8px;
    background: var(--proof-card) !important;
    background-image: none !important;
    box-shadow: none !important;
}

body.page-performance-ledger .performance-ledger-audit-card {
    min-height: 96px;
    padding: 13px;
}

body.page-performance-ledger .performance-ledger-audit-card span,
body.page-performance-ledger .performance-ledger-summary span,
body.page-performance-ledger .performance-ledger-symbol small,
body.page-performance-ledger .performance-ledger-moves small,
body.page-performance-ledger .performance-ledger-buckets span,
body.page-performance-ledger .performance-ledger-guide-list em,
body.page-performance-ledger .performance-ledger-strategies span {
    color: var(--proof-accent-strong);
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

body.page-performance-ledger .performance-ledger-audit-card strong {
    color: var(--proof-ink);
    font-family: var(--font-display);
    font-size: 1.72rem;
    line-height: 0.95;
}

body.page-performance-ledger .performance-ledger-audit-card small,
body.page-performance-ledger .performance-ledger-proof-copy span,
body.page-performance-ledger .performance-ledger-panel-head > span,
body.page-performance-ledger .performance-ledger-symbol span,
body.page-performance-ledger .performance-ledger-setup span,
body.page-performance-ledger .performance-ledger-summary small,
body.page-performance-ledger .performance-ledger-strategies small,
body.page-performance-ledger .performance-ledger-empty,
body.page-performance-ledger .performance-ledger-disclaimer,
body.page-performance-ledger .performance-ledger-guide-list small {
    color: var(--proof-muted);
}

body.page-performance-ledger .performance-ledger-tabs {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
    padding: 5px;
}

body.page-performance-ledger .performance-ledger-tabs a {
    min-height: 38px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--proof-muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

body.page-performance-ledger .performance-ledger-tabs a.is-active,
body.page-performance-ledger .performance-ledger-tabs a:hover {
    border-color: var(--proof-line-strong);
    background: rgba(45, 212, 191, 0.1);
    color: var(--proof-ink);
}

body.page-performance-ledger .performance-ledger-proof {
    grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1.42fr);
    gap: 14px;
    padding: 14px;
}

body.page-performance-ledger .performance-ledger-proof-copy {
    align-content: center;
    padding: 15px;
    border: 1px solid var(--proof-line);
    border-left: 3px solid var(--proof-accent);
    border-radius: 8px;
    background: var(--proof-card);
}

body.page-performance-ledger .performance-ledger-proof-copy h2,
body.page-performance-ledger .performance-ledger-panel h2 {
    color: var(--proof-ink);
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0;
}

body.page-performance-ledger .performance-ledger-proof-copy h2 {
    font-size: clamp(1.65rem, 2.8vw, 2.25rem);
}

body.page-performance-ledger .performance-ledger-summary {
    gap: 8px;
}

body.page-performance-ledger .performance-ledger-summary > div {
    min-height: 98px;
    padding: 13px;
}

body.page-performance-ledger .performance-ledger-summary > div::before {
    background: var(--proof-accent);
}

body.page-performance-ledger .performance-ledger-summary strong {
    color: var(--proof-ink);
    font-family: var(--font-display);
    font-size: 1.46rem;
    font-weight: 800;
}

body.page-performance-ledger .performance-ledger-panel {
    gap: 14px;
    padding: 16px;
}

body.page-performance-ledger .performance-ledger-panel-head {
    align-items: center;
    min-height: 52px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--proof-line);
}

body.page-performance-ledger .performance-ledger-panel h2 {
    font-size: 1.42rem;
}

body.page-performance-ledger .performance-ledger-guide-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

body.page-performance-ledger .performance-ledger-guide-list span {
    min-height: 94px;
    padding: 13px;
}

body.page-performance-ledger .performance-ledger-guide-list strong,
body.page-performance-ledger .performance-ledger-buckets strong,
body.page-performance-ledger .performance-ledger-strategies strong,
body.page-performance-ledger .performance-ledger-symbol strong,
body.page-performance-ledger .performance-ledger-setup strong,
body.page-performance-ledger .performance-ledger-moves strong,
body.page-performance-ledger .performance-ledger-result strong {
    color: var(--proof-ink);
}

body.page-performance-ledger .performance-ledger-list {
    gap: 8px;
}

body.page-performance-ledger .performance-ledger-row {
    grid-template-columns: minmax(140px, 0.65fr) minmax(250px, 1fr) minmax(320px, 1.15fr) minmax(116px, auto);
    gap: 12px;
    min-height: 104px;
    padding: 13px;
    overflow: hidden;
}

body.page-performance-ledger .performance-ledger-row::before {
    top: 13px;
    bottom: 13px;
    left: 0;
    width: 3px;
    background: rgba(103, 232, 249, 0.42);
}

body.page-performance-ledger .performance-ledger-row:hover {
    border-color: var(--proof-line-strong);
    background-color: var(--proof-card) !important;
    transform: none;
}

body.page-performance-ledger .performance-ledger-symbol strong {
    font-family: var(--font-display);
    font-size: 1.18rem;
    line-height: 1;
}

body.page-performance-ledger .performance-ledger-moves {
    grid-template-columns: repeat(4, minmax(68px, 1fr));
    gap: 6px;
}

body.page-performance-ledger .performance-ledger-moves span {
    min-height: 56px;
    padding: 8px;
}

body.page-performance-ledger .performance-ledger-result {
    align-content: center;
    justify-items: end;
}

body.page-performance-ledger .performance-ledger-status,
body.page-performance-ledger .performance-ledger-result a {
    min-height: 30px;
    border: 1px solid var(--proof-line);
    border-radius: 7px;
    background: var(--proof-soft);
    color: var(--proof-muted);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

body.page-performance-ledger .performance-ledger-result a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: var(--proof-accent-strong);
}

body.page-performance-ledger .performance-ledger-result a:hover,
body.page-performance-ledger .performance-ledger-result a:focus-visible {
    border-color: var(--proof-line-strong);
    background: rgba(45, 212, 191, 0.1);
    color: var(--proof-ink);
}

body.page-performance-ledger .performance-ledger-details > summary {
    cursor: pointer;
}

body.page-performance-ledger .performance-ledger-details > summary::after {
    content: "Open";
    color: var(--proof-accent-strong);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

body.page-performance-ledger .performance-ledger-details[open] > summary::after {
    content: "Close";
}

body.page-performance-ledger .performance-ledger-details .performance-ledger-row {
    grid-template-columns: minmax(150px, 0.75fr) minmax(260px, 1fr) minmax(120px, auto);
}

body.page-performance-ledger .performance-ledger-grid {
    gap: 12px;
}

body.page-performance-ledger .performance-ledger-subpanel {
    padding: 14px;
}

body.page-performance-ledger .performance-ledger-buckets {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

body.page-performance-ledger .performance-ledger-buckets div {
    min-height: 88px;
    padding: 10px;
}

body.page-performance-ledger .performance-ledger-strategies div {
    grid-template-columns: 46px minmax(0, 1fr) auto auto;
    gap: 8px;
    padding: 10px;
}

body.page-performance-ledger .performance-ledger-status.is-positive,
body.page-performance-ledger .performance-ledger-summary .is-positive,
body.page-performance-ledger .performance-ledger-buckets .is-positive,
body.page-performance-ledger .performance-ledger-strategies .is-positive,
body.page-performance-ledger .performance-ledger-moves .is-positive strong,
body.page-performance-ledger .performance-ledger-result .is-positive {
    color: var(--positive);
}

body.page-performance-ledger .performance-ledger-status.is-negative,
body.page-performance-ledger .performance-ledger-summary .is-negative,
body.page-performance-ledger .performance-ledger-buckets .is-negative,
body.page-performance-ledger .performance-ledger-strategies .is-negative,
body.page-performance-ledger .performance-ledger-moves .is-negative strong,
body.page-performance-ledger .performance-ledger-result .is-negative {
    color: var(--negative);
}

body.page-performance-ledger .performance-ledger-row.is-positive::before {
    background: var(--positive);
}

body.page-performance-ledger .performance-ledger-row.is-negative::before {
    background: var(--negative);
}

body.page-performance-ledger .performance-ledger-disclaimer {
    margin: 0;
    color: var(--proof-faint);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-align: center;
    text-transform: uppercase;
}

html[data-theme="light"] body.page-performance-ledger {
    --proof-bg: #eff8f6;
    --proof-panel: #ffffff;
    --proof-card: #ffffff;
    --proof-soft: #f2faf8;
    --proof-line: rgba(4, 123, 134, 0.15);
    --proof-line-strong: rgba(4, 123, 134, 0.32);
    --proof-ink: #0b2228;
    --proof-muted: #5a7178;
    --proof-faint: #789098;
    --proof-accent: #047b86;
    --proof-accent-strong: #0f9ca8;
    --positive: #007a4a;
    --negative: #b3433a;
    --warning: #0f9ca8;
    --body-bg-stock:
        linear-gradient(90deg, rgba(4, 123, 134, 0.09), transparent 34% 74%, rgba(15, 156, 168, 0.06)),
        repeating-linear-gradient(90deg, rgba(11, 34, 40, 0.038) 0 1px, transparent 1px 104px),
        repeating-linear-gradient(0deg, rgba(11, 34, 40, 0.026) 0 1px, transparent 1px 88px),
        var(--proof-bg);
    background: var(--body-bg-stock) !important;
}

html[data-theme="light"] body.page-performance-ledger::before {
    background:
        repeating-linear-gradient(118deg, rgba(4, 123, 134, 0.026) 0 1px, transparent 1px 10px),
        linear-gradient(90deg, transparent, rgba(4, 123, 134, 0.05) 48%, transparent);
    opacity: 0.42;
}

html[data-theme="light"] body.page-performance-ledger .topbar,
html[data-theme="light"] body.page-performance-ledger .site-footer {
    border-color: rgba(4, 123, 134, 0.24);
    background:
        linear-gradient(90deg, rgba(4, 123, 134, 0.18), transparent 34%),
        #0b2228;
}

html[data-theme="light"] body.page-performance-ledger .theme-toggle-option:hover,
html[data-theme="light"] body.page-performance-ledger .theme-toggle-option.is-active {
    background: var(--proof-accent);
    color: #ffffff;
}

html[data-theme="light"] body.page-performance-ledger .performance-ledger-hero::before {
    background:
        linear-gradient(90deg, rgba(4, 123, 134, 0.045), transparent 44%),
        repeating-linear-gradient(90deg, rgba(4, 123, 134, 0.028) 0 1px, transparent 1px 92px);
}

html[data-theme="light"] body.page-performance-ledger .performance-ledger-hero,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-proof,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-panel,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-message,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-subpanel,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-audit-card,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-summary > div,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-guide-list span,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-row,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-buckets div,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-strategies div,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-moves span,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-empty,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-tabs {
    border-color: var(--proof-line);
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.page-performance-ledger .performance-ledger-proof-copy,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-status,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-result a {
    border-color: var(--proof-line);
    background: var(--proof-soft);
}

html[data-theme="light"] body.page-performance-ledger .performance-ledger-hero h1,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-proof-copy h2,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-panel h2,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-audit-card strong,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-summary strong,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-guide-list strong,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-buckets strong,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-strategies strong,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-symbol strong,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-setup strong,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-moves strong,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-result strong {
    color: var(--proof-ink);
}

html[data-theme="light"] body.page-performance-ledger .performance-ledger-hero span,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-audit-card small,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-proof-copy span,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-panel-head > span,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-symbol span,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-setup span,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-summary small,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-strategies small,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-empty,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-disclaimer,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-guide-list small {
    color: var(--proof-muted);
}

html[data-theme="light"] body.page-performance-ledger .performance-ledger-kicker,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-audit-card span,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-summary span,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-symbol small,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-moves small,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-buckets span,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-guide-list em,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-strategies span,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-result a,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-details > summary::after {
    color: var(--proof-accent);
}

html[data-theme="light"] body.page-performance-ledger .performance-ledger-tabs a {
    color: var(--proof-muted);
}

html[data-theme="light"] body.page-performance-ledger .performance-ledger-tabs a.is-active,
html[data-theme="light"] body.page-performance-ledger .performance-ledger-tabs a:hover {
    border-color: var(--proof-line-strong);
    background: #edf8f6;
    color: var(--proof-ink);
}

html[data-theme="light"] body.page-performance-ledger .performance-ledger-row:hover {
    border-color: var(--proof-line-strong);
    background: #ffffff !important;
}

@media (max-width: 1120px) {
    body.page-performance-ledger .performance-ledger-hero,
    body.page-performance-ledger .performance-ledger-proof,
    body.page-performance-ledger .performance-ledger-grid,
    body.page-performance-ledger .performance-ledger-row,
    body.page-performance-ledger .performance-ledger-details .performance-ledger-row,
    body.page-performance-ledger .performance-ledger-strategies div {
        grid-template-columns: 1fr;
    }

    body.page-performance-ledger .performance-ledger-buckets,
    body.page-performance-ledger .performance-ledger-guide-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body.page-performance-ledger .page-shell {
        width: calc(100% - 28px);
    }

    body.page-performance-ledger .performance-ledger-hero,
    body.page-performance-ledger .performance-ledger-proof,
    body.page-performance-ledger .performance-ledger-panel {
        padding: 14px;
    }

    body.page-performance-ledger .performance-ledger-hero {
        min-height: 0;
    }

    body.page-performance-ledger .performance-ledger-hero h1 {
        font-size: clamp(3rem, 16vw, 4.1rem);
    }

    body.page-performance-ledger .performance-ledger-audit,
    body.page-performance-ledger .performance-ledger-summary,
    body.page-performance-ledger .performance-ledger-guide-list,
    body.page-performance-ledger .performance-ledger-buckets,
    body.page-performance-ledger .performance-ledger-moves,
    body.page-performance-ledger .performance-ledger-tabs {
        grid-template-columns: 1fr;
    }

    body.page-performance-ledger .performance-ledger-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    body.page-performance-ledger .performance-ledger-result {
        justify-items: start;
    }
}

/* Builder polish: keep the page backdrop clean and the header toggle readable. */
body.page-builder {
    --body-bg-stock:
        linear-gradient(180deg, rgba(45, 212, 191, 0.035), transparent 320px),
        #031315 !important;
    background: var(--body-bg-stock) !important;
}

body.page-builder::before,
html[data-theme="light"] body.page-builder::before {
    content: none !important;
    display: none !important;
    background: none !important;
}

body.page-builder .strategy-lab-page.is-builder,
body.page-builder .builder-workbench-card,
body.page-builder .builder-workbench-head,
body.page-builder .builder-quick-form,
body.page-builder .builder-output-stack,
body.page-builder .builder-output-panel {
    background-image: none !important;
}

body.page-builder .builder-workbench-card::before,
body.page-builder .builder-workbench-card::after,
body.page-builder .builder-output-stack::before,
body.page-builder .builder-output-panel::before {
    background: none !important;
    opacity: 0 !important;
}

body.page-builder .strategy-lab-page.is-builder,
html[data-theme="light"] body.page-builder .strategy-lab-page.is-builder {
    background: transparent !important;
    background-image: none !important;
}

body.page-builder .topbar .theme-toggle-option:hover,
body.page-builder .topbar .theme-toggle-option.is-active,
html[data-theme="light"] body.page-builder .topbar .theme-toggle-option:hover,
html[data-theme="light"] body.page-builder .topbar .theme-toggle-option.is-active {
    background: transparent !important;
    color: #effcfb !important;
}

html[data-theme="light"] body.page-builder {
    --body-bg-stock:
        linear-gradient(180deg, rgba(4, 123, 134, 0.035), transparent 320px),
        #eff8f6 !important;
    background: var(--body-bg-stock) !important;
}

/* Builder advanced filters: keep the opened filter area pure white in light mode. */
html[data-theme="light"] body.page-builder #suggest-setups .strategy-confirmation-panel.strategy-field-full,
html[data-theme="light"] body.page-builder #suggest-setups #researcher-advanced-fields,
html[data-theme="light"] body.page-builder #suggest-setups #researcher-advanced-fields .strategy-field,
html[data-theme="light"] body.page-builder #suggest-setups #researcher-advanced-fields .strategy-checkbox {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
}

html[data-theme="light"] body.page-builder #suggest-setups #researcher-advanced-fields .strategy-input,
html[data-theme="light"] body.page-builder #suggest-setups #researcher-advanced-fields input {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
}

/* Signal ticket v2: flat execution ticket for follow pages. */
body.page-strategy-follow {
    --ticket-bg: #031315;
    --ticket-panel: #07181d;
    --ticket-card: #061418;
    --ticket-soft: rgba(103, 232, 249, 0.055);
    --ticket-line: rgba(103, 232, 249, 0.15);
    --ticket-line-strong: rgba(45, 212, 191, 0.32);
    --ticket-ink: #effcfb;
    --ticket-muted: rgba(239, 252, 251, 0.64);
    --ticket-faint: rgba(239, 252, 251, 0.44);
    --ticket-accent: #2dd4bf;
    --ticket-accent-strong: #67e8f9;
    --ticket-green: #78f7c4;
    --ticket-red: #ff7c70;
    background:
        linear-gradient(180deg, rgba(45, 212, 191, 0.04), transparent 340px),
        var(--ticket-bg) !important;
    background-size: auto !important;
}

body.page-strategy-follow::before {
    content: none !important;
    display: none !important;
}

body.page-strategy-follow .page-shell {
    width: min(1320px, calc(100% - 48px));
}

body.page-strategy-follow .breadcrumbs {
    margin: 0 0 12px;
    color: var(--ticket-muted);
}

body.page-strategy-follow .breadcrumbs a {
    color: var(--ticket-accent-strong);
}

body.page-strategy-follow .detail-card,
body.page-strategy-follow .strategy-hero-panel,
body.page-strategy-follow .follow-active-panel,
body.page-strategy-follow .follow-chart-panel,
body.page-strategy-follow .screener-table-wrap,
body.page-strategy-follow .follow-table-wrap {
    border: 1px solid var(--ticket-line);
    border-radius: 8px;
    background: var(--ticket-panel) !important;
    background-image: none !important;
    box-shadow: none !important;
}

body.page-strategy-follow .follow-hero-minimal {
    padding: 0;
    overflow: hidden;
}

body.page-strategy-follow .follow-hero-minimal::before,
body.page-strategy-follow .follow-hero-minimal::after {
    content: none !important;
    display: none !important;
}

body.page-strategy-follow .follow-hero-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
    gap: 18px;
    align-items: end;
    padding: 24px;
}

body.page-strategy-follow .follow-hero-minimal .strategy-hero-copy {
    gap: 10px;
    max-width: 880px;
}

body.page-strategy-follow .eyebrow,
body.page-strategy-follow .follow-step-card .field-label,
body.page-strategy-follow .follow-setup-detail-card span,
body.page-strategy-follow .follow-backtest-status-copy span,
body.page-strategy-follow .screener-table th {
    color: var(--ticket-accent-strong);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

body.page-strategy-follow .follow-hero-minimal .strategy-hero-copy h1 {
    max-width: 16ch;
    margin: 0;
    color: var(--ticket-ink);
    font-family: var(--font-display);
    font-size: clamp(2.45rem, 5vw, 4.4rem);
    font-weight: 800;
    line-height: 0.9;
}

body.page-strategy-follow .strategy-follow-oneliner,
body.page-strategy-follow .follow-decision-copy p,
body.page-strategy-follow .follow-focus-copy span,
body.page-strategy-follow .follow-focus-copy small,
body.page-strategy-follow .follow-step-card p,
body.page-strategy-follow .follow-backtest-status-copy small,
body.page-strategy-follow .follow-backtest-update-form small,
body.page-strategy-follow .table-asset-copy span,
body.page-strategy-follow .table-reason {
    color: var(--ticket-muted);
}

body.page-strategy-follow .strategy-hero-chip-row,
body.page-strategy-follow .follow-decision-status,
body.page-strategy-follow .follow-focus-status {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

body.page-strategy-follow .strategy-hero-chip,
body.page-strategy-follow .validation-chip,
body.page-strategy-follow .mini-pill,
body.page-strategy-follow .follow-chart-level {
    display: inline-flex;
    box-sizing: border-box;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid var(--ticket-line);
    border-radius: 999px;
    background: var(--ticket-soft) !important;
    color: var(--ticket-accent-strong);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
    white-space: nowrap;
}

body.page-strategy-follow .eyebrow {
    display: inline-flex;
    box-sizing: border-box;
    min-height: 30px;
    width: max-content;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    justify-self: start;
    padding: 0 10px;
    border-radius: 999px;
    line-height: 1.15;
    white-space: nowrap;
}

body.page-strategy-follow .validation-chip {
    border-color: rgba(120, 247, 196, 0.24);
    color: var(--ticket-green);
}

body.page-strategy-follow .follow-primary-action {
    display: grid;
    gap: 8px;
    min-width: 180px;
}

body.page-strategy-follow .follow-primary-action .secondary-button,
body.page-strategy-follow .follow-backtest-update-form .secondary-button {
    min-height: 40px;
    border: 1px solid var(--ticket-line);
    border-radius: 7px;
    background: transparent;
    color: var(--ticket-ink);
    box-shadow: none;
}

body.page-strategy-follow .follow-primary-action .secondary-button:hover,
body.page-strategy-follow .follow-backtest-update-form .secondary-button:hover {
    border-color: var(--ticket-line-strong);
    background: rgba(45, 212, 191, 0.1);
    color: var(--ticket-accent-strong);
}

body.page-strategy-follow .save-strategy-button.is-saved {
    border-color: rgba(120, 247, 196, 0.26);
    background: rgba(120, 247, 196, 0.1);
    color: var(--ticket-green);
}

body.page-strategy-follow .follow-decision-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    overflow: hidden;
}

body.page-strategy-follow .follow-decision-card::before {
    background: var(--ticket-accent);
}

body.page-strategy-follow .follow-decision-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

body.page-strategy-follow .follow-decision-copy {
    display: grid;
    gap: 7px;
}

body.page-strategy-follow .follow-decision-copy h2 {
    margin: 0;
    color: var(--ticket-ink);
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    line-height: 0.95;
}

body.page-strategy-follow .follow-decision-copy .eyebrow {
    width: auto;
    min-width: 0;
    padding: 0;
}

body.page-strategy-follow .follow-decision-risk,
body.page-strategy-follow .follow-decision-proof,
body.page-strategy-follow .follow-beginner-steps {
    display: grid;
    gap: 8px;
    border: 0;
    background: transparent;
}

body.page-strategy-follow .follow-decision-risk {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.page-strategy-follow .follow-decision-proof {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.page-strategy-follow .follow-decision-risk span,
body.page-strategy-follow .follow-decision-proof span,
body.page-strategy-follow .follow-step-card,
body.page-strategy-follow .follow-setup-detail-card {
    display: grid;
    gap: 5px;
    min-height: 70px;
    align-content: center;
    padding: 11px 12px;
    border: 1px solid var(--ticket-line);
    border-radius: 8px;
    background: var(--ticket-card) !important;
    box-shadow: none;
}

body.page-strategy-follow .follow-decision-risk small,
body.page-strategy-follow .follow-decision-proof small {
    color: var(--ticket-faint);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
}

body.page-strategy-follow .follow-decision-risk strong,
body.page-strategy-follow .follow-decision-proof strong,
body.page-strategy-follow .follow-focus-copy strong,
body.page-strategy-follow .follow-step-card strong,
body.page-strategy-follow .follow-setup-detail-card strong,
body.page-strategy-follow .follow-backtest-status-copy strong,
body.page-strategy-follow .table-asset-copy strong {
    color: var(--ticket-ink);
}

body.page-strategy-follow .follow-focus-card,
body.page-strategy-follow .follow-active-collection-card,
body.page-strategy-follow .follow-trade-log-card,
body.page-strategy-follow .follow-details-card,
body.page-strategy-follow .follow-backtest-status-card {
    padding: 16px;
}

body.page-strategy-follow .follow-section-head,
body.page-strategy-follow .follow-trade-log-head,
body.page-strategy-follow .follow-details-summary,
body.page-strategy-follow .follow-backtest-status-card {
    align-items: center;
    border-bottom: 1px solid var(--ticket-line);
}

body.page-strategy-follow .follow-section-head h2,
body.page-strategy-follow .follow-trade-log-head h2,
body.page-strategy-follow .follow-details-summary h2 {
    color: var(--ticket-ink);
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.1;
}

body.page-strategy-follow .follow-active-list {
    display: grid;
    gap: 12px;
}

body.page-strategy-follow .follow-active-panel {
    display: grid;
    gap: 12px;
    padding: 12px;
}

body.page-strategy-follow .follow-active-panel + .follow-active-panel {
    border-top: 0;
}

body.page-strategy-follow .follow-focus-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px;
    border: 1px solid var(--ticket-line);
    border-radius: 8px;
    background: var(--ticket-card) !important;
    background-image: none !important;
}

body.page-strategy-follow .follow-focus-stock {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.page-strategy-follow .follow-active-index,
body.page-strategy-follow .follow-step-number {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--ticket-line);
    border-radius: 8px;
    background: var(--ticket-soft);
    color: var(--ticket-accent-strong);
    box-shadow: none;
}

body.page-strategy-follow .follow-beginner-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.page-strategy-follow .follow-chart-panel {
    display: grid;
    gap: 10px;
    padding: 10px;
}

body.page-strategy-follow .follow-chart-levels {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

body.page-strategy-follow .follow-chart-level.is-entry {
    color: var(--ticket-accent-strong);
}

body.page-strategy-follow .follow-chart-level.is-stop {
    color: var(--ticket-red);
}

body.page-strategy-follow .follow-chart-level.is-target {
    color: var(--ticket-green);
}

body.page-strategy-follow .follow-chart-level.is-timed {
    color: #9fd4ff;
}

body.page-strategy-follow .follow-tv-chart,
body.page-strategy-follow .follow-tv-chart.is-fallback-chart {
    min-height: 500px;
    border: 1px solid var(--ticket-line);
    border-radius: 8px;
    background: #031114;
}

body.page-strategy-follow .screener-table {
    min-width: 820px;
    background: transparent;
}

body.page-strategy-follow .screener-table th {
    border-bottom: 1px solid var(--ticket-line);
    background: var(--ticket-card);
}

body.page-strategy-follow .screener-table td {
    border-bottom-color: rgba(103, 232, 249, 0.1);
    color: var(--ticket-muted);
}

body.page-strategy-follow .screener-table td.table-metric.positive,
body.page-strategy-follow .table-metric.positive {
    color: #008000 !important;
}

body.page-strategy-follow .screener-table td.table-metric.negative,
body.page-strategy-follow .table-metric.negative {
    color: #ff0000 !important;
}

body.page-strategy-follow .screener-table tbody tr:hover td {
    background: rgba(45, 212, 191, 0.06);
}

body.page-strategy-follow .follow-details-card {
    overflow: hidden;
    padding: 0;
}

body.page-strategy-follow .follow-trade-log-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 0;
}

body.page-strategy-follow .follow-trade-log-card:not([open]) {
    display: block;
}

body.page-strategy-follow .follow-details-summary {
    box-sizing: border-box;
    margin-bottom: 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 16px;
    cursor: pointer;
}

body.page-strategy-follow .follow-trade-log-head {
    margin-bottom: 0;
}

body.page-strategy-follow .follow-details-toggle-label {
    min-width: 86px;
    text-transform: none;
}

body.page-strategy-follow details[open] > .follow-details-summary .follow-details-toggle-closed,
body.page-strategy-follow details:not([open]) > .follow-details-summary .follow-details-toggle-open {
    display: none;
}

body.page-strategy-follow .follow-trade-log-card:not([open]) .follow-details-summary {
    border-bottom: 0;
}

body.page-strategy-follow .follow-trade-log-card > .follow-table-wrap,
body.page-strategy-follow .follow-trade-log-card > .empty-chart-state {
    margin: 14px 16px 16px;
}

body.page-strategy-follow .follow-trade-log-card > .follow-table-wrap {
    width: auto;
    min-width: 0;
    max-width: none;
    justify-self: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

body.page-strategy-follow .follow-trade-log-card > .follow-table-wrap .screener-table {
    width: max-content;
    min-width: max(820px, 100%);
}

body.page-strategy-follow .follow-trade-log-card[open] .follow-details-toggle-closed,
body.page-strategy-follow .follow-trade-log-card:not([open]) .follow-details-toggle-open {
    display: none;
}

body.page-strategy-follow .follow-details-grid {
    padding: 14px 16px 16px;
}

body.page-strategy-follow .follow-shell-loading-card {
    min-height: 220px;
    padding: 18px;
}

body.page-strategy-follow .follow-shell-progress {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--ticket-soft);
}

body.page-strategy-follow .follow-shell-progress-bar {
    background: var(--ticket-accent);
}

html[data-theme="light"] body.page-strategy-follow {
    --ticket-bg: #eff8f6;
    --ticket-panel: #ffffff;
    --ticket-card: #ffffff;
    --ticket-soft: #f2faf8;
    --ticket-line: rgba(4, 123, 134, 0.15);
    --ticket-line-strong: rgba(4, 123, 134, 0.3);
    --ticket-ink: #0b2228;
    --ticket-muted: #5a7178;
    --ticket-faint: #789098;
    --ticket-accent: #047b86;
    --ticket-accent-strong: #0f9ca8;
    --ticket-green: #007a4a;
    --ticket-red: #b3433a;
    background:
        linear-gradient(180deg, rgba(4, 123, 134, 0.035), transparent 320px),
        var(--ticket-bg) !important;
}

html[data-theme="light"] body.page-strategy-follow .detail-card,
html[data-theme="light"] body.page-strategy-follow .strategy-hero-panel,
html[data-theme="light"] body.page-strategy-follow .follow-active-panel,
html[data-theme="light"] body.page-strategy-follow .follow-chart-panel,
html[data-theme="light"] body.page-strategy-follow .screener-table-wrap,
html[data-theme="light"] body.page-strategy-follow .follow-table-wrap,
html[data-theme="light"] body.page-strategy-follow .follow-decision-risk span,
html[data-theme="light"] body.page-strategy-follow .follow-decision-proof span,
html[data-theme="light"] body.page-strategy-follow .follow-step-card,
html[data-theme="light"] body.page-strategy-follow .follow-setup-detail-card,
html[data-theme="light"] body.page-strategy-follow .follow-focus-overview {
    border-color: var(--ticket-line);
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.page-strategy-follow .strategy-hero-chip,
html[data-theme="light"] body.page-strategy-follow .validation-chip,
html[data-theme="light"] body.page-strategy-follow .mini-pill,
html[data-theme="light"] body.page-strategy-follow .follow-chart-level,
html[data-theme="light"] body.page-strategy-follow .follow-active-index,
html[data-theme="light"] body.page-strategy-follow .follow-step-number {
    background: var(--ticket-soft) !important;
    color: var(--ticket-accent);
}

html[data-theme="light"] body.page-strategy-follow .validation-chip {
    color: var(--ticket-green);
}

body.page-strategy-follow .follow-chart-level.is-entry,
html[data-theme="light"] body.page-strategy-follow .follow-chart-level.is-entry {
    border-color: rgba(103, 221, 216, 0.34);
    color: #0aa9a5 !important;
}

body.page-strategy-follow .follow-chart-level.is-stop,
html[data-theme="light"] body.page-strategy-follow .follow-chart-level.is-stop {
    border-color: rgba(255, 93, 103, 0.36);
    color: #ff5d67 !important;
}

body.page-strategy-follow .follow-chart-level.is-target,
html[data-theme="light"] body.page-strategy-follow .follow-chart-level.is-target {
    border-color: rgba(243, 180, 93, 0.42);
    color: #e89122 !important;
}

body.page-strategy-follow .follow-chart-level.is-timed,
html[data-theme="light"] body.page-strategy-follow .follow-chart-level.is-timed {
    border-color: rgba(118, 143, 255, 0.38);
    color: #6684ff !important;
}

body.page-strategy-follow .follow-section-head {
    padding-bottom: 18px;
    margin-bottom: 14px;
}

body.page-strategy-follow .follow-active-panel {
    padding: 0;
}

body.page-strategy-follow .follow-focus-overview,
body.page-strategy-follow .follow-active-panel,
body.page-strategy-follow .follow-step-card,
body.page-strategy-follow .follow-setup-detail-card,
body.page-strategy-follow .follow-chart-panel,
html[data-theme="light"] body.page-strategy-follow .follow-focus-overview,
html[data-theme="light"] body.page-strategy-follow .follow-active-panel,
html[data-theme="light"] body.page-strategy-follow .follow-step-card,
html[data-theme="light"] body.page-strategy-follow .follow-setup-detail-card,
html[data-theme="light"] body.page-strategy-follow .follow-chart-panel {
    border-color: transparent !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

body.page-strategy-follow .follow-focus-overview {
    padding: 4px 0 6px;
}

body.page-strategy-follow .follow-step-card,
body.page-strategy-follow .follow-setup-detail-card {
    min-height: 0;
    padding: 10px 0;
}

body.page-strategy-follow .follow-chart-panel {
    padding: 0;
}

body.page-strategy-follow .follow-active-collection-card {
    padding: 22px;
}

body.page-strategy-follow .follow-section-head {
    padding-bottom: 26px;
    margin-bottom: 22px;
}

body.page-strategy-follow .follow-active-list {
    gap: 28px;
}

body.page-strategy-follow .follow-active-panel {
    gap: 22px;
}

body.page-strategy-follow .follow-active-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--ticket-line);
}

body.page-strategy-follow .follow-active-overview .follow-active-index {
    display: none;
}

body.page-strategy-follow .follow-focus-stock {
    gap: 12px;
    min-width: 0;
}

body.page-strategy-follow .follow-focus-stock .coin-logo-large {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

body.page-strategy-follow .follow-focus-copy {
    min-width: 0;
}

body.page-strategy-follow .follow-focus-copy strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.1;
}

body.page-strategy-follow .follow-focus-copy span,
body.page-strategy-follow .follow-focus-copy small {
    display: block;
    margin-top: 5px;
}

body.page-strategy-follow .follow-beginner-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: var(--ticket-panel) !important;
}

body.page-strategy-follow .follow-step-card,
html[data-theme="light"] body.page-strategy-follow .follow-step-card {
    position: relative;
    min-height: 104px;
    padding: 18px 20px;
    border: 0;
    border-radius: 0;
    background: transparent !important;
}

body.page-strategy-follow .follow-step-card + .follow-step-card {
    border-left: 0;
}

body.page-strategy-follow .follow-step-card .follow-step-number {
    display: none;
}

body.page-strategy-follow .follow-step-card .field-label {
    display: block;
    margin-bottom: 16px;
    color: var(--ticket-accent-strong);
    font-size: 0.68rem;
}

body.page-strategy-follow .follow-step-card strong {
    display: block;
    font-size: clamp(1.05rem, 1.5vw, 1.32rem);
    line-height: 1.05;
}

body.page-strategy-follow .follow-step-card p {
    margin-top: 12px;
    font-size: 0.82rem;
    line-height: 1.35;
}

body.page-strategy-follow .follow-chart-levels {
    padding-top: 2px;
}

html[data-theme="light"] body.page-strategy-follow .follow-tv-chart,
html[data-theme="light"] body.page-strategy-follow .follow-tv-chart.is-fallback-chart {
    background: #ffffff;
}

html[data-theme="light"] body.page-strategy-follow .screener-table th {
    background: #f2faf8;
}

html[data-theme="light"] body.page-strategy-follow .screener-table td {
    color: var(--ticket-muted);
}

html[data-theme="light"] body.page-strategy-follow .screener-table tbody tr:hover td {
    background: #f2faf8;
}

@media (max-width: 1100px) {
    body.page-strategy-follow .follow-decision-proof,
    body.page-strategy-follow .follow-beginner-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    body.page-strategy-follow .page-shell {
        width: min(100% - 28px, 1320px);
    }

    body.page-strategy-follow .follow-hero-bar,
    body.page-strategy-follow .follow-decision-main,
    body.page-strategy-follow .follow-focus-overview {
        align-items: stretch;
    }

    body.page-strategy-follow .follow-hero-bar {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    body.page-strategy-follow .follow-decision-main,
    body.page-strategy-follow .follow-focus-overview {
        flex-direction: column;
    }

    body.page-strategy-follow .follow-active-overview {
        grid-template-columns: 1fr;
        align-items: start;
    }

    body.page-strategy-follow .follow-beginner-steps {
        grid-template-columns: 1fr;
    }

    body.page-strategy-follow .follow-step-card + .follow-step-card {
        border-top: 0;
        border-left: 0;
    }

    body.page-strategy-follow .follow-primary-action {
        width: 100%;
    }

    body.page-strategy-follow .follow-decision-risk,
    body.page-strategy-follow .follow-decision-proof,
    body.page-strategy-follow .follow-beginner-steps {
        grid-template-columns: 1fr;
    }

    body.page-strategy-follow .follow-tv-chart,
    body.page-strategy-follow .follow-tv-chart.is-fallback-chart {
        min-height: 420px;
    }
}

@media (max-width: 560px) {
    body.page-strategy-follow .follow-hero-minimal .strategy-hero-copy h1 {
        font-size: 2.1rem;
    }

    body.page-strategy-follow .follow-decision-copy h2 {
        font-size: 1.55rem;
    }

    body.page-strategy-follow .follow-focus-stock {
        align-items: flex-start;
    }
}

/* Follow validation: match Strategy Rules with a flat, text-first layout. */
body.page-strategy-follow .follow-validation-card .follow-validation-grid {
    padding-top: 10px;
}

body.page-strategy-follow .follow-validation-card .unified-score-card,
html[data-theme="light"] body.page-strategy-follow .follow-validation-card .unified-score-card {
    display: grid;
    gap: 14px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.page-strategy-follow .follow-validation-card .unified-score-hero {
    display: grid;
    grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

body.page-strategy-follow .follow-validation-card .unified-score-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: center;
    min-height: 76px;
}

body.page-strategy-follow .follow-validation-card .unified-score-total,
body.page-strategy-follow .follow-validation-card .unified-score-summary-card,
body.page-strategy-follow .follow-validation-card .unified-score-segment-card,
html[data-theme="light"] body.page-strategy-follow .follow-validation-card .unified-score-total,
html[data-theme="light"] body.page-strategy-follow .follow-validation-card .unified-score-summary-card,
html[data-theme="light"] body.page-strategy-follow .follow-validation-card .unified-score-segment-card {
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

body.page-strategy-follow .follow-validation-card .unified-score-total,
body.page-strategy-follow .follow-validation-card .unified-score-summary-card {
    align-content: start;
    justify-content: start;
    gap: 6px;
}

body.page-strategy-follow .follow-validation-card .unified-score-total {
    justify-items: center;
    align-content: start;
    text-align: center;
}

body.page-strategy-follow .follow-validation-card .unified-score-total-label,
body.page-strategy-follow .follow-validation-card .unified-score-summary-card span,
body.page-strategy-follow .follow-validation-card .unified-score-segment-head span:first-child {
    color: var(--ticket-faint);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

body.page-strategy-follow .follow-validation-card .unified-score-total strong {
    color: var(--ticket-ink);
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 0.95;
}

body.page-strategy-follow .follow-validation-card .unified-score-summary-card strong,
body.page-strategy-follow .follow-validation-card .unified-score-segment-head strong {
    color: var(--ticket-ink);
    font-size: 1rem;
    line-height: 1.2;
}

body.page-strategy-follow .follow-validation-card .validation-chip {
    width: 100%;
    max-width: 190px;
    justify-content: center;
}

body.page-strategy-follow .follow-validation-card .unified-score-segment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 34px;
    padding-top: 14px;
    border-top: 1px solid var(--ticket-line);
}

body.page-strategy-follow .follow-validation-card .unified-score-segment-card {
    gap: 8px;
    padding: 0 !important;
}

body.page-strategy-follow .follow-validation-card .unified-score-segment-head {
    display: grid;
    grid-template-columns: auto auto;
    gap: 3px 8px;
    align-items: center;
    justify-content: start;
}

body.page-strategy-follow .follow-validation-card .unified-score-segment-head > div {
    display: contents;
    min-width: 0;
}

body.page-strategy-follow .follow-validation-card .unified-score-segment-head strong {
    display: block;
    grid-column: 1 / -1;
}

body.page-strategy-follow .follow-validation-card .validation-mini-badge {
    align-self: center;
    justify-self: start;
    min-height: 0;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.54rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

body.page-strategy-follow .follow-validation-card .unified-score-segment-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
}

body.page-strategy-follow .follow-validation-card .unified-score-segment-metrics span,
html[data-theme="light"] body.page-strategy-follow .follow-validation-card .unified-score-segment-metrics span {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ticket-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

@media (max-width: 920px) {
    body.page-strategy-follow .follow-validation-card .unified-score-hero,
    body.page-strategy-follow .follow-validation-card .unified-score-summary {
        grid-template-columns: 1fr;
    }

    body.page-strategy-follow .follow-validation-card .unified-score-segment-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body.page-strategy-follow .follow-validation-card .unified-score-segment-card,
    body.page-strategy-follow .follow-validation-card .unified-score-segment-card:first-child {
        padding: 0 !important;
    }

    body.page-strategy-follow .follow-validation-card .unified-score-segment-card + .unified-score-segment-card {
        padding-top: 18px !important;
        border-top: 1px solid var(--ticket-line) !important;
        border-left: 0 !important;
    }

    body.page-strategy-follow .follow-validation-card .unified-score-segment-head {
        grid-template-columns: 1fr;
    }

    body.page-strategy-follow .follow-validation-card .validation-mini-badge {
        justify-self: start;
    }
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-overlap-list {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-overlap-list span,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-overlap-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 8px 10px;
    background: color-mix(in srgb, var(--accent) 6%, var(--panel));
    color: inherit;
    text-decoration: none;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-overlap-list a {
    cursor: pointer;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-overlap-list a:hover,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-overlap-list a:focus-visible {
    border-color: var(--watch-line-strong);
    background: rgba(45, 212, 191, 0.12);
    outline: none;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-overlap-list strong,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-overlap-list small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-overlap-list strong {
    color: var(--text);
    font-size: 0.72rem;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-overlap-list small {
    flex: 0 0 auto;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
}

body.page-strategy-follow .follow-rules-card {
    margin-bottom: 16px;
}

body.page-strategy-follow .follow-rules-lock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-top: 1px solid var(--ticket-line);
    background: rgba(0, 150, 160, 0.05);
}

body.page-strategy-follow .follow-rules-lock > div {
    display: grid;
    gap: 10px;
    min-width: 0;
}

body.page-strategy-follow .follow-rules-lock-title {
    color: var(--text);
    font-size: 1.02rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.25;
}

body.page-strategy-follow .follow-rules-lock-cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid rgba(0, 143, 152, 0.88);
    border-radius: 8px;
    background: #008f98;
    background-image: none;
    box-shadow: none;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

body.page-strategy-follow .follow-rules-lock-cta:hover {
    border-color: #00757d;
    background: #007f87;
    color: #ffffff;
}

body.page-alerts-pro {
    --alerts-pro-teal: #008f98;
    --alerts-pro-teal-dark: #006d74;
    --alerts-pro-blue: #0f5f7a;
    --alerts-pro-amber: #c47a18;
    --alerts-pro-soft: #eefafa;
    --alerts-pro-surface: #f7fefe;
    --alerts-pro-line: rgba(0, 143, 152, 0.24);
    --alerts-pro-ink: #0d2529;
    --alerts-pro-muted: #587177;
}

html[data-theme="light"] body.page-alerts-pro .page-shell,
body.page-alerts-pro .page-shell {
    background:
        linear-gradient(180deg, rgba(232, 249, 249, 0.92), rgba(247, 253, 253, 0.98)),
        var(--bg);
}

body.page-alerts-pro .alerts-pro-header {
    margin-bottom: 18px;
}

body.page-alerts-pro .alerts-pro-hero-card,
body.page-alerts-pro .alerts-pro-step-card,
body.page-alerts-pro .alerts-pro-redirect-card,
body.page-alerts-pro .alerts-pro-success-card,
body.page-alerts-pro .alerts-pro-active-card,
body.page-alerts-pro .alerts-pro-cancel-card,
body.page-alerts-pro .alerts-pro-connect-card,
body.page-alerts-pro .alerts-pro-connect-steps span,
body.page-alerts-pro .alerts-pro-active-meta span,
body.page-alerts-pro .alerts-pro-return-urls span,
body.page-alerts-pro .alerts-pro-missing-config code,
body.page-alerts-pro .alerts-pro-config-required,
body.page-alerts-pro .alerts-pro-next-card,
body.page-alerts-pro .alerts-pro-info-panel article {
    border-color: var(--alerts-pro-line);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: none;
}

body.page-alerts-pro .alerts-pro-hero-card {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 22px;
    padding: clamp(18px, 2.4vw, 28px);
}

body.page-alerts-pro .alerts-pro-hero-copy h2 {
    max-width: 11ch;
    color: var(--alerts-pro-ink);
    font-size: clamp(2rem, 4vw, 3.5rem);
}

body.page-alerts-pro .alerts-pro-hero-copy > span,
body.page-alerts-pro .alerts-pro-step-card > div > span,
body.page-alerts-pro .alerts-pro-redirect-card > span,
body.page-alerts-pro .alerts-pro-redirect-note,
body.page-alerts-pro .alerts-pro-success-card > span,
body.page-alerts-pro .alerts-pro-active-card > span,
body.page-alerts-pro .alerts-pro-cancel-card > span,
body.page-alerts-pro .alerts-pro-active-meta small,
body.page-alerts-pro .alerts-pro-return-urls small,
body.page-alerts-pro .alerts-pro-connect-copy > span,
body.page-alerts-pro .alerts-pro-connect-steps small,
body.page-alerts-pro .alerts-pro-connect-unavailable,
body.page-alerts-pro .alerts-pro-next-card span,
body.page-alerts-pro .alerts-pro-info-panel p {
    color: var(--alerts-pro-muted);
}

body.page-alerts-pro .alerts-pro-price-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 6px;
}

body.page-alerts-pro .alerts-pro-price-row span {
    display: grid;
    gap: 4px;
    padding: 13px 14px;
    border: 1px solid var(--alerts-pro-line);
    border-radius: 8px;
    background: var(--alerts-pro-soft);
}

body.page-alerts-pro .alerts-pro-price-row small {
    color: var(--alerts-pro-teal-dark);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

body.page-alerts-pro .alerts-pro-price-row strong {
    color: var(--alerts-pro-ink);
    font-size: 1.1rem;
    line-height: 1.15;
}

body.page-alerts-pro .alerts-pro-config-required {
    display: grid;
    gap: 6px;
    margin-top: 6px;
    padding: 14px 16px;
    border: 1px solid var(--alerts-pro-line);
    border-radius: 8px;
    background: var(--alerts-pro-soft);
}

body.page-alerts-pro .alerts-pro-config-required strong {
    color: var(--alerts-pro-teal-dark);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

body.page-alerts-pro .alerts-pro-config-required span {
    color: var(--alerts-pro-muted);
    font-size: 0.96rem;
    line-height: 1.45;
}

body.page-alerts-pro .live-signals-pro-points span {
    border-color: var(--alerts-pro-line);
    background: #f6fdfd;
    color: var(--alerts-pro-teal-dark);
}

body.page-alerts-pro .alerts-pro-success-card h1,
body.page-alerts-pro .alerts-pro-active-card h1,
body.page-alerts-pro .alerts-pro-cancel-card h1,
body.page-alerts-pro .alerts-pro-active-meta strong,
body.page-alerts-pro .alerts-pro-return-urls code,
body.page-alerts-pro .alerts-pro-redirect-note code,
body.page-alerts-pro .alerts-pro-missing-config strong,
body.page-alerts-pro .alerts-pro-missing-config code,
body.page-alerts-pro .alerts-pro-connect-copy h2,
body.page-alerts-pro .alerts-pro-connect-steps strong,
body.page-alerts-pro .alerts-pro-connect-steps code {
    color: var(--alerts-pro-ink);
}

body.page-alerts-pro .alerts-pro-active-mark {
    border-color: var(--alerts-pro-line);
    background: var(--alerts-pro-soft);
}

body.page-alerts-pro .alerts-pro-active-mark span {
    border-color: var(--alerts-pro-teal);
}

body.page-alerts-pro .alerts-pro-connect-steps em {
    color: var(--alerts-pro-teal-dark);
}

body.page-alerts-pro .live-signals-pro-button,
html[data-theme="light"] body.page-alerts-pro .live-signals-pro-button,
body.page-alerts-pro .live-signals-alert-form button,
html[data-theme="light"] body.page-alerts-pro .live-signals-alert-form button,
body.page-alerts-pro .alerts-pro-proof-form button,
html[data-theme="light"] body.page-alerts-pro .alerts-pro-proof-form button {
    border-color: var(--alerts-pro-teal);
    border-radius: 7px;
    background: var(--alerts-pro-teal);
    color: #ffffff;
    box-shadow: none;
}

body.page-alerts-pro .live-signals-pro-button:hover,
html[data-theme="light"] body.page-alerts-pro .live-signals-pro-button:hover,
body.page-alerts-pro .live-signals-alert-form button:hover,
html[data-theme="light"] body.page-alerts-pro .live-signals-alert-form button:hover,
body.page-alerts-pro .alerts-pro-proof-form button:hover,
html[data-theme="light"] body.page-alerts-pro .alerts-pro-proof-form button:hover {
    border-color: var(--alerts-pro-teal-dark);
    background: var(--alerts-pro-teal-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: none;
}

body.page-alerts-pro .live-signals-pro-button.is-disabled,
html[data-theme="light"] body.page-alerts-pro .live-signals-pro-button.is-disabled,
body.page-alerts-pro .live-signals-pro-button.is-disabled:hover,
html[data-theme="light"] body.page-alerts-pro .live-signals-pro-button.is-disabled:hover,
body.page-alerts-pro .live-signals-telegram-cta.is-disabled,
html[data-theme="light"] body.page-alerts-pro .live-signals-telegram-cta.is-disabled {
    cursor: default;
    border-color: var(--alerts-pro-line);
    background: #f7fefe;
    color: var(--alerts-pro-teal-dark);
    transform: none;
    box-shadow: none;
}

body.page-alerts-pro .alerts-pro-preview,
html[data-theme="light"] body.page-alerts-pro .alerts-pro-preview {
    border-color: var(--alerts-pro-line);
    background: #f7fefe;
    box-shadow: none;
}

body.page-alerts-pro .alerts-pro-preview pre {
    max-height: 460px;
    color: var(--alerts-pro-ink);
}

body.page-alerts-pro .alerts-pro-info-link {
    color: var(--alerts-pro-teal-dark);
}

body.page-alerts-pro .alerts-pro-spinner {
    border-color: rgba(0, 143, 152, 0.18);
    border-top-color: var(--alerts-pro-teal);
}

body.page-alerts-pro .alerts-pro-secondary-button {
    border-color: var(--alerts-pro-line);
    background: #f7fefe;
    color: var(--alerts-pro-teal-dark);
}

body.page-alerts-pro .alerts-pro-secondary-button:hover,
body.page-alerts-pro .alerts-pro-secondary-link:hover {
    border-color: var(--alerts-pro-teal);
    color: var(--alerts-pro-teal-dark);
}

body.page-alerts-pro .alerts-pro-secondary-link {
    border-color: var(--alerts-pro-line);
    background: #f7fefe;
    color: var(--alerts-pro-teal-dark);
}

body.page-alerts-pro .alerts-pro-setup-helper {
    border-color: var(--alerts-pro-line);
    background: #f7fefe;
}

body.page-alerts-pro .alerts-pro-how-shell {
    gap: 18px;
}

body.page-alerts-pro [data-alerts-pro-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 540ms ease,
        transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

body.page-alerts-pro [data-alerts-pro-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    body.page-alerts-pro [data-alerts-pro-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

body.page-alerts-pro .alerts-pro-how-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
    gap: clamp(18px, 3vw, 34px);
    align-items: stretch;
    padding: clamp(6px, 1.4vw, 14px) 0 6px;
}

body.page-alerts-pro .alerts-pro-how-hero-copy {
    display: grid;
    align-content: center;
    gap: 16px;
    min-width: 0;
}

body.page-alerts-pro .alerts-pro-how-hero-copy h1 {
    max-width: 12ch;
    margin: 0;
    color: var(--alerts-pro-ink);
    font-family: "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
    font-size: clamp(2.45rem, 6vw, 5.6rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.9;
}

body.page-alerts-pro .alerts-pro-how-hero-copy > p {
    max-width: 62ch;
    margin: 0;
    color: var(--alerts-pro-muted);
    font-size: clamp(1rem, 1.55vw, 1.16rem);
    line-height: 1.55;
}

body.page-alerts-pro .alerts-pro-how-actions,
body.page-alerts-pro .alerts-pro-how-chip-row,
body.page-alerts-pro .alerts-pro-how-ticket-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

body.page-alerts-pro .alerts-pro-how-meta,
body.page-alerts-pro .alerts-pro-how-snapshot,
body.page-alerts-pro .alerts-pro-how-grid,
body.page-alerts-pro .alerts-pro-how-status-grid {
    display: grid;
    gap: 12px;
}

body.page-alerts-pro .alerts-pro-how-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.page-alerts-pro .alerts-pro-how-meta span,
body.page-alerts-pro .alerts-pro-how-snapshot article,
body.page-alerts-pro .alerts-pro-how-card,
body.page-alerts-pro .alerts-pro-how-status-grid article,
body.page-alerts-pro .alerts-pro-how-run-card,
body.page-alerts-pro .alerts-pro-how-ticket,
body.page-alerts-pro .alerts-pro-how-cta {
    border: 1px solid var(--alerts-pro-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: none;
}

body.page-alerts-pro .alerts-pro-how-meta span {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 12px;
    background: var(--alerts-pro-surface);
}

body.page-alerts-pro .alerts-pro-how-meta small,
body.page-alerts-pro .alerts-pro-how-run-head span,
body.page-alerts-pro .alerts-pro-how-snapshot span,
body.page-alerts-pro .alerts-pro-how-ticket-top span,
body.page-alerts-pro .alerts-pro-how-ticket-levels small,
body.page-alerts-pro .alerts-pro-how-status-grid span {
    color: var(--alerts-pro-teal-dark);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

body.page-alerts-pro .alerts-pro-how-meta strong,
body.page-alerts-pro .alerts-pro-how-run-head strong,
body.page-alerts-pro .alerts-pro-how-run-timeline strong,
body.page-alerts-pro .alerts-pro-how-snapshot strong,
body.page-alerts-pro .alerts-pro-how-ticket-main strong,
body.page-alerts-pro .alerts-pro-how-ticket-levels strong {
    color: var(--alerts-pro-ink);
}

body.page-alerts-pro .alerts-pro-how-run-card {
    display: grid;
    gap: 16px;
    align-content: start;
    padding: clamp(16px, 2.3vw, 24px);
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(247, 254, 254, 0.98), rgba(238, 250, 250, 0.96)),
        #ffffff;
}

body.page-alerts-pro .alerts-pro-how-run-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--alerts-pro-line);
}

body.page-alerts-pro .alerts-pro-how-run-head strong {
    max-width: 22ch;
    text-align: right;
    line-height: 1.25;
}

body.page-alerts-pro .alerts-pro-how-market-tabs {
    display: flex;
    justify-content: flex-start;
}

body.page-alerts-pro .alerts-pro-how-run-timeline {
    display: grid;
    gap: 0;
}

body.page-alerts-pro .alerts-pro-how-run-timeline span {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px 12px;
    min-height: 78px;
    padding: 0 0 16px;
}

body.page-alerts-pro .alerts-pro-how-run-timeline span::before {
    position: absolute;
    top: 28px;
    bottom: 0;
    left: 13px;
    width: 1px;
    background: var(--alerts-pro-line);
    content: "";
}

body.page-alerts-pro .alerts-pro-how-run-timeline span:last-child {
    min-height: 0;
    padding-bottom: 0;
}

body.page-alerts-pro .alerts-pro-how-run-timeline span:last-child::before {
    display: none;
}

body.page-alerts-pro .alerts-pro-how-run-timeline i {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--alerts-pro-line);
    border-radius: 999px;
    background: #ffffff;
}

body.page-alerts-pro .alerts-pro-how-run-timeline i::after {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--alerts-pro-teal);
    content: "";
}

body.page-alerts-pro .alerts-pro-how-run-timeline strong,
body.page-alerts-pro .alerts-pro-how-run-timeline small {
    grid-column: 2;
}

body.page-alerts-pro .alerts-pro-how-run-timeline small,
body.page-alerts-pro .alerts-pro-how-snapshot small,
body.page-alerts-pro .alerts-pro-how-card p,
body.page-alerts-pro .alerts-pro-how-anatomy-copy p,
body.page-alerts-pro .alerts-pro-how-ticket-main span,
body.page-alerts-pro .alerts-pro-how-status-grid p,
body.page-alerts-pro .alerts-pro-how-cta span {
    color: var(--alerts-pro-muted);
    line-height: 1.45;
}

body.page-alerts-pro .alerts-pro-how-snapshot {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.page-alerts-pro .alerts-pro-how-snapshot article {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 132px;
    padding: 16px;
}

body.page-alerts-pro .alerts-pro-how-snapshot strong {
    font-family: "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    line-height: 0.95;
}

body.page-alerts-pro .alerts-pro-how-grid {
    grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 0.95fr));
}

body.page-alerts-pro .alerts-pro-how-card {
    display: grid;
    align-content: start;
    gap: 14px;
    min-height: 220px;
    padding: 18px;
}

body.page-alerts-pro .alerts-pro-how-card-wide {
    background:
        linear-gradient(135deg, rgba(238, 250, 250, 0.96), rgba(255, 255, 255, 0.98)),
        #ffffff;
}

body.page-alerts-pro .alerts-pro-how-card-head {
    display: grid;
    gap: 10px;
}

body.page-alerts-pro .alerts-pro-how-card-head span {
    display: inline-flex;
    width: max-content;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--alerts-pro-line);
    border-radius: 999px;
    padding: 0 10px;
    background: var(--alerts-pro-soft);
    color: var(--alerts-pro-teal-dark);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 900;
}

body.page-alerts-pro .alerts-pro-how-card h2,
body.page-alerts-pro .alerts-pro-how-anatomy-copy h2,
body.page-alerts-pro .alerts-pro-how-cta h2 {
    margin: 0;
    color: var(--alerts-pro-ink);
    font-family: "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
}

body.page-alerts-pro .alerts-pro-how-card h2 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

body.page-alerts-pro .alerts-pro-how-card p,
body.page-alerts-pro .alerts-pro-how-anatomy-copy p,
body.page-alerts-pro .alerts-pro-how-status-grid p,
body.page-alerts-pro .alerts-pro-how-cta span {
    margin: 0;
}

body.page-alerts-pro .alerts-pro-how-chip-row {
    margin-top: auto;
}

body.page-alerts-pro .alerts-pro-how-chip-row span,
body.page-alerts-pro .alerts-pro-how-ticket-footer span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--alerts-pro-line);
    border-radius: 999px;
    padding: 0 10px;
    background: var(--alerts-pro-surface);
    color: var(--alerts-pro-teal-dark);
    font-size: 0.72rem;
    font-weight: 850;
}

body.page-alerts-pro .alerts-pro-how-anatomy {
    display: grid;
    grid-template-columns: minmax(0, 0.84fr) minmax(340px, 1.16fr);
    gap: clamp(16px, 2.5vw, 26px);
    align-items: center;
    padding: 8px 0;
}

body.page-alerts-pro .alerts-pro-how-anatomy-copy {
    display: grid;
    gap: 10px;
    min-width: 0;
}

body.page-alerts-pro .alerts-pro-how-anatomy-copy h2,
body.page-alerts-pro .alerts-pro-how-cta h2 {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
}

body.page-alerts-pro .alerts-pro-how-ticket {
    display: grid;
    gap: 15px;
    min-width: 0;
    padding: 18px;
    background: #ffffff;
}

body.page-alerts-pro .alerts-pro-how-ticket-top,
body.page-alerts-pro .alerts-pro-how-ticket-main,
body.page-alerts-pro .alerts-pro-how-ticket-levels {
    display: grid;
    gap: 10px;
}

body.page-alerts-pro .alerts-pro-how-ticket-top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

body.page-alerts-pro .alerts-pro-how-ticket-top strong {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 11px;
    background: rgba(196, 122, 24, 0.12);
    color: var(--alerts-pro-amber);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
}

body.page-alerts-pro .alerts-pro-how-ticket-main {
    min-height: 104px;
    align-content: center;
    border-top: 1px solid var(--alerts-pro-line);
    border-bottom: 1px solid var(--alerts-pro-line);
    padding: 18px 0;
}

body.page-alerts-pro .alerts-pro-how-ticket-main strong {
    font-family: "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 0.95;
}

body.page-alerts-pro .alerts-pro-how-ticket-levels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.page-alerts-pro .alerts-pro-how-ticket-levels span {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 12px;
    border-radius: 8px;
    background: var(--alerts-pro-soft);
}

body.page-alerts-pro .alerts-pro-how-ticket-levels strong {
    font-size: 0.92rem;
    line-height: 1.2;
}

body.page-alerts-pro .alerts-pro-how-status-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.page-alerts-pro .alerts-pro-how-status-grid article {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 120px;
    padding: 15px;
    background: var(--alerts-pro-surface);
}

body.page-alerts-pro .alerts-pro-how-status-grid span {
    color: var(--alerts-pro-blue);
}

body.page-alerts-pro .alerts-pro-how-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: clamp(18px, 2.6vw, 26px);
    background:
        linear-gradient(135deg, rgba(238, 250, 250, 0.98), rgba(255, 255, 255, 0.98)),
        #ffffff;
}

body.page-alerts-pro .alerts-pro-how-cta > div {
    display: grid;
    gap: 8px;
    min-width: 0;
}

body.page-alerts-pro .alerts-pro-how-cta h2 {
    max-width: 18ch;
}

.landing-join p {
    margin: 8px 0 0;
    color: var(--landing-muted, var(--muted));
    font-size: 0.95rem;
    line-height: 1.45;
}

@media (max-width: 840px) {
    body.page-alerts-pro .alerts-pro-hero-card,
    body.page-alerts-pro .alerts-pro-step-card,
    body.page-alerts-pro .alerts-pro-connect-card,
    body.page-alerts-pro .alerts-pro-connect-steps,
    body.page-alerts-pro .alerts-pro-how-hero,
    body.page-alerts-pro .alerts-pro-how-anatomy {
        grid-template-columns: 1fr;
    }

    body.page-alerts-pro .alerts-pro-connect-actions,
    body.page-alerts-pro .alerts-pro-connect-message {
        grid-column: 1;
    }

    body.page-strategy-follow .follow-rules-lock {
        align-items: flex-start;
        flex-direction: column;
    }

    body.page-alerts-pro .alerts-pro-how-grid,
    body.page-alerts-pro .alerts-pro-how-snapshot,
    body.page-alerts-pro .alerts-pro-how-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.page-alerts-pro .alerts-pro-how-hero-copy h1 {
        max-width: 14ch;
    }
}

@media (max-width: 560px) {
    body.page-alerts-pro .alerts-pro-price-row {
        grid-template-columns: 1fr;
    }

    body.page-alerts-pro .alerts-pro-connect-actions,
    body.page-alerts-pro .alerts-pro-active-actions,
    body.page-alerts-pro .alerts-pro-active-meta,
    body.page-alerts-pro .alerts-pro-return-urls,
    body.page-alerts-pro .alerts-pro-connect-actions .live-signals-pro-button,
    body.page-alerts-pro .alerts-pro-active-actions .live-signals-pro-button,
    body.page-alerts-pro .alerts-pro-secondary-button,
    body.page-alerts-pro .alerts-pro-secondary-link {
        width: 100%;
    }

    body.page-alerts-pro .alerts-pro-active-meta {
        grid-template-columns: 1fr;
    }

    body.page-alerts-pro .alerts-pro-return-urls {
        grid-template-columns: 1fr;
    }

    body.page-alerts-pro .alerts-pro-how-meta,
    body.page-alerts-pro .alerts-pro-how-snapshot,
    body.page-alerts-pro .alerts-pro-how-grid,
    body.page-alerts-pro .alerts-pro-how-ticket-levels,
    body.page-alerts-pro .alerts-pro-how-status-grid {
        grid-template-columns: 1fr;
    }

    body.page-alerts-pro .alerts-pro-how-cta {
        align-items: stretch;
        flex-direction: column;
    }

    body.page-alerts-pro .alerts-pro-how-cta .live-signals-pro-button,
    body.page-alerts-pro .alerts-pro-how-actions .live-signals-pro-button,
    body.page-alerts-pro .alerts-pro-how-actions .alerts-pro-secondary-link {
        width: 100%;
    }
}

/* Contact page: icon-led support desk. */
body.page-contact {
    --contact-bg: #eef8f8;
    --contact-surface: rgba(252, 255, 255, 0.94);
    --contact-surface-strong: #ffffff;
    --contact-ink: #0a242a;
    --contact-muted: #587177;
    --contact-soft: #dff4f5;
    --contact-line: rgba(4, 123, 134, 0.18);
    --contact-line-strong: rgba(4, 123, 134, 0.36);
    --contact-accent: #047b86;
    --contact-accent-strong: #025963;
    --contact-warm: #b7791f;
    background:
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(4, 123, 134, 0.08) calc(50% - 1px), rgba(4, 123, 134, 0.08) calc(50% + 1px), transparent calc(50% + 1px)),
        repeating-linear-gradient(115deg, rgba(4, 123, 134, 0.032) 0 1px, transparent 1px 10px),
        var(--contact-bg);
}

html[data-theme="dark"] body.page-contact {
    --contact-bg: #061013;
    --contact-surface: rgba(8, 23, 27, 0.88);
    --contact-surface-strong: rgba(11, 31, 36, 0.96);
    --contact-ink: #effcfb;
    --contact-muted: rgba(239, 252, 251, 0.68);
    --contact-soft: rgba(45, 212, 191, 0.12);
    --contact-line: rgba(103, 232, 249, 0.15);
    --contact-line-strong: rgba(45, 212, 191, 0.36);
    --contact-accent: #67e8f9;
    --contact-accent-strong: #2dd4bf;
    --contact-warm: #f0b35b;
    background:
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(103, 232, 249, 0.09) calc(50% - 1px), rgba(103, 232, 249, 0.09) calc(50% + 1px), transparent calc(50% + 1px)),
        repeating-linear-gradient(115deg, rgba(103, 232, 249, 0.03) 0 1px, transparent 1px 10px),
        var(--contact-bg);
}

body.page-contact .page-shell {
    width: min(1180px, calc(100vw - 48px));
}

.contact-page {
    display: grid;
    gap: clamp(18px, 3vw, 30px);
    padding: clamp(38px, 6vw, 78px) 0 clamp(56px, 8vw, 94px);
    color: var(--contact-ink);
}

.contact-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: clamp(20px, 5vw, 72px);
    align-items: stretch;
    padding-bottom: clamp(22px, 4vw, 38px);
    border-bottom: 1px solid var(--contact-line);
}

.contact-hero-copy,
.contact-hero-panel,
.contact-card,
.contact-note-strip {
    min-width: 0;
    box-sizing: border-box;
}

.contact-hero-copy {
    display: grid;
    align-content: center;
    gap: clamp(14px, 2vw, 18px);
}

.contact-kicker,
.contact-label,
.contact-card em,
.contact-panel-label,
.contact-note-strip span {
    color: var(--contact-accent);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.contact-kicker {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    min-height: 30px;
    align-items: center;
    border: 1px solid var(--contact-line-strong);
    border-radius: 999px;
    padding: 0 12px;
    background: var(--contact-soft);
}

.contact-hero h1 {
    max-width: 11ch;
    margin: 0;
    color: var(--contact-ink);
    font-family: "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
    font-size: clamp(3.1rem, 8.5vw, 7.2rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.9;
}

.contact-hero p {
    max-width: 54ch;
    margin: 0;
    color: var(--contact-muted);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.55;
}

.contact-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.contact-action,
.contact-hero-panel a,
.contact-card em {
    display: inline-flex;
    max-width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--contact-line-strong);
    border-radius: 999px;
    padding: 0 15px;
    background: var(--contact-surface);
    color: var(--contact-accent);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: uppercase;
}

.contact-action.is-primary,
.contact-hero-panel a {
    background: var(--contact-accent);
    border-color: var(--contact-accent);
    color: #ffffff;
}

html[data-theme="dark"] .contact-action.is-primary,
html[data-theme="dark"] .contact-hero-panel a {
    color: #052126;
}

.contact-action > span {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
}

.contact-action svg,
.contact-hero-panel a svg,
.contact-icon svg,
.contact-arrow svg,
.contact-panel-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.contact-hero-panel {
    position: relative;
    display: grid;
    align-content: end;
    gap: 14px;
    overflow: hidden;
    border: 1px solid var(--contact-line);
    border-radius: 8px;
    padding: clamp(22px, 3.2vw, 34px);
    background:
        linear-gradient(135deg, var(--contact-soft), transparent 58%),
        var(--contact-surface-strong);
}

.contact-hero-panel::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid var(--contact-line);
    pointer-events: none;
}

.contact-panel-icon {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    border: 1px solid var(--contact-line-strong);
    border-radius: 50%;
    background: var(--contact-soft);
    color: var(--contact-accent);
}

.contact-hero-panel > * {
    position: relative;
}

.contact-hero-panel strong {
    max-width: 11ch;
    color: var(--contact-ink);
    font-family: "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
    font-size: clamp(2rem, 4.4vw, 4.5rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.92;
}

.contact-hero-panel a {
    width: max-content;
    border-radius: 7px;
}

.contact-hero-panel a svg {
    width: 18px;
    height: 18px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.contact-card {
    display: grid;
    align-content: start;
    gap: 13px;
    min-height: 320px;
    border: 1px solid var(--contact-line);
    border-radius: 8px;
    padding: clamp(18px, 2.3vw, 26px);
    background: var(--contact-surface);
    color: var(--contact-ink);
    text-decoration: none;
    transition:
        border-color 180ms ease,
        background 180ms ease;
}

.contact-card:hover,
.contact-card:focus-visible {
    border-color: var(--contact-line-strong);
    background:
        linear-gradient(135deg, var(--contact-soft), transparent 60%),
        var(--contact-surface-strong);
    outline: none;
}

.contact-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.contact-icon,
.contact-arrow {
    display: grid;
    place-items: center;
    border: 1px solid var(--contact-line-strong);
    color: var(--contact-accent);
}

.contact-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--contact-soft);
}

.contact-icon svg {
    width: 30px;
    height: 30px;
}

.contact-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--contact-surface-strong);
}

.contact-arrow svg {
    width: 18px;
    height: 18px;
}

.contact-card strong {
    color: var(--contact-ink);
    font-family: "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
    font-size: clamp(1.45rem, 2.4vw, 2.2rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.02;
    overflow-wrap: anywhere;
}

.contact-card small {
    max-width: 34ch;
    color: var(--contact-muted);
    font-size: 0.94rem;
    line-height: 1.45;
}

.contact-card em {
    width: max-content;
    margin-top: auto;
    border-radius: 7px;
    background: transparent;
}

.contact-card.is-address strong {
    font-size: clamp(1.08rem, 1.65vw, 1.38rem);
    line-height: 1.22;
}

.contact-card.is-email strong {
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    line-height: 1.2;
}

.contact-card.is-whatsapp .contact-icon,
.contact-card.is-whatsapp .contact-arrow,
.contact-hero-panel .contact-panel-icon {
    border-color: var(--contact-accent);
}

.contact-card.is-email .contact-icon,
.contact-card.is-email .contact-arrow {
    color: var(--contact-accent-strong);
}

.contact-card.is-address .contact-icon,
.contact-card.is-address .contact-arrow {
    color: var(--contact-warm);
}

.contact-note-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--contact-line);
    border-radius: 8px;
    background: var(--contact-surface);
}

.contact-note-strip span {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    text-align: center;
}

.contact-note-strip span + span {
    border-left: 1px solid var(--contact-line);
}

@media (max-width: 980px) {
    .contact-hero,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-hero-panel strong {
        max-width: 100%;
    }

    .contact-card {
        min-height: 0;
    }
}

@media (max-width: 680px) {
    body.page-contact .page-shell {
        width: calc(100vw - 28px);
        max-width: calc(100vw - 28px);
    }

    .contact-page {
        padding-top: 32px;
        overflow-x: clip;
    }

    .contact-hero h1 {
        font-size: clamp(2.8rem, 16vw, 4.8rem);
    }

    .contact-hero-actions,
    .contact-action,
    .contact-hero-panel a,
    .contact-card em {
        width: 100%;
    }

    .contact-action,
    .contact-hero-panel a,
    .contact-card em {
        min-height: 46px;
    }

    .contact-hero-panel,
    .contact-card {
        padding: 18px;
    }

    .contact-hero-panel::before {
        inset: 12px;
    }

    .contact-note-strip {
        grid-template-columns: 1fr 1fr;
    }

    .contact-note-strip span + span {
        border-left: 0;
    }

    .contact-note-strip span:nth-child(2n) {
        border-left: 1px solid var(--contact-line);
    }

    .contact-note-strip span:nth-child(n + 3) {
        border-top: 1px solid var(--contact-line);
    }
}

/* Keep account/theme menus above page cards on public pages. */
body > .topbar {
    z-index: 1000;
}

body > .page-shell,
body > .site-footer {
    z-index: 1;
}

.topbar,
.topbar-shell,
.topbar-right,
.topbar-user-menu {
    overflow: visible;
}

.topbar-user-menu[open] {
    z-index: 1001;
}

.topbar-user-dropdown {
    z-index: 1002;
}

body.page-seo-guide {
    --seo-bg: #eef8f8;
    --seo-surface: rgba(252, 255, 255, 0.96);
    --seo-surface-strong: #ffffff;
    --seo-ink: #09242b;
    --seo-muted: #587177;
    --seo-soft: #e0f4f5;
    --seo-line: rgba(4, 123, 134, 0.18);
    --seo-line-strong: rgba(4, 123, 134, 0.34);
    --seo-accent: #047b86;
    --seo-accent-strong: #025963;
    --seo-warm: #a95f13;
    background: var(--seo-bg);
    overflow-x: hidden;
}

html[data-theme="dark"] body.page-seo-guide {
    --seo-bg: #061013;
    --seo-surface: rgba(8, 23, 27, 0.9);
    --seo-surface-strong: rgba(11, 31, 36, 0.98);
    --seo-ink: #effcfb;
    --seo-muted: rgba(239, 252, 251, 0.68);
    --seo-soft: rgba(45, 212, 191, 0.12);
    --seo-line: rgba(103, 232, 249, 0.15);
    --seo-line-strong: rgba(45, 212, 191, 0.34);
    --seo-accent: #67e8f9;
    --seo-accent-strong: #2dd4bf;
    --seo-warm: #f0b35b;
    background: var(--seo-bg);
}

body.page-seo-guide .page-shell {
    width: min(1120px, calc(100vw - 48px));
    max-width: min(1120px, calc(100vw - 48px));
    margin-inline: auto;
    padding: 44px 0 72px;
}

.seo-guide-page {
    box-sizing: border-box;
    display: grid;
    gap: 26px;
    color: var(--seo-ink);
}

.seo-guide-page *,
.seo-guide-page *::before,
.seo-guide-page *::after {
    box-sizing: border-box;
}

.seo-guide-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 24px;
    align-items: stretch;
    padding: 36px 0 34px;
    border-bottom: 1px solid var(--seo-line);
}

.seo-guide-hero-copy,
.seo-guide-panel,
.seo-guide-card,
.seo-guide-section,
.seo-guide-cta {
    border-radius: 8px;
}

.seo-guide-hero-copy {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 20px;
}

.seo-guide-kicker {
    width: fit-content;
    border: 1px solid var(--seo-line-strong);
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--seo-soft);
    color: var(--seo-accent);
    font: 700 0.75rem/1 "IBM Plex Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 0;
}

.seo-guide-hero h1,
.seo-guide-section h2,
.seo-guide-card h2 {
    margin: 0;
    color: var(--seo-ink);
    letter-spacing: 0;
}

.seo-guide-hero h1 {
    max-width: 12ch;
    font-family: "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
    font-size: 4rem;
    line-height: 0.95;
    overflow-wrap: anywhere;
}

.seo-guide-hero p,
.seo-guide-summary p,
.seo-guide-card p,
.seo-guide-card li,
.seo-guide-workflow li,
.seo-guide-related a span,
.seo-guide-faq p,
.seo-guide-cta p {
    color: var(--seo-muted);
    font: 500 1rem/1.75 "IBM Plex Sans", sans-serif;
}

.seo-guide-hero p {
    max-width: 68ch;
    margin: 0;
    font-size: 1.08rem;
    overflow-wrap: anywhere;
}

.seo-guide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.seo-guide-action,
.seo-guide-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    border: 1px solid var(--seo-line-strong);
    border-radius: 8px;
    padding: 0 16px;
    background: var(--seo-surface);
    color: var(--seo-accent);
    font: 800 0.88rem/1 "IBM Plex Sans", sans-serif;
    text-decoration: none;
}

.seo-guide-action.is-primary,
.seo-guide-cta a {
    background: var(--seo-accent);
    border-color: var(--seo-accent);
    color: #ffffff;
}

html[data-theme="dark"] .seo-guide-action.is-primary,
html[data-theme="dark"] .seo-guide-cta a {
    color: #041316;
}

.seo-guide-action svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.seo-guide-action:hover,
.seo-guide-action:focus-visible,
.seo-guide-cta a:hover,
.seo-guide-cta a:focus-visible,
.seo-guide-related a:hover,
.seo-guide-related a:focus-visible {
    border-color: var(--seo-accent);
    outline: none;
}

.seo-guide-panel {
    display: grid;
    gap: 12px;
    border: 1px solid var(--seo-line);
    padding: 18px;
    background: var(--seo-surface);
}

.seo-guide-panel div {
    display: grid;
    gap: 6px;
    border: 1px solid var(--seo-line);
    border-radius: 8px;
    padding: 16px;
    background: var(--seo-surface-strong);
}

.seo-guide-panel strong {
    color: var(--seo-ink);
    font: 800 1.55rem/1 "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
}

.seo-guide-panel span {
    color: var(--seo-muted);
    font: 700 0.78rem/1.3 "IBM Plex Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 0;
}

.seo-guide-section {
    display: grid;
    gap: 22px;
    padding: 28px 0;
}

.seo-guide-section > div:first-child {
    display: grid;
    gap: 12px;
    align-content: start;
}

.seo-guide-summary {
    max-width: 860px;
}

.seo-guide-summary p {
    margin: 0;
    color: var(--seo-ink);
    font-size: 1.08rem;
}

.seo-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.seo-guide-card {
    display: grid;
    align-content: start;
    gap: 14px;
    border: 1px solid var(--seo-line);
    padding: 24px;
    background: var(--seo-surface);
}

.seo-guide-card h2,
.seo-guide-section h2 {
    font: 800 1.65rem/1.1 "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
}

.seo-guide-card p,
.seo-guide-card ul {
    margin: 0;
}

.seo-guide-card ul {
    display: grid;
    gap: 10px;
    padding-left: 18px;
}

.seo-guide-card li::marker,
.seo-guide-workflow li::marker {
    color: var(--seo-accent);
    font-weight: 800;
}

.seo-guide-workflow {
    grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
    column-gap: 24px;
    row-gap: 22px;
    align-items: start;
    border-top: 1px solid var(--seo-line);
    border-bottom: 1px solid var(--seo-line);
}

.seo-guide-workflow ol {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 22px;
}

.seo-guide-related-list,
.seo-guide-faq-list {
    display: grid;
    gap: 12px;
}

.seo-guide-related-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seo-guide-related a,
.seo-guide-faq details {
    border: 1px solid var(--seo-line);
    border-radius: 8px;
    padding: 18px;
    background: var(--seo-surface);
}

.seo-guide-related a {
    display: grid;
    gap: 10px;
    color: var(--seo-ink);
    text-decoration: none;
}

.seo-guide-related a strong,
.seo-guide-faq summary {
    color: var(--seo-ink);
    font: 800 1rem/1.3 "IBM Plex Sans", sans-serif;
}

.seo-guide-related a span {
    font-size: 0.92rem;
    line-height: 1.55;
}

.seo-guide-faq details {
    color: var(--seo-ink);
}

.seo-guide-faq summary {
    cursor: pointer;
}

.seo-guide-faq p {
    margin: 12px 0 0;
}

.seo-guide-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--seo-line);
    padding: 20px;
    background: var(--seo-surface-strong);
}

.seo-guide-cta p {
    max-width: 720px;
    margin: 0;
}

@media (max-width: 900px) {
    .seo-guide-hero,
    .seo-guide-grid,
    .seo-guide-workflow,
    .seo-guide-related-list {
        grid-template-columns: 1fr;
    }

    .seo-guide-hero h1 {
        max-width: 14ch;
        font-size: 3.25rem;
    }
}

@media (max-width: 640px) {
    body.page-seo-guide .page-shell {
        width: 100%;
        max-width: 330px;
        margin-inline: auto;
        padding: 30px 14px 72px;
        overflow-x: hidden;
    }

    .seo-guide-hero {
        width: 100%;
        max-width: 100%;
        padding-top: 22px;
    }

    .seo-guide-page,
    .seo-guide-hero-copy,
    .seo-guide-panel,
    .seo-guide-section,
    .seo-guide-grid,
    .seo-guide-card,
    .seo-guide-summary,
    .seo-guide-workflow,
    .seo-guide-related-list,
    .seo-guide-faq-list,
    .seo-guide-cta {
        width: 100%;
        max-width: 100%;
    }

    .seo-guide-hero h1 {
        font-size: 2.45rem;
        line-height: 1;
        max-width: 9.5ch;
    }

    .seo-guide-hero p {
        max-width: 100%;
    }

    .seo-guide-actions,
    .seo-guide-cta {
        width: 100%;
    }

    .seo-guide-actions {
        flex-direction: column;
    }

    .seo-guide-action,
    .seo-guide-cta a {
        width: 100%;
        max-width: 100%;
    }

    .seo-guide-action,
    .seo-guide-cta a {
        min-height: 46px;
    }

    .seo-guide-card,
    .seo-guide-panel,
    .seo-guide-cta {
        padding: 18px;
    }

    .seo-guide-cta {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Directory page: align the stock list with the cleaner teal product surfaces. */
body.page-directory {
    background:
        linear-gradient(180deg, rgba(232, 247, 248, 0.96), rgba(244, 250, 250, 0.98) 460px),
        #f5fbfb !important;
}

body.page-directory .page-shell {
    width: min(1500px, calc(100% - 64px));
    max-width: min(1500px, calc(100% - 64px));
}

body.page-directory .breadcrumbs {
    margin-bottom: 20px;
}

body.page-directory .directory-page {
    gap: 22px;
    padding-bottom: 48px;
}

body.page-directory .directory-header,
body.page-directory .directory-controls-panel,
body.page-directory .stock-directory-table-panel,
body.page-directory .stock-directory-table-wrap {
    border: 1px solid rgba(4, 123, 134, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
}

body.page-directory .directory-header,
body.page-directory .directory-controls-panel,
body.page-directory .stock-directory-table-wrap {
    overflow: hidden;
}

body.page-directory .directory-header {
    padding: clamp(28px, 3.4vw, 46px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 253, 253, 0.98)),
        #ffffff;
}

body.page-directory .directory-header::before,
body.page-directory .directory-controls-panel::before,
body.page-directory .stock-directory-table-wrap::before {
    background: linear-gradient(90deg, #22c7cf, rgba(4, 123, 134, 0.68), transparent);
    opacity: 0.7;
}

body.page-directory .directory-header-main {
    gap: 0;
}

body.page-directory .directory-header-main > .eyebrow {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    min-height: 26px;
    align-items: center;
    margin: 0 0 24px;
    padding: 0 11px;
    border-color: rgba(4, 123, 134, 0.26);
    background: rgba(226, 248, 249, 0.92);
    color: #047b86;
    line-height: 1;
}

body.page-directory .directory-header-row {
    align-items: flex-end;
    gap: 24px;
}

body.page-directory .directory-header-copy h1 {
    max-width: 12ch;
    color: #102f3a;
    font-size: clamp(2.8rem, 5.2vw, 4.5rem);
    line-height: 0.94;
}

body.page-directory .directory-header-side {
    align-self: end;
}

body.page-directory .directory-market-switch {
    gap: 6px;
    padding: 6px;
    border-color: rgba(4, 123, 134, 0.14);
    border-radius: 8px;
    background: #f4fafb;
}

body.page-directory .directory-market-switch .market-switch-pill {
    min-width: 58px;
    min-height: 40px;
    border-radius: 7px;
    color: #657f88;
    font-size: 0.74rem;
    letter-spacing: 0;
}

body.page-directory .directory-market-switch .market-switch-pill:hover {
    background: rgba(4, 123, 134, 0.08);
    color: #082b35;
}

body.page-directory .directory-market-switch .market-switch-pill.active {
    border-color: rgba(4, 123, 134, 0.22);
    background: #22c7cf;
    color: #062a31;
}

body.page-directory .directory-controls-panel {
    gap: 20px;
    padding: 22px 20px;
    background: rgba(255, 255, 255, 0.94);
}

body.page-directory .directory-controls-row {
    grid-template-columns: minmax(280px, 1.4fr) minmax(240px, 0.7fr) auto;
    gap: 16px;
}

body.page-directory .directory-controls-panel .field-label {
    color: #58717a;
}

body.page-directory .directory-controls-panel .strategy-input,
body.page-directory .directory-controls-panel .strategy-select {
    min-height: 48px;
    border-color: rgba(4, 123, 134, 0.14);
    border-radius: 7px;
    background: #ffffff;
    color: #132f39;
}

body.page-directory .directory-controls-panel .strategy-input:focus,
body.page-directory .directory-controls-panel .strategy-select:focus {
    border-color: rgba(4, 123, 134, 0.36);
    box-shadow: 0 0 0 4px rgba(34, 199, 207, 0.12);
}

body.page-directory .stock-clear-button,
body.page-directory .stock-page-button {
    min-height: 42px;
    border-color: rgba(4, 123, 134, 0.14);
    background: #ffffff;
    color: #183541;
}

body.page-directory .stock-clear-button:hover,
body.page-directory .stock-page-button:hover {
    border-color: rgba(4, 123, 134, 0.28);
    background: #f2fbfb;
}

body.page-directory .directory-filter-row {
    gap: 12px;
}

body.page-directory .stock-chip-row {
    gap: 8px;
}

body.page-directory .stock-chip-row .stock-chip,
body.page-directory .stock-chip-row button {
    min-height: 38px;
    border-color: rgba(4, 123, 134, 0.14);
    border-radius: 7px;
    background: #f5fbfb;
    color: #203e49;
}

body.page-directory .stock-chip-row .stock-chip.active,
body.page-directory .stock-chip-row button.active,
body.page-directory .stock-pagination-controls [aria-current="page"] {
    border-color: rgba(4, 123, 134, 0.24);
    background: #22c7cf;
    color: #062a31;
}

body.page-directory .directory-summary-row {
    padding-top: 18px;
    border-top-color: rgba(4, 123, 134, 0.1);
}

body.page-directory .directory-summary-row p,
body.page-directory .stock-page-status {
    color: #607982;
}

body.page-directory .stock-directory-table-panel {
    gap: 16px;
    padding: 16px 14px 18px;
}

body.page-directory .stock-directory-table-wrap {
    background: #ffffff;
}

body.page-directory .stock-directory-table th {
    background: #f2f8f9;
    color: #617a84;
    border-bottom-color: rgba(4, 123, 134, 0.14);
}

body.page-directory .stock-directory-table td {
    color: #17313d;
    border-bottom-color: rgba(4, 123, 134, 0.1);
}

body.page-directory .stock-directory-table tbody tr:nth-child(even) td {
    background: #fbfefe;
}

body.page-directory .stock-directory-table tbody tr:hover td {
    background: rgba(34, 199, 207, 0.08);
}

@media (max-width: 980px) {
    body.page-directory .page-shell {
        width: calc(100% - 36px);
        max-width: calc(100% - 36px);
    }

    body.page-directory .directory-header-row {
        align-items: flex-start;
    }

    body.page-directory .directory-header-side {
        align-self: start;
    }

    body.page-directory .directory-header-copy h1 {
        font-size: clamp(2.35rem, 9vw, 3.5rem);
    }
}

@media (max-width: 720px) {
    body.page-directory .page-shell {
        width: calc(100% - 28px) !important;
        max-width: calc(100% - 28px) !important;
    }

    body.page-directory .directory-page {
        gap: 16px;
    }

    body.page-directory .directory-header,
    body.page-directory .directory-controls-panel {
        padding: 18px;
    }

    body.page-directory .directory-header-main > .eyebrow {
        margin-bottom: 18px;
    }

    body.page-directory .directory-controls-row {
        grid-template-columns: 1fr;
    }

    body.page-directory .directory-market-switch,
    body.page-directory .stock-clear-button {
        width: 100%;
    }

    body.page-directory .directory-market-switch .market-switch-pill {
        flex: 1 1 0;
    }

    body.page-directory .stock-directory-table-panel {
        padding: 14px;
    }
}

/* Live signal sharing: card action, share sheet, and poster preview. */
body.is-live-share-open {
    overflow: hidden;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-actions,
.live-signal-card .live-signal-actions {
    position: relative !important;
    z-index: 6 !important;
    display: grid;
    min-width: 0;
    margin-top: 8px;
    min-height: 42px;
    padding: 12px 38px 4px 0;
    border-top: 1px solid var(--watch-line);
    pointer-events: auto;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-actions .live-signal-details,
.live-signal-card .live-signal-actions .live-signal-details {
    margin-top: 0 !important;
    border-top: 0 !important;
    padding: 0 !important;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card .live-signal-share-button,
.live-signal-card .live-signal-share-button {
    all: unset;
    position: absolute;
    top: 12px !important;
    right: 0 !important;
    bottom: auto !important;
    z-index: 7 !important;
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: transparent;
    color: #047b86;
    cursor: pointer;
    pointer-events: auto;
    transition:
        background 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card .live-signal-share-button:hover,
body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card .live-signal-share-button:focus-visible,
.live-signal-card .live-signal-share-button:hover,
.live-signal-card .live-signal-share-button:focus-visible {
    background: rgba(34, 199, 207, 0.12);
    color: #062a31;
    outline: none;
    transform: translateY(-1px);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card .live-signal-share-button:focus-visible,
.live-signal-card .live-signal-share-button:focus-visible {
    box-shadow: 0 0 0 4px rgba(34, 199, 207, 0.12);
}

body.page-live-signals:not(.page-alerts-pro):not(.page-live-signal-detail) .live-signal-card .live-signal-share-button svg,
.live-signal-card .live-signal-share-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.live-signal-share-sheet[hidden] {
    display: none !important;
}

.live-signal-share-sheet {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: 24px;
}

.live-signal-share-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(5, 18, 22, 0.58);
    cursor: pointer;
}

.live-signal-share-dialog {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 0.72fr);
    gap: 18px;
    width: min(940px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    border: 1px solid rgba(4, 123, 134, 0.18);
    border-radius: 8px;
    padding: 18px;
    background: #f8fdfc;
    color: #0b2228;
    box-shadow: 0 24px 80px rgba(5, 18, 22, 0.26);
}

.live-signal-share-copy,
.live-signal-share-preview {
    min-width: 0;
}

.live-signal-share-copy {
    display: grid;
    align-content: start;
    gap: 18px;
}

.live-signal-share-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
}

.live-signal-share-head h2 {
    margin: 2px 0 0;
    color: #0b2228;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4vw, 3rem);
    line-height: 0.98;
}

.live-signal-share-close {
    min-height: 34px;
    border: 1px solid rgba(4, 123, 134, 0.18);
    border-radius: 8px;
    padding: 0 12px;
    background: #ffffff;
    color: #24404c;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 850;
    cursor: pointer;
}

.live-signal-share-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.live-signal-share-options button {
    display: grid;
    gap: 10px;
    justify-items: center;
    min-width: 0;
    min-height: 102px;
    border: 1px solid rgba(4, 123, 134, 0.15);
    border-radius: 8px;
    padding: 13px 8px 12px;
    background: #ffffff;
    color: #0b2228;
    font: inherit;
    cursor: pointer;
}

.live-signal-share-options button:hover,
.live-signal-share-options button:focus-visible,
.live-signal-share-close:hover,
.live-signal-share-close:focus-visible {
    border-color: rgba(4, 123, 134, 0.34);
    background: rgba(34, 199, 207, 0.08);
    outline: none;
}

.share-option-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(4, 123, 134, 0.16);
    border-radius: 999px;
    background: #f5fbfb;
    color: #047b86;
}

.share-option-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.share-option-icon .share-brand-icon {
    width: 31px;
    height: 31px;
    fill: currentColor;
    stroke: none;
}

.share-option-icon .whatsapp-bubble {
    fill: #21c063;
}

.share-option-icon .whatsapp-mark,
.share-option-icon .facebook-mark,
.share-option-icon .x-mark,
.share-option-icon .threads-mark {
    fill: #ffffff;
}

.share-option-icon .facebook-disc {
    fill: #1877f2;
}

.share-option-icon img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.share-option-icon.is-whatsapp img {
    width: 35px;
    height: 35px;
}

.share-option-icon.is-facebook img {
    width: 32px;
    height: 32px;
}

.share-option-icon.is-x,
.share-option-icon.is-threads {
    border-color: rgba(5, 18, 22, 0.1);
    background: #050505;
}

.share-option-icon.is-x .share-brand-icon,
.share-option-icon.is-threads .share-brand-icon {
    width: 27px;
    height: 27px;
}

.share-option-icon.is-more svg circle {
    fill: currentColor;
    stroke: none;
}

.share-option-icon.is-copy svg,
.share-option-icon.is-save svg {
    stroke-width: 2.1;
}

.live-signal-share-options button strong {
    max-width: 100%;
    color: #203e49;
    font-size: 0.76rem;
    font-weight: 760;
    line-height: 1.15;
    text-align: center;
}

.live-signal-share-message {
    min-height: 22px;
    margin: 0;
    color: rgba(11, 34, 40, 0.68);
    font-size: 0.82rem;
}

.live-signal-share-preview {
    display: grid;
    place-items: center;
}

.live-signal-share-poster {
    display: grid;
    aspect-ratio: 4 / 5;
    width: min(360px, 100%);
    align-content: start;
    gap: 12px;
    overflow: hidden;
    border: 1px solid rgba(4, 123, 134, 0.16);
    border-radius: 8px;
    padding: 24px;
    background:
        linear-gradient(90deg, rgba(4, 123, 134, 0.06), transparent 38% 62%, rgba(34, 199, 207, 0.05)),
        repeating-linear-gradient(90deg, rgba(4, 123, 134, 0.05) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(0deg, rgba(4, 123, 134, 0.04) 0 1px, transparent 1px 44px),
        #ffffff;
}

.share-poster-top,
.share-poster-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.share-poster-top strong {
    color: #0b2228;
    font-family: var(--font-display);
    font-size: 1.38rem;
    line-height: 0.95;
}

.share-poster-brand span:last-child {
    color: #74e6fd;
}

/* Shared site search. */
@media (min-width: 721px) {
    body .topbar-shell {
        grid-template-columns: auto minmax(220px, 380px) minmax(0, 1fr) auto;
    }

    body .brand-lockup {
        grid-column: 1;
    }

    body .site-search-box {
        grid-column: 2;
        justify-self: stretch;
    }

    body .topbar-center {
        grid-column: 3;
    }

    body .topbar-right {
        grid-column: 4;
    }

    body .topbar-shell.has-no-primary-nav {
        grid-template-columns: auto minmax(220px, 380px) minmax(0, 1fr) auto;
    }
}

.site-search-box {
    position: relative;
    z-index: 45;
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.site-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(124, 213, 219, 0.26);
    border-radius: 10px;
    background: rgba(240, 252, 253, 0.12);
    color: rgba(238, 253, 255, 0.86);
    transition: border-color 140ms ease, background-color 140ms ease;
}

.site-search-field svg,
.site-search-clear svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    flex: 0 0 auto;
}

.site-search-field:focus-within {
    border-color: rgba(116, 230, 253, 0.46);
    background: rgba(240, 252, 253, 0.18);
    color: #f3feff;
}

body .site-search-field input[type="search"] {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-width: 0;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #f3feff;
    font: inherit;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    outline: none !important;
    box-shadow: none !important;
}

body .site-search-field input[type="search"]:focus,
body .site-search-field input[type="search"]:focus-visible {
    border: 0 !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

body .site-search-field input[type="search"]::placeholder {
    color: rgba(238, 253, 255, 0.8);
    text-transform: uppercase;
}

body .site-search-field input[type="search"]::-webkit-search-cancel-button,
body .site-search-field input[type="search"]::-webkit-search-decoration,
body .site-search-field input[type="search"]::-webkit-search-results-button,
body .site-search-field input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

body .site-search-field input[type="search"]::-ms-clear,
body .site-search-field input[type="search"]::-ms-reveal {
    display: none !important;
    width: 0;
    height: 0;
}

.site-search-clear {
    appearance: none;
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(238, 253, 255, 0.86);
    cursor: pointer;
}

.site-search-clear[hidden],
.site-search-results[hidden] {
    display: none !important;
}

.site-search-clear:hover,
.site-search-clear:focus-visible {
    background: rgba(116, 230, 253, 0.16);
    color: #f3feff;
    outline: none;
}

.site-search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    max-height: min(58vh, 440px);
    overflow: auto;
    padding: 6px 0;
    border: 1px solid rgba(119, 216, 222, 0.34);
    border-radius: 10px;
    background: rgba(247, 253, 253, 0.98);
    color: #0b2228;
    box-shadow: 0 12px 24px rgba(6, 29, 38, 0.16);
}

.site-search-result {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 11px 14px;
    border: 0;
    border-bottom: 1px solid rgba(4, 123, 134, 0.12);
    border-radius: 0;
    background: transparent;
    color: inherit;
    text-decoration: none;
}

.site-search-result:last-child {
    border-bottom: 0;
}

.site-search-result:hover,
.site-search-result:focus-visible {
    background: rgba(220, 249, 251, 0.72);
    outline: none;
}

.site-search-result-kind {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    border: 0;
    border-radius: 0;
    color: #047b86;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
}

.site-search-result-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.site-search-result-copy strong,
.site-search-result-copy small,
.site-search-result em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-search-result-copy strong {
    font-size: 0.94rem;
    font-weight: 900;
}

.site-search-result-copy small {
    color: rgba(11, 34, 40, 0.58);
    font-size: 0.8rem;
    font-weight: 700;
}

.site-search-result em {
    color: #047b86;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.site-search-empty {
    margin: 0;
    padding: 14px 10px;
    color: rgba(11, 34, 40, 0.58);
    font-weight: 700;
    text-align: center;
}

@media (max-width: 720px) {
    body .site-search-box {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }

    body .topbar-shell.has-no-primary-nav .site-search-box {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .site-search-field {
        min-height: 38px;
    }

    body .site-search-field input[type="search"] {
        height: 36px;
    }

    .site-search-results {
        position: static;
        margin-top: 8px;
        max-height: 360px;
        box-shadow: none;
    }

    .site-search-result {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .site-search-result em {
        grid-column: 2;
    }
}

.share-poster-top span,
.share-poster-title span,
.share-poster-score span,
.share-poster-facts small {
    color: #047b86;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.share-poster-top > span,
.share-poster-title span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    border: 1px solid rgba(4, 123, 134, 0.22);
    border-radius: 999px;
    padding: 0 10px;
    background: rgba(34, 199, 207, 0.1);
    line-height: 1;
}

.share-poster-top > span {
    min-height: 28px;
    padding: 0 10px;
    background: rgba(34, 199, 207, 0.12);
    color: #047b86;
}

.share-poster-main {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 6px 0 2px;
    text-align: center;
}

.share-poster-logo {
    display: grid;
    width: 112px;
    height: 112px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(4, 123, 134, 0.18);
    border-radius: 8px;
    background: #f6fbfb;
}

.share-poster-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.share-poster-logo span {
    color: #047b86;
    font-size: 1.5rem;
    font-weight: 900;
}

.share-poster-title {
    display: grid;
    justify-items: center;
    gap: 6px;
}

.share-poster-title h3 {
    margin: 0;
    color: #0b2228;
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 7vw, 3.2rem);
    line-height: 0.9;
}

.share-poster-title p {
    max-width: 28ch;
    margin: 0;
    color: rgba(11, 34, 40, 0.62);
    font-size: 0.74rem;
    font-weight: 720;
    line-height: 1.25;
    text-transform: uppercase;
}

.share-poster-price {
    color: #0b2228;
    font-size: 1.08rem;
    line-height: 1.25;
}

.share-poster-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-block: 1px solid rgba(4, 123, 134, 0.14);
    padding: 13px 0;
}

.share-poster-score strong {
    color: #0b2228;
    font-family: var(--font-display);
    font-size: 2.6rem;
    line-height: 1;
}

.share-poster-facts {
    display: grid;
    gap: 8px;
}

.share-poster-facts span {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
}

.share-poster-facts strong {
    overflow: hidden;
    color: rgba(11, 34, 40, 0.78);
    display: -webkit-box;
    font-size: 0.78rem;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.share-poster-footer {
    margin-top: auto;
    border-top: 1px solid rgba(4, 123, 134, 0.14);
    padding-top: 14px;
}

.share-poster-footer span {
    color: rgba(11, 34, 40, 0.58);
    font-size: 0.72rem;
    font-weight: 760;
    line-height: 1.25;
}

.share-poster-footer small {
    max-width: 20ch;
    color: rgba(11, 34, 40, 0.56);
    font-size: 0.62rem;
    line-height: 1.25;
    text-align: right;
}

html[data-theme="dark"] .live-signal-share-dialog {
    background: #061418;
    color: #effcfb;
}

html[data-theme="dark"] .live-signal-share-head h2,
html[data-theme="dark"] .live-signal-share-options button,
html[data-theme="dark"] .live-signal-share-options button strong,
html[data-theme="dark"] .share-poster-top strong,
html[data-theme="dark"] .share-poster-title h3,
html[data-theme="dark"] .share-poster-price,
html[data-theme="dark"] .share-poster-score strong {
    color: #effcfb;
}

html[data-theme="dark"] .live-signal-share-close,
html[data-theme="dark"] .live-signal-share-options button,
html[data-theme="dark"] .live-signal-share-poster {
    border-color: rgba(103, 232, 249, 0.16);
    background-color: #07181d;
}

@media (max-width: 760px) {
    .live-signal-share-sheet {
        align-items: end;
        padding: 12px;
    }

    .live-signal-share-dialog {
        grid-template-columns: 1fr;
        width: 100%;
        max-height: calc(100vh - 24px);
    }

    .live-signal-share-preview {
        order: -1;
    }

    .live-signal-share-poster {
        width: min(320px, 100%);
    }

    .live-signal-share-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 440px) {
    .live-signal-share-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .live-signal-share-dialog {
        padding: 14px;
    }

    .share-poster-facts span {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.share-poster-price strong {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Public-style admin login */
body.page-admin-login .page-shell {
    width: 100%;
    padding-top: 0;
}

body.page-admin-login .admin-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    align-items: center;
    gap: 42px;
    width: min(1060px, calc(100% - 36px));
    min-height: calc(100vh - 96px);
    margin: 0 auto;
    padding: 38px 0 58px;
}

body.page-admin-login .admin-login-copy {
    display: grid;
    gap: 16px;
    align-content: center;
    max-width: 560px;
}

body.page-admin-login .admin-login-copy h1 {
    margin: 0;
    max-width: 10ch;
    color: var(--text);
    font-family: "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
    font-size: clamp(3rem, 7vw, 5.9rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.92;
}

body.page-admin-login .admin-login-copy p:not(.eyebrow) {
    margin: 0;
    max-width: 34rem;
    color: var(--muted-strong);
    font-size: clamp(1rem, 2vw, 1.24rem);
    line-height: 1.55;
}

body.page-admin-login .admin-login-card {
    display: grid;
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 22px;
    border: 1px solid rgba(23, 49, 61, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 44px rgba(23, 49, 61, 0.1);
    backdrop-filter: blur(14px);
}

body.page-admin-login .admin-login-card::before {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    border-radius: 999px;
    background: var(--accent);
}

body.page-admin-login .admin-login-card-head {
    display: grid;
    gap: 5px;
}

body.page-admin-login .admin-login-card-head .admin-kicker {
    margin: 0;
}

body.page-admin-login .admin-login-card-head strong {
    color: var(--text);
    font-size: 1.15rem;
    line-height: 1.2;
}

body.page-admin-login .admin-login-note {
    margin: 0;
    color: var(--muted-strong);
}

body.page-admin-login .admin-login-form {
    gap: 14px;
}

body.page-admin-login .admin-login-form label {
    gap: 8px;
}

body.page-admin-login .admin-login-form label > span {
    color: var(--muted-strong);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.page-admin-login .admin-login-form input {
    min-height: 48px;
    border-color: rgba(23, 49, 61, 0.14);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: none;
    color: var(--text);
    font-size: 1rem;
}

body.page-admin-login .admin-login-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(35, 199, 217, 0.14);
}

body.page-admin-login .admin-login-form button,
body.page-admin-login .admin-primary-link {
    min-height: 48px;
    box-shadow: none;
}

body.page-admin-login .admin-login-form button:hover,
body.page-admin-login .admin-primary-link:hover {
    transform: translateY(-1px);
    box-shadow: none;
}

html[data-theme="dark"] body.page-admin-login .admin-login-card {
    border-color: rgba(142, 236, 245, 0.16);
    background: rgba(13, 18, 25, 0.76);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] body.page-admin-login .admin-login-form input {
    border-color: rgba(142, 236, 245, 0.16);
    background: rgba(8, 12, 18, 0.84);
}

@media (max-width: 820px) {body.page-admin-login .admin-login-shell {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 24px;
        min-height: auto;
        padding: 28px 0 44px;
    }

body.page-admin-login .admin-login-copy {
        gap: 12px;
    }

body.page-admin-login .admin-login-copy h1 {
        font-size: clamp(2.5rem, 13vw, 4.2rem);
        max-width: 9ch;
    }
}

@media (max-width: 520px) {body.page-admin-login .admin-login-shell {
        gap: 16px;
        width: min(100% - 32px, 420px);
        padding: 18px 0 32px;
    }

body.page-admin-login .admin-login-copy {
        gap: 8px;
    }

body.page-admin-login .admin-login-copy h1 {
        max-width: none;
        font-size: clamp(2.25rem, 11vw, 2.75rem);
        line-height: 0.96;
    }

body.page-admin-login .admin-login-copy p:not(.eyebrow) {
        font-size: 0.98rem;
        line-height: 1.45;
    }

body.page-admin-login .admin-login-card {
        gap: 13px;
        padding: 18px;
    }

body.page-admin-login .admin-login-card-head strong {
        font-size: 1.05rem;
    }
}

/* Pill comfort pass: keep labels away from rounded borders. */
.eyebrow,
.badge,
.mini-pill,
.compact-meta,
.home-top-five-score,
.home-top-five-metric,
.strat-ai-card-category,
.stock-page-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    min-height: 26px;
    padding: 3px 13px;
    line-height: 1;
    white-space: nowrap;
}

/* Admin login header: keep public chrome quiet and use an admin wordmark. */
body.page-admin-login .site-search-box,
body.page-admin-login .topbar-login-button {
    display: none !important;
}

body.page-admin-login .topbar-shell.has-no-primary-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 72px;
}

body.page-admin-login .brand-lockup {
    display: inline-grid;
    gap: 0;
    width: fit-content;
    min-width: 128px;
    min-height: auto;
    color: #f5fdff;
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

body.page-admin-login .brand-logo-shell {
    display: none !important;
}

body.page-admin-login .brand-logo-image {
    display: none;
}

body.page-admin-login .brand-lockup::before {
    content: "StratLab";
    color: #f5fdff;
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
}

body.page-admin-login .brand-lockup::after {
    content: "ADMIN";
    color: #78eef8;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

body.page-admin-login .topbar-right {
    margin-left: auto;
}

@media (max-width: 620px) {body.page-admin-login .topbar-shell.has-no-primary-nav {
        min-height: 64px;
    }

body.page-admin-login .brand-lockup {
        min-width: 112px;
    }
}

/* Public-style Non-Shariah admin page */
body.page-admin-non-shariah {
    background: var(--body-bg-stock);
}

body.page-admin-non-shariah .page-shell {
    width: 100%;
    padding-top: 0;
}

body.page-admin-non-shariah .admin-topbar {
    border-bottom: 1px solid rgba(142, 236, 245, 0.2);
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.16), transparent 30%),
        linear-gradient(90deg, #123447 0%, #0b5f6d 60%, #11817f 100%);
    box-shadow: none;
}

body.page-admin-non-shariah .admin-non-shariah-shell {
    gap: 26px;
    width: min(1060px, calc(100% - 36px));
    padding: 38px 0 58px;
}

body.page-admin-non-shariah .admin-page-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, auto);
    align-items: end;
    gap: 24px;
    padding: 0 0 8px;
}

body.page-admin-non-shariah .admin-page-title > div:first-child {
    display: grid;
    gap: 12px;
}

body.page-admin-non-shariah .admin-page-title .admin-kicker,
body.page-admin-non-shariah .admin-panel-head .admin-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    min-height: 26px;
    margin: 0;
    padding: 3px 13px;
    border: 1px solid rgba(4, 123, 134, 0.16);
    border-radius: 999px;
    background: rgba(35, 199, 217, 0.09);
    color: #047b86;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

body.page-admin-non-shariah .admin-page-title h1 {
    margin: 0;
    max-width: 12ch;
    color: var(--text);
    font-family: "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
    font-size: clamp(3rem, 7vw, 5.65rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.92;
}

body.page-admin-non-shariah .admin-page-title span {
    margin: 0;
    max-width: 34rem;
    color: var(--muted-strong);
    font-size: clamp(1rem, 2vw, 1.22rem);
    line-height: 1.55;
}

body.page-admin-non-shariah .admin-page-title-action {
    align-self: end;
}

body.page-admin-non-shariah .admin-page-title-action .admin-secondary-button {
    min-width: 158px;
    min-height: 48px;
    border-color: rgba(23, 49, 61, 0.12);
    background: rgba(255, 255, 255, 0.56);
    color: var(--text);
    box-shadow: none;
}

body.page-admin-non-shariah .admin-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

body.page-admin-non-shariah .admin-summary-grid > div,
body.page-admin-non-shariah .admin-panel {
    border: 1px solid rgba(23, 49, 61, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 44px rgba(23, 49, 61, 0.1);
    backdrop-filter: blur(14px);
}

body.page-admin-non-shariah .admin-summary-grid > div {
    min-height: 104px;
    padding: 20px;
}

body.page-admin-non-shariah .admin-summary-grid span {
    color: var(--muted-strong);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
}

body.page-admin-non-shariah .admin-summary-grid strong {
    margin-top: 10px;
    color: var(--text);
    font-family: "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
    font-size: 1.7rem;
    line-height: 1;
}

body.page-admin-non-shariah .admin-panel {
    display: grid;
    gap: 20px;
    padding: 24px;
}

body.page-admin-non-shariah .admin-panel::before {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    border-radius: 999px;
    background: var(--accent);
}

body.page-admin-non-shariah .admin-panel-head {
    align-items: end;
    gap: 18px;
}

body.page-admin-non-shariah .admin-panel-head > div {
    display: grid;
    gap: 9px;
}

body.page-admin-non-shariah .admin-panel-head h2 {
    margin: 0;
    color: var(--text);
    font-family: "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
    font-size: clamp(1.45rem, 3.2vw, 2rem);
    letter-spacing: 0;
    line-height: 1;
}

body.page-admin-non-shariah .admin-panel-head > span {
    margin: 0;
    max-width: 24rem;
    color: var(--muted-strong);
    line-height: 1.45;
}

body.page-admin-non-shariah .admin-non-shariah-form {
    grid-template-columns: 128px minmax(150px, 220px) minmax(260px, 1fr) auto;
    gap: 14px;
}

body.page-admin-non-shariah .admin-non-shariah-form label {
    gap: 8px;
}

body.page-admin-non-shariah .admin-non-shariah-form label > span {
    color: var(--muted-strong);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.page-admin-non-shariah .admin-non-shariah-form input,
body.page-admin-non-shariah .admin-non-shariah-form select {
    min-height: 48px;
    border-color: rgba(23, 49, 61, 0.14);
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: none;
    color: var(--text);
    font-size: 1rem;
}

body.page-admin-non-shariah .admin-non-shariah-form select {
    appearance: auto;
}

body.page-admin-non-shariah .admin-non-shariah-form input:focus,
body.page-admin-non-shariah .admin-non-shariah-form select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(35, 199, 217, 0.14);
    outline: none;
}

body.page-admin-non-shariah .admin-non-shariah-form button {
    min-height: 48px;
    box-shadow: none;
}

body.page-admin-non-shariah .admin-filter-tabs {
    border-color: rgba(23, 49, 61, 0.1);
    background: rgba(255, 255, 255, 0.58);
}

body.page-admin-non-shariah .admin-filter-tabs a {
    min-height: 34px;
    min-width: 86px;
    color: var(--muted-strong);
}

body.page-admin-non-shariah .admin-filter-tabs a.is-active,
body.page-admin-non-shariah .admin-filter-tabs a:hover {
    background: rgba(35, 199, 217, 0.16);
    color: var(--text);
}

body.page-admin-non-shariah .admin-non-shariah-table-wrap {
    border-color: rgba(23, 49, 61, 0.1);
    background: rgba(255, 255, 255, 0.52);
}

body.page-admin-non-shariah .admin-non-shariah-table th,
body.page-admin-non-shariah .admin-non-shariah-table td {
    border-bottom-color: rgba(23, 49, 61, 0.1);
    padding: 15px 16px;
}

body.page-admin-non-shariah .admin-non-shariah-table th {
    color: var(--muted-strong);
}

body.page-admin-non-shariah .admin-non-shariah-table button {
    box-shadow: none;
}

@media (max-width: 820px) {body.page-admin-non-shariah .admin-page-title,
body.page-admin-non-shariah .admin-panel-head {
        grid-template-columns: 1fr;
        align-items: start;
    }

body.page-admin-non-shariah .admin-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

body.page-admin-non-shariah .admin-non-shariah-form {
        grid-template-columns: 1fr;
    }

body.page-admin-non-shariah .admin-non-shariah-form .admin-wide-field {
        grid-column: 1;
    }
}

@media (max-width: 720px) {body.page-admin-non-shariah .admin-topbar {
        align-items: center;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        padding: 12px 23px;
    }

body.page-admin-non-shariah .admin-brand,
body.page-admin-non-shariah .admin-mobile-menu-toggle {
        order: 0;
    }

body.page-admin-non-shariah .admin-mobile-menu-toggle {
        justify-self: end;
    }

body.page-admin-non-shariah .admin-topbar .admin-nav,
body.page-admin-non-shariah .admin-theme-toggle,
body.page-admin-non-shariah .admin-logout-form {
        display: none;
        grid-column: 1 / -1;
        order: 0;
        width: 100%;
    }

body.page-admin-non-shariah .admin-topbar.is-admin-menu-open {
        align-items: start;
    }

body.page-admin-non-shariah .admin-topbar.is-admin-menu-open .admin-nav,
body.page-admin-non-shariah .admin-topbar.is-admin-menu-open .admin-theme-toggle,
body.page-admin-non-shariah .admin-topbar.is-admin-menu-open .admin-logout-form {
        border-radius: 8px;
    }

body.page-admin-non-shariah .admin-topbar.is-admin-menu-open .admin-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 8px;
        border: 1px solid rgba(142, 236, 245, 0.14);
        background: rgba(255, 255, 255, 0.06);
        box-shadow: none;
    }

body.page-admin-non-shariah .admin-topbar.is-admin-menu-open .admin-theme-toggle {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

body.page-admin-non-shariah .admin-topbar.is-admin-menu-open .admin-logout-form {
        display: block;
    }
}

@media (max-width: 520px) {body.page-admin-non-shariah .admin-non-shariah-shell {
        gap: 18px;
        width: min(100% - 32px, 420px);
        padding: 22px 0 36px;
    }

body.page-admin-non-shariah .admin-page-title {
        gap: 16px;
    }

body.page-admin-non-shariah .admin-page-title h1 {
        max-width: none;
        font-size: clamp(2.25rem, 11vw, 2.75rem);
        line-height: 0.96;
    }

body.page-admin-non-shariah .admin-page-title span {
        font-size: 0.98rem;
        line-height: 1.45;
    }

body.page-admin-non-shariah .admin-summary-grid {
        grid-template-columns: 1fr;
    }

body.page-admin-non-shariah .admin-panel {
        gap: 16px;
        padding: 18px;
    }

body.page-admin-non-shariah .admin-filter-tabs {
        width: 100%;
    }

body.page-admin-non-shariah .admin-filter-tabs a {
        flex: 1 1 0;
        min-width: 0;
    }
}

/* Admin strategy research report */
body.page-admin-strategy-report {
    --report-ink: #17212b;
    --report-muted: #66737f;
    --report-soft: #f5f8f9;
    --report-line: #dce6e8;
    --report-teal: #0b7180;
    --report-teal-dark: #074955;
    --report-draft: #047b86;
    --report-negative: #b14b52;
    --report-positive: #16806f;
    background: var(--body-bg-stock);
}

body.page-admin-strategy-report .admin-strategy-report-shell {
    gap: 26px;
    width: min(1320px, calc(100% - 36px));
    padding: 38px 0 58px;
}

body.page-admin-strategy-report .page-shell {
    width: 100%;
    padding-top: 0;
}

body.page-admin-strategy-report .admin-topbar {
    border-bottom: 1px solid rgba(142, 236, 245, 0.2);
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.16), transparent 30%),
        linear-gradient(90deg, #123447 0%, #0b5f6d 60%, #11817f 100%);
    box-shadow: none;
}

body.page-admin-strategy-report .admin-strategy-report-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, auto);
    align-items: end;
    gap: 24px;
    padding: 0 0 8px;
}

body.page-admin-strategy-report .admin-strategy-report-title > div:first-child {
    display: grid;
    gap: 12px;
}

body.page-admin-strategy-report .admin-strategy-report-title .admin-kicker,
body.page-admin-strategy-report .strategy-report-notes-panel .admin-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    min-height: 26px;
    margin: 0;
    padding: 3px 13px;
    border: 1px solid rgba(4, 123, 134, 0.16);
    border-radius: 999px;
    background: rgba(35, 199, 217, 0.09);
    color: #047b86;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

body.page-admin-strategy-report .admin-strategy-report-title h1 {
    margin: 0;
    max-width: 14ch;
    color: var(--text);
    font-family: "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
    font-size: clamp(2.9rem, 6vw, 5.2rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.92;
}

body.page-admin-strategy-report .admin-strategy-report-title span {
    margin: 0;
    max-width: 34rem;
    color: var(--muted-strong);
    font-size: clamp(1rem, 2vw, 1.22rem);
    line-height: 1.55;
}

body.page-admin-strategy-report .strategy-report-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

body.page-admin-strategy-report .strategy-report-actions .admin-filter-tabs {
    min-height: 38px;
    border-color: rgba(23, 49, 61, 0.1);
    background: rgba(255, 255, 255, 0.58);
}

body.page-admin-strategy-report .strategy-report-actions .admin-filter-tabs a {
    min-height: 34px;
    min-width: 86px;
    color: var(--muted-strong);
}

body.page-admin-strategy-report .strategy-report-actions .admin-filter-tabs a.is-active,
body.page-admin-strategy-report .strategy-report-actions .admin-filter-tabs a:hover {
    background: rgba(35, 199, 217, 0.16);
    color: var(--text);
}

body.page-admin-strategy-report .strategy-report-actions button,
body.page-admin-strategy-report .strategy-report-export-link,
body.page-admin-strategy-report .strategy-report-print-toolbar button,
body.page-admin-strategy-report .strategy-report-print-toolbar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-height: 48px;
    border: 1px solid rgba(23, 49, 61, 0.12);
    border-radius: 8px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    box-shadow: none;
    font-weight: 800;
}

body.page-admin-strategy-report .strategy-report-actions button:hover,
body.page-admin-strategy-report .strategy-report-export-link:hover,
body.page-admin-strategy-report .strategy-report-print-toolbar button:hover,
body.page-admin-strategy-report .strategy-report-print-toolbar a:hover {
    border-color: rgba(4, 123, 134, 0.24);
    background: rgba(35, 199, 217, 0.13);
}

body.page-admin-strategy-report .admin-message.is-warning {
    border-color: rgba(4, 123, 134, 0.18);
    background: rgba(35, 199, 217, 0.09);
    color: var(--text);
}

body.page-admin-strategy-report .strategy-report-selector-panel {
    display: grid;
    gap: 8px;
    border: 1px solid rgba(23, 49, 61, 0.1);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 44px rgba(23, 49, 61, 0.08);
    backdrop-filter: blur(14px);
}

body.page-admin-strategy-report .strategy-report-selector-form {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) minmax(180px, 0.7fr) minmax(150px, 0.55fr) auto;
    gap: 10px;
    align-items: end;
}

body.page-admin-strategy-report .strategy-report-selector-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

body.page-admin-strategy-report .strategy-report-selector-field span {
    color: var(--muted-strong);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

body.page-admin-strategy-report .strategy-report-selector-field select,
body.page-admin-strategy-report .strategy-report-selector-field input {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(23, 49, 61, 0.12);
    border-radius: 8px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    outline: none;
    box-shadow: none;
}

body.page-admin-strategy-report .strategy-report-selector-field select:focus,
body.page-admin-strategy-report .strategy-report-selector-field input:focus {
    border-color: rgba(4, 123, 134, 0.5);
    box-shadow: 0 0 0 3px rgba(35, 199, 217, 0.16);
}

body.page-admin-strategy-report .strategy-report-selector-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

body.page-admin-strategy-report .strategy-report-selector-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid rgba(23, 49, 61, 0.12);
    border-radius: 8px;
    padding: 0 16px;
    background: rgba(35, 199, 217, 0.14);
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
}

body.page-admin-strategy-report .strategy-report-selector-actions button[value="clear"] {
    background: rgba(255, 255, 255, 0.78);
    color: var(--muted-strong);
}

body.page-admin-strategy-report .strategy-report-selector-actions button:hover {
    border-color: rgba(4, 123, 134, 0.28);
    background: rgba(35, 199, 217, 0.2);
}

body.page-admin-strategy-report .strategy-report-selector-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

body.page-admin-strategy-report .strategy-report-preview-frame {
    overflow: auto;
    border: 1px solid rgba(23, 49, 61, 0.1);
    border-radius: 8px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 44px rgba(23, 49, 61, 0.1);
    backdrop-filter: blur(14px);
}

html[data-theme="dark"] body.page-admin-strategy-report .strategy-report-preview-frame {
    background: #0f2227;
}

body.page-admin-strategy-report .strategy-report-preview {
    display: grid;
    gap: 18px;
    justify-items: center;
    min-width: max-content;
}

body.page-admin-strategy-report .strategy-report-page {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 210mm;
    height: 297mm;
    box-sizing: border-box;
    padding: 10mm 11mm 12mm;
    overflow: hidden;
    border: 1px solid rgba(12, 69, 78, 0.12);
    border-radius: 0;
    background: #ffffff;
    color: var(--report-ink);
    font-family: "IBM Plex Sans", Arial, sans-serif;
    box-shadow: 0 18px 45px rgba(3, 31, 37, 0.12);
}

body.page-admin-strategy-report .strategy-report-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10mm;
    border-bottom: 1px solid var(--report-line);
    padding-bottom: 5mm;
    margin-bottom: 4.5mm;
}

body.page-admin-strategy-report .strategy-report-brand {
    display: grid;
    gap: 2mm;
}

body.page-admin-strategy-report .strategy-report-brand img {
    display: block;
    width: 38mm;
    max-height: 12mm;
    object-fit: contain;
    object-position: left center;
}

body.page-admin-strategy-report .strategy-report-brand span,
body.page-admin-strategy-report .strategy-report-heading p {
    margin: 0;
    color: var(--report-teal);
    font-family: "IBM Plex Mono", monospace;
    font-size: 6.6pt;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

body.page-admin-strategy-report .strategy-report-heading {
    display: grid;
    justify-items: end;
    gap: 1.3mm;
    text-align: right;
}

body.page-admin-strategy-report .strategy-report-heading h2 {
    margin: 0;
    color: var(--report-ink);
    font-family: "Bricolage Grotesque", "IBM Plex Sans", Arial, sans-serif;
    font-size: 18pt;
    line-height: 1.05;
    letter-spacing: 0;
}

body.page-admin-strategy-report .strategy-report-heading span {
    color: var(--report-muted);
    font-size: 7.2pt;
    font-weight: 600;
}

body.page-admin-strategy-report .strategy-report-kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.7mm;
    margin-bottom: 3.4mm;
}

body.page-admin-strategy-report .strategy-report-kpi-strip div {
    min-height: 9.5mm;
    border: 1px solid var(--report-line);
    border-radius: 6px;
    padding: 1.7mm 2.1mm;
    background: var(--report-soft);
}

body.page-admin-strategy-report .strategy-report-kpi-strip span,
body.page-admin-strategy-report .strategy-report-metric-card dt,
body.page-admin-strategy-report .strategy-report-footer,
body.page-admin-strategy-report .strategy-report-bar-chart span,
body.page-admin-strategy-report .strategy-report-bar-chart em,
body.page-admin-strategy-report .strategy-report-line-chart div {
    color: var(--report-muted);
    font-size: 6.4pt;
    line-height: 1.2;
}

body.page-admin-strategy-report .strategy-report-kpi-strip strong {
    display: block;
    margin-top: 0.9mm;
    color: var(--report-ink);
    font-size: 7.2pt;
    font-weight: 800;
    line-height: 1.18;
}

body.page-admin-strategy-report .strategy-report-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.95fr) minmax(58mm, 1fr);
    gap: 5mm;
    min-height: 0;
    flex: 1;
}

body.page-admin-strategy-report .strategy-report-main-copy,
body.page-admin-strategy-report .strategy-report-side,
body.page-admin-strategy-report .strategy-report-notes {
    display: grid;
    align-content: start;
    gap: 2mm;
}

body.page-admin-strategy-report .strategy-report-side {
    gap: 1.7mm;
}

body.page-admin-strategy-report .strategy-report-text-block,
body.page-admin-strategy-report .strategy-report-note-block,
body.page-admin-strategy-report .strategy-report-takeaways,
body.page-admin-strategy-report .strategy-report-metric-card,
body.page-admin-strategy-report .strategy-report-chart-card {
    break-inside: avoid;
}

body.page-admin-strategy-report .strategy-report-text-block h3,
body.page-admin-strategy-report .strategy-report-note-block h3,
body.page-admin-strategy-report .strategy-report-takeaways h3,
body.page-admin-strategy-report .strategy-report-metric-card h3,
body.page-admin-strategy-report .strategy-report-chart-card h3 {
    margin: 0 0 1mm;
    color: var(--report-teal-dark);
    font-family: "IBM Plex Mono", monospace;
    font-size: 7.1pt;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

body.page-admin-strategy-report .strategy-report-text-block p,
body.page-admin-strategy-report .strategy-report-note-block p {
    margin: 0;
    color: #26323b;
    font-size: 7.75pt;
    line-height: 1.32;
}

body.page-admin-strategy-report .strategy-report-text-block ul,
body.page-admin-strategy-report .strategy-report-takeaways ul {
    display: grid;
    gap: 1mm;
    margin: 1.5mm 0 0;
    padding-left: 4mm;
    color: #2f3b44;
    font-size: 7.6pt;
    line-height: 1.28;
}

body.page-admin-strategy-report .strategy-report-takeaways {
    border: 1px solid rgba(11, 113, 128, 0.24);
    border-radius: 6px;
    padding: 3mm;
    background: #eff8f7;
}

body.page-admin-strategy-report .strategy-report-metric-card,
body.page-admin-strategy-report .strategy-report-chart-card {
    border: 1px solid var(--report-line);
    border-radius: 6px;
    padding: 2.2mm;
    background: #fbfcfc;
}

body.page-admin-strategy-report .strategy-report-metric-card dl {
    display: grid;
    gap: 0.9mm;
    margin: 0;
}

body.page-admin-strategy-report .strategy-report-metric-card dl div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 3mm;
    border-bottom: 1px solid #edf2f3;
    padding-bottom: 1mm;
}

body.page-admin-strategy-report .strategy-report-metric-card dl div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

body.page-admin-strategy-report .strategy-report-metric-card dd {
    margin: 0;
    color: var(--report-ink);
    font-size: 7.6pt;
    font-weight: 800;
    text-align: right;
}

body.page-admin-strategy-report .strategy-report-line-chart {
    display: grid;
    gap: 0.7mm;
}

body.page-admin-strategy-report .strategy-report-line-chart svg {
    display: block;
    width: 100%;
    height: 15mm;
}

body.page-admin-strategy-report .strategy-report-line-chart line {
    stroke: #e4ecee;
    stroke-width: 1;
}

body.page-admin-strategy-report .strategy-report-line-chart polyline {
    fill: none;
    stroke: var(--report-teal);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

body.page-admin-strategy-report .strategy-report-line-chart div {
    display: flex;
    justify-content: space-between;
}

body.page-admin-strategy-report .strategy-report-chart-empty {
    display: grid;
    align-items: center;
    min-height: 15mm;
    border: 1px dashed #c8d7da;
    border-radius: 5px;
    padding: 2mm;
    background: #f6fafb;
}

body.page-admin-strategy-report .strategy-report-chart-empty span {
    color: var(--report-muted);
    font-size: 6.8pt;
    font-weight: 650;
    line-height: 1.28;
}

body.page-admin-strategy-report .strategy-report-bar-chart {
    display: grid;
    gap: 0.7mm;
}

body.page-admin-strategy-report .strategy-report-bar-chart > div {
    display: grid;
    grid-template-columns: 12mm minmax(0, 1fr) 13mm;
    align-items: center;
    gap: 1.5mm;
}

body.page-admin-strategy-report .strategy-report-bar-chart b {
    display: block;
    height: 2.1mm;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eff1;
}

body.page-admin-strategy-report .strategy-report-bar-chart i {
    display: block;
    height: 100%;
    min-width: 2px;
    border-radius: 999px;
    background: var(--report-positive);
}

body.page-admin-strategy-report .strategy-report-bar-chart .is-negative i {
    background: var(--report-negative);
}

body.page-admin-strategy-report .strategy-report-bar-chart em {
    font-style: normal;
    text-align: right;
}

body.page-admin-strategy-report .strategy-report-notes {
    gap: 6mm;
    flex: 1;
    padding-top: 4mm;
}

body.page-admin-strategy-report .strategy-report-note-block {
    border-left: 2px solid var(--report-teal);
    padding-left: 4mm;
}

body.page-admin-strategy-report .strategy-report-note-block h3 {
    margin-bottom: 2mm;
    font-size: 8pt;
}

body.page-admin-strategy-report .strategy-report-note-block p {
    font-size: 9.4pt;
    line-height: 1.55;
}

body.page-admin-strategy-report .strategy-report-admin-watermark {
    display: grid;
    gap: 1mm;
    border: 1px solid rgba(4, 123, 134, 0.22);
    border-radius: 6px;
    padding: 4mm;
    margin-bottom: 7mm;
    background: #eff8f7;
}

body.page-admin-strategy-report .strategy-report-admin-watermark strong {
    color: var(--report-draft);
    font-family: "IBM Plex Mono", monospace;
    font-size: 7pt;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

body.page-admin-strategy-report .strategy-report-admin-watermark span {
    color: #17313d;
    font-size: 8.5pt;
    font-weight: 700;
}

body.page-admin-strategy-report .strategy-report-footer {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 4mm;
    align-items: center;
    border-top: 1px solid var(--report-line);
    padding-top: 3mm;
    margin-top: 5mm;
    font-weight: 700;
}

body.page-admin-strategy-report .strategy-report-notes-panel {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(23, 49, 61, 0.1);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 44px rgba(23, 49, 61, 0.1);
    backdrop-filter: blur(14px);
}

body.page-admin-strategy-report .strategy-report-notes-panel::before {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    border-radius: 999px;
    background: var(--accent);
}

body.page-admin-strategy-report .strategy-report-instructions {
    display: grid;
    gap: 10px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

body.page-admin-strategy-report .strategy-report-instructions ol {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 18px;
}

body.page-admin-strategy-report .strategy-report-instructions p {
    margin: 0;
}

body.page-admin-strategy-report-print {
    background: #dfeaec;
}

body.page-admin-strategy-report-print .strategy-report-print-shell {
    display: grid;
    gap: 18px;
    justify-items: center;
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 24px 18px 48px;
}

body.page-admin-strategy-report-print .strategy-report-print-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    width: 210mm;
    max-width: calc(100vw - 36px);
}

body.page-admin-strategy-report-print .strategy-report-preview.is-print-view {
    min-width: 0;
}

@media (max-width: 900px) {
    body.page-admin-strategy-report .admin-strategy-report-title {
        align-items: flex-start;
    }

    body.page-admin-strategy-report .strategy-report-actions {
        justify-content: flex-start;
    }

    body.page-admin-strategy-report .strategy-report-selector-form {
        grid-template-columns: 1fr 1fr;
    }

    body.page-admin-strategy-report .strategy-report-selector-field:first-of-type,
    body.page-admin-strategy-report .strategy-report-selector-actions {
        grid-column: 1 / -1;
    }

    body.page-admin-strategy-report .strategy-report-selector-actions {
        justify-content: flex-start;
    }

    body.page-admin-strategy-report .strategy-report-preview-frame {
        padding: 12px;
    }
}

@media (max-width: 640px) {
    body.page-admin-strategy-report .strategy-report-selector-form {
        grid-template-columns: 1fr;
    }

    body.page-admin-strategy-report .strategy-report-selector-field:first-of-type,
    body.page-admin-strategy-report .strategy-report-selector-actions {
        grid-column: auto;
    }
}

@media print {
    @page strategy-report {
        size: A4 portrait;
        margin: 0;
    }

    body.page-admin-strategy-report {
        width: 210mm;
        min-height: 297mm;
        margin: 0 !important;
        background: #ffffff !important;
    }

    body.page-admin-strategy-report .admin-topbar,
    body.page-admin-strategy-report .admin-strategy-report-title,
    body.page-admin-strategy-report .admin-message,
    body.page-admin-strategy-report .strategy-report-selector-panel,
    body.page-admin-strategy-report .strategy-report-notes-panel,
    body.page-admin-strategy-report .strategy-report-print-toolbar {
        display: none !important;
    }

    body.page-admin-strategy-report .page-shell,
    body.page-admin-strategy-report .admin-strategy-report-shell,
    body.page-admin-strategy-report .strategy-report-print-shell {
        display: block;
        width: auto;
        margin: 0;
        padding: 0;
    }

    body.page-admin-strategy-report .strategy-report-preview-frame {
        overflow: visible;
        border: 0;
        border-radius: 0;
        padding: 0;
        background: #ffffff;
    }

    body.page-admin-strategy-report .strategy-report-preview {
        display: block;
        min-width: 0;
    }

    body.page-admin-strategy-report .strategy-report-page {
        width: 210mm;
        height: 297mm;
        border: 0;
        box-shadow: none;
        page: strategy-report;
        break-after: page;
        page-break-after: always;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body.page-admin-strategy-report .strategy-report-page:last-child {
        break-after: auto;
        page-break-after: auto;
    }
}
