/* ===== tokens =========================================================== */
:root {
  --bg-0: #060812;
  --bg-1: #0b1224;
  --ink-0: #f5f7ff;
  --ink-1: #c8cde0;
  --ink-2: #8d93ad;
  --ink-3: #5c6283;

  --accent: #7aa0ff;
  --accent-2: #c88dff;
  --accent-3: #58e3d1;

  --ok: #64e0a5;
  --warn: #ffc46a;
  --err: #ff7c8e;

  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-strong: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-border-strong: rgba(255, 255, 255, 0.22);
  --glass-shadow: 0 24px 60px rgba(5, 8, 20, 0.55);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --tr-fast: 140ms cubic-bezier(0.22, 1, 0.36, 1);
  --tr-med: 260ms cubic-bezier(0.22, 1, 0.36, 1);
  --tr-slow: 520ms cubic-bezier(0.22, 1, 0.36, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter",
    "Helvetica Neue", Arial, sans-serif;
}

/* ===== base ============================================================= */
/* hidden attribute MUST win over любые author-display: flex/grid/inline-flex
   на .modal / .list-loader / .admin-chip / .stats-chip — иначе они ловят клики
   поверх всей страницы и блокируют интерфейс */
[hidden] {
  display: none !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink-0);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}

/* ===== aurora background =============================================== */
.bg-aurora {
  position: relative;
  isolation: isolate;
}
.bg-aurora::before {
  content: "";
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(40% 30% at 20% 10%, rgba(122, 160, 255, 0.3), transparent 60%),
    radial-gradient(35% 25% at 85% 15%, rgba(200, 141, 255, 0.26), transparent 60%),
    radial-gradient(50% 40% at 80% 90%, rgba(88, 227, 209, 0.22), transparent 60%),
    linear-gradient(180deg, #05070f 0%, #0a1030 55%, #080a1a 100%);
  z-index: -3;
  filter: saturate(1.1);
}
/* Aurora статичная — убрали infinite animation и will-change, потому что
   full-screen blur + постоянный transform гонит GPU и создаёт jank
   (видно в DevTools Performance: сплошной Animations + красные Frames) */
.aurora-layer {
  position: fixed;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  z-index: -2;
  pointer-events: none;
}
.aurora-a {
  background: radial-gradient(circle, rgba(122, 160, 255, 0.55) 0%, transparent 70%);
  top: -20vmax;
  left: -10vmax;
}
.aurora-b {
  background: radial-gradient(circle, rgba(200, 141, 255, 0.5) 0%, transparent 70%);
  top: 10vmax;
  right: -20vmax;
}
.aurora-c {
  display: none;
}

/* ===== glass ============================================================ */
/* backdrop-filter перенесён в .glass--blur — его ставим точечно только
   на модалки / login-card / toast, потому что blur на каждый крупный
   элемент (топбар, тулбар, таблица) жарит GPU и даёт заметные фризы */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  position: relative;
}
.glass--blur {
  backdrop-filter: saturate(160%) blur(22px);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* ===== brand ============================================================ */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.brand__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(122, 160, 255, 0.7);
}
.brand__name {
  font-size: 15px;
  color: var(--ink-0);
}

