:root,
[data-theme="dark"] {
    /* Ana Renkler */
    --bg: #07111f;
    --bg-soft: #0d1a2d;

    --panel: rgba(13, 26, 45, 0.92);
    --panel-2: rgba(255, 255, 255, 0.03);
    --line: rgba(255, 255, 255, 0.08);
    --text: #eaf2ff;
    --muted: #9db0c8;
    --soft: #7f93ab;
    --accent: #7cc7ff;
    --accent-2: #6ef3c5;

    /* Cam Efekti Bileşenleri */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-bg-hover: rgba(255, 255, 255, 0.05);
    --card-gradient: linear-gradient(180deg, rgba(17, 25, 38, 0.98), rgba(13, 19, 28, 0.98));
    --hero-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));

    /* Durum Renkleri */
    --green: #36d399;
    --yellow: #fbbf24;
    --orange: #fb923c;
    --red: #ef4444;
    --cyan: #38bdf8;
    --stable: #36d399;
    --pressure: #fbbf24;
    --transition: #fb923c;
    --critical: #ef4444;

    /* Gölgeler ve Köşeler */
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    --radius: 22px;

    --panel-soft: rgb(18, 25, 51);
    --violet: #8b5cf6;
    --hover-color: #7cc7ff;
    --hover-color-2: #66ff99;
    --pop-text-color: rgba(255, 255, 255, 0.7);
    --card-border: #1f2937;
    --card: rgba(13, 26, 45, 0.86);
    --danger: #ff8e8e;


}

[data-theme="light"] {
    /* Ana Renkler - Nordic White Stili */
    --bg: #f8fafc;
    --bg-soft: #f1f5f9;


    --panel: rgba(255, 255, 255, 0.75);
    --panel-2: rgba(0, 0, 0, 0.02);
    --line: rgba(0, 0, 0, 0.08);
    --text: #0f172a;
    --muted: #475569;
    --soft: #64748b;
    --accent: #0ea5e9;
    --accent-2: #059669;

    /* Cam Efekti Bileşenleri - Light */
    --glass-bg: rgba(0, 0, 0, 0.02);
    --glass-bg-hover: rgba(0, 0, 0, 0.04);
    --card-gradient: linear-gradient(180deg, #ffffff, #f9fafb);
    --hero-gradient: linear-gradient(180deg, #ffffff, #f1f5f9);

    /* Durum Renkleri - Light için optimize edildi */
    --green: #16a34a;
    --yellow: #ca8a04;
    --orange: #ea580c;
    --red: #dc2626;
    --cyan: #0891b2;
    --stable: #16a34a;
    --pressure: #ca8a04;
    --transition: #ea580c;
    --critical: #dc2626;

    /* Gölgeler ve Köşeler - Light */
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.06);

    --panel-soft: rgb(241, 241, 241);
    --violet: #8b5cf6;
    --hover-color: #7cc7ff;
    --hover-color-2: #66ff99;
    --pop-text-color: rgba(31, 31, 31, 0.844);
    --card-border: #b4bcc7;
    --card: #f9fafb;
    --danger: #ff8e8e;
}

* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: Inter, system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
}

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

