/* ============================================================
   Payment Manager — дизайн-система «Ledger» v1
   Плотный рабочий интерфейс для финансовой CRM: тёплая «бумага»
   в светлой теме, графит в тёмной, акцент — глубокий изумруд.
   Без внешних шрифтов и CDN: ничего не грузится со сторонних серверов.
   ============================================================ */

:root {
  /* --- база --- */
  --bg: #F5F4EF;
  --surface: #FFFFFF;
  --surface-2: #FAF9F5;
  --surface-3: #F0EEE7;
  --line: #E3E0D6;
  --line-strong: #CFCAbb;
  --text: #16181D;
  --text-2: #565A63;
  --text-3: #8A8D94;

  /* --- акцент (бренд) --- */
  --accent: #0B6E5F;
  --accent-hover: #095A4E;
  --accent-soft: #E2F0EC;
  --accent-ink: #FFFFFF;
  --focus: rgba(11, 110, 95, .28);

  /* --- боковая панель (тёмная в обеих темах) --- */
  --rail: #12171F;
  --rail-2: #1A212B;
  --rail-line: #252D39;
  --rail-text: #AEB7C3;
  --rail-text-strong: #F2F4F7;
  --rail-active: #22303C;

  /* --- смысловые тона (чипы, подсветки) --- */
  --ok: #1D7349;      --ok-bg: #E4F3EA;
  --warn: #8F5B00;    --warn-bg: #FBF0D6;
  --bad: #B3261E;     --bad-bg: #FCE9E7;
  --info: #1C5CA3;    --info-bg: #E6EFFA;
  --violet: #5A3EB5;  --violet-bg: #EEEAFB;
  --muted: #5B5F67;   --muted-bg: #EEEDE7;

  /* --- типографика --- */
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, ui-monospace, "SFMono-Regular", Menlo, monospace;
  --fs-xs: 11.5px; --fs-sm: 12.5px; --fs: 13.5px; --fs-md: 15px; --fs-lg: 18px; --fs-xl: 22px; --fs-2xl: 28px;

  /* --- форма --- */
  --r-sm: 5px; --r: 8px; --r-lg: 12px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px;
  --shadow-1: 0 1px 2px rgba(22, 24, 29, .05);
  --shadow-2: 0 8px 28px rgba(22, 24, 29, .10);
  --row-h: 38px;
  --rail-w: 236px;
}