/* ===== buttons ========================================================== */
.btn {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-border: rgba(255, 255, 255, 0.16);
  --btn-hover: rgba(255, 255, 255, 0.1);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--ink-0);
  cursor: pointer;
  transition: transform var(--tr-fast), background var(--tr-fast),
    border-color var(--tr-fast), box-shadow var(--tr-fast);
  white-space: nowrap;
}
.btn:hover:not(:disabled) {
  background: var(--btn-hover);
  border-color: var(--glass-border-strong);
  transform: translateY(-1px);
}
.btn:active:not(:disabled) {
  transform: translateY(0);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn--primary {
  --btn-bg: linear-gradient(135deg, rgba(122, 160, 255, 0.8), rgba(200, 141, 255, 0.8));
  --btn-hover: linear-gradient(135deg, rgba(122, 160, 255, 0.95), rgba(200, 141, 255, 0.95));
  --btn-border: rgba(255, 255, 255, 0.3);
  color: #0b0f1f;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(122, 160, 255, 0.35);
}
.btn--primary:hover:not(:disabled) {
  box-shadow: 0 10px 36px rgba(200, 141, 255, 0.45);
}
.btn--ghost {
  --btn-bg: rgba(255, 255, 255, 0.04);
}
.btn--danger {
  --btn-bg: linear-gradient(135deg, rgba(255, 124, 142, 0.85), rgba(255, 94, 117, 0.9));
  --btn-border: rgba(255, 255, 255, 0.22);
  color: #1b0614;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(255, 94, 117, 0.35);
}
.btn--block {
  width: 100%;
}
.btn--sm {
  padding: 6px 12px;
  min-height: 32px;
  font-size: 13px;
}
.btn__plus {
  font-size: 18px;
  line-height: 1;
  margin-right: -2px;
}
.btn__spinner {
  display: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}
.btn.is-loading .btn__spinner {
  display: inline-block;
}
.btn.is-loading .btn__label {
  opacity: 0.65;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-1);
  transition: var(--tr-fast);
}
.icon-btn:hover {
  color: var(--ink-0);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}
.icon-btn--danger:hover {
  color: #0b0f1f;
  background: linear-gradient(135deg, rgba(255, 124, 142, 0.9), rgba(255, 94, 117, 0.9));
  border-color: transparent;
}
.switch-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-2);
  border-radius: 999px;
  min-height: 30px;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: var(--tr-fast);
}
.switch-btn:hover {
  color: var(--ink-0);
  background: rgba(255, 255, 255, 0.09);
}
.switch-btn:focus-visible {
  outline: 2px solid rgba(83, 229, 159, 0.55);
  outline-offset: 2px;
}
.switch-btn__track {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(138, 148, 170, 0.38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  position: relative;
  flex: 0 0 auto;
  transition: var(--tr-fast);
}
.switch-btn__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f7f8fb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  transition: var(--tr-fast);
}
.switch-btn.is-on {
  border-color: rgba(83, 229, 159, 0.42);
  color: #bdf7d8;
  background: rgba(83, 229, 159, 0.1);
}
.switch-btn.is-on .switch-btn__track {
  background: linear-gradient(135deg, #34c759, #53e59f);
  box-shadow: 0 0 16px rgba(83, 229, 159, 0.32);
}
.switch-btn.is-on .switch-btn__thumb {
  transform: translateX(18px);
}
.switch-btn:disabled {
  cursor: progress;
  opacity: 0.65;
}

/* ===== form ============================================================= */
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field__label {
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field__req {
  color: var(--accent-3);
  font-style: normal;
}
.field__input {
  appearance: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--ink-0);
  font: inherit;
  transition: border-color var(--tr-fast), background var(--tr-fast),
    box-shadow var(--tr-fast);
}
.field__input:focus {
  outline: none;
  border-color: rgba(122, 160, 255, 0.7);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(122, 160, 255, 0.2);
}
.field__input:invalid:not(:placeholder-shown) {
  border-color: rgba(255, 124, 142, 0.5);
}
.field__group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.field__group .field__input {
  flex: 1 1 auto;
  min-width: 0;
}
.field__hint {
  font-size: 12px;
  color: var(--ink-3);
}
.field__static {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--glass-border);
  color: var(--ink-1);
  font-variant-numeric: tabular-nums;
}
.form__error {
  color: var(--err);
  font-size: 13px;
  background: rgba(255, 124, 142, 0.1);
  border: 1px solid rgba(255, 124, 142, 0.25);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

/* ===== login screen ===================================================== */
.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  gap: 16px;
}
.login-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px 32px;
  animation: rise-in 560ms cubic-bezier(0.22, 1, 0.36, 1);
}
.login-card__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
}
.login-card__title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin-top: 10px;
}
.login-card__sub {
  color: var(--ink-2);
  font-size: 13px;
}
.login-shell__foot {
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* ===== public instructions page ====================================== */
.instructions-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
}
.instructions-card {
  width: 100%;
  max-width: 720px;
  padding: 32px 28px 28px;
  animation: rise-in 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.instructions-card__head {
  margin-bottom: 20px;
}
.instructions-card__title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 10px 0 6px;
}
.instructions-card__sub {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.shake {
  animation: shake 0.48s ease both;
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(5px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(3px);
  }
}

/* ===== topbar =========================================================== */
.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  margin: 14px auto 0;
  width: calc(100% - 28px);
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-radius: var(--radius-xl);
}
.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar__right {
  flex-wrap: wrap;
  justify-content: flex-end;
}
/* ===== layout =========================================================== */
.layout {
  margin: 20px auto 60px;
  width: calc(100% - 28px);
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.view-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}
.view-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  padding: 10px 16px;
  min-height: 40px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  transition: background var(--tr-fast), color var(--tr-fast);
}
.view-tab.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink-0);
}
.table-view {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px 10px 16px;
  border-radius: var(--radius-xl);
}
.search {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px;
  color: var(--ink-2);
}
.search__icon {
  opacity: 0.9;
}
.search input {
  flex: 1;
  appearance: none;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink-0);
  font: inherit;
  padding: 10px 0;
}
.search input::placeholder {
  color: var(--ink-3);
}

