/* ═══════════════════════════════════════════════════════════════════════════
   «Каждый день» — стиль «СТЕКЛО» из CamLoo (styles/glass.css, DESIGN.md).
   Фон — один неподвижный перелив персик → роза → сирень → лёд на весь экран.
   Стекло — три уровня: 0 «воздух» (строки на фоне), 1 «лист» (карточки), 2 «парящее» (меню-капсула).
   Кромка — светлая нить по краю (маска), блик сверху, тёплая тень. Зерна нет.
   Размытие не анимируется; на слабом телефоне (.reduce-motion) — плотное молоко без размытия.
   Шрифт — Manrope (числа tabular-nums), счётчики — JetBrains Mono.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ───────── ДЕНЬ ───────── */
:root {
  color-scheme: light;
  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  /* гамма стиля: пыльная сталь · нежный коралл · шалфей */
  --p-a-rgb: 88, 113, 143;  --p-a-hex: #58718F;  --p-a-text: #3F5673;
  --p-b-rgb: 212, 154, 136; --p-b-hex: #D49A88;  --p-b-text: #7C3E35;
  --p-c-rgb: 134, 168, 152; --p-c-hex: #86A898;  --p-c-text: #37544A;
  --amber-400: #76492F;
  --emerald-400: #05623F;
  --danger-500: #9C5244;
  --live-red: #B5504D;

  /* фон: сочный плавный перелив, продлённый вверх и вниз (шва при оттягивании нет) */
  --gl-canvas:
    radial-gradient(100% 25% at 0% 27%, rgba(250, 196, 170, .6), transparent 58%),
    radial-gradient(85% 23% at 100% 46%, rgba(210, 190, 242, .38), transparent 60%),
    radial-gradient(110% 25% at 15% 73%, rgba(178, 206, 242, .55), transparent 60%),
    linear-gradient(160deg, #F9D2BF 27.3%, #F9D0C4 31.8%, #F5C8D0 41.8%, #E3CFF1 52.8%, #CBDAF5 63.7%, #C6D8F4 72.7%);
  --html-bg: #E8D3E4;

  /* текст */
  --text-primary: #1E2430;
  --text-secondary: #3E4656;
  --text-tertiary: #4B5363;

  /* рецепт стекла */
  --gl-fill: linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.06) 48%, rgba(255,255,255,.1) 100%);
  --gl-frost: blur(14px);
  --gl-sheen: radial-gradient(130% 60% at 25% -10%, rgba(255,255,255,.38), rgba(255,255,255,.06) 45%, rgba(255,255,255,0) 60%);
  --gl-rim: inset 0 0 0 1px rgba(255,255,255,.38), inset 1.5px 1.5px 0 -.5px rgba(255,255,255,.95), inset -1.5px -1.5px 0 -.5px rgba(255,255,255,.55), inset 0 0 14px rgba(255,255,255,.28), inset 0 -12px 20px -16px rgba(90, 70, 110, .28);
  --gl-line: 0 0 0 .5px rgba(90, 60, 80, .16);
  --gl-depth: 0 2px 6px rgba(90, 60, 80, .08), 0 18px 40px -20px rgba(90, 70, 120, .42);
  --gl-edge: linear-gradient(160deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.5) 38%, rgba(255,255,255,.18) 62%, rgba(255,255,255,.75) 100%);
  --gl-dense: rgba(252, 249, 247, .9);           /* слабый телефон / нет размытия */
  --gl-lens: rgba(255, 255, 255, .92);           /* белая «линза» активной вкладки */
  --gl-steel-glass: rgba(176, 202, 238, .42);    /* выбранное — светлое голубое стекло */
  --gl-steel: linear-gradient(180deg, #5A7392, #4B6584);   /* белый текст ≥ 4,8:1 */
  --shadow-soft: 0 1px 2px rgba(80, 50, 40, .05), 0 8px 20px -12px rgba(150, 100, 84, .28);

  /* главная кнопка — нежный персик, тёмная подпись */
  --style-cta-bg: linear-gradient(180deg, #F9DDD0 0%, #F2C4B0 100%);
  --style-cta-fg: #2B211D;
  --cta-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 14px 28px -16px rgba(190, 120, 95, .7);

  --gl-gold-ink: #8C5A3C;
  --gl-premium-card: linear-gradient(160deg, rgba(255,246,236,.7), rgba(246,224,206,.45));
  --warn-tint: linear-gradient(160deg, rgba(255,226,218,.62), rgba(246,200,190,.3));
  --drop-bg: linear-gradient(170deg, #FFF1E8, #EADCF6 60%, #D6E3F8);
  --logo-shadow: 0 18px 30px rgba(110, 70, 140, .28), 0 4px 10px rgba(110, 70, 140, .16);
  --scrim: rgba(40, 36, 44, .32);
  --track: rgba(30, 36, 48, .08);
  --hair: rgba(30, 36, 48, .1);

  /* форма, движение */
  --r-sm: 14px; --r-lg: 18px; --r-xl: 20px; --r-2xl: 24px; --r-4xl: 32px; --r-pill: 999px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur-fast: 120ms; --dur-base: 220ms;
  --fs-2xs: 12px; --fs-xs: 13px; --fs-sm: 14px; --fs-base: 15px; --fs-md: 16px; --fs-lg: 17px; --fs-xl: 19px; --fs-2xl: 21px;
  --nav-h: 86px;
}

/* ───────── НОЧЬ — «Сумерки» ───────── */
:root[data-theme="dark"] {
  color-scheme: dark;
  --p-a-text: #B9CBE2; --p-b-text: #F2B8A6; --p-c-text: #A9CDBB;
  --amber-400: #F0C9A0; --emerald-400: #7FD6AE; --danger-500: #FF9C9C;
  --gl-canvas:
    radial-gradient(100% 26% at 0% 24%, rgba(226, 132, 100, .45), transparent 58%),
    radial-gradient(85% 23% at 100% 48%, rgba(196, 104, 150, .31), transparent 60%),
    radial-gradient(110% 25% at 15% 76%, rgba(120, 92, 170, .32), transparent 60%),
    linear-gradient(160deg, #3B2026 25%, #391F2B 38%, #301E34 52%, #261C34 66%, #1E182E 78%);
  --html-bg: #2B1C2D;
  --text-primary: #F5F1F2; --text-secondary: rgba(245,241,242,.78); --text-tertiary: rgba(245,241,242,.62);
  --gl-fill: linear-gradient(180deg, rgba(255,255,255,.09) 0%, rgba(255,255,255,.03) 48%, rgba(255,255,255,.05) 100%);
  --gl-sheen: radial-gradient(130% 60% at 25% -10%, rgba(255,255,255,.16), rgba(255,255,255,.03) 45%, rgba(255,255,255,0) 60%);
  --gl-rim: inset 0 0 0 1px rgba(255,255,255,.12), inset 1.5px 1.5px 0 -.5px rgba(255,255,255,.42), inset -1.5px -1.5px 0 -.5px rgba(255,255,255,.14), inset 0 0 14px rgba(255,255,255,.05);
  --gl-line: 0 0 0 .5px rgba(0,0,0,.5);
  --gl-depth: 0 2px 6px rgba(0,0,0,.3), 0 18px 40px -20px rgba(0,0,0,.7);
  --gl-edge: linear-gradient(160deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,.12) 38%, rgba(255,255,255,.04) 62%, rgba(255,255,255,.2) 100%);
  --gl-dense: rgba(44, 31, 48, .94);
  --gl-lens: rgba(255, 255, 255, .16);
  --gl-steel-glass: rgba(157, 180, 206, .22);
  --shadow-soft: 0 1px 2px rgba(0,0,0,.3), 0 8px 20px -12px rgba(0,0,0,.6);
  --cta-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 14px 28px -16px rgba(0,0,0,.7);
  --gl-gold-ink: #F0C9A0;
  --gl-premium-card: linear-gradient(160deg, rgba(240,190,150,.16), rgba(240,190,150,.05));
  --warn-tint: linear-gradient(160deg, rgba(224,120,118,.2), rgba(224,120,118,.06));
  --drop-bg: radial-gradient(90% 90% at 40% 30%, #3A2C44, #221C30 70%);
  --logo-shadow: 0 18px 34px rgba(0,0,0,.5), 0 0 40px rgba(233,177,218,.12);
  --scrim: rgba(8, 4, 10, .55);
  --track: rgba(255, 255, 255, .1);
  --hair: rgba(255, 255, 255, .1);
}

/* ───────── ОСНОВА ───────── */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--html-bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; overflow-x: hidden; overscroll-behavior-y: none; -webkit-tap-highlight-color: transparent; }
/* единый перелив на весь экран, продлён на 60 % вверх и вниз: при оттягивании белой полосы нет */
html::before { content: ""; position: fixed; left: 0; right: 0; top: -60vh; bottom: -60vh; z-index: -1; pointer-events: none; background: var(--gl-canvas); }
body {
  margin: 0; background: transparent; color: var(--text-primary);
  font: 500 var(--fs-md)/1.55 var(--font-sans); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; touch-action: manipulation;
}
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--p-a-text); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid rgba(var(--p-a-rgb), .9); outline-offset: 3px; border-radius: 10px; }
#app { max-width: 560px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) 16px calc(var(--nav-h) + env(safe-area-inset-bottom) + 24px); }
.page-enter { animation: page-enter var(--dur-base) var(--ease-out) both; }
@keyframes page-enter { from { opacity: .82; } to { opacity: 1; } }

