:root {
  --navy: #0B1F3A;
  --navy-2: #122a4a;
  --navy-3: #1A3358;
  --red: #AE030C;
  --red-2: #8E020A;
  --text: #0F172A;
  --muted: #5B6B80;
  --card: #fff;
  --bg: #F3F6FB;
  --line: #E2E8F0;
  --r: 12px;
  --r-lg: 16px;
  --shadow: 0 10px 32px rgba(11, 31, 58, .08);
  --shadow-lg: 0 24px 60px rgba(11, 31, 58, .16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Manrope, Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: #0F6CBD; }
img { max-width: 100%; }

.btn, button, .ghost, a.ghost, a.btn {
  font: inherit;
  font-weight: 700;
  border: 0;
  border-radius: var(--r);
  padding: 11px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  line-height: 1.2;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
button, .btn, a.btn:not(.btn-ghost) {
  background: var(--red);
  color: #fff;
}
button:hover, .btn:hover { background: var(--red-2); }
.ghost, a.ghost, .btn-ghost {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}
.landing .hero .btn-ghost, .landing .site-nav .btn-ghost {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.18);
}
.btn.is-on, .topnav a.active, .tab.active, .seg button.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.danger { background: var(--red); color: #fff; }
button:disabled { opacity: .55; cursor: not-allowed; }

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
}
.landing .site-nav {
  background: rgba(10, 22, 40, .72);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
body:not(.landing) .site-nav {
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.logo-sq {
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  background: linear-gradient(160deg, var(--red), #7A0108);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: -.04em;
}
img.logo-sq { display: block; object-fit: cover; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 15px; }
.brand-copy small { font-size: 12px; opacity: .7; font-weight: 500; }
.site-nav-right { display: flex; align-items: center; gap: 10px; }

.lang-dropdown { position: relative; }
button.lang-btn, .lang-btn {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r);
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}
body:not(.landing) button.lang-btn,
body:not(.landing) .lang-btn,
.admin button.lang-btn,
.admin .lang-btn {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}
.lang-flag, .current-lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 16px;
  flex: 0 0 22px;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.14);
  background: #fff;
}
.lang-flag svg, .current-lang-flag svg {
  display: block;
  width: 22px;
  height: 16px;
}
.lang-flag-emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
  font-size: 16px;
  line-height: 1;
  background: transparent;
  box-shadow: none;
}
.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 110%;
  background: #fff;
  color: var(--text);
  min-width: 240px;
  max-height: 360px;
  overflow: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  z-index: 40;
  padding: 6px;
}
.lang-dropdown.active .lang-menu { display: block; }
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
}
.lang-menu a.active, .lang-menu a:hover { background: var(--bg); }
.lang-slot { position: absolute; top: 18px; right: 18px; z-index: 5; }

