:root {
    /* Color Palette - Default TradingView Neon Glass */
    --bg-dark: #0a0c10;
    --bg-card: rgba(18, 22, 28, 0.75);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    
    /* Neon Accents */
    --neon-blue: #38bdf8;
    --neon-blue-glow: rgba(56, 189, 248, 0.4);
    --neon-green: #4ade80;
    --neon-green-glow: rgba(74, 222, 128, 0.4);
    --neon-red: #f87171;
    --neon-red-glow: rgba(248, 113, 113, 0.4);
    --neon-purple: #c084fc;
    --accent-gold: #fbbf24;
    
    /* Spacing Tokens */
    --spacing-xxs: 2px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 24px;
    --spacing-xxl: 32px;

    /* Typography Tokens */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-size-xs: 10px;
    --font-size-sm: 12px;
    --font-size-md: 13px;
    --font-size-lg: 15px;
    --font-size-xl: 18px;
    --font-size-title: 22px;

    /* Radius Tokens */
    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --radius-full: 9999px;

    /* Elevation & Shadow Tokens */
    --elevation-flat: none;
    --elevation-subtle: 0 2px 8px rgba(0, 0, 0, 0.25);
    --elevation-card: 0 8px 32px rgba(0, 0, 0, 0.35);
    --elevation-modal: 0 16px 48px rgba(0, 0, 0, 0.65);

    /* Motion & Animation Tokens */
    --motion-fast: 100ms;
    --motion-normal: 200ms;
    --motion-slow: 350ms;
    --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);

    /* Density Tokens */
    --density-padding: 8px 12px;
    --density-row-height: 38px;
}

/* =========================================================
   ENTERPRISE THEMES OVERRIDES
   ========================================================= */

/* 1. Bloomberg Terminal Theme (High Contrast Amber / Solid Black) */
[data-theme="bloomberg"] {
    --bg-dark: #000000;
    --bg-card: #0d0d0d;
    --border-glass: #333333;
    --text-main: #ffb000;
    --text-muted: #cc8800;
    --neon-blue: #00e5ff;
    --neon-blue-glow: rgba(0, 229, 255, 0.4);
    --neon-green: #00ff66;
    --neon-green-glow: rgba(0, 255, 102, 0.4);
    --neon-red: #ff3333;
    --neon-red-glow: rgba(255, 51, 51, 0.4);
    --neon-purple: #ff00ff;
    --font-sans: 'JetBrains Mono', monospace;
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --elevation-card: none;
}

