/* Petaliano. Ručně malovaná italská keramika (maiolica z Vietri a Amalfi): glazovaná bílá, kobalt, citron, list.
   Italské věty v Bodoni Moda (Bodoni tiskl v Parmě), české rozhraní v Titillium Web (navrženo v Urbinu). */
@font-face {font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/bodoni-italic-400-800-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: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/bodoni-italic-400-800.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: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/bodoni-normal-400-800-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: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/bodoni-normal-400-800.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: 'Titillium Web';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/titillium-normal-400-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: 'Titillium Web';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/titillium-normal-400.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: 'Titillium Web';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/titillium-normal-600-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: 'Titillium Web';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/titillium-normal-600.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: 'Titillium Web';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/titillium-normal-700-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: 'Titillium Web';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/titillium-normal-700.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;}

:root {
  --smalto: #F6F9FC;    /* pozadí: glazura, studená bílá */
  --carta: #FFFFFF;     /* plocha karty */
  --linea: #DCE4EE;     /* linky, tiché plochy */
  --ink: #15233F;       /* text: inkoust */
  --ink-2: #4A5874;     /* vedlejší text, 7:1 na glazuře */
  --cobalto: #1F4FA8;   /* hlavní akce, 7:1 s bílou */
  --cobalto-tma: #173C82;
  --cobalto-sv: #DDE7F7;
  --pomodoro: #C8372D;  /* rozdíl, chyba, nahrávání */
  --pomodoro-sv: #FBE3E1;
  --evidenzia: #FCE89A; /* zvýraznění slov */
  /* barvy malované keramiky: orientace po záložkách; červená a citronová dál nesou význam */
  --mare: #0E6F8A; --mare-sv: #D6EEF4; --mare-tma: #0A5468;
  --limone: #F2C230; --limone-sv: #FDF3CF; --limone-tma: #7A5A00; --limone-ink: #2A1E00;
  --foglia: #2E7A4C; --foglia-sv: #DCEFE2; --foglia-tma: #215A38;
  --glicine: #6A4CB8; --glicine-sv: #E9E3F8; --glicine-tma: #4E3592;
  --rosa: #B53A64; --rosa-sv: #F8E0E8; --rosa-tma: #8E2A4D;
  --fuoco: #E2591B;     /* plamínek série */
  --medaile-modra: #7FC4DA; --medaile-modra-ink: #06303C; --medaile-roza: #F09AB8; --medaile-roza-ink: #4A0A27; --medaile-sivka: #B7A4EE; --medaile-sivka-ink: #23135E;
  /* barva právě otevřené záložky */
  --tab: var(--cobalto); --tab-ink: #fff; --tab-sv: var(--cobalto-sv); --tab-tma: var(--cobalto-tma);
  --ui: "Titillium Web", system-ui, sans-serif;
  --serif: "Bodoni Moda", "Iowan Old Style", Georgia, serif;
  --text: "Titillium Web", system-ui, sans-serif;
  --r-s: 8px; --r-m: 14px; --r-l: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 4.25rem;
  --inv: var(--ink);    /* tmavá plocha s bílým písmem: hláška, vybraný štítek */
  --glaze: inset 0 1px 0 rgb(255 255 255 / .9), 0 1px 0 var(--linea), 0 10px 24px -16px rgb(21 35 63 / .35); /* okraj glazury místo šedého stínu */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--linea) var(--smalto); }
body { margin: 0; background: var(--smalto); color: var(--ink); font: 400 1.0625rem/1.5 var(--text); min-height: 100dvh;
  caret-color: var(--cobalto); accent-color: var(--cobalto); }
::selection { background: var(--evidenzia); color: var(--ink); }
[hidden] { display: none !important; }
h1, h2, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--cobalto-tma); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--cobalto); outline-offset: 3px; border-radius: var(--r-s); }
main:focus { outline: none; }
.skip { position: absolute; left: -999px; top: 0; background: var(--inv); color: #fff; padding: .6rem 1rem; z-index: 20; }
.skip:focus { left: .5rem; top: .5rem; }

#view { max-width: 35rem; margin: 0 auto; padding: 1.5rem 1.15rem calc(var(--nav-h) + 8.5rem + env(safe-area-inset-bottom)); }
h1 { font: 700 2.25rem/1.08 var(--ui); letter-spacing: -.015em; text-wrap: balance; margin-bottom: .6rem; }
h2 { font: 650 1.3rem/1.2 var(--ui); letter-spacing: -.01em; margin: 2.4rem 0 .6rem; }
.lead { color: var(--ink-2); max-width: 34ch; margin-bottom: 1.4rem; text-wrap: pretty; }
.it { font-family: var(--serif); font-weight: 600; font-optical-sizing: auto; }
.cz { color: var(--ink-2); }
.note { font-size: .95rem; color: var(--ink-2); margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--linea); text-wrap: pretty; }
.pron { font-size: .95rem; color: var(--ink-2); font-style: italic; margin-top: .25rem; }
.pron::before { content: "["; } .pron::after { content: "]"; }
.empty { color: var(--ink-2); padding: 1.5rem 0; }
.ic { display: inline-flex; flex: none; }
.ic svg { width: 1.25em; height: 1.25em; }

/* tlačítka */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.9rem; padding: .55rem 1.1rem;
  font: 600 1rem/1.2 var(--text); color: var(--ink); background: var(--carta); border: 1.5px solid var(--linea); border-radius: 999px;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn:hover { border-color: var(--cobalto); }
.btn:active { transform: scale(.97); }
.btn { box-shadow: 0 3px 0 var(--linea); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--linea); }
.btn.primary { background: var(--tab); border-color: var(--tab); color: var(--tab-ink); box-shadow: 0 3px 0 var(--tab-tma); }
.btn.primary:hover { border-color: var(--tab-tma); }
.btn.primary:active { box-shadow: 0 1px 0 var(--tab-tma); }
.btn.quiet, .btn.quiet:active { box-shadow: none; }
.btn.quiet { background: none; border-color: transparent; color: var(--ink-2); font-weight: 500; }
.btn.quiet:hover { color: var(--ink); border-color: var(--linea); }
.btn.xl { width: 100%; min-height: 3.6rem; font-size: 1.15rem; }
.btn:disabled { opacity: .5; cursor: default; }
.back { display: inline-flex; align-items: center; gap: .15rem; color: var(--ink-2); text-decoration: none; font-weight: 500; margin: 0 0 1rem -.35rem; min-height: 2.75rem; }
.back:hover { color: var(--ink); }

/* spodní lišta */
#nav { position: fixed; inset: auto 0 0 0; z-index: 10; display: flex; justify-content: center; background: color-mix(in srgb, var(--smalto) 92%, transparent);
  backdrop-filter: blur(10px); border-top: 1px solid var(--linea); padding-bottom: env(safe-area-inset-bottom); }
#nav a { flex: 1 1 0; max-width: 7.5rem; min-height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
  color: var(--ink-2); text-decoration: none; font-size: .74rem; font-weight: 600; }
#nav a .ic svg { width: 1.5rem; height: 1.5rem; }
#nav a.on { color: var(--tab-tma); }
#nav a.on .ic { background: var(--tab-sv); border-radius: 999px; padding: .15rem .9rem; margin: -.15rem 0; }

