/* Life — дизайн-система. Токены с proekt-n.site, стиль новой iOS. */

/* ---------- Токены ---------- */
:root {
  --bg: #F3F3F6;
  --surface: #FFFFFF;
  --ink: #14172B;
  --ink-2: #3A3F55;
  --mute: #6E7389;
  --line: #E1E2EA;
  --violet: #4F46E5;
  --violet-hover: #4038C9;
  --violet-soft: #EEEDFD;
  --ok: #17946A;
  --warn: #D97706;
  --bad: #DC3545;
  --on-violet: #FFFFFF;

  --glass: rgba(255, 255, 255, 0.72);
  --glass-line: rgba(20, 23, 43, 0.08);
  --scrim: rgba(14, 15, 23, 0.32);

  --r-s: 12px;
  --r-m: 20px;
  --r-l: 28px;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: 17px;
  --fs-title: 34px;
  --fs-btn: 15px;
  --fs-small: 14px;

  --gap: 16px;
  --sidebar-w: 264px;
  --tabbar-h: 64px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0F17;
    --surface: #1A1C28;
    --ink: #F2F3F8;
    --ink-2: #C5C8D6;
    --mute: #8A8FA6;
    --line: #2A2D3C;
    --violet: #7C75FF;
    --violet-hover: #918BFF;
    --violet-soft: #24224A;
    --ok: #2BC18C;
    --warn: #F5A524;
    --bad: #FF6B70;
    --on-violet: #0E0F17;
    --glass: rgba(26, 28, 40, 0.72);
    --glass-line: rgba(242, 243, 248, 0.08);
    --scrim: rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0F17;
  --surface: #1A1C28;
  --ink: #F2F3F8;
  --ink-2: #C5C8D6;
  --mute: #8A8FA6;
  --line: #2A2D3C;
  --violet: #7C75FF;
  --violet-hover: #918BFF;
  --violet-soft: #24224A;
  --ok: #2BC18C;
  --warn: #F5A524;
  --bad: #FF6B70;
  --on-violet: #0E0F17;
  --glass: rgba(26, 28, 40, 0.72);
  --glass-line: rgba(242, 243, 248, 0.08);
  --scrim: rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--violet-hover); }
h1, .h1 { font-size: var(--fs-title); font-weight: 300; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h2, .h2 { font-size: 22px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; margin: 0; }
h3, .h3 { font-size: 17px; font-weight: 500; margin: 0; }
p { margin: 0; }
.mute { color: var(--mute); }
.small { font-size: var(--fs-small); }
.icon { flex: none; display: block; }
[x-cloak] { display: none !important; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Стекло ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-line);
}

/* ---------- Каркас ---------- */
.shell { min-height: 100dvh; }
.content {
  padding: 16px 16px calc(var(--tabbar-h) + 40px + env(safe-area-inset-bottom));
  max-width: 1120px;
  margin: 0 auto;
}
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 8px 0 20px; }
.page-head .eyebrow { color: var(--mute); font-size: var(--fs-small); margin-bottom: 4px; }

/* Верхняя панель (телефон) */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  border-width: 0 0 1px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); font-size: 17px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; background: var(--violet); color: var(--on-violet);
  display: grid; place-items: center; font-weight: 500; font-size: 17px;
}

/* Боковая панель (компьютер) */
.sidebar { display: none; }

/* Плавающее нижнее меню (телефон) */
.tabbar {
  position: fixed; z-index: 30;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  height: var(--tabbar-h);
  border-radius: var(--r-l);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px;
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--mute); font-size: 11px; font-weight: 500; border-radius: 20px;
  background: none; border: 0; font-family: inherit; cursor: pointer;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.tab:hover { color: var(--ink-2); }
.tab[aria-current="page"] { color: var(--violet); background: var(--violet-soft); }

@media (min-width: 900px) {
  .topbar, .tabbar { display: none; }
  .sidebar {
    display: flex; flex-direction: column; gap: 4px;
    position: fixed; z-index: 20; top: 12px; bottom: 12px; left: 12px;
    width: var(--sidebar-w);
    border-radius: var(--r-l);
    padding: 20px 12px;
    overflow-y: auto;
  }
  .sidebar .brand { padding: 0 10px 18px; }
  .content { margin-left: calc(var(--sidebar-w) + 24px); padding: 32px 32px 48px; }
  .page-head { margin-top: 12px; }
}

