/* ═══════════════════════════════════════════
   ALLEY CAT — Stealth Lead Scraper
   Dark Theme · Green Accents · Google Sans
   ═══════════════════════════════════════════ */

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

:root {
    --bg: #0d0d0d;
    --bg-panel: #1a1a1a;
    --bg-input: #111111;
    --border: #2a2a2a;
    --green: #00ff41;
    --green-dim: #00cc33;
    --green-dark: rgba(0,255,65,0.08);
    --red: #ff3b3b;
    --yellow: #ffd000;
    --text: #e0e0e0;
    --text-dim: #999999;
    --text-muted: #555555;
    --font: 'Google Sans','Inter',-apple-system,BlinkMacSystemFont,sans-serif;
    --mono: 'Consolas','SF Mono','Cascadia Code',monospace;
    --radius: 10px;
    --transition: 220ms cubic-bezier(0.4,0,0.2,1);
}

html { font-size: 16px; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }

/* ═══ TAB BAR ═══ */
.tab-bar {
    display: flex;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.tab {
    flex: 1;
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    padding: 16px 0;
    border: none;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: color var(--transition), background var(--transition);
    position: relative;
    text-transform: uppercase;
}

.tab:hover { color: var(--text); }

.tab.active {
    color: var(--green);
    background: rgba(0,255,65,0.04);
    text-shadow: 0 0 10px rgba(0,255,65,0.35);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 20%; right: 20%;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0,255,65,0.5);
    animation: tabGlow 2.5s ease-in-out infinite;
}

/* ═══ PAGES ═══ */
.page {
    display: none;
    overflow: visible;
    padding: 28px 36px 60px;
    animation: pageFadeIn 0.28s ease;
}

.page.active {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.page > * { width: 100%; max-width: 1200px; }

/* ═══ BRAND HERO ═══ */
.brand-hero { text-align: center; padding: 18px 0 6px; }

.brand-hero__cat {
    font-size: 3rem;
    display: block;
    margin-bottom: 6px;
    filter: drop-shadow(0 0 14px rgba(0,255,65,0.35));
    animation: catBounce 2.5s ease-in-out infinite;
}

.brand-hero__title {
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: 7px;
    color: var(--green);
}

.brand-hero__sub {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 4px;
    margin-top: 4px;
}

/* ═══ PANELS ═══ */
.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 26px;
    transition: border-color var(--transition);
}

.panel:hover { border-color: #3a3a3a; }

.panel__title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

/* ═══ DEPLOY PANEL ═══ */
.field-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.city-input {
    width: 100%;
    font-family: var(--font);
    font-size: 1.15rem;
    font-weight: 600;
    padding: 15px 20px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.city-input::placeholder { color: var(--text-muted); text-transform: uppercase; }

.city-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0,255,65,0.08);
}

.btn-start {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 17px 0;
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--green);
    color: #000;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition), transform 120ms ease;
    position: relative;
    overflow: hidden;
}

.btn-start::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    animation: shimmer 2.8s ease-in-out infinite;
}

.btn-start:hover { background: var(--green-dim); box-shadow: 0 0 24px rgba(0,255,65,0.35); }
.btn-start:active { transform: scale(0.985); }
.btn-start:disabled { opacity: 0.3; cursor: not-allowed; }

/* ═══ MISSION TABLE ═══ */
.mission-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }

.mission-table th {
    text-align: left;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}

.mission-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: background var(--transition);
}

.mission-table .empty-row td {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 20px;
    text-transform: none;
    letter-spacing: 0;
}

.mission-table tbody tr:hover:not(.empty-row) { background: rgba(255,255,255,0.02); }

/* ═══ ACTION BUTTONS ═══ */
.btn {
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 7px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(30,30,30,0.4);
    color: var(--text-dim);
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    display: inline-block;
}

.btn:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.2); }

