:root {
    --bg: #f6f3ee;
    --surface: #ffffff;
    --surface-2: #f0ece5;
    --text: #231f1a;
    --muted: #6d655b;
    --border: #e2dccf;
    --accent: #e0592a;
    --accent-soft: #fde9e1;
    --accent-text: #a93a12;
    --idle: #2f7d5b;
    --idle-soft: #e1f2ea;
    --off: #8a8378;
    --danger: #b3261e;
    --shadow: 0 1px 2px rgb(35 31 26 / .06), 0 6px 18px rgb(35 31 26 / .06);
    --radius: 18px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #16140f;
        --surface: #211e18;
        --surface-2: #2b2820;
        --text: #f3eee5;
        --muted: #a39b8d;
        --border: #38342b;
        --accent: #ff7a4a;
        --accent-soft: #3d2519;
        --accent-text: #ffa07c;
        --idle: #5fcf9c;
        --idle-soft: #1c3329;
        --off: #8d867a;
        --danger: #ff8a80;
        --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 6px 18px rgb(0 0 0 / .3);
    }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
}

h1 { margin: 0; font-size: 1.6rem; letter-spacing: -.01em; }
.muted { color: var(--muted); margin: .15rem 0 0; font-size: .92rem; }

.app { max-width: 1100px; margin: 0 auto; padding: 20px 16px 40px; }

.top {
    display: flex; flex-wrap: wrap; gap: 14px;
    align-items: flex-end; justify-content: space-between;
    margin-bottom: 20px;
}
.top--dash {
    display: grid; gap: 14px 20px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title weather" "actions actions";
    align-items: start;
}
.top--dash > div:first-child { grid-area: title; }
.top--dash > .top__actions { grid-area: actions; }
@media (max-width: 640px) {
    .top--dash { grid-template-columns: 1fr; grid-template-areas: "weather" "title" "actions"; }
}

