:root {
  --bg: #0b1020;
  --bg-soft: #121a32;
  --card: rgba(10, 14, 28, 0.26);
  --card-strong: rgba(8, 12, 24, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f7fb;
  --muted: #a8b2cc;
  --accent: #6366f1;
  --accent-2: #c7d2fe;
  --accent-strong: #4f46e5;
  --success: #22c55e;
  --danger: #ff7875;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background: #070b16;
  font-family: "Segoe UI", system-ui, sans-serif;
}

body {
  position: relative;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 18px calc(env(safe-area-inset-bottom, 0px) + 24px);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.18), transparent 28%),
    radial-gradient(circle at right 20%, rgba(199, 210, 254, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(7, 10, 22, 0.02) 0%, rgba(7, 10, 22, 0.12) 30%, rgba(7, 10, 22, 0.5) 70%, rgba(7, 10, 22, 0.66) 100%);
  pointer-events: none;
  z-index: -2;
}

a {
  color: inherit;
  text-decoration: none;
}

.cinema-backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: #070b16;
}

.cinema-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 8, 18, 0.02) 0%, rgba(4, 8, 18, 0.08) 24%, rgba(4, 8, 18, 0.26) 58%, rgba(4, 8, 18, 0.54) 100%);
  pointer-events: none;
}

.site-header,
.page-shell {
  position: relative;
  z-index: 1;
}

.cinema-backdrop-layer {
  position: absolute;
  inset: -10%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  filter: saturate(1.12) contrast(1.06) brightness(0.98);
  transform: scale(1.14);
  animation: backdropFade 34s linear infinite, backdropDrift 18s ease-in-out infinite alternate;
  will-change: opacity, transform;
}

.cinema-backdrop-layer.layer-1 { animation-delay: 0s, 0s; }
.cinema-backdrop-layer.layer-2 { animation-delay: 8s, 2s; }
.cinema-backdrop-layer.layer-3 { animation-delay: 16s, 4s; }
.cinema-backdrop-layer.layer-4 { animation-delay: 24s, 6s; }
.cinema-backdrop-layer.layer-5 { animation-delay: 32s, 8s; }

.site-header,
.page-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.site-header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

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

.brand-icon {
  width: clamp(54px, 7vw, 74px);
  height: clamp(54px, 7vw, 74px);
  display: block;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: white;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
}

h1, h2, h3 {
  margin: 0;
}

.header-actions,
.user-pill {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ghost-button,
.login-button,
.primary-link,
.secondary-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  font: inherit;
}

.ghost-button,
.login-button,
.secondary-link {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 10px 16px;
}

.primary-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 18px;
  color: #eef2ff;
  border-color: rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.24);
}

.secondary-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-color: rgba(99, 102, 241, 0.26);
  background: rgba(99, 102, 241, 0.12);
  color: #dbe3ff;
}

.ghost-button:hover,
.login-button:hover,
.primary-link:hover,
.secondary-link:hover {
  transform: translateY(-1px);
}

.login-button:hover,
.primary-link:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: rgba(99, 102, 241, 0.56);
}

.ghost-button:hover,
.secondary-link:hover {
  border-color: rgba(199, 210, 254, 0.34);
  background: rgba(99, 102, 241, 0.18);
}

.hero-card,
.panel {
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.5fr minmax(220px, 0.8fr);
  padding: 26px;
  margin-bottom: 22px;
}

.hero-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.hero-links {
  display: grid;
  gap: 12px;
  align-content: center;
}

.private-note {
  color: var(--muted);
  line-height: 1.6;
}

.icon-link {
  gap: 10px;
}

.link-favicon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(255,255,255,0.9);
  object-fit: contain;
  padding: 1px;
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.flash {
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.flash-error {
  background: rgba(255, 120, 117, 0.12);
  color: #ffd4d4;
}

.flash-success {
  background: rgba(80, 200, 120, 0.12);
  color: #d8ffe5;
}

.dialog-inline-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 120, 117, 0.24);
  background: rgba(255, 120, 117, 0.14);
  color: #ffd4d4;
  line-height: 1.45;
}

