/* БАНАН — дизайн-система. Шрифты: Manrope (текст), Unbounded (цифры, заголовки). Иконки: Lucide. */
:root {
  --bg: #070709;
  --bg2: #0e0e11;
  --card: #111114;
  --card2: #18181c;
  --card3: #202026;
  --line: rgba(255, 255, 255, .07);
  --line2: rgba(255, 255, 255, .12);
  --text: #f4f4f1;
  --muted: #8e8e98;
  --dim: #5a5a64;
  --gold: #ffd23f;
  --gold2: #f5a800;
  --gold-soft: rgba(255, 210, 63, .12);
  --gold-ink: #1a1300;
  --grad: linear-gradient(135deg, #ffe27a 0%, #ffd23f 45%, #f5a800 100%);
  --green: #3ddc84;
  --yellow: #f5c542;
  --red: #ff5d5d;
  --fire: #ff8a3d;
  --blue: #5fa8ff;
  --violet: #b18cff;
  --pink: #ff6b9a;
  --r: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --nav-h: 66px;
  --display: 'Unbounded', 'Manrope Variable', system-ui, sans-serif;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 500 15px/1.45 'Manrope Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overscroll-behavior-y: none;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(255, 210, 63, .09), transparent 60%),
    radial-gradient(80% 50% at 100% 0%, rgba(245, 168, 0, .05), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--gold); }
.hidden { display: none !important; }
.ic { flex: none; display: inline-block; vertical-align: middle; }
::selection { background: rgba(255, 210, 63, .35); }

/* ───── Каркас ───── */
#app { max-width: 560px; margin: 0 auto; padding: calc(14px + var(--safe-t)) 16px calc(var(--nav-h) + 40px + var(--safe-b)); }
#app.no-nav { padding-bottom: calc(24px + var(--safe-b)); }
.view > * { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.view > *:nth-child(2) { animation-delay: .03s; } .view > *:nth-child(3) { animation-delay: .06s; }
.view > *:nth-child(4) { animation-delay: .09s; } .view > *:nth-child(5) { animation-delay: .12s; }
.view > *:nth-child(n+6) { animation-delay: .15s; }
.view.still > * { animation: none; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view > * { animation: none; } }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 16px; min-height: 44px; }
.brand { font-family: var(--display); font-weight: 800; letter-spacing: .06em; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.brand .logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; color: var(--gold-ink); box-shadow: 0 6px 18px -6px rgba(255, 190, 0, .6); }
.page-title { font-family: var(--display); font-size: 24px; font-weight: 700; margin: 0; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.page-title .ic { color: var(--gold); }
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.sub { color: var(--muted); font-size: 13px; }
.sync { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); display: inline-block; box-shadow: 0 0 0 3px rgba(255, 255, 255, .04); }
.sync.ok { background: var(--green); } .sync.pending { background: var(--yellow); } .sync.error { background: var(--red); }

/* ───── Нижняя навигация (плавающая) ───── */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 0 12px calc(10px + var(--safe-b)); pointer-events: none; }
.nav-inner {
  pointer-events: auto; max-width: 540px; margin: 0 auto; height: var(--nav-h); display: flex; align-items: stretch; gap: 2px; padding: 6px;
  background: rgba(20, 20, 24, .78); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid var(--line2); border-radius: 24px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .8);
}
.nav a {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--muted); font-size: 10.5px; font-weight: 700; border-radius: 18px; transition: color .2s, background .2s;
}
.nav a .ic { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.nav a.on { color: var(--gold); background: var(--gold-soft); }
.nav a.on .ic { transform: translateY(-1px) scale(1.08); }
.nav a:active .ic { transform: scale(.9); }

/* ───── Карточки ───── */
.card { background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0) 40%), var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 12px; box-shadow: var(--shadow); }
.card.flat { background: transparent; border: 1px dashed var(--line2); box-shadow: none; }
.card.hero {
  position: relative; overflow: hidden; border-color: rgba(255, 210, 63, .22);
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 210, 63, .16), transparent 55%), linear-gradient(160deg, #19160b, #0f0f12 70%);
}
.card.hero::after { content: ''; position: absolute; inset: auto -30% -60% auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 63, .12), transparent 70%); pointer-events: none; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.card h3, .h3 { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.card h3 .ic { color: var(--gold); }
.section-title { font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 24px 4px 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--card2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.stat .k { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.stat .v { font-family: var(--display); font-size: 18px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat .v small { font-size: 12px; color: var(--muted); font-weight: 600; font-family: 'Manrope Variable', sans-serif; }

.num, .big, .huge { font-family: var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.big { font-size: 38px; font-weight: 700; line-height: 1; }
.big small { font-size: 15px; color: var(--muted); font-weight: 600; font-family: 'Manrope Variable', sans-serif; letter-spacing: 0; }
.huge { font-size: 58px; font-weight: 800; line-height: .95; }
.gold-t { color: var(--gold); } .green-t { color: var(--green); } .red-t { color: var(--red); } .yellow-t { color: var(--yellow); } .muted { color: var(--muted); } .fire-t { color: var(--fire); }
.grad-t { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tnum { font-variant-numeric: tabular-nums; }

.bar { height: 8px; background: rgba(255, 255, 255, .07); border-radius: 99px; overflow: hidden; margin-top: 12px; }
.bar > i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .6s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 0 12px rgba(255, 200, 40, .35); }
.bar.green > i { background: linear-gradient(90deg, #2bbf6c, var(--green)); box-shadow: 0 0 12px rgba(61, 220, 132, .3); }
.bar.red > i { background: linear-gradient(90deg, #e34848, var(--red)); box-shadow: none; }
.bar.yellow > i { background: linear-gradient(90deg, #e0a800, var(--yellow)); box-shadow: none; }
.bar.thin { height: 5px; margin-top: 8px; }

/* Кольцо прогресса */
.ring { position: relative; flex: none; }
.ring svg { display: block; filter: drop-shadow(0 4px 14px rgba(255, 190, 0, .25)); }
.ring-val { transition: stroke-dashoffset .8s cubic-bezier(.2, .8, .2, 1); }
.ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-in b { font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1; }
.ring-in b small { font-size: 12px; color: var(--muted); }
.ring-in span { font-size: 10px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }

/* Значки категорий */
.cat-badge { --c: var(--muted); flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); }
.cat-sport { --c: var(--fire); } .cat-work { --c: var(--blue); } .cat-discipline { --c: var(--violet); }
.cat-money { --c: var(--green); } .cat-personal { --c: var(--pink); } .cat-other { --c: #a3a3ad; }
.icon-tile { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(255, 210, 63, .2); flex: none; }

/* ───── Задачи ───── */
.task {
  display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 10px; border-radius: 18px; background: var(--card);
  border: 1px solid var(--line); margin-bottom: 8px; transition: background .25s, border-color .25s, transform .15s;
}
.task:active { transform: scale(.99); }
.task.done { background: rgba(61, 220, 132, .04); border-color: rgba(61, 220, 132, .14); }
.task.done .t-title { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .25); }
.task.main { border-color: rgba(255, 210, 63, .35); box-shadow: 0 0 0 1px rgba(255, 210, 63, .1) inset, 0 8px 24px -14px rgba(255, 190, 0, .5); }
.t-body { flex: 1; min-width: 0; padding: 2px 0; cursor: pointer; }
.t-title { font-weight: 700; font-size: 15.5px; overflow-wrap: anywhere; display: flex; align-items: center; gap: 6px; }
.t-title .ic { color: var(--fire); }
.t-meta { color: var(--muted); font-size: 12px; margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.t-meta span { display: inline-flex; align-items: center; gap: 4px; }
.t-more { background: none; border: 0; color: var(--dim); width: 38px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.t-more:active { background: var(--card2); }

.check {
  flex: none; width: 46px; height: 46px; border-radius: 15px; border: 2px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .02);
  display: grid; place-items: center; transition: all .22s cubic-bezier(.2, .8, .2, 1); padding: 0;
}
.check svg { width: 24px; height: 24px; stroke: var(--gold-ink); stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .3s ease .05s; }
.check.on { background: var(--grad); border-color: transparent; box-shadow: 0 6px 18px -6px rgba(255, 190, 0, .7); animation: pop .35s cubic-bezier(.2, .8, .2, 1.4); }
.check.on svg { stroke-dashoffset: 0; }
.check:active { transform: scale(.9); }
.check.sm { width: 32px; height: 32px; border-radius: 10px; }
.check.sm svg { width: 18px; height: 18px; }
@keyframes pop { 50% { transform: scale(1.12); } }

/* ───── Кнопки и поля ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: var(--text);
  min-height: 50px; padding: 0 18px; border-radius: 16px; border: 1px solid var(--line2);
  background: var(--card2); font-weight: 750; font-size: 15px; transition: transform .12s, background .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); color: var(--gold-ink); border-color: transparent; box-shadow: 0 10px 24px -10px rgba(255, 190, 0, .65); }
.btn.danger { background: rgba(255, 93, 93, .1); color: var(--red); border-color: rgba(255, 93, 93, .25); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.block { width: 100%; }
.btn.lg { min-height: 58px; font-size: 16.5px; border-radius: 18px; }
.btn.sm { min-height: 38px; padding: 0 13px; font-size: 13px; border-radius: 12px; }
.btn.icon-only { width: 42px; min-height: 42px; padding: 0; border-radius: 13px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btns > .btn { flex: 1; }
.link { background: none; border: 0; color: var(--gold); font-weight: 750; padding: 6px 0; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 12px; color: var(--muted); font-weight: 700; margin: 0 0 6px 4px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: 13px 15px; border-radius: 14px; border: 1px solid var(--line2);
  background: var(--bg2); outline: none; font-size: 16px; font-weight: 600; -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s;
}
textarea.input { min-height: 84px; resize: vertical; }
.input:focus { border-color: rgba(255, 210, 63, .6); box-shadow: 0 0 0 4px rgba(255, 210, 63, .12); }
.input::placeholder { color: var(--dim); }
.inline-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.inline-fields > *, .field { min-width: 0; }
input[type=date].input, input[type=time].input { min-width: 0; display: block; padding-right: 10px; }
.input-ic { position: relative; }
.input-ic .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.input-ic .input { padding-left: 42px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line2); background: var(--card2); border-radius: 99px; padding: 9px 14px; font-size: 14px; font-weight: 700; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text); transition: all .18s;
}
.chip.on { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); box-shadow: 0 6px 16px -8px rgba(255, 190, 0, .7); }
.chip.xs { padding: 6px 11px; font-size: 12.5px; }
.chip.add { border-style: dashed; color: var(--muted); }
.scroll-x { overflow-x: auto; flex-wrap: nowrap; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.scroll-x::-webkit-scrollbar { display: none; }

.seg { display: flex; background: var(--bg2); border: 1px solid var(--line2); border-radius: 15px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 10px 6px; border-radius: 11px; font-weight: 750; font-size: 13px; color: var(--muted); transition: all .2s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg button.on { background: var(--card3); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 4px 10px -4px rgba(0, 0, 0, .6); }

.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; background: #2c2c33; border-radius: 99px; transition: .25s; }
.switch i::after { content: ''; position: absolute; width: 26px; height: 26px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s cubic-bezier(.2, .8, .2, 1.2); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.switch input:checked + i { background: var(--gold); }
.switch input:checked + i::after { transform: translateX(20px); background: var(--gold-ink); }
.switch input:disabled + i { opacity: .4; }

.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line2); background: var(--card2); display: grid; place-items: center; color: var(--text); }
.stepper button.plus { background: var(--grad); color: var(--gold-ink); border-color: transparent; box-shadow: 0 6px 16px -8px rgba(255, 190, 0, .7); }
.stepper button:active { transform: scale(.92); }
.stepper input { width: 56px; text-align: center; height: 44px; border-radius: 14px; border: 1px solid var(--line2); background: var(--bg2); font-family: var(--display); font-size: 16px; font-weight: 700; }
.metric { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.metric:last-child { border-bottom: 0; }
.metric .m-name { font-weight: 750; }
.metric .m-val { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ───── Списки ───── */
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item.tap { cursor: pointer; border-radius: 12px; }
.list-item.tap:active { background: rgba(255, 255, 255, .03); }
.li-title { font-weight: 750; overflow-wrap: anywhere; }
.li-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.chev { color: var(--dim); }
.badge { font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 99px; background: var(--card3); border: 1px solid var(--line2); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.badge.gold { background: rgba(255, 210, 63, .12); color: var(--gold); border-color: rgba(255, 210, 63, .25); }
.badge.green { background: rgba(61, 220, 132, .1); color: var(--green); border-color: rgba(61, 220, 132, .25); }
.badge.red { background: rgba(255, 93, 93, .1); color: var(--red); border-color: rgba(255, 93, 93, .25); }
.badge.yellow { background: rgba(245, 197, 66, .1); color: var(--yellow); border-color: rgba(245, 197, 66, .25); }
.empty { color: var(--muted); text-align: center; padding: 22px 12px; font-size: 14px; }
.empty .ic { color: var(--dim); display: block; margin: 0 auto 10px; }

.alert { border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; font-size: 14px; font-weight: 650; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.alert .ic { margin-top: 1px; }
.alert.bad { background: rgba(255, 93, 93, .07); border-color: rgba(255, 93, 93, .22); color: #ffb3b3; }
.alert.over { background: rgba(255, 138, 61, .08); border-color: rgba(255, 138, 61, .25); color: #ffc59b; }
.alert.ok { background: rgba(61, 220, 132, .07); border-color: rgba(61, 220, 132, .22); color: #a6f0c6; }
.alert.info { background: rgba(95, 168, 255, .07); border-color: rgba(95, 168, 255, .22); color: #b9d6ff; }
.alert.warn { background: rgba(245, 197, 66, .07); border-color: rgba(245, 197, 66, .22); color: #ffe499; }
.alert a { color: inherit; font-weight: 800; }

/* ───── Календарь ───── */
.cal-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.cal-head div { text-align: center; font-size: 11px; color: var(--dim); font-weight: 800; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal button {
  aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); padding: 0; color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; font-weight: 750; position: relative; transition: transform .15s;
}
.cal button:active { transform: scale(.92); }
.cal button .e { font-size: 10px; line-height: 1; margin-top: 2px; letter-spacing: -1px; min-height: 10px; }
.cal button.out { visibility: hidden; }
.cal button.off { opacity: .28; }
.cal button.green { background: rgba(61, 220, 132, .14); border-color: rgba(61, 220, 132, .35); color: #b4f5d0; }
.cal button.yellow { background: rgba(245, 197, 66, .13); border-color: rgba(245, 197, 66, .35); color: #ffe792; }
.cal button.red { background: rgba(255, 93, 93, .13); border-color: rgba(255, 93, 93, .35); color: #ffb8b8; }
.cal button.open { border-style: dashed; color: var(--muted); }
.cal button.today { outline: 2px solid var(--gold); outline-offset: 1px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.month-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.month-nav b { font-family: var(--display); font-size: 15px; font-weight: 700; }

/* ───── Листы ───── */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: bgIn .22s ease; }
@keyframes bgIn { from { background: rgba(0, 0, 0, 0); } }
.sheet {
  width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #17171b, #0f0f12 120px); border: 1px solid var(--line2); border-bottom: 0; border-radius: 28px 28px 0 0;
  padding: 10px 18px calc(22px + var(--safe-b)); animation: up .32s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .9);
}
@keyframes up { from { transform: translateY(60px); opacity: .3; } }
.sheet .grip { width: 42px; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .18); margin: 0 auto 14px; }
.sheet h2 { margin: 0 0 16px; font-family: var(--display); font-size: 19px; font-weight: 700; padding-right: 44px; line-height: 1.3; }
.sheet .close-x { float: right; background: var(--card3); border: 0; width: 36px; height: 36px; border-radius: 50%; color: var(--muted); display: grid; place-items: center; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 28px + var(--safe-b)); transform: translateX(-50%) translateY(20px) scale(.96);
  background: rgba(30, 30, 36, .95); backdrop-filter: blur(12px); border: 1px solid var(--line2); color: var(--text); padding: 12px 18px; border-radius: 16px; font-weight: 700;
  z-index: 80; opacity: 0; transition: .3s cubic-bezier(.2, .8, .2, 1); pointer-events: none; max-width: calc(100% - 32px); text-align: center; font-size: 14px; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .8);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }

/* ───── Вход ───── */
.auth { min-height: 90dvh; display: flex; flex-direction: column; justify-content: center; }
.auth .logo { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 26px; background: var(--grad); display: grid; place-items: center; color: var(--gold-ink); box-shadow: 0 20px 50px -14px rgba(255, 190, 0, .7); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px) rotate(-3deg); } }
.auth h1 { text-align: center; font-family: var(--display); font-size: 38px; font-weight: 800; letter-spacing: .1em; margin: 0 0 6px; }
.auth .motto { text-align: center; color: var(--gold); font-weight: 800; letter-spacing: .22em; font-size: 11px; margin-bottom: 30px; }
.auth-card { background: rgba(17, 17, 20, .7); border: 1px solid var(--line2); border-radius: 26px; padding: 18px; backdrop-filter: blur(10px); }
.err { color: var(--red); font-size: 14px; font-weight: 700; min-height: 20px; margin: 2px 4px 10px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.features div { text-align: center; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.features .ic { color: var(--gold); display: block; margin: 0 auto 6px; }

.steps { display: flex; gap: 6px; margin: 6px 0 22px; }
.steps i { flex: 1; height: 4px; border-radius: 9px; background: rgba(255, 255, 255, .08); transition: background .3s; }
.steps i.on { background: var(--grad); }

/* Модули */
.module { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 20px; border: 1px solid var(--line2); background: var(--card); margin-bottom: 10px; cursor: pointer; transition: all .2s; text-align: left; width: 100%; }
.module.on { border-color: rgba(255, 210, 63, .5); background: linear-gradient(135deg, rgba(255, 210, 63, .1), rgba(255, 210, 63, .02)); }
.module .li-sub { margin-top: 3px; }
.module .tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line2); display: grid; place-items: center; color: transparent; flex: none; transition: all .2s; }
.module.on .tick { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }

.chart-box { position: relative; width: 100%; }
.kv { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.kv:last-child { border-bottom: 0; }
.kv > span:first-child { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.kv > b { font-variant-numeric: tabular-nums; text-align: right; }
.delta { font-size: 11.5px; font-weight: 800; margin-left: 6px; }
.delta.up { color: var(--green); } .delta.down { color: var(--red); }

.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menu-grid a { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; text-decoration: none; color: var(--text); font-weight: 800; display: flex; flex-direction: column; gap: 10px; transition: transform .15s; box-shadow: var(--shadow); }
.menu-grid a:active { transform: scale(.97); }
.menu-grid a small { color: var(--muted); font-weight: 600; font-size: 12px; margin-top: -4px; }

.dots { display: flex; gap: 4px; }
.dots i { flex: 1; height: 16px; border-radius: 5px; background: rgba(255, 255, 255, .06); }
.dots i.on { background: var(--grad); }
.dots i.miss { background: rgba(255, 93, 93, .22); }

.date-nav { display: flex; align-items: center; gap: 6px; }
.date-nav button { background: var(--card2); border: 1px solid var(--line2); height: 38px; min-width: 38px; border-radius: 12px; color: var(--muted); display: grid; place-items: center; padding: 0 10px; font-size: 12px; font-weight: 800; }
.motto-line { text-align: center; color: var(--dim); font-size: 10.5px; letter-spacing: .24em; font-weight: 800; margin: 30px 0 6px; }
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.quick button { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; border: 1px solid var(--line2); background: var(--card2); font-weight: 700; font-size: 13.5px; text-align: left; }
.quick button:active { transform: scale(.97); }
.hero-stats { display: flex; gap: 18px; align-items: center; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #cdb562; }
@media (max-width: 360px) { .big { font-size: 32px; } .huge { font-size: 48px; } .nav a { font-size: 9.5px; } }
.chips.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.chips.days .chip { justify-content: center; padding: 7px 0; }
