:root {
    color-scheme: dark;
    --evo-bg: #080b0d;
    --evo-panel: rgba(12, 17, 20, .91);
    --evo-panel-soft: rgba(12, 17, 20, .76);
    --evo-border: rgba(255, 255, 255, .13);
    --evo-text: #f5f3ed;
    --evo-muted: #a6afb3;
    --evo-accent: #ff6b35;
    --evo-accent-soft: rgba(255, 107, 53, .17);
    --evo-radius: 14px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-width: 320px;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--evo-bg);
}

body {
    color: var(--evo-text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.evolution-app {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: 100%;
    height: 100dvh;
    background: var(--evo-bg);
}

.evolution-header {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--evo-border);
    background: #0b0e10;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .24);
}

.evolution-brand,
.evolution-brand > a,
.evolution-brand-actions,
.mode-switch,
.period-toolbar,
.period-scroller,
.view-mode,
.direction-control {
    display: flex;
    align-items: center;
}

.evolution-brand {
    flex: 0 0 auto;
    gap: 18px;
}

.evolution-brand > a {
    gap: 10px;
    color: var(--evo-text);
    text-decoration: none;
}

.evolution-brand-actions {
    gap: 8px;
}

.evolution-menu-toggle {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid var(--evo-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .035);
    color: var(--evo-text);
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
}

.evolution-menu-toggle:hover,
.evolution-menu-toggle.is-active {
    border-color: rgba(255, 107, 53, .48);
    background: var(--evo-accent-soft);
}

.evolution-menu-toggle i {
    position: relative;
    width: 14px;
    height: 10px;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
}

.evolution-menu-toggle i::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 0;
    left: 0;
    border-top: 1px solid currentColor;
}

.evolution-menu-toggle.is-active i {
    border-color: transparent;
}

.evolution-menu-toggle.is-active i::before,
.evolution-menu-toggle.is-active i::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 0;
    left: 0;
    border-top: 1px solid currentColor;
    transform: rotate(45deg);
}

.evolution-menu-toggle.is-active i::after {
    transform: rotate(-45deg);
}

.evolution-navigation {
    position: absolute;
    z-index: 50;
    top: calc(100% + 8px);
    left: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(520px, calc(100vw - 36px));
    max-height: min(70vh, 460px);
    gap: 3px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--evo-border);
    border-radius: 14px;
    background: rgba(11, 14, 16, .98);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .58);
    backdrop-filter: blur(18px);
}

.evolution-navigation[hidden] {
    display: none;
}

.evolution-navigation-link {
    min-width: 0;
    padding: 11px 12px;
    border-radius: 8px;
    color: var(--evo-muted);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
}

.evolution-navigation-link:hover {
    background: rgba(255, 255, 255, .06);
    color: var(--evo-text);
}

.evolution-navigation-link.is-active {
    background: var(--evo-accent-soft);
    color: #ffc3ac;
}

.evolution-brand-mark {
    position: relative;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 107, 53, .45);
    border-radius: 50% 48% 52% 46%;
    background:
        radial-gradient(circle at 58% 68%, #ffd166 0 9%, transparent 10%),
        radial-gradient(circle at 44% 55%, #ff6b35 0 22%, transparent 23%),
        radial-gradient(circle at 50% 47%, rgba(255, 107, 53, .22), transparent 65%);
    box-shadow: 0 0 28px rgba(255, 107, 53, .17);
}

.evolution-brand strong,
.evolution-brand small {
    display: block;
}

.evolution-brand strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    letter-spacing: -.02em;
}

