/* ═══════════════════════════════════════════════════════════════
   ECOFEAT — Design System v3.0
   Dark, professional, command-center aesthetic
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Surfaces */
    --bg:         #0a0e0d;
    --surface-1:  #0f1413;
    --surface-2:  #161c1a;
    --surface-3:  #1f2725;
    --surface-4:  #2a3431;

    /* Borders */
    --border:        rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.10);
    --border-accent: rgba(74, 222, 128, 0.25);

    /* Text */
    --fg:        #e8efe9;
    --fg-muted:  #8fa39b;
    --fg-dim:    #5a6b64;

    /* Accent (eco green) */
    --accent:        #4ade80;
    --accent-strong: #22c55e;
    --accent-soft:   rgba(74, 222, 128, 0.12);
    --accent-glow:   rgba(74, 222, 128, 0.35);

    /* AQI semantic colors */
    --aqi-1: #4ade80;  /* good      */
    --aqi-2: #facc15;  /* fair      */
    --aqi-3: #fb923c;  /* moderate  */
    --aqi-4: #ef4444;  /* poor      */
    --aqi-5: #a855f7;  /* very poor */

    /* Typography */
    --font-ui:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

    /* Layout */
    --header-h:    52px;
    --rail-left-w: 280px;
    --rail-right-w: 360px;

    /* Effects */
    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 14px;
    --shadow-1:  0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2:  0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-3:  0 20px 60px rgba(0, 0, 0, 0.6);

    --t-fast: 0.15s ease;
    --t:      0.22s ease;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input {
    font-family: inherit;
    color: inherit;
}

a { color: inherit; text-decoration: none; }

.ico { display: inline-block; vertical-align: middle; }

/* ── Scrollbars ─────────────────────────────────────────────── */
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: var(--surface-3);
    border-radius: 4px;
}
*::-webkit-scrollbar-thumb:hover { background: var(--surface-4); }

/* ═══════════════════════════════════════════════════════════════
   TOPBAR
   ═══════════════════════════════════════════════════════════════ */
.topbar {
    height: var(--header-h);
    flex: 0 0 var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: var(--surface-1);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 50;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-mark {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #0a1a10;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 1px var(--border-accent), 0 4px 12px rgba(74, 222, 128, 0.15);
}
.brand-name {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.01em;
}
.brand-tag {
    font-size: 11px;
    color: var(--fg-dim);
    padding-left: 10px;
    margin-left: 4px;
    border-left: 1px solid var(--border);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
@media (max-width: 760px) { .brand-tag { display: none; } }

.topbar-nav { display: flex; gap: 6px; align-items: center; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 8px;
    color: var(--fg-muted);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: var(--t-fast);
}
.btn-ghost:hover {
    background: var(--surface-2);
    color: var(--fg);
    border-color: var(--border-strong);
}
.btn-ghost.is-active {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--border-accent);
}

.btn-icon {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border-radius: 8px;
    color: var(--fg-muted);
    transition: var(--t-fast);
}
.btn-icon:hover {
    background: var(--surface-2);
    color: var(--fg);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--accent);
    color: #0a1a10;
    font-weight: 600;
    font-size: 13px;
    transition: var(--t-fast);
}
.btn-primary:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--accent-glow);
}

/* ═══════════════════════════════════════════════════════════════
   WORKSPACE
   ═══════════════════════════════════════════════════════════════ */
.workspace {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: var(--rail-left-w) 1fr var(--rail-right-w);
    min-height: 0;
}

@media (max-width: 1100px) {
    :root { --rail-left-w: 240px; --rail-right-w: 300px; }
}
@media (max-width: 900px) {
    .workspace { grid-template-columns: 220px 1fr; }
    .rail-right { display: none; }
}

/* ── Left rail ─────────────────────────────────────────────── */
.rail-left {
    background: var(--surface-1);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.rail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 10px;
}
.rail-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--fg-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.rail-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-muted);
    background: var(--surface-2);
    padding: 2px 7px;
    border-radius: 99px;
    min-width: 22px;
    text-align: center;
}

/* ── Search ─────────────────────────────────────────────────── */
.search-block {
    margin: 0 12px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 4px 0 10px;
    transition: var(--t-fast);
}
.search-block:focus-within {
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-ico { color: var(--fg-dim); flex-shrink: 0; }
.search-block input {
    flex: 1 1 auto;
    background: transparent;
    border: none;
    outline: none;
    padding: 9px 4px;
    font-size: 13px;
    min-width: 0;
}
.search-block input::placeholder { color: var(--fg-dim); }
.search-go {
    width: 28px; height: 28px;
    display: grid; place-items: center;
    background: var(--accent);
    color: #0a1a10;
    border-radius: 6px;
    transition: var(--t-fast);
}
.search-go:hover { background: var(--accent-strong); }

/* ── Zones list ─────────────────────────────────────────────── */
.zones-list {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zone-tile {
    --tile-color: var(--accent);
    position: relative;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    cursor: pointer;
    transition: var(--t-fast);
    overflow: hidden;
}
.zone-tile::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--tile-color);
    transition: var(--t-fast);
}
.zone-tile:hover {
    border-color: var(--border-strong);
    background: var(--surface-3);
}
.zone-tile.is-active {
    background: color-mix(in srgb, var(--tile-color) 8%, var(--surface-2));
    border-color: color-mix(in srgb, var(--tile-color) 40%, transparent);
}
.zone-tile.is-active::before { width: 4px; box-shadow: 0 0 14px var(--tile-color); }

