.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: 44px; padding: var(--sp-2) var(--sp-4); border-radius: 999px;
  border: 1px solid var(--control-border); background: var(--surface);
  font-size: 14px; font-weight: 560;
  transition: background var(--t-micro) var(--ease), border-color var(--t-micro) var(--ease);
}
.btn:hover { background: var(--surface-2); }
.btn--primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--primary:hover { opacity: .88; background: var(--text); }
.btn--sm { min-height: 44px; padding: var(--sp-2) var(--sp-3); font-size: 14px; }
.btn--icon { width: 44px; padding: 0; justify-content: center; font-size: 16px; line-height: 1; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-5);
}

/* ---------- Лента изменений ---------- */
.ribbon {
  position: fixed; z-index: 30; left: 50%; bottom: var(--sp-4); translate: -50% 0;
  display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center;
  width: min(880px, calc(100vw - 2 * var(--sp-4))); min-height: 56px;
  max-height: min(38dvh, 320px); overflow-y: auto; padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--border-2); border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 12px 36px rgba(16,16,20,.18); backdrop-filter: blur(14px);
  animation: ribbon-in var(--t-layout) var(--ease);
}
.ribbon[hidden] { display: none; }
.ribbon__title {
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--faint); margin-right: var(--sp-1);
}
.ribbon__spacer { flex: 1; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px var(--sp-1) 3px var(--sp-3); border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--border-2);
  min-height: 36px; font-size: 14px; color: var(--text);
  animation: pop var(--t-micro) var(--ease);
}
.chip b { font-weight: 600; }
.chip__x {
  width: 32px; height: 32px; margin-block: -6px; border-radius: 50%; display: grid; place-items: center;
  color: var(--muted); font-size: 15px; line-height: 1;
}
.chip__x:hover { background: var(--border); color: var(--text); }
@keyframes pop { from { opacity: 0; scale: .94; } to { opacity: 1; scale: 1; } }
@keyframes ribbon-in {
  from { opacity: 0; translate: -50% 12px; }
  to { opacity: 1; translate: -50% 0; }
}

/* ---------- Список статей ---------- */
.groups { display: grid; gap: var(--sp-3); }
.grp { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.grp__head {
  display: grid; grid-template-columns: 8px 1fr auto auto; align-items: center;
  gap: var(--sp-3); min-height: 52px; padding: var(--sp-2) var(--sp-4); width: 100%; text-align: left;
}
.grp__head:hover { background: var(--surface-2); }
.grp__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gc); }
.grp__name { font-weight: 580; }
.grp__sum { font-weight: 600; }
.grp__per { font-size: 14px; color: var(--muted); min-width: 52px; text-align: right; }
.grp__slash { color: var(--faint); font-weight: 400; padding-inline: 1px; }
.grp__body { display: grid; }
.grp__body[hidden] { display: none; }

.row {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--sp-3);
  align-items: center; padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--border);
  transition: opacity var(--t-micro) var(--ease);
}
.row[data-off="true"] > :not(.row__note) { opacity: .42; }
.row[data-off="true"] .row__name { text-decoration: line-through; }
.row__name { min-height: 44px; display: flex; flex-direction: column; justify-content: center; font-size: 16px; line-height: 22px; text-align: left; }
.row__meta { font-size: 14px; line-height: 20px; color: var(--faint); }
.row__vals { text-align: right; }
.row__amt { font-weight: 560; }
.row__per { font-size: 14px; color: var(--muted); }
.row__ctl { display: flex; align-items: center; gap: var(--sp-2); grid-column: 1 / -1; margin-top: var(--sp-1); }

/* На узком экране колонки не помещаются: название сверху, суммы снизу. */
@media (max-width: 620px) {
  .grp__head { grid-template-columns: 8px 1fr auto; row-gap: 2px; }
  .grp__sum { grid-column: 2 / -1; font-size: 15px; }
  .grp__per { grid-column: 2 / -1; text-align: left; }
  .grp__dot { grid-row: 1 / 3; align-self: start; margin-top: 6px; }

  .row { grid-template-columns: auto 1fr; row-gap: var(--sp-1); }
  .row__vals { grid-column: 2; text-align: left; display: flex; gap: var(--sp-2); align-items: baseline; }
  .row__per { font-size: 14px; }
  .row__note { padding-left: var(--sp-2); }
}
.row__slider { flex: 1; }