/* нажатие: лёгкая пружина (.96), отпуск — спокойно */
.press { transition: transform var(--dur-base) var(--ease-spring), filter var(--dur-fast) var(--ease-out); }
.press:active:not(:disabled) { transform: scale(.96); filter: brightness(.955); transition-duration: 100ms; transition-timing-function: var(--ease-out); }
:root[data-theme="dark"] .press:active:not(:disabled) { filter: brightness(1.16); }

/* ───────── СТЕКЛО: ЛИСТ ───────── */
.gl-leaf, .gl-chip { position: relative; background-image: var(--gl-sheen), var(--gl-fill); background-color: transparent; }
.gl-leaf { -webkit-backdrop-filter: var(--gl-frost); backdrop-filter: var(--gl-frost); box-shadow: var(--gl-line), var(--gl-rim), var(--gl-depth); }
.gl-chip { box-shadow: var(--gl-line), var(--gl-rim), 0 8px 18px -10px rgba(150, 96, 80, .4); }
:root[data-theme="dark"] .gl-chip { box-shadow: var(--gl-line), var(--gl-rim), 0 8px 18px -10px rgba(0,0,0,.55); }
/* кромка-нить: яркая сверху-слева, гаснет вниз-вправо, одна отрисовка маской */
.gl-leaf::after, .gl-chip::after, .field::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--gl-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* слабый телефон / нет размытия — плотное молоко, вид тот же, цена ноль */
.reduce-motion .gl-leaf, .reduce-motion .nav-capsule, .reduce-motion .toast { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background-color: var(--gl-dense) !important; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .gl-leaf, .nav-capsule, .toast { background-color: var(--gl-dense) !important; } }

