/* ===========================================================================
   Think To Speak — vzhled appky

   Rozvržení napsané 19. 9. 2026 od nuly (do té doby styles.css rostl
   přírůstky a rozešel se: lišta měla okraj 10, obsah 16, nadpis 10).
   Vlastník ho 19. 9. 2026 vybral jako hlavní z pěti variant. Konvence
   nativní appky:

   - 8bodová mřížka, jeden boční okraj (--gutter = 16) pro VŠECHNO
   - 4 velikosti písma (34 / 17 / 15 / 13), 2 řezy (400 / 600) + nadpis 700
   - lišty: navigační 44 + velký nadpis, spodní 49 + bezpečná zóna
   - seznamy: řádky s vlasovou linkou, ne kartičky; bloky nastavení jako
     seskupené (inset grouped) bez rámečku
   - tlačítka bez 1px rámečků (rámeček je znak webu): plné, nebo tlumené
   - jedna sytá akce na obrazovku; ostatní tlumené plochy
   - na širokém displeji stojí appka jako sloupec uprostřed, ne roztažená

   Barvy z proměnných, nikdy hex v pravidle. Paleta: šalvějová, cihlová,
   krémový podklad.
   =========================================================================== */

:root {
  --bg: #f4f2ee;            /* podklad obrazovky (o chlup šedší, ať bílé bloky vystoupí) */
  --card-bg: #ffffff;       /* bloky, řádky seznamu */
  --ink: #1e1c18;
  --muted: #6f6a63;
  --accent: #4a7a5e;
  --accent-dark: #35604a;
  --accent-soft: #e6ede8;
  --brand-think: #0165a9;
  --brand-to: #41bae7;
  --brand-speak: #34af68;
  --border: rgba(30, 28, 24, 0.12);   /* vlasová linka, průsvitná — funguje na bílé i krémové */
  --danger: #a4564c;
  --danger-soft: #f3e6e3;

  --content: 600px;
  --gutter: 16px;
  --radius: 12px;
  --bar: 44px;                              /* navigační lišta */
  --tabbar: calc(49px + env(safe-area-inset-bottom));
  --hairline: 1px solid var(--border);

  --fs-title: 2.125rem;   /* 34 */
  --fs-body: 1.0625rem;   /* 17 */
  --fs-second: 0.9375rem; /* 15 */
  --fs-caption: 0.8125rem;/* 13 */
}

/* Písmo značky — jen latinka, tři anglická slova. */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/DMSans-normal-latin.woff2) format('woff2');
}

/* ---------------------------------------------------------------- základ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--ink);
  background: var(--bg);
  overscroll-behavior-y: none;
}
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.2; }
p { margin: 0; }
img { max-width: 100%; height: auto; }
button, select, input, textarea {
  font-family: inherit;
  font-size: var(--fs-body);
  color: var(--ink);
}
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Vstupy: šedá výplň, žádný rámeček */
input, textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--card-bg);
  box-shadow: inset 0 0 0 1px var(--border);
}
input:focus, textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--accent); }
textarea { min-height: 88px; resize: vertical; }
/* Zaškrtávátko a přepínač nejsou textová pole — obecné pravidlo pro
   input by z nich udělalo prázdné bílé bloky přes celý řádek. */
input[type="checkbox"], input[type="radio"] {
  width: 22px; height: 22px; min-height: 0; padding: 0; flex: none;
  box-shadow: none; background: none; accent-color: var(--accent);
}
input[type="range"] { min-height: 0; padding: 0; box-shadow: none; background: none; accent-color: var(--accent); }
input[type="file"] { box-shadow: none; background: none; }
select { appearance: none; }