a:hover {
    text-decoration: underline;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.sidebar {
    border-right: 1px solid var(--line);
    padding: 28px 22px;
    background: rgba(255, 255, 255, 0.02);
    display: block;
}

.nav {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.nav a,
.nav button {
    width: 100%;
    text-align: left;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

.nav a.active {
    background: rgba(124, 199, 255, 0.10);
    border-color: rgba(124, 199, 255, 0.28);
}

.content {
    padding: 34px;
}

.loader {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 14px;
    max-width: 360px;
}

.page-shell[hidden] {
    display: none;
}

.hero {
    margin-bottom: 22px;
}

.eyebrow {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.top-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    color: var(--muted);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
}

.subtle-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.alert-banner {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    transition: all 0.25s ease;

    color: var(--text);
    box-shadow: var(--shadow);
    background: var(--card-gradient);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.alert-banner.active {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.alert-banner.alert-none {
    opacity: 0.88;
}

.alert-banner.alert-low {
    border-color: rgba(255, 214, 102, 0.35);
}

.alert-banner.alert-medium {
    border-color: rgba(255, 184, 77, 0.45);
}

.alert-banner.alert-high {
    border-color: rgba(255, 120, 80, 0.55);
}

.alert-banner.alert-critical {
    border-color: rgba(255, 90, 90, 0.75);
    box-shadow: 0 0 24px rgba(255, 90, 90, 0.12);
}

.grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 18px;
    margin-bottom: 18px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.grid-full {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.card {
    background: var(--card-gradient);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    min-width: 0;
}

.card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.card-title h2,
.card-title h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text);
}

.card-title .hint {
    color: var(--soft);
    font-size: 12px;
}

.signals-table {
    display: grid;
    gap: 12px;
}

.signal-row {
    display: grid;
    grid-template-columns: 92px 1fr 88px 54px;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--line);
    position: relative;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.signal-row:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 199, 255, 0.22);
    background: rgba(255, 255, 255, 0.025);
}

.asset-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.asset-symbol {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.asset-sub {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.signal-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.signal-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.signal-label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.9;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.12);
}

.signal-meta {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    line-height: 1.55;
}

.signal-action-line {
    margin-top: 8px;
    font-size: 12px;
    color: var(--soft);
    line-height: 1.45;
    letter-spacing: 0.01em;
}

.signal-action-stable {
    color: var(--green);
}

.signal-action-caution {
    color: var(--yellow);
}

.signal-action-warning {
    color: var(--orange);
}

.signal-action-critical {
    color: var(--red);
}

.signal-row.market-closed-row {
    opacity: 0.88;
}

.signal-row.market-closed-row .asset-symbol,
.signal-row.market-closed-row .signal-label,
.signal-row.market-closed-row .lambda-val {
    opacity: 0.92;
}

.lambda-col {
    text-align: right;
}

.lambda-val {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.lambda-tag {
    font-size: 12px;
    color: var(--muted);
}

.arrow-col {
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    color: var(--cyan);
}

.metric-big {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    margin: 6px 0 4px;
}

.metric-caption {
    font-size: 13px;
    color: var(--muted);
}

.metric-state {
    margin-top: 10px;
    font-size: 12px;
    color: var(--soft);
    letter-spacing: 0.03em;
}

.radar-wrap {
    min-height: 360px;
    position: relative;
}

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

.trend-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 12px;
}

.trend-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.trend-head .name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.trend-head .mini {
    font-size: 12px;
    color: var(--muted);
}

.trend-canvas {
    height: 120px !important;
    width: 100% !important;
}

.footer {
    margin-top: 22px;
    color: var(--soft);
    font-size: 12px;
    text-align: center;
}

.state-stable,
.state-STABLE,
.tone-stable {
    color: var(--green);
}

.state-pressure,
.state-PRESSURE,
.tone-pressure {
    color: var(--yellow);
}

.state-transition,
.state-TRANSITION,
.tone-transition {
    color: var(--orange);
}

.state-critical,
.state-CRITICAL,
.tone-critical {
    color: var(--red);
}

.loader-soft {
    opacity: 0.72;
}

.loader-soft-v2 {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite;
    color: transparent;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #36d399;
    box-shadow: 0 0 10px #36d399;
    animation: blink 1.5s infinite;
    margin-right: 8px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.guide {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    opacity: 0.85;
}

.guide-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    padding: 12px;
    border-radius: 10px;
    backdrop-filter: blur(6px);
}

.label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.desc {
    font-size: 11px;
    color: var(--muted);
}

.critical {
    color: #ff4d4f;
}

.hero-v2 {
    margin-bottom: 20px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
    box-shadow: var(--shadow);
}

.hero-v2-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
    align-items: stretch;
}

.hero-v2-main {
    min-width: 0;
}

.hero-v2-eyebrow,
.hero-action-eyebrow {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.hero-v2-state-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.hero-state-big {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    font-weight: 800;
    margin: 0;
}

.hero-direction-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--soft);
    font-size: 12px;
}

.hero-v2-message {
    max-width: 720px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--muted);
    margin-bottom: 16px;
}

.hero-v2-mini-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-mini-card {
    min-width: 150px;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
}

.hero-mini-k {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 7px;
    letter-spacing: 0.03em;
}

.hero-mini-v {
    display: block;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
}

.hero-action-card {
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.hero-action-main {
    font-size: clamp(1.45rem, 2.7vw, 2.15rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text);
}

.hero-action-note {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.hero-action-tone {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--soft);
    font-size: 12px;
}

.hero-tone-calm {
    color: var(--green);
}

.hero-tone-caution {
    color: var(--yellow);
}

.hero-tone-warning {
    color: var(--orange);
}

.hero-tone-critical {
    color: var(--red);
}

.metrics-grid-v2 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card-v2 {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.metric-card-v2 .metric-big {
    margin-top: 10px;
    margin-bottom: 8px;
}

.metric-card-v2 .metric-caption {
    min-height: 20px;
}

.metric-card-v2 .metric-state {
    margin-top: 12px;
    font-weight: 600;
}

.system-risk-panel {
    padding: 22px;
}

.system-risk-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
    align-items: stretch;
}

.system-risk-main,
.live-guide-main {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
    padding: 18px;
    min-width: 0;
}

.system-risk-label,
.live-guide-eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.system-risk-message {
    font-size: clamp(1.05rem, 2.4vw, 1.4rem);
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: var(--text);
    font-weight: 600;
}

.system-risk-stats,
.live-guide-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.system-risk-stat,
.live-guide-side-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
    padding: 14px;
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.system-risk-k,
.live-guide-k {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.system-risk-v,
.live-guide-v {
    display: block;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
    color: var(--soft);
    word-break: break-word;
}

.system-risk-low {
    color: var(--green);
}

.system-risk-medium {
    color: var(--yellow);
}

.system-risk-high {
    color: var(--orange);
}

.system-risk-critical {
    color: var(--red);
}

.live-guide-card {
    padding: 22px;
}

.live-guide-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
}

.live-guide-label {
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
    color: var(--text);
}

.live-guide-note {
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 12px;
}

.live-guide-context {
    font-size: 13px;
    line-height: 1.6;
    color: var(--soft);
}

.live-guide-tone-calm {
    color: var(--green);
}

.live-guide-tone-caution {
    color: var(--yellow);
}

.live-guide-tone-warning {
    color: var(--orange);
}

.live-guide-tone-critical {
    color: var(--red);
}

.guide-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 18px 0 18px;
}

