/* ============================================================
   GhostNode — чёрно-серебряная тема подписки (по образцу).
   Фон #0A0B0D без сетки, холодное белое свечение сверху,
   блоки #131418, главная карточка #0E0F12, Manrope, ≤720px.
   ============================================================ */

:root {
  color-scheme: dark;
  --bg: #0A0B0D;
  --block: #131418;
  --card: #0E0F12;
  --fg: #f5f6f8;
  --fg-soft: #d7dae0;
  --muted: #9aa3b0;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --btn-grad: linear-gradient(180deg, #ffffff 0%, #c9ced8 100%);
  --btn-text: #2f3540;
  --ok: #3DDC97;
  --warn: #FFC857;
  --bad: #FF6B6B;
  --cyan: #35C3EA;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; min-height: 100vh; }

/* Запрещаем Android Chrome раздувать текст непредсказуемо (font boosting);
   системное увеличение пользователем при этом не ломает вёрстку */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
  background-color: var(--bg);
  background-image:
    radial-gradient(60% 34% at 50% 0%, rgba(226, 232, 245, 0.07), transparent 72%),
    radial-gradient(36% 22% at 16% 0%, rgba(214, 226, 245, 0.04), transparent 70%);
  -webkit-font-smoothing: antialiased;
}

.page { max-width: 720px; margin: 0 auto; padding: 24px 16px 56px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.5); outline-offset: 2px; }

.is-hidden, [hidden] { display: none !important; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; border: 1px solid transparent; border-radius: 13px;
  padding: 12px 18px;
  font-family: var(--font-body); font-size: 14.5px; font-weight: 700;
  cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease,
              border-color 0.15s ease, filter 0.15s ease;
}
.btn svg { width: 17px; height: 17px; }
/* Главное действие — серебряный градиент */
.btn-primary {
  background: var(--btn-grad); color: var(--btn-text);
  box-shadow: 0 6px 22px rgba(233, 238, 248, 0.18);
}
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 8px 26px rgba(233, 238, 248, 0.24); }
/* Остальные — тёмные с рамкой */
.btn-dark {
  background: var(--block); color: var(--fg);
  border-color: var(--border-strong);
}
.btn-dark:hover { background: #191b20; }
.btn:active { transform: scale(0.98); }

/* --- Шапка --------------------------------------------------------- */

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 22px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo-wrap {
  width: 64px; height: 64px; border-radius: 18px;
  overflow: hidden; background: #16181d;
  border: 1px solid var(--border);
  flex: 0 0 auto;
}
.brand-logo {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.18);
}
.brand-name {
  font-size: 27px; font-weight: 800; letter-spacing: -0.02em;
  white-space: nowrap;
}
.support-btn {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 46px; padding: 11px 18px;
  background: var(--block); border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--fg); text-decoration: none;
  font-size: 14.5px; font-weight: 700;
  transition: background-color 0.15s ease;
}
.support-btn:hover { background: #191b20; }
.support-btn svg { width: 18px; height: 18px; }

/* --- Карточка «Ваша подписка» -------------------------------------- */

.sub-card {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 22px;
  margin-bottom: 34px;
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg-soft);
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.state-ok .badge { color: var(--ok); background: rgba(61, 220, 151, 0.08); border-color: rgba(61, 220, 151, 0.25); }
.state-ok .badge-dot { background: var(--ok); box-shadow: 0 0 8px rgba(61, 220, 151, 0.5); }
.state-warn .badge { color: var(--warn); background: rgba(255, 200, 87, 0.08); border-color: rgba(255, 200, 87, 0.25); }
.state-warn .badge-dot { background: var(--warn); box-shadow: 0 0 8px rgba(255, 200, 87, 0.5); }
.state-bad .badge { color: var(--bad); background: rgba(255, 107, 107, 0.08); border-color: rgba(255, 107, 107, 0.25); }
.state-bad .badge-dot { background: var(--bad); box-shadow: 0 0 8px rgba(255, 107, 107, 0.5); }

.expire-title {
  margin: 16px 0 0;
  font-size: clamp(26px, 6vw, 40px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.12;
}
.expire-sub { margin: 9px 0 0; font-size: 14.5px; color: var(--muted); }
.sub-id { margin: 5px 0 0; font-size: 13px; color: var(--muted); }


/* Трафик: две карты рядом */
.traffic { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.t-card {
  background: var(--block);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 15px 16px;
  min-width: 0;
}
.t-bypass { background: rgba(53, 195, 234, 0.06); border-color: rgba(53, 195, 234, 0.28); }
.t-name { margin: 0 0 9px; font-size: 14px; font-weight: 700; color: var(--fg-soft); }
.t-name-cyan { color: var(--cyan); }
.t-value { margin: 0; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.t-big { font-size: 29px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.t-of { font-size: 13px; color: var(--muted); }
.track {
  height: 7px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.10); overflow: hidden;
  margin-top: 12px;
}
.track-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #e8ecf3, #b9c1cf);
  box-shadow: 0 0 10px rgba(226, 232, 245, 0.35);
}
.track-fill.track-cyan {
  background: linear-gradient(90deg, #35c3ea, #56d3f5);
  box-shadow: 0 0 10px rgba(53, 195, 234, 0.4);
}
.t-caption { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.t-caption-bad { color: var(--bad); font-weight: 700; }

/* Действия */
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.action-copy { flex: 1 1 auto; }
.actions #open-qr { flex: 0 0 auto; }
.copy-fallback { margin-top: 10px; }
.copy-fallback input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--fg); padding: 11px 12px;
  border-radius: 10px;
  font-family: var(--font-mono); font-size: 13px;
}

/* --- Подключение ---------------------------------------------------- */

h2 {
  font-size: 26px; font-weight: 800; letter-spacing: -0.02em;
  margin: 34px 0 8px; color: var(--fg);
}
.hint { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0 0 16px; }

/* Вкладки ОС на всю ширину */
.os-switch {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--block);
  padding: 5px; gap: 4px;
  margin-bottom: 14px;
}
.os-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 9px 10px;
  border: 1px solid transparent; border-radius: 12px;
  background: transparent; color: var(--fg-soft);
  font-family: var(--font-body); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease,
              border-color 0.15s ease, box-shadow 0.15s ease;
}
.os-btn:hover { color: var(--fg); }
.os-btn.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--fg);
  box-shadow: 0 0 14px rgba(233, 238, 248, 0.15);
}