.evolution-brand small {
    margin-top: 2px;
    color: var(--evo-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.mode-switch,
.view-mode {
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--evo-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .035);
}

.mode-switch a,
.view-mode button {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--evo-muted);
    cursor: pointer;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .03em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.mode-switch a {
    padding: 8px 10px;
}

.view-mode button {
    padding: 8px 9px;
}

.mode-switch .is-active,
.view-mode .is-active {
    background: #f3f0e8;
    color: #101416;
}

.period-toolbar {
    min-width: 0;
    gap: 10px;
}

.period-scroller {
    min-width: 0;
    gap: 3px;
}

.period-scroller button {
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--evo-muted);
    cursor: pointer;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.period-scroller button:hover {
    color: var(--evo-text);
    background: rgba(255, 255, 255, .05);
}

.period-scroller button.is-active {
    border-color: rgba(255, 107, 53, .42);
    background: var(--evo-accent-soft);
    color: #ffc3ac;
}

.direction-control {
    gap: 6px;
    min-height: 38px;
    padding: 3px 4px 3px 9px;
    border: 1px solid var(--evo-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .035);
    color: var(--evo-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.direction-control select {
    min-height: 28px;
    padding: 0 24px 0 9px;
    border: 0;
    border-radius: 999px;
    background: #242a2d;
    color: var(--evo-text);
    cursor: pointer;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: none;
}

.direction-control select:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid #ff7845;
    border-radius: 999px;
    background: var(--evo-accent);
    color: #130b07;
    cursor: pointer;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(255, 107, 53, .17);
}

.play-button:hover {
    background: #ff7f50;
}

.play-button:disabled {
    cursor: not-allowed;
    filter: grayscale(.55);
    opacity: .55;
}

.play-button.is-loading:disabled {
    cursor: wait;
}

.play-icon {
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid currentColor;
}

.play-button.is-playing .play-icon {
    width: 8px;
    height: 10px;
    border: 0;
    border-right: 3px solid currentColor;
    border-left: 3px solid currentColor;
}

.play-button.is-loading .play-icon {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(19, 11, 7, .3);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: evo-spin .75s linear infinite;
}

.evolution-map-shell {
    position: relative;
    min-height: 0;
    overflow: hidden;
}

.evolution-map,
.maplibregl-map {
    width: 100%;
    height: 100%;
}

.maplibregl-canvas {
    outline: none;
}

.maplibregl-ctrl-top-right {
    top: 90px;
    right: 10px;
}

.maplibregl-ctrl-group {
    overflow: hidden;
    border: 1px solid var(--evo-border);
    border-radius: 10px;
    background: rgba(11, 15, 18, .87);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .26);
}

.maplibregl-ctrl-group button {
    background-color: transparent;
}

.maplibregl-ctrl-group button + button {
    border-top-color: var(--evo-border);
}

.maplibregl-ctrl-icon {
    filter: invert(1) brightness(1.5);
}

.maplibregl-ctrl-attrib {
    border-radius: 6px 0 0;
    background: rgba(7, 10, 12, .74) !important;
    color: #d3d7d8;
}

.maplibregl-ctrl-attrib a {
    color: #fff;
}

.active-date-card,
.counter-strip,
.sensor-legend,
.timeline-dock,
.info-button,
.info-panel,
.firms-warning {
    position: absolute;
    z-index: 5;
}

.active-date-card {
    top: 18px;
    left: 18px;
    min-width: 230px;
    padding: 15px 17px 14px;
    border: 1px solid var(--evo-border);
    border-radius: var(--evo-radius);
    background: linear-gradient(140deg, rgba(13, 18, 21, .96), rgba(13, 18, 21, .79));
    box-shadow: 0 12px 35px rgba(0, 0, 0, .3);
    backdrop-filter: blur(14px);
}

.active-date-card span,
.active-date-card strong,
.active-date-card small {
    display: block;
}

.active-date-card span,
.eyebrow {
    color: #ff9d78;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.active-date-card strong {
    margin-top: 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 2.2vw, 34px);
    font-weight: 500;
    letter-spacing: -.035em;
}

.active-date-card small {
    margin-top: 4px;
    color: var(--evo-muted);
    font-size: 11px;
}

.counter-strip {
    top: 18px;
    right: 62px;
    display: grid;
    grid-template-columns: repeat(5, minmax(72px, 1fr));
    min-width: min(560px, calc(100vw - 400px));
    overflow: hidden;
    border: 1px solid var(--evo-border);
    border-radius: var(--evo-radius);
    background: var(--evo-panel-soft);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .24);
    backdrop-filter: blur(14px);
}

.counter-strip article {
    min-width: 0;
    padding: 12px 13px;
}

.counter-strip article + article {
    border-left: 1px solid var(--evo-border);
}

.counter-strip span,
.counter-strip strong {
    display: block;
}