.alert-critical {
    animation: pulseGlow 2s infinite;
}

.welcome-card {
    padding-top: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);

}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 rgba(255, 90, 90, 0);
    }

    50% {
        box-shadow: 0 0 24px rgba(255, 90, 90, 0.25);
    }

    100% {
        box-shadow: 0 0 0 rgba(255, 90, 90, 0);
    }
}

@media (max-width: 1180px) {
    .metrics-grid-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trend-grid {
        grid-template-columns: 1fr;
    }

    .guide {
        display: block;
        margin-top: 12px;
    }

    .guide-item {
        margin-top: 12px;
    }
}

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

    .hero-v2-grid,
    .system-risk-grid,
    .live-guide-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .app-shell {
        min-height: auto;
        display: block;
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .content {
        padding: 24px 20px 32px;
    }
}

@media (max-width: 700px) {
    .metrics-grid-v2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .signal-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .lambda-col,
    .arrow-col {
        text-align: left;
    }

    .pill {
        width: 100%;
    }

    .hero-v2 {
        padding: 18px;
    }

    .hero-mini-card {
        min-width: 100%;
    }

    .system-risk-stats,
    .live-guide-side {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {

    html,
    body {
        background-color: var(--bg);
        background: var(--bg);
    }

    .brand-mark {
        background-color: var(--accent);
        background: var(--accent);
    }

    .cta-box {
        background-color: rgba(124, 199, 255, 0.10);
        background: rgba(124, 199, 255, 0.10);
    }

    .card,
    .site-header,
    .hero-copy,
    .hero-panel,
    .info-card {
        backdrop-filter: inherit;
    }
}



.sidebar-head {
    margin-bottom: 22px;
}

.sidebar-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.sidebar h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.03em;
    color: var(--text);
}

.sidebar-note {
    margin-top: 18px;
    padding: 14px 14px 0;
    border-top: 1px solid var(--line);
    color: var(--soft);
    font-size: 13px;
    line-height: 1.65;
}

.last-24-table {
    overflow: auto;
    max-height: 360px;
}

.last-24-table::-webkit-scrollbar {
    width: 6px;
}

.last-24-table::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.last-24-table::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

[data-theme="dark"] .last-24-table::-webkit-scrollbar-thumb {
    background: #555;
}

.last-24-table::-webkit-scrollbar-thumb:hover {
    background: #666;
}

[data-theme="dark"] .last-24-table::-webkit-scrollbar-thumb:hover {
    background: #888;
}

.history-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    font-size: 13px;
}

.history-table th,
.history-table td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.history-table th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--glass-bg);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1;
}

.history-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.history-empty {
    color: var(--muted);
    text-align: center;
    padding: 18px 14px;
}

.state-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
}

.state-pill.stable {
    color: var(--stable);
    border-color: rgba(54, 211, 153, 0.22);
    background: rgba(54, 211, 153, 0.08);
}

.state-pill.pressure {
    color: var(--pressure);
    border-color: rgba(251, 191, 36, 0.22);
    background: rgba(251, 191, 36, 0.08);
}

.state-pill.transition {
    color: var(--transition);
    border-color: rgba(251, 146, 60, 0.22);
    background: rgba(251, 146, 60, 0.08);
}

.state-pill.critical {
    color: var(--critical);
    border-color: rgba(239, 68, 68, 0.24);
    background: rgba(239, 68, 68, 0.08);
}

.history-read {
    color: var(--soft);
    line-height: 1.55;
    min-width: 220px;
}

.history-num {
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

@media (max-width: 980px) {
    .history-table {
        min-width: 860px;
    }
}

#heroCoverageValue {
    font-size: 18px;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
}

.history-table td .state-pill {
    max-width: 240px;
    white-space: normal;
    line-height: 1.35;
    text-align: center;
}

.history-from {
    color: var(--text);
    font-weight: 600;
    line-height: 1.45;
    white-space: nowrap;
}

/* toggle */

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;

}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: block;
}