/* ============================================================
   VK OPS — дизайн-система «Ops Glass»
   Сгенерирована скиллом ui-ux-pro-max:
     style: Glassmorphism · density 8/10 · motion 3/10 · variance 4/10
     colors: dark slate + status green · fonts: Fira Sans / Fira Code
   ============================================================ */

:root {
  --bg: #0f172a;
  --bg-2: #131c31;
  --surface: #1b2336;
  --surface-2: #222c43;
  --surface-3: #2a3550;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --accent: #22c55e;
  --accent-2: #4ade80;
  --accent-ink: #06210f;
  --accent-soft: rgba(34, 197, 94, 0.14);
  --danger: #ef4444;
  --success: #22c55e;
  --warn: #eab308;
  --info: #38bdf8;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 9px;
  --blur: 18px;
  --glass-bg: rgba(27, 35, 54, 0.55);
  --glass-border: rgba(255, 255, 255, 0.1);
  color-scheme: dark;

  --mono: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Fira Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow-sm: 0 1px 2px rgba(2, 6, 12, 0.35), 0 4px 12px rgba(2, 6, 12, 0.25);
  --shadow-md: 0 2px 4px rgba(2, 6, 12, 0.3), 0 14px 36px rgba(2, 6, 12, 0.38);
  --shadow-lg: 0 10px 20px rgba(2, 6, 12, 0.4), 0 36px 90px rgba(2, 6, 12, 0.55);
  --glow: 0 8px 24px rgba(34, 197, 94, 0.35);
}

* { box-sizing: border-box; }
html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(900px 620px at 10% -12%, rgba(34, 197, 94, 0.12), transparent 62%),
    radial-gradient(820px 560px at 92% -8%, rgba(56, 189, 248, 0.10), transparent 60%),
    radial-gradient(760px 520px at 72% 108%, rgba(99, 102, 241, 0.09), transparent 64%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(34, 197, 94, 0.35); color: #fff; }

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 92% 70% at 50% -10%, black 12%, transparent 82%);
  pointer-events: none;
}
.grid-overlay { display: none; }

.hidden { display: none !important; }

/* ---------- shell ---------- */
.sidebar {
  background: linear-gradient(180deg, rgba(19, 28, 49, 0.92), rgba(13, 20, 36, 0.94));
  backdrop-filter: blur(var(--blur)) saturate(140%);
  border-right: 1px solid var(--line-soft);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.03) inset;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--accent-ink);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 46%),
    linear-gradient(140deg, #4ade80 0%, #22c55e 52%, #16a34a 100%);
  box-shadow: var(--glow), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

.brand-name { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.brand-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 2px;
}

.nav-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #55647c;
  padding: 0 11px;
  margin: 14px 0 6px;
}
.nav-label:first-child { margin-top: 2px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-radius: var(--radius-xs);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  position: relative;
}
.nav-item svg { width: 16px; height: 16px; opacity: 0.72; flex: none; }
.nav-item:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.18), rgba(34, 197, 94, 0.04));
  border-color: rgba(34, 197, 94, 0.28);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 6px 18px rgba(22, 163, 74, 0.14);
}
.nav-item.active svg { opacity: 1; color: var(--accent-2); }
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 24%;
  height: 52%;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.85);
}