.nav-group-label { color: var(--mute); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; padding: 16px 12px 6px; }
.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-s);
  color: var(--ink-2); font-size: 16px; font-weight: 400;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav-link:hover { background: var(--violet-soft); color: var(--ink); }
.nav-link[aria-current="page"] { background: var(--violet-soft); color: var(--violet); font-weight: 500; }
.nav-link .ext { margin-left: auto; color: var(--mute); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 16px; }

/* ---------- Карточка ---------- */
.card {
  background: var(--surface);
  border-radius: var(--r-m);
  padding: 20px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-title { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 17px; color: var(--ink); }
.card-title .icon { color: var(--violet); }

/* ---------- Виджеты S / M / L ---------- */
.widgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .widgets { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); } }
.widget {
  background: var(--surface); border-radius: var(--r-l);
  padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  color: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
a.widget:hover { color: inherit; box-shadow: inset 0 0 0 2px var(--violet-soft); }
a.widget:active { transform: scale(0.985); }
.widget--s { grid-column: span 1; min-height: 168px; }
.widget--m { grid-column: span 2; min-height: 168px; }
.widget--l { grid-column: 1 / -1; min-height: 260px; }
.widget-head { display: flex; align-items: center; gap: 8px; color: var(--mute); font-size: var(--fs-small); font-weight: 500; }
.widget-head .icon { color: var(--violet); }
.widget-value { font-size: 34px; font-weight: 300; letter-spacing: -0.02em; line-height: 1; color: var(--ink); }
.widget-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: var(--r-s); border: 1px solid transparent;
  font-family: inherit; font-size: var(--fs-btn); font-weight: 500; line-height: 1;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .1s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--violet); color: var(--on-violet); }
.btn--primary:hover { background: var(--violet-hover); color: var(--on-violet); }
.btn--secondary { background: var(--violet-soft); color: var(--violet); }
.btn--secondary:hover { color: var(--violet-hover); }
.btn--ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn--ghost:hover { background: var(--violet-soft); color: var(--ink); }
.btn--block { width: 100%; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn--icon { width: 44px; padding: 0; }

/* ---------- Сегментированный переключатель ---------- */
.segmented {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 3px; border-radius: var(--r-s); background: var(--line); gap: 2px;
}
.segmented button {
  border: 0; background: transparent; color: var(--ink-2); font-family: inherit;
  font-size: 14px; font-weight: 500; padding: 7px 16px; border-radius: 9px; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); }

/* ---------- Кольцо прогресса ---------- */
.ring { position: relative; display: inline-grid; place-items: center; }
.ring svg { transform: rotate(-90deg); }
.ring .ring-track { stroke: var(--violet-soft); }
.ring .ring-bar { stroke: var(--violet); transition: stroke-dashoffset .6s var(--ease); }
.ring--ok .ring-bar { stroke: var(--ok); }
.ring-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-weight: 500; font-size: 15px; }

/* ---------- Bottom sheet ---------- */
.sheet-scrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim); }
.sheet {
  position: fixed; z-index: 41; left: 0; right: 0; bottom: 0;
  max-height: 85dvh; overflow-y: auto;
  background: var(--surface); border-radius: var(--r-l) var(--r-l) 0 0;
  padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
}
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
@media (min-width: 900px) {
  .sheet { left: 50%; right: auto; bottom: 50%; width: 480px; transform: translate(-50%, 50%); border-radius: var(--r-l); }
  .sheet-grip { display: none; }
}
.sheet-enter { transition: transform .32s var(--ease), opacity .32s var(--ease); }
.sheet-from { transform: translateY(100%); }
@media (min-width: 900px) { .sheet-from { transform: translate(-50%, 60%); opacity: 0; } }
.sheet-list { display: flex; flex-direction: column; gap: 2px; }
.fade-enter { transition: opacity .25s var(--ease); }
.fade-from { opacity: 0; }

/* ---------- Пустое состояние ---------- */
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.empty--center { align-items: center; text-align: center; padding: 32px 16px; }
.empty-icon {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--violet-soft); color: var(--violet);
}
.empty-title { font-weight: 500; color: var(--ink); }
.empty-text { color: var(--mute); font-size: var(--fs-small); }

