/* VLESKA — дизайн-система вебаппа.
   Три цвета: белый фон, чёрный текст и карточки, фирменный лайм для действий.
   Серый — только подписи и разделители. Пластика под iOS: системный шрифт,
   крупные радиусы, сгруппированные списки с отступом разделителя. */

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #8a8a8f;
  --line: #e5e5ea;
  --fill: #f2f2f7;

  --dark: #0a0a0a;
  --dark-2: #1c1c1e;
  --on-dark: #ffffff;
  --on-dark-2: #98989f;

  --acc: #b6ff1a;
  --acc-ink: #0a0a0a;

  --red: #ff3b30;

  --r-xl: 24px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tab-h: 64px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body { min-height: 100vh; }
button, input, textarea, select { font: inherit; color: inherit; margin: 0; letter-spacing: inherit; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

.muted { color: var(--ink-2); }

.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 18px; height: 18px; }
.ic-xs { width: 15px; height: 15px; }
.ic-lg { width: 26px; height: 26px; }
.ic-fill { fill: currentColor; stroke: none; }

/* ======================= Каркас ======================= */

main {
  display: block;
  padding: calc(var(--safe-t) + 10px) 16px calc(var(--tab-h) + var(--safe-b) + 28px);
  max-width: 560px;
  margin: 0 auto;
}

.topline { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 44px; margin-bottom: 6px; }

.screen-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 4px 0 18px;
}

.stack { display: grid; gap: 12px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gap { height: 10px; }
.gap-lg { height: 22px; }

.section-cap {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  margin: 10px 4px -4px;
}

/* ======================= Круглая кнопка в заголовке ======================= */

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--fill);
  color: var(--ink);
  cursor: pointer;
}

.icon-btn:active { background: var(--line); }

/* ======================= Нижнее меню ======================= */

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line);
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
}

.tab .ic { padding: 4px 16px; border-radius: 999px; box-sizing: content-box; }
.tab.on { color: var(--ink); }
.tab.on .ic { background: var(--acc); color: var(--acc-ink); }

/* ======================= Кнопки ======================= */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: var(--fill);
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.1s ease;
}

.btn:active { transform: scale(0.98); opacity: 0.9; }
.btn[disabled] { opacity: 0.38; pointer-events: none; }

.btn-main { background: var(--acc); color: var(--acc-ink); font-weight: 700; }
.btn-dark { background: var(--dark); color: var(--on-dark); }
.btn-line { background: var(--bg); border-color: var(--line); }
.btn-quiet { background: transparent; color: var(--ink-2); min-height: 46px; font-weight: 600; }
.btn-danger { background: transparent; border-color: rgba(255, 59, 48, 0.4); color: var(--red); }
.btn-sm { min-height: 46px; font-size: 16px; padding: 0 14px; }
.btn-xs { min-height: 34px; font-size: 15px; padding: 0 13px; width: auto; border-radius: 999px; }