/* Dnes */
.greet { font: italic 600 clamp(2.6rem, 12.5vw, 4rem)/1 var(--serif); letter-spacing: -.02em; margin: 1rem 0 1rem; color: var(--cobalto-tma); text-wrap: balance; }
.home .lead { font-size: 1.2rem; color: var(--ink); max-width: 26ch; }
.stats { margin-top: 2.2rem; display: grid; gap: .3rem; }
.stats b { font-family: var(--ui); font-weight: 700; font-variant-numeric: tabular-nums; }
.days { display: flex; align-items: flex-end; gap: 5px; height: 64px; margin-top: 1rem; }
.bar { flex: 1; background: var(--mare); border-radius: 4px 4px 1px 1px; }
.bar:nth-child(3n) { background: var(--glicine); } .bar:nth-child(3n+1) { background: var(--cobalto); }
.bar.zero { background: var(--linea); }
.settings .row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.2rem; border-bottom: 1px solid var(--linea); }
.settings .btn.quiet { margin: 1rem 0 0 -1.1rem; }
.stepper { display: inline-flex; align-items: center; gap: .3rem; }
.stepper button { width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 1.5px solid var(--linea); background: var(--carta); font: 600 1.3rem/1 var(--text); color: var(--ink); cursor: pointer; }
.stepper output { min-width: 2.2ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
input[role="switch"] { appearance: none; width: 3.1rem; height: 1.8rem; border-radius: 999px; background: var(--linea); position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
input[role="switch"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.8rem - 6px); height: calc(1.8rem - 6px); border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(21 35 63 / .3); transition: transform .2s var(--ease); }
input[role="switch"]:checked { background: var(--cobalto); }
input[role="switch"]:checked::after { transform: translateX(1.3rem); }

/* Lekce */
.lesson-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .2rem .8rem; margin-bottom: 1.2rem; }
.lesson-head .back { margin: 0 0 0 -.35rem; }
.progress { height: 6px; background: var(--linea); border-radius: 3px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--cobalto); border-radius: 3px; transform-origin: left; transition: transform .4s var(--ease); }
.count { font-size: .9rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.group { grid-column: 1 / -1; font-size: .9rem; color: var(--ink-2); }
.card { background: var(--carta); border-radius: var(--r-l); padding: 1.5rem 1.3rem 1.4rem; box-shadow: var(--glaze); }
.card > .count { margin-bottom: .6rem; }
.it.huge { font-size: clamp(2rem, 9.5vw, 2.9rem); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere; }
.it.big { font-size: clamp(1.6rem, 7.5vw, 2.2rem); font-weight: 600; line-height: 1.14; letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere; }
.cz.cue { font: 600 clamp(1.5rem, 7vw, 2rem)/1.15 var(--ui); color: var(--ink); letter-spacing: -.02em; text-wrap: balance; margin-bottom: 1.2rem; }
.pic { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-m); margin-bottom: 1rem; background: var(--linea); }
.ab { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.reveal { margin-top: 1.4rem; }
.reveal .hint { color: var(--ink-2); margin-bottom: .9rem; }
.reveal .cz { font-size: 1.3rem; color: var(--ink); font-weight: 500; }
.choice, .rate { display: grid; gap: .55rem; margin-top: 1.4rem; }
.choice { grid-template-columns: 1fr 1fr; }
.rate { grid-auto-flow: column; grid-auto-columns: 1fr; gap: .4rem; }
.rate .btn, .choice .btn { padding-inline: .3rem; min-height: 3.3rem; }
.rate .btn { font-size: .95rem; }
.rate .r1 { color: var(--pomodoro); }
.rate .suggested { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.card > .btn.primary:last-child { margin-top: 1.2rem; width: 100%; }
.done { text-align: left; display: grid; gap: .7rem; }
.done h1 { font-size: 3.4rem; color: var(--tab-tma); }
.done h2 { margin-top: 0; }

/* Mluvení */
.speak-stage { display: grid; justify-items: center; gap: .7rem; padding: .6rem 0 .2rem; text-align: center; }
.mic { width: 5.6rem; height: 5.6rem; border-radius: 50%; border: none; background: var(--cobalto); color: #fff; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 8px 22px -8px rgb(31 79 168 / .7); transition: transform .2s var(--ease), background .2s; -webkit-tap-highlight-color: transparent; }
.mic .ic svg { width: 2.3rem; height: 2.3rem; }
.mic:active { transform: scale(.94); }
.mic.live { background: var(--pomodoro); box-shadow: 0 0 0 0 rgb(200 55 45 / .45); animation: pulse 1.3s ease-out infinite; }
.mic.busy { background: var(--ink-2); animation: breathe 1s ease-in-out infinite alternate; }
.mic:disabled { cursor: default; }
@keyframes pulse { to { box-shadow: 0 0 0 1.4rem rgb(200 55 45 / 0); } }
@keyframes breathe { to { opacity: .55; } }
.mic-label { font-weight: 600; }
.speak-status { color: var(--pomodoro); font-size: .95rem; min-height: 1.3em; }
.w.ok { color: var(--cobalto-tma); }
.w.miss { color: var(--pomodoro); text-decoration: underline wavy 2px; text-underline-offset: .16em; }
.verdict { margin-top: .7rem; color: var(--ink-2); }
.verdict.good { color: var(--cobalto-tma); font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.verdict q { color: var(--ink); font-style: italic; }

/* seznamy */
.list { display: grid; gap: .55rem; counter-reset: n; }
.list a { display: grid; gap: .15rem; padding: .95rem 1.1rem; background: var(--carta); border-radius: var(--r-m); text-decoration: none; color: var(--ink);
  border: 1.5px solid transparent; transition: border-color .15s; }
.list a:hover { border-color: var(--cobalto); }
.list .it { font-size: 1.2rem; line-height: 1.2; }
.meta { font-size: .9rem; color: var(--ink-2); }
ol.list a { grid-template-columns: 2rem 1fr; }
ol.list a::before { counter-increment: n; content: counter(n); grid-row: span 2; font: 700 1.2rem/1.3 var(--ui); color: var(--cobalto); font-variant-numeric: tabular-nums; }

/* Rozhovor */
.tools { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.3rem; }
.chat { display: grid; gap: .65rem; }
.bubble { max-width: 88%; padding: .75rem 1rem .8rem; border-radius: 20px 20px 20px 6px; background: var(--carta); justify-self: start; text-align: left; transition: box-shadow .2s; }
.bubble.me { justify-self: end; background: var(--cobalto-sv); border-radius: 20px 20px 6px 20px; }
.bubble .pp { margin-top: .45rem; width: 2.75rem; height: 2.75rem; background: rgb(21 35 63 / .07); color: var(--ink); }
.bubble.now { box-shadow: 0 0 0 2.5px var(--cobalto); }
.bubble .who { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: .1rem; }
.bubble .it { font-size: 1.15rem; line-height: 1.25; }
.bubble .cz { font-size: .95rem; margin-top: .15rem; }
.bubble .note { margin-top: .5rem; padding-top: .45rem; font-size: .88rem; border-top-color: rgb(21 35 63 / .14); }
.turn { background: var(--carta); border-radius: var(--r-l); padding: 1.1rem; display: grid; gap: .8rem; }
.turn .btn.primary { width: 100%; }

/* Tutorka */
h2.first { margin-top: 1rem; }
.scenarios { display: flex; flex-wrap: wrap; gap: .5rem; }
.tutor .chat { min-height: 8rem; }
.tutor .bubble, .hintbox { scroll-margin-bottom: 12rem; }
.tutor .bubble .ab { margin-top: .6rem; gap: .35rem; }
.tutor .bubble .ab { flex-wrap: nowrap; }
.tutor .bubble .ab .btn { min-height: 2.75rem; min-width: 2.75rem; padding: .3rem .7rem; font-size: .9rem; background: none; }
.fix { margin-top: .45rem; padding-top: .4rem; border-top: 1px solid rgb(21 35 63 / .14); }
.fix-label { font-size: .88rem; font-weight: 600; color: var(--cobalto-tma); }
.hintbox { background: var(--evidenzia); border-radius: var(--r-m); padding: .8rem 1rem; margin-top: .8rem; }
.hintbox .it { font-size: 1.15rem; }
.hintbox .cz { color: var(--ink); font-size: .95rem; }
.composer { position: sticky; bottom: calc(var(--nav-h) + .6rem + env(safe-area-inset-bottom)); z-index: 5; display: grid; grid-template-columns: auto 1fr auto; gap: .5rem; align-items: center;
  margin-top: .6rem; padding: .5rem; background: var(--carta); border-radius: 999px; box-shadow: 0 1px 2px rgb(21 35 63 / .08), 0 10px 26px -12px rgb(21 35 63 / .35); }
.mic.small { width: 3.4rem; height: 3.4rem; box-shadow: none; }
.mic.small .ic svg { width: 1.5rem; height: 1.5rem; }
input.say { min-width: 0; min-height: 2.9rem; padding: .4rem .5rem; font: inherit; color: var(--ink); background: none; border: none; border-radius: var(--r-s); }
input.say::placeholder { color: var(--ink-2); }
.tutor .speak-status { color: var(--ink-2); margin-top: .7rem; text-align: center; }
.tutor .speak-status.err { color: var(--pomodoro); }
.tutor > .btn.quiet { display: flex; margin: .2rem auto 0; }

/* Stavebnice, Fráze */
.pairs, .phrases { display: grid; gap: 2px; margin-top: 1.3rem; }
.pair { display: grid; grid-template-columns: auto 1fr; gap: .2rem .7rem; align-items: start; padding: .65rem .9rem .7rem .6rem; background: var(--carta); border-radius: var(--r-s); }
.pp { width: 2.75rem; height: 2.75rem; flex: none; display: grid; place-items: center; padding: 0; border: none; border-radius: 50%; background: var(--tab-sv); color: var(--tab-tma); cursor: pointer; }
.pp:hover { background: var(--tab); color: var(--tab-ink); }
.pp .ic svg { width: 1.1rem; height: 1.1rem; }
.pair .more { padding: 0; background: none; margin: 0; }
.pair .it { font-size: 1.12rem; line-height: 1.25; }
.pair .cz { font-size: .95rem; }
.more { background: var(--carta); padding: 0 1rem .8rem; border-radius: 0 0 var(--r-s) var(--r-s); margin-top: -2px; }
.more .note { margin-top: .4rem; }
.grp { font: 650 1rem/1.3 var(--ui); padding: 1.3rem 0 .4rem; }
input[type="search"] { width: 100%; min-height: 3rem; padding: .6rem 1rem; font: inherit; color: var(--ink); background: var(--carta); border: 1.5px solid var(--linea); border-radius: 999px; }
input[type="search"]::placeholder { color: var(--ink-2); }
.chips { display: flex; gap: .4rem; overflow-x: auto; padding: .9rem 1.15rem .3rem; margin: 0 -1.15rem; scrollbar-width: none; }
.chip { flex: none; min-height: 2.75rem; padding: .3rem .95rem; border-radius: 999px; border: 1.5px solid var(--linea); background: none; font: 600 .95rem/1 var(--text); color: var(--ink-2); cursor: pointer; }
.chip.on { background: var(--inv); border-color: var(--inv); color: #fff; }

/* Můstky */
.tablewrap { overflow-x: auto; margin: .8rem -1.15rem 0; padding: 0 1.15rem; }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: .88rem; padding: .4rem .8rem .4rem 0; border-bottom: 1.5px solid var(--ink); }
td { padding: .55rem .8rem .55rem 0; border-bottom: 1px solid var(--linea); vertical-align: top; }
td.it { color: var(--cobalto-tma); }
.points { display: grid; gap: .5rem; margin-top: .7rem; padding-left: 1.1rem; list-style: disc; }
.points li::marker { color: var(--cobalto); }
.bridges details { border-bottom: 1px solid var(--linea); padding-bottom: .2rem; }
.bridges details[open] { padding-bottom: 1.6rem; }
.bridges summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.4rem; cursor: pointer; list-style: none; }
.bridges summary::-webkit-details-marker { display: none; }
.bridges summary h2 { margin: 0; }
.bridges summary::after { content: ""; width: .6rem; height: .6rem; flex: none; margin-right: .3rem; border-right: 2px solid var(--cobalto); border-bottom: 2px solid var(--cobalto); transform: rotate(45deg); transition: transform .2s var(--ease); }
.bridges details[open] > summary::after { transform: rotate(-135deg); }
.bridges details > p { max-width: 62ch; text-wrap: pretty; }

/* přihlášení */
.login main { max-width: 22rem; margin: 0 auto; padding: 6vh 1.4rem 2rem; }
.login h1 { font: italic 600 clamp(3.2rem, 16vw, 4.4rem)/1 var(--serif); letter-spacing: -.02em; color: var(--cobalto-tma); margin-bottom: .5rem; }
.login form { display: grid; gap: .4rem; margin-top: 2rem; }
.login label { font-weight: 600; font-size: .95rem; margin-top: .6rem; }
.login input { min-height: 3.2rem; padding: .6rem .9rem; font: inherit; color: var(--ink); background: var(--carta); border: 1.5px solid var(--linea); border-radius: var(--r-m); }
.login input:focus-visible { outline-offset: 0; border-color: var(--cobalto); }
.login .btn { margin-top: 1.3rem; }
.error { color: var(--pomodoro); font-weight: 500; }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 1.2rem); transform: translateX(-50%); z-index: 30; background: var(--inv); color: #fff; padding: .75rem 1.1rem; border-radius: var(--r-m); max-width: min(90vw, 28rem); }

@media (min-width: 60rem) {
  #view { padding-top: 5.5rem; padding-bottom: 4rem; }
  .composer { bottom: 1rem; }
  .tutor .bubble, .hintbox { scroll-margin-bottom: 7rem; }
  #nav { inset: 0 0 auto 0; border-top: none; border-bottom: 1px solid var(--linea); }
  #nav a { flex-direction: row; gap: .5rem; font-size: .95rem; min-height: 3.6rem; max-width: 9.5rem; }
  .toast { bottom: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  /* stav nahrávání dál nese barva a ikona, jen bez pulzu; posuny bez animace */
  .mic.live, .mic.busy { animation: none; }
  .mic.live { box-shadow: 0 0 0 .45rem rgb(200 55 45 / .25); }
  .mic.busy { opacity: .7; }
  .progress i, .btn, .mic, input[role="switch"]::after, .bridges summary::after { transition: none; }
}

/* ---------- Kapučíno: stojí pořád v popředí, dá se přetáhnout a schovat ---------- */
/* podlaha, pod kterou nesmí: nad spodní lištou, v lekci u kraje, v rozhovoru nad polem na odpověď */
body { --guide-floor: calc(var(--nav-h) + env(safe-area-inset-bottom) + .35rem); }
body[data-view="lekce"] { --guide-floor: calc(env(safe-area-inset-bottom) + .6rem); }
body[data-view="tutor"] { --guide-floor: calc(var(--nav-h) + env(safe-area-inset-bottom) + 5.4rem); }
#guide { --s: 1; position: fixed; z-index: 20; right: .4rem; bottom: max(var(--guide-floor), var(--guide-y, 0px)); }
#guide.left { right: auto; left: .4rem; }
#guide.glide { transition: transform .72s var(--ease); }
#guide.duck { visibility: hidden; }
.guide-body { display: block; position: relative; width: calc(68px * var(--s)); height: calc(78px * var(--s)); padding: 0; border: none; background: none;
  cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.drag .guide-body { cursor: grabbing; }
/* stín pod podšálkem */
.guide-body::after { content: ""; position: absolute; left: 16%; right: 16%; bottom: calc(-2px * var(--s)); height: calc(7px * var(--s)); border-radius: 50%; background: rgb(21 35 63 / .18); z-index: -1; }
/* atlas 4 × 4 pózy, jedno políčko 96 px; pózu vybírá třída pose-<jméno> sloupcem a řádkem */
.guide-sprite { position: absolute; left: calc(-14px * var(--s)); top: calc(-16px * var(--s)); width: calc(96px * var(--s)); height: calc(96px * var(--s));
  background: url("/art/guide.png") no-repeat; background-size: calc(384px * var(--s)) calc(384px * var(--s));
  background-position: calc(var(--c, 0) * -96px * var(--s)) calc(var(--r, 0) * -96px * var(--s)); pointer-events: none; transform-origin: 50% 92%; }
.pose-idle { --c: 0; --r: 0; }
.pose-wave { --c: 1; --r: 0; }
.pose-happy { --c: 2; --r: 0; }
.pose-cheer { --c: 3; --r: 0; }
.pose-think { --c: 0; --r: 1; }
.pose-listen { --c: 1; --r: 1; }
.pose-talk { --c: 2; --r: 1; }
.pose-point { --c: 3; --r: 1; }
.pose-wink { --c: 0; --r: 2; }
.pose-oops { --c: 1; --r: 2; }
.pose-sleep { --c: 2; --r: 2; }
.pose-proud { --c: 3; --r: 2; }
.pose-laugh { --c: 0; --r: 3; }
.pose-write { --c: 1; --r: 3; }
.pose-steam { --c: 2; --r: 3; }
.pose-party { --c: 3; --r: 3; }
/* mrknutí: atlas nemá zavřené oči, tak se hrnek na 140 ms přikrčí */
.guide-sprite.blink { transform: scaleY(.94) scaleX(1.03); }
/* u levého kraje se otočí k obsahu */
#guide.left .guide-sprite { transform: scaleX(-1); }
#guide.left .guide-sprite.blink { transform: scaleX(-1.03) scaleY(.94); }

.min .guide-body { width: 3rem; height: 3rem; border-radius: 50%; overflow: hidden; background: var(--carta); box-shadow: 0 0 0 2px var(--cobalto), 0 6px 16px -6px rgb(21 35 63 / .5); }
.min .guide-body::after { display: none; }
#guide.min .guide-sprite { left: -24px; top: -20px; width: 96px; height: 96px; background-size: 384px 384px; background-position: calc(var(--c, 0) * -96px) calc(var(--r, 0) * -96px); }

.guide-pop { position: absolute; bottom: calc(100% + .5rem); right: 0; width: max-content; max-width: min(17.5rem, calc(100vw - 1.2rem));
  background: var(--carta); border-radius: 18px 18px 6px 18px; padding: .75rem .9rem .6rem; text-align: left;
  box-shadow: 0 0 0 1px var(--linea), 0 16px 36px -14px rgb(21 35 63 / .45); }
.left .guide-pop { right: auto; left: 0; border-radius: 18px 18px 18px 6px; }
.guide-pop.below { bottom: auto; top: calc(100% + .5rem); border-radius: 18px 6px 18px 18px; }
.left .guide-pop.below { border-radius: 6px 18px 18px 18px; }
.guide-text .it { font-size: 1.15rem; line-height: 1.25; }
.guide-text .cz { font-size: .92rem; line-height: 1.4; margin-top: .15rem; }
.guide-text .why { font-size: .9rem; line-height: 1.4; color: var(--ink-2); margin-top: .45rem; padding-top: .4rem; border-top: 1px solid var(--linea); }
.guide-text .masked { font-size: 1.4rem; letter-spacing: .06em; margin-top: .3rem; overflow-wrap: anywhere; }
.guide-row { display: flex; align-items: center; justify-content: flex-end; gap: .35rem; margin: .45rem -.35rem 0 0; }
.guide-mini { flex: none; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; padding: 0; border: none; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer; }
.guide-mini:hover { background: var(--smalto); color: var(--ink); }
.guide-mini.voice { margin-right: auto; margin-left: -.5rem; color: var(--cobalto-tma); }
.guide-mini.corner { position: absolute; top: .2rem; right: .2rem; }
.guide-chip { min-height: 2.75rem; padding: .3rem .9rem; border: 1.5px solid var(--linea); border-radius: 999px; background: none; font: 600 .92rem/1.1 var(--text); color: var(--ink); cursor: pointer; }
.guide-chip:hover { border-color: var(--cobalto); }
.guide-menu { display: grid; margin: .5rem -.9rem -.6rem; }
.guide-menu button { min-height: 2.9rem; padding: .4rem .9rem; text-align: left; border: none; border-top: 1px solid var(--linea); background: none; font: 600 1rem/1.2 var(--text); color: var(--ink); cursor: pointer; }
.guide-menu button:hover { background: var(--cobalto-sv); }
.guide-menu button:last-child { border-radius: 0 0 6px 18px; color: var(--ink-2); font-weight: 400; }
.left .guide-menu button:last-child { border-radius: 0 0 18px 6px; }
/* co řekne sám od sebe, stojí vedle něj v jeho pruhu: nesmí zakrýt tlačítka nad sebou */
.guide-pop.side { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .2rem; padding: .55rem .35rem .55rem .85rem; }
.guide-pop.side .guide-text { cursor: pointer; }
.guide-pop.side .guide-mini.voice { margin: 0; }
.guide-pop.ask .guide-text { padding-right: 2.2rem; }
.guide-ask { display: grid; gap: .5rem; margin-top: .6rem; }
.guide-ask input { min-height: 2.9rem; padding: .5rem .8rem; font: inherit; color: var(--ink); background: var(--smalto); border: 1.5px solid var(--linea); border-radius: var(--r-m); min-width: 0; }
.guide-ask input:focus-visible { outline-offset: 0; border-color: var(--cobalto); }
.guide-ask input::placeholder { color: var(--ink-2); }

@media (max-width: 59.99rem) {
  .guide-pop.side, .guide-pop.side.below { bottom: 0; top: auto; right: calc(100% + .4rem); max-width: calc(100vw - 68px - 1.5rem); border-radius: 18px 18px 6px 18px; }
  .left .guide-pop.side.below { border-radius: 18px 18px 18px 6px; }
  .left .guide-pop.side { right: auto; left: calc(100% + .4rem); }
  .guide-pop.side .guide-text .it { font-size: 1.05rem; }
  .guide-pop.side .guide-text .cz { font-size: .88rem; margin-top: .05rem; }
  /* na telefonu se otázka píše nahoře, kam nedosáhne klávesnice */
  .guide-pop.ask, .guide-pop.ask.below { position: fixed; top: calc(env(safe-area-inset-top) + .6rem); left: .6rem; right: .6rem; bottom: auto; width: auto; max-width: none; border-radius: 18px; }
}
@media (min-width: 60rem) {
  body, body[data-view="lekce"], body[data-view="tutor"] { --guide-floor: 1.4rem; }
  #guide { --s: 1.5; right: 1.6rem; }
  #guide.left { left: 1.6rem; }
  .guide-pop { max-width: 20rem; }
}
@media (prefers-reduced-motion: reduce) {
  #guide.glide { transition: none; }
}

/* ---------- barvy záložek ---------- */
body[data-tab="rozhovory"] { --tab: var(--mare); --tab-sv: var(--mare-sv); --tab-tma: var(--mare-tma); }
body[data-tab="stavebnice"] { --tab: var(--foglia); --tab-sv: var(--foglia-sv); --tab-tma: var(--foglia-tma); }
body[data-tab="mustky"] { --tab: var(--glicine); --tab-sv: var(--glicine-sv); --tab-tma: var(--glicine-tma); }
body[data-tab="fraze"] { --tab: var(--rosa); --tab-sv: var(--rosa-sv); --tab-tma: var(--rosa-tma); }
#view > div > h1:first-child, .back + h1 { color: var(--tab-tma); }
ol.list a::before { color: var(--tab-tma); }
.list a:hover { border-color: var(--tab); }
.chip.on, .chip[aria-pressed="true"] { background: var(--tab-tma); border-color: var(--tab-tma); color: #fff; }
.progress i { background: var(--tab); }
.tip { font-size: .9rem; color: var(--ink-2); margin-top: 1rem; }

/* ---------- klikací slova ---------- */
.wd { display: inline; padding: 0; margin: 0; border: none; background: none; font: inherit; color: inherit; letter-spacing: inherit; text-align: inherit; cursor: pointer;
  border-radius: 4px; text-decoration: underline dotted 1.5px rgb(21 35 63 / .28); text-underline-offset: .22em; -webkit-tap-highlight-color: transparent; }
.wd:hover, .wd:focus-visible { background: var(--tab-sv); text-decoration-color: var(--tab-tma); }
.wd.wd.w.ok { color: var(--cobalto-tma); }
.wd.w.miss { color: var(--pomodoro); text-decoration: underline wavy 2px; }
.wd.filled { color: var(--cobalto-tma); background: var(--cobalto-sv); }
.guide-pop .wd, .hintbox .wd { text-decoration-color: rgb(21 35 63 / .22); }

dialog.sheet { width: min(100vw, 36rem); max-width: none; max-height: 86dvh; margin: auto auto 0; padding: 0; border: none; border-radius: 22px 22px 0 0; background: var(--carta); color: var(--ink);
  box-shadow: 0 -12px 40px -10px rgb(21 35 63 / .45); overflow: hidden; }
dialog.sheet[open] { display: flex; flex-direction: column; }
dialog.sheet::backdrop, dialog.party::backdrop { background: rgb(21 35 63 / .45); }
.sheet header { display: flex; align-items: center; gap: .6rem; padding: 1rem 1rem .8rem 1.3rem; border-bottom: 1px solid var(--linea); }
.sheet header h2 { margin: 0 auto 0 0; font-size: 1.9rem; letter-spacing: -.02em; overflow-wrap: anywhere; }
.sheet header .btn { min-height: 2.75rem; }
.sheet-body { overflow-y: auto; padding: 1rem 1.3rem calc(1.5rem + env(safe-area-inset-bottom)); display: grid; gap: 1rem; }
.sheet h3 { font: 650 .95rem/1.3 var(--text); color: var(--ink-2); margin: 0 0 .25rem; }
.sheet .entry { display: grid; gap: 1rem; }
.sheet .kind b { font-size: 1.25rem; }
.cz.big { font-size: 1.3rem; color: var(--ink); font-weight: 500; }
.sheet .this ul { display: grid; gap: .15rem; }
.sheet .this li { padding-left: 1rem; position: relative; }
.sheet .this li::before { content: ""; position: absolute; left: 0; top: .6em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--limone); }
.sheet .accent { font-size: 1.5rem; }
.sheet .say { font-size: 1.15rem; }
.sheet .say b { color: var(--rosa-tma); }
.ipa, .src { font-size: .88rem; color: var(--ink-2); }
.sheet .readings { display: grid; gap: .2rem; }
.sheet .chips { padding-top: .4rem; }
.formtable { border-top: 1px solid var(--linea); padding-top: .2rem; }
.formtable summary { min-height: 2.75rem; display: flex; align-items: center; justify-content: space-between; font-weight: 650; cursor: pointer; list-style: none; }
.formtable summary::-webkit-details-marker { display: none; }
.formtable summary::after { content: ""; width: .5rem; height: .5rem; margin-right: .3rem; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); }
.formtable[open] summary::after { transform: rotate(-135deg); }
table.forms th[scope="row"] { font-weight: 600; color: var(--ink); white-space: nowrap; border-bottom: 1px solid var(--linea); vertical-align: top; padding: .5rem .8rem .5rem 0; font-size: .92rem; }
table.forms th small, table.forms td small { display: block; font-weight: 400; font-size: .78rem; color: var(--ink-2); }
table.forms td { font-family: var(--serif); font-weight: 600; }
table.forms .hit { background: var(--evidenzia); border-radius: 4px; padding: 0 .2em; }
table.forms .clitic { color: var(--glicine-tma); }
.sheet .extra { font-size: .97rem; }

/* ---------- body, úrovně, cesta ---------- */
.gain { position: fixed; top: calc(env(safe-area-inset-top) + .7rem); right: .8rem; z-index: 40; display: inline-flex; align-items: center; gap: .25rem; padding: .3rem .7rem .3rem .5rem;
  background: var(--limone); color: var(--limone-ink); border-radius: 999px; font: 750 1rem/1 var(--ui); pointer-events: none; animation: gain 1.6s var(--ease) both; }
.gain .ic svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
@keyframes gain { 0% { opacity: 0; transform: translateY(.8rem) scale(.8); } 18% { opacity: 1; transform: none; } 75% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-.6rem); } }

.journey-card { margin-top: 1.6rem; background: var(--carta); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--glaze); }
.journey-hero { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--cobalto-sv); color: #fff; text-decoration: none; }
.journey-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.journey-where { position: absolute; left: .8rem; bottom: .8rem; display: grid; padding: .45rem .9rem .5rem; background: var(--inv); border-radius: var(--r-m); }
.journey-where small { font-size: .8rem; opacity: .85; }
.journey-where b { font: 700 1.35rem/1.1 var(--ui); }
.journey-next { padding: .9rem 1.1rem 0; display: grid; gap: .45rem; }
.journey-next .progress { height: 10px; border-radius: 5px; }
.journey-next .progress i { background: var(--limone); border-radius: 5px; }
.journey-next p { font-size: .95rem; color: var(--ink-2); }
.journey-next b { color: var(--ink); }
.today-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: 1rem 1.1rem .4rem; }
.goal, .streak { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.goal p, .streak p { display: grid; line-height: 1.25; min-width: 0; }
.goal b, .streak b { font: 700 1.1rem/1.2 var(--ui); font-variant-numeric: tabular-nums; }
.goal span, .streak span { font-size: .82rem; color: var(--ink-2); }
.ring { flex: none; display: inline-flex; }
.ring .track { stroke: var(--linea); } .ring .val { stroke: var(--limone); }
.ring.full .val { stroke: var(--cobalto); }
.streak > .ic { flex: none; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--linea); color: var(--ink-2); }
.streak.on > .ic { background: var(--limone-sv); color: var(--fuoco); }
.streak .ic svg { width: 1.7rem; height: 1.7rem; }
.streak.on .ic svg { fill: var(--limone); }
.badges-link { display: flex; align-items: center; gap: .6rem; margin: .5rem .5rem .5rem; padding: .7rem .6rem; border-radius: var(--r-m); color: var(--ink); text-decoration: none; font-weight: 600; }
.badges-link:hover { background: var(--smalto); }
.badges-link > .ic:first-child { color: var(--limone-tma); }
.badges-link span:nth-child(2) { margin-right: auto; }
.badges-link > .ic:last-child { color: var(--ink-2); }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-top: 1.6rem; }
.tilelink { display: grid; align-content: start; background: var(--carta); border-radius: var(--r-m); overflow: hidden; text-decoration: none; color: var(--ink); font: 650 .92rem/1.2 var(--ui); box-shadow: 0 3px 0 var(--linea); }
.tilelink img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.tilelink span { padding: .5rem .6rem .65rem; }
.tilelink.t-rozhovory { box-shadow: 0 3px 0 var(--mare); } .tilelink.t-cisla { box-shadow: 0 3px 0 var(--limone); } .tilelink.t-stavebnice { box-shadow: 0 3px 0 var(--foglia); }
.tilelink:active { transform: translateY(2px); }