/* Иконки ОС (SVG-спрайт в разметке страницы) */
.os-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.os-ico { width: 16px; height: 16px; flex: 0 0 auto; fill: currentColor; }
.os-select-wrap { position: relative; }
.os-sel-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--fg-soft); pointer-events: none;
}
.os-sel-ico .os-ico { width: 18px; height: 18px; }

/* Выпадающий список ОС (телефон) */
.os-select-wrap { display: block; margin-bottom: 14px; }
.os-select-wrap select {
  appearance: none; -webkit-appearance: none;
  width: 100%; min-height: 48px;
  background: var(--block) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d7dae0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  color: var(--fg); padding: 11px 40px 11px 42px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
}

/* Happ — крупная карточка */
.client-card {
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 76px; padding: 12px 16px;
  background: var(--block);
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--fg-soft); cursor: pointer; text-align: left;
  font-family: var(--font-body);
  margin-bottom: 10px;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.client-card:hover { background: #191b20; }
.client-card.active {
  background: #15171c;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 16px rgba(233, 238, 248, 0.14);
  color: var(--fg);
}
.client-mono {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.10);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: var(--fg);
  position: relative; overflow: hidden;
}
.client-logo {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  border-radius: inherit;
}
/* У плитки со значком нет своего фона и двойного скругления:
   форма плитки повторяет форму значка, края сливаются с карточкой */