.btn-xl {
  min-height: 62px;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ======================= Карточка подписки ======================= */

.hero {
  border-radius: var(--r-xl);
  background: var(--dark);
  color: var(--on-dark);
  padding: 20px;
}

.hero-top { display: flex; align-items: center; gap: 12px; }
.hero-state { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }

.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--acc); flex: none; }
.dot.off { background: var(--on-dark-2); }
.dot.warn { background: #ffcc00; }

.hero-days { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; }
.hero-days b { font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: -0.045em; }
.hero-days span { font-size: 17px; color: var(--on-dark-2); }
.hero-note { margin-top: 10px; font-size: 16px; color: var(--on-dark-2); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 20px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.hero-cell {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 14px;
  border: 0;
  background: var(--dark-2);
  color: inherit;
  text-align: left;
  font: inherit;
}

.hero-cell.wide { grid-column: 1 / -1; }

.hero-cell .k {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--on-dark-2);
}

.hero-cell .k .ic { color: var(--on-dark-2); }

.hero-cell .v {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-cell.tap { cursor: pointer; }
.hero-cell.tap:active { background: #2a2a2e; }
.hero-cell.tap .v { color: var(--acc); }
.hero-cell.tap .v .ic { color: var(--acc); margin-left: auto; }

/* ======================= Светлые карточки и списки ======================= */

.card {
  border-radius: var(--r-xl);
  background: var(--fill);
  padding: 18px;
}

.card-line { background: var(--bg); border: 1px solid var(--line); }

.big-sum { font-size: 34px; font-weight: 700; letter-spacing: -0.035em; margin-top: 6px; }

.list { border-radius: var(--r-xl); background: var(--fill); overflow: hidden; }

.row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.row + .row::before {
  content: "";
  position: absolute;
  left: 61px;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--line);
}

.row:active { background: var(--line); }
.row.static { cursor: default; }
.row.static:active { background: none; }

.row-ic {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  background: var(--acc);
  color: var(--acc-ink);
}

.row-ic.plain { background: var(--bg); color: var(--ink); }

.row-body { flex: 1; min-width: 0; }
.row-title { display: block; font-size: 17px; font-weight: 500; }
.row-sub { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.row-side { flex: none; display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 16px; font-weight: 500; }
.row-side .ic { color: #c4c4c9; }

/* ======================= Баннер ======================= */

.banner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px;
  border: 0;
  border-radius: var(--r-xl);
  background: var(--dark);
  color: var(--on-dark);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.banner b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.banner span { display: block; margin-top: 4px; font-size: 14px; color: var(--on-dark-2); }

.banner-go {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--acc);
  color: var(--acc-ink);
}

/* ======================= Плитки ======================= */

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { border-radius: var(--r-lg); background: var(--fill); padding: 15px; }
.tile b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.tile span { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-2); }

/* ======================= Выбор ======================= */

.opt {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 15px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.opt.on { border-color: var(--ink); }
.opt-body { flex: 1; min-width: 0; }
.opt-title { display: block; font-size: 17px; font-weight: 600; }
.opt-sub { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.opt-price { flex: none; font-size: 17px; font-weight: 700; }

.opt-mark {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
}

.opt.on .opt-mark { border-color: var(--acc); background: var(--acc); color: var(--acc-ink); }
.opt-mark .ic { width: 14px; height: 14px; stroke-width: 3; }
.opt:not(.on) .opt-mark .ic { display: none; }

/* ======================= Мастер подключения ======================= */

.wiz-top { display: flex; align-items: center; gap: 12px; }
.wiz-num { font-size: 13px; font-weight: 600; color: var(--ink-2); flex: none; }
.wiz-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--fill); overflow: hidden; }
.wiz-bar i { display: block; height: 100%; border-radius: 4px; background: var(--acc); transition: width 0.22s ease; }

.wiz-h { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; margin: 16px 0 8px; }
.wiz-p { font-size: 16px; color: var(--ink-2); margin-bottom: 18px; }
.wiz-foot-note { margin-top: 10px; font-size: 14px; color: var(--ink-2); text-align: center; }

.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.pick button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 108px;
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.pick button:active { background: var(--fill); }
.pick .ic { color: var(--ink); }

.pick .badge {
  position: absolute;
  top: 13px;
  right: 13px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--acc);
  color: var(--acc-ink);
  font-size: 11px;
  font-weight: 700;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink-2);
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}

.back-link .ic { transform: rotate(180deg); }

/* ======================= Карточка аккаунта ======================= */

.ident { display: flex; align-items: center; gap: 14px; }

.ident-av {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  object-fit: cover;
  flex: none;
  border-radius: 50%;
  background: var(--acc);
  color: var(--acc-ink);
  font-size: 22px;
  font-weight: 700;
}

.ident-name { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.ident-tag { display: block; margin-top: 1px; font-size: 15px; color: var(--ink-2); }

.info { margin-top: 16px; display: grid; gap: 2px; border-radius: var(--r-md); overflow: hidden; }

.info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 14px;
  background: var(--bg);
  font-size: 16px;
}