.dashboard-grid,
.content-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-grid {
  grid-template-columns: 1.3fr 0.9fr;
}

.content-grid-full {
  display: block;
}

.content-grid-full .news-panel {
  width: 100%;
}

.panel {
  padding: 22px;
}

.content-panel,
.guide-panel {
  backdrop-filter: blur(12px);
}

.news-panel {
  min-width: 0;
}

.metric {
  margin: 16px 0 8px;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 800;
}

.metric.ok {
  color: #9cf0b4;
}

.metric.bad {
  color: #ffb3b1;
}

.metric-compact {
  margin: 10px 0 6px;
  font-size: clamp(1.08rem, 1.4vw, 1.35rem);
}

.metric-limit {
  margin: 8px 0 2px;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
}

.inline-favicon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -3px;
  border-radius: 4px;
  background: rgba(255,255,255,0.92);
  object-fit: contain;
  padding: 1px;
}

.panel-note,
.notification-card small {
  color: var(--muted);
  line-height: 1.55;
}

.quick-links {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.quick-links a {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(7, 12, 24, 0.28);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.renewal-link {
  margin-top: 16px;
  width: 100%;
  text-align: center;
}

.profile-email-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.profile-email-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.compact-note {
  margin: 0;
  font-size: 0.88rem;
}

.invite-panel {
  margin-bottom: 18px;
}

.invite-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 14px;
  align-items: center;
}

.invite-submit {
  min-width: 220px;
}

.section-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(7, 12, 24, 0.28);
  color: var(--muted);
  font-size: 0.86rem;
}

.news-list {
  display: grid;
  gap: 10px;
}

.news-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(7, 12, 24, 0.26);
  border: 1px solid var(--line);
}

.news-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-favicon {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: rgba(255,255,255,0.92);
  object-fit: contain;
  padding: 1px;
}

.notification-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(7, 12, 24, 0.26);
  border: 1px solid var(--line);
}

.notification-card p {
  margin: 0;
  line-height: 1.6;
  white-space: pre-wrap;
}

.admin-form {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.admin-form input[type="file"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-strong);
  color: var(--text);
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
}

.admin-form input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 12px;
  padding: 8px 16px;
  margin-right: 12px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}

.admin-form input[type="file"]::file-selector-button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.admin-form label {
  color: var(--muted);
  font-size: 0.92rem;
}

textarea,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-strong);
  color: var(--text);
  padding: 14px;
  font: inherit;
}

.guide-panel {
  margin-bottom: 24px;
}

.pdf-shell {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 72vh;
  background: rgba(7, 12, 24, 0.22);
}

.pdf-viewer {
  width: 100%;
  min-height: 72vh;
}

.article-panel {
  max-width: 980px;
  margin: 0 auto 24px;
}

.article-hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}

.article-description {
  color: var(--accent-2);
  font-size: 1.02rem;
  line-height: 1.65;
}

.article-body {
  display: grid;
  gap: 14px;
}

.article-body p {
  margin: 0;
  color: var(--text);
  line-height: 1.78;
}

.login-dialog {
  width: min(440px, calc(100vw - 24px));
  border: none;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  background: transparent;
}

.login-dialog::backdrop {
  background:
    linear-gradient(180deg, rgba(2, 6, 16, 0.38), rgba(2, 6, 16, 0.74)),
    rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(6px);
}

.dialog-card {
  background:
    linear-gradient(180deg, rgba(10, 15, 30, 0.98), rgba(11, 18, 38, 0.95)),
    var(--card-strong);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
  padding: 24px;
  display: grid;
  gap: 14px;
}

.dialog-card h3,
.dialog-card label,
.dialog-card .eyebrow {
  color: #f8fbff;
}

.dialog-card label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.dialog-close {
  border: none;
  background: transparent;
  color: #f8fbff;
  font-size: 1.8rem;
  cursor: pointer;
}

.full-button {
  width: 100%;
}

.forgot-button {
  margin-top: 4px;
  min-height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  font-weight: 700;
}