.xp-total { display: flex; align-items: center; gap: .4rem; margin-bottom: 1.2rem; }
.xp-total .ic { color: var(--limone-tma); } .xp-total .ic svg { fill: var(--limone); }
.stops { display: grid; gap: .8rem; }
.stop { background: var(--carta); border-radius: var(--r-l); overflow: hidden; }
.stop.here { box-shadow: 0 0 0 3px var(--limone); }
.postcard { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--linea); }
.stop-text { padding: .9rem 1.1rem 1.1rem; display: grid; gap: .3rem; justify-items: start; }
.stop h3 { margin: 0; font: 700 1.25rem/1.2 var(--ui); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.stop .num { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: var(--cobalto); color: #fff; font-size: .9rem; font-variant-numeric: tabular-nums; }
.stop .tag { font: 600 .8rem/1 var(--text); background: var(--limone); color: var(--limone-ink); padding: .25rem .55rem; border-radius: 999px; }
.stop .it { font-size: 1.2rem; line-height: 1.25; }
.stop .btn { margin-top: .3rem; min-height: 2.75rem; }
.stop.locked { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; background: none; border: 1.5px dashed var(--linea); }
.stop.locked .num { background: var(--linea); color: var(--ink-2); }
.stop.locked h3 { font-size: 1.05rem; color: var(--ink-2); }
.stop.locked .cz { font-size: .9rem; }

.medal { flex: none; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--linea); color: var(--ink-2); }
.medal .ic svg { width: 1.5rem; height: 1.5rem; }
.medal.on { background: var(--limone); color: var(--limone-ink); box-shadow: 0 0 0 3px var(--limone-sv); }
.medal.big { width: 5.5rem; height: 5.5rem; } .medal.big .ic svg { width: 2.8rem; height: 2.8rem; }
.badges { display: grid; gap: .5rem; }
.badge { display: flex; gap: .8rem; align-items: center; padding: .7rem .9rem; background: var(--carta); border-radius: var(--r-m); }
.badge > div { display: grid; gap: .15rem; flex: 1; min-width: 0; }
.badge h3 { margin: 0; font: 650 1.05rem/1.2 var(--ui); }
.badge .cz { font-size: .9rem; }
.badge:not(.on) h3 { color: var(--ink-2); }
.badge .progress { margin-top: .25rem; } .badge .progress i { background: var(--limone); }
.badge:nth-child(4n+1) .medal.on { background: var(--medaile-modra); box-shadow: 0 0 0 3px var(--mare-sv); color: var(--medaile-modra-ink); }
.badge:nth-child(4n+2) .medal.on { background: var(--medaile-roza); box-shadow: 0 0 0 3px var(--rosa-sv); color: var(--medaile-roza-ink); }
.badge:nth-child(4n+3) .medal.on { background: var(--medaile-sivka); box-shadow: 0 0 0 3px var(--glicine-sv); color: var(--medaile-sivka-ink); }
.list .locked { padding: .8rem 1.1rem; border: 1.5px dashed var(--linea); border-radius: var(--r-m); color: var(--ink-2); }
.lockrow { display: flex; gap: .7rem; align-items: center; } .lockrow > span { display: grid; }

dialog.party { width: min(92vw, 26rem); max-height: 90dvh; padding: 0; border: none; border-radius: var(--r-l); background: var(--carta); color: var(--ink); overflow: hidden auto; box-shadow: 0 30px 80px -20px rgb(21 35 63 / .6); }
.party-body { position: relative; z-index: 1; display: grid; gap: .6rem; padding: 1.5rem 1.3rem 1.3rem; text-align: center; justify-items: center; }
.party-kicker { font: 700 1rem/1 var(--ui); background: var(--limone); color: var(--limone-ink); padding: .4rem .9rem; border-radius: 999px; }
.party h2 { margin: .2rem 0 0; font-size: 1.7rem; text-wrap: balance; }
.party .postcard { border-radius: var(--r-m); }
.party-badge { display: grid; justify-items: center; gap: .3rem; margin: .4rem 0; }
.party .unlock { display: flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--limone-tma); }
.party .btn { margin-top: .6rem; --tab: var(--cobalto); --tab-ink: #fff; --tab-tma: var(--cobalto-tma); }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.confetti i { position: absolute; top: -1rem; width: .55rem; height: .9rem; border-radius: 2px; animation: fall 1.9s ease-in both; }
.confetti .c0 { background: var(--cobalto); } .confetti .c1 { background: var(--limone); } .confetti .c2 { background: var(--mare); } .confetti .c3 { background: var(--rosa); } .confetti .c4 { background: var(--glicine); }
@keyframes fall { to { transform: translateY(95dvh) rotate(var(--spin, 400deg)); opacity: .9; } }

/* ---------- Stavebnice: kapitoly, režimy, doplňovačka, skládání, číslovky ---------- */
.chapter { margin-top: 1.8rem; }
.chapter-head { display: grid; grid-template-columns: 5.5rem 1fr; gap: .9rem; align-items: center; margin-bottom: .7rem; }
.chapter-head img { width: 5.5rem; height: 5.5rem; object-fit: cover; border-radius: var(--r-m); box-shadow: 0 3px 0 var(--tab); }
.chapter-head h2 { margin: 0; }
.chapter-head p { font-size: .9rem; color: var(--ink-2); }
.chapter .btn.xl { margin-bottom: .7rem; }
.ch-cleny { --tab: var(--mare); --tab-ink: #fff; --tab-sv: var(--mare-sv); --tab-tma: var(--mare-tma); }
.ch-slovesa { --tab: var(--cobalto); --tab-ink: #fff; --tab-sv: var(--cobalto-sv); --tab-tma: var(--cobalto-tma); }
.ch-zajmena { --tab: var(--glicine); --tab-ink: #fff; --tab-sv: var(--glicine-sv); --tab-tma: var(--glicine-tma); }
.ch-otazky { --tab: var(--rosa); --tab-ink: #fff; --tab-sv: var(--rosa-sv); --tab-tma: var(--rosa-tma); }
.marks { display: inline-flex; gap: .3rem; margin-top: .25rem; }
.mark { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--smalto); color: var(--ink-2); }
.mark .ic svg { width: .95rem; height: .95rem; }
.mark.on { background: var(--tab); color: var(--tab-ink); }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.2rem, 1fr)); gap: .45rem; margin-bottom: .4rem; }
.modes .btn { min-height: 3.4rem; padding-inline: .3rem; gap: .3rem; font-size: .97rem; }
.pattern .tablewrap { margin-top: 1rem; }
.gap { display: inline-block; min-width: 3.2ch; height: .9em; background: var(--tab-sv); border-radius: 6px; margin: 0 .15em; vertical-align: baseline; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-top: 1.3rem; }
.options.one { grid-template-columns: 1fr; }
.opt { min-height: 3.4rem; padding: .5rem .7rem; font: 600 1.15rem/1.2 var(--serif); color: var(--ink); background: var(--carta); border: 2px solid var(--linea); border-radius: var(--r-m); box-shadow: 0 3px 0 var(--linea); cursor: pointer; overflow-wrap: anywhere; }
.opt:hover:not(:disabled) { border-color: var(--tab); }
.opt:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--linea); }
.opt.right { background: var(--cobalto-sv); border-color: var(--cobalto); color: var(--cobalto-tma); box-shadow: 0 3px 0 var(--cobalto); }
.opt.wrong { background: var(--pomodoro-sv); border-color: var(--pomodoro); color: var(--pomodoro); box-shadow: none; text-decoration: line-through; }
.opt:disabled { cursor: default; }
.tiles { display: flex; flex-wrap: wrap; gap: .45rem; }
.tiles.answer { min-height: 4.2rem; align-content: flex-start; padding: .7rem; margin-bottom: .9rem; border: 2px dashed var(--linea); border-radius: var(--r-m); align-items: center; }
.tile { min-height: 2.75rem; padding: .35rem .8rem; font: 600 1.1rem/1.2 var(--serif); color: var(--ink); background: var(--carta); border: 2px solid var(--tab); border-radius: 12px; box-shadow: 0 3px 0 var(--tab); cursor: pointer; }
.tile:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--tab); }
.tile:disabled { opacity: .25; cursor: default; box-shadow: none; }
.tile.wrong { border-color: var(--pomodoro); box-shadow: 0 3px 0 var(--pomodoro); color: var(--pomodoro); }
.num-show { font: 750 clamp(3.5rem, 20vw, 5.5rem)/1 var(--ui); letter-spacing: -.04em; color: var(--tab-tma); font-variant-numeric: tabular-nums; }
.num-form { display: grid; grid-template-columns: 1fr auto; gap: .5rem; margin: 1.1rem 0 .6rem; }
.num-in { min-width: 0; min-height: 3.4rem; padding: .4rem 1rem; font: 700 1.8rem/1 var(--ui); color: var(--ink); background: var(--smalto); border: 2px solid var(--linea); border-radius: var(--r-m); font-variant-numeric: tabular-nums; }
.num-in:focus-visible { outline-offset: 0; border-color: var(--tab); }
.numbers .chips { padding-top: 0; margin-bottom: .8rem; }