.counter-strip span {
    overflow: hidden;
    color: var(--evo-muted);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .06em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.counter-strip strong {
    margin-top: 5px;
    color: var(--evo-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: 500;
}

.sensor-legend {
    right: 18px;
    bottom: 94px;
    width: 236px;
    overflow: hidden;
    border: 1px solid var(--evo-border);
    border-radius: var(--evo-radius);
    background: var(--evo-panel);
    box-shadow: 0 14px 38px rgba(0, 0, 0, .35);
    backdrop-filter: blur(14px);
}

.legend-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 14px 10px;
}

.legend-heading strong {
    display: block;
    margin-top: 4px;
    font-size: 12px;
}

.legend-heading button {
    padding: 3px;
    border: 0;
    background: transparent;
    color: var(--evo-muted);
    cursor: pointer;
    font-size: 10px;
}

.legend-body {
    padding: 0 14px 13px;
}

.legend-body[hidden] {
    display: none;
}

.legend-body label,
.legend-effis {
    display: grid;
    grid-template-columns: 16px 12px 1fr;
    align-items: center;
    gap: 7px;
    min-height: 27px;
    color: #dfe3e4;
    font-size: 11px;
    cursor: pointer;
}

.legend-body input {
    width: 13px;
    height: 13px;
    margin: 0;
    accent-color: var(--evo-accent);
}

.sensor-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.sensor-snpp {
    color: #30d5ff;
    background: #30d5ff;
}

.sensor-noaa20 {
    color: #ff9f43;
    background: #ff9f43;
}

.sensor-noaa21 {
    color: #ed5cff;
    background: #ed5cff;
}

.sensor-modis {
    color: #ffe66d;
    background: #ffe66d;
}

.sensor-other {
    color: #c0c7ca;
    background: #c0c7ca;
}

.legend-effis {
    grid-template-columns: 16px 12px 1fr;
    margin-top: 3px;
    padding-top: 6px;
    border-top: 1px solid var(--evo-border);
    cursor: default;
}

.legend-effis::before {
    content: "";
}

.legend-effis i {
    width: 11px;
    height: 9px;
    border: 1px solid rgba(255, 111, 87, .95);
    border-radius: 2px;
    background: rgba(181, 49, 37, .38);
}

.legend-body p {
    margin: 7px 0 0;
    color: #8d989c;
    font-size: 9px;
    line-height: 1.45;
}

.timeline-dock {
    right: 274px;
    bottom: 24px;
    left: 274px;
    display: grid;
    grid-template-columns: 34px minmax(130px, 1fr) 34px auto;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 8px 10px 7px;
    border: 1px solid var(--evo-border);
    border-radius: 999px;
    background: rgba(9, 13, 15, .92);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .38);
    backdrop-filter: blur(14px);
}

.timeline-dock button {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--evo-border);
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.timeline-dock button:disabled {
    cursor: default;
    opacity: .28;
}

.timeline-track {
    display: grid;
    align-self: stretch;
    align-content: center;
    min-width: 0;
}

.timeline-dock input[type="range"] {
    --timeline-progress: 100%;
    appearance: none;
    width: 100%;
    height: 5px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(
        to right,
        var(--evo-accent) 0 var(--timeline-progress),
        rgba(255, 255, 255, .18) var(--timeline-progress) 100%
    );
    cursor: pointer;
}

.timeline-dock input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    border: 3px solid #101416;
    border-radius: 50%;
    background: #fff4eb;
    box-shadow: 0 0 0 2px var(--evo-accent), 0 0 14px rgba(255, 107, 53, .55);
}

.timeline-dock input[type="range"]::-moz-range-thumb {
    width: 11px;
    height: 11px;
    border: 3px solid #101416;
    border-radius: 50%;
    background: #fff4eb;
    box-shadow: 0 0 0 2px var(--evo-accent), 0 0 14px rgba(255, 107, 53, .55);
}

.timeline-axis {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    margin-top: 7px;
    color: #778286;
    font-size: 8px;
    letter-spacing: .04em;
}

.timeline-axis strong {
    color: #ff9d78;
    font-size: 8px;
    font-weight: 800;
}

.timeline-axis span:last-child {
    text-align: right;
}

.timeline-dock output {
    min-width: 74px;
    padding-right: 5px;
    color: #e7ebec;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .04em;
    text-align: right;
    white-space: nowrap;
}

