﻿/* BASE & LAYOUT */
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #0f172a; color: #f8fafc; padding: 2rem; margin: 0; }
.container { max-width: 1000px; margin: auto; background: #1e293b; padding: 2rem; border-radius: 8px; border: 1px solid #334155; }
.container-sm { max-width: 800px; } /* Specific to Ledger Sync page */
h2 { margin-top: 0; color: #38bdf8; display: flex; justify-content: space-between; }
a { color: #38bdf8; text-decoration: none; font-size: 16px; }
a:hover { text-decoration: underline; }
.site-nav { position: relative; z-index: 20; }
.site-nav-toggle { display: inline-flex; width: 48px; height: 44px; align-items: center; justify-content: center; margin: 0; padding: 10px; border: 1px solid #475569; background: #0f172a; color: #38bdf8; }
.site-nav-toggle:hover { background: #334155; }
.site-nav-toggle:focus-visible, .site-nav .page-nav a:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 2px; }
.site-nav-icon { display: flex; width: 22px; flex-direction: column; gap: 5px; }
.site-nav-icon span { display: block; height: 2px; width: 22px; border-radius: 1px; background: currentColor; }
.site-nav .page-nav { position: fixed; inset: 0; z-index: 1000; display: block; width: 100%; height: 100vh; height: 100dvh; padding: 0; border: 0; background: rgba(2, 6, 23, 0.72); }
.site-nav .page-nav[hidden] { display: none; }
.site-nav-panel { display: flex; width: min(320px, 82vw); height: 100%; box-sizing: border-box; flex-direction: column; gap: 4px; padding: 28px 18px; border-right: 1px solid #334155; background: #1e293b; box-shadow: 12px 0 30px rgba(0, 0, 0, 0.3); }
.site-nav .page-nav a { display: block; padding: 14px 16px; border-radius: 4px; color: #e2e8f0; font-size: 16px; white-space: nowrap; }
.site-nav .page-nav a:hover, .site-nav .page-nav a[aria-current="page"] { background: #0f172a; color: #38bdf8; text-decoration: none; }

/* TABLES */
table { width: 100%; border-collapse: collapse; margin-top: 20px; font-family: monospace; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #334155; }
th { background: #0f172a; color: #94a3b8; }
td { color: #e2e8f0; }

/* INDEX / SYNC DASHBOARD SPECIFIC */
textarea { width: 100%; height: 350px; padding: 12px; font-family: monospace; background: #0f172a; color: #e2e8f0; border: 1px solid #475569; border-radius: 6px; box-sizing: border-box; }
button { background-color: #0284c7; color: white; border: none; padding: 12px 24px; font-size: 16px; font-weight: bold; cursor: pointer; border-radius: 6px; margin-top: 12px; transition: background 0.2s; }
button:hover { background-color: #0369a1; }
.btn-handoff { background-color: #334155; border: 1px solid #475569; }
.btn-handoff:hover { background-color: #475569; }
#status { margin-top: 15px; font-weight: 500; font-family: monospace; }

/* ASSET ALLOCATION MATRIX */
.asset-matrix-card { margin-top: 20px; }
.asset-matrix-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.asset-matrix-header h3 { margin: 0; color: #f8fafc; font-size: 15px; letter-spacing: 0.8px; }
.matrix-profile-badge { padding: 5px 10px; border: 1px solid; border-radius: 4px; font: 700 11px monospace; letter-spacing: 0.6px; }
.matrix-profile-aggressive { color: #fcd34d; background: rgba(245, 158, 11, 0.14); border-color: #d97706; }
.matrix-profile-balanced { color: #7dd3fc; background: rgba(14, 165, 233, 0.14); border-color: #0284c7; }
.matrix-profile-fortress { color: #86efac; background: rgba(34, 197, 94, 0.14); border-color: #16a34a; }
.asset-matrix-bars { display: flex; flex-direction: column; gap: 12px; }
.matrix-bar-row { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 12px; }
.matrix-bar-label { color: #94a3b8; font: 600 11px monospace; text-transform: uppercase; }
.matrix-bar { display: flex; height: 18px; overflow: hidden; background: #0f172a; border: 1px solid #334155; border-radius: 3px; }
.matrix-segment { display: block; height: 100%; transition: width 0.25s ease; }
.matrix-segment-core { background: #38bdf8; }
.matrix-segment-growth { background: #a78bfa; }
.matrix-segment-csp { background: #fbbf24; }
.matrix-legend { display: flex; gap: 18px; margin: 2px 0 6px 64px; color: #94a3b8; font: 11px monospace; }
.matrix-legend span { display: inline-flex; align-items: center; gap: 6px; }
.matrix-swatch { width: 8px; height: 8px; border-radius: 2px; }
.matrix-swatch-core { background: #38bdf8; }
.matrix-swatch-growth { background: #a78bfa; }
.matrix-swatch-csp { background: #fbbf24; }
.matrix-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.matrix-summary-item { min-width: 0; padding: 12px; background: #0f172a; border: 1px solid #334155; border-radius: 6px; }
.matrix-summary-item span, .matrix-summary-item small { display: block; color: #94a3b8; font-family: monospace; }
.matrix-summary-item span { font-size: 11px; text-transform: uppercase; }
.matrix-summary-item strong { display: block; margin: 7px 0 5px; color: #f8fafc; font: 700 17px monospace; overflow-wrap: anywhere; }
.matrix-summary-item small { font-size: 10px; }
.cash-velocity-grid { margin-top: 0; }

@media (max-width: 600px) {
    h2 { align-items: flex-start; flex-direction: column; gap: 10px; }
    .matrix-summary-grid { grid-template-columns: 1fr; }
    .matrix-legend { margin-left: 64px; }
}

/* MODALS */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.85); justify-content: center; align-items: center; z-index: 1000; }
.modal-content { background: #1e293b; padding: 2rem; border-radius: 8px; border: 1px solid #334155; width: 90%; max-width: 450px; color: #e2e8f0; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5); }
.modal-content-lg { max-width: 850px; max-height: 80vh; overflow-y: auto; } /* Specific to History Ticker Inspector */
.modal-content h3 { margin-top: 0; color: #38bdf8; border-bottom: 1px solid #334155; padding-bottom: 10px; margin-bottom: 15px; }
.ticker-modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #334155; padding-bottom: 10px; margin-bottom: 15px; }
.ticker-modal-title { margin: 0; color: #38bdf8; }
.ticker-modal-close { background: transparent; border: none; color: #94a3b8; font-size: 20px; cursor: pointer; }
.ticker-history-table { width: 100%; border-collapse: collapse; font-family: monospace; }
.ticker-history-table thead tr { background: #0f172a; color: #94a3b8; text-align: left; }
.ticker-history-table th { padding: 8px; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.modal-grid div { background: #0f172a; padding: 12px; border-radius: 6px; border: 1px solid #334155; }
.modal-grid span { display: block; font-size: 12px; color: #94a3b8; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.modal-grid strong { font-size: 18px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; }
.btn-cancel { background: #475569; margin: 0; }
.btn-cancel:hover { background: #334155; }
.btn-confirm { background: #10b981; margin: 0; }
.btn-confirm:hover { background: #059669; }

/* HISTORY PAGE SPECIFIC */
.macro-row { cursor: pointer; transition: background 0.2s; }
.macro-row:hover { background: #334155; }
.currency { color: #4ade80; }
.debt { color: #f87171; }
.chevron { color: #94a3b8; font-size: 14px; text-align: center; width: 30px; user-select: none; }
.delete-btn { cursor: pointer; text-align: center; width: 30px; user-select: none; transition: transform 0.2s; font-size: 14px; }
.delete-btn:hover { transform: scale(1.2); }
.chart-container { background: #1e293b; padding: 1rem; border-radius: 8px; border: 1px solid #334155; margin-bottom: 2rem; position: relative; height: 420px; width: 100%; display: flex; flex-direction: column; box-sizing: border-box; }
.chart-controls { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #94a3b8; font-size: 13px; font-weight: 600; }
.chart-controls select, .chart-controls input { background: #0f172a; color: #e2e8f0; border: 1px solid #475569; border-radius: 4px; padding: 6px 8px; font-family: inherit; font-size: 13px; color-scheme: dark; }
.chart-controls select { cursor: pointer; }
.portfolio-change { display: flex; align-items: baseline; gap: 8px; margin-left: auto; white-space: nowrap; }
.portfolio-change-label { color: #94a3b8; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.portfolio-change strong { font-family: monospace; font-size: 14px; color: #e2e8f0; }
.portfolio-change-positive strong { color: #4ade80; }
.portfolio-change-negative strong { color: #f87171; }
.portfolio-change-neutral strong { color: #94a3b8; }
.chart-custom-dates { display: flex; align-items: center; gap: 6px; }
.chart-custom-dates[hidden] { display: none; }
.chart-controls input[type="date"]::-webkit-calendar-picker-indicator { filter: none; opacity: 1; cursor: pointer; }
.chart-canvas-wrapper { position: relative; flex: 1; min-height: 0; width: 100%; }
.chart-canvas-wrapper canvas { display: block; }

@media (max-width: 600px) {
    .chart-controls { align-items: flex-start; flex-wrap: wrap; }
    .portfolio-change { margin-left: 0; width: 100%; }
    .chart-custom-dates { flex-wrap: wrap; }
}
#positionDetails { display: none; background: #0f172a; padding: 20px; border-radius: 6px; border: 1px solid #334155; margin: 10px; box-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05); animation: slideDownFade 0.25s ease-out forwards; }
#positionDetails h3 { color: #38bdf8; }
.load-more-history-btn { display: none; margin: 16px auto; padding: 10px 18px; background: #1e293b; color: #e2e8f0; border: 1px solid #475569; border-radius: 6px; cursor: pointer; font-family: monospace; }
.position-search-wrapper { margin-bottom: 12px; }
#positionSearch { width: 100%; padding: 10px 12px; background: #0f172a; color: #f8fafc; border: 1px solid #334155; border-radius: 6px; box-sizing: border-box; font-family: monospace; font-size: 13px; }
.allocation-empty-state { color: #94a3b8; font-size: 13px; }

@keyframes slideDownFade { 
    from { opacity: 0; transform: translateY(-10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* TERMINOLOGY BADGES */
.badge { padding: 3px 8px; border-radius: 4px; font-weight: 600; font-size: 11px; letter-spacing: 0.5px; display: inline-block; }
.badge-CORE_EQUITY, .badge-SAFE_HOUSE_CORE { background: #334155; color: #cbd5e1; border: 1px solid #475569; }
.badge-GROWTH_EQUITY, .badge-RENTAL_CORE { background: #1e3a8a; color: #bfdbfe; border: 1px solid #1d4ed8; }
.badge-COVERED_CALLS, .badge-ACTIVE_THETA { background: #15803d; color: #bbf7d0; border: 1px solid #16a34a; }
.badge-CASH_SECURED_PUTS, .badge-GHOST_RENT { background: #c2410c; color: #ffedd5; border: 1px solid #ea580c; }
.badge-ODD_LOTS, .badge-LEECH { background: #854d0e; color: #fef08a; border: 1px solid #ca8a04; }
.badge-PENDING_ASSIGNMENT, .badge-LIQUIDITY_BOMB { background: #9f1239; color: #fecdd3; border: 1px solid #e11d48; }
.badge-LOTTO { background: #5b21b6; color: #ddd6fe; border: 1px solid #7c3aed; }
.badge-MACRO_HEDGE { background: #0369a1; color: #bae6fd; border: 1px solid #0284c7; }
.badge-IGNORE { background: #27272a; color: #71717a; border: 1px solid #3f3f46; }

.edit-avg-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed #4a5568;
    color: #cbd5e0;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.edit-avg-btn:hover {
    background: #3182ce;
    border-color: #63b3ed;
    color: #ffffff;
}

/* DASHBOARD WIDGETS */
.widget-container { margin: 0 0 20px 0; background: #1e293b; border: 1px solid #334155; border-radius: 8px; padding: 16px; width: 100%; box-sizing: border-box; }
.widget-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.widget-title { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px; }
.widget-title-allocation { color: #38bdf8; }
.widget-title-alerts { color: #facc15; }
.widget-badge { font-size: 11px; background: #0f172a; color: #94a3b8; padding: 2px 8px; border-radius: 12px; border: 1px solid #334155; }

/* CAPITAL ALLOCATION SPECIFIC */
.allocation-actions { display: flex; gap: 10px; align-items: center; }
.allocation-btn { background: #334155; color: #cbd5e1; padding: 4px 10px; font-size: 11px; border: none; border-radius: 4px; cursor: pointer; margin: 0; transition: background 0.2s; }
.allocation-btn:hover { background: #475569; }

.allocation-date-nav { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14px; color: #e2e8f0; }
.date-nav-btn { background: none; border: none; color: #94a3b8; font-size: 16px; cursor: pointer; padding: 0 4px; transition: color 0.2s; display: flex; align-items: center; justify-content: center; transform: translateY(-2px); }
.date-nav-btn:hover:not(:disabled) { color: #38bdf8; }
.date-nav-btn:disabled { color: #334155; cursor: not-allowed; }
.date-nav-display { min-width: 140px; text-align: center; color: #f87171; letter-spacing: 0.5px; line-height: 1; }

.allocation-layout { display: flex; gap: 24px; align-items: flex-start; width: 100%; }
.allocation-chart-col { display: flex; flex-direction: column; align-items: center; flex: 0 0 260px; gap: 12px; }
.allocation-chart-wrapper { position: relative; width: 260px; height: 260px; display: flex; align-items: center; justify-content: center; }
.allocation-total-block { text-align: center; background: #0f172a; border: 1px solid #334155; border-radius: 8px; padding: 10px 20px; width: 100%; box-sizing: border-box; }
.allocation-total-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #64748b; margin-bottom: 4px; }
.allocation-total-value { font-size: 20px; font-weight: 700; color: #38bdf8; font-family: monospace; }
.allocation-top10-col { flex-grow: 1; display: flex; flex-direction: column; min-width: 0; padding-top: 4px; }
.allocation-top10-header { display: flex; justify-content: flex-end; padding-bottom: 8px; }
.allocation-top10-list { flex-grow: 1; display: flex; flex-direction: column; gap: 8px; padding-bottom: 4px; }

.allocation-list-wrapper { max-height: 400px; overflow-y: auto; padding-right: 5px; border-top: 1px solid #334155; padding-top: 15px; margin-top: 15px; }
.allocation-list { display: flex; flex-direction: column; gap: 8px; width: 100%; box-sizing: border-box; }

.allocation-row { background: rgba(15, 23, 42, 0.5); border: 1px solid #334155; padding: 8px 12px; border-radius: 6px; display: flex; align-items: center; justify-content: space-between; font-family: monospace; font-size: 13px; }
.allocation-row-ticker { display: flex; align-items: center; gap: 10px; width: 30%; min-width: 100px; }
.allocation-row-ticker strong { color: #e2e8f0; }
.allocation-row-ticker span { color: #94a3b8; }
.allocation-row-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.allocation-row-bar-bg { flex-grow: 1; margin: 0 15px; height: 6px; background: #0f172a; border-radius: 3px; overflow: hidden; }
.allocation-row-bar-fill { height: 100%; border-radius: 3px; }
.allocation-row-amount { color: #e2e8f0; width: 25%; text-align: right; min-width: 100px; }

.allocation-top-row { display: flex; align-items: center; justify-content: space-between; font-family: monospace; font-size: 12px; background: rgba(15, 23, 42, 0.4); padding: 5px 10px; border-radius: 4px; }
.allocation-top-row-ticker { display: flex; align-items: center; gap: 8px; }
.allocation-top-row-ticker strong { color: #e2e8f0; width: 45px; }
.allocation-top-row-ticker span { color: #94a3b8; font-size: 10px; }
.allocation-top-row-amount { color: #e2e8f0; }

.alerts-list { display: flex; flex-direction: column; gap: 8px; width: 100%; box-sizing: border-box; }
.alert-message { color: #94a3b8; font-size: 13px; }
.alert-message-error { color: #f87171; }
.alert-resolution { background: rgba(56, 189, 248, 0.12); border: 1px solid #0284c7; color: #bae6fd; padding: 8px 12px; border-radius: 6px; font-family: monospace; font-size: 13px; display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; margin-bottom: 4px; }
.alert-resolution-icon { font-size: 16px; }
.alert-resolution-date { color: #38bdf8; font-weight: bold; min-width: 85px; }
.alert-resolution-divider { color: #0369a1; }
.alert-empty-state { color: #94a3b8; font-size: 13px; font-family: monospace; padding: 4px 0; }
.alert-item { background: var(--alert-background); border: 1px solid var(--alert-border); color: var(--alert-text); padding: 8px 12px; border-radius: 6px; font-family: monospace; font-size: 13px; display: flex; align-items: center; justify-content: space-between; width: 100%; box-sizing: border-box; cursor: pointer; transition: filter 0.15s ease; }
.alert-item:hover { filter: brightness(1.2); }
.alert-item-summary { display: flex; align-items: center; gap: 10px; }
.alert-item-dot { font-size: 16px; line-height: 1; }
.alert-item-meta { display: flex; align-items: center; gap: 12px; }
.alert-item-expiration { color: #94a3b8; font-size: 12px; }
.alert-item-dte { font-weight: bold; color: #0f172a; padding: 2px 8px; border-radius: 4px; font-size: 11px; }

/* STRESS TEST PAGE */
.stress-shell { max-width: 1200px; margin: auto; }
.stress-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 18px; }
.stress-header h1 { margin: 0; color: #38bdf8; font-size: 24px; }
.stress-header .page-nav a { font-weight: 700; }
.stress-meta { color: #94a3b8; font: 12px monospace; }
.stress-status { margin: 12px 0 20px; }
.stress-error { color: #f87171; font-family: monospace; margin: 12px 0; }
.intent-summary-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0 0 24px; }
.stress-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.stress-card { min-width: 0; padding: 16px; background: #0f172a; border: 1px solid #334155; border-radius: 6px; }
.stress-card span, .stress-card small { display: block; color: #94a3b8; font: 11px monospace; text-transform: uppercase; }
.stress-card strong { display: block; margin: 10px 0 6px; color: #e2e8f0; font: 700 20px monospace; overflow-wrap: anywhere; }
.stress-card small { text-transform: none; }
.whitespace-nowrap { white-space: nowrap; }
.stress-card.debt-active strong, .tone-negative { color: #f87171; }
.tone-good { color: #4ade80 !important; }
.tone-caution { color: #facc15 !important; }
.tone-negative { color: #f87171 !important; }
.control-panel { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr 1fr; gap: 16px; padding: 18px; background: #0f172a; border: 1px solid #334155; border-radius: 6px; }
.control-group { min-width: 0; }
.control-group > label, .control-title { display: block; margin-bottom: 10px; color: #cbd5e1; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.control-value { color: #38bdf8; font: 700 14px monospace; }
.control-group input[type="range"] { width: 100%; height: 28px; margin: 0; padding: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: grab; }
.control-group input[type="range"]:active { cursor: grabbing; }
.control-group input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: #475569; border: 1px solid #64748b; border-radius: 4px; }
.control-group input[type="range"]::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -8px; appearance: none; -webkit-appearance: none; background: #38bdf8; border: 3px solid #0f172a; border-radius: 50%; box-shadow: 0 0 0 1px #38bdf8; }
.control-group input[type="range"]::-moz-range-track { height: 6px; background: #475569; border: 1px solid #64748b; border-radius: 4px; }
.control-group input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; background: #38bdf8; border: 3px solid #0f172a; border-radius: 50%; box-shadow: 0 0 0 1px #38bdf8; }
.control-group input[type="range"]:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 3px; border-radius: 4px; }
.control-group input[type="number"], .control-group select { width: 100%; box-sizing: border-box; padding: 9px 10px; background: #1e293b; border: 1px solid #475569; border-radius: 4px; color: #e2e8f0; font: 14px monospace; color-scheme: dark; }
.rate-options { display: flex; flex-wrap: wrap; gap: 12px; }
.rate-options label, .vix-toggle { display: flex; align-items: center; gap: 7px; color: #cbd5e1; font-size: 13px; }
.rate-options input, .vix-toggle input { accent-color: #38bdf8; }
.vix-toggle { align-items: flex-start; line-height: 1.4; }
.assumption-note { margin: 12px 0 22px; color: #94a3b8; font: 11px/1.5 monospace; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 24px 0 0; }
.section-heading h2 { margin: 0; color: #f8fafc; font-size: 16px; }
.section-heading span { color: #94a3b8; font: 11px monospace; }
.table-wrap { overflow-x: auto; }
.assignment-table { min-width: 760px; }
.assignment-table tfoot td { color: #f8fafc; font-weight: 700; border-top: 1px solid #64748b; }
.assignment-table .numeric { text-align: right; white-space: nowrap; }
.assignment-table th:nth-child(3), .assignment-table td:nth-child(3) { text-align: center; }
.ticker-sort-header { display: flex; align-items: center; gap: 8px; min-width: 190px; }
.ticker-sort-select { width: 112px; padding: 6px 7px; background: #1e293b; border: 1px solid #475569; border-radius: 4px; color: #e2e8f0; font: 11px monospace; color-scheme: dark; }
.intent-select { width: 140px; max-width: 100%; padding: 7px 8px; background: #1e293b; border: 1px solid #475569; border-radius: 4px; color: #e2e8f0; font: 12px monospace; color-scheme: dark; }
.intent-header { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.assignment-table th .bulk-intent-button { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; line-height: inherit; cursor: pointer; transition: none; }
.assignment-table th .bulk-intent-button:hover:not(:disabled) { background: transparent; text-decoration: underline; }
.assignment-table th .bulk-intent-button:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 2px; border-radius: 2px; }
.assignment-table th .bulk-intent-button:disabled { cursor: default; }
.ticker-detail { color: #94a3b8; font-size: 10px; }
.scenario-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.scenario-item { padding: 12px; border-left: 2px solid #38bdf8; background: rgba(15, 23, 42, 0.55); }
.scenario-item span { display: block; color: #94a3b8; font: 10px monospace; text-transform: uppercase; }
.scenario-item strong { display: block; margin-top: 6px; color: #e2e8f0; font: 700 14px monospace; }

@media (max-width: 850px) {
    .stress-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .control-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    body { padding: 1rem; }
    .stress-header { align-items: flex-start; }
    .stress-header h1 { font-size: 20px; }
    .intent-summary-grid { gap: 8px; }
    .stress-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stress-card { padding: 12px; }
    .stress-card strong { font-size: 16px; }
    .control-panel { grid-template-columns: 1fr; }
    .scenario-strip { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
    .intent-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .intent-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}