.sw {
  --sw-bg: var(--control-border);
  width: 44px; height: 44px; border-radius: 10px; background: transparent;
  position: relative; flex: none;
}
.sw::before {
  content: ""; position: absolute; top: 12px; left: 5px; width: 34px; height: 20px;
  border-radius: 999px; background: var(--sw-bg); transition: background var(--t-micro) var(--ease);
}
.sw::after {
  content: ""; position: absolute; top: 15px; left: 8px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25);
  transition: translate var(--t-micro) var(--ease);
}
.sw[aria-pressed="true"] { --sw-bg: var(--accent); }
.sw[aria-pressed="true"]::after { translate: 14px 0; }
.sw[disabled] { opacity: .4; cursor: not-allowed; }

.step,
.info,
.lock {
  width: 44px; height: 44px; flex: none; position: relative; isolation: isolate;
  border: 0; border-radius: 10px; background: transparent; color: var(--muted);
  display: grid; place-items: center;
}
.step::before,
.info::before,
.lock::before {
  content: ""; position: absolute; inset: 5px; z-index: -1;
  border: 1px solid var(--control-border); border-radius: 8px; background: var(--surface);
  transition: background var(--t-micro) var(--ease), border-color var(--t-micro) var(--ease);
}
.step { font-size: 18px; line-height: 1; }
.step:hover:not(:disabled)::before,
.info:hover::before { background: var(--surface-2); border-color: var(--muted); }
.step:hover:not(:disabled), .info:hover { color: var(--text); }
.step:disabled { opacity: .35; cursor: not-allowed; }

.info { font-size: 14px; font-weight: 650; }
.lock { color: var(--faint); cursor: help; }
.lock::before { border-style: dashed; background: transparent; }
.lock__icon {
  position: relative; width: 12px; height: 10px; margin-top: 4px;
  border: 1.5px solid currentColor; border-radius: 2px;
}
.lock__icon::before {
  content: ""; position: absolute; left: 2px; top: -7px; width: 6px; height: 7px;
  border: 1.5px solid currentColor; border-bottom: 0; border-radius: 6px 6px 0 0;
}

.row__slider {
  --range-pct: 50%; appearance: none; -webkit-appearance: none;
  width: 100%; min-height: 44px; background: transparent; cursor: pointer;
}
.row__slider::-webkit-slider-runnable-track {
  height: 4px; border-radius: 999px;
  background: linear-gradient(to right, var(--accent) 0 var(--range-pct), var(--border-2) var(--range-pct) 100%);
}
.row__slider::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px;
  border: 3px solid var(--surface); border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 1px var(--control-border);
}
.row__slider::-moz-range-track { height: 4px; border: 0; border-radius: 999px; background: var(--border-2); }
.row__slider::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--accent); }
.row__slider::-moz-range-thumb {
  width: 12px; height: 12px; border: 3px solid var(--surface); border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 1px var(--control-border);
}
.row__slider:disabled { opacity: .35; cursor: not-allowed; }

