/* Board styling — tokens from docs/CONVENTIONS.md + the approved "сейчас" mockup.
   This is a standalone static page (no bundler, no src/theme.css access), so the
   palette is redeclared here as CSS custom properties instead of imported.
   No gradients, no decorative shadows — the owner was explicit about that. */

:root {
  color-scheme: dark;
  --bg: #0B1220;
  --panel: #131C2E;
  --panel-line: #1B2537; /* separators BETWEEN rows inside one panel */
  --line: #283448; /* panel/input borders */
  --ink: #F1F5F9;
  --ink-mid: #94A3B8;
  --ink-dim: #64748B;
  --blue: #60A5FA; /* the one accent */
  --amber: #FBBF24; /* soon / warning / draft */
  --rose: #FB7185; /* overdue */
  --green: #2EC27E; /* done */
  --r-panel: 12px;
  --r-screen: 22px;
  --r-pill: 999px;
  --tabbar-h: 60px;
  --fab-size: 52px;
  /* Потолок ширины колонки. Доска рисовалась под телефон, но открывают её и с
     компьютера — а без потолка «во всю ширину» означает буквально во всю: на
     мониторе 1440 поле ввода в модалке разъезжалось на 1406px, одна строка на
     весь экран. Ширина телефона, а не монитора, здесь и есть верная мера:
     строки короткие, глазу не надо ездить через весь стол. Настоящая
     раскладка под широкий экран — отдельное решение, а не побочный эффект. */
  --app-max: 520px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
}

body {
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  overscroll-behavior-y: none;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; padding: 0; cursor: pointer; }
a { color: var(--blue); text-decoration: none; }
.icon { display: block; flex-shrink: 0; }

/* ---------- app shell ---------- */

.app {
  /* height, not min-height: the flex column must be CAPPED to the viewport
     so .content's flex:1 + overflow-y:auto actually contains the scroll —
     with min-height the column grows to fit everything and the whole page
     scrolls instead, dragging the header and the fixed tabbar/FAB out of
     sync with it. */
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;

  max-width: var(--app-max);
  margin: 0 auto;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 14px) 16px 10px;
}

.header h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--ink-dim);
  border-radius: 10px;
}
.icon-btn:active { background: var(--panel); }

.content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 16px calc(var(--tabbar-h) + var(--fab-size) + 40px + env(safe-area-inset-bottom));
}

/* ---------- "сейчас": countdown ---------- */

.countdown { padding: 4px 0 18px; }
.countdown-label { font-size: 11px; color: var(--ink-dim); }
.countdown-days { font-size: 34px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.countdown-date { font-size: 13px; color: var(--ink-dim); margin-top: 2px; }

.btn-set-date {
  margin-top: 8px;
  padding: 10px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
}
.btn-set-date:active { opacity: 0.8; }

/* ---------- tiles ---------- */

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }

.tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 12px 14px;
}
.tile-wide { margin-bottom: 14px; }

.tile-label { font-size: 12px; color: var(--ink-dim); margin-bottom: 4px; }
.tile-value { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.tile-value.amber { color: var(--amber); }
.tile-sub { font-size: 12px; margin-top: 4px; color: var(--ink-dim); }
.tile-sub.amber { color: var(--amber); }

/* ---------- sections ---------- */

.section { margin-bottom: 20px; }
.section-label {
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 8px 2px;
}
.section-title { font-size: 18px; font-weight: 500; margin: 4px 0 14px; }

.panel-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
}

.row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--panel-line);
}
.row:last-child { border-bottom: none; }
.row[data-action] { cursor: pointer; }
.row[data-action]:active { background: rgba(255, 255, 255, 0.02); }
.row.done { opacity: 0.5; }

.row-icon { margin-top: 1px; color: var(--ink-dim); }
.row-icon.rose { color: var(--rose); }
.row-icon.amber { color: var(--amber); }
.row-icon.blue { color: var(--blue); }

.row-body { flex: 1; min-width: 0; }
.row-text {
  font-size: 13px;
  color: var(--ink);
  overflow-wrap: break-word;
}
.row.done .row-text { text-decoration: line-through; color: var(--ink-mid); }

.row-meta { font-size: 12px; color: var(--ink-dim); margin-top: 2px; }
.row-reason { font-size: 12px; margin-top: 2px; color: var(--ink-dim); }
.row-reason.rose { color: var(--rose); }
.row-reason.amber { color: var(--amber); }