/* ===== stats chip in topbar ============================================= */
.stats-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.3px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-1);
  white-space: nowrap;
  transition: var(--tr-fast);
}
.stats-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  opacity: 0.9;
}
.stats-chip--ok {
  color: var(--ok);
  background: rgba(100, 224, 165, 0.1);
  border-color: rgba(100, 224, 165, 0.35);
}
.stats-chip--idle {
  color: var(--ink-2);
}
.stats-chip span:first-child {
  font-weight: 700;
  color: var(--ink-0);
}
.stats-chip--err {
  color: var(--err);
  background: rgba(255, 124, 142, 0.1);
  border-color: rgba(255, 124, 142, 0.35);
}

/* online dot — статическая (анимация pulse дорогая при N видимых точках) */
.online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(100, 224, 165, 0.7);
  vertical-align: middle;
}
.offline-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  background: #f7c65a;
  box-shadow: 0 0 8px rgba(247, 198, 90, 0.6);
  vertical-align: middle;
}

/* ===== users table ====================================================== */
.users-table {
  padding: 6px 6px 10px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(15, 20, 40, 0.55);
}
.users-table__header,
.user-row {
  display: grid;
  grid-template-columns:
    48px
    minmax(220px, 1.9fr)
    minmax(170px, 1fr)
    minmax(120px, 0.7fr)
    minmax(120px, 0.7fr)
    minmax(80px, 0.45fr)
    minmax(80px, 0.45fr);
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}
.users-table__header {
  position: sticky;
  top: 0;
  z-index: 2;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgba(15, 20, 40, 0.88), rgba(15, 20, 40, 0.7));
}
.users-table__header--servers,
.user-row--servers {
  grid-template-columns:
    124px
    minmax(220px, 1.9fr)
    minmax(170px, 1fr)
    minmax(120px, 0.7fr)
    minmax(120px, 0.7fr)
    minmax(80px, 0.45fr)
    minmax(80px, 0.45fr);
}
.users-table__header--users {
  grid-template-columns:
    minmax(190px, 1.35fr)
    minmax(145px, 0.92fr)
    minmax(108px, 0.68fr)
    minmax(108px, 0.68fr)
    minmax(108px, 0.68fr)
    minmax(90px, 0.46fr)
    minmax(168px, 0.98fr)
    108px;
}
.users-table__header--logs {
  grid-template-columns:
    minmax(190px, 1.1fr)
    minmax(120px, 0.8fr)
    minmax(220px, 1.3fr)
    minmax(150px, 0.9fr);
}
.users-table__header--debug-logs {
  grid-template-columns:
    minmax(180px, 0.95fr)
    minmax(130px, 0.75fr)
    minmax(180px, 0.95fr)
    minmax(180px, 1fr)
    minmax(260px, 1.35fr);
}
.users-table__header--devices {
  grid-template-columns:
    minmax(180px, 1fr)
    minmax(240px, 1.35fr)
    minmax(92px, 0.45fr)
    minmax(110px, 0.55fr)
    minmax(160px, 0.8fr)
    minmax(130px, 0.7fr)
    minmax(130px, 0.65fr)
    48px;
}
.users-table__header--audit-rules {
  grid-template-columns:
    minmax(92px, 0.45fr)
    minmax(128px, 0.65fr)
    minmax(132px, 0.7fr)
    minmax(240px, 1.4fr)
    minmax(128px, 0.65fr)
    minmax(82px, 0.4fr)
    118px;
}
.users-table__header--bypass-domains {
  grid-template-columns:
    minmax(92px, 0.45fr)
    minmax(240px, 1.2fr)
    minmax(300px, 1.5fr)
    118px;
}
.users-table__body {
  display: block;
}
.user-row {
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: background var(--tr-fast), border-color var(--tr-fast);
  contain: layout paint;
}
.user-row + .user-row {
  margin-top: 2px;
}
.user-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--glass-border);
}
.user-row:focus-visible {
  outline: 2px solid rgba(122, 160, 255, 0.6);
  outline-offset: -2px;
}

