/* Баюшки — цвета и правила из DESIGN.md. Тема задаётся атрибутом data-theme на <html>. */
:root {
  --bg: #fbf6ee;
  --card: #ffffff;
  --card-2: #f4eee4;
  --text: #1f2240;
  --muted: #6f7189;
  --line: #ece5d8;
  --night: #3b4290;
  --night-soft: #e7e8f7;
  --lamp: #c98418;
  --lamp-fill: #e9a23b;
  --lamp-soft: #fbeed5;
  --feed: #3f8670;
  --feed-soft: #e1f0ea;
  --diaper: #b26a52;
  --diaper-soft: #f6e5de;
  --alert: #c8553d;
  --alert-soft: #f8e1dc;
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgb(31 34 64 / 0.05), 0 8px 24px rgb(31 34 64 / 0.06);
  --radius: 22px;
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="night"] {
  --bg: #12142a;
  --card: #1c1f3a;
  --card-2: #232746;
  --text: #ece8f4;
  --muted: #9a9bb8;
  --line: #2b2f50;
  --night: #9aa2ff;
  --night-soft: #262b52;
  --lamp: #f2b45a;
  --lamp-fill: #d99a3e;
  --lamp-soft: #3a3020;
  --feed: #7fc2a8;
  --feed-soft: #1f3a33;
  --diaper: #e0a08b;
  --diaper-soft: #3d2a26;
  --alert: #f08a73;
  --alert-soft: #3f2420;
  --on-accent: #12142a;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.4 var(--font);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s;
}
main {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 14px) 16px calc(env(safe-area-inset-bottom) + 112px);
}
h1 { font-size: 28px; line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: 17px; margin: 28px 4px 10px; }
p { margin: 0; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.label { font-size: 13px; color: var(--muted); }
.big { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.c-night { color: var(--night); }
.c-lamp { color: var(--lamp); }
.c-alert { color: var(--alert); }

/* ---------- Шапка ---------- */
.header { display: flex; justify-content: space-between; align-items: center; min-height: 52px; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar {
  width: var(--size, 48px); height: var(--size, 48px); flex: none; border-radius: 50%; object-fit: cover;
  display: grid; place-items: center; background: var(--night-soft); color: var(--night);
  font-weight: 700; font-size: calc(var(--size, 48px) * 0.42);
}
.avatar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.avatar-pick { display: flex; align-items: center; gap: 14px; cursor: pointer; margin: 0; }
.avatar-pick .link { color: var(--night); font-weight: 600; }
.offline { font-size: 12px; color: var(--muted); background: var(--card-2); padding: 4px 10px; border-radius: 99px; }

/* ---------- Главная карточка: живое небо ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate; margin-top: 12px; padding: 16px 16px 18px;
  border-radius: 30px; color: #fff; text-align: center;
  background: var(--sky); box-shadow: 0 18px 40px -18px rgb(31 34 90 / 0.55);
  transition: background 1.2s ease;
}
.sky-morning { --sky: linear-gradient(165deg, #3a3a7c 0%, #a65d84 58%, #e98f62 100%); }
.sky-day     { --sky: linear-gradient(165deg, #2f5da6 0%, #5d86c9 55%, #8fa9de 100%); }
.sky-evening { --sky: linear-gradient(165deg, #232764 0%, #6d3f86 55%, #d9705a 100%); }
.sky-night   { --sky: linear-gradient(165deg, #0c0f2c 0%, #1b215a 60%, #2c2a6c 100%); }
.sky-nap     { --sky: linear-gradient(165deg, #262a68 0%, #44438a 60%, #6c5c9f 100%); }
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.star {
  position: absolute; width: var(--r); height: var(--r); border-radius: 50%; background: #fff;
  box-shadow: 0 0 6px rgb(255 255 255 / 0.8); animation: twinkle 3.2s ease-in-out var(--d) infinite;
}
@keyframes twinkle { 50% { opacity: 0.25; transform: scale(0.7); } }
/* Светило — между плашкой состояния и кнопкой «?», над часами, ничего не перекрывает. */
.moon, .sun { position: absolute; left: 63%; top: 12px; width: 50px; height: 50px; border-radius: 50%; }
.sun { left: 58%; top: -6px; width: 84px; height: 84px; }
.moon {
  background: radial-gradient(circle at 38% 38%, #fff7e6 0 44%, transparent 45%);
  -webkit-mask: radial-gradient(circle at 62% 30%, transparent 0 34%, #000 35%);
          mask: radial-gradient(circle at 62% 30%, transparent 0 34%, #000 35%);
  filter: drop-shadow(0 0 14px rgb(255 230 180 / 0.6)); animation: float 9s ease-in-out infinite;
}
.sun {
  background: radial-gradient(circle, #fff2c9 0 22%, rgb(255 214 140 / 0.55) 23% 40%, transparent 62%);
  animation: glow 8s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(6px) rotate(-3deg); } }
@keyframes glow { 50% { transform: scale(1.06); opacity: 0.85; } }

.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 40px; }
.glass-chip, .glass-btn {
  display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 14px; font-weight: 600;
  background: rgb(255 255 255 / 0.16); border: 1px solid rgb(255 255 255 / 0.22);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-radius: 99px; padding: 7px 13px;
}
.glass-chip svg { width: 16px; height: 16px; flex: none; }
.glass-btn { width: 36px; height: 36px; min-height: 36px; padding: 0; justify-content: center; font-size: 16px; }
.hero-clock {
  margin: 22px 0 12px; font-size: clamp(64px, 20vw, 84px); font-weight: 800; line-height: 1;
  letter-spacing: -0.04em; text-shadow: 0 4px 24px rgb(10 10 40 / 0.35);
}
.hero-clock .ring-sec { font-size: 0.42em; font-weight: 700; color: rgb(255 255 255 / 0.6); letter-spacing: -0.01em; }
.hero-next { font-size: 15px; padding: 9px 16px; }
.hero.soon .hero-next { animation: breathe 2.4s ease-in-out infinite; }
.hero.overdue .hero-next { background: rgb(240 110 90 / 0.42); border-color: rgb(255 170 150 / 0.5); }
@keyframes breathe { 50% { background: rgb(255 255 255 / 0.3); } }
.hero-progress { height: 6px; margin: 16px 12px 0; border-radius: 99px; background: rgb(255 255 255 / 0.18); overflow: hidden; }
.hero-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffd59a, #fff); transition: width 1s ease; }
.hero.overdue .hero-progress i { background: linear-gradient(90deg, #ffb39e, #ffd9cf); }
.hero-why {
  margin-top: 14px; padding: 12px 14px; border-radius: 18px; text-align: left; font-size: 13px; line-height: 1.45;
  background: rgb(10 12 40 / 0.28); color: rgb(255 255 255 / 0.92);
}
.hero-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 62px; margin-top: 18px;
  border-radius: 22px; font-size: 19px; font-weight: 700; background: #fff; color: #23286a;
  box-shadow: 0 10px 24px -10px rgb(0 0 0 / 0.45);
}
.hero-btn svg { width: 22px; height: 22px; }
.hero-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.hero-alt { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: auto; min-height: 48px; border-radius: 16px; font-size: 14px; font-weight: 600; text-align: center; line-height: 1.2; padding: 6px 10px; }
.hero-alt svg { width: 18px; height: 18px; flex: none; }
.check { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; background: var(--card-2); border-radius: 14px; font-weight: 500; }
.check input { width: 20px; height: 20px; }
.hero-btn.wake { background: linear-gradient(180deg, #ffd27a, #f2a93b); color: #3b2a07; }

/* ---------- Подсказка дня ---------- */
.insight {
  display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 16px; border-radius: 20px;
  font-size: 15px; font-weight: 600; background: var(--card); box-shadow: var(--shadow);
  animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.insight svg { width: 34px; height: 34px; padding: 7px; border-radius: 12px; flex: none; }
.insight.ok svg { background: var(--feed-soft); color: var(--feed); }
.insight.warn svg { background: var(--lamp-soft); color: var(--lamp); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Кнопки ---------- */
button {
  font: inherit; color: inherit; border: 0; cursor: pointer; background: var(--card-2);
  border-radius: 16px; padding: 14px 16px; min-height: 48px;
  /* Отпускание — с лёгкой пружиной, нажатие — мгновенно: так кнопка ощущается «живой». */
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s, box-shadow 0.2s;
}
button:active { transform: scale(0.96); transition-duration: 0.08s; }
button:disabled { opacity: 0.4; }
.btn-main {
  width: 100%; min-height: 64px; font-size: 19px; font-weight: 700;
  background: var(--night); color: var(--on-accent); border-radius: 20px;
}
.btn-main.wake { background: var(--lamp-fill); }
.btn-text { background: none; color: var(--night); font-weight: 600; padding: 10px 8px; min-height: 44px; }
.btn-danger { background: var(--alert-soft); color: var(--alert); font-weight: 600; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  gap: 18px; min-height: 96px; text-align: left; background: var(--card); box-shadow: var(--shadow); padding: 14px;
}
.tile .icon { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; }
.tile .icon svg { width: 22px; height: 22px; }
.tile b { display: block; font-size: 15px; }
.tile small { color: var(--muted); font-size: 12px; }
/* Маленькие телефоны (iPhone SE и узкие Android): три плитки в ряд — только если чуть ужаться. */
@media (max-width: 360px) { .grid3 { gap: 8px; } .tile { padding: 10px; } .tile b { font-size: 13.5px; } }
.i-feed { background: var(--feed-soft); color: var(--feed); }
.i-diaper { background: var(--diaper-soft); color: var(--diaper); }
.i-sleep { background: var(--night-soft); color: var(--night); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 40px; padding: 8px 14px; border-radius: 99px; font-size: 14px; font-weight: 600; }
.chip.on { background: var(--night); color: var(--on-accent); }

/* ---------- Итоги ---------- */
.norm-bar { position: relative; height: 10px; border-radius: 99px; background: var(--card-2); margin: 10px 0 6px; overflow: hidden; }
.norm-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--night); }
.norm-bar .zone { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--feed) 35%, transparent); }

/* ---------- Лента ---------- */
.entry { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card); box-shadow: var(--shadow); padding: 12px 14px; border-radius: 18px; }
.entry .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.entry .body { flex: 1; min-width: 0; }
.entry .title { font-weight: 600; }
.entry .meta { font-size: 13px; color: var(--muted); }
.entry .dur { font-weight: 700; font-variant-numeric: tabular-nums; }
.gap-line { font-size: 12px; color: var(--muted); padding: 2px 0 2px 34px; }
.d-day { background: var(--lamp-fill); }
.d-night { background: var(--night); }
.d-feed { background: var(--feed); }
.d-diaper { background: var(--diaper); }

/* ---------- Нижнее меню ---------- */
.tabbar {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 10px); transform: translateX(-50%);
  z-index: 5; display: flex; gap: 4px; width: min(calc(100% - 24px), 520px); padding: 6px;
  border-radius: 28px; background: color-mix(in srgb, var(--card) 72%, transparent);
  backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid color-mix(in srgb, var(--card) 60%, transparent);
  box-shadow: 0 12px 32px -10px rgb(20 22 60 / 0.3);
}
.tabbar button {
  flex: 1; background: none; color: var(--muted); font-size: 11.5px; font-weight: 600; padding: 6px 4px;
  display: grid; justify-items: center; gap: 2px; min-height: 54px; border-radius: 22px;
}
.tabbar button svg { width: 24px; height: 24px; }
.tabbar button[aria-current="page"] { color: var(--night); background: var(--night-soft); }
.tabbar[hidden] { display: none; }

/* ---------- Шторка ---------- */
dialog {
  border: 0; padding: 8px 16px calc(env(safe-area-inset-bottom) + 18px); width: 100%; max-width: 560px;
  margin: auto auto 0; border-radius: 32px 32px 0 0; background: var(--card); color: var(--text);
  max-height: 92dvh; overflow: auto;
}
dialog[open] { animation: sheet-in 0.42s cubic-bezier(0.32, 0.72, 0, 1); }
@keyframes sheet-in { from { transform: translateY(100%); } }
dialog::backdrop { background: rgb(10 12 30 / 0.4); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.grabber { width: 40px; height: 5px; border-radius: 99px; background: var(--line); margin: 4px auto 12px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 4px 6px; }
input, select {
  font: inherit; color: inherit; width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--bg);
}
input:focus-visible, select:focus-visible, button:focus-visible { outline: 2px solid var(--night); outline-offset: 2px; }
.sheet-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 20px; }
/* minmax(0, 1fr) — чтобы длинное слово не раздвигало колонку за край экрана. */
.seg { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 4px; background: var(--card-2); padding: 4px; border-radius: 16px; }
.seg button { background: none; min-height: 44px; padding: 4px; font-weight: 600; font-size: clamp(14px, 4vw, 16px); line-height: 1.15; text-wrap: balance; hyphens: auto; overflow-wrap: anywhere; }
/* Четыре варианта в ряд на телефоне не помещаются — ставим сеткой 2×2. */
@media (max-width: 480px) { .seg-many { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.control { display: grid; gap: 8px; }
.seg button[aria-pressed="true"] { background: var(--card); box-shadow: var(--shadow); }

/* ---------- Тост «Вернуть» ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 92px); transform: translateX(-50%);
  z-index: 20; display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; border-radius: 16px;
  background: var(--text); color: var(--bg); font-size: 15px; box-shadow: 0 10px 30px rgb(0 0 0 / 0.2);
  animation: sheet-in 0.25s ease;
}
.toast button { background: none; color: var(--lamp-fill); font-weight: 700; min-height: 40px; padding: 8px 10px; }

/* ---------- График ---------- */
.chart svg { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 10px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- Вход ---------- */
.welcome { min-height: 80dvh; display: grid; align-content: center; gap: 20px; text-align: center; }
.logo { width: 96px; height: 96px; margin: 0 auto; border-radius: 28px; }
.welcome .lead { font-size: 17px; color: var(--muted); max-width: 30ch; margin: 0 auto; }
.tg-login { min-height: 48px; display: grid; place-items: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--night); animation: spin 0.9s linear infinite; margin: 30vh auto 0; }
@keyframes spin { to { transform: rotate(360deg); } }

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

/* ---------- План дня ---------- */
.plan-row { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 12px; min-height: 32px; }
.plan-row .dot { width: 10px; height: 10px; border-radius: 50%; }

/* ---------- Кормление с таймером ---------- */
.feed-card { margin-top: 12px; border: 2px solid color-mix(in srgb, var(--feed) 45%, transparent); }
.feed-side {
  display: grid; gap: 4px; justify-items: start; min-height: 76px; text-align: left;
  background: var(--feed-soft); color: var(--feed); font-weight: 600; border-radius: 18px;
}
.feed-side b { font-size: 26px; color: var(--text); }
.feed-side.on { background: var(--feed); color: var(--on-accent); }
.feed-side.on b { color: var(--on-accent); }

/* ---------- Плеер звуков ---------- */
.player { display: grid; gap: 16px; }
.player-main { display: flex; align-items: center; gap: 16px; }
.player-text { display: grid; gap: 2px; text-align: left; }
.player-text b { font-size: 18px; }
.play-btn {
  position: relative; flex: none; width: 76px; height: 76px; min-height: 76px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, #5560c8, #2c3180); box-shadow: 0 12px 26px -10px rgb(44 49 128 / 0.7);
}
.play-btn svg { width: 30px; height: 30px; position: relative; }
.play-btn .pulse { position: absolute; inset: 0; border-radius: 50%; }
.playing .play-btn .pulse { animation: ripple 2.6s ease-out infinite; box-shadow: 0 0 0 0 rgb(85 96 200 / 0.45); }
@keyframes ripple { to { box-shadow: 0 0 0 22px rgb(85 96 200 / 0); } }
/* Четыре звука — сеткой 2×2: в одну строку «Коричневый» и «Колыбельная» не помещаются на iPhone. */
.sound-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sound {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 52px; font-size: 15px; font-weight: 600; text-align: left;
  background: var(--card-2); border: 2px solid transparent;
}
.sound i { width: 26px; height: 26px; border-radius: 50%; }
.sound-white i { background: radial-gradient(circle, #fff 0 30%, #d9dbe8 60%); box-shadow: inset 0 0 0 1px var(--line); }
.sound-pink i { background: radial-gradient(circle, #ffd9e2 0 30%, #f29bb2 70%); }
.sound-brown i { background: radial-gradient(circle, #e6c39a 0 30%, #9a6a44 70%); }
.sound-lullaby i { background: radial-gradient(circle, #fff3c9 0 30%, #e9a23b 70%); }
.sound[aria-pressed="true"] { border-color: var(--night); background: var(--night-soft); color: var(--night); }

@media (prefers-reduced-transparency: reduce) {
  .glass-chip, .glass-btn { background: rgb(20 22 60 / 0.55); backdrop-filter: none; }
  .tabbar { background: var(--card); backdrop-filter: none; }
}

.nowrap { white-space: nowrap; }

/* ---------- Растём: зубки ---------- */
.mouth { display: block; width: 100%; max-width: 320px; margin: 4px auto 0; }
.mouth-gum { fill: none; stroke: #f6d4d8; stroke-width: 46; stroke-linecap: round; stroke-linejoin: round; }
.mouth-label { fill: var(--muted); font-size: 13px; font-weight: 600; }
.tooth { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tooth circle { fill: #fbe7ea; stroke: #e3aeb6; stroke-width: 1.5; stroke-dasharray: 3 3; transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1); transform-box: fill-box; transform-origin: center; }
.tooth:active circle { transform: scale(0.88); }
.tooth.in circle { fill: #fff; stroke: var(--night); stroke-width: 2; stroke-dasharray: none; filter: drop-shadow(0 2px 3px rgb(20 22 60 / 0.18)); }
.tips p { margin: 0; line-height: 1.45; }
:root[data-theme="night"] .mouth-gum { stroke: #4a3442; }
:root[data-theme="night"] .tooth circle { fill: #3e2a35; stroke: #7d5463; }
:root[data-theme="night"] .tooth.in circle { fill: #f4f4fa; stroke: #b9c0ff; }

/* ---------- Режим спальни: идёт ночной сон ----------
   Почти чёрный фон, тёплый приглушённый текст, никаких ярких пятен: белая кнопка ночью слепит
   в темноте сильнее всего. Синий свет убираем — он сильнее всего бодрит. */
:root[data-sleep] {
  --bg: #060609; --card: #101016; --card-2: #16151c; --text: #d8b896; --muted: #7c6a5a; --line: #1e1c23;
  --night: #d6a774; --night-soft: #221c17; --on-accent: #060609;
}
:root[data-sleep] .hero { --sky: #0b0b10; color: #d8b896; box-shadow: none; border: 1px solid #1c1a21; }
:root[data-sleep] .star { opacity: 0.35; box-shadow: none; animation: none; background: #d8b896; }
:root[data-sleep] .moon { opacity: 0.45; filter: none; animation: none; }
:root[data-sleep] .glass-chip, :root[data-sleep] .glass-btn { background: rgb(216 184 150 / 0.06); border-color: rgb(216 184 150 / 0.14); color: #c9a888; backdrop-filter: none; -webkit-backdrop-filter: none; }
:root[data-sleep] .hero-clock { color: #e2c3a0; }
:root[data-sleep] .hero-btn, :root[data-sleep] .hero-btn.wake { background: #1c1820; color: #e2c3a0; box-shadow: none; border: 1px solid #2a2430; }
:root[data-sleep] .hero-progress { background: rgb(216 184 150 / 0.08); }
:root[data-sleep] .hero-progress i { background: #6b5643; }
:root[data-sleep] .tabbar { background: #0d0d12; border-color: #1c1a21; box-shadow: none; backdrop-filter: none; }
:root[data-sleep] img, :root[data-sleep] .icon { filter: brightness(0.7); }
:root[data-sleep] .play-btn { background: #2a2230; color: #e2c3a0; box-shadow: none; }
:root[data-sleep] .ring-sec { color: #7c6a5a; }