/* бегущий свет по кромке героя (Magic UI Border Beam) — один элемент на экране */
.gl-beam { position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; overflow: hidden;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.gl-beam::before { content: ""; position: absolute; left: 50%; top: 50%; width: 180%; aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(242,176,150,0) 64%, rgba(242,176,150,.95) 72%, #fff 75%, rgba(150,176,206,.95) 78%, transparent 86% 100%);
  animation: gl-spin 7s linear infinite; }
@keyframes gl-spin { to { transform: rotate(360deg); } }

/* ───────── КНОПКИ ───────── */
.gl-cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 20px; border-radius: var(--r-pill);
  font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.01em; color: var(--style-cta-fg); background: var(--style-cta-bg); box-shadow: var(--cta-shadow); }
.gl-cta::after { content: ""; position: absolute; top: 0; left: 14%; right: 14%; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, #fff, transparent); }
.gl-cta.on { background: var(--gl-steel-glass); color: var(--text-primary); box-shadow: var(--gl-line), var(--gl-rim); }
.gl-cta.on::after { display: none; }
.gl-cta.block { width: 100%; }
.gl-cta.tall { height: 56px; }
.icon-chip.sm { width: 44px; height: 44px; }
.icon-chip { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: var(--r-pill); color: var(--text-primary); }
.icon-chip:disabled { opacity: .4; cursor: default; }
.icon-chip svg, .gl-cta svg { width: 20px; height: 20px; }
.ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: var(--r-pill); font-weight: 700; color: var(--text-primary); background-color: rgba(255,255,255,.35); box-shadow: var(--gl-line), var(--gl-rim); }
:root[data-theme="dark"] .ghost { background-color: rgba(255,255,255,.08); }
.ghost.danger { color: var(--danger-500); }