/* ---------- Панель двух сторон ---------- */
.drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 40; margin: 0 0 0 auto;
  width: min(680px, 100%); max-width: none; height: 100dvh; max-height: none;
  padding: 0; color: var(--text); background: var(--surface);
  border: 0; border-left: 1px solid var(--border); box-shadow: var(--shadow);
  overflow: hidden;
}
.drawer:not([open]) { display: none; }
.drawer[open] { display: grid; grid-template-rows: auto 1fr; animation: drawer-in var(--t-layout) var(--ease); }
.drawer::backdrop { background: rgba(10,10,14,.42); animation: fade-in var(--t-layout) var(--ease); }
@keyframes drawer-in { from { translate: 100% 0; } to { translate: 0 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.drawer__head {
  display: flex; align-items: start; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5); border-bottom: 1px solid var(--border);
}
.drawer__body { overflow-y: auto; padding: var(--sp-5); display: grid; align-content: start; gap: var(--sp-5); }
.sides { display: grid; gap: var(--sp-4); }
@media (min-width: 520px) { .sides { grid-template-columns: 1fr 1fr; } }
.side { border: 1px solid var(--border); border-radius: var(--r); padding: var(--sp-4); }
.side__t { color: var(--text); font-size: 14px; font-weight: 620; letter-spacing: .04em; text-transform: uppercase; margin-bottom: var(--sp-3); }
.side ul { margin: 0; padding-left: 1.1em; display: grid; gap: var(--sp-2); }
.side li { font-size: 16px; line-height: 1.5; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
.fact { padding: var(--sp-3); border-radius: var(--r); background: var(--surface-2); }
.fact__k { color: var(--muted); font-size: 14px; }
.fact__v { margin-top: 2px; font-weight: 620; }
.argument-list { list-style: none; display: grid; gap: var(--sp-2); padding: 0; }
.argument-list li { display: grid; grid-template-columns: 72px 1fr; gap: var(--sp-2); font-size: 16px; line-height: 1.5; }
.argument-tag { color: var(--muted); font-size: 12px; line-height: 20px; font-weight: 620; letter-spacing: .04em; text-transform: uppercase; }
.source-tag {
  display: inline-flex; margin-left: 4px; padding: 1px 6px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); font-size: 12px; line-height: 18px; white-space: nowrap;
}

/* ---------- Treemap ---------- */
.tm { width: 100%; touch-action: manipulation; }
.tm__cell { cursor: pointer; }
.tm__cell[data-locked="true"] { cursor: not-allowed; }
.tm__cell[data-locked="true"]:hover .tm__rect { opacity: .55; }
.tm__lock {
  font-size: 11px; pointer-events: none; opacity: 0;
  transition: opacity var(--t-micro) var(--ease);
}
.tm__cell[data-locked="true"]:hover .tm__lock,
.tm__cell[data-locked="true"]:focus-visible .tm__lock { opacity: .9; }
.tm__rect { transition: opacity var(--t-micro) var(--ease); }
.tm__cell:hover .tm__rect { opacity: .86; }
.tm__cell:focus-visible { outline: none; }
.tm__cell:focus-visible .tm__rect { stroke: var(--text); stroke-width: 2; }

/* Выключенная статья остаётся на месте и бледнеет — её видно и легко вернуть. */
.tm__cell[data-off="true"] .tm__rect {
  opacity: .14;
  stroke: var(--border-2); stroke-width: 1.5; stroke-dasharray: 5 4;
}
.tm__cell[data-off="true"]:hover .tm__rect { opacity: .3; }

.tm__label { pointer-events: none; font-size: 12px; fill: var(--chart-label-in); font-weight: 620; }
.tm__val { pointer-events: none; font-size: 12px; fill: var(--chart-label-in); opacity: .82; }
.tm__cell[data-off="true"] .tm__label { fill: var(--muted); text-decoration: line-through; }
.tm__cell[data-off="true"] .tm__val { fill: var(--faint); font-style: italic; }

.tm__legend {
  display: flex; gap: var(--sp-4); flex-wrap: wrap; align-items: center;
  margin-top: var(--sp-3); font-size: 14px; color: var(--muted);
}
.tm__legend i {
  display: inline-block; width: 22px; height: 12px; border-radius: 3px;
  vertical-align: -1px; margin-right: 6px;
  background: var(--g-electricity);
}
.tm__legend .off i {
  background: color-mix(in srgb, var(--g-electricity) 14%, transparent);
  border: 1.5px dashed var(--border-2);
}

.tip {
  position: absolute; z-index: 10; pointer-events: none;
  background: var(--text); color: var(--bg);
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
  box-shadow: var(--shadow); max-width: 260px;
}
.tip__name { font-size: 14px; line-height: 20px; font-weight: 620; }
.tip__val { font-size: 14px; line-height: 20px; opacity: .92; margin-top: 1px; }
.tip__hint { font-size: 12px; line-height: 16px; opacity: .72; margin-top: 3px; }

.tip--float {
  position: fixed; font-size: 13px; line-height: 1.35;
  max-width: min(300px, calc(100vw - 24px));
}

.row__note {
  grid-column: 1 / -1; margin-top: var(--sp-2);
  font-size: 14px; line-height: 20px; color: var(--text);
  border-left: 3px solid var(--control-border); padding: var(--sp-3);
  background: var(--surface-2);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
/* Выключенная строка бледнеет целиком — предупреждение не должно бледнеть вместе с ней. */
.row[data-off="true"] .row__note { opacity: 1; }
.tm__head {
  font-size: 12px; font-weight: 620; letter-spacing: .02em;
  pointer-events: none; opacity: .9;
}

/* ---------- Развилки ---------- */
.levers { display: grid; gap: var(--sp-3); }
@media (min-width: 760px) { .levers { grid-template-columns: 1fr 1fr; } }
.lever {
  display: grid; align-content: start; gap: var(--sp-3); padding: var(--sp-4);
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface);
}
.lever__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: var(--sp-4); }
.lever__fee { min-width: 132px; text-align: right; }
.lever__kicker {
  display: block; margin-bottom: 2px; color: var(--faint); font-size: 11px; line-height: 16px;
  font-weight: 620; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap;
}
.lever__fee b { font-size: 24px; line-height: 28px; font-weight: 680; display: block; }
.lever__meta { color: var(--muted); font-size: 14px; line-height: 20px; }
.lever__actions { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; margin-top: auto; }
.lever__details { min-height: 44px; padding-inline: var(--sp-2); color: var(--accent); font-size: 14px; font-weight: 560; text-decoration: underline; text-underline-offset: 3px; }
.notcounted {
  margin-top: var(--sp-4); font-size: 13.5px; color: var(--muted);
  border-left: 2px solid var(--border-2); padding-left: var(--sp-3);
}