@media (min-width: 60rem) {
  dialog.sheet { margin: auto; border-radius: 22px; max-height: 84dvh; }
}
@media (prefers-reduced-motion: reduce) {
  .gain { animation: none; }
  .btn:active, .opt:active, .tile:active, .tilelink:active { transform: none; }
}

/* ---------- horní řádek: úroveň a nastavení ---------- */
.topbar { display: flex; align-items: center; justify-content: flex-end; gap: .4rem; margin: -.6rem 0 .6rem; }
.flagbtn { margin-right: auto; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; padding: 0; border: none; border-radius: 50%; background: none; cursor: pointer; text-decoration: none; }
.flagbtn svg { width: 1.9rem; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px rgb(21 35 63 / .18), 0 2px 5px rgb(21 35 63 / .2); transition: transform .2s var(--ease); }
.flagbtn:hover svg { transform: scale(1.08); } .flagbtn:active svg { transform: scale(.94); }
.lvl { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; padding: .3rem .8rem .3rem .35rem; background: var(--carta); border-radius: 999px; text-decoration: none; color: var(--ink);
  box-shadow: 0 3px 0 var(--limone); }
.lvl:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--limone); }
.lvl-n { flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--limone); color: var(--limone-ink); font: 750 1.1rem/1 var(--ui); font-variant-numeric: tabular-nums; }
.lvl-n .ic svg { width: 1.1rem; height: 1.1rem; }
.lvl-t { display: grid; gap: .2rem; min-width: 4.5rem; }
.lvl-t b { font: 700 .92rem/1.1 var(--ui); white-space: nowrap; }
.lvl-t .progress { display: block; height: 5px; }
.lvl-t .progress i { background: var(--limone); }
.lvl-x { display: inline-flex; align-items: center; gap: .15rem; font: 700 .88rem/1 var(--ui); color: var(--limone-tma); font-variant-numeric: tabular-nums; }
.lvl-x .ic svg { width: .95rem; height: .95rem; fill: var(--limone); }
.gearlink { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); }
.gearlink:hover { background: var(--carta); color: var(--ink); }
body[data-view="lekce"] .lvl-t, body[data-view="lekce"] .gearlink { display: none; }
.gain { top: calc(env(safe-area-inset-top) + 4rem); }
.setup-link { display: flex; align-items: center; gap: .6rem; margin-top: 1.6rem; padding: .9rem 1rem; background: var(--carta); border-radius: var(--r-m); color: var(--ink); text-decoration: none; font-weight: 600; }
.setup-link span { margin-right: auto; }
.setup-link .ic { color: var(--ink-2); }