/* Pocasi v pravem hornim rohu */
.weather {
    grid-area: weather; justify-self: end; min-width: 270px; max-width: 100%;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 14px 16px;
    --wx-sun: #f4b400; --wx-moon: #8b95b8; --wx-cloud: #9aa6b2; --wx-rain: #3b82c4; --wx-snow: #7fb4e6; --wx-storm: #5f6b78;
}
@media (prefers-color-scheme: dark) {
    .weather { --wx-sun: #ffc83d; --wx-moon: #b4bde0; --wx-cloud: #7f8b98; --wx-rain: #6aa9e8; --wx-snow: #a9d0f5; --wx-storm: #94a0ad; }
}
.weather[hidden] { display: none; }
.weather__now { display: flex; align-items: center; gap: 12px; }
.weather__icon svg { width: 56px; height: 60px; display: block; }
.weather__temp { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.weather__temp small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.weather__cond { font-size: .9rem; font-weight: 600; margin-top: 4px; }
.weather__meta { margin: 8px 0 0; font-size: .78rem; color: var(--muted); }
.weather__toggle {
    display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
    margin-top: 10px; padding: 0; min-height: 36px; border: 0; border-top: 1px solid var(--border);
    background: transparent; color: var(--muted); font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer;
}
.weather__toggle:hover { color: var(--text); }
.weather__toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.weather__toggle svg { transition: transform .2s; }
.weather__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.weather__hours[hidden] { display: none; }
.weather__hours {
    list-style: none; margin: 0; padding: 8px 0 0;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; text-align: center;
}
.weather__hours li { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .75rem; color: var(--muted); }
.weather__hours svg { width: 28px; height: 30px; }
.weather__hours strong { color: var(--text); font-variant-numeric: tabular-nums; }
.top__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.top__actions form { margin: 0; }

.btn {
    min-height: 44px; padding: 0 16px;
    border: 1px solid var(--border); border-radius: 12px;
    background: var(--surface); color: var(--text);
    font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { background: var(--surface-2); }
.btn:focus-visible, .switch:focus-visible, .step:focus-visible, input:focus-visible {
    outline: 3px solid var(--accent); outline-offset: 2px;
}
.btn--ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent); filter: brightness(.95); }
.btn--danger { border-color: var(--danger); color: var(--danger); }
.btn--danger.is-restore { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.banner {
    background: var(--accent-soft); color: var(--accent-text);
    border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-weight: 500;
}

.grid {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 18px; display: flex; flex-direction: column; gap: 14px;
    border-top: 5px solid var(--off);
    transition: border-color .2s, opacity .2s;
}
.card[data-state="heating"] { border-top-color: var(--accent); }
.card[data-state="idle"] { border-top-color: var(--idle); }
.card[data-state="offline"] { opacity: .6; }
.card.is-busy .switch { opacity: .7; }

.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card__name { margin: 0; font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; }

.badge {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: .78rem; font-weight: 700; white-space: nowrap;
    background: var(--surface-2); color: var(--muted);
}
.card[data-state="heating"] .badge { background: var(--accent-soft); color: var(--accent-text); }
.card[data-state="idle"] .badge { background: var(--idle-soft); color: var(--idle); }

.temps { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 12px; }
.temps__now { min-width: 0; }
.temps__target { display: flex; flex-direction: column; align-items: center; }
.temps__target .temp-label { margin-top: 2px; text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; }
.temp-now { font-size: 2.6rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.temp-now small { font-size: 1.1rem; font-weight: 600; color: var(--muted); }
.temp-label { display: block; font-size: .75rem; color: var(--muted); margin-top: 4px; font-weight: 500; }

.target { display: flex; align-items: center; gap: 4px; height: 48px; }
.target__value { min-width: 4.2ch; text-align: center; font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.step {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
    font-size: 1.4rem; line-height: 1; cursor: pointer; font-family: inherit;
}
.step:hover:not(:disabled) { background: var(--border); }
.step:disabled { opacity: .4; cursor: not-allowed; }

.card { gap: 12px; }
.card__foot {
    display: flex; align-items: center; gap: 6px;
    margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border);
}
.card__status { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-height: 44px; }
.card__status .meta:empty { display: none; }
.battery { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.battery svg { display: block; }
.battery--ok svg { color: #2e7d32; }
.battery--mid svg { color: #b26a00; }
.battery--low svg { color: var(--danger); }
@media (prefers-color-scheme: dark) {
    .battery--ok svg { color: #81c995; }
    .battery--mid svg { color: #ffb74d; }
}
.gear {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid transparent;
    background: transparent; color: var(--muted); font-size: 1.2rem; cursor: pointer;
}
.gear:hover { background: var(--surface-2); color: var(--text); }
.gear:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.temp-src { margin-top: 6px; font-weight: 600; }
.temp-trv[hidden] { display: none; }

.dialog {
    width: min(420px, calc(100vw - 32px)); padding: 24px; color: var(--text);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.dialog::backdrop { background: rgb(0 0 0 / .45); }
.dialog h2 { margin: 0 0 6px; font-size: 1.2rem; }
.dialog label { display: block; margin: 16px 0 6px; font-weight: 600; }
.dialog select {
    width: 100%; min-height: 46px; padding: 0 10px; font: inherit; color: var(--text);
    background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
}
.dialog__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.meta { font-size: .78rem; color: var(--muted); }

.switch {
    position: relative; flex: none; width: 76px; height: 44px;
    border-radius: 999px; border: 0; padding: 0; cursor: pointer;
    background: var(--border); transition: background .2s;
}
.switch::after {
    content: ""; position: absolute; top: 4px; left: 4px;
    width: 36px; height: 36px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .2s;
}
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(32px); }
.switch:disabled { cursor: not-allowed; opacity: .5; }

.foot { margin-top: 18px; text-align: center; }

.skeleton { height: 190px; border-radius: var(--radius); background: var(--surface-2); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

.toast {
    position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom));
    transform: translateX(-50%); max-width: calc(100vw - 32px);
    background: var(--text); color: var(--bg);
    padding: 12px 18px; border-radius: 12px; font-weight: 500; box-shadow: var(--shadow);
}
.toast[hidden], .banner[hidden] { display: none; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login__card {
    width: 100%; max-width: 360px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 28px; display: flex; flex-direction: column; gap: 10px;
}
.login__card label { font-weight: 600; margin-top: 8px; }
.login__card input {
    min-height: 46px; padding: 0 14px; font: inherit; color: var(--text);
    background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
}
.login__card .btn { margin-top: 10px; }
.login__error { color: var(--danger); margin: 0; font-weight: 500; }

@media (max-width: 480px) {
    .top__actions .btn { flex: 1; }
    .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* ---- Grafy ---- */
a.btn { display: inline-flex; align-items: center; text-decoration: none; }

:root {
    --series-1: #2a78d6;
    --series-2: #eb6834;
    --series-3: #1baf7a;
    --series-4: #eda100;
    --series-5: #e87ba4;
    --series-6: #008300;
    --series-7: #6250d6;
    --series-8: #e34948;
    --viz-grid: #e1e0d9;
    --viz-axis: #c3c2b7;
    --viz-muted: #898781;
}
@media (prefers-color-scheme: dark) {
    :root {
        --series-1: #3987e5;
        --series-2: #d95926;
        --series-3: #199e70;
        --series-4: #c98500;
        --series-5: #d55181;
        --series-6: #008300;
        --series-7: #9085e9;
        --series-8: #e66767;
        --viz-grid: #2c2c2a;
        --viz-axis: #383835;
    }
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
    min-height: 40px; padding: 0 16px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
    font: inherit; font-weight: 600; cursor: pointer;
}
.chip:hover { background: var(--surface-2); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.viz-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); transition: opacity .15s; }
.viz-grid.is-loading { opacity: .55; }
.viz-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 16px 16px 12px; min-width: 0;
}
.viz-card h2 { margin: 0; font-size: 1.05rem; }
.viz-card .muted { margin-bottom: 10px; }
.viz-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 8px; font-size: .85rem; color: var(--muted); }
.viz-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.viz-key { width: 14px; height: 3px; border-radius: 2px; flex: none; }
.viz-legend strong { color: var(--text); font-weight: 700; }
.viz-wrap { position: relative; }
.viz-wrap svg { display: block; width: 100%; touch-action: pan-y; }
.viz-wrap svg:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.viz-wrap text { fill: var(--viz-muted); font: 11px/1 system-ui, -apple-system, "Segoe UI", sans-serif; }
.viz-empty { padding: 36px 0; text-align: center; color: var(--muted); }

.viz-tip {
    position: absolute; top: 8px; z-index: 2; pointer-events: none;
    min-width: 150px; padding: 8px 10px; border-radius: 10px;
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
    font-size: .82rem;
}
.viz-tip[hidden] { display: none; }
.viz-tip__time { color: var(--muted); margin-bottom: 4px; }
.viz-tip__row { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.viz-tip__row strong { font-weight: 700; margin-left: auto; padding-left: 12px; }
.viz-tip__row span:nth-child(2) { color: var(--muted); }

.viz-table-btn { margin-top: 6px; min-height: 36px; padding: 0 10px; font-size: .82rem; }
.viz-table { max-height: 260px; overflow: auto; margin-top: 8px; border: 1px solid var(--border); border-radius: 10px; }
.viz-table[hidden] { display: none; }
.viz-table table { width: 100%; border-collapse: collapse; font-size: .82rem; font-variant-numeric: tabular-nums; }
.viz-table th, .viz-table td { padding: 5px 10px; text-align: right; white-space: nowrap; }
.viz-table th:first-child, .viz-table td:first-child { text-align: left; }
.viz-table thead th { position: sticky; top: 0; background: var(--surface-2); }
.viz-table tbody tr + tr td { border-top: 1px solid var(--border); }

@media (max-width: 480px) { .viz-grid { grid-template-columns: 1fr; } }

/* ---- Nastaveni ---- */
.settings { display: flex; flex-direction: column; gap: 16px; }
.panel {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px;
}
.panel h2, .section-title { margin: 0 0 4px; font-size: 1.15rem; }
.section-note { margin: 0 0 12px; }
.panel label, .search label { display: block; margin: 12px 0 6px; font-weight: 600; font-size: .9rem; }
.panel input, .panel select, .search input {
    width: 100%; min-height: 46px; padding: 0 12px; font: inherit; color: var(--text);
    background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
}
.panel__actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 14px; }
.panel__actions .muted { margin-right: auto; }
.fields { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.fields__wide { grid-column: 1 / -1; }
.fields--room { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.search__row { display: flex; gap: 8px; }
.search__results { list-style: none; margin: 6px 0 0; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.search__results[hidden] { display: none; }
.search__item {
    display: block; width: 100%; min-height: 44px; padding: 8px 12px; text-align: left;
    border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; cursor: pointer;
}
.search__item:hover, .search__item:focus-visible { background: var(--surface-2); }
.search__empty { padding: 10px 12px; color: var(--muted); }

.map { height: 340px; margin-top: 14px; border-radius: 14px; border: 1px solid var(--border); z-index: 0; }
.mapy-logo { display: block; margin: 0 0 6px 6px; }

.rooms { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); }
.room__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.room__head h3 { margin: 0; font-size: 1.1rem; }
.room__result { margin-top: 14px; }
.analysis { border-top: 1px solid var(--border); padding-top: 10px; }
.analysis__row { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; font-size: .9rem; }
.analysis__row span { color: var(--muted); }
.analysis__row strong { text-align: right; font-variant-numeric: tabular-nums; }
.analysis .is-ok { color: var(--idle); }
.analysis .is-bad { color: var(--danger); }
#outdoor[hidden], #gas-cost[hidden] { display: none; }

.banner--season { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.banner--season[hidden] { display: none; }
.banner--season .btn { background: var(--surface); }
.banner--season .btn[hidden] { display: none; }

.info {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; min-height: 32px; margin-left: 2px; padding: 0;
    border: 0; border-radius: 50%; background: transparent; color: var(--muted);
    font: inherit; font-size: 1.05rem; cursor: pointer; vertical-align: middle;
}
.info:hover { background: var(--surface-2); color: var(--text); }
.info:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.hint[hidden] { display: none; }

/* ---- Plyn ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stat {
    display: flex; flex-direction: column; gap: 2px; padding: 14px 16px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stat__label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.stat__value { font-size: 1.35rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat__note { font-size: .78rem; color: var(--muted); }
.bars { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bars__row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; align-items: center; gap: 12px; }
.bars__name { font-weight: 600; overflow-wrap: anywhere; }
.bars__track { height: 12px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.bars__fill { display: block; height: 100%; border-radius: 6px; background: var(--accent); }
.bars__value { font-variant-numeric: tabular-nums; font-size: .88rem; text-align: right; white-space: nowrap; }
.viz-table[hidden] { display: none; }
@media (max-width: 560px) {
    .bars__row { grid-template-columns: 1fr; gap: 4px; }
    .bars__value { text-align: left; white-space: normal; }
}

/* ---- Plan ---- */
.check { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; }
.panel .check input { width: 22px; min-height: 22px; height: 22px; flex: none; }
.temp-matrix { display: grid; grid-template-columns: 5rem repeat(2, minmax(90px, 140px)); gap: 10px; align-items: center; }
.plan-legend { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; font-size: .85rem; color: var(--muted); }
.plan-key { width: 14px; height: 14px; border-radius: 4px; display: inline-block; margin-left: 8px; }
.plan-key--home, .plan-bar__seg--home { background: var(--accent); }
.plan-key--away, .plan-bar__seg--away { background: var(--idle); }
.plan-day { padding: 12px 0; border-top: 1px solid var(--border); }
.plan-day__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.plan-day__head h3 { margin: 0; font-size: 1rem; min-width: 5.5rem; }
.plan-day__head .btn { min-height: 36px; padding: 0 10px; font-size: .82rem; }
.plan-bar { display: flex; height: 18px; border-radius: 6px; overflow: hidden; margin-bottom: 8px; }
.plan-bar__seg { height: 100%; }
.plan-blocks { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-block { display: flex; align-items: center; gap: 6px; }
.panel .plan-block input[type=time] { width: 8.5rem; }
.panel .plan-block select { width: 7rem; }
.plan-block .btn { min-height: 40px; padding: 0 10px; }
#plan[hidden] { display: none; }
.banner--plan { background: var(--surface-2); color: var(--text); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.banner--plan .btn { background: var(--surface); }

/* Hlasove ovladani */
.voice {
    position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20;
    width: 56px; height: 56px; border-radius: 50%; border: 0; font-size: 1.5rem; cursor: pointer;
    background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.voice:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.voice[data-state="rec"] { animation: voice-pulse 1.2s ease-in-out infinite; }
.voice[data-state="busy"] { opacity: .6; cursor: progress; }
.voice-panel {
    position: fixed; right: 16px; left: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 20;
    max-width: 420px; margin-left: auto; padding: .75rem 1rem; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--border); box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}
.voice-panel p { margin: 0; }
@keyframes voice-pulse { 50% { box-shadow: 0 0 0 12px rgba(224, 89, 42, .25); } }
@media (prefers-reduced-motion: reduce) { .voice[data-state="rec"] { animation: none; } }

.reload { height: 3px; margin-top: .5rem; border-radius: 2px; background: var(--border); overflow: hidden; }
.reload__bar { height: 100%; background: var(--accent); transform-origin: left; transition: transform .25s linear; }
@media (prefers-reduced-motion: reduce) { .reload__bar { transition: none; } }