.cell {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cell--name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.user-row__name {
  font-weight: 600;
  color: var(--ink-0);
  letter-spacing: -0.1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.user-row__name .online-dot,
.user-row__name .offline-dot {
  margin-right: 2px;
  flex: 0 0 auto;
}
.user-row__date {
  font-size: 11px;
  color: var(--ink-3);
}
.cell--last-seen {
  font-size: 13px;
  color: var(--ink-1);
  font-variant-numeric: tabular-nums;
}
.cell--num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink-0);
  text-align: right;
}
.cell--rx,
.cell--tx,
.cell--in,
.cell--out,
.cell--total,
.cell--devices {
  justify-self: end;
}
.cell--subscription {
  font-size: 13px;
  color: var(--ink-1);
  font-variant-numeric: tabular-nums;
  justify-self: end;
  text-align: right;
}
.cell--status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cell__muted {
  font-size: 11px;
  color: var(--ink-3);
}
.cell--actions {
  display: inline-flex;
  gap: 6px;
  justify-content: center;
  justify-self: end;
  width: 100%;
}
.cell--actions .icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: 0 0 auto;
}
.sort-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  white-space: nowrap;
}
.sort-btn::after {
  content: "";
  display: inline-block;
  opacity: 0.45;
}
.sort-btn.is-active[data-sort-dir="asc"]::after {
  content: "↑";
  opacity: 0.9;
}
.sort-btn.is-active[data-sort-dir="desc"]::after {
  content: "↓";
  opacity: 0.9;
}
.users-table__header--users .cell--name.sort-btn,
.users-table__header--users .cell--last-seen.sort-btn {
  justify-content: flex-start;
  text-align: left;
}
.users-table__header--users .cell--num.sort-btn,
.users-table__header--users .cell--subscription.sort-btn {
  justify-content: flex-end;
  text-align: right;
}
.user-row--users {
  grid-template-columns:
    minmax(190px, 1.35fr)
    minmax(145px, 0.92fr)
    minmax(108px, 0.68fr)
    minmax(108px, 0.68fr)
    minmax(108px, 0.68fr)
    minmax(90px, 0.46fr)
    minmax(168px, 0.98fr)
    108px;
}
.user-row--logs {
  grid-template-columns:
    minmax(190px, 1.1fr)
    minmax(120px, 0.8fr)
    minmax(220px, 1.3fr)
    minmax(150px, 0.9fr);
}
.user-row--debug-logs {
  grid-template-columns:
    minmax(180px, 0.95fr)
    minmax(130px, 0.75fr)
    minmax(180px, 0.95fr)
    minmax(180px, 1fr)
    minmax(260px, 1.35fr);
}
.user-row--devices {
  grid-template-columns:
    minmax(180px, 1fr)
    minmax(240px, 1.35fr)
    minmax(92px, 0.45fr)
    minmax(110px, 0.55fr)
    minmax(160px, 0.8fr)
    minmax(130px, 0.7fr)
    minmax(130px, 0.65fr)
    48px;
}
.user-row--audit-rules {
  grid-template-columns:
    minmax(92px, 0.45fr)
    minmax(128px, 0.65fr)
    minmax(132px, 0.7fr)
    minmax(240px, 1.4fr)
    minmax(128px, 0.65fr)
    minmax(82px, 0.4fr)
    118px;
}
.user-row--bypass-domains {
  grid-template-columns:
    minmax(92px, 0.45fr)
    minmax(240px, 1.2fr)
    minmax(300px, 1.5fr)
    118px;
}
.cell--logged-at,
.cell--client-ip {
  font-variant-numeric: tabular-nums;
}
.cell--device-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--ink-1);
}
.cell--protocol {
  color: var(--ink-1);
  text-transform: uppercase;
}
.cell--server {
  color: var(--ink-1);
}
.cell--destination {
  color: var(--ink-1);
  font-variant-numeric: tabular-nums;
}
.cell--domain {
  color: var(--ink-0);
  font-variant-numeric: tabular-nums;
}
.cell--pattern {
  white-space: normal;
}
.cell--priority {
  color: var(--ink-1);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.cell--comment {
  color: var(--ink-1);
  white-space: normal;
}
.policy-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.policy-badge--suppress {
  color: var(--ink-1);
  background: rgba(255, 255, 255, 0.05);
}
.policy-badge--force_log {
  color: var(--warn);
  background: rgba(255, 196, 106, 0.1);
  border-color: rgba(255, 196, 106, 0.28);
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
}
.pagination__summary,
.pagination__page {
  color: var(--ink-1);
  font-variant-numeric: tabular-nums;
}
.pagination__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ===== mobile table ===================================================== */
/* <= 760px: два смысловых столбца — контент слева (имя/дата, время,
   трафик ↑↓ в одну строку), действия колонкой справа */
@media (max-width: 760px) {
  .users-table {
    padding: 4px 4px 8px;
  }
  .users-table__header { display: none !important; }
  .user-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto auto auto auto;
    grid-template-areas:
      "actions name name"
      "actions last last"
      "actions total total"
      "actions rx   tx"
      "actions devices devices"
      "actions subscription subscription";
    column-gap: 12px;
    row-gap: 3px;
    padding: 12px 14px;
  }
  .cell--name       { grid-area: name; min-width: 0; }
  .cell--last-seen  {
    grid-area: last;
    font-size: 12px;
    color: var(--ink-2);
  }
  .cell--rx, .cell--tx, .cell--in, .cell--out, .cell--total, .cell--subscription {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-1);
    text-align: left;
    justify-self: start;
  }
  .cell--total { grid-area: total; }
  .cell--rx    { grid-area: rx; }
  .cell--tx    { grid-area: tx; }
  .cell--subscription { grid-area: subscription; }
  .cell--devices { grid-area: devices; }
  .cell--in    { grid-area: in; }
  .cell--out   { grid-area: out; justify-self: end; }
  .cell--total::before { content: "Весь трафик "; color: var(--ink-2); opacity: 0.85; margin-right: 4px; }
  .user-row--users .cell--up::before { content: "Входящий "; color: var(--accent); opacity: 0.85; margin-right: 4px; }
  .user-row--users .cell--down::before { content: "Исходящий "; color: var(--accent-3); opacity: 0.85; margin-right: 4px; }
  .cell--devices::before { content: "Устройств "; color: var(--ink-2); opacity: 0.85; margin-right: 4px; }
  .cell--subscription::before { content: "Подписка "; color: var(--ink-2); opacity: 0.85; margin-right: 4px; }
  .user-row--servers {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "name actions"
      "last actions"
      "rx actions"
      "tx actions";
  }
  .user-row--servers .cell--actions {
    grid-area: actions;
    flex-direction: column;
    align-items: flex-end;
    min-width: 86px;
  }
  .user-row--servers .cell--name { grid-area: name; }
  .user-row--servers .cell--last-seen { grid-area: last; }
  .user-row--servers .cell--rx { grid-area: rx; }
  .user-row--servers .cell--tx { grid-area: tx; }
  .user-row--servers .cell--in,
  .user-row--servers .cell--out { display: none; }
  .user-row--debug-logs {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;
    grid-template-areas:
      "logged-at"
      "client-ip"
      "name"
      "domain"
      "destination";
  }
  .user-row--debug-logs .cell--logged-at { grid-area: logged-at; }
  .user-row--debug-logs .cell--client-ip { grid-area: client-ip; }
  .user-row--debug-logs .cell--name { grid-area: name; }
  .user-row--debug-logs .cell--domain { grid-area: domain; white-space: normal; }
  .user-row--debug-logs .cell--destination { grid-area: destination; white-space: normal; }
  .user-row--devices {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto auto auto auto;
    grid-template-areas:
      "name"
      "device-id"
      "protocol"
      "status"
      "last"
      "server"
      "client-ip"
      "actions";
  }
  .user-row--devices .cell--name { grid-area: name; }
  .user-row--devices .cell--device-id { grid-area: device-id; white-space: normal; overflow-wrap: anywhere; }
  .user-row--devices .cell--protocol { grid-area: protocol; }
  .user-row--devices .cell--status { grid-area: status; }
  .user-row--devices .cell--last-seen { grid-area: last; }
  .user-row--devices .cell--server { grid-area: server; }
  .user-row--devices .cell--client-ip { grid-area: client-ip; }
  .user-row--devices .cell--actions { grid-area: actions; flex-direction: row; justify-content: flex-start; }
  .user-row--audit-rules {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto auto auto;
    grid-template-areas:
      "status"
      "action"
      "match-type"
      "pattern"
      "category"
      "priority"
      "actions";
  }
  .user-row--audit-rules .cell--status { grid-area: status; }
  .user-row--audit-rules .cell--action { grid-area: action; }
  .user-row--audit-rules .cell--match-type { grid-area: match-type; }
  .user-row--audit-rules .cell--pattern { grid-area: pattern; overflow-wrap: anywhere; }
  .user-row--audit-rules .cell--category { grid-area: category; }
  .user-row--audit-rules .cell--priority { grid-area: priority; justify-self: start; text-align: left; }
  .user-row--audit-rules .cell--actions { grid-area: actions; flex-direction: row; justify-content: flex-start; }
  .user-row--bypass-domains {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "status"
      "domain"
      "comment"
      "actions";
  }
  .user-row--bypass-domains .cell--status { grid-area: status; }
  .user-row--bypass-domains .cell--domain { grid-area: domain; white-space: normal; overflow-wrap: anywhere; }
  .user-row--bypass-domains .cell--comment { grid-area: comment; }
  .user-row--bypass-domains .cell--actions { grid-area: actions; flex-direction: row; justify-content: flex-start; }

  .cell--actions {
    grid-area: actions;
    flex-direction: column;
    gap: 6px;
    align-self: center;
  }
  .cell--actions .icon-btn {
    width: 34px;
    height: 34px;
  }

  .user-row__name   { font-size: 15px; }
  .user-row__date   { font-size: 11px; }
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.field--checkbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.field__checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