/* ---------- glass surfaces ---------- */
.glass {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.015) 45%, rgba(255, 255, 255, 0)),
    var(--glass-bg);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, var(--shadow-md);
}
.glass-soft {
  background: rgba(34, 44, 67, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

/* блик по верхней кромке стеклянных карточек */
.glass { position: relative; }
.glass::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  pointer-events: none;
}

h1, h2, h3 { letter-spacing: -0.018em; }

/* ---------- metrics ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.01) 50%),
    var(--glass-bg);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, var(--shadow-md);
}
.metric { padding: 15px 18px; border-right: 1px solid var(--line-soft); min-width: 0; }
.metric:last-child { border-right: none; }
.stat-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
}
.stat-value {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-top: 7px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.metric .stat-value.accent { color: var(--accent-2); }
.metric .stat-value.warn { color: #facc15; }
.metric .stat-value.danger { color: #f87171; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: var(--radius-xs);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.004em;
  border: 1px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease,
    box-shadow 0.16s ease, transform 0.1s ease, opacity 0.16s;
  user-select: none;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.42; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary {
  color: var(--accent-ink);
  background: linear-gradient(180deg, #2fd96b 0%, #22c55e 60%, #1cab51 100%);
  border-color: rgba(34, 197, 94, 0.85);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 6px 18px rgba(34, 197, 94, 0.24);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #3ee27a 0%, #2bce67 60%, #20b658 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.32) inset, 0 8px 22px rgba(34, 197, 94, 0.32);
}
.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--line-strong); }
.btn-danger {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.09);
  border-color: rgba(239, 68, 68, 0.3);
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.16); border-color: rgba(239, 68, 68, 0.5); }
.btn-sm { padding: 5px 10px; font-size: 11px; border-radius: 8px; }

.icon-btn {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
  font-size: 14px;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.09); color: var(--text); border-color: var(--line-strong); }
.icon-btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.icon-btn.danger:hover { color: var(--danger); border-color: rgba(239, 68, 68, 0.45); }

/* ---------- inputs ---------- */
.field {
  width: 100%;
  background: rgba(8, 13, 24, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 9px 12px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  outline: none;
  box-shadow: 0 1px 2px rgba(2, 6, 12, 0.35) inset;
  transition: border-color 0.16s, background 0.16s, box-shadow 0.16s;
}
.field::placeholder { color: #5a6b84; }
.field:hover { border-color: var(--line-strong); }
.field:focus {
  border-color: var(--accent);
  background: rgba(8, 13, 24, 0.8);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18), 0 1px 2px rgba(2, 6, 12, 0.35) inset;
}
select.field { background-color: var(--surface-2); color: var(--text); }

.drop-card { transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease; }
.drop-card.drag {
  border-color: var(--accent);
  background:
    linear-gradient(160deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.02)),
    var(--glass-bg);
  box-shadow: 0 0 0 1px var(--accent) inset, 0 0 40px rgba(34, 197, 94, 0.24);
}
.drop-card.drag textarea { border-color: var(--accent); }

.label {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  font-weight: 500;
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: -8px -8px 18px;
  padding: 11px 8px 13px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94) 30%, rgba(15, 23, 42, 0.7));
  backdrop-filter: blur(var(--blur)) saturate(150%);
  border-bottom: 1px solid var(--line-soft);
}

/* ---------- table ---------- */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.data-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.03);
}
.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.data-table tbody tr { transition: background 0.14s ease; }
.data-table tbody tr:hover { background: rgba(34, 197, 94, 0.05); }
.data-table tbody tr:last-child td { border-bottom: none; }
.row-actions { display: flex; justify-content: flex-end; gap: 5px; flex-wrap: wrap; }

/* ---------- status pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}
.pill-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.pill-new, .pill-idle, .pill-cancelled { color: #93a4bb; }
.pill-loading, .pill-starting, .pill-code_search {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.32);
  background: rgba(56, 189, 248, 0.1);
}
.pill-awaiting_code { color: #facc15; border-color: rgba(250, 204, 21, 0.3); background: rgba(250, 204, 21, 0.1); }
.pill-submitting { color: #c4b5fd; border-color: rgba(196, 181, 253, 0.3); background: rgba(196, 181, 253, 0.1); }
.pill-challenge { color: #fdba74; border-color: rgba(253, 186, 116, 0.32); background: rgba(253, 186, 116, 0.1); }
.pill-success { color: #86efac; border-color: rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.12); }
.pill-error { color: #fca5a5; border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.12); }

/* ---------- modals ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  background: rgba(6, 10, 18, 0.68);
  backdrop-filter: blur(12px) saturate(120%);
  animation: fadeIn 0.16s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-card {
  width: 100%;
  margin: auto;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01) 45%),
    rgba(27, 35, 54, 0.92);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, var(--shadow-lg);
  animation: modalIn 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(0.99); } to { opacity: 1; transform: none; } }

/* ---------- stepper ---------- */
.stepper { display: flex; align-items: center; }
.step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.step-circle {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted-2);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.step.done .step-circle {
  border-color: rgba(34, 197, 94, 0.45);
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
}
.step.active .step-circle {
  border-color: var(--accent);
  color: var(--accent-2);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}
.step-line { flex: 1; height: 1px; background: var(--line-soft); margin: 0 8px; min-width: 14px; }

/* ---------- code input ---------- */
.code-input {
  text-align: center;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.4em;
  padding: 11px 13px;
  color: var(--accent-2);
}

