/* ==========================================================================
   LKPR PRM DISPATCH SIMULATOR - STYLE.CSS (v1813 - MOBILE & COMPLIANCE READY)
   ========================================================================== */

:root {
    --bg-dark: #070d18;
    --bg-panel: #0f172a;
    --bg-card: #131c31;
    --bg-card-hover: #1e293b;
    --border-subtle: #1e293b;
    --border-focus: #38bdf8;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --prg-orange: #f97316;
    --prg-blue: #0284c7;
    --prg-green: #22c55e;
    --prg-yellow: #eab308;
    --prg-red: #ef4444;
    --prg-purple: #a855f7;
    --prg-cyan: #06b6d4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

/* Zákaz rušivého blikání a cukání v celém UI */
*,
*::before,
*::after {
    animation-name: none !important;
    transition: none !important;
}

.hidden {
    display: none !important;
    pointer-events: none !important;
}

html, body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 11.5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    user-select: none;
}

button {
    cursor: pointer !important;
    pointer-events: auto !important;
    font-family: inherit;
    touch-action: manipulation;
}

button:disabled {
    cursor: not-allowed !important;
}

/* Tenké posuvníky pro všechny panely */
.scroll-list::-webkit-scrollbar,
.radio-log-list::-webkit-scrollbar,
.sita-inbox-list::-webkit-scrollbar,
.highscore-table-wrap::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.scroll-list::-webkit-scrollbar-track,
.radio-log-list::-webkit-scrollbar-track,
.sita-inbox-list::-webkit-scrollbar-track,
.highscore-table-wrap::-webkit-scrollbar-track {
    background: #09101f;
}

.scroll-list::-webkit-scrollbar-thumb,
.radio-log-list::-webkit-scrollbar-thumb,
.sita-inbox-list::-webkit-scrollbar-thumb,
.highscore-table-wrap::-webkit-scrollbar-thumb {
    background: #293b5c;
    border-radius: 3px;
}

/* ==========================================================================
   1. HORNÍ LIŠTA (TOP HUD)
   ========================================================================== */
.top-hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding: 4px 8px;
    min-height: 52px;
    background: #09101f;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.brand-logo {
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: #fff;
    font-weight: 900;
    font-size: 11.5px;
    padding: 5px 7px;
    border-radius: 7px;
    white-space: nowrap;
}

.brand-titles h1 {
    font-size: 12.5px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    white-space: nowrap;
}

.brand-meta-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.version-tag {
    display: inline-block;
    background: rgba(249, 115, 22, 0.2);
    border: 1px solid #f97316;
    color: #fdba74;
    font-family: 'Consolas', monospace;
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 4px;
}

.mode-switch-box {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #0d1629;
    padding: 2px;
    border-radius: 5px;
    border: 1px solid #263554;
}

.btn-mode {
    background: transparent;
    color: #94a3b8;
    border: none;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.btn-mode.active-fun {
    background: #16a34a;
    color: #fff;
}

.btn-mode.active-real {
    background: #dc2626;
    color: #fff;
}

.clock-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #0d1629;
    padding: 3px 6px;
    border-radius: 7px;
    border: 1px solid var(--border-subtle);
    flex-shrink: 1;
}

.shift-clock-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 86px;
    padding-right: 5px;
    border-right: 1px solid var(--border-subtle);
}

.clock-label {
    font-size: 7.5px;
    color: var(--text-muted);
    font-weight: 700;
}

.clock-value {
    font-family: 'Consolas', monospace;
    font-size: 14px;
    font-weight: 900;
    color: #38bdf8;
    line-height: 1.05;
}

.phase-badge {
    font-size: 8px;
    font-weight: 700;
    color: #fdba74;
    background: rgba(249, 115, 22, 0.16);
    border: 1px solid rgba(249, 115, 22, 0.4);
    padding: 1px 4px;
    border-radius: 3px;
    margin-top: 1px;
    white-space: nowrap;
}

.speed-buttons,
.wave-jump-buttons {
    display: flex;
    align-items: center;
    gap: 3px;
}

.jump-lbl {
    font-size: 8.5px;
    color: var(--text-muted);
    margin-left: 1px;
}

