/* Фундамент — тёмная тема, mobile-first. Данные-вперёд, без украшательств. */
:root {
  --bg: #0b0c0e;
  --elev: #141619;
  --elev2: #1c1f24;
  --line: #282c33;
  --text: #e8e9ec;
  --muted: #8a909b;
  --faint: #5b616c;
  --accent: #2dd4bf;
  --accent-2: #5eead4;
  --accent-weak: rgba(45, 212, 191, .13);
  --blue: #60a5fa;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --r: 16px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text); font-family: var(--sans);
  font-size: 16px; line-height: 1.45; overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* ---------- шапка ---------- */
.app-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: rgba(11, 12, 14, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.h-title { font-size: 19px; font-weight: 650; letter-spacing: .2px; }
.h-right { display: flex; align-items: center; gap: 10px; }
.net-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.net-dot.off { background: var(--faint); box-shadow: none; }
.gear { color: var(--muted); }
.gear.active { color: var(--accent); }

/* ---------- основной контейнер ---------- */
.app-main {
  max-width: 560px; margin: 0 auto;
  padding: 14px 14px calc(80px + env(safe-area-inset-bottom));
}

/* ---------- карточки ---------- */
.card {
  background: var(--elev); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px; margin-bottom: 12px;
}
.group-title { margin: 0 0 12px; font-size: 13px; font-weight: 650; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.warn { margin: 10px 0 0; font-size: 13px; color: var(--warn); }
.muted { color: var(--muted); }

/* ---------- шапка даты ---------- */
.head-card { padding: 14px 16px; }
.date-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.date-mid { text-align: center; flex: 1; }
.date-main { font-size: 18px; font-weight: 650; }
.date-sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--elev2); color: var(--text); font-size: 22px; line-height: 1;
}
.icon-btn:disabled { opacity: .32; }
.icon-btn.small { width: 32px; height: 32px; border-radius: 9px; font-size: 17px; }
.icon-btn.danger { color: var(--danger); }
.ghost-btn { display: block; width: 100%; margin-top: 12px; background: none; border: none; color: var(--accent); font-size: 14px; padding: 6px; }

/* прогресс дня */
.progress-wrap { margin-top: 14px; }
.progress-bar { height: 8px; border-radius: 6px; background: var(--elev2); overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 6px; transition: width .3s ease; }
.progress-label { margin-top: 8px; font-size: 14px; }
.progress-num { font-family: var(--mono); font-weight: 600; color: var(--accent); font-size: 15px; }

/* ---------- привычки ---------- */
.habit-list { display: flex; flex-direction: column; gap: 8px; }
.habit {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--elev2); border: 1px solid var(--line); border-radius: 13px;
  padding: 13px 14px; color: var(--text); transition: border-color .15s, background .15s;
}
.habit.on { border-color: var(--accent); background: var(--accent-weak); }
.habit.big { padding: 15px; }
.check {
  flex: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: var(--bg); background: transparent;
}
.habit.on .check { background: var(--accent); border-color: var(--accent); }
.habit-label { flex: 1; font-size: 15.5px; display: flex; flex-direction: column; gap: 2px; }
.milestone-date { font-size: 12px; color: var(--muted); }
.habit-info { flex: none; color: var(--faint); font-size: 16px; padding: 0 2px; align-self: center; }
.habit-tip { background: var(--elev2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 11px 13px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.stat { flex: none; display: flex; flex-direction: column; align-items: flex-end; min-width: 54px; }
.stat-num { font-family: var(--mono); font-size: 22px; font-weight: 600; color: var(--accent); line-height: 1; }
.stat-num.small { font-size: 14px; }
.stat-num.zero { color: var(--faint); }
.stat-cap { font-size: 10.5px; color: var(--muted); margin-top: 3px; text-align: right; }

/* чип статуса синхронизации с Notion */
.sync-chip { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.sync-chip .sync-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.sync-chip.ok .sync-dot { background: var(--ok); box-shadow: 0 0 7px var(--ok); }
.sync-chip.ok { color: var(--ok); }
.sync-chip.pending .sync-dot { background: var(--accent); animation: blink 1s infinite; }
.sync-chip.pending { color: var(--accent); }
.sync-chip.offline .sync-dot { background: var(--warn); }
.sync-chip.offline { color: var(--warn); }
.sync-chip.error .sync-dot { background: var(--danger); }
.sync-chip.error { color: var(--danger); }
@keyframes blink { 50% { opacity: .35; } }

/* кнопка «отметить голосом» в шапке дня */
.head-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.head-tools .sync-chip { margin-top: 0; }
.voice-mark { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-weak); border: 1px solid var(--accent); color: var(--accent); border-radius: 11px; padding: 9px 14px; font-size: 14px; font-weight: 600; }
.vm-ico { display: inline-flex; }

/* доп. поле под привычкой (время подъёма) */
.subfield { display: flex; align-items: center; gap: 10px; padding: 2px 4px 6px 52px; }
.subfield-label { font-size: 13px; color: var(--muted); }
.sleep-panel { padding: 2px 4px 8px 52px; }
.sleep-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sleep-meta { display: flex; gap: 14px; margin-top: 7px; font-size: 12px; }
.sleep-dur { color: var(--accent); font-family: var(--mono); }
.sleep-win.ok { color: var(--ok); }
.sleep-win.late { color: var(--warn); }
.train-panel { display: flex; align-items: center; gap: 12px; padding-left: 52px; }
.tr-elapsed { font-family: var(--mono); font-size: 18px; color: var(--accent); }
.mini-btn.stop { color: var(--danger); border-color: var(--danger); }
.time-input, .num-input, .inp, .note-text, .capture-text {
  background: var(--elev2); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font-size: 16px; padding: 10px 12px; outline: none; width: 100%;
}
.time-input { width: auto; padding: 8px 10px; }
.inp:focus, .num-input:focus, .note-text:focus, .capture-text:focus, .time-input:focus { border-color: var(--accent); }

/* цифры дня */
.num-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.num-field { display: flex; flex-direction: column; gap: 6px; }
.num-label { font-size: 13px; color: var(--muted); }
.num-input-wrap { position: relative; display: flex; align-items: center; }
.num-input { font-family: var(--mono); }
.num-suffix { position: absolute; right: 12px; color: var(--muted); font-size: 14px; pointer-events: none; }

/* ---------- кнопки ---------- */
.wide-btn {
  display: block; width: 100%; margin-top: 10px; padding: 13px; border-radius: 12px;
  border: none; background: var(--accent); color: #062a26; font-size: 15px; font-weight: 650;
}
.wide-btn.ghost { background: var(--elev2); color: var(--text); border: 1px solid var(--line); }
.wide-btn.danger-btn { background: none; border: 1px solid var(--danger); color: var(--danger); }
.wide-btn:disabled { opacity: .6; }
.mini-btn { background: var(--elev2); border: 1px solid var(--line); color: var(--accent); font-size: 13px; padding: 7px 12px; border-radius: 9px; }

/* ---------- захват ---------- */
.capture-card { text-align: center; }
.mic-btn {
  width: 96px; height: 96px; border-radius: 50%; margin: 18px auto 6px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-weak); border: 2px solid var(--accent); color: var(--accent);
}
.mic-btn:disabled { opacity: .4; border-color: var(--line); color: var(--muted); }
.mic-btn.rec { background: var(--accent); color: #062a26; animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(45,212,191,.45); } 100% { box-shadow: 0 0 0 22px rgba(45,212,191,0); } }
.capture-status { min-height: 18px; font-size: 13px; color: var(--accent); margin: 4px 0; }
.capture-text { margin-top: 6px; resize: vertical; line-height: 1.5; text-align: left; }
.capture-actions { display: flex; gap: 10px; align-items: center; }
.capture-actions .wide-btn { flex: 1; }
.capture-actions .ghost-btn { width: auto; margin-top: 10px; }

/* очередь */
.queue-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.queue-head .group-title { margin: 0; }
.queue-item { display: flex; align-items: center; gap: 10px; background: var(--elev2); border: 1px solid var(--line); border-left-width: 3px; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.queue-item.pending { border-left-color: var(--warn); }
.queue-item.sending { border-left-color: var(--accent); }
.queue-item.error { border-left-color: var(--danger); }
.q-main { flex: 1; min-width: 0; }
.q-text { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-status { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* карточка разбора захвата (parse → review → create) */
.cd-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inp.auto { width: auto; padding: 7px 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { background: var(--elev2); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 7px 12px; font-size: 13px; }
.chip.on { background: var(--accent-weak); border-color: var(--accent); color: var(--accent); }
.cd-cover { max-width: 120px; border-radius: 10px; display: block; margin: 2px 0 6px; border: 1px solid var(--line); }
#cd-newproj { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

/* ---------- неделя ---------- */
.sum-list { display: flex; flex-direction: column; }
.sum-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.sum-row:last-child { border-bottom: none; }
.sum-label { font-size: 14.5px; color: var(--text); }
.sum-val { font-family: var(--mono); font-size: 14.5px; color: var(--muted); text-align: right; }
.sum-val.accent { color: var(--accent); }
.note-text { margin-top: 4px; resize: vertical; line-height: 1.5; }

/* ---------- графики ---------- */
.seg-card { padding: 10px; }
.seg-group { display: flex; gap: 6px; background: var(--elev2); border-radius: 11px; padding: 4px; }
.seg { flex: 1; padding: 9px; border: none; background: none; color: var(--muted); border-radius: 8px; font-size: 14px; font-weight: 600; }
.seg.active { background: var(--accent); color: #062a26; }
.chart-holder { margin-top: 4px; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis-y, .chart .axis-x { fill: var(--faint); font-size: 9px; font-family: var(--mono); }
.chart .axis-val { font-size: 11px; font-family: var(--mono); font-weight: 600; }
.chart-empty { padding: 24px 8px; text-align: center; color: var(--muted); font-size: 13px; }

.streak-list { display: flex; flex-direction: column; gap: 14px; }
.streak-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.streak-label { font-size: 14.5px; }
.streak-num { font-family: var(--mono); color: var(--accent); white-space: nowrap; }
.streak-num b { font-size: 18px; }
.streak-num i { font-size: 11px; font-style: normal; color: var(--muted); }
.streak-bar { height: 6px; background: var(--elev2); border-radius: 4px; margin-top: 6px; overflow: hidden; }
.streak-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 4px; }
.streak-cap { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

/* ---------- север ---------- */
.north-hero { text-align: center; padding: 26px 18px; }
.north-star { display: flex; justify-content: center; filter: drop-shadow(0 0 14px rgba(45,212,191,.35)); }
.north-title { margin: 10px 0 6px; font-size: 26px; font-weight: 700; letter-spacing: .5px; }
.north-lead { margin: 0; color: var(--muted); font-size: 14px; max-width: 30ch; margin-inline: auto; }
.north-head { margin: 0 0 12px; font-size: 16px; color: var(--accent-2); }
.north-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.north-list li { display: flex; gap: 10px; font-size: 15.5px; line-height: 1.4; }
.north-dot { color: var(--accent); flex: none; font-size: 13px; margin-top: 3px; }
.north-foot p { margin: 0; color: var(--muted); font-size: 14px; font-style: italic; }

/* ---------- настройки ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field-label { font-size: 13.5px; color: var(--muted); }
select.inp {
  appearance: none; -webkit-appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a909b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
select.inp option { background: var(--elev2); color: var(--text); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.switch-row:last-child { border-bottom: none; }
.chk { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }

.hb-editor { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.hb-row { background: var(--elev2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.hb-line { display: flex; align-items: center; gap: 8px; }
.hb-line .inp { padding: 9px 10px; }
.hb-line .grow { flex: 1; }
.hb-line select.inp { flex: 1; min-width: 0; }
.hidden { display: none; }
.about { text-align: center; }
.about p { color: var(--faint); font-size: 12.5px; margin: 0 0 12px; }
.about .attr { font-size: 10.5px; line-height: 1.45; margin: 10px 0 0; }
.rem-list { display: flex; flex-direction: column; margin-top: 8px; }
.rem-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rem-row:last-child { border-bottom: none; }
.rem-label { flex: 1; font-size: 14px; }
.inp.time { width: auto; padding: 7px 10px; }

/* ---------- нижние вкладки ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-around;
  padding: 8px 4px calc(env(safe-area-inset-bottom) + 8px);
  background: rgba(11, 12, 14, .9); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; color: var(--faint); padding: 4px 2px;
}
.tab-label { font-size: 10.5px; font-weight: 500; }
.tab.active { color: var(--accent); }

/* центральная кнопка-микрофон «Деньги» */
.fab {
  flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #062a26;
  border: none; display: flex; align-items: center; justify-content: center;
  transform: translateY(-16px); box-shadow: 0 8px 24px rgba(45, 212, 191, .4);
}
.fab.active { outline: 3px solid var(--accent-weak); }
.star { color: var(--muted); }
.star.active { color: var(--accent); }

/* экран «Деньги» */
.bal-head { display: flex; justify-content: space-between; align-items: flex-start; }
.bal-cap { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.bal-num { font-family: var(--mono); font-size: 28px; font-weight: 650; margin-top: 2px; }
.money-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.mt-item { background: var(--elev2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.mt-cap { display: block; font-size: 12px; color: var(--muted); }
.mt-val { font-family: var(--mono); font-size: 17px; font-weight: 600; }
.mt-val.expense { color: var(--danger); }
.mt-val.income { color: var(--ok); }
.cat-list { display: flex; flex-direction: column; gap: 11px; }
.cat-row { background: none; border: none; padding: 4px 0; text-align: left; width: 100%; }
.cat-row.on .cat-name { color: var(--accent); }
.cat-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 5px; }
.cat-sum { font-family: var(--mono); color: var(--muted); }
.tx-list { display: flex; flex-direction: column; }
.tx-item { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.tx-item:last-child { border-bottom: none; }
.tx-main { flex: 1; min-width: 0; }
.tx-title { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tx-amount { font-family: var(--mono); font-size: 15px; font-weight: 600; white-space: nowrap; }
.tx-amount.expense { color: var(--danger); }
.tx-amount.income { color: var(--ok); }
.seg-group.small { margin-bottom: 4px; }
.seg-group.small .seg { padding: 7px; font-size: 13px; }
.manual { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }

/* ---------- лист единого захвата (оверлей по центральному микрофону) ---------- */
.sheet-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); display: none; align-items: flex-end; }
.sheet-overlay.open { display: flex; }
.sheet-panel { position: relative; width: 100%; max-width: 560px; margin: 0 auto; background: var(--bg); border-radius: 22px 22px 0 0; border: 1px solid var(--line); max-height: 88vh; overflow-y: auto; padding: 16px 14px calc(20px + env(safe-area-inset-bottom)); }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 1; font-size: 22px; }

/* ---------- главный экран «Дом» ---------- */
.home-top { display: flex; align-items: center; gap: 12px; padding: calc(env(safe-area-inset-top) + 14px) 4px 14px; }
.home-hi { flex: 1; }
.home-hi-sub { font-size: 13px; color: var(--muted); }
.home-hi-name { font-size: 22px; font-weight: 700; }
.home-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #062a26; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 19px; flex: none; }
.search-card { padding: 8px; }
.search-inp { font-size: 15px; }
.search-list { display: flex; flex-direction: column; }
.search-row { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.search-row:last-child { border-bottom: none; }
.search-tag { font-size: 11px; color: var(--accent); background: var(--accent-weak); border-radius: 6px; padding: 2px 7px; flex: none; }
.home-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.home-list { display: flex; flex-direction: column; gap: 9px; }
.home-item { display: flex; align-items: center; gap: 9px; font-size: 14.5px; }
.home-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.home-item-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-item-meta { font-family: var(--mono); font-size: 12.5px; color: var(--muted); flex: none; }
.proj-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.proj-chip { background: var(--elev2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-wd { font-size: 11px; color: var(--faint); padding-bottom: 4px; }
.cal-day { position: relative; font-size: 13px; padding: 7px 0; border-radius: 8px; color: var(--muted); background: none; border: none; }
.cal-day.has { color: var(--text); background: var(--accent-weak); }
.cal-day.today { outline: 1.5px solid var(--accent); color: var(--accent); font-weight: 700; }
.cal-day.sel { background: var(--accent); color: #062a26; font-weight: 700; outline: none; }
.cal-badge { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.cal-day.sel .cal-badge { background: #062a26; }
.cal-tasks { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.cal-tasks-h { font-size: 13px; color: var(--muted); margin-bottom: 8px; }

/* ---------- тост ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(82px + env(safe-area-inset-bottom));
  transform: translate(-50%, 18px); opacity: 0; pointer-events: none;
  background: var(--elev2); color: var(--text); border: 1px solid var(--line);
  padding: 11px 16px; border-radius: 12px; font-size: 14px; max-width: 86%;
  text-align: center; transition: opacity .2s, transform .2s; z-index: 100;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.ok { border-color: var(--ok); }
#toast.warn { border-color: var(--warn); }
#toast.err { border-color: var(--danger); }

@media (max-width: 360px) {
  .num-grid { grid-template-columns: 1fr; }
  .tab-label { font-size: 10px; }
}