@media (max-width: 420px) {
  .topbar {
    padding: 10px 12px;
    border-radius: var(--radius-lg);
    gap: 8px;
  }
  .stats-chip { padding: 4px 10px; font-size: 11px; }
  .user-row   { padding: 10px 12px; }
  .cell--actions { flex-direction: row; }
  .cell--actions .icon-btn { width: 30px; height: 30px; }
}

/* ===== legacy card grid (не используется, оставлено для отката) =========== */
.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.user-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: var(--radius-lg);
  /* отключаем дорогой backdrop-filter на каждой карточке — основной источник лагов */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(17, 22, 44, 0.72);
  animation: card-in 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform var(--tr-med), border-color var(--tr-fast),
    box-shadow var(--tr-med);
  contain: layout paint;
}
.user-card::before {
  display: none;
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.user-card:hover {
  transform: translateY(-2px);
  border-color: var(--glass-border-strong);
  box-shadow: 0 18px 50px rgba(5, 8, 20, 0.6);
}
.user-card:focus-visible {
  outline: 2px solid rgba(122, 160, 255, 0.7);
  outline-offset: 2px;
}
.user-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.user-card__identity {
  display: flex;
  gap: 10px;
  align-items: center;
}
.user-card__avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(122, 160, 255, 0.35), rgba(200, 141, 255, 0.35));
  border: 1px solid var(--glass-border);
  color: var(--ink-0);
  letter-spacing: 0.5px;
}
.user-card__name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.1px;
}
.user-card__date {
  font-size: 12px;
  color: var(--ink-3);
}
.user-card__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.user-card__body--traffic {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.stat--up {
  background: linear-gradient(135deg, rgba(122, 160, 255, 0.12), rgba(122, 160, 255, 0.04));
  border-color: rgba(122, 160, 255, 0.22);
}
.stat--down {
  background: linear-gradient(135deg, rgba(88, 227, 209, 0.12), rgba(88, 227, 209, 0.04));
  border-color: rgba(88, 227, 209, 0.22);
}
.stat__value--sm {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-1);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
}
.stat__label {
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ink-2);
}
.stat__value {
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.user-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.user-card__foot-right {
  display: flex;
  gap: 6px;
}

.badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-1);
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.badge--ok {
  color: #0a2418;
  background: linear-gradient(135deg, rgba(100, 224, 165, 0.85), rgba(88, 227, 209, 0.85));
  border-color: transparent;
}
.badge--warn {
  color: #2a1f05;
  background: linear-gradient(135deg, rgba(255, 196, 106, 0.9), rgba(255, 167, 82, 0.85));
  border-color: transparent;
}
.badge--err {
  color: #2a0714;
  background: linear-gradient(135deg, rgba(255, 124, 142, 0.85), rgba(255, 94, 117, 0.85));
  border-color: transparent;
}