/* ---------- Nastavení a použití AI ---------- */
.setup h3 { font: 650 1.05rem/1.3 var(--ui); margin: 1.6rem 0 .5rem; }
.setup .chips { padding-top: 0; margin-bottom: .7rem; }
.usage-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.usage-tile { display: grid; gap: .15rem; align-content: start; padding: .8rem .9rem .9rem; background: var(--carta); border-radius: var(--r-m); min-width: 0; }
.usage-tile .label { font-size: .85rem; color: var(--ink-2); }
.usage-tile b { font: 750 1.45rem/1.1 var(--ui); letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.usage-tile .sub { font-size: .8rem; color: var(--ink-2); line-height: 1.35; }
.usage-tile:nth-child(3) b, .usage-tile:nth-child(5) b { color: var(--limone-tma); }
.caprow { display: grid; grid-template-columns: 1fr auto; gap: .3rem .8rem; margin-bottom: .8rem; }
.caprow .progress { grid-column: 1 / -1; }
.history { display: grid; gap: 2px; }
.history li { padding: .7rem .9rem; background: var(--carta); border-radius: var(--r-s); display: grid; gap: .15rem; }
.history li.me { background: var(--cobalto-sv); }
.hrow { display: flex; justify-content: space-between; gap: .8rem; align-items: baseline; }
.history .q { overflow-wrap: anywhere; }
.history .it { font-size: 1.05rem; line-height: 1.3; }
.setup table td { font-variant-numeric: tabular-nums; }

/* ---------- Kartičky ---------- */
.home-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin: .9rem 0 1.3rem; }
.hometile { display: grid; justify-items: center; gap: .15rem; padding: .85rem .3rem .8rem; border-radius: var(--r-m); background: var(--carta); color: var(--ink);
  text-decoration: none; text-align: center; box-shadow: 0 3px 0 var(--linea); }