/* 2. Refinitiv Workspace Theme (Slate Blue / Dark Metallic) */
[data-theme="refinitiv"] {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --border-glass: #334155;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --neon-blue: #60a5fa;
    --neon-blue-glow: rgba(96, 165, 250, 0.3);
    --neon-green: #34d399;
    --neon-green-glow: rgba(52, 211, 153, 0.3);
    --neon-red: #f87171;
    --neon-red-glow: rgba(248, 113, 113, 0.3);
    --neon-purple: #a78bfa;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* 3. Minimal Dark Theme (Monochrome Executive) */
[data-theme="minimal"] {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --border-glass: #2a2a2a;
    --text-main: #ffffff;
    --text-muted: #888888;
    --neon-blue: #ffffff;
    --neon-blue-glow: rgba(255, 255, 255, 0.2);
    --neon-green: #40c057;
    --neon-green-glow: rgba(64, 192, 87, 0.3);
    --neon-red: #fa5252;
    --neon-red-glow: rgba(250, 82, 82, 0.3);
    --neon-purple: #e0e0e0;
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(192, 132, 252, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
}

.blur-hidden {
    filter: blur(10px);
    opacity: 0.3;
    pointer-events: none;
    transition: all 0.5s ease;
}

.blur-hidden.active {
    filter: blur(0);
    opacity: 1;
    pointer-events: all;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    /* Modallar en üst etkileşim katmanıdır. 1000'dı; gelişmiş menü (1200) ve
       scrim'i (1100) sonradan geldi ve admin paneli menüye taşınınca oradan
       açılan HER modal scrim'in ALTINDA kaldı — production'da ölçüldü:
       "Görüntüle" modalı tam ekran çiziliyor, elementFromPoint scrim'i
       görüyordu. Kullanıcının gördüğü "buton çalışmıyor"du. */
    z-index: 1300;
    transition: opacity 0.4s ease;
}

.modal-content {
    padding: 2.5rem;
    border-radius: 16px;
    width: min(420px, calc(100vw - 2rem));
    text-align: center;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-content h2 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.modal-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
input, select {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-glass);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: var(--font-sans);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, select:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue-glow);
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.primary-btn {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: #000;
}
.primary-btn:hover {
    box-shadow: 0 0 20px var(--neon-blue-glow);
    transform: translateY(-2px);
}

.outline-btn {
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
}
.outline-btn:hover {
    background: var(--neon-blue-glow);
}

.action-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    cursor: pointer;
    border: none;
}
.action-btn.buy:hover { background: var(--neon-green); color: #000; }
.action-btn.sell:hover { background: var(--neon-red); color: #000; }
.action-btn.explain { background: rgba(56, 189, 248, 0.15); color: var(--neon-blue); border: 1px solid rgba(56, 189, 248, 0.3); }
.action-btn.explain:hover { background: var(--neon-blue); color: #000; }

.w-100 { width: 100%; }

/* Layout & Header */
.dashboard-container {
    padding: 1.5rem;
    max-width: 1650px;
    margin: 0 auto;
}

.glass-header .actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
}

.glass-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.neon-text {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue-glow);
}

.badge-widget-tag {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    background: rgba(192, 132, 252, 0.15);
    border: 1px solid var(--neon-purple);
    color: var(--neon-purple);
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.system-health-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.health-chip {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    background: rgba(74, 222, 128, 0.1);
    color: var(--neon-green);
    border: 1px solid rgba(74, 222, 128, 0.25);
    transition: all 0.2s ease-in-out;
}

.health-chip.online {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.25);
}

.health-chip.warning {
    background: rgba(250, 204, 21, 0.1);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.health-chip.offline {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.health-chip.failed {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

/* ========================================================= */
/* MODULAR WIDGET GRID LAYOUT */
/* ========================================================= */

.widget-grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
}

.widget-card {
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.widget-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 35px 0 rgba(0, 0, 0, 0.45);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.widget-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.5px;
}

.widget-icon {
    font-size: 1.1rem;
}

.widget-badge {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.neon-blue-badge {
    background: rgba(56, 189, 248, 0.12);
    color: var(--neon-blue);
    border-color: rgba(56, 189, 248, 0.3);
}

.neon-green-badge {
    background: rgba(74, 222, 128, 0.12);
    color: var(--neon-green);
    border-color: rgba(74, 222, 128, 0.3);
}

.widget-search-input {
    width: 180px;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 6px;
}

.widget-body {
    flex: 1;
}

/* WIDGET GRID SPANS */
#widget-portfolio { grid-column: span 6; }
#widget-risk { grid-column: span 6; }
#widget-radar { grid-column: span 4; }
#widget-signals { grid-column: span 8; }
#widget-positions { grid-column: 1 / -1 !important; width: 100% !important; }
#widget-news { grid-column: span 6; }
#widget-market { grid-column: span 6; }
#widget-orders { grid-column: span 6; }
#widget-events { grid-column: span 6; }
#widget-desk { grid-column: span 12; }

/* Stats Grid inside Portfolio Widget */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.stat-box {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: transform 0.2s ease;
}
.stat-box:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.02);
}
.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-mono);
}
.neon-blue { color: var(--neon-blue); text-shadow: 0 0 10px var(--neon-blue-glow); }

/* RISK MONITOR WIDGET */
.risk-widget-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.risk-metric-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.risk-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.risk-bar-wrap {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.risk-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), #facc15, var(--neon-red));
    transition: width 0.4s ease;
}