html[data-theme="dark"] {
  --bg: #0E1116;
  --surface: #151A21;
  --surface-2: #181E26;
  --surface-3: #1E252F;
  --line: #262D38;
  --line-strong: #343D4A;
  --text: #E8EBEF;
  --text-2: #A2AAB6;
  --text-3: #727B88;
  --accent: #2FB39B;
  --accent-hover: #47C7AF;
  --accent-soft: #15302C;
  --accent-ink: #06231E;
  --focus: rgba(47, 179, 155, .35);
  --rail: #0A0D11;
  --rail-2: #11161C;
  --rail-line: #1C232C;
  --rail-active: #18222B;
  --ok: #4FC489;      --ok-bg: #12281D;
  --warn: #E2B04A;    --warn-bg: #2C2312;
  --bad: #F07A70;     --bad-bg: #331917;
  --info: #6EA8EE;    --info-bg: #142337;
  --violet: #A892F2;  --violet-bg: #221C38;
  --muted: #9AA2AE;   --muted-bg: #1E242C;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }
svg[viewBox="0 0 24 24"] { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.icon-grid svg { width: 18px; height: 18px; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: var(--fs)/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; }
h1 { font-size: var(--fs-xl); font-weight: 650; }
h2 { font-size: var(--fs-lg); font-weight: 620; }
h3 { font-size: var(--fs-md); font-weight: 600; }
h4 { font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
p { margin: 0 0 var(--s3); }
code, .mono { font-family: var(--mono); font-size: .92em; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.dim { color: var(--text-2); }
.faint { color: var(--text-3); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ================= каркас ================= */
.app { display: grid; grid-template-columns: var(--rail-w) 1fr; min-height: 100vh; }
.rail {
  background: var(--rail); color: var(--rail-text); border-right: 1px solid var(--rail-line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; color: var(--rail-text-strong); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(140deg, #13917C, #0B6E5F 60%, #084F45); color: #fff;
  font: 700 13px/1 var(--font); letter-spacing: -.02em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.brand-name { font-weight: 650; font-size: 14px; line-height: 1.15; }
.brand-name small { display: block; font-weight: 500; font-size: 11px; color: var(--rail-text); letter-spacing: .02em; }

.ws-switch { margin: 4px 12px 10px; }
.ws-switch form { display: flex; gap: 4px; background: var(--rail-2); border: 1px solid var(--rail-line);
  border-radius: var(--r); padding: 3px; }
.ws-switch button {
  flex: 1; border: 0; background: transparent; color: var(--rail-text); border-radius: 6px; padding: 5px 6px;
  font: 600 12px/1 var(--font); cursor: pointer;
}
.ws-switch button[aria-pressed="true"] { background: var(--rail-active); color: var(--rail-text-strong);
  box-shadow: inset 0 0 0 1px var(--rail-line); }
.ws-switch button:hover { color: var(--rail-text-strong); }

.nav { padding: 4px 8px 16px; flex: 1; }
.nav-group { margin-top: 14px; }
.nav-group > span { display: block; padding: 0 10px 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: #6C7685; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 7px; color: var(--rail-text);
  font-weight: 500; font-size: 13px; text-decoration: none; position: relative;
}
.nav a:hover { background: var(--rail-2); color: var(--rail-text-strong); }
.nav a[aria-current="page"] { background: var(--rail-active); color: var(--rail-text-strong); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -8px; top: 7px; bottom: 7px; width: 3px;
  border-radius: 0 3px 3px 0; background: #2FB39B; }
.nav svg { width: 16px; height: 16px; flex: none; opacity: .85; }
.nav .count { margin-left: auto; font: 600 11px/1 var(--font); padding: 3px 6px; border-radius: 99px;
  background: var(--rail-2); color: var(--rail-text); }
.nav .count.hot { background: #3A2A12; color: #F2C46B; }
.nav .soon { margin-left: auto; font-size: 10px; color: #5E6876; letter-spacing: .03em; }
.rail-foot { padding: 12px 16px; border-top: 1px solid var(--rail-line); font-size: 12px; display: flex;
  align-items: center; gap: 10px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 var(--font);
  background: #233140; color: #CFE3F5; flex: none; }
.rail-foot .who { line-height: 1.25; color: var(--rail-text-strong); min-width: 0; }
.rail-foot .who small { display: block; color: var(--rail-text); font-size: 11px; }
.rail-foot form { margin-left: auto; }
.icon-btn { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 6px; border-radius: 6px;
  display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--rail-2); }
.icon-btn svg { width: 16px; height: 16px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 56px; display: flex; align-items: center; gap: var(--s4); padding: 0 var(--s6);
  border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 5;
}
.crumbs { font-size: var(--fs-sm); color: var(--text-3); display: flex; gap: 6px; align-items: center; min-width: 0; }
.crumbs a { color: var(--text-2); }
.search { margin-left: auto; position: relative; }
.search input { width: 300px; padding-left: 32px; background: var(--surface-2); }
.search svg { position: absolute; left: 10px; top: 50%; translate: 0 -50%; width: 15px; height: 15px; color: var(--text-3); }
.topbar .icon-btn { color: var(--text-2); position: relative; }
.topbar .icon-btn:hover { background: var(--surface-3); }
.dot { position: absolute; top: 4px; right: 4px; min-width: 15px; height: 15px; border-radius: 99px; background: var(--bad);
  color: #fff; font: 700 9.5px/15px var(--font); text-align: center; padding: 0 3px; }

.page { padding: var(--s6); max-width: 1480px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap; }
.page-head .sub { color: var(--text-2); margin-top: 4px; font-size: var(--fs-sm); }
.page-head .actions { margin-left: auto; display: flex; gap: var(--s2); flex-wrap: wrap; }

/* ================= элементы управления ================= */
.btn {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: var(--r);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer;
  font: 550 13px/1 var(--font); text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-1);
}
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn-danger:hover { background: var(--bad-bg); }
.btn-ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-sm { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 6px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

input[type=text], input[type=search], input[type=password], input[type=email], input[type=number], input[type=date],
input[type=url], select, textarea {
  height: 32px; padding: 0 10px; border-radius: var(--r); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: var(--fs) var(--font); min-width: 0;
}
textarea { height: auto; padding: 8px 10px; resize: vertical; min-height: 72px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
input[type=file] { font: var(--fs-sm) var(--font); color: var(--text-2); }
label.field { display: grid; gap: 5px; font-size: var(--fs-sm); color: var(--text-2); font-weight: 500; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s3) var(--s4); }
.form-row { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.hint { font-size: var(--fs-xs); color: var(--text-3); }

/* ================= поверхности ================= */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.card-head { display: flex; align-items: center; gap: var(--s3); padding: 12px var(--s4); border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 14px; }
.card-head .more { margin-left: auto; font-size: var(--fs-sm); }
.card-body { padding: var(--s4); }
.card + .card { margin-top: var(--s4); }
.grid { display: grid; gap: var(--s4); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-side { grid-template-columns: minmax(0, 1fr) 360px; }
@media (max-width: 1180px) { .grid-side, .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* показатели */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--s3); margin-bottom: var(--s4); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--shadow-1); }
.stat .k { font-size: var(--fs-sm); color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.stat .v { font: 650 26px/1.15 var(--font); font-variant-numeric: tabular-nums; margin-top: 6px; letter-spacing: -.02em; }
.stat .d { font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }
.stat .bar { height: 4px; border-radius: 3px; background: var(--surface-3); margin-top: 10px; overflow: hidden; display: flex; }
.stat .bar i { display: block; height: 100%; }

/* воронка подключений */
.pipeline { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 1px; background: var(--line);
  border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.pipeline a { background: var(--surface); padding: 10px 12px; color: var(--text); text-decoration: none; display: block; }
.pipeline a:hover { background: var(--surface-2); }
.pipeline .n { font: 650 20px/1.2 var(--font); font-variant-numeric: tabular-nums; }
.pipeline .l { font-size: var(--fs-xs); color: var(--text-2); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
@media (max-width: 1180px) { .pipeline { grid-template-columns: repeat(4, 1fr); } }

/* ================= чипы и метки ================= */
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px; border-radius: 99px;
  font: 560 11.5px/1 var(--font); white-space: nowrap; background: var(--muted-bg); color: var(--muted);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.chip.plain::before { display: none; }
.t-ok { background: var(--ok-bg); color: var(--ok); }
.t-warn { background: var(--warn-bg); color: var(--warn); }
.t-bad { background: var(--bad-bg); color: var(--bad); }
.t-info { background: var(--info-bg); color: var(--info); }
.t-accent { background: var(--violet-bg); color: var(--violet); }
.t-muted { background: var(--muted-bg); color: var(--muted); }
.sw { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: currentColor; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 4px; border: 1px solid var(--line);
  font: 550 11px/1 var(--font); color: var(--text-2); background: var(--surface-2); white-space: nowrap; }
.tag.mono { font-family: var(--mono); font-size: 10.5px; }
.ws-tag { font: 700 10px/1 var(--font); letter-spacing: .04em; padding: 3px 5px; border-radius: 4px;
  background: var(--surface-3); color: var(--text-2); }
.level { font: 700 10.5px/1 var(--font); text-transform: uppercase; letter-spacing: .06em; padding: 4px 7px; border-radius: 4px; }
.level.green { background: var(--ok-bg); color: var(--ok); }
.level.yellow { background: var(--warn-bg); color: var(--warn); }
.level.red { background: var(--bad-bg); color: var(--bad); }
.src { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--text-3); }
.src svg { width: 12px; height: 12px; }
.conf { font: 600 10.5px/1 var(--mono); color: var(--text-3); }
.verified { color: var(--ok); }
.unverified { color: var(--warn); }

/* ================= таблицы ================= */
.toolbar { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; padding: 10px var(--s4);
  border-bottom: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.toolbar .grow { flex: 1; }
.toolbar select, .toolbar input { height: 30px; font-size: var(--fs-sm); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: var(--s4); }
.tabs a { padding: 9px 12px; color: var(--text-2); font-weight: 550; border-bottom: 2px solid transparent; margin-bottom: -1px;
  text-decoration: none; display: flex; gap: 6px; align-items: center; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.tabs .c { font: 600 11px/1 var(--font); color: var(--text-3); }

.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs); }
table.t th {
  position: sticky; top: 0; background: var(--surface-2); text-align: left; font: 600 11.5px/1.2 var(--font);
  color: var(--text-2); text-transform: none; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.t td { padding: 0 12px; height: var(--row-h); border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover td { background: var(--surface-2); }
table.t tr.clickable { cursor: pointer; }
table.t td.title a { color: var(--text); font-weight: 560; }
table.t td.title a:hover { color: var(--accent); }
table.t td .sub { display: block; font-size: var(--fs-xs); color: var(--text-3); line-height: 1.25; margin-top: 1px; }
table.t.compact td { height: 32px; }
table.t td.wrap { white-space: normal; padding-top: 7px; padding-bottom: 7px; height: auto; }
.table-foot { padding: 9px var(--s4); font-size: var(--fs-sm); color: var(--text-3); border-top: 1px solid var(--line); }

/* ключ-значение */
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 8px 14px; font-size: var(--fs); }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; min-width: 0; }

/* временная шкала */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 14px 22px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 7px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 19px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .when { font-size: var(--fs-xs); color: var(--text-3); }
.timeline .what { font-size: var(--fs); }

/* пустые состояния, плашки */
.empty { text-align: center; padding: 40px 20px; color: var(--text-2); }
.empty svg { width: 36px; height: 36px; color: var(--text-3); margin-bottom: 8px; }
.empty h3 { margin-bottom: 4px; color: var(--text); }
.notice { display: flex; gap: 10px; padding: 10px 14px; border-radius: var(--r); font-size: var(--fs-sm);
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); margin-bottom: var(--s4); }
.notice svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.notice.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.notice.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.notice.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.notice.info { background: var(--info-bg); color: var(--info); border-color: transparent; }

/* дифф для согласований */
.diff { font-size: var(--fs-sm); display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; }
.diff .old { color: var(--bad); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.diff .new { color: var(--ok); font-weight: 560; }

/* полоса прогресса импорта */
.meter { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--surface-3); }
.meter i { display: block; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--text-2); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* вход */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.login-art { background: var(--rail); color: var(--rail-text); padding: 48px; display: flex; flex-direction: column;
  justify-content: space-between; position: relative; overflow: hidden; }
.login-art::after { content: ""; position: absolute; inset: auto -120px -160px auto; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(47,179,155,.28), rgba(47,179,155,0) 62%); }
.login-art h2 { color: var(--rail-text-strong); font-size: 30px; line-height: 1.15; font-weight: 650; max-width: 420px; letter-spacing: -.02em; }
.login-art ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: 14px; }
.login-art li { display: flex; gap: 10px; align-items: center; }
.login-art li svg { width: 16px; height: 16px; color: #2FB39B; }
.ledger-lines { position: absolute; inset: 0; background-image: linear-gradient(transparent 31px, rgba(255,255,255,.035) 32px);
  background-size: 100% 32px; pointer-events: none; }
.login-form { display: grid; place-items: center; padding: 32px; background: var(--bg); }
.login-box { width: 360px; }
.login-box h1 { margin-bottom: 6px; }
.login-box form { display: grid; gap: 12px; margin-top: 22px; }
.login-box input { height: 38px; }
.login-box .btn { height: 38px; justify-content: center; font-size: 14px; }
@media (max-width: 900px) { .login-wrap { grid-template-columns: 1fr; } .login-art { display: none; } }

/* стайлгайд */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.swatch { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.swatch i { display: block; height: 52px; }
.swatch div { padding: 7px 9px; font-size: var(--fs-xs); }
.swatch code { color: var(--text-3); }
.specimen > div { display: flex; align-items: baseline; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.specimen code { width: 120px; color: var(--text-3); font-size: 11px; flex: none; }

.stack > * + * { margin-top: var(--s4); }
.row { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
details.inline summary { cursor: pointer; color: var(--accent); font-size: var(--fs-sm); list-style: none; }
details.inline summary::-webkit-details-marker { display: none; }
details.inline[open] summary { margin-bottom: 10px; }
.pre { white-space: pre-wrap; font-family: var(--mono); font-size: 12px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 10px 12px; color: var(--text-2); margin: 0; }

/* --- уточнения после визуальной проверки --- */
.search input[type=search] { padding-left: 32px; }
.topbar .icon-btn { width: 34px; height: 34px; }
.topbar .icon-btn svg { width: 18px; height: 18px; }
.dot { top: 1px; right: 0; }
details.inline summary.btn { color: var(--text); }
details.inline summary.btn-primary { color: var(--accent-ink); }
table.t td.title { min-width: 220px; }
table.t td.title a { white-space: nowrap; }
.toolbar select { max-width: 200px; }
.grid-side > .stack .kv, .card .kv { grid-template-columns: minmax(110px, 38%) 1fr; }
.kv dd { overflow-wrap: anywhere; }