.client-mono.with-logo { background: transparent; }
.client-mono.with-logo .client-logo { transform: scale(1.07); }
.client-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.client-name { font-size: 16px; font-weight: 800; line-height: 1.2; }
.client-rec { font-style: normal; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.client-card.active .client-rec { color: var(--ok); }
.client-check { width: 20px; height: 20px; color: var(--fg); flex: 0 0 auto; visibility: hidden; }
.client-card.active .client-check { visibility: visible; }

/* Остальные приложения — компактная сетка без пустых мест:
   flex-grow тянет чипы последнего ряда на всю ширину */
.client-grid { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.client-chip {
  flex: 1 1 150px; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 10px 14px;
  background: var(--block);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--fg-soft); cursor: pointer; text-align: center;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.client-chip:hover { background: #191b20; color: var(--fg); }
.client-chip.active {
  background: #15171c;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--fg);
  box-shadow: 0 0 14px rgba(233, 238, 248, 0.14);
}
.chip-ico {
  width: 22px; height: 22px; border-radius: 6px;
  overflow: hidden; flex: 0 0 auto;
  display: inline-flex;
}
/* contain — значки со своими скруглёнными краями (SVG) не обрезаются */
.chip-ico img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* --- Шаги с номерами ------------------------------------------------- */

.app-instruction {
  background: var(--block);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 14px;
}
.steps { position: relative; display: flex; flex-direction: column; }
.step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; padding-bottom: 26px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::after {
  content: ''; position: absolute; left: 19.5px; top: 48px; bottom: 6px;
  width: 1px; background: var(--border-strong);
}
/* Кружки шагов: по умолчанию контурные; белый со свечением — только
   у шага «Добавьте подписку» (.step-num-accent) */
.step-num {
  grid-row: 1; grid-column: 1;
  width: 40px; height: 40px; border-radius: 50%;
  background: transparent; color: var(--fg);
  border: 1.5px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
  position: relative; z-index: 1;
}
.step-num-accent {
  background: #ffffff; color: var(--btn-text); border-color: transparent;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08), 0 0 18px rgba(233, 238, 248, 0.3);
}
.step h3 {
  grid-row: 1; grid-column: 2;
  align-self: center; margin: 0;
  font-size: 18px; font-weight: 800; letter-spacing: -0.01em;
}
.step { row-gap: 8px; }
.step-body { grid-column: 2; margin-top: 0; }
.step-body p { margin: 0 0 12px; font-size: 15px; line-height: 1.55; color: var(--fg-soft); max-width: 60ch; }
.step-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.step-actions .btn:only-child { width: 100%; }
.app-add-btn { color: #0B0C0F; font-weight: 800; }
.step-body .step-note { margin: 11px 0 0 !important; font-size: 13px; color: #9CA1AC; line-height: 1.55; }
.copy-inline {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; color: var(--fg-soft);
  text-decoration: underline; text-underline-offset: 3px;
}
.copy-inline:hover { color: var(--fg); }

/* Свёрнутые полезные настройки: только тонкая линия сверху */
.tips { margin-top: 22px; border: none; border-top: 1px solid var(--border); border-radius: 0; background: transparent; }
.tips summary {
  cursor: pointer; list-style: none; user-select: none;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; padding: 8px 0;
  font-size: 14.5px; font-weight: 700; color: var(--fg);
}
.tips summary::after {
  content: ''; width: 8px; height: 8px; flex: 0 0 auto;
  border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg); margin-top: -3px;
  transition: transform 0.15s ease;
}
.tips[open] summary::after { transform: rotate(225deg); margin-top: 3px; }
.tips summary::-webkit-details-marker { display: none; }
.tips p { margin: 0; padding: 0 0 14px; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* --- QR-лайтбокс ------------------------------------------------------ */

.qr-overlay {
  position: fixed; inset: 0; z-index: 60;
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 18px; padding: 24px;
  background: rgba(4, 5, 6, 0.88);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.qr-overlay.is-open { display: flex; }
.qr-big {
  position: relative;
  background: #ffffff; padding: 20px; border-radius: 18px;
  width: min(72vw, 340px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.qr-big svg { width: 100%; height: auto; display: block; }
.qr-close {
  position: absolute; top: -14px; right: -14px;
  width: 32px; height: 32px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(10, 11, 13, 0.85); color: #ffffff;
  display: inline-flex; align-items: center; justify-content: center;
}
.qr-close svg { width: 16px; height: 16px; }
.qr-overlay-caption {
  margin: 0; text-align: center;
  font-size: 14px; color: var(--fg-soft); line-height: 1.7;
}
.qr-overlay-caption span { color: var(--muted); font-size: 13px; }

/* --- Подвал ------------------------------------------------------------ */

.footer { margin-top: 38px; text-align: center; font-size: 13.5px; color: var(--muted); }
.footer p { margin: 0; }

/* --- Ошибки (общие страницы) ------------------------------------------- */

.page-center { text-align: center; padding-top: 72px; }
.page-center h1 {
  font-size: 20px; font-weight: 800; letter-spacing: -0.01em;
  margin: 4px 0 12px;
}
.page-center .error-code {
  font-size: 56px; font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.1; margin: 24px 0 8px;
  background: var(--btn-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* --- Админка ------------------------------------------------------------ */

.admin-page { max-width: 720px; }
.admin-page fieldset { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 20px; padding: 16px 18px; }
.admin-page legend { padding: 0 8px; color: var(--fg-soft); font-size: 13px; }
.admin-page label { display: block; margin-bottom: 14px; font-size: 13px; color: var(--fg-soft); }
.admin-page input[type=text], .admin-page input[type=url], .admin-page textarea {
  display: block; width: 100%; margin-top: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--fg); padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px; font-family: var(--font-mono);
}
.admin-page input[type=color] { margin-top: 6px; width: 60px; height: 34px; border: none; background: none; }
.admin-page input[type=file] { color: var(--fg); font-size: 12px; }
.admin-page .checkbox-label { display: flex; align-items: center; gap: 8px; }
.admin-page .checkbox-label input[type=checkbox] { width: 16px; height: 16px; margin: 0; }
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: rgba(61, 220, 151, 0.12); border: 1px solid rgba(61, 220, 151, 0.35); }
.alert-error { background: rgba(255, 107, 107, 0.12); border: 1px solid rgba(255, 107, 107, 0.35); }

/* Markdown-инструкции роутера */
.markdown-body { line-height: 1.6; font-size: 14px; }
.markdown-body pre {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  padding: 12px; border-radius: 10px;
  overflow-x: auto;
}
.markdown-body pre code { background: none; padding: 0; font-size: 13px; }
.markdown-body code {
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 6px; border-radius: 6px; font-size: 13px;
}
.markdown-body blockquote { border-left: 2px solid var(--border-strong); margin: 0; padding-left: 12px; color: var(--fg-soft); }
.code-wrap { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0; }
.code-wrap pre {
  flex: 1; min-width: 0; margin: 0;
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-all; overflow-x: hidden;
}
.code-wrap .code-copy {
  flex: 0 0 auto; width: 38px; height: 38px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.code-wrap .code-copy svg { width: 18px; height: 18px; }

/* ============================================================
   Адаптив
   ============================================================ */

/* Телефон: выпадающий список ОС вместо вкладок */
@media (max-width: 640px) {
  .os-switch { display: none; }
  .os-select-wrap { display: block; }
}
@media (min-width: 641px) {
  .os-select-wrap { display: none; }
}

@media (max-width: 560px) {
  .client-chip { flex: 1 1 calc(50% - 4.5px); }
}

@media (max-width: 480px) {
  .page { padding: 16px 14px 48px; }

  /* Шапка: логотип 44×44, имя 20px всегда целиком, «Поддержка» — круглая 44 с иконкой */
  .topbar { margin-bottom: 18px; }
  .brand { gap: 10px; min-width: 0; }
  .brand-logo-wrap { width: 44px; height: 44px; border-radius: 13px; }
  .brand-name { font-size: 20px; white-space: nowrap; }
  .support-btn { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; flex: 0 0 auto; justify-content: center; }
  .support-btn .support-label { display: none; }

  /* Главная карточка: кольца нет, статус в одну строку, дата 28px */
  .sub-card { padding: 20px; border-radius: 20px; }
  .expire-title { font-size: 28px; }
  .expire-sub, .sub-id { font-size: 13px; }

  /* Трафик: блоки 12px, остаток 24px, шкала 6px, расстояния 6px */
  .traffic { grid-template-columns: 1fr; margin-top: 18px; gap: 10px; }
  .t-card { padding: 12px; }
  .t-name { margin-bottom: 6px; }
  .t-big { font-size: 24px; }
  .track { height: 6px; margin-top: 6px; }
  .t-caption { font-size: 13px; margin-top: 6px; }

  /* Перед «Подключением» 28px, заголовок 24px */
  h2 { margin-top: 28px; font-size: 24px; }

  /* Кнопки в один ряд, 52px, без переносов: QR 64px, текст 15px */
  .actions { flex-wrap: nowrap; margin-top: 16px; }
  .actions .btn { min-height: 52px; font-size: 15px; white-space: nowrap; padding-left: 10px; padding-right: 10px; }
  .action-copy { flex: 1 1 auto; min-width: 0; }
  .action-copy .copy-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .actions #open-qr { flex: 0 0 64px; padding-left: 0; padding-right: 0; }

  .client-card { min-height: 64px; padding: 10px 14px; }
  .client-mono { width: 38px; height: 38px; border-radius: 11px; }
  .client-name { font-size: 15px; }
  /* Клиенты: две колонки, последний неполный ряд тянется */
  .client-chip { flex: 1 1 calc(50% - 4.5px); }

  .app-instruction { padding: 16px; border-radius: 18px; }
  .step { column-gap: 12px; padding-bottom: 20px; }
  .step:not(:last-child)::after { display: none; }
  .step-num { width: 28px; height: 28px; font-size: 13px; }
  .step { grid-template-columns: 28px minmax(0, 1fr); }
  .step h3 { font-size: 18px; }
  .step-body p { font-size: 15px; }
  .step-actions .btn { width: 100%; }

  .copy-fallback input { font-size: 12.5px; }
}