/* ---------- Кольцо ---------- */
.sb { width: 100%; max-width: 540px; margin-inline: auto; touch-action: manipulation; }
.sb__arc {
  cursor: pointer; stroke: var(--surface); stroke-width: 1;
  transition: fill-opacity var(--t-micro) var(--ease);
}
.sb__arc:hover { fill-opacity: .78 !important; }
/* Заблокированные — как в треймапе: свой курсор, своя подсветка и замок */
.sb__arc[data-locked="true"] { cursor: not-allowed; }
.sb__arc[data-locked="true"]:hover { fill-opacity: .45 !important; }
.sb__lock { font-size: 13px; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.sb__arc:focus-visible { outline: none; stroke: var(--text); stroke-width: 2; }
.sb__lbl {
  font-size: 12px; font-weight: 620; fill: var(--chart-label-in);
  text-anchor: middle; pointer-events: none;
}
.sb__lbl[data-off="true"] { fill: var(--muted); text-decoration: line-through; }
.legend:empty { display: none; }
.legend,
.sb__legend {
  list-style: none; margin: var(--sp-4) 0 0; padding: 0;
  display: grid; gap: 1px; max-width: 540px; margin-inline: auto;
}
.sb__lg[data-locked="true"] { cursor: not-allowed; }
.sb__lg-lock { font-size: 11px; opacity: .75; justify-self: end; }
.sb__lg:has(.sb__lg-lock) { grid-template-columns: 10px 1fr auto auto; }

.legend__row,
.sb__lg {
  display: grid; grid-template-columns: 10px 1fr auto; align-items: center;
  gap: var(--sp-3); padding: var(--sp-2) var(--sp-2);
  border-radius: var(--r-sm); cursor: pointer; font-size: 14px;
  transition: background var(--t-micro) var(--ease);
}
.legend__row:hover,
.sb__lg:hover { background: var(--surface-2); }
.sb__lg[data-off="true"] { opacity: .45; }
.sb__lg[data-off="true"] .sb__lg-name { text-decoration: line-through; }
.legend__row i,
.sb__lg i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.legend__row b,
.sb__lg b { font-weight: 560; color: var(--muted); }
.legend__row { cursor: default; }

.sb__centre { pointer-events: none; user-select: none; }
/* Текст в SVG по умолчанию даёт курсор редактирования — здесь это кнопка */
.sb__centre--up,
.sb__centre--up text,
.sb__centre--up circle { pointer-events: auto; cursor: pointer; }
.sb__hit { fill: transparent; }
.sb__c-name { font-size: 13px; fill: var(--muted); text-anchor: middle; }
.sb__c-sum { font-size: 22px; font-weight: 660; fill: var(--text); text-anchor: middle; }
.sb__c-per { font-size: 12px; fill: var(--muted); text-anchor: middle; }
.sb__c-up { font-size: 12px; fill: var(--accent); text-anchor: middle; }
.sb__centre--up:hover .sb__c-up { text-decoration: underline; }

/* ---------- Водопад ---------- */
.wf { width: 100%; }
.wf__bar { rx: 4; transition: opacity var(--t-micro) var(--ease); }
.wf__col:hover .wf__bar { opacity: .8; }
.wf__val {
  font-size: 11.5px; font-weight: 600; text-anchor: middle; fill: var(--text);
  paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round;
}
.wf__val[data-sign="up"] { fill: var(--neg); }
.wf__val[data-sign="down"] { fill: var(--pos); }
.wf__name { font-size: 12px; fill: var(--muted); text-anchor: middle; }
.wf[data-compact="true"] .wf__name { font-size: 11px; }
.wf[data-compact="true"] .wf__val { font-size: 11px; }
.wf[data-compact="true"] .wf__zero { font-size: 11px; }
.wf__col[data-kind="total"] .wf__name { fill: var(--text); font-weight: 600; }
.wf__axis line { stroke: var(--border-2); stroke-width: 1; }

.tip__list { margin-top: var(--sp-2); display: grid; gap: 2px; }
.tip__row {
  display: flex; justify-content: space-between; gap: var(--sp-4);
  font-size: 12px; opacity: .88;
}
.tip__row b { font-weight: 600; }

/* ---------- Сравнение ---------- */
.db { width: 100%; }
.db__rule { stroke: var(--border); stroke-width: 1; }
.db__link { stroke-width: 3; stroke-linecap: round; }
.db__link[data-sign="up"] { stroke: color-mix(in srgb, var(--neg) 40%, transparent); }
.db__link[data-sign="down"] { stroke: color-mix(in srgb, var(--pos) 40%, transparent); }
.db__dot--them { fill: var(--faint); }
.db__dot--us { stroke: var(--surface); stroke-width: 1.5; }
.db__name { font-size: 14px; fill: var(--text); }
.db__delta { font-size: 14px; font-weight: 620; }
.db__delta[data-sign="up"] { fill: var(--neg); }
.db__delta[data-sign="down"] { fill: var(--pos); }
.db__row { cursor: default; }
.db-legend {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4);
  margin: var(--sp-3) 0 var(--sp-2); color: var(--muted); font-size: 14px; line-height: 20px;
}
.db-legend span { display: inline-flex; align-items: center; gap: 7px; }
.db-legend__dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.db-legend__dot--them { background: var(--faint); }
.db-legend__dot--us { background: var(--text); box-shadow: 0 0 0 1px var(--surface); }