.forgot-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.dialog-card input[type="text"],
.dialog-card input[type="password"],
.dialog-card input[type="email"] {
  background: rgba(5, 10, 24, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.dialog-card input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.text-action {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--accent-2);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.reset-shell {
  max-width: 540px;
  margin: 0 auto 24px;
}

.reset-card {
  display: grid;
  gap: 16px;
}

.reset-form {
  display: grid;
  gap: 14px;
}

.reset-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.admin-stack {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-panel {
  backdrop-filter: blur(14px);
  min-width: 0;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  align-items: start;
}

.settings-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  min-width: 0;
}

.settings-checks {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 22px;
}

.checkbox-row {
  display: inline-flex !important;
  gap: 10px;
  align-items: center;
}

.checkbox-row input {
  width: auto;
}

.admin-divider {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--line);
  margin: 4px 0;
}

.full-span {
  grid-column: 1 / -1;
}

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

.settings-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.audit-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 12, 24, 0.22);
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.audit-table th,
.audit-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

.audit-table th {
  color: var(--accent-2);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.audit-table td {
  color: var(--text);
  font-size: 0.92rem;
  word-break: break-word;
}

.audit-status {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid var(--line);
}

.audit-ok {
  background: rgba(80, 200, 120, 0.14);
  color: #caffd7;
}

.audit-error {
  background: rgba(255, 120, 117, 0.14);
  color: #ffd7d7;
}

.empty-state {
  color: var(--muted);
}

@keyframes backdropFade {
  0% { opacity: 0; }
  7% { opacity: 0.56; }
  18% { opacity: 0.96; }
  30% { opacity: 0.78; }
  40% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes backdropDrift {
  0% { transform: scale(1.14) translate3d(0, 0, 0); }
  100% { transform: scale(1.24) translate3d(-3.6%, -2.4%, 0); }
}

@media (max-width: 920px) {
  .hero-card,
  .dashboard-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-icon {
    width: 58px;
    height: 58px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .pdf-shell,
  .pdf-viewer {
    min-height: 56vh;
  }

  .invite-form {
    grid-template-columns: 1fr;
  }

  .invite-submit {
    width: 100%;
    min-width: 0;
  }

  .settings-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .settings-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-actions {
    justify-content: stretch;
  }

  .settings-actions .primary-link,
  .settings-actions .secondary-link {
    width: 100%;
    text-align: center;
  }

  .settings-checks {
    padding-top: 4px;
    gap: 12px;
  }

  .admin-panel {
    padding: 18px;
  }

  .audit-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .audit-table thead {
    display: none;
  }

  .audit-table tbody {
    display: grid;
    gap: 12px;
    padding: 12px;
  }

  .audit-table tr {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(7, 12, 24, 0.28);
  }

  .audit-table td {
    display: grid;
    gap: 4px;
    padding: 0;
    border: 0;
  }

  .audit-table td::before {
    content: attr(data-label);
    color: var(--accent-2);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
}

.referral-panel .referral-card { display: grid; gap: .75rem; }
.referral-link-row { display: flex; gap: .5rem; align-items: center; }
.referral-link-row input { flex: 1; padding: .5rem .75rem; border-radius: 8px; border: 1px solid var(--border-subtle, #333); background: rgba(255,255,255,.04); color: inherit; font-family: monospace; }
.referral-stats { display: flex; gap: 1rem; flex-wrap: wrap; opacity: .9; }
.referral-stats strong { font-size: 1.2em; }
.referral-friends ul { margin: .5rem 0 0 1rem; padding: 0; }
.referral-friends li { margin: .25rem 0; font-size: .9em; opacity: .85; }

/* ========== Estado de los servicios ========== */
.services-panel .service-list { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.service-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card-strong); }
.service-name { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.service-state { font-size: .9em; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; }
.service-state.ok { color: #34d399; background: rgba(52,211,153,.12); }
.service-state.bad { color: #f87171; background: rgba(248,113,113,.14); }

/* ========== Quick links larger ========== */
.quick-links-large .icon-link span { font-size: 1.1rem; font-weight: 700; letter-spacing: .01em; }
.quick-links-large .icon-link { padding: .85rem 1rem; }

/* ========== Collapsible admin panels ========== */
.collapsible-panel { padding: 0; overflow: hidden; }
.collapsible-head { width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.1rem 1.4rem; background: transparent; border: 0; color: inherit;
  cursor: pointer; text-align: left; font: inherit; }
.collapsible-head:hover { background: rgba(255,255,255,.03); }
.collapsible-title .eyebrow { margin: 0 0 .15rem; }
.collapsible-title h3 { margin: 0; }
.collapsible-arrow { width: 38px; height: 38px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #111; transition: transform .25s ease, filter .15s ease, box-shadow .15s ease; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(255,105,71,.25); }
.collapsible-head:hover .collapsible-arrow { filter: brightness(1.1); }
.collapsible-panel.is-open .collapsible-arrow { transform: rotate(180deg); }
.collapsible-body { padding: 0 1.4rem 1.4rem; }

/* ========== Guía interactiva ========== */
.interactive-guide .guide-progress { font-size: .85rem; opacity: .75; padding: .25rem .65rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card-strong); }
.guide-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: .9rem 0 1.1rem;
  padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.guide-tab { background: var(--card-strong); border: 1px solid var(--line); color: inherit;
  padding: .5rem .85rem; border-radius: 999px; cursor: pointer; font: inherit; font-size: .88rem;
  transition: background .15s ease, border-color .15s ease, transform .1s ease; }
.guide-tab:hover { border-color: var(--accent); }
.guide-tab.is-active { background: linear-gradient(135deg, var(--accent-2), var(--accent)); border-color: transparent;
  color: #111; font-weight: 700; box-shadow: 0 4px 14px rgba(255,105,71,.25); }
.guide-pane { display: none; animation: guideFade .25s ease; }
.guide-pane.is-active { display: block; }
@keyframes guideFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.guide-pane h4 { margin: .25rem 0 .6rem; font-size: 1.15rem; }
.guide-list { margin: .5rem 0 .9rem 1.1rem; padding: 0; line-height: 1.55; }
.guide-list li { margin: .35rem 0; }
.guide-list.ordered { list-style: decimal; }
.guide-tip { background: rgba(99,102,241,.10); border: 1px solid rgba(99,102,241,.35);
  border-radius: 12px; padding: .7rem .9rem; margin: .85rem 0; font-size: .92rem; }
.guide-actions { display: flex; justify-content: space-between; gap: .5rem; margin-top: 1rem;
  padding-top: .85rem; border-top: 1px dashed var(--line); }
.guide-actions > * { min-width: 0; }

.guide-device-tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin: .9rem 0 .75rem; }
.device-tab { background: transparent; border: 1px solid var(--line); color: inherit;
  padding: .4rem .8rem; border-radius: 10px; cursor: pointer; font: inherit; font-size: .85rem; }
.device-tab.is-active { background: var(--card-strong); border-color: var(--accent); font-weight: 600; }
.device-pane { display: none; }
.device-pane.is-active { display: block; }

.guide-config-card { margin: .6rem 0; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card-strong); overflow: hidden; }
.config-row { display: flex; align-items: center; gap: .65rem; padding: .55rem .8rem;
  border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.config-row:last-child { border-bottom: 0; }
.config-key { min-width: 160px; opacity: .8; font-size: .88rem; }
.config-val { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92rem;
  background: rgba(255,255,255,.04); padding: .2rem .5rem; border-radius: 6px; flex: 1; word-break: break-all; }
.config-copy { background: linear-gradient(135deg, var(--accent-2), var(--accent)); border: 0; color: #111;
  padding: .35rem .7rem; border-radius: 8px; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 700; }
.config-copy:hover { filter: brightness(1.1); }

@media (max-width: 600px) {
  .guide-actions { flex-direction: column; }
  .guide-actions > * { width: 100%; }
  .config-key { min-width: 0; width: 100%; }
}