/* ───────── ШАПКА ───────── */
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; text-align: left; text-decoration: none; color: inherit; }
.gl-ava { display: block; flex: none; padding: 2px; border-radius: 50%; background: linear-gradient(135deg, #F2B7A1, #E9E4EC 50%, #9DB4CE); }
.gl-ava span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; font-size: var(--fs-lg); font-weight: 800; background: linear-gradient(135deg, #E9B29E, #9DB4CE); }
.who b { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { display: block; font-size: var(--fs-sm); font-weight: 500; color: var(--text-tertiary); letter-spacing: 0; margin-top: -2px; }

/* ───────── ПОЛОСА ДНЕЙ: стрелки + 5 дней ───────── */
.daynav { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 6px; align-items: center; margin-bottom: 14px; }
.strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.strip button { display: grid; justify-items: center; gap: 1px; padding: 8px 0 6px; min-height: 64px; border-radius: var(--r-lg); color: var(--text-tertiary); }
.strip button:disabled { opacity: .35; cursor: default; }
.strip .wd { font-size: var(--fs-2xs); font-weight: 700; }
.strip .dn { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.02em; color: var(--text-primary); }
.strip .dot { width: 6px; height: 6px; border-radius: 50%; background: transparent; margin-top: 2px; }
.strip .done .dot { background: var(--p-c-hex); }
.strip .today { box-shadow: 0 0 0 1.5px rgba(var(--p-a-rgb), .55); }
.strip .sel { background: var(--gl-steel) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 14px -8px rgba(60,80,110,.6) !important; }
.strip .sel .wd, .strip .sel .dn { color: #fff; }
.strip .sel.done .dot { background: #fff; }
.strip .sel::after { display: none; }

/* ───────── ГЕРОЙ ───────── */
.hero { border-radius: var(--r-4xl); padding: 16px; }
.hero-big { padding: 22px 16px 16px; text-align: center; }
.hero-row { display: flex; align-items: center; gap: 14px; }
.hero-tx { min-width: 0; text-align: left; }
.hero-cap { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--text-tertiary); }
.hero-tx h2 { margin: 2px 0 4px; font-size: 23px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; text-wrap: balance; }
.hero-tx p { margin: 0; font-size: var(--fs-sm); color: var(--text-secondary); }
.logo-sm { position: relative; width: 96px; height: 96px; flex: none; }
.logo-sm .scaler { position: absolute; left: 0; top: 0; width: 224px; height: 224px; transform: scale(.4286); transform-origin: 0 0; }
.logo-sm .gl-logo__count span { display: none; }
.status { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 12px 4px 8px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 800; color: var(--emerald-400); background: rgba(94,156,132,.18); box-shadow: inset 0 0 0 1px rgba(94,156,132,.35); }
.status[hidden] { display: none; }
.status svg { width: 16px; height: 16px; }
.gl-logo { position: relative; width: 224px; height: 224px; margin: 0 auto; display: grid; place-items: center; }
.gl-logo::before { content: ""; position: absolute; width: 204px; height: 204px; border-radius: 50%; pointer-events: none; box-shadow: var(--logo-shadow); }
.gl-drop { position: absolute; width: 200px; height: 200px; border-radius: 50%; overflow: hidden; clip-path: circle(50%); -webkit-clip-path: circle(50%); background: var(--drop-bg); }
.gl-drop svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gl-drop__shine { mix-blend-mode: screen; }
.gl-drop .c1 { stop-color: #FFC8AA; } .gl-drop .c2 { stop-color: #E9B1DA; } .gl-drop .c3 { stop-color: #9BB8F0; }
.gl-logo__glass { position: relative; width: 204px; height: 204px; border-radius: 50%; overflow: hidden; clip-path: circle(50%); -webkit-clip-path: circle(50%); display: grid; place-items: center;
  background: radial-gradient(120% 90% at 30% 18%, rgba(255,255,255,.4), rgba(255,255,255,0) 55%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), inset 1.5px 1.5px 0 -.5px rgba(255,255,255,.95), inset -1.5px -1.5px 0 -.5px rgba(255,255,255,.5), inset 0 0 18px rgba(255,255,255,.35); }
:root[data-theme="dark"] .gl-logo__glass { background: radial-gradient(120% 90% at 30% 18%, rgba(255,255,255,.12), rgba(255,255,255,0) 55%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), inset 1.5px 1.5px 0 -.5px rgba(255,255,255,.5), inset -1.5px -1.5px 0 -.5px rgba(255,255,255,.12), inset 0 0 18px rgba(255,255,255,.06); }
.gl-logo__count { display: grid; gap: 2px; justify-items: center; color: #1E2430; }
.gl-logo__count b { font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.gl-logo__count span { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 700; color: #2E3444; }
.gl-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(30,36,48,.22); display: inline-block; }
.gl-dot--on { background: #5E9C84; box-shadow: 0 0 0 3px rgba(94,156,132,.18); }
.gl-breath { animation: gl-breath 700ms var(--ease-out) both; }
@keyframes gl-breath { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.hero-big h2 { margin-top: 18px; font-size: 30px; font-weight: 800; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
.hero-big p { margin-top: 6px; font-size: var(--fs-base); font-weight: 500; color: var(--text-secondary); }
.streak { margin-top: 10px; font-size: var(--fs-sm); color: var(--text-tertiary); text-align: center; min-height: 1px; }
.gl-live { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 800; color: #fff; background: rgba(75,101,132,.95); margin-bottom: 10px; }
.gl-live.warm { color: #7A3A3A; background: rgba(255,228,224,.9); box-shadow: inset 0 0 0 1px rgba(214,140,130,.35); }
:root[data-theme="dark"] .gl-live.warm { color: #F7C1BB; background: rgba(224,120,118,.2); box-shadow: inset 0 0 0 1px rgba(240,150,140,.35); }

/* ───────── КАРТОЧКИ СОДЕРЖАНИЯ ───────── */
.stack { display: grid; gap: 12px; margin-top: 12px; }
.leaf { border-radius: var(--r-2xl); padding: 18px 16px; }
.leaf.warn { background-image: var(--gl-sheen), var(--warn-tint); }
.sec + .sec { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hair); }
.sec > h3 { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.015em; color: var(--text-primary); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.sec > h3 .mono { font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0; color: var(--text-tertiary); }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: start; border-radius: var(--r-lg); }
.list li:has(button.tick) { cursor: pointer; }
.list .txt { padding-top: 10px; padding-bottom: 8px; font-weight: 500; }
.list li.on .txt { color: var(--text-tertiary); }
.tick { position: relative; isolation: isolate; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-md); font-weight: 800; color: var(--text-primary); transition: color var(--dur-base); }
.tick::before { content: ""; position: absolute; inset: 4px; z-index: -1; border-radius: 50%; background-image: var(--gl-sheen), var(--gl-fill); box-shadow: var(--gl-line), var(--gl-rim); transition: background var(--dur-base) var(--ease-out); }
.tick svg { width: 19px; height: 19px; }
.tick.on { color: #fff; }
.tick.on::before { background-image: none; background: var(--gl-steel); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 14px -8px rgba(60,80,110,.6); }
.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bullets li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.bullets li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--p-b-text); margin: 10px 0 0 4px; }
.text-note { font-size: var(--fs-base); color: var(--text-secondary); }
.cta-sec { padding-top: 16px !important; }
a.ribbon { display: block; text-decoration: none; color: inherit; }
.ribbon b { display: block; font-size: var(--fs-lg); font-weight: 800; }
.ribbon p { margin-top: 2px; font-size: var(--fs-base); font-weight: 500; color: var(--text-secondary); }
.more { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: var(--fs-sm); font-weight: 800; color: var(--p-a-text); }
.more svg { width: 16px; height: 16px; }

/* ───────── ВОЗДУХ: строки на фоне ───────── */
.rows { display: grid; }
.rows > details, .rows > a.item { border-top: 1px solid var(--hair); }
.rows > :first-child { border-top: 0; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 56px; padding: 6px 2px; font-weight: 700; font-size: var(--fs-md); }
.rows-leaf { padding: 4px 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--text-tertiary); border-bottom: 2px solid var(--text-tertiary); transform: rotate(45deg); transition: transform var(--dur-base) var(--ease-out); margin-right: 5px; flex: none; }
details[open] > summary::after { transform: rotate(-135deg); }
details .in { padding: 0 2px 16px; font-size: var(--fs-base); color: var(--text-secondary); }
details .in.grp { padding-bottom: 6px; }
details .in p { margin-bottom: 8px; }
.src { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--text-tertiary); word-break: break-word; }
.src-end { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hair); }
.num-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.num-list li::marker { font-weight: 800; color: var(--p-a-text); }
.foot { text-align: center; color: var(--text-tertiary); font-size: var(--fs-xs); margin: 22px 6px 0; }
.h2.first { margin-top: 8px; }

/* ───────── ПУТЬ / БИБЛИОТЕКА ───────── */
.title { font-size: 30px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin: 4px 0 6px; }
.lead { color: var(--text-secondary); font-size: var(--fs-base); margin-bottom: 18px; }
.h2 { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.025em; margin: 26px 0 12px; }
.stage { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 4px; border-top: 1px solid var(--hair); }
.stage:first-child { border-top: 0; }
.stage b { font-size: var(--fs-lg); font-weight: 800; letter-spacing: -.015em; }
.stage .r { font-size: var(--fs-xs); font-weight: 800; color: var(--emerald-400); align-self: center; }
.stage .d { grid-column: 1 / -1; font-size: var(--fs-sm); color: var(--text-tertiary); }
.bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--track); overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #F2C4B0, #B9CBE0); }
.stage.now { border-radius: var(--r-xl); padding: 14px 14px; margin: 6px 0; border-top: 0; }
.cp { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 14px 2px; border-top: 1px solid var(--hair); text-decoration: none; color: inherit; }
.cp:first-child { border-top: 0; }
.cp b { font-size: var(--fs-md); font-weight: 800; }
.cp small { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--text-tertiary); margin-top: 2px; }
.cp.soon b { color: var(--p-b-text); }
.cp .x { font-size: var(--fs-base); color: var(--text-secondary); min-width: 0; }
.cp .x strong { display: block; color: var(--text-primary); font-weight: 800; margin-bottom: 2px; }
.group-t { font-size: var(--fs-md); font-weight: 800; color: var(--text-secondary); margin: 18px 0 4px; text-align: left; }
.item { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 54px; padding: 8px 2px; border-top: 1px solid var(--hair); text-decoration: none; color: inherit; width: 100%; text-align: left; }
.item:first-of-type { border-top: 0; }
.item b { font-size: var(--fs-md); font-weight: 700; }
.item .k { font-size: var(--fs-xs); font-weight: 600; color: var(--text-tertiary); text-align: right; white-space: nowrap; flex: none; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--p-a-text); margin-bottom: 4px; }
.back svg { width: 18px; height: 18px; }

/* ───────── ФОРМЫ ───────── */
.form { display: grid; gap: 14px; }
.field-w { display: grid; gap: 6px; }
.field-w > label { font-size: var(--fs-sm); font-weight: 700; color: var(--text-secondary); padding-left: 4px; }
.field-w .hint { font-size: var(--fs-xs); color: var(--text-tertiary); padding-left: 4px; }
.field { position: relative; display: block; width: 100%; min-height: 52px; border-radius: var(--r-lg); padding: 0 16px; font: 600 16px var(--font-sans); color: var(--text-primary); border: 0; outline: 0;
  background: var(--gl-sheen), var(--gl-fill); box-shadow: var(--gl-line), var(--gl-rim); }
.field::placeholder { color: var(--text-tertiary); font-weight: 500; }
.field:focus { box-shadow: 0 0 0 2px rgba(var(--p-a-rgb), .7), var(--gl-rim); }
.field::after { content: none; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: var(--r-pill); }
.seg button { min-height: 44px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 700; color: var(--text-secondary); }
.seg button[aria-pressed="true"] { background: rgba(255,255,255,.85); color: var(--text-primary); box-shadow: var(--shadow-soft); }
:root[data-theme="dark"] .seg button[aria-pressed="true"] { background: rgba(255,255,255,.16); }
pre.code { margin: 0; padding: 12px 14px; border-radius: var(--r-lg); font: 500 12.5px/1.55 var(--font-mono); color: var(--text-secondary); white-space: pre-wrap; word-break: break-all; }
.welcome { padding-top: 12px; text-align: center; }
.welcome .form { text-align: left; }
.ob-in { animation: ob-in 420ms var(--ease-out) both; }
.ob-in-2 { animation-delay: 80ms; }
@keyframes ob-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ───────── НИЖНЕЕ МЕНЮ — парящая капсула ───────── */
#tabs { position: fixed; z-index: 100; left: 14px; right: 14px; bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); display: flex; justify-content: center; pointer-events: none; }
.nav-capsule { position: relative; pointer-events: auto; width: 100%; max-width: 532px; height: 64px; padding: 6px; border-radius: 999px; display: flex; align-items: stretch;
  background: var(--gl-sheen), linear-gradient(145deg, rgba(255,255,255,.52), rgba(255,255,255,.34));
  -webkit-backdrop-filter: blur(20px) saturate(1.15); backdrop-filter: blur(20px) saturate(1.15);
  box-shadow: var(--gl-line), var(--gl-rim), var(--gl-depth); }
:root[data-theme="dark"] .nav-capsule { background: var(--gl-sheen), linear-gradient(145deg, rgba(48,34,52,.74), rgba(30,22,36,.66)); }
.nav-pill-w { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 4); pointer-events: none; transition: transform var(--dur-base) var(--ease-spring), opacity var(--dur-base) var(--ease-out); will-change: transform; }
.nav-pill { position: absolute; inset: 0; border-radius: 999px; background: var(--gl-lens); box-shadow: 0 6px 14px -8px rgba(120,90,90,.45), inset 0 1px 0 #fff; }
:root[data-theme="dark"] .nav-pill { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 6px 14px -8px rgba(0,0,0,.5); }
.nav-capsule a { position: relative; flex: 1 1 0; min-width: 0; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--text-tertiary); font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0; line-height: 1; }
.nav-capsule a svg { width: 24px; height: 24px; stroke-width: 1.7; }
.nav-capsule a[aria-current="page"] { color: var(--text-primary); }

/* ───────── ПРОЧЕЕ ───────── */
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 90px); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; z-index: 120; padding: 12px 18px; border-radius: 999px; font-size: var(--fs-base); font-weight: 700; max-width: calc(100% - 32px); text-align: center;
  background: var(--gl-sheen), rgba(255,255,255,.78); -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3); box-shadow: var(--gl-line), var(--gl-rim), var(--gl-depth); transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
:root[data-theme="dark"] .toast { background: var(--gl-sheen), rgba(36,26,40,.92); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.loading { padding: 80px 0; text-align: center; color: var(--text-tertiary); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .gl-beam::before, .gl-breath, .page-enter, .ob-in { animation: none !important; }
  .gl-beam::before { opacity: 0; }
  * { transition-duration: 1ms !important; }
}
.reduce-motion .gl-beam::before { animation: none; opacity: 0; }
@media (max-width: 360px) {
  .gl-logo { width: 188px; height: 188px; }
  .gl-drop { width: 168px; height: 168px; }
  .gl-logo__glass, .gl-logo::before { width: 172px; height: 172px; }
}

/* ───────── ЖУРНАЛ, ЗАМЕТКИ, ЛЮБИМЫЕ ───────── */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 18px 8px; text-align: center; }
.stat b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.stat span { font-size: var(--fs-sm); color: var(--text-tertiary); font-weight: 700; }
.cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-h b { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.02em; }
.mini { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--text-primary); }
.mini svg { width: 18px; height: 18px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal .wd { text-align: center; font-size: var(--fs-2xs); font-weight: 700; color: var(--text-tertiary); padding: 2px 0 6px; }
.cal button { position: relative; aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; font-size: var(--fs-base); font-weight: 700; color: var(--text-primary); }
.cal button.off { opacity: .32; cursor: default; }
.cal button.done { background: var(--gl-steel); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 14px -8px rgba(60,80,110,.6); }
.cal button.today { box-shadow: 0 0 0 1.5px rgba(var(--p-a-rgb), .6); }
.cal button.done.today { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 0 2px #fff; }
.cal button i { position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--p-b-hex); }
.cal button b { position: absolute; top: 5px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--p-c-hex); }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 12px; font-size: var(--fs-xs); font-weight: 600; color: var(--text-tertiary); }
.lg { width: 10px; height: 10px; flex: none; border-radius: 50%; display: inline-block; margin-left: 6px; }
.lg:first-child { margin-left: 0; }
.lg.done { background: var(--gl-steel); } .lg.cpt { background: var(--p-b-hex); } .lg.nt { background: var(--p-c-hex); }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 4px; padding: 2px 16px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 44px; padding: 0 16px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.chip[aria-pressed="true"] { background-image: none; background: var(--gl-steel); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 14px -8px rgba(60,80,110,.6); }
.chip[aria-pressed="true"]::after { display: none; }
.item-row { display: flex; align-items: center; border-top: 1px solid var(--hair); }
.item-row:first-of-type { border-top: 0; }
.item-row .item { flex: 1; border-top: 0; min-width: 0; }
.star { width: 44px; height: 44px; flex: none; display: grid; place-items: center; color: var(--text-tertiary); }
.star svg { width: 22px; height: 22px; }
.star.on { color: #9A5F10; }
:root[data-theme="dark"] .star.on { color: #E8B25A; }
.star.on svg { fill: currentColor; }
.detail-top { display: flex; align-items: center; justify-content: space-between; }
textarea.field { padding: 14px 16px; min-height: 96px; resize: vertical; line-height: 1.5; }
.note-status { font-size: var(--fs-xs); color: var(--text-tertiary); text-align: right; margin-top: 6px; min-height: 16px; }

/* центровка: заголовки экранов, подписи, легенда */
.title, .lead, .h2 { text-align: center; text-wrap: balance; }
.lead { margin-left: auto; margin-right: auto; max-width: 36ch; }
.legend { justify-content: center; gap: 6px 10px; text-align: center; }
.lgi { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lgi .lg { margin-left: 0; }
.detail-top { justify-content: flex-start; }
.detail-top .back { margin-right: auto; }
.cal-h { text-align: center; }

/* формы: подписи, подсказки и текст в полях по центру */
.field-w > label, .field-w .hint { text-align: center; padding-left: 0; }
.field { text-align: center; }
textarea.field { text-align: left; }
input[type=date].field, input[type=time].field { text-align: center; text-align-last: center; }
.who { flex: 1 1 auto; }
.who > span:last-child { min-width: 0; }
.who b { display: block; max-width: 100%; }

/* поля: сетка и сами поля не шире своей колонки (на телефонах дата/время раздували ряд за край) */
.field-w, .two > * { min-width: 0; }
.field { min-width: 0; max-width: 100%; box-sizing: border-box; -webkit-appearance: none; appearance: none; }
input[type=date].field, input[type=time].field { display: block; width: 100%; padding: 0 12px; }
input.field::-webkit-date-and-time-value { text-align: center; min-width: 0; margin: 0 auto; }
input.field::-webkit-datetime-edit { padding: 0; flex: 0 1 auto; }
input.field::-webkit-calendar-picker-indicator { margin: 0 0 0 4px; flex: none; }
.two { gap: 12px; }

/* замена занятия, упущенное, список на неделю */
.miss-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; text-decoration: none; padding: 10px 16px; margin-bottom: 12px; border-radius: var(--r-xl); font-size: var(--fs-sm); color: var(--text-secondary); }
.miss-banner b { font-weight: 800; color: var(--text-primary); }
.miss-banner svg { width: 18px; height: 18px; flex: none; }
.miss-link { font-weight: 800; color: var(--text-primary); text-decoration: none; display: block; }
.miss-act { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 700; }
.miss-act a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px 0 0; }
.linkbtn { color: var(--text-secondary); font-weight: 700; font-size: var(--fs-sm); padding: 0 10px; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.sub { display: block; font-size: var(--fs-xs); color: var(--text-tertiary); font-weight: 600; margin-top: 2px; }

/* «Что сейчас важно» */
.srctag { display: inline-block; font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 700; color: var(--text-tertiary); letter-spacing: .04em; white-space: nowrap; }
.warn-sec h3 { color: var(--p-b-text); }

.now-fold summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; min-height: 44px; }
.now-fold summary::-webkit-details-marker { display: none; }
.now-fold summary h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.now-fold .cnt { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-tertiary); }
.now-fold summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--text-tertiary); border-bottom: 2px solid var(--text-tertiary); transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
.now-fold details[open] summary::after { transform: rotate(-135deg); }
.now-fold .bullets { margin-top: 6px; }
.now-fold .cnt { margin-left: 6px; }