.map-message {
    position: absolute;
    z-index: 9;
    top: 50%;
    left: 50%;
    display: grid;
    justify-items: center;
    width: min(360px, calc(100% - 40px));
    padding: 22px;
    transform: translate(-50%, -50%);
    border: 1px solid var(--evo-border);
    border-radius: 16px;
    background: rgba(9, 13, 15, .94);
    text-align: center;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

.map-message[hidden] {
    display: none;
}

.map-message strong {
    margin-top: 10px;
    font-size: 14px;
}

.map-message small {
    margin-top: 5px;
    color: var(--evo-muted);
    font-size: 11px;
    line-height: 1.45;
}

.map-message.is-error {
    border-color: rgba(255, 95, 95, .5);
}

.loading-spinner {
    width: 25px;
    height: 25px;
    border: 2px solid rgba(255, 255, 255, .18);
    border-top-color: var(--evo-accent);
    border-radius: 50%;
    animation: evo-spin .8s linear infinite;
}

@keyframes evo-spin {
    to { transform: rotate(360deg); }
}

.info-button {
    bottom: 25px;
    left: 18px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--evo-border);
    border-radius: 999px;
    background: var(--evo-panel);
    color: #dce1e2;
    cursor: pointer;
    font-size: 10px;
    font-weight: 750;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}

.info-panel {
    bottom: 78px;
    left: 18px;
    width: min(340px, calc(100% - 36px));
    padding: 18px;
    border: 1px solid var(--evo-border);
    border-radius: var(--evo-radius);
    background: rgba(10, 14, 17, .96);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .42);
    backdrop-filter: blur(16px);
}

.info-panel[hidden] {
    display: none;
}

.info-panel > button {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--evo-muted);
    cursor: pointer;
    font-size: 22px;
}

.info-panel h2 {
    margin: 6px 25px 10px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-weight: 500;
}

.info-panel p {
    margin: 9px 0 0;
    color: #c3c9cb;
    font-size: 11px;
    line-height: 1.55;
}

.info-panel .source-note {
    padding-top: 9px;
    border-top: 1px solid var(--evo-border);
    color: #929c9f;
    font-size: 9px;
}

.firms-warning {
    right: 18px;
    bottom: 17px;
    width: 238px;
    margin: 0;
    color: rgba(230, 234, 235, .72);
    font-size: 9px;
    line-height: 1.35;
    text-align: right;
    text-shadow: 0 1px 8px #000;
}

.maplibregl-popup {
    z-index: 12;
    max-width: 300px !important;
}

.maplibregl-popup-content {
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 13px;
    background: #101518;
    color: var(--evo-text);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .5);
}

.maplibregl-popup-tip {
    border-top-color: #101518 !important;
    border-bottom-color: #101518 !important;
}

.maplibregl-popup-close-button {
    z-index: 2;
    width: 30px;
    height: 30px;
    color: #d8dddf;
    font-size: 20px;
}

.hotspot-popup {
    min-width: 226px;
    padding: 14px;
}

.hotspot-popup .popup-kicker,
.effis-popup .popup-kicker {
    margin: 0 30px 4px 0;
    color: #ff9d78;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hotspot-popup h3,
.effis-popup h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 500;
}

.hotspot-popup dl,
.effis-popup dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 12px;
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--evo-border);
    font-size: 10px;
}

.hotspot-popup dt,
.effis-popup dt {
    color: var(--evo-muted);
}

.hotspot-popup dd,
.effis-popup dd {
    margin: 0;
    text-align: right;
}

.effis-popup {
    min-width: 218px;
    padding: 13px 14px;
}

.effis-popup .popup-kicker {
    color: #ff8d7b;
}

.effis-popup h3 {
    max-width: 230px;
    font-size: 17px;
    line-height: 1.15;
}

.effis-hover-popup {
    pointer-events: none;
}

.hotspot-popup .popup-location {
    margin: 10px 0 0;
    color: #cdd2d4;
    font-size: 10px;
    line-height: 1.4;
}

.hotspot-popup .popup-loading {
    color: var(--evo-muted);
}