.hometile:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--linea); }
.hometile .ic { width: 2.9rem; height: 2.9rem; display: grid; place-items: center; border-radius: 50%; margin-bottom: .25rem; }
.hometile .ic svg { width: 1.5rem; height: 1.5rem; }
.hometile b { font: 700 1.02rem/1.15 var(--ui); }
.hometile span:last-child { font-size: .8rem; line-height: 1.2; color: var(--ink-2); }
.hometile.t-cards .ic { background: var(--rosa-sv); color: var(--rosa-tma); } .hometile.t-cards { box-shadow: 0 3px 0 var(--rosa); }
.hometile.t-car .ic { background: var(--mare-sv); color: var(--mare-tma); } .hometile.t-car { box-shadow: 0 3px 0 var(--mare); }
.hometile.t-book .ic { background: var(--limone-sv); color: var(--limone-tma); } .hometile.t-book { box-shadow: 0 3px 0 var(--limone); }
.home-two { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin: .9rem 0 1.2rem; }
.home-two .btn { min-height: 3.1rem; }
.decklist a { grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; }
.decklist a .deck-n { grid-row: span 2; min-width: 2.9rem; height: 2.9rem; padding: 0 .5rem; display: grid; place-items: center; border-radius: var(--r-s);
  background: var(--tab-sv); color: var(--tab-tma); font: 700 1.15rem/1 var(--ui); font-variant-numeric: tabular-nums; }