/* ---------- Формы ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--fs-small); font-weight: 500; color: var(--ink-2); }
.input {
  width: 100%; min-height: 48px; padding: 0 14px;
  border-radius: var(--r-s); border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); font-family: inherit; font-size: var(--fs-body);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.input:focus { outline: none; border-color: var(--violet); background: var(--surface); }
.input--code { letter-spacing: .4em; font-variant-numeric: tabular-nums; }
.errors { background: color-mix(in srgb, #E5484D 12%, var(--surface)); color: #C62F35; border-radius: var(--r-s); padding: 12px 14px; font-size: var(--fs-small); }
:root[data-theme="dark"] .errors { color: #FF8589; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .errors { color: #FF8589; } }

/* ---------- Вход ---------- */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border-radius: var(--r-l); padding: 32px 24px; display: flex; flex-direction: column; gap: 20px; }
.auth-card form { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Прочее ---------- */
.stack { display: flex; flex-direction: column; gap: var(--gap); }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.swatch { border-radius: var(--r-s); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; font-size: 13px; background: var(--surface); }
.swatch i { display: block; height: 56px; }
.swatch span { display: block; padding: 8px 10px; color: var(--ink-2); }

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

/* ---------- Чекбокс ---------- */
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--violet); margin: 0; }

/* ---------- Зоны ---------- */
.ring--green .ring-bar, .ring--ok .ring-bar { stroke: var(--ok); }
.ring--orange .ring-bar { stroke: var(--warn); }
.ring--red .ring-bar { stroke: var(--bad); }
.ring--progress .ring-bar { stroke: var(--violet); }
.z-green { color: var(--ok); } .z-orange { color: var(--warn); } .z-red { color: var(--bad); } .z-none, .z-progress { color: var(--mute); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--line); }
.dot.z-green { background: var(--ok); } .dot.z-orange { background: var(--warn); } .dot.z-red { background: var(--bad); }

/* ---------- Под-навигация разделов ---------- */
.subnav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.segmented a { display: block; text-align: center; color: var(--ink-2); font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 9px; }
.segmented a[aria-current="page"] { background: var(--surface); color: var(--ink); }
.subnav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.datebar { display: flex; align-items: center; gap: 8px; }
.datebar .h2 { min-width: 0; }

/* ---------- Кольца КБЖУ ---------- */
.rings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ring-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.ring-cell .ring-name { font-size: 13px; color: var(--mute); font-weight: 500; }
.ring-cell .ring-sub { font-size: 12px; color: var(--mute); line-height: 1.3; }
.rings--mini .ring-label { font-size: 12px; }