.btn-hud,
.btn-jump {
    background: #162238;
    color: var(--text-main);
    border: 1px solid #293b5c;
    padding: 4px 5px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.btn-jump-peak {
    background: rgba(249, 115, 22, 0.18);
    border-color: #f97316;
    color: #fed7aa;
    font-weight: 800;
}

.btn-hud:hover,
.btn-jump:hover {
    background: #1f304d;
    border-color: #38bdf8;
}

.btn-hud.active {
    background: var(--prg-orange);
    color: #070d18;
    border-color: #fdba74;
}

.btn-sync-now {
    border-color: #38bdf8;
    color: #7dd3fc;
}

.btn-tutorial-trigger {
    border-color: #f97316;
    color: #fdba74;
}

.vol-slider-wrap {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #162238;
    border: 1px solid #293b5c;
    padding: 2px 4px;
    border-radius: 5px;
}

.vol-slider-wrap input[type="range"] {
    width: 42px;
    height: 4px;
    accent-color: #f97316;
    cursor: pointer;
}

.btn-vol-test {
    padding: 2px 4px !important;
    font-size: 8.5px !important;
}

.map-trigger-box {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.btn-sita-hero {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    color: #fff;
    border: 2px solid #2dd4bf;
    padding: 5px 7px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.btn-sita-hero.sita-alert {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    border-color: #fca5a5;
}

.sita-badge-pill {
    background: rgba(7, 13, 24, 0.9);
    color: #5eead4;
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 8.5px;
    font-family: 'Consolas', monospace;
}

.btn-open-map-hero {
    background: linear-gradient(135deg, #1d4ed8, #0284c7);
    color: #fff;
    border: 2px solid #38bdf8;
    padding: 5px 7px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.map-live-badge {
    background: #070d18;
    color: #38bdf8;
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 8.5px;
    font-family: 'Consolas', monospace;
}

.btn-highscore-hero {
    background: linear-gradient(135deg, #d97706 0%, #eab308 100%);
    color: #070d18;
    border: 2px solid #fef08a;
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.35);
}

.btn-highscore-hero:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #fde047 100%);
    border-color: #fff;
}

.score-hud {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.hud-stat-card {
    background: #0d1629;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 3px 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 50px;
}

.clickable-score-card {
    cursor: pointer !important;
    border-color: rgba(249, 115, 22, 0.65);
    background: rgba(249, 115, 22, 0.10);
}

.clickable-score-card:hover {
    border-color: #fde047;
    background: rgba(234, 179, 8, 0.22);
}

.sla-card {
    min-width: 76px;
}

.sla-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.stat-lbl {
    font-size: 7.5px;
    color: var(--text-muted);
    font-weight: 700;
    white-space: nowrap;
}

.stat-num {
    font-family: 'Consolas', monospace;
    font-size: 12px;
    font-weight: 900;
    color: #fff;
}

.score-num { color: var(--prg-orange); }
.handover-num { color: #fde047; }
.breach-num { color: #ef4444; }

.sla-percent {
    font-family: 'Consolas', monospace;
    font-size: 9.5px;
    font-weight: 800;
    color: var(--prg-green);
}

.sla-bar-bg {
    width: 100%;
    height: 5px;
    background: #1e293b;
    border-radius: 3px;
    overflow: hidden;
}

.sla-bar-fill {
    height: 100%;
    background: var(--prg-green);
    border-radius: 3px;
}

/* ==========================================================================
   2. STAVOVÁ LIŠTA: STATICKÉ A-CDM, STAV KOLEGŮ & LINKA PRM
   ========================================================================== */
.status-bar-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 32px;
    padding: 0 10px;
    background: #0c1424;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.status-bar-strip.ringing-bar {
    background: #2a1215;
    border-bottom-color: var(--prg-red);
}

.acdm-weather-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 9.5px;
    font-weight: 800;
    font-family: 'Consolas', monospace;
    background: rgba(2, 132, 199, 0.2);
    border: 1px solid #38bdf8;
    color: #bae6fd;
    cursor: default !important;
    pointer-events: none !important;
    white-space: nowrap;
}

.acdm-weather-pill.wx-warn {
    background: rgba(234, 179, 8, 0.22);
    border-color: #eab308;
    color: #fef08a;
}

.acdm-weather-pill.wx-danger {
    background: rgba(239, 68, 68, 0.24);
    border-color: #ef4444;
    color: #fecaca;
}

.colleagues-strip {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.colleague-pill {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    font-family: 'Consolas', monospace;
    white-space: nowrap;
    border: 1px solid #334155;
    cursor: default;
}

.colleague-pill.col-free {
    background: rgba(34, 197, 94, 0.16);
    border-color: #22c55e;
    color: #86efac;
}

.colleague-pill.col-busy {
    background: rgba(239, 68, 68, 0.24);
    border-color: #ef4444;
    color: #fca5a5;
}

.colleague-pill.col-break {
    background: rgba(234, 179, 8, 0.20);
    border-color: #eab308;
    color: #fde047;
}

.ticker-left {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: #e2e8f0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 120px;
}

.workload-pills {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.wl-item {
    background: #131c31;
    border: 1px solid #263554;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 9px;
    color: #cbd5e1;
    white-space: nowrap;
}

.pbx-queue-box {
    position: relative;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.pbx-busy-pill {
    background: rgba(239, 68, 68, 0.22);
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 9.5px;
    font-weight: 700;
    font-family: 'Consolas', monospace;
    white-space: nowrap;
    cursor: pointer !important;
}

.pbx-busy-pill.idle-line {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ade80;
    cursor: default !important;
}

.btn-call-alert {
    background: #dc2626;
    color: #fff;
    border: 1px solid #fca5a5;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 9.5px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer !important;
}

.btn-call-alert:hover {
    background: #b91c1c;
}

/* ==========================================================================
   3. HLAVNÍ 3-SLOUPCOVÝ DASHBOARD
   ========================================================================== */
.control-dashboard {
    display: grid;
    grid-template-columns: 1.18fr 1.12fr 1.05fr;
    gap: 8px;
    padding: 5px 10px;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.dash-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
}

.flights-panel,
.assistants-panel,
.workflow-panel {
    flex: 1 1 0;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 5px 8px;
    background: #111a2e;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.panel-header h2 {
    font-size: 11px;
    font-weight: 800;
    color: #f8fafc;
    margin: 0;
}

.panel-sub-note {
    font-size: 8.5px;
    color: var(--text-muted);
    display: block;
}

.scroll-list {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    padding: 6px;
}

.tab-buttons,
.assistant-filters {
    display: flex;
    gap: 3px;
}

.tab-btn,
.filter-btn {
    background: #162238;
    color: var(--text-muted);
    border: 1px solid #263554;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.tab-btn.active,
.filter-btn.active {
    background: var(--prg-blue);
    color: #fff;
    border-color: #38bdf8;
}

.tab-content {
    display: none !important;
}

.tab-content.active {
    display: block !important;
}

/* ==========================================================================
   4. KARTY LETŮ, GATE CHANGE EMERGENCY & PRM CESTUJÍCÍ
   ========================================================================== */
.flight-card {
    background: var(--bg-card);
    border: 1px solid #24324d;
    border-left: 4px solid var(--prg-green);
    border-radius: 7px;
    padding: 6px 8px;
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.flight-card.remote-stand {
    border-left-color: #3b82f6;
}

.flight-card.sla-critical-card {
    border-color: #ef4444;
    border-left: 4px solid #ef4444;
    background: rgba(127, 29, 29, 0.22);
}

.flight-card.gate-change-emergency-card {
    border: 2px solid #f97316;
    border-left: 6px solid #ef4444;
    background: rgba(154, 52, 18, 0.28);
}

.flight-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10.5px;
    font-weight: 800;
}

.flight-code { color: #fff; }
.flight-time { font-family: 'Consolas', monospace; color: #38bdf8; font-size: 10.5px; }

.flight-card-mid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9.5px;
    color: var(--text-muted);
}

.sla-flight-box {
    background: rgba(7, 13, 24, 0.65);
    border: 1px solid #1e293b;
    border-radius: 4px;
    padding: 3px 6px;
}

.sla-flight-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9.5px;
    font-weight: 700;
    gap: 5px;
}

.sla-timer-ok { color: #4ade80; }
.sla-timer-warn { color: #facc15; }
.sla-timer-danger { color: #fca5a5 !important; font-weight: 800; }

.acdm-milestone-tag {
    font-family: 'Consolas', monospace;
    font-size: 8.5px;
    color: #38bdf8;
    background: rgba(2, 132, 199, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 1px 4px;
    border-radius: 3px;
    white-space: nowrap;
}

.stand-chg-tag,
.delay-tag,
.transfer-tag,
.forgotten-gate-tag {
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 8.5px;
    font-weight: 800;
    margin-left: 3px;
}

.stand-chg-tag { background: rgba(234, 179, 8, 0.25); border: 1px solid #facc15; color: #fef08a; }
.delay-tag { background: rgba(59, 130, 246, 0.25); border: 1px solid #60a5fa; color: #bfdbfe; }
.transfer-tag { background: rgba(168, 85, 247, 0.28); border: 1px solid #c084fc; color: #f3e8ff; }
.forgotten-gate-tag { background: rgba(239, 68, 68, 0.35); border: 1px solid #fca5a5; color: #fff; }

.flight-pax-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 1px;
}

.pax-btn-pill {
    background: #1a263d;
    color: #f8fafc;
    border: 1px solid #334155;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 9.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-align: left;
}

.pax-btn-pill.wchc { border-left: 3px solid #ef4444; }
.pax-btn-pill.wchs { border-left: 3px solid #eab308; }
.pax-btn-pill.wchr { border-left: 3px solid #38bdf8; }
.pax-btn-pill.transfer-pill { border-bottom: 2px solid #c084fc; }
.pax-btn-pill.forgotten-pax-pill {
    background: rgba(185, 28, 28, 0.35);
    border: 1px solid #f97316;
    border-left: 4px solid #ef4444;
    color: #fef08a;
}

.pax-btn-pill.selected {
    background: rgba(249, 115, 22, 0.25);
    border-color: #f97316;
    color: #fff;
    box-shadow: 0 0 0 1px #f97316;
}

.pax-btn-pill.breached-pill {
    border-color: #ef4444;
    background: rgba(185, 28, 28, 0.25);
}

.pax-btn-pill.done {
    opacity: 0.45;
    cursor: default !important;
}

.unreported-pax-pill {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px dashed #64748b !important;
    color: #94a3b8 !important;
    opacity: 0.85;
}

.prm-real-detail {
    display: block;
    font-size: 8px;
    color: #cbd5e1;
    font-weight: normal;
}

.btn-batch-flight {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid #a855f7;
    color: #e9d5ff;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
}

.btn-handover-mini {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid #eab308;
    color: #fde047;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
}

.btn-handover-mini:hover:not(:disabled) {
    background: #eab308;
    color: #070d18;
}

.btn-handover-mini:disabled {
    background: rgba(30, 41, 59, 0.7);
    border-color: #334155;
    color: #64748b;
    opacity: 0.65;
}

/* ==========================================================================
   5. STŘEDNÍ SLOUPEC: PULT DISPEČERA & ASISTENTI
   ========================================================================== */
.dispatch-console {
    flex-shrink: 0;
}

.auto-send-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    color: #93c5fd;
    cursor: pointer;
}

.dispatch-selected-info {
    padding: 5px 8px;
    background: #0b1324;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 10px;
}

.dispatch-crew-builder {
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.crew-slot-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.crew-slot {
    background: #0b1324;
    border: 1px solid #1e293b;
    border-radius: 5px;
    padding: 4px 6px;
}

.slot-title {
    font-size: 8.5px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
}

.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    min-height: 18px;
    align-items: center;
}

.chip {
    background: var(--prg-blue);
    color: #fff;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
}

.chip-auto-veh {
    background: rgba(168, 85, 247, 0.22);
    border: 1px solid #a855f7;
    color: #f3e8ff;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
}

.chip-empty,
.empty-hint {
    color: var(--text-dim);
    font-size: 9.5px;
    font-style: italic;
}

.dispatch-validation-msg {
    padding: 4px 7px;
    border-radius: 4px;
    background: #131c31;
    border: 1px solid #263554;
    font-size: 9.5px;
    color: #cbd5e1;
}

.dispatch-validation-msg.ready {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
    color: #86efac;
    font-weight: 700;
}

.dispatch-validation-msg.error {
    background: rgba(239, 68, 68, 0.18);
    border-color: #ef4444;
    color: #fca5a5;
    font-weight: 700;
}

.dispatch-actions {
    display: flex;
    gap: 5px;
}

.btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: #fff;
    border: none;
    padding: 6px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 800;
}

.btn-primary:disabled {
    background: #1e293b;
    color: #475569;
    cursor: not-allowed !important;
}

.btn-handover {
    background: rgba(234, 179, 8, 0.18);
    border: 1px solid #eab308;
    color: #fde047;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 9.5px;
    font-weight: 800;
    white-space: nowrap;
}

.btn-handover:hover:not(:disabled) {
    background: #eab308;
    color: #070d18;
}

.btn-handover:disabled {
    background: rgba(30, 41, 59, 0.75);
    border-color: #334155;
    color: #64748b;
    opacity: 0.7;
    cursor: not-allowed !important;
}

.btn-secondary {
    background: #1e293b;
    color: #cbd5e1;
    border: 1px solid #334155;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 9.5px;
    font-weight: 700;
}

.assistants-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.assistant-card {
    background: var(--bg-card);
    border: 1px solid #24324d;
    border-radius: 6px;
    padding: 5px 7px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.assistant-card:hover {
    border-color: #38bdf8;
}

.assistant-card.selected {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.15);
}

.assistant-card.busy-card {
    opacity: 0.86;
    border-style: dashed;
}

.assistant-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}

.assistant-name {
    font-size: 9.5px;
    font-weight: 800;
    color: #fff;
}

.lic-c-badge,
.lic-b-badge,
.nondriver-badge,
.queued-badge {
    font-size: 7.5px;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 800;
}

.lic-c-badge { background: rgba(168, 85, 247, 0.25); border: 1px solid #a855f7; color: #e9d5ff; }
.lic-b-badge { background: rgba(234, 179, 8, 0.22); border: 1px solid #eab308; color: #fef08a; }
.nondriver-badge { background: rgba(6, 182, 212, 0.18); border: 1px solid #06b6d4; color: #a5f3fc; }
.queued-badge { background: rgba(234, 179, 8, 0.25); border: 1px solid #eab308; color: #fde047; }

.assistant-status-pill {
    font-size: 7.5px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    white-space: nowrap;
}

.status-idle { background: rgba(34, 197, 94, 0.18); color: #4ade80; }
.status-busy { background: rgba(249, 115, 22, 0.2); color: #fdba74; }
.status-break { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.status-confused { background: rgba(234, 179, 8, 0.3); color: #fde047; }

.assistant-mid {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 8.5px;
    color: var(--text-muted);
}

.fatigue-bar-wrap {
    flex: 1;
    height: 4px;
    background: #090d16;
    border-radius: 2px;
    overflow: hidden;
}

.fatigue-fill {
    height: 100%;
    border-radius: 2px;
}

.assistant-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 8px;
    color: var(--text-dim);
}

.btn-meal-request {
    background: #eab308;
    color: #070d18;
    border: none;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 7.5px;
    font-weight: 800;
}

/* ==========================================================================
   6. PRAVÝ SLOUPEC: RÁDIO PRM, TECHNIKA & WORKFLOW
   ========================================================================== */
.radio-panel {
    flex-shrink: 0;
    background: linear-gradient(135deg, #0b192c 0%, #0f172a 100%);
    border: 1px solid #0284c7;
}

.radio-panel.radio-urgent {
    border: 2px solid #eab308 !important;
}

.radio-header-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-ack-radio {
    background: #16a34a;
    color: #fff;
    border: 1px solid #86efac;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.btn-ack-radio:hover {
    background: #15803d;
}

.radio-ptt-led {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Consolas', monospace;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.radio-ptt-led.tx-active {
    background: rgba(234, 179, 8, 0.28);
    color: #fef08a;
    border-color: #eab308;
}

.radio-question-box {
    background: rgba(120, 53, 15, 0.42);
    border-bottom: 1px solid rgba(234, 179, 8, 0.55);
    padding: 6px 8px;
}

.radio-caller-title {
    font-size: 10px;
    font-weight: 800;
    color: #fde047;
    margin-bottom: 2px;
    display: flex;
    justify-content: space-between;
}

.radio-wait-alert { color: #fca5a5; }

.radio-question-text {
    font-size: 10.5px;
    color: #fff;
    font-style: italic;
    margin-bottom: 5px;
}

.radio-reply-buttons {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.btn-radio-reply {
    background: #1e293b;
    border: 1px solid #eab308;
    color: #fef08a;
    padding: 4px 7px;
    border-radius: 4px;
    font-size: 9.5px;
    font-weight: 700;
    text-align: left;
}

.btn-radio-reply:hover {
    background: #eab308;
    color: #090d16;
}

.radio-log-list {
    max-height: 76px;
    min-height: 58px;
    overflow-y: auto;
    padding: 4px 8px;
    font-family: 'Consolas', monospace;
    font-size: 9px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(5, 10, 20, 0.78);
}

.radio-log-item {
    line-height: 1.25;
    padding: 2px 4px;
    border-radius: 3px;
    border-left: 2px solid #38bdf8;
    color: #cbd5e1;
}

.radio-log-item.log-confusion {
    border-left-color: #eab308;
    background: rgba(234, 179, 8, 0.12);
    color: #fef08a;
}

.radio-log-item.log-dispatch {
    border-left-color: #22c55e;
    color: #86efac;
}

.vehicles-panel {
    flex-shrink: 0;
}

.vehicles-compact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 5px 7px;
}

.vehicle-card {
    background: var(--bg-card);
    border: 1px solid #263554;
    border-left: 3px solid #a855f7;
    border-radius: 5px;
    padding: 4px 6px;
}

.vehicle-card.van-card {
    border-left-color: #eab308;
}

.vehicle-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
}

.vehicle-sub {
    font-size: 7.5px;
    color: var(--text-muted);
    margin-top: 1px;
}

.elevators-corridor-section {
    padding: 4px 7px 6px 7px;
    border-top: 1px solid #1e293b;
    background: rgba(9, 14, 26, 0.6);
}

.elevators-corridor-title {
    font-size: 8.5px;
    font-weight: 800;
    color: #93c5fd;
    text-transform: uppercase;
    margin-bottom: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.elevators-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.elevator-corridor-card {
    background: #131c31;
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-left: 3px solid #22c55e;
    border-radius: 5px;
    padding: 3px 6px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.elevator-corridor-card.elev-broken {
    border-color: #ef4444;
    border-left-color: #ef4444;
    background: rgba(127, 29, 29, 0.28);
}

.elevator-corridor-card.elev-repairing {
    border-color: #eab308;
    border-left-color: #eab308;
    background: rgba(120, 53, 15, 0.22);
}

.elev-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
}

.elev-card-desc {
    font-size: 8px;
    color: #94a3b8;
}

.badge {
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 8.5px;
    font-weight: 800;
    white-space: nowrap;
}

.badge-ok { background: rgba(34, 197, 94, 0.18); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.4); }
.badge-warn { background: rgba(234, 179, 8, 0.2); color: #fde047; border: 1px solid rgba(234, 179, 8, 0.45); }
.badge-danger { background: rgba(239, 68, 68, 0.22); color: #fca5a5; border: 1px solid #ef4444; }
.badge-neutral { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }

.btn-repair {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 8px;
    font-weight: 800;
}

.mission-card {
    background: var(--bg-card);
    border: 1px solid #24324d;
    border-left: 4px solid #06b6d4;
    border-radius: 5px;
    padding: 5px 7px;
    margin-bottom: 4px;
}

.mission-card.colleague-mission-card {
    background: rgba(20, 83, 45, 0.18);
    border-color: rgba(34, 197, 94, 0.35);
    border-left-color: #22c55e;
}

/* ==========================================================================
   7. SPODNÍ PRÁVNÍ DOLOŽKA
   ========================================================================== */
.legal-disclaimer-bar {
    min-height: 20px;
    background: #050911;
    border-top: 1px solid #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 12px;
    font-size: 9px;
    color: #94a3b8;
    flex-shrink: 0;
}

.legal-disclaimer-bar strong {
    color: #cbd5e1;
}

/* ==========================================================================
   8. MODÁLNÍ OKNA & MINIHRA SOUSTŘEDĚNÍ
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 13, 24, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 8px;
}

.modal-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    max-height: 94vh;
}

.modal-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: #09101f;
    border-bottom: 1px solid #1e293b;
    gap: 8px;
}

.modal-header-bar h2 {
    font-size: 13.5px;
    font-weight: 800;
    color: #fff;
}

.modal-sub-hint {
    font-size: 10.5px;
    color: #94a3b8;
    display: block;
}

.map-modal-card {
    width: 96vw;
    height: 92vh;
    display: flex;
    flex-direction: column;
}

.map-subtitle {
    font-size: 10px;
    color: #94a3b8;
    display: block;
    margin-top: 2px;
}

.map-modal-controls {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.btn-map-ctrl,
.btn-close-modal {
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid #475569;
    padding: 5px 9px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 700;
}

.btn-close-map {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 5px 11px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 800;
}

.map-live-subbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 14px;
    background: #0b1324;
    border-bottom: 1px solid #1e293b;
    font-size: 10.5px;
    color: #93c5fd;
}

.map-viewport-modal {
    position: relative !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 360px !important;
    background: #050912 !important;
    overflow: hidden !important;
    touch-action: none;
}

#lkpr-svg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.map-legend {
    position: absolute;
    right: 14px;
    bottom: 14px;
    background: rgba(9, 16, 31, 0.94);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 8px 11px;
    z-index: 20;
}

.legend-title {
    font-size: 9.5px;
    font-weight: 800;
    color: #93c5fd;
    margin-bottom: 5px;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 10px;
}

.dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 5px;
}

.dot-bulmor { background: #a855f7; }
.dot-transit { background: #eab308; }
.dot-contact { background: #06b6d4; }
.dot-transfer { background: #ec4899; }
.dot-colleague { background: #22c55e; }

.phone-modal-card {
    width: 610px;
    max-width: 96vw;
    border: 2px solid #f97316;
    overflow-y: auto;
}

.phone-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #172036;
    border-bottom: 1px solid #334155;
}

.phone-ring-icon { font-size: 24px; }
.phone-header-info { flex-grow: 1; }
.phone-header-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px; }
.phone-caller-badge { font-size: 9.5px; font-weight: 800; color: #fdba74; }

.phone-modal-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.call-minigame-bar {
    background: #090f1d;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.call-minigame-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Consolas', monospace;
    font-size: 10.5px;
    color: #fde047;
    font-weight: 700;
}

.call-step-pills { display: flex; gap: 4px; }
.call-step-dot { flex: 1; height: 5px; border-radius: 3px; background: #1e293b; }
.call-step-dot.done { background: #22c55e; }
.call-step-dot.active { background: #f97316; }

.phone-message-text {
    font-size: 11.5px;
    line-height: 1.42;
    color: #f8fafc;
    background: #131c31;
    padding: 9px 11px;
    border-radius: 7px;
    border-left: 4px solid #f97316;
}

.focus-minigame-box {
    background: #080e1c;
    border: 1px solid #38bdf8;
    border-left: 4px solid #38bdf8;
    border-radius: 7px;
    padding: 9px 11px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.focus-minigame-box.focus-completed {
    border-color: #22c55e;
    border-left-color: #22c55e;
    background: rgba(20, 83, 45, 0.18);
}

.focus-minigame-box.focus-error-flash {
    border-color: #ef4444;
    border-left-color: #ef4444;
    background: rgba(127, 29, 29, 0.28);
}

.focus-minigame-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10.5px;
    font-weight: 800;
    color: #7dd3fc;
    gap: 6px;
}

.focus-target-sequence {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.focus-slot {
    background: #111a2e;
    border: 1px dashed #475569;
    border-radius: 5px;
    padding: 5px 6px;
    text-align: center;
    font-family: 'Consolas', monospace;
    font-size: 10.5px;
    font-weight: 800;
    color: #cbd5e1;
}

.focus-slot.slot-active {
    border: 1px solid #f97316;
    background: rgba(249, 115, 22, 0.16);
    color: #fde047;
}

.focus-slot.slot-done {
    border: 1px solid #22c55e;
    background: rgba(34, 197, 94, 0.22);
    color: #86efac;
}

.focus-keypad-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

.focus-key-btn {
    background: #162238;
    color: #f8fafc;
    border: 1px solid #334155;
    border-radius: 5px;
    padding: 7px 6px;
    font-family: 'Consolas', monospace;
    font-size: 10.5px;
    font-weight: 800;
    text-align: center;
}

.focus-key-btn:hover:not(:disabled) {
    background: #0284c7;
    border-color: #7dd3fc;
    color: #fff;
}

.focus-key-btn.key-used {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    color: #86efac;
    opacity: 0.6;
}

.focus-status-msg {
    font-size: 9.5px;
    font-weight: 700;
    color: #93c5fd;
}

.phone-options-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.phone-option-btn {
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid #475569;
    padding: 8px 11px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-align: left;
}

.phone-option-btn:hover:not(:disabled) {
    background: #f97316;
    color: #070d18;
    border-color: #fdba74;
}

.phone-option-btn:disabled {
    background: #0f172a;
    border-color: #1e293b;
    color: #475569;
    opacity: 0.65;
}

.phone-handover-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
    border-top: 1px solid #1e293b;
    flex-wrap: wrap;
    gap: 6px;
}

.phone-col-status {
    font-size: 9.5px;
    color: #fca5a5;
    font-weight: 700;
}

.sita-modal-card {
    width: 820px;
    max-width: 96vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border: 2px solid #14b8a6;
}

.sita-inbox-list {
    padding: 10px 14px;
    overflow-y: auto;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inbox-section-title {
    font-size: 11.5px;
    font-weight: 800;
    color: #fdba74;
    text-transform: uppercase;
    padding: 4px 2px;
    border-bottom: 1px solid #334155;
    margin-top: 4px;
}

.pax-email-card {
    background: #131c31;
    border: 1px solid #38bdf8;
    border-left: 4px solid #38bdf8;
    border-radius: 7px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pax-email-card.unanswered-email {
    border-color: #f97316;
    border-left: 4px solid #f97316;
    background: rgba(249, 115, 22, 0.10);
}

.pax-email-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    color: #f8fafc;
    gap: 6px;
}

.pax-email-meta {
    font-size: 10px;
    color: #93c5fd;
    font-family: 'Consolas', monospace;
}

.pax-email-body {
    font-size: 11.5px;
    line-height: 1.45;
    color: #e2e8f0;
    background: #09101f;
    padding: 8px 10px;
    border-radius: 5px;
    border: 1px solid #1e293b;
}

.pax-email-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 2px;
}

.btn-email-reply {
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid #38bdf8;
    padding: 7px 10px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 700;
    text-align: left;
}

.btn-email-reply:hover {
    background: #0284c7;
    color: #fff;
    border-color: #7dd3fc;
}

.pax-email-sent-box {
    font-size: 10.5px;
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    padding: 6px 9px;
    border-radius: 5px;
    font-weight: 700;
}

.sita-msg-card {
    background: #131c31;
    border: 1px solid #334155;
    border-left: 4px solid #14b8a6;
    border-radius: 7px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sita-msg-card.unsynced-msg {
    border-color: #ef4444;
    border-left: 4px solid #ef4444;
    background: rgba(127, 29, 29, 0.22);
}

.sita-msg-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
}

.sita-raw-pre {
    font-family: 'Consolas', monospace;
    font-size: 10.5px;
    color: #a7f3d0;
    background: #060b14;
    padding: 7px 9px;
    border-radius: 5px;
    border: 1px solid #1e293b;
    white-space: pre-wrap;
}

.btn-sync-sita {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 800;
    align-self: flex-start;
}

.tutorial-modal-card {
    width: 680px;
    max-width: 96vw;
    border-top: 4px solid #f97316;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.tutorial-body {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tutorial-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tutorial-step-badge {
    background: rgba(249, 115, 22, 0.2);
    border: 1px solid #f97316;
    color: #fdba74;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
}

.tutorial-mode-btns { display: flex; gap: 5px; flex-wrap: wrap; }
.btn-tut-fun { border-color: #22c55e; color: #86efac; }
.btn-tut-real { border-color: #ef4444; color: #fca5a5; }

.tutorial-title {
    font-size: 15.5px;
    font-weight: 800;
    color: #fff;
}

.tutorial-text {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.5;
    background: #131c31;
    padding: 12px;
    border-radius: 7px;
    border-left: 4px solid #3b82f6;
    white-space: pre-line;
}

.tutorial-legal-box {
    font-size: 10px;
    color: #94a3b8;
    background: #090f1d;
    padding: 7px 9px;
    border-radius: 5px;
    border: 1px solid #1e293b;
}

.tutorial-footer {
    padding: 10px 18px;
    background: #090e1a;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tut-dots-indicator {
    font-family: 'Consolas', monospace;
    color: #94a3b8;
}

.btn-tut-next {
    flex-grow: 0;
    padding: 7px 16px;
}

.highscore-modal-card {
    width: 650px;
    max-width: 96vw;
    display: flex;
    flex-direction: column;
    border: 2px solid #eab308;
    overflow-y: auto;
}

.highscore-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px 14px;
    background: #0b1324;
    border-bottom: 1px solid #1e293b;
}

.summary-stat {
    background: #131c31;
    border: 1px solid #263554;
    border-radius: 7px;
    padding: 7px 9px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sum-lbl { font-size: 9.5px; color: var(--text-muted); }
.sum-val { font-size: 15px; font-family: 'Consolas', monospace; color: #fff; }
.highlight-orange { color: var(--prg-orange); }
.highlight-green { color: var(--prg-green); }
.highlight-red { color: var(--prg-red); }

.save-score-bar {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid #1e293b;
    flex-wrap: wrap;
}

.save-score-bar input {
    flex: 1;
    min-width: 180px;
    background: #090f1d;
    border: 1px solid #eab308;
    color: #fff;
    padding: 7px 10px;
    border-radius: 5px;
    font-size: 12px;
}

.highscore-table-wrap {
    max-height: 210px;
    overflow-y: auto;
    padding: 8px 14px;
}

.highscore-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.highscore-table th,
.highscore-table td {
    padding: 5px 7px;
    text-align: left;
    border-bottom: 1px solid #1e293b;
}

.highscore-table th {
    color: var(--text-muted);
    font-size: 9.5px;
    text-transform: uppercase;
}

.modal-footer-actions {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    background: #09101f;
    border-top: 1px solid #1e293b;
    flex-wrap: wrap;
}

.floating-score-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
}

.floating-score-popup {
    position: absolute;
    font-family: 'Consolas', monospace;
    font-size: 12.5px;
    font-weight: 900;
    color: #fde047;
    background: rgba(7, 13, 24, 0.92);
    border: 1px solid #f97316;
    padding: 3px 8px;
    border-radius: 5px;
}

/* ==========================================================================
   9. STŘEDNÍ OBRAZOVKY / MENŠÍ NOTEBOOKY (1366×768)
   ========================================================================== */
@media (max-height: 820px) and (min-width: 981px), (max-width: 1560px) and (min-width: 981px) {
    html, body { font-size: 10.5px; }
    .top-hud { min-height: 46px; padding: 3px 6px; gap: 4px; }
    .brand-logo { padding: 4px 6px; font-size: 10.5px; }
    .brand-titles h1 { font-size: 11px; }
    .clock-value { font-size: 13px; }
    .jump-lbl { display: none; }
    .btn-hud, .btn-jump { padding: 3px 5px; font-size: 8.5px; }
    .btn-sita-hero, .btn-open-map-hero, .btn-highscore-hero { padding: 4px 6px; font-size: 9.5px; }
    .hud-stat-card { padding: 2px 5px; min-width: 44px; }
    .sla-card { min-width: 66px; }
    .status-bar-strip { height: 28px; padding: 0 8px; }
    .workload-pills { display: none; }
    .control-dashboard { gap: 6px; padding: 4px 8px; }
    .panel-header { padding: 4px 7px; }
    .panel-header h2 { font-size: 10.5px; }
    .radio-log-list { max-height: 54px; min-height: 44px; }
    .vehicles-compact-grid { padding: 4px 6px; gap: 3px; }
    .elevators-corridor-section { padding: 3px 6px 4px 6px; }
    .legal-disclaimer-bar { height: 18px; font-size: 8.5px; }
}

/* ==========================================================================
   10. MOBILNÍ DISPLEJE & LINKEDIN PROHLÍŽEČ V TELEFONU (MAX-WIDTH: 980PX)
   ========================================================================== */
@media (max-width: 980px) {
    html, body {
        height: auto !important;
        min-height: 100vh !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        font-size: 12px;
    }

    .top-hud {
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px;
        height: auto;
    }

    .brand-box {
        width: 100%;
        justify-content: space-between;
    }

    .clock-controls {
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 6px;
        gap: 6px;
    }

    .shift-clock-box {
        border-right: none;
        flex-direction: row;
        gap: 8px;
        width: 100%;
        justify-content: space-between;
        border-bottom: 1px solid #1e293b;
        padding-bottom: 4px;
    }

    .speed-buttons,
    .wave-jump-buttons {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .btn-hud,
    .btn-jump {
        padding: 6px 8px;
        font-size: 10.5px;
    }

    .map-trigger-box {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .btn-sita-hero,
    .btn-open-map-hero,
    .btn-highscore-hero,
    .btn-tutorial-trigger {
        justify-content: center;
        padding: 8px 6px;
        font-size: 11px;
    }

    .score-hud {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
    }

    .hud-stat-card {
        min-width: 0;
        padding: 4px;
        align-items: center;
        text-align: center;
    }

    .sla-card {
        min-width: 0;
    }

    .status-bar-strip {
        flex-wrap: wrap;
        height: auto;
        padding: 6px 8px;
        gap: 6px;
    }

    .colleagues-strip {
        width: 100%;
        justify-content: space-between;
    }

    .colleague-pill {
        flex: 1;
        text-align: center;
        font-size: 9.5px;
        padding: 4px;
    }

    .ticker-left {
        width: 100%;
        white-space: normal;
        line-height: 1.35;
        font-size: 11px;
    }

    .workload-pills {
        display: none;
    }

    .pbx-queue-box {
        width: 100%;
        justify-content: space-between;
    }

    .pbx-busy-pill,
    .btn-call-alert {
        flex: 1;
        text-align: center;
        padding: 7px 10px;
        font-size: 11px;
    }

    /* Přepnutí ze 3 sloupců na 1 svislý mobilní sloupec */
    .control-dashboard {
        display: flex;
        flex-direction: column;
        height: auto !important;
        overflow: visible !important;
        padding: 6px 8px;
        gap: 10px;
    }

    .dash-col {
        height: auto !important;
        overflow: visible !important;
        gap: 10px;
    }

    /* Na mobilu dáme Pult dispečera a Aktivní lety hned nahoru */
    .col-left { order: 1; }
    .col-center { order: 2; }
    .col-right { order: 3; }

    .flights-panel .scroll-list {
        max-height: 360px;
    }

    .assistants-panel .scroll-list {
        max-height: 340px;
    }

    .workflow-panel .scroll-list {
        max-height: 240px;
    }

    .crew-slot-row {
        grid-template-columns: 1fr;
    }

    .dispatch-actions {
        flex-wrap: wrap;
    }

    .btn-primary.btn-dispatch {
        width: 100%;
        flex-basis: 100%;
        padding: 10px;
        font-size: 12px;
    }

    .btn-handover,
    .btn-secondary {
        flex: 1;
        padding: 8px;
        font-size: 10.5px;
    }

    .assistants-grid {
        grid-template-columns: 1fr;
    }

    .pax-btn-pill {
        padding: 6px 9px;
        font-size: 10.5px;
        width: 100%;
    }

    .vehicles-compact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .elevators-cards-grid {
        grid-template-columns: 1fr;
    }

    .legal-disclaimer-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        padding: 8px 10px;
        height: auto;
        font-size: 9.5px;
    }

    /* Modální okna na mobilu */
    .map-modal-card {
        width: 99vw;
        height: 95vh;
    }

    .map-legend {
        display: none;
    }

    .highscore-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .phone-option-btn,
    .btn-email-reply,
    .btn-radio-reply {
        padding: 10px 12px;
        font-size: 11.5px;
    }
}