.btn-primary { background: rgba(0,255,65,0.1); border-color: rgba(0,255,65,0.3); color: var(--green); }
.btn-primary:hover { background: rgba(0,255,65,0.2); border-color: rgba(0,255,65,0.5); color: #fff; box-shadow: 0 0 12px rgba(0,255,65,0.25); }

.btn-danger { background: rgba(255,65,65,0.1); border-color: rgba(255,65,65,0.3); color: var(--red); }
.btn-danger:hover { background: rgba(255,65,65,0.2); border-color: rgba(255,65,65,0.5); color: #fff; box-shadow: 0 0 12px rgba(255,65,65,0.25); }

.btn-stop {
    font-family: var(--font); font-weight: 700; font-size: 0.75rem;
    letter-spacing: 0.8px; padding: 6px 16px;
    background: var(--red); color: #fff;
    border: none; border-radius: 5px; cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition);
}
.btn-stop:hover { background: #e03030; box-shadow: 0 0 10px rgba(255,59,59,0.3); }

.btn-view {
    font-family: var(--font); font-weight: 700; font-size: 0.75rem;
    letter-spacing: 0.8px; padding: 6px 16px;
    background: var(--green); color: #000;
    border: none; border-radius: 5px; cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition);
    margin-right: 6px;
}
.btn-view:hover { background: var(--green-dim); box-shadow: 0 0 10px rgba(0,255,65,0.3); }

.btn-download {
    font-family: var(--font); font-weight: 700; font-size: 0.75rem;
    letter-spacing: 0.8px; padding: 6px 16px;
    background: #2a6aff; color: #fff;
    border: none; border-radius: 5px; cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition);
}
.btn-download:hover { background: #2060e8; box-shadow: 0 0 10px rgba(42,106,255,0.3); }

/* ═══ LIVE SNIPER TAB ═══ */
.live-header {
    display: flex;
    flex-direction: column;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 22px;
    gap: 14px;
    flex-shrink: 0;
}

.live-header__top { display: flex; align-items: center; gap: 14px; }

/* ═══ CUSTOM MISSION DROPDOWN ═══ */
.mission-select-wrap {
    position: relative;
    flex: 1;
}

.mission-select-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: border-color var(--transition), box-shadow var(--transition);
    text-align: left;
}

.mission-select-btn:hover {
    border-color: #3a3a3a;
}

.mission-select-wrap.open .mission-select-btn {
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(0,255,65,0.1);
}

.mission-select-caret {
    width: 10px;
    height: 6px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.mission-select-wrap.open .mission-select-caret {
    transform: rotate(180deg);
}

.mission-dropdown-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: #1e1e1e;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    z-index: 300;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,255,65,0.08);
    animation: dropdownIn 0.18s cubic-bezier(0.4,0,0.2,1) both;
}

.mission-select-wrap.open .mission-dropdown-panel {
    display: block;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.mission-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 18px;
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    cursor: pointer;
    text-align: left;
    transition: background var(--transition), color var(--transition);
}

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

.mission-dropdown-item:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text);
}

.mission-dropdown-item.active {
    color: var(--green);
    background: rgba(0,255,65,0.05);
}

.mission-dropdown-item .mdrop-status {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 100px;
    flex-shrink: 0;
}

.mdrop-status.running  { background: rgba(0,255,65,0.15);  color: var(--green); }
.mdrop-status.stopped  { background: rgba(255,208,0,0.15); color: var(--yellow); }
.mdrop-status.done     { background: rgba(0,255,65,0.1);   color: var(--green-dim); }

.live-header__right {
    display: flex;
    justify-content: space-evenly;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.live-stat { text-align: center; flex: 1; }

.live-stat__label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    margin-bottom: 3px;
}

.live-stat__value { font-size: 1.2rem; font-weight: 800; color: var(--text); }
.live-stat__dupes { color: var(--red) !important; }
.live-stat__eta { color: var(--yellow) !important; }

/* ═══ PROGRESS ═══ */
.live-progress {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 22px;
    flex-shrink: 0;
}

.live-progress__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.live-progress__info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.live-progress__city { font-weight: 800; font-size: 0.95rem; color: var(--text); text-transform: uppercase; }
.live-progress__sep { color: var(--text-muted); font-size: 1rem; }
.live-progress__kw { font-weight: 700; font-size: 0.875rem; text-transform: capitalize; color: var(--green); }

.progress-track {
    height: 7px;
    background: #222;
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--green);
    border-radius: 100px;
    transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 0 12px rgba(0,255,65,0.45);
    animation: barPulse 2.5s ease-in-out infinite;
}