.landing {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(174,3,12,.28), transparent 55%),
    linear-gradient(180deg, #081221 0%, #0B1F3A 58%, #F3F6FB 58%);
  color: #fff;
}
.landing main { color: var(--text); }
.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
  padding: 36px 28px 72px;
  max-width: 1120px;
  margin: 0 auto;
}
.kicker {
  opacity: .7;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: -.03em;
  max-width: 14ch;
}
.lead { max-width: 46ch; opacity: .82; font-size: 18px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-visual {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 22px;
  min-height: 280px;
  box-shadow: var(--shadow-lg);
}
.mail-card {
  background: #fff;
  color: var(--text);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.mail-card:last-child { margin-bottom: 0; transform: rotate(-1.5deg); }
.mail-card strong { display: block; margin-bottom: 4px; }
.mail-card span { color: var(--muted); font-size: 13px; }
.dot-row { display: flex; gap: 6px; margin-bottom: 10px; }
.dot-row i { width: 8px; height: 8px; border-radius: 2px; background: #CBD5E1; display: block; }
.dot-row i.on { background: var(--red); }

.feats {
  display: grid;
  gap: 16px;
  padding: 0 28px 8px;
  max-width: 1120px;
  margin: -36px auto 0;
}
@media (min-width: 800px) { .feats { grid-template-columns: repeat(3, 1fr); } }
.feats article, .how-card {
  background: #fff;
  color: var(--text);
  border-radius: var(--r-lg);
  padding: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.icon-sq {
  width: 42px;
  height: 42px;
  border-radius: var(--r);
  background: #FDECEC;
  color: var(--red);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 12px;
}
.feats h2, .how-card h3 { margin: 0 0 8px; font-size: 18px; }
.feats p, .how-card p { margin: 0; color: var(--muted); }

.how {
  max-width: 1120px;
  margin: 56px auto 0;
  padding: 0 28px;
  color: var(--text);
}
.how h2 { margin: 0 0 18px; font-size: 28px; letter-spacing: -.02em; }
.how-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .how-grid { grid-template-columns: repeat(3, 1fr); } }
.step { font-size: 12px; font-weight: 800; color: var(--red); letter-spacing: .08em; }

.cta-band {
  max-width: 1120px;
  margin: 48px auto 0;
  padding: 28px;
  background: var(--navy);
  color: #fff;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-band p { margin: 6px 0 0; opacity: .75; }

body.admin { background:
  radial-gradient(900px 420px at 100% 0%, rgba(174,3,12,.08), transparent 50%),
  var(--bg);
}
body.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 72px 16px 40px;
}
body.auth-screen #app {
  width: min(440px, 100%);
  margin: 0;
  padding: 0;
  max-width: none;
}
.auth-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.auth-card h1 { margin: 8px 0 6px; font-size: 26px; letter-spacing: -.03em; }
.auth-card .hint { margin-top: 0; }
.auth-card form button { width: 100%; margin-top: 16px; }
.auth-home {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.qr-box {
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 12px;
  margin: 12px 0;
}
.qr-box svg { display: block; }
.totp-secret {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
  background: var(--bg);
  border-radius: var(--r);
  padding: 10px 12px;
  word-break: break-all;
}

#app { max-width: 1080px; margin: 0 auto; padding: 28px 20px 80px; }
body.app-screen #app { padding-top: 24px; }
.admin-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 10px 12px;
  box-shadow: var(--shadow);
}
.admin-bar .brand-lockup { margin-right: auto; }
.topnav, .admin-links { display: flex; gap: 8px; flex-wrap: wrap; }
.topnav a, .admin-links a { padding: 9px 14px; }
.topnav { margin-bottom: 0; }

label { display: block; font-weight: 700; margin: 14px 0 6px; }
input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
}
textarea { min-height: 88px; }
.hint, .muted { color: var(--muted); }
.list { display: flex; flex-direction: column; gap: 8px; }
.row, .i18n-lang, .i18n-key {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.i18n-key { display: block; cursor: default; }
.i18n-key header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.pill {
  font-size: 12px;
  background: #EEF2FF;
  color: #3730A3;
  border-radius: 8px;
  padding: 2px 8px;
  font-weight: 700;
}
.flash { background: #FEE2E2; color: #991B1B; padding: 10px 12px; border-radius: var(--r); }
.ok { background: #ECFDF5; color: #065F46; padding: 10px 12px; border-radius: var(--r); }
.modal-overlay {
  position: fixed; inset: 0; background: rgba(11,31,58,.48);
  display: grid; place-items: center; z-index: 4000;
}
.modal-box {
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  width: min(420px, 92vw);
  box-shadow: var(--shadow-lg);
}
.progress-track { height: 8px; background: var(--line); border-radius: 8px; overflow: hidden; margin: 12px 0; }
.progress-fill { height: 100%; width: 0; background: var(--red); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.i18n-tabs { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
code { font-size: 12px; }

.wrap { max-width: 880px; margin: 0 auto; padding: 24px 20px 80px; }
.legal-wrap { max-width: 820px; }
.legal-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px;
}
.brand { color: inherit; text-decoration: none; display: flex; flex-direction: column; }
.brand span { font-size: 13px; color: var(--muted); }
.legal-card {
  background: var(--card);
  border-radius: 20px;
  padding: 22px 24px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.legal-card h1 { margin: 8px 0 4px; font-size: 1.6rem; }
.legal-card h2 { margin: 22px 0 8px; font-size: 1.05rem; color: var(--navy); }
.legal-card p { line-height: 1.6; }
.legal-toc { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 12px; }
.legal-toc a { color: var(--muted); text-decoration: none; font-size: 0.85rem; }
.legal-toc a.active { color: var(--red); font-weight: 700; }
.legal-langs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.legal-langs a {
  color: var(--muted); text-decoration: none; font-size: 0.78rem;
  border: 1px solid var(--line); border-radius: var(--r); padding: 6px 10px;
}
.legal-langs a.active, .legal-langs a:hover { color: var(--red); border-color: var(--red); }

.support-email {
  margin: 4px 0 22px; font-weight: 600;
}
.support-email a { color: var(--red); text-decoration: none; }
.support-email a:hover { text-decoration: underline; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin: 0 0 10px;
}
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.faq-item p { margin: 10px 0 2px; line-height: 1.6; }

/* Regla global, no solo del modal de descarga: varios componentes del sitio
   (este modal, el banner de cookies) tienen su propia clase con `display`
   fijo para cuando SÍ están visibles (`.modal-overlay{display:grid}`,
   `.cookie-banner{display:flex}`), y esa regla de autor pisa el
   `display:none` que el navegador aplica por defecto al atributo `hidden`.
   Sin este !important aquí, cualquier elemento así se queda pintado en
   pantalla pase lo que pase con `el.hidden` -- que es justo lo que pasaba:
   el modal aparecía solo, y el botón "Aceptar" de cookies no cerraba nada. */
[hidden] { display: none !important; }

/* Apaisado a propósito: franja roja arriba, de punta a punta (marca +
   promesa en una sola línea), y el contenido debajo en todo el ancho --
   nada de panel lateral. Así el diálogo se lee como una tarjeta ancha y
   corta, no como una columna que hay que desplazar. Se apila el texto de
   la franja solo en pantallas muy estrechas (ver media query). */
.dl-modal {
  position: relative; width: min(640px, 94vw); border-radius: 20px;
  overflow: hidden; background: #fff; box-shadow: var(--shadow-lg);
  max-height: 92vh; display: flex; flex-direction: column;
}
.dl-modal-head {
  background: linear-gradient(100deg, var(--red), #7A0108);
  padding: 20px 24px; color: #fff;
  display: flex; align-items: center; gap: 14px;
}
.dl-modal-head .logo-sq { flex: none; background: rgba(255,255,255,.18); }
.dl-modal-head h2 { color: #fff; font-size: 1.1rem; margin: 0 0 2px; }
.dl-modal-head p { color: rgba(255,255,255,.88); font-size: .82rem; margin: 0; line-height: 1.4; }
.dl-modal-head .modal-x { margin-left: auto; flex: none; position: static; }
.dl-modal-body { padding: 24px 28px 26px; overflow-y: auto; }

.dl-feat-list {
  list-style: none; margin: 0 0 22px; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.dl-feat-list li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.dl-feat-dot {
  flex: none; width: 32px; height: 32px; border-radius: 9px;
  background: #FDECEC; color: var(--red); display: grid; place-items: center;
  font-weight: 800; font-size: .9rem;
}
.dl-feat-list strong { display: block; font-size: .87rem; color: var(--navy); margin-bottom: 2px; }
.dl-feat-list div { font-size: .8rem; color: var(--muted); line-height: 1.4; }

.howm-steps { list-style: none; margin: 0 0 20px; padding: 0; }
.howm-steps li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; }
.howm-steps li + li { border-top: 1px solid var(--line); }
.howm-num {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  background: #FDECEC; color: var(--red); display: grid; place-items: center;
  font-weight: 800; font-size: .85rem;
}
.howm-steps strong { display: block; font-size: .9rem; color: var(--navy); margin-bottom: 2px; }
.howm-steps div { font-size: .82rem; color: var(--muted); line-height: 1.45; }
.howm-sec {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg); padding: 14px 16px;
}
.howm-sec h3 {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 8px; font-size: .92rem; color: var(--navy);
}
.howm-sec h3 svg { flex: none; color: var(--red); }
.howm-sec ul { margin: 0; padding-left: 18px; }
.howm-sec li { font-size: .8rem; color: var(--muted); line-height: 1.5; margin: 4px 0; }

.modal-x {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px;
  border: none; background: transparent; color: var(--muted); font-size: 20px;
  line-height: 1; cursor: pointer; border-radius: 8px; z-index: 1;
}
.modal-x:hover { background: var(--bg); color: var(--navy); }
.modal-x.modal-x-light { background: rgba(255,255,255,.16); color: #fff; }
.modal-x.modal-x-light:hover { background: rgba(255,255,255,.28); }

.store-row { display: flex; flex-direction: row; gap: 10px; }
.store-btn {
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px;
  color: var(--navy); background: #fff; transition: border-color .15s, background .15s;
}
.store-btn:hover { border-color: var(--red); background: #FFFBFB; }
.store-icon {
  flex: none; width: 34px; height: 34px; border-radius: 9px;
  background: #FDECEC; color: var(--red); display: grid; place-items: center;
}
.store-name { display: block; font-weight: 700; font-size: .88rem; }
.store-soon {
  display: inline-block; margin-top: 2px; font-size: .64rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--red);
  background: rgba(174,3,12,.08); border-radius: 99px; padding: 1px 7px;
}
@media (max-width: 560px) {
  .dl-modal { width: min(400px, 94vw); }
  .dl-modal-head { flex-wrap: wrap; }
  .dl-feat-list { grid-template-columns: 1fr; }
  .store-row { flex-direction: column; }
}

.site-footer {
  margin-top: 48px;
  padding: 28px 24px 96px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}
.landing .site-footer {
  color: var(--muted);
  border-top-color: var(--line);
  background: transparent;
}
.legal-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.legal-links a { color: var(--muted); text-decoration: none; }
.legal-links a:hover, .legal-links a.active { color: var(--red); }

.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1500;
  max-width: 720px; margin: 0 auto;
  background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px 18px; display: flex; gap: 16px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; box-shadow: var(--shadow-lg);
}
.cookie-banner p { margin: 6px 0 0; color: var(--muted); font-size: 0.85rem; }
.cookie-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin: 14px 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.card h3 { margin: 0 0 12px; }
.notif-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .notif-grid { grid-template-columns: 1.2fr .8fr; } }
.user-pick { max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); }
.user-pick label {
  display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 500;
  padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer;
}
.user-pick input { width: auto; }
.user-pick .u-item { border-bottom: 1px solid var(--line); }
.user-pick .u-item > label { border-bottom: 0; padding-bottom: 4px; }
.user-pick .dev-list { padding: 0 12px 8px 30px; }
.user-pick .dev-list label {
  display: flex; align-items: center; gap: 7px; margin: 0;
  padding: 2px 0; border: 0; font-weight: 400; font-size: 12px;
}
.user-pick .dev-list label:has(input:disabled) { opacity: .55; cursor: default; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.history { width: 100%; border-collapse: collapse; font-size: 13px; }
.history th, .history td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
/* Panel admin → zona de usuarios */
.users-list { display: grid; gap: 12px; }
.users-stats { display: flex; gap: 8px; margin: 4px 0 6px; }
.stat-chip {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; font-size: 12.5px; color: var(--muted); box-shadow: var(--shadow);
}
.stat-chip b { color: var(--text); }
.stat-chip.prem b { color: var(--red); }
.user-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 14px 16px;
  display: flex; gap: 14px; align-items: flex-start;
}
.user-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: linear-gradient(160deg, var(--navy), var(--navy-3));
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 17px;
}
.user-card.prem .user-avatar { background: linear-gradient(160deg, var(--red), var(--red-2)); }
.user-main { flex: 1; min-width: 0; }
.user-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; }
.pill.prem { background: #FEF3C7; color: #92400E; }
.pill.admin { background: #E0E7FF; color: #3730A3; }
.user-meta {
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  margin-top: 3px; font-size: 12.5px; color: var(--muted);
}
.user-meta b { color: var(--text); font-weight: 600; }
.user-devs {
  margin-top: 10px; padding-top: 8px;
  border-top: 1px dashed var(--line); display: grid; gap: 6px;
}
.user-devs-empty { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.user-dev { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.user-dev .dev-ico {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: var(--bg); display: grid; place-items: center; font-size: 15px;
}
.user-dev b { color: var(--text); font-weight: 600; }
.prem-toggle { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; cursor: pointer; }
.prem-toggle small {
  font-size: 10.5px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em;
}
.switch { position: relative; width: 44px; height: 24px; display: inline-block; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0; background: #CBD5E1; border-radius: 999px;
  transition: background .15s; cursor: pointer;
}
.switch .track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; background: #fff; border-radius: 50%;
  transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.28);
}
.switch input:checked + .track { background: var(--red); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:disabled + .track { opacity: .55; cursor: wait; }
.field-check { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 0; }
.field-check input { width: auto; margin-top: 3px; }
.field-check span { font-weight: 500; line-height: 1.4; }
.modal-box.wide { width: min(560px, 94vw); }
.log-list { list-style: none; margin: 12px 0 0; padding: 0; max-height: 320px; overflow: auto; }
.log-list li {
  display: flex; gap: 8px; align-items: flex-start; padding: 8px 0;
  border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.4;
}
.log-list .dot { width: 8px; height: 8px; border-radius: 4px; margin-top: 6px; flex: none; background: #94A3B8; }
.log-list .ok-dot { background: #059669; }
.log-list .err-dot { background: #DC2626; }
.log-list .spin-dot { background: var(--red); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 48px; }
  .hero-visual { display: none; }
  .cta-band { margin-left: 16px; margin-right: 16px; }
}