.cmp__totals { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.cmp__card {
  flex: 1 1 200px; padding: var(--sp-4);
  border: 1px solid var(--border); border-radius: var(--r); background: var(--surface);
}
.cmp__num { font-size: 28px; font-weight: 660; letter-spacing: -.02em; margin-block: 2px; }

.switch {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); min-height: 44px;
  align-items: start; gap: var(--sp-3); margin-block: var(--sp-2) var(--sp-3);
  font-size: 16px; line-height: 24px; cursor: pointer;
}
.switch input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--accent); cursor: pointer; }
.wf__link { stroke: var(--border-2); stroke-width: 1; stroke-dasharray: 3 3; }
.wf__zero { font-size: 11px; fill: var(--faint); }
.tip__rate { font-size: 12px; opacity: .78; margin-top: 2px; }

/* ---------- Источники и загрузка ---------- */
.source-list { display: grid; gap: var(--sp-3); }
.source {
  padding: var(--sp-4); border: 1px solid var(--border); border-radius: var(--r); background: var(--surface);
}
.source__name { font-weight: 620; }
.source__meta { margin-top: var(--sp-1); color: var(--muted); font-size: 14px; line-height: 20px; }
.source__status {
  display: inline-flex; margin-top: var(--sp-2); padding: 3px var(--sp-2);
  border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 560;
}
.caveats { display: grid; gap: var(--sp-2); padding-left: 1.25em; }
.caveats li { font-size: 14px; line-height: 20px; }
.boot-status {
  position: fixed; inset: auto var(--sp-4) var(--sp-4) auto; z-index: 60;
  padding: var(--sp-3) var(--sp-4); border: 1px solid var(--border);
  border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); font-size: 14px;
}
.boot-status[hidden] { display: none; }
.error-state { display: grid; justify-items: start; gap: var(--sp-4); max-width: 760px; }
.error-state p { max-width: 60ch; }
.error-state details { width: 100%; }
.error-state summary { min-height: 44px; display: flex; align-items: center; color: var(--accent); cursor: pointer; }
.error-state pre { padding: var(--sp-4); border-radius: var(--r); background: var(--surface-2); overflow: auto; white-space: pre-wrap; }