.decklist a b { font: 650 1.1rem/1.2 var(--ui); }
.decklist .locked { display: grid; gap: .15rem; }
.decks h2 + .lead { margin-bottom: .8rem; }
.flashround { display: grid; gap: 1rem; }
.flash { display: grid; perspective: 60rem; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.flash.turning { animation: flash-lift .62s var(--ease); }
@keyframes flash-lift { 0% { transform: none; } 40% { transform: translateY(-10px) scale(1.035); } 100% { transform: none; } }
.flash .turn { position: absolute; right: .6rem; bottom: .6rem; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; padding: 0; border: none;
  border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer; }
.flash .turn:hover { background: rgb(21 35 63 / .07); color: var(--ink); }
.flash .turn .ic svg { width: 1.2rem; height: 1.2rem; }
.flash .face { grid-area: 1 / 1; min-height: min(52dvh, 21rem); display: grid; align-content: center; gap: .6rem; padding: 1.6rem 1.3rem; border-radius: var(--r-l);
  background: var(--carta); box-shadow: 0 1px 2px rgb(21 35 63 / .06), 0 14px 30px -16px rgb(21 35 63 / .3);
  position: relative; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform .62s var(--ease), box-shadow .62s var(--ease); }
.flash.turning .face { box-shadow: 0 2px 4px rgb(21 35 63 / .08), 0 30px 46px -18px rgb(21 35 63 / .42); }
.flash .f2 { background: var(--tab-sv); transform: rotateY(180deg); }
.flash.flipped .f1 { transform: rotateY(-180deg); }
.flash.flipped .f2 { transform: rotateY(0); }
.face-in { display: grid; gap: .7rem; justify-items: start; }
.face .czbig { font: 600 clamp(1.5rem, 6.4vw, 2rem)/1.2 var(--ui); letter-spacing: -.015em; text-wrap: balance; }
.face .note { border-top-color: rgb(21 35 63 / .14); }
.flash-answers { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.flash-answers .no { color: var(--pomodoro); }
.flash-answers .yes { background: var(--cobalto); border-color: var(--cobalto); color: #fff; box-shadow: 0 3px 0 var(--cobalto-tma); }
.flash-done { display: grid; gap: .7rem; }
.flash-done .points { margin: 0 0 .6rem; }
@media (prefers-reduced-motion: reduce) {
  .flash .face { transition: none; }
  .flash.turning { animation: none; }
  .flash .f2 { transform: none; visibility: hidden; }
  .flash.flipped .f1 { transform: none; visibility: hidden; }
  .flash.flipped .f2 { visibility: visible; }
}
/* ---------- Naučené ---------- */
.learnedview input[type="search"] { margin-top: .2rem; }
.learnedview .chips + .chips { padding-top: .3rem; }
.learned { display: grid; gap: 2px; margin-top: 1rem; }
.lrow { display: grid; grid-template-columns: auto 1fr; gap: .2rem .7rem; align-items: start; padding: .7rem .9rem .8rem .6rem; background: var(--carta); border-radius: var(--r-s); }
.lrow.word { grid-template-columns: 1fr; padding-left: .9rem; }
.lrow .it { font-size: 1.12rem; line-height: 1.25; }
.lrow .cz { font-size: .95rem; }
.plan { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin-top: .45rem; font-size: .88rem; color: var(--ink-2); }
.ladder { display: inline-flex; align-items: end; gap: 3px; height: 1.05rem; }
.ladder i { width: 5px; border-radius: 2px; background: var(--linea); }
.ladder i:nth-child(1) { height: 30%; } .ladder i:nth-child(2) { height: 44%; } .ladder i:nth-child(3) { height: 58%; }
.ladder i:nth-child(4) { height: 72%; } .ladder i:nth-child(5) { height: 86%; } .ladder i:nth-child(6) { height: 100%; }
.ladder i.on { background: var(--tab); }
.lrow .btn.again { margin-top: .6rem; min-height: 2.75rem; font-size: .95rem; }
.rowbtns { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.rowbtns .btn.quiet { margin-top: .6rem; }
.looked { display: flex; flex-wrap: wrap; gap: .4rem; padding: .2rem 0 .6rem; }
.wd.lookedw { min-height: 2.75rem; padding: .3rem .8rem; border-radius: 999px; background: var(--carta); font: 600 1.05rem/1 var(--serif); }
.wd.lookedw.saved { background: var(--tab-sv); color: var(--tab-tma); }
.wd.lookedw small { margin-left: .35rem; font: 400 .78rem/1 var(--text); color: var(--ink-2); }
/* ---------- panel slova: jazyk popisků, uložení, původ ---------- */
.sheet-tools { display: flex; justify-content: flex-end; padding: .1rem 1.3rem 0; }
.langsw { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--smalto); }
.langsw button { min-height: 2.75rem; padding: .2rem .95rem; border: none; border-radius: 999px; background: none; font: 600 .92rem/1 var(--text); color: var(--ink-2); cursor: pointer; }
.langsw button[aria-pressed="true"] { background: var(--carta); color: var(--ink); box-shadow: 0 1px 3px rgb(21 35 63 / .18); }
.sheet .btn.save { justify-self: start; margin-top: -.3rem; }
.sheet .src.lbl { margin-bottom: -.8rem; }
/* ---------- Tmavý vzhled (Nastavení, Vzhled). Noc nad Bohinjem: borová tma, plochy o stupeň světlejší, barvy záložek zůstávají. ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --smalto: #0F1A2C; --carta: #182640; --linea: #2A3A58; --ink: #EAF0F8; --ink-2: #A9B6CC; --inv: #2C4470;
  --cobalto: #3F74D8; --cobalto-tma: #A9C4F5; --cobalto-sv: #1A3160;
  --pomodoro: #F07065; --pomodoro-sv: #47181A; --evidenzia: #6B5A12;
  --mare: #1E8BAA; --mare-sv: #0F3442; --mare-tma: #8FD3E6;
  --limone: #F2C94A; --limone-sv: #3D3110; --limone-tma: #F6DA86;
  --foglia: #3E9A63; --foglia-sv: #143826; --foglia-tma: #9BD8B2;
  --glicine: #7D62D6; --glicine-sv: #271F4A; --glicine-tma: #CABDF6;
  --rosa: #CF4D7B; --rosa-sv: #43192D; --rosa-tma: #F4A9C3;
  --fuoco: #FF7A3D;
  --glaze: 0 0 0 1px var(--linea), 0 14px 30px -16px rgb(0 0 0 / .7);
}
:root[data-theme="dark"] .maiolica { filter: brightness(.82) saturate(.9); }
:root[data-theme="dark"] .guide-body::after { background: rgb(0 0 0 / .4); }
:root[data-theme="dark"] .btn.primary, :root[data-theme="dark"] .flash-answers .yes { box-shadow: 0 3px 0 rgb(0 0 0 / .5); }
:root[data-theme="dark"] .btn.primary:active { box-shadow: 0 1px 0 rgb(0 0 0 / .5); }
:root[data-theme="dark"] .chip.on, :root[data-theme="dark"] .chip[aria-pressed="true"] { background: var(--tab); border-color: var(--tab); color: var(--tab-ink); }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .flash .face { box-shadow: 0 1px 2px rgb(0 0 0 / .3), 0 14px 30px -16px rgb(0 0 0 / .7); }
:root[data-theme="dark"] dialog.sheet::backdrop, :root[data-theme="dark"] dialog.party::backdrop { background: rgb(0 0 0 / .6); }
:root[data-theme="dark"] .flagbtn svg { box-shadow: 0 0 0 1px rgb(255 255 255 / .22); }
:root[data-theme="dark"] :root[data-theme="dark"] .pp { background: rgb(255 255 255 / .1); color: var(--tab-tma); }
:root[data-theme="dark"] .pp:hover { background: var(--tab); color: var(--tab-ink); }
.pair .btn.save { margin-top: .6rem; min-height: 2.75rem; font-size: .95rem; }
/* ---------- Do auta ---------- */
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.carview h2 { margin: 1.6rem 0 .2rem; }
.carview > .btn.xl { margin-top: 1.4rem; }
.car-stage { display: grid; gap: 1rem; margin-top: 1.4rem; }
.car-stage:empty { display: none; }
.car-card { display: grid; gap: .8rem; }
.car-card h2 { margin: 0; }
.car-card audio { width: 100%; min-height: 3rem; }
.car-card .btn { justify-self: start; }
.brief { width: 100%; padding: .8rem .9rem; font: .9rem/1.45 var(--text); color: var(--ink); background: var(--carta); border: 1.5px solid var(--linea); border-radius: var(--r-m); resize: vertical; }

/* ---------- pruh maioliky: jediný ornament appky, nahoře na Dnes a na přihlášení ---------- */
.maiolica { height: 52px; margin: -1.5rem -1.15rem .9rem; border-radius: 0 0 var(--r-m) var(--r-m); background: var(--cobalto-sv) url("/art/maiolica.jpg") repeat-x center / auto 104px;
  border-bottom: 3px solid var(--cobalto); }
.cathead:not(:has(img)) { grid-template-columns: 1fr; }
.login .maiolica { margin: 0; height: 72px; background-size: auto 144px; }
.login .hero-cup { display: block; width: 132px; height: 132px; margin: 0 0 .2rem -10px; }
.login .lead { max-width: 30ch; }
.greet + .lead { margin-top: -.2rem; }

/* ---------- Nastavení: O mně, mozek Kapučína ---------- */
.panel { margin-top: 1.4rem; padding: 1.1rem 1.1rem 1.2rem; background: var(--carta); border-radius: var(--r-l); box-shadow: var(--glaze); }
.panel h2 { margin: 0 0 .4rem; }
.panel .lead { margin-bottom: 1rem; max-width: 40ch; }
.panel.settings .row:last-of-type { border-bottom: none; }
.field { display: grid; gap: .3rem; margin-bottom: .8rem; }
.field label, .keyform label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .keyform input { min-height: 3rem; padding: .5rem .85rem; font: inherit; color: var(--ink); background: var(--smalto); border: 1.5px solid var(--linea); border-radius: var(--r-m); min-width: 0; width: 100%; }
.field input:focus-visible, .field select:focus-visible, .keyform input:focus-visible { outline-offset: 0; border-color: var(--cobalto); }
.field input::placeholder, .keyform input::placeholder { color: var(--ink-2); opacity: .75; }
.about .btn { margin-top: .3rem; }
.brains { display: grid; gap: .5rem; margin-bottom: 1rem; }
.brain { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: center; padding: .8rem .9rem; border: 1.5px solid var(--linea); border-radius: var(--r-m); cursor: pointer; }
.brain input { width: 1.3rem; height: 1.3rem; margin: 0; accent-color: var(--cobalto); }
.brain span { display: grid; gap: .1rem; }
.brain b { font-size: 1.05rem; }
.brain small { font-size: .88rem; color: var(--ink-2); line-height: 1.35; }
.brain.on { border-color: var(--cobalto); background: var(--cobalto-sv); }
.oa { display: grid; gap: .9rem; margin-bottom: 1rem; padding: 1rem; border-radius: var(--r-m); background: var(--smalto); }
.keyform { display: grid; gap: .35rem; }
.keyform .inline { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.keyform input { background: var(--carta); font-family: ui-monospace, monospace; font-size: .95rem; }
.oa .field select { background: var(--carta); }
.oa .btn.quiet { justify-self: start; margin-left: -1rem; }
.howto summary { min-height: 2.75rem; display: flex; align-items: center; font-weight: 600; cursor: pointer; color: var(--cobalto-tma); }
.howto .points { margin-top: .2rem; list-style: decimal; }
.test-out { display: grid; gap: .25rem; margin-top: .9rem; }
.test-out:empty { display: none; }
.test-out .it { font-size: 1.25rem; }

/* ---------- panel slova ---------- */
.sheet .entry .meta { margin-top: -.6rem; }
.sheet .pron::before, .sheet .pron::after { content: none; }
.sheet .pron .lbl { font-style: normal; font-size: .85rem; color: var(--ink-2); }
.sheet .entry > .pron { font-size: 1.15rem; color: var(--ink); }
.lemma p { font-size: 1.05rem; }
.lemma b { font-size: 1.3rem; }
.part { padding: .8rem 1rem; background: var(--smalto); border-radius: var(--r-m); display: grid; gap: .2rem; }
.part h3 { margin: 0; font: 600 1.4rem/1.2 var(--serif); color: var(--ink); }

/* ---------- rozhovory, fráze ---------- */
.list .name { font: 650 1.12rem/1.25 var(--ui); }
.cathead { display: grid; grid-template-columns: 5.5rem 1fr; gap: .9rem; align-items: center; margin: 1rem 0 .2rem; }
.cathead img { width: 5.5rem; height: 5.5rem; object-fit: cover; border-radius: var(--r-m); box-shadow: 0 3px 0 var(--tab); }
.cathead p { font-size: .95rem; color: var(--ink-2); text-wrap: pretty; }