.empty-line { padding: 16px 14px; color: var(--ink-dim); font-size: 13px; }

.pill-draft {
  flex-shrink: 0;
  align-self: center;
  font-size: 11px;
  padding: 3px 9px;
  border: 1px solid var(--amber);
  color: var(--amber);
  background: transparent;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

/* ---------- checklist rows (вещи / шаги) ---------- */

.checkbox { display: flex; align-items: center; padding-top: 1px; }
.checkbox input { position: absolute; opacity: 0; width: 28px; height: 28px; margin: 0; cursor: pointer; }
.checkbox-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
}
.checkbox input:checked + .checkbox-box {
  background: var(--green);
  border-color: var(--green);
  color: var(--bg);
}

/* ---------- addresses ---------- */

.cards { display: flex; flex-direction: column; gap: 8px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 12px 14px;
  cursor: pointer;
}
.card:active { opacity: 0.9; }
.card-row { display: flex; align-items: flex-start; gap: 10px; }

.phone-btn {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--blue);
  font-size: 13px;
}
.phone-btn:active { opacity: 0.8; }

/* ---------- dates: "прошло" collapsible group ---------- */

.past-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  color: var(--ink-dim);
  font-size: 13px;
}
.past-toggle .chevron { transition: transform 0.15s ease; color: var(--ink-dim); }
.past-toggle .chevron.up { transform: rotate(180deg); }

/* ---------- bottom tabs + FAB ---------- */

.tabbar {
  position: fixed;
  /* Прибит к окну, а не к колонке, поэтому центруется своей же математикой.
     Проценты в fixed считаются от окна: на узком экране обе стороны дают 0 и
     полоса остаётся во всю ширину, на широком — прижимается к колонке. */
  left: max(0px, calc((100% - var(--app-max)) / 2));
  right: max(0px, calc((100% - var(--app-max)) / 2));
  bottom: 0;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ink-dim);
}
.tab-btn span { font-size: 10px; }
.tab-btn.active { color: var(--blue); }

.fab {
  position: fixed;
  right: calc(max(0px, (100% - var(--app-max)) / 2) + 16px);
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);
  width: var(--fab-size);
  height: var(--fab-size);
  border-radius: 50%;
  background: var(--blue);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fab:active { opacity: 0.85; }

/* Микрофон стоит НАД кнопкой «плюс», а не рядом: у большого пальца одна дуга,
   и два круга в ряд у края экрана попадают друг в друга. */
.fab-mic {
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px + var(--fab-size) + 12px);
  width: 44px;
  height: 44px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink-mid);
}
.fab-mic.on { background: var(--rose); border-color: var(--rose); color: var(--bg); }

/* ---------- empty board ---------- */

.empty-board {
  margin-top: 24px;
  padding: 24px 16px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
}
.empty-board p { margin: 0 0 14px; color: var(--ink-mid); font-size: 14px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  background: var(--blue);
  color: var(--bg);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
}
.btn-primary:active { opacity: 0.85; }

.btn-secondary {
  padding: 11px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--r-pill);
  font-size: 14px;
}
.btn-secondary:active { opacity: 0.85; }

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--rose);
  border-radius: var(--r-pill);
  font-size: 14px;
}
.btn-danger:active { opacity: 0.85; }

/* ---------- full-screen states (loading / no-telegram / 401 / 403 / network) ---------- */

.state-screen {
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px;
  text-align: center;
}
.state-text { margin: 0; color: var(--ink-mid); font-size: 15px; line-height: 1.5; max-width: 320px; }

.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid var(--line);
  border-top-color: var(--blue);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-link {
  padding: 11px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--blue);
  font-size: 14px;
}

/* ---------- modal (bottom sheet) ---------- */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
}

.sheet {
  width: 100%;
  max-width: var(--app-max);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: var(--r-screen) var(--r-screen) 0 0;
  padding-bottom: env(safe-area-inset-bottom);
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
  flex-shrink: 0;
}
.sheet-header h2 { margin: 0; font-size: 16px; font-weight: 500; }

.sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 16px 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 12px; color: var(--ink-dim); }
.field-row { display: flex; gap: 10px; }
/* min-width:0 — иначе поле не ужимается меньше своей «природной» ширины: у
   input[type=date] и type=number она большая, и в Safari пара таких полей в
   одном ряду вылезает за край. Тот же приём уже стоит на .row-body. */
.field-row .field { flex: 1; min-width: 0; }

.field input, .field select, .field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 64px; }

.toggles { display: flex; gap: 20px; padding-top: 4px; }
.switch { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-mid); }
.switch input { width: 18px; height: 18px; accent-color: var(--blue); }

.sheet-actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--panel-line);
}
.sheet-actions .btn-primary { flex: 1; justify-content: center; }

/* ---------- деньги: три числа ---------- */

.tiles-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tiles-3 .tile { min-width: 0; padding: 12px 10px; }
.tiles-3 .tile-value { font-size: 16px; white-space: nowrap; }
.tiles-3 .tile-label, .tiles-3 .tile-sub { font-size: 11px; }
.tiles-note { margin-top: 8px; font-size: 12px; line-height: 1.4; }

.currency-switch { display: flex; gap: 6px; margin: 0 0 12px; }
.cur-btn {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--ink-mid);
  font-size: 13px;
}
.cur-btn.on { border-color: var(--blue); color: var(--blue); }

.money-main {
  margin: 14px 0 0;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
}
.money-main-label { font-size: 12px; color: var(--ink-dim); }
.money-main-value { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.money-main-value.rose { color: var(--rose); }
.money-main-note { margin-top: 4px; font-size: 12px; color: var(--ink-dim); }

.money-warn { margin-top: 10px; font-size: 13px; }

.missing-line {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  text-align: left;
}

/* ---------- календарь ---------- */

.cal {
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
}
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-title { font-size: 15px; font-weight: 500; }
/* Иконка «шеврон» смотрит вниз; месяцы листаются вбок, поэтому её разворачивают. */
.cal-head [data-action="cal-prev"] .icon { transform: rotate(90deg); }
.cal-head [data-action="cal-next"] .icon { transform: rotate(-90deg); }

.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-week { margin: 10px 0 4px; font-size: 11px; color: var(--ink-dim); text-align: center; }

.cal-cell {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-mid);
}
.cal-cell.empty { visibility: hidden; }
.cal-cell.has { color: var(--ink); }
.cal-cell.today { border: 1px solid var(--line); }
/* День вылета — граница «до» и «после», поэтому помечен цветом, а не рамкой. */
.cal-cell.target { background: rgba(96, 165, 250, 0.14); color: var(--blue); }
.cal-cell.picked { background: var(--line); color: var(--ink); }

.cal-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-dim); }
.cal-dot.rose { background: var(--rose); }
.cal-dot.amber { background: var(--amber); }

/* ---------- карта ---------- */

.map {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
  /* Тайлы — это сеть. В офлайн-слепке карты нет намеренно: там остаются адрес,
     телефон и координаты, по которым карты телефона строят точку без интернета. */
}
.map { align-self: stretch; }
.map iframe { display: block; width: 100%; height: 180px; border: 0; }

/* ---------- подробности записи ---------- */

.details-title { font-size: 17px; line-height: 1.35; }
.details-facts { display: flex; flex-direction: column; gap: 8px; }
.details-fact { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.details-fact span { color: var(--ink-dim); }
.details-fact b { font-weight: 500; text-align: right; }

.details-block { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.details-label { font-size: 12px; color: var(--ink-dim); }
.details-text { font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.details-source {
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--panel-line);
  border-radius: 10px;
  align-self: stretch;
}

/* ---------- мелочи строк ---------- */

/* Скрепка приколотой записи. Иконкой, а не словом: слово занимало место срока,
   и приколотая запись из-за этого теряла и дату, и цвет. */
.row-pin { display: flex; align-items: center; color: var(--ink-dim); flex-shrink: 0; }
.mark-paid {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-dim);
}
.mark-paid:active { border-color: var(--green); color: var(--green); }
.muted { color: var(--ink-dim); }
.green { color: var(--green); }

/* ---------- toast ---------- */

#toast-root {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 60;
}
.toast {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  max-width: 100%;
}
.toast.error { border-color: var(--rose); color: var(--rose); }

/* Техническая строка под сообщением об отказе: короткая, приглушённая,
   моноширинная. Нужна не человеку, а тому, кто чинит — поэтому не кричит. */