.info-row .k { display: flex; align-items: center; gap: 8px; color: var(--ink-2); flex: none; }
.info-row .k .ic { color: var(--ink-2); }
.info-row .v { margin-left: auto; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-row .v.empty-val { color: var(--ink-2); font-weight: 400; }

.mini {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--fill);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.mini:active { opacity: 0.7; }
.mini.acc { background: var(--acc); color: var(--acc-ink); }
.info-row .v + .mini { margin-left: 10px; }
.info-row .k + .mini { margin-left: auto; }

/* ======================= Платформы (старый экран) ======================= */

.plats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.plat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  color: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.plat.on { border-color: var(--ink); background: var(--fill); }
.plat .ic { color: var(--ink-2); }
.plat.on .ic { color: var(--ink); }

/* ======================= Шаги ======================= */

.step { display: flex; gap: 13px; padding: 16px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 4px; }

.step-n {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--acc);
  color: var(--acc-ink);
  font-size: 14px;
  font-weight: 700;
}

.step-body { flex: 1; min-width: 0; }
.step-title { font-size: 17px; font-weight: 600; }
.step-text { margin-top: 3px; font-size: 15px; color: var(--ink-2); }
.step-act { margin-top: 10px; }

/* ======================= Поля ======================= */

.field { display: grid; gap: 8px; }
.field > label { font-size: 15px; color: var(--ink-2); }

.input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  outline: none;
}

.input:focus { border-color: var(--ink); }
.input::placeholder { color: var(--ink-2); }

.copybox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--fill);
}

.copybox code {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  color: var(--ink-2);
  word-break: break-all;
}

.copybox button { border: 0; background: none; color: var(--ink); cursor: pointer; padding: 4px; }

/* ======================= QR ======================= */

.qr-wrap { display: grid; place-items: center; gap: 14px; padding: 18px; border-radius: var(--r-xl); background: var(--fill); text-align: center; }
.qr-img { width: 236px; height: 236px; border-radius: var(--r-md); background: #fff; display: block; }

/* ======================= Устройства, операции ======================= */

.dev .row-sub { white-space: normal; }

.tx-amt { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.tx-amt.in { color: var(--ink); }
.tx-amt.out { color: var(--ink); }
.tx-amt.wait { color: var(--ink-2); }

/* ======================= Свёрнутые блоки ======================= */

.acc { border-radius: var(--r-xl); background: var(--fill); overflow: hidden; }
.acc + .acc { margin-top: 10px; }

.acc-head {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 15px 16px;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.acc-head .ic { color: var(--ink); }
.acc-head .ic:last-child { margin-left: auto; color: #c4c4c9; transition: transform 0.18s ease; }
.acc.on .acc-head .ic:last-child { transform: rotate(90deg); }
.acc-body { display: none; padding: 0 16px 16px; }
.acc.on .acc-body { display: block; }

/* ======================= Шторки ======================= */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade 0.16s ease;
}

.sheet {
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: 26px 26px 0 0;
  animation: up 0.26s cubic-bezier(0.32, 0.72, 0, 1);
}

.sheet::before {
  content: "";
  width: 38px;
  height: 5px;
  border-radius: 5px;
  background: var(--line);
  margin: 8px auto 0;
  flex: none;
}

.sheet-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px 8px; flex: none; }
.sheet-head h2 { flex: 1; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }

.sheet-x {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--fill);
  color: var(--ink-2);
  cursor: pointer;
}

.sheet-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 16px calc(20px + var(--safe-b)); }

.sheet-foot {
  flex: none;
  padding: 12px 16px calc(14px + var(--safe-b));
  border-top: 1px solid var(--line);
  background: var(--bg);
}

@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(16px); opacity: 0.7; } }

/* ======================= Заставка ======================= */

.splash {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg);
  text-align: center;
  padding: 24px;
}