.risk-bar-fill.cash {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
}

.sector-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.sector-tag {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    color: var(--neon-blue);
}

/* EXECUTION MONITOR WIDGET */
.execution-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1rem;
}

.exec-flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.step-label {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.exec-flow-step.done .step-num {
    background: rgba(56, 189, 248, 0.2);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.exec-flow-step.active .step-num {
    background: rgba(74, 222, 128, 0.25);
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 12px var(--neon-green-glow);
}

.exec-flow-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 0.5rem;
    margin-bottom: 1.2rem;
}

/* FACTOR HEATMAP PILLS IN SIGNALS TABLE */
.factor-pill-wrap {
    display: flex;
    gap: 0.3rem;
}

.factor-pill {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.factor-pill.pos { color: var(--neon-green); border-color: rgba(74, 222, 128, 0.2); }
.factor-pill.neg { color: var(--neon-red); border-color: rgba(248, 113, 113, 0.2); }

/* RADAR CHART WIDGET */
.radar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 220px;
}

.radar-chart-wrap {
    width: 100%;
    max-width: 260px;
    height: 220px;
    margin: 0 auto;
}

/* EVENTBUS TERMINAL STREAM WIDGET */
.event-terminal-body {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.event-line {
    line-height: 1.4;
    color: var(--text-muted);
    word-break: break-all;
}
.event-line.sys { color: var(--neon-purple); }
.event-line.signal { color: var(--neon-green); }
.event-line.market { color: var(--neon-blue); }
.event-line.order { color: #facc15; }

/* COMPANY NEWS WIDGET */
.news-body {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding-right: 0.35rem;
}

.news-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.news-item:last-child {
    border-bottom: none;
}

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

.news-symbol {
    font-weight: 700;
    font-size: 0.85rem;
    color: #ffffff;
    font-family: var(--font-mono);
}

.news-headline {
    font-size: 0.825rem;
    color: var(--text-main);
    line-height: 1.35;
}

.news-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.15rem;
}

.news-time {
    font-size: 0.725rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.news-impact-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.news-impact-badge.impact-bullish {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.25);
}

.news-impact-badge.impact-bearish {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.25);
}

.news-impact-badge.impact-neutral {
    background: rgba(250, 204, 21, 0.12);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.25);
}

.news-confidence {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: auto;
}

.news-empty {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 1.5rem;
}

/* Tables */
.table-container {
    overflow-x: auto;
    max-height: 320px;
    overflow-y: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.data-table th {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 2;
}

.data-table td {
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.data-table tbody tr {
    transition: background 0.2s ease;
}

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

.empty-msg {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 1.5rem !important;
}

.text-green { color: var(--neon-green); }
.text-red { color: var(--neon-red); }

/* POSITIONS EXPANDED WIDE WIDGET STYLES */
.positions-metrics-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 3rem !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    padding: 0.85rem 1.5rem !important;
    margin-bottom: 1.25rem !important;
    align-items: center !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    width: 100% !important;
}

.pos-metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pos-metric-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.pos-metric-val {
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.position-wide-table th, .position-wide-table td {
    padding: 0.85rem 1rem;
    white-space: nowrap;
}

.pl-pill {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    display: inline-block;
}

.pl-pill.pos {
    background: rgba(74, 222, 128, 0.12);
    color: var(--neon-green);
    border: 1px solid rgba(74, 222, 128, 0.3);
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.15);
}

.pl-pill.neg {
    background: rgba(248, 113, 113, 0.12);
    color: var(--neon-red);
    border: 1px solid rgba(248, 113, 113, 0.3);
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.15);
}

/* AI EXPLAINABILITY MODAL */
.ai-explain-box {
    width: min(580px, calc(100vw - 2rem));
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
}

.modal-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 0.75rem;
}

