﻿:root {
  color-scheme: light;
  --bg: #f3f3f6;
  --card: #ffffff;
  --card-2: #f2f2f5;
  --text: #0e0e11;
  --text-2: #55555e;
  --muted: #8a8a94;
  --line: #e8e8ee;
  --axis: #c9c9d2;
  --ring: rgba(14, 14, 17, 0.06);
  --accent: #2a78d6;
  --accent-soft: rgba(42, 120, 214, 0.12);
  --good: #006300;
  --good-soft: rgba(12, 163, 12, 0.12);
  --bad: #d03b3b;
  --bad-soft: rgba(208, 59, 59, 0.10);
  --warn: #b27500;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
  --shadow: 0 1px 2px rgba(16,16,24,.04), 0 10px 28px -14px rgba(16,16,24,.12);
  --radius: 22px;
  --tabbar-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #09090b; --card: #151518; --card-2: #1f1f23;
    --text: #f4f4f6; --text-2: #b9b9c3; --muted: #85858f;
    --line: #26262b; --axis: #3a3a41; --ring: rgba(255,255,255,.07);
    --accent: #3987e5; --accent-soft: rgba(57,135,229,.16);
    --good: #0ca30c; --good-soft: rgba(12,163,12,.16);
    --bad: #e66767; --bad-soft: rgba(230,103,103,.14); --warn: #fab219;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
    --s5: #d55181; --s6: #0ca30c; --s7: #9085e9; --s8: #e66767;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #09090b; --card: #151518; --card-2: #1f1f23;
  --text: #f4f4f6; --text-2: #b9b9c3; --muted: #85858f;
  --line: #26262b; --axis: #3a3a41; --ring: rgba(255,255,255,.07);
  --accent: #3987e5; --accent-soft: rgba(57,135,229,.16);
  --good: #0ca30c; --good-soft: rgba(12,163,12,.16);
  --bad: #e66767; --bad-soft: rgba(230,103,103,.14); --warn: #fab219;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --s5: #d55181; --s6: #0ca30c; --s7: #9085e9; --s8: #e66767;
  --shadow: none;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
body { font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

#app { max-width: 640px; margin: 0 auto; padding: calc(var(--safe-t) + 12px) 16px calc(var(--tabbar-h) + var(--safe-b) + 96px); }

/* ── header ── */
.top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 8px 2px 18px; }
.top h1 { font-size: 28px; line-height: 1.15; margin: 0; letter-spacing: -0.02em; font-weight: 700; }
.top .sub { color: var(--text-2); margin-top: 4px; font-size: 14px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; flex: none; outline: 1px solid var(--ring); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── cards ── */
.card { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); outline: 1px solid var(--ring); outline-offset: -1px; }
.card.tap { cursor: pointer; transition: transform .12s ease; }
.card.tap:active { transform: scale(.985); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.card-h h2, .card-h h3 { margin: 0; font-size: 15px; font-weight: 600; }
.card-h .link { color: var(--accent); font-size: 14px; background: none; border: 0; padding: 4px 0; font-weight: 500; }
.label { color: var(--text-2); font-size: 13px; font-weight: 500; }
.hero-num { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 4px 0 2px; }
.big-num { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; margin-top: 4px; }
.muted { color: var(--muted); }
.sec { color: var(--text-2); }
.small { font-size: 13px; }
.up { color: var(--good); }
.down { color: var(--bad); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid2 > .card { margin-bottom: 0; }
.grid2 + .card, .grid2 + .section-title { margin-top: 12px; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stats3 > div { background: var(--card-2); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.stats3 b { display: block; font-size: 16px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.section-title { font-size: 20px; font-weight: 700; margin: 22px 2px 10px; letter-spacing: -0.01em; display: flex; justify-content: space-between; align-items: center; }
.section-title button { font-size: 14px; font-weight: 500; color: var(--accent); background: none; border: 0; }

/* progress */
.bar { height: 8px; border-radius: 99px; background: var(--card-2); overflow: hidden; margin-top: 10px; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .4s ease; }
.bar.over > i { background: var(--bad); }
.dots { display: flex; gap: 6px; margin-top: 12px; }
.dots span { flex: 1; height: 28px; border-radius: 8px; background: var(--card-2); display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.dots span.on { background: var(--accent); color: #fff; }
.dots span.today { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ── lists ── */
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; min-height: 56px; }
.row:first-child { border-top: 0; }
.row .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--card-2); display: grid; place-items: center; font-size: 19px; flex: none; }
.row .main { flex: 1; min-width: 0; }
.row .t { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .s { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .r { text-align: right; flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.row .r .s { font-weight: 400; }
.day-h { color: var(--muted); font-size: 13px; font-weight: 600; margin: 14px 2px 2px; display: flex; justify-content: space-between; }
.day-h:first-child { margin-top: 0; }
.empty { text-align: center; color: var(--muted); padding: 22px 8px; font-size: 14px; }
.empty .btn { margin-top: 12px; }

/* category bars */
.cat { padding: 8px 0; cursor: default; }
.cat-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.cat-top b { font-weight: 600; font-variant-numeric: tabular-nums; }
.cat .bar { height: 6px; margin-top: 6px; }

/* allocation */
.stack { display: flex; gap: 2px; height: 14px; border-radius: 99px; overflow: hidden; margin: 12px 0 14px; }
.stack i { display: block; height: 100%; min-width: 3px; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 13px; }
.legend div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend .nm { flex: 1; min-width: 0; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* chips & segmented */
.seg { display: flex; background: var(--card-2); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { flex: 1; border: 0; background: none; padding: 7px 10px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.seg button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.month-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.month-nav b { font-size: 17px; }
.month-nav button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--card); outline: 1px solid var(--ring); font-size: 18px; }
.month-nav button:disabled { opacity: .35; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 0; background: var(--card-2); border-radius: 99px; padding: 8px 12px; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: var(--accent); color: #fff; }
.habit { border: 0; background: var(--card-2); border-radius: 14px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; }
.habit .em { font-size: 20px; }
.habit .hn { flex: 1; font-weight: 500; }
.habit .hs { font-size: 12px; color: var(--muted); }
.habit .chk { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--axis); display: grid; place-items: center; flex: none; }
.habit.on { background: var(--good-soft); }
.habit.on .chk { background: var(--good); border-color: var(--good); }
.habit.on .chk::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); }
.habits { display: grid; gap: 8px; }

/* badges */
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--card-2); color: var(--text-2); }
.badge.up { background: var(--good-soft); color: var(--good); }
.badge.down { background: var(--bad-soft); color: var(--bad); }

/* ── buttons ── */
.btn { border: 0; border-radius: 14px; padding: 13px 18px; font-weight: 600; background: var(--accent); color: #fff; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--card-2); color: var(--text); }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.small { padding: 8px 12px; font-size: 14px; border-radius: 11px; }
.btn:disabled { opacity: .5; }
.btn-row { display: flex; gap: 8px; margin-top: 16px; }
.btn-row .btn { flex: 1; white-space: nowrap; padding-left: 10px; padding-right: 10px; }

/* ── charts ── */
.chart { position: relative; width: 100%; margin-top: 6px; touch-action: pan-y; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .base { stroke: var(--axis); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .mark { fill: var(--accent); transition: opacity .15s; }
.chart .mark.dim { opacity: .38; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--accent); opacity: .10; }
.chart .cross { stroke: var(--axis); stroke-width: 1; }
.chart .dot { fill: var(--accent); stroke: var(--card); stroke-width: 2; }
.tip { position: absolute; pointer-events: none; background: var(--text); color: var(--bg); padding: 6px 9px; border-radius: 9px; font-size: 12px; line-height: 1.3; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .1s; z-index: 2; }
.tip.show { opacity: 1; }
.tip b { font-size: 13px; }

/* ── fab & tabbar ── */
.fab { position: fixed; right: max(16px, calc(50% - 320px + 16px)); bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px); width: 56px; height: 56px; border-radius: 18px; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(42,120,214,.35); z-index: 20; transition: transform .15s; }
.fab:active { transform: scale(.92); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.tabbar a { flex: 1; min-width: 0; max-width: 110px; height: var(--tabbar-h); 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: 500; white-space: nowrap; }
.tabbar a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.on { color: var(--accent); }

/* ── sheet ── */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; opacity: 0; transition: opacity .2s; }
.sheet-bg.show { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; margin: 0 auto; max-width: 640px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; background: var(--card); border-radius: 24px 24px 0 0; padding: 8px 16px calc(20px + var(--safe-b)); transform: translateY(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1); overscroll-behavior: contain; }
.sheet.show { transform: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 9px; background: var(--axis); margin: 2px auto 10px; }
.sheet-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 8px; }
.sheet-h h3 { margin: 0; font-size: 19px; }
.sheet-h .x { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--card-2); font-size: 18px; line-height: 1; color: var(--text-2); }

/* ── forms ── */
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.input, select.input, textarea.input { width: 100%; border: 0; background: var(--card-2); border-radius: 12px; padding: 12px 14px; font-size: 16px; outline: none; appearance: none; -webkit-appearance: none; }
.input:focus { box-shadow: 0 0 0 2px var(--accent); }
textarea.input { min-height: 70px; resize: vertical; }
.amount-input { font-size: 34px; font-weight: 700; text-align: center; background: none; padding: 6px; letter-spacing: -0.02em; }
.amount-input:focus { box-shadow: none; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f3 { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.ex-row { display: grid; grid-template-columns: 1fr 1.1fr 32px; gap: 6px; margin-bottom: 6px; }
.ex-row .input { padding: 10px 12px; font-size: 15px; }
.ex-row button { border: 0; background: none; color: var(--muted); font-size: 18px; }
.hint { font-size: 12px; color: var(--muted); margin: -4px 0 12px; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick button { border: 0; background: var(--card-2); border-radius: 16px; padding: 16px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.quick button span { font-size: 26px; }
.price-row { display: grid; grid-template-columns: 1fr 120px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.price-row:first-child { border-top: 0; }
.kv { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.kv:first-child { border-top: 0; }
.ex-block { padding: 10px 0; border-top: 1px solid var(--line); }
.ex-block b { display: block; margin-bottom: 4px; }
.sets { display: flex; flex-wrap: wrap; gap: 6px; }
.sets span { background: var(--card-2); border-radius: 8px; padding: 3px 8px; font-size: 13px; font-variant-numeric: tabular-nums; }
.sets span.warm { color: var(--muted); }

/* ── misc ── */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 84px); transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .2s; z-index: 60; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.login { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.login .input { text-align: center; font-size: 28px; letter-spacing: .4em; max-width: 220px; }
.url-box { background: var(--card-2); border-radius: 12px; padding: 10px 12px; font-family: ui-monospace, Consolas, monospace; font-size: 14px; word-break: break-all; margin-top: 6px; }
.view-enter { animation: fade .18s ease-out; }
@keyframes fade { from { transform: translateY(5px); } to { transform: none; } }
.view-enter.slide-l { animation: slide-l .24s ease-out; }
.view-enter.slide-r { animation: slide-r .24s ease-out; }
@keyframes slide-l { from { transform: translateX(32px); } to { transform: none; } }
@keyframes slide-r { from { transform: translateX(-32px); } to { transform: none; } }
body.no-chrome .tabbar, body.no-chrome .fab { display: none; }

@media (max-width: 380px) {
  .hero-num { font-size: 30px; }
  .stats3 b { font-size: 14px; }
  .legend { grid-template-columns: 1fr; }
}
/* ═════════ Дизайн v2: чище, воздушнее, без тяжёлых эффектов ═════════ */
body { font-size: 15px; letter-spacing: -0.005em; }
#app { max-width: 680px; padding: calc(var(--safe-t) + 14px) 16px calc(var(--tabbar-h) + var(--safe-b) + 110px); }

.top { margin: 6px 2px 16px; align-items: center; }
.top h1 { font-size: 30px; letter-spacing: -0.03em; font-weight: 750; }
.top .sub { font-size: 14px; color: var(--muted); margin-top: 2px; }
.top-actions { display: flex; gap: 8px; }
.icon-btn { width: 42px; height: 42px; outline: 0; border: 1px solid var(--ring); box-shadow: none; }
.icon-btn.spin svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.card { border-radius: var(--radius); padding: 18px; outline: 0; border: 1px solid var(--ring); }
.card-h h2, .card-h h3 { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.card.hero { background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    var(--card); }
.hero-num { font-size: 38px; font-weight: 750; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.big-num { font-size: 23px; font-weight: 700; letter-spacing: -0.025em; }
.label { font-size: 12.5px; color: var(--muted); font-weight: 550; letter-spacing: 0.01em; }
.section-title { font-size: 21px; font-weight: 750; letter-spacing: -0.025em; margin: 26px 4px 12px; }
.stats3 > div { border-radius: 16px; padding: 11px 12px; }
.stats3 b { font-size: 16.5px; letter-spacing: -0.01em; }
.grid2 { gap: 10px; }
.grid2 > .card { padding: 16px; }

/* иконки строк с мягким цветным фоном */
.row { border-top-color: var(--line); padding: 11px 0; }
.row .ico { width: 42px; height: 42px; border-radius: 14px; font-size: 19px; background: var(--tint, var(--card-2)); }
.row .t { font-weight: 550; letter-spacing: -0.005em; }
@media (hover: hover) { .row:hover { background: linear-gradient(90deg, transparent, var(--card-2) 8%, var(--card-2) 92%, transparent); } }

/* переключатель Финансы: Деньги | Портфель */
.seg-top { display: flex; background: var(--card-2); border-radius: 14px; padding: 4px; margin: 0 0 16px; border: 1px solid var(--ring); }
.seg-top a { flex: 1; text-align: center; text-decoration: none; padding: 9px 10px; border-radius: 11px; font-weight: 600; font-size: 14.5px; color: var(--muted); }
.seg-top a.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.10); }
.seg { border-radius: 13px; }
.seg button.on { box-shadow: 0 1px 3px rgba(0,0,0,.10); }

.month-nav button { outline: 0; border: 1px solid var(--ring); width: 38px; height: 38px; }
.chip { padding: 8px 13px; border: 1px solid transparent; }
.chip.on { background: var(--accent); }
.btn { border-radius: 15px; font-weight: 650; }
.btn:not(.ghost):not(.danger) { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent)); }
.bar { height: 8px; background: color-mix(in srgb, var(--card-2) 80%, var(--line)); }

/* плавающая нижняя панель */
.tabbar { left: 12px; right: 12px; bottom: calc(var(--safe-b) + 10px); max-width: 520px; margin: 0 auto; border-radius: 24px; border: 1px solid var(--ring);
  background: color-mix(in srgb, var(--card) 86%, transparent); padding-bottom: 0;
  box-shadow: 0 12px 32px -12px rgba(0,0,0,.28); }
.tabbar a { max-width: none; font-size: 11px; gap: 4px; position: relative; isolation: isolate; }
.tabbar a.on::before { content: ""; position: absolute; top: 7px; width: 44px; height: 30px; border-radius: 12px; background: var(--accent-soft); z-index: -1; }
.tabbar a svg { width: 23px; height: 23px; }
.fab { bottom: calc(var(--tabbar-h) + var(--safe-b) + 24px); right: max(18px, calc(50% - 340px + 18px)); width: 54px; height: 54px; border-radius: 18px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent)); box-shadow: 0 10px 24px -6px color-mix(in srgb, var(--accent) 60%, transparent); }
.toast { bottom: calc(var(--tabbar-h) + var(--safe-b) + 90px); border-radius: 14px; }

.sheet { border-radius: 28px 28px 0 0; padding: 8px 18px calc(22px + var(--safe-b)); }
.input, select.input, textarea.input { border-radius: 14px; border: 1px solid transparent; }
.input:focus { box-shadow: none; border-color: var(--accent); background: var(--card); }
.quick button { border-radius: 18px; border: 1px solid var(--ring); }

/* статус синхронизации */
.sync-line { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.sync-line i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); display: inline-block; }
.sync-line.err i { background: var(--bad); }
.sync-line i.live { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.sync-line.off i { background: var(--axis); }
.steps { margin: 8px 0 0; padding-left: 20px; font-size: 14px; color: var(--text-2); }
.steps li { margin: 4px 0; }
.steps code, .code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: var(--card-2); padding: 1px 6px; border-radius: 6px; }

/* скелет при загрузке */
.skel { border-radius: var(--radius); background: linear-gradient(90deg, var(--card) 0%, var(--card-2) 50%, var(--card) 100%); background-size: 200% 100%; animation: shimmer 1.2s ease-in-out infinite; border: 1px solid var(--ring); margin-bottom: 12px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* раздел «Работа» */
.wtask { gap: 10px; }
.wtask .main { cursor: pointer; }
.chk-btn { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--axis); background: none; flex: none; display: grid; place-items: center; padding: 0; }
.chk-btn:hover { border-color: var(--good); }
.chk-btn.on { background: var(--good); border-color: var(--good); }
.chk-btn.on::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2.2px 2.2px; transform: rotate(-45deg) translate(1px, -1px); }
.wtask.done .t { text-decoration: line-through; color: var(--muted); }
.badge.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.warn-t { color: var(--warn); }
/* ── визуальные фишки (fx.js) ── */
.spark { display: block; width: 100%; height: 30px; margin-top: 8px; overflow: visible; }
.hero .spark { height: 38px; margin-top: 10px; }
.rings-card { display: flex; align-items: center; gap: 18px; }
.rings { flex: none; }
.rings-legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.rl { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.rl i { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex: none; }
.rl b { font-size: 15px; font-variant-numeric: tabular-nums; }
.treemap { position: relative; border-radius: 14px; overflow: hidden; background: var(--card-2); }
.tm-tile { position: absolute; border: 0; margin: 0; padding: 7px 9px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--card); text-align: left;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 1px; overflow: hidden; font: inherit; cursor: pointer; transition: filter .15s; }
.tm-tile:hover { filter: brightness(1.12); }
.tm-tile b { font-size: 13px; letter-spacing: .01em; }
.tm-tile span { font-size: 16px; font-weight: 750; font-variant-numeric: tabular-nums; }
.tm-tile small { font-size: 11px; opacity: .85; white-space: nowrap; }
@keyframes ring-in { from { stroke-dashoffset: var(--c); } }
@keyframes bar-in { from { transform: scaleY(0); } }
@keyframes w-in { from { width: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.94); } }
.fx-in .ring-fg { animation: ring-in 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.fx-in .chart .mark { transform-box: fill-box; transform-origin: 50% 100%; animation: bar-in .65s cubic-bezier(.2, .8, .2, 1) both; }
.fx-in .chart .area, .fx-in .spark path:first-child { animation: fade-in .9s ease-out both; }
.fx-in .bar > i { animation: w-in .9s cubic-bezier(.2, .8, .2, 1) both; }
.fx-in .tm-tile { animation: pop-in .45s ease-out both; }
.ptr { position: fixed; top: calc(var(--safe-t) + 6px); left: 50%; transform: translate(-50%, -60px); opacity: 0; z-index: 40; width: 40px; height: 40px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--ring); box-shadow: 0 6px 18px rgba(0,0,0,.25); display: grid; place-items: center; font-size: 18px; font-weight: 700;
  color: var(--accent); pointer-events: none; transition: opacity .15s; }
.ptr.ready, .ptr.spin { background: var(--accent); color: #fff; }
.ptr.spin { transition: transform .2s, opacity .2s; }
.ptr.spin span { display: inline-block; animation: spin .8s linear infinite; }

/* календарь тренировок (тепловая карта) */

/* этапы лицензий */
.stage { --st: var(--muted); display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  color: var(--st); background: color-mix(in srgb, var(--st) 15%, transparent); border: 1px solid color-mix(in srgb, var(--st) 30%, transparent); cursor: pointer; }
.stage-none { --st: var(--muted); }
.stage-mrf { --st: var(--s1); }
.stage-pr { --st: var(--s7); }
.stage-arrived { --st: var(--good); }
.stage-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stage-pick.col1 { grid-template-columns: 1fr; }
.stage-pick .stage { justify-content: center; padding: 11px 10px; font-size: 14px; border-radius: 12px; }
.stage-pick .stage.sel { background: var(--st); color: #fff; border-color: var(--st); }
.pipe { display: flex; align-items: stretch; gap: 6px; margin-bottom: 12px; }
.pipe-step { --st: var(--muted); flex: 1; min-width: 0; background: var(--card); border: 1px solid var(--ring); border-top: 3px solid var(--st); border-radius: 14px; padding: 10px 10px 9px; cursor: pointer; }
.pipe-step.sel { background: color-mix(in srgb, var(--st) 12%, var(--card)); border-color: color-mix(in srgb, var(--st) 50%, transparent); }
.pipe-n { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; }
.pipe-l { font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pipe-arrow { align-self: center; color: var(--muted); font-size: 18px; }
.code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: var(--card-2); padding: 2px 7px; border-radius: 6px; }
.lic-row.off .t, .tbl tr.off td { opacity: .5; }
@media (max-width: 420px) { .pipe-arrow { display: none; } .pipe { gap: 5px; } .pipe-step { padding: 8px 7px; } .pipe-n { font-size: 19px; } .pipe-l { font-size: 10.5px; white-space: normal; line-height: 1.2; } }
details summary { list-style: none; padding: 6px 0; }
details summary::-webkit-details-marker { display: none; }

/* элементы бокового меню — только на компьютере */
.side-brand, .side-add, .side-foot { display: none; }

/* ═════════ Компьютер (от 1100px): боковое меню, сетки, таблицы ═════════ */
@media (min-width: 1100px) {
  body { font-size: 14.5px; }
  #app { max-width: none; margin-left: 248px; padding: 26px 34px 40px; }
  #view:not(.desk) { max-width: 760px; margin: 0 auto; }

  .tabbar { top: 0; bottom: 0; left: 0; right: auto; width: 248px; max-width: none; margin: 0; border-radius: 0; border: 0; border-right: 1px solid var(--line);
    flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 2px; padding: 18px 14px; background: var(--card); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tabbar a { flex: none; height: 42px; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 12px; border-radius: 12px; font-size: 14.5px; font-weight: 550; color: var(--text-2); }
  .tabbar a:hover { background: var(--card-2); }
  .tabbar a.on { background: var(--accent-soft); color: var(--accent); }
  .tabbar a.on::before { display: none; }
  .tabbar a svg { width: 21px; height: 21px; }
  .side-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; }
  .side-brand img { border-radius: 10px; }
  .side-brand b { display: block; font-size: 16px; letter-spacing: -0.02em; }
  .side-brand span { display: block; font-size: 12px; color: var(--muted); }
  .side-add { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; margin: 0 2px 14px; border: 0; border-radius: 13px; color: #fff; font-weight: 650;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent)); }
  .side-foot { display: block; margin-top: auto; padding: 12px 10px 0; font-size: 12px; color: var(--muted); line-height: 1.9; border-top: 1px solid var(--line); }
  .kbd { display: inline-block; min-width: 18px; padding: 0 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; font-size: 11px; text-align: center; color: var(--text-2); background: var(--card-2); line-height: 1.5; }
  .fab { display: none; }
  .toast { bottom: 28px; left: calc(50% + 124px); }

  /* формы — окна по центру */
  .sheet { top: 50%; bottom: auto; left: calc(50% + 124px); right: auto; width: min(560px, calc(100vw - 300px)); max-height: 86vh; border-radius: 24px; padding: 14px 22px 22px;
    transform: translate(-50%, -46%); opacity: 0; transition: transform .18s ease, opacity .18s ease; }
  .sheet.show { transform: translate(-50%, -50%); opacity: 1; }
  .sheet .grab { display: none; }

  /* сетки дашборда */
  .desk .top { margin-bottom: 18px; }
  .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 12px; margin-bottom: 16px; }
  .kpi { margin: 0 !important; padding: 15px 16px !important; }
  .kpi .v { font-size: 24px; font-weight: 750; letter-spacing: -0.03em; margin-top: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .kpi .s { font-size: 12.5px; margin-top: 3px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .kpi .bar { margin-top: 9px; height: 6px; }
  .g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .g-side { display: grid; grid-template-columns: 370px minmax(0, 1fr); gap: 16px; align-items: start; }
  .g-main { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 16px; align-items: start; }
  .col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  .col > .card, .g2 > .card, .g3 > .card { margin: 0; }
  .sticky { position: sticky; top: 20px; }
  .desk .section-title { margin: 6px 2px 10px; font-size: 18px; }
  .desk .seg-top { max-width: 360px; }
  .desk .grid2 { margin-bottom: 0; }

  /* таблицы */
  .tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
  .tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
  .tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
  .tbl tr:last-child td { border-bottom: 0; }
  .tbl tbody tr { cursor: pointer; }
  .tbl tbody tr:hover td { background: var(--card-2); }
  .tbl tr.sel td { background: var(--accent-soft); }
  .tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .tbl .nm { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .tbl .nm .ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; background: var(--tint, var(--card-2)); }
  .tbl .nm small { display: block; color: var(--muted); font-size: 12px; }
  .tbl .ellip { max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tbl .badge { white-space: nowrap; }
  .tbl-wrap { overflow-x: auto; margin: 0 -6px; }
  .desk .card-h .btn, .desk .btn.small { white-space: nowrap; }
  .search { width: 190px; padding: 8px 12px !important; font-size: 14px !important; }
  .meal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .meal-grid > .card { margin: 0; }
  .mini-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; cursor: pointer; }
  .mini-row:first-child { border-top: 0; }
  .mini-row b { font-variant-numeric: tabular-nums; }
}
@media (min-width: 1100px) and (max-width: 1500px) {
  .tbl .c-opt { display: none; }
  .tbl td, .tbl th { padding-left: 7px; padding-right: 7px; }
  .tbl { font-size: 13.5px; }
}
@media (min-width: 1100px) and (max-width: 1440px) {
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 > .col:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main { grid-template-columns: minmax(0, 1fr) 380px; }
}
@media (min-width: 1700px) {
  #app { padding: 30px 48px 48px; }
  .kpi .v { font-size: 27px; }
}
/* ═════════ Дизайн-система v3: цвет разделов, иконки, типографика цифр ═════════ */
:root {
  --c-home: #2a78d6; --c-money: #128a5f; --c-work: #5b49cc; --c-food: #d4561f; --c-sport: #d03b3b; --c-health: #c84a7a;
  --hl: inset 0 1px 0 rgba(255, 255, 255, .7);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-home: #3987e5; --c-money: #20b884; --c-work: #9085e9; --c-food: #f07a43; --c-sport: #ee5f5e; --c-health: #e26b9c;
    --hl: inset 0 1px 0 rgba(255, 255, 255, .045);
  }
}
:root[data-theme="dark"] {
  --c-home: #3987e5; --c-money: #20b884; --c-work: #9085e9; --c-food: #f07a43; --c-sport: #ee5f5e; --c-health: #e26b9c;
  --hl: inset 0 1px 0 rgba(255, 255, 255, .045);
}
/* каждый раздел — свой цвет (как в Apple Health): графики, кнопки, активная вкладка, «+» */
:root[data-section="home"] { --accent: var(--c-home); }
:root[data-section="money"] { --accent: var(--c-money); }
:root[data-section="work"] { --accent: var(--c-work); }
:root[data-section="food"] { --accent: var(--c-food); }
:root[data-section="sport"] { --accent: var(--c-sport); }
:root[data-section="health"] { --accent: var(--c-health); }
:root[data-section] { --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent); }
.tabbar a[data-tab="home"] { --tc: var(--c-home); } .tabbar a[data-tab="money"] { --tc: var(--c-money); }
.tabbar a[data-tab="work"] { --tc: var(--c-work); } .tabbar a[data-tab="food"] { --tc: var(--c-food); }
.tabbar a[data-tab="sport"] { --tc: var(--c-sport); } .tabbar a[data-tab="health"] { --tc: var(--c-health); }
.tabbar a.on { color: var(--tc); }
.tabbar a.on::before { background: color-mix(in srgb, var(--tc) 16%, transparent); }
@media (min-width: 1100px) { .tabbar a.on { background: color-mix(in srgb, var(--tc) 14%, transparent); color: var(--tc); } }

/* поверхности: лёгкая подсветка верхнего края, «свечение» главных карточек */
.card { box-shadow: var(--hl), var(--shadow); }
.card.hero {
  background:
    radial-gradient(130% 100% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
    radial-gradient(90% 80% at 0% 110%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%),
    var(--card);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--ring));
}
.fab, .side-add, .btn:not(.ghost):not(.danger) { background: linear-gradient(170deg, color-mix(in srgb, var(--accent) 82%, #fff), var(--accent)); }
.fab { box-shadow: 0 10px 26px -6px color-mix(in srgb, var(--accent) 60%, transparent); }

/* иконки */
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; flex: none; }
.i-sm { width: .95em; height: .95em; }
.i-bad { color: var(--bad); } .i-good { color: var(--good); }
.row .ico .i { width: 21px; height: 21px; }
.row .ico { font-size: 0; }
.card-h h3 { display: flex; align-items: center; gap: 8px; }
.card-h h3 .i { width: 18px; height: 18px; color: var(--accent); }
.cat-n { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.cat-n .i { width: 17px; height: 17px; color: var(--text-2); }
.quick button span { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; color: var(--qc, var(--accent)); background: color-mix(in srgb, var(--qc, var(--accent)) 15%, transparent); }
.quick button .i { width: 25px; height: 25px; }
.stage .i { width: 14px; height: 14px; }
.big-ic { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; background: var(--accent-soft); color: var(--accent); }
.big-ic .i { width: 38px; height: 38px; }
.mini-row .cat-n { flex: 1; }

/* типографика цифр: крупное число, мелкая приглушённая единица */
.u { font-size: .55em; font-weight: 650; color: var(--text-2); margin-left: .14em; letter-spacing: 0; }
.u.pre { margin-left: 0; margin-right: .06em; }
.hero-num, .big-num, .kpi .v { font-feature-settings: "tnum" 1, "ss01" 1; }

/* пустые состояния — с иконкой */
.empty::before { content: ""; display: block; width: 34px; height: 34px; margin: 2px auto 10px; background: currentColor; opacity: .45;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M3 13l3-8h12l3 8v6H3zM3 13h5l1.5 2.5h5L16 13h5'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M3 13l3-8h12l3 8v6H3zM3 13h5l1.5 2.5h5L16 13h5'/></svg>") center / contain no-repeat; }
.chart .empty::before { display: none; }

/* сводка «на сегодня» */
.brief { display: flex; gap: 10px; overflow-x: auto; margin: -4px -16px 14px; padding: 2px 16px 6px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.brief::-webkit-scrollbar { display: none; }
.brief-i { flex: 0 0 auto; min-width: 140px; max-width: 200px; scroll-snap-align: start; background: var(--card); border: 1px solid var(--ring); border-radius: 18px; padding: 12px 14px 11px; box-shadow: var(--hl), var(--shadow); cursor: pointer; text-align: left; }
.brief-i .bi-h { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2); font-weight: 600; }
.brief-i .bi-h .i { color: var(--bc); width: 16px; height: 16px; }
.brief-i b { display: block; font-size: 18px; margin-top: 6px; letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.brief-i small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1100px) { .brief { margin: 0 0 14px; padding: 0 0 4px; flex-wrap: wrap; overflow: visible; } .brief-i { flex: 1 1 0; max-width: none; } }

/* темп трат */
.pace-legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--text-2); margin-top: 8px; }
.pace-legend i { display: inline-block; width: 14px; height: 0; border-top: 2.5px solid var(--accent); vertical-align: middle; margin-right: 6px; border-radius: 2px; }
.pace-legend i.prev { border-top: 2px dashed var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* итоги недели */
.recap-hl { display: grid; gap: 8px; margin-bottom: 12px; }
.recap-hl > div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; font-size: 14px; font-weight: 600; line-height: 1.3;
  background: color-mix(in srgb, var(--bc) 12%, transparent); }
.recap-hl .i { color: var(--bc); width: 18px; height: 18px; flex: 0 0 auto; }
.recap { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rc { position: relative; background: var(--card-2); border-radius: 14px; padding: 11px 12px 10px; cursor: pointer; min-width: 0; }
.rc .bi-h { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); font-weight: 600; }
.rc .bi-h .i { color: var(--bc); width: 15px; height: 15px; }
.rc b { display: block; font-size: 18px; margin-top: 5px; letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rc small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc .dchip { margin-top: 7px; }
.recap .rc:last-child:nth-child(odd) { grid-column: 1 / -1; }
.dchip { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--ring); color: var(--text-2); }
.dchip.good { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.dchip.bad { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }

/* календарь тренировок — сетка месяца */
.mc { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) 30px; gap: 6px 4px; align-items: center; }
.mc-h { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); padding-bottom: 2px; }
.mc-d { aspect-ratio: 1; width: 100%; max-width: 46px; justify-self: center; display: grid; place-items: center; position: relative; border: 0; padding: 0; border-radius: 50%;
  background: none; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mc-d.out { visibility: hidden; }
.mc-d.fut { opacity: .35; }
.mc-d.on { cursor: pointer; color: var(--text); transition: transform .12s; }
.mc-d.on:active { transform: scale(.92); }
.mc-d.l1, .mc-legend .l1 { background: color-mix(in srgb, var(--accent) 28%, var(--card-2)); }
.mc-d.l2, .mc-legend .l2 { background: color-mix(in srgb, var(--accent) 50%, var(--card-2)); }
.mc-d.l3, .mc-legend .l3 { background: color-mix(in srgb, var(--accent) 75%, var(--card-2)); color: #fff; }
.mc-d.l4, .mc-legend .l4 { background: var(--accent); color: #fff; }
.mc-d.now { box-shadow: 0 0 0 2px var(--bg, var(--card)), 0 0 0 3.5px var(--accent); color: var(--text); }
.mc-d i { position: absolute; bottom: 12%; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .85; }
.mc-wk { justify-self: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.mc-wk.ok { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.mc-nav { display: flex; gap: 6px; }
.icon-btn.sm { width: 34px; height: 34px; font-size: 20px; line-height: 1; color: var(--text); }
.icon-btn.sm:disabled { opacity: .3; }
.mc-legend { display: flex; flex-wrap: nowrap; white-space: nowrap; align-items: center; gap: 5px; margin-top: 12px; }
.mc-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.mc-legend .mc-wk { min-width: 18px; height: 18px; font-size: 10px; margin-right: 3px; }
.mc-sep { margin: 0 3px; }
.mc3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.mc-title { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.fx-in .mc-d.on { animation: fade-in .6s ease-out both; }
/* вход по паролю */
.login-f { display: grid; gap: 10px; width: min(320px, 100%); margin: 6px auto 0; text-align: left; }
.chk-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.chk-row input { width: 18px; height: 18px; accent-color: var(--accent); }