/* ═══════════════════════════════════════════════════════════════════════════
   GeoShield — Tactical Command Center Dashboard
   Premium C2 Dark Theme · v5.0
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────────────── */
:root {
    --bg-void:      #06090f;
    --bg-base:      #0d1117;
    --bg-surface:   #161b22;
    --bg-elevated:  #1c2333;
    --bg-hover:     #21262d;

    --border:       #21262d;
    --border-subtle:#30363d;
    --border-glow:  rgba(0, 240, 212, 0.25);

    --text-primary: #e6edf3;
    --text-secondary:#8b949e;
    --text-dim:     #484f58;

    --accent:       #00f0d4;
    --accent-dim:   rgba(0, 240, 212, 0.15);
    --accent-bright:#33ffea;
    --accent-blue:  #58a6ff;

    --success:      #3fb950;
    --warning:      #d29922;
    --danger:       #f85149;
    --ultra:        #bc8cff;

    --radius-sm:    6px;
    --radius:       10px;
    --radius-lg:    16px;

    --font-ui:      'Inter', -apple-system, sans-serif;
    --font-head:    'Outfit', sans-serif;
    --font-mono:    'JetBrains Mono', 'SF Mono', 'Cascadia Code', monospace;

    --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-ui);
    line-height: 1.5;
    height: 100vh;
    display: flex;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ═══════════════════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════════════════ */
.sidebar {
    width: 300px;
    min-width: 300px;
    background: var(--bg-base);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--accent) 0%, #00b4a0 100%);
    border-radius: var(--radius);
    display: flex; justify-content: center; align-items: center;
    font-family: var(--font-mono);
    font-weight: 700; font-size: 1.1rem;
    color: var(--bg-void);
    box-shadow: 0 0 20px rgba(0, 240, 212, 0.3);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 240, 212, 0.3); }
    50% { box-shadow: 0 0 30px rgba(0, 240, 212, 0.5); }
}

.brand-title h1 {
    font-family: var(--font-head);
    font-size: 1.15rem; font-weight: 700;
    letter-spacing: 0.5px;
}
.brand-title p {
    font-size: 0.7rem; color: var(--text-dim);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
}

.nav-section-title {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 12px 12px;
    font-family: var(--font-mono);
}

/* Task Cards in Sidebar */
.task-card {
    padding: 14px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    border: 1px solid transparent;
    margin-bottom: 6px;
    transition: all 0.25s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.task-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.25s;
}

.task-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-subtle);
}

.task-card.active {
    background: var(--accent-dim);
    border-color: var(--border-glow);
}
.task-card.active::before { opacity: 1; }

.task-id {
    font-size: 0.65rem;
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.task-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.task-diff {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 8px;
}

.diff-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.diff-easy     { background: rgba(63,185,80,0.15); color: var(--success); }
.diff-medium   { background: rgba(210,153,34,0.15); color: var(--warning); }
.diff-hard     { background: rgba(248,81,73,0.15); color: var(--danger); }
.diff-ultra    { background: rgba(188,140,255,0.15); color: var(--ultra); }

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-footer .status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.sidebar-footer span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAIN CONTENT AREA
   ═══════════════════════════════════════════════════════════════════════════ */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-void);
}

/* ── Top Bar ───────────────────────────────────────────────────────────── */
.top-bar {
    height: 56px;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    gap: 16px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-indicator {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.8rem; color: var(--text-secondary);
    font-family: var(--font-mono);
}

.status-dot-live {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
    animation: blink 2s ease-in-out infinite;
}

.top-bar-center {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mission-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 14px;
    border-radius: 100px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.mission-status.idle     { background: var(--bg-surface); color: var(--text-dim); border: 1px solid var(--border); }
.mission-status.active   { background: rgba(0,240,212,0.1); color: var(--accent); border: 1px solid var(--border-glow); animation: statusPulse 2s ease-in-out infinite; }
.mission-status.complete { background: rgba(63,185,80,0.1); color: var(--success); border: 1px solid rgba(63,185,80,0.3); }
.mission-status.failed   { background: rgba(248,81,73,0.1); color: var(--danger); border: 1px solid rgba(248,81,73,0.3); }

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,240,212,0); }
    50% { box-shadow: 0 0 0 4px rgba(0,240,212,0.1); }
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.session-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 14px;
    background: var(--bg-surface);
    border-radius: 100px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.clock {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    min-width: 70px;
    text-align: right;
}

.sound-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.sound-toggle:hover { border-color: var(--text-secondary); color: var(--text-secondary); }
.sound-toggle.active { color: var(--accent); border-color: var(--border-glow); }

/* ═══════════════════════════════════════════════════════════════════════════
   WORKSPACE (3-column grid)
   ═══════════════════════════════════════════════════════════════════════════ */
.workspace {
    display: grid;
    grid-template-columns: 1fr 380px;
    flex: 1;
    overflow: hidden;
}