.explain-score-badge {
    font-size: 1.4rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--neon-blue);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid var(--neon-blue);
    padding: 0.35rem 0.7rem;
    border-radius: 10px;
    box-shadow: 0 0 12px var(--neon-blue-glow);
}

.explain-conf-badge {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--neon-green);
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid var(--neon-green);
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
}

.human-insights-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.human-insight-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--text-main);
}

.human-insight-chip.pos { border-left: 3px solid var(--neon-green); }
.human-insight-chip.neg { border-left: 3px solid var(--neon-red); }
.human-insight-chip.warn { border-left: 3px solid #facc15; }

.human-summary-card {
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-main);
}

.confidence-drivers-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    font-size: 0.78rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.conf-driver-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
}

.conf-driver-item.boost { color: var(--neon-green); }
.conf-driver-item.penalty { color: var(--neon-red); }

.explain-section h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.breakdown-item {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.breakdown-val.pos { color: var(--neon-green); }
.breakdown-val.neg { color: var(--neon-red); }

.reasons-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.reasons-list li {
    font-size: 0.8rem;
    color: var(--text-main);
    background: rgba(255,255,255,0.03);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border-left: 2px solid var(--neon-purple);
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.term-box {
    background: rgba(0,0,0,0.3);
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
}

.term-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.term-val {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    font-weight: 700;
}

/* AI CASH RAISING MODAL STYLES */
.cash-raise-box {
    width: min(680px, calc(100vw - 2rem));
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
}

/* RESPONSIVE LAYOUT */
@media (max-width: 1200px) {
    #widget-portfolio, #widget-risk, #widget-radar, #widget-signals, #widget-execution, #widget-positions, #widget-events, #widget-news, #widget-market, #widget-orders, #widget-desk {
        grid-column: span 12;
    }
}

/* =========================================================================
   GLOBAL SYMBOL SEARCH  (Sprint 17B — Step 1)

   The only surface from which an arbitrary symbol reaches the decision panel.
   Four semantic colours and no more: measured up, measured down, neutral, and
   unmeasured. An unread price is grey with a dashed underline, never a dash
   that could be mistaken for a quote.
   ========================================================================= */

.symbol-search {
    position: relative;
    margin-bottom: 0.85rem;
}

.symbol-search__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.symbol-search__field {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 0 0.85rem;
    transition: border-color 0.15s ease;
}

.symbol-search__field:focus-within {
    border-color: var(--text-muted);
}

.symbol-search__icon {
    font-size: 0.9rem;
    opacity: 0.75;
    flex: 0 0 auto;
}

.symbol-search__input {
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: none;
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.62rem 0;
}

.symbol-search__input::placeholder {
    color: var(--text-muted);
    font-weight: 500;
}

.symbol-search__clear {
    flex: 0 0 auto;
    background: transparent;
    border: 0;
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.15rem;
}

.symbol-search__clear:hover { color: var(--text-main); }

.symbol-search__results {
    position: absolute;
    z-index: 40;
    top: calc(100% + 0.3rem);
    left: 0;
    right: 0;
    max-height: 20rem;
    overflow-y: auto;
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.symbol-search__results[hidden] { display: none; }

.symbol-search__state {
    padding: 0.8rem 0.95rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.symbol-search__row {
    display: grid;
    grid-template-columns: 5.5rem 1fr auto;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.95rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-glass);
}

.symbol-search__row:last-child { border-bottom: 0; }

.symbol-search__row:hover,
.symbol-search__row.is-active {
    background: rgba(255, 255, 255, 0.06);
}

.symbol-search__ticker {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-main);
    letter-spacing: 0.02em;
}

.symbol-search__name {
    font-size: 0.78rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.symbol-search__quote {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    white-space: nowrap;
}

.symbol-search__price {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-main);
}

.symbol-search__change {
    font-size: 0.78rem;
    font-weight: 700;
}

.symbol-search__change.is-up    { color: var(--neon-green); }
.symbol-search__change.is-down  { color: var(--neon-red); }
.symbol-search__change.is-flat  { color: var(--text-muted); }

/* Unmeasured is grey and marked. Never green, never red. */
.symbol-search__change.is-unknown,
.symbol-search__price.is-unknown {
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px dashed var(--text-muted);
    cursor: help;
}

@media (max-width: 640px) {
    .symbol-search__row { grid-template-columns: 4.5rem 1fr; }
    .symbol-search__name { display: none; }
}

/* =========================================================================
   DASHBOARD SECTION FOLDS  (Information Density / Phase 1)

   Fifteen secondary panels — engine ops, diagnostics, advanced analysis —
   measured 12,857px of a 15,922px page while the four questions a user
   opens the dashboard with (today / portfolio / positions / opportunities)
   lived in the remaining fifth. Same content, same order, same data: the
   secondary panels are now closed by default and one click away.
   ========================================================================= */

.dash-fold {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    margin-bottom: 0.85rem;
}

.dash-fold > summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.dash-fold > summary::-webkit-details-marker { display: none; }

.dash-fold > summary::before {
    content: '▸';
    font-size: 0.8rem;
    transition: transform 0.15s ease;
}

.dash-fold[open] > summary::before { transform: rotate(90deg); }
.dash-fold > summary:hover { color: var(--text-main); }

.dash-fold[open] {
    background: transparent;
}

.dash-fold > section {
    margin-top: 0.25rem;
}

/* ==========================================================================
   Advanced analysis drawer (Sprint: dashboard UX refactor)

   The main column answers portfolio questions; research answers belong behind
   a menu. The drawer holds the moved panels themselves, so nothing is
   duplicated and nothing renders twice.
   ========================================================================== */
.advanced-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted, #94a3b8);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}
.advanced-menu-toggle:hover {
    color: #fff;
    border-color: rgba(0, 230, 118, 0.45);
}
.advanced-menu-icon { font-size: 1rem; line-height: 1; }

.advanced-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(560px, 96vw);
    height: 100vh;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.99), rgba(15, 23, 42, 0.99));
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.55);
    transform: translateX(100%);
    transition: transform 0.22s ease;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Closed means gone, not parked off-screen. A fixed panel sitting past the
       right edge still occupies layout and still counts towards the document's
       scroll width — which is horizontal overflow on every page that has one.
       visibility alone does not help; the box is still there. */
    display: none;
}
.advanced-drawer.is-open {
    display: flex;
    transform: translateX(0);
}