.live-progress__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}

.status-badge { font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; font-size: 0.78rem; }
.status-badge.idle { color: var(--text-muted); }
.status-badge.running { color: var(--green); animation: glowPulse 1.8s ease-in-out infinite; }
.status-badge.paused { color: var(--yellow); }
.status-badge.done { color: var(--green); }
.status-badge.stopped { color: var(--red); }

.text-muted { color: var(--text-muted); font-family: var(--mono); font-size: 0.75rem; }
.green { color: var(--green); }

/* ═══ GLOW ═══ */
.glow-green {
    color: var(--green);
    text-shadow: 0 0 8px rgba(0,255,65,0.5), 0 0 16px rgba(0,255,65,0.25);
    animation: glowPulse 2.8s ease-in-out infinite;
}

.glow-text {
    text-shadow: 0 0 6px rgba(224,224,224,0.4);
    animation: glowWhite 3.2s ease-in-out infinite;
}

.results-badge {
    background: rgba(0,255,65,0.12);
    color: var(--green);
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 100px;
    margin-left: 8px;
    font-weight: 700;
}

/* ═══ LOG PANEL ═══ */
.log-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    height: 380px;
    overflow: hidden;
}

.log-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 1px;
    flex-shrink: 0;
}

.btn-clear {
    font-family: var(--font);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-dim);
    border-radius: 5px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all var(--transition);
}
.btn-clear:hover { background: rgba(255,255,255,0.09); color: var(--text); }

.log-panel__body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 18px;
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 1.75;
    color: var(--text-dim);
    min-height: 0;
    scroll-behavior: smooth;
}

.log-entry {
    padding: 2px 0;
    animation: logIn 0.18s ease;
    word-break: break-word;
}

.log-entry .ts { color: var(--text-muted); margin-right: 6px; font-size: 0.75rem; }
.log-entry .green-text { color: var(--green); }
.log-entry .red-text { color: var(--red); }

/* ═══ RESULTS PANEL ═══ */
.results-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    display: none;
}

.results-panel.visible { display: block; }

.results-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 0.8px;
}

.btn-csv {
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-dim);
    border-radius: 5px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all var(--transition);
}
.btn-csv:hover { background: rgba(255,255,255,0.09); color: var(--text); }

.results-panel__body { overflow-x: hidden; max-height: 380px; overflow-y: auto; }

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    table-layout: fixed;
}

/* Fixed column widths so nothing overflows horizontally */
.results-table colgroup col:nth-child(1) { width: 3%; }   /* # */
.results-table colgroup col:nth-child(2) { width: 20%; }  /* NAME */
.results-table colgroup col:nth-child(3) { width: 11%; }  /* CATEGORY */
.results-table colgroup col:nth-child(4) { width: 24%; }  /* ADDRESS */
.results-table colgroup col:nth-child(5) { width: 12%; }  /* PHONE */
.results-table colgroup col:nth-child(6) { width: 5%; }   /* WEBSITE */
.results-table colgroup col:nth-child(7) { width: 5%; }   /* MAPS */
.results-table colgroup col:nth-child(8) { width: 20%; }  /* ADDED */