/* ===== empty / loader =================================================== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-2);
  animation: rise-in 360ms ease both;
}
.empty-state__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-0);
}
.empty-state__sub {
  margin-top: 6px;
  font-size: 14px;
}
.list-loader {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  padding: 10px;
}
.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--ink-2);
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

/* ===== modals =========================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  /* убрали backdrop-filter: blur(...) — full-viewport blur во время fade-in
     даёт заметный лаг на открытии модалки. Вместо блюра — плотное затемнение. */
  background: rgba(4, 6, 16, 0.72);
  opacity: 0;
  transition: opacity 160ms ease-out;
}
.modal.is-open .modal__backdrop {
  opacity: 1;
}
.modal__card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 26px;
  border-radius: var(--radius-xl);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 160ms ease-out, transform 160ms ease-out;
}
.modal.is-open .modal__card {
  opacity: 1;
  transform: translateY(0);
}
.modal__card--sm {
  max-width: 380px;
}
.modal__card--lg {
  max-width: 640px;
  max-height: min(90vh, 860px);
  overflow: auto;
}

/* ===== platform picker (download modal) =============================== */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4px;
}
.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-0);
  transition: border-color var(--tr-fast), background var(--tr-fast);
}
.platform-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--glass-border-strong);
}

.platform-card__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-top: 6px;
}
.platform-card__btn {
  appearance: none;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: linear-gradient(
    135deg,
    rgba(122, 160, 255, 0.85),
    rgba(200, 141, 255, 0.85)
  );
  color: #0b0f1f;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--tr-fast), box-shadow var(--tr-fast),
    background var(--tr-fast);
}
.platform-card__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(122, 160, 255, 0.35);
}
.platform-card__btn:active {
  transform: translateY(0);
}
.platform-card__btn--alt {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-0);
  border-color: var(--glass-border);
  font-weight: 500;
}
.platform-card__btn--alt:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  border-color: var(--glass-border-strong);
}
.platform-card__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(122, 160, 255, 0.25),
    rgba(200, 141, 255, 0.25)
  );
  color: var(--ink-0);
}
.platform-card__label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1px;
}
.platform-card__hint {
  font-size: 11px;
  color: var(--ink-3);
  text-align: center;
}