.advanced-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.advanced-drawer__title {
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.4px;
}
.advanced-drawer__close {
    background: none;
    border: none;
    color: var(--text-muted, #94a3b8);
    font-size: 1rem;
    cursor: pointer;
}
.advanced-drawer__close:hover { color: #fff; }

.advanced-drawer__nav {
    display: block;
    padding: 0.8rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 42vh;
    overflow-y: auto;
}
.advanced-drawer__group {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted, #94a3b8);
    margin: 0.75rem 0 0.35rem;
}
.advanced-drawer__group:first-child { margin-top: 0; }
.advanced-drawer__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.advanced-drawer__link {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border-radius: 20px;
    padding: 0.3rem 0.7rem;
    font-size: 0.76rem;
    cursor: pointer;
}
.advanced-drawer__link:hover {
    color: #fff;
    border-color: rgba(0, 230, 118, 0.45);
}

.advanced-drawer__panels {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.9rem 1.1rem 2rem;
}
/* Panels sit in a narrow column here, so the grid spans they carry for the
   main layout must not force horizontal scrolling. */
.advanced-drawer__panels > * {
    grid-column: auto !important;
    width: 100% !important;
    max-width: 100%;
    margin-bottom: 0.8rem;
}

/* --- Ana ekran cockpit'i ------------------------------------------------
   Ana kolonda duran tek blok, ama boş bir kart değil: motor durumu, portföy
   özeti, açık pozisyonlar, günün hareketleri ve AI taramasının önerileri.
   Ayrıntılı analiz hamburger menüsünde kalır. Renkler ve tipografi mevcut
   tasarım dilinden; yeni bir palet tanımlanmıyor. */
.cockpit {
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    padding: 1.15rem 1.4rem;
}

/* 1. motor */
.cockpit__head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cockpit__title {
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: 1.2px;
    color: #fff;
}
.cockpit__pill {
    border: 1px solid;
    border-radius: 20px;
    padding: 0.22rem 0.75rem;
    font-weight: 800;
    font-size: 0.78rem;
}
.cockpit__mode {
    border-radius: 6px;
    padding: 0.18rem 0.55rem;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.6px;
}
/* PAPER güvenli hâl, sakin renkte. Başka bir sağlayıcı görünür biçimde
   ayrışmalı — gerçek emir gönderen bir moda kazayla geçildiğinde bunun
   ekrandan anlaşılması gerekiyor. */
.cockpit__mode.is-paper {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}
.cockpit__mode.is-other {
    background: rgba(255, 107, 107, 0.14);
    border: 1px solid rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
}
.cockpit__more {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    border-radius: 8px;
    padding: 0.3rem 0.7rem;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
}
.cockpit__more:hover {
    color: #fff;
    border-color: rgba(0, 230, 118, 0.45);
}

/* 1b. motor gerçekleri ve kontrolleri */
.cockpit__engine {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cockpit__engine-facts {
    display: flex;
    gap: 1.1rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
}
.cockpit__engine-facts strong { color: #cbd5e1; }
.cockpit__engine-ctl { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.cockpit__ctl {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    border-radius: 8px;
    padding: 0.32rem 0.7rem;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
    min-height: 32px;
}
.cockpit__ctl:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.cockpit__ctl.is-go {
    border-color: rgba(0, 230, 118, 0.45);
    color: #00e676;
}
.cockpit__ctl.is-stop {
    border-color: rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
}

/* 2. portföy özeti */
.cockpit__summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.9rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cockpit__label {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.7px;
    color: var(--text-muted, #94a3b8);
}
.cockpit__value {
    font-size: 1.32rem;
    font-weight: 800;
    margin-top: 2px;
    line-height: 1.15;
}
.cockpit__sub {
    font-size: 0.73rem;
    color: var(--text-muted, #94a3b8);
    margin-top: 1px;
}

/* 3-5. bölümler */
.cockpit__block {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cockpit__block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.cockpit__block-title {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.9px;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 0.55rem;
}
.cockpit__empty {
    color: #64748b;
    font-size: 0.85rem;
    padding: 0.35rem 0;
}
.cockpit__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}
.cockpit__table th {
    text-align: left;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--text-muted, #94a3b8);
    padding: 0 0.5rem 0.35rem 0;
    white-space: nowrap;
}
.cockpit__table td {
    padding: 0.32rem 0.5rem 0.32rem 0;
    color: #cbd5e1;
    white-space: nowrap;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.cockpit__table th:not(:first-child),
.cockpit__table td:not(:first-child) { text-align: right; }
.cockpit__table th:last-child,
.cockpit__table td:last-child { text-align: right; }
.cockpit__sym {
    font-weight: 800;
    color: #fff !important;
}
/* Geniş tablo mobilde kırpılmaz, kaydırılır.
   Pozisyon tablosu on üç kolona çıktı; dar ekranda kolonu gizlemek ya da
   satırı katlamak, çözmeye çalıştığımız "veri ekranda yok" sorununun başka
   bir biçimi olurdu. Yatay kaydırma veriyi ekranda tutar. */
.cockpit__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.cockpit__table--wide {
    min-width: 760px;
}
.cockpit__dec {
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    color: var(--text-muted, #94a3b8) !important;
}

.cockpit__more-note {
    font-size: 0.74rem;
    color: var(--text-muted, #94a3b8);
    margin-top: 0.4rem;
}
.cockpit__act-why {
    font-size: 0.74rem;
    color: var(--text-muted, #94a3b8);
    margin: 0 0 0.45rem 0;
    padding-left: 0.2rem;
    line-height: 1.35;
}
.cockpit__act-scope {
    display: inline-block;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    padding: 0.05rem 0.35rem;
    margin-right: 0.4rem;
}

.cockpit__act-metrics {
    display: block;
    margin-top: 0.15rem;
    font-family: var(--font-mono, monospace);
    font-size: 0.68rem;
    letter-spacing: 0.3px;
    color: #64748b;
}

.cockpit__manual {
    font-size: 0.72rem;
    color: var(--text-muted, #94a3b8);
    margin-top: 0.45rem;
}

/* Ham AI sinyali: ikincil teknik bilgi. Kullanıcı kararı DEĞİL, bu yüzden
   kararın yanında sönük ve küçük durur — aynı satırda iki tane "ana karar"
   görünmesi, EUPWR'de ölçülen çelişkinin ta kendisiydi. */
.cockpit__ai-note {
    font-size: 0.64rem;
    color: var(--text-muted, #94a3b8) !important;
    margin-top: 2px;
    letter-spacing: 0.2px;
}

/* satır işlem düğmeleri */
.cockpit__acts { display: inline-flex; gap: 0.25rem; }
.cockpit__btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    border-radius: 6px;
    padding: 0.2rem 0.45rem;
    font-size: 0.68rem;
    font-weight: 800;
    cursor: pointer;
    line-height: 1.4;
}
.cockpit__btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.32); }
.cockpit__btn.is-buy { border-color: rgba(0, 230, 118, 0.4); color: #00e676; }
.cockpit__btn.is-sell { border-color: rgba(255, 107, 107, 0.42); color: #ff6b6b; }

/* 6. piyasa taraması araması */
.cockpit__search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}
.cockpit__search-input {
    flex: 1 1 220px;
    min-width: 0;
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 8px;
    padding: 0.4rem 0.65rem;
    font-size: 0.82rem;
}
.cockpit__search-input:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.5);
}
.cockpit__search-clear {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted, #94a3b8);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.72rem;
    cursor: pointer;
}
.cockpit__search-note {
    font-size: 0.72rem;
    color: var(--text-muted, #94a3b8);
}
.cockpit__select {
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    border-radius: 8px;
    padding: 0.38rem 0.5rem;
    font-size: 0.78rem;
    cursor: pointer;
    max-width: 100%;
}
.cockpit__select:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.5);
}

/* sıralanabilir sütun başlıkları */
.cockpit__table th.cockpit__th-sort {
    cursor: pointer;
    user-select: none;
}
.cockpit__table th.cockpit__th-sort:hover { color: #cbd5e1; }
.cockpit__table th.cockpit__th-sort.is-active { color: #38bdf8; }

/* 4. aktivite satırları */
.cockpit__act {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.26rem 0;
    font-size: 0.86rem;
}
.cockpit__act-time {
    color: var(--text-muted, #94a3b8);
    font-family: var(--font-mono, monospace);
    font-size: 0.8rem;
    min-width: 64px;
}
.cockpit__act-kind {
    font-weight: 800;
    min-width: 58px;
}
.cockpit__act-sym {
    font-weight: 700;
    color: #fff;
}
.cockpit__act-qty {
    color: var(--text-muted, #94a3b8);
    font-size: 0.8rem;
    margin-left: auto;
}

/* Dar ekran: tablolar kendi içinde kaysın, sayfa yana kaymasın. */
@media (max-width: 640px) {
    .cockpit { padding: 0.95rem 1rem; }
    .cockpit__value { font-size: 1.15rem; }
    .cockpit__summary { grid-template-columns: repeat(2, 1fr); }
    .cockpit__block { overflow-x: auto; }
    .cockpit__table { min-width: 320px; }
}

.advanced-drawer__scrim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
}