@media (max-width: 620px) {
  .row { padding: var(--sp-4); }
  .row__ctl { gap: var(--sp-2); }
  .ribbon {
    bottom: var(--sp-2); width: calc(100vw - 2 * var(--sp-2)); max-height: 42dvh;
    border-radius: 12px;
  }
  .drawer__head, .drawer__body { padding: var(--sp-4); }
  .sides { display: none; }
  .argument-list { display: grid; }
  .facts { grid-template-columns: 1fr 1fr; }
  .levers {
    display: flex; overflow-x: auto; overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory; scrollbar-width: thin;
    margin-inline: calc(-1 * var(--sp-4)); padding: 0 var(--sp-4) var(--sp-2);
  }
  .lever {
    flex: 0 0 min(310px, calc(100vw - 48px)); padding: var(--sp-4);
    scroll-snap-align: start;
  }
  .lever__top { gap: var(--sp-2); }
  .lever__fee { min-width: 116px; }
  .lever__kicker { font-size: 10px; letter-spacing: .025em; }
  .lever__fee b { font-size: 22px; }
  .tm { max-height: 260px; }
}

@media (min-width: 621px) {
  .argument-list { display: none; }
}

/* ---------- Иконки ---------- */
.ico { width: 15px; height: 15px; flex: none; }
.btn--icon .ico { width: 16px; height: 16px; }

/* Ссылка меняется на галочку, когда скопировано */
.ico--done { display: none; color: var(--pos); }
[data-copied] .ico--link { display: none; }
[data-copied] .ico--done { display: block; }
[data-copied] { color: var(--pos); border-color: color-mix(in srgb, var(--pos) 45%, var(--border-2)); }

.urlbox {
  position: fixed; z-index: 50; left: 50%; bottom: var(--sp-5); translate: -50% 0;
  display: grid; gap: var(--sp-2); justify-items: start;
  width: min(460px, calc(100vw - 2 * var(--sp-4)));
  padding: var(--sp-4); border: 1px solid var(--border-2); border-radius: var(--r);
  background: var(--surface); box-shadow: var(--shadow);
}
.urlbox input {
  width: 100%; padding: var(--sp-2) var(--sp-3); font-size: 13px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--text);
}