/* ---------- Списки ---------- */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: inherit; min-width: 0; }
.list-row:first-child { border-top: 0; }
a.list-row:hover { color: inherit; }
a.list-row:hover .list-title { color: var(--violet); }
.list-main { flex: 1; min-width: 0; }
.list-title { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-sub { font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-end { text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.thumb { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; background: var(--violet-soft); display: grid; place-items: center; color: var(--violet); }
.badge { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); }
.badge--mute { background: var(--bg); color: var(--mute); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.stat-value { font-size: 28px; font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; }
.stat-label { font-size: 13px; color: var(--mute); }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .span-2 { grid-column: 1 / -1; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.messages { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.msg { padding: 12px 16px; border-radius: var(--r-s); background: var(--violet-soft); color: var(--ink); font-size: 15px; }
.msg--error { background: color-mix(in srgb, var(--bad) 14%, var(--surface)); }

/* ---------- Полоска-календарь зон ---------- */
.zone-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.zone-day { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--mute); min-width: 0; }
.zone-day .bars { display: flex; flex-direction: column; gap: 2px; width: 100%; max-width: 28px; }
.zone-day .bars i { display: block; height: 6px; border-radius: 3px; background: var(--line); }
.zone-day .bars i.z-green { background: var(--ok); } .zone-day .bars i.z-orange { background: var(--warn); } .zone-day .bars i.z-red { background: var(--bad); }
.zone-strip--month { grid-auto-flow: row; grid-template-columns: repeat(7, minmax(0, 1fr)); }

/* ---------- Графики ---------- */
.chart-box { position: relative; height: 240px; }
@media (min-width: 900px) { .chart-box { height: 300px; } }

/* ---------- Тепловая карта ---------- */
.heatmap { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; overflow-x: auto; padding-bottom: 4px; }
.heatmap i { width: 14px; height: 14px; border-radius: 4px; background: var(--bg); display: block; }
.heatmap i.l1 { background: color-mix(in srgb, var(--violet) 45%, var(--surface)); }
.heatmap i.l2 { background: var(--violet); }
.heatmap i.out { visibility: hidden; }
.heatmap a { display: block; }
.sets { display: flex; flex-wrap: wrap; gap: 6px; }
.set-chip { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sortable-ghost { opacity: .4; }
.handle { cursor: grab; color: var(--mute); touch-action: none; }
details.card > summary { cursor: pointer; list-style: none; font-weight: 500; }
details.card > summary::-webkit-details-marker { display: none; }

/* ---------- Телефон: шапка и списки ---------- */
.only-mobile { display: none; }
@media (max-width: 599px) {
  .page-head { flex-wrap: wrap; align-items: center; }
  .datebar h1 { font-size: 28px; white-space: nowrap; }
  .page-head .btn--primary { padding: 0 14px; }
  .list-end .small { display: none; }
  .only-mobile { display: block; }
  .list-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
html, body { overflow-x: hidden; }

/* ---------- Спорт: состояние дня, календарь ---------- */
.state { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.state--done { background: color-mix(in srgb, var(--ok) 16%, var(--surface)); color: var(--ok); }
.state--ongoing { background: var(--violet); color: var(--on-violet); }
.state--upcoming { background: var(--violet-soft); color: var(--violet); }
.heatmap-wrap { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 6px; scrollbar-width: thin; }
.heatmap-days { display: grid; grid-template-rows: 18px repeat(7, 28px); row-gap: 4px; font-size: 11px; color: var(--mute); position: sticky; left: 0; background: var(--surface); z-index: 1; padding-right: 2px; }
.heatmap-days span { display: flex; align-items: center; }
.heatmap2 { display: flex; gap: 4px; }
.hm-week { display: grid; grid-template-rows: 18px repeat(7, 28px); row-gap: 4px; }
.hm-month { font-size: 11px; color: var(--mute); white-space: nowrap; }
.hm-cell { width: 28px; height: 28px; border-radius: 7px; background: var(--bg); display: block; position: relative; }
.hm-on { background: var(--violet); }
.hm-on:hover, .hm-on:focus-visible { background: var(--violet-hover); }
.hm-future { visibility: hidden; }
.hm-today { box-shadow: inset 0 0 0 2px var(--ink-2); }
.hm-tip { position: fixed; z-index: 50; background: var(--ink); color: var(--surface); font-size: 12px; line-height: 1.3;
  padding: 6px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; transform: translate(-50%, calc(-100% - 8px)); }
.pday > summary { list-style: none; }
.pday > summary::-webkit-details-marker { display: none; }
.pday--today > summary .list-title { color: var(--violet); }
.list-more { padding-top: 12px; }

/* ---------- Навигация по периодам ---------- */
.page-head--tight { margin-bottom: 4px; align-items: center; }
.periodbar { margin-bottom: 16px; }
.periodbar-eyebrow { font-size: 13px; color: var(--violet); font-weight: 500; min-height: 18px; }
.periodbar-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.periodbar-title { font-size: 30px; font-weight: 300; letter-spacing: -0.02em; line-height: 1.2; padding: 0 4px; color: var(--ink); }
.periodbar-title--pick { position: relative; cursor: pointer; border-radius: var(--r-s); }
.periodbar-title--pick:hover { background: var(--violet-soft); }
.periodbar-title--pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.btn.is-disabled { opacity: .35; pointer-events: none; }
.zone-day--future { opacity: .35; pointer-events: none; }
@media (max-width: 599px) {
  .periodbar-title { font-size: 24px; flex: 1 1 100%; order: -1; padding: 0; }
}

/* ---------- Логотип «Kristian Life» ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); white-space: nowrap; }
.logo-mark { background: var(--violet); color: var(--on-violet); border-radius: 12px; padding: 5px 10px;
  font-weight: 600; font-size: 16px; line-height: 1.2; letter-spacing: -0.01em; }
.logo-word { font-weight: 500; font-size: 17px; }
/* В тёмной теме — те же цвета плашки, что у прежнего квадрата «L» (--violet и --on-violet темы). */