.zone-tile__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.zone-tile__name {
    font-weight: 600;
    font-size: 13px;
    color: var(--fg);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.zone-tile__aqi {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 18px;
    color: var(--tile-color);
    line-height: 1;
    padding: 2px 8px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--tile-color) 12%, transparent);
    flex-shrink: 0;
}
.zone-tile__meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--fg-muted);
}
.zone-tile__meta span { display: inline-flex; gap: 4px; }
.zone-tile__meta b {
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--fg);
}
.zone-tile__label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tile-color);
    font-weight: 600;
    margin-bottom: 6px;
}

/* ── Empty state ────────────────────────────────────────────── */
.zones-empty {
    padding: 28px 20px;
    text-align: center;
    color: var(--fg-muted);
}
.zones-empty h4 {
    margin: 12px 0 6px;
    font-size: 13px;
    color: var(--fg);
    font-weight: 600;
}
.zones-empty p {
    margin: 0;
    font-size: 12px;
    color: var(--fg-dim);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   MAP STAGE
   ═══════════════════════════════════════════════════════════════ */
.map-stage {
    position: relative;
    background: var(--surface-1);
    min-height: 0;
    overflow: hidden;
    height: 100%;
}
#map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Yandex controls — minimize visual noise */
.ymaps-2-1-79-map-copyrights-promo,
.ymaps-2-1-79-copyright,
[class*="-copyrights-promo"],
[class*="-copyright"] { opacity: 0.5; }

/* Floating draw button */
.fab-draw {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: var(--accent);
    color: #0a1a10;
    font-weight: 600;
    font-size: 13.5px;
    border-radius: 99px;
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.35), 0 2px 6px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: var(--t);
}
.fab-draw:hover {
    background: var(--accent-strong);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 14px 38px rgba(74, 222, 128, 0.45), 0 2px 8px rgba(0, 0, 0, 0.5);
}
.fab-draw.is-active {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}
.fab-draw.is-active .fab-label::before {
    content: 'Завершите двойным кликом — ';
    opacity: 0.85;
}

/* Map status pill */
.map-status {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 8px 16px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: 99px;
    font-size: 12px;
    color: var(--fg);
    box-shadow: var(--shadow-2);
    z-index: 15;
    backdrop-filter: blur(8px);
}
.map-status[data-tone="error"] {
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}
.map-status[data-tone="success"] {
    border-color: rgba(74, 222, 128, 0.4);
    color: var(--accent);
}

/* Legend */
.legend {
    position: absolute;
    bottom: 24px;
    right: 16px;
    padding: 12px 14px;
    background: rgba(15, 20, 19, 0.85);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    z-index: 1000;
    font-size: 11px;
    color: var(--fg-muted);
    min-width: 130px;
}
.legend-title {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg-dim);
    margin-bottom: 8px;
}
.legend-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
}
.dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   INSPECTOR (right rail)
   ═══════════════════════════════════════════════════════════════ */
.rail-right {
    background: var(--surface-1);
    border-left: 1px solid var(--border);
    overflow-y: auto;
    min-height: 0;
}

.inspector-empty {
    padding: 40px 24px;
    text-align: center;
    color: var(--fg-muted);
}
.inspector-empty h3 {
    margin: 14px 0 8px;
    color: var(--fg);
    font-weight: 600;
    font-size: 15px;
}
.inspector-empty p {
    font-size: 12.5px;
    color: var(--fg-dim);
    margin: 0 0 22px;
    line-height: 1.55;
}

.onboarding-steps {
    text-align: left;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12px;
    color: var(--fg);
}
.step-num {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
    font-size: 11px;
    font-family: var(--font-mono);
}

/* Inspector content */
.inspector {
    --c: var(--accent);
    padding: 18px 18px 28px;
}
.inspector-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.inspector-title {
    flex: 1;
    min-width: 0;
}
.inspector-eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c);
    margin-bottom: 4px;
}
.inspector-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--fg);
    line-height: 1.2;
    word-break: break-word;
}
.inspector-actions {
    display: flex;
    gap: 4px;
}
.inspector-actions button {
    width: 30px; height: 30px;
    display: grid; place-items: center;
    border-radius: 6px;
    color: var(--fg-muted);
    transition: var(--t-fast);
}
.inspector-actions button:hover {
    background: var(--surface-2);
    color: var(--fg);
}
.inspector-actions .danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