/* ── Observation Panel (Left) ──────────────────────────────────────────── */
.observation-column {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.observation-panel {
    flex: 1;
    padding: 28px;
    overflow-y: auto;
}

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

.panel-title {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-title .icon {
    color: var(--accent);
    font-size: 1rem;
}

.meta-badge {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.steps-badge {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    background: rgba(210,153,34,0.1);
    border: 1px solid rgba(210,153,34,0.3);
    color: var(--warning);
    font-weight: 600;
}

/* Data Cards */
.data-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 16px;
    transition: border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.data-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.data-card:hover { border-color: var(--border-subtle); }
.data-card:hover::before { opacity: 1; }

.data-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: var(--font-mono);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.data-content {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.7;
    font-family: var(--font-ui);
}

.data-content pre {
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    overflow-x: auto;
    margin-top: 8px;
}

/* Sector Cards (Task 3) */
.sector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.sector-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    transition: all 0.3s var(--ease-out);
    cursor: default;
}

.sector-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.sector-id {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.sector-summary {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.sector-anomaly {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
    margin-bottom: 8px;
}

.confidence-bar {
    height: 4px;
    background: var(--bg-base);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.confidence-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s var(--ease-out);
    background: linear-gradient(90deg, var(--accent), var(--accent-bright));
}

.confidence-fill.low { background: var(--success); }
.confidence-fill.med { background: var(--warning); }
.confidence-fill.high { background: var(--danger); }

.confidence-label {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
    text-align: right;
}

/* Empty State */
.empty-state {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-dim);
    text-align: center;
    padding: 60px 40px;
}

.empty-state svg { margin-bottom: 20px; opacity: 0.3; }
.empty-state p { font-size: 0.9rem; max-width: 300px; }

/* ── Terminal Log ──────────────────────────────────────────────────────── */
.terminal-panel {
    height: 180px;
    min-height: 120px;
    background: var(--bg-base);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex; align-items: center; gap: 6px;
}

.terminal-title .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    animation: blink 1.5s ease-in-out infinite;
}

.terminal-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.8;
}

.log-entry {
    display: flex;
    gap: 10px;
    animation: logSlide 0.3s var(--ease-out);
}

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

.log-time { color: var(--text-dim); min-width: 75px; }
.log-msg  { color: var(--text-secondary); }
.log-msg.info    { color: var(--accent); }
.log-msg.success { color: var(--success); }
.log-msg.warn    { color: var(--warning); }
.log-msg.error   { color: var(--danger); }

/* ═══════════════════════════════════════════════════════════════════════════
   COMMAND PANEL (Right)
   ═══════════════════════════════════════════════════════════════════════════ */
.command-panel {
    background: var(--bg-base);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Score Gauge */
.score-section {
    padding: 28px 28px 24px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.score-gauge {
    position: relative;
    width: 160px; height: 160px;
    margin: 0 auto 16px;
}

.score-gauge svg {
    width: 100%; height: 100%;
    transform: rotate(-90deg);
}

.gauge-track {
    fill: none;
    stroke: var(--border);
    stroke-width: 8;
}

.gauge-fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 440;
    stroke-dashoffset: 440;
    transition: stroke-dashoffset 1s var(--ease-out), stroke 0.5s;
    filter: drop-shadow(0 0 6px rgba(0, 240, 212, 0.4));
}

.gauge-fill.low    { stroke: var(--danger); filter: drop-shadow(0 0 6px rgba(248,81,73,0.4)); }
.gauge-fill.mid    { stroke: var(--warning); filter: drop-shadow(0 0 6px rgba(210,153,34,0.4)); }
.gauge-fill.high   { stroke: var(--success); filter: drop-shadow(0 0 6px rgba(63,185,80,0.4)); }

.score-number {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.score-label {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Command Form */
.command-section {
    padding: 24px 28px;
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-mono);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: var(--bg-void);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.25s var(--ease-out);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-control:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

textarea.form-control {
    min-height: 90px;
    resize: vertical;
    line-height: 1.6;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--accent), #00b4a0);
    color: var(--bg-void);
    border: none;
    padding: 13px;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 240, 212, 0.3);
}

.btn-submit:hover:not(:disabled)::before {
    width: 300px; height: 300px;
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit:disabled {
    background: var(--bg-hover);
    color: var(--text-dim);
    cursor: not-allowed;
    box-shadow: none;
}

/* Feedback Card */
.feedback-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-top: 20px;
    animation: feedbackIn 0.4s var(--ease-spring);
}

@keyframes feedbackIn {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.feedback-title {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-mono);
    margin-bottom: 10px;
}

.feedback-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: var(--bg-base);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-family: var(--font-mono);
}

.breakdown-item .label { color: var(--text-dim); }
.breakdown-item .value { color: var(--accent); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(6, 9, 15, 0.85);
    backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000;
    animation: modalBgIn 0.3s;
}

@keyframes modalBgIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-overlay.hidden { display: none; }

.modal-dialog {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,240,212,0.1);
    animation: modalIn 0.4s var(--ease-spring);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-icon {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.8rem;
}

.modal-icon.success { background: rgba(63,185,80,0.15); }
.modal-icon.failure { background: rgba(248,81,73,0.15); }

.modal-dialog h2 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-dialog .score-display {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 16px 0;
    letter-spacing: -1px;
}

.modal-dialog p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 0.9rem;
}

.modal-dialog .btn-submit {
    max-width: 260px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   UTILITY & ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Scanline overlay for terminal */
.scanline {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: rgba(0, 240, 212, 0.08);
    animation: scanDown 4s linear infinite;
    pointer-events: none;
}

@keyframes scanDown {
    0%   { top: 0%; }
    100% { top: 100%; }
}

/* Shine effect on data cards */
@keyframes cardShine {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Responsive */
@media (max-width: 1200px) {
    .workspace {
        grid-template-columns: 1fr 340px;
    }
    .sector-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .sidebar { width: 260px; min-width: 260px; }
    .workspace { grid-template-columns: 1fr; }
    .command-panel { border-left: none; border-top: 1px solid var(--border); }
}