@media (max-width: 520px) {
  .platform-grid {
    grid-template-columns: 1fr;
  }
}

.modal__head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ===== tabs (instructions modal) ====================================== */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 14px;
  overflow-x: auto;
}
.tab {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ink-2);
  cursor: pointer;
  font: inherit;
  padding: 10px 16px;
  font-size: 13px;
  border-radius: 8px 8px 0 0;
  white-space: nowrap;
  transition: color var(--tr-fast), background var(--tr-fast);
  position: relative;
}
.tab:hover {
  color: var(--ink-1);
  background: rgba(255, 255, 255, 0.03);
}
.tab.is-active {
  color: var(--ink-0);
  font-weight: 600;
}
.tab.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px 2px 0 0;
}
.tab-panels {
  min-height: 160px;
}
.tab-panel {
  display: none;
  color: var(--ink-1);
  font-size: 14px;
  line-height: 1.55;
}
.tab-panel.is-active {
  display: block;
  animation: rise-in 220ms ease both;
}
.tab-panel p {
  margin: 0 0 10px;
}
.tab-panel a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(122, 160, 255, 0.45);
}
.tab-panel a:hover {
  color: var(--ink-0);
  border-color: currentColor;
}
.tab-panel__stub {
  color: var(--ink-3);
  font-size: 12px;
  font-style: italic;
}
.guide-block {
  display: grid;
  gap: 18px;
}
.guide-intro {
  padding: 14px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}