/* AQI hero */
.aqi-hero {
    padding: 18px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--c) 10%, var(--surface-2));
    border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.aqi-hero__value {
    font-family: var(--font-mono);
    font-size: 42px;
    font-weight: 700;
    color: var(--c);
    line-height: 1;
    letter-spacing: -0.02em;
}
.aqi-hero__meta { flex: 1; min-width: 0; }
.aqi-hero__label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg-dim);
    margin-bottom: 4px;
}
.aqi-hero__status {
    font-size: 15px;
    font-weight: 600;
    color: var(--c);
}
.aqi-hero__area {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-muted);
    margin-top: 4px;
}

/* Metric grid */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}
.metric {
    padding: 11px 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.metric-label {
    font-size: 10px;
    color: var(--fg-dim);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.metric-value {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--fg);
    margin-top: 4px;
}
.metric-unit {
    font-size: 10px;
    color: var(--fg-dim);
    font-family: var(--font-ui);
    font-weight: 400;
    margin-left: 3px;
}

/* Forecast */
.forecast-block { margin-top: 6px; }
.forecast-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--fg-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.forecast-chart {
    height: 170px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   COMPARE DRAWER
   ═══════════════════════════════════════════════════════════════ */
.compare-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t);
    z-index: 80;
    backdrop-filter: blur(4px);
}
.compare-backdrop.is-open { opacity: 1; pointer-events: auto; }

.compare-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(440px, 100vw);
    background: var(--surface-1);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-3);
    transform: translateX(100%);
    transition: transform var(--t);
    z-index: 90;
    display: flex;
    flex-direction: column;
}
.compare-drawer.is-open { transform: translateX(0); }

.compare-drawer__header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}
.compare-drawer__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
}
.compare-drawer__title .ico { color: var(--accent); }

.compare-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.compare-slot {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.compare-slot__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-dim);
}

.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}
.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    color: var(--fg);
    transition: var(--t-fast);
}
.file-upload-label:hover { background: var(--surface-3); border-color: var(--border-strong); }
.file-upload-filename {
    flex: 1;
    font-size: 11.5px;
    color: var(--fg-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

#canvas1, #canvas2, #canvas-result {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: block;
}

.compare-result-info {
    margin-top: 8px;
    padding: 10px 12px;
    background: var(--surface-2);
    border-radius: 8px;
    font-size: 12px;
    color: var(--fg-muted);
    min-height: 18px;
}

.compare-actions {
    margin-top: 4px;
    display: flex;
    justify-content: center;
}
.compare-actions .btn-primary { width: 100%; padding: 12px; }

/* ═══════════════════════════════════════════════════════════════
   GUIDE MODAL
   ═══════════════════════════════════════════════════════════════ */
.modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 100;
    padding: 20px;
}
.modal[hidden] { display: none; }

.modal-card {
    position: relative;
    background: var(--surface-1);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 32px 32px 28px;
    max-width: 640px;
    width: 100%;
    box-shadow: var(--shadow-3);
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
}
.modal-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.modal-lead {
    color: var(--fg-muted);
    font-size: 13.5px;
    margin: 0 0 24px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.guide-card {
    padding: 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--t-fast);
}
.guide-card:hover { border-color: var(--border-accent); }
.guide-card h4 {
    margin: 10px 0 6px;
    font-size: 14px;
    font-weight: 600;
}
.guide-card p {
    margin: 0;
    font-size: 12.5px;
    color: var(--fg-muted);
    line-height: 1.5;
}
.guide-card code {
    font-family: var(--font-mono);
    font-size: 11.5px;
    background: var(--surface-3);
    padding: 1px 5px;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .guide-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   TOASTS
   ═══════════════════════════════════════════════════════════════ */
.toasts {
    position: fixed;
    top: 70px;
    right: 16px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: 340px;
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-size: 12.5px;
    color: var(--fg);
    box-shadow: var(--shadow-2);
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: transform var(--t), opacity var(--t);
}
.toast.is-show { transform: translateX(0); opacity: 1; }
.toast .ico { flex-shrink: 0; }
.toast-success { border-color: rgba(74, 222, 128, 0.35); }
.toast-success .ico { color: var(--accent); }
.toast-error   { border-color: rgba(239, 68, 68, 0.35); }
.toast-error .ico   { color: #ef4444; }
.toast-info .ico    { color: var(--fg-muted); }

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes pulse-tile {
    0%, 100% { box-shadow: 0 0 0 0 var(--tile-color); }
    50%      { box-shadow: 0 0 0 6px transparent; }
}
.zone-tile.is-pulsing { animation: pulse-tile 1.2s ease infinite; }

@keyframes fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.inspector { animation: fade-in 0.25s ease; }

/* Skeleton shimmer */
@keyframes shimmer {
    0%   { background-position: -240px 0; }
    100% { background-position: 240px 0; }
}
.skeleton {
    background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%);
    background-size: 480px 100%;
    animation: shimmer 1.4s linear infinite;
    border-radius: 6px;
}