.results-table th {
    position: sticky; top: 0; z-index: 2;
    background: #1e1e1e;
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.results-table td {
    padding: 7px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    color: var(--text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--transition);
}

.results-table tbody tr { transition: background var(--transition); }
.results-table tbody tr:hover { background: rgba(0,255,65,0.03); }
.results-table tbody tr:hover td { color: var(--text); }

.results-table td a { color: var(--green); text-decoration: none; transition: opacity var(--transition); }
.results-table td a:hover { opacity: 0.75; text-decoration: underline; }

/* ═══ MISSION CARDS ═══ */
.mission-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.02);
    transition: border-color var(--transition), background var(--transition);
}
.mission-card:hover { border-color: #3a3a3a; background: rgba(255,255,255,0.03); }

.mission-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mission-card__city { font-weight: 700; color: #fff; font-size: 0.95rem; letter-spacing: 0.5px; }
.mission-card__bottom { display: flex; justify-content: space-between; align-items: center; }

.mission-card__stats {
    display: flex;
    gap: 18px;
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.mission-card__actions { display: flex; gap: 6px; }

.empty-msg { text-align: center; color: var(--text-muted); padding: 20px 0; font-size: 0.85rem; }

/* ═══ ANIMATIONS ═══ */
@keyframes glowPulse {
    0%,100% { text-shadow: 0 0 8px rgba(0,255,65,0.5), 0 0 16px rgba(0,255,65,0.25); }
    50% { text-shadow: 0 0 14px rgba(0,255,65,0.75), 0 0 28px rgba(0,255,65,0.4); }
}

@keyframes glowWhite {
    0%,100% { text-shadow: 0 0 6px rgba(224,224,224,0.3); }
    50% { text-shadow: 0 0 10px rgba(224,224,224,0.5), 0 0 20px rgba(224,224,224,0.2); }
}

@keyframes barPulse {
    0%,100% { box-shadow: 0 0 8px rgba(0,255,65,0.35), 0 0 4px rgba(0,255,65,0.5); }
    50% { box-shadow: 0 0 18px rgba(0,255,65,0.6), 0 0 6px rgba(0,255,65,0.8); }
}

@keyframes catBounce {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

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

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes tabGlow {
    0%,100% { box-shadow: 0 0 4px rgba(0,255,65,0.3); }
    50% { box-shadow: 0 0 14px rgba(0,255,65,0.65); }
}

@keyframes fadeInRow {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes logIn {
    from { opacity: 0; transform: translateX(-4px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Only NEW entries animate — existing entries stay static */
.log-entry--new {
    animation: logSlideIn 0.22s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes logSlideIn {
    from {
        opacity: 0;
        transform: translateY(6px);
        background: rgba(0, 255, 65, 0.06);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        background: transparent;
    }
}

.new-row { animation: fadeInRow 0.32s ease both; }

/* ═══ MOBILE ═══ */
@media (max-width: 768px) {
    html { font-size: 15px; }

    body {
        overflow: visible;
        height: auto;
        min-height: 100vh;
        display: block;
    }

    .tab-bar {
        position: sticky;
        top: 0;
        z-index: 200;
    }

    .page {
        display: none;
        overflow: visible;
        height: auto;
        padding: 14px 14px 80px;
        animation: pageFadeIn 0.28s ease;
    }

    .page.active { display: block; }

    .page > * {
        max-width: 100%;
        margin-bottom: 14px;
    }
    .page > *:last-child { margin-bottom: 0; }
    .brand-hero__cat { font-size: 2.4rem; }
    .brand-hero__title { font-size: 1.6rem; letter-spacing: 5px; }
    .brand-hero__sub { font-size: 0.65rem; letter-spacing: 3px; }
    .brand-hero { padding: 12px 0 0; }
    .panel { padding: 16px 14px; width: 100%; max-width: 100vw; overflow-x: auto; }
    .city-input { font-size: 1rem; padding: 13px 16px; }
    .btn-start { padding: 15px 0; font-size: 0.95rem; }
    .tab { font-size: 0.82rem; padding: 13px 0; letter-spacing: 1px; }
    .live-header { flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; }
    .live-header__right { width: 100%; justify-content: space-between; }
    .mission-select { width: 100%; }
    .mission-table { white-space: nowrap; width: 100%; }
    .live-header__top { flex-direction: column; align-items: stretch; width: 100%; }
    .results-panel { width: 100%; }
    /* Mobile: side-scroll with compact columns */
    .results-panel__body { max-height: 300px; overflow-x: auto; overflow-y: auto; }
    .results-table { table-layout: auto; min-width: 480px; }
    .results-table th { font-size: 0.6rem; padding: 5px 6px; white-space: nowrap; }
    .results-table td { font-size: 0.7rem; padding: 5px 6px; white-space: nowrap; }
    /* # column — just wide enough for 3 digits */
    .results-table th:first-child,
    .results-table td:first-child { width: 28px; min-width: 28px; text-align: center; padding: 5px 4px; }
    .log-panel { flex: none; height: 200px; min-height: 200px; width: 100%; }
    .live-progress { width: 100%; }
}

@media (max-width: 480px) {
    .tab { font-size: 0.75rem; letter-spacing: 0.8px; }
    .panel__title { font-size: 0.9rem; }
    .city-input { font-size: 0.95rem; }
}