@font-face { font-family: 'Krona One'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/krona-one-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Krona One'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/krona-one-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400 700; font-display: swap; src: url('fonts/open-sans-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400 700; font-display: swap; src: url('fonts/open-sans-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/open-sans-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/open-sans-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Vzhled vychází z webu krmimkvalitne.cz: bílé pozadí, petrolejová a červenooranžová,
   široké nadpisy, oblá tlačítka a pole, krémové panely. Jen světlý režim – jako web. */
:root {
    --ink: #05282e;
    --text: #141414;
    --muted: #476064;
    --soft: #889193;
    --red: #ef4423;
    --red-hover: #ff5e39;
    --orange: #f0910f;
    --cream: #f5ebe2;
    --cream-soft: #fbf6f1;
    --field: #f4f4f4;
    --line: #e4e4e4;
    --green: #1f8a4c;
    --green-hover: #17723d;
    --ok-bg: #e2f0e7;   --ok-ink: #17563a;
    --wait-bg: #fdeccf; --wait-ink: #8a4f00;
    --bad-bg: #fde3dc;  --bad-ink: #b3260c;
    --display: 'Krona One', 'Arial Black', sans-serif;
    --body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color-scheme: light;
}

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

html { height: 100%; }
body {
    margin: 0; min-height: 100%;
    display: flex; flex-direction: column;
    background: #fff; color: var(--text);
    font: 400 15px/1.55 var(--body);
    -webkit-text-size-adjust: 100%;
}

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; color: var(--ink); line-height: 1.25; text-wrap: balance; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.05rem; margin-bottom: 18px; }
h3 { font-size: .9rem; margin: 28px 0 14px; }
p { margin: 0 0 10px; }
code { background: var(--field); padding: 2px 7px; border-radius: 6px; font-size: .9em; }
small { color: var(--muted); font-size: .86rem; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--soft); }
.warn { color: var(--red); font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.count { font-family: var(--body); font-weight: 600; color: var(--soft); font-variant-numeric: tabular-nums; }

/* ---------- hlavička a patička ---------- */

.topbar {
    display: flex; align-items: center; gap: 12px 36px; flex-wrap: wrap;
    padding: 14px 32px;
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.brand img { display: block; width: 104px; height: auto; }
.brand-app {
    padding-left: 18px; border-left: 1px solid var(--line);
    font: 400 .78rem/1.3 var(--display); color: var(--ink);
}
.nav { display: flex; gap: 28px; flex: 1; }
.nav a { padding: 6px 0; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--red); }
.nav a[aria-current] { color: var(--red); border-bottom-color: var(--red); }
.whoami { display: flex; align-items: center; gap: 14px; margin: 0; color: var(--muted); font-size: .92rem; }

.main { flex: 1; width: 100%; max-width: 1400px; margin: 0 auto; padding: 40px 32px 72px; }

.footer { background: var(--ink); color: var(--soft); font-size: .86rem; }
.footer-in { max-width: 1400px; margin: 0 auto; padding: 18px 32px; display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.footer strong { color: #fff; font-weight: 600; }
.footer .warn { color: var(--red-hover); }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.eyebrow { margin: 0 0 6px; color: var(--red); font-weight: 600; font-size: .92rem; }
.sub { color: var(--muted); margin: 8px 0 0; max-width: 80ch; }
.crumb { margin-bottom: 18px; font-weight: 600; font-size: .92rem; }
.crumb a { text-decoration: none; }

/* ---------- panely ---------- */

.card { background: var(--cream); border-radius: 8px; padding: 28px; margin-bottom: 28px; }
.block { margin: 44px 0 0; }
.empty { text-align: center; padding: 56px 24px; }
.empty h1, .empty h2 { margin-bottom: 10px; }
.empty p { color: var(--muted); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 24px; }
.cols > .card { margin-bottom: 0; }

/* ---------- tlačítka a pole ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 20px; min-height: 40px;
    border: 1px solid var(--ink); border-radius: 25px;
    background: #fff; color: var(--ink);
    font: 600 .94rem/1.2 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; }
.btn-go { background: var(--green); border-color: var(--green); color: #fff; }
.btn-go:hover { background: var(--green-hover); border-color: var(--green-hover); color: #fff; }
.btn-miss { background: var(--red); border-color: var(--red); color: #fff; }
.btn-miss:hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; }
.btn-quiet {
    min-height: 0; padding: 2px 0; border: 0; border-radius: 0; background: none;
    color: var(--muted); font-weight: 400; text-decoration: underline; text-underline-offset: 3px;
}
.btn-quiet:hover { background: none; color: var(--red); }
.card .btn:not(.btn-primary):not(.btn-go):not(.btn-miss) { background: transparent; }
.card .btn:not(.btn-primary):not(.btn-go):not(.btn-miss):hover { background: var(--ink); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--red); width: 16px; height: 16px; margin: 0; }

input[type="text"], input[type="search"], input[type="password"], input[type="number"],
input[type="date"], input[type="datetime-local"], select, textarea {
    font: 400 .94rem/1.4 var(--body); color: var(--text); background: var(--field);
    border: 1px solid transparent; border-radius: 25px; padding: 8px 16px; min-height: 40px; max-width: 100%;
}
textarea { width: 100%; border-radius: 16px; padding: 12px 16px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--soft); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
input:disabled { color: var(--soft); }
.card input:not([type="checkbox"]):not([type="radio"]), .card select, .card textarea { background: #fff; }

label { font-weight: 600; color: var(--ink); }
label input, label select, label textarea { font-weight: 400; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 8px; }

.stack, .call-form { display: grid; gap: 18px; }
.call-form .when { grid-template-columns: max-content 1fr; align-items: center; gap: 12px; justify-content: start; }
.call-form .when input { justify-self: start; }
.stack label, .call-form > label { display: grid; gap: 6px; }
.stack input { width: 100%; max-width: 300px; }
.stack small { font-weight: 400; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; }
.inline-form { display: inline; margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: auto; height: auto; }
.chip span {
    display: inline-block; padding: 7px 14px; border-radius: 6px;
    background: var(--cream); color: var(--ink); font-weight: 600; font-size: .88rem; cursor: pointer;
}
.card .chip span { background: #fff; }
.chip span:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip input:checked + span { background: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.next { display: grid; gap: 10px; }
.next label { font-weight: 400; color: var(--text); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.flash { padding: 12px 18px; border-radius: 6px; margin-bottom: 24px; font-weight: 600; overflow-wrap: anywhere; }
.flash-ok { background: var(--ok-bg); color: var(--ok-ink); }
.flash-error { background: var(--bad-bg); color: var(--bad-ink); }
.flash small { color: inherit; font-weight: 400; }

/* ---------- přehled obvolávání ---------- */

.overview { background: var(--ink); color: #fff; border-radius: 8px; padding: 22px 28px 24px; margin-bottom: 36px; }
.overview-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.overview h2 { color: #fff; margin: 0; font-size: .95rem; }
.overview .segments a { background: rgb(255 255 255 / 10%); color: #fff; }
.overview .segments a:hover { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 60%); color: #fff; }
.overview .segments a[aria-current] { background: var(--cream); color: var(--ink); }
.overview-body { display: grid; grid-template-columns: minmax(280px, 5fr) minmax(320px, 6fr); gap: 28px 56px; align-items: start; }
.kpis { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.kpis dt { color: #9fb3b6; font-size: .84rem; font-weight: 600; }
.kpis dd { margin: 2px 0 0; font-size: 2rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpis dd small { font-size: .95rem; font-weight: 600; color: #9fb3b6; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.bars li { display: grid; grid-template-columns: 124px 1fr 84px; gap: 14px; align-items: center; }
.bar-label { font-size: .88rem; font-weight: 600; }
.bar { display: block; overflow: hidden; }
.bar-fill { fill: var(--cream); }
.bars li:hover .bar-fill { fill: #fff; }
.bar-value { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-value small { color: #9fb3b6; font-weight: 600; font-size: .8rem; margin-left: 2px; }
.overview-empty { margin: 0; color: #9fb3b6; align-self: center; }

/* ---------- záložky a filtry ---------- */

.tabs { display: flex; gap: 32px; margin-bottom: 24px; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; }
.tabs a {
    padding: 0 0 12px; white-space: nowrap; text-decoration: none;
    font: 400 .86rem/1.3 var(--display); color: var(--soft);
    border-bottom: 3px solid transparent;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--red); }
.tabs .count { margin-left: 4px; font-size: .9rem; }
.tabs a[aria-current] .count { color: var(--red); }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 20px; }
.filters .search { flex: 1 1 260px; }
.filters .search input { width: 100%; }
.filters .inline { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; }
.filters .inline input[type="number"] { width: 84px; }
.filters .check { font-weight: 400; color: var(--text); }

.segments { display: inline-flex; gap: 6px; }
.segments a {
    padding: 7px 14px; border-radius: 6px; white-space: nowrap; text-decoration: none;
    background: var(--cream); color: var(--ink); font-weight: 600; font-size: .88rem;
}
.segments a:hover { box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.segments a[aria-current] { background: var(--ink); color: #fff; }
.segments .count { color: inherit; opacity: .65; margin-left: 2px; }

/* ---------- tabulky ---------- */

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
.data th, .data td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data th:first-child, .data td:first-child { padding-left: 4px; }
.data th:last-child, .data td:last-child { padding-right: 4px; }
.data th.num, .data td.num { text-align: right; }
.data thead th {
    padding-top: 0; padding-bottom: 10px;
    font-size: .8rem; font-weight: 600; color: var(--muted); white-space: nowrap;
    border-bottom: 2px solid var(--ink);
}
.data thead a { color: inherit; text-decoration: none; }
.data thead a:hover { color: var(--red); }
.data thead a[aria-current] { color: var(--ink); }
.data tbody tr:nth-child(even) { background: var(--cream-soft); }
.data tbody tr:hover { background: var(--cream); }
.data tfoot td { border-bottom: 0; padding-top: 16px; font-weight: 700; color: var(--ink); }

/* Fronta: každý zákazník je samostatný krémový pruh. */
table.queue { border-collapse: separate; border-spacing: 0 8px; }
.queue thead th { border-bottom: 0; padding-bottom: 2px; }
.queue tbody td { background: var(--cream-soft); border-bottom: 0; padding-top: 16px; padding-bottom: 16px; }
.queue tbody td:first-child { padding-left: 20px; border-radius: 8px 0 0 8px; box-shadow: inset 4px 0 var(--cream); }
.queue tbody td:last-child { padding-right: 16px; border-radius: 0 8px 8px 0; }
.queue tbody tr:hover td { background: var(--cream); }
.queue tbody tr:hover td:first-child { box-shadow: inset 4px 0 var(--red); }
.queue tbody tr:target td { background: var(--cream); }
.queue tbody tr:target td:first-child { box-shadow: inset 4px 0 var(--ink); }
.queue tbody tr { scroll-margin-top: 90px; }
.queue thead th:first-child, .queue tfoot td:first-child { padding-left: 20px; }
.queue tfoot td { padding-top: 8px; }
.data tr.cancelled td { color: var(--soft); text-decoration: line-through; }
.data tr.cancelled .badge { text-decoration: none; }
.data td.actions { text-align: right; white-space: nowrap; vertical-align: middle; }
.data td.actions .btn-quiet + .inline-form, .data td.actions .inline-form + .inline-form { margin-left: 16px; }
.queue td.actions { white-space: normal; }
.queue td.actions .btn { min-height: 38px; padding: 7px 18px; font-size: .88rem; margin: 3px 0 3px 6px; }

.who { font-weight: 700; font-size: 1rem; color: var(--ink); text-decoration: none; }
.who:hover { color: var(--red); }
.meta { color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }
.meta a { color: inherit; }
.queue td[data-label="Kontakt"] .meta { max-width: 230px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta .badge { margin-right: 4px; }
.phone { font-weight: 700; color: var(--ink); white-space: nowrap; text-decoration: none; font-variant-numeric: tabular-nums; }
.phone:hover { color: var(--red); }
.phone-big { font-size: 1.3rem; }
.days b { font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.lastcall { min-width: 240px; max-width: 340px; }
.activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.activity li + li { opacity: .72; }
.activity-meta { color: var(--muted); font-size: .84rem; white-space: nowrap; }
.activity-auto { color: var(--soft); font-size: .8rem; font-style: italic; white-space: nowrap; }
.more { display: inline-block; margin-top: 6px; font-size: .84rem; color: var(--muted); }
.hint { margin-top: 6px; font-size: .84rem; font-weight: 600; color: var(--wait-ink); }
.note { margin-top: 6px; font-size: .9rem; color: var(--text); overflow-wrap: anywhere; }
.note-cell { max-width: 520px; overflow-wrap: anywhere; }

.badge {
    display: inline-block; padding: 2px 9px; border-radius: 6px;
    font-size: .76rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
    background: var(--field); color: var(--muted);
}
.badge-b2b { background: var(--ink); color: #fff; }
.badge-b2c { background: var(--cream); color: var(--ink); }
.badge-reached, .badge-sync-ok { background: var(--ok-bg); color: var(--ok-ink); }
.badge-no_answer, .badge-callback, .badge-sync-running { background: var(--wait-bg); color: var(--wait-ink); }
.badge-not_interested, .badge-wrong_number, .badge-sync-error { background: var(--bad-bg); color: var(--bad-ink); }
.badge-email, .badge-other { background: #e3ecee; color: var(--ink); }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; color: var(--muted); }
.pager-links { display: flex; align-items: center; gap: 14px; }

/* ---------- detail zákazníka ---------- */

.state { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tiles {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    background: var(--ink); border-radius: 8px; margin-bottom: 28px; overflow: hidden;
}
.tile { padding: 22px 24px; display: grid; gap: 4px; align-content: start; box-shadow: -1px 0 rgb(255 255 255 / 12%), 0 -1px rgb(255 255 255 / 12%); }
.tile span { color: #9fb3b6; font-size: .82rem; font-weight: 600; }
.tile strong { font-size: 1.6rem; font-weight: 700; line-height: 1.25; color: #fff; font-variant-numeric: tabular-nums; }
.tile small { color: #9fb3b6; font-size: .82rem; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; margin: 0; align-items: baseline; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; overflow-wrap: anywhere; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.timeline li { border-left: 3px solid var(--cream); padding: 2px 0 2px 18px; }
.timeline-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.timeline-head strong { color: var(--ink); }
.timeline p { margin: 6px 0 0; overflow-wrap: anywhere; max-width: 80ch; }

/* ---------- dialog a přihlášení ---------- */

dialog {
    width: min(540px, calc(100vw - 24px)); padding: 32px;
    border: 0; border-radius: 12px; background: #fff; color: var(--text);
    box-shadow: 0 24px 70px rgb(5 40 46 / 35%);
}
dialog::backdrop { background: rgb(5 40 46 / 60%); }
dialog h2 { font-size: 1.15rem; margin-bottom: 8px; }
.dialog-who { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--ink); }

.page-login .main, .page-error .main { max-width: 440px; padding-top: 10vh; }
.login-logo { display: block; width: 168px; height: auto; margin: 0 auto 32px; }
.login { display: grid; gap: 18px; padding: 36px; }
.login label { display: grid; gap: 6px; }
.login h1 { font-size: 1.15rem; text-align: center; margin-bottom: 4px; }
.login .btn { margin-top: 6px; min-height: 46px; }
.login .flash { margin: 0; }

/* ---------- úzké displeje: řádky tabulek pod sebou ---------- */

@media (max-width: 760px) {
    .topbar { padding: 12px 16px; gap: 10px 16px; }
    .brand img { width: 84px; }
    .brand-app { display: none; }
    .nav { order: 3; flex-basis: 100%; gap: 24px; }
    .whoami { margin-left: auto; }
    .main { padding: 28px 16px 56px; }
    .footer-in { padding: 16px; }
    h1 { font-size: 1.3rem; }
    .card { padding: 22px 18px; }
    .tabs { gap: 22px; }
    table.data, .data tbody, .data tr, .data td { display: block; width: 100%; }
    .data thead { display: none; }
    .data tbody tr, .data tfoot tr { padding: 12px 16px; border-radius: 8px; margin-bottom: 8px; background: var(--cream-soft); }
    .data tbody tr:nth-child(even) { background: var(--cream-soft); }
    .data tfoot tr { background: none; padding-top: 4px; }
    .data tfoot td:empty { display: none; }
    .data td, .data td.num, .data td:first-child, .data td:last-child,
    .queue tbody td, .queue tbody td:first-child, .queue tbody td:last-child { border: 0; border-radius: 0; box-shadow: none; background: none; padding: 5px 0; text-align: left; white-space: normal; }
    .queue tbody tr:hover td, .queue tbody tr:target td { background: none; }
    .queue tbody tr:target { box-shadow: inset 4px 0 var(--ink); }
    table.queue { border-spacing: 0; }
    .data td[data-label]::before { content: attr(data-label); display: block; font-size: .74rem; font-weight: 600; color: var(--soft); }
    .data td[data-label="Zákazník"]::before { display: none; }
    .data td.actions { text-align: left; padding-top: 12px; white-space: normal; }
    .queue td.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .queue td.actions .inline-form { display: block; }
    .queue td.actions .btn { width: 100%; min-height: 46px; margin: 0; font-size: .94rem; }
    .overview { padding: 22px 18px; margin-bottom: 28px; }
    .overview-body { grid-template-columns: 1fr; }
    .kpis dd { font-size: 1.6rem; }
    .bars li { grid-template-columns: 104px 1fr 70px; gap: 10px; }
    .lastcall, .note-cell { max-width: none; }
    .phone { font-size: 1.1rem; }
    .stack input { max-width: none; }
    dialog { padding: 24px 20px; }
}

@media (prefers-reduced-motion: no-preference) {
    .btn, .chip span, .nav a, .segments a { transition: background-color .12s, border-color .12s, color .12s; }
}

/* Poznámka v časové ose detailu patří pod řádek s výsledkem. */
.timeline-head .note { order: 9; flex: 0 0 100%; margin-top: 2px; }
.block > .sub { margin: -8px 0 18px; }
.timeline-head .inline-form { margin-left: auto; }
