/* Všemi deseti
 * Světlý „sešit“ s tečkami. Všechno, na co jde kliknout, vypadá jako klávesa
 * s tvrdým spodním okrajem a dá se „zmáčknout“. Barvy kláves = prsty, všude stejně.
 */

/* Písmo nadpisů: Nunito (SIL OFL, fonts/Nunito-OFL.txt), hostované v aplikaci. Tloušťky jsou o stupeň
   posunuté (500 → 700, 600 → 800, 700 → 900), aby nadpisy měly sílu jako dřív. Fredoka neměla č ď ě ň ř ť ů. */
@font-face { font-family: "TP Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/nunito-latin-700-normal.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: "TP Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/nunito-latin-ext-700-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "TP Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/nunito-latin-800-normal.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: "TP Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/nunito-latin-ext-800-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "TP Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/nunito-latin-900-normal.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: "TP Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/nunito-latin-ext-900-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Klikací prvky mají vždy ukazatel ruky (tlačítka ho v prohlížečích samy nemají). */
button:not(:disabled), summary, select, input[type="checkbox"], input[type="radio"],
label:has(input[type="checkbox"]), label:has(input[type="radio"]), label.check, label.confirm { cursor: pointer; }
button:disabled { cursor: not-allowed; }

/* Písma textu a motivů (SIL OFL, licence ve fonts/), hostovaná v aplikaci: stránky nic nenačítají z cizích serverů. */
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-next-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-next-latin-400-normal.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: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/atkinson-hyperlegible-next-latin-ext-600-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/atkinson-hyperlegible-next-latin-600-normal.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: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/atkinson-hyperlegible-next-latin-ext-700-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/atkinson-hyperlegible-next-latin-700-normal.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: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-mono-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-mono-latin-400-normal.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: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/atkinson-hyperlegible-mono-latin-ext-600-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/atkinson-hyperlegible-mono-latin-600-normal.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: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/newsreader-latin-ext-500-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/newsreader-latin-500-normal.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: "Newsreader"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/newsreader-latin-ext-600-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/newsreader-latin-600-normal.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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.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: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-mono-latin-ext-600-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-mono-latin-600-normal.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: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/space-grotesk-latin-ext-500-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/space-grotesk-latin-500-normal.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: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/space-grotesk-latin-ext-600-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/space-grotesk-latin-600-normal.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: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/space-grotesk-latin-ext-700-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/space-grotesk-latin-700-normal.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: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-latin-400-normal.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: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/jetbrains-mono-latin-ext-600-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/jetbrains-mono-latin-600-normal.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: "Special Elite"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/special-elite-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Special Elite"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/special-elite-latin-400-normal.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: "Courier Prime"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/courier-prime-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/courier-prime-latin-400-normal.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: "Courier Prime"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/courier-prime-latin-ext-700-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/courier-prime-latin-700-normal.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; }

/* Písma nových motivů (SIL OFL, licence ve fonts/) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.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: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-ext-600-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.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: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-ext-700-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.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: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/inter-latin-ext-800-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/inter-latin-800-normal.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: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/fraunces-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/fraunces-latin-400-normal.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: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/fraunces-latin-ext-600-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/fraunces-latin-600-normal.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: "Fraunces"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/fraunces-latin-ext-700-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/fraunces-latin-700-normal.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: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/fraunces-latin-ext-400-italic.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/fraunces-latin-400-italic.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: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/dm-sans-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/dm-sans-latin-400-normal.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: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/dm-sans-latin-ext-500-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/dm-sans-latin-500-normal.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: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/dm-sans-latin-ext-700-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/dm-sans-latin-700-normal.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: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/dm-mono-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/dm-mono-latin-400-normal.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: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-latin-400-normal.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: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-latin-ext-500-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-latin-500-normal.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: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-latin-ext-600-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-latin-600-normal.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: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-latin-ext-700-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-latin-700-normal.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: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/poppins-latin-ext-800-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/poppins-latin-800-normal.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: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/space-mono-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/space-mono-latin-400-normal.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: "Baloo 2"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/baloo-2-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/baloo-2-latin-400-normal.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: "Baloo 2"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/baloo-2-latin-ext-600-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/baloo-2-latin-600-normal.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: "Baloo 2"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/baloo-2-latin-ext-700-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/baloo-2-latin-700-normal.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: "Baloo 2"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/baloo-2-latin-ext-800-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/baloo-2-latin-800-normal.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: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/manrope-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/manrope-latin-400-normal.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: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/manrope-latin-ext-600-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/manrope-latin-600-normal.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: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/manrope-latin-ext-700-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/manrope-latin-700-normal.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: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/manrope-latin-ext-800-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/manrope-latin-800-normal.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, [data-theme="hravy"], [data-preview="hravy"] {
  color-scheme: light;

  --bg: #f3f6ff;
  --dots: #dde3fb;
  --paper: #ffffff;
  --ink: #1c2045;
  --ink-2: #565c86;
  --ink-3: #8b90b4;
  --line: #e1e5f7;
  --edge: #cdd3ef;

  --brand: #3d5afe;
  --brand-edge: #2437c4;
  --brand-soft: #e5eaff;
  --sun: #ffc233;
  --sun-edge: #e39b00;
  --sun-soft: #fff4d4;
  --flame: #ff6b35;
  --flame-soft: #ffe9df;
  --mint: #16b373;
  --mint-soft: #dcf8ea;
  --error: #ef4359;
  --error-soft: #ffe3e7;
  --sky: #d9ebff;

  --pinky: #ffc2d6;
  --ring: #ffe08a;
  --middle: #b6efc9;
  --index: #c3dbff;
  --thumb: #e3d7ff;
  --mod: #eef0fa;

  /* odvozené barvy, které motivy přebarvují */
  --paper-rgb: 255 255 255;
  --shade: 28 32 69;
  --on-brand: #ffffff;
  --brand-line: #9fb0ff;
  --sun-ink: #3d2a00;
  --sun-line: #f5d98c;
  --sun-2: #ff9f1c;
  --sun-deep: #b87500;
  --flame-ink: #b33a0e;
  --flame-edge: #d9531f;
  --flame-line: #ffc6ae;
  --mint-edge: #0e8a57;
  --mint-line: #c9f0dc;
  --mint-line-2: #a8e3c4;
  --ok-ink: #0b7a4b;
  --error-ink: #c42a3f;
  --error-edge: #b3263a;
  --sky-2: #eef6ff;
  --sky-3: #cfe5ff;
  --sky-4: #e8f3ff;
  --sky-5: #f6fbff;
  --grass: #a9dcae;
  --grass-2: #8fd197;
  --grass-line: #b9ecbd;
  --cloud: #ffffff;
  --key-bg: var(--paper);
  --key-ink: var(--ink);
  --pattern: radial-gradient(var(--dots) 1.2px, transparent 1.3px);
  --pattern-size: 22px 22px;
  font-synthesis: weight style;

  --font-display: "TP Display", "Nunito", "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --font-ui: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-text: "Atkinson Hyperlegible Mono", ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;

  --step--1: 0.84rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: 2.7rem;

  --measure: 70rem;
}

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

html { font-size: 106.25%; } /* 17 px */

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dots) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.005em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0; }
a { color: var(--brand); text-underline-offset: 0.18em; }
small { font-size: 0.8em; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.kicker { font-family: var(--font-display); font-weight: 500; color: var(--ink-2); margin-bottom: 0.4rem; }

/* Karta = velká klávesa ---------------------------------------------------------- */

.card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 5px 0 var(--edge);
}

/* Tlačítka = klávesy -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.55rem 1.4rem;
  border: 0;
  border-radius: 14px;
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 5px 0 var(--brand-edge);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.07s, box-shadow 0.07s, filter 0.15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--brand-edge); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-big { min-height: 3.4rem; padding: 0.7rem 2rem; font-size: 1.35rem; }
.btn-quiet { background: var(--paper); color: var(--brand); box-shadow: 0 5px 0 var(--edge), inset 0 0 0 2px var(--line); }
.btn-quiet:active { box-shadow: 0 1px 0 var(--edge), inset 0 0 0 2px var(--line); }
.btn-sun { background: var(--sun); color: var(--sun-ink); box-shadow: 0 5px 0 var(--sun-edge); }
.btn-sun:active { box-shadow: 0 1px 0 var(--sun-edge); }

.link {
  background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); cursor: pointer;
  text-decoration: underline; text-underline-offset: 0.18em;
}
.link:hover { color: var(--ink); }

/* Hlavička ------------------------------------------------------------------------ */

.topbar {
  display: flex;
  align-items: center;
  gap: 0.8rem 1rem;
  flex-wrap: wrap;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1rem 1.25rem 0.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
}

/* Logo: klávesa s horou, v barvách motivu */
.wordmark .logo { flex: none; width: 1.95rem; height: 1.95rem; transition: transform 0.2s ease; }
.wordmark:hover .logo { transform: translateY(-2px) rotate(-4deg); }
.logo-edge { fill: var(--brand-edge); }
.logo-key { fill: var(--brand); }
.logo-peak { fill: none; stroke: var(--paper); stroke-width: 4.4; stroke-linecap: round; stroke-linejoin: round; }
.logo-dot { fill: var(--sun); }
.wm-text { white-space: nowrap; }
.wm-accent { color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .wordmark:hover .logo { transform: none; } }
.hands { display: inline-flex; align-items: flex-end; gap: 2px; height: 1.5rem; padding-bottom: 0.25rem; }
.hands i { display: block; width: 6px; border-radius: 3px; transition: transform 0.2s; }
.hands i.f-lp, .hands i.f-rp { height: 55%; }
.hands i.f-lr, .hands i.f-rr { height: 80%; }
.hands i.f-lm, .hands i.f-rm { height: 100%; }
.hands i.f-li, .hands i.f-ri { height: 85%; }
.hands i.f-th { height: 35%; }
.hands i:nth-child(5), .hands i:nth-child(7) { margin-left: 3px; }
.wordmark:hover .hands i { transform: translateY(-2px); }
.wordmark:hover .hands i:nth-child(even) { transform: translateY(1px); }

.nav { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.nav a {
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover { color: var(--ink); background: var(--paper); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }

.hud { display: flex; align-items: center; gap: 0.4rem; margin-left: auto; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.2rem;
  padding: 0.2rem 0.62rem;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 3px 0 var(--edge), inset 0 0 0 2px var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: default;
}
.chip-flame { background: var(--flame-soft); box-shadow: 0 3px 0 var(--flame-line); color: var(--flame-ink); }
.chip-flame.is-waiting { filter: grayscale(0.7); opacity: 0.75; }
.chip-level { cursor: pointer; }
.chip-level .lvl {
  display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%;
  background: var(--sun); color: var(--sun-ink); font-size: 0.85rem;
}
.xpbar { display: block; width: 2.4rem; height: 0.45rem; border-radius: 99px; background: var(--line); overflow: hidden; }
.xpbar i { display: block; height: 100%; background: var(--sun); border-radius: 99px; transition: width 0.8s ease; }
.chip-sound { cursor: pointer; padding: 0.2rem 0.6rem; }
.chip-sound:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge), inset 0 0 0 2px var(--line); }
.chip-flame.is-cold { background: var(--mod); color: var(--ink-2); box-shadow: 0 3px 0 var(--edge); filter: none; opacity: 1; }
.chip-flame.is-cold > span[aria-hidden] { filter: grayscale(1); opacity: 0.6; }
.chip-profile, .chip-guest { min-height: 2.6rem; cursor: pointer; }
.chip-profile { padding: 0.2rem 0.75rem 0.2rem 0.25rem; font-family: var(--font-ui); font-weight: 700; }
.chip-profile svg { color: var(--ink-2); }
.chip-guest { padding: 0.2rem 1rem 0.2rem 0.75rem; }
.chip-guest svg { color: var(--brand); }
.chip-profile.is-current, .chip-guest.is-current { box-shadow: 0 3px 0 var(--brand-edge), inset 0 0 0 2px var(--brand); }
.chip-profile:active, .chip-guest:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge), inset 0 0 0 2px var(--line); }

.page { max-width: var(--measure); margin: 0 auto; padding: 1.25rem 1.25rem 4rem; }

/* Barvy prstů --------------------------------------------------------------------- */

.f-lp, .f-rp { --finger: var(--pinky); background: var(--pinky); }
.f-lr, .f-rr { --finger: var(--ring); background: var(--ring); }
.f-lm, .f-rm { --finger: var(--middle); background: var(--middle); }
.f-li, .f-ri { --finger: var(--index); background: var(--index); }
.f-th { --finger: var(--thumb); background: var(--thumb); }
.f-mod { background: var(--mod); }

.cap {
  display: inline-grid;
  place-items: center;
  min-width: 1.9rem;
  height: 1.9rem;
  padding: 0 0.45rem;
  border-radius: 8px;
  font-family: var(--font-text);
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--ink);
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.12);
}

/* Hvězdy -------------------------------------------------------------------------- */

.star { color: var(--line); font-size: 1.15em; line-height: 1; text-shadow: 0 1px 0 var(--edge); }
.star.is-on { color: var(--sun); text-shadow: 0 1px 0 var(--sun-edge); }
.star-inline { color: var(--sun); }

/* Klávesnice ---------------------------------------------------------------------- */

.kb { container-type: inline-size; display: block; width: 100%; max-width: 54rem; margin: 0 auto; user-select: none; }

/* 15 jednotek na řádek, výška řádku = šířka jedné jednotky */
.kb-row {
  display: grid;
  grid-template-columns: repeat(60, minmax(0, 1fr));
  grid-template-rows: 100%;
  height: calc(100cqi / 15);
}

.key {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  margin: clamp(1px, 0.35cqi, 3px);
  border-radius: clamp(4px, 0.9cqi, 9px);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: clamp(9px, 2.3cqi, 18px);
  line-height: 1.05;
  box-shadow: inset 0 -4px 0 rgb(0 0 0 / 0.11);
  transition: opacity 0.2s, transform 0.08s, background-color 0.15s;
}
.key .k-shift { font-size: 0.72em; color: var(--ink-2); }
.key.mod { font-family: var(--font-ui); font-size: clamp(8px, 1.6cqi, 13px); color: var(--ink-2); background: var(--mod); }
.key.space { background: var(--thumb); }
.key.bump::after {
  content: "";
  position: absolute;
  bottom: 20%;
  width: 22%;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.55;
}
.key.off { opacity: 0.28; }
.key.new { outline: 3px solid var(--brand); outline-offset: -3px; opacity: 1; }
.key.next {
  opacity: 1;
  background: var(--brand);
  color: var(--on-brand);
  transform: translateY(-2px);
  box-shadow: inset 0 -4px 0 var(--brand-edge);
}
.key.next .k-shift { color: inherit; opacity: 0.8; }
.key.miss { animation: miss 0.45s ease-out; }

@keyframes miss {
  0% { background: var(--error); color: var(--on-brand); }
  100% { }
}

.kb--heat .key { background: var(--mod); color: var(--ink-2); }
.kb--heat .key.heat { background: color-mix(in oklab, var(--error) calc(var(--heat) * 85%), var(--paper)); color: var(--ink); }

/* Přehled: další lekce a klávesnice --------------------------------------------------- */

.upnext {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: 2.8rem;
  align-items: center;
  padding: 2.1rem 2.4rem;
  margin-bottom: 1.4rem;
}
.upnext-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
.upnext-copy .kicker { margin: 0; }
.upnext h1 { font-size: 2.9rem; line-height: 1.05; }
.upnext-stars { font-size: 1.55rem; letter-spacing: 3px; line-height: 1; }
.upnext-desc { color: var(--ink-2); }
.upnext .btn-big { margin-top: 0.3rem; }
.upnext-goal { font-size: var(--step--1); color: var(--ink-2); }
.upnext-board { margin: 0; display: grid; gap: 0.9rem; }
.upnext-board .kb { max-width: none; }
.upnext-board figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.2rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.legend-inline { display: flex; flex-wrap: wrap; gap: 0.3rem 0.85rem; font-size: 0.78rem; }
.legend-inline span { display: inline-flex; align-items: center; gap: 0.3rem; }
.legend-inline i { width: 0.75rem; height: 0.75rem; border-radius: 4px; }

/* Přehled: úroveň, série a dnešní cíl (jen s profilem) --------------------------------- */

.dash { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-bottom: 1.4rem; }
.tile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  border-radius: 22px;
  background: var(--paper);
  border: 2px solid var(--line);
  box-shadow: 0 5px 0 var(--edge);
  color: var(--ink);
  text-decoration: none;
}
.tile-body { display: grid; gap: 0.15rem; min-width: 0; flex-grow: 1; }
.tile-kicker { font-family: var(--font-display); color: var(--ink-2); font-size: var(--step--1); font-weight: 500; }
.tile-title { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1.15; }
.tile-number { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; font-weight: 700; }
.tile-note { color: var(--ink-2); font-size: var(--step--1); }

.level-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 4px 0 var(--sun-edge), inset 0 0 0 4px rgb(255 255 255 / 0.45);
  color: var(--sun-ink);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  transition: transform 0.2s;
}
.tile-level { background: linear-gradient(135deg, var(--sun-soft), var(--paper) 60%); }
.tile-level:hover .level-badge { transform: rotate(-8deg); }
.xp { display: grid; gap: 0.25rem; margin-top: 0.3rem; }
.xp-bar { display: block; height: 0.65rem; border-radius: 99px; background: var(--line); overflow: hidden; }
.xp-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--sun), var(--sun-2)); transition: width 1s cubic-bezier(.2,.8,.2,1); }
.xp-text { font-size: var(--step--1); color: var(--ink-2); }

.tile-streak { flex-direction: column; align-items: stretch; gap: 0.7rem; padding: 0.95rem 1.3rem; background: linear-gradient(135deg, var(--flame-soft), var(--paper) 65%); }
.streak-top { display: flex; align-items: center; gap: 0.7rem; }
.streak-flame { font-size: 2.1rem; line-height: 1; filter: drop-shadow(0 3px 0 var(--flame-line)); animation: flicker 2.4s ease-in-out infinite; }
.tile-streak.is-cold .streak-flame { filter: grayscale(1) opacity(0.45); animation: none; }
.tile-streak .tile-number { color: var(--flame-edge); }
@keyframes flicker {
  0%, 100% { transform: rotate(-3deg) scale(1); }
  50% { transform: rotate(3deg) scale(1.06); }
}
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.week li { display: grid; justify-items: center; gap: 0.2rem; font-size: 0.72rem; color: var(--ink-2); }
.week i { display: block; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); }
.week li.is-past i { background: var(--mod); box-shadow: none; }
.week li.is-today i { box-shadow: inset 0 0 0 3px var(--flame); }
.week li.is-done i { background: var(--flame); box-shadow: 0 3px 0 var(--flame-edge); }
.week li.is-now { color: var(--ink); font-weight: 700; }

.tile-goal { background: linear-gradient(135deg, var(--mint-soft), var(--paper) 65%); }
.ring-wrap { position: relative; flex: none; width: 4.5rem; height: 4.5rem; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--line); stroke-width: 9; }
.ring-fill { fill: none; stroke: var(--mint); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ok-ink);
}

/* Přehled: hra, odznaky, pozvánka do profilu ------------------------------------------- */

.duo { display: grid; grid-template-columns: 3fr 2fr; gap: 1.2rem; margin-bottom: 2.6rem; }

.promo-game {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 17.5rem;
  padding: 1.4rem 1.8rem 2.6rem;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 84%, var(--grass) 84%, var(--grass-2) 100%);
  color: var(--ink);
  text-decoration: none;
}
.promo-copy { position: relative; z-index: 1; display: grid; gap: 0.35rem; justify-items: start; max-width: 58%; }
.promo-title { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; line-height: 1; }
.promo-best { font-family: var(--font-display); font-weight: 500; color: var(--ink-2); margin-bottom: 0.4rem; }
.rain { position: absolute; inset: 0 0 16% 60%; overflow: hidden; pointer-events: none; }
.rain i {
  position: absolute;
  top: -2.5rem;
  left: var(--x);
  padding: 0.15rem 0.6rem;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 3px 0 var(--edge);
  font-family: var(--font-text);
  font-style: normal;
  font-size: 0.95rem;
  animation: drizzle 6s linear infinite;
  animation-delay: var(--d);
}
@keyframes drizzle {
  0% { transform: translateY(0) rotate(-2deg); opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(12rem) rotate(2deg); opacity: 0; }
}
.promo-game:hover .btn-sun { filter: brightness(1.05); transform: translateY(-1px); }

.badges-card { display: grid; align-content: start; gap: 0.9rem; padding: 1.4rem 1.6rem; color: var(--ink); text-decoration: none; }
.badges-head { display: flex; align-items: baseline; justify-content: space-between; }
.badges-head strong { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; }
.badges-head span { font-family: var(--font-display); color: var(--ink-2); }
.badge-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge-dot {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--sun-soft);
  box-shadow: 0 3px 0 var(--sun-line);
  font-size: 1.4rem;
}
.badge-dot.is-fresh { animation: wiggle 1.2s ease-in-out 2; }
.badge-dot.is-locked { background: var(--mod); box-shadow: 0 3px 0 var(--line); filter: grayscale(1); opacity: 0.45; }
.badges-next { color: var(--ink-2); font-size: var(--step--1); }
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-12deg); }
  75% { transform: rotate(12deg); }
}

.invite { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.4rem 1.6rem; }
.invite h2 { font-size: var(--step-2); }
.invite p { font-size: var(--step--1); color: var(--ink-2); }
.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 0.8rem; margin: 0; padding: 0; list-style: none; font-size: 0.92rem; }
.perks li { display: flex; align-items: center; gap: 0.5rem; }
.perk-icon { flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; font-size: 0.95rem; }
.perk-sun { background: var(--sun-soft); }
.perk-flame { background: var(--flame-soft); }
.perk-mint { background: var(--mint-soft); }
.perk-brand { background: var(--brand-soft); }
.invite-actions { display: flex; align-items: center; gap: 1.2rem; margin-top: auto; flex-wrap: wrap; }
.invite-actions .btn { font-size: 1.1rem; min-height: 2.8rem; }
.invite-link { font-family: var(--font-display); font-weight: 500; }

/* Přehled: mapa lekcí ----------------------------------------------------------------- */

.map-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 1.3rem; }
.map-head h2 { font-size: var(--step-3); }
.map-head p { color: var(--ink-2); }
.map-head strong { color: var(--ink); font-family: var(--font-display); }
.star-inline { color: var(--sun-edge); }

.stages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.8rem; }
.stage { display: grid; gap: 0.85rem; align-content: start; }
.stage-head { display: flex; align-items: center; gap: 0.75rem; }
.stage-no {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.12);
}
.stage-zakladni .stage-no { background: var(--index); }
.stage-horni .stage-no { background: var(--middle); }
.stage-spodni .stage-no { background: var(--ring); }
.stage-velka .stage-no { background: var(--pinky); }
.stage-diakritika .stage-no { background: var(--thumb); }
.stage-cisla .stage-no { background: var(--sun-soft); }
.stage-texty .stage-no { background: var(--flame-soft); }
.stage-name { display: grid; line-height: 1.25; flex-grow: 1; min-width: 0; }
.stage-name h3 { font-size: 1.2rem; }
.stage-name span { font-size: var(--step--1); color: var(--ink-2); }
.stage-count { font-family: var(--font-display); color: var(--ink-2); font-size: 0.9rem; white-space: nowrap; }

.tiles { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.ltile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 4.3rem;
  height: 5.2rem;
  padding: 0.45rem 0.6rem 0.5rem;
  border-radius: 14px;
  border: 2px dashed var(--edge);
  color: var(--ink-2);
  text-decoration: none;
  transition: transform 0.12s;
}
.ltile:hover { transform: translateY(-2px); }
.ltile-num { font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; line-height: 1; }
.ltile-label { font-family: var(--font-text); font-weight: 600; font-size: 1rem; line-height: 1; text-align: center; white-space: nowrap; }
.ltile-stars { text-align: center; font-size: 0.78rem; letter-spacing: 1px; line-height: 1; }
.ltile-next { text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 0.72rem; line-height: 1; }
.ltile.is-done { background: var(--paper); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--edge); color: var(--ink); }
.ltile.is-done .ltile-num { color: var(--ok-ink); }
.ltile.is-next { background: var(--brand); border: 2px solid var(--brand); box-shadow: 0 5px 0 var(--brand-edge); color: var(--on-brand); transform: translateY(-3px); }
.ltile.is-next .ltile-num { color: rgb(255 255 255 / 0.85); }
.ltile.is-next:hover { transform: translateY(-5px); }

/* Lekce ---------------------------------------------------------------------------- */

.lesson-head { padding: 0.5rem 0 1.2rem; max-width: 48rem; }
.back { display: inline-block; margin-bottom: 0.8rem; font-family: var(--font-display); font-weight: 500; text-decoration: none; }
.back::before { content: "‹ "; }
.lesson-head h1 { font-size: var(--step-3); margin-bottom: 0.6rem; }
.head-stars { font-size: 1.4rem; margin-left: 0.4rem; letter-spacing: 2px; vertical-align: 0.15em; white-space: nowrap; }
.lesson-desc { margin-bottom: 0.5rem; }
.lesson-goal { color: var(--ink-2); font-size: var(--step--1); }
.lesson-goal strong { color: var(--ink); }

.trainer { display: grid; gap: 0.9rem; }

.meter { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap; min-height: 2.4rem; scroll-margin-top: 0.6rem; }
.live { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; margin: 0; }
.live div { display: flex; align-items: baseline; gap: 0.45rem; }
.live dt { color: var(--ink-2); font-size: var(--step--1); }
.live dd { margin: 0; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 3ch; }

.combo {
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: var(--sun);
  box-shadow: 0 3px 0 var(--sun-edge);
  color: var(--sun-ink);
  font-family: var(--font-display);
  font-weight: 600;
}
.combo.is-milestone { animation: bump 0.5s ease-out; }
@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35) rotate(-4deg); }
  100% { transform: scale(1); }
}

.sheet { position: relative; padding: 1.4rem 1.6rem 1.3rem; scroll-margin-top: 0.75rem; cursor: text; overflow: hidden; }
.sheet:has(> .paused:not([hidden])) { padding-top: 3.1rem; }
.bar { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--line); }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), #7b8cff); transition: width 0.15s; border-radius: 0 3px 3px 0; }

/* celý text cvičení je vidět vždy (p56): výška podle textu, nic se neposouvá; aspoň 4 řádky, ať krátký text neskáče */
.exercise {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  row-gap: 0.35em;
  min-height: calc(4 * 1.6em + 3 * 0.35em);
  font-family: var(--font-text);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.6;
}
.exercise.is-long { font-size: clamp(1.1rem, 2vw, 1.35rem); }
.word { display: inline-flex; white-space: pre; }
.ch { position: relative; border-radius: 4px; }
.ch.ok { color: var(--ink-3); }
.ch.fixed { color: var(--error); opacity: 0.75; }
.ch.cur { background: var(--brand-soft); box-shadow: inset 0 -3px 0 var(--brand); }
.ch.bad { animation: bad 0.35s ease-out; }
.ch.cur.bad { background: var(--error-soft); box-shadow: inset 0 -3px 0 var(--error); }
.ch.sp.cur::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--brand);
}
@keyframes bad {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-3px); }
  60% { transform: translateX(3px); }
}

.sink {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  border: 0;
  padding: 0;
  resize: none;
  pointer-events: none;
}

.paused {
  /* štítek nad textem: text cvičení musí zůstat vidět */
  position: absolute;
  top: 0.6rem;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  padding: 0.35rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 4px 0 var(--brand-edge);
  color: var(--on-brand);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.hint { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; min-height: 2.4rem; color: var(--ink-2); }
.hint-keys { display: inline-flex; align-items: center; gap: 0.4rem; }
.hint kbd {
  padding: 0.15rem 0.6rem;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 3px 0 var(--edge), inset 0 0 0 2px var(--line);
  font-family: var(--font-text);
  font-size: var(--step-0);
  color: var(--ink);
}
.hint kbd.is-now { background: var(--brand); color: var(--on-brand); box-shadow: 0 3px 0 var(--brand-edge); }
.hint kbd.is-past { opacity: 0.45; }
.hint .then { font-size: var(--step--1); }
.caps-warn { color: var(--error); font-weight: 700; }

.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.2rem; margin: 0; padding: 0; list-style: none; font-size: var(--step--1); color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 0.4rem; }
.legend i { width: 0.95rem; height: 0.95rem; border-radius: 4px; }
.shortcut { text-align: center; font-size: var(--step--1); color: var(--ink-3); }

/* Výsledek ------------------------------------------------------------------------ */

.result { padding: 1.6rem 1.8rem 1.8rem; text-align: center; }
.result:focus { outline: none; }
.result.is-passed { border-color: var(--mint-line); box-shadow: 0 5px 0 var(--mint-line-2); }

.result-stars { display: flex; justify-content: center; gap: 0.4rem; margin-bottom: 0.3rem; }
.big-star { font-size: 3.4rem; line-height: 1; color: var(--line); text-shadow: 0 3px 0 var(--edge); transition: color 0.2s; }
.big-star:nth-child(2) { transform: translateY(-0.5rem); font-size: 4rem; }
.big-star.is-on { color: var(--sun); text-shadow: 0 3px 0 var(--sun-edge); }
.big-star.is-pop { animation: starpop 0.5s cubic-bezier(.2,1.6,.4,1); }
.big-star:nth-child(2).is-pop { animation-name: starpop-mid; }
@keyframes starpop {
  0% { transform: scale(0.3) rotate(-40deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes starpop-mid {
  0% { transform: translateY(-0.5rem) scale(0.3) rotate(-40deg); }
  100% { transform: translateY(-0.5rem) scale(1) rotate(0); }
}

.verdict { font-family: var(--font-display); font-size: var(--step-3); font-weight: 700; }
.result.is-passed .verdict { color: var(--mint); }
.verdict-sub { color: var(--ink-2); margin: 0.2rem 0 1.3rem; }

.figures { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 1rem 2.4rem; margin: 0 0 1.3rem; }
.figures div { display: flex; flex-direction: column-reverse; }
.figures dt { color: var(--ink-2); font-size: var(--step--1); }
.figures dd { margin: 0; font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.figures .figure-main dd { font-size: 3.6rem; line-height: 1; color: var(--brand); }

.reward {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.1rem;
  margin-bottom: 1.1rem;
  border-radius: 16px;
  background: var(--sun-soft);
}
.xp-gain { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--sun-deep); }
.reward-level { display: grid; gap: 0.25rem; min-width: 12rem; text-align: left; font-size: var(--step--1); color: var(--ink-2); }

.new-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.new-badges li {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  width: 11rem;
  padding: 0.8rem;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 4px 0 var(--edge), inset 0 0 0 2px var(--line);
  animation: starpop 0.5s cubic-bezier(.2,1.6,.4,1) both;
  font-size: var(--step--1);
  color: var(--ink-2);
}
.new-badges li:nth-child(2) { animation-delay: 0.15s; }
.new-badges li:nth-child(3) { animation-delay: 0.3s; }
.new-badges .badge-emoji { font-size: 2rem; }
.new-badges strong { color: var(--ink); font-family: var(--font-display); font-size: 1rem; }

.result-note { color: var(--ink-2); margin-bottom: 1.3rem; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; }
.actions .btn:not(.btn-quiet) { order: -1; }

/* Oznámení a konfety ------------------------------------------------------------------ */

.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }

.toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 70; display: grid; gap: 0.6rem; width: min(24rem, calc(100vw - 2rem)); }
.toast {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 5px 0 var(--edge), inset 0 0 0 2px var(--line), 0 12px 30px rgb(var(--shade) / 0.12);
  animation: toastin 0.35s cubic-bezier(.2,1.4,.4,1);
  font-size: var(--step--1);
  color: var(--ink-2);
}
.toast strong { color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; }
.toast-emoji { font-size: 1.9rem; }
.toast.is-leaving { animation: toastout 0.4s ease-in forwards; }
@keyframes toastin { from { transform: translateX(110%); opacity: 0; } }
@keyframes toastout { to { transform: translateX(110%); opacity: 0; } }

/* Hra ------------------------------------------------------------------------------- */

.game-page { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 1.2rem; align-items: start; }
.game { position: relative; display: grid; gap: 0.7rem; }

.game-hud { display: flex; align-items: center; gap: 0.6rem 1.6rem; flex-wrap: wrap; min-height: 2.6rem; }
.hud-item { display: flex; align-items: baseline; gap: 0.4rem; }
.hud-item small { color: var(--ink-2); }
.hud-item strong { font-family: var(--font-display); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.hud-lives { font-size: 1.3rem; letter-spacing: 2px; }
.hud-combo {
  margin-left: auto;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: var(--sun);
  box-shadow: 0 3px 0 var(--sun-edge);
  font-family: var(--font-display);
  font-weight: 600;
}

.game-stage {
  position: relative;
  height: clamp(380px, 64vh, 620px);
  overflow: hidden;
  border-radius: 24px;
  border: 2px solid var(--line);
  box-shadow: 0 5px 0 var(--edge);
  background: linear-gradient(180deg, var(--sky-3) 0%, var(--sky-4) 55%, var(--sky-5) 100%);
  user-select: none;
}
.game-stage.is-hit { animation: stagehit 0.4s ease-out; }
@keyframes stagehit {
  0% { box-shadow: 0 5px 0 var(--edge), inset 0 0 0 999px rgb(239 67 89 / 0.18); }
  100% { box-shadow: 0 5px 0 var(--edge), inset 0 0 0 999px rgb(239 67 89 / 0); }
}
.ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46px;
  background: linear-gradient(180deg, #9ee0a4, #6fcc7d);
  box-shadow: inset 0 4px 0 var(--grass-line);
}
.cloud {
  position: absolute;
  height: 34px;
  border-radius: 999px;
  background: var(--cloud);
  opacity: 0.9;
  animation: drift 40s linear infinite;
}
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: var(--cloud); }
.cloud::before { width: 46px; height: 46px; top: -22px; left: 18px; }
.cloud::after { width: 34px; height: 34px; top: -14px; left: 54px; }
.cloud.c1 { width: 120px; top: 30px; left: 8%; }
.cloud.c2 { width: 150px; top: 70px; left: 55%; animation-duration: 55s; animation-delay: -20s; }
.cloud.c3 { width: 100px; top: 24px; left: 80%; animation-duration: 48s; animation-delay: -35s; }
@keyframes drift {
  from { transform: translateX(-40vw); }
  to { transform: translateX(40vw); }
}

.gword {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: flex;
  padding: 0.25rem 0.7rem;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 4px 0 var(--edge), inset 0 0 0 2px var(--line);
  font-family: var(--font-text);
  font-size: 1.3rem;
  font-weight: 600;
  white-space: pre;
  will-change: transform;
}
.gword span.is-hit { color: var(--brand); }
.gword.is-target { box-shadow: 0 4px 0 var(--brand-edge), inset 0 0 0 3px var(--brand); z-index: 3; }
.gword.is-wrong { animation: wrongword 0.3s; }
.gword.is-pop { animation: popword 0.3s ease-out forwards; }
.gword.is-splash { animation: splash 0.45s ease-out forwards; background: var(--error-soft); }
@keyframes wrongword {
  0%, 100% { margin-left: 0; }
  30% { margin-left: -5px; }
  60% { margin-left: 5px; }
}
@keyframes popword { to { opacity: 0; filter: blur(2px); scale: 1.6; } }
@keyframes splash { to { opacity: 0; scale: 1.3 0.4; } }

.gpop {
  position: absolute;
  z-index: 4;
  translate: -50% 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--mint);
  text-shadow: 0 2px 0 var(--paper);
  pointer-events: none;
  animation: floatup 0.9s ease-out forwards;
}
@keyframes floatup { to { translate: -50% -60px; opacity: 0; } }

.gbanner {
  position: absolute;
  z-index: 5;
  top: 40%;
  left: 50%;
  translate: -50% -50%;
  padding: 0.4rem 1.4rem;
  border-radius: 18px;
  background: var(--sun);
  box-shadow: 0 5px 0 var(--sun-edge);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  pointer-events: none;
  animation: bannerin 1.4s ease-out forwards;
}
@keyframes bannerin {
  0% { scale: 0.4; opacity: 0; }
  20% { scale: 1.1; opacity: 1; }
  30% { scale: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; translate: -50% -90%; }
}

.game-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.8rem;
  padding: 1.5rem;
  text-align: center;
  background: rgb(var(--paper-rgb) / 0.86);
  backdrop-filter: blur(3px);
}
.game-overlay h1 { font-size: var(--step-4); }
.game-overlay > p { max-width: 34rem; color: var(--ink-2); }
.game-best { font-family: var(--font-display); font-weight: 600; color: var(--ink) !important; }
.game-keys { font-size: var(--step--1); color: var(--ink-3) !important; }
.over-kicker { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; color: var(--brand) !important; }
.over-score { font-family: var(--font-display); font-size: 4.2rem; font-weight: 700; line-height: 1; color: var(--ink) !important; }
.over-score small { font-size: 1.3rem; color: var(--ink-2); }

.segmented { display: inline-flex; padding: 4px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); }
.segmented button {
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}
.segmented button[aria-checked="true"] { background: var(--brand); color: var(--on-brand); box-shadow: 0 3px 0 var(--brand-edge); }
.mode-note { font-size: var(--step--1); }

.hall { padding: 1.2rem 1.3rem; }
.hall h2 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.hall h3 { font-size: 1rem; color: var(--ink-2); margin: 0.9rem 0 0.4rem; }

.board { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.3rem; }
.board li { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: 0.4rem; padding: 0.3rem 0.5rem; border-radius: 10px; }
.board li.is-me { background: var(--brand-soft); }
.board-rank { font-family: var(--font-display); font-weight: 600; color: var(--ink-2); }
.board-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-score { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.board-empty { display: block !important; color: var(--ink-3); font-size: var(--step--1); }

/* Slovní déšť od p134: štítek Vylepšeno, Co je nového, žebříček po obdobích, konec hry ------ */

.improved-tag { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.75rem; border-radius: 99px; background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand-line); font-family: var(--font-display); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.gm-head:has(.improved-tag) { justify-content: flex-start; }
.side-sub .improved-dot { margin-left: auto; color: var(--brand); font-size: 0.8rem; }
.gm-tag.is-improved { color: var(--brand); }
.gm-news { display: flex; align-items: flex-start; gap: 0.9rem; margin: 0 0 1rem; padding: 0.85rem 1rem; border-radius: 18px; background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand-line); }
.gm-news[hidden] { display: none; }
.gm-news-ico { flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 12px; background: var(--brand); color: var(--on-brand); font-size: 1.1rem; }
.gm-news > div { flex: 1; min-width: 0; }
.gm-news strong { font-family: var(--font-display); color: var(--ink); }
.gm-news ul { margin: 0.2rem 0 0; padding-left: 1.1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.1rem 1.4rem; color: var(--ink-2); font-size: 0.95rem; }
.gm-news-close { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: -0.5rem -0.5rem 0 0; border: 0; border-radius: 12px; background: transparent; color: var(--ink-2); font-size: 1.4rem; cursor: pointer; }
.gm-news-close:hover { background: var(--paper); color: var(--ink); }

.rb { display: grid; gap: 0.7rem; }
.rb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; }
.rb-head h2 { margin: 0 !important; }
.rb-lang { color: var(--ink-2); font-size: var(--step--1); font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.rb-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 3px; padding: 3px; border-radius: 13px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); }
.rb-tabs button { min-height: 2.5rem; padding: 0.3rem 0.35rem; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; white-space: nowrap; cursor: pointer; }
.rb-tabs button[aria-selected="true"] { background: var(--paper); color: var(--brand); box-shadow: 0 2px 0 var(--edge), 0 0 0 1.5px var(--line); }
.rb-tabs button:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; }
.rb-panel { display: grid; gap: 0.5rem; }
.rb-panel.is-loading { opacity: 0.55; }
.rb-info { margin: 0; color: var(--ink-2); font-size: var(--step--1); }
.rb .board li { grid-template-columns: 2.1rem minmax(0, 1fr) auto; }
.board-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.board-who small { color: var(--ink-3); font-size: 0.78rem; }
.rb .board { max-height: none; }
.rb .board.is-long { max-height: 26rem; overflow-y: auto; padding-right: 0.2rem; }
.rb-me { display: grid; grid-template-columns: 2.1rem minmax(0, 1fr) auto; align-items: center; gap: 0.4rem; padding: 0.45rem 0.5rem; border-radius: 12px; background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand-line); }
.rb-me[hidden] { display: none; }
.rb-me .board-rank { color: var(--brand); font-weight: 800; }
.rb-me small { color: var(--ink-2); font-size: 0.78rem; }
.rb-more { justify-self: start; min-height: 2.75rem; padding: 0 0.2rem; border: 0; background: none; color: var(--brand); font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rb-note { margin: 0; padding-top: 0.6rem; border-top: 1.5px solid var(--line); color: var(--ink-2); font-size: var(--step--1); }

.mode-note strong { font-weight: 700; color: var(--ink); }
/* p139: konec hry bez posuvníku – plocha naroste podle obsahu, obsah je kompaktnější */
.game-stage.is-over-open { height: auto; min-height: clamp(380px, 64vh, 620px); }
.game-stage.is-over-open .game-overlay.is-over { position: relative; inset: auto; min-height: inherit; }
.game-overlay.is-over { grid-template-columns: minmax(0, 100%); align-content: center; gap: 0.5rem; padding: 1.1rem 1.2rem 3.4rem; }
.over-guest { box-sizing: border-box; width: min(100%, 30rem); grid-template-columns: minmax(0, 1fr); text-align: center; }
.over-nick-row .btn { flex: none; }
@media (max-width: 560px) {
  .game-overlay.is-over { padding: 0.9rem 0.7rem 3rem; }
  .game-overlay.is-over .actions .btn-big { padding-inline: 1.1rem; font-size: 1.05rem; }
}
.game-overlay.is-over .over-kicker { font-size: var(--step-1); }
.game-overlay.is-over .over-score { font-size: 3.4rem; }
.game-overlay.is-over .actions { margin-top: 0.2rem; }
.game-overlay.is-over .actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem 0.9rem; }
.over-extra { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; }
.over-extra:not(:has(> :not([hidden]))) { display: none; }
.game-overlay.is-over .reward { margin: 0; padding: 0.4rem 0.8rem; gap: 0.7rem; }
.game-overlay.is-over .xp-gain { font-size: 1.15rem; }
.game-overlay.is-over .reward-level { min-width: 9rem; }
.game-overlay.is-over .new-badges { margin: 0; gap: 0.5rem; }
.game-overlay.is-over .new-badges li { width: auto; max-width: 17rem; grid-template-columns: auto 1fr; justify-items: start; column-gap: 0.6rem; row-gap: 0; padding: 0.4rem 0.75rem; text-align: left; box-shadow: 0 3px 0 var(--edge), inset 0 0 0 2px var(--line); }
.game-overlay.is-over .new-badges .badge-emoji { grid-row: span 2; font-size: 1.5rem; }
.game-overlay.is-over .new-badges strong { font-size: 0.92rem; }
.game-overlay.is-over .share-bar { margin: 0; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4rem 0.6rem; }
.game-overlay.is-over .share-buttons { justify-content: center; }
.game-overlay.is-over .share-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.over-nick small:not(.is-error) { display: none; }
.over-meta { margin: -0.2rem 0 0; font-size: var(--step--1); }
.over-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.45rem; width: min(100%, 32rem); margin: 0; }
.over-stats div { display: flex; flex-direction: column-reverse; align-items: center; padding: 0.35rem 0.3rem; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1.5px var(--line); }
.over-stats dt { color: var(--ink-2); font-size: 0.78rem; line-height: 1.3; }
.over-stats dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.over-ranks { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.over-ranks[hidden] { display: none; }
.over-ranks li { display: flex; flex-direction: column; align-items: center; min-width: 6.4rem; padding: 0.35rem 0.8rem; border-radius: 14px; background: var(--brand-soft); line-height: 1.25; }
.over-ranks small { color: var(--ink-2); font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; }
.over-ranks strong { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--brand); }
.over-ranks em { font-style: normal; font-size: 0.78rem; font-weight: 700; color: var(--ok-ink); }
.over-guest { display: grid; justify-items: center; gap: 0.35rem; max-width: 30rem; padding: 0.7rem 1rem; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 2px var(--sun), 0 5px 0 var(--sun-edge); }
.over-guest[hidden] { display: none; }
.over-link { font-family: var(--font-display); font-weight: 700; font-size: var(--step--1); }
.over-guest strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.over-guest-alt { color: var(--ink-2); font-size: 0.9rem; }
.over-nick { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.35rem; width: min(100%, 24rem); text-align: left; }
.over-nick label { font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.over-nick-row { display: flex; gap: 0.5rem; }
.over-nick input { flex: 1; min-width: 0; min-height: 2.75rem; padding: 0.4rem 0.8rem; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; }
.over-nick input:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.over-nick small { color: var(--ink-3); font-size: 0.8rem; }
.over-nick small.is-error { color: var(--error-ink); font-weight: 700; }
.over-nick[hidden], .over-nick-done[hidden] { display: none; }
.over-nick-done { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--ok-ink); }
@media (max-width: 560px) {
  .over-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .over-score { font-size: 3.2rem; }
}

/* Slovní déšť p135: zvláštní slova, zpomalení, ukazatel úrovně, žebříček Slov dne */
.gword.is-gold { background: var(--sun); color: var(--sun-ink); box-shadow: 0 4px 0 var(--sun-edge), inset 0 0 0 2px var(--sun-edge), 0 0 18px var(--sun); }
.gword.is-slow { background: var(--mint-soft); box-shadow: 0 4px 0 var(--mint-edge), inset 0 0 0 2px var(--mint); }
.gword.is-heart { background: var(--error-soft); box-shadow: 0 4px 0 var(--error-edge), inset 0 0 0 2px var(--error); }
.gword.is-target.is-gold, .gword.is-target.is-slow, .gword.is-target.is-heart { outline: 3px solid var(--brand); outline-offset: 1px; }
.gword[data-kind]::after { position: absolute; top: -0.7rem; right: -0.6rem; padding: 0 0.4rem; border-radius: 8px; font-family: var(--font-display); font-size: 0.72rem; font-weight: 800; line-height: 1.5; }
.gword[data-kind="1"]::after { content: "×2"; background: var(--sun-edge); color: var(--sun-ink); }
.gword[data-kind="2"]::after { content: "⏳"; background: var(--mint-edge); color: var(--paper); }
.gword[data-kind="3"]::after { content: "+♥"; background: var(--error); color: var(--paper); }
.game-stage.is-slow::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: color-mix(in srgb, var(--mint) 12%, transparent); box-shadow: inset 0 0 0 4px var(--mint); }
.game-progress { display: flex; align-items: center; gap: 0.7rem; margin-top: -0.3rem; color: var(--ink-2); font-family: var(--font-display); font-size: var(--step--1); font-weight: 700; }
.game-progress[hidden] { display: none; }
.game-progress-bar { flex: 1; height: 0.5rem; border-radius: 99px; background: var(--line); overflow: hidden; }
.game-progress-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--brand); transition: width 0.25s ease-out; }
.rb-modes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.rb-modes button { padding: 0.45rem 0.4rem; font-size: 0.92rem; white-space: nowrap; }
.game-overlay .segmented { flex-wrap: wrap; justify-content: center; }

/* Tvůj Slovní déšť (p136) */
.rs-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; margin: 0.4rem 0 1.2rem; }
.rs-tile { display: flex; flex-direction: column; padding: 0.9rem 1rem; border-radius: 18px; background: var(--paper); box-shadow: 0 4px 0 var(--edge), inset 0 0 0 2px var(--line); }
.rs-tile small { color: var(--ink-2); font-family: var(--font-display); font-weight: 700; }
.rs-tile strong { font-family: var(--font-display); font-size: 1.8rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.rs-tile span { color: var(--ink-3); font-size: var(--step--1); }
.rs-chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; margin-bottom: 0.6rem; }
.rs-chart-head h2 { margin: 0; }
.segmented a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.4rem 0.9rem; border-radius: 12px; color: var(--ink-2); font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.segmented a[aria-current="page"] { background: var(--brand); color: var(--on-brand); box-shadow: 0 3px 0 var(--brand-edge); }
.rs-svg { display: block; width: 100%; height: auto; max-height: 16rem; }
.rs-grid { stroke: var(--line); stroke-width: 1; }
.rs-axis { fill: var(--ink-3); font-size: 11px; font-family: var(--font-ui); }
.rs-line { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.rs-dot { fill: var(--paper); stroke: var(--brand); stroke-width: 2.5; }
.rs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; margin-top: 1.2rem; }
.rs-panel { padding: 1.2rem 1.3rem; }
.rs-cols .rs-panel { display: grid; gap: 0.7rem; justify-items: start; }
.rs-cols .rs-panel > * { margin: 0; }
.rs-letters { display: grid; gap: 0.55rem; width: 100%; margin: 0; padding: 0; list-style: none; }
.rs-letters li { display: grid; grid-template-columns: 2.6rem 1fr auto; align-items: center; gap: 0.7rem; font-size: var(--step--1); color: var(--ink-2); }
.rs-letters kbd { display: grid; place-items: center; height: 2.4rem; border-radius: 10px; background: var(--key-bg); color: var(--key-ink); box-shadow: 0 3px 0 var(--edge), inset 0 0 0 1.5px var(--line); font-family: var(--font-text); font-size: 1.15rem; font-weight: 700; }
.rs-bar { height: 0.6rem; border-radius: 99px; background: var(--error-soft); overflow: hidden; }
.rs-bar i { display: block; height: 100%; border-radius: 99px; background: var(--error); }
.rs-table { width: 100%; border-collapse: collapse; }
.rs-table th, .rs-table td { padding: 0.45rem 0.6rem; border-bottom: 1.5px solid var(--line); text-align: left; font-variant-numeric: tabular-nums; }
.rs-table thead th { color: var(--ink-2); font-size: var(--step--1); }
.rs-empty { display: grid; justify-items: start; gap: 0.8rem; }
.hall-links { margin: 0.9rem 0 0; font-size: var(--step--1); }
@media (max-width: 760px) {
  .rs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-cols { grid-template-columns: 1fr; }
}

/* p140: žebříčky ostatních her pod hrou */
.gm-board-wrap { margin: 0.6rem 0 0.4rem; }
.rb-side { display: grid; gap: 0.7rem; align-content: start; }
.rb-how { margin: 0; color: var(--ink); font-size: 0.95rem; }
/* p141: pod hrou na šířku – vlevo období a pořadí, vpravo jak se počítá, místo po hře a přezdívka */
@media (min-width: 900px) {
  .gm-board-wrap .rb { grid-template-columns: minmax(0, 3fr) minmax(15rem, 2fr); column-gap: 2rem; }
  .gm-board-wrap .rb > * { grid-column: 1; }
  .gm-board-wrap .rb > .rb-head { grid-column: 1 / -1; }
  .gm-board-wrap .rb > .rb-side { grid-column: 2; grid-row: 2 / span 4; padding-left: 2rem; border-left: 1.5px solid var(--line); }
  .gm-board-wrap .rb-side .rb-note { padding-top: 0; border-top: 0; }
  .gm-board-wrap .rb-side .rb-result { padding-top: 0; border-top: 0; }
}
.rb-result { display: grid; gap: 0.6rem; padding-top: 0.6rem; border-top: 1.5px solid var(--line); }
.rb-result[hidden], .rb-result-ranks[hidden] { display: none; }
.rb-result-ranks { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.rb-guest { justify-self: stretch; width: auto; box-shadow: 0 0 0 2px var(--sun); }

/* Statistiky ------------------------------------------------------------------------ */

.page-head { padding: 0.5rem 0 1.2rem; display: grid; gap: 1rem; }

.level-card { display: flex; align-items: center; gap: 1.4rem; padding: 1.4rem 1.6rem; margin-bottom: 1.5rem; }
.level-badge-big { width: 5rem; height: 5rem; font-size: 2.4rem; }
.level-card h2 { font-size: var(--step-3); margin-bottom: 0.4rem; }
.level-card .xp { max-width: 26rem; }
.level-help { margin-top: 0.5rem; color: var(--ink-2); font-size: var(--step--1); }

.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1.5rem; }
.summary div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.2rem;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: var(--paper);
  border: 2px solid var(--line);
  box-shadow: 0 4px 0 var(--edge);
}
.summary dt { color: var(--ink-2); font-size: var(--step--1); }
.summary dd { margin: 0; font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; }
.summary small { display: block; font-family: var(--font-ui); font-size: var(--step--1); font-weight: 400; color: var(--ink-2); }

.panel { padding: 1.5rem 0 2rem; border-top: 2px dashed var(--line); }
.panel h2 { margin-bottom: 1rem; }
.panel h2 small { font-family: var(--font-ui); font-size: var(--step-0); font-weight: 400; color: var(--ink-2); margin-left: 0.4rem; }
.panel h3 { margin: 2rem 0 0.8rem; }
.panel-intro { color: var(--ink-2); margin-bottom: 1.25rem; max-width: 60ch; }

.badge-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.badge-wall li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.2rem;
  padding: 1rem 0.8rem;
  border-radius: 18px;
  background: var(--paper);
  border: 2px solid var(--line);
  box-shadow: 0 4px 0 var(--edge);
  text-align: center;
  font-size: var(--step--1);
  color: var(--ink-2);
}
.badge-wall .badge-emoji {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 0.3rem;
  border-radius: 50%;
  background: var(--sun-soft);
  box-shadow: 0 3px 0 var(--sun-line);
  font-size: 1.8rem;
}
.badge-wall strong { color: var(--ink); font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.badge-wall small { color: var(--mint); font-weight: 700; margin-top: 0.2rem; }
.badge-wall li.is-locked { background: transparent; box-shadow: none; border-style: dashed; }
.badge-wall li.is-locked .badge-emoji { background: var(--mod); box-shadow: none; filter: grayscale(1); opacity: 0.4; }
.badge-wall li.is-locked strong { color: var(--ink-2); }

.chart svg { display: block; width: 100%; height: auto; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--ink-3); font-size: 12px; font-family: var(--font-ui); }
.chart .trend { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; opacity: 0.45; }
.chart .dot { fill: var(--paper); stroke: var(--ink-3); stroke-width: 2.5; }
.chart .dot.is-passed { fill: var(--brand); stroke: var(--brand); }
.chart-note { display: flex; align-items: center; gap: 0.4rem 0.6rem; flex-wrap: wrap; font-size: var(--step--1); color: var(--ink-2); margin-top: 0.5rem; }
.dot-sample { width: 0.75rem; height: 0.75rem; border-radius: 50%; border: 2px solid var(--ink-3); display: inline-block; }
.dot-sample.is-passed { background: var(--brand); border-color: var(--brand); }
.dot-sample:not(:first-child) { margin-left: 1rem; }

.weak { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.weak li { display: flex; align-items: center; gap: 0.5rem; color: var(--ink-2); }

.hall-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.hall-cols h3 { margin: 0 0 0.6rem; font-size: 1rem; color: var(--ink-2); }

.table-wrap { position: relative; overflow-x: auto; } /* p152: relative – skrytý popisek (sr-only) v tabulce jinak rozšíří stránku na telefonu */
.history { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.history th, .history td { text-align: left; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 2px solid var(--line); white-space: nowrap; }
.history th { color: var(--ink-2); font-weight: 600; }
.history .num { text-align: right; font-variant-numeric: tabular-nums; }
.history .ok { color: var(--mint); font-weight: 700; }

/* Profily, formuláře a zprávy ----------------------------------------------------------- */

.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.1);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.av-index { background: var(--index); }
.av-pinky { background: var(--pinky); }
.av-ring { background: var(--ring); }
.av-middle { background: var(--middle); }
.av-thumb { background: var(--thumb); }
.avatar-big { width: 6.4rem; height: 6.4rem; font-size: 3rem; box-shadow: inset 0 -6px 0 rgb(0 0 0 / 0.1); }
.avatar-plus { background: var(--brand-soft); color: var(--brand); box-shadow: none; }

.profiles { display: grid; justify-items: center; gap: 2.2rem; padding: 2rem 0 1rem; }
.profiles-head { text-align: center; display: grid; gap: 0.6rem; }
.profiles-head h1 { font-size: 3.3rem; }
.profiles-head p { color: var(--ink-2); }
.profile-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; }
.profile-grid form { display: contents; }
.profile-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 12.5rem;
  padding: 1.5rem 1rem 1.3rem;
  border-radius: 26px;
  background: var(--paper);
  border: 2px solid var(--line);
  box-shadow: 0 6px 0 var(--edge);
  color: var(--ink);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s;
}
.profile-card:hover { transform: translateY(-3px); }
.profile-card:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--edge); }
.profile-card.is-current { border-color: var(--brand); box-shadow: 0 6px 0 var(--brand-edge); }
.profile-name { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.1; }
.profile-title { font-size: var(--step--1); color: var(--ink-2); margin-top: -0.45rem; }
.profile-chips { display: flex; gap: 0.35rem; }
.pchip { display: inline-flex; align-items: center; gap: 0.3rem; height: 1.8rem; padding: 0 0.6rem; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; }
.pchip-level { background: var(--sun-soft); color: var(--sun-ink); padding-left: 0.2rem; }
.pchip-level i { display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--sun); font-style: normal; }
.pchip-flame { background: var(--flame-soft); color: var(--flame-ink); }
.pchip-flame.is-cold { background: var(--mod); color: var(--ink-2); }
.pchip-flame.is-cold span { filter: grayscale(1); opacity: 0.6; }
.profile-current {
  position: absolute;
  top: -0.8rem;
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
}
.profile-new { justify-content: center; border: 3px dashed var(--edge); background: transparent; box-shadow: none; color: var(--brand); }
.profile-new:active { box-shadow: none; }
.profile-new .profile-title { text-align: center; }
.profiles-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.6rem; }
.profiles-actions form { margin: 0; }
.profiles-edit-link { font-family: var(--font-display); font-weight: 500; color: var(--ink-2); }

.profile-form { max-width: 30rem; margin: 2rem auto 0; padding: 2rem; }
.profile-form h1 { font-size: var(--step-3); margin-bottom: 0.5rem; }
.form-intro { color: var(--ink-2); margin-bottom: 1.4rem; }
.form-back { margin-top: 1.4rem; }

.form { display: grid; gap: 1.1rem; }
.form label { display: grid; gap: 0.3rem; font-weight: 700; }
.form input[type="text"], .edit-name input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.5rem 0.8rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.form input[type="text"]:focus-visible, .edit-name input:focus-visible { outline-offset: 0; border-color: var(--brand); background: var(--paper); }
.form .btn { justify-self: start; margin-top: 0.3rem; }

.colors { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0; padding: 0; border: 0; }
.colors legend { font-weight: 700; margin-bottom: 0.45rem; padding: 0; }
.form .swatch, .swatch { position: relative; display: block; cursor: pointer; }
.swatch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.swatch .avatar { width: 2.9rem; height: 2.9rem; transition: transform 0.1s; }
.swatch input:checked + .avatar { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--brand); transform: scale(1.05); }
.swatch input:focus-visible + .avatar { outline: 3px solid var(--brand); outline-offset: 7px; }
.colors-small { gap: 0.45rem; }
.colors-small .swatch .avatar { width: 2.1rem; height: 2.1rem; }

.profiles-edit { max-width: 48rem; margin: 0 auto; display: grid; gap: 1rem; }
.edit-row { padding: 1.1rem 1.3rem; display: grid; gap: 0.7rem; }
.edit-row .alert { margin: 0; }
.edit-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1rem; }
.edit-name { flex: 1 1 12rem; }
.edit-form .btn { font-size: 1rem; min-height: 2.6rem; padding: 0.4rem 1.2rem; }
.danger summary { width: fit-content; cursor: pointer; color: var(--error-ink); font-family: var(--font-display); font-weight: 500; }
.danger form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; margin-top: 0.7rem; }
.confirm { display: flex; align-items: flex-start; gap: 0.5rem; font-size: var(--step--1); color: var(--ink-2); }
.btn-danger { background: var(--error); box-shadow: 0 5px 0 var(--error-edge); font-size: 1rem; min-height: 2.6rem; }
.btn-danger:active { box-shadow: 0 1px 0 var(--error-edge); }

.message { max-width: 27rem; margin: 2.5rem auto 0; padding: 2rem; }
.message h1 { font-size: var(--step-3); margin-bottom: 0.6rem; }
.message p { color: var(--ink-2); margin-bottom: 1.5rem; }
.alert { background: var(--error-soft); color: var(--ink); border-radius: 12px; padding: 0.75rem 1rem; margin-bottom: 1.25rem; display: grid; gap: 0.25rem; }

/* Zkušební lekce a výzva k profilu ---------------------------------------------------- */

.avatar-guest { background: transparent; border: 2px dashed var(--edge); box-shadow: none; color: var(--ink-2); }
.chip-admin { cursor: pointer; padding: 0.2rem 0.6rem; color: var(--ink-2); }
.chip-admin.is-current { color: var(--brand); box-shadow: 0 3px 0 var(--brand-edge), inset 0 0 0 2px var(--brand); }

.upnext-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; margin-top: 0.3rem; }
.upnext-actions .btn-big { font-size: 1.12rem; padding: 0.6rem 1.2rem; white-space: nowrap; }

.trial {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.6rem;
  padding: 0.9rem 1.1rem;
  border-radius: 18px;
  background: var(--brand-soft);
  border: 2px dashed var(--brand-line);
}
.trial-dots { display: flex; gap: 0.35rem; flex: none; }
.trial-dots span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--line);
  color: var(--ink-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}
.trial-dots span.is-next { box-shadow: inset 0 0 0 3px var(--brand); color: var(--brand); }
.trial-dots span.is-done { background: var(--mint); box-shadow: 0 3px 0 var(--mint-edge); color: var(--on-brand); }
.trial-copy { display: grid; gap: 0.1rem; flex-grow: 1; line-height: 1.35; }
.trial-copy strong { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.trial-copy span { font-size: var(--step--1); color: var(--ink-2); }
.trial-cta { flex: none; font-size: 1rem; min-height: 2.6rem; padding: 0.4rem 1.1rem; }

.ltile { position: relative; }
.ltile-lock {
  position: absolute;
  top: -0.55rem;
  right: -0.55rem;
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 2px 0 var(--edge), inset 0 0 0 2px var(--line);
  color: var(--ink-2);
}
.ltile.is-profile { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.ltile.is-profile .ltile-num { color: var(--brand); }

body.has-modal { overflow: hidden; }
body.has-modal .toasts { display: none; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1rem; overflow-y: auto; }
.modal-backdrop { position: fixed; inset: 0; background: rgb(var(--shade) / 0.5); animation: fadein 0.25s ease; }
.modal-card {
  position: relative;
  width: min(36rem, 100%);
  padding: 2rem 2.2rem 1.8rem;
  border-radius: 28px;
  box-shadow: 0 7px 0 var(--edge), 0 30px 80px rgb(var(--shade) / 0.35);
  animation: popin 0.35s cubic-bezier(.2,1.4,.4,1);
}
@keyframes fadein { from { opacity: 0; } }
@keyframes popin { from { transform: translateY(20px) scale(0.96); opacity: 0; } }

.prompt-page { max-width: 38rem; margin: 1.5rem auto 0; padding: 2rem 2.2rem 1.8rem; border-radius: 28px; }
.prompt { display: grid; gap: 1.05rem; }
.prompt-head { display: flex; align-items: center; gap: 0.75rem; }
.prompt-head .trial-dots span { background: var(--mint); box-shadow: 0 3px 0 var(--mint-edge); color: var(--on-brand); }
.prompt-head .trial-dots span:not(.is-done) { background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); color: var(--ink-2); }
.prompt-count { font-family: var(--font-display); font-weight: 500; color: var(--ok-ink); }
.prompt h2 { font-size: 2rem; }
.prompt-intro { color: var(--ink-2); margin-top: -0.5rem; }
.carry { display: grid; gap: 0.45rem; }
.carry strong { font-size: var(--step--1); }
.carry-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pchip-sun { background: var(--sun-soft); color: var(--sun-ink); }
.pchip-sun > span[aria-hidden] { color: var(--sun-edge); }
.prompt-form { display: grid; gap: 1rem; }
.prompt-fields { display: grid; gap: 0.9rem; padding: 1rem 1.1rem; border-radius: 18px; background: var(--bg); }
.prompt-name { display: grid; gap: 0.35rem; font-weight: 700; }
.prompt-name input {
  min-height: 2.9rem;
  padding: 0.5rem 0.8rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.prompt-name input:focus-visible { outline-offset: 0; border-color: var(--brand); }
.prompt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; }
.prompt-actions .btn-big { font-size: 1.2rem; }
.prompt-note, .prompt-closed { font-size: var(--step--1); color: var(--ink-2); }

/* Administrace ----------------------------------------------------------------------- */

.admin-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.6rem; padding: 0.4rem 0 1.4rem; }
.admin-head h1 { font-size: var(--step-3); }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 0.3rem; max-width: 100%; padding: 4px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); }
.admin-tabs a { padding: 0.4rem 1rem; border-radius: 12px; color: var(--ink-2); font-family: var(--font-display); font-weight: 600; text-decoration: none; flex: none; white-space: nowrap; }
.admin-tabs a[aria-current="page"] { background: var(--brand); color: var(--on-brand); box-shadow: 0 3px 0 var(--brand-edge); }
.admin-logout { margin: 0 0 0 auto; }

.notice { background: var(--mint-soft); color: #0b5c3b; border-radius: 12px; padding: 0.75rem 1rem; margin-bottom: 1.2rem; font-weight: 600; }

.admin-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.admin-card {
  display: grid;
  gap: 0.1rem;
  padding: 1rem 1.2rem;
  border-radius: 20px;
  background: var(--paper);
  border: 2px solid var(--line);
  box-shadow: 0 4px 0 var(--edge);
}
.admin-num { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1.1; }
.admin-label { font-family: var(--font-display); font-weight: 600; }
.admin-sub { font-size: var(--step--1); color: var(--ink-2); }

.admin-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.admin-panel { padding: 1.3rem 1.5rem; margin-bottom: 1.2rem; }
.admin-grid .admin-panel { margin-bottom: 0; }
.admin-panel h2 { font-size: var(--step-1); margin-bottom: 0.9rem; }
.admin-panel h2 small { font-family: var(--font-ui); font-size: var(--step-0); font-weight: 400; color: var(--ink-2); }

.bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); align-items: end; gap: 0.35rem; height: 10rem; }
.bar-col { display: grid; grid-template-rows: auto 1fr auto; align-items: end; justify-items: center; height: 100%; gap: 0.2rem; }
.bar-fill { width: 100%; min-height: 3px; border-radius: 6px 6px 3px 3px; background: var(--brand-line); align-self: end; }
.bar-col.is-today .bar-fill { background: var(--brand); }
.bar-n { font-family: var(--font-display); font-size: 0.75rem; color: var(--ink-2); }
.bar-day { font-size: 0.72rem; color: var(--ink-2); }

.admin-facts { display: grid; gap: 0.6rem; margin: 0 0 1rem; }
.admin-facts div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 2px dashed var(--line); padding-bottom: 0.45rem; }
.admin-facts dt { color: var(--ink-2); }
.admin-facts dd { margin: 0; font-family: var(--font-display); font-weight: 600; text-align: right; }
.admin-facts-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.admin-facts-row div { flex-direction: column; justify-content: flex-start; gap: 0.1rem; }
.admin-facts-row dd { text-align: left; }

.admin-errors { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.admin-errors li { min-width: 0; overflow-wrap: anywhere; display: grid; gap: 0.1rem; padding: 0.6rem 0.8rem; border-radius: 12px; background: var(--error-soft); font-size: var(--step--1); }
.err-time { font-family: var(--font-display); font-weight: 600; }
.err-where { color: var(--ink-2); font-family: var(--font-text); font-size: 0.78rem; overflow-wrap: anywhere; }

.admin-accounts { padding: 0; }
.account { display: grid; grid-template-columns: minmax(12rem, 16rem) 1fr; gap: 0.8rem 1.4rem; align-items: center; padding: 1rem 1.2rem; margin-bottom: 0.8rem; border-radius: 18px; }
.account-main { display: flex; align-items: center; gap: 0.75rem; }
.account-main .avatar { width: 2.6rem; height: 2.6rem; font-size: 1.2rem; }
.account-name { display: grid; line-height: 1.25; }
.account-name strong { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.account-name span { font-size: var(--step--1); color: var(--ink-2); }
.account-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.6rem; margin: 0; }
.account-stats div { display: flex; flex-direction: column-reverse; }
.account-stats dt { font-size: 0.75rem; color: var(--ink-2); }
.account-stats dd { margin: 0; font-family: var(--font-display); font-weight: 600; }
.account-actions { grid-column: 1 / -1; }
.account-actions summary { width: fit-content; cursor: pointer; color: var(--brand); font-family: var(--font-display); font-weight: 500; }
.account-actions[open] summary { margin-bottom: 0.8rem; }
.danger-row { display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; margin-top: 1rem; padding-top: 0.9rem; border-top: 2px dashed var(--line); }
.danger-row form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; }
.danger-row .btn { font-size: 0.95rem; min-height: 2.4rem; padding: 0.3rem 1rem; }

.admin-form { max-width: 34rem; }
.form input[type="password"], .form input[type="number"] {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.5rem 0.8rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.form input[type="password"]:focus-visible, .form input[type="number"]:focus-visible { outline-offset: 0; border-color: var(--brand); background: var(--paper); }
.admin-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.8rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  line-height: 1.5;
  resize: vertical;
}
.admin-form textarea:focus-visible { outline-offset: 0; border-color: var(--brand); background: var(--paper); }
.form label small, .check small { display: block; font-weight: 400; font-size: var(--step--1); color: var(--ink-2); }
.field-row { display: flex; align-items: center; gap: 0.9rem; }
.field-row input[type="number"] { width: 6.5rem; }
.field-note { font-weight: 400; color: var(--ink-2); }
.form .check { display: flex; align-items: flex-start; gap: 0.6rem; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; accent-color: var(--brand); }
code { font-family: var(--font-text); font-size: 0.9em; background: var(--mod); padding: 0.05rem 0.35rem; border-radius: 6px; }

/* Účty: přihlášení, registrace, Můj účet ------------------------------------------------ */

.auth-wrap { display: grid; justify-items: center; gap: 1.4rem; padding: 1.5rem 0 1rem; }
.auth-card { width: min(29rem, 100%); padding: 2rem 2.2rem 1.8rem; border-radius: 28px; }
.auth-card h1 { font-size: var(--step-3); margin-bottom: 0.3rem; }
.auth-card .btn-big { justify-self: stretch; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.label-row a { font-weight: 500; font-size: var(--step--1); }
.form input[type="email"] {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.5rem 0.8rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.form input[type="email"]:focus-visible { outline-offset: 0; border-color: var(--brand); background: var(--paper); }
.or { display: flex; align-items: center; gap: 0.8rem; margin: 1.1rem 0; color: var(--ink-2); font-size: var(--step--1); }
.or::before, .or::after { content: ""; flex: 1; border-top: 2px dashed var(--line); }
.btn-google { width: 100%; gap: 0.6rem; }
.auth-below { text-align: center; color: var(--ink-2); display: grid; gap: 0.5rem; }
.auth-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.8rem 1.4rem; }
.prompt-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }

.account-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.2rem; padding: 0.4rem 0 1.1rem; }
.avatar-lg { width: 4.5rem; height: 4.5rem; font-size: 2.1rem; box-shadow: inset 0 -5px 0 rgb(0 0 0 / 0.1); }
.account-who { display: grid; flex-grow: 1; line-height: 1.3; }
.account-who h1 { font-size: var(--step-3); }
.account-who span { color: var(--ink-2); }
.account-head form { margin: 0; }
.account-tabs { width: fit-content; margin-bottom: 1.4rem; }
.soon { margin-left: 0.3rem; padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--mod); font-size: 0.72rem; }
.admin-tabs a[aria-current="page"] .soon { background: rgb(255 255 255 / 0.25); }

.settings { display: grid; gap: 1.2rem; max-width: 52rem; }
.settings .admin-panel { margin-bottom: 0; }
.warn-box { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: 18px; background: var(--sun-soft); border: 2px solid var(--sun-line); }
.warn-box strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.warn-icon { flex: none; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--sun); color: var(--sun-ink); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-triple { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.devices { margin: 0 0 1rem; padding: 0; list-style: none; }
.devices li { display: flex; align-items: center; gap: 1rem; padding: 0.7rem 0; border-bottom: 2px dashed var(--line); }
.device-name { display: grid; flex-grow: 1; line-height: 1.3; }
.device-name span { font-size: var(--step--1); color: var(--ink-2); }
.device-name span.is-here { color: var(--ok-ink); }
.devices form { margin: 0; }
.subscription { display: flex; align-items: center; gap: 1.1rem; border: 2px dashed var(--edge); box-shadow: none; }
.subscription h2 { margin-bottom: 0.1rem; }
.sub-icon { flex: none; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 16px; background: var(--brand-soft); color: var(--brand); }
.data-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.2rem; }
.data-danger { margin-top: 1rem; padding-top: 1rem; border-top: 2px dashed var(--line); }
.data-danger .field-note { flex: 1 1 16rem; }
.inline-field input { min-height: 2.6rem; padding: 0.4rem 0.8rem; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); font: inherit; }

.admin-log { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.admin-log th { text-align: left; color: var(--ink-2); font-weight: 600; padding: 0.3rem 0.6rem 0.3rem 0; }
.admin-log td { padding: 0.45rem 0.6rem 0.45rem 0; border-top: 2px solid var(--line); overflow-wrap: anywhere; }
.admin-log tr.is-bad td { color: var(--error-ink); }
.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-top: 1rem; }
.link-row .btn { font-size: 0.95rem; min-height: 2.4rem; padding: 0.3rem 1rem; }
.redirects { margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: 0.3rem; font-size: var(--step--1); }
.account-name em { font-style: normal; color: #b36b00; }

/* Motivy vzhledu -------------------------------------------------------------------------
   Výchozí je Hravý (proměnné v :root). Ostatní motivy přepisují proměnné a několik
   prvků, které vypadají jinak (klávesy, pozadí stránky). Platí na <html data-theme>
   i na náhledech v nabídce motivů. */

body { background-image: var(--pattern, radial-gradient(var(--dots) 1.2px, transparent 1.3px)); background-size: var(--pattern-size, 22px 22px); }

[data-theme="papir"], [data-preview="papir"] {
  color-scheme: light;
  --bg: #f5f2ea; --dots: transparent; --paper: #fffdf8; --paper-rgb: 255 253 248;
  --ink: #26231e; --ink-2: #6a6356; --ink-3: #9a9384; --line: #e7e1d3; --edge: #ddd5c4;
  --brand: #1f4e79; --brand-edge: #163a5c; --brand-soft: #e4ebf2; --brand-line: #a9bed3; --on-brand: #ffffff;
  --sun: #e3b44a; --sun-edge: #c29330; --sun-soft: #f6ecd2; --sun-ink: #3a2c0b; --sun-line: #e6d3a4; --sun-2: #d49a2a; --sun-deep: #8f6614;
  --flame: #b0532c; --flame-soft: #f3e5dc; --flame-ink: #8a3d1d; --flame-edge: #8a3d1d; --flame-line: #e6c9b8;
  --mint: #3f7d5a; --mint-soft: #e1ece3; --mint-edge: #2f5f44; --mint-line: #cfe0d3; --mint-line-2: #b7cfbd; --ok-ink: #2f6b4b;
  --error: #b83a3a; --error-soft: #f6e1dd; --error-ink: #9c2f2f; --error-edge: #8a2727;
  --pinky: #dcb6b0; --ring: #d9c68e; --middle: #aecaa6; --index: #a9c0d8; --thumb: #c3b8d6; --mod: #f1ede3;
  --sky: #eef0ea; --sky-2: #f4f4ee; --sky-3: #e7ece6; --sky-4: #f1f3ee; --sky-5: #faf9f5; --grass: #cfd9c2; --grass-2: #b9c8a8; --grass-line: #dfe7d5; --cloud: #ffffff;
  --shade: 38 35 30;
  --font-display: "Newsreader", Georgia, serif;
  --font-ui: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-text: "IBM Plex Mono", ui-monospace, monospace;
  --pattern: none; --pattern-size: auto;
  --key-bg: #fffdf8; --key-ink: var(--ink);
  font-synthesis: weight style;
}

[data-theme="noc"], [data-preview="noc"] {
  color-scheme: dark;
  --bg: #12162a; --dots: #1e2442; --paper: #1b2140; --paper-rgb: 27 33 64;
  --ink: #e9ecff; --ink-2: #a3abd6; --ink-3: #6f78a8; --line: #2a3258; --edge: #0b0e1d;
  --brand: #8c9eff; --brand-edge: #5a6bd0; --brand-soft: #262e55; --brand-line: #3f4c8a; --on-brand: #11152a;
  --sun: #ffcf5c; --sun-edge: #c99a2a; --sun-soft: #3a3322; --sun-ink: #2b2000; --sun-line: #5a4c26; --sun-2: #ffb347; --sun-deep: #ffcf5c;
  --flame: #ff9a6b; --flame-soft: #3a2a33; --flame-ink: #ffb899; --flame-edge: #c96a45; --flame-line: #5a3a3a;
  --mint: #4fd6a0; --mint-soft: #1e3b36; --mint-edge: #2c9c70; --mint-line: #2a5448; --mint-line-2: #2c9c70; --ok-ink: #6ee0b0;
  --error: #ff6b7f; --error-soft: #3d2231; --error-ink: #ff9aa8; --error-edge: #c9485b;
  --pinky: #5a3354; --ring: #56492a; --middle: #27503f; --index: #2c4170; --thumb: #433872; --mod: #232a4d;
  --sky: #1a2346; --sky-2: #151c3a; --sky-3: #1d2750; --sky-4: #18203f; --sky-5: #141a33; --grass: #1f3b33; --grass-2: #1a3029; --grass-line: #2a5448; --cloud: #2a3258;
  --shade: 0 0 0;
  --key-bg: #232a4d; --key-ink: var(--ink);
  --pattern: radial-gradient(var(--dots) 1.2px, transparent 1.3px); --pattern-size: 22px 22px;
  --font-display: "TP Display", "Nunito", "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --font-ui: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-text: "Atkinson Hyperlegible Mono", ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  font-synthesis: weight style;
}

[data-theme="neon"], [data-preview="neon"] {
  color-scheme: dark;
  --bg: #07070d; --dots: transparent; --paper: #0f0f1a; --paper-rgb: 15 15 26;
  --ink: #f4f4ff; --ink-2: #9d9dc4; --ink-3: #6a6a96; --line: #262640; --edge: #000000;
  --brand: #00e5ff; --brand-edge: #00a3b8; --brand-soft: #062a33; --brand-line: #0b5563; --on-brand: #001216;
  --sun: #ffd400; --sun-edge: #b39500; --sun-soft: #2a2508; --sun-ink: #1a1600; --sun-line: #4d4410; --sun-2: #ff9f1c; --sun-deep: #ffd400;
  --flame: #ff4d8d; --flame-soft: #2a0f1c; --flame-ink: #ff8ab3; --flame-edge: #b3245a; --flame-line: #4d1a2e;
  --mint: #39ff88; --mint-soft: #0b2618; --mint-edge: #1fb35c; --mint-line: #145c33; --mint-line-2: #1fb35c; --ok-ink: #39ff88;
  --error: #ff3b5c; --error-soft: #2a0c14; --error-ink: #ff7a90; --error-edge: #b3203d;
  --pinky: #ff2bd6; --ring: #ffd400; --middle: #39ff88; --index: #00e5ff; --thumb: #a78bff; --mod: #16162a;
  --sky: #0a0a18; --sky-2: #0d0d1f; --sky-3: #0b0b1c; --sky-4: #0d0d20; --sky-5: #0f0f24; --grass: #0f2a1c; --grass-2: #0b1f15; --grass-line: #39ff88; --cloud: #1a1a33;
  --shade: 0 0 0;
  --key-bg: #12121e; --key-ink: #d8d8f5;
  font-synthesis: weight style;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-ui: "Space Grotesk", system-ui, sans-serif;
  --font-text: "JetBrains Mono", ui-monospace, monospace;
  --pattern: linear-gradient(#11111e 1px, transparent 1px), linear-gradient(90deg, #11111e 1px, transparent 1px);
  --pattern-size: 32px 32px;
}

[data-theme="stroj"], [data-preview="stroj"] {
  color-scheme: light;
  --bg: #ece2cc; --dots: transparent; --paper: #f8f1df; --paper-rgb: 248 241 223;
  --ink: #2a2119; --ink-2: #6a5a44; --ink-3: #a08e72; --line: #d9c9a6; --edge: #cdb98f;
  --brand: #a8322a; --brand-edge: #6e1d17; --brand-soft: #f1dcd2; --brand-line: #d9a498; --on-brand: #fff7ec;
  --sun: #d9a23a; --sun-edge: #a87a22; --sun-soft: #f1e3c0; --sun-ink: #2a1d05; --sun-line: #e0c98e; --sun-2: #c98f2a; --sun-deep: #8c6110;
  --flame: #b5532f; --flame-soft: #f0dccf; --flame-ink: #8a3a1c; --flame-edge: #8a3a1c; --flame-line: #e0c2b0;
  --mint: #5b7a3a; --mint-soft: #e3e6cf; --mint-edge: #435c28; --mint-line: #d0d8b4; --mint-line-2: #b3c28f; --ok-ink: #4a6630;
  --error: #b8392c; --error-soft: #f3dcd4; --error-ink: #9a2f24; --error-edge: #7a241c;
  --pinky: #d99a86; --ring: #d8bb6a; --middle: #9fb57c; --index: #86aab6; --thumb: #b39cbd; --mod: #e6dbc2;
  --sky: #e9dfc6; --sky-2: #f1e9d6; --sky-3: #e6dcc3; --sky-4: #efe6d1; --sky-5: #f6efde; --grass: #c9c29a; --grass-2: #b5ac80; --grass-line: #d9d1ab; --cloud: #fbf6ea;
  --shade: 60 45 25;
  --key-bg: #2f2a25; --key-ink: #f4ecd8;
  --font-display: "Special Elite", "Courier New", monospace;
  --font-ui: "Courier Prime", "Courier New", monospace;
  --font-text: "Courier Prime", "Courier New", monospace;
  --pattern: repeating-linear-gradient(0deg, transparent 0 31px, rgb(120 90 50 / 0.09) 31px 32px);
  --pattern-size: auto;
  font-synthesis: none;
}


/* Motivy podle cílových skupin: Čistý (výchozí), Kancelář, Výkon, Klid, Studio, Výprava (děti) ------- */
[data-theme="cisty"], [data-preview="cisty"] {
  color-scheme: light;
  --bg: #fafaf8; --dots: transparent; --paper: #ffffff; --paper-rgb: 255 255 255;
  --ink: #111111; --ink-2: #5f5f5c; --ink-3: #9a9a95; --line: #e8e8e3; --edge: transparent;
  --brand: #111111; --brand-edge: #000000; --brand-soft: #f1f1ed; --brand-line: #d6d6d0; --on-brand: #ffffff;
  --sun: #ffb020; --sun-edge: #d48a00; --sun-soft: #fff4dc; --sun-ink: #3a2600; --sun-line: #f3d79a; --sun-2: #ff8a00; --sun-deep: #9a5a00;
  --flame: #ff5a1f; --flame-soft: #ffece4; --flame-ink: #c2410c; --flame-edge: #c2410c; --flame-line: #ffd0bd;
  --mint: #16a34a; --mint-soft: #e5f6eb; --mint-edge: #0f7a37; --mint-line: #c6ead2; --mint-line-2: #9ddbb3; --ok-ink: #15803d;
  --error: #dc2626; --error-soft: #fde8e8; --error-ink: #b91c1c; --error-edge: #991b1b;
  --pinky: #f6d5d0; --ring: #f5e3b8; --middle: #d3ebd6; --index: #d6e2f5; --thumb: #e3dbf3; --mod: #f1f1ed;
  --sky: #f4f4f1; --sky-2: #f7f7f4; --sky-3: #efefeb; --sky-4: #f5f5f2; --sky-5: #fbfbf9; --grass: #e2e6dc; --grass-2: #d2d8ca; --grass-line: #e9ece4; --cloud: #ffffff;
  --shade: 17 17 17;
  --key-bg: #ffffff; --key-ink: var(--ink);
  --pattern: none; --pattern-size: auto;
  --font-display: "Manrope", system-ui, sans-serif;
  --font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-text: "IBM Plex Mono", ui-monospace, monospace;
  font-synthesis: none;
}
[data-theme="kancelar"], [data-preview="kancelar"] {
  color-scheme: light;
  --bg: #f8fafc; --dots: transparent; --paper: #ffffff; --paper-rgb: 255 255 255;
  --ink: #0f1b2d; --ink-2: #475569; --ink-3: #94a3b8; --line: #e2e8f0; --edge: transparent;
  --brand: #2563eb; --brand-edge: #1d4ed8; --brand-soft: #eff4ff; --brand-line: #bfd3fe; --on-brand: #ffffff;
  --sun: #f59e0b; --sun-edge: #b45309; --sun-soft: #fef3c7; --sun-ink: #3b2504; --sun-line: #fcd98a; --sun-2: #f97316; --sun-deep: #92400e;
  --flame: #ea580c; --flame-soft: #ffedd5; --flame-ink: #c2410c; --flame-edge: #9a3412; --flame-line: #fed7aa;
  --mint: #059669; --mint-soft: #d1fae5; --mint-edge: #047857; --mint-line: #a7f3d0; --mint-line-2: #6ee7b7; --ok-ink: #047857;
  --error: #dc2626; --error-soft: #fee2e2; --error-ink: #b91c1c; --error-edge: #991b1b;
  --pinky: #fbd5dc; --ring: #fde9b8; --middle: #ccf0dd; --index: #d4e3fd; --thumb: #e4dcfb; --mod: #f1f5f9;
  --sky: #eef2f7; --sky-2: #f3f6fa; --sky-3: #e8edf4; --sky-4: #f1f4f8; --sky-5: #f8fafc; --grass: #dde5df; --grass-2: #cbd5ce; --grass-line: #e5ebe6; --cloud: #ffffff;
  --shade: 15 27 45;
  --key-bg: #ffffff; --key-ink: var(--ink);
  --pattern: none; --pattern-size: auto;
  --font-display: "Inter", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-text: "JetBrains Mono", ui-monospace, monospace;
  font-synthesis: none;
}
[data-theme="vykon"], [data-preview="vykon"] {
  color-scheme: dark;
  --bg: #0b0f14; --dots: transparent; --paper: #121821; --paper-rgb: 18 24 33;
  --ink: #e8edf2; --ink-2: #9aa6b4; --ink-3: #64748b; --line: #1f2a36; --edge: #05080b;
  --brand: #a3ff12; --brand-edge: #6fb800; --brand-soft: #18240a; --brand-line: #3d5a12; --on-brand: #0b0f14;
  --sun: #ffd400; --sun-edge: #b39500; --sun-soft: #2a2508; --sun-ink: #1a1600; --sun-line: #4d4410; --sun-2: #ff9f1c; --sun-deep: #ffd400;
  --flame: #ff6b35; --flame-soft: #2a140c; --flame-ink: #ff9b73; --flame-edge: #b3431d; --flame-line: #4d2414;
  --mint: #22c55e; --mint-soft: #0d2617; --mint-edge: #15803d; --mint-line: #14532d; --mint-line-2: #22c55e; --ok-ink: #4ade80;
  --error: #ff4d6d; --error-soft: #2a0d14; --error-ink: #ff8098; --error-edge: #b3203d;
  --pinky: #ff4fd8; --ring: #ffd400; --middle: #a3ff12; --index: #38bdf8; --thumb: #a78bff; --mod: #18202b;
  --sky: #0d131a; --sky-2: #0f161e; --sky-3: #0c1218; --sky-4: #10171f; --sky-5: #121a23; --grass: #13261a; --grass-2: #0e1d14; --grass-line: #a3ff12; --cloud: #1a2330;
  --shade: 0 0 0;
  --key-bg: #121821; --key-ink: #d8e0e8;
  --pattern: linear-gradient(#111821 1px, transparent 1px), linear-gradient(90deg, #111821 1px, transparent 1px); --pattern-size: 32px 32px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-ui: "Space Grotesk", system-ui, sans-serif;
  --font-text: "JetBrains Mono", ui-monospace, monospace;
  font-synthesis: weight style;
}
[data-theme="klid"], [data-preview="klid"] {
  color-scheme: light;
  --bg: #fbf6ef; --dots: transparent; --paper: #fffdf9; --paper-rgb: 255 253 249;
  --ink: #3b302a; --ink-2: #7a6b61; --ink-3: #a89a8f; --line: #efe5d8; --edge: transparent;
  --brand: #c8775a; --brand-edge: #a95e43; --brand-soft: #f7e9e0; --brand-line: #e8c7b6; --on-brand: #ffffff;
  --sun: #e9b872; --sun-edge: #c8954a; --sun-soft: #f8ecd8; --sun-ink: #3d2a10; --sun-line: #ecd2a6; --sun-2: #dd9c55; --sun-deep: #8a5a1c;
  --flame: #d9824f; --flame-soft: #f8e5d8; --flame-ink: #a85a2e; --flame-edge: #a85a2e; --flame-line: #edcbb4;
  --mint: #7f9c7f; --mint-soft: #e9f0e7; --mint-edge: #5f7a5f; --mint-line: #d3e0d0; --mint-line-2: #b4c9b0; --ok-ink: #56705a;
  --error: #c0504d; --error-soft: #f7e3e1; --error-ink: #9e3d3a; --error-edge: #7f2f2c;
  --pinky: #f2d4cc; --ring: #f2e2bf; --middle: #d9e5d6; --index: #d5e0e6; --thumb: #e3d9e6; --mod: #f4ece2;
  --sky: #f6efe5; --sky-2: #f9f3ea; --sky-3: #f3eadd; --sky-4: #f7f0e6; --sky-5: #fcf8f2; --grass: #dbe3d3; --grass-2: #c9d5c0; --grass-line: #e5ebdf; --cloud: #ffffff;
  --shade: 90 60 40;
  --key-bg: #fffdf9; --key-ink: var(--ink);
  --pattern: none; --pattern-size: auto;
  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-text: "DM Mono", ui-monospace, monospace;
  font-synthesis: none;
}
[data-theme="studio"], [data-preview="studio"] {
  color-scheme: light;
  --bg: #f4efff; --dots: transparent; --paper: #ffffff; --paper-rgb: 255 255 255;
  --ink: #2b2142; --ink-2: #6d5f8a; --ink-3: #a89bc0; --line: #ece4fb; --edge: transparent;
  --brand: #8b5cf6; --brand-edge: #6d3fe0; --brand-soft: #f1eaff; --brand-line: #d6c5fb; --on-brand: #ffffff;
  --sun: #ffb36b; --sun-edge: #e8893a; --sun-soft: #fff1e3; --sun-ink: #3d2108; --sun-line: #ffd5ad; --sun-2: #ff8f5a; --sun-deep: #b8551d;
  --flame: #ff7a59; --flame-soft: #ffeae3; --flame-ink: #d9532f; --flame-edge: #c2411f; --flame-line: #ffcbbb;
  --mint: #34c38f; --mint-soft: #e2f7ee; --mint-edge: #22966c; --mint-line: #bfeedb; --mint-line-2: #8fe0c0; --ok-ink: #1f8a62;
  --error: #ef4444; --error-soft: #fee7e7; --error-ink: #c42a2a; --error-edge: #a11d1d;
  --pinky: #ffd6e0; --ring: #ffe7c7; --middle: #d5f2e3; --index: #dbe4ff; --thumb: #e9ddff; --mod: #f4effd;
  --sky: #f1eaff; --sky-2: #f6f1ff; --sky-3: #ede4ff; --sky-4: #f3edff; --sky-5: #faf7ff; --grass: #ffe3d8; --grass-2: #ffd3c2; --grass-line: #ffe9e0; --cloud: #ffffff;
  --shade: 76 50 140;
  --key-bg: #ffffff; --key-ink: var(--ink);
  --pattern: none; --pattern-size: auto;
  --font-display: "Poppins", system-ui, sans-serif;
  --font-ui: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-text: "Space Mono", ui-monospace, monospace;
  font-synthesis: none;
}
[data-theme="vyprava"], [data-preview="vyprava"] {
  color-scheme: light;
  --bg: #dff3ff; --dots: transparent; --paper: #ffffff; --paper-rgb: 255 255 255;
  --ink: #12305a; --ink-2: #2f548c; --ink-3: #7f9cc4; --line: #d3e6f7; --edge: #b6d1ea;
  --brand: #3f63ff; --brand-edge: #2a45d1; --brand-soft: #e3eaff; --brand-line: #b3c4ff; --on-brand: #ffffff;
  --sun: #ffd84d; --sun-edge: #e0b623; --sun-soft: #fff6cf; --sun-ink: #3d2a00; --sun-line: #ffe792; --sun-2: #ffb020; --sun-deep: #9a6a00;
  --flame: #ff5d73; --flame-soft: #ffe6ea; --flame-ink: #d93a52; --flame-edge: #d93a52; --flame-line: #ffc4ce;
  --mint: #3fc27a; --mint-soft: #e0f7e9; --mint-edge: #2a9a5c; --mint-line: #bdebcf; --mint-line-2: #8edcac; --ok-ink: #22844d;
  --error: #e5484d; --error-soft: #fde4e5; --error-ink: #c2363b; --error-edge: #a12a2e;
  --pinky: #ffc7d1; --ring: #ffe58a; --middle: #b8f0cd; --index: #bfe0ff; --thumb: #e0d4ff; --mod: #eef6ff;
  --sky: #c9ecff; --sky-2: #d9f2ff; --sky-3: #bfe6ff; --sky-4: #d2efff; --sky-5: #e8f8ff; --grass: #5fd38d; --grass-2: #43bf77; --grass-line: #8ee3ae; --cloud: #ffffff;
  --shade: 18 48 90;
  --key-bg: #ffffff; --key-ink: var(--ink);
  --pattern: none; --pattern-size: auto;
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-ui: "Baloo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-text: "Atkinson Hyperlegible Mono", ui-monospace, monospace;
  font-synthesis: weight style;
}

/* Ploché motivy: bez „3D“ hrany u tlačítek */
:is([data-theme="cisty"], [data-theme="kancelar"], [data-theme="klid"], [data-theme="studio"]) :is(.btn, .chip, .lang-card, .tile) { box-shadow: none; }
:is([data-theme="cisty"], [data-theme="kancelar"], [data-theme="klid"], [data-theme="studio"]) :is(.card, .ed-row, .sc-card, .sc-stat, .legal-card, .legal-table, .side-progress) { box-shadow: 0 1px 2px rgb(var(--shade) / 0.06), 0 0 0 1px var(--line); }
:is([data-theme="cisty"], [data-theme="kancelar"]) :is(.btn, .chip, .card, .sheet, .lang-card) { border-radius: 10px; }
[data-theme="klid"] .btn, [data-theme="studio"] .btn { border-radius: 999px; }
[data-theme="cisty"] .wm-accent { color: var(--flame); }
[data-theme="cisty"] .logo-dot { fill: var(--flame); }
/* Výkon: klávesy se zářícím obrysem jako Neon */
[data-theme="vykon"] .key:not(.mod):not(.next), [data-preview="vykon"] .tp-key {
  background: var(--key-bg);
  color: var(--finger, var(--ink-2));
  box-shadow: inset 0 0 0 1.5px var(--finger, var(--line)), 0 0 12px color-mix(in srgb, var(--finger, transparent) 30%, transparent);
}
[data-theme="vykon"] .key.next { box-shadow: 0 0 18px color-mix(in srgb, var(--brand) 70%, transparent); }
[data-theme="vykon"] :is(.stage-no, .avatar, .legend-inline i, .ltile.is-next, .trial-dots span.is-done, .lv-cap) { color: #0b0f14; }
[data-theme="vykon"] .btn { box-shadow: 0 0 22px color-mix(in srgb, var(--brand) 40%, transparent); }
/* Studio: jemný přechod v pozadí */
[data-theme="studio"] body { background: linear-gradient(135deg, #efe7ff 0%, #ffe9e1 60%, #fff6ea 100%) fixed; }
/* Výprava (děti): nebe s kopci, maskot Ťuky v logu */
[data-theme="vyprava"] body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none'%3E%3Cpath d='M0 90 C 240 40 480 100 720 70 S 1200 40 1440 80 L1440 160 L0 160 Z' fill='%235fd38d'/%3E%3Cpath d='M0 125 C 300 95 600 145 900 115 S 1260 100 1440 120 L1440 160 L0 160 Z' fill='%2343bf77'/%3E%3C/svg%3E") bottom / 100% 120px no-repeat fixed,
    linear-gradient(180deg, #a9dcff 0%, #d4efff 45%, #eef9ff 100%) fixed;
}
.logo-face { display: none; }
[data-theme="vyprava"] .logo-face { display: inline; }
[data-theme="vyprava"] :is(.logo-peak, .logo-dot) { display: none; }
.logo-face circle.eye { fill: var(--paper); }
.logo-face path { fill: none; stroke: var(--paper); stroke-width: 3.6; stroke-linecap: round; }

/* Klávesy podle motivu: Papír = proužek, Neon = zářící obrys, Psací stroj = kulaté s lemem */
[data-theme="papir"] .key:not(.mod):not(.next), [data-preview="papir"] .tp-key {
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 -5px 0 var(--finger, var(--line));
}
[data-theme="neon"] .key:not(.mod):not(.next), [data-preview="neon"] .tp-key {
  background: var(--key-bg);
  color: var(--finger, var(--ink-2));
  box-shadow: inset 0 0 0 1.5px var(--finger, var(--line)), 0 0 12px color-mix(in srgb, var(--finger, transparent) 35%, transparent);
}
[data-theme="neon"] .key.next { box-shadow: 0 0 18px color-mix(in srgb, var(--brand) 70%, transparent); }
[data-theme="stroj"] .key, [data-preview="stroj"] .tp-key {
  border-radius: 999px;
  background: var(--key-bg);
  color: var(--key-ink);
  box-shadow: 0 3px 0 #15120f, inset 0 0 0 3px var(--finger, #b8ab96);
}
[data-theme="stroj"] .key .k-shift { color: #cfc3ad; }
[data-theme="stroj"] .key.mod { background: #4a433b; color: #e6dcc6; }
[data-theme="stroj"] .key.next { background: var(--brand); color: var(--on-brand); box-shadow: 0 3px 0 #15120f, inset 0 0 0 3px #e9c9a0; }

/* Neon: na zářivých barvách prstů tmavé písmo */
[data-theme="neon"] :is(.stage-no, .avatar, .legend-inline i, .ltile.is-next, .trial-dots span.is-done, .lv-cap) { color: #07070d; }
[data-theme="neon"] .btn { box-shadow: 0 0 22px color-mix(in srgb, var(--brand) 45%, transparent); }

/* Nabídka motivů v liště -------------------------------------------------------------- */
.theme-menu { position: relative; }
.theme-menu > summary { list-style: none; cursor: pointer; }
.theme-menu > summary::-webkit-details-marker { display: none; }
.chip-theme { padding: 0.2rem 0.6rem; min-height: 2.6rem; }
.chip-theme svg { color: var(--brand); }
.theme-list {
  max-height: min(72vh, 36rem);
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  z-index: 40;
  width: 18.5rem;
  display: grid;
  gap: 0.25rem;
  padding: 0.5rem;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 0 0 2px var(--line), 0 18px 40px rgb(var(--shade) / 0.25);
}
.theme-list form { margin: 0; }
.theme-opt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.theme-opt:hover { background: var(--brand-soft); }
.theme-opt[aria-pressed="true"] { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.theme-opt strong { display: block; font-family: var(--font-ui); font-weight: 700; }
.theme-opt small { display: block; font-size: 0.8rem; color: var(--ink-2); line-height: 1.3; }
.theme-swatch {
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 3.2rem;
  height: 2.3rem;
  padding: 0.35rem;
  box-sizing: border-box;
  border-radius: 9px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.theme-swatch i { display: block; flex: 1; border-radius: 3px; }
.theme-swatch i:nth-child(1) { height: 100%; background: var(--brand); }
.theme-swatch i:nth-child(2) { height: 70%; background: var(--pinky); }
.theme-swatch i:nth-child(3) { height: 85%; background: var(--middle); }
.theme-swatch i:nth-child(4) { height: 55%; background: var(--index); }

/* Výběr vzhledu v nastavení účtu ------------------------------------------------------- */
.theme-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.9rem; }
.theme-cards form { margin: 0; display: flex; }
.theme-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
  padding: 0.5rem 0.5rem 0.75rem;
  border: 0;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 0 0 2px var(--line);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.theme-card[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--brand); }
.theme-card > strong { padding: 0 0.3rem; font-family: var(--font-display); font-weight: 600; }
.theme-card > small { padding: 0 0.3rem; font-size: 0.8rem; color: var(--ink-2); line-height: 1.3; }
.tp { display: block; padding: 0.55rem; border-radius: 11px; background-color: var(--bg); background-image: var(--pattern, radial-gradient(var(--dots) 1.2px, transparent 1.3px)); background-size: 14px 14px; }
.tp-card { display: grid; gap: 0.45rem; overflow: hidden; padding: 0.55rem 0.6rem; border-radius: 9px; background: var(--paper); box-shadow: 0 3px 0 var(--edge), inset 0 0 0 1px var(--line); color: var(--ink); }
.tp-title { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1; }
.tp-title i { display: block; flex: none; width: 1.4rem; height: 0.75rem; border-radius: 6px; background: var(--brand); }
.tp-keys { display: flex; gap: 3px; }
.tp-key { display: grid; place-items: center; width: 0.95rem; height: 0.95rem; border-radius: 4px; background: var(--finger); color: var(--ink); font-family: var(--font-text); font-size: 0.62rem; font-weight: 600; box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.12); }
@media (max-width: 960px) { .theme-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* Jazyky: nabídka v liště, návrh jazyka, patička, karty v nastavení ------------------------ */
.chip-lang { gap: 0.35rem; padding: 0.2rem 0.62rem 0.2rem 0.55rem; min-height: 2.6rem; font-family: var(--font-display); font-weight: 600; }
.chip-lang svg { color: var(--brand); }
.lang-code {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--mod);
  color: var(--ink-2);
  font-family: var(--font-text);
  font-size: 0.8rem;
  font-weight: 600;
}
.lang-suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  width: min(var(--measure), calc(100% - 2rem));
  margin: 0.2rem auto 0;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  background: var(--sun-soft);
  box-shadow: inset 0 0 0 2px var(--sun-line);
  color: var(--ink);
}
.lang-suggest > svg { flex: none; color: var(--sun-deep); }
.lang-suggest > span { flex: 1 1 18rem; }
.lang-suggest form { margin: 0; }
.btn-small { min-height: 2.3rem; padding: 0 1rem; font-size: 0.95rem; }
button.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.4rem;
  width: min(var(--measure), calc(100% - 2rem));
  margin: 2.5rem auto 1.5rem;
  padding-top: 1rem;
  border-top: 2px solid var(--line);
  color: var(--ink-2);
  font-size: 0.92rem;
}
.footer-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; margin-left: auto; }
.footer-langs form { margin: 0; }
.footer-langs strong { color: var(--ink); }
.lang-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.8rem; margin-bottom: 0.6rem; }
.lang-cards form { margin: 0; display: flex; }
.lang-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 0;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--line);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.lang-card:hover { box-shadow: inset 0 0 0 2px var(--brand-line); }
.lang-card[aria-pressed="true"] { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.lang-card strong { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.lang-card small { color: var(--ink-2); font-size: 0.85rem; }


/* Úvodní stránka ---------------------------------------------------------------------------- */
body:has(.landing) { overflow-x: clip; }
.landing { display: flex; flex-direction: column; margin: -1.25rem calc(50% - 50cqw) 0; }
.landing > section { padding-inline: max(1.25rem, calc(50cqw - var(--measure) / 2 + 1.25rem)); }
.landing h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1; }
.landing h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
.l-kicker { margin: 0 0 0.4rem; font-family: var(--font-display); font-weight: 600; color: var(--brand); }
.l-sub { margin: 0.5rem 0 0; max-width: 42em; color: var(--ink-2); }
.l-band { display: flex; flex-direction: column; gap: 1.6rem; padding-block: 4.2rem; }
.l-band > h2 { max-width: 20em; margin-top: -1.2rem; }
.l-band-paper { background: var(--paper); }
.l-band-sky { background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg) 100%); }
.l-grid { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.l-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.l-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.l-link { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--brand); }

.l-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 32rem); gap: 3.5rem; align-items: center; padding-block: 3rem 4.5rem; }
.l-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.l-hero h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.03; letter-spacing: -0.02em; }
.l-lead { margin: 0; max-width: 30em; color: var(--ink-2); font-size: 1.3rem; }
.l-pill { padding: 0.35rem 0.9rem; border-radius: 999px; font-family: var(--font-display); font-weight: 600; }
.l-pill.is-mint { background: var(--mint-soft); color: var(--ok-ink); }
.l-pill.is-brand { background: var(--brand-soft); color: var(--brand); }
.l-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; margin-top: 0.4rem; }
.l-note { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.l-pill.is-mint { padding: 0.45rem 1.05rem; font-size: 1.2rem; box-shadow: inset 0 0 0 2px var(--mint-line); }
.l-pill.is-mint span { margin-right: 0.3rem; }
.l-speed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.3rem; margin-top: 1.1rem; padding: 0.8rem 1rem 0.7rem; border-radius: 16px; background: var(--bg); }
.l-speed label { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-2); font-size: 0.95rem; }
.l-speed label strong { color: var(--brand); font-family: var(--font-display); font-weight: 700; }
.l-speed input[type="range"] { width: 100%; height: 1.6rem; margin: 0; background: transparent; accent-color: var(--brand); -webkit-appearance: none; appearance: none; }
.l-speed input[type="range"]::-webkit-slider-runnable-track { height: 0.5rem; border-radius: 99px; background: linear-gradient(90deg, var(--brand) var(--fill, 30%), var(--line) var(--fill, 30%)); }
.l-speed input[type="range"]::-moz-range-track { height: 0.5rem; border-radius: 99px; background: var(--line); }
.l-speed input[type="range"]::-moz-range-progress { height: 0.5rem; border-radius: 99px; background: var(--brand); }
.l-speed input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 1.4rem; height: 1.4rem; margin-top: -0.45rem; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 3px var(--brand), 0 3px 0 var(--brand-edge); }
.l-speed input[type="range"]::-moz-range-thumb { width: 1.2rem; height: 1.2rem; border: 3px solid var(--brand); border-radius: 50%; background: var(--paper); }
.l-speed input[type="range"]:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; border-radius: 8px; }
.l-speed-ends { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 0.8rem; }
.l-progress { display: flex; flex-direction: column; gap: 0.4rem; width: min(100%, 30rem); }
.l-progress-row { display: flex; justify-content: space-between; color: var(--ink-2); font-size: 0.95rem; }
.l-progress-bar { display: block; height: 0.75rem; border-radius: 99px; background: var(--line); overflow: hidden; }
.l-progress-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--mint), var(--mint-edge)); }
.l-streak { display: flex; gap: 0.7rem; align-items: center; margin: 0; padding: 0.7rem 1rem; border-radius: 14px; background: var(--flame-soft); color: var(--ink); }

.l-demo { position: relative; padding: 1.6rem; border-radius: 28px; background: var(--paper); box-shadow: 0 8px 0 var(--edge), inset 0 0 0 2px var(--line); }
.l-demo-sheet { margin: 0 0 1.1rem; padding: 1rem 1.2rem; min-height: 2.7em; border-radius: 16px; background: var(--bg); font-family: var(--font-text); font-size: 1.4rem; line-height: 1.35; white-space: pre-wrap; }
.l-typed { color: var(--ok-ink); }
.l-cur { padding: 0 0.12em; border-radius: 6px; background: var(--brand-soft); box-shadow: 0 3px 0 var(--brand); }
.l-rest { color: var(--ink-3); }
.l-demo-kb.kb { font-size: 0.72rem; }
.l-chip { position: absolute; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 0.95rem; border-radius: 16px; background: var(--paper); box-shadow: 0 5px 0 var(--edge), inset 0 0 0 2px var(--line); font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.l-chip-speed { right: -1.4rem; top: -1.2rem; color: var(--brand); font-size: 1.15rem; }
.l-chip-stars { left: 1.8rem; bottom: -1.3rem; }
.l-stars { color: var(--sun); letter-spacing: 2px; }
.l-chip-streak { right: 1.8rem; bottom: -1.3rem; background: var(--flame-soft); box-shadow: 0 5px 0 var(--flame-line); color: var(--flame-ink); }

.l-benefit { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.6rem; border-radius: 22px; }
.l-benefit p { margin: 0; color: var(--ink-2); }
.l-icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 16px; background: var(--paper); font-size: 1.75rem; box-shadow: 0 4px 0 rgb(var(--shade) / 0.08); }

.l-step { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.5rem; border-radius: 22px; background: var(--paper); box-shadow: 0 5px 0 var(--edge), inset 0 0 0 2px var(--line); }
.l-step p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.l-step-no { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 14px; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--ink); }
.l-step-tag { margin-top: auto; padding-top: 0.5rem; font-family: var(--font-text); font-weight: 600; color: var(--brand); white-space: pre; }

.l-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.l-head-row h2 { margin: 0; }
.l-mountain { position: relative; }
.l-mountain svg { display: block; width: 100%; height: auto; }
.l-camp { position: absolute; display: flex; align-items: center; gap: 0.6rem; transform: translate(-1.35rem, -50%); color: var(--ink); text-decoration: none; }
.l-camp.is-l { flex-direction: row-reverse; transform: translate(calc(-100% + 1.35rem), -50%); }
.l-camp-no { flex: none; display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; box-shadow: 0 0 0 4px var(--paper), 0 4px 10px rgb(var(--shade) / 0.15); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.l-camp-label { display: flex; flex-direction: column; padding: 0.35rem 0.75rem; border-radius: 12px; background: var(--paper); box-shadow: 0 3px 0 var(--edge); line-height: 1.25; white-space: nowrap; }
.l-camp-label strong { font-family: var(--font-display); font-weight: 600; }
.l-camp-label small { color: var(--ink-2); font-size: 0.8rem; }
.l-camp:hover .l-camp-label { box-shadow: 0 3px 0 var(--brand); }
.l-summit { position: absolute; left: 60%; top: 0.5%; padding: 0.35rem 0.9rem; border-radius: 12px; background: var(--ink); color: var(--paper); font-family: var(--font-display); font-weight: 600; }

.l-card { display: flex; flex-direction: column; gap: 0.65rem; padding: 1.4rem; border-radius: 22px; background: var(--paper); box-shadow: 0 5px 0 var(--edge), inset 0 0 0 2px var(--line); }
.l-card p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.l-card-art { font-size: 1.75rem; letter-spacing: 0.25rem; min-height: 2.5rem; display: flex; align-items: center; gap: 0.4rem; }
.l-stars-big { color: var(--sun); }
.l-stars-big span { color: var(--line); }
.l-level-art i { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--sun); color: var(--sun-ink); font-family: var(--font-display); font-weight: 700; font-style: normal; font-size: 1.1rem; letter-spacing: 0; }
.l-level-art b { flex: 1; height: 0.55rem; border-radius: 99px; background: var(--line); overflow: hidden; }
.l-level-art b span { display: block; width: 60%; height: 100%; background: var(--sun); }
.l-dots-art i { width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--flame); }
.l-dots-art i.is-today { background: transparent; box-shadow: inset 0 0 0 3px var(--flame); }
.l-dots-art i.is-off { background: var(--line); }

.l-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.l-split > div > h2 { margin-bottom: 1.2rem; }
.l-needs { display: flex; flex-direction: column; gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.l-needs li { display: flex; gap: 0.9rem; align-items: flex-start; color: var(--ink-2); }
.l-needs strong { color: var(--ink); }
.l-check { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--mint-soft); color: var(--ok-ink); font-weight: 700; }
.l-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.l-langs form { margin: 0; display: flex; }
.l-lang { display: flex; flex-direction: column; gap: 0.2rem; width: 100%; padding: 1.1rem; border: 0; border-radius: 18px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.l-lang:hover { box-shadow: inset 0 0 0 2px var(--brand-line); }
.l-lang[aria-pressed="true"] { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.l-lang strong { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.l-lang span { color: var(--ink-2); font-size: 0.95rem; }
.l-lang code { margin-top: 0.3rem; font-family: var(--font-text); font-weight: 600; font-size: 0.9rem; }
.l-faq { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); }
.l-faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.l-faq-list details { padding: 1.1rem 1.4rem; border-radius: 18px; background: var(--paper); box-shadow: 0 4px 0 var(--edge), inset 0 0 0 2px var(--line); }
.l-faq-list summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.l-faq-list p { margin: 0.6rem 0 0; color: var(--ink-2); }
.l-final { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; margin: 0 max(1.25rem, calc(50cqw - var(--measure) / 2 + 1.25rem)) 3rem; padding: 3.5rem 2.5rem !important; border-radius: 32px; background: var(--ink); color: var(--paper); text-align: center; }
.l-final p { margin: 0; max-width: 36em; opacity: 0.85; font-size: 1.15rem; }
.l-final h2 { color: var(--paper); }

@media (max-width: 960px) {
  .l-hero, .l-split, .l-faq { grid-template-columns: minmax(0, 1fr); }
  .l-grid-3, .l-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .l-camp-label, .l-summit { display: none; }
  .l-grid-3, .l-grid-4, .l-langs { grid-template-columns: minmax(0, 1fr); }
  .l-chip-speed { right: 0.5rem; }
  .l-head-row { flex-direction: column; align-items: flex-start; }
}


.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; }
.panel-head h2 { margin: 0; }

/* Test rychlosti psaní ----------------------------------------------------------------------- */
.tt { display: flex; flex-direction: column; gap: 1.4rem; }
.tt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.tt-head h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.05; }
.tt-best { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.9rem; border-radius: 14px; background: var(--sun-soft); box-shadow: inset 0 0 0 2px var(--sun-line); font-family: var(--font-display); font-weight: 600; }
.tt-setup { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; }
.tt-opts { display: flex; align-items: center; gap: 0.4rem; }
.tt-opts-label { margin-right: 0.25rem; color: var(--ink-2); font-size: 0.95rem; }
.tt-pill { padding: 0.45rem 0.9rem; border: 0; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); color: var(--ink-2); font: inherit; font-family: var(--font-display); font-weight: 600; cursor: pointer; }
.tt-pill[aria-checked="true"] { background: var(--brand); box-shadow: 0 3px 0 var(--brand-edge); color: var(--on-brand); }
.tt-pill:disabled { opacity: 0.5; cursor: default; }
.tt-switch { display: inline-flex; align-items: center; gap: 0.6rem; margin-left: auto; color: var(--ink-2); font-size: 0.95rem; cursor: pointer; }
.tt-switch input { position: absolute; opacity: 0; pointer-events: none; }
.tt-switch span { position: relative; width: 2.5rem; height: 1.4rem; border-radius: 99px; background: var(--line); transition: background 0.15s; }
.tt-switch span::after { content: ""; position: absolute; left: 0.2rem; top: 0.2rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--paper); transition: transform 0.15s; }
.tt-switch input:checked + span { background: var(--brand); }
.tt-switch input:checked + span::after { transform: translateX(1.1rem); }
.tt-switch input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.tt-card { position: relative; display: flex; flex-direction: column; gap: 1.1rem; padding: 1.6rem 2rem 1.9rem; border-radius: 26px; background: var(--paper); box-shadow: 0 6px 0 var(--edge), inset 0 0 0 2px var(--line); }
.tt-bar { display: flex; align-items: center; gap: 1.75rem; font-family: var(--font-display); }
.tt-stat { display: flex; align-items: baseline; gap: 0.35rem; }
.tt-stat strong { font-weight: 700; font-size: 1.75rem; line-height: 1; }
.tt-stat small { color: var(--ink-2); font-weight: 600; font-size: 0.9rem; }
.tt-timer strong { font-size: 2.5rem; color: var(--ink-3); }
.tt-card.is-running .tt-timer strong { color: var(--ink); }
.tt-progress { flex: 1; height: 0.5rem; border-radius: 99px; background: var(--line); overflow: hidden; }
.tt-progress i { display: block; width: 0; height: 100%; border-radius: 99px; background: var(--brand); transition: width 0.2s linear; }
.tt-text-wrap { position: relative; cursor: text; }
.tt-text { height: calc(3 * 1.75em); overflow: hidden; font-family: var(--font-text); font-size: clamp(1.3rem, 2.4vw, 1.85rem); line-height: 1.75; letter-spacing: 0.01em; color: var(--ink-3); }
.tt-lines { transition: transform 0.15s ease-out; }
.tt-word { white-space: nowrap; }
.tt-text .ok { color: var(--ok-ink); }
.tt-text .bad { color: var(--error-ink); text-decoration: underline wavy var(--error); text-underline-offset: 0.3em; }
.tt-text .bad.is-space { background: var(--error-soft); border-radius: 4px; }
.tt-text .cur { color: var(--ink); background: var(--brand-soft); border-radius: 5px; box-shadow: 0 3px 0 var(--brand); }
.tt-by { margin: 0.2rem 0 0; color: var(--ink-2); font-size: 0.95rem; font-style: italic; }
.tt-start { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.5rem; margin: -0.3rem 0 -0.4rem; color: var(--ink-2); }
.tt-start strong { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.tt-start[hidden] { display: none; }
.tt-start.is-focus { color: var(--brand); font-family: var(--font-display); font-weight: 600; cursor: pointer; }
/* blikání kurzoru před startem: dva stavy v pravidelném rytmu (dřív steps(2, start) dělalo tři stavy
   v nepravidelném sledu a vypadalo to, že se kurzor zasekává) */
.tt-card:not(.is-running) .tt-text .cur { animation: tt-blink 1.1s step-end infinite; }
@keyframes tt-blink { 0%, 100% { background: var(--brand-soft); } 50% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .tt-card:not(.is-running) .tt-text .cur { animation: none; } }
.tt-overlay { position: absolute; inset: -0.4rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; border-radius: 18px; background: rgb(var(--paper-rgb) / 0.8); backdrop-filter: blur(3px); text-align: center; }
.tt-overlay[hidden] { display: none; }
.tt-overlay-icon { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 20px; background: var(--brand-soft); font-size: 1.9rem; }
.tt-overlay strong { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; }
.tt-overlay span { color: var(--ink-2); }
.tt-kb { margin-top: 0.4rem; }
.tt-note { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.tt-note span:last-child { margin-left: auto; }

.tt-result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 23rem); gap: 1.5rem; align-items: start; }
.tt-res-main { position: relative; display: flex; flex-direction: column; gap: 1.4rem; padding: 1.9rem 2.1rem; border-radius: 26px; background: var(--paper); box-shadow: 0 6px 0 var(--edge), inset 0 0 0 2px var(--line); }
.tt-record { position: absolute; right: 1.6rem; top: -1rem; padding: 0.45rem 1rem; border-radius: 999px; background: var(--sun); box-shadow: 0 4px 0 var(--sun-edge); color: var(--sun-ink); font-family: var(--font-display); font-weight: 700; }
.tt-record[hidden] { display: none; }
.tt-res-top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1.5rem 2.5rem; }
.tt-res-speed { display: flex; flex-direction: column; line-height: 1; }
.tt-res-speed strong { font-family: var(--font-display); font-weight: 700; font-size: 6.5rem; letter-spacing: -0.03em; color: var(--brand); }
.tt-res-speed span { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--ink-2); }
.tt-res-figures { display: grid; grid-template-columns: repeat(3, auto); gap: 0.3rem 2.2rem; margin: 0 0 0.4rem; }
.tt-res-figures dt { color: var(--ink-2); font-size: 0.95rem; }
.tt-res-figures dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.85rem; }
.tt-wrong { color: var(--error-ink); font-size: 1rem; }
.tt-sub { font-family: var(--font-display); font-weight: 600; }
.tt-chart { display: flex; flex-direction: column; gap: 0.5rem; }
.tt-chart svg { display: block; width: 100%; height: 7.5rem; }
.tt-grid { stroke: var(--line); stroke-width: 2; }
.tt-line { fill: none; stroke: var(--brand); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tt-dot { fill: var(--error); stroke: var(--paper); stroke-width: 2; }
.tt-legend { display: flex; gap: 1.1rem; color: var(--ink-2); font-size: 0.9rem; }
.tt-legend i { display: inline-block; margin-right: 0.4rem; vertical-align: middle; }
.tt-l-line { width: 0.9rem; height: 0.25rem; border-radius: 2px; background: var(--brand); }
.tt-l-dot { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--error); }
.tt-tiers { display: flex; flex-direction: column; gap: 0.6rem; }
.tt-tier-name { margin-left: 0.4rem; padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--mint-soft); color: var(--ok-ink); }
.tt-tier-bar { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.25rem; }
.tt-tier-bar > span { display: flex; flex-direction: column; gap: 0.35rem; }
.tt-tier-bar i { display: block; height: 0.75rem; border-radius: 6px; }
.tt-tier-bar small { color: var(--ink-2); font-size: 0.85rem; line-height: 1.3; }
.tt-tier-bar small strong { color: var(--ink); }
.tt-marker { position: absolute; top: -0.45rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--paper); transition: left 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.tt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; }
.tt-hint { margin-left: auto; color: var(--ink-2); font-size: 0.9rem; }
.tt-error { margin: 0; color: var(--error-ink); }
.tt-side { display: flex; flex-direction: column; gap: 1.25rem; }
.tt-next { display: flex; flex-direction: column; gap: 0.7rem; padding: 1.5rem; border-radius: 22px; background: var(--ink); color: var(--paper); }
.tt-next-kicker { font-family: var(--font-display); font-weight: 600; opacity: 0.75; }
.tt-next strong { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; line-height: 1.15; }
.tt-next > span { opacity: 0.85; }
.tt-next .btn { align-self: flex-start; }
.tt-share { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.25rem; border-radius: 22px; background: var(--paper); box-shadow: 0 5px 0 var(--edge), inset 0 0 0 2px var(--line); }
.tt-share[hidden] { display: none; }
.tt-share-card { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.1rem 1.25rem; border-radius: 16px; background: linear-gradient(135deg, var(--brand) 0%, var(--thumb) 160%); color: var(--on-brand); }
.tt-share-card small { font-family: var(--font-display); font-weight: 600; opacity: 0.85; }
.tt-share-card strong { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; }
.tt-link { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.7rem; border-radius: 12px; background: var(--bg); }
.tt-link code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-text); font-size: 0.85rem; color: var(--ink-2); }

.tt-shared { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; max-width: 40rem; margin: 2rem auto; }
.tt-shared h1 { margin: 0.5rem 0 0; font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; line-height: 1.1; }
.tt-share-card.is-big { align-self: stretch; padding: 2rem 2.2rem; border-radius: 26px; }
.tt-share-card.is-big strong { font-size: 4rem; }

@media (max-width: 960px) {
  .tt-result { grid-template-columns: minmax(0, 1fr); }
  .tt-res-speed strong { font-size: 4.5rem; }
  .tt-res-figures { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.3rem 1rem; }
  .tt-switch { margin-left: 0; }
}


/* Právní stránky a kontakt ----------------------------------------------------------------- */
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.footer-links a { color: var(--brand); }
.legal { display: flex; flex-direction: column; gap: 1.75rem; }
.legal-head h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; }
.legal-updated { margin: 0.4rem 0 0; color: var(--ink-2); font-size: 0.95rem; }
.legal-grid { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 48rem); gap: 3rem; align-items: start; }
.legal-toc { position: sticky; top: calc(1.25rem + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: 0.1rem; padding: 1.1rem; border-radius: 20px; background: var(--paper); box-shadow: 0 4px 0 var(--edge), inset 0 0 0 2px var(--line); }
.legal-toc span { margin-bottom: 0.4rem; font-family: var(--font-display); font-weight: 600; color: var(--ink-2); font-size: 0.95rem; }
.legal-toc a { padding: 0.35rem 0.6rem; border-radius: 10px; color: var(--ink-2); font-size: 0.95rem; line-height: 1.35; text-decoration: none; }
.legal-toc a:hover { background: var(--brand-soft); color: var(--brand); }
.legal-body { display: flex; flex-direction: column; gap: 2rem; }
.legal-body h2 { margin: 0 0 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 1.2; scroll-margin-top: 1rem; }
.legal-section { scroll-margin-top: 1rem; }
.legal-section p { margin: 0 0 0.75rem; color: var(--ink-2); max-width: 44em; }
.legal-short { padding: 1.5rem; border-radius: 22px; background: var(--brand-soft); }
.legal-short h2 { font-size: 1.35rem; }
.legal-short ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.legal-short li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 1rem; }
.legal-short li > span:last-child { color: var(--ink-2); }
.legal-short strong { color: var(--ink); }
.legal-icon { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: var(--paper); font-size: 1.2rem; }
.legal-card { display: grid; gap: 0.35rem; margin: 0.25rem 0 0.75rem; padding: 1.1rem 1.4rem; border-radius: 18px; background: var(--paper); box-shadow: 0 4px 0 var(--edge), inset 0 0 0 2px var(--line); }
.legal-card > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 1rem; }
.legal-card dt { color: var(--ink-2); }
.legal-card dd { margin: 0; font-weight: 600; }
.legal-missing { color: var(--error-ink); font-weight: 400; }
.legal-table { margin: 0.25rem 0 0.9rem; border-radius: 18px; background: var(--paper); box-shadow: 0 4px 0 var(--edge), inset 0 0 0 2px var(--line); }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.45; }
.legal-table th, .legal-table td { padding: 0.75rem 1.1rem; text-align: left; vertical-align: top; }
.legal-table thead th { background: var(--bg); font-family: var(--font-display); font-weight: 600; color: var(--ink-2); }
.legal-table tbody tr { border-top: 2px solid var(--line); }
.legal-table tbody th { font-weight: 700; white-space: nowrap; }
.legal-table tbody th.is-mono { font-family: var(--font-text); font-size: 0.85rem; }
.legal-table td { color: var(--ink-2); }
.legal-contact { max-width: 44rem; }
.legal-contact .legal-card dd a { font-size: 1.15rem; }
.form-legal { margin: 0.25rem 0 0; color: var(--ink-2); font-size: 0.9rem; }

@media (max-width: 900px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .legal-toc { position: static; }
  .legal-short ul { grid-template-columns: minmax(0, 1fr); }
  .legal-card > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}


/* Editor pro korektory ------------------------------------------------------------------- */
.ed { display: flex; flex-direction: column; gap: 1.1rem; }
.ed-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.ed-head h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.05; }
.ed-tabs { display: flex; gap: 0.3rem; padding: 0.3rem; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); }
.ed-tabs a { padding: 0.45rem 0.9rem; border-radius: 12px; color: var(--ink-2); font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.ed-tabs a[aria-selected="true"] { background: var(--brand); color: var(--on-brand); }
.ed-tabs small { opacity: 0.75; }
.ed-langs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ed-langs a { padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); color: var(--ink-2); font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.ed-langs a[aria-current="true"] { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); color: var(--brand); }
.ed-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.1rem; padding: 0.8rem 1.1rem; border-radius: 16px; background: var(--paper); box-shadow: 0 4px 0 var(--edge), inset 0 0 0 2px var(--line); }
.ed-progress strong { font-family: var(--font-display); font-weight: 600; }
.ed-bar { flex: 1 1 12rem; display: flex; height: 0.75rem; border-radius: 99px; background: var(--line); overflow: hidden; }
.ed-bar i.is-done, .ed-legend i.is-done { background: var(--mint); }
.ed-bar i.is-changed, .ed-legend i.is-changed { background: var(--sun); }
.ed-legend { display: flex; gap: 0.9rem; color: var(--ink-2); font-size: 0.9rem; }
.ed-legend i { display: inline-block; width: 0.65rem; height: 0.65rem; margin-right: 0.3rem; border-radius: 50%; background: var(--line-2, var(--line)); vertical-align: middle; }
.ed-grid { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.ed-grid-3 { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) minmax(0, 20rem); }
.ed-side { display: flex; flex-direction: column; gap: 0.9rem; }
.ed-search input { width: 100%; box-sizing: border-box; }
.ed-box { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.75rem; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); }
.ed-box > span { margin-bottom: 0.3rem; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--ink-2); }
.ed-box > a { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.6rem; border-radius: 10px; color: var(--ink); font-size: 0.95rem; text-decoration: none; }
.ed-box > a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-box > a small { color: var(--ink-3); }
.ed-box > a[aria-current="true"] { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.ed-box > a:hover { background: var(--bg); }
.ed-lessons > a small { width: 1.6rem; font-family: var(--font-text); }
.ed-lessons > a i { font-style: normal; }
.ed-rows { display: flex; flex-direction: column; gap: 0.75rem; }
.ed-empty { padding: 1.5rem; border-radius: 18px; background: var(--paper); color: var(--ink-2); }
.ed-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1rem; padding: 1rem 1.1rem; border-radius: 18px; background: var(--paper); box-shadow: 0 4px 0 var(--edge), inset 0 0 0 2px var(--line); }
.ed-row.is-dirty { box-shadow: 0 4px 0 var(--edge), inset 0 0 0 2px var(--brand); }
.ed-orig { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.ed-orig p { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.ed-orig > small, .ed-form > span { color: var(--ink-3); font-size: 0.85rem; }
.ed-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; color: var(--ink-3); font-size: 0.85rem; }
.ed-meta code { font-family: var(--font-text); font-size: 0.8rem; overflow-wrap: anywhere; }
.ed-badge { padding: 0.05rem 0.55rem; border-radius: 999px; background: var(--bg); color: var(--ink-2); font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; }
[data-state="reviewed"] .ed-badge, .ed-badge.is-reviewed { background: var(--mint-soft); color: var(--ok-ink); }
[data-state="changed"] .ed-badge, .ed-badge.is-changed, .ed-badge.is-unsaved { background: var(--sun-soft); color: var(--sun-ink); }
.ed-edit { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.ed-form { display: flex; flex-direction: column; gap: 0.2rem; }
.ed-form textarea { width: 100%; box-sizing: border-box; min-height: 2.6rem; resize: vertical; font: inherit; line-height: 1.45; }
.ed-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; font-size: 0.88rem; }
.ed-ph { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.ed-ph span { padding: 0 0.45rem; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-family: var(--font-text); font-weight: 600; }
.ed-ph span.is-missing { background: var(--error-soft); color: var(--error-ink); text-decoration: line-through; }
.ed-note.is-bad { color: var(--error-ink); }
.ed-note.is-ok { color: var(--ok-ink); }
.ed-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-left: auto; }
.ed-actions button { font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.ed-actions button:disabled { opacity: 0.4; cursor: not-allowed; }
.ed-row.is-quote .ed-orig em { color: var(--ink-3); }
.ed-lesson { display: flex; flex-direction: column; gap: 0.85rem; padding: 1.3rem; border-radius: 22px; background: var(--paper); box-shadow: 0 5px 0 var(--edge), inset 0 0 0 2px var(--line); }
.ed-lesson-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.ed-lesson-head strong { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.ed-lesson label { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 700; font-size: 0.92rem; }
.ed-lesson label small { font-weight: 400; color: var(--ink-3); }
.ed-lesson input, .ed-lesson textarea { font: inherit; font-weight: 400; }
.ed-lesson textarea.is-mono, .ed-preview .is-mono { font-family: var(--font-text); line-height: 1.7; }
.ed-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.ed-problems { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.75rem 0.9rem; border-radius: 12px; background: var(--error-soft); color: var(--error-ink); font-size: 0.9rem; }
.ed-problems[hidden] { display: none; }
.ed-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; }
.ed-buttons .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.ed-fix { color: var(--ink-3); font-size: 0.9rem; }
.ed-preview p { margin: 0.2rem 0; padding: 0.7rem; border-radius: 12px; background: var(--bg); }
.ed-preview small, .ed-history small { color: var(--ink-3); }
.ed-preview a { font-family: var(--font-display); font-weight: 600; color: var(--brand); }
.ed-history p { margin: 0.15rem 0; font-size: 0.92rem; }
.notice.is-error { background: var(--error-soft); color: var(--error-ink); }
.account-editor { margin: 0.4rem 0 0; color: var(--ink-2); font-size: 0.92rem; }
.editor-role fieldset { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0; padding: 0; border: 0; }
.editor-role legend { margin-bottom: 0.4rem; font-weight: 700; }

@media (max-width: 1100px) {
  .ed-grid-3 { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); }
  .ed-grid-3 > .ed-side { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .ed-grid, .ed-grid-3, .ed-row, .ed-two { grid-template-columns: minmax(0, 1fr); }
  .ed-grid-3 > .ed-side { grid-template-columns: minmax(0, 1fr); }
}


/* Rozložení klávesnice neodpovídá kurzu ---------------------------------------------------- */
.kb-banner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.3rem 1.6rem; align-items: center; margin: 0 0 1.25rem; padding: 1.3rem 1.5rem; border-radius: 22px; background: var(--sun-soft); box-shadow: 0 5px 0 var(--sun-line), inset 0 0 0 2px var(--sun-line); color: var(--ink); }
.kb-banner[hidden] { display: none; }
.kb-banner-main { display: flex; flex-direction: column; gap: 0.55rem; }
.kb-banner-main > strong { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.2; }
.kb-banner-main p { margin: 0; color: var(--sun-ink); }
.kb-howto { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; padding: 0.6rem 0.8rem; border-radius: 12px; background: rgb(var(--paper-rgb) / 0.7); }
.kb-howto[hidden] { display: none; }
.kb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; margin-top: 0.2rem; }
.kb-actions form { margin: 0; }
.kb-actions [data-kb-recheck] { order: -1; }
.kb-actions [hidden] { display: none; }
.kb-strip { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.9rem; border-radius: 16px; background: var(--paper); }
.kb-strip[hidden] { display: none; }
.kb-strip small { font-family: var(--font-display); font-weight: 600; color: var(--ink-2); font-size: 0.85rem; }
.kb-strip small.kb-private { font-family: var(--font-ui); font-weight: 400; color: var(--ink-3); font-size: 0.8rem; max-width: 24rem; }
.kb-keys { display: flex; gap: 0.3rem; }
.kb-keys span { display: grid; place-items: center; width: 2.3rem; height: 2.15rem; border-radius: 8px; background: var(--bg); color: var(--ink-2); font-family: var(--font-text); font-weight: 600; font-size: 1rem; }
.kb-keys span.is-diff { background: var(--sun); color: var(--sun-ink); box-shadow: inset 0 0 0 2px var(--sun-edge); }
body.kb-mismatch .trainer, body.kb-mismatch .tt-card { opacity: 0.6; transition: opacity 0.2s; }
.kb-detected { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; padding: 0.4rem 0.8rem; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line); font-size: 0.95rem; }
.kb-detected[hidden] { display: none; }
.kb-detected small { color: var(--ink-3); }
.kb-match { margin-top: 0.35rem; align-self: flex-start; padding: 0.05rem 0.55rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); font-family: var(--font-display); font-weight: 600; font-size: 0.78rem !important; }
.kb-match.is-match { background: var(--mint-soft); box-shadow: none; color: var(--ok-ink) !important; }

@media (max-width: 900px) {
  .kb-banner { grid-template-columns: minmax(0, 1fr); }
}


/* Školy: stránka, třídy, žáci ---------------------------------------------------------------- */
.l-pill.is-thumb { background: var(--thumb); color: var(--ink); }
.s-mini { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.3rem; border-radius: 26px; background: var(--paper); box-shadow: 0 8px 0 var(--edge), inset 0 0 0 2px var(--line); }
.s-mini-head { display: flex; align-items: center; justify-content: space-between; }
.s-mini-head strong { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.s-mini-head code { padding: 0.2rem 0.7rem; border-radius: 10px; background: var(--bg); font-family: var(--font-text); font-weight: 600; }
.s-mini-task { padding: 0.6rem 0.8rem; border-radius: 14px; background: var(--brand-soft); font-size: 0.95rem; }
.s-mini-row { display: grid; grid-template-columns: 2rem 1fr 7rem 5.5rem; align-items: center; gap: 0.7rem; padding: 0.35rem 0.2rem; border-top: 2px solid var(--line); font-size: 0.95rem; }
.s-mini-row i { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; font-style: normal; font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; color: var(--ink); }
.s-mini-row b { display: block; height: 0.5rem; border-radius: 99px; background: var(--line); overflow: hidden; }
.s-mini-row b span { display: block; height: 100%; background: var(--mint); }
.s-mini-row small { text-align: right; color: var(--ink-2); }
.s-price { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.8rem; border-radius: 26px; background: var(--ink); color: var(--paper); }
.s-price .l-kicker { color: var(--brand-soft); margin: 0; }
.s-price strong { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; line-height: 1.05; }
.s-price p { margin: 0; opacity: 0.85; }
.s-price .btn { align-self: flex-start; }
.s-final { background: var(--brand); }

.sc { display: flex; flex-direction: column; gap: 1.1rem; }
.sc-narrow { max-width: 40rem; margin: 0 auto; }
.sc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.sc-head h1, .sc h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.05; }
.sc-head .l-kicker { margin-bottom: 0.2rem; }
.sc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.sc-actions form { margin: 0; }
.sc-code { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.9rem; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); }
.sc-code small { color: var(--ink-2); }
.sc-code strong { font-family: var(--font-text); font-size: 1.25rem; letter-spacing: 0.06em; }
.sc-code a { font-family: var(--font-display); font-weight: 600; color: var(--brand); }
.sc-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sc-tabs a { padding: 0.45rem 0.9rem; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); color: var(--ink-2); font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.sc-tabs a[aria-current="page"] { background: var(--brand); box-shadow: 0 4px 0 var(--brand-edge); color: var(--on-brand); }
.sc-tabs a small { opacity: 0.75; }
.sc-tabs a.is-new { box-shadow: inset 0 0 0 2px var(--line-2, var(--line)); color: var(--brand); background: transparent; }
.sc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.9rem; }
.sc-card { display: flex; flex-direction: column; gap: 0.2rem; padding: 1.1rem; border-radius: 18px; background: var(--paper); box-shadow: 0 4px 0 var(--edge), inset 0 0 0 2px var(--line); color: var(--ink); text-decoration: none; }
.sc-card strong { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }
.sc-card span, .sc-card small { color: var(--ink-2); }
.sc-card:hover { box-shadow: 0 4px 0 var(--edge), inset 0 0 0 2px var(--brand); }
.sc-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 0.8rem; align-items: end; }
.sc-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
.sc-summary > .sc-task { grid-column: 1 / -1; }
.sc-task { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem 1.1rem; border-radius: 18px; background: var(--brand-soft); }
.sc-task-head { display: flex; justify-content: space-between; gap: 0.6rem; }
.sc-task-head form { margin: 0; }
.sc-task strong { font-family: var(--font-display); font-weight: 700; }
.sc-bar { display: block; flex: 1; height: 0.6rem; border-radius: 99px; background: var(--line); overflow: hidden; }
.sc-task .sc-bar { background: var(--paper); }
.sc-bar i { display: block; height: 100%; background: var(--mint); }
.sc-newtask summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; color: var(--brand); }
.sc-taskform { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr) auto; gap: 0.5rem 0.7rem; margin-top: 0.6rem; }
.sc-taskform label { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.85rem; font-weight: 700; }
.sc-taskform select, .sc-taskform input { font: inherit; font-weight: 400; min-width: 0; width: 100%; box-sizing: border-box; }
.sc-taskform button { align-self: end; }
.sc-stat { display: flex; flex-direction: column; gap: 0.1rem; padding: 1rem 1.1rem; border-radius: 18px; background: var(--paper); box-shadow: 0 4px 0 var(--edge), inset 0 0 0 2px var(--line); }
.sc-stat small { color: var(--ink-2); }
.sc-stat strong { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; }
.sc-table { border-radius: 20px; background: var(--paper); box-shadow: 0 5px 0 var(--edge), inset 0 0 0 2px var(--line); }
.sc-table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.sc-table th, .sc-table td { padding: 0.6rem 0.9rem; text-align: left; vertical-align: middle; }
.sc-table thead th { background: var(--bg); font-family: var(--font-display); font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.sc-table tbody tr { border-top: 2px solid var(--line); }
.sc-table tbody th { font-weight: 600; white-space: nowrap; }
.sc-table .num { text-align: right; }
.sc-table .is-warn { color: var(--error-ink); font-weight: 700; }
.sc-avatar { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; margin-right: 0.6rem; border-radius: 50%; font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; color: var(--ink); vertical-align: middle; }
.sc-progress { display: flex; align-items: center; gap: 0.6rem; min-width: 10rem; }
.sc-progress small { width: 3.5rem; color: var(--ink-2); white-space: nowrap; }
.sc-pill { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; white-space: nowrap; }
.sc-pill.is-done { background: var(--mint-soft); color: var(--ok-ink); }
.sc-pill.is-part { background: var(--sun-soft); color: var(--sun-ink); }
.sc-pill.is-none { background: var(--error-soft); color: var(--error-ink); }
.sc-more { position: relative; }
.sc-more summary { cursor: pointer; list-style: none; padding: 0 0.5rem; border-radius: 8px; font-weight: 700; }
.sc-more summary::-webkit-details-marker { display: none; }
.sc-more[open] > form:first-of-type { margin-top: 0.3rem; }
.sc-more form { margin: 0; white-space: nowrap; }
.link.is-danger { color: var(--error-ink); }
.sc-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.sc-empty h2 { margin: 0; font-family: var(--font-display); }
.sc-danger { margin-top: 1rem; color: var(--ink-2); }
.sc-danger summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; color: var(--error-ink); }
.sc-danger form { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; margin-top: 0.6rem; }
.sc-add textarea.is-mono { font-family: var(--font-text); line-height: 1.7; }
.sc-print { display: grid; grid-template-columns: 1fr 1fr; background: #fff; color: #1c2045; }
.sc-login-card { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.1rem 1.25rem; border: 1px dashed #b9bfdc; break-inside: avoid; }
.sc-lc-top { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.75rem; font-weight: 700; color: #565c86; }
.sc-login-card strong { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.sc-login-card dl { display: grid; grid-template-columns: auto 1fr; gap: 0.1rem 0.8rem; margin: 0; }
.sc-login-card dt { color: #565c86; }
.sc-login-card dd { margin: 0; font-family: var(--font-text); font-weight: 600; }
.sc-board { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; min-height: 70vh; text-align: center; }
.sc-board p { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--ink-2); }
.sc-board-url { font-family: var(--font-text); font-size: clamp(1.8rem, 4.5vw, 3.4rem); }
.sc-board-code { font-family: var(--font-text); font-size: clamp(4rem, 14vw, 10rem); letter-spacing: 0.08em; line-height: 1; color: var(--brand); }
.sc-join .card { display: flex; flex-direction: column; gap: 0.9rem; }
.sc-code-input { font-family: var(--font-text); font-size: 1.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
input[type="password"].sc-code-input { text-transform: none; letter-spacing: 0.05em; }
.sc-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.5rem; margin: 0; padding: 0; border: 0; }
.sc-name { position: relative; display: flex; align-items: center; padding: 0.45rem 0.6rem; border-radius: 12px; background: var(--bg); cursor: pointer; }
.sc-name input { position: absolute; opacity: 0; }
.sc-name:has(input:checked) { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); font-weight: 700; }
.sc-name:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.task-banner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.7rem 1.2rem; align-items: center; margin-bottom: 1.25rem; padding: 1.1rem 1.3rem; border-radius: 20px; background: var(--brand-soft); }
.task-banner strong { grid-column: 1 / -1; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.task-tiles { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.task-tiles a { display: grid; place-items: center; min-width: 2.6rem; height: 2.3rem; border-radius: 11px; background: var(--paper); color: var(--ink-3); font-family: var(--font-display); font-weight: 700; text-decoration: none; }
.task-tiles a.is-done { background: var(--mint); color: var(--paper); }
.task-tiles a.is-next { box-shadow: inset 0 0 0 3px var(--brand); color: var(--brand); }
.task-banner p { margin: 0; color: var(--ink-2); }
.task-banner .btn { grid-column: 2; grid-row: 2 / span 2; }
.task-done { color: var(--ok-ink) !important; font-weight: 700; }

@media (max-width: 960px) {
  .sc-summary { grid-template-columns: 1fr 1fr; }
  .sc-taskform { grid-template-columns: 1fr 1fr; }
  .sc-form { grid-template-columns: minmax(0, 1fr); }
  .task-banner { grid-template-columns: minmax(0, 1fr); }
  .task-banner .btn { grid-column: 1; grid-row: auto; justify-self: start; }
}
@media print {
  .topbar, .site-footer, .no-print, .lang-suggest, .kb-banner { display: none !important; }
  body { background: #fff !important; }
  .page { max-width: none; padding: 0; }
  .sc-print { gap: 0; }
  .sc-login-card { min-height: 6.4cm; }
}


/* Postranní panel, lišta pro soustředění a mobil ----------------------------------------------- */
:root { --sidebar-w: 16.5rem; }
.main-col { container-type: inline-size; min-width: 0; overflow-x: clip; }
.has-sidebar .main-col { margin-left: var(--sidebar-w); }
.has-sidebar .page { padding-top: calc(2rem + env(safe-area-inset-top, 0px)); }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 45;
  width: var(--sidebar-w);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: calc(1.4rem + env(safe-area-inset-top, 0px)) 0.9rem calc(1rem + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
  box-shadow: inset -2px 0 0 var(--line);
  overflow-y: auto;
}
.sidebar > .wordmark { margin: 0 0.55rem 1.2rem; white-space: nowrap; font-size: 1.3rem; }
.side-nav { display: flex; flex-direction: column; gap: 0.2rem; }
.side-nav a { display: flex; align-items: center; gap: 0.75rem; padding: 0.62rem 0.85rem; border-radius: 14px; color: var(--ink-2); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.side-nav a:hover { background: var(--bg); color: var(--ink); }
.side-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.side-nav svg { flex: none; }
.side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 0.65rem; padding-top: 1.2rem; }
/* „zdarma“ pod menu (p50) */
.side-free { display: flex; align-items: flex-start; gap: 0.7rem; margin: 0.9rem 0.25rem 0; padding: 0.85rem 0.9rem; border-radius: 16px; background: var(--mint-soft); color: var(--ok-ink); font-size: 0.88rem; line-height: 1.4; }
.side-free svg { flex: none; margin-top: 0.05rem; }
.side-free strong { display: block; margin-bottom: 0.1rem; font-family: var(--font-display); font-size: 1rem; }
.side-free span { color: var(--ink-2); }
.side-free strong { color: var(--ok-ink); }
.side-progress { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; margin: -0.4rem 0 0.9rem; padding: 0.55rem 0.65rem; border-radius: 14px; background: var(--bg); color: var(--ink); text-decoration: none; }
.side-progress:hover { box-shadow: inset 0 0 0 2px var(--line); }
.side-level { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.side-level .lvl { flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--sun); color: var(--sun-ink); font-family: var(--font-display); font-weight: 700; }
.side-level-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.side-level-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.side-level-text small { color: var(--ink-2); font-size: 0.82rem; }
.side-progress .xpbar { width: 100%; }
.side-streak { display: flex; align-items: center; gap: 0.3rem; color: var(--flame-ink); font-size: 0.9rem; font-weight: 700; }
.side-streak.is-cold { color: var(--ink-3); font-weight: 400; }
.side-streak.is-waiting { color: var(--flame); }
.side-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem; }
.side-tools .chip, .side-tools .theme-menu > summary { justify-content: center; width: 100%; box-sizing: border-box; }
.side-tools .theme-menu { min-width: 0; }
.sidebar .theme-list { left: 0; right: auto; top: auto; bottom: calc(100% + 0.5rem); width: calc(var(--sidebar-w) - 2.2rem); }
.sidebar .side-tools .theme-menu { position: static; }
.sidebar .side-tools { position: relative; }
.sidebar .theme-opt small { display: none; }
.side-account { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.65rem; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--line); color: var(--ink); text-decoration: none; }
.side-account:hover, .side-account.is-current { box-shadow: inset 0 0 0 2px var(--brand); }
.side-account-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.side-account-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-account-text small { color: var(--ink-2); font-size: 0.82rem; }
.mobilebar, .sidebar-backdrop { display: none; }
.focusbar { display: flex; align-items: center; gap: 1rem; max-width: var(--measure); margin: 0 auto; padding: calc(1rem + env(safe-area-inset-top, 0px)) 1.25rem 0.25rem; }
.focusbar-label { color: var(--ink-2); font-family: var(--font-display); font-weight: 600; }
@media (max-width: 460px) { .focusbar-label { display: none; } } /* p102: na telefonu by vytlačil tlačítka lišty administrace mimo obrazovku */
.focusbar-tools { margin-left: auto; display: flex; gap: 0.5rem; }

.lang-dialog { width: min(46rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); box-sizing: border-box; padding: 1.6rem 1.8rem; border: 0; border-radius: 28px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 70px rgb(var(--shade) / 0.35); }
.lang-dialog::backdrop { background: rgb(28 32 69 / 0.42); }
.lang-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.lang-dialog-head h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.85rem; }
.lang-dialog-head p { margin: 0.2rem 0 0; color: var(--ink-2); }
.lang-dialog-close { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink-2); font-size: 1.1rem; cursor: pointer; }
.lang-dialog-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lang-card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.lang-card-top .lang-code { width: auto; height: auto; padding: 0.1rem 0.5rem; }
.lang-card-progress { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.3rem; }
.lang-card-progress small { white-space: nowrap; }
.lang-card .kb-match.is-current { background: var(--brand); box-shadow: none; color: var(--on-brand) !important; }
.lang-dialog-kb { display: flex; width: 100%; box-sizing: border-box; margin-top: 1rem; }
.lang-dialog-esc { margin-left: auto; color: var(--ink-3); }

@media (max-width: 900px) {
  .has-sidebar .main-col { margin-left: 0; }
  .has-sidebar .page { padding-top: 1rem; }
  .mobilebar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: calc(0.6rem + env(safe-area-inset-top, 0px)) 1rem 0.6rem; background: var(--paper); box-shadow: 0 2px 0 var(--line); }
  .mobilebar-menu { width: 2.75rem; justify-content: center; }
  .sidebar { transform: translateX(-100%); transition: transform 0.2s ease; box-shadow: 0 0 40px rgb(var(--shade) / 0.3); }
  .sidebar.is-open { transform: none; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 44; display: block; background: rgb(28 32 69 / 0.4); }
  .sidebar-backdrop[hidden] { display: none; }
  .lang-dialog-cards { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .sidebar, .mobilebar, .focusbar { display: none !important; }
  .has-sidebar .main-col { margin-left: 0 !important; }
}


/* Napiš nám: okno pro uživatele a zprávy v administraci ---------------------------------------- */
.side-feedback { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.85rem; border: 0; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-align: left; }
.side-feedback:hover { box-shadow: inset 0 0 0 2px var(--brand); }
.side-theme-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.side-theme-text small { overflow: hidden; color: var(--ink-2); font-family: var(--font-ui); font-weight: 500; font-size: 0.8rem; text-overflow: ellipsis; white-space: nowrap; }
.footer-feedback { flex: none; width: auto; padding: 0.5rem 1rem; }
.fb-dialog { width: min(40rem, calc(100vw - 2rem)); }
.fb-form { display: flex; flex-direction: column; gap: 0.9rem; }
.fb-form[hidden], .fb-sent[hidden] { display: none; }
.fb-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin: 0; padding: 0; border: 0; }
.fb-kind-opt { position: relative; display: block; padding: 0.7rem 0.85rem; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line); }
.fb-kind-opt input { position: absolute; opacity: 0; }
.fb-kind-opt strong { display: block; font-family: var(--font-display); font-weight: 700; }
.fb-kind-opt small { display: block; color: var(--ink-2); line-height: 1.3; }
.fb-kind-opt:has(input:checked) { background: var(--sun-soft); box-shadow: inset 0 0 0 3px var(--sun); }
.fb-kind-opt:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.fb-field { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 700; font-size: 0.95rem; }
.fb-field small { font-weight: 400; color: var(--ink-3); }
.fb-field textarea, .fb-field input { width: 100%; box-sizing: border-box; font: inherit; font-weight: 400; }
.fb-count { align-self: flex-end; }
.fb-tech-opt { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.6rem 0.8rem; border-radius: 14px; background: var(--bg); color: var(--ink-2); font-size: 0.9rem; }
.fb-tech-opt input { margin-top: 0.2rem; }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fb-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.fb-submit small { color: var(--ink-2); }
.fb-sent { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; padding: 1rem 0 0.5rem; text-align: center; }
.fb-sent h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; }
.fb-sent p { margin: 0; color: var(--ink-2); }
.fb-sent-icon { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--mint-soft); font-size: 2rem; }
.admin-badge { display: inline-grid; place-items: center; min-width: 1.3rem; padding: 0 0.35rem; border-radius: 999px; background: var(--flame); color: #fff; font-size: 0.75rem; font-weight: 700; }
.fb-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; margin: 1rem 0; }
.fb-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fb-filters a { padding: 0.3rem 0.85rem; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); color: var(--ink-2); font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.fb-filters a[aria-current="true"] { background: var(--ink); box-shadow: none; color: var(--paper); }
.fb-notify { margin: 0; font-size: 0.95rem; }
.fb-item { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 0.9rem; padding: 1rem 1.3rem; }
.fb-item.is-new { box-shadow: 0 5px 0 var(--edge), inset 0 0 0 2px var(--flame-line); }
.fb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.7rem; color: var(--ink-2); font-size: 0.9rem; }
.fb-meta strong { color: var(--ink); }
.fb-meta time { margin-left: auto; }
.fb-kind, .fb-state, .fb-lang { padding: 0.05rem 0.6rem; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; }
.fb-kind.fb-bug { background: var(--error-soft); color: var(--error-ink); }
.fb-kind.fb-idea { background: var(--sun-soft); color: var(--sun-ink); }
.fb-kind.fb-question { background: var(--brand-soft); color: var(--brand); }
.fb-state { background: var(--mint-soft); color: var(--ok-ink); }
.fb-state.is-new { background: var(--flame); color: #fff; }
.fb-lang { background: var(--bg); }
.fb-text { margin: 0; font-size: 1.02rem; overflow-wrap: anywhere; }
.fb-tech { margin: 0; padding: 0.5rem 0.7rem; border-radius: 10px; background: var(--bg); color: var(--ink-2); font-family: var(--font-text); font-size: 0.82rem; overflow-wrap: anywhere; }
.fb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.2rem; }
.fb-actions form { margin: 0; }
.fb-actions a { color: var(--brand); font-family: var(--font-display); font-weight: 600; }
@media (max-width: 640px) { .fb-kinds { grid-template-columns: minmax(0, 1fr); } }


/* Okno „Vzhled“: vodorovné karty ve skupinách, vpravo zmenšená živá lekce --------------------- */
.theme-dialog { width: min(78rem, calc(100vw - 2rem)); }
.td-hint-touch { display: none; }
@media (hover: none) { .td-hint-touch { display: inline; } .td-hint-mouse { display: none; } }
.td-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36rem); gap: 1.5rem; align-items: start; }
.td-groups { display: flex; flex-direction: column; gap: 0.9rem; }
.td-group h3 { margin: 0 0 0.45rem; color: var(--ink-3); font-family: var(--font-ui); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.td-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.td-cards form { margin: 0; }
.td-card { position: relative; display: flex; align-items: center; gap: 0.7rem; width: 100%; height: 100%; padding: 0.45rem 0.6rem 0.45rem 0.45rem; border: 0; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-align: left; font: inherit; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.td-card:hover, .td-card:focus-visible { transform: translateY(-1px); box-shadow: inset 0 0 0 2px var(--ink); outline: none; }
.td-card[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--brand); }
.td-card-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.td-name { color: inherit; font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.15; }
.td-card small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-3); font-size: 0.76rem; line-height: 1.25; }
.td-using { align-self: flex-start; display: none; margin-top: 0.15rem; padding: 0 0.45rem; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 0.7rem; font-weight: 700; }
.td-card[aria-pressed="true"] .td-using { display: inline-block; }
/* miniatura: panel, nadpis, řádky textu a třířadá klávesnice v barvách motivu */
.td-mini { position: relative; flex: none; display: flex; width: 6.6rem; height: 4.3rem; border-radius: 9px; overflow: hidden; background: var(--bg); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.07); }
.td-mini i { display: block; }
.td-mini-side { flex: none; width: 18%; background: var(--paper); box-shadow: inset -1px 0 0 var(--line); }
.td-mini-main { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 5px 6px; min-width: 0; }
.td-mini-title { width: 55%; height: 5px; border-radius: 2px; background: var(--ink); }
.td-mini-sheet { display: flex; flex-direction: column; gap: 2px; padding: 3px 4px; border-radius: 3px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.td-mini-sheet i { height: 3px; border-radius: 2px; background: var(--ink-3); }
.td-mini-sheet i.is-short { width: 60%; }
.td-mini-kb { display: flex; flex-direction: column; gap: 1.5px; margin-top: auto; }
.td-mini-kb span { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1.5px; }
.td-mini-kb span + span { padding-left: 3px; }
.td-mini-kb i { height: 5px; border-radius: 1.5px; }
.td-mini-kb i.is-next { background: var(--brand); }
:is([data-preview="vykon"], [data-preview="neon"]) .td-mini-kb i:not(.is-next) { background: var(--key-bg); box-shadow: inset 0 0 0 1px var(--finger); }
[data-preview="stroj"] .td-mini-kb i:not(.is-next) { border-radius: 999px; background: var(--key-bg); box-shadow: inset 0 0 0 1px var(--finger); }
[data-preview="studio"].td-mini { background: linear-gradient(135deg, #efe7ff 0%, #ffe9e1 60%, #fff6ea 100%); }
[data-preview="vyprava"].td-mini { background: linear-gradient(180deg, #a9dcff 0%, #d4efff 70%, #8ee3ae 71%, #5fd38d 100%); }
/* velký náhled: zmenšená živá stránka */
.td-preview { position: sticky; top: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.td-preview-label { color: var(--ink-3); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.td-preview-label b { color: var(--ink); }
.td-frame { position: relative; aspect-ratio: 1120 / 800; border-radius: 14px; overflow: hidden; background: var(--bg); box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08), 0 14px 34px rgb(0 0 0 / 0.16); }
.td-frame iframe { position: absolute; left: 0; top: 0; width: 1120px; height: 800px; border: 0; transform-origin: 0 0; pointer-events: none; }
.td-foot { display: flex; align-items: center; gap: 1rem; margin-top: 1.1rem; }
.td-foot small { color: var(--ink-3); }
.td-foot .btn { margin-left: auto; }
/* stránka náhledu uvnitř rámečku: bez posuvníku */
body.is-preview { overflow: hidden; }
body.is-preview .exercise { height: calc(2 * 1.6em + 0.35em); min-height: 0; overflow: hidden; }
body.is-preview .page { padding-top: 1.4rem; }
body.is-preview .lesson-head { margin-bottom: 0.6rem; }
/* aktuální vzhled v Nastavení */
.td-current { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; padding: 0.75rem; border-radius: 16px; background: var(--bg); }
.td-current .td-mini { width: 7.5rem; flex: none; }
.td-current > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; min-width: 10rem; }
.td-current small { color: var(--ink-2); }

@media (max-width: 1000px) {
  .td-body { grid-template-columns: minmax(0, 1fr); }
  .td-preview { order: -1; position: static; }
}
@media (max-width: 640px) {
  .theme-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .td-cards { grid-template-columns: minmax(0, 1fr); }
  .td-foot { position: sticky; bottom: -1.6rem; margin: 1rem -1.8rem -1.6rem; padding: 0.8rem 1.8rem calc(0.8rem + env(safe-area-inset-bottom, 0px)); background: var(--paper); box-shadow: 0 -1px 0 var(--line); }
}


/* Panel: kompaktní postup pod logem, úsporný spodek */
.side-progress .lvl { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--sun); color: var(--sun-ink); font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; }
.side-progress-main { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.side-progress-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; line-height: 1.1; }
.side-progress .xpbar { width: 100%; height: 0.35rem; }
.side-progress .side-streak { gap: 0.15rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--flame-soft); font-size: 0.85rem; }
.side-progress .side-streak.is-cold { background: transparent; }
.side-bottom { gap: 0.5rem; }
.side-tools .chip { min-height: 2.3rem; box-shadow: none; background: var(--bg); }
.side-account { padding: 0.4rem 0.55rem; }
.side-account .avatar { width: 1.8rem; height: 1.8rem; font-size: 0.85rem; }


/* Panel: „centrum“ – karta účtu s nabídkou (postup, jazyk, zvuky, účet) ------------------------- */
.side-center-wrap { position: relative; }
.side-center { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.55rem 0.65rem; border: 0; border-radius: 14px; background: var(--brand-soft); box-shadow: inset 0 0 0 2px transparent; color: var(--ink); text-align: left; font: inherit; }
.side-center:hover, .side-center[aria-expanded="true"], .side-center.is-current { box-shadow: inset 0 0 0 2px var(--brand); }
.side-center .lvl, .side-center-menu .lvl { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--sun); color: var(--sun-ink); font-family: var(--font-display); font-weight: 700; }
.side-center .avatar { width: 2rem; height: 2rem; }
.side-center-text { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.side-center-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-weight: 700; }
.side-center-text small { overflow: hidden; color: var(--ink-2); font-size: 0.8rem; text-overflow: ellipsis; white-space: nowrap; }
.side-center-chev { flex: none; color: var(--ink-3); transition: transform 0.15s ease; }
.side-center[aria-expanded="true"] .side-center-chev { transform: rotate(180deg); } /* nabídka se otevírá nahoru: zavřeno ^, otevřeno v */
.side-center-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 0.5rem); z-index: 5; display: flex; flex-direction: column; gap: 0.15rem; padding: 0.6rem; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgb(var(--shade) / 0.22); }
.side-center-menu[hidden] { display: none; }
.side-center-menu form { margin: 0; }
.side-center-menu hr { width: 100%; margin: 0.35rem 0; border: 0; border-top: 1px solid var(--line); }
.scm-progress { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; margin-bottom: 0.3rem; padding: 0.5rem; border-radius: 12px; background: var(--bg); color: var(--ink); text-decoration: none; }
.scm-progress-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.scm-progress-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; }
.scm-progress-main small { color: var(--ink-2); font-size: 0.78rem; }
.scm-progress .xpbar { width: 100%; height: 0.35rem; margin-top: 0.3rem; }
.scm-progress .side-streak { padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--flame-soft); font-size: 0.85rem; }
.scm-progress .side-streak.is-cold { background: transparent; }
.scm-row { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.5rem 0.55rem; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; text-decoration: none; font: inherit; font-size: 0.95rem; }
.scm-row:hover, .scm-row:focus-visible { background: var(--bg); outline: none; }
.scm-row > svg { flex: none; color: var(--ink-2); }
.scm-row .avatar { width: 1.5rem; height: 1.5rem; font-size: 0.75rem; }
.scm-val { margin-left: auto; color: var(--ink-2); font-size: 0.88rem; }
.scm-switch { position: relative; flex: none; width: 2.1rem; height: 1.2rem; margin-left: auto; border-radius: 99px; background: var(--line); transition: background 0.15s; }
.scm-switch::after { content: ""; position: absolute; top: 0.15rem; left: 0.15rem; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 2px rgb(0 0 0 / 0.2); transition: transform 0.15s; }
.scm-sound[aria-pressed="true"] .scm-switch { background: var(--brand); }
.scm-sound[aria-pressed="true"] .scm-switch::after { transform: translateX(0.9rem); }
.scm-row.is-quiet { color: var(--ink-2); }
.scm-row.is-accent { color: var(--brand); font-weight: 700; }


/* Cvičení na míru a certifikát --------------------------------------------------------------- */
.home-extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.hx-card { display: flex; flex-direction: column; gap: 0.7rem; padding: 1.2rem 1.3rem; }
.hx-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; }
.hx-head h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.hx-head small, .hx-actions small { color: var(--ink-2); }
.hx-text { margin: 0; color: var(--ink-2); }
.hx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; margin-top: auto; }
.hx-progress { display: flex; align-items: center; gap: 0.8rem; }
.hx-progress .xpbar { flex: 1; height: 0.6rem; }
.weak-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.weak-chip { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; min-width: 4.4rem; padding: 0.55rem 0.4rem 0.45rem; border-radius: 12px; background: var(--flame-soft); box-shadow: inset 0 0 0 2px var(--flame-line); }
.weak-chip b { font-family: var(--font-text); font-size: 1.6rem; line-height: 1; }
.weak-chip small { color: var(--flame-ink); font-weight: 700; font-size: 0.78rem; }
.weak-chip.is-hot { box-shadow: inset 0 0 0 2px var(--flame); }
.weak-chip.is-mild { background: var(--bg); }
.lesson-head .weak-chips { margin-top: 0.8rem; }
.key.is-weak:not(.next) { box-shadow: inset 0 0 0 2.5px var(--flame), 0 3px 0 var(--edge); }
.practice-keys { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.4rem auto 0.8rem; width: min(26rem, 100%); }
.pk-head { margin: 0; color: var(--ink-2); font-weight: 700; font-size: 0.9rem; }
.pk-row { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; }
.pk-row b { display: grid; place-items: center; height: 2.2rem; border-radius: 8px; background: var(--bg); font-family: var(--font-text); font-size: 1.15rem; }
.pk-bars { display: flex; flex-direction: column; gap: 3px; }
.pk-bars i { display: block; height: 0.4rem; min-width: 2px; border-radius: 99px; }
.pk-before { background: var(--flame-line); }
.pk-now { background: var(--flame); }
.pk-row.is-better .pk-now { background: var(--mint); }
.pk-row small { color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.pk-row.is-better small { color: var(--ok-ink); }

.cert-page h1 { margin: 0.1rem 0 0.8rem; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cert-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 1fr); gap: 1.4rem; align-items: start; }
.cert-preview { display: flex; flex-direction: column; gap: 0.5rem; }
.cert-preview small, .cert-hint { color: var(--ink-2); }
.cert-frame { border-radius: 10px; box-shadow: 0 18px 40px rgb(var(--shade) / 0.16), 0 0 0 1px var(--line); }
.cert-side { display: flex; flex-direction: column; gap: 0.8rem; }
.cert-form { display: flex; flex-direction: column; gap: 0.7rem; padding: 1rem 1.1rem; }
.cert-style { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin: 0; padding: 0; border: 0; }
.cert-style legend { margin-bottom: 0.3rem; font-weight: 700; font-size: 0.95rem; }
.cert-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.cert-actions .btn { justify-content: center; }
.cert-link { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem 1.1rem; }
.cert-link small { color: var(--ink-2); }
.cert-link-row { display: flex; gap: 0.5rem; }
.cert-link-row input { flex: 1; min-width: 0; font-family: var(--font-text); font-size: 0.9rem; }
.cert-tip { display: flex; gap: 0.6rem; margin: 0; padding: 0.8rem 1rem; border-radius: 14px; background: var(--sun-soft); color: var(--ink); font-size: 0.92rem; }
.cert-checklist { display: flex; flex-direction: column; gap: 0.7rem; max-width: 40rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.cert-checklist li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; padding: 0.9rem 1.1rem; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.cert-checklist li > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; min-width: 12rem; }
.cert-checklist small { color: var(--ink-2); }
.cert-check { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--bg); color: var(--ink-2); font-weight: 700; }
.cert-checklist li.is-done .cert-check { background: var(--mint-soft); color: var(--ok-ink); }
.cert-verify-page { max-width: 52rem; }
.cert-verify-card { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1rem; padding: 1.2rem 1.4rem; }
.cert-verify-ok { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--mint-soft); color: var(--ok-ink); font-size: 1.7rem; font-weight: 700; }
.cert-verify-head { display: flex; flex-direction: column; }
.cert-verify-head strong { font-family: var(--font-display); font-size: 1.3rem; }
.cert-verify-head small { color: var(--ink-2); }
.cert-verify-data { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; width: 100%; margin: 0.4rem 0 0; }
.cert-verify-data div { display: flex; flex-direction: column; }
.cert-verify-data dt { color: var(--ink-3); font-size: 0.82rem; }
.cert-verify-data dd { margin: 0; font-weight: 700; }
.cert-verify-note { color: var(--ink-2); font-size: 0.9rem; }

.l-feat { width: min(var(--measure), calc(100% - 2rem)); margin: 1rem auto 3rem; }
.l-feat > h2 { margin: 0.2rem 0 1.2rem; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.l-feat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.l-feat-card { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.5rem; border-radius: 22px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.l-feat-card h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; line-height: 1.2; }
.l-feat-card p { margin: 0; color: var(--ink-2); }
.l-feat-card.is-cert { background: #14213d; color: #ffffff; box-shadow: none; }
.l-feat-card.is-cert p { color: #cbd2e1; }
.l-feat-tag { align-self: flex-start; padding: 0.2rem 0.75rem; border-radius: 999px; font-weight: 700; font-size: 0.82rem; }
.l-feat-tag.is-practice { background: var(--flame-soft); color: var(--flame-ink); }
.l-feat-tag.is-cert { background: #c9a24d; color: #14213d; }
.l-feat-foot { margin-top: auto; }
.l-feat-card.is-cert .l-feat-foot { color: #c9a24d; }
.l-heat { display: grid; grid-template-columns: repeat(9, 1fr); gap: 5px; padding: 0.8rem; border-radius: 14px; background: var(--bg); }
.l-heat span { display: grid; place-items: center; height: 2rem; border-radius: 6px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-family: var(--font-text); font-size: 0.9rem; }
.l-heat .h1 { background: var(--flame-soft); color: var(--flame-ink); box-shadow: none; }
.l-heat .h2 { background: var(--flame-line); color: var(--flame-ink); box-shadow: none; }
.l-heat .h3 { background: var(--flame); color: #ffffff; font-weight: 700; box-shadow: none; }
.l-certs { position: relative; height: 11rem; }
.l-cert-mini { position: absolute; left: 0.6rem; top: 0.4rem; display: flex; flex-direction: column; align-items: center; gap: 0.1rem; width: 15.5rem; height: 10rem; padding: 0.8rem; border-radius: 6px; background: #f6f1e7; color: #14213d; text-align: center; transform: rotate(-4deg); box-shadow: 0 14px 30px rgb(0 0 0 / 0.35); }
.l-cert-mini small { color: #b08d57; font-weight: 800; font-size: 0.55rem; letter-spacing: 0.25em; }
.l-cert-mini strong { font-family: Fraunces, Georgia, serif; font-size: 0.95rem; }
.l-cert-name { margin-top: 0.35rem; border-bottom: 1px solid #b08d57; font-family: Fraunces, Georgia, serif; font-size: 1.1rem; }
.l-cert-stats { display: flex; gap: 0.35rem; margin-top: 0.5rem; font-size: 0.6rem; font-weight: 700; }
.l-cert-stats span { padding: 0.15rem 0.4rem; border-radius: 4px; background: #ffffff; }
.l-cert-seal { display: block; width: 1.6rem; height: 1.6rem; margin-top: auto; border-radius: 50%; background: #c9a24d; }
.l-cert-mini.is-kids { left: 14rem; top: 1.6rem; align-items: flex-start; width: 12.5rem; height: 8.8rem; background: linear-gradient(180deg, #a9dcff, #e8f8ff); color: #12305a; text-align: left; transform: rotate(5deg); font-family: "Baloo 2", system-ui, sans-serif; }
.l-cert-mini.is-kids small { padding: 0 0.4rem; border-radius: 999px; background: #ffd84d; color: #12305a; letter-spacing: 0.15em; }
.l-cert-mini.is-kids strong { font-family: inherit; font-size: 1rem; }
.l-cert-mini.is-kids .l-cert-name { border: 0; color: #3f63ff; font-family: inherit; font-weight: 800; font-size: 0.85rem; }
.l-cert-hill { display: block; align-self: stretch; height: 1.4rem; margin-top: auto; border-radius: 40% 40% 0 0; background: #5fd38d; }

@media (max-width: 900px) {
  .home-extras, .l-feat-grid, .cert-layout { grid-template-columns: minmax(0, 1fr); }
}


/* Úvodní stránka: certifikát s ověřením v telefonu (QR zůstává vidět vedle telefonu) */
.l-cert-scene { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(8.5rem, 31%); align-items: center; gap: 0.4rem; margin: 0.4rem 0 0.8rem; padding: 0.6rem 0 0.4rem; }
.l-cert-doc { position: relative; transform: rotate(-2deg); border-radius: 4px; box-shadow: 0 22px 44px rgb(0 0 0 / 0.45); }
.l-cert-doc [data-cert-fit] { border-radius: 4px; }
.l-cert-scan { position: absolute; left: 83%; top: 79%; width: 9.4%; height: 13.2%; border: 3px solid #a3ff12; border-radius: 6px; box-shadow: 0 0 16px rgb(163 255 18 / 0.6); }
.l-phone { position: relative; justify-self: end; width: 100%; max-width: 11rem; padding: 0.5rem; border-radius: 1.5rem; background: #0b1020; box-shadow: 0 22px 44px rgb(0 0 0 / 0.55), inset 0 0 0 2px #2b3655; }
.l-phone-screen { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 0.8rem 0.6rem 0.9rem; border-radius: 1.1rem; background: #ffffff; color: #111111; text-align: center; font-family: Manrope, system-ui, sans-serif; }
.l-phone-notch { display: block; width: 2.4rem; height: 0.25rem; border-radius: 99px; background: #e5e5e0; }
.l-phone-ok { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-top: 0.3rem; border-radius: 50%; background: #e5f6eb; color: #15803d; font-size: 1.25rem; font-weight: 800; }
.l-phone-screen strong { font-size: 0.8rem; line-height: 1.2; }
.l-phone-screen small { color: #6b6b6b; font-size: 0.62rem; }
.l-phone-screen hr { width: 100%; margin: 0.15rem 0; border: 0; border-top: 1px solid #eeeeea; }
.l-phone-name { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 0.82rem; }
.l-phone-screen dl { display: flex; flex-direction: column; gap: 0.3rem; width: 100%; margin: 0; }
.l-phone-screen dl div { display: flex; flex-direction: column; }
.l-phone-screen dt { color: #8a8a85; font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.06em; }
.l-phone-screen dd { margin: 0; font-weight: 800; font-size: 0.72rem; }
@media (max-width: 640px) {
  .l-cert-scene { grid-template-columns: minmax(0, 1fr); }
  .l-phone { justify-self: start; width: 52%; max-width: 12rem; margin: -2.2rem 0 0 0.8rem; }
}


/* Úvodní stránka: funkce ve střídavých řádcích (text + vizuál, u certifikátu obráceně) */
.l-feat-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 2.2rem; margin-bottom: 1.2rem; padding: 1.9rem 2.1rem; border-radius: 26px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.l-feat-row.is-cert { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: #14213d; color: #ffffff; box-shadow: none; }
.l-feat-text { display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; }
.l-feat-text h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.15; }
.l-feat-text p { margin: 0; color: var(--ink-2); }
.l-feat-row.is-cert .l-feat-text p { color: #cbd2e1; }
.l-feat-list { display: flex; flex-direction: column; gap: 0.4rem; margin: 0; padding: 0; list-style: none; font-weight: 600; }
.l-feat-list li::before { content: "✓"; display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; margin-right: 0.5rem; border-radius: 50%; background: var(--mint-soft); color: var(--ok-ink); font-size: 0.75rem; }
.l-feat-row.is-cert .l-feat-list li::before { background: rgb(201 162 77 / 0.2); color: #c9a24d; }
.l-feat-text .btn { margin-top: 0.4rem; }
.l-train { display: flex; flex-direction: column; gap: 0.7rem; padding: 1.1rem; border-radius: 20px; background: var(--bg); }
.l-train .l-heat { padding: 0; background: none; }
.l-train-result { display: flex; flex-direction: column; gap: 0.45rem; }
.l-train-head { display: flex; align-items: baseline; justify-content: space-between; color: var(--ink-2); font-weight: 700; font-size: 0.85rem; }
.l-train-head small { padding: 0 0.5rem; border-radius: 999px; background: var(--paper); color: var(--ink-3); font-weight: 600; font-size: 0.72rem; }
.l-train-row { display: grid; grid-template-columns: 2rem minmax(0, 1fr) 5.5rem; align-items: center; gap: 0.7rem; padding: 0.4rem 0.7rem; border-radius: 12px; background: var(--paper); }
.l-train-row b { font-family: var(--font-text); font-size: 1.15rem; text-align: center; }
.l-train-bars { display: flex; flex-direction: column; gap: 3px; }
.l-train-bars i { display: block; height: 0.38rem; border-radius: 99px; background: var(--flame-line); }
.l-train-bars i + i { background: var(--mint); }
.l-train-row small { color: var(--ok-ink); font-weight: 700; white-space: nowrap; }
@media (max-width: 900px) {
  .l-feat-row, .l-feat-row.is-cert { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; padding: 1.4rem; }
  .l-feat-row.is-cert .l-feat-text { order: -1; }
}


/* Horní lišta (lekce, trénink, tabule třídy, administrace): tlačítko Vzhled */
.chip-theme-bar { gap: 0.45rem; padding-inline: 0.85rem 1rem; font-family: var(--font-display); font-weight: 600; }
@media (max-width: 520px) { .chip-theme-bar span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }


/* Souhlas s měřením (Google Analytics): obě volby stejně výrazné */
.consent { position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 60; width: min(40rem, calc(100vw - 2rem)); transform: translateX(-50%); }
.consent[hidden] { display: none; }
.consent-card { display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem 1.2rem; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 18px 44px rgb(var(--shade) / 0.25); }
.consent-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.consent-card p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.consent-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.6rem; }
.consent-btn { min-width: 9rem; justify-content: center; }
@media (min-width: 901px) { body.has-sidebar .consent { left: calc(50% + var(--sidebar-w) / 2); width: min(40rem, calc(100vw - var(--sidebar-w) - 2rem)); } }
/* Vývojové prostředí (config 'environment' => 'development') */
.dev-badge { position: fixed; left: 0.5rem; bottom: 0.5rem; z-index: 70; padding: 0.15rem 0.55rem; border-radius: 6px; background: #dc2626; color: #ffffff; font: 700 0.75rem/1.4 system-ui, sans-serif; letter-spacing: 0.08em; pointer-events: none; }


/* Administrace: Odesílání e-mailů (SMTP) */
#odesilani select { min-height: 2.75rem; padding: 0 0.7rem; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; }
#odesilani .field-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.8rem; }
#odesilani .field-row label { display: flex; flex-direction: column; gap: 0.35rem; }
#odesilani .edit-form { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }

/* Menší obrazovky -------------------------------------------------------------------- */

@media (max-width: 960px) {
  .upnext { grid-template-columns: 1fr; gap: 1.6rem; padding: 1.5rem; }
  .dash { grid-template-columns: 1fr 1fr; }
  .tile-level { grid-column: 1 / -1; }
  .duo { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; }
  .game-page { grid-template-columns: 1fr; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hud { margin-left: 0; }
  .admin-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: 1fr; }
  .account { grid-template-columns: 1fr; }
  .account-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  h1, .upnext h1 { font-size: var(--step-3); }
  .dash { grid-template-columns: 1fr; }
  .promo-copy { max-width: 100%; }
  .rain { display: none; }
  .perks { grid-template-columns: 1fr; }
  .sheet { padding: 1.2rem 1rem 1rem; }
  .figures { gap: 0.75rem 1.5rem; }
  .hall-cols { grid-template-columns: 1fr; }
  .chip-name { display: none; }
  .profiles-head h1 { font-size: var(--step-3); }
  .profile-card { width: 10rem; }
  .avatar-big { width: 5rem; height: 5rem; font-size: 2.4rem; }
  .trial { flex-wrap: wrap; }
  .modal-card, .prompt-page { padding: 1.4rem 1.2rem; }
  .prompt-pair, .form-pair, .form-triple { grid-template-columns: 1fr; }
  .auth-card { padding: 1.4rem 1.2rem; }
  .prompt h2 { font-size: 1.6rem; }
  .admin-facts-row { grid-template-columns: 1fr; }
  .admin-logout { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Hodnocení webu (p47): hvězdy 1–5, okno po 5. lekci a po certifikátu, Můj účet, řádek v úvodu ----------- */
.rate-stars { margin: 0; padding: 0; border: 0; min-width: 0; }
.rate-stars-row { display: inline-flex; gap: 0.15rem; }
.rate-stars label { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 14px; cursor: pointer; }
.rate-stars svg { width: 2.5rem; height: 2.5rem; overflow: visible; }
.rate-stars path { fill: transparent; stroke: var(--ink-3); stroke-width: 1.6; stroke-linejoin: round; transition: fill 0.12s ease, stroke 0.12s ease, transform 0.12s ease; transform-origin: center; }
.rate-stars input:focus-visible + label { outline: 3px solid var(--brand); outline-offset: 1px; }
/* vybraná hvězda a všechny před ní */
.rate-stars-row:has(input[value="1"]:checked) label:nth-of-type(-n+1) path,
.rate-stars-row:has(input[value="2"]:checked) label:nth-of-type(-n+2) path,
.rate-stars-row:has(input[value="3"]:checked) label:nth-of-type(-n+3) path,
.rate-stars-row:has(input[value="4"]:checked) label:nth-of-type(-n+4) path,
.rate-stars-row:has(input[value="5"]:checked) label:nth-of-type(-n+5) path { fill: var(--sun); stroke: var(--sun-edge); }
/* náhled při najetí myší: jen hvězdy po tu pod ukazatelem */
@media (hover: hover) {
  .rate-stars-row:hover label path { fill: transparent; stroke: var(--ink-3); }
  .rate-stars-row:has(label:nth-of-type(1):hover) label:nth-of-type(-n+1) path,
  .rate-stars-row:has(label:nth-of-type(2):hover) label:nth-of-type(-n+2) path,
  .rate-stars-row:has(label:nth-of-type(3):hover) label:nth-of-type(-n+3) path,
  .rate-stars-row:has(label:nth-of-type(4):hover) label:nth-of-type(-n+4) path,
  .rate-stars-row:has(label:nth-of-type(5):hover) label:nth-of-type(-n+5) path { fill: var(--sun); stroke: var(--sun-edge); }
  .rate-stars label:hover path { transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) { .rate-stars path { transition: none; } }

.rating-dialog { width: min(32rem, calc(100vw - 2rem)); }
.rating-form { display: flex; flex-direction: column; gap: 0.75rem; }
.rating-form[hidden], .rating-thanks[hidden], .rating-comment[hidden] { display: none; }
.rating-label { min-height: 1.5em; margin: -0.2rem 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.rating-comment small { font-weight: 400; color: var(--ink-2); }
.rating-comment textarea { width: 100%; box-sizing: border-box; padding: 0.6rem 0.8rem; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; resize: vertical; }
.rating-comment textarea:focus-visible { outline-offset: 0; border-color: var(--brand); background: var(--paper); }
.rating-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 0.3rem; }
.rating-actions .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.rating-thanks { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 0.8rem 0 0.4rem; text-align: center; }
.rating-thanks h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; }
.rating-thanks p { margin: 0 0 0.4rem; color: var(--ink-2); max-width: 26rem; }
.rating-thanks-icon { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--mint-soft); color: var(--ok-ink); }

.rating-account { display: grid; gap: 0.8rem; }
.rating-account .rate-stars label { width: 2.6rem; height: 2.6rem; }
.rating-account .rate-stars svg { width: 2.1rem; height: 2.1rem; }
.rating-account-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; }
.rating-account .field-note { margin: 0; }

/* řádek s průměrem vedle tlačítka na úvodní stránce (od 10 hodnocení) */
.l-rating { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; color: var(--ink); font-size: 0.95rem; text-decoration: none; }
.l-rating:hover .l-rating-num { text-decoration: underline; text-underline-offset: 3px; }
.l-rating-stars { display: inline-flex; gap: 1px; }
.l-rating-stars svg { width: 1.1rem; height: 1.1rem; }
.l-rating-stars .is-full { fill: var(--sun); }
.l-rating-stars .is-empty { fill: var(--line); }
.l-rating-num { color: var(--ink-2); }
.l-rating-num strong { color: var(--ink); }

/* výpis hodnocení dole na úvodu (p52): tři karty vedle sebe, posouvání se zarážkami */
.l-reviews { gap: 1.4rem; }
.l-reviews-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; }
.l-reviews-head h2 { max-width: 20em; }
.l-reviews-side { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.l-reviews-nav { display: flex; gap: 0.6rem; }
.l-reviews-nav[hidden] { display: none; }
.l-reviews-btn { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; padding: 0; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: 0 3px 0 var(--edge), inset 0 0 0 2px var(--line); cursor: pointer; }
.l-reviews-btn.is-next { background: var(--brand); color: var(--on-brand); box-shadow: 0 3px 0 var(--brand-edge); }
.l-reviews-btn:disabled { opacity: 0.4; cursor: default; }
.l-reviews-track { --gap: 1.4rem; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); gap: var(--gap); margin: 0; padding: 0.3rem 0.2rem 1rem; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 0.2rem; scrollbar-width: none; overscroll-behavior-x: contain; }
.l-reviews-track::-webkit-scrollbar { display: none; }
.l-reviews-track:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; border-radius: 22px; }
.l-review { scroll-snap-align: start; display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; padding: 1.5rem; border-radius: 22px; background: var(--paper); box-shadow: 0 5px 0 var(--edge), inset 0 0 0 2px var(--line); }
.l-review-stars { color: var(--line); font-size: 1.25rem; letter-spacing: 0.1em; line-height: 1; }
.l-review-stars .is-on { color: var(--sun); }
.l-review-text { margin: 0; }
.l-review-text p { margin: 0; font-size: 1.05rem; line-height: 1.55; overflow-wrap: anywhere; }
.l-review-text p::before { content: open-quote; }
.l-review-text p::after { content: close-quote; }
.l-review-by { display: flex; align-items: center; gap: 0.7rem; margin: auto 0 0; }
.l-review-by strong { display: block; font-family: var(--font-display); }
.l-review-by small { color: var(--ink-2); }
.l-reviews-how { align-self: flex-start; color: var(--brand); font-family: var(--font-display); font-weight: 700; }
@media (max-width: 960px) { .l-reviews-track { grid-auto-columns: calc((100% - var(--gap)) / 2); } }
@media (max-width: 620px) { .l-reviews-track { grid-auto-columns: 86%; } }
@media (prefers-reduced-motion: reduce) { .l-reviews-track { scroll-behavior: auto; } }

/* administrace → Hodnocení */
.rating-admin-avg { font-family: var(--font-display); font-size: 2rem; }
.rating-admin-dist { display: grid; gap: 0.3rem; max-width: 28rem; margin: 0.4rem 0 0.8rem; }
.rating-admin-dist div { display: grid; grid-template-columns: 3rem 1fr; align-items: center; gap: 0.6rem; }
.rating-admin-dist dt { font-weight: 700; }
.rating-admin-dist dd { display: flex; align-items: center; gap: 0.6rem; margin: 0; color: var(--ink-2); }
.rating-admin-bar { flex: 1; height: 0.6rem; border-radius: 999px; background: var(--brand-soft); overflow: hidden; }
.rating-admin-bar span { display: block; height: 100%; background: var(--sun); }
.rating-admin-stars { color: var(--sun-edge); letter-spacing: 0.08em; }
.fb-item.is-hidden-rating { opacity: 0.6; }
/* administrace → Hodnocení: zápis hodnocení přijatého mimo web (p48) */
#pridat .admin-form-row { display: flex; flex-wrap: wrap; gap: 1rem; }
#pridat .admin-form-row label { flex: 1 1 12rem; }
#pridat input[type="date"], #pridat select { width: 100%; box-sizing: border-box; min-height: 2.9rem; padding: 0.4rem 0.8rem; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; }
#pridat input[type="date"]:focus-visible, #pridat select:focus-visible { outline-offset: 0; border-color: var(--brand); background: var(--paper); }
.rating-threshold { margin-top: 0.8rem; }
.rating-threshold-row { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.rating-threshold-row input[type="number"] { width: 6rem; }
/* úprava ručně zapsaného hodnocení (p51) */
.rating-edit { margin-top: 0.6rem; }
.rating-edit > summary { cursor: pointer; font-weight: 700; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; width: max-content; }
.rating-edit[open] > summary { margin-bottom: 0.8rem; }
.rating-edit .admin-form-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.rating-edit .admin-form-row label { flex: 1 1 12rem; }
.rating-edit input[type="date"], .rating-edit select, .rating-edit input[type="text"] { width: 100%; box-sizing: border-box; min-height: 2.9rem; padding: 0.4rem 0.8rem; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; }
/* souhlas se zveřejněním komentáře (okno hodnocení, Můj účet, administrace; p52) */
.rating-publish { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.95rem; line-height: 1.4; cursor: pointer; }
.rating-publish[hidden] { display: none; }
.rating-publish input { flex: none; width: 1.15rem; height: 1.15rem; margin: 0.15rem 0 0; accent-color: var(--brand); }
.rating-publish small { display: block; color: var(--ink-2); }
.fb-state.is-public { background: var(--brand-soft); color: var(--brand); }
.fb-state.is-waiting { background: var(--sun-soft); color: var(--ink); }

/* Magazín (p54): přehled /blog (návrh A), článek, obálky, karty lekcí ------------------------- */

/* barvy témat: jemná barva prstu (pozadí, štítek) a sytá barva motivu (klávesy, tečky) */
.t-basics  { --topic: var(--index);  --topic-strong: var(--brand); }
.t-speed   { --topic: var(--pinky);  --topic-strong: var(--flame); }
.t-health  { --topic: var(--middle); --topic-strong: var(--mint); }
.t-schools { --topic: var(--ring);   --topic-strong: var(--sun-2); }
.t-tips    { --topic: var(--thumb);  --topic-strong: color-mix(in srgb, var(--thumb) 40%, var(--brand)); }

.bl, .ar { display: flex; flex-direction: column; gap: 1.6rem; }
.bl-head { display: grid; gap: 0.45rem; max-width: 46rem; }
.bl-head .l-kicker { margin: 0; }
.bl-head h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); line-height: 1.08; }
.bl-lead { margin: 0; color: var(--ink-2); font-size: var(--step-1); }

.bl-topics { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.bl-topics a {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.6rem; padding: 0.3rem 1rem;
  border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line);
  color: var(--ink); font-family: var(--font-display); font-weight: 600; text-decoration: none;
}
.bl-topics a i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--topic-strong); }
.bl-topics a:hover { box-shadow: inset 0 0 0 2px var(--brand-line); }
.bl-topics a[aria-current="page"] { background: var(--ink); color: var(--paper); box-shadow: none; }

.bl-pill {
  align-self: flex-start; padding: 0.15rem 0.7rem; border-radius: 999px;
  background: color-mix(in srgb, var(--topic) 55%, var(--paper)); color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: var(--step--1);
}
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; color: var(--ink-2); font-size: 0.95rem; }
.bl-more { margin-left: auto; color: var(--brand); font-family: var(--font-display); font-weight: 700; }

a.bl-featured, a.bl-card { color: inherit; text-decoration: none; transition: border-color 0.15s, transform 0.1s; }
a.bl-featured:hover, a.bl-card:hover { border-color: var(--brand-line); }
a.bl-featured:active, a.bl-card:active { transform: translateY(2px); }
.bl-featured { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.8rem; align-items: center; padding: 1.1rem; }
.bl-featured .ar-cover { aspect-ratio: 16 / 10; }
.bl-featured-text { display: flex; flex-direction: column; gap: 0.8rem; padding-right: 0.8rem; }
.bl-featured h2 { font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.12; }
.bl-perex { margin: 0; color: var(--ink-2); font-size: var(--step-1); }

.bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.4rem; }
.bl-card { display: flex; flex-direction: column; gap: 0.7rem; padding: 0.8rem 0.8rem 1.1rem; }
.bl-card h2, .bl-card h3 { margin: 0 0.25rem; font-size: var(--step-1); line-height: 1.22; }
.bl-card .bl-pill { margin: 0.1rem 0.25rem 0; }
.bl-card .bl-meta { margin: auto 0.25rem 0; }
.bl-empty { margin: 0; padding: 1.4rem 1.6rem; }
.bl-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.bl-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; padding: 1.5rem 1.8rem; border-radius: 22px; background: var(--brand-soft); }
.bl-cta > span { display: grid; gap: 0.2rem; flex: 1 1 18rem; }
.bl-cta strong { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); line-height: 1.2; }

/* obálka: vlastní obrázek, nebo klávesnice v barvě tématu */
.ar-cover { display: block; overflow: hidden; border-radius: 16px; background: var(--bg); aspect-ratio: 16 / 9; }
.ar-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ar-cover.is-keys { display: grid; place-items: center; background: color-mix(in srgb, var(--topic) 32%, var(--paper)); }
.ar-cover-kb {
  display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 0.3rem; width: 72%; padding: 3%;
  border-radius: 14px; background: rgb(var(--paper-rgb) / 0.45);
}
.is-big .ar-cover-kb { gap: 0.45rem; }
.ar-cover-kb i { aspect-ratio: 1.1; border-radius: 22%; background: rgb(var(--paper-rgb) / 0.8); }
.ar-cover-kb i.is-on { background: var(--topic-strong); box-shadow: inset 0 -3px 0 rgb(var(--shade) / 0.18); }

.ar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: 2rem; align-items: start; }
.ar-main { display: flex; flex-direction: column; gap: 1.1rem; padding: clamp(1.25rem, 4vw, 2.4rem) clamp(1.25rem, 4vw, 2.75rem); }
.ar-crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; color: var(--ink-2); font-family: var(--font-display); font-weight: 600; }
.ar-crumbs a { color: var(--ink-2); }
.ar-main h1 { font-size: clamp(2rem, 4.2vw, 2.6rem); line-height: 1.1; }
.ar-perex { margin: 0; color: var(--ink-2); font-size: 1.3rem; line-height: 1.55; }
.ar-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.1rem; color: var(--ink-2); font-size: 0.95rem; }
.ar-author { display: inline-flex; align-items: center; gap: 0.55rem; }
.ar-author strong { color: var(--ink); }
.ar-avatar {
  display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--brand); color: var(--on-brand); font-family: var(--font-display); font-weight: 800; font-size: 0.8rem;
}
.ar-langs { margin-left: auto; }
.ar-langs a { color: var(--brand); }
.ar-main > .ar-cover { aspect-ratio: 2 / 1; margin: 0.3rem 0 0.6rem; }

.ar-body { max-width: 44rem; font-size: 1.15rem; line-height: 1.7; }
.ar-body > * { margin: 0 0 1.15rem; }
.ar-body > :last-child { margin-bottom: 0; }
.ar-body h2 { margin: 2.1rem 0 0.8rem; font-size: clamp(1.45rem, 2.6vw, 1.8rem); line-height: 1.2; scroll-margin-top: 1.5rem; }
.ar-body h3 { margin: 1.6rem 0 0.6rem; font-size: var(--step-1); }
.ar-body ul, .ar-body ol { padding-left: 1.5rem; }
.ar-body li + li { margin-top: 0.35rem; }
.ar-body a { color: var(--brand); text-underline-offset: 0.15em; }
.ar-body blockquote { margin-inline: 0; padding: 0.2rem 0 0.2rem 1.2rem; box-shadow: inset 4px 0 0 var(--topic-strong); color: var(--ink-2); }
.ar-body blockquote p { margin: 0; }
.ar-body hr { height: 2px; margin: 2rem 0; border: 0; background: var(--line); }
.ar-tip { display: grid; gap: 0.35rem; padding: 1rem 1.25rem; border-radius: 16px; background: var(--sun-soft); box-shadow: inset 0 0 0 2px var(--sun-line); color: var(--ink); }
.ar-tip-label { font-family: var(--font-display); font-weight: 700; }
.ar-tip > :not(.ar-tip-label) { margin: 0; }
.ar-figure img { display: block; width: 100%; height: auto; border-radius: 16px; }
.ar-figure figcaption { margin-top: 0.5rem; color: var(--ink-2); font-size: 0.95rem; text-align: center; }

.ar-body a.ar-try, .ar-try {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.1rem; padding: 1rem 1.2rem;
  border-radius: 18px; background: var(--brand-soft); color: var(--ink); text-decoration: none;
}
.ar-try-key {
  display: grid; place-items: center; flex: none; width: 3.4rem; height: 3.4rem; border-radius: 14px;
  background: var(--brand); box-shadow: 0 4px 0 var(--brand-edge); color: var(--on-brand);
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1;
}
.ar-try-text { display: grid; flex: 1 1 9rem; line-height: 1.3; }
.ar-try-text small { color: var(--ink-2); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; }
.ar-try-text strong { font-family: var(--font-display); font-size: var(--step-1); }
.ar-try:hover .btn { filter: brightness(1.06); }

.ar-side { position: sticky; top: 1.25rem; display: flex; flex-direction: column; gap: 1.1rem; }
.ar-toc { display: flex; flex-direction: column; gap: 0.1rem; padding: 1rem; }
.ar-toc strong { padding: 0 0.6rem 0.4rem; font-family: var(--font-display); }
.ar-toc a { padding: 0.4rem 0.6rem; border-radius: 10px; color: var(--ink-2); font-size: 0.95rem; line-height: 1.35; text-decoration: none; }
.ar-toc a:hover { background: var(--bg); color: var(--ink); }
.ar-side-cta { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.2rem; border-radius: 20px; background: var(--brand); box-shadow: 0 5px 0 var(--brand-edge); color: var(--on-brand); }
.ar-side-cta strong { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.25; }
.ar-side-cta .btn { align-self: flex-start; background: var(--paper); color: var(--brand); box-shadow: 0 4px 0 rgb(var(--shade) / 0.25); }
.ar-copy { width: 100%; }
.ar-related { display: flex; flex-direction: column; gap: 1rem; }
.ar-preview a { color: inherit; }

@media (max-width: 960px) {
  .ar-layout { grid-template-columns: minmax(0, 1fr); }
  .ar-side { position: static; }
}
@media (max-width: 760px) {
  .bl-featured { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .bl-featured-text { padding: 0 0.3rem 0.3rem; }
  .ar-main > .ar-cover { aspect-ratio: 16 / 9; }
  .ar-body { font-size: 1.08rem; }
  .ar-langs { margin-left: 0; }
}

/* Administrace → Články (p54) */
.adm-ar-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; margin-bottom: 1rem; }
.adm-ar-head h2 { margin: 0; }
.adm-ar-langs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.adm-ar-langs a { padding: 0.3rem 0.85rem; border-radius: 999px; background: var(--bg); color: var(--ink-2); font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.adm-ar-langs a small { opacity: 0.75; }
.adm-ar-langs a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.adm-ar-new { margin-left: auto; }
.adm-ar-table-wrap { overflow-x: auto; }
.adm-ar-table { width: 100%; border-collapse: collapse; }
.adm-ar-table th { padding: 0.4rem 0.6rem; color: var(--ink-3); font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; text-align: left; }
.adm-ar-table td { padding: 0.7rem 0.6rem; border-top: 2px solid var(--line); vertical-align: top; }
.adm-ar-title { color: var(--ink); font-family: var(--font-display); font-weight: 700; }
.adm-ar-url { display: block; margin-top: 0.2rem; padding: 0; background: none; color: var(--ink-3); font-size: 0.8rem; overflow-wrap: anywhere; }
.adm-ar-state { padding: 0.15rem 0.6rem; border-radius: 999px; font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.adm-ar-state.is-live { background: var(--mint-soft); color: var(--ok-ink); }
.adm-ar-state.is-plan { background: var(--sun-soft); color: var(--sun-ink); }
.adm-ar-state.is-draft { background: var(--mod); color: var(--ink-2); }
.adm-ar-tr { color: var(--ink-2); font-family: var(--font-display); font-weight: 600; }
.adm-ar-back { margin: 0 0 0.8rem; }

.adm-ar-edit { display: grid; grid-template-columns: minmax(0, 1fr) 23rem; gap: 1.2rem; align-items: start; }
.adm-ar-edit .admin-panel { margin-bottom: 0; }
.adm-ar-main, .adm-ar-side .admin-panel { display: grid; gap: 1rem; }
.adm-ar-main h2, .adm-ar-side h2 { margin: 0; }
.adm-ar-side { display: grid; gap: 1.2rem; }
.adm-ar-edit label { display: grid; gap: 0.3rem; font-weight: 700; }
.adm-ar-edit label small { color: var(--ink-2); font-size: var(--step--1); font-weight: 400; }
.adm-ar-edit input[type="text"], .adm-ar-edit input[type="datetime-local"], .adm-ar-edit select, .adm-ar-edit textarea,
.adm-ar-link select {
  width: 100%; box-sizing: border-box; min-height: 2.9rem; padding: 0.5rem 0.8rem;
  border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-weight: 400;
}
.adm-ar-edit input:focus-visible, .adm-ar-edit select:focus-visible, .adm-ar-edit textarea:focus-visible { outline-offset: 0; border-color: var(--brand); background: var(--paper); }
.adm-ar-edit textarea { line-height: 1.5; resize: vertical; }
.adm-ar-edit #ar-body { min-height: 26rem; font-family: var(--font-text); font-size: 0.95rem; line-height: 1.6; }
.adm-ar-edit [aria-invalid="true"] { border-color: var(--error); }
.adm-ar-edit .adm-ar-err { color: var(--error-ink); font-weight: 700; }
.adm-ar-slug { display: flex; align-items: center; overflow: hidden; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); font-weight: 400; }
.adm-ar-slug:focus-within { border-color: var(--brand); background: var(--paper); }
.adm-ar-slug > span { padding-left: 0.8rem; color: var(--ink-3); font-family: var(--font-text); font-size: 0.85rem; white-space: nowrap; }
.adm-ar-edit .adm-ar-slug input[type="text"] { min-width: 6rem; padding-left: 0.1rem; border: 0; background: transparent; font-family: var(--font-text); font-size: 0.9rem; }
.adm-ar-body { display: grid; gap: 0.45rem; }
.adm-ar-body > label { font-weight: 700; }
.adm-ar-tools { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.adm-ar-tools button {
  min-height: 2.2rem; padding: 0 0.8rem; border: 0; border-radius: 10px; background: var(--bg);
  box-shadow: inset 0 0 0 2px var(--line); color: var(--ink); font-family: var(--font-display); font-weight: 600; cursor: pointer;
}
.adm-ar-tools button:hover { box-shadow: inset 0 0 0 2px var(--brand-line); }
.adm-ar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; }
.adm-ar-actions .btn { margin: 0; }
.adm-ar-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.adm-ar-snippet { display: grid; gap: 0.15rem; padding: 0.8rem 1rem; border-radius: 12px; background: var(--bg); font-family: Arial, Helvetica, sans-serif; overflow-wrap: anywhere; }
.adm-ar-snippet [data-snippet-url] { color: var(--ink-2); font-size: 0.8rem; }
.adm-ar-snippet strong { color: var(--brand); font-size: 1.1rem; font-weight: 400; line-height: 1.3; }
.adm-ar-snippet [data-snippet-desc] { color: var(--ink-2); font-size: 0.875rem; line-height: 1.45; }
.adm-ar-count-row { display: flex; justify-content: space-between; gap: 1rem; }
.adm-ar-edit .adm-ar-count-row small.is-over { color: var(--error-ink); font-weight: 700; }
.adm-ar-edit .check { display: flex; align-items: center; gap: 0.6rem; font-weight: 400; }
.adm-ar-cover-opt img { border-radius: 8px; object-fit: cover; background: var(--bg); }

.adm-ar-extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 1.2rem; align-items: start; margin-top: 1.2rem; }
.adm-ar-extra .admin-panel { display: grid; gap: 0.8rem; margin-bottom: 0; }
.adm-ar-extra h2 { margin: 0; }
.adm-ar-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.adm-ar-upload .btn { margin: 0; }
.adm-ar-images { display: grid; gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.adm-ar-images li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto auto; gap: 0.8rem; align-items: center; }
.adm-ar-images img { width: 7.5rem; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--bg); }
.adm-ar-images span { display: grid; gap: 0.2rem; min-width: 0; }
.adm-ar-images code { overflow-wrap: anywhere; font-size: 0.8rem; }
.adm-ar-images small { color: var(--ink-2); }
.adm-ar-images form { margin: 0; }
.adm-ar-trans { display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.adm-ar-trans li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 0.6rem; align-items: center; }
.adm-ar-link { display: flex; gap: 0.5rem; align-items: center; }
.adm-ar-link .btn { flex: none; margin: 0; }

@media (max-width: 1000px) { .adm-ar-edit { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .adm-ar-images li { grid-template-columns: 5rem minmax(0, 1fr); }
  .adm-ar-images img { width: 5rem; }
}

/* Kalendář cvičení (p57, varianta B): měsíc po dnech; odstín podle minut, plamínek = splněný denní cíl */
.cal { display: grid; grid-template-columns: minmax(0, 1fr) 14rem; gap: 1.6rem; align-items: start; margin: 1.2rem 0; padding: 1.4rem 1.6rem; scroll-margin-top: 1rem; }
.cal-main { display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.cal-head { display: flex; align-items: center; gap: 0.6rem; }
.cal-head h2 { flex: 1; margin: 0; }
.cal-month { min-width: 8.5rem; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.cal-arrow { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 12px; background: var(--bg); color: var(--ink); }
.cal-arrow:hover { background: var(--brand-soft); }
.cal-arrow.is-off { visibility: hidden; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.45rem; }
.cal-dow { padding-bottom: 0.1rem; color: var(--ink-3); font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; text-align: center; }
.cal-day {
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; min-height: 4.6rem; padding: 0.45rem 0.6rem;
  border: 0; border-radius: 14px; background: var(--bg); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.cal-day:hover { box-shadow: inset 0 0 0 2px var(--brand-line); }
.cal-day.lvl-1 { background: color-mix(in srgb, var(--brand) 10%, var(--paper)); }
.cal-day.lvl-2 { background: color-mix(in srgb, var(--brand) 22%, var(--paper)); }
.cal-day.lvl-3 { background: color-mix(in srgb, var(--brand) 40%, var(--paper)); }
.cal-day.lvl-4 { background: color-mix(in srgb, var(--brand) 72%, var(--paper)); color: var(--on-brand); }
.cal-day.is-out { opacity: 0.4; }
.cal-day.is-future { background: transparent; box-shadow: inset 0 0 0 2px var(--line); cursor: default; }
.cal-day.is-today { box-shadow: inset 0 0 0 3px var(--ink); opacity: 1; }
.cal-num { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; }
.cal-min { display: inline-flex; align-items: center; gap: 0.2rem; font-size: 0.8rem; font-weight: 700; }
.cal-flame { flex: none; fill: #ff7a3d; }
.cal-flame.is-big { width: 1.4rem; height: 1.4rem; }
.cal-detail { min-height: 1.5em; margin: 0; color: var(--ink); font-weight: 600; }
.cal-legend { margin: 0; color: var(--ink-2); font-size: 0.9rem; }
.cal-legend .cal-flame { vertical-align: -3px; }
.cal-side { display: flex; flex-direction: column; gap: 0.75rem; }
.cal-stat { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.9rem 1rem; border-radius: 18px; background: var(--bg); }
.cal-stat strong { display: flex; align-items: center; gap: 0.4rem; font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; line-height: 1.15; }
.cal-stat small { color: var(--ink-2); font-size: 0.88rem; }
.cal-stat.is-streak { background: color-mix(in srgb, #ff7a3d 14%, var(--paper)); }
.cal-stat.is-goal { background: var(--sun-soft); }
@media (max-width: 900px) {
  .cal { grid-template-columns: minmax(0, 1fr); }
  .cal-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .cal-day { min-height: 3.4rem; padding: 0.35rem; border-radius: 10px; }
  .cal-mtext { display: none; } /* na úzké obrazovce jen odstín a plamínek; minuty ukáže klepnutí */
  .cal-grid { gap: 0.3rem; }
}
.cal-day.is-picked { box-shadow: inset 0 0 0 3px var(--brand); }

/* Vlastní text (p57) */
.ct-setup { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 1.4rem; align-items: start; margin-top: 1rem; }
.ct-form { display: flex; flex-direction: column; gap: 0.9rem; padding: 1.4rem 1.5rem; }
.ct-label { font-family: var(--font-display); font-weight: 700; }
.ct-input {
  width: 100%; box-sizing: border-box; min-height: 12rem; padding: 0.9rem 1rem; border: 2px solid var(--line); border-radius: 14px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 1.05rem; line-height: 1.6; resize: vertical;
}
.ct-input:focus-visible { outline-offset: 0; border-color: var(--brand); background: var(--paper); }
.ct-count { min-height: 1.4em; margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.ct-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.7rem; }
.ct-toggle { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.9rem; border-radius: 14px; background: var(--bg); font-weight: 600; cursor: pointer; }
.ct-toggle input { width: 1.2rem; height: 1.2rem; accent-color: var(--brand); }
.ct-fix { display: grid; gap: 0.3rem; padding: 0.8rem 1rem; border-radius: 14px; background: var(--sun-soft); box-shadow: inset 0 0 0 2px var(--sun-line); font-size: 0.95rem; }
.ct-fix p { margin: 0; }
.ct-go { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; }
.ct-go .btn { margin: 0; }
.ct-private { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--ink-2); font-size: 0.9rem; }
.ct-private svg { flex: none; color: var(--ok-ink); }
.ct-recent { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.2rem; }
.ct-recent h2 { margin: 0; font-size: var(--step-1); }
.ct-recent ul { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.ct-recent small { color: var(--ink-3); }
.ct-recent-item {
  display: grid; gap: 0.1rem; width: 100%; padding: 0.6rem 0.75rem; border: 0; border-radius: 12px; background: var(--bg);
  color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.ct-recent-item:hover { box-shadow: inset 0 0 0 2px var(--brand-line); }
.ct-recent-item strong { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; line-height: 1.3; }
.ct-recent-item small { color: var(--ink-2); font-size: 0.82rem; }
.ct-back { padding: 0; border: 0; background: none; color: var(--brand); font-family: var(--font-display); font-size: inherit; cursor: pointer; }
.ct-parts { display: flex; gap: 0.35rem; margin-top: 0.4rem; }
.ct-parts span { width: 2.6rem; height: 0.55rem; border-radius: 99px; background: var(--brand-soft); }
.ct-parts span.is-done { background: color-mix(in srgb, var(--brand) 55%, var(--paper)); }
.ct-parts span.is-now { background: var(--brand); }
@media (max-width: 860px) { .ct-setup { grid-template-columns: minmax(0, 1fr); } }

/* Přehled lekcí: tři karty (Chytrý trénink, Vlastní text, Certifikát) */
.home-extras.has-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .home-extras.has-three { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); } }
.hx-new { padding: 0.1rem 0.55rem; border-radius: 99px; background: var(--brand-soft); color: var(--brand-edge); font-family: var(--font-display); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* Závod s duchem (p58, varianta B): přepínač vždy vidět, duch na liště průběhu, štítek s odstupem */
.ghost-svg { flex: none; fill: #7c4dff; }
.ghost-svg .ghost-eye { fill: #ffffff; }
.ghost-toggle {
  display: inline-flex; align-items: center; gap: 0.7rem; margin-left: auto; padding: 0.45rem 0.6rem 0.45rem 0.8rem;
  border: 0; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line);
  color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.ghost-toggle .ghost-svg { fill: var(--ink-3); }
.ghost-toggle.is-on { background: color-mix(in srgb, #7c4dff 12%, var(--paper)); box-shadow: inset 0 0 0 2px color-mix(in srgb, #7c4dff 45%, var(--paper)); }
.ghost-toggle.is-on .ghost-svg { fill: #7c4dff; }
.ghost-label { display: flex; flex-direction: column; line-height: 1.25; }
.ghost-label strong { font-family: var(--font-display); font-weight: 800; font-size: 0.98rem; }
.ghost-label small { color: var(--ink-2); font-size: 0.8rem; }
.ghost-switch { position: relative; flex: none; width: 2.9rem; height: 1.65rem; border-radius: 99px; background: var(--ink-3); transition: background 0.15s; }
.ghost-switch::after { content: ""; position: absolute; top: 0.2rem; left: 0.2rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #ffffff; transition: transform 0.15s; }
.ghost-toggle.is-on .ghost-switch { background: #7c4dff; }
.ghost-toggle.is-on .ghost-switch::after { transform: translateX(1.25rem); }
.ghost-toggle:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.ghost-chip {
  display: inline-flex; align-items: center; padding: 0.3rem 0.8rem; border-radius: 99px;
  background: color-mix(in srgb, #7c4dff 14%, var(--paper)); color: color-mix(in srgb, #7c4dff 70%, var(--ink));
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; white-space: nowrap;
}
.ghost-chip.is-ahead { background: var(--mint-soft); color: var(--ok-ink); }
/* s duchem je lišta průběhu silnější a uvnitř karty (karta má overflow: hidden, duch by se ořízl) */
.sheet.has-ghost { padding-top: 2.9rem; }
.sheet.has-ghost .bar { top: 14px; left: 1.6rem; right: 13.5rem; height: 12px; border-radius: 99px; }
/* štítek s odstupem vpravo vedle lišty s duchem */
.ghost-chip.is-on-bar { position: absolute; top: 6px; right: 1.2rem; max-width: 11.8rem; justify-content: center; font-size: 0.9rem; }
@media (max-width: 600px) {
  .sheet.has-ghost { padding-top: 3.8rem; }
  .sheet.has-ghost .bar { right: 1.2rem; left: 1.2rem; }
  .ghost-chip.is-on-bar { top: 32px; right: auto; left: 1.2rem; }
}
.sheet.has-ghost .bar > span:first-child { border-radius: 99px; }
/* .bar .ghost-dot: přebít obecné .bar span (lišta průběhu) */
.bar .ghost-dot {
  position: absolute; top: -9px; display: grid; place-items: center; width: 30px; height: 30px; margin-left: -15px;
  border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 3px #7c4dff; transition: left 0.25s linear; pointer-events: none;
}
.bar .ghost-dot[hidden] { display: none; }
.ghost-dot .ghost-svg { width: 20px; height: 20px; }
.ghost-result { display: grid; gap: 0.6rem; width: 100%; max-width: 34rem; margin: 0.4rem auto; }
.ghost-verdict { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: color-mix(in srgb, #7c4dff 70%, var(--ink)); }
.ghost-result.is-won .ghost-verdict, .ghost-verdict.is-won { color: var(--ok-ink); }
.ghost-race { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.5rem 0.8rem; align-items: center; text-align: left; }
.gr-name { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-display); font-weight: 800; }
.gr-name.is-ghost { color: color-mix(in srgb, #7c4dff 70%, var(--ink)); }
.gr-name .ghost-svg { width: 18px; height: 18px; }
.gr-bar { height: 14px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.gr-bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.gr-bar.is-ghost i { background: #b49cff; }
.ghost-challenge { display: inline-flex; align-items: center; gap: 0.4rem; }
.ghost-challenge .ghost-svg { width: 20px; height: 20px; }
.ghost-share { display: grid; gap: 0.6rem; width: 100%; max-width: 34rem; margin: 0.6rem auto 0; padding: 1rem 1.1rem; border-radius: 16px; background: color-mix(in srgb, #7c4dff 8%, var(--paper)); text-align: left; }
.ghost-share-lead { margin: 0; font-weight: 600; }
.ghost-share-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem; }
.ghost-share-row label { display: grid; gap: 0.2rem; flex: 1 1 12rem; font-weight: 600; font-size: 0.9rem; }
.ghost-share-row input { min-height: 2.5rem; padding: 0.35rem 0.7rem; border: 2px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; }
.ghost-share-row input[readonly] { flex: 1 1 14rem; }
.ghost-share-row .btn { margin: 0; }
.ghost-share-note { color: var(--ink-2); }
.tt-ghost { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.6rem; margin-top: 0.7rem; }
.tt-ghost-result { text-align: center; }
.challenge-card { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; max-width: 40rem; margin: 2rem auto; padding: 2rem 2.2rem; text-align: center; }
.challenge-card h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.3rem); line-height: 1.15; }
.challenge-card p { margin: 0; }
.challenge-card .kicker { margin: 0; }
.challenge-card small { color: var(--ink-2); }
.challenge-ghost { display: grid; place-items: center; width: 5.2rem; height: 5.2rem; border-radius: 50%; background: color-mix(in srgb, #7c4dff 12%, var(--paper)); }
.challenge-what { color: var(--ink-2); font-weight: 600; }
@media (max-width: 700px) { .ghost-toggle { margin-left: 0; width: 100%; } }
.meter.is-live .ghost-label small { display: none; }

/* Test rychlosti (p59, návrh v2): skupiny délek, úvod se stopkami, dlaždice, trať, vlastní čas ------- */
.tg-sprint   { --tg: var(--flame); }
.tg-std      { --tg: var(--brand); }
.tg-endure   { --tg: var(--mint); }
.tg-marathon { --tg: #7c4dff; }
.tg-custom   { --tg: var(--sun-2); }
[class*="tg-"] { --tg-soft: color-mix(in srgb, var(--tg) 14%, var(--paper)); --tg-ink: color-mix(in srgb, var(--tg) 75%, var(--ink)); }

/* položka s podnabídkou vypadá jako karta uživatele dole: jeden pruh, šipka uvnitř vpravo (p62) */
.side-item.has-sub { display: flex; align-items: center; border-radius: 14px; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow 0.15s; }
.side-item.has-sub > a { flex: 1; min-width: 0; }
.side-nav .side-item.has-sub > a:hover, .side-nav .side-item.has-sub > a[aria-current="page"] { background: transparent; }
.side-item.has-sub:hover { background: var(--bg); }
.side-item.has-sub.is-current { background: var(--brand-soft); }
.side-item.has-sub:hover, .side-item.has-sub.is-open { box-shadow: inset 0 0 0 2px var(--brand); }
.side-sub-toggle { flex: none; display: grid; place-items: center; align-self: stretch; width: 2.6rem; padding: 0 0.7rem 0 0; border: 0; border-radius: 0 14px 14px 0; background: transparent; color: var(--ink-3); cursor: pointer; }
.side-sub-toggle:hover { color: var(--ink); }
.side-sub-toggle svg { transition: transform 0.15s ease; }
.side-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); } /* sbaleno v, rozbaleno ^ */
.side-sub { display: flex; flex-direction: column; gap: 0.1rem; margin: 0.15rem 0 0.4rem 2.4rem; padding-left: 0.7rem; box-shadow: inset 2px 0 0 var(--line); }
.side-nav .side-sub a { padding: 0.28rem 0.65rem; border-radius: 10px; font-size: 0.93rem; font-weight: 600; }
.side-nav .side-sub a[aria-current="page"] { background: var(--brand); color: var(--on-brand); }

.st-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 1.2rem; align-items: center;
  margin-bottom: 1rem; padding: 1.8rem 2rem; border-radius: 28px; overflow: hidden;
  background: radial-gradient(circle at 84% 42%, var(--paper) 0 7.5rem, transparent 7.6rem),
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 14%, var(--paper)) 0%, color-mix(in srgb, #7c4dff 10%, var(--paper)) 55%, color-mix(in srgb, var(--flame) 10%, var(--paper)) 100%);
  box-shadow: 0 6px 0 var(--edge), 0 0 0 2px var(--line);
}
.st-hero-text { display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; }
.st-hero h1 { margin: 0; font-size: clamp(2.1rem, 4.4vw, 2.9rem); line-height: 1.08; }
.st-lead { margin: 0; max-width: 36rem; color: var(--ink-2); font-size: 1.12rem; }
.st-kick, .st-group { align-self: flex-start; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.75rem; border-radius: 99px; font-family: var(--font-display); font-weight: 800; font-size: 0.88rem; }
.st-kick { background: var(--paper); color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 30%, var(--paper)); }
.st-group { background: var(--tg); color: #ffffff; }
.st-kicks { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; }
.st-crumbs { color: var(--ink-2); font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.st-crumbs a { color: var(--ink-2); }
.st-hero .tt-best { align-self: flex-start; }
.st-art { position: relative; height: 15rem; }
.st-watch { position: absolute; left: 2.6rem; top: 0.4rem; width: 13.5rem; height: 13.5rem; overflow: visible; }
.st-w-ink { fill: var(--ink); }
.st-w-face { fill: var(--paper); stroke: var(--ink); stroke-width: 8; }
.st-w-tick { stroke: var(--line); stroke-width: 2.5; stroke-linecap: round; }
.st-w-track { fill: none; stroke: var(--bg); stroke-width: 16; }
.st-w-arc { fill: none; stroke: var(--tg); stroke-width: 16; stroke-linecap: round; }
.st-w-time { fill: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 40px; }
.st-w-unit { fill: var(--ink-3); font-family: var(--font-display); font-weight: 700; font-size: 13px; }
.st-key {
  position: absolute; display: grid; place-items: center; width: 3.2rem; height: 3rem; border-radius: 12px;
  box-shadow: 0 5px 0 rgb(var(--shade) / 0.25); color: #1c2045; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
}
.st-key.k1 { left: 0; top: 9rem; background: var(--index); transform: rotate(-12deg); }
.st-key.k2 { right: 0; top: 10rem; background: var(--index); transform: rotate(10deg); }
.st-key.k3 { left: 0.6rem; top: 1.6rem; background: var(--pinky); transform: rotate(8deg); }
.st-key.k4 { right: 0.4rem; top: 2.2rem; background: var(--pinky); transform: rotate(-8deg); }
.st-bubble { position: absolute; right: -0.2rem; top: 6.6rem; padding: 0.3rem 0.75rem; border-radius: 99px; background: var(--ink); color: var(--paper); font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; transform: rotate(4deg); white-space: nowrap; }

.tt-durations { flex-wrap: wrap; }
.tt-durations .tt-pill { text-decoration: none; box-shadow: inset 0 0 0 2px var(--tg-soft), 0 3px 0 var(--tg-soft); color: var(--ink); }
.tt-durations .tt-pill:hover { box-shadow: inset 0 0 0 2px var(--tg), 0 3px 0 var(--tg-soft); }
.tt-durations .tt-pill[aria-current="page"] { background: var(--tg); color: #ffffff; box-shadow: 0 3px 0 rgb(var(--shade) / 0.35); }

.st-section { display: flex; flex-direction: column; gap: 0.7rem; margin: 1.6rem 0; }
.st-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.8rem; }
.st-section-head h2 { margin: 0; }
.st-section-head span { color: var(--ink-2); }
.st-tiles { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 0.75rem; padding-top: 0.8rem; }
.st-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0.1rem;
  min-height: 9.4rem; padding: 0.7rem 0.4rem; border-radius: 22px; color: var(--ink); text-decoration: none; text-align: center;
  background: linear-gradient(180deg, var(--tg-soft) 0 2.9rem, var(--paper) 2.9rem);
  box-shadow: 0 6px 0 var(--tg-soft), inset 0 0 0 2px var(--tg-soft); transition: transform 0.1s;
}
.st-tile:hover { box-shadow: 0 6px 0 var(--tg-soft), inset 0 0 0 2px var(--tg); }
.st-tile:active { transform: translateY(3px); }
.st-tile.is-on { background: linear-gradient(160deg, var(--tg) 0%, var(--tg-ink) 100%); color: #ffffff; box-shadow: 0 6px 0 rgb(var(--shade) / 0.45); }
.st-tile-icon { position: absolute; top: 0.7rem; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 12px; background: var(--paper); color: var(--tg); }
.st-tile.is-on .st-tile-icon { background: rgb(255 255 255 / 0.22); color: #ffffff; }
.st-tile strong { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1; }
.st-unit { font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; opacity: 0.85; }
.st-rec { margin-top: 0.15rem; color: var(--ink-2); font-size: 0.74rem; line-height: 1.2; }
.st-tile.is-on .st-rec { color: rgb(255 255 255 / 0.85); }
.st-tag { position: absolute; top: -0.7rem; left: 50%; transform: translateX(-50%); padding: 0.15rem 0.6rem; border-radius: 99px; background: var(--tg); color: #ffffff; font-family: var(--font-display); font-weight: 800; font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.st-tiles.is-small .st-tile { min-height: 7.6rem; }
.st-tiles.is-small .st-tile strong { font-size: 1.8rem; }

.st-track-card { display: flex; flex-direction: column; gap: 1.1rem; margin: 1.6rem 0; padding: 1.5rem 1.6rem; }
.st-track { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); padding: 0 0.3rem; }
.st-track::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: 0.6rem; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--flame), var(--brand) 35%, var(--mint) 62%, #7c4dff); }
.st-stop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.45rem; color: var(--tg-ink); font-family: var(--font-display); font-weight: 800; text-decoration: none; }
.st-dot { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 5px var(--tg); }
.st-stop:hover .st-dot { background: var(--tg); }
.st-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; }
.st-group-card { display: flex; flex-direction: column; gap: 0.45rem; padding: 1rem 1.1rem; border-radius: 20px; background: var(--tg-soft); color: var(--ink-2); font-size: 0.95rem; }
.st-group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.5rem; color: var(--tg); }
.st-group-head strong { color: var(--ink); font-family: var(--font-display); font-size: 1.1rem; }
.st-group-head small { flex-basis: 100%; color: var(--tg-ink); font-family: var(--font-display); font-weight: 800; }
.st-info, .st-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin: 1.6rem 0; }
.st-info-card { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.3rem 1.4rem; }
.st-info-card h2 { margin: 0; font-size: 1.2rem; }
.st-info-card p { margin: 0; color: var(--ink-2); }
.st-info-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 16px; background: var(--tg-soft); color: var(--tg); }
.st-why-card { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.3rem 1.4rem; border-radius: 24px; color: var(--ink-2);
  background: linear-gradient(180deg, var(--tg-soft), var(--paper) 70%); box-shadow: 0 6px 0 var(--tg-soft), 0 0 0 2px var(--tg-soft); }
.st-why-card .st-info-icon { background: var(--paper); }
.st-why-card strong { color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; }
.st-faq h2 { margin: 0 0 0.2rem; }
.st-q { padding: 0.9rem 1.1rem; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 2px var(--line); }
.st-q summary { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.st-q p { margin: 0.6rem 0 0; color: var(--ink-2); }

.st-custom { display: flex; flex-direction: column; gap: 0.9rem; width: 100%; margin-top: 0.4rem; padding: 1.3rem 1.4rem; border-radius: 24px;
  background: linear-gradient(180deg, var(--tg-soft), var(--paper) 60%); box-shadow: 0 5px 0 var(--tg-soft), 0 0 0 2px var(--tg-soft); }
.st-custom-label { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.st-custom-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; }
.st-step { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border: 0; border-radius: 16px; background: var(--paper); box-shadow: 0 4px 0 var(--tg-soft), inset 0 0 0 2px var(--tg-soft); color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; cursor: pointer; }
.st-step:active { transform: translateY(2px); }
.st-display { min-width: 9.5rem; padding: 0.3rem 1rem; border-radius: 18px; background: var(--ink); color: var(--sun); text-align: center; font-family: var(--font-text); font-size: 3rem; font-weight: 600; line-height: 1.15; }
.st-custom-unit { color: var(--ink-2); }
.st-range { width: 100%; height: 2rem; margin: 0; background: transparent; accent-color: var(--tg); --p: 0%; -webkit-appearance: none; appearance: none; }
.st-range::-webkit-slider-runnable-track { height: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--tg) var(--p), color-mix(in srgb, var(--tg) 25%, var(--paper)) var(--p)); }
.st-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -8px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 4px var(--tg), 0 4px 8px rgb(0 0 0 / 0.15); }
.st-range::-moz-range-track { height: 12px; border-radius: 99px; background: color-mix(in srgb, var(--tg) 25%, var(--paper)); }
.st-range::-moz-range-progress { height: 12px; border-radius: 99px; background: var(--tg); }
.st-range::-moz-range-thumb { width: 24px; height: 24px; border: 4px solid var(--tg); border-radius: 50%; background: var(--paper); }
.st-range-scale { display: flex; justify-content: space-between; margin-top: -0.4rem; color: var(--ink-3); font-size: 0.8rem; }
.st-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.st-presets > span { margin-right: 0.3rem; color: var(--ink-2); font-size: 0.95rem; }
.st-custom-tips { display: grid; gap: 0.3rem; margin: 0; padding-left: 1.2rem; color: var(--ink-2); font-size: 0.92rem; }

@media (max-width: 1100px) {
  .st-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 1.2rem; }
  .st-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .st-hero { grid-template-columns: minmax(0, 1fr); padding: 1.4rem; }
  .st-art { display: none; }
  .st-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-track { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 1.2rem; }
  .st-track::before { display: none; }
  .st-info, .st-why, .st-groups { grid-template-columns: minmax(0, 1fr); }
  .st-display { font-size: 2.3rem; min-width: 7.5rem; }
}
/* během testu nejde přepnout délku (jako druh textu); Esc test ukončí */
.tt.is-running .tt-durations .tt-pill { pointer-events: none; opacity: 0.5; }

/* p61: přepínač závodu s duchem v řádku voleb vpravo (nezabírá místo v kartě s textem), odstup v řádku s čísly */
.tt-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.6rem 1.2rem; margin-left: auto; }
.tt-tools .tt-switch, .tt-tools .ghost-toggle { margin-left: 0; }
.tt-bar .ghost-chip { flex: none; font-size: 0.88rem; }
@media (max-width: 700px) {
  .tt-tools { width: 100%; justify-content: space-between; margin-left: 0; }
  .tt-tools .ghost-toggle { width: auto; }
  .tt-bar { flex-wrap: wrap; row-gap: 0.6rem; }
}

/* p61: podnabídka délek v menu jako mřížka štítků (3 sloupce), ať se menu vejde i na nižší obrazovku */
.side-sub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.3rem; margin: 0.2rem 0.4rem 0.5rem 2.4rem; padding-left: 0; box-shadow: none; }
.side-nav .side-sub a { justify-content: center; padding: 0.3rem 0.2rem; border-radius: 9px; background: var(--bg); font-size: 0.85rem; text-align: center; white-space: nowrap; }
.side-nav .side-sub a:last-child { grid-column: 1 / -1; }

/* Hry (p63, návrh v2) ------------------------------------------------------------------------ */
.gc-std { --gc: var(--brand); } .gc-sprint { --gc: var(--flame); } .gc-endure { --gc: var(--mint); }
.gc-custom { --gc: var(--sun-2); } .gc-marathon { --gc: #7c4dff; } .gc-dragon { --gc: #c42a3f; } .gc-frog { --gc: #0a8f9e; }
.side-sub.is-list { grid-template-columns: minmax(0, 1fr); }
.side-nav .side-sub.is-list a { justify-content: flex-start; padding-left: 0.7rem; text-align: left; }
.side-nav .side-sub.is-list a:last-child { grid-column: auto; }

.gm-hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 13rem; margin-bottom: 1rem; padding: 1.8rem 2.1rem; border-radius: 28px;
  background: linear-gradient(120deg, #2437c4 0%, #3d5afe 40%, #7c4dff 75%, #ff6a2b 130%); color: #ffffff; box-shadow: 0 12px 30px rgb(36 55 196 / 0.3); }
.gm-hero-keys { position: absolute; right: -0.5rem; top: 0; width: 25rem; height: 14.5rem; }
.gm-hero-key { font-family: var(--font-display); font-weight: 800; font-size: 28px; fill: #1c2045; }
.gm-hero-text { position: relative; display: flex; flex-direction: column; gap: 0.6rem; max-width: 35rem; }
.gm-hero h1 { margin: 0; color: #ffffff; font-size: clamp(2.1rem, 4.4vw, 2.9rem); line-height: 1.05; }
.gm-hero p { margin: 0; color: #eef0ff; font-size: 1.12rem; }
.gm-kick { align-self: flex-start; padding: 0.25rem 0.75rem; border-radius: 99px; background: rgb(255 255 255 / 0.2); font-family: var(--font-display); font-weight: 800; font-size: 0.88rem; }
.gm-known { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0.3rem 0 1rem; padding: 0.6rem 0.9rem; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 2px var(--line); font-weight: 700; cursor: pointer; }
.gm-known input { position: absolute; opacity: 0; pointer-events: none; }
.gm-switch { position: relative; width: 2.9rem; height: 1.65rem; border-radius: 99px; background: var(--ink-3); transition: background 0.15s; }
.gm-switch::after { content: ""; position: absolute; top: 0.2rem; left: 0.2rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #ffffff; transition: transform 0.15s; }
.gm-known input:checked + .gm-switch { background: var(--brand); }
.gm-known input:checked + .gm-switch::after { transform: translateX(1.25rem); }
.gm-known input:focus-visible + .gm-switch { outline: 3px solid var(--brand); outline-offset: 2px; }
.gm-known small { color: var(--ink-2); font-weight: 400; }
.gm-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem 1.4rem; }
.gm-tile { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; background: var(--paper); color: var(--ink); text-decoration: none;
  box-shadow: 0 8px 24px rgb(var(--shade) / 0.12), 0 0 0 2px var(--line); transition: transform 0.12s; }
a.gm-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgb(var(--shade) / 0.18), 0 0 0 2px var(--gc); }
.gm-tile.is-soon { filter: grayscale(0.55); opacity: 0.72; }
.gm-art { position: relative; display: block; height: 10.5rem; }
.gm-art > svg { display: block; width: 100%; height: 100%; }
.gm-tag { position: absolute; top: 0.75rem; right: 0.75rem; padding: 0.2rem 0.7rem; border-radius: 99px; background: #ffffff; color: var(--gc); font-family: var(--font-display); font-weight: 800; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; box-shadow: 0 3px 8px rgb(0 0 0 / 0.2); }
.gm-tag.is-soon { background: rgb(28 32 69 / 0.75); color: #ffffff; }
.gm-play { position: absolute; left: 50%; bottom: -1.4rem; transform: translateX(-50%); display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--gc); box-shadow: 0 5px 0 rgb(0 0 0 / 0.25), 0 0 0 5px var(--paper); }
.gm-body { display: flex; flex-direction: column; gap: 0.45rem; padding: 1.9rem 1.2rem 1.2rem; }
.gm-body strong { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.gm-desc { color: var(--ink-2); font-size: 0.95rem; line-height: 1.45; }
.gm-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem; margin-top: 0.3rem; font-size: 0.82rem; }
.gm-skill { padding: 0.15rem 0.6rem; border-radius: 99px; background: color-mix(in srgb, var(--gc) 14%, var(--paper)); color: color-mix(in srgb, var(--gc) 75%, var(--ink)); font-family: var(--font-display); font-weight: 800; }
.gm-rec { color: var(--ink-2); font-weight: 700; }
.gm-crumbs { margin-bottom: 0.4rem; }
.gm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.2rem; }
.gm-head h1 { margin: 0; }
/* p141: přepínač obtížnosti zůstane vpravo nahoře i u dlouhého nadpisu (Odpal raketu) */
@media (min-width: 761px) {
  .gm-head:has(> .gm-seg) { flex-wrap: nowrap; align-items: flex-start; }
  .gm-head > .gm-seg { flex: none; margin-top: 0.5rem; }
}
.gm-lead { margin: 0.4rem 0 0.6rem; max-width: 46rem; color: var(--ink-2); font-size: 1.08rem; }
.gm-seg { display: inline-flex; padding: 0.25rem; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); }
.gm-seg button { padding: 0.45rem 0.95rem; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font-family: var(--font-display); font-weight: 800; cursor: pointer; }
.gm-seg button[aria-checked="true"] { background: var(--flame); color: #ffffff; }
.gm-seg button:disabled { cursor: default; opacity: 0.6; }
.gm-tip { color: var(--ink-2); }
.gm-tip kbd { padding: 0.15rem 0.45rem; border-radius: 8px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); font-family: var(--font-display); font-weight: 800; }
.gm-how { margin: 2rem 0 1.2rem; }
.gm-how h2 { margin: 0 0 0.8rem; }
.gm-how ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: how; }
.gm-how li { position: relative; display: flex; flex-direction: column; gap: 0.3rem; padding: 1.1rem 1.2rem 1.1rem 3.6rem; border-radius: 20px; background: var(--paper); box-shadow: 0 0 0 2px var(--line); color: var(--ink-2); counter-increment: how; }
.gm-how li::before { content: counter(how); position: absolute; left: 1rem; top: 1rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-family: var(--font-display); font-weight: 800; }
.gm-how li strong { color: var(--ink); font-family: var(--font-display); }
.gm-board { margin: 1.2rem 0; padding: 1.2rem 1.4rem; }
.gm-board h2 { margin: 0 0 0.6rem; }

/* Závod aut */
.rc { display: flex; flex-direction: column; gap: 0.8rem; }
.rc-track { position: relative; overflow: hidden; border-radius: 24px; box-shadow: 0 10px 30px rgb(28 32 69 / 0.25), 0 0 0 4px var(--paper); }
.rc-track > svg { display: block; width: 100%; height: auto; }
.rc-car { transition: transform 0.08s linear; }
.rc-car.is-bump > g { animation: rc-bump 0.25s; }
@keyframes rc-bump { 30% { transform: translateX(-6px); } 70% { transform: translateX(3px); } }
.rc-hud { position: absolute; top: 14%; padding: 0.45rem 0.85rem; border-radius: 14px; background: rgb(28 32 69 / 0.82); color: #ffffff; font-family: var(--font-display); font-weight: 800; }
.rc-hud.is-pos { right: 31%; display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.rc-hud.is-pos small { font-size: 0.7rem; opacity: 0.8; letter-spacing: 0.06em; text-transform: uppercase; }
.rc-hud.is-pos strong { font-size: 1.9rem; }
.rc-hud.is-pos strong small { font-size: 0.95rem; opacity: 0.7; }
.rc-hud.is-gap { right: 12%; }
.rc-count { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; min-width: 7rem; height: 7rem; padding: 0 1.2rem; border-radius: 99px;
  background: rgb(28 32 69 / 0.85); color: #ffffff; font-family: var(--font-display); font-weight: 800; font-size: 3.6rem; box-shadow: 0 0 0 6px var(--count, #e8344e); }
.rc-count.is-red { --count: #e8344e; } .rc-count.is-green { --count: #2fc489; }
.rc-mini { position: relative; height: 6px; margin: 0.3rem 0.8rem; border-radius: 99px; background: var(--edge); }
.rc-dot { position: absolute; top: -5px; left: 0; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; box-shadow: 0 0 0 3px var(--paper); transition: left 0.1s linear; }
.rc-dot.is-you { background: #ff6a2b; z-index: 2; } .rc-dot.is-ghost { background: #7c4dff; opacity: 0.7; } .rc-dot.is-fast { background: #3d5afe; } .rc-dot.is-medium { background: #14b37d; } .rc-dot.is-slow { background: #f5a300; }
.rc-flag { position: absolute; right: -7px; top: -9px; width: 14px; height: 24px; border-radius: 3px; background: repeating-linear-gradient(0deg, #1c2045 0 6px, #ffffff 6px 12px); }
.rc-live dd { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.rc-card { position: relative; padding: 1.4rem 1.6rem; cursor: text; }
.rc-text { font-family: var(--font-text); font-size: 1.55rem; line-height: 1.75; letter-spacing: 0.02em; white-space: pre-wrap; overflow-wrap: anywhere; }
.rc-text span { color: var(--ink-3); }
.rc-text .ok { color: var(--ok-ink); }
.rc-text .cur { color: var(--ink); background: var(--brand-soft); border-radius: 4px; box-shadow: inset 0 -3px 0 var(--brand); }
.rc-text .cur.bad, .rc-text .bad { color: var(--error-ink); background: color-mix(in srgb, var(--error) 18%, var(--paper)); }
.rc-start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; border-radius: inherit; background: rgb(var(--paper-rgb) / 0.88); color: var(--ink-2); text-align: center; }
.rc-result { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; padding: 1.6rem; text-align: center; }
.rc-verdict { font-family: var(--font-display); font-weight: 800; font-size: 2rem; }
.rc-sub { color: var(--ink-2); font-size: 1.1rem; }
.rc-podium { display: flex; align-items: flex-end; gap: 0.8rem; }
.rc-step { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; width: 9rem; }
.rc-step-car { width: 4.4rem; height: 2rem; border-radius: 12px 22px 22px 12px; background: var(--car, #ff6a2b); box-shadow: inset -14px 0 0 rgb(255 255 255 / 0.25); }
.rc-step.is-you { --car: #ff6a2b; } .rc-step.is-ghost { --car: #7c4dff; } .rc-step.is-fast { --car: #3d5afe; } .rc-step.is-medium { --car: #14b37d; } .rc-step.is-slow { --car: #f5a300; }
.rc-step strong { font-family: var(--font-display); }
.rc-step small { color: var(--ink-2); }
.rc-step b { display: grid; place-items: center; width: 100%; border-radius: 14px 14px 0 0; background: var(--line); font-family: var(--font-display); font-size: 2rem; }
.rc-step.is-p1 b { height: 7rem; background: var(--sun); } .rc-step.is-p2 b { height: 5rem; } .rc-step.is-p3 b { height: 3.6rem; }

/* Bublinky */
.bb { display: flex; flex-direction: column; gap: 0.6rem; }
.bb-letters { padding: 0.45rem 0.85rem; border-radius: 12px; background: var(--mint-soft); color: var(--ok-ink); font-family: var(--font-display); font-weight: 800; }
.bb-field { position: relative; height: clamp(26rem, 62vh, 38rem); overflow: hidden; border-radius: 26px; box-shadow: 0 10px 30px rgb(11 87 118 / 0.3), 0 0 0 4px var(--paper); cursor: text; }
.bb-field > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bb-field.is-hit { animation: bb-hit 0.35s; }
@keyframes bb-hit { 30% { box-shadow: 0 0 0 6px #ff3d63; } }
.bb-layer { position: absolute; inset: 0; }
.bb-bubble { position: absolute; left: 0; top: 0; display: grid; place-items: center; border-radius: 50%; color: #13304a; font-family: var(--font-display); font-weight: 800; line-height: 1;
  background: radial-gradient(circle at 34% 30%, rgb(255 255 255 / 0.95) 0 14%, rgb(255 255 255 / 0.55) 35%, rgb(255 255 255 / 0.18) 70%);
  box-shadow: inset 0 0 0 4px var(--c), inset 0 0 0 8px rgb(255 255 255 / 0.35), 0 6px 14px rgb(0 0 0 / 0.18); will-change: transform; }
.bb-bubble.is-pop { animation: bb-pop 0.38s forwards; }
.bb-bubble.is-pop::after { content: attr(data-gain); position: absolute; top: -1.4rem; color: #ffffff; font-size: 1.1rem; text-shadow: 0 2px 0 #0b5776; }
@keyframes bb-pop { 40% { transform-origin: center; scale: 1.25; opacity: 0.8; } 100% { scale: 1.6; opacity: 0; } }
.bb-hud { position: absolute; left: 1rem; right: 1rem; top: 0.9rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; pointer-events: none; }
.bb-pill { padding: 0.35rem 0.8rem; border-radius: 14px; background: rgb(255 255 255 / 0.88); box-shadow: 0 4px 14px rgb(0 0 0 / 0.12); color: #1c2045; font-family: var(--font-display); font-weight: 800; }
.bb-pill.is-combo { color: #0b7a4b; }
.bb-hearts { display: flex; gap: 0.3rem; margin-left: auto; padding: 0.3rem 0.5rem; border-radius: 14px; background: rgb(255 255 255 / 0.25); }
.bb-hearts i { width: 1.5rem; height: 1.35rem; background: #ffffff; opacity: 0.55; clip-path: path('M12 21 C-6 9 4 -4 12 4 C20 -4 30 9 12 21 Z'); scale: 1; }
.bb-hearts i.is-on { background: #ff3d63; opacity: 1; }
.bb-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem; padding: 1rem; background: rgb(11 87 118 / 0.55); color: #ffffff; text-align: center; }
/* p141: text úvodu, pauzy a konce hry čitelný i přes ilustraci (raketa, drak) */
.bb-over:not([hidden]) { z-index: 6; background: rgb(12 24 64 / 0.72); backdrop-filter: blur(3px); }
.bb-over span { text-shadow: 0 1px 2px rgb(0 0 0 / 0.45); }
.dg-field:has(> .bb-over:not([hidden])) :is(.dg-word, .dg-info) { visibility: hidden; }
.bb-over strong { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; text-shadow: 0 3px 0 rgb(0 0 0 / 0.2); }
.bb-over span { max-width: 32rem; font-size: 1.05rem; }

@media (max-width: 1000px) { .gm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gm-how ol { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .gm-tiles { grid-template-columns: minmax(0, 1fr); }
  .gm-hero-keys { opacity: 0.35; }
  .rc-hud { font-size: 0.8rem; }
  .rc-hud.is-pos strong { font-size: 1.3rem; }
  .rc-text { font-size: 1.2rem; }
  .rc-podium { gap: 0.4rem; } .rc-step { width: 6rem; }
}

/* Najdi klávesu (p64) */
.fk { display: flex; flex-direction: column; gap: 0.6rem; }
.fk-panel { position: relative; display: flex; flex-direction: column; gap: 0.8rem; padding: 1.2rem 1.4rem 1.4rem; border-radius: 28px; overflow: hidden; cursor: text;
  background: radial-gradient(circle at 80% 0%, #ffcf5c 0, transparent 45%), linear-gradient(135deg, #f59e0b 0%, #f97316 55%, #ea580c 100%);
  box-shadow: 0 12px 30px rgb(234 88 12 / 0.35), 0 0 0 4px var(--paper); }
.fk-panel.is-miss { animation: fk-miss 0.3s; }
@keyframes fk-miss { 25% { transform: translateX(-6px); } 75% { transform: translateX(5px); } }
.fk-hud { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.fk-ring { width: 5.6rem; height: 5.6rem; margin-left: auto; }
.fk-ring-bg { fill: none; stroke: rgb(255 255 255 / 0.3); stroke-width: 12; }
.fk-ring-fg { fill: none; stroke: #ffffff; stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 0.2s linear; }
.fk-ring text { fill: #ffffff; font-family: var(--font-display); font-weight: 800; font-size: 32px; }
.fk-prompt { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.7rem; margin-top: -0.6rem; }
.fk-ask { padding: 0.6rem 1.1rem; border-radius: 16px; background: rgb(28 32 69 / 0.85); color: #ffffff; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.fk-ask b { display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; margin: 0 0.35rem; padding: 0 0.3rem; border-radius: 10px; background: #ffb000; color: #1c2045; }
.fk-hint { padding: 0.45rem 0.9rem; border-radius: 14px; background: rgb(255 255 255 / 0.88); color: #3f4570; font-family: var(--font-display); font-weight: 800; }
.fk-board { padding: 0.8rem; border-radius: 22px; background: rgb(28 32 69 / 0.62); box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.18); }
.fk-kb .key.next { background: #ffb000; color: #1c2045; box-shadow: 0 0 0 4px #ffffff, 0 0 0 9px rgb(255 211 107 / 0.6), 0 6px 18px rgb(0 0 0 / 0.35); transform: translateY(-3px) scale(1.06); z-index: 1; }
.fk-result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.4rem; align-items: center; padding: 1.4rem 1.6rem; }
.fk-result-text { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
.fk-slow { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.8rem 1rem; border-radius: 16px; background: color-mix(in srgb, var(--flame) 12%, var(--paper)); }
.fk-slow-keys { display: flex; gap: 0.4rem; }
.fk-slow-keys b { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 10px; background: #e8344e; color: #ffffff; font-family: var(--font-display); }
.fk-slow small { color: var(--ink-2); }
.fk-heat .key { opacity: 0.45; }
.fk-heat .key.fk-h1, .fk-heat .key.fk-h2, .fk-heat .key.fk-h3 { opacity: 1; color: #ffffff; }
.fk-heat .key.fk-h1 { background: #14b37d; } .fk-heat .key.fk-h2 { background: #f5a300; } .fk-heat .key.fk-h3 { background: #e8344e; }
.fk-legend { display: flex; justify-content: center; gap: 1rem; margin: 0.4rem 0 0; color: var(--ink-2); font-size: 0.85rem; }
.fk-legend span::before { content: ""; display: inline-block; width: 0.8rem; height: 0.8rem; margin-right: 0.3rem; border-radius: 3px; vertical-align: -1px; }
.fk-legend .is-fast::before { background: #14b37d; } .fk-legend .is-mid::before { background: #f5a300; } .fk-legend .is-slow::before { background: #e8344e; }

/* Souboj s drakem (p64) */
.dg { display: flex; flex-direction: column; gap: 0.6rem; }
.dg-stage { padding: 0.45rem 0.85rem; border-radius: 12px; background: color-mix(in srgb, #c42a3f 14%, var(--paper)); color: color-mix(in srgb, #c42a3f 80%, var(--ink)); font-family: var(--font-display); font-weight: 800; }
.dg-field { position: relative; height: clamp(24rem, 58vh, 32rem); overflow: hidden; border-radius: 28px; cursor: text; box-shadow: 0 12px 30px rgb(43 30 90 / 0.4), 0 0 0 4px var(--paper); }
.dg-field > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* drak a rytíř žijí (p65): dech, křídla, ocas, hlava, mrkání; vnější skupiny drží pozici, animují se vnitřní */
.dg-field svg g, .dg-field svg path, .dg-field svg circle { transform-box: fill-box; }
.dg-body { transform-origin: 50% 100%; animation: dg-breathe 2.6s ease-in-out infinite; }
@keyframes dg-breathe { 50% { transform: scaleY(1.035) scaleX(0.99); } }
.dg-wing { transform-origin: 70% 95%; animation: dg-flap 1.7s ease-in-out infinite; }
@keyframes dg-flap { 50% { transform: rotate(-9deg) scaleY(1.06); } }
.dg-tail { transform-origin: 0% 80%; animation: dg-tail 3.2s ease-in-out infinite; }
@keyframes dg-tail { 50% { transform: rotate(6deg); } }
.dg-head { transform-origin: 20% 90%; animation: dg-head 2.6s ease-in-out infinite; }
@keyframes dg-head { 50% { transform: translateY(5px) rotate(-2deg); } }
.dg-eye { transform-origin: 50% 50%; animation: dg-blink 4.5s infinite; }
@keyframes dg-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
.dg-brow { opacity: 0; transition: opacity 0.3s; }
.dg-field.is-angry .dg-brow { opacity: 1; }
.dg-field.is-angry .dg-head { animation-duration: 0.9s; }
.dg-glow { opacity: var(--charge, 0); transform-origin: 50% 50%; }
.dg-fire, .dg-breath { opacity: 0; }
.dg-breath { transform-origin: 0% 30%; }
.dg-dragon.is-fire .dg-fire { animation: dg-fire 0.9s; }
.dg-dragon.is-fire .dg-breath { animation: dg-breath 0.9s ease-out; }
@keyframes dg-fire { 10%, 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dg-breath { 0% { opacity: 1; transform: scaleX(0.05); } 35% { opacity: 1; transform: scaleX(1); } 75% { opacity: 0.9; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1.03); } }
.dg-dragon.is-hit .dg-shake { animation: dg-hit 0.4s; }
@keyframes dg-hit { 0% { transform: translateX(0); filter: brightness(1); } 20% { transform: translateX(-12px); filter: brightness(1.9); } 50% { transform: translateX(8px); } 100% { transform: translateX(0); filter: brightness(1); } }
.dg-dragon.is-down .dg-shake { opacity: 0.35; transition: opacity 0.8s; }
.dg-kn { transform-origin: 50% 100%; animation: dg-idle 2.2s ease-in-out infinite; }
@keyframes dg-idle { 50% { transform: translateY(-4px); } }
.dg-sword { transform-origin: 50% 90%; animation: dg-sword 2.2s ease-in-out infinite; }
@keyframes dg-sword { 50% { transform: rotate(6deg); } }
.dg-knight.is-hit .dg-kn { animation: dg-knight 0.6s; }
@keyframes dg-knight { 20% { transform: translateX(-10px); filter: brightness(2) sepia(1) hue-rotate(-30deg) saturate(4); } 50% { transform: translateX(4px); } 100% { transform: translateX(0); filter: none; } }
.dg-knight.is-attack .dg-sword { animation: dg-swing 0.35s; }
@keyframes dg-swing { 40% { transform: rotate(-40deg); } }
.dg-star { animation: dg-twinkle 2.8s ease-in-out infinite; }
@keyframes dg-twinkle { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .dg-body, .dg-wing, .dg-tail, .dg-head, .dg-kn, .dg-sword, .dg-star { animation: none; } }
.dg-bars { position: absolute; left: 1.2rem; right: 1.2rem; top: 1rem; display: flex; justify-content: space-between; gap: 1rem; pointer-events: none; }
.dg-bar { display: flex; flex-direction: column; gap: 0.3rem; width: min(19rem, 42%); color: #ffffff; font-family: var(--font-display); font-weight: 800; text-shadow: 0 2px 0 rgb(0 0 0 / 0.35); }
.dg-bar.is-dragon { align-items: flex-end; text-align: right; }
.dg-bar i { display: flex; width: 100%; height: 1.1rem; border-radius: 99px; background: rgb(0 0 0 / 0.35); box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.4); overflow: hidden; }
.dg-bar.is-dragon i { justify-content: flex-end; }
.dg-bar i b { display: block; height: 100%; border-radius: 99px; background: linear-gradient(180deg, #3fd685, #2fbf71); transition: width 0.25s; }
.dg-bar.is-dragon i b { background: linear-gradient(180deg, #ff7a86, #ff4f62); }
.dg-word { position: absolute; left: 50%; top: 5.2rem; transform: translateX(-50%); padding: 0.7rem 1.6rem; border-radius: 18px; background: #fff7e3; box-shadow: 0 8px 0 #d9b46e, 0 12px 24px rgb(0 0 0 / 0.3);
  color: #1c2045; font-family: var(--font-text); font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: 0.04em; white-space: nowrap; }
.dg-word .ok { color: #0fa86b; }
.dg-word .cur { background: #e5eaff; border-radius: 6px; box-shadow: inset 0 -4px 0 #3d5afe; }
.dg-word .bad { background: #ffe0e4; color: #c42a3f; }
.dg-info { position: absolute; left: 50%; top: 10.4rem; transform: translateX(-50%); display: flex; gap: 0.5rem; white-space: nowrap; }
.dg-info span { padding: 0.25rem 0.7rem; border-radius: 99px; background: rgb(255 255 255 / 0.85); color: #1c2045; font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; }
.dg-pop { position: absolute; right: 22%; top: 38%; pointer-events: none; }
.dg-dmg { position: absolute; right: 0; white-space: nowrap; color: #ffd36b; font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; text-shadow: 0 3px 0 #1c2045, 0 0 6px #1c2045; animation: dg-dmg 1.1s forwards; }
.dg-dmg.is-crit { color: #ffffff; font-size: 1.5rem; }
.dg-dmg.is-me { right: auto; left: -46vw; color: #ff7a86; }
@keyframes dg-dmg { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-60px); opacity: 0; } }
.dg-charge { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1rem; display: flex; align-items: center; gap: 0.7rem; pointer-events: none; }
.dg-charge span { color: #ffd36b; font-family: var(--font-display); font-weight: 800; white-space: nowrap; }
.dg-charge i { flex: 1; height: 0.85rem; border-radius: 99px; background: rgb(0 0 0 / 0.35); overflow: hidden; }
.dg-charge i b { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #ffd36b, #ff6a2b); }
@media (max-width: 760px) { .fk-result { grid-template-columns: minmax(0, 1fr); } .dg-info { top: 9.4rem; } .dg-bar { font-size: 0.8rem; } }

/* Odpal raketu (p66) */
.rk { display: flex; flex-direction: column; gap: 0.6rem; }
.rk-chars { display: inline-block; box-sizing: border-box; max-width: min(100%, 32rem); overflow-wrap: anywhere; }
.rk-field { position: relative; height: clamp(26rem, 62vh, 34rem); overflow: hidden; border-radius: 28px; cursor: text; box-shadow: 0 12px 30px rgb(11 20 64 / 0.45), 0 0 0 4px var(--paper); }
.rk-field > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rk-field svg g { transform-box: fill-box; }
.rk-star { animation: dg-twinkle 2.8s ease-in-out infinite; }
.rk-flame { transform-origin: 50% 0%; animation: rk-flicker 0.18s ease-in-out infinite alternate; }
@keyframes rk-flicker { to { transform: scaleY(0.75) scaleX(0.9); } }
.rk-ship { transform-origin: 50% 100%; }
.rk-rocket.is-launch .rk-ship { animation: rk-launch 1.5s cubic-bezier(0.5, 0, 0.9, 0.4) forwards; }
.rk-rocket.is-launch .rk-flame { animation: rk-flicker 0.08s infinite alternate; scale: 1.6 2.4; }
@keyframes rk-launch { 0% { transform: translateY(0); } 12% { transform: translate(-3px, 4px); } 20% { transform: translate(3px, 0); } 100% { transform: translateY(-560px); } }
.rk-rocket.is-new .rk-ship { animation: rk-new 0.6s ease-out; }
@keyframes rk-new { from { transform: translateY(80px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.rk-rocket.is-abort .rk-ship { animation: rk-abort 0.6s; }
@keyframes rk-abort { 20%, 60% { transform: translateX(-6px) rotate(-2deg); } 40%, 80% { transform: translateX(6px) rotate(2deg); } }
.rk-smoke.is-on { animation: rk-smoke 1.6s ease-out; }
@keyframes rk-smoke { 0% { opacity: 0; transform: scale(0.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.6); } }
.rk-panel { position: absolute; left: 1.2rem; top: 4.4rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; max-width: 46%; padding: 1rem 1.2rem; border-radius: 20px;
  background: rgb(11 20 64 / 0.72); box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.15); color: #ffffff; }
.rk-count { font-family: var(--font-text); font-size: 2.6rem; line-height: 1; color: #6dffb0; letter-spacing: 0.04em; }
.rk-count.is-low { color: #ff7a86; animation: rk-low 0.5s infinite alternate; }
@keyframes rk-low { to { opacity: 0.55; } }
.rk-label { font-family: var(--font-display); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.rk-code { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.rk-code b { display: grid; place-items: center; min-width: 2.6rem; height: 3rem; padding: 0 0.3rem; border-radius: 10px; background: #ffffff; color: #1c2045; font-family: var(--font-text); font-size: 1.7rem; box-shadow: 0 4px 0 #8b90b4; }
.rk-code b.ok { background: #6dffb0; box-shadow: 0 4px 0 #14b37d; }
.rk-code b.cur { box-shadow: 0 4px 0 #3d5afe, 0 0 0 3px #ffd36b; }
.rk-code b.bad { animation: fk-miss 0.3s; background: #ffd0d6; }
.rk-msg { min-height: 1.4em; color: #ffd36b; font-family: var(--font-display); font-weight: 800; }

/* Žabí skoky (p66) */
.fj { display: flex; flex-direction: column; gap: 0.6rem; }
.fj-field { position: relative; height: clamp(26rem, 62vh, 34rem); overflow: hidden; border-radius: 28px; cursor: text; box-shadow: 0 12px 30px rgb(26 143 176 / 0.35), 0 0 0 4px var(--paper); }
.fj-field > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fj-ripple { animation: fj-ripple 3.2s ease-in-out infinite; transform-box: fill-box; }
@keyframes fj-ripple { 50% { transform: translateX(-14px); opacity: 0.4; } }
.fj-layer { position: absolute; inset: 0; }
.fj-pad { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 0; height: 0; will-change: transform; }
.fj-pad i { position: absolute; width: 8.4rem; height: 3.6rem; border-radius: 50%; background: radial-gradient(ellipse at 40% 40%, #6fe08f, #2f9e57 75%);
  box-shadow: inset 0 -5px 0 rgb(0 0 0 / 0.15), 0 6px 0 rgb(14 92 63 / 0.35); clip-path: polygon(0 0, 100% 0, 100% 38%, 58% 50%, 100% 62%, 100% 100%, 0 100%); }
.fj-pad b { position: relative; padding: 0.1rem 0.5rem; border-radius: 10px; background: rgb(255 255 255 / 0.9); color: #1c2045; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.fj-pad b .ok { color: #0fa86b; }
.fj-pad.is-target b { box-shadow: 0 0 0 3px #ffd36b; }
.fj-pad.is-bad b { animation: fk-miss 0.3s; background: #ffd0d6; }
.fj-frog { position: absolute; left: 0; top: 0; width: 76px; height: 68px; transition: transform 0.28s cubic-bezier(0.3, 0.9, 0.4, 1); pointer-events: none; z-index: 2; }
.fj-frog svg { width: 100%; height: 100%; overflow: visible; }
.fj-frog.is-jump svg { animation: fj-jump 0.3s ease-out; }
@keyframes fj-jump { 40% { transform: translateY(-38px) scale(1.15); } }
.fj-frog.is-splash svg { animation: fj-splash 0.6s; }
@keyframes fj-splash { 30% { transform: translateY(16px) scale(0.6); opacity: 0.2; } 100% { transform: none; opacity: 1; } }
.fj-typed { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); padding: 0.4rem 1.2rem; border-radius: 16px; background: #fff7e3; box-shadow: 0 6px 0 #d9b46e;
  color: #1c2045; font-family: var(--font-text); font-size: 1.9rem; letter-spacing: 0.04em; white-space: nowrap; }
.fj-typed:empty { display: none; }
.fj-typed .ok { color: #0fa86b; }
.fj-typed .cur { background: #e5eaff; border-radius: 6px; box-shadow: inset 0 -4px 0 #3d5afe; }
@media (max-width: 760px) { .rk-panel { max-width: calc(100% - 2.4rem); } .rk-count { font-size: 2rem; } .rk-code b { min-width: 2rem; height: 2.4rem; font-size: 1.3rem; } }
@media (prefers-reduced-motion: reduce) { .rk-star, .rk-flame, .fj-ripple { animation: none; } }

/* p67: hry ve statistikách, upozornění pro dotyková zařízení, sjednocený Slovní déšť */
.game-overlay-title { display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--step-4); line-height: 1.1; }
.gm-mobile { display: none; align-items: center; gap: 0.8rem; margin: 0.4rem 0 1rem; padding: 0.9rem 1rem; border-radius: 18px; background: var(--sun-soft); box-shadow: inset 0 0 0 2px var(--sun-line); }
.gm-mobile-icon { font-size: 1.8rem; }
.gm-mobile-text { flex: 1; color: var(--ink); font-size: 0.95rem; }
.gm-mobile .btn { flex: none; margin: 0; }
@media (hover: none) and (pointer: coarse) { .gm-mobile { display: flex; flex-wrap: wrap; } }
.gs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 0.9rem; }
.gs-card { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.9rem 1rem; border-radius: 18px; background: color-mix(in srgb, var(--gc) 10%, var(--paper));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--gc) 30%, var(--paper)); color: var(--ink); text-decoration: none; }
.gs-card:hover { box-shadow: inset 0 0 0 2px var(--gc); }
.gs-card strong { font-family: var(--font-display); font-size: 1.05rem; }
.gs-best { font-family: var(--font-display); font-weight: 800; color: color-mix(in srgb, var(--gc) 75%, var(--ink)); }
.gs-best.is-empty { color: var(--ink-2); font-weight: 700; }
.gs-card small { color: var(--ink-2); }
.gs-card.is-new { opacity: 0.8; }

/* p68: výzva ze Závodu aut, hry ve třídě */
.rc-challenge { margin: 0 0 0.6rem; padding: 0.6rem 0.9rem; border-radius: 14px; background: color-mix(in srgb, #7c4dff 12%, var(--paper)); color: var(--ink); font-weight: 700; }
.rc-share { display: flex; flex-direction: column; gap: 0.4rem; width: min(100%, 34rem); }
.rc-share small { color: var(--ink-2); }
.rc-share-row { display: flex; gap: 0.5rem; }
.rc-share-row input { flex: 1; min-width: 0; padding: 0.5rem 0.7rem; border: 0; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line); color: var(--ink); font: inherit; }
.sc-games { display: block; color: var(--ink-2); font-size: 0.78rem; }

/* počítadlo TOPlist v patičce (p70) */
.toplist { display: inline-flex; align-items: center; }
.toplist img { display: block; width: 14px; height: 14px; }

/* Denní výzva (p74, vzhled podle návrhu v4 – p76) */
.dy-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.6rem; margin-bottom: 1.4rem; }
.dy-head-text { display: flex; flex-direction: column; gap: 0.4rem; }
.dy-kick { color: var(--flame); font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.04em; }
.dy-head h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 3.3rem); letter-spacing: -0.03em; line-height: 1; }
.dy-facts { display: flex; align-items: center; gap: 1.1rem; }
.dy-facts > i { width: 1px; height: 2.2rem; background: var(--line); }
.dy-facts span { display: flex; flex-direction: column; align-items: flex-end; }
.dy-facts small, .dy-stats small, .dy-board-head small, .dy-mini small { color: var(--ink-3); font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; }
.dy-facts strong { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.dy-facts .is-bonus { color: var(--mint); }
.dy-grid { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 1.25rem; align-items: start; }
.dy-card, .dy-board, .dy-mini { border-radius: 26px; background: var(--paper); box-shadow: 0 1px 0 var(--line), 0 18px 40px rgb(var(--shade) / 0.07); }
.dy-card { position: relative; overflow: hidden; cursor: text; }
.dy-stats { display: flex; flex-wrap: wrap; align-items: center; padding: 1.1rem 1.6rem; border-bottom: 2px solid var(--line); }
.dy-stats > span { display: flex; align-items: baseline; gap: 0.5rem; padding: 0 1.1rem; white-space: nowrap; }
.dy-stats > span:first-child { padding-left: 0; }
.dy-stats > span + span { box-shadow: -1px 0 0 var(--line); }
.dy-stats strong { font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.dy-progress { display: flex; align-items: center; gap: 1rem; padding: 1.9rem 1.6rem 0.3rem; }
.dy-track { position: relative; flex: 1; height: 12px; border-radius: 99px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.dy-track > i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 55%, var(--paper)), var(--brand)); transition: width 0.1s; }
.dy-ghost { position: absolute; top: 50%; left: 0; display: grid; place-items: center; width: 26px; height: 26px; transform: translate(-50%, -50%); border-radius: 50%; background: #ff7a45; color: #ffffff; font-family: var(--font-display); font-size: 0.72rem; box-shadow: 0 0 0 4px var(--paper); transition: left 0.15s linear; }
.dy-ghost-label { position: absolute; top: -1.65rem; left: 0; transform: translateX(-50%); color: #c2410c; font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; white-space: nowrap; transition: left 0.15s linear; }
.dy-gap { flex: none; padding: 0.35rem 0.8rem; border-radius: 99px; background: #fff1e8; color: #c2410c; font-family: var(--font-display); font-weight: 800; font-size: 0.82rem; white-space: nowrap; }
.dy-gap.is-ahead { background: var(--mint-soft); color: var(--ok-ink); }
.dy-body { padding: 1.1rem 1.6rem 1.5rem; }
.dy-text { margin: 0; font-family: var(--font-text); font-size: 1.65rem; line-height: 1.8; letter-spacing: 0.02em; }
.dy-text span { color: var(--ink-3); }
.dy-text .ok { color: var(--ink); }
.dy-text .cur { color: var(--on-brand); background: var(--brand); border-radius: 5px; }
.dy-text .bad { color: var(--error-ink); background: color-mix(in srgb, var(--error) 18%, var(--paper)); }
.dy-card:not(.is-running) .dy-text .cur { animation: dy-blink 1.1s step-end infinite; }
@keyframes dy-blink { 0%, 100% { background: var(--brand); color: var(--on-brand); } 50% { background: transparent; color: var(--ink); } }
.dy-hint { display: block; margin-top: 0.7rem; color: var(--ink-3); font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; }
.dy-result { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; margin-top: 1rem; padding-top: 1rem; border-top: 2px solid var(--line); }
.dy-result strong { font-family: var(--font-display); font-size: 1.6rem; }
.dy-result span { flex: 1; color: var(--ink-2); }
.dy-board { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.3rem 1.1rem; }
.dy-board-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 0.5rem 0.3rem; }
.dy-board-head strong { font-family: var(--font-display); font-size: 1.2rem; }
.dy-list { display: flex; flex-direction: column; gap: 0.1rem; margin: 0; padding: 0; list-style: none; }
.dy-list li, .dy-me { display: grid; grid-template-columns: 1.4rem 2.25rem minmax(0, 1fr) auto; gap: 0.7rem; align-items: center; padding: 0.6rem 0.5rem; border-radius: 16px; }
.dy-list li.is-first { background: linear-gradient(90deg, color-mix(in srgb, #ff7a45 12%, var(--paper)), var(--paper)); }
.dy-list li.is-me, .dy-me { background: color-mix(in srgb, var(--brand) 6%, var(--paper)); box-shadow: inset 0 0 0 2px var(--brand); }
.dy-rank { color: var(--ink-3); font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.is-first .dy-rank { color: #ff7a45; }
.dy-me .dy-rank { color: var(--brand); }
.dy-av { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; color: #ffffff; font-family: var(--font-display); font-size: 0.8rem; }
.dy-av.is-big { width: 2.75rem; height: 2.75rem; flex: none; }
.dy-av.is-orange, .dy-rel.is-orange i { background: linear-gradient(135deg, #ffb347, #ff7a45); }
.dy-av.is-blue, .dy-rel.is-blue i { background: linear-gradient(135deg, #8ea2ff, #3d5afe); }
.dy-av.is-green, .dy-rel.is-green i { background: linear-gradient(135deg, #7be0b0, #14b37d); }
.dy-av.is-purple, .dy-rel.is-purple i { background: linear-gradient(135deg, #c9b8ff, #7c4dff); }
.dy-av.is-pink, .dy-rel.is-pink i { background: linear-gradient(135deg, #ffb3c6, #ff5d8f); }
.dy-av.is-teal, .dy-rel.is-teal i { background: linear-gradient(135deg, #9be7f0, #0a8f9e); }
.dy-who { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.dy-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-size: 0.98rem; }
.dy-rel { display: block; height: 4px; border-radius: 99px; background: var(--bg); }
.dy-rel i { display: block; height: 100%; border-radius: 99px; }
.dy-val { display: flex; flex-direction: column; align-items: flex-end; }
.dy-val strong { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.dy-val small { color: var(--ink-3); font-size: 0.72rem; }
.dy-dots { color: var(--ink-3); text-align: center; letter-spacing: 0.3em; }
.dy-cards { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.25rem; margin-top: 1.25rem; }
.dy-mini { display: flex; align-items: center; gap: 0.9rem; padding: 1.2rem 1.4rem; }
.dy-mini > span { display: flex; flex-direction: column; min-width: 0; }
.dy-mini strong { font-family: var(--font-display); font-size: 1.05rem; }
.dy-streak strong { font-size: 2.1rem; line-height: 1; white-space: nowrap; letter-spacing: -0.02em; }
.dy-dotsweek { display: flex; flex-direction: row !important; gap: 0.8rem; margin-left: auto; }
.dy-dotsweek > span { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.dy-dotsweek i { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--line); }
.dy-dotsweek .is-done i { background: #ff7a45; }
.dy-dotsweek .is-today i { background: var(--paper); box-shadow: 0 0 0 3px #ff7a45; }
.dy-medal { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 14px; background: #fff1e8; font-size: 1.3rem; }
@media (max-width: 1100px) { .dy-cards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 960px) { .dy-grid { grid-template-columns: minmax(0, 1fr); } .dy-text { font-size: 1.3rem; } .dy-facts span { align-items: flex-start; } }
@media (max-width: 560px) { .dy-stats > span { padding: 0 0.7rem; } .dy-stats strong { font-size: 1.35rem; } .dy-progress { flex-wrap: wrap; } .dy-dotsweek { margin-left: 0; } .dy-streak { flex-wrap: wrap; } }

/* Mapa výpravy „Moje cesta“ (p77, návrh v3) */
.map-head { flex-wrap: wrap; }
.trip-switch { margin-left: auto; }
.trip-switch button[aria-checked="true"] { background: #1c2045; color: #ffffff; }
.trip { display: flex; flex-direction: column; gap: 1rem; margin-top: 0.8rem; }
.trip-scene { position: relative; overflow: hidden; border-radius: 28px; box-shadow: 0 20px 50px rgb(7 11 36 / 0.4); background: #0b0f30; }
.trip-scene > svg { display: block; width: 100%; height: auto; }
.trip-scene a:hover circle { stroke-width: 4; }
.trip-l1 { fill: #ffffff; font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.trip-l2 { fill: #b9c0f0; font-family: var(--font-display); font-weight: 700; font-size: 11.5px; }
.trip-c1 { fill: #8b90b4; font-family: var(--font-display); font-weight: 800; font-size: 11px; letter-spacing: 1.2px; }
.trip-c2 { fill: #1c2045; font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.trip-pulse { transform-box: fill-box; transform-origin: center; animation: trip-pulse 2.4s ease-in-out infinite; }
@keyframes trip-pulse { 50% { transform: scale(1.35); opacity: 0.55; } }
.trip-chips { position: absolute; left: 1.3rem; top: 1.2rem; display: flex; gap: 0.6rem; }
.trip-chips span { display: flex; flex-direction: column; padding: 0.55rem 0.85rem; border-radius: 14px; background: rgb(10 12 40 / 0.6); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14); color: #ffffff; font-family: var(--font-display); }
.trip-chips small { color: #b9c0f0; font-weight: 800; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.trip-chips strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.trip-go { position: absolute; right: 1.3rem; bottom: 1.2rem; box-shadow: 0 6px 0 var(--brand-edge), 0 10px 30px rgb(61 90 254 / 0.5); }
.trip-go.is-done { background: var(--mint); box-shadow: none; }
.trip-stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 0.9rem; }
.trip-stats > div { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.9rem 1rem; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 2px var(--line); }
.trip-stats small { color: var(--ink-2); font-family: var(--font-display); font-weight: 700; }
.trip-stats strong { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; line-height: 1.15; }
.trip-stats span { color: var(--ink-2); font-size: 0.88rem; }
.trip-stats svg { width: 100%; height: 6.5rem; }
.trip-p0 { fill: var(--bg); } .trip-p1 { fill: color-mix(in srgb, var(--mint) 25%, var(--paper)); }
.trip-p2 { fill: none; stroke: var(--line); stroke-width: 2; } .trip-p3 { fill: none; stroke: var(--mint); stroke-width: 3; }
.trip-p4 { fill: var(--brand); stroke: var(--paper); stroke-width: 3; }
@media (max-width: 900px) { .trip-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .trip-chips { left: 0.7rem; top: 0.7rem; } .trip-chips strong { font-size: 1rem; }
  .trip-go { position: static; margin: 0.8rem; } .trip-scene { display: flex; flex-direction: column; }
  .trip-switch { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .trip-pulse { animation: none; } }

/* Kurz pro programátory (p78) */
.cc-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.4rem; align-items: center; padding: 1.7rem 2rem; border-radius: 28px;
  background: linear-gradient(135deg, #1c2045 0%, #2b2f8f 70%, #3d5afe 130%); color: #ffffff; box-shadow: 0 12px 30px rgb(28 32 69 / 0.35); }
.cc-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.cc-kick { padding: 0.25rem 0.75rem; border-radius: 99px; background: rgb(255 255 255 / 0.15); font-family: var(--font-display); font-weight: 800; font-size: 0.88rem; }
.cc-hero h1 { margin: 0; color: #ffffff; font-size: clamp(2rem, 4.2vw, 2.7rem); }
.cc-hero p { margin: 0; max-width: 38rem; color: #d9defc; font-size: 1.08rem; }
.cc-progress { color: #b9c0f0; font-family: var(--font-display); font-weight: 700; }
.cc-sample { margin: 0; padding: 1rem 1.3rem; border-radius: 18px; background: rgb(0 0 0 / 0.35); color: #e6e9fb; font-family: var(--font-text); font-size: 1rem; line-height: 1.6; }
.cc-note { margin: 0.9rem 0; color: var(--ink-2); }
.cc-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cc-module { --cc: var(--brand); display: flex; flex-direction: column; gap: 0.4rem; padding: 1rem 1.1rem; border-radius: 20px; background: var(--paper);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--cc) 20%, var(--paper)), 0 0 0 2px color-mix(in srgb, var(--cc) 20%, var(--paper)); }
.cc-module.is-blue { --cc: #3d5afe; } .cc-module.is-green { --cc: #14b37d; } .cc-module.is-orange { --cc: #f5a300; } .cc-module.is-purple { --cc: #7c4dff; }
.cc-module.is-pink { --cc: #e8344e; } .cc-module.is-teal { --cc: #0a8f9e; } .cc-module.is-yellow { --cc: #e09a00; } .cc-module.is-red { --cc: #c42a3f; }
.cc-mhead { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.cc-mhead code { padding: 0.2rem 0.6rem; border-radius: 10px; background: color-mix(in srgb, var(--cc) 12%, var(--paper)); color: var(--cc); font-family: var(--font-text); font-weight: 700; font-size: 1.05rem; }
.cc-mhead small { color: var(--ink-2); font-weight: 700; }
.cc-module strong { font-family: var(--font-display); font-size: 1.15rem; }
.cc-mdesc { color: var(--ink-2); }
.cc-lessons { display: flex; gap: 0.4rem; margin-top: 0.3rem; }
.cc-lessons a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--bg);
  box-shadow: inset 0 0 0 2px var(--line); color: var(--ink); font-family: var(--font-display); font-weight: 800; text-decoration: none; line-height: 1; }
.cc-lessons a small { font-size: 0.55rem; color: #e09a00; }
.cc-lessons a.is-done { background: color-mix(in srgb, var(--cc) 12%, var(--paper)); box-shadow: inset 0 0 0 2px var(--cc); }
.cc-lessons a.is-next { background: var(--cc); color: #ffffff; box-shadow: 0 4px 0 color-mix(in srgb, var(--cc) 60%, #000000); }
.cc-lesson { position: relative; overflow: hidden; border-radius: 26px; background: var(--paper); box-shadow: 0 1px 0 var(--line), 0 18px 40px rgb(var(--shade) / 0.07); cursor: text; }
.cc-code { margin: 1.1rem 1.6rem 0; padding: 1.1rem 1.3rem; border-radius: 16px; background: #1c2045; color: #e6e9fb; font-family: var(--font-text); font-size: 1.45rem; line-height: 1.8; overflow-wrap: anywhere; }
.cc-code span { color: #7d84b8; }
.cc-code .ok { color: #e6e9fb; }
.cc-code .cur { color: #1c2045; background: #8ea2ff; border-radius: 4px; }
.cc-code .bad { color: #ffffff; background: #e8344e; border-radius: 4px; }
.cc-lesson:not(.is-running) .cc-code .cur { animation: cc-blink 1.1s step-end infinite; }
@keyframes cc-blink { 50% { background: transparent; color: #e6e9fb; } }
.cc-hint { margin: 0.9rem 1.6rem 0; color: var(--ink-2); font-family: var(--font-display); font-weight: 700; }
.cc-hint b { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 0.4rem; border-radius: 9px; background: var(--brand-soft); color: var(--ink); font-family: var(--font-text); }
.cc-kb { padding: 1rem 1.6rem 1.4rem; }
.cc-lesson .dy-result { margin: 0 1.6rem 1.4rem; }
@media (max-width: 960px) { .cc-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cc-hero { grid-template-columns: minmax(0, 1fr); } .cc-sample { display: none; } }
@media (max-width: 600px) { .cc-modules { grid-template-columns: minmax(0, 1fr); } .cc-code { font-size: 1.1rem; } }
.cc-promo { display: flex; align-items: center; gap: 0.9rem; margin: 0.9rem 0; padding: 0.8rem 1.1rem; border-radius: 18px; background: linear-gradient(135deg, #1c2045, #2b2f8f); color: #ffffff; text-decoration: none; box-shadow: 0 6px 18px rgb(28 32 69 / 0.25); }
.cc-promo code { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: rgb(255 255 255 / 0.12); color: #ffd36b; font-family: var(--font-text); font-weight: 700; }
.cc-promo span { display: flex; flex-direction: column; }
.cc-promo small { color: #d9defc; }
.cc-promo-new { margin-left: auto; padding: 0.2rem 0.7rem; border-radius: 99px; background: #ffd36b; color: #1c2045 !important; font-family: var(--font-display); font-weight: 800; font-size: 0.75rem; text-transform: uppercase; }

/* Náhled zamčené lekce (p80): co se host v lekci naučí, pod tím výzva k účtu ------------------ */
.lv-hero { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); }
.lv-hero h1 { font-size: clamp(2rem, 3.2vw, 2.6rem); line-height: 1.08; }
.lv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin-bottom: 1.4rem; }
.lv-card { display: flex; flex-direction: column; padding: 1.6rem 1.8rem; }
.lv-card h2 { margin-bottom: 1.1rem; font-size: 1.3rem; }
.lv-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 0.9rem 1.2rem; margin: 0; padding: 0; list-style: none; }
.lv-keys.is-many { grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.75rem 1rem; }
.lv-keys li { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.lv-cap { flex: none; display: grid; place-items: center; min-width: 3.1rem; height: 3.1rem; padding: 0 0.4rem; border-radius: 13px;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--finger) 55%, var(--edge)), inset 0 0 0 2px color-mix(in srgb, var(--finger) 75%, var(--ink) 8%);
  color: var(--ink); font-family: var(--font-text); font-size: 1.45rem; font-weight: 700; line-height: 1; }
.lv-cap.is-wide { padding: 0 0.9rem; font-family: var(--font-display); font-size: 1rem; }
.lv-keys.is-many .lv-cap { min-width: 2.6rem; height: 2.6rem; font-size: 1.2rem; border-radius: 11px; }
.lv-key-text { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.lv-finger { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
.lv-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.3rem; color: var(--ink-2); font-size: var(--step--1); }
.lv-steps kbd, .lv-steps span { white-space: nowrap; }
.lv-then { margin: 0 0.15rem; }
.lv-steps kbd { padding: 0.05rem 0.45rem; border-radius: 7px; background: var(--paper); box-shadow: 0 2px 0 var(--edge), inset 0 0 0 1.5px var(--line);
  color: var(--ink); font-family: var(--font-text); font-size: 0.85rem; }
.lv-stage { margin-bottom: 0.6rem; }
.lv-sample { margin: 0; padding: 1rem 1.2rem; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line);
  font-family: var(--font-text); font-size: 1.12rem; line-height: 1.75; overflow-wrap: anywhere; }
.lv-note { margin-top: auto; padding-top: 0.85rem; color: var(--ink-2); font-size: var(--step--1); }
.lv-prompt { margin-top: 0; scroll-margin-top: 1.5rem; }
.lv-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1.6rem; }
.lv-nav-link { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem 1.3rem; color: var(--ink); text-decoration: none; transition: transform 0.15s, border-color 0.15s; }
.lv-nav-link small { color: var(--ink-2); font-size: var(--step--1); }
.lv-nav-link strong { font-family: var(--font-display); font-weight: 700; }
.lv-nav-link.is-prev small::before { content: "‹ "; }
.lv-nav-link.is-next { grid-column: 2; text-align: right; }
.lv-nav-link.is-next small::after { content: " ›"; }
.lv-nav-link:hover { border-color: var(--brand); transform: translateY(-1px); }
@media (max-width: 960px) { .lv-hero { grid-template-columns: minmax(0, 1fr); } .lv-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .lv-card { padding: 1.3rem 1.2rem; } .lv-nav { grid-template-columns: minmax(0, 1fr); } .lv-nav-link.is-next { grid-column: auto; } }
.lv-stage-note { margin-top: auto; padding-top: 1.1rem; }
.admin-subhead { margin: 1.6rem 0 0.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 1.1rem; }

/* Znaky na klávesnici a nástroje (p81) ------------------------------------------------------------ */
/* barvy skupin (návrh v2): --cat; podklad a písmo se míchají s barvami motivu, takže fungují i v tmavých */
.sy-cat-top { --cat: var(--brand); }
.sy-cat-brackets { --cat: #6a3fe0; }
.sy-cat-letters { --cat: #0b7f8c; }
.sy-cat-punct { --cat: #b85c00; }
.sy-cat-math { --cat: #13834f; }
.sy-cat-more { --cat: #c42a6b; }
.sy-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: 1.6rem; align-items: end; padding: 1.8rem 2rem; margin-bottom: 1.2rem; }
.sy-head h1, .sy-page-head h1 { margin-bottom: 0.5rem; }
.sy-lead { color: var(--ink-2); font-size: 1.12rem; max-width: 40rem; }
.sy-search { display: flex; flex-direction: column; gap: 0.4rem; font-family: var(--font-display); font-weight: 700; }
.sy-search-box { display: flex; align-items: center; gap: 0.6rem; height: 3.3rem; padding: 0 1rem; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line); color: var(--ink-3); }
.sy-search-box:focus-within { box-shadow: inset 0 0 0 2px var(--brand); }
.sy-search-box input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-family: var(--font-ui); font-weight: 400; font-size: 1.05rem; outline: none; }
.sy-jumps { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.6rem; }
.sy-jumps a { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 2.75rem; padding: 0 1rem 0 0.8rem; border-radius: 99px; background: var(--paper); box-shadow: 0 3px 0 var(--edge), inset 0 0 0 1.5px var(--line);
  color: var(--ink); font-family: var(--font-display); font-weight: 700; text-decoration: none; }
.sy-jumps a:hover { box-shadow: 0 3px 0 var(--edge), inset 0 0 0 2px var(--cat); }
.sy-jumps i { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--cat); }
.sy-jumps span { color: var(--ink-3); }
.sy-featured, .sy-group { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 1.8rem; scroll-margin-top: 1rem; }
.sy-featured { padding: 1.4rem 1.5rem; border-radius: 26px; background: linear-gradient(180deg, var(--paper), color-mix(in srgb, var(--brand) 6%, var(--paper))); box-shadow: 0 6px 0 var(--edge), 0 0 0 2px var(--line); }
.sy-featured h2, .sy-group h2 { display: flex; align-items: center; gap: 0.7rem; font-size: 1.4rem; }
.sy-bar { flex: none; width: 0.75rem; height: 1.75rem; border-radius: 6px; background: var(--cat); }
.sy-group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; }
.sy-group-head > span { color: var(--ink-2); }
.sy-note { padding: 0.75rem 1rem; border-radius: 16px; background: color-mix(in srgb, var(--cat, var(--brand)) 10%, var(--paper)); }
.sy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 0.75rem; }
.sy-grid.is-featured { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0.9rem; }
.sy-tile { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.8rem; border-radius: 18px; background: var(--paper); box-shadow: 0 4px 0 var(--edge), 0 0 0 1.5px var(--line);
  color: var(--ink); text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.sy-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--edge), 0 0 0 2px var(--cat); }
.sy-glyph { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 14px; background: color-mix(in srgb, var(--cat) 13%, var(--paper));
  color: color-mix(in srgb, var(--cat) 78%, var(--ink)); font-family: var(--font-text); font-weight: 700; font-size: 1.75rem; line-height: 1; }
.sy-tile-text { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.sy-tile strong { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
.sy-tile.is-featured { flex-direction: row; align-items: center; gap: 0.9rem; padding: 0.9rem 1rem; }
.sy-tile.is-featured .sy-glyph { flex: none; width: 3.75rem; height: 3.75rem; background: var(--cat); color: var(--on-brand); box-shadow: 0 4px 0 color-mix(in srgb, var(--cat) 70%, #000000); font-size: 2rem; }
.sy-tile.is-featured strong { font-size: 1.12rem; }
.sy-steps { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.sy-step { display: inline-flex; align-items: center; gap: 0.2rem; }
.sy-steps kbd { display: inline-grid; place-items: center; min-width: 1.65rem; height: 1.65rem; padding: 0 0.45rem; border-radius: 7px; background: var(--paper);
  box-shadow: 0 2px 0 var(--edge), inset 0 0 0 1.5px var(--line); color: var(--ink); font-family: var(--font-text); font-size: 0.85rem; font-weight: 700; white-space: nowrap; }
.sy-plus { color: var(--ink-3); font-size: 0.75rem; font-weight: 700; }
.sy-then { color: var(--ink-3); font-weight: 900; }
.sy-steps.is-big { gap: 0.6rem; }
.sy-steps.is-big .sy-step { gap: 0.45rem; }
.sy-steps.is-big kbd { min-width: 3.4rem; height: 3.4rem; padding: 0 1rem; border-radius: 12px; font-size: 1.5rem; box-shadow: 0 4px 0 var(--edge), inset 0 0 0 2px var(--line); }
.sy-steps.is-big .sy-plus, .sy-steps.is-big .sy-then { font-size: 1.3rem; }
.sy-empty { padding: 1.2rem 1.4rem; margin-bottom: 1.6rem; }
.sy-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.sy-tool { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: 22px; background: linear-gradient(135deg, #1c2045, #2b2f8f); box-shadow: 0 6px 0 #11142e;
  color: #ffffff; text-decoration: none; }
.sy-tool.is-alt { background: linear-gradient(135deg, #2437c4, #3d5afe); box-shadow: 0 6px 0 #1b2a99; }
.sy-tool-icon { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 15px; background: rgb(255 255 255 / 0.16); }
.sy-tool > span:last-child { display: flex; flex-direction: column; }
.sy-tool strong { font-family: var(--font-display); font-size: 1.15rem; }
.sy-tool small { color: rgb(255 255 255 / 0.84); font-size: 0.95rem; }
.sy-tool:hover { transform: translateY(-1px); }
/* stránka znaku */
.sy-crumbs { margin-bottom: 0.6rem; color: var(--ink-2); }
.sy-title { margin-bottom: 1.2rem; }
.sy-big { display: grid; place-items: center; width: 9rem; height: 9rem; border-radius: 30px; background: linear-gradient(180deg, var(--paper), color-mix(in srgb, var(--brand) 8%, var(--paper)));
  box-shadow: 0 6px 0 var(--edge), inset 0 0 0 2px var(--line); font-family: var(--font-text); font-weight: 700; font-size: 5rem; line-height: 1; }
.sy-copy { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; padding: 0.4rem 1rem; font-size: 0.95rem; }
.sy-badge { align-self: flex-start; padding: 0.2rem 0.75rem; border-radius: 99px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-2); font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; }
.sy-explain { font-size: 1.12rem; }
.sy-explain .sy-key { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 0.4rem; border-radius: 7px; background: var(--paper);
  box-shadow: 0 2px 0 var(--edge), inset 0 0 0 1.5px var(--line); color: var(--ink); font-family: var(--font-text); font-size: 0.95rem; font-weight: 700; vertical-align: 0.05em; }
.sy-alt-ways { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
/* stránka znaku (p109, návrh ZnakTextB): karta se zkratkou a cvičením vpravo (užší obrazovka: nahoře), vlevo obsah a oddíly */
.sy-layout { container-type: inline-size; margin-bottom: 1.6rem; }
.sy-cols { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main"; gap: 1.6rem; align-items: start; }
.sy-side { grid-area: side; display: flex; flex-direction: column; gap: 1rem; padding: 1.3rem 1.4rem; }
.sy-side-top { display: flex; flex-direction: column; gap: 0.9rem; }
.sy-side-key { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1rem; }
.sy-side .sy-big { width: 4.6rem; height: 4.6rem; border-radius: 20px; font-size: 2.7rem; box-shadow: 0 5px 0 var(--edge), inset 0 0 0 2px var(--line); }
.sy-side .sy-steps.is-big { gap: 0.4rem; }
.sy-side .sy-steps.is-big kbd { min-width: 2.7rem; height: 2.7rem; padding: 0 0.65rem; font-size: 1.15rem; }
.sy-side .sy-copy { align-self: flex-start; }
.sy-side > section { display: flex; flex-direction: column; gap: 0.6rem; padding-top: 1rem; border-top: 1.5px solid var(--line); }
.sy-side h2 { font-size: 1.05rem; }
.sy-side .sy-slots { gap: 0.4rem; }
.sy-side .sy-slots span { width: 2.3rem; height: 2.6rem; font-size: 1.25rem; }
.sy-side .sy-practice-field input { height: 2.9rem; }
.sy-side .sy-practice-row { min-height: 0; }
.sy-side .sy-practice-row:has([data-sy-again]:not([hidden])) { min-height: 2.75rem; }
.sy-other-list { margin: 0; }
.sy-other-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.3rem 0.8rem; padding: 0.5rem 0; border-top: 1.5px solid var(--line); }
.sy-other-list > div:first-child { border-top: 0; padding-top: 0; }
.sy-other-list dt { color: var(--ink-2); font-size: 0.95rem; }
.sy-other-list dd { margin: 0 0 0 auto; }
.sy-main { grid-area: main; display: flex; flex-direction: column; gap: 1.8rem; min-width: 0; }
.sy-toc { padding: 1rem 1.3rem 0.8rem; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.sy-toc h2 { font-size: 0.95rem; color: var(--ink-2); }
.sy-toc ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 0 1.2rem; margin: 0.4rem 0 0; padding: 0; list-style: none; }
.sy-toc a { display: flex; align-items: center; gap: 0.6rem; min-height: 2.6rem; color: var(--ink); font-family: var(--font-display); font-weight: 700; text-decoration: none; }
.sy-toc a:hover { color: var(--brand); }
.sy-toc .sy-num { width: 1.6rem; height: 1.6rem; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-size: 0.85rem; }
.sy-num { flex: none; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 10px; background: var(--brand); color: var(--on-brand); font-family: var(--font-display); font-weight: 900; font-size: 1rem; line-height: 1; }
.sy-sec { display: flex; flex-direction: column; gap: 0.8rem; padding-top: 1.5rem; border-top: 2px solid var(--line); scroll-margin-top: 1rem; }
.sy-main > .sy-sec:first-child { padding-top: 0; border-top: 0; }
.sy-sec h2 { display: flex; align-items: center; gap: 0.7rem; font-size: 1.4rem; }
.sy-sec h3 { font-size: 1.1rem; }
.sy-sec > p, .sy-sec .pt-text { max-width: 44rem; }
.sy-case { display: flex; flex-direction: column; gap: 0.3rem; }
.sy-case .pt-text { color: var(--ink-2); }
.sy-kb-box { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; margin: 0; padding: 1.1rem 1rem 0.9rem; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.sy-kb-box > [data-sy-kb] { width: 100%; max-width: 50rem; }
.sy-kb-box figcaption { color: var(--ink-2); font-size: var(--step--1); }
.sy-hint { color: var(--ink-2); }
/* p176: stránka znaku pro Google (návrh ZnakSeoStranka): rychlá odpověď + znak se Zkopírovat nahoře, oddíly jako karty */
.sy-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; margin-bottom: 1.4rem; align-items: start; }
.sy-hero-main { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.sy-hero .sy-title { margin-bottom: 0; }
.sy-quick { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.2rem 1.4rem; box-shadow: 0 5px 0 var(--edge), 0 0 0 2px var(--brand); }
.sy-quick-kicker { margin: 0; color: var(--brand); font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; }
.sy-quick-text { margin: 0; font-size: 1.2rem; line-height: 1.45; max-width: 46rem; }
.sy-quick-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.sy-quick-keys .sy-steps.is-big kbd { min-width: 2.9rem; height: 2.9rem; padding: 0 0.75rem; font-size: 1.25rem; }
.sy-or { color: var(--ink-2); }
.sy-aka { margin: 0; color: var(--ink-2); }
.sy-glyph-card { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.2rem; }
.sy-glyph-big { display: grid; place-items: center; height: 8.5rem; border-radius: 20px; background: var(--bg); font-family: var(--font-text); font-weight: 700; font-size: 5.5rem; line-height: 1; }
.sy-glyph-card .sy-copy { justify-content: center; min-height: 3.3rem; font-size: 1.15rem; }
.sy-copy-hint { margin: 0; color: var(--ink-2); font-size: var(--step--1); text-align: center; }
.sy-facts { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; margin: 0; padding-top: 0.8rem; border-top: 1.5px solid var(--line); }
.sy-facts dt { color: var(--ink-2); }
.sy-facts dd { margin: 0; }
.sy-facts code, .sy-codes code { font-family: var(--font-mono, ui-monospace, monospace); font-weight: 700; }
.sy-body { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 1.6rem; }
.sy-body > .sy-sec { padding: 1.3rem 1.5rem; border-top: 0; }
.sy-lead-small { margin: -0.3rem 0 0; color: var(--ink-2); }
.sy-ways { display: flex; flex-direction: column; }
.sy-way { display: grid; grid-template-columns: 2.5rem minmax(0, 15rem) minmax(0, 1fr); gap: 0.4rem 1rem; align-items: center; padding: 0.75rem 0; border-top: 1.5px solid var(--line); }
.sy-way-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 12px; background: var(--bg); color: var(--brand); }
.sy-way-name { font-family: var(--font-display); line-height: 1.25; }
.sy-way-how { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; min-width: 0; }
.sy-way-how small { color: var(--ink-2); font-size: var(--step--1); }
.sy-codes { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.sy-codes span { color: var(--ink-3); }
.sy-steps-sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
.sy-steps-main { display: flex; flex-direction: column; gap: 0.8rem; min-width: 0; }
.sy-steps-sec .sy-practice { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.1rem 1.2rem; border-radius: 20px; background: var(--bg); }
.sy-steps-sec .sy-practice h3 { font-size: 1.15rem; }
.sy-steps-sec .sy-slots { gap: 0.4rem; }
.sy-steps-sec .sy-slots span { width: 2.4rem; height: 2.7rem; font-size: 1.3rem; }
.sy-confuse { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 0.8rem; }
.sy-conf { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; padding: 0.9rem 1rem; border-radius: 18px; background: var(--paper); box-shadow: 0 4px 0 var(--edge), 0 0 0 1.5px var(--line); color: var(--ink); text-decoration: none; }
a.sy-conf:hover { box-shadow: 0 4px 0 var(--edge), 0 0 0 2px var(--brand); }
.sy-conf.is-me { background: var(--brand-soft); box-shadow: 0 0 0 2px var(--brand); }
:is([data-theme="cisty"], [data-theme="kancelar"], [data-theme="klid"], [data-theme="studio"]) .sy-conf { box-shadow: 0 1px 2px rgb(var(--shade) / 0.06), 0 0 0 1px var(--line); }
:is([data-theme="cisty"], [data-theme="kancelar"], [data-theme="klid"], [data-theme="studio"]) .sy-conf.is-me { box-shadow: 0 0 0 2px var(--brand); }
.sy-conf-head { display: flex; align-items: center; gap: 0.7rem; }
.sy-conf-head > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.sy-conf-head strong { font-family: var(--font-display); }
.sy-conf small { color: var(--ink-2); font-size: var(--step--1); }
.sy-conf-glyph { display: grid; place-items: center; flex: none; width: 3rem; height: 3rem; border-radius: 14px; background: var(--paper); box-shadow: 0 3px 0 var(--edge), 0 0 0 1.5px var(--line); font-family: var(--font-text); font-weight: 700; font-size: 1.7rem; }
.sy-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 0.8rem; }
.sy-cases .sy-case { padding: 0.9rem 1rem; border-radius: 16px; background: var(--sun-soft); }
@media (min-width: 60rem) {
  .sy-hero { grid-template-columns: minmax(0, 1fr) 19rem; gap: 1.8rem; }
  .sy-steps-sec { grid-template-columns: minmax(0, 1fr) 19rem; }
}
@media (max-width: 40rem) {
  .sy-way { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .sy-way-how { grid-column: 1 / -1; }
  .sy-way.is-phone { order: -1; } /* na telefonu nejdřív postup pro telefon */
  .sy-glyph-card { display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: center; }
  .sy-glyph-big { height: 5rem; font-size: 3rem; }
  .sy-glyph-card .sy-copy { min-height: 3rem; }
  .sy-copy-hint, .sy-facts { grid-column: 1 / -1; }
  .sy-copy-hint { text-align: left; }
  .sy-body > .sy-sec { padding: 1.1rem; }
}
/* úzký jeden sloupec od 36rem: karta vedle sebe (zkratka a jiné klávesnice | cvičení), ať obsah nezačíná až o obrazovku níž */
@container (min-width: 36rem) and (max-width: 46.99rem) {
  .sy-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "top practice" "others practice"; gap: 1rem 1.6rem; }
  .sy-side-top { grid-area: top; }
  .sy-side > .sy-practice { grid-area: practice; padding-top: 0; border-top: 0; }
  .sy-side > .sy-others { grid-area: others; }
}
@container (min-width: 47rem) {
  .sy-cols { grid-template-columns: minmax(0, 1fr) 17rem; grid-template-areas: "main side"; gap: 1.6rem; }
}
@container (min-width: 60rem) {
  .sy-cols { grid-template-columns: minmax(0, 1fr) 19rem; gap: 2rem; }
}
@media (min-height: 50rem) {
  @container (min-width: 47rem) { .sy-side { position: sticky; top: 1rem; } }
}
.sy-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; align-items: start; margin-bottom: 1.2rem; }
.sy-card { padding: 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 0.8rem; }
.sy-card h2 { font-size: 1.3rem; }
.sy-table { width: 100%; border-collapse: collapse; }
.sy-table th, .sy-table td { padding: 0.6rem 0; border-top: 1.5px solid var(--line); text-align: left; vertical-align: middle; }
.sy-table td { text-align: right; }
.sy-table th { color: var(--ink-2); font-weight: 600; padding-right: 0.8rem; }
.sy-table thead th { border-top: 0; font-size: var(--step--1); }
.sy-none { color: var(--ink-3); }
.sy-practice-field input { width: 100%; height: 3.2rem; padding: 0 1rem; border: 0; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line); color: var(--ink);
  font-family: var(--font-text); font-size: 1.3rem; }
.sy-practice-field input:focus { outline: none; box-shadow: inset 0 0 0 2.5px var(--brand), 0 0 0 4px var(--brand-soft); }
.sy-slots { display: flex; gap: 0.6rem; }
.sy-slots span { display: grid; place-items: center; width: 3rem; height: 3.4rem; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line);
  font-family: var(--font-text); font-weight: 700; font-size: 1.6rem; }
.sy-slots span.is-ok { background: color-mix(in srgb, #19b36b 16%, var(--paper)); box-shadow: inset 0 0 0 2px color-mix(in srgb, #19b36b 55%, var(--paper)); color: color-mix(in srgb, #0f6b3b 70%, var(--ink)); }
.sy-slots span.is-next { box-shadow: inset 0 0 0 2.5px var(--brand), 0 0 0 4px var(--brand-soft); }
.sy-practice-row { display: flex; align-items: center; gap: 1rem; min-height: 2.75rem; }
.sy-practice-status { font-family: var(--font-display); font-weight: 700; }
.sy-faq details { border-top: 1.5px solid var(--line); padding: 0.75rem 0; }
.sy-faq details:first-child { border-top: 0; padding-top: 0; }
.sy-faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.sy-faq details p { margin-top: 0.5rem; color: var(--ink-2); max-width: 44rem; }
/* popisné texty stránek (p106): úvod pod nadpisem; oddíly stránky znaku od p109 ve .sy-sec */
.pt-intro { max-width: 54rem; margin: -0.5rem 0 1.4rem; color: var(--ink-2); font-size: 1.12rem; line-height: 1.6; }
.pt-intro p { margin: 0 0 0.5rem; } .pt-intro p:last-child { margin-bottom: 0; }
.pt-text { line-height: 1.65; }
.pt-text p { margin: 0 0 0.7rem; } .pt-text p:last-child { margin-bottom: 0; }
.pt-text ul, .pt-text ol { margin: 0 0 0.7rem; padding-left: 1.3rem; } .pt-text li + li { margin-top: 0.35rem; }
.pt-text ul:last-child, .pt-text ol:last-child { margin-bottom: 0; }
.pt-text code, .pt-intro code { padding: 0.05rem 0.35rem; border-radius: 6px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-text); font-size: 0.9em; overflow-wrap: anywhere; }
/* popisný text pod nástrojem (p111: lekce, rozložení, délka testu, hra) – oddíly jako u znaku */
.pt-article { display: flex; flex-direction: column; gap: 1.5rem; max-width: 50rem; margin: 2rem 0; }
.pt-article > .sy-toc + .sy-sec { padding-top: 0; border-top: 0; }
.sy-faq details .pt-text { margin-top: 0.5rem; color: var(--ink-2); max-width: 44rem; }
/* pruh Další nástroje a přehledy na rozcestnících (p115) */
.hub-more { display: flex; flex-direction: column; gap: 0.9rem; margin: 2rem 0 1rem; padding-top: 1.5rem; border-top: 2px solid var(--line); }
.hub-more h2 { font-size: 1.4rem; }
.hub-more ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.hub-more a { display: flex; flex-direction: column; gap: 0.1rem; height: 100%; box-sizing: border-box; padding: 0.85rem 1rem; border-radius: 16px; background: var(--paper);
  box-shadow: 0 3px 0 var(--edge), inset 0 0 0 1.5px var(--line); color: var(--ink); text-decoration: none; }
.hub-more a:hover { box-shadow: 0 3px 0 var(--edge), inset 0 0 0 1.5px var(--brand); }
.hub-more small { color: var(--ink-2); font-size: 0.8rem; }
.hub-more strong { font-family: var(--font-display); font-size: 1.05rem; }
.hub-more span { color: var(--ink-2); font-size: 0.9rem; }
.sy-related { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 1.2rem; }
.sy-related strong { font-family: var(--font-display); font-size: 1.1rem; margin-right: 0.3rem; }
.sy-related a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 0.9rem 0 0.35rem; border-radius: 14px; background: var(--paper);
  box-shadow: 0 3px 0 var(--edge), inset 0 0 0 1.5px var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.sy-related a span { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9px; background: var(--bg); font-family: var(--font-text); font-weight: 700; }
.sy-related a.sy-related-all { padding: 0 0.9rem; color: var(--brand); }
/* test klávesnice */
.sy-page-head { margin-bottom: 1.2rem; }
.sy-page-head .kicker a { color: inherit; }
.kt-stats { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1rem; margin-bottom: 1.2rem; }
.kt-stat { display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem 1.2rem; min-width: 0; }
.kt-stat > span { color: var(--ink-2); font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; }
.kt-stat strong { font-family: var(--font-display); font-size: 1.8rem; line-height: 1.15; overflow-wrap: anywhere; }
.kt-stat strong small { color: var(--ink-3); font-size: 1rem; }
.kt-stat > small { color: var(--ink-2); }
.kt-stat.is-now strong { color: var(--brand); }
.kt-stat kbd { display: inline-grid; place-items: center; min-width: 2.2rem; height: 2.2rem; padding: 0 0.5rem; border-radius: 9px; background: var(--brand-soft); color: var(--ink); font-family: var(--font-text); font-size: 1.1rem; vertical-align: middle; }
.kt-board { display: flex; flex-direction: column; gap: 1rem; padding: 1.3rem 1.3rem 1.1rem; margin-bottom: 1.2rem; }
.kt-board.is-active { box-shadow: 0 6px 0 var(--edge), 0 0 0 3px var(--brand); }
.kt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; }
.kt-bar p { flex: 1 1 18rem; color: var(--ink-2); }
.kt-kb { width: 100%; max-width: 54rem; align-self: center; outline: none; }
.kt-kb .key.kt-ok { opacity: 1; background: color-mix(in srgb, #19b36b 30%, var(--paper)); color: var(--ink); box-shadow: inset 0 -4px 0 color-mix(in srgb, #19b36b 55%, var(--paper)); }
.kt-kb .key.kt-held { background: var(--brand); color: var(--on-brand); transform: translateY(2px); box-shadow: inset 0 -2px 0 var(--brand-edge); }
.kt-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.4rem; color: var(--ink-2); font-size: var(--step--1); }
.kt-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.kt-legend i { width: 1rem; height: 1rem; border-radius: 5px; }
.kt-legend i.is-ok { background: color-mix(in srgb, #19b36b 30%, var(--paper)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, #19b36b 55%, var(--paper)); }
.kt-legend i.is-now { background: var(--brand); }
.kt-legend i.is-todo { background: var(--pinky); }
.kt-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.kt-tip { padding: 1.1rem 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; }
.kt-tip h2 { font-size: 1.1rem; }
.kt-tip p { color: var(--ink-2); }
/* převodník */
.cv-box { display: flex; align-items: flex-end; gap: 1.1rem; padding: 1.6rem 1.8rem; margin-bottom: 1.2rem; }
.cv-field { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.cv-field > span:first-child { color: var(--ink-2); font-family: var(--font-display); font-weight: 700; }
.cv-input { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.6rem 1.1rem; border-radius: 20px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line); cursor: text; }
.cv-input:focus-within { box-shadow: inset 0 0 0 2.5px var(--brand); }
.cv-input input { width: calc(var(--len, 3) * 1ch + 0.3ch); max-width: 100%; min-width: 1.5ch; border: 0; background: transparent; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 2.8rem; outline: none; -moz-appearance: textfield; }
.cv-input input::-webkit-outer-spin-button, .cv-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cv-input span { color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.cv-swap { flex: none; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; margin-bottom: 1.1rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.cv-formula { padding: 0.7rem 1rem; border-radius: 14px; background: var(--bg); font-family: var(--font-text); }
.cv-two { align-items: stretch; }
.cv-two .sy-card .cv-cta { align-self: flex-start; margin-top: auto; }
.cv-table th, .cv-table td { width: 50%; text-align: left; padding-left: 0.8rem; }
.cv-table td { font-family: var(--font-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.cv-table tr.is-current td { background: var(--sun-soft); }
.cv-table tr.is-current td:first-child { border-radius: 10px 0 0 10px; }
.cv-table tr.is-current td:last-child { border-radius: 0 10px 10px 0; }
@media (max-width: 960px) {
  .sy-head { grid-template-columns: minmax(0, 1fr); }
  .sy-two, .kt-tips { grid-template-columns: minmax(0, 1fr); }
  .kt-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kt-stat.is-now { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .sy-steps.is-big kbd { min-width: 2.8rem; height: 2.8rem; font-size: 1.2rem; padding: 0 0.7rem; }
  .sy-side { padding: 1.1rem 1.1rem 1rem; }
  .sy-tools { grid-template-columns: minmax(0, 1fr); }
  .cv-box { flex-direction: column; align-items: stretch; }
  .cv-swap { align-self: center; margin: 0; transform: rotate(90deg); }
  .sy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sy-slots span { width: 2.6rem; }
}

/* Plán článků v administraci (p82) */
.adm-ar-head > .btn-quiet { margin-left: auto; }
.adm-ar-head > .btn-quiet + .adm-ar-new { margin-left: 0; }
.adm-ar-state.is-idea { background: var(--brand-soft); color: var(--brand); }
/* p84: formulář tématu – vlastní mřížka a pole stejná jako v editoru článku (dřív systémové výběry a překrývání v Safari) */
.adm-plan-edit .admin-form { max-width: 46rem; }
.adm-plan-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; align-items: start; }
.adm-plan-edit label { min-width: 0; }
.adm-plan-edit input[type="text"], .adm-plan-edit input[type="date"], .adm-plan-edit select, .adm-plan-edit textarea {
  width: 100%; box-sizing: border-box; min-height: 2.9rem; padding: 0.5rem 0.8rem;
  border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; }
.adm-plan-edit input:focus-visible, .adm-plan-edit select:focus-visible, .adm-plan-edit textarea:focus-visible { outline-offset: 0; border-color: var(--brand); background: var(--paper); }
.adm-plan-edit textarea { line-height: 1.5; resize: vertical; }
.adm-plan-edit [aria-invalid="true"] { border-color: var(--error); }
.adm-plan-del { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
/* psaní článků s AI (p84) */
.adm-ai-bar { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1rem; }
.adm-ai-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.8rem; padding: 0.8rem 1rem; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line); }
.adm-ai-form select { min-height: 2.6rem; padding: 0.3rem 0.7rem; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; }
.adm-ai-form small { flex-basis: 100%; color: var(--ink-2); }
.adm-ai-label { font-family: var(--font-display); font-weight: 700; }
.adm-ai-status { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; padding: 0.7rem 1rem; border-radius: 14px; background: var(--brand-soft); }
.adm-ai-status form { margin: 0 0 0 auto; }
.adm-ai-spin { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 3px solid var(--brand-line, var(--line)); border-top-color: var(--brand); animation: adm-ai-spin 0.9s linear infinite; }
@keyframes adm-ai-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .adm-ai-spin { animation: none; } }
.adm-ar-state.is-ai { background: var(--brand); color: var(--on-brand); }
.adm-ai-err { display: block; max-width: 22rem; margin-top: 0.3rem; color: var(--error); font-size: 0.85rem; }
.adm-plan-ai { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.adm-plan-ai form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.adm-ai-settings fieldset { display: grid; gap: 0.8rem; margin: 0; padding: 1rem 1.1rem; border: 2px solid var(--line); border-radius: 16px; }
.adm-ai-settings legend { padding: 0 0.4rem; font-family: var(--font-display); font-weight: 700; }
.adm-ai-settings select, .adm-ai-settings textarea { width: 100%; box-sizing: border-box; min-height: 2.9rem; padding: 0.5rem 0.8rem; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; }
.adm-ai-setup { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; padding: 0.8rem 1rem; border-radius: 16px; background: var(--brand-soft); }
.adm-plan-ai .adm-subhead { margin-top: 0; padding-top: 0; border-top: 0; }

/* Plán článků – přehled (p86): dlaždice-filtry, hledání, seznam po dnech, stránkování ------------- */
.pl { display: flex; flex-direction: column; gap: 1.1rem; }
.pl-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.8rem 1.2rem; }
.pl-head h2 { margin: 0; }
.pl-sub { margin: 0.2rem 0 0; color: var(--ink-2); }
.pl-head-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pl-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.4rem; padding: 0.35rem 0.95rem; border: 0; border-radius: 11px;
  background: var(--brand); color: var(--on-brand); box-shadow: 0 3px 0 var(--brand-edge); font: inherit; font-family: var(--font-display); font-weight: 700; font-size: 0.92rem;
  text-decoration: none; white-space: nowrap; cursor: pointer; }
.pl-btn:hover { filter: brightness(1.05); }
.pl-btn.is-quiet { background: var(--paper); color: var(--brand); box-shadow: 0 3px 0 var(--edge), inset 0 0 0 1.5px var(--line); }
.pl-langs { display: flex; flex-wrap: wrap; gap: 0.3rem; padding: 4px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); align-self: flex-start; }
.pl-langs a { padding: 0.35rem 0.85rem; border-radius: 10px; color: var(--ink-2); font-family: var(--font-display); font-weight: 700; text-decoration: none; white-space: nowrap; }
.pl-langs a small { color: var(--ink-3); font-weight: 700; }
.pl-langs a[aria-current="page"] { background: var(--paper); color: var(--ink); box-shadow: 0 2px 0 var(--edge), inset 0 0 0 1.5px var(--line); }
.pl-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.6rem; }
.pl-tile { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.7rem 0.9rem; border-radius: 14px; background: var(--paper); color: var(--ink); text-decoration: none;
  box-shadow: inset 0 0 0 1.5px var(--line); border-left: 0; position: relative; }
.pl-tile strong { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; }
.pl-tile span { color: var(--ink-2); font-size: 0.9rem; }
.pl-tile::before { content: ""; position: absolute; left: 0.9rem; right: 0.9rem; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--tile, var(--line)); }
.pl-tile.is-idea { --tile: var(--brand); } .pl-tile.is-draft { --tile: var(--ink-3); } .pl-tile.is-plan { --tile: var(--sun); }
.pl-tile.is-live { --tile: var(--mint); } .pl-tile.is-error { --tile: var(--error); }
.pl-tile.is-error strong { color: var(--error); }
.pl-tile:hover { box-shadow: inset 0 0 0 2px var(--tile, var(--brand)); }
.pl-tile.is-active { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.pl-tile.is-next { grid-column: span 2; background: var(--bg); }
.pl-tile.is-next strong { font-size: 1rem; line-height: 1.3; }
.pl-tile.is-next::before { background: var(--brand); }
.pl-ai { display: flex; flex-direction: column; gap: 0.6rem; }
.pl-ai-form { padding: 0.6rem 0.9rem; }
.pl-search { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; }
.pl-search-box { flex: 1 1 18rem; display: flex; align-items: center; gap: 0.5rem; min-height: 2.6rem; padding: 0 0.8rem; border-radius: 12px; background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-3); }
.pl-search-box:focus-within { box-shadow: inset 0 0 0 2px var(--brand); }
.pl-search-box input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; outline: none; }
.pl-reset { color: var(--brand); font-weight: 600; }
.pl-found { flex-basis: 100%; margin: 0; color: var(--ink-2); font-size: 0.9rem; }
.pl-list { display: flex; flex-direction: column; gap: 0.9rem; }
.pl-day { border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--line); overflow: hidden; }
.pl-day.is-today { box-shadow: inset 0 0 0 2px var(--brand); }
.pl-date { display: flex; align-items: baseline; gap: 0.45rem; margin: 0; padding: 0.55rem 1rem; background: var(--bg); font-size: 1rem; font-family: var(--font-display); }
.pl-dow { color: var(--ink-3); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.04em; }
.pl-date small { color: var(--brand); font-weight: 700; font-size: 0.85rem; }
.pl-day.is-past .pl-date { color: var(--ink-2); }
.pl-day ul { margin: 0; padding: 0; list-style: none; }
.pl-item { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) 7.5rem minmax(10.5rem, auto); align-items: center; gap: 0.4rem 0.9rem;
  padding: 0.6rem 1rem; border-top: 1px solid var(--line); }
.pl-item:target { background: var(--brand-soft); }
.pl-lang { display: inline-grid; place-items: center; width: 2.2rem; height: 1.6rem; border-radius: 7px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink-2); font-family: var(--font-display); font-weight: 800; font-size: 0.75rem; }
.pl-main { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.pl-title { color: var(--ink); font-weight: 700; text-decoration: none; line-height: 1.3; }
.pl-title:hover { color: var(--brand); text-decoration: underline; }
.pl-meta { color: var(--ink-2); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-prio { color: var(--brand); font-weight: 700; }
.pl-err { color: var(--error); font-size: 0.85rem; }
.pl-state { justify-self: start; padding: 0.15rem 0.6rem; border-radius: 999px; font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.pl-state.is-idea { background: var(--brand-soft); color: var(--brand); }
.pl-state.is-draft { background: var(--mod); color: var(--ink-2); }
.pl-state.is-scheduled { background: var(--sun-soft); color: var(--sun-ink); }
.pl-state.is-live { background: var(--mint-soft); color: var(--ok-ink, var(--ink)); }
.pl-state.is-ai { background: var(--brand); color: var(--on-brand); }
.pl-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem; }
.pl-actions form { margin: 0; }
.pl-pages { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.8rem; }
.pl-pages > a:last-child { justify-self: end; }
.pl-page-nums { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem; }
.pl-page-nums a { display: inline-grid; place-items: center; min-width: 2.2rem; height: 2.2rem; padding: 0 0.4rem; border-radius: 9px; color: var(--ink-2); font-weight: 700; text-decoration: none; }
.pl-page-nums a:hover { background: var(--bg); }
.pl-page-nums a[aria-current="page"] { background: var(--brand); color: var(--on-brand); }
.pl-gap { align-self: center; color: var(--ink-3); }
.pl-note { margin: 0; }
@media (max-width: 760px) {
  .pl-item { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .pl-state { grid-column: 2; }
  .pl-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .pl-meta { white-space: normal; }
  .pl-tile.is-next { grid-column: 1 / -1; }
  .pl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.adm-ai-check { display: grid; gap: 0.5rem; margin-top: 1rem; }
.adm-ai-check p { margin: 0; padding: 0.7rem 0.9rem; border-radius: 12px; }
.adm-ai-check p.is-ok { background: var(--mint-soft); }
.adm-ai-check p.is-bad { background: var(--error-soft); }
.adm-ai-check small { display: block; margin-top: 0.3rem; color: var(--ink-2); overflow-wrap: anywhere; }
.adm-ai-verify { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.adm-ai-verify small { color: var(--ink-2); }
/* Psaní bez otevřené stránky (p101): stav pracovníka z cronu, příkaz pro cron, automatické zařazování */
.adm-ai-wstate { margin: 0; padding: 0.7rem 0.9rem; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line); }
.adm-ai-wstate.is-ok { background: var(--mint-soft); box-shadow: none; }
.adm-ai-wstate.is-bad { background: var(--error-soft); box-shadow: none; }
.adm-ai-wstate small { display: block; margin-top: 0.3rem; color: var(--ink-2); overflow-wrap: anywhere; }
.adm-ai-cron { display: grid; gap: 0.35rem; }
.adm-ai-cron code { display: block; padding: 0.55rem 0.8rem; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.85rem; overflow-wrap: anywhere; user-select: all; }
.adm-ai-cron small { color: var(--ink-2); }
.adm-ai-worker .field-row { flex-wrap: wrap; align-items: flex-end; }
.adm-ai-worker .field-row label { display: flex; flex-direction: column; gap: 0.35rem; }
.adm-ai-auto { margin: 0; color: var(--ink-2); font-size: 0.9rem; }
.adm-ai-auto.is-bad { padding: 0.6rem 0.9rem; border-radius: 12px; background: var(--error-soft); color: var(--ink); }

/* Náklady AI (p102, varianta A z plátna): dlaždice měsíce, cena článku po krocích, podle modelu, po dnech, ceny a limit */
.ac h2 { margin: 0; }
.ac-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-bottom: 1rem; }
.ac-head > div { flex: 1 1 20rem; }
.ac-head .pl-sub { margin: 0.2rem 0 0; }
.ac-month { display: flex; align-items: center; gap: 0.35rem; margin-left: auto; font-family: var(--font-display); }
.ac-month a, .ac-month span.is-off { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--bg); color: var(--ink-2); font-size: 1.3rem; font-weight: 800; text-decoration: none; }
.ac-month span.is-off { color: var(--line); }
.ac-month strong { padding: 0.45rem 1rem; border-radius: 12px; background: var(--bg); }
.ac-warn { margin: 0 0 1rem; padding: 0.7rem 0.9rem; border-radius: 12px; background: var(--error-soft); color: var(--ink); }
.ac-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.9rem; margin-bottom: 1.1rem; }
.ac-tile { display: flex; flex-direction: column; gap: 0.45rem; padding: 1rem 1.1rem; border-radius: 16px; background: var(--bg); }
.ac-tile > span:first-child { color: var(--ink-2); font-family: var(--font-display); font-size: 0.9rem; font-weight: 800; }
.ac-tile > strong { font-family: var(--font-display); font-size: 2rem; font-weight: 900; line-height: 1.1; }
.ac-tile small { color: var(--ink-2); font-size: 0.88rem; }
.ac-tile small b { color: var(--ink); }
.ac-bar { display: block; height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ac-bar > span { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.ac-bar.is-warn > span { background: var(--sun-2); }
.ac-bar.is-over > span { background: var(--error); }
.ac-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.1rem; margin-bottom: 1.1rem; }
@media (max-width: 900px) { .ac-two { grid-template-columns: minmax(0, 1fr); } }
.ac-box { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; padding: 1rem 1.2rem; border-radius: 16px; box-shadow: inset 0 0 0 2px var(--line); }
.ac-box h3 { margin: 0; font-size: 1.1rem; }
.ac-box h3 small { margin-left: 0.4rem; color: var(--ink-2); font-family: var(--font-ui); font-size: 0.85rem; font-weight: 400; }
.ac-step { display: grid; grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr) 4.6rem 2.6rem; gap: 0.7rem; align-items: center; }
.ac-step > span:first-child { font-weight: 700; font-size: 0.95rem; overflow-wrap: anywhere; }
.ac-meter { display: block; height: 14px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.ac-meter > span { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.ac-step.is-top .ac-meter > span { background: var(--sun-2); }
.ac-num { text-align: right; font-variant-numeric: tabular-nums; font-size: 0.92rem; }
.ac-share { text-align: right; color: var(--ink-2); font-size: 0.88rem; }
.ac-top { margin: 0.3rem 0 0; padding: 0.6rem 0.8rem; border-radius: 12px; background: var(--sun-soft); box-shadow: inset 0 0 0 1.5px var(--sun-line); color: var(--ink); font-size: 0.92rem; }
.ac-scroll { position: relative; overflow-x: auto; } /* relative: skryté popisky (.sr-only) v buňkách nesmí rozšířit stránku */
.ac-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.ac-table th, .ac-table td { padding: 0.5rem 0.45rem; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.ac-table thead th { border-top: 0; color: var(--ink-3); font-family: var(--font-display); font-size: 0.8rem; font-weight: 800; white-space: nowrap; }
.ac-table tfoot th, .ac-table tfoot td { border-top: 2px solid var(--line); font-weight: 700; }
.ac-table .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ac-table code { font-size: 0.88rem; }
.ac-table small, .ac-muted { color: var(--ink-2); font-size: 0.85rem; }
.ac-loc { padding: 0.1rem 0.4rem; border-radius: 6px; background: var(--bg); color: var(--ink-2); font-family: var(--font-display); font-size: 0.75rem; font-weight: 800; }
.ac-days, .ac-days-labels { display: grid; grid-template-columns: repeat(var(--days, 31), minmax(0, 1fr)); gap: 4px; }
.ac-days { align-items: end; height: 150px; border-bottom: 2px solid var(--line); }
.ac-day { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.ac-day > span { display: block; background: var(--brand); }
.ac-day > span:first-child { border-radius: 4px 4px 0 0; }
.ac-day > span.is-other { background: var(--brand-line); }
.ac-day > span.is-unknown { background: var(--ink-3); }
.ac-days-labels { color: var(--ink-3); font-size: 0.75rem; text-align: center; }
.ac-prices { display: flex; flex-direction: column; gap: 0.9rem; }
.ac-prices input { width: 100%; box-sizing: border-box; min-height: 2.6rem; padding: 0.35rem 0.75rem; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; }
.ac-prices .ac-table td:nth-child(2), .ac-prices .ac-table td:nth-child(3) { width: 11rem; }
.ac-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.9rem; padding-top: 0.6rem; border-top: 2px solid var(--line); }
.ac-fields label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 700; }
.ac-fields label span { font-size: 0.92rem; }
/* stránka běhu: cena běhu a kroků (p102) */
.wf-cost { margin-left: auto; text-align: right; }
.wf-cost strong { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; line-height: 1.1; }
.wf-cost small { color: var(--ink-2); }
.wf-step-cost { margin-left: auto; font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; }
.wf-top { padding: 0.15rem 0.6rem; border-radius: 99px; background: var(--sun-soft); box-shadow: inset 0 0 0 1.5px var(--sun-line); color: var(--ink); font-family: var(--font-display); font-size: 0.8rem; font-weight: 800; }

/* Postupy psaní s AI (p87): editor kroků, přehled, běhy ---------------------------------------------- */
.wf-subnav { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0 0 1rem; }
.wf-subnav a { padding: 0.4rem 0.9rem; border-radius: 10px; color: var(--ink-2); font-family: var(--font-display); font-weight: 700; text-decoration: none; }
.wf-subnav a[aria-current="page"] { background: var(--paper); color: var(--ink); box-shadow: 0 2px 0 var(--edge), inset 0 0 0 1.5px var(--line); }
.wf { display: flex; flex-direction: column; gap: 1rem; }
.wf .admin-panel { margin-bottom: 0; }
.wf-title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; margin-bottom: 1rem; }
.wf-title-row h2 { margin: 0; }
.wf-head-actions { display: flex; flex-direction: row-reverse; flex-wrap: wrap; gap: 0.5rem; }
.wf-field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; margin-bottom: 0.8rem; font-weight: 700; }
.wf-field > span { font-family: var(--font-display); font-size: 0.9rem; }
.wf-field small { font-weight: 400; color: var(--ink-2); font-size: 0.82rem; }
.wf-field input, .wf-field select, .wf-field textarea { width: 100%; box-sizing: border-box; min-height: 2.6rem; padding: 0.45rem 0.7rem; border: 2px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; }
.wf-field input:focus-visible, .wf-field select:focus-visible, .wf-field textarea:focus-visible { outline-offset: 0; border-color: var(--brand); background: var(--paper); }
.wf-code { font-family: var(--font-text); font-size: 0.88rem; line-height: 1.55; resize: vertical; }
.wf-checks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; margin-bottom: 0.6rem; }
.wf-head code, .wf-flow code { padding: 0.05rem 0.3rem; border-radius: 5px; background: var(--bg); font-size: 0.85em; }
.wf-flow ol { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 0 0 0.6rem; padding: 0; list-style: none; counter-reset: none; }
.wf-flow li { position: relative; flex: 1 1 13rem; }
.wf-flow li + li::before { content: "→"; position: absolute; left: -0.75rem; top: 50%; transform: translate(-50%, -50%); color: var(--ink-3); font-weight: 900; }
.wf-flow a { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.7rem 0.9rem 0.7rem 3.2rem; position: relative; border-radius: 14px; background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line), inset 0 3px 0 var(--wf, var(--brand)); color: var(--ink); text-decoration: none; }
.wf-flow a .wf-ico { position: absolute; left: 0.8rem; top: 0.75rem; }
.wf-flow small { color: var(--ink-2); }
.is-notes { --wf: #3d5afe; } .is-text { --wf: #13834f; } .is-title { --wf: #b85c00; } .is-perex { --wf: #6a3fe0; }
.wf-ico { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 8px; background: var(--wf, var(--brand)); color: #ffffff;
  font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; }
.wf-step { border-left: 5px solid var(--wf, var(--brand)); }
.wf-step-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; margin-bottom: 1rem; }
.wf-step-head h3 { margin: 0; font-size: 1.15rem; }
.wf-step-head small { color: var(--ink-2); }
.wf-move { margin-left: auto; display: flex; gap: 0.3rem; }
.wf-move button { width: 2.2rem; height: 2.2rem; border: 0; border-radius: 8px; background: var(--bg); color: var(--ink-2); font-weight: 900; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); }
.wf-move button:disabled { opacity: 0.35; cursor: default; }
.wf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0 0.9rem; }
.wf-delete { margin: 0.2rem 0 0.4rem; color: var(--ink-2); }
.wf-history { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.wf-history summary { cursor: pointer; font-weight: 700; color: var(--ink-2); }
.wf-hist-item { margin: 0.7rem 0; padding: 0.7rem 0.9rem; border-radius: 12px; background: var(--bg); }
.wf-hist-item p { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; margin: 0 0 0.4rem; font-size: 0.88rem; color: var(--ink-2); }
.wf-hist-item p .pl-btn { margin-left: auto; }
.wf-hist-item pre, .wf-pre { margin: 0; max-height: 26rem; overflow: auto; white-space: pre-wrap; word-break: break-word; font-family: var(--font-text); font-size: 0.85rem; line-height: 1.55; }
.wf-add { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; border: 2px dashed var(--line); box-shadow: none; }
.wf-add small { color: var(--ink-2); }
.wf-test h3 { margin: 0 0 0.4rem; }
.wf-test-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.6rem; }
.wf-test-row .wf-field { flex: 1 1 22rem; margin: 0; }
.wf-runs { width: 100%; margin-top: 0.8rem; border-collapse: collapse; font-size: 0.92rem; }
.wf-runs th, .wf-runs td { padding: 0.5rem 0.4rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.wf-runs th { color: var(--ink-2); font-size: 0.82rem; border-top: 0; }
.wf-runs tbody th { border-top: 1px solid var(--line); color: var(--ink); font-size: inherit; } /* p153: čára i u prvního sloupce */
.wf-runs small { color: var(--ink-3); }
.wf-delete-form { margin-top: 1rem; }
.wf-group { margin: 1.2rem 0 0.2rem; font-size: 1.05rem; } .wf-group small { font-weight: 600; color: var(--ink-2); }
/* Texty stránek v administraci (p106): seznam a úprava textu */
.pl-btn:disabled { opacity: 0.45; filter: none; }
.pt-adm { display: flex; flex-direction: column; gap: 1rem; }
.pt-adm-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.6rem; }
.pt-adm-type { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.75rem 0.95rem; border-radius: 14px; background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 2px var(--line); }
.pt-adm-type strong { font-family: var(--font-display); font-weight: 800; }
.pt-adm-type span { color: var(--ink-2); font-size: 0.9rem; }
.pt-adm-type small { color: var(--ink-3); font-size: 0.82rem; }
.pt-adm-type.is-active { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.pt-adm-type.is-soon { background: var(--bg); color: var(--ink-2); }
.pt-adm-ai { display: flex; flex-direction: column; gap: 0.6rem; }
.pt-adm-ai-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.8rem; padding: 0.9rem 1.1rem; border-radius: 16px; background: var(--brand-soft); }
.pt-adm-ai-text { flex: 1 1 20rem; display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.pt-adm-ai-text strong { font-family: var(--font-display); font-weight: 800; }
.pt-adm-ai-text small { color: var(--ink-2); }
.pt-adm-ai-form select { min-height: 2.4rem; max-width: 100%; padding: 0 0.6rem; border: 2px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.pt-adm-scroll { position: relative; overflow-x: auto; }
.pt-adm-table td { vertical-align: middle; }
.pt-adm-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.pt-adm-ch { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 0.3rem; margin-right: 0.35rem; border-radius: 9px; background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--line); font-family: var(--font-text); font-weight: 700; vertical-align: middle; }
.pt-adm-ch.is-big { min-width: 3rem; height: 3rem; margin: 0; border-radius: 13px; background: var(--paper); font-size: 1.5rem; }
.pt-adm-url { color: var(--ink-2); font-size: 0.88rem; overflow-wrap: anywhere; }
.pt-adm-bad { color: var(--error); font-weight: 700; }
.pt-adm-warn { color: var(--ink); font-weight: 700; }
.pt-adm-ok { color: var(--ink-2); }
.pt-adm-act { text-align: right; white-space: nowrap; }
.pt-adm-act form { display: inline; }
.pt-adm-publish { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.pt-adm-cli { padding: 0.8rem 1rem; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); }
.pt-adm-cli summary { font-family: var(--font-display); font-weight: 800; cursor: pointer; }
.pt-adm-cli .field-note { margin: 0.6rem 0; }
.pt-adm-cli pre { padding: 0.7rem 0.9rem; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.pt-adm-publish small { flex: 1 1 18rem; color: var(--ink-2); }
.pt-ed-crumbs { margin: 0 0 0.8rem; color: var(--ink-2); font-size: 0.92rem; }
.pt-ed-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-bottom: 1rem; }
.pt-ed-head h2 { margin: 0; }
.pt-ed-langs { display: flex; gap: 0.3rem; margin-left: auto; }
.pt-ed-langs a { padding: 0.25rem 0.65rem; border-radius: 9px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-2); font-family: var(--font-display);
  font-weight: 800; font-size: 0.85rem; text-decoration: none; text-transform: uppercase; }
.pt-ed-langs a[aria-current="page"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.pt-ed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); gap: 1.2rem; align-items: start; }
.pt-ed-blk + .pt-ed-blk { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1.5px solid var(--line); }
.pt-ed-blk-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.8rem; margin-bottom: 0.5rem; }
.pt-ed-blk-head strong { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.pt-ed-blk-head small { color: var(--ink-3); }
.pt-ed-regen { margin-left: auto; padding: 0.2rem 0; border: 0; background: none; color: var(--brand); font: inherit; font-size: 0.88rem; font-weight: 700; text-decoration: underline; cursor: pointer; }
.pt-ed-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0 0.8rem; }
.pt-ed-side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.pt-ed-state { display: flex; flex-direction: column; gap: 0.5rem; }
.pt-ed-state small { color: var(--ink-2); }
.pt-ed-state-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0 0 0.3rem; }
.pt-ed-checks h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.pt-ed-checks ul { margin: 0 0 0.6rem; padding: 0; list-style: none; }
.pt-ed-checks li { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.45rem 0; border-top: 1.5px solid var(--line); }
.pt-ed-checks li > span:first-child { flex: none; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--mint-soft); color: var(--ink); font-size: 0.8rem; font-weight: 900; }
.pt-ed-checks li.is-warn > span:first-child { background: var(--sun-soft); color: var(--ink); }
.pt-ed-checks li.is-error > span:first-child { background: var(--error-soft); color: var(--error); }
.pt-ed-checks li strong { display: block; font-size: 0.95rem; }
.pt-ed-checks li small { display: block; color: var(--ink-2); overflow-wrap: anywhere; }
.pt-ed-checks > small { color: var(--ink-2); }
.pt-ed-facts summary { font-family: var(--font-display); font-weight: 800; cursor: pointer; }
.pt-ed-facts pre { margin-top: 0.6rem; }
@media (max-width: 900px) { .pt-ed { grid-template-columns: minmax(0, 1fr); } .pt-ed-pair { grid-template-columns: minmax(0, 1fr); } .pt-ed-langs { margin-left: 0; } }
.pl-state.is-run-queued, .pl-state.is-run-running { background: var(--brand); color: var(--on-brand); }
.pl-state.is-run-waiting { background: var(--sun-soft); color: var(--sun-ink); }
.pl-state.is-run-done { background: var(--mint-soft); color: var(--ok-ink, var(--ink)); }
.pl-state.is-run-error { background: var(--error-soft); color: var(--error); }
.wf-list { display: flex; flex-direction: column; gap: 1rem; }
.wf-card { padding: 1rem 1.1rem; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--line); }
.wf-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; }
.wf-card-head h3 { margin: 0; font-size: 1.1rem; }
.wf-card-head h3 a { color: var(--ink); }
.wf-card-head .pl-btn { margin-left: auto; }
.wf-chain { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0 0; padding: 0; list-style: none; }
.wf-chain li { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.7rem 0.35rem 0.35rem; border-radius: 10px; background: var(--bg); font-weight: 700; }
.wf-chain small { color: var(--ink-2); font-weight: 400; }
.wf-run h2 small { font-size: 0.8rem; vertical-align: middle; }
.wf-out { border-left: 5px solid var(--line); }
.wf-out.is-empty { opacity: 0.6; }
.wf-out details summary { cursor: pointer; font-weight: 700; color: var(--ink-2); margin-bottom: 0.4rem; }
.wf-sources { margin-top: 0.6rem; }
.wf-sources ul { margin: 0.3rem 0 0; padding-left: 1.2rem; font-size: 0.88rem; overflow-wrap: anywhere; }
.adm-ai-check-bad { padding: 0.7rem 0.9rem; border-radius: 12px; background: var(--error-soft); color: var(--ink); }
/* Indexace Google (p110) */
.ix { display: flex; flex-direction: column; gap: 1rem; }
.ix h2 { font-size: 1.25rem; }
.ix-import { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: flex-start; }
.ix-import-text { flex: 1 1 22rem; display: flex; flex-direction: column; gap: 0.4rem; }
.ix-imports { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.ix-imports form { display: inline; margin-left: 0.4rem; }
.ix-upload { flex: 0 1 22rem; display: flex; flex-direction: column; gap: 0.6rem; padding: 0.9rem 1rem; border-radius: 16px; border: 2px dashed var(--edge); }
.ix-upload label { display: flex; flex-direction: column; gap: 0.3rem; }
.ix-upload label span { color: var(--ink-2); font-size: 0.9rem; }
.ix-upload .pl-btn { align-self: flex-start; }
.ix-tiles .pl-tile.is-bad strong { color: var(--error-ink); }
.ix-crawl { display: flex; flex-direction: column; gap: 0.4rem; }
.ix-crawl pre, .ix-list { margin: 0; padding: 0.7rem 0.9rem; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); font-family: var(--font-text); font-size: 0.9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.ix-list { width: 100%; box-sizing: border-box; border: 0; color: var(--ink); resize: vertical; }
.ix-num { font-family: var(--font-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ix-num.is-low { color: var(--error-ink); font-weight: 700; }
.ix-url a { font-family: var(--font-text); font-size: 0.9rem; overflow-wrap: anywhere; }
.ix-url small { display: block; color: var(--ink-2); font-size: 0.85rem; }
.ix-num small { display: block; color: var(--ink-2); font-size: 0.8rem; font-weight: 400; }
/* p116: technická kontrola v Indexaci */
.ix-audit-item { border-top: 1px solid var(--line); padding: 0.5rem 0; }
.ix-audit-item summary { cursor: pointer; display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.ix-audit-item ul { margin: 0.5rem 0 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.25rem; }
.ix-audit-item li { overflow-wrap: anywhere; font-size: 0.9rem; }
.ix-audit-item li small { color: var(--ink-2); }
.ix-filter { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; }
.ix-filter label { display: flex; align-items: center; gap: 0.4rem; }
.ix-filter select { min-height: 2.4rem; padding: 0 0.5rem; border: 0; border-radius: 10px; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; }
.ix-actions { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; margin-top: 0.8rem; }
.ix-actions small { color: var(--ink-2); }
.ix-steps { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; }
/* p113: řazení podle sloupce, stránkování, krátký typ, výběr souboru */
.ix-sort { color: inherit; text-decoration: none; white-space: nowrap; }
.ix-sort span { color: var(--ink-2); font-weight: 400; }
.ix-sort:hover, .ix-sort.is-on { color: var(--brand); }
.ix-sort.is-on span { color: var(--brand); font-weight: 700; }
.ix-type { white-space: nowrap; }
.ix-table td, .ix-table th { vertical-align: middle; }
.ix-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 0.7rem 0; }
.ix-pager .field-note { margin-right: 0.6rem; }
.ix-pager a, .ix-pager span[aria-current], .ix-pager .is-off { display: inline-grid; place-items: center; min-width: 2.4rem; min-height: 2.4rem; padding: 0 0.6rem;
  border-radius: 10px; font-weight: 700; text-decoration: none; }
.ix-pager a { color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.ix-pager a:hover { color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.ix-pager span[aria-current] { color: var(--on-brand); background: var(--brand); }
.ix-pager .is-off { color: var(--ink-2); opacity: 0.55; }
.ix-pager .is-gap { color: var(--ink-2); padding: 0 0.2rem; }
.ix-count { margin: 0.7rem 0; }
.ix-file { font: inherit; font-size: 0.9rem; color: var(--ink-2); max-width: 100%; }
.ix-file::file-selector-button { margin-right: 0.7rem; padding: 0.45rem 0.9rem; border: 0; border-radius: 10px; background: var(--bg); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; font-weight: 700; cursor: pointer; }
.ix-file::file-selector-button:hover { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); }
/* fronta stojí po odmítnutí službou (p108): pruh pod lištou sekce Články */
.ai-pause { font-weight: 400; }
.ai-pause p { margin: 0 0 0.45rem; }
.ai-pause form { margin: 0.2rem 0 0; }
/* editor postupu podle aplikace provozovatele (p90) */
.wf-tabs { display: flex; gap: 1.4rem; margin: 0 0 1rem; border-bottom: 1.5px solid var(--line); }
.wf-tabs a { padding: 0.5rem 0.1rem; margin-bottom: -1.5px; color: var(--ink-2); font-family: var(--font-display); font-weight: 700; text-decoration: none; border-bottom: 2.5px solid transparent; }
.wf-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
.wf-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .wf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .wf-grid { grid-template-columns: minmax(0, 1fr); } }
.wf-add-btn { display: inline-flex; align-items: center; gap: 0.6rem; border: 0; background: none; color: var(--ink); font: inherit; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; cursor: pointer; }
.wf-add { gap: 0.6rem 1.6rem; }
.wf-add-btn span { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 8px; background: var(--mod); color: var(--ink-2); font-size: 1.2rem; }
.wf-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; }
.wf-foot small { color: var(--ink-2); }
.wf-flow small + small { display: block; }
.wf-name-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0 1rem; }
@media (max-width: 760px) { .wf-name-row { grid-template-columns: minmax(0, 1fr); } }
/* podpis pod článkem (p93) */
.ar-byline { margin: 1.6rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-2); }
.ar-byline strong { color: var(--ink); }

/* Předlohy a korpus hlasu (p94) */
.kp-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }
.kp-pills a { padding: 0.4rem 0.95rem; border-radius: 999px; background: var(--paper); color: var(--ink-2); font-weight: 700; text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--line); }
.kp-pills a[aria-current="page"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.kp { display: flex; flex-direction: column; gap: 1rem; }
.kp h2 small, .kp h3 small { color: var(--ink-3); font-size: 0.9rem; font-weight: 600; }
.kp h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0.6rem 0 0; }
.kp-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.kp-filter input, .kp-filter select { min-height: 2.5rem; padding: 0.35rem 0.7rem; border: 2px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; }
.kp-filter input[type="search"] { flex: 1 1 14rem; }
.kp-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.kp-table th, .kp-table td { padding: 0.55rem 0.5rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.kp-table thead th { border-top: 0; color: var(--ink-2); font-size: 0.82rem; }
.kp-table td small { display: block; color: var(--ink-3); font-size: 0.8rem; }
.kp-table a { color: var(--ink); font-weight: 600; }
.kp-tag { display: inline-block; min-width: 1.8rem; padding: 0.1rem 0.55rem; border-radius: 999px; text-align: center; font-weight: 700; font-size: 0.85rem; }
.kp-tag.is-ok { background: var(--mint-soft); color: var(--ok-ink, var(--ink)); }
.kp-tag.is-mid { background: var(--sun-soft); color: var(--sun-ink); }
.kp-tag.is-low { background: var(--error-soft); color: var(--error); }
.kp-legend { font-size: 0.85rem; font-weight: 400; color: var(--ink-2); }
.kp-stats { display: flex; flex-wrap: wrap; gap: 2.4rem; }
.kp-stats strong { display: block; font-family: var(--font-display); font-size: 2rem; }
.kp-stats span { color: var(--ink-2); }
.kp-scroll { overflow-x: auto; }
.kp-matrix td { text-align: center; }
.kp-matrix tr.is-total th, .kp-matrix tr.is-total td { background: var(--bg); }
.kp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .kp-grid { grid-template-columns: minmax(0, 1fr); } }

/* Rozložení klávesnic (p96, návrh varianta A): skupiny v kartách, dlaždice se zkratkou a klávesami, bez barevných okrajů */
.ly-cat-cs { --cat: var(--brand); }
.ly-cat-en { --cat: #13834f; }
.ly-cat-defr { --cat: #b85c00; }
.ly-cat-ergo { --cat: #6a3fe0; }
.ly-cat-other { --cat: #6f7598; }
.ly-group { display: flex; flex-direction: column; gap: 0.9rem; padding: 1.3rem 1.4rem; margin-bottom: 1.2rem; scroll-margin-top: 1rem; }
.ly-group h2, .ly-related h2 { display: flex; align-items: center; gap: 0.6rem; margin: 0; font-size: 1.45rem; }
.ly-group .sy-group-head > span { color: var(--ink-3); font-weight: 700; }
.ly-dot { flex: none; width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--cat); }
.ly-grid { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.ly-tile .ly-code { font-family: var(--font-display); font-size: 1.15rem; font-weight: 900; }
.ly-tile .sy-tile-text > span:first-child { line-height: 1.25; }
.ly-native { color: var(--ink-3); font-size: 0.85rem; }
.ly-keys { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.ly-keys kbd, .ly-mini kbd { display: inline-grid; place-items: center; min-width: 1.45rem; height: 1.55rem; padding: 0 0.25rem; border-radius: 6px; background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line), 0 2px 0 var(--edge); font-family: var(--font-text); font-size: 0.8rem; font-weight: 600; color: var(--ink); }
.ly-mine { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.4rem; align-items: center; padding: 1.4rem 1.6rem; margin-bottom: 1.2rem; }
.ly-mine h2 { margin: 0.1rem 0 0.4rem; font-size: 1.55rem; }
.ly-mine p { margin: 0; color: var(--ink-2); }
.ly-mine-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem !important; }
.ly-mini { display: flex; flex-direction: column; gap: 0.3rem; }
.ly-mini span { display: flex; gap: 0.3rem; }
.ly-mini span:nth-child(2) { padding-left: 0.8rem; }
.ly-mini span:nth-child(3) { padding-left: 1.6rem; }
.ly-mini kbd { min-width: 1.85rem; height: 1.85rem; font-size: 0.9rem; }
.ly-mini kbd.is-diff, .ly-key.is-diff { background: var(--sun-soft); box-shadow: inset 0 0 0 1.5px var(--sun), 0 3px 0 var(--edge); }
.ly-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.ly-tool { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; color: var(--ink); text-decoration: none; }
.ly-tool > span:nth-child(2) { display: flex; flex-direction: column; }
.ly-tool strong { font-family: var(--font-display); font-size: 1.1rem; }
.ly-tool > span:nth-child(2) span { color: var(--ink-2); font-size: 0.95rem; }
.ly-tool b { margin-left: auto; font-size: 1.5rem; }
.ly-tool-ico { display: grid; place-items: center; flex: none; width: 3.1rem; height: 3.1rem; border-radius: 14px; background: var(--brand); color: var(--on-brand); font-size: 1.4rem; font-weight: 800; }
.ly-tool-ico.is-green { background: #13834f; }
/* stránka rozložení */
.ly-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 19rem); gap: 1.5rem; align-items: center; padding: 1.6rem 1.8rem; margin-bottom: 1.2rem; }
.ly-head h1 { margin: 0.2rem 0 0.6rem; }
.ly-intro { margin: 0; font-size: 1.08rem; }
.ly-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.9rem 0 0; }
.ly-tags span { padding: 0.15rem 0.65rem; border-radius: 99px; background: var(--bg); color: var(--ink-2); font-family: var(--font-display); font-weight: 800; font-size: 0.82rem; }
.ly-check { display: flex; flex-direction: column; gap: 0.45rem; padding: 1rem 1.1rem; border-radius: 18px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); }
.ly-check span { color: var(--ink-2); font-size: 0.95rem; }
.ly-kb { display: flex; flex-direction: column; gap: 0.9rem; padding: 1.3rem 1.4rem; margin-bottom: 1.2rem; }
.ly-kb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; }
.ly-layers, .ly-os { display: inline-flex; gap: 0.25rem; padding: 0.25rem; border-radius: 14px; background: var(--bg); }
.ly-layers button, .ly-os button { padding: 0.45rem 0.95rem; border: 0; border-radius: 11px; background: transparent; color: var(--ink-2); font: inherit; font-family: var(--font-display); font-weight: 800; cursor: pointer; }
.ly-layers button[aria-pressed="true"], .ly-os button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 2px 0 var(--edge), inset 0 0 0 1.5px var(--line); }
.ly-compare { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-left: auto; }
.ly-compare select { min-height: 2.3rem; padding: 0 0.6rem; border: 2px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; }
.ly-board { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.9rem; border-radius: 18px; background: var(--bg); overflow-x: auto; }
.ly-row { display: grid; gap: 0.35rem; width: 100%; min-width: 44rem; max-width: 58rem; margin: 0 auto; }
.ly-key { position: relative; display: grid; place-items: center; min-width: 0; height: 3.1rem; border-radius: 10px; background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line), 0 3px 0 var(--edge); font-family: var(--font-text); }
.ly-key .ly-main { font-size: 1.1rem; font-weight: 600; }
.ly-key .ly-main.is-dead, .ly-legend .is-dead { color: #b85c00; }
.ly-key.is-empty .ly-main::before { content: "·"; color: var(--ink-3); }
.ly-sh { position: absolute; left: 0.35rem; top: 0.15rem; color: var(--ink-3); font-size: 0.72rem; }
.ly-ag { position: absolute; right: 0.35rem; bottom: 0.15rem; color: var(--brand); font-size: 0.72rem; font-weight: 700; }
.ly-key.is-mod { padding: 0 0.4rem; color: var(--ink-2); font-family: var(--font-ui); font-size: 0.78rem; font-weight: 700; white-space: nowrap; overflow: hidden; }
.ly-k-backspace { font-size: 1.15rem !important; }
/* evropský Enter: horní díl širší (1,5), spodní užší (1,25), spojené přes mezeru mezi řadami */
.ly-key.is-enter-top { z-index: 1; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: inset 0 0 0 1.5px var(--line); }
.ly-key.is-enter-bottom { height: calc(3.1rem + 0.35rem); margin-top: -0.35rem; border-top-left-radius: 0; border-top-right-radius: 0;
  box-shadow: inset 1.5px 0 0 var(--line), inset -1.5px 0 0 var(--line), inset 0 -1.5px 0 var(--line), 0 3px 0 var(--edge); }
.ly-sh.is-dead, .ly-ag.is-dead { color: #b85c00; }
.ly-kb[data-layer="s"] .ly-board .ly-sh, .ly-kb[data-layer="a"] .ly-board .ly-ag { visibility: hidden; }
.ly-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.3rem; margin: 0; color: var(--ink-2); font-size: 0.9rem; }
.ly-legend .ly-sh, .ly-legend .ly-ag { position: static; }
.ly-sw { display: inline-block; width: 0.9rem; height: 0.9rem; margin-right: 0.4rem; border-radius: 4px; vertical-align: -2px; }
.ly-sw.is-diff { background: var(--sun-soft); box-shadow: inset 0 0 0 1.5px var(--sun); }
.ly-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.2rem; margin-bottom: 1.2rem; }
.ly-box { display: flex; flex-direction: column; gap: 0.7rem; padding: 1.3rem 1.4rem; margin-bottom: 1.2rem; }
.ly-cols .ly-box { margin-bottom: 0; }
.ly-box h2 { margin: 0; font-size: 1.35rem; }
.ly-box ul, .ly-box ol { display: flex; flex-direction: column; gap: 0.35rem; margin: 0; padding-left: 1.3rem; }
.ly-os-name { margin: 0.4rem 0 0.2rem; font-size: 1rem; }
.ly-os-box.has-tabs .ly-os-name, [data-ly-os-box].has-tabs .ly-os-name { display: none; }
.ly-wanted { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.7rem; }
.ly-wanted > a, .ly-wanted > span { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.7rem 0.9rem; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); text-decoration: none; }
.ly-wanted b { font-family: var(--font-text); font-size: 1.5rem; }
.ly-wanted small { color: var(--ink-2); }
.ly-box > p { margin: 0; }
.ly-try { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.2rem; align-items: center; padding: 1.4rem 1.6rem; margin-bottom: 1.2rem; border-radius: 22px; background: #1c2045; color: #ffffff; }
.ly-try h2 { margin: 0 0 0.3rem; color: #ffffff; font-size: 1.4rem; }
.ly-try p { margin: 0; color: rgba(255, 255, 255, 0.82); }
.ly-try-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ly-btn-light { background: rgba(255, 255, 255, 0.12); color: #ffffff; box-shadow: none; }
.ly-faq details { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.ly-faq summary { font-family: var(--font-display); font-weight: 800; cursor: pointer; }
.ly-faq details p { margin: 0.5rem 0 0; color: var(--ink-2); }
.ly-related { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 1.2rem; }
@media (max-width: 760px) {
  .ly-mine, .ly-head, .ly-try { grid-template-columns: minmax(0, 1fr); }
  .ly-compare { margin-left: 0; }
  .ly-key { height: 2.6rem; }
  .ly-key.is-enter-bottom { height: calc(2.6rem + 0.35rem); }
}
/* administrace rozložení (p96) */
.ly-adm-table td small { display: block; color: var(--ink-3); font-size: 0.8rem; }
.ly-adm-table td .kp-tag { text-decoration: none; }
.ly-live { color: #13834f; font-size: 0.8rem; }
.ly-adm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 1.2rem; align-items: start; }
.ly-adm-grid > section { display: flex; flex-direction: column; gap: 0.9rem; }
.ly-adm-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.ly-adm-seo { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.ly-adm-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 0.6rem; margin-bottom: 0.5rem; }
.ly-adm-faq input, .ly-adm-faq textarea { width: 100%; box-sizing: border-box; padding: 0.5rem 0.7rem; border: 2px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; }
.ly-adm-side { display: flex; flex-direction: column; gap: 0.9rem; }
.ly-adm-side .card { display: flex; flex-direction: column; gap: 0.6rem; }
.ly-adm-check { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.ly-adm-check .is-ok { color: #13834f; }
.ly-adm-check .is-no { color: var(--error); }
@media (max-width: 1000px) { .ly-adm-grid, .ly-adm-how, .ly-adm-seo { grid-template-columns: minmax(0, 1fr); } }
.sy-tools:has(.is-layouts) { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.sy-tool.is-layouts { background: linear-gradient(135deg, #4a2fb8, #6a3fe0); box-shadow: 0 6px 0 #3a2390; }
.ly-adm-side .ly-mini { overflow: hidden; } .ly-adm-side .ly-mini kbd { min-width: 1.15rem; height: 1.3rem; padding: 0 0.15rem; font-size: 0.68rem; } .ly-adm-side .ly-mini span { gap: 0.2rem; } .ly-adm-side .ly-mini span:nth-child(2) { padding-left: 0.5rem; } .ly-adm-side .ly-mini span:nth-child(3) { padding-left: 1rem; }

/* podnabídky v menu (p98, návrh B): skupina ve světlém podkladu, řádky s ikonou, vybraná položka jako bílá karta */
.side-sub { gap: 0.05rem; margin: 0.15rem 0.15rem 0.35rem 0.9rem; padding: 0.28rem; border-radius: 14px; background: var(--bg); box-shadow: none; }
.side-nav .side-sub a { gap: 0.55rem; padding: 0.17rem 0.5rem; border-radius: 11px; background: transparent; color: var(--ink-2); font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; line-height: 1.2; }
.side-nav .side-sub a:hover { background: var(--paper); color: var(--ink); }
.side-nav .side-sub a[aria-current="page"] { background: var(--paper); color: var(--brand); font-weight: 900; box-shadow: 0 2px 0 var(--edge), inset 0 0 0 1.5px var(--line); }
.side-nav .side-sub.is-list a { padding-left: 0.45rem; white-space: normal; }
.side-sub-ico { flex: none; display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-family: var(--font-display); font-size: 0.78rem; font-weight: 900; }
.side-sub-ico svg { width: 14px; height: 14px; }
.side-nav .side-sub a[aria-current="page"] .side-sub-ico { background: var(--brand); color: var(--on-brand); }
/* p99: všechny podnabídky stejně (seznam s ikonou); názvy v menu se nikdy nezalomí (posuvník menu ubírá šířku);
   s otevřenou podnabídkou se schová „Úplně zdarma“, aby se menu vešlo na výšku */
.side-nav > a span, .side-nav .side-item > a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.side-nav > a, .side-nav .side-item > a { min-width: 0; }
.side-nav .side-sub.is-list a > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-nav:has(.side-sub:not([hidden])) ~ .side-free { display: none; }

/* p118: Administrace → Zpětné odkazy (návrh Odkazy*) */
.bk { display: flex; flex-direction: column; gap: 1.3rem; }
.bk h2 { margin: 0; font-family: var(--font-display); font-weight: 800; }
.bk .bk-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; max-width: none; }
.bk .bk-head > div:first-child { flex: 1 1 28rem; display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.bk .bk-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 900; }
.bk .bk-head p { margin: 0; color: var(--ink-2); max-width: 62ch; }
.bk .bk-head-act { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.bk .bk-head > :last-child:not(:first-child) { margin-left: auto; }
.bk-crumb { font-size: 0.95rem; color: var(--ink-2); }
.bk-hint { color: var(--ink-2); font-size: 0.9rem; }
.bk-group-head { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.bk-group-head h2 { font-size: 1.25rem; }
.bk-group-head h2 span { color: var(--ink-2); }
.bk-group-head form { margin-left: auto; }
.bk-btn { display: inline-flex; align-items: center; min-height: 2.4rem; padding: 0.35rem 0.9rem; border: 0; border-radius: 12px; background: var(--paper); color: var(--brand);
  box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; text-decoration: none; white-space: nowrap; cursor: pointer; }
.bk-btn.is-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 3px 0 var(--brand-edge, var(--edge)); }
.bk form { margin: 0; }
.bk-today { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.2rem 1.3rem; border-radius: 22px; background: var(--paper); box-shadow: inset 0 0 0 2.5px var(--brand); }
.bk-today ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.bk-todo { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; flex-wrap: wrap; padding: 0.75rem 0.9rem; border-radius: 14px; background: var(--bg, var(--mod)); }
.bk-todo.is-due { background: var(--sun-soft); }
.bk-todo > div:first-child { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.bk-todo strong { font-family: var(--font-display); font-weight: 900; }
.bk-todo strong a { color: inherit; }
.bk-todo span { color: var(--ink-2); font-size: 0.9rem; }
.bk-todo-act { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.bk-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr)); gap: 0.6rem; }
.bk-steps a { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.85rem 1.1rem; border-radius: 16px; text-decoration: none; }
.bk-steps strong { font-family: var(--font-display); font-weight: 900; font-size: 1.9rem; line-height: 1.1; }
.bk-steps span { font-family: var(--font-display); font-weight: 800; }
.bk-steps .is-todo { background: var(--brand-soft); color: var(--brand); }
.bk-steps .is-wait { background: var(--sun-soft); color: var(--sun-ink); }
.bk-steps .is-answer { background: var(--mod); color: var(--brand); }
.bk-steps .is-done { background: var(--mint-soft); color: var(--ok-ink, var(--ink)); }
.bk-steps a[aria-current] { box-shadow: inset 0 0 0 2.5px currentColor; }
.bk-bar { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.bk-chips { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.bk-chips a { padding: 0.3rem 0.75rem; border-radius: 10px; background: var(--paper); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line);
  font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; text-decoration: none; }
.bk-chips a[aria-current] { background: var(--ink); color: var(--paper); box-shadow: none; }
.bk-group { display: flex; flex-direction: column; gap: 0.6rem; }
.bk-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.bk-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem 1rem; align-items: center; padding: 0.85rem 1.1rem; border-radius: 16px;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.bk-row.is-due { background: var(--sun-soft); }
.bk-row-main { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.bk-row-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.bk-name { font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.bk-name:hover { text-decoration: underline; }
.bk-dom { color: var(--ink-2); font-size: 0.88rem; overflow-wrap: anywhere; }
.bk-lang { display: inline-grid; place-items: center; min-width: 1.9rem; height: 1.4rem; padding: 0 0.35rem; border-radius: 7px; background: var(--mod);
  color: var(--ink-2); font-family: var(--font-mono, monospace); font-size: 0.75rem; font-weight: 700; }
.bk-dr { padding: 0.05rem 0.45rem; border-radius: 7px; background: var(--brand-soft); color: var(--brand); font-size: 0.78rem; font-weight: 800; }
.bk-offer { color: var(--ink-2); font-size: 0.94rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-meta { font-size: 0.88rem; color: var(--ink-2); display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin: 0; }
.bk-row-act { display: flex; gap: 0.5rem; align-items: center; }
.bk-more { position: relative; }
.bk-more summary { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 900; cursor: pointer; list-style: none; }
.bk-more summary::-webkit-details-marker { display: none; }
.bk-more-menu { position: absolute; right: 0; top: calc(100% + 0.3rem); z-index: 5; min-width: 13rem; display: flex; flex-direction: column; padding: 0.4rem; border-radius: 14px;
  background: var(--paper); box-shadow: 0 10px 30px rgb(0 0 0 / 0.15), inset 0 0 0 1.5px var(--line); }
.bk-more-menu a, .bk-more-menu button { display: block; width: 100%; padding: 0.5rem 0.7rem; border: 0; border-radius: 9px; background: none; color: var(--ink);
  font: inherit; font-size: 0.95rem; text-align: left; text-decoration: none; cursor: pointer; }
.bk-more-menu a:hover, .bk-more-menu button:hover { background: var(--mod); }
.bk-more-menu .is-danger { color: var(--error-ink); }
.bk-showall { margin: 0; text-align: center; font-family: var(--font-display); font-weight: 800; }
.bk-empty { margin: 0; padding: 1rem 1.1rem; border-radius: 16px; border: 2px dashed var(--line); color: var(--ink-2); }
.bk-box { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.2rem 1.3rem; border-radius: 22px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.bk-box h2 { font-size: 1.2rem; }
.bk-box p { margin: 0; }
.bk-upload { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.bk-upload input[type=file] { max-width: 100%; }
.bk-help summary { cursor: pointer; list-style: none; }
.bk-help summary::-webkit-details-marker { display: none; }
.bk-help summary h2 { display: inline; }
.bk-help summary::after { content: ' ▾'; color: var(--ink-2); }
.bk-help[open] summary::after { content: ' ▴'; }
.bk-help ol { margin: 0.6rem 0 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; }
.bk-detail { display: flex; flex-wrap: wrap; gap: 1.3rem; align-items: flex-start; }
.bk-detail-main { flex: 999 1 32rem; min-width: 0; display: flex; flex-direction: column; gap: 1.3rem; }
.bk-detail-side { flex: 1 1 18rem; min-width: 0; display: flex; flex-direction: column; gap: 1.3rem; }
.bk-stepper { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; }
.bk-stepper li { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.6rem 0.75rem; border-radius: 12px; background: var(--mod); color: var(--ink-2); }
.bk-stepper li.is-past { background: var(--mint-soft); color: var(--ok-ink, var(--ink)); }
.bk-stepper li.is-now { background: var(--brand); color: var(--on-brand); }
.bk-stepper strong { font-family: var(--font-display); font-weight: 900; }
.bk-stepper span { font-size: 0.82rem; }
.bk-action { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; padding: 0.75rem 0.9rem; border-radius: 14px; background: var(--mod); }
.bk-action.is-due { background: var(--sun-soft); }
.bk-action strong { font-family: var(--font-display); font-weight: 900; }
.bk-action span { color: var(--ink-2); }
.bk-grow { flex: 1; }
.bk-refused { padding: 0.6rem 0.8rem; border-radius: 12px; background: var(--mod); }
.bk-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: 0.8rem 1rem; }
.bk-form label { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.bk-form label > span { font-family: var(--font-display); font-weight: 800; font-size: 0.88rem; color: var(--ink-2); }
.bk-form input, .bk-form select, .bk-form textarea { font: inherit; padding: 0.55rem 0.7rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); min-width: 0; }
.bk-form .is-wide { grid-column: 1 / -1; }
.bk-ahrefs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr)); gap: 0.8rem 1rem; margin: 0; padding: 0.8rem 1rem 1rem; border: 1.5px solid var(--line); border-radius: 14px; }
.bk-ahrefs legend { padding: 0 0.4rem; font-family: var(--font-display); font-weight: 800; color: var(--ink-2); }
.bk-dl { margin: 0; }
.bk-dl div { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding: 0.5rem 0; border-top: 1.5px solid var(--line); }
.bk-dl dt { color: var(--ink-2); font-size: 0.92rem; }
.bk-dl dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.bk-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.bk-metrics div { display: flex; flex-direction: column; padding: 0.6rem; border-radius: 12px; background: var(--mod); }
.bk-metrics strong { font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; }
.bk-metrics span { font-size: 0.8rem; color: var(--ink-2); }
.bk-history { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.95rem; }
.bk-history span { color: var(--ink-2); }
@media (max-width: 640px) {
  .bk-row { grid-template-columns: minmax(0, 1fr); }
  .bk-row-act { flex-wrap: wrap; }
  .bk-offer { white-space: normal; }
  .bk-stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-group-head form { margin-left: 0; }
}

/* p119: sdílení, podpora projektu, Vlož na svůj web */
.share-bar { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.6rem; }
.share-bar[hidden] { display: none; }
.share-heading { font-family: var(--font-display); font-weight: 800; }
.share-buttons { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.35rem 0.85rem; border: 0; border-radius: 12px; background: var(--paper); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; font-family: var(--font-display); font-weight: 800; font-size: 0.92rem; text-decoration: none; cursor: pointer; white-space: nowrap; }
.share-btn:hover { box-shadow: inset 0 0 0 2px var(--brand); }
.share-btn.is-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 3px 0 var(--brand-edge); }
.share-btn[hidden] { display: none; }
.support-box { display: flex; flex-direction: column; gap: 0.6rem; max-width: 52rem; margin: 1.5rem auto; padding: 1.2rem 1.4rem; border-radius: 22px; background: var(--mint-soft); }
.support-box h2 { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; }
.support-box p { margin: 0; }
.support-box .share-bar { margin-top: 0; }
.cert-share { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem 1.1rem; }
.cert-share small { color: var(--ink-2); }
.cert-share .share-bar { margin-top: 0; }
.cert-linkedin { align-self: flex-start; }
.cert-badge-h { margin-top: 0.5rem; font-family: var(--font-display); }
.cert-badge-img { max-width: 100%; height: auto; }
.cert-share textarea { font: 0.8rem/1.4 var(--font-mono, monospace); padding: 0.5rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--mod); color: var(--ink); resize: none; width: 100%; }
.cert-share .btn { align-self: flex-start; }
.embed-page { display: flex; flex-direction: column; gap: 1.4rem; max-width: 72rem; margin: 0 auto; }
.embed-head h1 { margin: 0 0 0.4rem; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.embed-builder { display: flex; flex-direction: column; gap: 1rem; padding: 1.3rem; }
.embed-pick { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0; padding: 0; border: 0; }
.embed-pick legend { font-family: var(--font-display); font-weight: 800; margin-bottom: 0.4rem; }
.embed-chip input { position: absolute; opacity: 0; }
.embed-chip span { display: inline-block; padding: 0.45rem 0.95rem; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line);
  font-family: var(--font-display); font-weight: 800; cursor: pointer; }
.embed-chip input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.embed-chip input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.embed-opts { display: flex; gap: 1rem; flex-wrap: wrap; }
.embed-opts label { display: flex; flex-direction: column; gap: 0.25rem; font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; color: var(--ink-2); }
.embed-opts label[hidden] { display: none; }
.embed-opts select { font: inherit; font-weight: 600; padding: 0.4rem 0.6rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.embed-grid { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.embed-preview { flex: 3 1 24rem; min-width: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.embed-preview iframe { width: 100%; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.embed-by { margin: 0; font-size: 0.95rem; }
.embed-code { flex: 2 1 18rem; min-width: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.embed-code textarea { font: 0.82rem/1.45 var(--font-mono, monospace); padding: 0.7rem; border-radius: 12px; border: 0; background: var(--ink); color: var(--paper); resize: vertical; width: 100%; }
.embed-code .btn { align-self: flex-start; }
.embed-code small { color: var(--ink-2); }
.embed-label { font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; color: var(--ink-2); }
.embed-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap: 1.2rem; }
.embed-info .card { padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.6rem; }
.embed-info h2 { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; }
.embed-info ol { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.3rem; }
.embed-info p { margin: 0; }
.embed-note { color: var(--ink-2); font-size: 0.92rem; }
.embed-badge { display: inline-flex; align-items: center; gap: 0.8rem; padding: 0.7rem 1rem; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); align-self: flex-start; }
.embed-badge > span:first-child { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--ink); color: #ffd166; font-weight: 900; }
.embed-badge strong { display: block; font-family: var(--font-display); }
.embed-badge small { color: var(--ink-2); }
.bk-draft { display: flex; flex-direction: column; gap: 0.3rem; }
.bk-draft span { font-family: var(--font-display); font-weight: 800; font-size: 0.88rem; color: var(--ink-2); }
.bk-draft input, .bk-draft textarea { font: inherit; font-size: 0.95rem; padding: 0.55rem 0.7rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--mod); color: var(--ink); width: 100%; resize: vertical; }
/* p121: Nastavení sdílení – texty v obrázcích s náhledem */
.sh-places { display: flex; gap: 0.4rem 1.2rem; flex-wrap: wrap; }
.sh-og { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: flex-start; }
.sh-og-form { flex: 1 1 22rem; }
.sh-og-preview { flex: 1 1 26rem; display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; position: sticky; top: 1rem; }
.sh-og-preview img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1.5px var(--line), 0 10px 30px rgb(28 32 69 / 0.12); background: #1d2257; }
.sh-og-preview img.is-loading { opacity: 0.6; }
.sh-changed { font-style: normal; font-size: 0.75rem; padding: 0.05rem 0.4rem; border-radius: 6px; background: var(--sun-soft); color: var(--sun-ink); margin-left: 0.3rem; }
.bk-form textarea { font: inherit; padding: 0.55rem 0.7rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); resize: vertical; min-width: 0; }
/* p122: sdílené texty ve dvou sloupcích, pole roste s textem */
.bk-form.sh-texts { grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); }
.sh-texts textarea { min-height: 4.6rem; field-sizing: content; }
/* p122: volba vzhledu obrázků */
.sh-theme fieldset { border: 0; padding: 0; margin: 0 0 0.6rem; }
.sh-theme legend { font-family: var(--font-display, inherit); font-weight: 800; margin-bottom: 0.5rem; padding: 0; }
.sh-theme-opts { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: stretch; }
.sh-theme-opt { flex: 1 1 13rem; max-width: 18rem; display: flex; flex-direction: column; gap: 0.45rem; padding: 0.6rem; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; font-weight: 800; }
.sh-theme-opt:has(input:checked) { box-shadow: inset 0 0 0 2.5px var(--brand); background: var(--brand-soft); }
.sh-theme-opt img { width: 100%; height: auto; border-radius: 10px; }
.sh-theme-act { flex: 1 1 12rem; display: flex; flex-direction: column; gap: 0.4rem; justify-content: center; align-items: flex-start; }
.bk-prio { background: var(--sun-soft); color: var(--ink); }
/* p124: oslovení e-mailem, Odpovědi */
.bk-badge { display: inline-block; min-width: 1.25rem; padding: 0 0.35rem; margin-left: 0.2rem; border-radius: 99px; background: var(--flame, #ff6b3d); color: #fff; font-size: 0.75rem; line-height: 1.25rem; text-align: center; }
.ol-personal textarea { background: var(--sun-soft); box-shadow: inset 0 0 0 2px #f2b400; border-color: transparent; }
.ol-form textarea[data-ol-body] { font-size: 0.95rem; line-height: 1.55; }
.ol-checks { list-style: none; margin: 0; padding: 0.7rem 0.9rem; border-radius: 14px; background: var(--brand-soft); display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.9rem; }
.ol-checks li::before { content: "○ "; color: var(--ink-2); }
.ol-checks li.is-ok::before { content: "✓ "; color: #0b8a54; }
.ol-checks li.is-bad { color: #b4232a; }
.ol-checks li.is-bad::before { content: "✗ "; }
.ol-checks li.is-info { color: var(--ink-2); }
.ol-checks li.is-info::before { content: ""; }
.ol-filters { margin: 0.2rem 0; }
.ol-inbox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 1rem; align-items: start; }
@media (max-width: 860px) { .ol-inbox { grid-template-columns: 1fr; } }
.ol-list { padding: 0.7rem; }
.ol-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.ol-list a { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.65rem 0.75rem; border-radius: 14px; text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.ol-list li.is-on a { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.ol-list li.is-new strong, .ol-list li.is-new .ol-subj { font-weight: 800; }
.ol-row1 { display: flex; gap: 0.5rem; align-items: baseline; justify-content: space-between; }
.ol-row1 small { color: var(--ink-2); white-space: nowrap; }
.ol-subj { font-size: 0.9rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-tag { align-self: flex-start; padding: 0.05rem 0.55rem; border-radius: 99px; font-size: 0.78rem; font-weight: 700; background: var(--brand-soft); color: var(--brand); }
.ol-tag.is-warn { background: var(--sun-soft); color: var(--ink); }
.ol-tag.is-bad { background: var(--error-soft); color: var(--ink); }
.ol-tag.is-muted { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-2); }
.ol-pre { white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 0.95rem; line-height: 1.55; margin: 0; }
.ol-pre.is-quote { color: var(--ink-2); font-size: 0.88rem; }
.ol-body { padding: 0.9rem 1rem; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); display: flex; flex-direction: column; gap: 0.6rem; }
.ol-actions form, .ol-assign { margin: 0; }
.bk-bar.ol-assign { align-items: flex-end; justify-content: flex-start; }
.ol-assign label { display: flex; flex-direction: column; gap: 0.25rem; flex: 1 1 16rem; min-width: 0; font-weight: 700; font-size: 0.9rem; }
.ol-actions .bk-btn:disabled { opacity: 0.45; cursor: default; }
.ol-assign select { font: inherit; padding: 0.5rem 0.6rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); width: 100%; max-width: 100%; min-width: 0; }
.ol-thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.88rem; }
.ol-thread summary { cursor: pointer; }
.ol-thread summary span { display: block; color: var(--ink-2); }
.ol-thread li.is-in summary strong { color: var(--brand); }
.ol-thread .ol-pre { font-size: 0.85rem; margin: 0.4rem 0; max-height: 18rem; overflow: auto; }
.ol-help ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.92rem; }
.ol-help summary { cursor: pointer; font-weight: 800; }
details.ol-help { display: block; }
details.ol-help[open] summary { margin-bottom: 0.7rem; }
.ol-via { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.ol-via legend { font-weight: 700; margin-bottom: 0.3rem; }
/* p124: karty Oslovení webů a Schránka v Nastavení – mřížka polí zarovnaná nahoru */
#osloveni .admin-form, #schranka .admin-form { max-width: 46rem; }
.ol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: 0.9rem 1rem; align-items: start; }
.ol-grid label { align-content: start; }
#osloveni select, #osloveni input[type="date"], #schranka select, #schranka input[type="date"] { width: 100%; min-height: 2.9rem; padding: 0.5rem 0.8rem; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; box-sizing: border-box; }
#osloveni .ol-via { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: 0.7rem; }
#osloveni .ol-via legend { grid-column: 1 / -1; }
#osloveni .ol-via .check { padding: 0.8rem 0.9rem; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 400; cursor: pointer; }
#osloveni .ol-via .check:has(input:checked) { box-shadow: inset 0 0 0 2.5px var(--brand); background: var(--brand-soft); }
#osloveni .ol-via .check strong { display: block; font-weight: 800; }
#osloveni .edit-form, #schranka .edit-form { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
#osloveni .ol-steps { margin-top: 1rem; }
#osloveni .ol-steps summary { cursor: pointer; font-weight: 700; }
#osloveni .ol-steps ol { margin: 0.6rem 0 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.3rem; }
/* p126: jedna karta Schránka pro oslovení – skupiny SMTP / IMAP / Oslovení */
#osloveni .ol-set { border: 0; border-top: 1px solid var(--line); padding: 1rem 0 0; margin: 0.4rem 0 0; display: grid; gap: 0.9rem; }
#osloveni .ol-set legend { font-weight: 800; padding: 0 0.4rem 0 0; }
#osloveni .edit-form .field-note { font-size: var(--step--1); }
/* p127: návrh věty od AI */
.ol-ai { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; margin-top: -0.3rem; }
.ol-ai-list { flex: 1 1 100%; display: flex; flex-direction: column; gap: 0.4rem; }
.ol-ai-list:empty { display: none; }
.ol-ai-item { text-align: left; font: inherit; font-size: 0.93rem; padding: 0.55rem 0.8rem; border: 0; border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.ol-ai-item:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
.ol-ai-item.is-on { background: var(--sun-soft); box-shadow: inset 0 0 0 2px #f2b400; }
/* p129: šablony odpovědí, odpověď s AI; staženo + Stáhnout teď na jedné ose */
.bk .bk-head-act.ol-fetch { align-items: center; }
.ol-tpl .bk-bar { align-items: flex-start; }
.ol-tpl .bk-chips { align-items: center; gap: 0.35rem; }
.ol-tpl-label { font-weight: 800; font-size: 0.9rem; margin-right: 0.2rem; }
.ol-chip { font: inherit; font-size: 0.88rem; font-weight: 700; padding: 0.3rem 0.75rem; border: 0; border-radius: 10px; background: var(--paper); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.ol-chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--brand); }
.ol-chip.is-on { background: var(--ink); color: var(--paper); box-shadow: none; }
.ol-reply-act { align-items: center; }
/* p130: odhlášení z e-mailů oslovení, Najít kontakt, Nekontaktovat */
.unsub-page { max-width: 38rem; margin: 2rem auto; padding: 0 1rem; }
.unsub-card { display: flex; flex-direction: column; gap: 1rem; padding: 1.6rem 1.7rem; }
.unsub-card h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.unsub-card p { margin: 0; }
.unsub-done { font-weight: 700; }
.ol-find { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; margin-top: 0.2rem; }
.ol-find-list { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ol-find-list:empty { display: none; }
.ol-find-item { font: inherit; font-size: 0.86rem; padding: 0.3rem 0.65rem; border: 0; border-radius: 10px; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; text-align: left; }
.ol-find-item small { color: var(--ink-2); margin-left: 0.3rem; }
.ol-find-item:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
.ol-find-item.is-blocked { opacity: 0.55; text-decoration: line-through; cursor: not-allowed; }
.ol-blocked { padding: 0.7rem 0.9rem; border-radius: 14px; background: var(--error-soft); color: var(--ink); font-weight: 700; }
.ol-blocklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; }
.ol-blocklist li { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; align-items: center; padding: 0.4rem 0.6rem; border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--line); }
.ol-blocklist li span { color: var(--ink-2); }
.ol-blocklist form { margin: 0 0 0 auto; }
#osloveni .edit-form.ol-weekly-now { margin-top: 0.6rem; padding-top: 0; border-top: 0; }
/* p131: odpověď v detailu webu, text e-mailu roste s obsahem */
.ol-form textarea[data-ol-body], .ol-reply textarea[data-ol-reply-body] { field-sizing: content; min-height: 10rem; max-height: 40rem; }
.ol-their { display: flex; flex-direction: column; gap: 0.5rem; }
.ol-their .bk-meta { display: block; }
/* p132: konverzace s webem (návrh OdpovedA) – jejich zpráva zvýrazněná, náš e-mail šedě vpravo, „Co s webem?“, „Vaše odpověď“ */
.ol-compose-head, .ol-read-head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem 1rem; flex-wrap: wrap; }
.ol-compose-head h2, .ol-read-head h2 { margin: 0; }
.ol-read-head a { font-size: 0.9rem; font-weight: 700; }
.ol-langs { align-items: center; }
.ol-conv { display: flex; flex-direction: column; gap: 1rem; }
.ol-msg { display: flex; gap: 0.75rem; align-items: flex-start; min-width: 0; }
.ol-msg.is-ours { justify-content: flex-end; }
.ol-msg-col { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.ol-msg.is-ours .ol-msg-col { flex: 0 1 78%; align-items: flex-end; }
.ol-ava { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 900; font-size: 0.95rem; }
.ol-ava.is-ours { background: var(--brand); color: var(--on-brand); }
.ol-msg-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 0.45rem; align-items: baseline; font-size: 0.85rem; color: var(--ink-2); }
.ol-msg-meta strong { color: var(--ink); font-size: 1rem; }
.ol-msg-meta .ol-tag { align-self: center; }
.ol-msg-subj { margin: 0; font-size: 0.85rem; color: var(--ink-2); overflow-wrap: anywhere; }
.ol-bubble { max-width: 100%; }
.ol-bubble.is-theirs { padding: 1rem 1.15rem; border-radius: 4px 18px 18px 18px; background: var(--paper); box-shadow: 0 0 0 2px var(--brand), 0 6px 18px rgba(61, 90, 254, 0.12); }
.ol-bubble.is-theirs .ol-pre { font-size: 1.06rem; line-height: 1.6; color: var(--ink); }
.ol-msg.is-bounce .ol-bubble.is-theirs { box-shadow: 0 0 0 2px var(--error, #e5484d); }
.ol-bubble.is-ours { padding: 0.6rem 0.9rem; border-radius: 18px 4px 18px 18px; background: var(--brand-soft); color: var(--ink-2); font-size: 0.9rem; line-height: 1.5; }
.ol-bubble.is-ours summary { cursor: pointer; list-style: none; }
.ol-bubble.is-ours summary::-webkit-details-marker { display: none; }
.ol-bubble.is-ours .ol-fold { display: none; }
.ol-bubble.is-ours[open] .ol-peek { display: none; }
.ol-bubble.is-ours[open] .ol-fold { display: inline-block; font-weight: 800; font-size: 0.82rem; color: var(--brand); margin-bottom: 0.4rem; }
.ol-bubble.is-ours[open] summary:hover .ol-fold { text-decoration: underline; }
.ol-ava.is-theirs { background: var(--sun); color: var(--sun-ink); }
.ol-bubble.is-ours .ol-pre { font-size: 0.9rem; color: var(--ink-2); max-height: 22rem; overflow: auto; }
.ol-quote { font-size: 0.85rem; color: var(--ink-2); }
.ol-quote summary { cursor: pointer; }
.ol-quote .ol-pre { margin-top: 0.4rem; padding-left: 0.8rem; border-left: 3px solid var(--line); max-height: 22rem; overflow: auto; }
.ol-state { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; padding: 0.6rem 0.75rem; border-radius: 14px; background: var(--mint-soft); }
.ol-state > strong { color: var(--mint-edge); font-size: 0.92rem; margin-right: 0.2rem; }
.ol-state form { margin: 0; }
.ol-state .bk-btn { min-height: 2.1rem; padding: 0.25rem 0.8rem; font-size: 0.9rem; }
.ol-state .bk-btn.is-on { background: var(--mint-edge); color: #fff; opacity: 1; }
.ol-state-gap { flex: 1 1 0; }
.ol-reply { display: flex; flex-direction: column; gap: 0.7rem; margin: 0; padding: 1rem 1.1rem; border-radius: 18px; background: var(--bg, #f7f8ff); box-shadow: inset 0 0 0 1.5px var(--line); }
.ol-reply-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; flex-wrap: wrap; }
.ol-reply-head h3 { margin: 0; font-size: 1.1rem; font-weight: 900; }
.ol-reply-head h3 span { font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.ol-reply-lang { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--ink-2); }
.ol-reply-lang select { font: inherit; padding: 0.3rem 0.5rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); max-width: 100%; }
.ol-reply .ol-tpl { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.ol-reply .ol-tpl-label { font-weight: 600; color: var(--ink-2); font-size: 0.85rem; }
.ol-reply .ol-chip { border-radius: 999px; font-size: 0.85rem; padding: 0.28rem 0.75rem; }
.ol-reply-text { display: block; }
.ol-reply-text textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; line-height: 1.55; padding: 0.8rem 0.9rem; border: 0; border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); resize: vertical; }
.ol-reply-text textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand); }
.ol-reply textarea[data-ol-reply-body] { min-height: 8rem; }
.ol-reply-act { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.ol-reply-note { margin: 0; }
.ol-read { display: flex; flex-direction: column; gap: 1rem; }
.ol-read-foot { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: flex-end; font-size: 0.88rem; color: var(--ink-2); }
.ol-read-foot form { margin: 0; }
.ol-read-foot .ol-assign { display: flex; gap: 0.5rem; align-items: flex-end; flex: 1 1 18rem; min-width: 0; }
.ol-read-foot .ol-assign label { flex: 1 1 auto; font-weight: 600; font-size: 0.85rem; }
.ol-read-foot .ol-assign select { padding: 0.35rem 0.5rem; }
.bk-link { white-space: nowrap; font: inherit; font-size: 0.88rem; font-weight: 700; padding: 0.35rem 0.1rem; border: 0; background: none; color: var(--brand); text-decoration: underline; cursor: pointer; }
.ol-list a { flex-direction: row; gap: 0.65rem; align-items: flex-start; }
.ol-item { display: flex; flex-direction: column; gap: 0.15rem; flex: 1 1 auto; min-width: 0; }
.ol-list .ol-subj { color: var(--ink); }
@media (max-width: 640px) {
  .ol-msg.is-ours .ol-msg-col { flex-basis: 88%; }
  .ol-ava { width: 2rem; height: 2rem; font-size: 0.8rem; }
  .ol-state-gap { display: none; }
}
.ol-list .ol-tag { border-radius: 8px; }

/* p142 Administrace → Účty: Uživatelé / Školy / Bez účtu ------------------------------------- */
.acc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.8rem 1.2rem; }
.acc-head .panel-intro { margin: 0; }
.acc-new { flex: 0 0 auto; }
.acc-new > summary { list-style: none; cursor: pointer; }
.acc-new > summary::-webkit-details-marker { display: none; }
.acc-new[open] { flex: 1 1 100%; }
.acc-new > form { margin-top: 0.8rem; padding: 1rem 1.2rem; }
.acc-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: 0.7rem; margin: 1.2rem 0; }
.acc-kinds a { display: grid; gap: 0.1rem; padding: 0.85rem 1.1rem; border-radius: 16px; background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: 0 0 0 1.5px var(--line); }
.acc-kinds a:hover { box-shadow: 0 0 0 2px var(--brand-line); }
.acc-kinds a[aria-current] { background: var(--brand-soft); color: var(--brand-edge); box-shadow: 0 0 0 2.5px var(--brand-edge); }
.acc-kinds strong { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; line-height: 1.1; }
.acc-kinds span { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.acc-kinds small { color: var(--ink-2); font-size: var(--step--1); }
.acc-hints { margin-bottom: 1.2rem; padding: 1rem 1.2rem; border-radius: 18px; background: var(--sun-soft); box-shadow: 0 0 0 1.5px var(--sun-line); color: var(--sun-ink); }
.acc-hints h2 { font-size: 1.2rem; margin: 0; }
.acc-hints > p { margin: 0.2rem 0 0.7rem; font-size: var(--step--1); }
.acc-hints ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.acc-hints li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem 1rem; padding: 0.55rem 0.8rem; border-radius: 14px; background: var(--paper); color: var(--ink); }
.acc-hint-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.acc-who { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.acc-who .avatar { flex: none; width: 2.3rem; height: 2.3rem; font-size: 1rem; }
.acc-who > span:last-child { display: grid; line-height: 1.3; min-width: 0; }
.acc-who strong { font-family: var(--font-display); font-weight: 700; }
.acc-who small { color: var(--ink-2); font-size: var(--step--1); overflow-wrap: anywhere; }
.acc-who small.acc-tag { color: var(--brand-edge); }
.acc-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.7rem 1rem; margin-bottom: 0.9rem; }
.acc-search { display: flex; gap: 0.5rem; flex: 1 1 18rem; max-width: 30rem; margin: 0; }
.acc-search input { flex: 1; min-width: 0; }
.acc-filters { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.acc-filters a { padding: 0.35rem 0.75rem; border-radius: 10px; background: var(--paper); color: var(--ink-2); box-shadow: 0 0 0 1.5px var(--line); font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.acc-filters a span { opacity: 0.75; }
.acc-filters a[aria-current] { background: var(--ink); color: var(--paper); box-shadow: none; }
.acc-list, .acc-noclass { border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 1.5px var(--line); overflow: hidden; }
.acc-noclass { margin-top: 1.4rem; padding-top: 0.9rem; }
.acc-noclass > h2 { font-size: 1.2rem; margin: 0 1.1rem; }
.acc-noclass > p { margin: 0.1rem 1.1rem 0.5rem; }
.acc-row { display: grid; grid-template-columns: minmax(14rem, 1.6fr) minmax(0, 3fr); align-items: center; gap: 0.4rem 1rem; padding: 0.6rem 1.1rem; border-top: 1px solid var(--line); }
.acc-row:first-of-type, .acc-row-head + .acc-row { border-top: 0; }
.acc-row-head { display: none; }
.acc-stats { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 0.3rem 0.8rem; margin: 0; align-items: center; }
.acc-stats div { display: flex; flex-direction: column-reverse; min-width: 0; }
.acc-stats dt { font-size: 0.75rem; color: var(--ink-2); }
.acc-stats dd { margin: 0; font-variant-numeric: tabular-nums; }
.acc-stats dd small { color: var(--ink-2); font-size: var(--step--1); }
.acc-stats .is-muted, .acc-classes .is-muted { color: var(--ink-2); }
.acc-row .account-actions { grid-column: 1 / -1; }
.acc-row .account-actions:not([open]) { margin-top: -0.2rem; }
.acc-row .account-actions summary { font-size: 0.92rem; }
.acc-row .account-actions[open] { padding: 0.6rem 0 0.4rem; }
.acc-row .account-actions > form, .acc-row .account-actions > div { margin-top: 0.8rem; }
.school-role fieldset, .editor-role fieldset { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; border: 0; padding: 0; margin: 0; }
.school-role legend, .editor-role legend { font-weight: 700; margin-bottom: 0.3rem; }
.acc-noclass .acc-row { grid-template-columns: minmax(0, 1fr) auto; }
.acc-more, .acc-empty { margin: 0; padding: 0.8rem 1.1rem; color: var(--ink-2); font-size: var(--step--1); border-top: 1px solid var(--line); }
.acc-empty { border-top: 0; }
.acc-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); gap: 0.6rem; margin-bottom: 1rem; }
.acc-sum div { display: grid; padding: 0.7rem 1rem; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1.5px var(--line); }
.acc-sum strong { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.15; }
.acc-sum span { color: var(--ink-2); font-size: var(--step--1); }
.acc-school { padding: 1rem 1.2rem; margin-bottom: 0.9rem; border-radius: 18px; }
.acc-school-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem 1rem; }
.acc-school-head .avatar { width: 2.7rem; height: 2.7rem; font-size: 1.15rem; }
.acc-name-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; }
.acc-name-line strong { font-size: 1.15rem; }
.acc-school-sum { color: var(--ink-2); font-size: var(--step--1); }
.acc-pill { display: inline-block; padding: 0.05rem 0.55rem; border-radius: 99px; background: var(--brand-soft); color: var(--brand-edge); font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.acc-pill.is-ok { background: var(--mint-soft); color: var(--ok-ink); }
.acc-pill.is-warn { background: var(--sun-soft); color: var(--sun-ink); }
.acc-classes { margin-top: 0.6rem; }
.acc-classes .num { text-align: right; white-space: nowrap; }
.acc-classes td.is-ok { color: var(--ok-ink); font-weight: 700; }
.acc-classes code { font-size: 0.9rem; }
.acc-code { display: inline-block; padding: 0 0.4rem; border-radius: 7px; background: var(--mod); color: var(--ink-2); font-size: 0.78rem; font-weight: 700; }
.acc-school .account-actions { margin-top: 0.6rem; }
/* p153: panel Upravit – rozestupy a zarovnání jako u uživatelů */
.acc-school .account-actions > form, .acc-school .account-actions > div { margin-top: 0.8rem; }
.school-role, .editor-role { align-items: flex-end; }
.account-actions .field-note, .editor-role small { font-size: var(--step--1); color: var(--ink-2); }
.acc-foot { margin-top: 1rem; }
@media (min-width: 900px) {
  .acc-row-head { display: grid; padding-block: 0.55rem; font-size: 0.8rem; font-weight: 700; color: var(--ink-2); border-bottom: 1.5px solid var(--line); }
  .acc-row-head a { color: inherit; text-decoration: none; }
  .acc-row-head a:hover { color: var(--brand); }
  .acc-list .acc-stats dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .acc-stats .num { text-align: right; }
}
@media (max-width: 899px) {
  .acc-row { grid-template-columns: 1fr; }
  .acc-stats { grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); }
}
.acc-search input { box-sizing: border-box; min-height: 2.75rem; padding: 0.4rem 0.9rem; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; }
.acc-search input:focus-visible { outline-offset: 0; border-color: var(--brand); }
.acc-search .btn { min-height: 2.75rem; }
.acc-classes { table-layout: fixed; min-width: 40rem; }
.acc-classes th:nth-child(1) { width: 24%; }
.acc-classes th:nth-child(2) { width: 8%; }
.acc-classes th:nth-child(3) { width: 12%; }
.acc-classes th:nth-child(4) { width: 8%; }
.acc-classes th:nth-child(5) { width: 13%; }
.acc-classes th:nth-child(6) { width: 20%; }
.acc-classes th:nth-child(7) { width: 15%; }
.acc-classes th[scope="row"] { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .acc-kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; }
  .acc-kinds a { padding: 0.55rem 0.6rem; border-radius: 12px; }
  .acc-kinds strong { font-size: 1.35rem; }
  .acc-kinds span { font-size: 0.9rem; }
  .acc-kinds small { display: none; }
  .acc-head .panel-intro { font-size: var(--step--1); }
}

/* p143 Psaní lekce: vzhled A (přehledný) a B (kola s panelem), délka cvičení ------------------------ */
.lesson-head.is-v2 { max-width: none; padding-bottom: 1rem; }
.lesson-title-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 0.6rem 1.2rem; }
.lesson-head.is-v2 h1 { margin-bottom: 0.2rem; }
.lesson-head.is-v2 .kicker { margin-bottom: 0.1rem; }
.lesson-head.is-v2 .lesson-desc { margin: 0.5rem 0 0; max-width: 48rem; color: var(--ink-2); }
.lesson-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.lesson-chip { padding: 0.35rem 0.8rem; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1.5px var(--line); color: var(--ink-2); font-size: var(--step--1); }
.lesson-chip strong { color: var(--ink); }
.trainer.is-lesson { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.trainer.is-lesson [hidden] { display: none !important; }
.trainer-main { display: grid; gap: 0.9rem; min-width: 0; }
.trainer-side { display: none; }
.lesson-box { position: relative; display: grid; gap: 0.2rem; padding: 1.1rem 1.4rem 1.3rem; }
.lesson-box .meter { flex-wrap: nowrap; align-items: flex-start; min-height: 0; gap: 0.6rem 1rem; margin-bottom: 0.7rem; }
.meter-stats { flex: 1; min-width: 0; }
.meter-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.4rem; }
.is-lesson .live { gap: 0.4rem 1.5rem; }
.is-lesson .live div { flex-direction: column-reverse; align-items: flex-start; gap: 0; }
.is-lesson .live dt { font-size: 0.78rem; }
.is-lesson .live dd { font-size: 1.45rem; font-weight: 800; line-height: 1.15; }
.meter-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.t-length { display: inline-flex; gap: 3px; padding: 4px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); }
.t-length button { min-height: 2.6rem; padding: 0.15rem 0.7rem; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; line-height: 1.15; cursor: pointer; }
.t-length button small { display: block; font-size: 0.7rem; font-weight: 700; opacity: 0.85; }
.t-length button[aria-checked="true"] { background: var(--brand); color: var(--on-brand); box-shadow: 0 3px 0 var(--brand-edge); }
.t-length button:disabled { opacity: 0.4; cursor: not-allowed; }
.t-length button:focus-visible, .t-icon:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.t-icon { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1.5px var(--line); color: var(--ink-2); cursor: pointer; list-style: none; }
.t-icon:hover { color: var(--brand); }
.t-icon::-webkit-details-marker { display: none; }
.t-settings { position: relative; }
.t-settings[open] > .t-icon { color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.t-settings-panel { position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 20; display: grid; gap: 0.8rem; width: min(20rem, 86vw); padding: 1rem; border-radius: 16px; background: var(--paper); box-shadow: 0 12px 30px rgb(var(--shade) / 0.18), 0 0 0 1.5px var(--line); }
.t-view { display: grid; gap: 0.3rem; margin: 0; padding: 0; border: 0; }
.t-view legend { margin-bottom: 0.3rem; font-family: var(--font-display); font-weight: 800; }
.t-view label, .t-switch { display: flex; align-items: center; gap: 0.5rem; min-height: 2.2rem; cursor: pointer; }
.t-switch { justify-content: space-between; font-weight: 600; }
.t-switch input { width: 1.2rem; height: 1.2rem; accent-color: var(--brand); }
.t-settings-panel .ghost-toggle { width: 100%; margin: 0; }
.t-settings-panel .field-note { margin: 0; font-size: var(--step--1); }
.t-locked { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.6rem; padding: 0.3rem 0.8rem; border-radius: 12px; background: var(--bg); color: var(--ink-2); font-size: var(--step--1); }
.is-lesson .sheet { padding: 0; overflow: visible; }
.is-lesson .sheet.has-ghost, .is-lesson .sheet:has(> .paused:not([hidden])) { padding-top: 0; }
.is-lesson .bar, .is-lesson .sheet.has-ghost .bar { position: relative; left: auto; right: auto; top: auto; height: 10px; border-radius: 99px; background: var(--brand-soft); }
.is-lesson .bar > span:first-child { border-radius: 99px; }
.is-lesson .bar .ghost-dot { top: -10px; }
.t-progress-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.3rem 1rem; min-height: 1.7rem; margin: 0.45rem 0 0.7rem; color: var(--ink-2); font-size: var(--step--1); }
.t-progress-line .ghost-chip { padding: 0.12rem 0.7rem; font-size: 0.85rem; }
/* 3 řádky textu: aktuální nahoře, další slabší; text se posouvá po řádcích (trainer.js followLine) */
.is-lesson .exercise {
  min-height: 0;
  height: calc(3 * 1.6em + 2 * 0.35em);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 1.85em, rgb(0 0 0 / 0.72) 2.05em, rgb(0 0 0 / 0.72) 3.8em, rgb(0 0 0 / 0.42) 4em);
  mask-image: linear-gradient(to bottom, #000 0, #000 1.85em, rgb(0 0 0 / 0.72) 2.05em, rgb(0 0 0 / 0.72) 3.8em, rgb(0 0 0 / 0.42) 4em);
}
.is-lesson .word.is-off { display: none; }
.is-lesson .paused { top: 50%; transform: translate(-50%, -50%); }
.t-round-pause { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 0.5rem; padding: 1rem; border-radius: 14px; background: rgb(var(--paper-rgb) / 0.94); text-align: center; }
.t-round-pause strong { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.t-round-pause span { color: var(--ink-2); }
.t-rounds { display: flex; align-items: center; gap: 0.6rem; margin: 0; }
.t-rounds strong { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.t-dots { display: flex; gap: 4px; }
.t-dots i { width: 0.8rem; height: 0.8rem; border-radius: 99px; background: var(--brand-soft); }
.t-dots i.is-done { background: var(--brand); opacity: 0.5; }
.t-dots i.is-now { width: 2rem; background: var(--brand); }
.is-lesson .hint { justify-content: center; }
.t-length-ask { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem 1rem; width: 100%; max-width: 42rem; margin: 0.6rem auto; padding: 0.7rem 1rem; border-radius: 14px; background: var(--bg); text-align: left; }
.t-length-ask-btns { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.t-length-ask .btn[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--brand-edge); background: var(--brand-soft); color: var(--brand-edge); }
/* B: kola a panel vpravo */
.trainer.is-lesson[data-view="b"] .t-length { display: none; }
.trainer.is-lesson[data-view="b"] .trainer-side { display: grid; gap: 0.8rem; }
.t-side-box { display: grid; gap: 0.6rem; padding: 1rem 1.1rem; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 1.5px var(--line); }
.t-side-box h2 { margin: 0; font-size: 1rem; }
.t-side-box .field-note { margin: 0; font-size: var(--step--1); }
.t-goal { display: grid; gap: 0.3rem; }
.t-goal-head { display: flex; justify-content: space-between; gap: 0.5rem; font-size: var(--step--1); }
.t-goal-head strong small { color: var(--ink-2); font-weight: 400; }
.t-goal-bar { position: relative; height: 8px; border-radius: 99px; background: var(--brand-soft); }
.t-goal-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: var(--brand); transition: width 0.25s; }
.t-goal-bar b { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--ink); }
.t-goal.is-ok strong { color: var(--ok-ink); }
.t-goal.is-ok .t-goal-bar i { background: var(--mint); }
.t-goal.is-low strong { color: var(--sun-deep); }
.t-goal.is-low .t-goal-bar i { background: var(--sun-edge); }
.t-goal-hint { margin: 0; color: var(--ink-2); font-size: var(--step--1); }
.t-stepper { display: grid; grid-template-columns: 2.75rem 1fr 2.75rem; align-items: center; gap: 0.5rem; }
.t-stepper button { height: 2.75rem; border: 0; border-radius: 12px; background: var(--brand-soft); color: var(--brand-edge); font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; cursor: pointer; }
.t-stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.t-stepper span { display: grid; text-align: center; line-height: 1.2; }
.t-stepper strong { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; }
.t-stepper small { color: var(--ink-2); }
@media (min-width: 1000px) {
  .trainer.is-lesson[data-view="b"] { grid-template-columns: minmax(0, 1fr) 18rem; }
  .trainer.is-lesson[data-view="b"] .trainer-side { position: sticky; top: 1rem; }
}
/* předchozí / další lekce pod trenažérem: dva odkazy v řádku místo velkých karet */
.trainer.is-lesson ~ .lv-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1.2rem; margin-top: 1.2rem; }
.trainer.is-lesson ~ .lv-nav .lv-nav-link { padding: 0.3rem 0; border: 0; background: none; box-shadow: none; transform: none; }
.trainer.is-lesson ~ .lv-nav .lv-nav-link small { display: none; }
.trainer.is-lesson ~ .lv-nav .lv-nav-link strong { color: var(--brand); }
.trainer.is-lesson ~ .lv-nav .is-prev strong::before { content: "‹ "; }
.trainer.is-lesson ~ .lv-nav .is-next strong::after { content: " ›"; }
.trainer.is-lesson ~ .lv-nav .lv-nav-link:hover strong { text-decoration: underline; }
@media (max-width: 640px) {
  .lesson-box { padding: 0.9rem 1rem 1rem; }
  .is-lesson .live { gap: 0.3rem 1rem; }
  .is-lesson .live dd { font-size: 1.15rem; }
  .lesson-box .meter { flex-wrap: wrap; }
  .meter-tools { width: 100%; }
  .t-length { flex: 1; }
  .t-length button { flex: 1; padding: 0.15rem 0.3rem; }
  .t-length .t-len-name { display: none; }
  .t-length button small { font-size: 0.9rem; }
}
/* p143 Třída: délka cvičení v lekcích */
.sc-length { display: grid; gap: 0.8rem; margin: 1.4rem 0; padding: 1.2rem 1.4rem; scroll-margin-top: 1rem; }
.sc-length h2 { margin: 0; font-size: 1.25rem; }
.sc-length > .field-note { margin: -0.4rem 0 0; }
.sc-length form { display: grid; gap: 1rem; }
.sc-length fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.sc-length-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr)); gap: 0.6rem; }
.sc-length-opt { position: relative; display: grid; gap: 0.1rem; padding: 0.7rem 0.9rem 0.7rem 2.4rem; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; }
.sc-length-opt input { position: absolute; left: 0.9rem; top: 0.95rem; accent-color: var(--brand); }
.sc-length-opt strong { font-family: var(--font-display); font-weight: 800; }
.sc-length-opt small { color: var(--ink-2); }
.sc-length-opt:has(input:checked) { background: var(--brand-soft); box-shadow: 0 0 0 2.5px var(--brand-edge); }
.sc-length-opt:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.sc-length-change { display: grid; gap: 0.35rem; }
.sc-length-change legend { margin-bottom: 0.4rem; font-family: var(--font-display); font-weight: 800; }
.sc-length-change .check { display: flex; align-items: center; gap: 0.5rem; }
.sc-length-save { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
/* p152: týdenní souhrn */
.sc-digest .notice { margin: 0; }
.sc-digest .sc-digest-test { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; padding-top: 0.9rem; border-top: 2px solid var(--line); }
.sc-task-head small { color: var(--ink-2); font-weight: 400; }
/* p144/p145 Velikost a druh písma při psaní – atributy na <html> (typing-prefs.js), platí ve všech cvičeních */
:root { --tscale: 1; }
:root[data-tfont="0"] { --tscale: 0.85; }
:root[data-tfont="2"] { --tscale: 1.3; }
:root[data-tfont="3"] { --tscale: 1.65; }
.exercise { font-size: calc(clamp(1.25rem, 2.6vw, 1.75rem) * var(--tscale)); }
.exercise.is-long { font-size: calc(clamp(1.1rem, 2vw, 1.35rem) * var(--tscale)); }
.tt-text { font-size: calc(clamp(1.3rem, 2.4vw, 1.85rem) * var(--tscale)); }
.dy-text { font-size: calc(1.65rem * var(--tscale)); }
@font-face { font-family: "OpenDyslexic"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/opendyslexic-400-normal.woff2") format("woff2"); }
:root[data-tff="sans"] :is(.exercise, .tt-text, .dy-text, .t-ff-sans .t-ff-sample) { font-family: "Atkinson Hyperlegible Next", system-ui, sans-serif; letter-spacing: 0.02em; }
:root[data-tff="dys"] :is(.exercise, .tt-text, .dy-text) { font-family: "OpenDyslexic", "Atkinson Hyperlegible Next", sans-serif; letter-spacing: 0; word-spacing: 0.1em; }
.t-ff-sans .t-ff-sample { font-family: "Atkinson Hyperlegible Next", system-ui, sans-serif; }
.t-ff-dys .t-ff-sample { font-family: "OpenDyslexic", sans-serif; font-size: 0.95rem; }
.t-ff-std .t-ff-sample { font-family: var(--font-text); }
:root[data-tkb="0"] .trainer :is([data-keyboard], .legend) { display: none; }
.t-font { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.4rem; font-weight: 600; }
.t-font-btns { display: inline-flex; align-items: flex-end; gap: 3px; padding: 3px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); }
.t-font-btns button { min-width: 2.4rem; min-height: 2.4rem; padding: 0 0.3rem; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font-family: var(--font-display); font-weight: 800; line-height: 1; cursor: pointer; }
.t-font-btns button[data-font-pick="0"] { font-size: 0.8rem; }
.t-font-btns button[data-font-pick="1"] { font-size: 1rem; }
.t-font-btns button[data-font-pick="2"] { font-size: 1.25rem; }
.t-font-btns button[data-font-pick="3"] { font-size: 1.55rem; }
.t-font-btns button[aria-checked="true"] { background: var(--brand); color: var(--on-brand); box-shadow: 0 3px 0 var(--brand-edge); }
.t-font-btns button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* p145 Nastavení psaní i mimo lekci: druh písma, umístění ikony v testu, denní výzvě a cvičeních */
.t-ff { display: grid; gap: 0.35rem; margin: 0; padding: 0; border: 0; }
.t-ff legend { margin-bottom: 0.3rem; font-family: var(--font-display); font-weight: 800; }
.t-ff-opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.5rem; min-height: 2.5rem; padding: 0.3rem 0.6rem; border-radius: 10px; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; }
.t-ff-opt:has(input:checked) { background: var(--brand-soft); box-shadow: 0 0 0 2px var(--brand-edge); }
.t-ff-opt input { accent-color: var(--brand); }
.t-ff-sample { color: var(--ink-2); font-size: 1rem; white-space: nowrap; }
.t-settings-note { margin: 0; font-size: var(--step--1); }
.meter-right { display: inline-flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.meter-right .ghost-toggle { margin-left: 0; }
.tt-tools .t-settings, .dy-stats .t-settings { margin-left: auto; }
.dy-stats .t-settings .t-settings-panel, .tt-tools .t-settings .t-settings-panel { text-align: left; font-family: var(--font-body, inherit); }
.dy-stats .t-settings small { display: inline; }
@media (max-width: 700px) { .meter-right { width: 100%; } .meter-right .ghost-toggle { flex: 1; } }
.dy-card:has(.t-settings[open]) { overflow: visible; }
/* p146 Výsledek lekce: Procvič, co ti nešlo */
.t-fix { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.8rem 1.2rem; width: 100%; max-width: 42rem; margin: 0.6rem auto; padding: 0.9rem 1.1rem; border-radius: 16px; background: var(--sun-soft); box-shadow: 0 0 0 1.5px var(--sun-line); color: var(--sun-ink); text-align: left; }
.t-fix-body { display: grid; gap: 0.45rem; }
.t-fix-body strong { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.t-fix-body > small { color: var(--sun-ink); opacity: 0.85; }
.t-fix-keys { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.t-fix-key { display: inline-flex; align-items: center; gap: 0.45rem; }
.t-fix-key kbd { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 0.4rem; border-radius: 8px; background: var(--paper); box-shadow: 0 3px 0 var(--edge), inset 0 0 0 2px var(--line); color: var(--ink); font-family: var(--font-text); font-weight: 700; }
.t-fix-key small { font-size: var(--step--1); }
@media (max-width: 600px) { .t-fix { grid-template-columns: 1fr; } }
/* p147 Dnešní trénink */
.train { display: grid; gap: 0.8rem; margin-bottom: 1.4rem; padding: 1.2rem 1.4rem; }
.train-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem 1rem; }
.train-head h2 { margin: 0; font-size: 1.4rem; }
.train-date { color: var(--ink-2); }
.train-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.train-streak { padding: 0.3rem 0.8rem; border-radius: 99px; background: var(--flame-soft); color: var(--flame-ink); font-family: var(--font-display); font-weight: 800; font-size: var(--step--1); white-space: nowrap; }
.train-len button { min-height: 2.4rem; }
.train-bar { height: 10px; border-radius: 99px; background: var(--brand-soft); overflow: hidden; }
.train-bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.train.is-done .train-bar i { background: var(--mint); }
.train-done { margin: 0; padding: 0.6rem 0.9rem; border-radius: 12px; background: var(--mint-soft); color: var(--ok-ink); }
.train-steps { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.train-steps li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; align-items: center; gap: 0.8rem; padding: 0.6rem 0.8rem; border-radius: 14px; background: var(--bg); }
.train-steps li.is-now { background: var(--brand-soft); box-shadow: 0 0 0 2px var(--brand); }
.train-steps li.is-complete { background: var(--mint-soft); }
.train-num { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--paper); color: var(--ink-2); font-family: var(--font-display); font-weight: 800; }
.is-now .train-num { background: var(--brand); color: var(--on-brand); }
.is-complete .train-num { background: var(--mint); color: var(--on-brand); }
.train-what { display: grid; line-height: 1.3; min-width: 0; }
.train-what a { color: var(--ink); font-family: var(--font-display); font-weight: 700; text-decoration: none; }
.train-what a:hover { color: var(--brand); text-decoration: underline; }
.train-what small { color: var(--ink-2); }
.l-train { max-width: 72rem; margin: 0 auto 1.5rem; }
@media (max-width: 600px) { .train { padding: 1rem; } .train-steps li { grid-template-columns: 2.2rem minmax(0, 1fr); } .train-steps li .btn { grid-column: 2; justify-self: start; } }
/* p148 Učitel: přehled úkolu */
.sc-taskpage .back { margin-bottom: 0.4rem; }
.sc-taskpage h1 { margin: 0; font-size: var(--step-2); }
.sc-task-link { margin-left: 0.6rem; font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.sc-task-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); gap: 0.6rem; margin: 1rem 0; }
.sc-task-sum a { display: grid; gap: 0.1rem; padding: 0.8rem 1rem; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1.5px var(--line); color: var(--ink); text-decoration: none; }
.sc-task-sum a:hover { box-shadow: 0 0 0 2px var(--brand-line); }
.sc-task-sum a[aria-current] { box-shadow: 0 0 0 2.5px var(--brand-edge); }
.sc-task-sum strong { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1.1; }
.sc-task-sum span { color: var(--ink-2); font-size: var(--step--1); }
.sc-task-sum .is-done strong { color: var(--ok-ink); }
.sc-task-sum .is-help strong { color: var(--error-ink); }
.sc-task-table .cell { text-align: center; width: 3rem; }
.sc-cell { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 8px; font-weight: 800; }
.sc-cell.is-ok { background: var(--mint-soft); color: var(--ok-ink); }
.sc-cell.is-part { background: var(--sun-soft); color: var(--sun-ink); }
.sc-cell.is-no { background: var(--bg); color: var(--ink-3); }
.sc-pill.is-help { background: var(--error-soft); color: var(--error-ink); }
.sc-pill.is-none { background: var(--bg); color: var(--ink-2); }
.sc-task-table .sc-pill.is-part { background: var(--brand-soft); color: var(--brand-edge); }
.sc-who summary { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; list-style: none; }
.sc-who summary::-webkit-details-marker { display: none; }
.sc-who summary:hover { color: var(--brand); }
.sc-who p { margin: 0.4rem 0 0; color: var(--ink-2); font-weight: 400; font-size: var(--step--1); max-width: 22rem; }
.sc-legend { margin-top: 0.6rem; }
.sc-help { margin-top: 1.4rem; }
.sc-help summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; color: var(--brand); }
.sc-help form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; margin: 0.8rem 0 0.4rem; }
.sc-help input[type="number"] { width: 4.5rem; min-height: 2.6rem; padding: 0.2rem 0.5rem; border: 2px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; }
@media print {
  .sc-taskpage .sc-actions, .sc-taskpage .sc-help, .sc-taskpage .back, .sc-taskpage .sc-legend { display: none !important; }
  .sc-task-sum a { box-shadow: 0 0 0 1px #999; }
  .sc-who[open] p, .sc-who p { display: block; }
}
.sc-task-table thead th { white-space: normal; vertical-align: bottom; }
.sc-task-table td:last-child { white-space: nowrap; }
.sc-task-table th[scope="row"] { min-width: 10rem; }
/* p149 Připomínka přestávky */
.brk { position: fixed; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); z-index: 60; transform: translateX(-50%); display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.9rem; width: min(34rem, calc(100vw - 2rem)); padding: 1rem 1.1rem; border-radius: 20px; background: var(--paper); box-shadow: 0 14px 34px rgb(var(--shade) / 0.22), 0 0 0 2px var(--line); }
.brk[hidden] { display: none; }
.brk-ico circle { fill: var(--mint-soft); }
.brk-ico path { fill: none; stroke: var(--mint-edge); stroke-width: 3.5; stroke-linecap: round; }
.brk-body { display: grid; gap: 0.4rem; }
.brk-body strong { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.brk-body > span { color: var(--ink-2); font-size: var(--step--1); }
.brk-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.t-break-btns button { min-width: 3.2rem; font-size: 0.85rem; }
.t-break-locked { color: var(--ink-2); }
/* p149 Administrace: Jak lidé píšou */
.adm-usage-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem 1rem; }
.adm-usage-head h2 { margin: 0; }
.adm-usage h3 { margin: 1.4rem 0 0.2rem; font-size: 1.1rem; }
.adm-usage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); gap: 0.8rem; }
.adm-usage-box { display: grid; align-content: start; gap: 0.4rem; padding: 0.9rem 1rem; border-radius: 14px; background: var(--bg); }
.adm-usage-row { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 5.5rem; align-items: center; gap: 0.6rem; font-size: var(--step--1); }
.adm-usage-row span:last-child { text-align: right; color: var(--ink-2); white-space: nowrap; }
.adm-usage-bar { height: 10px; border-radius: 99px; background: var(--brand-soft); overflow: hidden; }
.adm-usage-bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.adm-usage td.is-warn { color: var(--error-ink); font-weight: 700; }
.adm-usage .num { text-align: right; }
/* p150 Velikost a druh písma i ve hrách se psaním (Slovní déšť, Závod aut, Souboj s drakem, Odpal raketu, Žabí skoky);
   ve hrách nejvýš 1,3× – hrací plocha má pevnou velikost */
:root { --gscale: min(var(--tscale), 1.3); }
.gword { font-size: calc(1.3rem * var(--gscale)); }
.rc-text { font-size: calc(1.55rem * var(--tscale)); }
.dg-word { font-size: min(calc(clamp(1.6rem, 3.6vw, 2.4rem) * var(--gscale)), 9vw); }
.fj-typed { font-size: min(calc(1.9rem * var(--gscale)), 8vw); }
.fj-pad b { font-size: calc(1.15rem * var(--gscale)); }
.rk-code b { font-size: calc(1.7rem * var(--gscale)); }
:root[data-tff="sans"] :is(.gword, .rc-text, .dg-word, .fj-typed, .fj-pad b, .rk-code b) { font-family: "Atkinson Hyperlegible Next", system-ui, sans-serif; letter-spacing: 0.02em; }
:root[data-tff="dys"] :is(.gword, .rc-text, .dg-word, .fj-typed, .fj-pad b, .rk-code b) { font-family: "OpenDyslexic", "Atkinson Hyperlegible Next", sans-serif; letter-spacing: 0; }
.gm-head > .t-settings { margin-left: auto; }
.gm-head > .gm-seg + .t-settings { margin-left: 0.5rem; }
.adm-usage-bars { display: grid; gap: 3px; }
.adm-usage-bar.is-guest { height: 6px; background: var(--sun-soft); }
.adm-usage-bar.is-guest i { background: var(--sun-edge); }
.adm-usage-key { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 3px; vertical-align: -0.05em; background: var(--brand); }
.adm-usage-key.is-guest { background: var(--sun-edge); }
.acc-school-name { color: var(--ink); }
/* p150: štítky pod slovem draka se posunou podle velikosti písma (větší / čitelné písmo má vyšší kartičku) */
.dg-info { top: calc(8rem + 2.4rem * var(--gscale) * 1.3); }
@media (max-width: 760px) { .dg-info { top: calc(7.2rem + 1.9rem * var(--gscale) * 1.3); } }
/* p151 Úkol splněný (žák) a postup úkolu v Moje třídy */
.t-taskdone { display: grid; justify-items: center; gap: 0.5rem; width: 100%; max-width: 40rem; margin: 0 auto 1rem; padding: 1.1rem 1.2rem; border-radius: 18px; background: var(--mint-soft); box-shadow: 0 0 0 2px var(--mint-line); text-align: center; }
.t-taskdone-kicker { padding: 0.15rem 0.8rem; border-radius: 99px; background: var(--paper); color: var(--ok-ink); font-family: var(--font-display); font-weight: 800; font-size: var(--step--1); }
.t-taskdone strong { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--ok-ink); }
.t-taskdone > span { color: var(--ok-ink); }
.t-taskdone-tiles { display: flex; gap: 0.35rem; }
.t-taskdone-tiles span { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 10px; background: var(--mint); color: var(--on-brand); font-family: var(--font-display); font-weight: 800; }
.task-banner.is-done { background: var(--mint-soft); box-shadow: 0 0 0 2px var(--mint-line); }
.task-banner.is-done .task-done span { color: var(--ok-ink); font-weight: 400; }
.sc-card-task { display: grid; gap: 0.3rem; margin-top: 0.5rem; padding-top: 0.6rem; border-top: 1px solid var(--line); font-size: var(--step--1); }
.sc-card-task-head { display: flex; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; color: var(--ink-2); }
.sc-card-task-head strong { color: var(--ink); }
.sc-card-task.is-full .sc-card-task-head strong { color: var(--ok-ink); }
.sc-card-task.is-full .sc-bar i { background: var(--mint); }
.sc-card-new { color: var(--ok-ink); }
/* p151 Cesta k certifikátu v Dnešním tréninku */
.train-cert { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.8rem 1rem; padding: 0.8rem 1rem; border-radius: 14px; background: var(--sun-soft); box-shadow: 0 0 0 1.5px var(--sun-line); color: var(--sun-ink); }
.train-cert-ico { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--sun); color: var(--sun-ink); font-size: 1.3rem; }
.train-cert-body { display: grid; gap: 0.3rem; min-width: 0; }
.train-cert-body strong { font-family: var(--font-display); font-weight: 800; }
.train-cert-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 4.5rem; align-items: center; gap: 0.6rem; font-size: var(--step--1); }
.train-cert-row span:last-child { text-align: right; }
.train-cert-bar { height: 8px; border-radius: 99px; background: var(--paper); overflow: hidden; }
.train-cert-bar i { display: block; height: 100%; border-radius: 99px; background: var(--sun-edge); }
.train-cert a { color: var(--sun-ink); font-family: var(--font-display); font-weight: 800; white-space: nowrap; }
.train-cert.is-issued { background: var(--mint-soft); box-shadow: 0 0 0 1.5px var(--mint-line); color: var(--ok-ink); }
.train-cert.is-issued a { color: var(--ok-ink); }
@media (max-width: 600px) { .train-cert { grid-template-columns: auto minmax(0, 1fr); } .train-cert a { grid-column: 2; } .train-cert-row { grid-template-columns: 6rem minmax(0, 1fr) 3.8rem; } }
.t-taskdone[hidden] { display: none; }

/* p153: náhled účtu z administrace */
.view-as { position: sticky; top: 0; z-index: 90; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4rem 1rem;
  padding: 0.45rem 1rem; background: var(--sun-soft); color: var(--ink); box-shadow: inset 0 -2px 0 var(--sun-edge); font-size: var(--step--1); }
.view-as small { color: var(--ink-2); }
.view-as form { margin: 0; }
.acc-view { display: inline; margin: 0; }
.acc-view button { padding: 0.05rem 0.5rem; border: 0; border-radius: 99px; background: var(--brand-soft); color: var(--brand); font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; }
.acc-view button:hover, .acc-view button:focus-visible { background: var(--brand); color: var(--paper); }
.acc-view-class button { padding: 0; background: none; color: var(--ink); font-size: inherit; font-weight: 700; text-align: left; }
.acc-view-class button:hover, .acc-view-class button:focus-visible { background: none; color: var(--brand); text-decoration: underline; }
.acc-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.5rem; }
.game-hud > .t-settings { margin-left: auto; } /* p153 */

/* p154: kontrola správy školy ---------------------------------------------------------------- */
/* karty bez vnitřního okraje (Kinder hinzufügen, Wer bist du?, Noch keine Kinder) */
.sc-add, .sc-join .card, .sc-empty { padding: 1.4rem 1.5rem; }
.sc-add h1 { margin-bottom: 0.6rem; }
/* jednotná pole: výběry, datum a textové pole jako ostatní vstupy */
.sc select, .sc input[type="date"], .sc textarea {
  width: 100%; box-sizing: border-box; min-height: 2.9rem; padding: 0.45rem 0.8rem; border: 2px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--ink); font: inherit; font-weight: 400;
}
.sc textarea { min-height: 12rem; line-height: 1.6; resize: vertical; }
.sc select:focus-visible, .sc input[type="date"]:focus-visible, .sc textarea:focus-visible { outline-offset: 0; border-color: var(--brand); background: var(--paper); }
.sc-task select, .sc-task input[type="date"] { background: var(--paper); }
.sc-form label > span, .sc-taskform label > span { min-height: 1.3em; }
.sc-taskform { grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1.6fr) auto; align-items: end; }
.sc-taskform .btn { min-height: 2.9rem; }
/* hlavička třídy: kód nezalomit, akce v jedné řadě */
.sc-code { white-space: nowrap; flex-wrap: wrap; }
.sc-task-head { flex-wrap: wrap; align-items: baseline; }
.sc-task-head .sc-task-link { margin-left: auto; }
/* tabulka žáků se vejde vedle menu (dřív posuvník už na 1280 px) */
.sc-table th, .sc-table td { padding: 0.55rem 0.7rem; }
.sc-progress { min-width: 7.5rem; gap: 0.45rem; }
.sc-table td:last-child { width: 2.5rem; }
.sc-table td.is-muted { color: var(--ink-3); }
/* menu ⋯ jako rozbalovací nabídka, ne odkazy v řádku */
.sc-more summary { display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; color: var(--ink-2); }
.sc-more summary:hover, .sc-more[open] summary { background: var(--bg); color: var(--ink); }
.sc-more[open] { z-index: 5; }
.sc-more-menu { position: absolute; right: 0; top: calc(100% + 0.3rem); z-index: 6; display: grid; min-width: 13rem; padding: 0.35rem 0; border-radius: 12px;
  background: var(--paper); box-shadow: 0 10px 24px rgb(var(--shade) / 0.16), 0 0 0 1.5px var(--line); }
.sc-more-menu form { margin: 0; }
.sc-more-menu button { display: block; width: 100%; min-height: 2.4rem; padding: 0 0.9rem; text-align: left; text-decoration: none; white-space: nowrap; }
.sc-more-menu button:hover, .sc-more-menu button:focus-visible { background: var(--bg); }
/* rozestupy sekcí nastavení (okraj + mezera flexu se sčítaly) */
.sc > .sc-length { margin: 0.4rem 0 0; }
.sc-who summary { text-decoration: underline dotted var(--ink-3); text-underline-offset: 0.2em; }
/* lišta náhledu účtu (p153) nepřekrývá menu vlevo */
.view-as { min-height: 2.75rem; box-sizing: border-box; }
body:has(> .view-as) .sidebar { top: 2.75rem; }
@media (max-width: 600px) {
  .sc-summary { grid-template-columns: minmax(0, 1fr); }
  .sc-taskform { grid-template-columns: minmax(0, 1fr); }
  .sc-actions > .btn, .sc-actions > form, .sc-actions > form .btn { flex: 1 1 auto; }
  .sc-add, .sc-join .card, .sc-empty { padding: 1.1rem 1rem; }
}
@media (min-width: 1240px) { .sc-table.table-wrap { overflow: visible; } }
@media (max-width: 1239.98px) { .sc-more-menu { position: static; min-width: 0; margin-top: 0.3rem; box-shadow: 0 0 0 1.5px var(--line); } .sc-more-menu button { white-space: normal; } }
.sc-table thead th { white-space: normal; vertical-align: bottom; line-height: 1.2; }
.sc-table td { white-space: nowrap; }
.sc-progress { min-width: 6.5rem; }
.sc-progress small { width: auto; }
.sc-actions .btn { min-height: 2.6rem; padding: 0.2rem 1rem; font-size: 1rem; }
.sc-table th, .sc-table td { padding: 0.5rem 0.55rem; }
.sc-table th:first-child, .sc-table td:first-child { padding-left: 0.9rem; }
.sc-table .sc-avatar { margin-right: 0.45rem; }
.sc-table-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1rem; margin: -0.3rem 0 0; }
.sc-table-foot a { font-family: var(--font-display); font-weight: 600; }
@media (max-width: 600px) { .sc-actions > form .btn { width: 100%; } }
.view-as { padding: 0.3rem 1rem; }
.view-as .btn-small { min-height: 2rem; padding: 0 0.9rem; font-size: 0.85rem; }
.sc-taskform { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr) minmax(9.5rem, 1fr) minmax(0, 1.7fr) auto; }
.sc-taskform input[type="date"] { padding-right: 0.5rem; }
@media (max-width: 960px) { .sc-taskform { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sc-taskform { grid-template-columns: minmax(0, 1fr); } }

/* p155: výběry s vlastní šipkou (systémová šipka v Safari „v kroužku“), záhlaví tabulky uvnitř karty */
.sc select {
  -webkit-appearance: none; appearance: none; padding-right: 2.2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 52%, calc(100% - 0.8rem) 52%;
  background-size: 0.35rem 0.35rem; background-repeat: no-repeat;
}
.sc select::-ms-expand { display: none; }
.sc-table thead th { background: transparent; border-bottom: 2px solid var(--line); font-size: 0.8rem; white-space: nowrap; vertical-align: bottom; padding-top: 0.8rem; }
.sc-table tbody tr:first-child { border-top: 0; }
.sc-progress { min-width: 6rem; }

/* p156: menu ve skupinách, sekce Moje třídy, Co teď udělat, třídy v Můj účet ------------------------ */
.side-head { display: block; margin: 0.85rem 0.85rem 0.15rem; font-family: var(--font-display); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.side-nav > .side-head:first-child { margin-top: 0.2rem; }
.side-nav .side-classes { display: flex; flex-direction: column; gap: 0.1rem; margin: 0.1rem 0 0.2rem 1.4rem; }
.side-nav .side-classes a { display: flex; align-items: center; }
.side-nav .side-classes a small { margin-left: auto; padding-left: 0.4rem; color: var(--ink-3); font-size: 0.78rem; font-weight: 700; }
.side-nav .side-classes .side-sub-ico { font-size: 0.68rem; font-weight: 900; }
.side-nav .side-classes a.is-new, .side-nav .side-classes a.is-more { color: var(--brand); }
.sc-todo { display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem 1.15rem; border-radius: 20px; background: var(--brand-soft); }
.sc-todo h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.sc-todo ul { display: flex; flex-direction: column; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.sc-todo li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 0.7rem; align-items: center; padding: 0.6rem 0.75rem; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1.5px var(--line); }
.sc-todo li strong { display: block; font-family: var(--font-display); font-weight: 800; line-height: 1.25; }
.sc-todo li small { display: block; color: var(--ink-2); }
.sc-todo-ico { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-family: var(--font-display); font-weight: 900; }
.sc-todo li.is-help .sc-todo-ico { background: var(--error-soft); color: var(--error-ink); }
.sc-todo li.is-warn .sc-todo-ico { background: var(--sun-soft); color: var(--sun-ink); }
.sc-todo-ok { margin: 0; color: var(--ok-ink); font-weight: 700; }
.sc-card-week { color: var(--ink-2); }
.sc-card .sc-card-idle { color: var(--sun-ink); font-weight: 700; }
.pf-classes { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 1.2rem; padding: 1.1rem 1.3rem; }
.pf-classes-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.3rem; }
.pf-classes-head h2 { margin: 0; font-family: var(--font-display); font-size: 1.2rem; }
.pf-classes-head a { font-family: var(--font-display); font-weight: 700; }
.pf-class { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(4rem, 1fr) auto; gap: 0.9rem; align-items: center; padding: 0.55rem 0.2rem; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.pf-class:hover strong { color: var(--brand); }
.pf-class small { color: var(--ink-2); text-align: right; }
.pf-class .sc-bar.is-full i { background: var(--mint); }
.pf-class .sc-bar i { background: var(--brand); }
@media (max-width: 600px) {
  .sc-todo li { grid-template-columns: 2rem minmax(0, 1fr); }
  .sc-todo li .btn { grid-column: 2; justify-self: start; }
  .pf-class { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
  .pf-class small { text-align: left; }
}
.side-nav .side-classes .side-class-dot::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--ink-3); }
.side-nav .side-classes a[aria-current="page"] .side-class-dot::before { background: var(--on-brand); }

/* p157: třída v záložkách --------------------------------------------------------------------- */
.sc-titlebar { display: flex; flex-direction: column; gap: 0.3rem; }
.sc-titlebar .back { margin-bottom: 0; }
.sc-sections { display: flex; flex-wrap: wrap; gap: 0.2rem; margin-top: 0.5rem; box-shadow: inset 0 -2px 0 var(--line); }
.sc-sections a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.65rem 1rem; color: var(--ink-2); font-family: var(--font-display); font-weight: 700; text-decoration: none; box-shadow: inset 0 -3px 0 transparent; }
.sc-sections a:hover { color: var(--ink); }
.sc-sections a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); }
.sc-sections small { padding: 0 0.45rem; border-radius: 99px; background: var(--bg); font-size: 0.75rem; }
.sc-sections a[aria-current="page"] small { background: var(--brand-soft); }
.sc-ov { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.sc-ov-main, .sc-ov-side { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.sc-week { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.1rem 1.25rem; }
.sc-week-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.sc-week-head h2, .sc-quickbox h2, .sc-h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.sc-week-head small { color: var(--ink-2); }
.sc-week-bars { display: flex; gap: 0.5rem; height: 7rem; }
.sc-week-bars span { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 0.3rem; min-width: 0; }
.sc-week-bars i { display: block; width: 100%; border-radius: 8px 8px 3px 3px; background: var(--brand); }
.sc-week-bars .is-future i { background: var(--brand-soft); }
.sc-week-bars small { color: var(--ink-2); font-size: 0.78rem; }
.sc-week-stats { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.sc-week-stats span { display: flex; flex-direction: column; line-height: 1.2; }
.sc-week-stats strong { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.sc-week-stats small { color: var(--ink-2); font-size: 0.8rem; }
.sc-task-links { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.sc-task-links form { margin: 0; }
.sc-quickbox { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.1rem 1.25rem; scroll-margin-top: 1rem; }
.sc-quick { margin: 0; }
.sc-quick button { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; width: 100%; padding: 0.7rem 0.9rem; border: 0; border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1.5px var(--line); font: inherit; text-align: left; cursor: pointer; }
.sc-quick button:hover { box-shadow: 0 0 0 2px var(--brand); }
.sc-quick strong { font-family: var(--font-display); font-weight: 800; }
.sc-quick small { color: var(--ink-2); }
.sc-quick.is-primary button { background: var(--brand); color: var(--on-brand); box-shadow: 0 4px 0 var(--brand-edge); }
.sc-quick.is-primary small { color: inherit; opacity: 0.85; }
.sc-quickbox .sc-newtask { margin-top: 0.2rem; }
.sc-quick-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: 0.7rem; }
.sc-quickbox .sc-taskform { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sc-quickbox .sc-taskform .btn { grid-column: 1 / -1; justify-self: start; }
.sc-quickbox-wide .sc-taskform { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr) minmax(9.5rem, 1fr) minmax(0, 1.7fr) auto; }
.sc-quickbox-wide .sc-taskform .btn { grid-column: auto; }
.sc-h2 { margin-bottom: 0.6rem; }
.sc-hist small.sc-muted { color: var(--ink-2); font-weight: 400; }
.sc-hist td a { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.sc-roster-tools { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.sc-roster-tools form { margin: 0; }
.sc-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap: 1.1rem; align-items: start; }
.sc-settings > .sc-length { margin: 0; }
.sc-help-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.sc-help-form input[type="number"] { width: 4.5rem; min-height: 2.6rem; padding: 0.3rem 0.5rem; border: 2px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; }
@media (max-width: 960px) {
  .sc-ov { grid-template-columns: minmax(0, 1fr); }
  .sc-quickbox-wide .sc-taskform { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .sc-sections { flex-wrap: nowrap; overflow-x: auto; }
  .sc-sections a { flex: none; padding: 0.6rem 0.75rem; }
  .sc-quickbox .sc-taskform, .sc-quickbox-wide .sc-taskform { grid-template-columns: minmax(0, 1fr); }
}
.sc-length form.sc-help-form { display: flex; }

/* p158: Žáci – hledání, filtry, řazení, výběr, hromadné akce, detail žáka -------------------------- */
.sc-roster-tools { justify-content: space-between; }
.sc-search { display: flex; gap: 0.5rem; align-items: center; flex: 1 1 18rem; max-width: 26rem; margin: 0; }
.sc .sc-search input { flex: 1; min-width: 0; min-height: 2.6rem; padding: 0.3rem 0.8rem; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; }
.sc-roster-btns { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.sc-roster-btns form { margin: 0; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sc-chips a { display: inline-flex; gap: 0.4rem; align-items: center; padding: 0.35rem 0.75rem; border-radius: 11px; background: var(--paper); box-shadow: 0 0 0 1.5px var(--line); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.sc-chips a span { color: var(--ink-2); font-weight: 600; }
.sc-chips a[aria-current="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.sc-chips a[aria-current="true"] span { color: inherit; opacity: 0.75; }
.sc-none { margin: 0; }
.sc-table th a { color: inherit; text-decoration: none; }
.sc-table thead th a:hover { color: var(--ink); }
.sc-table thead th[aria-sort] a { color: var(--brand); }
.sc-table .sc-check { width: 1.6rem; padding-right: 0; }
.sc-table .sc-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--brand); }
.sc-table tr.is-picked, .sc-table tr.is-open { background: var(--brand-soft); }
.sc-who-link { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.sc-who-link:hover { color: var(--brand); text-decoration: underline; }
.sc-table tbody th .sc-pill { margin-left: 0.3rem; }
.sc-bulk { position: sticky; bottom: 1rem; z-index: 8; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; padding: 0.55rem 0.7rem 0.55rem 1rem; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1.5px var(--line); }
.sc-bulk strong { margin-right: 0.3rem; font-family: var(--font-display); font-weight: 800; color: var(--ink-2); }
.sc-bulk.is-active { background: var(--ink); box-shadow: 0 14px 30px rgb(var(--shade) / 0.28); }
.sc-bulk.is-active strong { color: var(--paper); }
.sc-bulk-btn { min-height: 2.5rem; padding: 0.2rem 0.85rem; border: 0; border-radius: 11px; background: var(--bg); color: var(--ink); font-family: var(--font-display); font-weight: 700; cursor: pointer; }
.sc-bulk.is-active .sc-bulk-btn { background: rgb(255 255 255 / 0.14); color: var(--paper); }
.sc-bulk.is-active .sc-bulk-btn.is-danger { color: #ffb4c0; }
.sc-bulk-btn:disabled { opacity: 0.55; cursor: default; }
.sc-bulk-move { display: inline-flex; gap: 0.35rem; align-items: center; }
.sc .sc-bulk select { width: auto; min-height: 2.5rem; }
.sc-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(28rem, 100vw); box-sizing: border-box; display: flex; flex-direction: column; gap: 0.9rem; padding: 1.3rem 1.4rem 2rem; overflow-y: auto; background: var(--paper); box-shadow: -18px 0 40px rgb(var(--shade) / 0.22); }
.sc-drawer:focus { outline: none; }
.sc-drawer h3 { margin: 0.3rem 0 0; font-family: var(--font-display); font-size: 1rem; }
.sc-drawer-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.8rem; align-items: center; }
.sc-drawer-head h2 { margin: 0; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.15; }
.sc-drawer-head small { color: var(--ink-2); }
.sc-avatar-big { width: 3rem; height: 3rem; margin: 0; font-size: 1.2rem; }
.sc-drawer-close { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--bg); color: var(--ink-2); font-size: 1.5rem; line-height: 1; text-decoration: none; }
.sc-drawer-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.sc-drawer-stats span { display: flex; flex-direction: column; padding: 0.6rem 0.8rem; border-radius: 14px; background: var(--bg); line-height: 1.2; }
.sc-drawer-stats strong { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.sc-drawer-stats small { color: var(--ink-2); font-size: 0.8rem; }
.sc-drawer-tiles { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.sc-drawer-tiles span { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 8px; background: var(--bg); color: var(--ink-3); font-family: var(--font-display); font-weight: 800; font-size: 0.75rem; }
.sc-drawer-tiles .is-ok { background: var(--mint); color: var(--paper); }
.sc-drawer-tiles .is-part { background: var(--sun-soft); color: var(--sun-ink); }
.sc-drawer-keys { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin: 0; }
.sc-drawer-keys kbd { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 0.4rem; border-radius: 8px; background: var(--paper); box-shadow: 0 3px 0 var(--edge), 0 0 0 1.5px var(--line); font-family: var(--font-text); font-weight: 700; }
.sc-drawer-keys small { color: var(--ink-2); }
.sc-drawer-recent { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; font-size: 0.92rem; }
.sc-drawer-recent li { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto 4.2rem; gap: 0.5rem; padding: 0.4rem 0; border-top: 1px solid var(--line); }
.sc-drawer-recent span:first-child { color: var(--ink-2); }
.sc-drawer-recent span:last-child { text-align: right; }
.sc-drawer-recent .is-warn { color: var(--error-ink); font-weight: 700; }
.sc-drawer-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 0.6rem; }
.sc-drawer-actions form { margin: 0; }
.btn.is-danger { color: var(--error-ink); }
.sc-bulk { position: static; }
.sc-bulk.is-active { position: sticky; }
.sc-bulk.is-active { top: 0.6rem; bottom: auto; }
/* p158: učitel má v menu víc položek – kompaktnější řádky, ať je profil dole vidět i na nižší obrazovce */
.side-nav.has-classes > a, .side-nav.has-classes .side-item > a { padding-top: 0.42rem; padding-bottom: 0.42rem; }
.side-nav.has-classes .side-head { margin-top: 0.55rem; }
.side-nav.has-classes .side-classes a { padding-top: 0.12rem; padding-bottom: 0.12rem; }

/* p159: průvodce novou třídou a import žáků ------------------------------------------------------- */
.sc-wide-narrow { max-width: 48rem; }
.sc-steps { display: flex; align-items: center; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.sc-steps li { display: flex; align-items: center; gap: 0.5rem; color: var(--ink-2); font-family: var(--font-display); font-weight: 700; }
.sc-steps li + li::before { content: ""; width: 2.2rem; height: 2px; margin-right: 0.2rem; background: var(--line); }
.sc-step-dot { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1.5px var(--line); font-weight: 900; }
.sc-steps .is-done .sc-step-dot { background: var(--mint); color: var(--paper); box-shadow: none; }
.sc-steps .is-now { color: var(--ink); }
.sc-steps .is-now .sc-step-dot { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.sc-import { display: flex; flex-direction: column; gap: 0.8rem; }
.sc-import-tabs { display: inline-flex; gap: 0.25rem; width: fit-content; padding: 0.25rem; border-radius: 14px; background: var(--bg); }
.sc-import-tabs button { min-height: 2.5rem; padding: 0.2rem 1rem; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font-family: var(--font-display); font-weight: 700; cursor: pointer; }
.sc-import-tabs button[aria-selected="true"] { background: var(--paper); color: var(--brand); box-shadow: 0 0 0 1.5px var(--line); }
.sc-import [data-import-pane] { display: flex; flex-direction: column; gap: 0.5rem; }
.sc-import [data-import-pane][hidden] { display: none; }
.sc-drop { position: relative; display: grid !important; grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem; align-items: center; padding: 1.2rem 1.3rem; border: 2px dashed var(--edge); border-radius: 16px; background: var(--bg); color: var(--brand); cursor: pointer; }
.sc-drop.is-over, .sc-drop:hover { border-color: var(--brand); background: var(--brand-soft); }
.sc-drop span { display: flex; flex-direction: column; color: var(--ink); }
.sc-drop small { color: var(--ink-2); font-weight: 400; }
.sc-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sc-drop:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.sc-import-private { margin: 0; }
.sc-import [data-import-status].is-error, .sc-import-summary.is-error { color: var(--error-ink); font-weight: 700; }
.sc-import-map { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.7rem; }
.sc-import-map[hidden] { display: none; }
.sc-import-map label { display: block; font-weight: 400; }
.sc .sc-import-map select { width: auto; min-width: 9rem; }
.sc-import-map .check { display: flex; align-items: center; gap: 0.4rem; }
.sc-import-preview { max-height: 22rem; overflow: auto; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1.5px var(--line); }
.sc-import-preview[hidden] { display: none; }
.sc-import-preview table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.sc-import-preview td { padding: 0.4rem 0.7rem; border-top: 1px solid var(--line); }
.sc-import-preview tr:first-child td { border-top: 0; }
.sc-import-preview td:first-child { width: 1.5rem; }
.sc-import-preview input { width: 1.05rem; height: 1.05rem; accent-color: var(--brand); }
.sc-import-preview tr.is-exists, .sc-import-preview tr.is-dup, .sc-import-preview tr.is-empty, .sc-import-preview tr.is-bad { color: var(--ink-2); }
.sc-import-preview .sc-pill { background: var(--sun-soft); color: var(--sun-ink); }
.sc-import-summary { margin: 0; font-weight: 700; color: var(--ink); }
.sc-howto { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.1rem 1.3rem; }
.sc-howto h2 { margin: 0; font-family: var(--font-display); font-size: 1.15rem; }
.sc-howto ol { margin: 0; padding-left: 1.3rem; }
.sc-howto p { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.3rem 0 0; }
@media (max-width: 600px) { .sc-steps li + li::before { width: 0.8rem; } .sc-steps li span:last-child { font-size: 0.9rem; } }

/* p160: V hodině (projektor) --------------------------------------------------------------------- */
.sc-live-btn { min-height: 2.75rem; gap: 0.4rem; }
.lv { display: flex; flex-direction: column; gap: 1.1rem; width: min(100%, 90rem); margin: 0 auto; padding: 1rem clamp(0.5rem, 2vw, 2rem) 2rem; box-sizing: border-box; }
.lv-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.lv-kicker { margin: 0; color: var(--ink-2); font-family: var(--font-display); font-weight: 700; }
.lv-head h1 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.lv-join { display: flex; align-items: center; gap: 1.2rem; padding: 0.8rem 1.4rem; border-radius: 20px; background: var(--paper); box-shadow: 0 0 0 1.5px var(--line); }
.lv-join span { display: flex; flex-direction: column; color: var(--ink-2); line-height: 1.3; }
.lv-join span strong { color: var(--ink); font-family: var(--font-text); }
.lv-code { font-family: var(--font-text); font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: 0.08em; color: var(--brand); }
.lv-counts { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.lv-counts span { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.6rem 1.1rem; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1.5px var(--line); color: var(--ink-2); }
.lv-counts strong { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--ink); }
.lv-status { margin: 0; color: var(--error-ink); font-weight: 700; }
.lv-status:empty { display: none; }
.lv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.lv-tile { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.9rem 1.1rem; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 1.5px var(--line); }
.lv-name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.lv-row { display: flex; justify-content: space-between; gap: 0.5rem; font-family: var(--font-display); font-weight: 700; }
.lv-meta { color: var(--ink-2); }
.lv-tile.is-now { box-shadow: 0 0 0 3px var(--brand); }
.lv-tile.is-now .lv-state { color: var(--brand); }
.lv-tile.is-help { background: var(--sun-soft); box-shadow: 0 0 0 2px var(--sun-edge); }
.lv-tile.is-help .lv-state { color: var(--sun-ink); }
.lv-tile.is-in .lv-state { color: var(--ok-ink); }
.lv-tile.is-off { background: var(--bg); color: var(--ink-2); box-shadow: 0 0 0 1.5px var(--line); }
.lv-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.lv-tools .btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (prefers-reduced-motion: no-preference) { .lv-tile.is-now { animation: lv-pulse 2.4s ease-in-out infinite; } }
@keyframes lv-pulse { 50% { box-shadow: 0 0 0 5px var(--brand-soft), 0 0 0 3px var(--brand); } }

/* p161: kontrola správy školy po p160 ------------------------------------------------------------ */
.sc-quick-row { grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 22rem)); }
.sc-week-empty { display: grid; place-items: center; min-height: 7rem; margin: 0; padding: 0.8rem; border-radius: 14px; background: var(--bg); color: var(--ink-2); text-align: center; }
.sc-week-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem 1.2rem; }
@media (min-width: 1500px) { .sc-week-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sc-table thead th a { display: inline-flex; align-items: baseline; gap: 0.2rem; }
.sc-sort { flex: none; color: var(--ink-3); font-size: 0.8em; }
.sc-table thead th[aria-sort] .sc-sort { color: inherit; }
.sc-bulk.is-js:not(.is-active) { display: none; }
.sc-chips a.is-zero { opacity: 0.55; box-shadow: 0 0 0 1.5px var(--line); }
.sc-pill.is-sos { background: var(--sun-soft); color: var(--sun-ink); }
.sc-drawer-help { margin: 0; padding: 0.6rem 0.85rem; border-radius: 12px; background: var(--sun-soft); color: var(--sun-ink); }
.sc-drawer .notice { margin: 0; }
.sc-drawer-backdrop { position: fixed; inset: 0; z-index: 59; background: rgb(var(--shade) / 0.22); cursor: default; }
body:has(> .view-as) .sc-drawer { top: 2.75rem; }
.sc-drawer-edit { border-top: 1px solid var(--line); padding-top: 0.6rem; }
.sc-drawer-edit summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; color: var(--brand); }
.sc-drawer-form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.6rem 0 0; }
.sc-drawer-form label { flex: 1 1 12rem; display: block; }
.sc .sc-drawer-form input[type="text"], .sc .sc-drawer-form select { width: 100%; min-height: 2.6rem; }
.sc-help-form { flex-direction: column; align-items: stretch; gap: 0.7rem; }
.sc-help-form label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 600; }
.sc-help-input { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 400; }
.sc-help-form .btn { align-self: flex-start; }
.sc-digest-link { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem 1rem; margin: 0; padding: 0.9rem 1.2rem; }
.sc-digest-link span { display: flex; flex-direction: column; }
.sc-digest-link small { color: var(--ink-2); }
.sc-digest-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: 0 1.5rem; }
/* menu: dlouhé názvy se zalomí místo useknutí; na nízké obrazovce kompaktnější řádky */
.side-nav > a span, .side-nav .side-item > a span { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.2; }
@media (max-height: 900px) {
  .side-nav > a, .side-nav .side-item > a { padding-top: 0.38rem; padding-bottom: 0.38rem; }
  .side-nav.has-classes > a, .side-nav.has-classes .side-item > a { padding-top: 0.3rem; padding-bottom: 0.3rem; font-size: 0.98rem; }
  .side-nav .side-head { margin-top: 0.4rem; }
  .side-nav.has-classes .side-classes a { padding-top: 0.06rem; padding-bottom: 0.06rem; }
  .sidebar { padding-top: calc(0.8rem + env(safe-area-inset-top, 0px)); padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px)); }
  .sidebar > .wordmark { margin-bottom: 0.5rem; }
  .side-bottom { gap: 0.35rem; padding-top: 0.5rem; }
}
@media (max-height: 780px) {
  .side-theme-text small { display: none; }
  .side-nav.has-classes > a, .side-nav.has-classes .side-item > a { padding-top: 0.2rem; padding-bottom: 0.2rem; }
}
/* panel žáka: pole jako ostatní pole správy školy */
.sc-drawer-form input[type="text"], .sc-drawer-form select { box-sizing: border-box; width: 100%; min-height: 2.6rem; padding: 0.3rem 0.8rem; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; }

/* p162: Nápověda pro školy, Napiš nám, Zprávy -------------------------------------------------- */
.hp-lead { margin: 0.2rem 0 0; color: var(--ink-2); }
.hp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.hp-steps li { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem 1.1rem; }
.hp-steps strong { font-family: var(--font-display); font-weight: 800; }
.hp-steps small { color: var(--ink-2); font-size: 0.92rem; }
.hp-steps a { margin-top: auto; font-family: var(--font-display); font-weight: 700; }
.hp-num { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-family: var(--font-display); font-weight: 900; }
.hp-faq { display: flex; flex-direction: column; gap: 0.5rem; }
.hp-faq details { padding: 0.85rem 1.1rem; }
.hp-faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; }
.hp-faq p { margin: 0.5rem 0 0; color: var(--ink-2); }
.hc { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1.6rem; align-items: start; padding: 1.6rem; border-radius: 24px; background: var(--brand-soft); scroll-margin-top: 1rem; }
.hc-intro { display: flex; flex-direction: column; gap: 0.8rem; }
.hc-ico { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 16px; background: var(--paper); color: var(--brand); box-shadow: 0 4px 0 var(--edge), 0 0 0 1.5px var(--line); }
.hc-intro h2 { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.15; }
.hc-intro h2 span { display: block; color: var(--brand); }
.hc-intro p { margin: 0; color: var(--ink-2); }
.hc-intro ul { display: flex; flex-direction: column; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.hc-intro li::before { content: "✓"; margin-right: 0.5rem; color: var(--ok-ink); font-weight: 900; }
.hc-form { display: flex; flex-direction: column; gap: 0.8rem; margin: 0; padding: 1.3rem 1.4rem; }
.hc-form label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 700; }
.hc-form label small { color: var(--ink-2); font-weight: 400; }
.hc-form input[type="text"], .hc-form textarea, .msg-reply textarea { box-sizing: border-box; width: 100%; padding: 0.55rem 0.8rem; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; }
.hc-form input[type="text"] { min-height: 2.75rem; }
.hc-topics { display: flex; flex-direction: column; gap: 0.4rem; margin: 0; padding: 0; border: 0; }
.hc-topics legend { margin-bottom: 0.4rem; font-weight: 700; }
.hc-form .hc-topics label { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.5rem; min-height: 2.6rem; padding: 0.3rem 0.8rem; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; }
.hc-form .hc-topics label:has(input:checked) { background: var(--brand-soft); box-shadow: 0 0 0 2px var(--brand); }
.hc-topics input { accent-color: var(--brand); }
.hc-topics strong { font-family: var(--font-display); font-weight: 800; }
.hc-send { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem 1rem; }
.hc-send small { color: var(--ink-2); }
.hc-guest h3 { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; }
.hc-guest p { margin: 0; color: var(--ink-2); }
.hc-guest ol { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.3rem; }
.hc-guest .hc-send { justify-content: flex-start; }
.hc-guest .hc-send a:not(.btn) { font-family: var(--font-display); font-weight: 700; }
.s-help { padding: 0 var(--gutter, 1rem); max-width: 72rem; margin: 2rem auto; }
@media (max-width: 860px) { .hc { grid-template-columns: minmax(0, 1fr); padding: 1.1rem; } }
.sc-helpline { display: flex; align-items: center; gap: 0.7rem; margin: 0; padding: 0.8rem 1.1rem; color: var(--ink-2); }
.sc-helpline a { font-family: var(--font-display); font-weight: 800; }
.side-nav .side-badge { margin-left: auto; min-width: 1.35rem; height: 1.35rem; padding: 0 0.35rem; box-sizing: border-box; display: inline-grid; place-items: center; border-radius: 99px; background: var(--brand); color: var(--on-brand); font-family: var(--font-display); font-weight: 900; font-size: 0.78rem; }
.msg-grid { display: grid; grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr); gap: 1rem; align-items: start; }
.msg-list { display: flex; flex-direction: column; gap: 0.5rem; }
.msg-list a { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; padding: 0.75rem 0.9rem; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1.5px var(--line); color: var(--ink); text-decoration: none; }
.msg-list a[aria-current="page"] { background: var(--brand-soft); box-shadow: 0 0 0 2px var(--brand); }
.msg-list-top { display: flex; justify-content: space-between; gap: 0.5rem; width: 100%; }
.msg-list-top strong { font-family: var(--font-display); font-weight: 800; }
.msg-list-top small, .msg-snippet { color: var(--ink-2); }
.msg-snippet { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-state { background: var(--bg); color: var(--ink-2); }
.msg-state.is-new { background: var(--brand-soft); color: var(--brand); }
.msg-state.is-wait { background: var(--sun-soft); color: var(--sun-ink); }
.msg-state.is-done { background: var(--mint-soft); color: var(--ok-ink); }
.msg-thread { display: flex; flex-direction: column; gap: 1rem; margin: 0; padding: 1.2rem 1.3rem; }
.msg-thread-head { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; padding-bottom: 0.8rem; border-bottom: 1.5px solid var(--line); }
.msg-thread-head h2 { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; }
.msg-thread-head small { color: var(--ink-2); }
.msg-items { display: flex; flex-direction: column; gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.msg-items li { display: flex; flex-direction: column; gap: 0.25rem; max-width: 80%; }
.msg-items p { margin: 0; padding: 0.7rem 1rem; border-radius: 18px 18px 18px 6px; background: var(--bg); box-shadow: 0 0 0 1.5px var(--line); overflow-wrap: anywhere; }
.msg-items small { display: flex; align-items: center; gap: 0.35rem; color: var(--ink-2); font-size: 0.82rem; }
.msg-items .is-me { align-self: flex-end; align-items: flex-end; }
.msg-items .is-me p { border-radius: 18px 18px 6px 18px; background: var(--brand); color: var(--on-brand); box-shadow: none; }
.msg-tp { display: inline-grid; place-items: center; width: 1.15rem; height: 1.15rem; border-radius: 6px; background: var(--brand); color: var(--on-brand); font-family: var(--font-display); font-size: 0.6rem; font-weight: 900; }
.msg-reply { display: flex; flex-direction: column; gap: 0.6rem; margin: 0; padding-top: 0.8rem; border-top: 1.5px solid var(--line); scroll-margin-top: 1rem; }
.msg-reply .notice { margin: 0; }
@media (max-width: 860px) { .msg-grid { grid-template-columns: minmax(0, 1fr); } .msg-items li { max-width: 92%; } }
/* administrace: konverzace se školami */
.sp-link { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; margin: 0 0 1rem; }
.sp-link small { color: var(--ink-2); }
.sp-filters { margin-bottom: 1rem; }
.sp-grid { display: grid; grid-template-columns: minmax(14rem, 19rem) minmax(0, 1fr); gap: 1rem; align-items: start; }
.sp-list { display: flex; flex-direction: column; gap: 0.4rem; }
.sp-list a { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.65rem 0.8rem; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1.5px var(--line); color: var(--ink); text-decoration: none; }
.sp-list a[aria-current="true"] { background: var(--brand-soft); box-shadow: 0 0 0 2px var(--brand); }
.sp-top { display: flex; justify-content: space-between; gap: 0.5rem; }
.sp-top small, .sp-snippet { color: var(--ink-2); }
.sp-topic { font-size: 0.88rem; font-weight: 700; }
.sp-snippet { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-dot { display: inline-block; width: 0.55rem; height: 0.55rem; margin-left: 0.3rem; border-radius: 50%; background: var(--brand); }
.sp-thread { display: flex; flex-direction: column; gap: 1rem; margin: 0; }
.sp-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 1rem; padding-bottom: 0.7rem; border-bottom: 1.5px solid var(--line); }
.sp-head h2 { margin: 0; font-size: 1.15rem; }
.sp-head small { color: var(--ink-2); }
.sp-actions { display: flex; gap: 0.4rem; align-items: start; }
.sp-actions form, .sp-delete { margin: 0; }
@media (max-width: 860px) { .sp-grid { grid-template-columns: minmax(0, 1fr); } }
.hc-form input[type="text"], .hc-form textarea, .msg-reply textarea { font-weight: 400; }
/* p162 kontrola: úvod sekce Napiš nám svisle uprostřed vedle formuláře (bez prázdného místa dole) */
@media (min-width: 861px) { .hc { align-items: center; } }
/* p163: potvrzení e-mailu u týdenního souhrnu */
.sc-confirm { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; margin: 0.6rem 0; padding: 0.8rem 1rem; border-radius: 14px; background: var(--sun-soft); color: var(--sun-ink); }
.sc-confirm p { margin: 0; flex: 1 1 18rem; }
.sc-confirm form { margin: 0; }

/* p167: V hodině v2 – Zpět na třídu, cíl hodiny (úkol), políčka lekcí, důvod „zápasí“, chybějící v řádku, shrnutí ----------- */
.focusbar-back { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; padding: 0 1rem 0 0.6rem; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-family: var(--font-display); font-weight: 800; text-decoration: none; white-space: nowrap; }
.focusbar-back:hover { background: var(--brand); color: var(--paper); }
.focusbar-back span { overflow: hidden; text-overflow: ellipsis; max-width: 18rem; }
.lv-goal { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.2rem; align-items: center; padding: 1rem 1.3rem; border-radius: 22px;
  background: var(--paper); box-shadow: 0 5px 0 var(--edge), 0 0 0 2px var(--line); }
.lv-goal-icon { display: inline-grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 18px; background: var(--brand-soft); color: var(--brand); }
.lv-goal-main { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.lv-goal-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.8rem; margin: 0; }
.lv-goal-title strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.2rem, 2vw, 1.6rem); }
.lv-goal-title span { color: var(--ink-2); }
.lv-goal-bar { display: flex; align-items: center; gap: 0.8rem; }
.lv-goal-bar strong { font-family: var(--font-display); white-space: nowrap; }
.lv-bar { flex: 1; height: 14px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); overflow: hidden; }
.lv-bar span { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--ok-ink); transition: width 0.4s; }
.lv-goal-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.lv-clock { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--ink-2); font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.lv-clock[hidden] { display: none; }
.lv-goal-edit summary { list-style: none; cursor: pointer; }
.lv-goal-edit summary::-webkit-details-marker { display: none; }
.lv-goal-edit[open] summary { margin-left: auto; }
.lv-goal-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 0.6rem; }
.lv-goal-form label { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; }
.lv-goal-form input[type="number"] { width: 4.6rem; }
.lv-goal-form .field-note { flex-basis: 100%; text-align: right; }
.lv-goal.is-empty .lv-goal-icon { background: var(--bg); color: var(--ink-2); }
.lv-counts .is-now strong { color: var(--brand); }
.lv-counts .is-help strong { color: var(--ink); }
.lv-counts .is-help { background: var(--sun-soft); }
.lv-counts .is-ok strong { color: var(--ok-ink); }
.lv-tile { gap: 0.35rem; }
.lv-tile.is-done { background: var(--mint-soft); }
.lv-tile.is-done .lv-state { color: var(--ok-ink); }
.lv-tile.is-help .lv-state { color: var(--ink); }
.lv-why { padding: 0.35rem 0.6rem; border-radius: 10px; background: var(--paper); color: var(--ink); font-weight: 700; line-height: 1.35; }
.lv-cells { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.lv-cell { display: inline-grid; place-items: center; min-width: 1.9rem; height: 1.5rem; padding: 0 0.25rem; border-radius: 7px; background: var(--bg);
  color: var(--ink-2); font-family: var(--font-display); font-weight: 800; font-size: 0.8rem; box-shadow: inset 0 0 0 1.5px var(--line); }
.lv-cell.is-ok { background: var(--ok-ink); color: var(--paper); box-shadow: none; }
.lv-cell.is-part { background: var(--sun-soft); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--sun-edge); }
.lv-cell.is-now { background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.lv-absent { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin: 0; padding: 0.7rem 1rem; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-2); }
.lv-absent[hidden] { display: none; }
.lv-absent strong { margin-right: 0.3rem; font-family: var(--font-display); }
.lv-chip { padding: 0.1rem 0.65rem; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1.5px var(--line); font-weight: 700; }
.lv-tools [data-live-end] { margin-left: 0.2rem; }
.lv-sum-card { display: flex; flex-direction: column; gap: 0.9rem; padding: 1.3rem 1.5rem; }
.lv-sum-card h2 { margin: 0; font-size: 1.3rem; }
.lv-sum-scroll { position: relative; overflow-x: auto; }
.lv-sum-table { width: 100%; border-collapse: collapse; }
.lv-sum-table th { padding: 0.5rem 0.7rem; color: var(--ink-2); font-size: var(--step--1); text-align: left; white-space: nowrap; }
.lv-sum-table td { padding: 0.6rem 0.7rem; border-top: 1.5px solid var(--line); }
.lv-sum-table .is-num { text-align: right; white-space: nowrap; }
.lv-sum-next .lv-goal-form .field-note { text-align: left; }
@media (max-width: 760px) {
  .focusbar-back span { max-width: 9rem; }
}
@media (max-width: 600px) {
  .focusbar-back { padding: 0 0.6rem; flex: none; }
  .focusbar-back span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .focusbar:has(.focusbar-back) { gap: 0.5rem; }
  .focusbar:has(.focusbar-back) .focusbar-tools { gap: 0.35rem; }
  .lv-join { flex-wrap: wrap; gap: 0.4rem 1rem; max-width: 100%; box-sizing: border-box; }
  .lv-code { font-size: 2rem; }
  .lv-goal { grid-template-columns: minmax(0, 1fr); }
  .lv-goal-icon { display: none; }
  .lv-goal-side { align-items: flex-start; }
}
@media print {
  .lv-sum .lv-sum-next, .lv-sum [data-print], .focusbar-tools, .focusbar-back { display: none; }
}
@media (max-width: 420px) { .focusbar:has(.focusbar-back) .wm-text { display: none; } }
.lv-goal-form input { min-height: 40px; padding: 0.3rem 0.6rem; border: 0; border-radius: 10px; background: var(--paper); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; font-weight: 600; box-sizing: border-box; }
.lv-goal-form input:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; }
.lv-goal-form input[type="date"] { width: auto; }

/* p168: Cvičení s myší – rozcestník, úroveň, volby ------------------------------------------------------------- */
.ms-group, .ms-level, .ms-hero { --ms: var(--brand); --ms-soft: var(--brand-soft); }
:is(.ms-group, .ms-level).is-teal { --ms: var(--ok-ink); --ms-soft: var(--mint-soft); }
:is(.ms-group, .ms-level).is-brand { --ms: var(--brand); --ms-soft: var(--brand-soft); }
:is(.ms-group, .ms-level).is-coral { --ms: var(--flame); --ms-soft: var(--flame-soft); }
:is(.ms-group, .ms-level).is-violet { --ms: var(--brand-edge); --ms-soft: var(--sky); }
.ms-mouse { flex: none; overflow: visible; }
.ms-m-body { fill: var(--paper); stroke: var(--ink); stroke-width: 3.5; }
.ms-m-btn { fill: var(--paper); stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: round; }
.ms-m-btn.is-on, .ms-m-wheel.is-on { fill: var(--brand); }
.ms-m-wheel { fill: var(--bg); stroke: var(--ink); stroke-width: 3; }
.ms-m-two { fill: var(--on-brand); font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.ms-m-arrow { fill: none; stroke: var(--brand); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
html[data-ms-hand="left"] .ms-mouse { transform: scaleX(-1); }
html[data-ms-hand="left"] .ms-m-two { transform: scaleX(-1); transform-box: fill-box; transform-origin: center; }
.ms-kick { color: var(--ms); font-family: var(--font-display); font-weight: 800; }
.ms-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.6rem; align-items: center; padding: 1.8rem 2rem; border-radius: 28px; background: var(--brand-soft); margin-bottom: 1rem; }
.ms-hero h1 { margin: 0.2rem 0 0.5rem; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.05; }
.ms-hero p { margin: 0 0 1rem; font-size: 1.1rem; }
.ms-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: 0.6rem; }
.ms-alldone { font-family: var(--font-display); font-weight: 800; color: var(--ok-ink); }
.ms-hero-card { display: flex; align-items: center; justify-content: center; gap: 1.4rem; padding: 1.2rem; border-radius: 24px; background: var(--paper); box-shadow: 0 6px 0 var(--edge), 0 0 0 2px var(--line); }
.ms-hero-stats p { margin: 0 0 0.5rem; color: var(--ink-2); }
.ms-hero-stats p strong { color: var(--ink); font-family: var(--font-display); font-size: 2.4rem; }
.ms-hero-stats small { color: var(--ink-2); }
.ms-bar { display: block; width: 13rem; max-width: 100%; height: 12px; margin-bottom: 0.4rem; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); overflow: hidden; }
.ms-bar span { display: block; height: 100%; border-radius: 999px; background: var(--ok-ink); }
.ms-touch { display: none; margin: 0 0 1rem; padding: 0.8rem 1rem; border-radius: 14px; background: var(--sun-soft); color: var(--ink); font-weight: 700; }
.ms-group { margin: 1.4rem 0; }
.ms-group h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 0.8rem; font-size: 1.4rem; }
.ms-group h2 small { color: var(--ink-2); font-family: var(--font-ui); font-weight: 400; font-size: 1rem; }
.ms-dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--ms); }
.ms-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.ms-tile-link { display: flex; flex-direction: column; gap: 0.6rem; height: 100%; box-sizing: border-box; padding: 0.9rem 1rem; border-radius: 18px; background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: 0 4px 0 var(--edge), 0 0 0 1.5px var(--line); transition: transform 0.15s; }
a.ms-tile-link:hover { transform: translateY(-2px); }
.ms-tile.is-next .ms-tile-link { box-shadow: 0 0 0 3px var(--brand), 0 6px 0 var(--brand-edge); }
.ms-tile.is-locked .ms-tile-link, .ms-tile.is-soon .ms-tile-link { opacity: 0.7; }
.ms-tile.is-locked a.ms-tile-link { cursor: not-allowed; }
.ms-tile-top { display: flex; justify-content: space-between; align-items: center; }
.ms-num { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 11px; background: var(--ms-soft); color: var(--ms); font-family: var(--font-display); font-weight: 800; }
.ms-play { padding: 0.15rem 0.7rem; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; }
.ms-soon { padding: 0.15rem 0.7rem; border-radius: 999px; background: var(--bg); color: var(--ink-2); font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; }
.ms-lock { color: var(--ink-2); }
.ms-stars { display: inline-flex; gap: 2px; }
.ms-star path { fill: var(--bg); stroke: var(--line); stroke-width: 1.5; stroke-linejoin: round; }
.ms-star.is-on path { fill: var(--sun); stroke: var(--sun-edge); }
.ms-tile-body { display: flex; align-items: center; gap: 0.7rem; }
.ms-tile-body strong { display: block; font-family: var(--font-display); font-weight: 800; line-height: 1.2; }
.ms-tile-body small { color: var(--ink-2); }
.ms-tile-pic { flex: none; display: inline-grid; place-items: center; width: 2.8rem; height: 3.4rem; border-radius: 12px; background: var(--bg); }
.ms-howto { margin-top: 1.4rem; padding: 1.4rem 1.6rem; }
.ms-howto h2 { margin: 0 0 0.6rem; font-size: 1.3rem; }
.ms-howto ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
/* úroveň */
.ms-level { display: flex; flex-direction: column; gap: 1rem; width: min(100%, 78rem); margin: 0 auto; padding: 0.5rem clamp(0.5rem, 2vw, 2rem) 2rem; box-sizing: border-box; }
.ms-level-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.ms-level-head h1 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.ms-level-head p { margin: 0.2rem 0 0; color: var(--ink-2); font-size: 1.05rem; }
.ms-stats { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ms-stat { display: flex; flex-direction: column; min-width: 5.5rem; padding: 0.5rem 0.9rem; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1.5px var(--line); }
.ms-stat small { color: var(--ink-2); }
.ms-stat strong { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.ms-dots { display: flex; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.ms-dots li { width: 14px; height: 14px; border-radius: 50%; background: var(--line); }
.ms-dots li.is-done { background: var(--ok-ink); }
.ms-dots li.is-now { background: var(--brand); }
.ms-play-grid { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 1rem; align-items: start; }
.ms-field { position: relative; height: clamp(22rem, 58vh, 32rem); border-radius: 26px; background: var(--ms-soft); box-shadow: inset 0 0 0 2px var(--line); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.ms-start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem; }
.ms-start[hidden] { display: none; }
.ms-start-ring { display: grid; place-items: center; width: 9rem; height: 9rem; border-radius: 50%; background: var(--paper); color: var(--ms); box-shadow: 0 0 0 4px var(--ms), 0 8px 0 var(--edge); font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; text-align: center; }
.ms-start small { max-width: 26rem; text-align: center; color: var(--ink); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) { .ms-start-ring { animation: ms-breathe 2.2s ease-in-out infinite; } }
@keyframes ms-breathe { 50% { transform: scale(1.06); } }
.ms-obj { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; }
.ms-obj svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ms-obj.is-target { filter: drop-shadow(0 6px 0 rgb(var(--shade) / 0.12)); }
.ms-a-sun { fill: var(--sun); stroke: var(--sun-edge); stroke-width: 3; }
.ms-a-rays path { fill: none; stroke: var(--sun-edge); stroke-width: 5; stroke-linecap: round; }
.ms-a-eye { fill: var(--ink); }
.ms-a-smile, .ms-a-string, .ms-a-shine { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.ms-a-shine { stroke: var(--paper); stroke-width: 4; }
.ms-a-roof { fill: var(--flame); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.ms-a-wall { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.ms-a-door { fill: var(--brand); }
.ms-a-balloon { fill: var(--flame); stroke: var(--ink); stroke-width: 3; }
.ms-a-cloud { fill: var(--paper); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.ms-a-wing { fill: var(--pinky); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.ms-a-body { fill: var(--ink); }
.ms-obj-butterfly.is-away .ms-a-wing { fill: var(--line); }
@media (prefers-reduced-motion: no-preference) { .ms-obj-butterfly.is-flying svg { animation: ms-flap 0.35s ease-in-out infinite alternate; } }
@keyframes ms-flap { to { transform: scaleX(0.82); } }
.ms-a-ring-bg { fill: var(--paper); stroke: var(--line); stroke-width: 6; }
.ms-a-ring { fill: none; stroke: var(--sun-edge); stroke-width: 6; stroke-dasharray: 100; stroke-dashoffset: var(--ms-ring, 100); transform: rotate(-90deg); transform-origin: 50% 50%; stroke-linecap: round; }
.ms-a-bulb { fill: var(--bg); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.ms-a-base { fill: var(--ink-2); }
.ms-obj-lamp.is-on .ms-a-bulb { fill: var(--sun-soft); }
.ms-obj-lamp.is-lit .ms-a-bulb { fill: var(--sun); }
.ms-obj-lamp.is-lit .ms-a-ring-bg { fill: var(--sun-soft); }
.ms-hint { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; padding: 1.2rem 1rem; border-radius: 22px; background: var(--paper); box-shadow: 0 5px 0 var(--edge), 0 0 0 1.5px var(--line); text-align: center; }
.ms-hint-kick { color: var(--ink-2); font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.ms-hint strong { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; line-height: 1.25; }
html[data-ms-hints="0"] .ms-hint { display: none; }
html[data-ms-hints="0"] .ms-play-grid { grid-template-columns: minmax(0, 1fr); }
.ms-level-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.ms-result { width: min(34rem, calc(100vw - 2rem)); text-align: center; }
.ms-result h2 { margin: 0.2rem 0; font-family: var(--font-display); font-weight: 800; font-size: 2rem; }
.ms-result-stars { display: flex; justify-content: center; gap: 0.3rem; margin: 0.4rem 0 0.8rem; font-size: 2.8rem; line-height: 1; }
.ms-rstar { color: var(--line); }
.ms-rstar.is-on { color: var(--sun); text-shadow: 0 2px 0 var(--sun-edge); }
.ms-result-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin-bottom: 0.8rem; }
.ms-result-stats span { display: flex; flex-direction: column; padding: 0.7rem; border-radius: 16px; background: var(--bg); }
.ms-result-stats small { color: var(--ink-2); }
.ms-result-stats strong { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.ms-result-stats em { min-height: 1.2em; color: var(--ok-ink); font-style: normal; font-weight: 700; font-size: 0.9rem; }
.ms-result-note { margin: 0 0 0.8rem; padding: 0.6rem 0.8rem; border-radius: 12px; background: var(--mint-soft); color: var(--ink); font-weight: 700; }
.ms-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 0.8rem 0 0.6rem; }
.ms-prefs { width: min(32rem, calc(100vw - 2rem)); }
.ms-prefs-form { display: flex; flex-direction: column; gap: 0.9rem; }
.ms-seg { margin: 0; padding: 0; border: 0; }
.ms-seg legend { margin-bottom: 0.35rem; font-weight: 700; }
.ms-seg-opts { display: flex; gap: 0.3rem; padding: 0.3rem; border-radius: 14px; background: var(--bg); }
.ms-seg-opts label { flex: 1; position: relative; }
.ms-seg-opts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ms-seg-opts span { display: block; padding: 0.5rem 0.4rem; border-radius: 10px; text-align: center; color: var(--ink-2); font-family: var(--font-display); font-weight: 700; }
.ms-seg-opts input:checked + span { background: var(--paper); color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.ms-seg-opts input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.ms-check { display: flex; gap: 0.6rem; align-items: center; font-weight: 600; }
.ms-check input { width: 1.2rem; height: 1.2rem; }
.ms-prefs-foot { display: flex; justify-content: flex-end; }
@media (max-width: 860px) {
  .ms-hero { grid-template-columns: minmax(0, 1fr); padding: 1.3rem; }
  .ms-play-grid { grid-template-columns: minmax(0, 1fr); }
  .ms-hint { flex-direction: row; text-align: left; }
}

/* p169: Cvičení s myší – Klikání (bubliny, terče, složky, soubor s nabídkou) ------------------------------------- */
.ms-a-bubble { fill: var(--sky); fill-opacity: 0.85; stroke: var(--brand); stroke-width: 3; }
.ms-a-bshine { fill: none; stroke: var(--paper); stroke-width: 6; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .ms-obj-bubble svg { animation: ms-bob 2.4s ease-in-out infinite; }
  .ms-obj-bubble.is-pop svg { animation: ms-pop 0.25s ease-out forwards; }
}
.ms-obj-bubble.is-pop { opacity: 0; transition: opacity 0.25s; }
@keyframes ms-bob { 50% { transform: translateY(-6px); } }
@keyframes ms-pop { to { transform: scale(1.35); opacity: 0; } }
.ms-a-t1 { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.ms-a-t2 { fill: var(--flame-soft); stroke: var(--flame); stroke-width: 3; }
.ms-a-t3 { fill: var(--flame); }
.ms-obj-target.is-hit .ms-a-t3 { fill: var(--ok-ink); }
.ms-a-folder-back { fill: var(--sun-edge); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.ms-a-folder-front { fill: var(--sun); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; transform-origin: 50% 86%; transition: transform 0.25s; }
.ms-a-folder-paper { fill: var(--paper); stroke: var(--ink); stroke-width: 2; opacity: 0; transition: opacity 0.2s; }
.ms-obj-folder.is-open .ms-a-folder-front { transform: scaleY(0.55) skewX(-8deg); }
.ms-obj-folder.is-open .ms-a-folder-paper { opacity: 1; }
.ms-obj-folder.is-selected, .ms-obj-file.is-selected { border-radius: 16px; background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand); }
.ms-a-file { fill: var(--paper); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.ms-a-file-fold { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.ms-a-file-pic { fill: var(--sky); }
.ms-a-file-sun { fill: var(--sun); }
.ms-a-file-hill { fill: var(--ok-ink); }
.ms-obj-label { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 4px); padding: 0.05rem 0.5rem; border-radius: 7px; background: var(--paper); color: var(--ink);
  box-shadow: 0 0 0 1.5px var(--line); font-family: var(--font-display); font-weight: 800; white-space: nowrap; }
.ms-obj-folder.is-selected .ms-obj-label, .ms-obj-file.is-selected .ms-obj-label { background: var(--brand); color: var(--on-brand); }
.ms-ask { position: absolute; left: 1rem; top: 0.9rem; margin: 0; pointer-events: none; z-index: 2; width: fit-content; max-width: calc(100% - 2rem); padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--paper); color: var(--ink); font-family: var(--font-display); font-weight: 800; box-shadow: 0 0 0 1.5px var(--line); }
.ms-tip { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); margin: 0; padding: 0.45rem 1rem; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-weight: 800; pointer-events: none; z-index: 3; }
.ms-tip[hidden] { display: none; }
.ms-menu { position: absolute; z-index: 4; display: flex; flex-direction: column; min-width: 11rem; padding: 0.35rem; border-radius: 14px; background: var(--paper);
  box-shadow: 0 12px 28px rgb(var(--shade) / 0.22), 0 0 0 1.5px var(--line); }
.ms-menu button { padding: 0.5rem 0.8rem; border: 0; border-radius: 9px; background: none; color: var(--ink); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.ms-menu button:hover, .ms-menu button:focus-visible { background: var(--brand-soft); color: var(--brand); outline: none; }

/* p170: Cvičení s myší – Tažení a kolečko -------------------------------------------------------------------- */
.ms-a-shape > * { stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.ms-a-shape.is-circle > * { fill: var(--flame); }
.ms-a-shape.is-square > * { fill: var(--mint); }
.ms-a-shape.is-triangle > * { fill: var(--sun); }
.ms-a-shape.is-star > * { fill: var(--pinky); }
.ms-a-ghost > * { fill: var(--bg); stroke: var(--ink-2); stroke-width: 5; stroke-linejoin: round; }
.ms-slot { border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 3px var(--line); }
.ms-slot.is-over { box-shadow: inset 0 0 0 4px var(--brand); background: var(--brand-soft); }
.ms-slot.is-full { box-shadow: inset 0 0 0 3px var(--ok-ink); background: var(--mint-soft); }
.ms-obj[class*="ms-obj-shape-"] { z-index: 2; transition: filter 0.15s; }
.ms-obj.is-held { z-index: 3; filter: drop-shadow(0 10px 8px rgb(var(--shade) / 0.3)); }
.ms-obj.is-placed { z-index: 1; }
.ms-trace { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.ms-trace-band { fill: none; stroke: var(--paper); stroke-linecap: round; stroke-linejoin: round; }
.ms-trace-line { fill: none; stroke: var(--ms); stroke-width: 3; stroke-dasharray: 3 10; stroke-linecap: round; }
.ms-trace-trail { fill: none; stroke: var(--flame); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.ms-trace-start { fill: var(--paper); stroke: var(--ms); stroke-width: 5; }
.ms-trace-end { fill: var(--ms); }
.ms-sentence { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(90%, 40rem); margin: 0; padding: 1.2rem 1.5rem; border-radius: 18px;
  background: var(--paper); box-shadow: 0 0 0 1.5px var(--line); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.5; text-align: center;
  user-select: text; -webkit-user-select: text; cursor: text; }
.ms-sentence mark { padding: 0 0.15em; border-radius: 6px; background: var(--sun-soft); color: var(--ink); box-shadow: inset 0 -3px 0 var(--sun-edge); }
.ms-sentence.is-done mark { background: var(--mint-soft); box-shadow: inset 0 -3px 0 var(--ok-ink); }
.ms-sentence ::selection { background: var(--brand); color: var(--on-brand); }
.ms-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; scrollbar-width: auto; }
.ms-scroll:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.ms-scroll-page { position: relative; background: repeating-linear-gradient(to bottom, var(--ms-soft) 0 120px, var(--paper) 120px 240px); }
.ms-scroll-mark { position: absolute; right: 1.2rem; transform: translateY(-50%); padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--paper); color: var(--ink-2);
  box-shadow: 0 0 0 1.5px var(--line); font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; }
.ms-scroll-sign { position: absolute; left: 1rem; bottom: 1rem; margin: 0; padding: 0.45rem 0.9rem; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-weight: 800; pointer-events: none; z-index: 2; }
.ms-scroll-sign[data-dir="here"] { background: var(--ok-ink); }
.ms-chest { position: absolute; }
.ms-a-chest { fill: var(--flame); stroke: var(--ink); stroke-width: 3; }
.ms-a-chest-lid { fill: var(--flame-soft); stroke: var(--ink); stroke-width: 3; transform-box: fill-box; transform-origin: 0 100%; transition: transform 0.25s; }
.ms-a-chest-band { fill: var(--sun); stroke: var(--ink); stroke-width: 2; }
.ms-a-gold { fill: none; stroke: var(--sun-edge); stroke-width: 4; stroke-linecap: round; opacity: 0; }
.ms-chest.is-open .ms-a-chest-lid { transform: rotate(-24deg); }
.ms-chest.is-open .ms-a-gold { opacity: 1; }
/* p170: volné kreslení */
.ms-draw-card { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; padding: 1.1rem 1.4rem; }
.ms-draw-card .ms-num { flex: none; width: 3rem; height: 3rem; border-radius: 15px; background: var(--flame-soft); color: var(--flame); }
.ms-draw-card div { flex: 1; }
.ms-draw-card h2 { margin: 0; font-size: 1.25rem; }
.ms-draw-card p { margin: 0.1rem 0 0; color: var(--ink-2); }
/* p171: zkouška – zadání úkolu nahoře v ploše; diplom na rozcestníku; otázky rodičů a učitelů */
.ms-exam-step { position: absolute; right: 1rem; top: 0.9rem; z-index: 3; margin: 0; pointer-events: none; max-width: calc(100% - 2rem); padding: 0.35rem 0.9rem;
  border-radius: 999px; background: var(--ink); color: var(--paper); font-family: var(--font-display); font-weight: 800; }
.ms-exam-step[hidden] { display: none; }
.ms-dip-card .ms-num { background: var(--sun-soft); color: var(--sun-edge); }
.ms-dip-card.is-have .ms-num { background: var(--sun); color: var(--ink); }
.ms-faq-item { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.ms-faq-item:first-of-type { border-top: 0; }
.ms-faq-item summary { cursor: pointer; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.ms-faq-item p { margin: 0.4rem 0 0; color: var(--ink-2); }
/* p172: úkol Myš pro třídu – druhý formulář pod vlastním úkolem (bez délky cvičení) */
.sc-taskform.sc-mouseform { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px dashed var(--line); }
.sc-mouseform-head { grid-column: 1 / -1; margin: 0; }
.sc-mouseform-head small { display: block; color: var(--ink-2); font-weight: 400; }
/* p173: volné kreslení – nová podoba (plátno „Volné kreslení: nová podoba“): nástroje v liště, papír vlevo, paleta pod plátnem */
.dr { --ms: var(--flame); --dr-color: var(--ink); -webkit-user-select: none; user-select: none; display: flex; flex-direction: column; gap: 1rem; width: min(100%, 80rem); margin: 0 auto; padding: 0.5rem clamp(0.5rem, 2vw, 2rem) 2rem; box-sizing: border-box; }
.dr-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 0.8rem; }
.dr-head h1 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.1; }
.dr-head p { margin: 0.2rem 0 0; color: var(--ink-2); }
.dr-head-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.dr-head-actions .btn { display: inline-flex; align-items: center; gap: 0.45rem; }
.dr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.6rem; border-radius: 22px; background: var(--paper); box-shadow: 0 5px 0 var(--edge), 0 0 0 1.5px var(--line); }
.dr-group { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.dr-sep { align-self: stretch; width: 1.5px; margin: 0.35rem 0.2rem; background: var(--line); }
.dr-tool { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; min-width: 4.1rem; min-height: 3.8rem; padding: 0.3rem 0.45rem; border: 0; border-radius: 16px; background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; cursor: pointer; }
.dr-tool[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); box-shadow: 0 3px 0 var(--brand-edge); }
.dr-tool-paper { display: none; }
.dr-size, .dr-icon { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; padding: 0; border: 0; border-radius: 14px; background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.dr-size[aria-pressed="true"] { background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand); }
.dr-icon:disabled { color: var(--ink-2); opacity: 0.5; cursor: default; }
.dr-size-dot { display: block; border-radius: 50%; background: var(--dr-color); box-shadow: 0 0 0 1.5px var(--line); }
.dr-size-dot.is-s0 { width: 6px; height: 6px; }
.dr-size-dot.is-s1 { width: 12px; height: 12px; }
.dr-size-dot.is-s2 { width: 20px; height: 20px; }
.dr-size-dot.is-s3 { width: 30px; height: 30px; }
.dr-hint { position: absolute; left: 0.8rem; top: 0.8rem; z-index: 2; max-width: calc(100% - 1.6rem); padding: 0.35rem 0.8rem; border-radius: 12px; background: var(--sun-soft); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; pointer-events: none; box-shadow: 0 2px 0 rgb(0 0 0 / 0.06); }
.dr-back { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--ms); font-family: var(--font-display); font-weight: 800; text-decoration: none; }
.dr-back:hover { text-decoration: underline; }
.dr-tray { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.5rem; border-top: 1.5px dashed var(--line); }
.dr-tray[hidden] { display: none; }
.dr-pick { display: grid; place-items: center; width: 3.8rem; height: 3.8rem; padding: 0; border: 0; border-radius: 16px; background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.dr-pick[aria-pressed="true"] { background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand); }
.dr-stamp-part { stroke: #1c2045; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.dr-stamp-part.is-line { fill: none; }
.dr-grid { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.dr-papers { display: flex; flex-direction: column; gap: 0.6rem; padding: 0.75rem; border-radius: 22px; background: var(--paper); box-shadow: 0 5px 0 var(--edge), 0 0 0 1.5px var(--line); }
.dr-papers strong { padding: 0 0.25rem; font-family: var(--font-display); font-weight: 800; }
.dr-papers small { padding: 0 0.25rem; color: var(--ink-2); }
.dr-paper-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.dr-paper-grid.is-big { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.75rem; }
.dr-paper-btn { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.35rem; border: 0; border-radius: 14px; background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); font-family: var(--font-display); font-weight: 800; font-size: 0.8rem; text-align: left; cursor: pointer; }
.dr-paper-btn[aria-pressed="true"] { background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand); }
.dr-paper-btn > span:last-child { padding: 0 0.25rem; }
.dr-paper-pic { display: block; aspect-ratio: 10 / 8; border-radius: 10px; background: #ffffff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.dr-paper-pic svg { display: block; width: 100%; height: 100%; }
.dr-th-line { fill: none; stroke: #1c2045; stroke-width: 1.6px; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.dr-th-dot { fill: #1c2045; }
.dr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.dr-th-rule { fill: none; stroke: #b9c7f2; stroke-width: 2; }
.dr-th-trace { fill: none; stroke: #9aa0b8; stroke-width: 4; stroke-dasharray: 0.1 8; stroke-linecap: round; }
.dr-main { display: flex; flex-direction: column; gap: 0.8rem; min-width: 0; }
.dr-sheet { position: relative; border-radius: 24px; background: #ffffff; box-shadow: 0 6px 0 var(--edge), 0 0 0 1.5px var(--line); overflow: hidden; }
.dr-sheet canvas { display: block; width: 100%; height: auto; touch-action: none; cursor: crosshair; }
.dr-sheet canvas[data-tool="bucket"] { cursor: cell; }
.dr-sheet canvas[data-dr-lines], .dr-sheet canvas[data-dr-preview] { position: absolute; inset: 0; pointer-events: none; }
.dr-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; padding: 0.6rem 0.7rem; border-radius: 22px; background: var(--paper); box-shadow: 0 5px 0 var(--edge), 0 0 0 1.5px var(--line); }
.dr-color { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; padding: 0; border: 0; border-radius: 50%; color: #ffffff; box-shadow: inset 0 -4px 0 rgb(0 0 0 / 0.14); cursor: pointer; }
.dr-color.is-light { color: #1c2045; box-shadow: inset 0 0 0 2px var(--line); }
.dr-color svg { opacity: 0; }
.dr-color[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink); }
.dr-color[aria-pressed="true"] svg { opacity: 1; }
.dr-custom { position: relative; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; color: var(--ink);
  background: radial-gradient(circle, var(--paper) 52%, transparent 54%), conic-gradient(#e5383b, #ffc233, #7ed957, #4cc3ff, #3d5afe, #8b5cf6, #ff6fae, #e5383b); cursor: pointer; }
.dr-custom.is-on { background: var(--dr-custom); color: #ffffff; box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink); }
.dr-custom input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.dr-custom:focus-within { outline: 3px solid var(--brand); outline-offset: 3px; }
.dr-status { color: var(--ok-ink); font-weight: 700; }
.dr-dialog { width: min(46rem, calc(100vw - 2rem)); }
.dr-dialog h2 { margin: 0 0 0.8rem; font-family: var(--font-display); font-weight: 800; }
.dr-dialog-note { margin: 0.9rem 0; padding: 0.7rem 0.9rem; border-radius: 14px; background: var(--sun-soft); color: var(--ink); }
.dr-print { display: none; }
@media print {
  .dr > :not(.dr-print), body:has(.dr) .sidebar, body:has(.dr) .focusbar, body:has(.dr) .site-footer, body:has(.dr) .kb-banner { display: none !important; }
  .dr { padding: 0; }
  .dr-print { display: block; position: static; }
  .dr-print img { display: block; width: 100%; height: auto; }
}
@media (max-width: 860px) {
  .dr-grid { grid-template-columns: minmax(0, 1fr); }
  .dr-papers { display: none; }
  .dr-tool-paper { display: inline-flex; }
}
@media (max-width: 560px) {
  .dr-head-actions .btn span, .dr-bar .dr-sep { display: none; }
  .dr-tool { min-width: 3.6rem; min-height: 3.6rem; font-size: 0.75rem; padding: 0.3rem; }
  .dr-color { width: 2.5rem; height: 2.5rem; }
}
/* p178: správci administrace */
.adm-users .muted { color: var(--ink-3); }
.admin-who { margin-right: 0.8rem; color: var(--ink-2); }
.adm-users-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.4rem; margin-top: 1.2rem; align-items: start; }
.adm-users-forms h3 { font-size: 1.1rem; }
.adm-user-del summary { cursor: pointer; color: var(--error); list-style: none; }
.adm-user-del form { margin-top: 0.5rem; min-width: 14rem; }
/* p179: dvoufázové ověření správce */
.tf-back { margin: 0 0 0.4rem; }
.tf-steps { display: flex; flex-direction: column; gap: 1.1rem; padding-left: 1.3rem; }
.tf-qr { width: 13rem; max-width: 100%; margin: 0.8rem 0 0.4rem; padding: 0.5rem; border-radius: 12px; background: #ffffff; } /* QR vždy černý na bílém, i v tmavém motivu */
.tf-qr svg { display: block; width: 100%; height: auto; }
.tf-secret { word-spacing: 0.3em; }
.code-input { font-family: var(--font-mono, ui-monospace, monospace); font-size: 1.4rem; letter-spacing: 0.15em; max-width: 14rem; }
.tf-codes { padding: 1rem 1.2rem; border-radius: 16px; background: var(--sun-soft); margin-bottom: 1rem; }
.tf-codes ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.4rem 1.2rem; margin: 0.6rem 0 0; }
.tf-codes code { font-size: 1.1rem; font-weight: 700; }
.tf-state.is-on::before { content: "✓ "; color: var(--mint, #16a34a); font-weight: 900; }
.tf-help { margin-top: 1.2rem; }
.tf-banner { margin: 0 0 1rem; }
.tf-on { background: var(--mint-soft); }
/* p168: bez myši (telefon, tablet) – hláška místo hrací plochy; až za pravidly úrovně, ať je přebije */
@media not (any-pointer: fine) { .ms-touch { display: block; } .ms-play-grid, .ms-level-tools, .ms-dots { display: none; } }