/* Tlačítka: tlumená plocha jako výchozí, sytá jen .primary */
button {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
}
button:active { filter: brightness(0.94); }
button.primary { background: var(--accent); color: #fff; }
button.active { background: var(--accent); color: #fff; }
button.danger { background: var(--danger-soft); color: var(--danger); }
button:disabled { opacity: 0.4; cursor: default; }
button.big { width: 100%; min-height: 50px; font-size: var(--fs-body); }
button.link {
  min-height: 0; padding: 0; background: none; border-radius: 0;
  color: var(--accent-dark); font-weight: 400; text-decoration: underline; text-underline-offset: 3px;
}
.link-btn {
  min-height: 44px; padding: 8px 4px; background: none; border-radius: 0;
  color: var(--accent-dark); font-size: var(--fs-second); font-weight: 600;
}
.link-btn.danger { color: var(--danger); }
.link-btn:active { opacity: 0.6; }

.status, .hint { font-size: var(--fs-caption); color: var(--muted); text-align: center; line-height: 1.4; }
.hint.danger { color: var(--danger); }
.error { font-size: var(--fs-caption); color: var(--danger); text-align: center; }
.error:empty, .hint:empty, .status:empty { display: none; }
progress { width: 100%; margin: 8px 0; accent-color: var(--accent); }

/* Kruhové ikonové tlačítko (v hlavičce, v poslechu) */
.icon-btn {
  flex: none; width: 44px; height: 44px; padding: 0;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
}
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.active { background: var(--accent); color: #fff; }
.icon-btn.ghost { background: none; color: var(--accent-dark); }
.icon-btn.ghost svg { width: 26px; height: 26px; stroke-width: 2.2; }
.header-actions { display: flex; gap: 8px; justify-content: flex-end; flex: none; }

/* ------------------------------------------------------------ obal appky
   #app je sloupec: přilepená hlavička, obsah, pevná spodní lišta.
   Obsah má jediný boční okraj — --gutter — a šířku --content. */
#app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
#app > .cases, #app > .profile, #app > .listen, #app > .status { padding-bottom: 16px; }
#app > .toolbar, #app > .cases, #app > .status, #app > .profile, #app > .listen {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* --------------------------------------------------------- start a login */
.boot {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
.brand-tile { width: min(200px, 46vw); height: auto; filter: drop-shadow(0 10px 24px rgba(20, 20, 18, 0.14)); }
.boot .brand-tile { width: min(224px, 54vw); }

.screen {
  max-width: 360px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) var(--gutter) max(24px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  text-align: center;
}
#login h1 { margin-bottom: 8px; }
#login .brand-tile { width: min(140px, 36vw); }
#login input { text-align: center; }

/* Vlaječky před přihlášením (a v náhledu) */
.lang-flags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 16px; }
.lang-chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 6px 12px; border-radius: 999px;
  background: none; color: var(--muted); font-size: var(--fs-caption); font-weight: 500;
}
.lang-chip-flag { font-size: 1rem; line-height: 1; }
.lang-chip.active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }

#passwordFallback { text-align: left; padding: 12px 14px; border-radius: var(--radius); background: var(--card-bg); }
#passwordFallback summary { cursor: pointer; font-size: var(--fs-caption); color: var(--muted); list-style: none; }
#passwordFallback summary::-webkit-details-marker { display: none; }
#passwordFallback summary::before { content: '▸ '; }
#passwordFallback[open] summary::before { content: '▾ '; }
#passwordFallback[open] summary { margin-bottom: 10px; }
#passwordFallback input { margin-bottom: 8px; }

/* ------------------------------------------------------------- hlavička
   Navigační lišta (44) + velký nadpis. Jeden přilepený blok, linka až pod
   nadpisem. Šipka vlevo, značka uprostřed, vpravo výplň stejné šířky. */
.screen-head {
  position: sticky; top: 0; z-index: 5;
  background: rgba(244, 242, 238, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: var(--hairline);
}
.screen-bar {
  display: flex; align-items: center; gap: 4px;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  min-height: var(--bar);
  padding: env(safe-area-inset-top) calc(var(--gutter) - 6px) 0;
}
.screen-bar .icon-btn.ghost, .screen-bar.noback::before { flex: none; width: 44px; height: 44px; }
.screen-bar.noback::before { content: ""; }
/* Profil vpravo: hlava v kruhu, kolem prstenec tokenů. Prstenec je
   conic-gradient řízený --tokens (0–1) a --ring-color, oboje píše JS. */
.avatar {
  position: relative; flex: none; width: 44px; height: 44px; padding: 0;
  border-radius: 50%; background: none; display: grid; place-items: center;
}
.avatar svg { width: 20px; height: 20px; fill: none; stroke: var(--accent-dark); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; position: relative; z-index: 2; }
/* Pořadí vrstev: prstenec (z 0), bílý střed (z 1), hlava (z 2). Bez toho
   byl z prstence plný kruh — ::before se kreslil pod ním (21. 9. 2026). */
.avatar::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--card-bg); z-index: 1; }
.avatar-ring {
  position: absolute; inset: 3px; border-radius: 50%; z-index: 0;
  background: conic-gradient(var(--ring-color, var(--accent)) calc(var(--tokens, 1) * 360deg), var(--accent-soft) 0);
  transition: --tokens 0.4s;
}
.avatar.warn .avatar-ring { --ring-color: #b8862b; }
.avatar.low .avatar-ring { --ring-color: var(--danger); }
.avatar.active, .avatar.active:active { background: none; }   /* obecné button.active by ho zabarvilo */
.avatar.active svg { stroke: var(--accent); stroke-width: 2.3; }
.avatar.empty .avatar-ring { background: var(--danger-soft); }
.avatar.empty svg { stroke: var(--danger); }
/* Kolik ubylo: vyplyne zpod ikony a zhasne. Směrem DOLŮ, ne nahoru —
   avatar sedí úplně nahoře v liště, takže nahoru bublina uletěla mimo
   obrazovku (22. 9. 2026). `overflow` avataru se nesmí omezit, jinak by
   se bublina uřízla o kruh. */
.token-diff {
  position: absolute; top: 100%; left: 50%; z-index: 3;
  transform: translate(-50%, 0);
  padding: 1px 7px; border-radius: 999px;
  background: var(--danger); color: #fff;
  font-size: 0.72rem; font-weight: 700; font-variant-numeric: tabular-nums;
  line-height: 1.5; white-space: nowrap; pointer-events: none;
  animation: token-diff 2.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes token-diff {
  0% { opacity: 0; transform: translate(-50%, -8px) scale(0.8); }
  8% { opacity: 1; transform: translate(-50%, 2px) scale(1.06); }
  14% { transform: translate(-50%, 3px) scale(1); }
  70% { opacity: 1; transform: translate(-50%, 9px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, 22px) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .token-diff { animation: token-diff-fade 2.8s linear forwards; }
  @keyframes token-diff-fade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
}
.screen-bar .brand {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'DM Sans', inherit;
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden;
}
.screen-bar .brand-logo { width: auto; height: 30px; flex: none; }
.brand .think { color: var(--brand-think); }
.brand .to { color: var(--brand-to); }
.brand .speak { color: var(--brand-speak); }
.page-title {
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 4px var(--gutter) 10px;
  font-size: var(--fs-title); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em;
}
.page-title:empty { display: none; }

/* Proužek, když správce sedí v cizím účtu — nad vším a nepřehlédnutelný */
.impersonation {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: max(10px, env(safe-area-inset-top)) var(--gutter) 10px;
  background: var(--danger); color: #fff; font-size: var(--fs-caption);
}
.impersonation button { min-height: 32px; padding: 4px 12px; background: rgba(255,255,255,0.18); color: #fff; font-size: var(--fs-caption); white-space: nowrap; }

/* ------------------------------------------------------- lišta s výběrem */
.toolbar { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; padding-bottom: 4px; }
.picker { position: relative; }
.picker-current {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 44px; padding: 10px 14px;
  border-radius: 10px; background: var(--card-bg); box-shadow: inset 0 0 0 1px var(--border);
  color: var(--ink); font-weight: 600; text-align: left;
}
.picker-arrow {
  flex: none; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.2s;
}
.picker.open .picker-arrow { transform: rotate(-135deg) translate(-3px, -3px); }
.picker-panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  padding: 6px; border-radius: 14px; background: var(--card-bg);
  box-shadow: 0 16px 40px rgba(20, 20, 18, 0.18), 0 0 0 1px var(--border);
  transform-origin: top center; animation: unfold 0.16s ease-out;
}
@keyframes unfold { from { opacity: 0; transform: scaleY(0.92) translateY(-6px); } to { opacity: 1; transform: none; } }
.picker-search { display: flex; align-items: center; gap: 8px; padding: 2px 10px 8px; border-bottom: var(--hairline); margin-bottom: 6px; }
.picker-search input { min-height: 36px; padding: 6px 0; background: none; box-shadow: none; font-size: var(--fs-second); }
.picker-search input:focus { box-shadow: none; }
#searchClose { flex: none; width: 32px; min-height: 32px; height: 32px; padding: 0; border-radius: 50%; background: var(--accent-soft); color: var(--muted); font-size: 1rem; line-height: 1; }
.picker-list { margin: 0; padding: 0; list-style: none; max-height: 46vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#langList { max-height: 34vh; }
.picker-list li { display: flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: var(--fs-second); }
.picker-list li:hover, .picker-list li.cursor { background: var(--bg); }
.picker-list li.current { background: var(--accent); color: #fff; font-weight: 600; }
.picker-list li .count { margin-left: auto; font-size: var(--fs-caption); color: var(--muted); font-variant-numeric: tabular-nums; }
.picker-list li.current .count { color: rgba(255,255,255,0.75); }
.picker-list .shared-mark { margin-left: auto; }
.picker-list .shared-mark + .count { margin-left: 8px; }
.picker-group { padding: 10px 12px 4px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); cursor: default; }
.picker-group:hover { background: none; }
.picker-list li.divider { margin-top: 4px; border-top: var(--hairline); border-radius: 0; padding-top: 12px; }
.option-flag { font-size: 1.3rem; line-height: 1; }
.lang-select { display: block; }
.lang-picker { width: 100%; }
.lang-pick-flag { font-size: 1.25rem; line-height: 1; }
.lang-pick-name { flex: 1; }
.lang-picker .picker-list li span:first-child { font-size: 1.15rem; }
@media (prefers-reduced-motion: reduce) { .picker-panel { animation: none; } }

.passkey-offer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 12px 14px; border-radius: var(--radius); background: var(--card-bg);
  font-size: var(--fs-second);
}
.passkey-offer span { flex: 1 1 100%; }

/* ------------------------------------------------------------ seznam case
   Přehled: každý case je blok s nadpisem a řádky frází. Řádky nemají
   rámeček ani kartičku — jen vlasovou linku odsazenou od levého čtverce. */
.cases { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }
.cases section { display: block; }
.cases.single section { margin-top: 4px; }

.cases:not(.single) .case-add,
.cases:not(.single) .play-all,
.cases:not(.single) .case-edit,
.cases:not(.single) .case-share,
.cases:not(.single) .case-remove,
.cases:not(.single) .del-btn { display: none; }
.cases:not(.single) h2 { cursor: pointer; }
.cases:not(.single) h2:active { color: var(--accent-dark); }

.case-head { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
/* Název a ikony: název se láme uvnitř svého bloku, ikony stojí ve
   sloupci vpravo (trailing actions) — tužka za posledním slovem padala
   na další řádek, jakmile se název nevešel. */
.case-name { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 2px; }
.case-name .case-title { flex: 1 1 auto; min-width: 0; }
.case-edit, .case-share, .case-remove { display: inline-flex; gap: 2px; vertical-align: middle; white-space: nowrap; }
.case-edit { margin-left: 2px; }
.case-share, .case-remove { flex: none; }
.case-head.renaming .case-name { display: flex; align-items: center; gap: 4px; }
.case-head.renaming .case-title { flex: 1 1 auto; min-width: 0; }
.case-head.renaming .rename-input { width: 100%; }
.case-head.renaming .case-remove, .case-head.renaming .case-share,
.case-head.confirming .case-share, .case-head.confirming .case-edit { display: none; }
.case-flag { font-size: 1.35rem; line-height: 1; }

.row-icon {
  width: 44px; height: 44px; min-height: 0; margin: -10px 0; padding: 0;
  border-radius: 50%; background: none; color: var(--muted); font-size: 1.4rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.row-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.row-icon:active { color: var(--accent-dark); background: var(--accent-soft); }
.row-icon.del:active { color: var(--danger); background: var(--danger-soft); }
.row-icon.yes { color: var(--accent-dark); background: var(--accent-soft); }
.row-icon.yes.danger { color: var(--danger); background: var(--danger-soft); }
.rename-input { width: 100%; min-height: 36px; padding: 4px 10px; font: inherit; color: inherit; border-radius: 8px; background: var(--card-bg); box-shadow: inset 0 0 0 2px var(--accent); }

.case-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; }
.case-tags span:not(.case-flag) { padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: 0.75rem; font-weight: 500; }
.shared-mark { display: inline-flex; align-items: center; color: var(--accent); flex: none; }
.shared-mark svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.detail-tip { margin: 0 0 8px; color: var(--muted); font-size: var(--fs-caption); }

/* Řádek fráze: čtverec přehrání | texty | čtverec smazání. Bílý podklad
   v jednom bloku se zaoblenými rohy nahoře a dole (seskupený seznam). */
.rows { border-radius: var(--radius); background: var(--card-bg); overflow: hidden; }
.row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: stretch;
  background: var(--card-bg);
  border-bottom: var(--hairline);
}
.rows > :last-child { border-bottom: 0; }
.row-texts {
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
  padding: 12px 14px;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.target { font-size: 1rem; font-weight: 600; line-height: 1.35; cursor: pointer; }
.cs { color: var(--muted); font-size: var(--fs-second); line-height: 1.35; cursor: pointer; }
.target, .cs { position: relative; overflow-wrap: anywhere; padding-right: 30px; }

/* Šířka je pevná, ne odvozená z výšky řádku: JS píše --square inline
   (styles.css z ní dělá čtverec), tady se schválně nečte — u třířádkové
   fráze rostl čtverec a text se mačkal do zbytku. Sloupec musí lícovat. */
.play-btn, .del-btn {
  align-self: stretch; width: 56px; min-height: 56px; flex: none;
  padding: 0; border-radius: 0; font-size: 1.05rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.play-btn { background: var(--accent-soft); color: var(--accent-dark); }
.play-btn:active { background: var(--accent); color: #fff; }
.del-btn { position: relative; overflow: hidden; width: 44px; background: none; color: var(--muted); font-size: 1.4rem; font-weight: 400; }
.del-btn::after { content: ""; position: absolute; inset: 0; background: var(--danger); opacity: 0.85; transform: scaleY(0); transform-origin: bottom; }
.del-btn.holding { color: #fff; }
.del-btn.holding::after { transform: scaleY(1); transition: transform 0.5s linear; }
@media (prefers-reduced-motion: reduce) { .del-btn.holding::after { transition: none; } }

.copied { position: absolute; right: 4px; top: 50%; width: 19px; height: 19px; margin-top: -9.5px; color: var(--accent); pointer-events: none; animation: copied-out 0.9s ease-out forwards; }
.copied svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@keyframes copied-out { 0% { opacity: 0; transform: scale(0.7); } 20%, 65% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }

body.hide-source .cs { color: transparent; background: var(--accent-soft); border-radius: 6px; transition: color 0.15s, background 0.15s; }
body.hide-source .cs.revealed { color: var(--muted); background: none; }

/* Rozbor fráze pod řádkem — zarovnaný pod text */
.detail {
  margin: 0; padding: 12px 14px 14px 70px;
  background: var(--card-bg); border-bottom: var(--hairline);
  font-size: var(--fs-second); color: var(--muted);
  animation: detail-in 0.16s ease-out;
}
@keyframes detail-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.detail-phon { margin: 0 0 10px; color: var(--ink); font-size: var(--fs-body); }
.detail-words { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.detail-words span { display: flex; flex-direction: column; line-height: 1.35; }
.detail-words b { color: var(--accent-dark); font-weight: 600; font-size: var(--fs-second); }
.detail-words em { font-style: normal; font-size: var(--fs-caption); color: var(--ink); opacity: 0.7; }
.detail-words i { font-style: normal; font-size: var(--fs-caption); color: var(--muted); }
.detail-note { margin: 10px 0 0; padding-top: 10px; border-top: var(--hairline); color: var(--ink); font-size: var(--fs-second); line-height: 1.5; }
.detail-save { margin-top: 12px; padding-top: 10px; border-top: var(--hairline); }
.detail-targets { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.detail-targets button { text-align: left; background: var(--bg); color: var(--ink); font-weight: 500; font-size: var(--fs-second); }
.detail-targets .novy-cil { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.detail-targets .rename-input { width: 100%; }

/* Přidání fráze do case: kulaté + a vějíř voleb */
/* Přehrát vše — nad seznamem frází, jen v detailu case (FRONTA.md C5).
   Vypadá jako řádek seznamu, ne jako hlavní akce: v případě, že si člověk
   přišel jen přečíst jednu větu, nemá mu to skákat do oka. */
.play-all {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 48px; margin: 0 0 10px; padding: 0 14px;
  background: var(--card-bg); border-radius: 12px;
  color: var(--accent-dark); font-size: var(--fs-body); font-weight: 600;
  text-align: left;
}
.play-all::before { content: '▶'; font-size: 0.9em; }
.play-all-count { margin-left: auto; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.play-all:active { background: var(--accent-soft); }

.case-add { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 16px 0 8px; }
.fan-btn {
  min-height: 40px; padding: 8px 16px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dark); font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  opacity: 0; pointer-events: none;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s;
}
.fan-left { transform: translateX(60px) scale(0.85); }
.fan-right { transform: translateX(-60px) scale(0.85); }
.case-add.open .fan-btn { opacity: 1; pointer-events: auto; transform: none; }
.add-btn { width: 48px; height: 48px; min-height: 0; padding: 0; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.6rem; font-weight: 400; line-height: 1; box-shadow: 0 6px 16px rgba(74, 122, 94, 0.35); }
.case-add.open .add-btn { background: var(--muted); box-shadow: none; }
.translate-form { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.translate-form input { flex: 1 1 200px; }
.translate-form .hint { flex: 1 1 100%; }
@media (prefers-reduced-motion: reduce) { .fan-btn { transition: opacity 0.2s; transform: none; } }

/* ----------------------------------------------------------------- editor
   Celá obrazovka: pole, mapa, volby a přilepená patka s jedinou akcí. */
.editor { display: flex; flex-direction: column; min-height: calc(100dvh - var(--head, 100px) - var(--tabbar)); }
.editor-body { flex: 1; width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 12px var(--gutter) 16px; display: flex; flex-direction: column; gap: 16px; }
.field { display: block; margin: 0; }
.field > span, .field > label { display: block; margin-bottom: 6px; font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.tag-add { display: flex; gap: 8px; align-items: stretch; }
.tag-add input { flex: 1; min-width: 0; }
.add-tag-btn { flex: none; width: 52px; padding: 0; font-size: 1.5rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
.add-tag-btn:active { background: var(--accent); color: #fff; }
.chosen { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 0; }
.chosen:empty { display: none; }
.chip { display: inline-flex; align-items: stretch; border-radius: 999px; overflow: hidden; background: var(--accent-soft); }
.chip.live { background: var(--accent); }
.chip button { min-height: 36px; padding: 6px 4px 6px 12px; border-radius: 0; background: none; color: var(--accent-dark); font-size: var(--fs-caption); font-weight: 600; }
.chip.live button { color: #fff; }
.chip-drop { padding: 6px 11px 6px 5px !important; font-size: 1rem !important; opacity: 0.6; }
.chip-drop:active { opacity: 1; }
.map { position: relative; height: 352px; border-radius: 16px; background: var(--card-bg); overflow: hidden; touch-action: manipulation; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

#tagCanvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.map-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); width: 92%; text-align: center; font-size: var(--fs-caption); color: var(--muted); pointer-events: none; }

/* Přepínač (iOS segmented control): šedý žlábek, vybraná část bílá */
.segmented { display: flex; gap: 2px; padding: 2px; border-radius: 10px; background: rgba(30, 28, 24, 0.07); }
.segmented button {
  flex: 1; min-height: 40px; padding: 6px 4px; border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: none; color: var(--ink); font-size: var(--fs-second); font-weight: 500;
}
.segmented button.active { background: var(--card-bg); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(20, 20, 18, 0.14); }
.segmented small { font-size: 0.7rem; color: var(--muted); }

.editor-actions {
  position: sticky; bottom: var(--tabbar); z-index: 3;
  padding: 12px var(--gutter) 12px;
  background: rgba(244, 242, 238, 0.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: var(--hairline);
}
.editor-actions button { display: block; width: 100%; max-width: var(--content); margin: 0 auto; min-height: 50px; font-size: var(--fs-body); }
/* Věta pod tlačítkem, když na operaci tokeny nestačí. Je tam jen tehdy;
   za normálního stavu nese cenu samo tlačítko a nic pod ním být nemusí. */
.editor-actions .hint { max-width: var(--content); margin: 8px auto 0; text-align: center; color: var(--danger); }

/* --------------------------------------------------- profil, mentor, správa
   Seskupené bloky: nadpis bloku jako popisek NAD bílým blokem, řádky
   uvnitř s vlasovou linkou. Bez rámečku. */
.profile { display: flex; flex-direction: column; gap: 20px; padding-top: 8px; }
.panel { background: var(--card-bg); border-radius: var(--radius); padding: 4px 16px 12px; }
.panel h3 { margin: 10px 0 6px; font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.panel .row-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 44px; padding: 10px 0; border-bottom: var(--hairline); }
.panel .row-line:last-child { border-bottom: 0; }
.panel .row-line .value { font-weight: 600; font-variant-numeric: tabular-nums; }
/* Řádek, který někam vede (podmínky, soukromí). Šipka vpravo je konvence
   nativních nastavení: říká „tohle se otevře", ne „tohle je hodnota". */
.panel a.row-line { text-decoration: none; color: inherit; align-items: center; }
.panel a.row-line .value { color: var(--muted); font-weight: 400; font-size: 1.2rem; }
.panel a.row-line:active { opacity: .6; }
.panel > .hint, .panel > p.hint { text-align: left; margin: 6px 0; }
.panel > button, .profile-actions button { margin-top: 8px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 6px 0; }
.switch-row select { width: auto; max-width: 60%; min-height: 36px; padding: 6px 30px 6px 12px; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2335604a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center; box-shadow: none; color: var(--accent-dark); font-weight: 600; font-size: var(--fs-second); }
.slider-row { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.slider-row input[type="range"] { flex: 1; min-height: 0; padding: 0; background: none; box-shadow: none; accent-color: var(--accent); }
.slider-row .value { min-width: 62px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.quota-bar { height: 6px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; margin: 8px 0 4px; }
.quota-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.quota-bar.warn i { background: #b8862b; }
.quota-bar.low i, .quota-bar.full i { background: var(--danger); }
.pwd-form { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: var(--hairline); }

.ref-link { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.ref-link input { flex: 1; font-size: var(--fs-caption); font-family: ui-monospace, monospace; }
.ref-link button { flex: none; }
.qr-box { display: flex; justify-content: center; padding: 14px; background: #fff; border-radius: var(--radius); margin-top: 10px; box-shadow: inset 0 0 0 1px var(--border); }
.qr-box img { width: 190px; height: 190px; }
.ref-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 10px 0 6px; }
.ref-stat { background: var(--bg); border-radius: 10px; padding: 10px 12px; text-align: center; }
.ref-stat b { display: block; font-size: 1.5rem; color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.ref-stat span { font-size: var(--fs-caption); color: var(--muted); }
.invite-item { padding: 10px 0; border-top: var(--hairline); }
.invite-item:first-of-type { border-top: 0; }
.invite-item .ref-link { margin: 0 0 4px; }
.invite-actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.invite-actions button { min-height: 36px; font-size: var(--fs-caption); }

/* Podzáložky: přepínač přilepený pod hlavičkou. Šest položek se na
   telefon nevejde, tak se řádek roluje do strany místo lámání. */
.subtabs {
  position: sticky; top: var(--head, var(--bar)); z-index: 4;
  display: flex; gap: 2px; padding: 2px; margin: 0 0 4px;
  overflow-x: auto; scrollbar-width: none;
  /* Neprůhledný podklad: přilepený přepínač s průsvitným žlábkem nechal
     prosvítat rolující obsah (20. 9. 2026). */
  border-radius: 10px; background: #e6e4df; background: color-mix(in srgb, var(--ink) 7%, var(--bg));
  box-shadow: 0 -12px 0 0 var(--bg), 0 8px 0 0 var(--bg);   /* podklad nad/pod, ať obsah nepodjíždí */
}
.subtabs::-webkit-scrollbar { display: none; }
.subtabs button { flex: 1 0 auto; min-height: 38px; padding: 6px 10px; border-radius: 8px; background: none; color: var(--muted); font-size: var(--fs-second); font-weight: 500; }
.subtabs button.active { background: var(--card-bg); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(20, 20, 18, 0.14); }

/* Mentor */
.student-row, .invite-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 0; border-bottom: var(--hairline); }
.student-row:last-child, .invite-row:last-child { border-bottom: 0; }
.invite-block { padding-bottom: 9px; border-bottom: var(--hairline); }
.invite-block:last-child { border-bottom: 0; }
.invite-block .invite-row { border-bottom: 0; }
.student-row .who, .invite-row .who { flex: 1; min-width: 0; }
.student-row .who b, .invite-row .who b { display: block; }
.student-row .who span, .invite-row .who span { font-size: var(--fs-caption); color: var(--muted); overflow-wrap: anywhere; }
.pill { flex: none; padding: 3px 9px; border-radius: 999px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.pill.waiting { background: var(--bg); color: var(--muted); }
.pill.joined { background: var(--accent); color: #fff; }
.bulk-area { width: 100%; font-family: ui-monospace, monospace; font-size: var(--fs-caption); min-height: 90px; }
.invite-link { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.invite-link input { flex: 1; font-family: ui-monospace, monospace; font-size: 0.76rem; }
.share-list { display: flex; flex-direction: column; gap: 6px; max-height: 40vh; overflow-y: auto; margin: 10px 0; }
.share-list label { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 12px; border-radius: 10px; background: var(--bg); cursor: pointer; }
.share-list label:has(input:checked) { background: var(--accent-soft); color: var(--accent-dark); }
.share-list input[type="checkbox"] { width: 20px; min-height: 0; accent-color: var(--accent); }

.student-activity { display: flex; flex-direction: column; gap: 2px; padding: 9px 0 9px 12px; border-left: 3px solid var(--border); margin-bottom: 8px; }
.student-activity.ok { border-left-color: var(--accent); }
.student-activity.ticho { border-left-color: var(--danger); }
.student-activity span { font-size: var(--fs-caption); color: var(--muted); }
.student-activity small { font-size: 0.75rem; color: var(--muted); }
.progress-bar { height: 5px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; margin: 5px 0 3px; max-width: 240px; }
.progress-bar span { display: block; height: 100%; background: var(--accent); transition: width 0.3s ease-out; }
.student-activity.ticho .progress-bar span, .progress-bar.warn span { background: var(--danger); }

.group-block { border-top: var(--hairline); }
.group-block:first-of-type { border-top: 0; }
.group-row { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 0; }
.group-lang { flex: none; width: 44px; min-height: 44px; padding: 0; background: none; font-size: 1.3rem; line-height: 1; }
.group-langs { margin: 0 0 8px; justify-content: flex-start; }
.group-name { flex: 1 1 auto; min-width: 0; font-weight: 600; }
.group-count { flex: none; font-size: var(--fs-caption); color: var(--muted); font-variant-numeric: tabular-nums; }
.group-edit, .group-remove { display: inline-flex; gap: 2px; white-space: nowrap; }
.group-edit { margin-left: 4px; vertical-align: middle; }
.group-remove { flex: none; }
.group-row.renaming .group-name { display: flex; align-items: center; gap: 4px; }
.group-row.renaming .group-name > span:first-child { flex: 1 1 auto; min-width: 0; }
.group-row.renaming .group-count, .group-row.renaming .group-remove { display: none; }

.share-case { border-top: var(--hairline); }
.share-case:first-of-type { border-top: 0; }
.share-head { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 8px 0; border-radius: 0; background: none; text-align: left; color: var(--ink); font-size: var(--fs-second); font-weight: 500; }
.share-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-count { flex: none; font-size: var(--fs-caption); font-variant-numeric: tabular-nums; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 3px 9px; }
.share-count.full { color: var(--accent-dark); background: var(--accent-soft); }
.share-detail { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 14px; }
.share-group { padding: 10px 12px; background: var(--bg); border-radius: 10px; }
.share-group-head { display: flex; align-items: center; gap: 8px; }
.share-group-head b { flex: 1 1 auto; min-width: 0; }
.share-missing { display: block; margin: 4px 0 8px; font-size: var(--fs-caption); color: var(--muted); line-height: 1.4; }
.share-group button { min-height: 40px; font-size: var(--fs-caption); }
.share-add { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 0; border-top: var(--hairline); }
.share-add:first-child { border-top: 0; }
.share-add span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-second); }
.share-add button { flex: none; min-height: 40px; font-size: var(--fs-caption); }

/* Správa */
.admin-body { display: flex; flex-direction: column; gap: 20px; }
.admin-filter input { width: 100%; }
.admin-user { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: var(--hairline); }
.admin-user:first-of-type { border-top: 0; }
.admin-user-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-user small { color: var(--muted); font-size: 0.76rem; }
.admin-del { flex: none; width: 44px; min-height: 44px; padding: 0; background: none; color: var(--muted); font-size: 1.4rem; line-height: 1; }
.admin-del:active { color: var(--danger); }
.admin-user button { white-space: nowrap; font-size: var(--fs-caption); min-height: 36px; padding: 6px 12px; }
.plan-pick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.plan-pick button { min-height: 36px; min-width: 66px; border-radius: 999px; background: var(--bg); color: var(--muted); font-weight: 500; }
.plan-pick button.active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.plan-pick small { color: var(--muted); font-size: 0.76rem; }
.bonus-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.bonus-row input { width: 110px; min-height: 36px; padding: 6px 10px; }
.bonus-row button { min-height: 36px; font-size: var(--fs-caption); }
.bonus-row small { color: var(--muted); font-size: 0.76rem; }
.log-row { padding: 8px 0; border-top: var(--hairline); }
.log-row:first-of-type { border-top: 0; }
.log-head { display: flex; align-items: baseline; gap: 8px; font-size: var(--fs-second); }
.log-head b { flex: none; }
.log-time { flex: none; min-width: 66px; font-size: var(--fs-caption); color: var(--muted); font-variant-numeric: tabular-nums; white-space: pre-line; line-height: 1.3; }
.log-who { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: var(--fs-caption); text-align: right; }
.log-what { display: block; margin-left: 74px; color: var(--muted); font-size: var(--fs-caption); line-height: 1.35; word-break: break-word; }
.log-row.chyba .log-head b { color: var(--danger); }
.log-detail { margin: 6px 0 0 74px; padding: 8px 10px; background: var(--bg); border-radius: 8px; font-size: 0.7rem; line-height: 1.4; white-space: pre-wrap; word-break: break-word; color: var(--muted); overflow-x: auto; }
.cost-line { padding: 2px 0; }
.cost-line .progress-bar { max-width: none; margin: 2px 0 6px; }
.mail-subject { margin: 0 0 10px; font-weight: 600; font-size: var(--fs-second); line-height: 1.35; }
.mail-frame { display: block; width: 100%; height: 320px; border: 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--border); }
.mail-text { margin: 8px 0 0; padding: 12px; border-radius: 10px; background: var(--bg); color: var(--muted); font-size: var(--fs-caption); line-height: 1.5; white-space: pre-wrap; word-break: break-word; }

/* ------------------------------------------------------------------ hovor */
.listen { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.dialog { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; }
.dialog-side {
  display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0;
  padding: 12px 8px 16px; border-radius: 16px; background: var(--card-bg);
  transition: background 0.2s;
}
.dialog-side.active { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.dialog-lang-wrap { position: relative; width: 100%; }
.dialog-lang { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 6px 8px; border-radius: 10px; background: var(--bg); color: var(--ink); font-size: var(--fs-second); font-weight: 600; line-height: 1.2; }
.dialog-flag { font-size: 1.8rem; line-height: 1; }
.mic-btn {
  flex: none; width: 68px; height: 68px; min-height: 0; padding: 0; border-radius: 50%;
  background: var(--muted); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(20, 20, 18, 0.18); transition: background 0.2s, transform 0.15s;
}
.mic-btn svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.mic-btn:active { transform: scale(0.96); }
.mic-btn.on { background: var(--danger); animation: mic-pulse 1.6s ease-in-out infinite; }
@keyframes mic-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(164, 86, 76, 0.45); } 50% { box-shadow: 0 0 0 18px rgba(164, 86, 76, 0); } }
.dialog-lines {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; align-content: start;
  min-height: 180px; max-height: 46vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.dialog-line {
  display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: start; min-width: 0; min-height: 44px;
  padding: 8px 10px; border-radius: 12px; background: var(--card-bg); font-size: var(--fs-second); line-height: 1.35; word-break: break-word;
}
.dialog-line.own { font-weight: 600; }
.dialog-line.waiting { color: var(--muted); }
.dialog-play { color: var(--accent); font-size: 0.72rem; line-height: 1.7; }
.dialog-play.ceka { opacity: 0.28; }
.interim { color: var(--muted); font-style: italic; }
.dialog-line.interim.left { grid-column: 1; }
.dialog-line.interim.right { grid-column: 2; }
.listen-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.listen-actions button { flex: 1 1 auto; }
.listen-status { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--accent-dark); }
.listen-status .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--danger); animation: pulse 1.4s ease-in-out infinite; }
.listen-status.idle .dot { background: var(--muted); animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.8); } }
.transcript { min-height: 3.2em; padding: 12px 14px; border-radius: 12px; background: var(--card-bg); color: var(--muted); font-size: var(--fs-second); line-height: 1.5; }
.transcript b { color: var(--ink); font-weight: 500; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 9px 14px; border-radius: 12px; background: var(--card-bg); box-shadow: inset 0 0 0 1.5px var(--accent); text-align: left; font-weight: 400; color: var(--ink); }
.badge b { color: var(--accent-dark); font-weight: 600; }
.badge span { color: var(--muted); font-size: var(--fs-caption); }
.badge small { color: var(--muted); font-size: 0.72rem; }
.badge.playing { background: var(--accent); box-shadow: none; }
.badge.playing b, .badge.playing span, .badge.playing small { color: #fff; }
.badge.waiting { opacity: 0.55; box-shadow: inset 0 0 0 1px var(--border); }
.badge .drop { min-height: 0; margin-left: 2px; padding: 0 2px; background: none; color: var(--muted); font-size: 1rem; line-height: 1; font-weight: 400; }
.badge.playing .drop { color: rgba(255,255,255,0.8); }
.listen-btn { width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; }
.listen-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.listen-btn.active { background: var(--danger); color: #fff; }
.lang-flag { width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; background: none; font-size: 1.5rem; line-height: 1; display: flex; align-items: center; justify-content: center; opacity: 0.45; transition: opacity 0.15s, box-shadow 0.15s; }
.lang-flag.current, .lang-flag.active { opacity: 1; box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
@media (prefers-reduced-motion: reduce) { .mic-btn.on, .listen-status .dot { animation: none; } }

@property --tokens { syntax: '<number>'; inherits: true; initial-value: 1; }  /* inherits: JS píše hodnotu na tlačítko, čte ji prstenec uvnitř */

/* ------------------------------------------------------------ náhled case
   Jediná obrazovka pro člověka bez účtu. Vypadá jako appka — je to ukázka
   toho, co dostane. Hlavička se značkou, fráze v seskupeném seznamu,
   k čemu to je jako čtyři řádky s ikonou, akce dole, jazyky v jednom
   rolovacím řádku (osmnáct čipů zalomených do mřížky byla stěna). */
.preview {
  max-width: calc(var(--content) + 2 * var(--gutter));
  min-height: 100dvh;
  justify-content: flex-start;
  gap: 20px;
  padding-top: max(12px, env(safe-area-inset-top));
  text-align: left;
}
.preview-head { display: flex; flex-direction: column; gap: 6px; }
.preview-head .brand {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--bar); margin-bottom: 8px;
  font-family: 'DM Sans', inherit; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.preview-head .brand-logo { width: auto; height: 30px; }
.preview-from { color: var(--muted); font-size: var(--fs-second); }
.preview .page-title { padding: 0; }
.preview .hint { text-align: left; }
.preview .cases { padding: 0; }
.preview-why { background: var(--card-bg); border-radius: var(--radius); padding: 4px 16px 8px; }
.preview-why h3 { margin: 10px 0 4px; font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.why-row { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: var(--hairline); }
.why-row:last-child { border-bottom: 0; }
.why-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; }
.why-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.why-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.why-row b { font-weight: 600; }
.why-row span:not(.why-icon) { color: var(--muted); font-size: var(--fs-second); line-height: 1.4; }
.preview-actions {
  position: sticky; bottom: 0; z-index: 3;
  margin: 0 calc(-1 * var(--gutter));
  padding: 12px var(--gutter) max(12px, env(safe-area-inset-bottom));
  background: rgba(244, 242, 238, 0.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: var(--hairline);
  display: flex; flex-direction: column; gap: 8px;
}
.preview-actions .hint { text-align: center; }
.preview .lang-flags { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)) 8px; padding: 0 var(--gutter); }
.preview .lang-flags::-webkit-scrollbar { display: none; }
.preview .lang-chip { flex: none; }

/* ------------------------------------------------------------ Vývoj
   Živý průvodce vývojem ve Správě: FRONTA.md, ROADMAP.md, MARKETING.md. */
.guide-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 8px; }
.guide-stat { background: var(--bg); border-radius: 10px; padding: 10px 8px; text-align: center; }
.guide-stat b { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.guide-stat.ok b { color: var(--accent-dark); }
.guide-stat.mid b { color: var(--muted); }
.guide-stat span { font-size: var(--fs-caption); color: var(--muted); }
.guide-next { margin: 14px 0 6px; padding: 12px; border-radius: var(--radius); background: var(--accent-soft); }
.guide-next-label { font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 6px; }
.guide-task { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: var(--hairline); }
.guide-task:last-child { border-bottom: 0; }
.guide-next .guide-task { padding: 0; border: 0; }
.guide-mark { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 7px; display: grid; place-items: center; font-size: 0.9rem; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--border); color: var(--accent-dark); }
.guide-task.hotovo .guide-mark { background: var(--accent); color: #fff; box-shadow: none; }
.guide-task.rozdelano .guide-mark { color: var(--muted); }
.guide-task > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.guide-task b { font-weight: 600; line-height: 1.3; }
.guide-task.hotovo b { color: var(--muted); text-decoration: line-through; }
.guide-task .pill { margin-left: 8px; vertical-align: middle; }
.guide-desc { color: var(--muted); font-size: var(--fs-second); line-height: 1.4; }
.guide-done-when { font-size: var(--fs-caption); color: var(--accent-dark); line-height: 1.4; }
.guide-done-when::before { content: '✓ '; }
.guide-task.big b { font-size: var(--fs-body); }
.guide-decision { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: var(--hairline); }
.guide-decision:last-child { border-bottom: 0; }
.guide-id { flex: none; min-width: 34px; padding: 3px 0; border-radius: 7px; background: var(--bg); text-align: center; font-size: var(--fs-caption); font-weight: 700; color: var(--muted); }
.guide-decision > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.guide-decision b { font-weight: 600; }
.guide-default { color: var(--accent-dark); font-size: var(--fs-second); line-height: 1.4; }
.guide-default::before { content: '→ '; }
.guide-decision small { color: var(--muted); font-size: var(--fs-caption); line-height: 1.4; }
.guide-section { border-bottom: var(--hairline); }
.guide-section:last-child { border-bottom: 0; }
.guide-section > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 8px 0; cursor: pointer; list-style: none; font-weight: 600; }
.guide-section > summary::-webkit-details-marker { display: none; }
.guide-section > summary::after { content: '›'; color: var(--muted); font-size: 1.3rem; line-height: 1; transform: rotate(90deg); transition: transform 0.15s; }
.guide-section:not([open]) > summary::after { transform: none; }
.guide-section > summary small { margin-left: auto; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.guide-section > summary span { min-width: 0; }
.guide-section > .guide-task:last-of-type { border-bottom: 0; }
.guide-diary { padding: 8px 0; border-bottom: var(--hairline); font-size: var(--fs-second); color: var(--muted); line-height: 1.45; }
.guide-diary:last-child { border-bottom: 0; }
.md-p { margin: 8px 0; font-size: var(--fs-second); line-height: 1.5; }
.md-h { margin: 14px 0 4px; font-size: var(--fs-body); }
h4.md-h { font-size: var(--fs-second); color: var(--accent-dark); }
.md-list { margin: 6px 0; padding-left: 20px; font-size: var(--fs-second); line-height: 1.5; }
.md-list li { margin: 3px 0; }
.md-code { margin: 8px 0; padding: 10px 12px; border-radius: 8px; background: var(--bg); font-size: 0.78rem; line-height: 1.45; overflow-x: auto; white-space: pre; }
.md-quote { margin: 8px 0; padding: 4px 12px; border-left: 3px solid var(--accent); color: var(--muted); font-size: var(--fs-second); }
.md-table-wrap { overflow-x: auto; margin: 8px 0; }
.md-table { border-collapse: collapse; font-size: var(--fs-caption); min-width: 100%; }
.md-table th, .md-table td { padding: 6px 8px; border-bottom: var(--hairline); text-align: left; vertical-align: top; }
.md-table th { color: var(--muted); font-weight: 600; }
.md-tag { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 6px; font-size: 0.72rem; font-weight: 700; text-align: center; vertical-align: middle; }
.md-tag.tag-R { background: var(--accent); color: #fff; }
.md-tag.tag-N { background: var(--accent-soft); color: var(--accent-dark); }
.md-tag.tag-q { background: var(--danger-soft); color: var(--danger); }
.md-p code, .md-list code, .guide-desc code, .guide-default code, .md-table code { font-size: 0.85em; padding: 1px 5px; border-radius: 4px; background: var(--bg); }
.md-p a, .md-list a { color: var(--accent-dark); }

/* ------------------------------------------------------------- spodní lišta
   49 pt + bezpečná zóna, průsvitná, vlasová linka nahoře. Uprostřed
   akce „nový case" jako vyvýšený kruh — jediná akce mezi sekcemi. */
/* Přilepená ke dnu rolujícího prvku jako poslední dítě #app, ne fixed:
   v rámu telefonu roluje #app (a má transform), kde by se fixed choval
   jako absolute a lišta jela s obsahem. Sticky funguje v obou případech;
   margin-top: auto ji u krátkého obsahu drží dole. */
/* --- proužek s průběhem generování (FRONTA.md C3) ---------------------------
   Nad spodní lištou, přes celou šířku, obsah v šířce stránky jako ostatní
   pruhy. Není to okno a nic se do něj nezadává — stav a jedno klepnutí. */
/* Volné místo v krátkém obsahu si bere `margin-top: auto`. Dokud ho měla
   jen lišta, zůstaly proužky viset hned pod obsahem a mezi nimi a lištou
   zela mezera. Když je vidět obal, přebírá to on a lišta se ho drží.
   Obal je jeden schválně: dva přilepené prvky se stejným `bottom` by se
   překryly, takhle se poskládají nad sebe. */
.lista:not([hidden]) { margin-top: auto; }
.lista:not([hidden]) ~ .tabbar { margin-top: 0; }
.lista {
  position: sticky; bottom: var(--tabbar); z-index: 25;
  display: flex; flex-direction: column; width: 100%;
}

.ukol {
  display: flex; flex-direction: column; gap: 6px; align-items: stretch;
  width: 100%; padding: 10px var(--gutter) 12px;
  background: var(--accent-soft);
  border-top: var(--hairline); border-radius: 0;
  text-align: left; color: var(--ink); font-size: var(--fs-second);
}
/* Přehrávání je stav, ne hlášení — proto sytější podklad a pauza vpravo. */
.ukol.prehravac { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; }
.ukol.prehravac .ukol-text { grid-column: 1; }
.ukol.prehravac .ukol-bar { grid-column: 1 / -1; }
.ukol.prehravac::after {
  content: '❚❚'; grid-column: 2; grid-row: 1;
  font-size: 0.8rem; letter-spacing: 1px; color: var(--accent-dark);
}
.ukol-text { font-weight: 600; }
.ukol-bar { display: block; height: 3px; border-radius: 2px; background: var(--border); overflow: hidden; }
.ukol-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
/* Neurčitý průběh: dokud model nevrátí fráze, není co počítat. */
.ukol.ceka .ukol-bar i { width: 35%; animation: ukol-puls 1.4s ease-in-out infinite; }
@keyframes ukol-puls {
  0% { margin-left: -35%; } 100% { margin-left: 100%; }
}
.ukol.hotovo { background: var(--accent); color: #fff; }
.ukol.hotovo .ukol-bar { display: none; }
.ukol.chyba { background: var(--danger-soft); color: var(--danger); }
.ukol.chyba .ukol-bar { display: none; }

.tabbar {
  position: sticky; bottom: 0; z-index: 20;
  margin-top: auto;
  display: flex; justify-content: center;
  background: rgba(249, 248, 245, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-top: var(--hairline);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar-inner { display: flex; width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); padding: 0 8px; }
.tab {
  flex: 1; min-height: 49px; padding: 6px 2px 4px; border-radius: 0; background: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.01em;
}
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab:active { filter: none; opacity: 0.7; }
.tab.active { background: none; color: var(--accent); }
.tab.active svg { stroke-width: 2.2; }
.tab.action { color: var(--accent-dark); }
.tab.action svg { width: 24px; height: 24px; padding: 9px; margin-top: -14px; border-radius: 50%; background: var(--accent); stroke: #fff; stroke-width: 2.2; box-sizing: content-box; box-shadow: 0 6px 16px rgba(74, 122, 94, 0.4); }
.tab.action:active svg { background: var(--accent-dark); }
#listenBtn.live { color: var(--danger); }
#listenBtn.live svg { stroke-width: 2.2; }

/* ------------------------------------------------------------------ toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar) + 14px); z-index: 40;
  transform: translateX(-50%); max-width: min(560px, calc(100vw - 32px));
  padding: 11px 16px; border-radius: 12px; background: var(--ink); color: var(--bg);
  font-size: var(--fs-caption); line-height: 1.35; text-align: center;
  box-shadow: 0 8px 24px rgba(20, 20, 18, 0.22); animation: toast-life 3.2s ease-out forwards; pointer-events: none;
}
@keyframes toast-life { 0% { opacity: 0; transform: translate(-50%, 8px); } 8%, 82% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -4px); } }

/* ---------------------------------------------------------------- dotaz */
.ask { width: min(320px, calc(100% - 32px)); margin: auto; padding: 20px; border: 0; border-radius: 16px; background: var(--card-bg); color: var(--ink); box-shadow: 0 12px 32px rgba(20, 20, 18, 0.18); }
.ask::backdrop { background: rgba(20, 20, 18, 0.4); }
.ask-text { margin: 0; font-size: var(--fs-body); font-weight: 600; line-height: 1.35; }
.ask-note { display: block; margin-top: 8px; font-size: var(--fs-caption); color: var(--muted); line-height: 1.4; }
.ask-actions { display: flex; gap: 8px; margin-top: 20px; }
.ask-actions button { flex: 1; min-height: 48px; }
.ask-yes { background: var(--accent-soft); color: var(--accent-dark); }
.ask-yes.danger { background: var(--danger-soft); color: var(--danger); }

/* ------------------------------------------------- široký displej
   Žádný rámeček telefonu — to je konvence maket, ne appek. Appka na
   širokém displeji stojí jako sloupec uprostřed: obsah, hlavička i lišta
   drží šířku --content, okolo je klidný podklad. Roluje pořád okno. */
@media (min-width: 720px) {
  body {
    background:
      radial-gradient(900px 600px at 15% 0%, rgba(65, 186, 231, 0.10), transparent 60%),
      radial-gradient(800px 600px at 90% 100%, rgba(52, 175, 104, 0.09), transparent 60%),
      var(--bg);
  }
  #app {
    max-width: calc(var(--content) + 2 * var(--gutter));
    margin: 0 auto;
    background: var(--bg);
    box-shadow: 0 0 0 1px var(--border);
  }
  #app > .toolbar, #app > .cases, #app > .status, #app > .profile, #app > .listen { max-width: none; }
}

/* Nabídka tarifů v profilu: řádek s názvem vlevo a cenou vpravo */
.panel .segmented { margin: 4px 0 8px; }
button.plan-offer {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; margin: 8px 0 0; min-height: 56px; text-align: left;
}
button.plan-offer strong { display: block; font-size: var(--fs-body); }
button.plan-offer small { display: block; font-size: var(--fs-caption); font-weight: 400; color: var(--muted); }
button.plan-offer > span:last-child { white-space: nowrap; }
.panel > button.big { margin-top: 8px; }
.panel > .hint.danger-text { color: var(--danger); }

/* Stránka platby (platba.html): jen logo, stav a cesta zpět — obsah je
   okno Paddlu přes ni */
.platba { max-width: var(--content); margin: 0 auto; padding: 48px var(--gutter); display: flex; flex-direction: column; gap: 16px; align-items: stretch; text-align: center; }
.platba .brand-tile { width: 160px; height: auto; align-self: center; }

/* Vývoj: „Skrýt hotové" schová hotové úkoly i sekce, kde nic nezbývá */
.skryt-hotove .guide-task.hotovo,
.skryt-hotove .guide-section.vse-hotovo { display: none; }

/* Přihlašování v profilu: způsoby přihlášení jako rozbalovací řádky */
.metody { margin: 0 calc(-1 * var(--gutter)); }
.metoda { border-top: var(--hairline); }
.metoda:first-child { border-top: 0; }
.metoda > summary {
  display: flex; align-items: center; gap: 12px; min-height: 56px;
  padding: 8px var(--gutter); list-style: none; cursor: pointer;
}
.metoda > summary::-webkit-details-marker { display: none; }
.metoda > summary::after {
  content: ''; flex: none; width: 8px; height: 8px; margin-left: 4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg); transition: transform .15s ease;
}
.metoda[open] > summary::after { transform: rotate(45deg); }
.metoda-ikona { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent-dark); }
.metoda-ikona svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.metoda-texty { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.metoda-texty b { font-weight: 600; }
.metoda-texty small { font-size: var(--fs-caption); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metoda-stav { flex: none; font-size: var(--fs-caption); font-weight: 600; color: var(--accent-dark); }
.metoda-stav::before { content: '✓'; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 4px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; }
.metoda-telo { padding: 0 var(--gutter) 12px; background: var(--bg, transparent); }
.metoda-telo .row-line { display: flex; justify-content: space-between; gap: 12px; min-height: 40px; padding: 8px 0; border-bottom: var(--hairline); }
.metoda-telo .row-line .value { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.metoda-odebrat { display: inline-flex; gap: 8px; align-items: center; }
.metoda-aktivita { margin-top: 4px; }
.metoda-aktivita .row-line .value { font-weight: 400; color: var(--muted); }
button.metoda-pridat {
  display: block; width: 100%; min-height: 52px; padding: 0 var(--gutter); text-align: left;
  border-top: var(--hairline); border-radius: 0; background: none; color: var(--accent-dark); font-weight: 600;
}

/* Správa → Služby (FRONTA.md H4). Stav nese znak i slovo, ne jen barva. */
:root { --stav-ok: var(--accent); --stav-warn: #b8862b; --stav-bad: var(--danger); }
.sluzby-souhrn { margin: 4px 0 8px; font-weight: 600; }
.sluzby-souhrn::before { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; color: #fff; font-size: 12px; }
.sluzby-souhrn.bezi::before { content: '✓'; background: var(--stav-ok); }
.sluzby-souhrn.varovani::before { content: '!'; background: var(--stav-warn); }
.sluzby-souhrn.dole::before { content: '×'; background: var(--stav-bad); }
.sluzby-souhrn.dole { color: var(--stav-bad); }
.sluzba { margin: 0 calc(-1 * var(--gutter)); border-top: var(--hairline); }
.sluzba > summary { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px var(--gutter); list-style: none; cursor: pointer; }
.sluzba > summary::-webkit-details-marker { display: none; }
.sluzba-znak { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700; background: var(--muted); }
.stav-bezi .sluzba-znak { background: var(--stav-ok); }
.stav-varovani .sluzba-znak { background: var(--stav-warn); }
.stav-dole .sluzba-znak { background: var(--stav-bad); }
.sluzba-dostupnost { flex: none; font-size: var(--fs-caption); color: var(--muted); font-variant-numeric: tabular-nums; }
.sluzba-chyba { margin: 0 0 6px; color: var(--stav-bad); font-size: var(--fs-second); overflow-wrap: anywhere; }
.stav-varovani .sluzba-chyba { color: var(--stav-warn); }
.sluzba-chyba-text { text-align: left; overflow-wrap: anywhere; margin-top: 0; }
.panel > button.big { margin-top: 12px; }

.hod-graf { margin: 6px 0 4px; }
.hod-sloupce { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; align-items: end; height: 72px; }
.hod-sloupec { height: 100%; min-height: 0; padding: 0; border-radius: 0; background: none; display: flex; align-items: flex-end; }
.hod-sloupec i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: var(--accent); opacity: .75; }
.hod-sloupec.prazdny i { opacity: 0; }
.hod-sloupec.vybrany i, .hod-sloupec:hover i { opacity: 1; }
.hod-sloupec.chyba i, .hod-sloupce.chyby .hod-sloupec i { background: var(--stav-bad); }
.hod-osa { display: flex; justify-content: space-between; font-size: var(--fs-caption); color: var(--muted); margin-top: 4px; }
.hod-stitek { text-align: left; margin: 4px 0 0; }
.guide-stat.chyba b { color: var(--stav-bad); }