@media (max-width: 1280px) {
    .evolution-header {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 9px 14px 10px;
    }

    .evolution-brand {
        justify-content: space-between;
    }

    .evolution-navigation {
        left: 14px;
    }

    .period-toolbar {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .period-scroller {
        flex: 1 1 auto;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .period-scroller::-webkit-scrollbar {
        display: none;
    }

    .counter-strip {
        top: 15px;
        right: 55px;
        min-width: 540px;
    }
}

@media (max-width: 820px) {
    .evolution-header {
        gap: 7px;
        padding: 8px 10px;
    }

    .evolution-brand strong {
        font-size: 15px;
    }

    .evolution-brand small {
        font-size: 8px;
    }

    .evolution-brand-mark {
        width: 30px;
        height: 30px;
    }

    .mode-switch a {
        padding: 7px 9px;
        font-size: 10px;
    }

    .evolution-menu-toggle {
        min-height: 32px;
        padding: 0 10px;
    }

    .evolution-navigation {
        top: calc(100% + 5px);
        right: 10px;
        left: 10px;
        width: auto;
    }

    .period-toolbar {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 7px;
    }

    .period-scroller {
        grid-column: 1 / -1;
        order: -1;
        width: calc(100vw - 20px);
        padding-bottom: 1px;
    }

    .period-scroller button {
        min-height: 32px;
        padding: 0 10px;
        font-size: 10px;
    }

    .view-mode {
        justify-self: start;
    }

    .view-mode button {
        padding: 7px 9px;
        font-size: 10px;
    }

    .direction-control {
        justify-self: stretch;
        min-width: 0;
        padding-left: 4px;
    }

    .direction-control > span {
        display: none;
    }

    .direction-control select {
        width: 100%;
        min-width: 0;
        padding-right: 18px;
    }

    .play-button {
        min-height: 34px;
        padding: 0 12px;
    }

    .maplibregl-ctrl-top-right {
        top: 92px;
        right: 5px;
    }

    .active-date-card {
        top: 10px;
        left: 10px;
        min-width: 190px;
        padding: 11px 13px;
    }

    .active-date-card strong {
        font-size: 23px;
    }

    .counter-strip {
        top: 78px;
        right: 10px;
        left: 10px;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        min-width: 0;
    }

    .counter-strip article {
        padding: 9px 7px;
    }

    .counter-strip span {
        font-size: 7px;
        letter-spacing: .02em;
    }

    .counter-strip strong {
        font-size: 15px;
    }

    .sensor-legend {
        right: 10px;
        bottom: 100px;
        width: 206px;
    }

    .legend-heading {
        padding: 10px 11px 8px;
    }

    .legend-body {
        padding: 0 11px 10px;
    }

    .timeline-dock {
        right: 10px;
        bottom: calc(36px + var(--safe-bottom));
        left: 10px;
        grid-template-columns: 31px minmax(90px, 1fr) 31px auto;
        min-height: 59px;
        gap: 7px;
    }

    .timeline-dock button {
        width: 31px;
        height: 31px;
    }

    .timeline-dock output {
        min-width: 62px;
        font-size: 9px;
    }

    .info-button {
        bottom: calc(94px + var(--safe-bottom));
        left: 10px;
    }

    .info-panel {
        bottom: calc(142px + var(--safe-bottom));
        left: 10px;
        width: min(330px, calc(100% - 20px));
    }

    .firms-warning {
        right: 10px;
        bottom: calc(11px + var(--safe-bottom));
        left: 10px;
        width: auto;
        font-size: 8px;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .evolution-brand > a span:last-child small {
        display: none;
    }

    .evolution-navigation {
        grid-template-columns: 1fr;
    }

    .counter-strip {
        grid-template-columns: repeat(4, 1fr);
    }

    .counter-strip article:nth-child(5) {
        position: absolute;
        top: 0;
        right: 0;
        transform: translateY(-110%);
        border: 1px solid var(--evo-border);
        border-radius: 9px;
        background: var(--evo-panel);
    }

    .counter-strip article:nth-child(4) {
        border-left: 1px solid var(--evo-border);
    }

    .sensor-legend {
        bottom: calc(101px + var(--safe-bottom));
    }
}

@media (max-width: 420px) {
    .evolution-brand > a > span:last-child {
        display: none;
    }

    .evolution-brand {
        gap: 8px;
    }

    .evolution-brand-actions {
        gap: 5px;
    }
}

@media (max-width: 360px) {
    .period-toolbar {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .view-mode {
        grid-row: 2;
        grid-column: 1;
    }

    .play-button {
        grid-row: 2;
        grid-column: 2;
    }

    .direction-control {
        grid-row: 3;
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