.state-detail {
  margin-top: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.5;
  color: #64748B;
  word-break: break-word;
}

/* ── Поток заказов ─────────────────────────────────────────────────────────
   Карточка потока — это ещё не запись доски: решение по ней принимают глядя
   на оригинал, поэтому ссылка на первоисточник видна всегда. */

.flow-list { display: flex; flex-direction: column; gap: 10px; }

.flow-card {
  background: var(--panel, #131C2E);
  border: 1px solid var(--line, #283448);
  border-radius: 12px;
  padding: 12px 14px;
}

.flow-head { display: flex; align-items: baseline; gap: 8px; }
.flow-title { flex: 1; font-size: 15px; line-height: 1.35; }

.flow-budget {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--accent, #6EA8FE);
  font-size: 14px;
}

.flow-tldr { margin-top: 6px; color: var(--muted, #94A3B8); font-size: 13px; line-height: 1.45; }

.flow-bullets { margin: 8px 0 0; padding-left: 18px; color: var(--muted, #94A3B8); font-size: 13px; }
.flow-bullets li { margin: 2px 0; }

.flow-meta {
  margin-top: 10px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 12px; color: var(--dim, #64748B);
}
.flow-meta a { color: var(--accent, #6EA8FE); text-decoration: none; }
.flow-meta a:hover { text-decoration: underline; }

.flow-actions { margin-top: 10px; display: flex; gap: 8px; }
.flow-actions button {
  flex: 1;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid var(--line, #283448);
  background: transparent;
  color: var(--text, #F1F5F9);
  font-size: 13px;
  cursor: pointer;
}
.flow-actions button:hover { background: var(--line, #283448); }

.pill-verdict {
  padding: 2px 8px; border-radius: 999px; font-size: 12px; white-space: nowrap;
}
.pill-verdict.v-take  { background: rgba(46,194,126,.16); color: #2EC27E; }
.pill-verdict.v-later { background: rgba(251,191,36,.16); color: #FBBF24; }
.pill-verdict.v-skip  { background: rgba(100,116,139,.18); color: #64748B; }

/* ── Перенос длинных строк ───────────────────────────────────────────────────
   Заголовки из телеграм-каналов — это часто сплошная ссылка или цепочка
   хештегов без пробелов. Такая строка не переносится и вытаскивает карточку за
   экран: замерено, flow-title уходил на 665 пикселей при ширине окна 375. */

.flow-card, .flow-head, .flow-title, .flow-tldr, .flow-bullets li, .flow-meta {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.flow-head { flex-wrap: wrap; }
.flow-meta a { overflow-wrap: anywhere; }

/* ── Фильтр потока ─────────────────────────────────────────────────────────── */

.flow-filter { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.flow-filter input[type="search"] {
  width: 100%; padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--line, #283448); background: var(--panel, #131C2E);
  color: var(--text, #F1F5F9); font-size: 14px;
}
.filter-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chips button {
  flex: 0 0 auto; padding: 6px 11px; border-radius: 999px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--line, #283448); background: transparent; color: var(--muted, #94A3B8);
}
.filter-chips button.on { background: var(--accent, #6EA8FE); border-color: var(--accent, #6EA8FE); color: #0B1220; }

/* ── Закладка на карточке потока ────────────────────────────────────────────── */

.flow-star {
  flex: 0 0 auto; background: none; border: none; cursor: pointer;
  color: var(--dim, #64748B); padding: 0 2px; line-height: 1;
}
.flow-star.on { color: #FBBF24; }
.flow-saved-by { font-size: 12px; color: #FBBF24; }

/* ── Переключатель вида в окне добавления ───────────────────────────────────── */

.kind-switch { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.kind-switch::-webkit-scrollbar { display: none; }
.kind-switch button {
  flex: 0 0 auto; padding: 7px 13px; border-radius: 999px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--line, #283448); background: transparent; color: var(--muted, #94A3B8);
}
.kind-switch button.on { background: var(--accent, #6EA8FE); border-color: var(--accent, #6EA8FE); color: #0B1220; }

/* Дата больше не растягивается на всю ширину — она короткая по смыслу. */
.field input[type="date"], .field input[type="number"] { max-width: 190px; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.field-row > .field { flex: 1 1 140px; min-width: 0; }