/* ---------- log ---------- */
.log-console {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.65;
  color: #aebbd0;
  background: rgba(6, 10, 18, 0.6);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xs);
  padding: 11px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(2, 6, 12, 0.4) inset;
}
.log-console .log-line { animation: none; }
.log-console .log-time { color: var(--muted-2); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(34, 44, 67, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: min(420px, calc(100vw - 36px));
}
.toast.ok { border-color: rgba(34, 197, 94, 0.4); }
.toast.error { border-color: rgba(239, 68, 68, 0.42); }
.toast.hide { opacity: 0; transform: translateY(6px); transition: opacity 0.16s, transform 0.16s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- misc ---------- */
.fade-up { animation: fadeUp 0.26s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  color: var(--accent-ink);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 46%),
    linear-gradient(140deg, #4ade80, #22c55e);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.32);
}
.role-badge {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 2px 7px;
  border-radius: 5px;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}
.role-owner { color: #86efac; border-color: rgba(34, 197, 94, 0.4); background: var(--accent-soft); }
.role-worker { color: var(--muted); }

.switch {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.switch.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 16px rgba(34, 197, 94, 0.5); }
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f1f5f9;
  transition: transform 0.18s;
}
.switch.on::after { transform: translateX(16px); background: #06210f; }

.empty-orb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  margin: 0 auto 14px;
}

input[type="checkbox"], input[type="radio"] {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.24);
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.4); background-clip: content-box; }

/* ---------- login ---------- */
.login-shell {
  width: 100%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(27, 35, 54, 0.6);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(34, 197, 94, 0.08);
}
.login-brand {
  padding: 46px;
  background:
    radial-gradient(700px 400px at 8% -10%, rgba(34, 197, 94, 0.24), transparent 62%),
    radial-gradient(520px 320px at 102% 104%, rgba(56, 189, 248, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(19, 28, 49, 0.9), rgba(10, 16, 30, 0.92));
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 44px;
  position: relative;
  overflow: hidden;
}
.login-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at 18% 8%, black, transparent 74%);
  pointer-events: none;
}
.login-brand > * { position: relative; z-index: 1; }
.login-form-side { padding: 46px; background: rgba(17, 24, 42, 0.55); }
.login-stat {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.login-headline {
  font-size: 38px;
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 700;
  color: #fff;
}
.login-headline span {
  background: linear-gradient(120deg, #86efac, #22c55e 52%, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.login-list { display: flex; flex-direction: column; gap: 11px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.login-list div { display: flex; gap: 10px; align-items: center; }
.login-list i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
}

/* ---------- адаптив ---------- */
@media (max-width: 1023px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 258px;
    z-index: 70;
    transform: translateX(-100%);
    transition: transform 0.24s ease, visibility 0s linear 0.24s;
    visibility: hidden;
    pointer-events: none;
  }
  .sidebar.open {
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.24s ease, visibility 0s;
  }
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 18, 0.7);
    z-index: 60;
    backdrop-filter: blur(4px);
  }
}
@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; max-width: 430px; }
  .login-brand { display: none; }
  .login-form-side { padding: 30px; }
}
@media (max-width: 720px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { border-bottom: 1px solid var(--line-soft); }
  .metric:nth-child(2n) { border-right: none; }
  .metric:nth-last-child(-n+2) { border-bottom: none; }
  .field { font-size: 16px; }
  .code-input { font-size: 20px; letter-spacing: 0.3em; }
  .step { font-size: 0; gap: 0; }
  .step-circle { width: 20px; height: 20px; }
  .step-line { margin: 0 4px; min-width: 8px; }
  .modal-backdrop { padding: 10px; }
  .modal-card { max-height: calc(100dvh - 20px); border-radius: 16px; }
  .log-console { min-height: 140px; }
  .topbar { margin: -8px -8px 14px; padding: 9px 8px 11px; }
}
@media (max-width: 420px) {
  .login-shell { border-radius: 18px; }
  .login-form-side { padding: 22px; }
}

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

/* ---------- утилиты Tailwind → палитра темы ---------- */
.text-white { color: var(--text) !important; }
.text-slate-300 { color: #cbd5e1 !important; }
.text-slate-400 { color: var(--muted) !important; }
.text-slate-500 { color: var(--muted-2) !important; }
.text-slate-600 { color: #526273 !important; }
.text-rose-300 { color: #fca5a5 !important; }
.text-rose-400 { color: #f87171 !important; }
.text-emerald-400 { color: #86efac !important; }
.bg-ink { background-color: var(--bg) !important; }
.bg-panel { background-color: var(--surface) !important; }
.bg-card { background-color: var(--surface-2) !important; }
.border-line { border-color: var(--line) !important; }
