@font-face {
  font-family: "Noto Sans Georgian";
  src: url("assets/fonts/noto-sans-georgian.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBF, U+205A, U+2D00-2D2F, U+2E31;
}

@font-face {
  font-family: "Noto Sans Georgian";
  src: url("assets/fonts/noto-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Noto Serif Georgian";
  src: url("assets/fonts/noto-serif-georgian.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBF, U+205A, U+2D00-2D2F, U+2E31;
}

@font-face {
  font-family: "Noto Serif Georgian";
  src: url("assets/fonts/noto-serif-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --canvas: #f7f6ff;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-subtle: #f0efff;
  --surface-brand: #4b32b5;
  --surface-brand-2: #6847f5;
  --text-primary: #20213d;
  --text-secondary: #565b78;
  --text-tertiary: #747896;
  --border: #dddafa;
  --border-strong: #c7c1f2;
  --border-brand: #bcb2ff;
  --border-warm: #ffd78a;
  --border-danger: #ffc5cf;
  --brand-800: #4324ad;
  --brand-700: #5b38d6;
  --brand-500: #7356f1;
  --brand-200: #c8bfff;
  --brand-100: #ece9ff;
  --accent-cyan: #13bfe5;
  --accent-coral: #ff5f7f;
  --accent-yellow: #ffcf4a;
  --warm-bg: #fff6d8;
  --warm-text: #795500;
  --danger-bg: #fff0f3;
  --danger-text: #9b2944;
  --white: #ffffff;
  --radius-control: 10px;
  --radius-card: 16px;
  --radius-feature: 24px;
  --radius-pill: 999px;
  --shadow-card: 0 2px 4px rgba(74, 50, 181, .05), 0 16px 38px rgba(74, 50, 181, .09);
  --shadow-feature: 0 30px 80px rgba(79, 54, 203, .24);
  --shadow-dialog: 0 28px 80px rgba(44, 31, 108, .28);
  --sidebar-width: 232px;
  --header-mobile-height: 66px;
  --bottom-nav-height: 72px;
  color: var(--text-primary);
  background: var(--canvas);
  font-family: "Noto Sans Georgian", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 84% 5%, rgba(19,191,229,.13), transparent 24rem),
    radial-gradient(circle at 18% 88%, rgba(255,95,127,.09), transparent 28rem),
    var(--canvas);
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 3px;
}
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; z-index: 1000; top: -100px; left: 16px; padding: 12px 16px; border-radius: var(--radius-control); color: var(--white); background: var(--brand-700); }
.skip-link:focus { top: 16px; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 28px 16px 22px;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 0%, rgba(49,220,255,.28), transparent 32%),
    radial-gradient(circle at 95% 72%, rgba(255,95,127,.25), transparent 35%),
    linear-gradient(165deg, #6b4df6 0%, #4e32bf 52%, #3b278c 100%);
  border-right: 1px solid rgba(255,255,255,.12);
  box-shadow: 12px 0 40px rgba(61,39,142,.12);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px; color: inherit; text-decoration: none; }
.brand > span:last-child { display: grid; gap: 3px; }
.brand strong { font-size: 17px; font-weight: 650; letter-spacing: -.015em; }
.brand small { color: rgba(255,255,255,.54); font-size: 12px; line-height: 1.35; }
.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  background: rgba(255,255,255,.065);
}
.brand-mark svg { width: 25px; height: 25px; color: #fff3aa; stroke-width: 1.6; }
.side-nav { display: grid; gap: 5px; margin-top: 52px; }
.nav-item {
  position: relative;
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  color: rgba(255,255,255,.62);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  transition: color .16s ease, background .16s ease;
}
.nav-item:hover { color: var(--white); background: rgba(255,255,255,.11); }
.nav-item.is-active { color: var(--white); background: rgba(255,255,255,.17); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.nav-item.is-active::before { content: ""; position: absolute; left: 0; width: 3px; height: 22px; border-radius: 0 3px 3px 0; background: var(--accent-yellow); box-shadow: 0 0 14px rgba(255,207,74,.55); }
.account-entry { width: 100%; min-height: 58px; margin-top: auto; display: flex; align-items: center; gap: 11px; padding: 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; color: var(--white); background: rgba(255,255,255,.09); cursor: pointer; text-align: left; }
.account-entry:hover { background: rgba(255,255,255,.15); }
.account-entry > svg { width: 21px; height: 21px; flex: 0 0 auto; color: #fff1a3; }
.account-entry > span { min-width: 0; display: grid; gap: 3px; }
.account-entry strong { font-size: 11px; font-weight: 680; }
.account-entry small { overflow: hidden; color: rgba(255,255,255,.58); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.safety-entry { width: 100%; min-height: 44px; margin-top: 10px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; color: rgba(255,255,255,.78); background: rgba(255,255,255,.05); cursor: pointer; text-align: left; font-size: 12px; font-weight: 600; }
.safety-entry:hover { color: var(--white); background: rgba(255,255,255,.12); }
.safety-entry svg { width: 17px; height: 17px; flex: 0 0 auto; }
.privacy-note { margin-top: 12px; display: flex; gap: 10px; align-items: flex-start; padding: 16px 10px 2px; border-top: 1px solid rgba(255,255,255,.08); }
.privacy-dot { width: 7px; height: 7px; flex: 0 0 auto; margin-top: 6px; border-radius: 50%; background: #52e5ff; box-shadow: 0 0 0 5px rgba(82,229,255,.12); }
.privacy-note div { display: grid; gap: 4px; }
.privacy-note strong { font-size: 12px; font-weight: 600; }
.privacy-note small { color: rgba(255,255,255,.48); font-size: 11px; line-height: 1.5; }

.main-content { min-height: 100vh; margin-left: var(--sidebar-width); padding: 52px clamp(32px, 5vw, 72px) 76px; }
.view { display: none; max-width: 1160px; margin: 0 auto; animation: view-in .24s cubic-bezier(.2,.8,.2,1); }
.view.is-visible { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } }
.mobile-header, .bottom-nav { display: none; }
.page-head { margin-bottom: 34px; display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.page-head h1 {
  margin: 5px 0 10px;
  font-family: "Noto Serif Georgian", serif;
  font-size: clamp(34px, 4vw, 49px);
  font-weight: 560;
  line-height: 1.13;
  letter-spacing: -.025em;
}
.page-head p:not(.eyebrow) { max-width: 690px; margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.75; }
.eyebrow { margin: 0 0 8px; color: var(--brand-700); font-size: 12px; font-weight: 650; letter-spacing: .02em; }
.text-button, .quiet-button, .icon-button { border: 0; background: transparent; cursor: pointer; }
.text-button { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 2px; color: var(--brand-700); font-size: 13px; font-weight: 600; }
.quiet-button { min-height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius-control); color: var(--text-secondary); background: rgba(255,255,255,.65); font-size: 13px; font-weight: 600; }
.quiet-button:hover { border-color: var(--border-strong); background: var(--white); }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-control); }
.primary-button, .secondary-button {
  min-height: 50px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0 21px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.primary-button { color: var(--white); background: linear-gradient(135deg, #7356f1, #5533cd); box-shadow: 0 12px 28px rgba(91,56,214,.24); }
.primary-button:hover { transform: translateY(-2px); background: linear-gradient(135deg, #8168ff, #603bdc); box-shadow: 0 16px 34px rgba(91,56,214,.3); }
.primary-button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.secondary-button { color: var(--brand-800); background: var(--brand-100); }
.wide { width: 100%; }

.hero-card {
  min-height: 352px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 7fr 5fr;
  color: var(--white);
  background: linear-gradient(128deg, #714ff5 0%, #546ff4 56%, #12bde0 100%);
  border: 1px solid rgba(255,255,255,.055);
  border-radius: var(--radius-feature);
  box-shadow: var(--shadow-feature);
}
.hero-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 83% 18%, rgba(255,255,255,.24), transparent 30%), radial-gradient(circle at 20% 120%, rgba(255,95,127,.3), transparent 36%); }
.hero-copy { position: relative; z-index: 2; align-self: center; padding: 50px clamp(36px, 5vw, 64px); }
.hero-copy h2 { max-width: 560px; margin: 20px 0 14px; font-family: "Noto Serif Georgian", serif; font-size: clamp(32px, 3.7vw, 50px); font-weight: 550; line-height: 1.16; letter-spacing: -.03em; }
.hero-copy > p { max-width: 500px; margin: 0; color: rgba(255,255,255,.67); font-size: 15px; line-height: 1.7; }
.status-pill, .offline-pill, .session-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; }
.status-pill { color: #ffffff; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.22); }
.status-pill span, .offline-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-yellow); }
.hero-metrics { margin: 24px 0 26px; display: flex; align-items: center; gap: 13px; color: rgba(255,255,255,.57); font-size: 12px; }
.hero-metrics strong { color: var(--white); font-size: 15px; font-weight: 620; }
.hero-metrics i { width: 1px; height: 16px; background: rgba(255,255,255,.16); }
.hero-copy .primary-button { min-height: 52px; color: #38217f; background: #fff6b8; box-shadow: 0 12px 30px rgba(45,29,109,.18); }
.hero-copy .primary-button:hover { background: var(--white); }
.hero-visual { position: relative; z-index: 1; min-height: 320px; display: grid; place-items: center; padding: 30px 38px 30px 0; }

.premium-strip { margin-top: 20px; display: grid; grid-template-columns: 52px minmax(0,1fr) auto auto; gap: 18px; align-items: center; padding: 18px 20px; border: 1px solid #d8d0ff; border-radius: var(--radius-card); background: linear-gradient(110deg, #ffffff, #f1efff 58%, #eafaff); box-shadow: var(--shadow-card); }
.premium-strip-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; color: #6a4500; background: linear-gradient(145deg, #ffe171, #ffc742); box-shadow: 0 11px 24px rgba(217,157,0,.18); }
.premium-strip-icon svg { width: 25px; height: 25px; }
.premium-strip-copy { min-width: 0; }
.premium-strip-copy > span { color: var(--brand-700); font-size: 11px; font-weight: 750; }
.premium-strip-copy h3 { margin: 4px 0 3px; font-size: 15px; }
.premium-strip-copy p { margin: 0; color: var(--text-secondary); font-size: 11px; }
.premium-strip-price { display: grid; justify-items: end; white-space: nowrap; }
.premium-strip-price strong { color: var(--brand-800); font-size: 21px; }
.premium-strip-price small { color: var(--text-tertiary); font-size: 10px; }
.premium-strip-button { min-height: 43px; padding: 0 16px; border: 0; border-radius: 11px; color: var(--white); background: linear-gradient(135deg, #7356f1, #5533cd); cursor: pointer; font-size: 12px; font-weight: 700; }
.signature-art { width: 100%; max-width: 470px; position: relative; padding-top: 30px; }
.signature-art svg { width: 100%; height: auto; overflow: visible; }
.signature-art path { fill: none; vector-effect: non-scaling-stroke; }
.signature-halo { stroke: rgba(255,255,255,.22); stroke-width: 1; }
.signature-line { stroke: #fff3aa; stroke-width: 2; filter: drop-shadow(0 0 16px rgba(255,243,170,.35)); }
.signature-label { position: absolute; top: 2px; right: 3px; color: rgba(255,255,255,.42); font-size: 11px; letter-spacing: .035em; }
.signature-dot { position: absolute; right: 4%; top: 61%; width: 6px; height: 6px; border-radius: 50%; background: #d8eee9; box-shadow: 0 0 0 7px rgba(216,238,233,.06); }

.section-title { margin: 46px 0 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-title h2 { margin: 0; font-family: "Noto Serif Georgian", serif; font-size: 25px; font-weight: 560; letter-spacing: -.015em; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 1px 2px rgba(18,47,43,.03); }
.tool-card { min-height: 116px; display: flex; align-items: center; gap: 15px; padding: 22px; border: 0; color: var(--text-primary); background: transparent; cursor: pointer; text-align: left; transition: background .16s ease; }
.tool-card + .tool-card { border-left: 1px solid var(--border); }
.tool-card:hover { background: linear-gradient(135deg, #f1efff, #effbff); }
.tool-icon { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 13px; color: var(--brand-700); background: var(--surface-raised); }
.tool-icon.coral { color: #d82f5d; border-color: #ffc4d0; background: #fff0f4; }
.tool-icon.teal { color: #087f9b; border-color: #afeaf6; background: #eafaff; }
.tool-icon.amber { color: #8c6200; border-color: #ffdc88; background: #fff7d8; }
.tool-copy { min-width: 0; display: grid; gap: 5px; }
.tool-copy strong { font-size: 15px; font-weight: 630; }
.tool-copy small { color: var(--text-secondary); font-size: 13px; line-height: 1.5; }
.chevron { width: 17px; margin-left: auto; color: var(--text-tertiary); }
.two-column { margin-top: 20px; display: grid; grid-template-columns: 1.5fr .72fr; gap: 20px; }
.panel { padding: 30px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 1px 2px rgba(75,50,181,.025); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel h2, .panel h3 { margin: 0; font-family: "Noto Serif Georgian", serif; font-weight: 560; letter-spacing: -.015em; }
.panel h2 { font-size: 27px; }
.panel h3 { font-size: 20px; }
.mini-progress { padding: 7px 10px; border-radius: var(--radius-pill); color: var(--brand-800); background: var(--brand-100); font-size: 12px; font-weight: 650; }
.plan-list { margin: 24px 0 0; padding: 0; list-style: none; }
.plan-list li + li { border-top: 1px solid var(--border); }
.plan-list button { width: 100%; min-height: 72px; display: grid; grid-template-columns: 38px 1fr 20px; gap: 14px; align-items: center; padding: 12px 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
.step-number { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; color: var(--brand-700); background: var(--surface-subtle); font-size: 13px; font-weight: 650; }
.plan-list button > span:nth-child(2) { display: grid; gap: 4px; }
.plan-list strong { font-size: 14px; font-weight: 620; }
.plan-list small { color: var(--text-secondary); font-size: 13px; }
.plan-list svg { width: 16px; color: var(--text-tertiary); }
.principle-card { position: relative; overflow: hidden; color: var(--white); background: linear-gradient(145deg, #714ff5, #4b32b5); border-color: rgba(255,255,255,.08); }
.principle-card::after { content: ""; position: absolute; right: -58px; bottom: -72px; width: 190px; height: 190px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; }
.principle-card .eyebrow { color: #fff1a8; }
.principle-card h3 { margin: 18px 0 14px; font-size: 24px; line-height: 1.45; }
.principle-card > p:last-child { color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.7; }
.quote-mark { height: 30px; font-family: "Noto Serif Georgian", serif; font-size: 47px; line-height: 1; color: rgba(255,255,255,.18); }

.offline-pill, .session-chip { color: var(--brand-800); background: var(--brand-100); }
.safety-banner { margin-bottom: 20px; display: flex; gap: 15px; align-items: center; padding: 17px 20px; color: var(--danger-text); background: var(--danger-bg); border: 1px solid var(--border-danger); border-radius: 13px; }
.safety-banner svg { flex: 0 0 auto; }
.safety-banner strong { font-size: 14px; font-weight: 650; }
.safety-banner p { margin: 4px 0 0; color: #795c54; font-size: 13px; line-height: 1.55; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(310px, .58fr); gap: 20px; align-items: start; }
.feedback-panel { padding: 34px; box-shadow: var(--shadow-card); }
.metronome-panel { padding: 30px; }
.audio-state { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--radius-pill); color: var(--text-secondary); background: var(--surface-subtle); font-size: 12px; font-weight: 600; }
.audio-state i { width: 7px; height: 7px; border-radius: 50%; background: #9eaaa6; }
.audio-state.is-on { color: var(--brand-800); background: var(--brand-100); }
.audio-state.is-on i { background: var(--brand-500); box-shadow: 0 0 0 5px rgba(46,118,107,.1); }
.audio-console { margin: 28px 0 10px; display: grid; grid-template-columns: 190px 1fr; gap: 28px; align-items: center; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface-subtle); }
.audio-power { position: relative; min-height: 158px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; color: var(--white); background: linear-gradient(145deg, #7356f1, #4b32b5); cursor: pointer; }
.audio-power svg { z-index: 1; width: 30px; height: 30px; margin-bottom: 5px; color: #fff2a6; }
.audio-power strong, .audio-power small { z-index: 1; }
.audio-power strong { font-size: 14px; font-weight: 650; }
.audio-power small { max-width: 130px; color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.45; }
.audio-power.is-on { background: linear-gradient(145deg, #12bde0, #526ef3); }
.power-rings, .power-rings::before { position: absolute; border-radius: 50%; border: 1px solid rgba(174,221,210,.1); }
.power-rings { width: 112px; height: 112px; }
.power-rings::before { content: ""; inset: -27px; }
.level-wrap { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; color: var(--text-secondary); font-size: 13px; }
.level-meter { grid-column: 1 / -1; height: 10px; overflow: hidden; border-radius: var(--radius-pill); background: #dce4e0; }
.level-meter i { display: block; width: 1%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-500) 0 72%, #c09b5f 86%, #a85b4d 100%); transition: width .08s linear; }
.level-wrap small { grid-column: 1 / -1; min-height: 19px; color: var(--text-tertiary); font-size: 12px; line-height: 1.55; }
.level-wrap small.is-ok { color: var(--brand-700); }
.level-wrap small.is-error { color: var(--danger-text); }
.audio-test-row { margin: 16px 0 20px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.audio-test-row .quiet-button { min-height: 48px; display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.audio-test-row .quiet-button.is-testing { color: var(--brand-800); border-color: var(--border-brand); background: var(--brand-100); }
.audio-test-row p { margin: 0; color: var(--text-tertiary); font-size: 12px; line-height: 1.55; }
.control-group { padding: 24px 0; border-top: 1px solid var(--border); }
.audio-console + .control-group { border-top: 0; }
.control-label { margin-bottom: 16px; display: flex; justify-content: space-between; gap: 18px; }
.control-label label { display: grid; gap: 5px; }
.control-label strong { font-size: 14px; font-weight: 630; }
.control-label small { color: var(--text-secondary); font-size: 13px; line-height: 1.45; }
.control-label output { height: fit-content; padding: 7px 10px; border: 1px solid var(--border-brand); border-radius: 9px; color: var(--brand-800); background: var(--brand-100); font-size: 13px; font-weight: 650; white-space: nowrap; }
.range { width: 100%; height: 44px; appearance: none; border-radius: var(--radius-pill); background: linear-gradient(to right, var(--brand-500) var(--fill, 36%), #dce3df var(--fill, 36%)) center / 100% 6px no-repeat; cursor: pointer; }
.range::-webkit-slider-thumb { width: 24px; height: 24px; appearance: none; border: 5px solid var(--white); border-radius: 50%; background: var(--brand-700); box-shadow: 0 2px 10px rgba(18,47,43,.25); }
.range::-moz-range-thumb { width: 14px; height: 14px; border: 5px solid var(--white); border-radius: 50%; background: var(--brand-700); box-shadow: 0 2px 10px rgba(18,47,43,.25); }
.range-labels { margin-top: 11px; display: flex; justify-content: space-between; color: var(--text-tertiary); font-size: 12px; }
.compact-control { padding-bottom: 16px; }
.preset-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.preset-row button { min-height: 56px; display: grid; gap: 3px; padding: 9px; border: 1px solid var(--border); border-radius: var(--radius-control); color: var(--text-secondary); background: var(--surface); cursor: pointer; font-size: 13px; font-weight: 620; transition: border-color .16s ease, background .16s ease; }
.preset-row small { font-size: 11px; font-weight: 500; }
.preset-row button.is-selected { color: var(--brand-800); border-color: var(--border-brand); background: var(--brand-100); }
.technical-note { margin: 18px 0 0; color: var(--text-tertiary); font-size: 12px; line-height: 1.6; }
.technical-note.is-error { padding: 12px 14px; color: var(--danger-text); background: var(--danger-bg); border: 1px solid var(--border-danger); border-radius: var(--radius-control); }
.fine-tune { margin-top: 18px; border-top: 1px solid var(--border); }
.fine-tune > summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--brand-700); cursor: pointer; list-style: none; font-size: 13px; font-weight: 650; }
.fine-tune > summary::-webkit-details-marker { display: none; }
.fine-tune > summary::after { content: "+"; font-size: 20px; font-weight: 400; }
.fine-tune[open] > summary::after { content: "−"; }
.tempo-display { margin: 40px 0 28px; display: flex; align-items: center; justify-content: center; gap: 24px; }
.tempo-display div { min-width: 110px; display: grid; text-align: center; }
.tempo-display strong { font-family: "Noto Serif Georgian", serif; font-size: 58px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.tempo-display span { margin-top: 7px; color: var(--text-secondary); font-size: 12px; font-weight: 650; letter-spacing: .08em; }
.round-step { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); cursor: pointer; font-size: 20px; }
.beat-row { margin: 30px 0 24px; display: flex; justify-content: center; gap: 13px; }
.beat-row i { width: 9px; height: 9px; border-radius: 50%; background: #ced8d3; transition: transform .08s ease, background .08s ease; }
.beat-row i.is-accent { width: 11px; height: 11px; border: 2px solid var(--brand-700); background: transparent; }
.beat-row i.is-hit { transform: scale(1.45); border-color: var(--brand-500); background: var(--brand-500); box-shadow: 0 0 0 6px rgba(46,118,107,.1); }
.pace-choice { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--border); }
.pace-choice > span { display: block; margin-bottom: 11px; color: var(--text-secondary); font-size: 13px; font-weight: 600; }
.segmented { display: flex; padding: 4px; border-radius: 12px; background: var(--surface-subtle); }
.segmented button { flex: 1; min-height: 44px; padding: 0 10px; border: 0; border-radius: 9px; color: var(--text-secondary); background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; }
.segmented button.is-active { color: var(--brand-800); background: var(--white); box-shadow: 0 1px 5px rgba(18,47,43,.08); }
.practice-tip { margin-top: 20px; padding: 16px; border: 1px solid var(--border-warm); border-radius: 12px; background: var(--warm-bg); }
.practice-tip span { color: var(--warm-text); font-size: 12px; font-weight: 650; }
.practice-tip p { margin: 6px 0 0; color: #705f3f; font-size: 13px; line-height: 1.6; }

/* Dedicated visual metronome */
.metronome-page-head { align-items: center; }
.tempo-live-pill {
  min-width: 118px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-pill);
  color: var(--brand-800);
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 26px rgba(91,56,214,.08);
  font-size: 12px;
  font-weight: 700;
}
.tempo-live-pill i { width: 9px; height: 9px; border-radius: 50%; background: #a6a2bb; }
.tempo-live-pill.is-running { color: #08738b; border-color: #9ce7f5; background: #e9fbff; }
.tempo-live-pill.is-running i { background: var(--accent-cyan); box-shadow: 0 0 0 6px rgba(19,191,229,.12); animation: live-pulse 1s ease-in-out infinite; }
@keyframes live-pulse { 50% { transform: scale(.72); opacity: .68; } }

.metronome-workspace { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(330px, .84fr); gap: 22px; align-items: stretch; }
.metronome-workspace > * { min-width: 0; }
.metronome-stage {
  min-height: 650px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 38px 30px 28px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 28px;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.18), transparent 27%),
    linear-gradient(145deg, #8a68ff 0%, #6847f5 42%, #367eea 72%, #14bcdc 100%);
  box-shadow: 0 28px 75px rgba(91,56,214,.28);
  isolation: isolate;
}
.metronome-stage::before { content: ""; position: absolute; inset: 22px; z-index: -1; border: 1px solid rgba(255,255,255,.14); border-radius: 21px; }
.metronome-stage::after { content: ""; position: absolute; width: 390px; height: 390px; z-index: -2; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.035), 0 0 0 110px rgba(255,255,255,.025); }
.stage-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(1px); }
.stage-orb.orb-one { top: 45px; right: 42px; width: 74px; height: 74px; background: rgba(255,207,74,.88); box-shadow: 0 14px 36px rgba(90,53,22,.16); }
.stage-orb.orb-two { bottom: 86px; left: 44px; width: 45px; height: 45px; background: rgba(255,95,127,.9); box-shadow: 0 14px 30px rgba(91,26,51,.15); }
.metronome-machine { width: min(100%, 420px); display: grid; justify-items: center; }
.metronome-machine-svg { width: min(100%, 355px); height: auto; overflow: visible; }
.kid-panda { position: absolute; z-index: 3; bottom: 44px; width: 24%; max-width: 195px; height: auto; pointer-events: none; filter: drop-shadow(0 14px 22px rgba(43,24,105,.35)); }
.kid-panda-left { left: 26px; transform: rotate(-6deg); }
.kid-panda-right { right: 26px; transform: rotate(6deg); }
.metronome-stage.is-running .kid-panda-left { animation: panda-groove-left 1.1s ease-in-out infinite alternate; }
.metronome-stage.is-running .kid-panda-right { animation: panda-groove-right 1.1s .55s ease-in-out infinite alternate; }
@keyframes panda-groove-left { from { transform: rotate(-6deg) translateY(0); } to { transform: rotate(-2deg) translateY(-9px); } }
@keyframes panda-groove-right { from { transform: rotate(6deg) translateY(0); } to { transform: rotate(2deg) translateY(-9px); } }
.metronome-needle {
  transform-origin: 160px 285px;
  transform: rotate(-24deg);
  transition: transform var(--swing-seconds, 1s) cubic-bezier(.45,.02,.55,.98);
  will-change: transform;
}
.metronome-stage.is-running .metronome-needle { animation: pendulum-swing var(--swing-seconds, 1s) cubic-bezier(.45,.02,.55,.98) infinite alternate; }
@keyframes pendulum-swing {
  from { transform: rotate(-24deg); }
  to { transform: rotate(24deg); }
}
.machine-beats { min-height: 32px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-pill); background: rgba(35,23,91,.24); backdrop-filter: blur(12px); }
.machine-beats i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.35); transition: transform .1s ease, background .1s ease, box-shadow .1s ease; }
.machine-beats i.is-accent { width: 11px; height: 11px; border: 2px solid #ffdc66; background: transparent; }
.machine-beats i.is-hit { transform: scale(1.45); border-color: #fff3af; background: var(--accent-yellow); box-shadow: 0 0 0 7px rgba(255,207,74,.17), 0 0 18px rgba(255,207,74,.55); }
.visual-caption { margin: 22px 0 0; display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.84); font-size: 12px; text-align: center; }
.visual-caption span { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #fff2a0; }

.metronome-console-card { min-height: 650px; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 42px); border-radius: 28px; box-shadow: var(--shadow-card); }
.console-kicker { display: flex; align-items: center; gap: 14px; }
.console-kicker > span { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; color: var(--white); background: linear-gradient(145deg, #ff6b86, #ee3e6b); box-shadow: 0 11px 25px rgba(238,62,107,.22); }
.console-kicker > span svg { width: 24px; height: 24px; }
.console-kicker .eyebrow { margin-bottom: 4px; }
.console-kicker h2 { font-size: 25px; }
.tempo-display-large { margin: 45px 0 28px; }
.tempo-display-large div { min-width: 145px; }
.tempo-display-large strong { color: var(--brand-800); font-size: clamp(65px, 8vw, 84px); font-weight: 620; }
.tempo-display-large .round-step { width: 50px; height: 50px; color: var(--brand-700); border-color: var(--border-brand); background: var(--brand-100); box-shadow: 0 9px 22px rgba(91,56,214,.1); }
.tempo-scale { display: flex; justify-content: space-between; margin-top: 2px; color: var(--text-secondary); font-size: 11px; font-weight: 650; text-align: center; }
.tempo-scale small { color: var(--text-tertiary); font-size: 10px; font-weight: 500; }
.tempo-presets { margin: 28px 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tempo-presets button { min-width: 0; min-height: 64px; display: grid; place-content: center; gap: 3px; border: 1px solid var(--border); border-radius: 13px; color: var(--text-secondary); background: var(--surface); cursor: pointer; }
.tempo-presets button:hover { border-color: var(--border-brand); background: var(--brand-100); }
.tempo-presets button.is-active { color: var(--white); border-color: transparent; background: linear-gradient(145deg, #7658f2, #5736cf); box-shadow: 0 10px 24px rgba(91,56,214,.2); }
.tempo-presets strong { font-size: 15px; }
.tempo-presets small { overflow: hidden; font-size: 10px; text-overflow: ellipsis; }
.metronome-main-toggle { min-height: 56px; margin-top: 2px; font-size: 15px; }
.tap-card { width: 100%; min-height: 66px; margin-top: 12px; display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 11px; align-items: center; padding: 10px 13px; border: 1px solid var(--border); border-radius: 13px; color: var(--text-primary); background: #f8f7ff; cursor: pointer; text-align: left; }
.tap-card:hover { border-color: #a7e7f3; background: #effcff; }
.tap-card > span:first-child { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: #0787a3; background: #dff9ff; }
.tap-card > span:last-child { min-width: 0; display: grid; gap: 3px; }
.tap-card strong { font-size: 12px; }
.tap-card small { color: var(--text-tertiary); font-size: 10px; }
.metronome-coach { margin-top: auto; padding: 15px; border: 1px solid var(--border-warm); border-radius: 13px; background: var(--warm-bg); }
.metronome-coach span { color: var(--warm-text); font-size: 11px; font-weight: 750; }
.metronome-coach p { margin: 5px 0 0; color: #6f5a24; font-size: 12px; line-height: 1.55; }

@media (prefers-reduced-motion: reduce) {
  .metronome-needle { transition-duration: .01ms; animation: none !important; }
  .tempo-live-pill.is-running i { animation: none; }
}

/* Two age-based visual modes. The existing interface remains the calm 8+ mode. */
.theme-topbar { max-width: 1160px; margin: 0 auto 24px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.age-theme-switcher { display: inline-grid; grid-template-columns: 1fr 1.25fr; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-card); }
.age-theme-switcher button { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 0; border-radius: 11px; color: var(--text-secondary); background: transparent; cursor: pointer; font-size: 12px; font-weight: 720; white-space: nowrap; }
.age-theme-switcher button svg { width: 17px; height: 17px; }
.age-theme-switcher button[aria-pressed="true"] { color: var(--white); background: var(--brand-700); box-shadow: 0 7px 16px rgba(91,56,214,.2); }
.collection-top-button { min-height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid #f2c34b; border-radius: 15px; color: #5c4405; background: #fff3b8; cursor: pointer; font-size: 12px; font-weight: 750; box-shadow: var(--shadow-card); }
.collection-top-button b { padding: 4px 7px; border-radius: 999px; color: #4d3800; background: rgba(255,255,255,.72); font-size: 10px; }
.kids-world-menu { position: relative; }
.world-chevron { width: 15px; height: 15px; transform: rotate(90deg); transition: transform .18s ease; }
.collection-top-button[aria-expanded="true"] .world-chevron { transform: rotate(-90deg); }
.kids-world-actions { position: absolute; z-index: 60; top: calc(100% + 8px); right: 0; min-width: 220px; display: grid; gap: 4px; padding: 8px; border: 1px solid #f0d98d; border-radius: 16px; background: #fffdf4; box-shadow: 0 18px 44px rgba(96,61,10,.18); }
.kids-world-actions button { min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 0; border-radius: 11px; color: #5c4405; background: transparent; cursor: pointer; font-size: 13px; font-weight: 700; text-align: left; }
.kids-world-actions button:hover { background: #ffefad; }
.kids-world-actions button svg { width: 19px; height: 19px; flex: 0 0 auto; color: #b7830a; }
html[data-theme="calm"] .kid-only { display: none !important; }

.child-reward-card { margin-top: 20px; display: grid; grid-template-columns: 150px minmax(0,1fr) auto; align-items: center; gap: 22px; padding: 20px 24px; overflow: hidden; border: 1px solid #ecd16b; border-radius: 24px; background: linear-gradient(120deg,#fff8cf,#fff1df 60%,#e9fbf7); box-shadow: var(--shadow-card); }
.mini-sanctuary { position: relative; width: 138px; height: 114px; display: grid; place-items: end center; overflow: hidden; border-radius: 18px; background: linear-gradient(#bfeeff 0 58%,#b8e89d 58%); }
.mini-sanctuary img { width: 93px; height: 93px; object-fit: contain; }
.mini-cage-bars, .mini-cage-door, .cage-bars, .cage-door { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg,transparent 0 16px,rgba(103,78,47,.72) 16px 21px); border: 5px solid #876541; border-radius: 13px; }
.mini-cage-door { transform-origin: right center; }
.reward-kicker { display: flex; align-items: center; gap: 7px; color: #7d5c00; font-size: 11px; font-weight: 800; }
.reward-kicker svg { width: 18px; color: #e5aa00; fill: #ffd54e; }
.child-reward-copy h3 { margin: 5px 0; color: #3b2b7b; font-size: 20px; }
.child-reward-copy p { margin: 0; color: #686079; font-size: 12px; line-height: 1.55; }
.reward-summary { min-width: 145px; display: grid; justify-items: center; gap: 5px; }
.reward-summary strong { display: flex; align-items: center; gap: 6px; color: #6b4d00; font-size: 28px; }
.reward-summary strong svg { color: #d89a00; fill: #ffd34e; }
.reward-summary small { color: #756b66; font-size: 10px; }
.reward-summary button { margin-top: 5px; min-height: 40px; padding: 0 13px; border: 0; border-radius: 12px; color: #ffffff; background: #5a44c8; cursor: pointer; font-size: 11px; font-weight: 740; }

.reward-dialog { width: min(560px,calc(100vw - 28px)); text-align: center; }
.reward-dialog-shell, .collection-dialog-shell { position: relative; padding: 30px; }
.reward-scene { position: relative; height: 260px; display: grid; place-items: center; overflow: hidden; border-radius: 22px; background: linear-gradient(#c9f2ff 0 62%,#b9e89c 62%); }
.reward-glow { position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,240,121,.68); filter: blur(25px); }
.gold-star { position: absolute; z-index: 6; top: 18px; right: 28px; color: #ffd23f; font-size: 52px; line-height: 1; text-shadow: 0 4px 0 #d89500,0 10px 18px rgba(143,91,0,.25); transform: rotate(8deg) scale(.2); opacity: 0; }
.sanctuary-cage { position: relative; z-index: 2; width: 210px; height: 190px; display: grid; place-items: end center; }
.sanctuary-cage img { position: relative; z-index: 1; width: 155px; height: 155px; object-fit: contain; transform: translateX(0); }
.cage-roof { position: absolute; z-index: 4; top: -7px; left: -10px; width: 230px; height: 24px; border-radius: 50%; background: #876541; }
.cage-bars { z-index: 3; }
.cage-door { z-index: 5; transform-origin: right center; }
.reward-dialog.is-releasing .cage-door { animation: cage-open .65s .25s ease forwards; }
.reward-dialog.is-releasing .sanctuary-cage img { animation: animal-release .85s .75s cubic-bezier(.2,.8,.25,1) forwards; }
.reward-dialog.is-releasing .gold-star { animation: star-arrive .65s 1.25s cubic-bezier(.2,1.5,.4,1) forwards; }
@keyframes cage-open { to { transform: perspective(500px) rotateY(-108deg); opacity: .42; } }
@keyframes animal-release { to { transform: translateX(145px) translateY(5px) scale(1.08); } }
@keyframes star-arrive { to { opacity: 1; transform: rotate(8deg) scale(1); } }
.reward-dialog h2 { margin-top: 18px; }
.reward-dialog p:not(.eyebrow) { color: var(--text-secondary); line-height: 1.6; }

.collection-dialog { width: min(820px,calc(100vw - 28px)); }
.collection-dialog-shell > p { color: var(--text-secondary); }
.collection-progress { margin: 18px 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 14px; color: #5b4607; background: #fff4c3; }
.collection-progress span { display: flex; align-items: center; gap: 7px; }
.collection-progress svg { color: #d69600; fill: #ffd34e; }
.animal-collection-grid { margin: 0 0 22px; display: grid; grid-template-columns: repeat(5,1fr); gap: 11px; }
.animal-sticker { position: relative; min-width: 0; display: grid; gap: 5px; justify-items: center; padding: 10px 6px 8px; border: 1px solid #ded7ee; border-radius: 16px; background: #ffffff; }
.sticker-visual { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 13px; background: linear-gradient(150deg,#fff7d2,#e7fbf7); }
.sticker-visual img { width: 95%; height: 95%; object-fit: contain; }
.animal-sticker small { overflow: hidden; max-width: 100%; color: #4e4668; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.animal-sticker.is-locked img { filter: grayscale(1); opacity: .34; }
.album-bars { position: absolute; inset: 4px; border: 3px solid rgba(108,84,55,.5); border-radius: 10px; background: repeating-linear-gradient(90deg,transparent 0 16px,rgba(108,84,55,.47) 16px 19px); }
.animal-sticker.is-released { border-color: #f1cb52; box-shadow: 0 8px 20px rgba(194,145,15,.12); }
.animal-sticker.is-released::after { content: "★"; position: absolute; top: 5px; right: 7px; color: #f7bd17; font-size: 18px; text-shadow: 0 2px 0 #c38c00; }

@media (max-width: 1050px) {
  .child-reward-card { grid-template-columns: 125px minmax(0,1fr); }
  .reward-summary { grid-column: 1 / -1; grid-template-columns: auto auto 1fr; justify-items: start; align-items: center; }
  .kid-panda { width: 29%; bottom: 72px; }
}
@media (max-width: 760px) {
  .theme-topbar { margin: 0 0 17px; align-items: stretch; }
  .age-theme-switcher { flex: 1; }
  .age-theme-switcher button { min-height: 46px; padding-inline: 9px; font-size: 11px; }
  .collection-top-button { width: 52px; justify-content: center; padding: 0; }
  .collection-top-button span, .collection-top-button b { display: none; }
  html[data-theme="kids"] .mobile-header { background: rgba(255,249,240,.92); border-color: rgba(222,215,238,.9); }
  html[data-theme="kids"] .hero-card { grid-template-columns: 1fr; }
  html[data-theme="kids"] .hero-visual { display: block; min-height: 270px; padding: 0; background-position: center bottom; }
  .child-reward-card { grid-template-columns: 105px minmax(0,1fr); gap: 13px; padding: 16px; }
  .mini-sanctuary { width: 102px; height: 100px; }
  .mini-sanctuary img { width: 80px; height: 80px; }
  .child-reward-copy h3 { font-size: 16px; }
  .child-reward-copy p { font-size: 11px; }
  .reward-summary { grid-template-columns: auto 1fr; }
  .reward-summary button { grid-column: 1 / -1; width: 100%; }
  .kid-panda { width: 31%; bottom: 64px; }
  .kid-panda-left { left: -18px; }
  .kid-panda-right { right: -16px; }
  .reward-dialog-shell, .collection-dialog-shell { padding: 24px 18px calc(18px + var(--safe-bottom)); }
  .animal-collection-grid { grid-template-columns: repeat(3,1fr); gap: 8px; }
}
@media (max-width: 390px) {
  .age-theme-switcher { width: calc(100% - 58px); }
  .age-theme-switcher button span { white-space: normal; line-height: 1.15; }
  .child-reward-card { grid-template-columns: 1fr; text-align: center; }
  .mini-sanctuary { margin: auto; }
  .reward-kicker { justify-content: center; }
  .reward-summary { justify-content: center; justify-items: center; }
  .animal-collection-grid { grid-template-columns: repeat(2,1fr); }
  .kid-panda { width: 35%; }
}
@media (prefers-reduced-motion: reduce) {
  .reward-dialog.is-releasing .cage-door { transform: perspective(500px) rotateY(-108deg); opacity: .42; }
  .reward-dialog.is-releasing .sanctuary-cage img { transform: translateX(145px) translateY(5px) scale(1.08); }
  .reward-dialog.is-releasing .gold-star { opacity: 1; transform: rotate(8deg) scale(1); }
}

.session-steps { margin: -8px 0 22px; display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); }
.session-steps span { min-height: 58px; position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--text-tertiary); font-size: 12px; }
.session-steps span + span { border-left: 1px solid var(--border); }
.session-steps i { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; font-style: normal; font-size: 11px; }
.session-steps b { font-weight: 600; }
.session-steps .is-current { color: var(--brand-800); background: var(--brand-100); }
.session-steps .is-current i { color: var(--white); border-color: var(--brand-700); background: var(--brand-700); }
.breath-panel { min-height: 238px; display: grid; grid-template-columns: 230px 1fr; gap: 40px; align-items: center; background: linear-gradient(120deg, #eafaff, #f1eeff 48%, var(--surface) 78%); }
.breath-visual { width: 168px; height: 168px; position: relative; display: grid; place-items: center; justify-self: center; border-radius: 50%; background: rgba(19,191,229,.09); }
.breath-visual::before { content: ""; position: absolute; inset: 17px; border: 1px solid rgba(91,56,214,.16); border-radius: 50%; }
.breath-visual > span { position: absolute; width: 102px; height: 102px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #45d7f4, #6850e8 72%); box-shadow: 0 18px 44px rgba(91,56,214,.24); transition: transform var(--breath-duration, 1s) cubic-bezier(.35,0,.25,1); }
.breath-visual.is-inhale > span { transform: scale(1.3); }
.breath-visual.is-exhale > span { transform: scale(.82); }
.breath-visual div { z-index: 1; display: grid; gap: 4px; color: var(--white); text-align: center; }
.breath-visual strong { font-size: 13px; font-weight: 650; }
.breath-visual small { color: rgba(255,255,255,.82); font-size: 12px; }
.breath-copy h2 { margin-bottom: 11px; }
.breath-copy > p:not(.eyebrow) { max-width: 690px; margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.breath-controls { margin-top: 24px; display: flex; gap: 12px; }
.breath-controls .segmented { width: 195px; }
.practice-heading { align-items: center; }
.duration-select { display: flex; align-items: center; gap: 9px; color: var(--text-secondary); font-size: 13px; font-weight: 600; }
.duration-select select { min-height: 44px; padding: 0 34px 0 12px; border: 1px solid var(--border); border-radius: var(--radius-control); color: var(--text-primary); background: var(--surface); font-size: 13px; }
.practice-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: 20px; align-items: start; }
.exercise-panel { box-shadow: var(--shadow-card); }
.practice-tabs { display: flex; gap: 6px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.practice-tabs button { min-height: 44px; padding: 0 14px; border: 1px solid transparent; border-radius: var(--radius-control); color: var(--text-secondary); background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; }
.practice-tabs button.is-active { color: var(--brand-800); border-color: var(--border-brand); background: var(--brand-100); }
.exercise-content { min-height: 290px; padding: 32px 6px 22px; }
.exercise-kicker { color: var(--brand-700); font-size: 12px; font-weight: 650; }
.exercise-content h3 { margin: 10px 0 20px; font-size: 30px; }
.reading-text { color: #354d48; font-family: "Noto Serif Georgian", serif; font-size: 19px; line-height: 1.9; }
.reading-text mark { margin: 0 5px; padding: 4px 7px; border-radius: 6px; color: var(--warm-text); background: var(--warm-bg); font-family: "Noto Sans Georgian", sans-serif; font-size: 11px; white-space: nowrap; }
.cue-row { margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-secondary); font-size: 12px; }
.cue-row span { display: flex; align-items: center; gap: 7px; }
.cue-row i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); }
.practice-session { min-height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; border: 1px solid var(--border-brand); border-radius: 12px; background: var(--brand-100); }
.practice-session[hidden] { display: none; }
.session-time { display: grid; gap: 2px; }
.session-time strong { font-family: "Noto Serif Georgian", serif; font-size: 22px; font-weight: 560; font-variant-numeric: tabular-nums; }
.session-time span { color: var(--text-secondary); font-size: 12px; }
.stop-session { min-height: 44px; display: flex; align-items: center; gap: 7px; border: 0; color: var(--danger-text); background: transparent; cursor: pointer; font-size: 13px; font-weight: 650; }
.coach-list { margin: 26px 0; padding: 0; display: grid; gap: 24px; list-style: none; }
.coach-list li { display: grid; grid-template-columns: 34px 1fr; gap: 13px; }
.coach-list li > span { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 9px; color: var(--brand-700); background: var(--surface-subtle); font-size: 12px; font-weight: 650; }
.coach-list strong { font-size: 14px; font-weight: 630; }
.coach-list p { margin: 5px 0 0; color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
.coach-footer { display: flex; gap: 11px; padding: 15px; border: 1px solid var(--border-warm); border-radius: 11px; color: var(--warm-text); background: var(--warm-bg); }
.coach-footer svg { width: 17px; flex: 0 0 auto; }
.coach-footer p { margin: 0; font-size: 12px; line-height: 1.55; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.stat-card > span { color: var(--text-secondary); font-size: 13px; font-weight: 600; }
.stat-card strong { display: block; margin: 13px 0 6px; font-family: "Noto Serif Georgian", serif; font-size: 37px; font-weight: 560; }
.stat-card strong small { font-family: "Noto Sans Georgian", sans-serif; font-size: 12px; }
.stat-card p { margin: 0; color: var(--text-tertiary); font-size: 12px; }
.progress-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.legend { display: flex; align-items: center; gap: 7px; color: var(--text-secondary); font-size: 12px; }
.legend i { width: 8px; height: 8px; border-radius: 3px; background: var(--brand-500); }
.week-chart { height: 280px; margin-top: 28px; padding: 0 12px; display: flex; gap: 12px; align-items: flex-end; border-bottom: 1px solid var(--border); background: repeating-linear-gradient(to bottom, transparent 0, transparent 67px, rgba(217,224,220,.58) 68px); }
.chart-day { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.chart-day strong { color: var(--text-secondary); font-size: 12px; }
.chart-bar-wrap { width: min(34px, 58%); height: 212px; display: flex; align-items: flex-end; }
.chart-bar { width: 100%; min-height: 3px; border-radius: 8px 8px 2px 2px; background: linear-gradient(180deg, #26c7e6, #6847f5); transition: height .5s ease; }
.chart-day span { margin-bottom: -26px; color: var(--text-secondary); font-size: 12px; }
.history-list { margin-top: 20px; display: grid; }
.history-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 15px 0; border-top: 1px solid var(--border); }
.history-item:first-child { border-top: 0; }
.history-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 11px; color: var(--brand-700); background: var(--surface-subtle); }
.history-icon svg { width: 17px; }
.history-copy { min-width: 0; display: grid; gap: 4px; }
.history-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 620; }
.history-copy small { color: var(--text-secondary); font-size: 12px; }
.history-ratings { color: var(--text-secondary); font-size: 11px; line-height: 1.6; text-align: right; }
.empty-state { padding: 38px 12px; color: var(--text-secondary); text-align: center; }
.empty-state svg { width: 29px; height: 29px; margin-bottom: 10px; color: var(--text-tertiary); }
.empty-state strong { display: block; color: var(--text-primary); font-size: 14px; }
.empty-state p { margin: 8px 0 0; font-size: 12px; line-height: 1.6; }
.evidence-card { margin-top: 20px; display: flex; gap: 16px; padding: 22px 24px; border: 1px solid var(--border-warm); border-radius: 13px; background: var(--warm-bg); }
.evidence-card > div:first-child { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: var(--warm-text); background: rgba(255,255,255,.58); }
.evidence-card h3 { margin: 0 0 6px; font-size: 14px; }
.evidence-card p { margin: 0; color: #705f3f; font-size: 13px; line-height: 1.65; }

/* Guided communication program */
.clinical-boundary { margin-bottom: 20px; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; color: var(--brand-800); background: var(--brand-100); border: 1px solid var(--border-brand); border-radius: 13px; }
.clinical-boundary svg { flex: 0 0 auto; margin-top: 2px; }
.clinical-boundary p { margin: 0; font-size: 13px; line-height: 1.65; }
.program-summary { display: grid; grid-template-columns: 1.2fr .7fr 1fr; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); }
.program-summary article { min-height: 132px; display: flex; flex-direction: column; justify-content: center; padding: 24px; }
.program-summary article + article { border-left: 1px solid var(--border); }
.program-summary span { color: var(--text-secondary); font-size: 12px; font-weight: 600; }
.program-summary strong { margin: 10px 0 5px; font-family: "Noto Serif Georgian", serif; font-size: 20px; font-weight: 560; line-height: 1.4; }
.program-summary strong b { font-size: 31px; font-weight: 560; }
.program-summary small { color: var(--text-tertiary); font-size: 12px; line-height: 1.45; }
.program-summary .text-button { margin-top: 4px; align-self: flex-start; }
.track-heading { margin: 48px 0 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.track-heading h2 { margin: 0; font-family: "Noto Serif Georgian", serif; font-size: 27px; font-weight: 560; }
.track-heading > p { max-width: 470px; margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.65; text-align: right; }
.method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.method-card { min-width: 0; min-height: 154px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 15px; align-items: center; padding: 23px; }
.method-card:nth-child(even) { border-left: 1px solid var(--border); }
.method-card:nth-child(n+3) { border-top: 1px solid var(--border); }
.method-card.is-complete { background: linear-gradient(100deg, var(--brand-100), var(--surface) 62%); }
.method-index { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 11px; color: var(--brand-700); background: var(--surface-subtle); font-size: 12px; font-weight: 650; }
.method-card.is-complete .method-index { color: var(--white); border-color: var(--brand-700); background: var(--brand-700); }
.method-card h3 { margin: 0 0 6px; font-family: "Noto Serif Georgian", serif; font-size: 19px; font-weight: 560; }
.method-card p { margin: 0 0 8px; color: var(--text-secondary); font-size: 13px; line-height: 1.55; }
.method-card small { color: var(--text-tertiary); font-size: 11px; }
.therapy-workbench, .exposure-layout { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; align-items: start; }
.therapy-workbench > *, .mind-grid > *, .exposure-layout > *, .support-grid > * { min-width: 0; }
.workbench-intro { margin: 11px 0 20px; color: var(--text-secondary); font-size: 13px; line-height: 1.65; }
.tension-panel output { color: var(--brand-700); font-size: 13px; font-weight: 650; }
.tension-grid { margin: 22px 0; display: grid; gap: 13px; }
.tension-grid label { display: grid; grid-template-columns: 76px minmax(0,1fr) 20px; gap: 12px; align-items: center; color: var(--text-secondary); font-size: 13px; }
.tension-grid input { width: 100%; accent-color: var(--brand-700); }
.inline-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: end; }
.inline-form label, .stack-form label, .stack-label, .exposure-form label { display: grid; gap: 8px; color: var(--text-secondary); font-size: 12px; font-weight: 600; }
.inline-form input, .stack-form input, .stack-form textarea, .stack-form select, .stack-label select, .exposure-form input, .exposure-form select, .notes-field input, .notes-field select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-control); color: var(--text-primary); background: var(--surface-raised); font-size: 13px; }
.stack-form textarea { min-height: 92px; resize: vertical; }
.compact-list { margin-top: 20px; display: grid; gap: 8px; }
.empty-copy { margin: 0; padding: 13px; color: var(--text-tertiary); background: var(--surface-subtle); border-radius: 10px; font-size: 12px; line-height: 1.5; }
.compact-item { min-height: 50px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.compact-item span { min-width: 0; font-size: 13px; line-height: 1.45; }
.compact-item button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 9px; color: var(--danger-text); background: var(--danger-bg); cursor: pointer; }
.mind-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; align-items: start; }
.mind-card { min-width: 0; }
.mind-card h3 { margin-bottom: 14px; }
.stack-form { display: grid; gap: 14px; }
.saved-summary { margin: 16px 0 0; padding: 12px; color: var(--text-secondary); background: var(--surface-subtle); border-radius: 10px; font-size: 12px; line-height: 1.55; }
.mindful-button { width: 100%; margin-top: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.mindful-status { display: block; min-height: 38px; margin-top: 9px; color: var(--text-tertiary); font-size: 11px; line-height: 1.5; }
.mind-card blockquote { min-height: 126px; margin: 16px 0; padding: 18px; border-left: 2px solid var(--brand-500); color: #354d48; background: var(--surface-subtle); font-family: "Noto Serif Georgian", serif; font-size: 15px; line-height: 1.75; }
.exposure-layout { grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); }
.exposure-form { margin: 22px 0; display: grid; grid-template-columns: minmax(0,1fr) 135px auto; gap: 10px; align-items: end; }
.exposure-list { display: grid; gap: 9px; }
.exposure-item { min-height: 64px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 11px; }
.exposure-item.is-done { background: var(--brand-100); border-color: var(--border-brand); }
.difficulty-badge { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--warm-text); background: var(--warm-bg); font-size: 12px; font-weight: 700; }
.exposure-copy { min-width: 0; display: grid; gap: 4px; }
.exposure-copy strong { font-size: 13px; }
.exposure-copy small { color: var(--text-tertiary); font-size: 11px; }
.exposure-actions { display: flex; gap: 5px; }
.exposure-actions button { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 9px; cursor: pointer; }
.exposure-actions .complete-exposure { color: var(--brand-800); background: var(--brand-100); }
.exposure-actions .remove-exposure { color: var(--danger-text); background: var(--danger-bg); }
.scenario-buttons { margin: 20px 0; display: grid; gap: 8px; }
.scenario-buttons button { min-height: 62px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 11px; color: var(--text-primary); background: var(--surface); cursor: pointer; text-align: left; }
.scenario-buttons button:hover, .scenario-buttons button.is-active { border-color: var(--border-brand); background: var(--brand-100); }
.scenario-buttons button > svg { color: var(--brand-700); flex: 0 0 auto; }
.scenario-buttons button span { display: grid; gap: 4px; }
.scenario-buttons strong { font-size: 13px; }
.scenario-buttons small { color: var(--text-secondary); font-size: 11px; }
.scenario-prompt { min-height: 126px; padding: 17px; border-radius: 12px; color: var(--white); background: var(--surface-brand); }
.scenario-prompt strong { font-size: 14px; }
.scenario-prompt p { margin: 9px 0 0; color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.65; }
.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; align-items: start; }
.maintenance-checks { margin: 20px 0; display: grid; gap: 9px; }
.maintenance-checks label { min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; color: var(--text-secondary); font-size: 13px; }
.maintenance-checks input { width: 20px; height: 20px; accent-color: var(--brand-700); }
.guidance-list { margin: 18px 0 20px; padding-left: 20px; color: var(--text-secondary); }
.guidance-list li { margin-bottom: 9px; font-size: 13px; line-height: 1.55; }
.export-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.export-actions button { display: inline-flex; align-items: center; gap: 8px; }
.export-actions .danger-link { width: 100%; margin-top: 4px; color: var(--danger-text); }
.parent-panel > p:last-of-type { color: var(--text-secondary); font-size: 13px; line-height: 1.65; }
.parent-panel details { margin: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.parent-panel summary { min-height: 48px; display: flex; align-items: center; color: var(--brand-700); cursor: pointer; font-size: 13px; font-weight: 650; }
.impact-panel { margin-bottom: 20px; }
.impact-bars { margin-top: 24px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.impact-bars > div { min-width: 0; display: grid; gap: 9px; }
.impact-bars span { color: var(--text-secondary); font-size: 11px; }
.impact-bars i { height: 7px; overflow: hidden; border-radius: 999px; background: #dce3df; }
.impact-bars b { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--brand-500); transition: width .35s ease; }
.impact-bars strong { color: var(--brand-800); font-size: 13px; }
.method-dialog { width: min(610px, calc(100vw - 28px)); }
.method-steps { margin: 22px 0; display: grid; gap: 10px; }
.method-step { display: grid; grid-template-columns: 29px 1fr; gap: 11px; align-items: start; color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
.method-step i { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: var(--brand-800); background: var(--brand-100); font-style: normal; font-size: 11px; font-weight: 700; }
.method-sample { padding: 17px; border: 1px solid var(--border-warm); border-radius: 11px; background: var(--warm-bg); }
.method-sample span { color: var(--warm-text); font-size: 11px; font-weight: 650; }
.method-sample p { margin: 8px 0 0; font-family: "Noto Serif Georgian", serif; font-size: 18px; line-height: 1.7; }
.method-levels { margin: 16px 0; display: grid; grid-template-columns: repeat(3,1fr); padding: 4px; border-radius: 11px; background: var(--surface-subtle); }
.method-levels button { min-height: 44px; border: 0; border-radius: 8px; color: var(--text-secondary); background: transparent; cursor: pointer; font-size: 12px; font-weight: 600; }
.method-levels button.is-active { color: var(--brand-800); background: var(--white); box-shadow: 0 1px 5px rgba(18,47,43,.08); }

.app-dialog { width: min(500px, calc(100vw - 28px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0; overflow: auto; border: 1px solid rgba(255,255,255,.5); border-radius: 20px; color: var(--text-primary); background: var(--surface); box-shadow: var(--shadow-dialog); }
.app-dialog::backdrop { background: rgba(10,31,28,.65); backdrop-filter: blur(7px); }
.app-dialog form { padding: 32px; }
.dialog-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--border-brand); border-radius: 13px; color: var(--brand-700); background: var(--brand-100); }
.dialog-icon.success { color: var(--white); border-color: var(--brand-700); background: var(--brand-700); }
.app-dialog h2 { margin: 21px 0 11px; font-family: "Noto Serif Georgian", serif; font-size: 27px; font-weight: 560; letter-spacing: -.015em; }
.app-dialog > form > p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.account-dialog { width: min(560px, calc(100vw - 28px)); }
.account-dialog-shell { position: relative; padding: 32px; }
.dialog-close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--text-secondary); background: var(--surface-subtle); cursor: pointer; font-size: 22px; }
.account-icon { color: #087f9b; border-color: #afeaf6; background: #eafaff; }
.account-dialog .eyebrow { margin-top: 20px; }
.account-dialog h2 { overflow-wrap: anywhere; }
.account-dialog #accountSignedOut > p:not(.eyebrow), .account-dialog #accountSignedIn > p { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.65; }
.account-auth-form { margin-top: 22px; display: grid; gap: 13px; }
.account-auth-form label { display: grid; gap: 8px; color: var(--text-secondary); font-size: 12px; font-weight: 650; }
.account-auth-form input { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid var(--border); border-radius: var(--radius-control); color: var(--text-primary); background: var(--surface-raised); }
.account-privacy { margin-top: 16px !important; display: flex; gap: 9px; padding: 12px; border-radius: 11px; background: #effcff; }
.account-privacy svg { width: 17px; flex: 0 0 auto; color: #0787a3; }
.account-signout { margin-top: 10px; }
.premium-plan-card { margin-top: 24px; padding: 22px; border: 1px solid #d8d0ff; border-radius: 17px; background: linear-gradient(145deg, #f4f1ff, #fff9e5); }
.premium-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: var(--radius-pill); color: #714d00; background: #ffe890; font-size: 11px; font-weight: 750; }
.premium-badge svg { width: 15px; height: 15px; }
.premium-price { margin: 15px 0 13px; display: flex; align-items: baseline; gap: 6px; }
.premium-price strong { color: var(--brand-800); font-family: "Noto Serif Georgian", serif; font-size: 34px; }
.premium-price small { color: var(--text-tertiary); font-size: 11px; }
.premium-plan-card ul { margin: 0 0 17px; padding-left: 19px; color: var(--text-secondary); font-size: 12px; line-height: 1.8; }
.premium-plan-card > small { display: block; margin-top: 10px; color: var(--text-tertiary); font-size: 10px; line-height: 1.5; }
.mobile-header-actions { display: flex; gap: 3px; }
.check-row { min-height: 56px; margin-top: 24px; display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--border); border-radius: 11px; cursor: pointer; font-size: 13px; line-height: 1.45; }
.check-row input { position: absolute; opacity: 0; }
.check-row span { width: 23px; height: 23px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 6px; }
.check-row span svg { width: 14px; opacity: 0; }
.check-row input:checked + span { color: var(--white); border-color: var(--brand-700); background: var(--brand-700); }
.check-row input:checked + span svg { opacity: 1; }
.dialog-actions { position: sticky; bottom: -1px; margin-top: 25px; display: flex; justify-content: flex-end; gap: 10px; padding-top: 8px; background: linear-gradient(transparent, var(--surface) 26%); }
.rating-block { margin-top: 23px; }
.rating-block > div { margin-bottom: 13px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 600; }
.rating-block output { color: var(--brand-700); }
.notes-field { margin-top: 23px; display: grid; gap: 9px; color: var(--text-secondary); font-size: 13px; font-weight: 600; }
.notes-field textarea { width: 100%; resize: vertical; padding: 13px; border: 1px solid var(--border); border-radius: 11px; color: var(--text-primary); background: var(--surface-raised); font-size: 14px; line-height: 1.55; }
.info-dialog ul { margin: 21px 0 0; padding-left: 20px; color: var(--text-secondary); }
.info-dialog li { margin-bottom: 12px; padding-left: 4px; font-size: 13px; line-height: 1.65; }
.info-dialog strong { color: var(--text-primary); }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 26px; max-width: calc(100vw - 30px); padding: 12px 17px; border-radius: 11px; color: var(--white); background: var(--surface-brand); box-shadow: 0 14px 34px rgba(18,47,43,.24); font-size: 13px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
body.has-active-dock .toast { bottom: 112px; }

.active-dock { position: fixed; z-index: 55; right: 26px; bottom: 26px; min-width: 360px; min-height: 68px; display: grid; grid-template-columns: 42px 1fr auto 44px; gap: 12px; align-items: center; padding: 10px 11px 10px 13px; color: var(--white); background: rgba(18,47,43,.96); border: 1px solid rgba(255,255,255,.1); border-radius: 17px; box-shadow: 0 20px 54px rgba(18,47,43,.26); backdrop-filter: blur(18px); }
.dock-signal { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; gap: 3px; border-radius: 12px; background: rgba(255,255,255,.07); }
.dock-signal i { width: 2px; border-radius: 3px; background: #a9d8cd; animation: dock-wave 1.2s ease-in-out infinite; }
.dock-signal i:nth-child(1) { height: 10px; }
.dock-signal i:nth-child(2) { height: 20px; animation-delay: -.22s; }
.dock-signal i:nth-child(3) { height: 14px; animation-delay: -.42s; }
@keyframes dock-wave { 50% { transform: scaleY(.6); opacity: .65; } }
.dock-copy { min-width: 0; display: grid; gap: 3px; }
.dock-copy strong { font-size: 13px; font-weight: 650; }
.dock-copy small { overflow: hidden; color: rgba(255,255,255,.68); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.dock-return { min-height: 44px; padding: 0 13px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; color: var(--white); background: rgba(255,255,255,.07); cursor: pointer; font-size: 12px; font-weight: 600; }
.dock-stop { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 11px; color: #f2c5b9; background: rgba(168,91,77,.18); cursor: pointer; }

body.practice-active { overflow: hidden; }
body.practice-active .sidebar, body.practice-active .mobile-header, body.practice-active .bottom-nav { display: none !important; }
body.practice-active .main-content { height: 100vh; height: 100dvh; margin-left: 0; overflow: auto; padding: 34px 28px 120px; }
body.practice-active .page-head, body.practice-active .session-steps, body.practice-active .breath-panel, body.practice-active .practice-heading, body.practice-active .coaching-panel { display: none; }
body.practice-active .practice-layout { max-width: 920px; margin: 5vh auto 0; display: block; }
body.practice-active .exercise-panel { padding: clamp(28px, 5vw, 58px); border-radius: var(--radius-feature); }
body.practice-active .exercise-content { min-height: 45vh; }
body.practice-active .reading-text { font-size: clamp(20px, 2.3vw, 28px); line-height: 2; }
body.practice-active .practice-session { display: none; }
body.practice-active .active-dock { right: 50%; transform: translateX(50%); }

@media (min-width: 761px) and (max-width: 940px) {
  .main-content { padding-inline: 24px; }
  .hero-card { min-height: 0; grid-template-columns: 1fr; }
  .hero-copy { padding: 40px; }
  .hero-visual { display: none; }
}

@media (max-width: 1050px) {
  :root { --sidebar-width: 210px; }
  .main-content { padding-inline: 30px; }
  .brand small { display: none; }
  .studio-grid, .practice-layout, .progress-layout { grid-template-columns: minmax(0, 1fr); }
  .metronome-workspace { grid-template-columns: 1fr; }
  .metronome-stage { min-height: 570px; }
  .metronome-console-card { min-height: 0; }
  .studio-grid > *, .practice-layout > *, .progress-layout > * { min-width: 0; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card + .tool-card { border-top: 1px solid var(--border); border-left: 0; }
  .tool-card { min-height: 90px; }
  .two-column { grid-template-columns: 1fr; }
  .principle-card { min-height: 245px; }
  .program-summary { grid-template-columns: 1fr 1fr; }
  .program-summary article:last-child { grid-column: 1 / -1; border-top: 1px solid var(--border); }
  .program-summary article:nth-child(3) { border-left: 0; }
  .mind-grid { grid-template-columns: 1fr 1fr; }
  .mind-card:last-child { grid-column: 1 / -1; }
  .impact-bars { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  :root { --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px); }
  body { background: radial-gradient(circle at 90% 5%, rgba(19,191,229,.13), transparent 20rem), var(--canvas); }
  .sidebar { display: none; }
  .main-content { margin: 0; padding: calc(var(--header-mobile-height) + var(--safe-top) + 20px) 16px calc(var(--bottom-nav-height) + var(--safe-bottom) + 28px); }
  .mobile-header { position: fixed; z-index: 40; inset: 0 0 auto; min-height: calc(var(--header-mobile-height) + var(--safe-top)); display: flex; justify-content: space-between; align-items: flex-end; padding: var(--safe-top) 17px 10px; color: var(--text-primary); background: rgba(250,249,255,.91); border-bottom: 1px solid rgba(221,218,250,.88); backdrop-filter: blur(18px); }
  .brand.compact { align-self: flex-end; padding: 0; gap: 9px; }
  .brand.compact .brand-mark { width: 38px; height: 38px; color: var(--white); background: var(--surface-brand); }
  .brand.compact strong { font-size: 16px; }
  .bottom-nav { position: fixed; z-index: 40; inset: auto 0 0; min-height: calc(var(--bottom-nav-height) + var(--safe-bottom)); display: grid; grid-template-columns: repeat(7, 1fr); padding: 8px 3px var(--safe-bottom); color: var(--text-secondary); background: rgba(255,255,255,.95); border-top: 1px solid var(--border); box-shadow: 0 -12px 34px rgba(91,56,214,.08); backdrop-filter: blur(18px); }
  .bottom-nav .nav-item { min-width: 0; min-height: 55px; justify-content: center; flex-direction: column; gap: 4px; padding: 4px 1px; color: var(--text-secondary); font-size: 10px; text-align: center; }
  .bottom-nav .nav-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bottom-nav .nav-item svg { width: 20px; height: 20px; }
  .bottom-nav .nav-item.is-active { color: var(--brand-700); background: transparent; }
  .bottom-nav .nav-item.is-active::before { inset: auto auto -8px; width: 25px; height: 2px; border-radius: 3px 3px 0 0; }
  .page-head { margin-bottom: 26px; gap: 12px; }
  .page-head h1 { font-size: 35px; }
  .page-head p:not(.eyebrow) { font-size: 14px; line-height: 1.7; }
  .page-head > span, .page-head > button { align-self: flex-start; }
  .desktop-only { display: none; }
  .hero-card { min-height: 0; grid-template-columns: 1fr; }
  .hero-copy { padding: 34px 25px; }
  .hero-copy h2 { margin-top: 17px; font-size: 36px; }
  .hero-copy > p { font-size: 14px; }
  .hero-metrics { margin: 20px 0 22px; }
  .hero-visual { display: none; }
  .signature-art { max-width: 360px; padding-top: 4px; }
  .signature-label { display: none; }
  .section-title { margin-top: 38px; }
  .section-title h2 { font-size: 23px; }
  .tool-card { min-height: 88px; padding: 16px; }
  .premium-strip { grid-template-columns: 44px minmax(0,1fr) auto; gap: 12px; padding: 16px; }
  .premium-strip-icon { width: 44px; height: 44px; }
  .premium-strip-price { align-items: end; }
  .premium-strip-button { grid-column: 1 / -1; width: 100%; }
  .tool-icon { width: 42px; height: 42px; }
  .panel { padding: 22px; }
  .studio-grid, .practice-layout, .progress-layout, .two-column { gap: 15px; }
  .safety-banner { align-items: flex-start; padding: 15px 16px; }
  .audio-console { grid-template-columns: 1fr; gap: 17px; padding: 17px; }
  .audio-power { min-height: 132px; }
  .audio-test-row { grid-template-columns: 1fr; }
  .audio-test-row .quiet-button { width: 100%; justify-content: center; }
  .preset-row { grid-template-columns: repeat(3, 1fr); }
  .preset-row button { min-height: 62px; }
  .control-group { padding: 22px 0; }
  .control-label { align-items: flex-start; }
  .metronome-panel { padding: 24px 22px; }
  .metronome-page-head { display: flex; }
  .metronome-workspace { gap: 15px; }
  .metronome-stage { min-height: 520px; padding: 28px 18px 22px; border-radius: 22px; }
  .metronome-stage::before { inset: 14px; }
  .metronome-stage::after { width: 300px; height: 300px; }
  .metronome-machine-svg { max-height: 390px; }
  .stage-orb.orb-one { top: 35px; right: 30px; width: 56px; height: 56px; }
  .stage-orb.orb-two { bottom: 70px; left: 30px; width: 36px; height: 36px; }
  .metronome-console-card { padding: 25px 20px; border-radius: 22px; }
  .tempo-display-large { margin: 35px 0 23px; }
  .session-steps { overflow-x: auto; grid-template-columns: repeat(4, minmax(105px, 1fr)); }
  .session-steps span { min-height: 54px; }
  .breath-panel { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .breath-visual { width: 154px; height: 154px; }
  .breath-controls { flex-direction: column; }
  .breath-controls .segmented { width: 100%; }
  .practice-heading { align-items: flex-end; gap: 12px; }
  .duration-select { display: grid; }
  .practice-tabs { overflow-x: auto; scrollbar-width: thin; }
  .practice-tabs button { flex: 0 0 auto; white-space: nowrap; }
  .exercise-content { min-height: 320px; padding-inline: 0; }
  .reading-text { font-size: 18px; line-height: 1.9; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card:first-child { grid-column: 1 / -1; }
  .program-summary, .method-grid, .therapy-workbench, .mind-grid, .exposure-layout, .support-grid { grid-template-columns: 1fr; }
  .program-summary article + article { border-top: 1px solid var(--border); border-left: 0; }
  .program-summary article:last-child, .mind-card:last-child { grid-column: auto; }
  .track-heading { align-items: flex-start; flex-direction: column; }
  .track-heading > p { text-align: left; }
  .method-card { grid-template-columns: 40px minmax(0,1fr); }
  .method-card:nth-child(even) { border-left: 0; }
  .method-card:nth-child(n+2) { border-top: 1px solid var(--border); }
  .method-card .quiet-button { grid-column: 1 / -1; width: 100%; }
  .mind-grid, .support-grid { gap: 15px; }
  .exposure-form { grid-template-columns: 1fr; }
  .impact-bars { grid-template-columns: 1fr 1fr; }
  .inline-form { grid-template-columns: 1fr; }
  .week-chart { gap: 6px; }
  .chart-bar-wrap { width: 24px; }
  .app-dialog { width: 100%; max-width: none; max-height: calc(92vh - var(--safe-top)); max-height: calc(92dvh - var(--safe-top)); margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .app-dialog form { padding: 25px 20px calc(20px + var(--safe-bottom)); }
  .account-dialog-shell { padding: 25px 20px calc(20px + var(--safe-bottom)); }
  .dialog-actions { padding-bottom: 2px; flex-direction: column-reverse; }
  .dialog-actions > * { width: 100%; }
  .active-dock { right: 10px; bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 10px); left: 10px; min-width: 0; grid-template-columns: 40px minmax(0,1fr) auto 44px; padding: 9px 9px 9px 11px; }
  .dock-return { padding-inline: 10px; }
  .toast { bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 18px); }
  body.has-active-dock .toast { bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 94px); }
  body.practice-active .main-content { padding: calc(18px + var(--safe-top)) 12px 108px; }
  body.practice-active .practice-layout { margin: 0 auto; }
  body.practice-active .exercise-panel { min-height: calc(100vh - 126px - var(--safe-top)); min-height: calc(100dvh - 126px - var(--safe-top)); padding: 25px 20px; border-radius: 18px; }
  body.practice-active .practice-tabs, body.practice-active .cue-row { display: none; }
  body.practice-active .exercise-content { min-height: 58vh; padding-top: 8px; }
  body.practice-active .reading-text { font-size: 20px; }
  body.practice-active .active-dock { right: 10px; bottom: calc(10px + var(--safe-bottom)); left: 10px; transform: none; }
  body.practice-active.has-active-dock .toast { bottom: calc(92px + var(--safe-bottom)); }
}

@media (max-width: 390px) {
  .main-content { padding-inline: 13px; }
  .hero-copy h2 { font-size: 32px; }
  .hero-copy { padding-inline: 21px; }
  .hero-visual { padding-inline: 21px; }
  .page-head { display: block; }
  .page-head > span, .page-head > button { margin-top: 14px; }
  .preset-row { grid-template-columns: 1fr; }
  .metronome-panel .panel-head { flex-wrap: wrap; gap: 12px; }
  .metronome-panel .panel-head > div { min-width: 0; }
  .metronome-panel #tapTempo { max-width: 100%; white-space: normal; }
  .metronome-page-head { display: block; }
  .metronome-stage { min-height: 475px; padding-inline: 14px; }
  .metronome-machine { width: 100%; min-width: 0; }
  .metronome-machine-svg { width: 100%; max-width: 290px; }
  .visual-caption { max-width: 250px; }
  .tempo-display-large { gap: 14px; }
  .tempo-display-large div { min-width: 110px; }
  .tempo-display-large .round-step { width: 44px; height: 44px; }
  .tempo-presets { grid-template-columns: repeat(2, 1fr); }
  .bottom-nav .nav-item { font-size: 9px; }
  .session-steps { grid-template-columns: repeat(4, minmax(96px, 1fr)); }
  .dock-signal { display: none; }
  .active-dock { grid-template-columns: minmax(0,1fr) auto 44px; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-card:first-child { grid-column: auto; }
  .impact-bars { grid-template-columns: 1fr; }
}

@media (max-height: 540px) and (orientation: landscape) {
  .main-content { padding-top: calc(var(--header-mobile-height) + var(--safe-top) + 12px); }
  .hero-card { min-height: 330px; grid-template-columns: 1.2fr .8fr; }
  .hero-visual { min-height: 240px; }
  .app-dialog { max-height: calc(100vh - 8px); max-height: calc(100dvh - 8px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .signature-dot, .dock-signal i { animation: none !important; }
}

/* Clean age-mode system: vivid kids home, calm working views, original 8+ mode. */
.kid-dinosaur { display: none; }

html[data-theme="kids"] {
  --radius-control: 14px;
  --radius-card: 20px;
  --radius-feature: 28px;
}

html[data-theme="kids"] body {
  background:
    radial-gradient(circle at 88% 4%, rgba(72,207,255,.12), transparent 25rem),
    radial-gradient(circle at 18% 92%, rgba(122,91,240,.08), transparent 28rem),
    #f8f9ff;
}

html[data-theme="kids"] .sidebar {
  color: #352777;
  border-right-color: #ded8f7;
  background: linear-gradient(180deg, #f3efff 0%, #edf8ff 100%);
  box-shadow: 10px 0 32px rgba(60,43,129,.07);
}

html[data-theme="kids"] .brand { color: #352777; }
html[data-theme="kids"] .brand small,
html[data-theme="kids"] .account-entry small,
html[data-theme="kids"] .privacy-note small { color: #70698c; }
html[data-theme="kids"] .brand-mark {
  color: #fff;
  border-color: rgba(255,255,255,.75);
  background: linear-gradient(145deg, #17c9ed, #6c42ed);
  box-shadow: 0 8px 18px rgba(81,55,208,.22);
}
html[data-theme="kids"] .nav-item { color: #584b92; }
html[data-theme="kids"] .nav-item:hover { color: #372775; background: rgba(255,255,255,.74); }
html[data-theme="kids"] .nav-item.is-active {
  color: #4327a7;
  background: #fff;
  box-shadow: 0 9px 20px rgba(73,48,164,.1);
}
html[data-theme="kids"] .nav-item.is-active::before { background: #7d55f4; box-shadow: none; }
html[data-theme="kids"] .account-entry {
  color: #403280;
  border-color: #d9d1f4;
  background: rgba(255,255,255,.72);
}
html[data-theme="kids"] .account-entry > svg { color: #6d49dd; }
html[data-theme="kids"] .privacy-note { border-color: #ddd8f1; }
html[data-theme="kids"] .privacy-note strong { color: #44377e; }
html[data-theme="kids"] .privacy-dot { background: #35c988; box-shadow: 0 0 0 5px rgba(53,201,136,.12); }

html[data-theme="kids"] .age-theme-switcher {
  border-color: #d9d3f4;
  background: rgba(255,255,255,.94);
}
html[data-theme="kids"] .age-theme-switcher button[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(135deg, #6d49e8, #4b25bc);
}
html[data-theme="kids"] .collection-top-button {
  color: #593e00;
  border-color: #f0c137;
  background: linear-gradient(135deg, #fff2a3, #ffd640);
}

/* The vivid palette is intentionally scoped to the under-8 home view. */
html[data-theme="kids"] body:has(#view-today.is-visible) {
  background: #fff;
}
html[data-theme="kids"] body:has(#view-today.is-visible) .sidebar {
  color: #fff;
  border-right-color: rgba(255,255,255,.22);
  background:
    radial-gradient(circle at 15% 2%, rgba(50,219,255,.45), transparent 28%),
    radial-gradient(circle at 100% 74%, rgba(255,70,180,.36), transparent 38%),
    linear-gradient(165deg, #6e36ed 0%, #5122c7 48%, #342091 100%);
  box-shadow: 14px 0 34px rgba(65,32,153,.2);
}
html[data-theme="kids"] body:has(#view-today.is-visible) .brand { color: #fff; }
html[data-theme="kids"] body:has(#view-today.is-visible) .brand strong {
  color: #fff86d;
  text-shadow: 0 2px 0 rgba(48,19,125,.35);
}
html[data-theme="kids"] body:has(#view-today.is-visible) .brand small,
html[data-theme="kids"] body:has(#view-today.is-visible) .account-entry small,
html[data-theme="kids"] body:has(#view-today.is-visible) .privacy-note small { color: rgba(255,255,255,.72); }
html[data-theme="kids"] body:has(#view-today.is-visible) .brand-mark {
  border: 2px solid rgba(255,255,255,.7);
  background: linear-gradient(145deg, #12d9f0, #1676f1 48%, #7b37ed);
  box-shadow: 0 8px 0 rgba(41,15,116,.28), 0 13px 24px rgba(25,9,85,.28);
}
html[data-theme="kids"] body:has(#view-today.is-visible) .brand-mark svg { color: #fff76a; }
html[data-theme="kids"] body:has(#view-today.is-visible) .nav-item {
  min-height: 50px;
  color: rgba(255,255,255,.9);
  font-weight: 700;
}
html[data-theme="kids"] body:has(#view-today.is-visible) .nav-item svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg,#9b59ff,#6630df);
  filter: drop-shadow(0 4px 5px rgba(35,15,94,.22));
}
html[data-theme="kids"] body:has(#view-today.is-visible) .nav-item:nth-child(1) svg { background: linear-gradient(145deg,#ff79b5,#f22970); }
html[data-theme="kids"] body:has(#view-today.is-visible) .nav-item:nth-child(2) svg { background: linear-gradient(145deg,#ffcf34,#ff8b00); }
html[data-theme="kids"] body:has(#view-today.is-visible) .nav-item:nth-child(3) svg { background: linear-gradient(145deg,#9ce934,#43c91d); }
html[data-theme="kids"] body:has(#view-today.is-visible) .nav-item:nth-child(4) svg { background: linear-gradient(145deg,#23d8f4,#008de8); }
html[data-theme="kids"] body:has(#view-today.is-visible) .nav-item:nth-child(5) svg { background: linear-gradient(145deg,#bf72ff,#7540dc); }
html[data-theme="kids"] body:has(#view-today.is-visible) .nav-item:nth-child(6) svg { background: linear-gradient(145deg,#ffad31,#ff6717); }
html[data-theme="kids"] body:has(#view-today.is-visible) .nav-item:hover { color: #fff; background: rgba(255,255,255,.1); }
html[data-theme="kids"] body:has(#view-today.is-visible) .nav-item.is-active {
  color: #fff;
  background: linear-gradient(135deg, #ff59a3, #9c43f3);
  box-shadow: 0 6px 0 rgba(46,16,128,.3), inset 0 0 0 2px rgba(255,255,255,.25);
}
html[data-theme="kids"] body:has(#view-today.is-visible) .nav-item.is-active::before { display: none; }
html[data-theme="kids"] body:has(#view-today.is-visible) .account-entry {
  color: #fff;
  border-color: rgba(255,255,255,.28);
  background: linear-gradient(135deg, rgba(29,211,227,.72), rgba(50,149,205,.55));
  box-shadow: 0 8px 0 rgba(34,20,113,.2);
}
html[data-theme="kids"] body:has(#view-today.is-visible) .account-entry > svg { color: #fff76a; }
html[data-theme="kids"] body:has(#view-today.is-visible) .privacy-note { border-color: rgba(255,255,255,.16); }
html[data-theme="kids"] body:has(#view-today.is-visible) .privacy-note strong { color: #fff; }

html[data-theme="kids"] #view-today { max-width: 1320px; }
html[data-theme="kids"] #view-today .page-head {
  align-items: center;
  margin-bottom: 14px;
}
html[data-theme="kids"] #view-today .page-head > div { padding-left: 2px; }
html[data-theme="kids"] #view-today .page-head .eyebrow { display: none; }
html[data-theme="kids"] #view-today .page-head h1 {
  margin: 0 0 5px;
  color: #281079;
  font-family: "Noto Sans Georgian", sans-serif;
  font-size: clamp(35px,3.2vw,50px);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -.045em;
  text-shadow: 0 3px 0 #d7ccff;
}
html[data-theme="kids"] #view-today .page-head h1::before {
  content: "★";
  margin-right: 12px;
  color: #ffc400;
  text-shadow: 0 3px 0 #e28a00;
}
html[data-theme="kids"] #view-today .page-head p:not(.eyebrow) {
  max-width: 760px;
  color: #53516e;
  font-size: 13px;
  line-height: 1.45;
}
html[data-theme="kids"] #view-today .page-head .text-button {
  min-height: 43px;
  padding: 0 16px;
  border: 1px solid #b8dff4;
  border-radius: 999px;
  color: #1763b9;
  background: #fff;
  box-shadow: 0 7px 16px rgba(48,65,138,.12);
}

html[data-theme="kids"] #view-today .hero-card {
  min-height: 392px;
  grid-template-columns: minmax(0,1.05fr) minmax(360px,.95fr);
  color: #fff;
  border: 4px solid #e9fbff;
  border-radius: 30px;
  background:
    radial-gradient(circle at 73% 12%, rgba(255,255,255,.75) 0 1.1%, transparent 1.3%),
    radial-gradient(circle at 91% 32%, rgba(255,245,112,.95) 0 .9%, transparent 1.2%),
    radial-gradient(circle at 58% 64%, rgba(255,255,255,.55) 0 .9%, transparent 1.2%),
    linear-gradient(126deg, #079fe9 0%, #16c9ef 50%, #3edbf3 100%);
  box-shadow: 0 7px 0 #f3b913, 0 22px 42px rgba(17,111,195,.23), inset 0 0 0 2px rgba(0,110,205,.18);
}
html[data-theme="kids"] #view-today .hero-card::before {
  background:
    radial-gradient(circle at 75% 10%, rgba(255,255,255,.42), transparent 20%),
    radial-gradient(circle at 98% 74%, rgba(255,255,255,.6), transparent 17%),
    linear-gradient(0deg, #ffd21f 0 13%, transparent 13%);
}
html[data-theme="kids"] #view-today .hero-copy {
  align-self: center;
  padding: 34px 20px 44px 42px;
}
html[data-theme="kids"] #view-today .status-pill {
  color: #765000;
  border: 2px solid rgba(255,255,255,.75);
  background: linear-gradient(135deg,#fff7be,#ffd83c);
  box-shadow: 0 5px 0 rgba(211,139,0,.28);
}
html[data-theme="kids"] #view-today .status-pill span { background: #ff5c9a; }
html[data-theme="kids"] #view-today .hero-copy h2 {
  max-width: 620px;
  margin: 16px 0 10px;
  color: #fff;
  font-family: "Noto Sans Georgian", sans-serif;
  font-size: clamp(34px,3.35vw,53px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.05em;
  text-shadow: 0 5px 0 #3057c4, 0 9px 16px rgba(22,35,139,.25);
}
html[data-theme="kids"] #view-today .hero-copy h2::first-line { color: #fff; }
html[data-theme="kids"] #view-today .hero-copy > p {
  max-width: 535px;
  color: rgba(13,39,104,.86);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}
html[data-theme="kids"] #view-today .hero-metrics {
  margin: 16px 0 18px;
  color: #1556a5;
}
html[data-theme="kids"] #view-today .hero-metrics span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 4px 0 rgba(0,104,180,.12);
}
html[data-theme="kids"] #view-today .hero-metrics strong { color: #1556a5; }
html[data-theme="kids"] #view-today .hero-metrics i { display: none; }
html[data-theme="kids"] #view-today .hero-copy .primary-button {
  min-height: 57px;
  padding: 0 28px;
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg,#ff7197,#f51f62);
  box-shadow: 0 6px 0 #b70d42, 0 12px 24px rgba(128,12,69,.27);
  font-size: 15px;
  font-weight: 800;
}
html[data-theme="kids"] #view-today .hero-copy .primary-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg,#ff86a6,#ff2f6d);
}
html[data-theme="kids"] #view-today .hero-visual {
  min-height: 384px;
  overflow: visible;
  padding: 0;
}
html[data-theme="kids"] #view-today .signature-art {
  width: 122%;
  max-width: none;
  position: absolute;
  z-index: 1;
  left: -23%;
  top: 36%;
  opacity: .82;
}
html[data-theme="kids"] #view-today .signature-label,
html[data-theme="kids"] #view-today .signature-dot,
html[data-theme="kids"] #view-today .signature-halo { display: none; }
html[data-theme="kids"] #view-today .signature-line {
  stroke: #fff;
  stroke-width: 4;
  filter: drop-shadow(0 0 10px rgba(255,255,255,.85));
}
html[data-theme="kids"] #view-today .kid-dinosaur {
  width: auto;
  height: 112%;
  max-width: none;
  max-height: none;
  display: block;
  position: absolute;
  z-index: 2;
  right: 3%;
  bottom: 1%;
  object-fit: contain;
  filter: drop-shadow(0 16px 13px rgba(12,64,141,.24));
}

html[data-theme="kids"] #view-today .premium-strip,
html[data-theme="kids"] #view-today .child-reward-card,
html[data-theme="kids"] #view-today .section-title,
html[data-theme="kids"] #view-today .two-column { display: none; }
html[data-theme="kids"] #view-today .tool-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}
html[data-theme="kids"] #view-today .tool-card {
  min-height: 104px;
  gap: 12px;
  padding: 16px;
  border: 3px solid #fff;
  border-radius: 22px;
  box-shadow: 0 7px 0 rgba(53,31,133,.18), 0 14px 25px rgba(39,36,117,.13);
}
html[data-theme="kids"] #view-today .tool-card + .tool-card { border-left: 3px solid #fff; }
html[data-theme="kids"] #view-today .tool-card:nth-child(1) { color: #234c13; background: linear-gradient(145deg,#d6ff78,#72df37); }
html[data-theme="kids"] #view-today .tool-card:nth-child(2) { color: #684100; background: linear-gradient(145deg,#fff78a,#ffc323); }
html[data-theme="kids"] #view-today .tool-card:nth-child(3) { color: #4b2379; background: linear-gradient(145deg,#efb0ff,#bc63ed); }
html[data-theme="kids"] #view-today .tool-card:nth-child(4) { color: #7b1644; background: linear-gradient(145deg,#ffc1d4,#ff7ca6); }
html[data-theme="kids"] #view-today .tool-card:hover { transform: translateY(-3px); filter: saturate(1.06); }
html[data-theme="kids"] #view-today .tool-icon {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255,255,255,.82);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg,#8d5cf5,#5831d4);
  box-shadow: 0 5px 0 rgba(54,27,135,.18);
}
html[data-theme="kids"] #view-today .tool-card:nth-child(1) .tool-icon { background: linear-gradient(145deg,#9e67ff,#5e35da); }
html[data-theme="kids"] #view-today .tool-card:nth-child(2) .tool-icon { background: linear-gradient(145deg,#20dce8,#078ed8); }
html[data-theme="kids"] #view-today .tool-card:nth-child(3) .tool-icon { background: linear-gradient(145deg,#ffcb34,#ff7d12); }
html[data-theme="kids"] #view-today .tool-card:nth-child(4) .tool-icon { background: linear-gradient(145deg,#ff65a2,#f12670); }
html[data-theme="kids"] #view-today .tool-copy { gap: 3px; }
html[data-theme="kids"] #view-today .tool-copy strong { font-size: 13px; font-weight: 820; }
html[data-theme="kids"] #view-today .tool-copy small { color: currentColor; font-size: 10px; line-height: 1.4; opacity: .78; }
html[data-theme="kids"] #view-today .chevron {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  color: #fff;
  background: rgba(66,29,165,.72);
}

@media (min-width: 901px) and (min-height: 700px) {
  html[data-theme="kids"] body:has(#view-today.is-visible) { overflow: hidden; }
  html[data-theme="kids"] body:has(#view-today.is-visible) .main-content {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
    padding: 18px clamp(22px,3vw,48px);
  }
  html[data-theme="kids"] body:has(#view-today.is-visible) .theme-topbar {
    max-width: 1320px;
    margin-bottom: 10px;
  }
  html[data-theme="kids"] body:has(#view-today.is-visible) .age-theme-switcher button { min-height: 38px; }
  html[data-theme="kids"] body:has(#view-today.is-visible) .collection-top-button { min-height: 46px; }
}

@media (max-width: 1100px) {
  html[data-theme="kids"] #view-today .hero-card { grid-template-columns: minmax(0,1.1fr) minmax(300px,.9fr); }
  html[data-theme="kids"] #view-today .hero-copy { padding-left: 30px; }
  html[data-theme="kids"] #view-today .kid-dinosaur { height: 108%; right: 0; }
  html[data-theme="kids"] #view-today .tool-card { padding: 13px; }
  html[data-theme="kids"] #view-today .tool-copy small { display: none; }
}

@media (max-width: 900px) {
  html[data-theme="kids"] body:has(#view-today.is-visible) .main-content { padding-top: calc(var(--header-mobile-height) + var(--safe-top) + 18px); }
  html[data-theme="kids"] #view-today .page-head { display: block; }
  html[data-theme="kids"] #view-today .hero-card { min-height: 560px; grid-template-columns: 1fr; }
  html[data-theme="kids"] #view-today .hero-copy { align-self: start; padding: 30px 24px 220px; }
  html[data-theme="kids"] #view-today .hero-copy h2 { font-size: clamp(33px,7vw,46px); }
  html[data-theme="kids"] #view-today .hero-visual { min-height: 0; position: static; }
  html[data-theme="kids"] #view-today .kid-dinosaur { width: min(61%,410px); height: auto; right: 3%; bottom: 2%; }
  html[data-theme="kids"] #view-today .signature-art { width: 70%; left: 4%; top: auto; bottom: 8%; }
  html[data-theme="kids"] #view-today .tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  html[data-theme="kids"] #view-today .tool-copy small { display: block; }
}

@media (max-width: 580px) {
  html[data-theme="kids"] #view-today .page-head h1 { font-size: 34px; }
  html[data-theme="kids"] #view-today .page-head h1::before { margin-right: 7px; }
  html[data-theme="kids"] #view-today .page-head p:not(.eyebrow) { font-size: 12px; }
  html[data-theme="kids"] #view-today .hero-card { min-height: 575px; border-width: 3px; }
  html[data-theme="kids"] #view-today .hero-copy { padding: 24px 20px 230px; }
  html[data-theme="kids"] #view-today .hero-copy h2 { font-size: 34px; }
  html[data-theme="kids"] #view-today .hero-copy > p { font-size: 12px; }
  html[data-theme="kids"] #view-today .hero-metrics { flex-wrap: wrap; gap: 7px; }
  html[data-theme="kids"] #view-today .hero-copy .primary-button { width: 100%; min-height: 54px; }
  html[data-theme="kids"] #view-today .kid-dinosaur { width: min(82%,380px); height: auto; right: -8%; }
  html[data-theme="kids"] #view-today .tool-grid { grid-template-columns: 1fr; }
  html[data-theme="kids"] #view-today .tool-card { min-height: 88px; }
}

/* ═══ ენის გასატეხები — base (both themes) ═══ */
.tongue-day-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--text-secondary); font-size: 13px; font-weight: 600; white-space: nowrap; }
.tongue-day-pill svg { width: 17px; height: 17px; color: #f2a91c; }
.tongue-day-pill b { color: var(--brand-800); }
.tongue-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 22px; align-items: start; }
.tongue-tabs { display: flex; gap: 6px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.tongue-tabs button { min-height: 44px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--radius-control); color: var(--text-secondary); background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; }
.tongue-tabs button.is-active { color: var(--brand-800); border-color: var(--border-brand); background: var(--brand-100); }
.tongue-card { position: relative; margin: 20px 0; padding: 30px; border: 1px dashed var(--border-strong); border-radius: var(--radius-feature); background: linear-gradient(160deg, var(--surface-subtle), #fff); }
.tongue-card.is-done { border-style: solid; border-color: #8fdcb4; background: linear-gradient(160deg, #eefbf3, #fff); }
.tongue-card.is-done::after { content: "✓"; position: absolute; top: 16px; right: 18px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #2fbd76; font-size: 16px; font-weight: 800; }
.tongue-sound { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.tongue-sound span { color: var(--text-tertiary); font-size: 12px; font-weight: 600; }
.tongue-sound b { padding: 6px 13px; border-radius: 10px; color: var(--brand-800); background: var(--brand-100); font-size: 15px; letter-spacing: 1.5px; }
.tongue-text { margin: 0 0 14px; color: var(--text-primary); font-family: "Noto Serif Georgian", serif; font-size: clamp(23px, 3vw, 30px); line-height: 1.55; }
.tongue-tip { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
.tongue-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.tongue-steps li { display: flex; align-items: center; gap: 11px; color: var(--text-secondary); font-size: 13px; }
.tongue-steps li span { width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--brand-800); background: var(--brand-100); font-size: 12px; font-weight: 700; }
.tongue-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tongue-actions .primary-button { flex: 1; min-width: 190px; }
.tongue-actions .secondary-button svg { width: 15px; height: 15px; }
#tongueDone:disabled { opacity: .62; cursor: default; box-shadow: none; }
.tongue-side .quiet-button { margin-top: 4px; }
.tongue-mascot { width: 116px; float: right; margin: -12px 0 8px 12px; filter: drop-shadow(0 10px 18px rgba(60,40,140,.24)); }

/* ═══ Paywall — Premium დიალოგი ═══ */
.paywall-dialog { width: min(480px, calc(100vw - 24px)); text-align: center; }
.paywall-shell { position: relative; padding: 34px 30px 28px; }
.paywall-shell .dialog-icon { margin: 0 auto; }
.paywall-icon { color: #8a5a00; background: linear-gradient(145deg, #fff2a3, #ffd640); }
.paywall-shell .eyebrow { margin-top: 16px; }
.paywall-shell h2 { margin: 8px 0 10px; font-family: "Noto Serif Georgian", serif; font-size: 25px; font-weight: 560; letter-spacing: -.015em; }
.paywall-shell > p { margin: 0 0 16px; color: var(--text-secondary); font-size: 14px; line-height: 1.65; }
.paywall-price { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-bottom: 14px; }
.paywall-price strong { font-family: "Noto Serif Georgian", serif; font-size: 38px; color: var(--brand-800); }
.paywall-price small { color: var(--text-tertiary); font-size: 14px; }
.paywall-perks { list-style: none; margin: 0 0 20px; padding: 14px 18px; display: grid; gap: 9px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-subtle); text-align: left; color: var(--text-secondary); font-size: 13px; }
.paywall-perks li { display: flex; align-items: center; gap: 9px; }
.paywall-perks li::before { content: "✓"; width: 19px; height: 19px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #2fbd76; font-size: 11px; font-weight: 800; }
.paywall-signin-note { margin: 0 0 10px; color: var(--warm-text); font-size: 13px; }
.paywall-note { display: block; margin-top: 12px; color: var(--text-tertiary); font-size: 11px; line-height: 1.6; }
html[data-theme="kids"] .paywall-dialog { border: 3px solid #ffd640; border-radius: 26px; }

/* ═══ ჩემი ოთახი — dialog ═══ */
.room-dialog { width: min(960px, calc(100vw - 24px)); }
.room-dialog-shell { position: relative; padding: 28px; }
.room-dialog-shell h2 { margin: 10px 0 8px; font-family: "Noto Serif Georgian", serif; font-weight: 560; letter-spacing: -.015em; }
.room-hint { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.animal-room { position: relative; margin: 18px 0 22px; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-card); }
.room-bg { display: block; width: 100%; height: auto; }
.room-animals img { position: absolute; transform: translate(-50%, -88%); filter: drop-shadow(0 8px 12px rgba(60,30,10,.32)); animation: room-bob 2.6s ease-in-out infinite alternate; animation-delay: var(--bob-delay, 0s); }
@keyframes room-bob { from { transform: translate(-50%, -88%); } to { transform: translate(-50%, -93%) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .room-animals img { animation: none; } }

/* ═══ Kids theme: ცოცხალი გვერდითი მენიუ ყველა გვერდზე ═══ */
html[data-theme="kids"] body .sidebar {
  color: #fff;
  border-right-color: rgba(255,255,255,.22);
  background:
    radial-gradient(circle at 15% 2%, rgba(50,219,255,.45), transparent 28%),
    radial-gradient(circle at 100% 74%, rgba(255,70,180,.36), transparent 38%),
    linear-gradient(165deg, #6e36ed 0%, #5122c7 48%, #342091 100%);
  box-shadow: 14px 0 34px rgba(65,32,153,.2);
}
html[data-theme="kids"] body .sidebar .brand { color: #fff; }
html[data-theme="kids"] body .sidebar .brand strong { color: #fff86d; text-shadow: 0 2px 0 rgba(48,19,125,.35); }
html[data-theme="kids"] body .sidebar .brand small,
html[data-theme="kids"] body .sidebar .account-entry small,
html[data-theme="kids"] body .sidebar .privacy-note small { color: rgba(255,255,255,.72); }
html[data-theme="kids"] body .sidebar .brand-mark {
  border: 2px solid rgba(255,255,255,.7);
  background: linear-gradient(145deg, #12d9f0, #1676f1 48%, #7b37ed);
  box-shadow: 0 8px 0 rgba(41,15,116,.28), 0 13px 24px rgba(25,9,85,.28);
}
html[data-theme="kids"] body .sidebar .brand-mark svg { color: #fff76a; }
html[data-theme="kids"] body .sidebar .nav-item { min-height: 50px; color: rgba(255,255,255,.9); font-weight: 700; }
html[data-theme="kids"] body .sidebar .nav-item svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg,#9b59ff,#6630df);
  filter: drop-shadow(0 4px 5px rgba(35,15,94,.22));
}
html[data-theme="kids"] body .sidebar .nav-item:nth-child(1) svg { background: linear-gradient(145deg,#ff79b5,#f22970); }
html[data-theme="kids"] body .sidebar .nav-item:nth-child(2) svg { background: linear-gradient(145deg,#ffcf34,#ff8b00); }
html[data-theme="kids"] body .sidebar .nav-item:nth-child(3) svg { background: linear-gradient(145deg,#9ce934,#43c91d); }
html[data-theme="kids"] body .sidebar .nav-item:nth-child(4) svg { background: linear-gradient(145deg,#23d8f4,#008de8); }
html[data-theme="kids"] body .sidebar .nav-item:nth-child(5) svg { background: linear-gradient(145deg,#bf72ff,#7540dc); }
html[data-theme="kids"] body .sidebar .nav-item:nth-child(6) svg { background: linear-gradient(145deg,#ffad31,#ff6717); }
html[data-theme="kids"] body .sidebar .nav-item:nth-child(7) svg { background: linear-gradient(145deg,#3ee9c0,#0aa58b); }
html[data-theme="kids"] body:has(#view-today.is-visible) .nav-item:nth-child(7) svg { background: linear-gradient(145deg,#3ee9c0,#0aa58b); }
html[data-theme="kids"] body .sidebar .nav-item:hover { color: #fff; background: rgba(255,255,255,.1); }
html[data-theme="kids"] body .sidebar .nav-item.is-active {
  color: #fff;
  background: linear-gradient(135deg, #ff59a3, #9c43f3);
  box-shadow: 0 6px 0 rgba(46,16,128,.3), inset 0 0 0 2px rgba(255,255,255,.25);
}
html[data-theme="kids"] body .sidebar .nav-item.is-active::before { display: none; }
html[data-theme="kids"] body .sidebar .account-entry {
  color: #fff;
  border-color: rgba(255,255,255,.28);
  background: linear-gradient(135deg, rgba(29,211,227,.72), rgba(50,149,205,.55));
  box-shadow: 0 8px 0 rgba(34,20,113,.2);
}
html[data-theme="kids"] body .sidebar .account-entry > svg { color: #fff76a; }
html[data-theme="kids"] body .sidebar .privacy-note { border-color: rgba(255,255,255,.16); }
html[data-theme="kids"] body .sidebar .privacy-note strong { color: #fff; }
html[data-theme="kids"] body .sidebar .safety-entry { color: rgba(255,255,255,.85); }

/* ═══ Kids theme: სახალისო იერი დანარჩენ გვერდებზე ═══ */
html[data-theme="kids"] .view:not(#view-today) .page-head h1 { color: #33246e; font-weight: 800; letter-spacing: -.4px; }
html[data-theme="kids"] #view-course .page-head h1::before { content: "🎯 "; }
html[data-theme="kids"] #view-studio .page-head h1::before { content: "🎧 "; }
html[data-theme="kids"] #view-metronome .page-head h1::before { content: "🥁 "; }
html[data-theme="kids"] #view-practice .page-head h1::before { content: "📖 "; }
html[data-theme="kids"] #view-tongue .page-head h1::before { content: "🦜 "; }
html[data-theme="kids"] #view-progress .page-head h1::before { content: "🌟 "; }
html[data-theme="kids"] .view:not(#view-today) .page-head .eyebrow {
  display: inline-flex;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  color: #8a3fd0;
  background: linear-gradient(135deg, #ffe9f4, #eee4ff);
  font-weight: 700;
}
html[data-theme="kids"] .panel { border: 2px solid #ece4ff; box-shadow: 0 16px 34px rgba(84,58,183,.09); }
html[data-theme="kids"] .stat-card { border: 2px solid #ece4ff; border-radius: 24px; }
html[data-theme="kids"] .stat-grid .stat-card:nth-child(1) { background: linear-gradient(160deg, #fff, #effbff); }
html[data-theme="kids"] .stat-grid .stat-card:nth-child(2) { background: linear-gradient(160deg, #fff, #fff7e8); }
html[data-theme="kids"] .stat-grid .stat-card:nth-child(3) { background: linear-gradient(160deg, #fff, #f2ffef); }
html[data-theme="kids"] .stat-card strong { color: #43269e; }
html[data-theme="kids"] .session-steps { border-radius: 18px; border-color: #e4dbff; }
html[data-theme="kids"] .session-steps span.is-current { color: #4e2bb8; font-weight: 800; }
html[data-theme="kids"] .practice-tabs button.is-active,
html[data-theme="kids"] .tongue-tabs button.is-active { color: #4e2bb8; border-color: #cdb6ff; background: linear-gradient(135deg, #efe6ff, #e4f4ff); }
html[data-theme="kids"] .chart-bar { background: linear-gradient(180deg, #ffcf4a, #ff8b2a); }
html[data-theme="kids"] .impact-bars b { background: linear-gradient(90deg, #23d8f4, #7540dc); }
html[data-theme="kids"] .method-card.is-complete { border-color: #8fdcb4; }
html[data-theme="kids"] .tongue-card { border: 3px solid #ffd9ec; background: linear-gradient(160deg, #fff6fb, #f3f0ff); }
html[data-theme="kids"] .tongue-card.is-done { border-color: #8fdcb4; background: linear-gradient(160deg, #eefbf3, #fff); }
html[data-theme="kids"] .tongue-text { color: #432d8f; }
html[data-theme="kids"] .tongue-sound b { color: #a1247c; background: #ffe3f3; }
html[data-theme="kids"] .tongue-steps li span { color: #fff; background: linear-gradient(145deg, #23d8f4, #008de8); }
html[data-theme="kids"] .tongue-day-pill { border: 2px solid #f0c137; background: linear-gradient(135deg, #fff2a3, #ffd640); color: #593e00; }
html[data-theme="kids"] .tongue-day-pill b { color: #593e00; }
html[data-theme="kids"] .tongue-day-pill svg { color: #b76e00; }

@media (max-width: 1050px) {
  .tongue-layout { grid-template-columns: 1fr; }
  .tongue-mascot { width: 96px; }
}
@media (max-width: 760px) {
  .tongue-actions { flex-direction: column; }
  .tongue-actions .primary-button { min-width: 0; }
  .tongue-card { padding: 22px 18px; }
  .room-dialog-shell { padding: 22px 14px calc(16px + var(--safe-bottom)); }
  .page-head .tongue-day-pill { align-self: flex-start; }
  html[data-theme="kids"] .bottom-nav .nav-item svg {
    width: 30px;
    height: 30px;
    padding: 7px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg,#9b59ff,#6630df);
  }
  html[data-theme="kids"] .bottom-nav .nav-item:nth-child(1) svg { background: linear-gradient(145deg,#ff79b5,#f22970); }
  html[data-theme="kids"] .bottom-nav .nav-item:nth-child(2) svg { background: linear-gradient(145deg,#ffcf34,#ff8b00); }
  html[data-theme="kids"] .bottom-nav .nav-item:nth-child(3) svg { background: linear-gradient(145deg,#9ce934,#43c91d); }
  html[data-theme="kids"] .bottom-nav .nav-item:nth-child(4) svg { background: linear-gradient(145deg,#23d8f4,#008de8); }
  html[data-theme="kids"] .bottom-nav .nav-item:nth-child(5) svg { background: linear-gradient(145deg,#bf72ff,#7540dc); }
  html[data-theme="kids"] .bottom-nav .nav-item:nth-child(6) svg { background: linear-gradient(145deg,#ffad31,#ff6717); }
  html[data-theme="kids"] .bottom-nav .nav-item:nth-child(7) svg { background: linear-gradient(145deg,#3ee9c0,#0aa58b); }
  html[data-theme="kids"] .bottom-nav .nav-item.is-active { color: #4e2bb8; font-weight: 800; }
  html[data-theme="kids"] .bottom-nav .nav-item.is-active::before { display: none; }
}