.guide-intro h3,
.info-note h4,
.guide-step h4 {
  margin: 0;
  color: var(--ink-0);
  font-weight: 700;
}
.guide-intro h3 {
  font-size: 16px;
}
.guide-intro p {
  margin: 7px 0 0;
  color: var(--ink-1);
}
.guide-steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}
.guide-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  counter-increment: guide-step;
}
.guide-step::before {
  content: counter(guide-step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #07111f;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 10px 24px rgba(88, 227, 209, 0.18);
}
.guide-step__body {
  min-width: 0;
}
.guide-step h4 {
  font-size: 14px;
  margin-top: 6px;
}
.guide-step p {
  color: var(--ink-1);
  margin: 6px 0 0;
}
.guide-shot {
  position: relative;
  width: min(100%, 300px);
  margin: 12px 0 2px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border-strong);
  background: rgba(0, 0, 0, 0.24);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}
.guide-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.info-note {
  padding: 14px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}
.info-note h4 {
  font-size: 14px;
}
.info-note p {
  margin-top: 7px;
  color: var(--ink-1);
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.modal__head h2 {
  font-size: 18px;
  font-weight: 600;
}
.modal__close {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-1);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: var(--tr-fast);
}
.modal__close:hover {
  color: var(--ink-0);
  background: rgba(255, 255, 255, 0.1);
}
.modal__text {
  color: var(--ink-1);
  font-size: 14px;
  margin-bottom: 16px;
}
.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

/* ===== toasts =========================================================== */
.toast-container {
  position: fixed;
  z-index: 80;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--glass-bg-strong);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border: 1px solid var(--glass-border);
  color: var(--ink-0);
  box-shadow: var(--glass-shadow);
  min-width: 220px;
  max-width: 360px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--tr-med), transform var(--tr-med);
  pointer-events: auto;
  font-size: 14px;
}
.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.toast.is-leaving {
  opacity: 0;
  transform: translateY(-4px);
}
.toast--success {
  border-color: rgba(100, 224, 165, 0.4);
  box-shadow: 0 14px 36px rgba(100, 224, 165, 0.2);
}
.toast--warn {
  border-color: rgba(255, 196, 106, 0.4);
}
.toast--error {
  border-color: rgba(255, 124, 142, 0.4);
}

/* ===== responsive ======================================================= */
@media (max-width: 640px) {
  .topbar {
    flex-wrap: wrap;
  }
  .topbar__right {
    width: 100%;
    justify-content: space-between;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .view-tabs {
    width: 100%;
    justify-content: space-between;
  }
  .search {
    flex: 1 1 100%;
    order: 2;
  }
  .btn--primary .btn__label {
    display: none;
  }
  .btn--primary .btn__plus {
    font-size: 22px;
    margin: 0;
  }
  .modal {
    padding: 12px;
  }
  .modal__card--lg {
    max-height: 92vh;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .guide-step {
    grid-template-columns: 30px minmax(0, 1fr);
  }
  .guide-step::before {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
