/* Calm, warm palette from the design canvas. */
:root {
  --bg: #F5EFE7; --card: #FFFBF6; --line: #E7DDD1; --line-soft: #EFE6DB;
  --ink: #3A3029; --muted: #75685D; --faint: #A89B8F;
  --accent: #5E7457; --accent-ink: #FFFBF6; --ok-bg: #E4EBDF; --ok: #3F5239;
  --few-bg: #F5E8CF; --few: #73490C; --full-bg: #ECE5DC; --cancel-bg: #F6E1D8; --cancel: #8E3B22;
  --radius: 18px;
  color-scheme: light;
}
:root[data-theme="light"] { color-scheme: light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
    --bg: #1F1B17; --card: #2A2520; --line: #3B342D; --line-soft: #332D27;
    --ink: #EFE7DD; --muted: #B4A698; --faint: #7F7368;
    --accent: #93AA8A; --accent-ink: #1F1B17; --ok-bg: #2F3A2B; --ok: #B9CDB0;
    --few-bg: #3D311E; --few: #E8C68F; --full-bg: #35302A; --cancel-bg: #42281F; --cancel: #F0A68C;
    color-scheme: dark;
  } }
:root[data-theme="dark"] {
    --bg: #1F1B17; --card: #2A2520; --line: #3B342D; --line-soft: #332D27;
    --ink: #EFE7DD; --muted: #B4A698; --faint: #7F7368;
    --accent: #93AA8A; --accent-ink: #1F1B17; --ok-bg: #2F3A2B; --ok: #B9CDB0;
    --few-bg: #3D311E; --few: #E8C68F; --full-bg: #35302A; --cancel-bg: #42281F; --cancel: #F0A68C;
    color-scheme: dark;
  }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 Figtree, system-ui, sans-serif; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 32px 16px 64px; display: flex; flex-direction: column; gap: 20px; }
h1 { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -0.01em; }
h2 { margin: 0; font-size: 17px; font-weight: 600; }
.muted { color: var(--muted); margin: 4px 0 0; }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.grow { flex: 1 1 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }

.sources { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.sources li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.dot.ok { background: var(--accent); } .dot.failing { background: var(--cancel); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.stat .label, .stat .sub { font-size: 13px; color: var(--muted); }
.stat .value { font-size: 32px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat .value.ok { color: var(--ok); } .stat .value.cancel { color: var(--cancel); }

.cal { display: flex; flex-direction: column; gap: 12px; }
.cal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-grid .dow { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; }
.day-btn { min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 2px; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.day-btn:hover { border-color: var(--line); background: var(--bg); }
.day-btn .num { font-size: 15px; font-weight: 600; }
.day-btn .cnt { font-size: 12px; color: var(--muted); }
.day-btn .bar { width: 70%; height: 4px; border-radius: 2px; background: var(--line-soft); overflow: hidden; }
.day-btn .bar i { display: block; height: 100%; background: var(--accent); }
.day-btn .marks { display: flex; gap: 4px; height: 6px; }
.day-btn .marks span { width: 6px; height: 6px; border-radius: 50%; }
.day-btn .marks .w { background: var(--accent); } .day-btn .marks .c { background: var(--cancel); }
.day-btn.today { border-color: var(--faint); }
.day-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--ok-bg); }
.day-btn:disabled { color: var(--faint); cursor: default; background: transparent; }

.filters { display: flex; flex-direction: column; gap: 12px; }
.filters .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .seg button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.chip:hover, .seg button:hover { border-color: var(--faint); }
.chip[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip .n { opacity: .75; font-weight: 400; margin-left: 4px; }
.seg { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.seg button { border: 0; min-height: 34px; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); min-width: 0; }
.search:focus-within { border-color: var(--accent); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* list view */
.day-sec { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; scroll-margin-top: 12px; }
.day-sec h2 { display: flex; gap: 10px; align-items: baseline; font-size: 19px; }
.day-sec h2 small { font-size: 14px; font-weight: 500; color: var(--muted); }
.lessons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lesson { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.lesson.watched { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.lesson.full { opacity: .62; }
.lesson .time { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 100px; }
.lesson .main { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lesson .title { font-size: 16px; font-weight: 600; }
.lesson.cancelled .title { text-decoration: line-through; color: var(--cancel); }
.lesson .meta { font-size: 13px; color: var(--muted); }
.lesson .price { min-width: 64px; text-align: right; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pill { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.few { background: var(--few-bg); color: var(--few); }
.pill.full { background: var(--full-bg); color: var(--muted); } .pill.cancel { background: var(--cancel-bg); color: var(--cancel); }
.book { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.book:hover { filter: brightness(1.08); }
.book.off { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.star { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; }
.star:hover { background: var(--bg); }
.star svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.star[aria-pressed="true"] { color: var(--accent); } .star[aria-pressed="true"] svg { fill: currentColor; }

/* week view */
.week-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 8px; }
.week-nav h2 { font-size: 19px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.wcol { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wcol h3 { margin: 0; padding: 8px 4px; font-size: 14px; font-weight: 600; text-align: center; }
.wcol h3 small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.wcol.today h3 { color: var(--ok); }
.wcard { display: flex; flex-direction: column; gap: 3px; padding: 9px 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--tone); text-decoration: none; color: inherit; font-size: 13px; }
.wcard:hover { border-color: var(--faint); border-left-color: var(--tone); }
.wcard b { font-size: 13px; font-weight: 600; }
.wcard .t { font-variant-numeric: tabular-nums; color: var(--muted); }
.wcard.cancelled b { text-decoration: line-through; color: var(--cancel); }
.wcard.full { opacity: .6; }
.wcard.watched { box-shadow: 0 0 0 1px var(--accent); }
.wcard.t-ok { --tone: var(--accent); } .wcard.t-few { --tone: var(--few); } .wcard.t-full { --tone: var(--faint); } .wcard.t-cancel { --tone: var(--cancel); }
.wempty { font-size: 12px; color: var(--faint); text-align: center; padding: 12px 0; }

.empty-msg { padding: 32px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); margin-top: 12px; }

@media (max-width: 760px) {
  .wrap { padding-top: 20px; }
  h1 { font-size: 26px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat .value { font-size: 26px; }
  .cal-grid { gap: 4px; }
  .day-btn { min-height: 62px; border-radius: 10px; }
  .day-btn .cnt { font-size: 11px; }
  .lesson { padding: 12px; }
  .lesson .time { min-width: 0; }
  .lesson .price { text-align: left; min-width: 0; }
  .book { flex: 1; justify-content: center; }
}

/* ===== Cozy layer: Jógový Chomík ===== */
:root { --ink-strong: #573B26; --sketch: #B8A895; --mint: #D3E6D7; --peach: #F6DCC6; --rose: #F1D5D3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ink-strong: #E8C9A4; --sketch: #6E6257; --mint: #2F3A2B; --peach: #3B2F25; --rose: #3A2A2A; } }
:root[data-theme="dark"] { --ink-strong: #E8C9A4; --sketch: #6E6257; --mint: #2F3A2B; --peach: #3B2F25; --rose: #3A2A2A; }

/* paper grain + soft blobs */
body {
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::before, body::after { content: ""; position: fixed; z-index: -1; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; filter: blur(2px); opacity: .55; pointer-events: none; }
body::before { width: 520px; height: 460px; left: -180px; top: 340px; background: var(--mint); }
body::after { width: 460px; height: 420px; right: -160px; top: 900px; background: var(--peach); border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%; }

h1, h2, .stat .value, .day-btn .num, .lesson .time { font-family: Fraunces, Georgia, serif; font-variation-settings: "SOFT" 100; }
h1 { font-weight: 650; }

/* sky banner */
.sky { position: relative; overflow: hidden; border-radius: 28px 34px 26px 32px / 30px 26px 34px 28px; padding: 26px 26px 18px; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; color: #3A3029; }
.sky[data-phase="morning"] { background: linear-gradient(180deg, #FBD9C0 0%, #FCE9D6 55%, #F7EFE4 100%); }
.sky[data-phase="day"] { background: linear-gradient(180deg, #DCEBE6 0%, #EEF3E6 55%, #F8F2E7 100%); }
.sky[data-phase="evening"] { background: linear-gradient(180deg, #D9C3D6 0%, #F0D2C8 55%, #F6E6D8 100%); }
.sky[data-phase="night"] { background: linear-gradient(180deg, #27304A 0%, #3E4466 60%, #5A5677 100%); color: #F3ECE2; }
.sky-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky-art .sun circle { fill: #F6C177; } .sky-art .sun .halo { fill: #F6C177; opacity: .25; }
.sky-art .moon circle { fill: #F4E9C8; } .sky-art .moon .bite { fill: #3E4466; }
.sky-art .stars circle { fill: #F4E9C8; }
.sky-art .clouds path { fill: #fff; opacity: .7; }
.sky-art .hill.back { fill: #B9D2BC; } .sky-art .hill.front { fill: #9EBFA5; }
.sky[data-phase="evening"] .hill.back { fill: #C9B6C2; } .sky[data-phase="evening"] .hill.front { fill: #AFA0B3; }
.sky[data-phase="night"] .hill.back { fill: #39405C; } .sky[data-phase="night"] .hill.front { fill: #2C324A; }
.sky .moon, .sky .stars { display: none; }
.sky[data-phase="night"] .moon, .sky[data-phase="night"] .stars, .sky[data-phase="evening"] .stars { display: inline; }
.sky[data-phase="night"] .sun, .sky[data-phase="night"] .clouds, .sky[data-phase="evening"] .clouds { display: none; }
.sky[data-phase="evening"] .sun circle { fill: #F2A27A; }
.sky[data-phase="evening"] .sun { transform: translateY(70px); }
.sky[data-phase="morning"] .sun { transform: translate(-260px, 40px); }
.sky-art .clouds { animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(-60px); } }
.sky-inner { position: relative; display: flex; align-items: center; gap: 22px; }
.sky-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sky h1 { font-size: 40px; line-height: 1.05; }
.tagline { margin: 4px 0 0; font-size: 15px; opacity: .78; }
.sky .sources { position: relative; }
.sky .sources li { background: rgba(255, 251, 246, .78); border-color: rgba(87, 59, 38, .15); backdrop-filter: blur(4px); }
.sky[data-phase="night"] .sources li { background: rgba(42, 37, 32, .55); color: #E7DCCD; border-color: rgba(255, 255, 255, .12); }

.mascot { flex: none; filter: drop-shadow(0 8px 16px rgba(87, 59, 38, .18)); }
.bubble { position: relative; align-self: flex-start; margin: 12px 0 0 8px; padding: 6px 16px 8px; border-radius: 18px 20px 18px 16px; background: #FFFBF6; color: #3A3029; font-family: Caveat, cursive; font-size: 23px; line-height: 1.15; box-shadow: 0 2px 0 rgba(87, 59, 38, .12); max-width: 560px; }
.bubble::before { content: ""; position: absolute; left: -10px; top: 14px; border: 8px solid transparent; border-right: 12px solid #FFFBF6; border-left: 0; }

/* hamster moods */
.chomik .ch-eyes-open, .chomik .ch-brows, .chomik .ch-smile, .chomik .ch-frown, .chomik .ch-tear,
.chomik .ch-zzz, .chomik .ch-spark, .chomik .ch-cloud { display: none; }
.chomik[data-mood="happy"] .ch-eyes-closed, .chomik[data-mood="sad"] .ch-eyes-closed { display: none; }
.chomik[data-mood="happy"] .ch-eyes-open, .chomik[data-mood="sad"] .ch-eyes-open { display: inline; }
.chomik[data-mood="happy"] .ch-mouth, .chomik[data-mood="sad"] .ch-mouth { display: none; }
.chomik[data-mood="happy"] .ch-smile, .chomik[data-mood="happy"] .ch-spark { display: inline; }
.chomik[data-mood="sad"] .ch-frown, .chomik[data-mood="sad"] .ch-brows, .chomik[data-mood="sad"] .ch-tear, .chomik[data-mood="sad"] .ch-cloud { display: inline; }
.chomik[data-mood="sleep"] .ch-zzz { display: inline; }
.chomik:not([data-mood="meditate"]) .ch-om, .chomik[data-mood="sad"] .ch-diamond { display: none; }
.chomik .ch-body { transform-origin: 100px 170px; animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035, 1.05); } }
.chomik[data-mood="happy"] .ch-paw-r { transform-origin: 140px 140px; transform: translate(10px, -46px); animation: wave 1.1s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: translate(10px, -46px) rotate(-12deg); } 50% { transform: translate(10px, -46px) rotate(14deg); } }
.chomik[data-mood="happy"] .ch-body { animation: hop 1.6s ease-in-out infinite; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-5px); } }
.chomik .ch-zzz text { animation: zz 3s ease-in-out infinite; }
.chomik .ch-zzz .z2 { animation-delay: 1.2s; }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 6px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(6px, -10px); } }
.chomik .ch-cloud { animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }
.chomik .ch-spark { animation: twinkle 1.4s ease-in-out infinite; transform-origin: center; }
@keyframes twinkle { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .chomik *, .sky-art * { animation: none !important; } }

/* hand-drawn surfaces: rough.js draws the outline, CSS keeps a wobbly shape */
[data-rough] { position: relative; border-color: transparent !important; }
.rough-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.stat { border-radius: 20px 24px 18px 26px / 24px 18px 26px 20px; }
.stat:nth-child(2) { background: linear-gradient(160deg, var(--card) 60%, var(--mint)); }
.stat:nth-child(3) { background: linear-gradient(160deg, var(--card) 60%, var(--rose)); }
.stat:nth-child(4) { background: linear-gradient(160deg, var(--card) 60%, var(--peach)); }
.stat .label { font-weight: 500; }
.card { border-radius: 24px 28px 22px 30px / 28px 22px 30px 24px; }
.day-btn { border-radius: 14px 18px 12px 16px / 16px 12px 18px 14px; }
.day-sec h2 { position: relative; padding-bottom: 6px; }
.day-sec h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 120px; height: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8'%3E%3Cpath d='M2 5 Q15 1 30 4 T60 4 T90 4 T118 3' fill='none' stroke='%238DB79A' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat; }
.lesson { border-radius: 18px 22px 16px 24px / 22px 16px 24px 18px; transition: transform .15s ease, box-shadow .15s ease; }
.lesson:hover { transform: translateY(-1px) rotate(-.15deg); box-shadow: 0 6px 18px rgba(87, 59, 38, .08); }
.lesson .ico { flex: none; width: 42px; height: 42px; border-radius: 50% 46% 52% 48%; display: inline-flex; align-items: center; justify-content: center; }
.lesson .ico svg, .wcard .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico.calm { background: var(--ok-bg); color: var(--ok); }
.ico.hot { background: #F8DCCB; color: #A4492A; }
.ico.energy { background: var(--few-bg); color: var(--few); }
.ico.pilates { background: #E7E1F0; color: #5B4E7A; }
.ico.kids { background: #FBE3E6; color: #A34D63; }
.ico.flow { background: #DDEBEE; color: #36606B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ico.hot { background: #4A2E22; color: #F2B79C; } :root:not([data-theme="light"]) .ico.pilates { background: #35304A; color: #CBBFE6; } :root:not([data-theme="light"]) .ico.kids { background: #47303A; color: #F0B6C4; } :root:not([data-theme="light"]) .ico.flow { background: #24383D; color: #A9D0D9; } }
:root[data-theme="dark"] .ico.hot { background: #4A2E22; color: #F2B79C; }
:root[data-theme="dark"] .ico.pilates { background: #35304A; color: #CBBFE6; }
:root[data-theme="dark"] .ico.kids { background: #47303A; color: #F0B6C4; }
:root[data-theme="dark"] .ico.flow { background: #24383D; color: #A9D0D9; }
.wcard .head { display: flex; align-items: center; gap: 6px; }
.wcard .ico { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.wcard .ico svg { width: 14px; height: 14px; }
.wcard { border-radius: 12px 16px 12px 14px / 14px 12px 16px 12px; }
.empty-msg { font-family: Caveat, cursive; font-size: 24px; }
.empty-msg .chomik { display: block; margin: 0 auto 6px; }

.lesson .foot { display: contents; }

/* hamster toast */
.toast { position: fixed; z-index: 40; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 10px; max-width: min(420px, calc(100vw - 36px)); padding: 8px 18px 8px 8px; border-radius: 26px 30px 24px 28px; background: var(--card); border: 1.5px solid var(--sketch); box-shadow: 0 10px 30px rgba(87, 59, 38, .16); font-family: Caveat, cursive; font-size: 22px; line-height: 1.15; transform: translateY(140%); transition: transform .35s cubic-bezier(.2, .9, .3, 1.2); }
.toast.show { transform: none; }
.toast .chomik { width: 64px; height: 64px; flex: none; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* petals when a lesson gets a star */
.petal { position: fixed; z-index: 50; width: 12px; height: 12px; border-radius: 0 100% 0 100%; pointer-events: none; animation: petal 1.4s ease-out forwards; }
@keyframes petal { from { opacity: 1; transform: translate(0, 0) rotate(0); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)); } }

@media (max-width: 760px) {
  .day-btn .m, .day-btn .w { display: none; }
  .day-btn { min-height: 58px; gap: 2px; }
  .day-btn .num { font-size: 16px; }
  .filters .row.chips, .filters #studios { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
  .filters .row.chips::-webkit-scrollbar { display: none; }
  .filters .chips .chip { flex: none; }
  .filters #tod { flex: none; flex-wrap: nowrap; }
  .filters .grow { display: none; }
  .lesson { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "ico time star" "main main main" "foot foot foot"; gap: 8px 12px; }
  .lesson .ico { grid-area: ico; } .lesson .time { grid-area: time; align-self: center; }
  .lesson .star { grid-area: star; } .lesson .main { grid-area: main; }
  .lesson .foot { grid-area: foot; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .lesson .foot .book { margin-left: auto; flex: 0 1 auto; }
  .sky { padding: 18px 16px 14px; min-height: 0; }
  .sky-inner { align-items: flex-start; gap: 12px; }
  .mascot .chomik { width: 84px; height: 84px; }
  .sky h1 { font-size: 28px; }
  .bubble { font-size: 20px; margin-left: 4px; }
  body::before, body::after { display: none; }
}

/* ===== login ===== */
.login-body { min-height: 100vh; }
.login-body::before, .login-body::after { display: none; }
.login-sky { position: relative; min-height: 100vh; border-radius: 0; padding: 0; display: block; }
.login-wrap { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 32px 16px 120px; }
.login-mascot { filter: drop-shadow(0 12px 24px rgba(87, 59, 38, .22)); }
.login-bubble { align-self: center; margin: 10px 0 18px; text-align: center; }
.login-bubble::before { left: 50%; top: -12px; transform: translateX(-50%) rotate(90deg); }
.login-card { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 26px 26px 24px; background: rgba(255, 251, 246, .94); backdrop-filter: blur(6px); color: var(--ink); box-shadow: 0 18px 50px rgba(58, 48, 41, .14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .login-card { background: rgba(42, 37, 32, .94); } }
:root[data-theme="dark"] .login-card { background: rgba(42, 37, 32, .94); }
.login-card h1 { font-size: 30px; text-align: center; }
.login-card .muted { text-align: center; margin: -10px 0 4px; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input { min-height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 14px 16px 13px 15px; background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; font-size: 16px; outline: 0; width: 100%; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ok-bg); }
.pw { position: relative; display: block; }
.pw input { padding-right: 48px; }
.peek { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.peek svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.peek[aria-pressed="true"] { color: var(--accent); }
.login-btn { justify-content: center; min-height: 48px; margin-top: 6px; border: 0; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; border-radius: 14px 16px 13px 15px; }
.sky-actions { position: absolute; top: 14px; right: 16px; z-index: 2; }
.logout { min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(87, 59, 38, .2); background: rgba(255, 251, 246, .7); color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.sky[data-phase="night"] .logout { background: rgba(42, 37, 32, .5); border-color: rgba(255, 255, 255, .15); }

/* ===== hamster yoga poses (only while calm) ===== */
.chomik .ch-pose, .chomik .ch-paw-l, .chomik .ch-paw-r, .chomik .ch-foot-r { transform-box: view-box; }
.chomik .ch-pose { transform-origin: 100px 172px; }
.chomik .ch-paw-l, .chomik .ch-paw-r, .chomik .ch-foot-r { transition: transform .6s ease; }
.chomik .ch-sun { display: none; }
.chomik[data-mood="meditate"]:not([data-pose="rest"]) .ch-om { display: none; }

/* pozdrav slunci: paws sweep overhead and down, body lengthens */
.chomik[data-mood="meditate"][data-pose="salute"] .ch-sun { display: inline; animation: twinkle 2.5s ease-in-out infinite; }
.chomik[data-mood="meditate"][data-pose="salute"] .ch-pose { animation: salute-body 5s ease-in-out infinite; }
.chomik[data-mood="meditate"][data-pose="salute"] .ch-paw-l { animation: salute-l 5s ease-in-out infinite; }
.chomik[data-mood="meditate"][data-pose="salute"] .ch-paw-r { animation: salute-r 5s ease-in-out infinite; }
@keyframes salute-body { 0%, 15%, 90%, 100% { transform: none; } 40%, 62% { transform: translateY(-5px) scale(1, 1.06); } }
@keyframes salute-l { 0%, 15%, 90%, 100% { transform: none; } 40%, 62% { transform: translate(22px, -98px); } }
@keyframes salute-r { 0%, 15%, 90%, 100% { transform: none; } 40%, 62% { transform: translate(-26px, -94px); } }

/* úklon do strany: one arm over the head, lean, other side */
.chomik[data-mood="meditate"][data-pose="stretch"] .ch-pose { animation: bend 6s ease-in-out infinite; }
.chomik[data-mood="meditate"][data-pose="stretch"] .ch-paw-r { animation: bend-r 6s ease-in-out infinite; }
.chomik[data-mood="meditate"][data-pose="stretch"] .ch-paw-l { animation: bend-l 6s ease-in-out infinite; }
@keyframes bend { 0%, 50%, 100% { transform: none; } 20%, 32% { transform: rotate(-10deg); } 70%, 82% { transform: rotate(10deg); } }
@keyframes bend-r { 0%, 50%, 100% { transform: none; } 20%, 32% { transform: translate(-62px, -94px); } }
@keyframes bend-l { 0%, 50%, 100% { transform: none; } 70%, 82% { transform: translate(58px, -98px); } }

/* strom: paws joined overhead, foot to the knee, gentle sway */
.chomik[data-mood="meditate"][data-pose="tree"] .ch-paw-l { transform: translate(42px, -100px); }
.chomik[data-mood="meditate"][data-pose="tree"] .ch-paw-r { transform: translate(-46px, -94px); }
.chomik[data-mood="meditate"][data-pose="tree"] .ch-foot-r { transform: translate(-16px, -26px); }
.chomik[data-mood="meditate"][data-pose="tree"] .ch-pose { animation: sway 4s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

/* twist: paws travel around, body turns a little each way */
.chomik[data-mood="meditate"][data-pose="twist"] .ch-pose { animation: twist 5s ease-in-out infinite; }
.chomik[data-mood="meditate"][data-pose="twist"] .ch-paw-l { animation: twist-l 5s ease-in-out infinite; }
.chomik[data-mood="meditate"][data-pose="twist"] .ch-paw-r { animation: twist-r 5s ease-in-out infinite; }
@keyframes twist { 0%, 50%, 100% { transform: none; } 25% { transform: rotate(6deg) scale(.97, 1); } 75% { transform: rotate(-6deg) scale(.97, 1); } }
@keyframes twist-l { 0%, 50%, 100% { transform: none; } 25% { transform: translate(66px, -10px); } 75% { transform: translate(-8px, -34px); } }
@keyframes twist-r { 0%, 50%, 100% { transform: none; } 25% { transform: translate(8px, -36px); } 75% { transform: translate(-68px, -4px); } }

.mascot { position: relative; cursor: pointer; border: 0; background: none; padding: 0; }
.pose-caption { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); white-space: nowrap; padding: 2px 10px; border-radius: 999px; background: rgba(255, 251, 246, .88); color: #3A5E46; font-family: Caveat, cursive; font-size: 17px; font-weight: 700; box-shadow: 0 1px 0 rgba(87, 59, 38, .12); pointer-events: none; }
.pose-caption:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .chomik .ch-pose, .chomik .ch-paw-l, .chomik .ch-paw-r { animation: none !important; } }

/* theme toggle */
.theme-toggle { width: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: inline; } :root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .i-sun { display: inline; } :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; } }
.sky-actions { display: flex; gap: 8px; }
.login-actions { position: fixed; top: 14px; right: 16px; z-index: 5; }

/* dimmed skies in dark mode */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sky[data-phase="morning"] { background: linear-gradient(180deg, #4A3730 0%, #3E322C 60%, #2E2823 100%); color: #F3ECE2; } :root:not([data-theme="light"]) .sky[data-phase="day"] { background: linear-gradient(180deg, #2E3D38 0%, #333C33 60%, #2C2924 100%); color: #F3ECE2; } :root:not([data-theme="light"]) .sky[data-phase="evening"] { background: linear-gradient(180deg, #3D3346 0%, #47363A 60%, #2E2622 100%); color: #F3ECE2; } :root:not([data-theme="light"]) .sky:not([data-phase="night"]) .sky-art { filter: brightness(.62) saturate(.85); } :root:not([data-theme="light"]) .sky .sources li { background: rgba(42, 37, 32, .6); color: #E7DCCD; border-color: rgba(255, 255, 255, .12); } :root:not([data-theme="light"]) .sky .logout { background: rgba(42, 37, 32, .55); border-color: rgba(255, 255, 255, .15); color: #EFE7DD; } :root:not([data-theme="light"]) .pose-caption { background: rgba(42, 37, 32, .85); color: #CFE0C7; } }
:root[data-theme="dark"] .sky[data-phase="morning"] { background: linear-gradient(180deg, #4A3730 0%, #3E322C 60%, #2E2823 100%); color: #F3ECE2; }
:root[data-theme="dark"] .sky[data-phase="day"] { background: linear-gradient(180deg, #2E3D38 0%, #333C33 60%, #2C2924 100%); color: #F3ECE2; }
:root[data-theme="dark"] .sky[data-phase="evening"] { background: linear-gradient(180deg, #3D3346 0%, #47363A 60%, #2E2622 100%); color: #F3ECE2; }
:root[data-theme="dark"] .sky:not([data-phase="night"]) .sky-art { filter: brightness(.62) saturate(.85); }
:root[data-theme="dark"] .sky .sources li { background: rgba(42, 37, 32, .6); color: #E7DCCD; border-color: rgba(255, 255, 255, .12); }
:root[data-theme="dark"] .sky .logout { background: rgba(42, 37, 32, .55); border-color: rgba(255, 255, 255, .15); color: #EFE7DD; }
:root[data-theme="dark"] .pose-caption { background: rgba(42, 37, 32, .85); color: #CFE0C7; }

/* ===== MultiSport toggle and prices ===== */
.ms-toggle { display: inline-flex; align-items: center; gap: 6px; }
.ms-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
:root .sky .logout.ms-toggle[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.lesson .price s { color: var(--faint); margin-right: 4px; }
.lesson .price .ms-ok { color: var(--ok); font-weight: 600; }
.lesson .price .ms-add { color: var(--few); font-weight: 600; }
.lesson .price .ms-no { display: block; font-size: 11.5px; color: var(--faint); }
@media (max-width: 480px) { .ms-toggle span { display: none; } .ms-toggle { width: 34px; padding: 0; justify-content: center; } }