/* ───────── ВЕРСИЯ 1.3: новые блоки ───────── */
.cta-sec { text-align: center; }
.cta-sec .linkbtn { margin-top: 4px; }
.leaf.empty { text-align: center; display: grid; gap: 8px; justify-items: center; }
.leaf.empty h3 { font-size: var(--fs-xl); font-weight: 800; }
.leaf.empty p { color: var(--text-secondary); font-size: var(--fs-base); max-width: 34ch; }
.leaf.empty .ghost { margin-top: 4px; text-decoration: none; }
.next-cp { display: block; text-decoration: none; color: inherit; margin-bottom: 4px; }
.next-cp h2 { font-size: 24px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin: 2px 0 6px; text-wrap: balance; }
.next-cp p { font-size: var(--fs-base); color: var(--text-secondary); }
input.search { margin-bottom: 10px; text-align: left; padding: 0 16px; }
.lead.scope { margin: -2px auto 8px; font-size: var(--fs-sm); }
.grp-body { display: grid; }
.more-btn { margin: 8px auto 4px; width: 100%; }
.lib-list > div > .group-t { padding: 0 2px; }
a.act-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
summary .sub { display: block; font-weight: 500; margin-top: 2px; }
.ask-ov { position: fixed; inset: 0; z-index: 200; display: grid; align-items: end; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--scrim); animation: page-enter var(--dur-base) var(--ease-out) both; }
.ask { max-width: 420px; width: 100%; margin: 0 auto; padding: 22px 18px 18px; border-radius: var(--r-4xl); background-color: var(--gl-dense); }
.ask h2 { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.ask p { margin-top: 8px; color: var(--text-secondary); font-size: var(--fs-base); }
.ask-btns { display: grid; gap: 10px; margin-top: 18px; }
.ghost.block { display: flex; width: 100%; }
.tgback .detail-top .back { display: none; }
.tgback .detail-top:not(:has(.star)) { display: none; }
.tgback .detail-top { justify-content: flex-end; }

/* ───────── ВЕРСИЯ 1.6: выбор ребёнка, возраст, прививки ───────── */
.who { cursor: pointer; text-align: left; }
.who svg { width: 16px; height: 16px; flex: none; color: var(--text-tertiary); }
.kid-list { display: grid; gap: 6px; margin-top: 12px; }
.kid-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 10px; border-radius: var(--r-lg); width: 100%; }
.kid-row b { display: block; font-size: var(--fs-lg); font-weight: 800; }
.kid-row small { display: block; font-size: var(--fs-sm); color: var(--text-tertiary); }
.kid-row.on { background: var(--gl-steel-glass); }
.kid-row > svg { width: 20px; height: 20px; flex: none; }
.item > svg { width: 18px; height: 18px; flex: none; color: var(--text-tertiary); }
.item > span:first-child { min-width: 0; }
.item .sub { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--text-tertiary); margin-top: 2px; }
.now-title { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.02em; margin-top: -4px; }
.vax-leaf { display: grid; }
.vax-row { padding: 14px 0; border-top: 1px solid var(--hair); }
.vax-row:first-child { border-top: 0; padding-top: 0; }
.vax-row b { display: block; font-size: var(--fs-lg); font-weight: 800; margin-bottom: 6px; }
.vax-row .gl-live { margin: 0 0 6px; }
.vax-row.next { margin: 6px -8px; padding: 12px 8px; border-radius: var(--r-lg); border-top: 0; box-shadow: inset 0 0 0 1.5px rgba(var(--p-a-rgb), .45); }
.vax-other { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.vax-other li { display: grid; gap: 2px; }
.vax-other b { color: var(--text-primary); font-weight: 700; }

/* напоминания (вкладка «Сегодня») */
.rem-form { max-height: 88vh; overflow-y: auto; }
.wk-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.wk-row .chip { height: 44px; padding: 0; min-width: 0; font-size: var(--fs-xs); }
.text-danger { font-size: var(--fs-sm); font-weight: 700; color: var(--danger-500); text-align: center; }
.item-row .chip { margin-left: 8px; }

/* итоги месяца (журнал) */
.sum-h { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.015em; margin-bottom: 8px; }
.sum-stats { padding: 6px 0 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sum-leaf .sec { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hair); }
.wins { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.wins li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.wins-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 10px; align-items: center; }
.wins-add .field { text-align: left; }

/* галочка согласия: крупная цель, текст рядом */
.agree { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 14px; font-size: var(--fs-sm); line-height: 1.45; color: var(--text-secondary); cursor: pointer; }
.agree input { flex: none; width: 26px; height: 26px; margin: 0; accent-color: var(--p-a-text); cursor: pointer; }

/* дневник ухода: быстрые кнопки, лента записей, столбики */
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.q { display: grid; justify-items: center; align-content: center; gap: 6px; padding: 14px 6px 12px; min-height: 92px; border-radius: 22px; font-weight: 800; font-size: var(--fs-sm); text-align: center; color: var(--text-primary); background-image: var(--gl-sheen), var(--gl-fill); box-shadow: var(--gl-line), var(--gl-rim); }
.q svg { width: 28px; height: 28px; }
.q small { font-weight: 600; color: var(--text-tertiary); font-size: var(--fs-xs); }
.src-line { font-size: var(--fs-xs); color: var(--text-tertiary); margin: 8px 4px 0; line-height: 1.4; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.cchip { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: var(--fs-sm); background: rgba(255,255,255,.4); box-shadow: inset 0 0 0 1px rgba(120,90,90,.15); }
:root[data-theme="dark"] .cchip { background: rgba(255,255,255,.08); }
.tl { display: grid; margin-top: 8px; }
.tl .e { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--hair); min-height: 54px; }
.tl .e:first-child { border-top: 0; }
.tl time { font-weight: 800; font-size: 14px; color: var(--text-secondary); }
.tl b { font-size: 15px; } .tl small { display: block; color: var(--text-tertiary); font-size: var(--fs-xs); font-weight: 600; }
.care-ed { display: grid; gap: 10px; padding: 8px 0 12px; }
.care-ed label { display: grid; gap: 4px; font-size: var(--fs-sm); font-weight: 700; color: var(--text-secondary); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 92px; padding: 6px 2px 0; }
.bars i { flex: 1; border-radius: 8px 8px 3px 3px; background: var(--gl-steel); opacity: .85; }
.bars-l { display: flex; gap: 8px; font-size: 11px; color: var(--text-tertiary); font-weight: 700; margin-top: 4px; }
.bars-l span { flex: 1; text-align: center; }

.gchart { display: block; width: 100%; height: auto; color: var(--text-primary); margin: 6px 0 0; }
.gchart-l { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-tertiary); font-weight: 700; margin-top: 2px; }
.tl .grow-e { grid-template-columns: 96px minmax(0, 1fr) auto; }
.sheet { white-space: pre-line; font-size: var(--fs-base); line-height: 1.6; padding: 12px 0; overflow-wrap: anywhere; }
.sheet.big { font-size: 20px; line-height: 1.55; max-height: 62vh; overflow: auto; }
.btnrow { display: grid; gap: 10px; margin-top: 12px; }
.mood { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.mood button { display: grid; justify-items: center; gap: 4px; padding: 12px 4px; min-height: 76px; border-radius: 20px; font-weight: 700; font-size: var(--fs-sm); color: var(--text-primary); background: rgba(255,255,255,.4); box-shadow: inset 0 0 0 1px rgba(120,90,90,.15); }
.mood button span { font-size: 28px; line-height: 1.1; }
.mood button[aria-pressed="true"] { background: var(--gl-steel); color: #fff; }
:root[data-theme="dark"] .mood button:not([aria-pressed="true"]) { background: rgba(255,255,255,.08); }
.mama-sup { margin-top: 12px; padding: 12px 14px; border-radius: 18px; background: rgba(255,255,255,.35); font-size: var(--fs-base); line-height: 1.5; }
.mama-sup p + p { margin-top: 8px; }
:root[data-theme="dark"] .mama-sup { background: rgba(255,255,255,.07); }
.mp { font-size: var(--fs-base); line-height: 1.5; margin: 0 0 8px; }
.mdl { padding: 8px 0; border-top: 1px solid var(--hair); } .mdl:first-of-type { border-top: 0; }
.mama-src { margin-top: 8px; font-size: var(--fs-xs); color: var(--text-tertiary); }
.mama-src a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.night { position: fixed; inset: 0; z-index: 90; background: #0b0a0d; color: #b9a99a; display: grid; align-content: center; justify-items: center; gap: 22px; padding: 24px; text-align: center; }
.night-clock { font-size: 84px; font-weight: 800; letter-spacing: -.03em; color: #cdb9a5; }
.night-info { font-size: 16px; color: #8d7f72; max-width: 320px; }
.night-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: min(100%, 420px); }
.night-btn { min-height: 120px; border-radius: 26px; background: #1a171c; color: #cdb9a5; font-size: 18px; font-weight: 800; box-shadow: inset 0 0 0 1px #2b262d; }
.night-exit { min-height: 52px; padding: 0 28px; border-radius: 999px; background: transparent; color: #8d7f72; font-size: 16px; font-weight: 700; box-shadow: inset 0 0 0 1px #2b262d; }