.splash img { width: 56px; height: 56px; }
.splash p { font-size: 16px; color: var(--ink-2); max-width: 300px; }

/* ======================= Мелочи ======================= */

.empty {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding: 30px 18px;
  border-radius: var(--r-xl);
  background: var(--fill);
  color: var(--ink-2);
  font-size: 16px;
}

.empty .ic { color: #c4c4c9; width: 28px; height: 28px; }

.note { padding: 14px 16px; border-radius: var(--r-md); background: var(--fill); font-size: 15px; color: var(--ink-2); }
.note-acc { background: var(--acc); color: var(--acc-ink); font-weight: 600; display: flex; gap: 10px; align-items: center; }

.sk { border-radius: var(--r-md); background: var(--fill); animation: pulse 1.1s ease-in-out infinite; }
.sk-card { height: 200px; border-radius: var(--r-xl); }
.sk-row { height: 62px; }
.sk-btn { height: 62px; border-radius: 16px; }

@keyframes pulse { 50% { opacity: 0.55; } }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-h) + var(--safe-b) + 16px);
  z-index: 80;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--on-dark);
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  animation: up 0.18s ease;
}

.toast.good { background: var(--acc); color: var(--acc-ink); font-weight: 600; }
.toast.bad { background: var(--red); color: #fff; font-weight: 600; }

.price-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 16px; padding: 7px 0; color: var(--ink-2); }
.price-line span:last-child { color: var(--ink); }
.price-line b { font-size: 19px; font-weight: 700; color: var(--ink); }
.price-line.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; color: var(--ink); font-weight: 600; }

/* ======================= Документы ======================= */

.doc-text { font-size: 16px; line-height: 1.6; color: var(--ink); }
.doc-text h1, .doc-text h2, .doc-text h3 { font-weight: 700; letter-spacing: -0.02em; margin: 18px 0 8px; }
.doc-text h1 { font-size: 21px; }
.doc-text h2 { font-size: 19px; }
.doc-text h3 { font-size: 17px; }
.doc-text p { margin-bottom: 12px; }
.doc-text ul, .doc-text ol { margin: 0 0 12px; padding-left: 20px; }
.doc-text li { margin-bottom: 6px; }
.doc-text a { color: var(--ink); text-decoration: underline; }

video.help-video { width: 100%; border-radius: var(--r-md); background: #000; display: block; }

/* ======================= Ползунок выбора ======================= */

.slider { padding: 18px; border-radius: var(--r-xl); background: var(--fill); }

.slider-val { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.slider-val b { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.slider-val span { font-size: 17px; color: var(--ink-2); }

.slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  margin: 10px 0 0;
  background: transparent;
  cursor: pointer;
}

.slider input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
}

.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  margin-top: -12px;
  border-radius: 50%;
  background: var(--acc);
  border: 2px solid var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.slider input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line); }
.slider input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border: 2px solid var(--bg); border-radius: 50%; background: var(--acc); }

.slider-ends { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); margin-top: -2px; }
.slider-note { margin-top: 12px; font-size: 15px; color: var(--ink-2); text-align: center; }

/* ======================= Кнопка поддержки на главной ======================= */

.support-tile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--dark);
  color: var(--on-dark);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.support-tile:active { opacity: 0.85; }

.support-tile i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--acc);
  color: var(--acc-ink);
}

.topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }

/* ======================= Читаемые второстепенные действия ======================= */

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px 0 6px;
  border: 0;
  border-radius: 999px;
  background: var(--fill);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.back-btn .ic { transform: rotate(180deg); color: var(--ink); }

.link-sm {
  display: block;
  width: 100%;
  margin-top: 12px;
  border: 0;
  background: none;
  padding: 6px 0;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-row { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 12px; }
.link-row .link-sm { width: auto; margin: 0; }

/* Тихая кнопка должна читаться, а не растворяться */
.btn-quiet { color: var(--ink); font-weight: 600; }
