body {
    margin: 0;
    font-family: Segoe UI, Arial, sans-serif;
    background: #f6f7f9;
    color: #1e293b;
}

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

.sidebar {
    background: #172033;
    color: #f8fafc;
    padding: 24px 18px;
}

.brand {
    color: #fff;
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    text-decoration: none;
}

.sidebar nav {
    display: grid;
    gap: 4px;
}

.nav-group-label {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 14px 0 6px;
    text-transform: uppercase;
}

.sidebar nav a,
.sidebar nav .nav-link {
    border-radius: 6px;
    color: #dbeafe;
    padding: 9px 10px;
    text-decoration: none;
}

.sidebar nav a:hover,
.sidebar nav .nav-link:hover {
    background: #26344f;
}

.sidebar nav a.active,
.sidebar nav .nav-link.active {
    background: #334155;
    color: #fff;
    font-weight: 600;
}

.content {
    padding: 28px;
    max-width: 1400px;
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-subtitle,
.page-section-subtitle {
    color: #64748b;
    font-size: 15px;
    line-height: 1.5;
    margin: 6px 0 0;
}

.page-section-header {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.page-section-title {
    font-size: 20px;
    margin: 0;
}

.analytics-section {
    margin-bottom: 2rem;
}

.analytics-section-split {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.context-strip {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1rem;
}

.context-chip {
    align-items: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    display: inline-flex;
    gap: 8px;
    padding: 8px 14px;
}

.notice-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 1rem;
    padding: 14px 16px;
}

.notice-card p {
    margin: 6px 0 0;
}

.notice-replay {
    border-left: 4px solid #2563eb;
}

.notice-warning {
    border-left: 4px solid #f59e0b;
}

.notice-simulation {
    border-left: 4px solid #64748b;
    margin-bottom: 1.5rem;
}

.page-footer-note {
    margin-top: 0.5rem;
}

.metrics-kpi-strip,
.entry-source-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.ticker-monitor-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ticker-monitor-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    min-height: 190px;
    padding: 14px 16px;
}

.ticker-monitor-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.ticker-monitor-symbol {
    font-size: 16px;
    font-weight: 800;
}

.ticker-monitor-price {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 10px;
}

.ticker-monitor-change {
    font-size: 15px;
    font-weight: 700;
    margin-top: 4px;
}

.ticker-monitor-change-usd {
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
}

.ticker-monitor-sparkline {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-top: 12px;
    min-height: 52px;
    padding: 6px 8px;
}

.ticker-monitor-footer {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
}

.ticker-monitor-empty {
    color: #64748b;
    font-size: 13px;
    margin-top: 12px;
}

.chart-empty-compact {
    min-height: 100px;
}

h1 {
    font-size: 28px;
    margin: 0 0 18px;
}

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

.card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

.metric {
    color: #0f172a;
    font-size: 28px;
    font-weight: 700;
}

.muted {
    color: #64748b;
    font-size: 13px;
}

table {
    background: white;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

th, td {
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #eef2f7;
    font-size: 13px;
    text-transform: uppercase;
}

.badge {
    border-radius: 999px;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
}

.badge-wait { background: #e2e8f0; color: #334155; }
.badge-watch { background: #dbeafe; color: #1d4ed8; }
.badge-buy { background: #dcfce7; color: #166534; }
.badge-sell { background: #fee2e2; color: #991b1b; }
.badge-exit { background: #fef3c7; color: #92400e; }
.badge-fresh { background: #dcfce7; color: #166534; }
.badge-stale { background: #fef3c7; color: #92400e; }
.badge-outofhours { background: #e2e8f0; color: #334155; }
.badge-strict { background: #e0e7ff; color: #3730a3; }
.badge-resr { background: #fce7f3; color: #9d174d; }
.profit { color: #166534; font-weight: 700; }
.loss { color: #991b1b; font-weight: 700; }

.toolbar {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

input, select, button {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font: inherit;
    padding: 8px 10px;
}

button {
    background: #172033;
    color: white;
    cursor: pointer;
}

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

    .content {
        padding: 18px;
    }

    .analytics-section-split,
    .ticker-monitor-grid,
    .executive-kpi-grid,
    .metrics-kpi-strip,
    .entry-source-grid,
    .chart-grid {
        grid-template-columns: 1fr;
    }

    .context-strip {
        align-items: stretch;
        flex-direction: column;
    }
}

.chart-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    margin-bottom: 1.5rem;
}

.chart-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
}

.chart-header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.chart-header h3 {
    font-size: 16px;
    margin: 0;
}

.chart-data-label {
    background: #eff6ff;
    border-radius: 999px;
    color: #1d4ed8;
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    padding: 4px 10px;
}

.chart-svg {
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
}

.chart-axis {
    stroke: #94a3b8;
    stroke-width: 1.5;
}

.chart-grid {
    stroke: #e2e8f0;
    stroke-width: 1;
}

.chart-axis-label,
.chart-x-label,
.chart-sub-label,
.chart-value-label {
    fill: #64748b;
    font-size: 11px;
}

.chart-value-label {
    fill: #0f172a;
    font-size: 10px;
    font-weight: 700;
}

.chart-line {
    stroke: #2563eb;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.chart-area {
    fill: rgba(37, 99, 235, 0.12);
}

.chart-dot {
    fill: #2563eb;
    stroke: white;
    stroke-width: 2;
}

.chart-dot-current {
    fill: #0f172a;
}

.chart-bar-positive {
    fill: #16a34a;
}

.chart-bar-negative {
    fill: #dc2626;
}

.chart-bar-realized {
    fill: #2563eb;
}

.chart-bar-unrealized {
    fill: #d97706;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chart-legend-item {
    align-items: center;
    color: #64748b;
    display: inline-flex;
    font-size: 12px;
    gap: 6px;
}

.chart-legend-swatch {
    border-radius: 3px;
    display: inline-block;
    height: 10px;
    width: 10px;
}

.chart-legend-positive { background: #16a34a; }
.chart-legend-negative { background: #dc2626; }
.chart-legend-realized { background: #2563eb; }
.chart-legend-unrealized { background: #d97706; }
.chart-legend-line { background: #2563eb; }
.chart-legend-line-price { background: #2563eb; }
.chart-legend-line-sma20 { background: #d97706; }
.chart-legend-line-sma50 { background: #7c3aed; }
.chart-legend-dot-current { background: #0f172a; }

.chart-line-price {
    stroke: #2563eb;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.chart-line-sma20 {
    stroke: #d97706;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.chart-line-sma50 {
    stroke: #7c3aed;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.ticker-card-link,
.heatmap-cell-link {
    color: inherit;
    display: block;
    text-decoration: none;
}

.ticker-card-link:hover .opportunity-card,
.heatmap-cell-link:hover .heatmap-cell {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.ticker-link {
    color: #0f172a;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.ticker-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.ticker-detail-back {
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.ticker-detail-back:hover {
    text-decoration: underline;
}

.ticker-detail-header {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    padding: 20px;
}

.ticker-detail-header-main {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.ticker-detail-symbol {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 0.03em;
    margin: 0 0 8px;
}

.ticker-detail-score {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ticker-detail-score-ring {
    height: 72px;
    width: 72px;
}

.ticker-detail-score-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.ticker-detail-metrics {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-top: 18px;
}

.ticker-detail-metric {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ticker-detail-price {
    font-size: 24px;
}

.ticker-detail-positive {
    border-left: 4px solid #16a34a;
}

.ticker-detail-warning {
    border-left: 4px solid #d97706;
}

.ticker-detail-neutral {
    border-left: 4px solid #64748b;
}

.ticker-detail-negative {
    border-left: 4px solid #dc2626;
}

.rules-checklist-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}

.rules-checklist-grid {
    display: grid;
    gap: 10px;
}

.rules-checklist-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: grid;
    gap: 4px;
    padding: 12px 14px;
}

.rules-checklist-label {
    font-size: 13px;
    font-weight: 800;
}

.rules-checklist-value {
    font-size: 13px;
}

.rules-checklist-pass {
    background: #f0fdf4;
    border-color: #86efac;
}

.rules-checklist-fail {
    background: #fef2f2;
    border-color: #fca5a5;
}

.rules-checklist-unknown {
    background: #f8fafc;
}

.rules-checklist-footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.ticker-event-marker {
    stroke: white;
    stroke-width: 1.5;
}

.ticker-event-watch {
    fill: #2563eb;
}

.ticker-event-buy {
    fill: #16a34a;
}

.ticker-event-entry {
    fill: #15803d;
}

.ticker-event-exit {
    fill: #dc2626;
}

.ticker-event-stop {
    fill: #b91c1c;
}

.ticker-event-takeprofit {
    fill: #059669;
}

.ticker-event-eod {
    fill: #d97706;
    stroke: #d97706;
}

.ticker-trade-line {
    stroke-dasharray: 6 4;
    stroke-width: 2;
}

.ticker-trade-line-entry {
    stroke: #15803d;
}

.ticker-trade-line-stop {
    stroke: #dc2626;
}

.ticker-trade-line-takeprofit {
    stroke: #059669;
}

.ticker-trade-line-label {
    fill: #475569;
    font-size: 10px;
    font-weight: 700;
}

.chart-legend-trade-entry { background: #15803d; }
.chart-legend-trade-stop { background: #dc2626; }
.chart-legend-trade-takeprofit { background: #059669; }

.ticker-event-legend {
    border-top: 1px solid #e2e8f0;
    margin-top: 14px;
    padding-top: 12px;
}

.ticker-event-legend h4 {
    font-size: 14px;
    margin: 0 0 10px;
}

.ticker-event-legend ul {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ticker-event-legend li {
    align-items: center;
    display: grid;
    font-size: 13px;
    gap: 8px;
    grid-template-columns: 14px 52px 1fr auto;
}

.ticker-event-legend-swatch {
    border-radius: 999px;
    display: inline-block;
    height: 10px;
    width: 10px;
}

.ticker-event-timeline {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.ticker-event-timeline-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    gap: 6px;
    padding: 6px 10px;
}

.ticker-event-timeline-time {
    color: #64748b;
    font-weight: 700;
}

.ticker-event-timeline-label {
    font-weight: 700;
}

.ticker-event-timeline-arrow {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 700;
}

.ticker-event-timeline-item.ticker-event-watch {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.ticker-event-timeline-item.ticker-event-buy,
.ticker-event-timeline-item.ticker-event-entry {
    background: #ecfdf5;
    border-color: #86efac;
    color: #166534;
}

.ticker-event-timeline-item.ticker-event-exit,
.ticker-event-timeline-item.ticker-event-stop {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.ticker-event-timeline-item.ticker-event-takeprofit {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #047857;
}

.ticker-event-timeline-item.ticker-event-eod {
    background: #fff7ed;
    border-color: #fdba74;
    color: #9a3412;
}

.ticker-event-timeline-empty {
    margin-top: 12px;
}

.chart-footer {
    font-size: 12px;
    margin-top: 10px;
}

.chart-empty {
    align-items: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    color: #64748b;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
    padding: 24px;
    text-align: center;
}

.chart-empty-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.executive-kpi-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 1.5rem;
}

.kpi-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    padding: 16px 18px;
}

.kpi-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.kpi-value {
    color: #0f172a;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    margin-top: 8px;
}

.kpi-subtitle {
    color: #64748b;
    font-size: 12px;
    margin-top: 6px;
}

.kpi-positive {
    border-left: 4px solid #16a34a;
}

.kpi-positive .kpi-value {
    color: #166534;
}

.kpi-negative {
    border-left: 4px solid #dc2626;
}

.kpi-negative .kpi-value {
    color: #991b1b;
}

.kpi-neutral {
    border-left: 4px solid #64748b;
}

.kpi-nodata {
    border-left: 4px solid #cbd5e1;
}

.kpi-nodata .kpi-value {
    color: #94a3b8;
    font-size: 22px;
}

.heatmap-card,
.winloss-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    padding: 16px;
}

.heatmap-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.heatmap-cell {
    border-radius: 10px;
    min-height: 110px;
    padding: 12px;
}

.heatmap-ticker {
    font-size: 15px;
    font-weight: 800;
}

.heatmap-price {
    font-size: 18px;
    font-weight: 700;
    margin-top: 8px;
}

.heatmap-change,
.heatmap-signal {
    font-size: 12px;
    margin-top: 6px;
}

.heatmap-positive {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #14532d;
}

.heatmap-negative,
.heatmap-exit {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #7f1d1d;
}

.heatmap-watch {
    background: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1e3a8a;
}

.heatmap-neutral {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.heatmap-stale,
.heatmap-nodata {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.opportunity-radar {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    padding: 16px;
}

.opportunity-radar-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.opportunity-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 220px;
    padding: 14px;
}

.opportunity-card-header {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.opportunity-card-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.opportunity-ticker {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.opportunity-data-label {
    color: #92400e;
    font-size: 11px;
    font-weight: 600;
}

.opportunity-score {
    flex-shrink: 0;
    height: 52px;
    width: 52px;
}

.opportunity-score-ring {
    display: block;
    height: 52px;
    width: 52px;
}

.opportunity-score-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 4;
}

.opportunity-score-fill {
    fill: none;
    stroke-width: 4;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.opportunity-score-positive {
    stroke: #16a34a;
}

.opportunity-score-warning {
    stroke: #d97706;
}

.opportunity-score-neutral {
    stroke: #64748b;
}

.opportunity-score-negative {
    stroke: #dc2626;
}

.opportunity-score-value {
    fill: #0f172a;
    font-size: 11px;
    font-weight: 800;
}

.opportunity-price-row {
    align-items: baseline;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.opportunity-price {
    font-size: 18px;
    font-weight: 700;
}

.opportunity-change {
    font-size: 13px;
    font-weight: 700;
}

.opportunity-signal-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
}

.opportunity-status {
    font-size: 12px;
    font-weight: 700;
}

.opportunity-status-positive {
    color: #15803d;
}

.opportunity-status-warning {
    color: #b45309;
}

.opportunity-status-neutral {
    color: #475569;
}

.opportunity-status-negative {
    color: #b91c1c;
}

.opportunity-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rule-chip {
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
}

.rule-chip-pass {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.rule-chip-fail {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.rule-chip-unknown {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #64748b;
}

.blocker-chip {
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 8px;
    color: #9a3412;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 8px;
}

.blocker-chip-clear {
    background: #ecfdf5;
    border-color: #86efac;
    color: #166534;
}

.opportunity-positive {
    color: #15803d;
}

.opportunity-warning {
    color: #b45309;
}

.opportunity-neutral {
    color: #475569;
}

.opportunity-negative {
    color: #b91c1c;
}

.opportunity-card.opportunity-positive {
    border-left: 4px solid #16a34a;
}

.opportunity-card.opportunity-warning {
    border-left: 4px solid #d97706;
}

.opportunity-card.opportunity-neutral {
    border-left: 4px solid #64748b;
}

.opportunity-card.opportunity-negative {
    border-left: 4px solid #dc2626;
}

.opportunity-empty {
    color: #64748b;
    font-size: 13px;
    margin: 0;
}

.sparkline-svg {
    display: block;
    height: 36px;
    margin: 0;
    width: 100%;
}

.sparkline-line {
    stroke: #2563eb;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.sparkline-empty {
    font-size: 12px;
    margin: 8px 0;
}

.winloss-grid {
    align-items: center;
    display: grid;
    gap: 16px;
    grid-template-columns: 180px 1fr;
}

.winloss-kpis {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.winloss-donut {
    display: block;
    height: auto;
    width: 100%;
}

.winloss-donut-bg {
    fill: #e2e8f0;
}

.winloss-donut-win {
    fill: #16a34a;
}

.winloss-donut-loss {
    fill: #dc2626;
}

.winloss-donut-hole {
    fill: white;
}

.winloss-donut-center {
    fill: #0f172a;
    font-size: 18px;
    font-weight: 800;
}

.winloss-donut-sub {
    fill: #64748b;
    font-size: 10px;
}

@media (max-width: 1100px) {
    .analytics-section-split {
        grid-template-columns: 1fr;
    }

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

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

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

    .opportunity-radar-grid {
        grid-template-columns: 1fr;
    }

    .ticker-detail-header-main {
        flex-direction: column;
    }

    .ticker-detail-symbol {
        font-size: 28px;
    }

    .ticker-event-legend li {
        grid-template-columns: 14px 1fr;
    }

    .cockpit-header {
        flex-direction: column;
    }

    .cockpit-header-status {
        justify-content: flex-start;
    }

    .cockpit-main-grid {
        grid-template-columns: 1fr;
    }

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

.cockpit-shell {
    background: linear-gradient(180deg, #0b1220 0%, #111827 55%, #0f172a 100%);
    color: #e2e8f0;
    min-height: 100vh;
    padding: 18px 22px 28px;
}

.cockpit-exit-link {
    color: #93c5fd;
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    text-decoration: none;
}

.cockpit-exit-link:hover {
    text-decoration: underline;
}

.cockpit-header {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.cockpit-header-brand h1 {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 0.02em;
    margin: 0;
}

.cockpit-header-subtitle {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
}

.cockpit-header-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.cockpit-pill {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid #334155;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
}

.cockpit-pill-market {
    background: rgba(37, 99, 235, 0.2);
    border-color: #3b82f6;
    color: #bfdbfe;
}

.cockpit-pill-positive {
    background: rgba(22, 163, 74, 0.2);
    border-color: #22c55e;
    color: #bbf7d0;
}

.cockpit-pill-warning {
    background: rgba(217, 119, 6, 0.2);
    border-color: #f59e0b;
    color: #fde68a;
}

.cockpit-pill-negative {
    background: rgba(220, 38, 38, 0.2);
    border-color: #ef4444;
    color: #fecaca;
}

.cockpit-notice {
    border-radius: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.cockpit-notice-simulation {
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid #3b82f6;
    color: #dbeafe;
}

.cockpit-notice-error {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid #ef4444;
    color: #fecaca;
}

.cockpit-loading,
.cockpit-empty {
    color: #94a3b8;
}

.cockpit-section {
    margin-bottom: 18px;
}

.cockpit-section-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.cockpit-panel {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 16px;
}

.cockpit-panel-header {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cockpit-panel-header .cockpit-section-title {
    margin: 0;
}

.cockpit-badge {
    background: rgba(59, 130, 246, 0.2);
    border-radius: 999px;
    color: #bfdbfe;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
}

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

.cockpit-shell .kpi-card {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid #475569;
    border-radius: 12px;
    box-shadow: none;
    color: #f8fafc;
    padding: 14px 16px;
}

.cockpit-shell .kpi-label {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.cockpit-shell .kpi-value {
    color: #f8fafc;
    font-size: 28px;
    font-weight: 800;
    margin-top: 8px;
}

.cockpit-shell .kpi-subtitle {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 6px;
}

.cockpit-shell .kpi-warning {
    border-left: 4px solid #f59e0b;
}

.cockpit-main-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.cockpit-opp-card {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid #475569;
    border-radius: 12px;
    color: inherit;
    display: grid;
    gap: 8px;
    padding: 12px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cockpit-opp-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.cockpit-opp-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.cockpit-opp-ticker {
    font-size: 20px;
    font-weight: 900;
}

.cockpit-opp-score {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid #64748b;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    padding: 4px 10px;
}

.cockpit-opp-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
}

.cockpit-opp-blocker {
    font-size: 12px;
    font-weight: 700;
}

.cockpit-opp-rule {
    color: #94a3b8;
    font-size: 11px;
}

.cockpit-opp-positive {
    border-left: 4px solid #22c55e;
}

.cockpit-opp-warning {
    border-left: 4px solid #f59e0b;
}

.cockpit-opp-neutral {
    border-left: 4px solid #64748b;
}

.cockpit-opp-negative {
    border-left: 4px solid #ef4444;
}

.cockpit-heatmap-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.cockpit-heatmap-cell {
    border-radius: 12px;
    color: inherit;
    display: grid;
    gap: 6px;
    min-height: 110px;
    padding: 12px;
    text-decoration: none;
}

.cockpit-heatmap-ticker {
    font-size: 16px;
    font-weight: 800;
}

.cockpit-heatmap-price {
    font-size: 18px;
    font-weight: 700;
}

.cockpit-heatmap-change,
.cockpit-heatmap-signal {
    font-size: 12px;
}

.cockpit-heatmap-positive {
    background: rgba(22, 163, 74, 0.25);
    border: 1px solid #22c55e;
    color: #dcfce7;
}

.cockpit-heatmap-negative,
.cockpit-heatmap-exit {
    background: rgba(220, 38, 38, 0.22);
    border: 1px solid #ef4444;
    color: #fee2e2;
}

.cockpit-heatmap-watch {
    background: rgba(37, 99, 235, 0.22);
    border: 1px solid #3b82f6;
    color: #dbeafe;
}

.cockpit-heatmap-neutral {
    background: rgba(100, 116, 139, 0.25);
    border: 1px solid #64748b;
    color: #e2e8f0;
}

.cockpit-heatmap-stale,
.cockpit-heatmap-nodata {
    background: rgba(217, 119, 6, 0.2);
    border: 1px solid #f59e0b;
    color: #ffedd5;
}

.cockpit-trades-grid,
.cockpit-alerts-grid {
    display: grid;
    gap: 10px;
}

.cockpit-trade-card,
.cockpit-alert-card,
.cockpit-empty-card {
    background: rgba(30, 41, 59, 0.88);
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 12px;
}

.cockpit-empty-card {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

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

.cockpit-trade-ticker {
    color: #f8fafc;
    font-size: 20px;
    font-weight: 900;
    text-decoration: none;
}

.cockpit-trade-ticker:hover {
    color: #93c5fd;
}

.cockpit-trade-metrics {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cockpit-trade-label {
    color: #94a3b8;
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.cockpit-alert-card {
    display: grid;
    gap: 4px;
}

.cockpit-alert-unread {
    border-color: #f59e0b;
}

.cockpit-alert-time {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
}

.cockpit-alert-type {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.cockpit-alert-ticker {
    font-size: 16px;
    font-weight: 800;
}

.cockpit-alert-message {
    color: #cbd5e1;
    font-size: 13px;
}

.cockpit-footer {
    color: #64748b;
    font-size: 12px;
    margin-top: 8px;
    text-align: right;
}

.cockpit-section-link {
    color: #93c5fd;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.cockpit-section-link:hover {
    text-decoration: underline;
}

.alert-center-page {
    display: grid;
    gap: 16px;
}

.alert-center-toolbar {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}

.alert-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.alert-filter-tab {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #334155;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
}

.alert-filter-tab.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.alert-filter-ticker {
    color: #64748b;
    display: grid;
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
}

.alert-filter-ticker select {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    min-width: 120px;
    padding: 8px 10px;
}

.alert-center-meta {
    margin: 0;
}

.alert-center-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    padding: 24px;
    text-align: center;
}

.alert-center-section {
    display: grid;
    gap: 12px;
}

.alert-center-section-header {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.alert-center-section-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

.alert-center-section-count {
    background: #eff6ff;
    border-radius: 999px;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
}

.alert-center-section-empty {
    margin: 0;
}

.alert-center-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.alert-center-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: grid;
    gap: 8px;
    padding: 14px;
}

.alert-center-card.alert-priority-high {
    border-left: 4px solid #dc2626;
}

.alert-center-card.alert-priority-medium {
    border-left: 4px solid #d97706;
}

.alert-center-card.alert-priority-low {
    border-left: 4px solid #64748b;
}

.alert-center-unread {
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.alert-center-card-header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.alert-center-time {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.alert-type-chip {
    background: #f1f5f9;
    border-radius: 999px;
    color: #334155;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    text-transform: uppercase;
}

.alert-center-unread-badge {
    background: #dbeafe;
    border-radius: 999px;
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
}

.alert-ticker-link {
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
    text-decoration: none;
}

.alert-ticker-link:hover {
    color: #2563eb;
}

.alert-center-summary {
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
}

.alert-center-context {
    font-size: 12px;
    margin: 0;
}

.alert-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.alert-action-link {
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.alert-action-link:hover {
    text-decoration: underline;
}

.alert-action-button {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #334155;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
}

.page-section-link {
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.page-section-link:hover {
    text-decoration: underline;
}

.journal-page {
    display: grid;
    gap: 16px;
}

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

.journal-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.journal-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.journal-filter-tab {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #334155;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
}

.journal-filter-tab.active {
    background: #0f766e;
    border-color: #0f766e;
    color: white;
}

.journal-meta {
    margin: 0;
}

.journal-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    padding: 24px;
    text-align: center;
}

.journal-cards-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.journal-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    display: grid;
    gap: 12px;
    padding: 16px;
}

.journal-card-profit {
    border-left: 4px solid #16a34a;
}

.journal-card-loss {
    border-left: 4px solid #dc2626;
}

.journal-card-open {
    border-left: 4px solid #2563eb;
}

.journal-card-header {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.journal-ticker-link {
    color: #0f172a;
    font-size: 26px;
    font-weight: 900;
    text-decoration: none;
}

.journal-ticker-link:hover {
    color: #0f766e;
}

.journal-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.journal-card-pnl {
    font-size: 22px;
    font-weight: 800;
    text-align: right;
}

.journal-card-pnl small {
    display: block;
    font-size: 12px;
    font-weight: 700;
}

.journal-narrative {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}

.journal-lesson {
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
}

.journal-timeline {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.journal-event {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    white-space: nowrap;
}

.journal-event-signal,
.journal-event-signal-exit {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.journal-event-trade-open {
    background: #ecfdf5;
    border-color: #86efac;
    color: #166534;
}

.journal-event-trade-close {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.journal-event-alert {
    background: #fff7ed;
    border-color: #fdba74;
    color: #9a3412;
}

.journal-timeline-arrow {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
}

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

.journal-metrics strong {
    display: block;
    margin-top: 2px;
}

.journal-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.journal-action-link {
    color: #0f766e;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.journal-action-link:hover {
    text-decoration: underline;
}

.daily-brief-page {
    display: grid;
    gap: 20px;
}

.daily-brief-header {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.daily-brief-print-button {
    background: #0f766e;
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 16px;
    white-space: nowrap;
}

.daily-brief-print-button:hover {
    background: #115e59;
}

.daily-brief-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.daily-brief-meta-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 12px;
    padding: 8px 12px;
}

.daily-brief-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    display: grid;
    gap: 14px;
    padding: 18px;
}

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

.daily-brief-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    padding: 18px;
    text-align: center;
}

.daily-brief-market-movers {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.daily-brief-mover-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
}

.daily-brief-mover-card h3 {
    font-size: 14px;
    margin: 0 0 10px;
}

.daily-brief-mover-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.daily-brief-mover-row a {
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
}

.daily-brief-opp-list {
    display: grid;
    gap: 10px;
}

.daily-brief-opp-row {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: grid;
    gap: 10px;
    grid-template-columns: auto 1fr 2fr;
    padding: 12px;
}

.daily-brief-opp-rank {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.daily-brief-opp-main {
    align-items: center;
    display: flex;
    gap: 10px;
}

.daily-brief-opp-score {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
}

.daily-brief-opp-details {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.daily-brief-ops-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.daily-brief-ops-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
}

.daily-brief-ops-card h3 {
    font-size: 14px;
    margin: 0 0 10px;
}

.daily-brief-trade-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    padding: 6px 0;
}

.daily-brief-trade-row a,
.daily-brief-ticker-link {
    color: #0f172a;
    font-weight: 800;
    text-decoration: none;
}

.daily-brief-ticker-link:hover {
    color: #0f766e;
}

.daily-brief-alerts-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.daily-brief-alert-group h3 {
    font-size: 14px;
    margin: 0 0 8px;
}

.daily-brief-quick-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.daily-brief-quick-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: grid;
    gap: 8px;
    padding: 14px;
}

.daily-brief-quick-card-header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.daily-brief-quick-label {
    background: #e2e8f0;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
}

.daily-brief-quick-narrative {
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
}

.daily-brief-quick-meta {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.daily-brief-conclusion {
    background: linear-gradient(135deg, #ecfdf5, #f8fafc);
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: 18px;
}

.daily-brief-conclusion p {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.55;
    margin: 0;
}

.daily-brief-header-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.daily-briefs-page {
    display: grid;
    gap: 20px;
}

.report-history-summary {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    display: grid;
    gap: 14px;
    padding: 18px;
}

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

.report-history-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.report-history-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.report-history-positive {
    border-left: 4px solid #16a34a;
}

.report-history-negative {
    border-left: 4px solid #dc2626;
}

.report-history-warning {
    border-left: 4px solid #d97706;
}

.report-history-card-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.report-history-date {
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
}

.report-history-date:hover {
    color: #0f766e;
}

.report-history-recon {
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
}

.report-history-recon.ok {
    background: #ecfdf5;
    color: #166534;
}

.report-history-recon.warn {
    background: #fff7ed;
    color: #9a3412;
}

.report-history-metrics {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-history-metrics strong {
    display: block;
}

.report-history-link {
    color: #0f766e;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.report-history-link:hover {
    text-decoration: underline;
}

.report-history-sparkline {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    height: 88px;
    width: 100%;
}

.report-history-sparkline-line {
    fill: none;
    stroke: #0f766e;
    stroke-width: 2;
}

.report-history-sparkline-dot {
    fill: #0f766e;
}

.report-history-sparkline-empty {
    padding: 12px;
    text-align: center;
}

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

@media (max-width: 1100px) {
    .daily-brief-kpi-grid,
    .daily-brief-market-movers,
    .daily-brief-ops-grid,
    .daily-brief-alerts-grid {
        grid-template-columns: 1fr;
    }

    .daily-brief-opp-row {
        grid-template-columns: 1fr;
    }

    .daily-brief-header {
        flex-direction: column;
    }
}

.backtest-lab-page {
    display: grid;
    gap: 20px;
}

.backtest-lab-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    display: grid;
    gap: 14px;
    padding: 18px;
}

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

.backtest-charts-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.backtest-bar-chart {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
}

.backtest-bar-chart-title {
    font-size: 14px;
    margin: 0 0 10px;
}

.backtest-bar-positive {
    fill: #16a34a;
}

.backtest-bar-negative {
    fill: #dc2626;
}

.backtest-bar-neutral {
    fill: #64748b;
}

.backtest-comparison-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.backtest-comparison-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: grid;
    gap: 10px;
    padding: 14px;
}

.backtest-comparison-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.backtest-comparison-header h3 {
    font-size: 16px;
    margin: 0;
}

.backtest-rec-strict,
.backtest-scenario-badge {
    background: #ecfdf5;
    border-radius: 999px;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
}

.backtest-rec-investigate {
    background: #fff7ed;
    border-radius: 999px;
    color: #9a3412;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
}

.backtest-rec-neutral {
    background: #e2e8f0;
    border-radius: 999px;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
}

.backtest-comparison-side,
.backtest-comparison-delta {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: grid;
    gap: 4px;
    padding: 10px;
}

.backtest-comparison-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.backtest-session-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.backtest-session-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.backtest-session-positive {
    border-left: 4px solid #16a34a;
}

.backtest-session-negative {
    border-left: 4px solid #dc2626;
}

.backtest-session-header {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
}

.backtest-session-title {
    font-size: 18px;
    margin: 0;
}

.backtest-session-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.backtest-session-pnl {
    font-size: 22px;
    font-weight: 800;
}

.backtest-session-meta {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.backtest-session-meta strong {
    display: block;
}

.backtest-expand-button {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
}

.backtest-session-detail {
    border-top: 1px solid #e2e8f0;
    display: grid;
    gap: 12px;
    padding-top: 12px;
}

.backtest-session-detail h4 {
    font-size: 13px;
    margin: 0;
}

.backtest-detail-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.backtest-detail-chip {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: grid;
    gap: 2px;
    min-width: 120px;
    padding: 8px 10px;
}

.backtest-trades-list {
    display: grid;
    gap: 6px;
}

.backtest-trade-row {
    align-items: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    padding: 8px 10px;
}

.backtest-export-hint code {
    font-size: 12px;
}

@media (max-width: 1100px) {
    .backtest-summary-grid,
    .backtest-charts-grid {
        grid-template-columns: 1fr;
    }
}

.reports-center-page {
    display: grid;
    gap: 20px;
}

.reports-center-checked-at {
    margin: 0;
}

.reports-center-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    display: grid;
    gap: 14px;
    padding: 18px;
}

.report-export-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.report-export-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.report-export-card-observation {
    border-left: 4px solid #2563eb;
}

.report-export-card-backtestcomparison {
    border-left: 4px solid #7c3aed;
}

.report-export-card-backtestmatrix {
    border-left: 4px solid #0f766e;
}

.report-export-card-header {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.report-export-card-header h3 {
    font-size: 16px;
    margin: 0;
}

.report-export-file-count {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    white-space: nowrap;
}

.report-export-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.report-export-tag {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
}

.report-export-preview-summary {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    margin: 0;
    padding: 10px 12px;
}

.report-export-files {
    display: grid;
    gap: 10px;
}

.report-export-file-row {
    align-items: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    padding: 10px 12px;
}

.report-export-file-meta {
    display: grid;
    gap: 2px;
}

.report-export-download-button {
    background: #0f172a;
    border-radius: 8px;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    text-decoration: none;
}

.report-export-download-button:hover {
    background: #1e293b;
}

.report-export-preview-lines {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 11px;
    margin: 0;
    overflow-x: auto;
    padding: 8px 10px;
    white-space: pre-wrap;
}

.report-export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.report-export-action-link {
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.report-export-action-link:hover {
    text-decoration: underline;
}

.home-page {
    display: grid;
    gap: 20px;
}

.home-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #0f766e 100%);
    border-radius: 16px;
    color: white;
    display: grid;
    gap: 16px;
    padding: 24px;
}

.home-hero h1 {
    font-size: 32px;
    margin: 0;
}

.home-hero-subtitle {
    color: #cbd5e1;
    margin: 6px 0 0;
}

.home-hero-notice {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    font-size: 14px;
    padding: 12px 14px;
}

.home-status-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-status-chip {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    display: grid;
    gap: 2px;
    min-width: 140px;
    padding: 8px 12px;
}

.home-status-chip .muted {
    color: #cbd5e1;
    font-size: 11px;
}

.home-status-chip strong {
    font-size: 13px;
}

.home-health-positive {
    color: #86efac;
}

.home-health-warning {
    color: #fdba74;
}

.home-health-negative {
    color: #fca5a5;
}

.home-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    display: grid;
    gap: 14px;
    padding: 18px;
}

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

.home-recommendations {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.home-recommendation {
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: inherit;
    display: flex;
    gap: 12px;
    padding: 14px;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.home-recommendation:hover {
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.home-recommendation strong {
    display: block;
    font-size: 14px;
}

.home-recommendation p {
    color: #64748b;
    font-size: 13px;
    margin: 4px 0 0;
}

.home-recommendation-icon {
    font-size: 18px;
    line-height: 1;
    margin-top: 2px;
}

.home-recommendation-warning {
    border-left: 4px solid #f59e0b;
}

.home-recommendation-positive {
    border-left: 4px solid #16a34a;
}

.home-recommendation-neutral {
    border-left: 4px solid #64748b;
}

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

.home-module-card {
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: inherit;
    display: flex;
    gap: 12px;
    min-height: 110px;
    padding: 16px;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-module-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.home-module-icon {
    align-items: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: inline-flex;
    font-size: 18px;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.home-module-body {
    flex: 1;
}

.home-module-body h3 {
    font-size: 16px;
    margin: 0;
}

.home-module-body p {
    color: #64748b;
    font-size: 13px;
    margin: 6px 0 0;
}

.home-module-arrow {
    color: #94a3b8;
    font-size: 18px;
    margin-top: 4px;
}

.home-module-cockpit { border-top: 3px solid #7c3aed; }
.home-module-dashboard { border-top: 3px solid #2563eb; }
.home-module-live { border-top: 3px solid #0ea5e9; }
.home-module-ticker { border-top: 3px solid #14b8a6; }
.home-module-alerts { border-top: 3px solid #f59e0b; }
.home-module-journal { border-top: 3px solid #64748b; }
.home-module-brief { border-top: 3px solid #16a34a; }
.home-module-history { border-top: 3px solid #6366f1; }
.home-module-backtest { border-top: 3px solid #0f766e; }
.home-module-reports { border-top: 3px solid #334155; }

.home-checked-at {
    margin: 0;
}

.home-hero-description {
    color: #e2e8f0;
    font-size: 14px;
    margin: 10px 0 0;
    max-width: 720px;
}

.home-section-compact {
    padding: 14px 18px;
}

.simulation-banner {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #64748b;
    border-radius: 10px;
    color: #334155;
    display: flex;
    font-size: 14px;
    gap: 10px;
    margin-bottom: 1rem;
    padding: 10px 14px;
}

.simulation-banner-icon {
    color: #64748b;
    font-size: 12px;
}

.simulation-banner-cockpit {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 4px solid #94a3b8;
    color: #e2e8f0;
    margin-bottom: 16px;
}

.simulation-banner-cockpit .simulation-banner-icon {
    color: #cbd5e1;
}

.simulation-banner-compact {
    font-size: 13px;
    margin-bottom: 0.75rem;
    padding: 8px 12px;
}

.presentation-mode-badge {
    background: linear-gradient(90deg, #7c3aed, #2563eb);
    border-radius: 999px;
    color: white;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 6px 14px;
    width: fit-content;
}

.product-status-card {
    display: grid;
    gap: 10px;
}

.product-status-title {
    font-size: 14px;
    margin: 0;
}

.product-status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-status-badge {
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
}

.product-status-release {
    background: #ede9fe;
    color: #5b21b6;
}

.product-status-strict {
    background: #ecfdf5;
    color: #166534;
}

.product-status-resr {
    background: #fff7ed;
    color: #9a3412;
}

.product-status-live {
    background: #e0f2fe;
    color: #075985;
}

.product-status-broker {
    background: #f1f5f9;
    color: #475569;
}

.module-readiness-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.module-readiness-row {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
}

.module-readiness-name {
    font-size: 13px;
    font-weight: 600;
}

.readiness-chip {
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
}

.readiness-ready {
    background: #ecfdf5;
    color: #166534;
}

.readiness-readonly {
    background: #e0f2fe;
    color: #075985;
}

.readiness-simulation {
    background: #fef3c7;
    color: #92400e;
}

.readiness-disconnected {
    background: #f1f5f9;
    color: #64748b;
}

.recommended-tour {
    display: grid;
    gap: 10px;
}

.recommended-tour-step {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: inherit;
    display: grid;
    gap: 12px;
    grid-template-columns: auto 1fr auto;
    padding: 12px 14px;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.recommended-tour-step:hover {
    border-color: #94a3b8;
}

.recommended-tour-number {
    align-items: center;
    background: #0f172a;
    border-radius: 999px;
    color: white;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.recommended-tour-copy strong {
    display: block;
    font-size: 14px;
}

.recommended-tour-copy p {
    color: #64748b;
    font-size: 12px;
    margin: 2px 0 0;
}

.recommended-tour-arrow {
    color: #94a3b8;
    font-size: 16px;
}

.home-page-demo .home-checked-at,
.cockpit-page-demo .cockpit-footer {
    display: none;
}

@media print {
    .sidebar,
    .daily-brief-print-hide,
    .alert-action-button,
    .nav-link {
        display: none !important;
    }

    .shell {
        display: block;
    }

    .content {
        margin: 0;
        max-width: none;
        padding: 0;
    }

    .daily-brief-page {
        gap: 12px;
    }

    .daily-brief-section {
        break-inside: avoid;
        box-shadow: none;
        page-break-inside: avoid;
    }

    .daily-brief-print-button {
        display: none !important;
    }

    .chart-card,
    .heatmap-grid,
    .daily-brief-kpi-grid {
        break-inside: avoid;
    }
}

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

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

    .cockpit-main-grid {
        grid-template-columns: 1fr;
    }
}
