:root {
  --bg: #f4f5fb;
  --bg2: #ffffff;
  --card: rgba(255, 255, 255, .78);
  --border: rgba(20, 24, 60, .09);
  --text: #171a2c;
  --muted: #6a6f8a;
  --accent: #5b5bf0;
  --accent2: #a855f7;
  --ok: #10b981;
  --ok-bg: rgba(16, 185, 129, .12);
  --warn: #f59e0b;
  --warn-bg: rgba(245, 158, 11, .14);
  --fail: #ef4444;
  --fail-bg: rgba(239, 68, 68, .12);
  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, .12);
  --shadow: 0 10px 30px -12px rgba(30, 30, 80, .18);
  --radius: 16px;
  --term: #0e1020;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0b0d1a;
  --bg2: #12152a;
  --card: rgba(22, 25, 48, .72);
  --border: rgba(255, 255, 255, .08);
  --text: #e8eaf6;
  --muted: #9097b8;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, .6);
  --term: #070814;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  transition: background .4s, color .4s;
}
code, .mono { font-family: var(--mono); font-size: .88em; }
a { color: var(--accent); }

/* ---------- Fondo animado ---------- */
.bg { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; animation: float 22s ease-in-out infinite; }
.b1 { width: 520px; height: 520px; background: #818cf8; top: -160px; left: 10%; }
.b2 { width: 420px; height: 420px; background: #c084fc; bottom: -120px; right: 5%; animation-delay: -7s; }
.b3 { width: 360px; height: 360px; background: #22d3ee; top: 40%; left: 45%; opacity: .25; animation-delay: -14s; }
[data-theme="dark"] .blob { opacity: .22; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.08); }
  66% { transform: translate(-40px, 30px) scale(.94); }
}

/* ---------- Layout ---------- */
.app { position: relative; z-index: 1; display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; padding: 22px 16px;
  display: flex; flex-direction: column; gap: 18px;
  background: var(--card); backdrop-filter: blur(18px); border-right: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 10px; }
.brand strong { display: block; font-size: 17px; letter-spacing: -.01em; }
.brand small { color: var(--muted); font-size: 12px; }
.logo {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: 20px;
  box-shadow: 0 8px 20px -6px var(--accent);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: rotate(-6deg) scale(1.05); } }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; margin-right: -8px; padding-right: 8px; scrollbar-width: thin; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); opacity: .7; padding: 12px 14px 4px; font-weight: 700; }
.side-foot { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--border); padding-top: 10px; }
.whoami { font-size: 13px; padding: 0 14px; font-weight: 600; }
.whoami small { display: block; color: var(--muted); font-weight: 400; font-family: var(--mono); font-size: 11px; }
.nav button {
  all: unset; cursor: pointer; display: flex; align-items: center; gap: 12px;
  padding: 9px 14px; border-radius: 12px; color: var(--muted); font-weight: 500; position: relative;
  transition: background .2s, color .2s, transform .15s;
}
.nav button i { font-style: normal; width: 22px; text-align: center; }
.nav button:hover { background: rgba(91, 91, 240, .08); color: var(--text); transform: translateX(2px); }
.nav button.active { background: linear-gradient(135deg, rgba(91, 91, 240, .16), rgba(168, 85, 247, .12)); color: var(--accent); }
.nav button.active::before { content: ''; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: var(--accent); }
.nav button:focus-visible { outline: 2px solid var(--accent); }
.theme { all: unset; cursor: pointer; padding: 10px 14px; border-radius: 12px; color: var(--muted); }
.theme:hover { background: rgba(91, 91, 240, .08); }

.main { padding: 36px clamp(16px, 4vw, 56px) 80px; max-width: 1180px; width: 100%; }
.tab { display: none; }
.tab.active { display: block; animation: tabIn .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes tabIn { from { opacity: 0; transform: translateY(14px); } }
.head h1 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; }
.head p { margin: 0 0 22px; color: var(--muted); max-width: 760px; }

/* ---------- Tarjetas y formularios ---------- */
.card {
  background: var(--card); backdrop-filter: blur(16px); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px;
}
.card h3 { margin: 0 0 14px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.input-xl { display: flex; gap: 10px; flex-wrap: wrap; }
.input-xl input { flex: 1; min-width: 220px; font-size: 17px; padding: 15px 18px; }
.input-xl input.sel { flex: 0 1 220px; font-size: 15px; }
input, textarea, select {
  font: inherit; color: var(--text); background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 11px 14px; width: 100%; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(91, 91, 240, .15); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.field.inline { flex-direction: row; align-items: center; margin: 0; }
.field.inline input { width: 70px; padding: 8px 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.span2 { grid-column: span 2; }
.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }
.opts { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.adv summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 600; margin: 6px 0 12px; }
.hint { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.pw { position: relative; }
.pw .eye { all: unset; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); cursor: pointer; opacity: .6; }

/* switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: 14px; }
.switch input { display: none; }
.switch span { width: 40px; height: 23px; border-radius: 20px; background: rgba(120, 120, 150, .35); position: relative; transition: background .25s; flex: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + span { background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.switch input:checked + span::after { transform: translateX(17px); }
.switch.tight { margin-top: 26px; }

/* segmented */
.seg { display: inline-flex; background: var(--bg2); border: 1.5px solid var(--border); border-radius: 12px; padding: 4px; margin-bottom: 16px; gap: 2px; flex-wrap: wrap; }
.seg input { display: none; }
.seg span { display: block; padding: 7px 16px; border-radius: 9px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--muted); transition: all .2s; }
.seg input:checked + span { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; box-shadow: 0 4px 12px -4px var(--accent); }

.presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  all: unset; cursor: pointer; padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 500;
  background: var(--bg2); border: 1px solid var(--border); transition: all .2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }

.send-box { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s ease, opacity .3s, margin .3s; }
.send-box.open { max-height: 520px; opacity: 1; margin-top: 16px; }

/* drop zone */
.drop { position: relative; }
.drop-hint {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px; pointer-events: none;
  border: 2px dashed var(--accent); background: rgba(91, 91, 240, .08); color: var(--accent); font-weight: 600;
  opacity: 0; transition: opacity .2s;
}
.drop.over .drop-hint { opacity: 1; }

/* ---------- Botones ---------- */
.btn {
  position: relative; overflow: hidden; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  padding: 12px 22px; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  transition: transform .15s, box-shadow .2s, opacity .2s;
}
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; box-shadow: 0 10px 22px -10px var(--accent); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px var(--accent); }
.btn.ghost { background: var(--bg2); color: var(--text); border: 1.5px solid var(--border); padding: 10px 16px; }
.btn.ghost:hover { border-color: var(--accent); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.loading span { opacity: 0; }
.btn.loading::after {
  content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn.file { cursor: pointer; }
@keyframes spin { to { transform: rotate(360deg); } }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); transform: scale(0); animation: ripple .6s ease-out; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Resultados ---------- */
.reveal { animation: reveal .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.stagger > * { animation: reveal .5s cubic-bezier(.2, .8, .2, 1) both; }
.stagger > *:nth-child(1) { animation-delay: .03s } .stagger > *:nth-child(2) { animation-delay: .08s }
.stagger > *:nth-child(3) { animation-delay: .13s } .stagger > *:nth-child(4) { animation-delay: .18s }
.stagger > *:nth-child(5) { animation-delay: .23s } .stagger > *:nth-child(6) { animation-delay: .28s }
.stagger > *:nth-child(7) { animation-delay: .33s } .stagger > *:nth-child(8) { animation-delay: .38s }
.stagger > *:nth-child(9) { animation-delay: .43s } .stagger > *:nth-child(n+10) { animation-delay: .48s }

.hero { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.hero h2 { margin: 0 0 6px; font-size: 22px; word-break: break-all; }
.hero p { margin: 0; color: var(--muted); }
.verdict { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 6px 14px; border-radius: 99px; margin-bottom: 10px; font-size: 14px; }
.verdict.ok { background: var(--ok-bg); color: var(--ok); }
.verdict.warn { background: var(--warn-bg); color: var(--warn); }
.verdict.fail { background: var(--fail-bg); color: var(--fail); }
.verdict.info { background: var(--info-bg); color: var(--info); }

.ring { position: relative; width: 132px; height: 132px; }
.ring svg { transform: rotate(-90deg); }
.ring .track { stroke: var(--border); }
.ring .val { transition: stroke-dashoffset 1.4s cubic-bezier(.2, .8, .2, 1); stroke-linecap: round; }
.ring .num { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .num b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.ring .num small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 18px; }
.tile { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 14px; transition: transform .2s; }
.tile:hover { transform: translateY(-3px); }
.tile small { color: var(--muted); font-size: 12px; display: block; margin-bottom: 4px; }
.tile b { font-size: 15px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.fail { background: var(--fail-bg); color: var(--fail); }
.badge.info, .badge.skip { background: var(--info-bg); color: var(--info); }
.badge.neutral { background: rgba(120,120,150,.15); color: var(--muted); }

.list { display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--border); }
.item .ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.ic.ok { background: var(--ok-bg); color: var(--ok); }
.ic.warn { background: var(--warn-bg); color: var(--warn); }
.ic.fail { background: var(--fail-bg); color: var(--fail); }
.ic.info, .ic.skip { background: var(--info-bg); color: var(--info); }
.item .body { flex: 1; min-width: 0; }
.item .body b { display: block; }
.item .body small { color: var(--muted); display: block; word-break: break-word; }
.item .body .tip { color: var(--accent); font-size: 13px; margin-top: 4px; }
.item .right { flex: none; text-align: right; }
.pen { font-family: var(--mono); font-weight: 700; color: var(--fail); }
.pen.zero { color: var(--muted); }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mx-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.mx-row:last-child { border: 0; }
.rec { font-family: var(--mono); font-size: 12px; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-top: 8px; word-break: break-all; color: var(--muted); }

/* terminal */
.term {
  background: var(--term); color: #c9d1ff; border-radius: 14px; padding: 16px; font-family: var(--mono); font-size: 12.5px;
  max-height: 420px; overflow: auto; line-height: 1.65; border: 1px solid rgba(255,255,255,.06);
}
.term .ln { white-space: pre-wrap; word-break: break-all; opacity: 0; animation: typeIn .25s forwards; }
.term .t { color: #5c6390; margin-right: 10px; display: inline-block; min-width: 52px; }
.term .in { color: #7ee7b5; } .term .out { color: #ffd479; } .term .error { color: #ff7b7b; } .term .info { color: #8fb4ff; }
@keyframes typeIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.term-head { display: flex; gap: 6px; margin-bottom: 10px; }
.term-head i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.term-head i:nth-child(2) { background: #febc2e; } .term-head i:nth-child(3) { background: #28c840; }

/* timeline de pasos SMTP */
.steps { position: relative; padding-left: 8px; }
.step { display: flex; gap: 14px; position: relative; padding-bottom: 16px; }
.step::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--border); }
.step:last-child::before { display: none; }
.step .body small { color: var(--muted); word-break: break-word; }
.step .ms { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* tablas */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; word-break: break-word; }
.tbl tr { transition: background .15s; }
.tbl tbody tr:hover { background: rgba(91, 91, 240, .05); }
.tbl .mono { font-size: 12px; }
.tbl-wrap { overflow-x: auto; }

.progress { position: relative; height: 30px; background: var(--bg2); border-radius: 99px; overflow: hidden; margin-top: 16px; border: 1px solid var(--border); }
.progress .bar { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .3s; }
.progress .bar::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.progress .ptxt { position: relative; display: grid; place-items: center; height: 100%; font-size: 13px; font-weight: 600; mix-blend-mode: difference; color: #fff; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; backdrop-filter: blur(10px); }
.stat b { font-size: 26px; display: block; letter-spacing: -.02em; }
.stat small { color: var(--muted); }
.stat.ok b { color: var(--ok); } .stat.warn b { color: var(--warn); } .stat.fail b { color: var(--fail); } .stat.info b { color: var(--info); }

/* sub-pestañas */
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.subtabs button { all: unset; cursor: pointer; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); transition: all .2s; }
.subtabs button:hover { color: var(--text); background: rgba(91,91,240,.06); }
.subtabs button.on { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.subtabs .cnt { font-size: 11px; background: rgba(255,255,255,.25); padding: 1px 7px; border-radius: 99px; margin-left: 4px; }
.subtabs button:not(.on) .cnt { background: var(--fail-bg); color: var(--fail); }
.subpane { display: none; }
.subpane.on { display: block; animation: tabIn .35s; }

/* ruta */
.route { display: flex; flex-direction: column; gap: 0; }
.hop { display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: start; position: relative; padding-bottom: 18px; }
.hop::before { content: ''; position: absolute; left: 20px; top: 40px; bottom: 0; width: 2px; background: linear-gradient(var(--accent), var(--accent2)); opacity: .35; }
.hop:last-child::before { display: none; }
.hop .n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 6px 16px -6px var(--accent); }
.hop .body { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; font-size: 14px; min-width: 0; }
.hop .body small { color: var(--muted); display: block; word-break: break-all; }
.hop .delay { font-family: var(--mono); font-size: 13px; font-weight: 700; padding-top: 10px; }
.delay.slow { color: var(--fail); } .delay.mid { color: var(--warn); } .delay.fast { color: var(--ok); }

.rule-bar { height: 6px; border-radius: 6px; background: var(--border); margin-top: 6px; overflow: hidden; }
.rule-bar i { display: block; height: 100%; border-radius: 6px; transition: width 1s cubic-bezier(.2,.8,.2,1); width: 0; }

.gauge { display: flex; align-items: center; gap: 18px; padding: 14px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--border); margin-bottom: 14px; flex-wrap: wrap; }
.gauge .meter { flex: 1; min-width: 200px; height: 12px; border-radius: 12px; background: linear-gradient(90deg, var(--ok), var(--warn) 60%, var(--fail)); position: relative; }
.gauge .meter .needle { position: absolute; top: -6px; width: 4px; height: 24px; background: var(--text); border-radius: 4px; transition: left 1.2s cubic-bezier(.2,.8,.2,1); left: 0; }
.gauge .meter .thr { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); opacity: .4; }

iframe.preview { width: 100%; height: 520px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.search { margin-bottom: 12px; }

/* toasts */
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 99; }
.toast { background: var(--bg2); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); max-width: 360px; animation: toastIn .35s cubic-bezier(.3,1.4,.5,1); font-size: 14px; }
.toast.fail { border-left-color: var(--fail); } .toast.ok { border-left-color: var(--ok); }
.toast.out { animation: toastOut .3s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

.skeleton { height: 140px; border-radius: var(--radius); background: linear-gradient(90deg, var(--card) 25%, rgba(91,91,240,.08) 50%, var(--card) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border: 1px solid var(--border); margin-bottom: 14px; }
@keyframes sk { to { background-position: -200% 0; } }

.confetti { position: fixed; top: -10px; width: 8px; height: 14px; z-index: 100; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); opacity: .8; } }

.empty { color: var(--muted); text-align: center; padding: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side, .nav { min-width: 0; }
  .nav { margin-right: 0; padding-right: 0; }
  .side { position: sticky; top: 0; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; z-index: 5; gap: 8px; border-right: 0; border-bottom: 1px solid var(--border); }
  .brand small, .brand strong, .theme span, .nav-label, .whoami { display: none; }
  .side-foot { border: 0; padding: 0; }
  .bulk-panes { grid-template-columns: 1fr !important; }
  .bulk-panes.has-detail .bulk-left { display: none; }
  .bulk-panes:not(.has-detail) .bulk-right { display: none; }
  .stage .node b { font-size: 11px; }
  .brand { padding: 0; }
  .nav { flex-direction: row; overflow-x: auto; flex: 1; scrollbar-width: none; }
  .nav button { padding: 9px 12px; white-space: nowrap; }
  .nav button span { font-size: 13px; }
  .nav button.active::before { display: none; }
  .theme { margin: 0; }
  .grid2, .grid3, .cols, .hero { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .hero { justify-items: center; text-align: center; }
  .main { padding-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ====================== Componentes v2 ====================== */
.muted { color: var(--muted); }
.center { text-align: center; }
.center p { max-width: 620px; margin-left: auto; margin-right: auto; }
.big-emoji { font-size: 56px; animation: float2 3s ease-in-out infinite; }
@keyframes float2 { 50% { transform: translateY(-8px); } }
.btn.big { padding: 15px 30px; font-size: 16px; }
select.sel, select { font: inherit; color: var(--text); background: var(--bg2); border: 1.5px solid var(--border); border-radius: 12px; padding: 11px 12px; }
.input-xl select.sel { flex: 0 1 160px; }
.chips-wrap { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin: 4px 0 12px; }
.link { color: var(--accent); cursor: pointer; text-decoration: underline; }
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; position: relative; z-index: 1; }
.denied { max-width: 520px; text-align: center; }
.denied h1 { margin: 6px 0; }

/* Botón de ayuda «?» */
.q { all: unset; cursor: pointer; display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; font-size: 11px; font-weight: 800;
  background: rgba(91,91,240,.12); color: var(--accent); vertical-align: middle; margin-left: 4px; transition: transform .2s, background .2s; line-height: 1; }
.q:hover { transform: scale(1.15) rotate(8deg); background: var(--accent); color: #fff; }
.q.static { cursor: default; }
button.q:not(:empty) { width: auto; padding: 3px 9px; border-radius: 99px; font-size: 11px; }
.qi { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: rgba(91,91,240,.14); color: var(--accent); font-size: 10px; font-weight: 800; margin-left: 3px; }
.tile.clickable { cursor: pointer; text-align: left; font: inherit; color: inherit; }
.tile.clickable:hover { border-color: var(--accent); box-shadow: 0 6px 18px -10px var(--accent); }
.tile.kpi { all: unset; box-sizing: border-box; cursor: pointer; background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 14px; transition: transform .2s; }
.tile.kpi:hover { transform: translateY(-3px); border-color: var(--accent); }

/* Modal */
.modal-wrap { position: fixed; inset: 0; z-index: 90; background: rgba(10,12,30,.55); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 18px; animation: fadeIn .25s; }
.modal-wrap.out { animation: fadeOut .25s forwards; }
@keyframes fadeIn { from { opacity: 0; } } @keyframes fadeOut { to { opacity: 0; } }
.modal { position: relative; background: var(--bg2); border: 1px solid var(--border); border-radius: 20px; width: min(640px, 100%); max-height: calc(100vh - 36px); overflow: auto; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); animation: pop .35s cubic-bezier(.3,1.4,.5,1); }
.modal.wide { width: min(1100px, 100%); }
.modal-body { padding: 26px; }
.modal-x { all: unset; cursor: pointer; position: sticky; float: right; top: 12px; margin: 12px 12px 0 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); z-index: 2; }
.modal-x:hover { background: var(--fail-bg); color: var(--fail); }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(20px); } }
body.noscroll { overflow: hidden; }
.help-head { display: flex; align-items: center; gap: 14px; }
.help-head h2 { margin: 0; }
.help-emoji { font-size: 40px; animation: float2 3s ease-in-out infinite; }
.help-sum { font-size: 16px; line-height: 1.6; }
.help-points li { margin-bottom: 8px; line-height: 1.55; }
.help-story { margin: 18px 0; }
.tip { color: var(--accent); font-size: 14px; margin-top: 8px; background: rgba(91,91,240,.07); padding: 10px 12px; border-radius: 10px; }

/* ====================== Reproductor de historias ====================== */
.story-title { margin: 0 0 12px; }
.stage-wrap { overflow-x: auto; border-radius: 16px; scrollbar-width: thin; }
.stage { position: relative; height: 212px; min-width: calc(var(--n) * 112px); background: var(--bg); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.story.compact .stage { height: 186px; min-width: calc(var(--n) * 100px); }
.zone { position: absolute; top: 0; bottom: 0; }
.zone span { position: absolute; top: 8px; left: 10px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; opacity: .55; }
.z-local { background: linear-gradient(180deg, rgba(91,91,240,.08), transparent); }
.z-net { background: repeating-linear-gradient(135deg, rgba(34,211,238,.07) 0 12px, transparent 12px 24px); }
.z-remote { background: linear-gradient(180deg, rgba(16,185,129,.08), transparent); }
.z-dns { background: linear-gradient(180deg, rgba(245,158,11,.09), transparent); }
.wires { position: absolute; left: 0; right: 0; top: 58px; width: 100%; height: 10px; overflow: visible; }
.wires line { stroke: var(--border); stroke-width: .5; vector-effect: non-scaling-stroke; stroke-dasharray: 4 4; }
.wires line { stroke-width: 2; }
.wires line.live { stroke: var(--accent); stroke-dasharray: 6 6; animation: dash .8s linear infinite; }
.wires line.lock { stroke: var(--ok); }
@keyframes dash { to { stroke-dashoffset: -24; } }
.node { position: absolute; top: 34px; transform: translateX(-50%); width: 104px; text-align: center; transition: transform .3s; }
.node .bubble { width: 52px; height: 52px; margin: 0 auto 8px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: var(--bg2); border: 2px solid var(--border); transition: all .35s; position: relative; z-index: 1; }
.node b { display: block; font-size: 12px; line-height: 1.25; }
.node small { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.25; margin-top: 2px; word-break: break-word; }
.node.active .bubble { border-color: var(--accent); transform: scale(1.14); box-shadow: 0 0 0 6px rgba(91,91,240,.15), 0 10px 24px -8px var(--accent); }
.node.active { transform: translateX(-50%) translateY(-2px); }
.node.src .bubble { border-color: var(--accent2); }
.node .st { position: absolute; top: -4px; left: calc(50% + 16px); width: 18px; height: 18px; border-radius: 50%; display: none; z-index: 2; font-style: normal; font-size: 11px; color: #fff; place-items: center; }
.node .st.ok, .node .st.warn, .node .st.fail, .node .st.info { display: grid; animation: pop .4s; }
.node .st.ok { background: var(--ok); } .node .st.ok::after { content: '✓'; }
.node .st.warn { background: var(--warn); } .node .st.warn::after { content: '!'; }
.node .st.fail { background: var(--fail); } .node .st.fail::after { content: '✕'; }
.node .st.info { background: var(--info); } .node .st.info::after { content: 'i'; }
.envelope { position: absolute; top: 146px; transform: translateX(-50%); transition: left 1.1s cubic-bezier(.6,.05,.3,1); display: flex; flex-direction: column; align-items: center; z-index: 3; pointer-events: none; }
.story.compact .envelope { top: 132px; }
.env-icon { font-size: 30px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.envelope.hop .env-icon { animation: hop 1.1s ease; }
@keyframes hop { 30% { transform: translateY(-26px) rotate(-10deg) scale(1.1); } 60% { transform: translateY(-16px) rotate(6deg); } }
.envelope.locked .env-icon::after { content: '🔒'; font-size: 13px; position: absolute; margin-left: -10px; margin-top: 14px; }
.envelope.bad .env-icon { filter: drop-shadow(0 0 10px var(--fail)); }
.envelope .proto { font-size: 10.5px; font-weight: 700; font-family: var(--mono); background: var(--bg2); border: 1px solid var(--border); border-radius: 99px; padding: 1px 8px; margin-top: 2px; white-space: nowrap; }
.envelope .proto:empty { display: none; }
.story-controls { display: flex; align-items: center; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.ctl { all: unset; cursor: pointer; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--bg2); border: 1px solid var(--border); font-size: 14px; transition: all .2s; }
.ctl:hover { border-color: var(--accent); color: var(--accent); }
.ctl.play { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; border: 0; width: 46px; }
.dots { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; align-items: center; min-width: 120px; }
.dot { all: unset; cursor: pointer; width: 12px; height: 12px; border-radius: 50%; background: var(--border); transition: all .25s; }
.dot.seen { background: rgba(91,91,240,.45); }
.dot.on { background: var(--accent); transform: scale(1.4); box-shadow: 0 0 0 4px rgba(91,91,240,.2); }
.dot.t-fail.seen, .dot.t-fail.on { background: var(--fail); } .dot.t-warn.seen, .dot.t-warn.on { background: var(--warn); }
.speed { padding: 6px 10px; border-radius: 10px; }
.story-panel { min-height: 120px; }
.panel-in { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; animation: reveal .45s cubic-bezier(.2,.8,.2,1); }
.panel-in h4 { margin: 8px 0 6px; font-size: 18px; }
.panel-in p { margin: 0 0 8px; line-height: 1.6; }
.ph { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stepno { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.proto-tag { font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-radius: 99px; background: rgba(91,91,240,.1); color: var(--accent); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 10px 0 0; font-size: 14px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; word-break: break-word; }
.hdrs summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 10px; }
.hdrs pre { background: var(--term); color: #c9d1ff; padding: 12px; border-radius: 10px; overflow-x: auto; font-size: 12px; white-space: pre-wrap; word-break: break-all; }
.evlist { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
#journeyOut:empty { display: none; }

/* ====================== Masiva lista + detalle ====================== */
.bulk-panes { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 18px; align-items: start; }
.bulk-left { position: sticky; top: 16px; padding: 14px; }
.bulk-list { max-height: calc(100vh - 230px); overflow-y: auto; display: flex; flex-direction: column; gap: 4px; margin-top: 10px; scrollbar-width: thin; }
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chips .chip { padding: 4px 10px; font-size: 12px; }
.filter-chips .chip i { font-style: normal; opacity: .7; margin-left: 3px; }
.brow { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 26px 1fr; gap: 2px 10px; padding: 9px 10px; border-radius: 12px; border: 1px solid transparent; transition: all .15s; animation: reveal .35s both; }
.brow:hover { background: rgba(91,91,240,.06); }
.brow.sel { background: rgba(91,91,240,.12); border-color: var(--accent); }
.bdot { grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.bdot.ok { background: var(--ok-bg); color: var(--ok); } .bdot.warn { background: var(--warn-bg); color: var(--warn); } .bdot.fail { background: var(--fail-bg); color: var(--fail); } .bdot.info { background: var(--info-bg); color: var(--info); } .bdot.neutral { background: var(--border); color: var(--muted); }
.bmail { font-family: var(--mono); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bmeta { font-size: 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bmeta em { font-style: normal; font-size: 11px; color: var(--muted); background: var(--border); padding: 0 6px; border-radius: 6px; }
.spin { width: 12px; height: 12px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; display: block; }
.detail-nav { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.detail-nav span { color: var(--muted); font-size: 13px; margin: 0 4px; }
.detail-nav .btn { padding: 8px 12px; }

/* ====================== Escaneo / espera ====================== */
.radar { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 12px; position: relative; background: radial-gradient(circle, rgba(91,91,240,.25), transparent 70%); }
.radar::before, .radar::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: radar 2s ease-out infinite; }
.radar::after { animation-delay: 1s; }
@keyframes radar { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.scanning { text-align: center; }
.scan-steps { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.scan-steps span { font-size: 13px; padding: 6px 12px; border-radius: 99px; background: var(--bg2); border: 1px solid var(--border); opacity: .35; animation: scanStep 1s forwards; }
.scan-steps span:nth-child(1) { animation-delay: .2s } .scan-steps span:nth-child(2) { animation-delay: 1.2s } .scan-steps span:nth-child(3) { animation-delay: 2.4s }
.scan-steps span:nth-child(4) { animation-delay: 3.6s } .scan-steps span:nth-child(5) { animation-delay: 4.8s } .scan-steps span:nth-child(6) { animation-delay: 6s }
.scan-steps span:nth-child(7) { animation-delay: 7.2s } .scan-steps span:nth-child(8) { animation-delay: 8.4s }
@keyframes scanStep { to { opacity: 1; border-color: var(--accent); color: var(--accent); } }
.addr-big { display: inline-flex; gap: 10px; align-items: center; font-size: clamp(16px, 2.6vw, 24px); font-weight: 700; padding: 14px 20px; border-radius: 16px; background: var(--bg2); border: 2px dashed var(--accent); margin: 8px 0 14px; word-break: break-all; }
.copy { all: unset; cursor: pointer; font-size: 13px; font-weight: 600; padding: 3px 8px; border-radius: 8px; background: rgba(91,91,240,.1); color: var(--accent); white-space: nowrap; }
.copy:hover { background: var(--accent); color: #fff; }
.waiting { display: inline-flex; align-items: center; gap: 16px; margin: 6px 0 16px; text-align: left; }
.waiting .radar { margin: 0; width: 54px; height: 54px; }
.warn-text { color: var(--warn); font-weight: 600; }
.folder-banner { margin: -22px -22px 18px; padding: 14px 22px; font-weight: 700; font-size: 17px; border-radius: var(--radius) var(--radius) 0 0; animation: reveal .6s; }
.folder-banner.inbox { background: var(--ok-bg); color: var(--ok); }
.folder-banner.spam { background: var(--fail-bg); color: var(--fail); }

/* Autoconfig */
.srv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 18px; }
.srv-card { background: var(--card); backdrop-filter: blur(14px); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.srv-card.ok { border-color: rgba(16,185,129,.45); }
.srv-card.none { opacity: .6; }
.srv-h { font-weight: 700; font-size: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.guide { display: none; line-height: 1.7; } .guide.on { display: block; animation: tabIn .3s; }
tr.dim { opacity: .45; }

/* Dominio */
details.group { padding: 0; }
details.group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 18px 22px; font-size: 16px; }
details.group > summary::-webkit-details-marker { display: none; }
details.group > summary .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
details.group[open] > summary { border-bottom: 1px solid var(--border); }
details.group > .list, details.group > h4, details.group > .spf-tree, details.group > .hint { margin: 14px 22px; }
details.group > .list { margin-bottom: 20px; }
.flash { animation: flash 1.2s; }
@keyframes flash { 30% { box-shadow: 0 0 0 4px var(--accent); } }
.rec .copy { margin-left: 6px; }
.spf-tree { font-size: 13px; }
.spf-node { margin-left: calc(var(--d) * 22px); border-left: 2px solid var(--border); padding: 6px 0 6px 12px; position: relative; }
.spf-node::before { content: ''; position: absolute; left: -2px; top: 16px; width: 10px; height: 2px; background: var(--border); }
.spf-terms { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.spf-term { font-family: var(--mono); font-size: 11.5px; padding: 2px 7px; border-radius: 6px; background: var(--ok-bg); color: var(--ok); }
.spf-term.qm { background: var(--fail-bg); color: var(--fail); } .spf-term.qt { background: var(--warn-bg); color: var(--warn); } .spf-term.qn { background: var(--border); color: var(--muted); }
.spf-term.bad { outline: 2px solid var(--fail); }

/* Listas negras */
.bl-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.tile.bl b { display: block; font-size: 14px; }
.tile.bl.listed { border-color: var(--fail); background: var(--fail-bg); }
.tile.bl.error, .tile.bl.timeout { opacity: .75; }
.bl-meaning { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; word-break: break-word; }
.delist { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; }
.shake { animation: shake .5s .6s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

/* DMARC / gráficos */
.drop.small { border: 2px dashed var(--border); border-radius: 14px; padding: 22px; text-align: center; margin-bottom: 8px; }
.drop.small.over { border-color: var(--accent); }
.chart { width: 100%; overflow-x: auto; }
.bars { width: 100%; min-width: 320px; height: 200px; }
.bars rect { transform-origin: bottom; transform-box: fill-box; animation: grow .7s cubic-bezier(.2,.8,.2,1) both; }
.bars text { font-size: 9px; fill: var(--muted); }
@keyframes grow { from { transform: scaleY(0); } }
.pbar { width: 90px; height: 7px; border-radius: 7px; background: var(--fail-bg); overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--ok); border-radius: 7px; animation: growX 1s both; }
@keyframes growX { from { width: 0 !important; } }
tr.clickable { cursor: pointer; }
.scrolly { max-height: 360px; overflow-y: auto; }
.trend { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.trend b { display: block; font-size: 30px; }
.spark { width: 100%; max-width: 420px; height: 50px; }
.spark polyline { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 1.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.score-pill { display: inline-block; min-width: 42px; text-align: center; font-weight: 800; padding: 3px 8px; border-radius: 10px; }
.score-pill.ok { background: var(--ok-bg); color: var(--ok); } .score-pill.warn { background: var(--warn-bg); color: var(--warn); } .score-pill.fail { background: var(--fail-bg); color: var(--fail); }
.actions { white-space: nowrap; text-align: right; }
.icon-btn { all: unset; cursor: pointer; width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 9px; transition: background .2s; }
.icon-btn:hover { background: rgba(91,91,240,.12); }
.actions select { padding: 6px 8px; font-size: 13px; }

/* Admin */
.agents { display: grid; gap: 14px; }
.agent.inactive { opacity: .6; }
.agent-h { display: flex; gap: 14px; align-items: flex-start; }
.avatar { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); flex: none; }
.ip-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.ip-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 99px; background: var(--bg2); border: 1px solid var(--border); font-size: 13px; animation: pop .3s; }
.ip-chip small { color: var(--muted); }
.ip-chip button { all: unset; cursor: pointer; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; }
.ip-chip button:hover { background: var(--fail-bg); color: var(--fail); }
.ip-add { display: flex; gap: 8px; flex-wrap: wrap; }
.ip-add input { flex: 1; min-width: 160px; padding: 9px 12px; }
.ip-add .btn { padding: 9px 14px; }
.sticky-save { position: sticky; bottom: 12px; z-index: 4; }
.sticky-save .btn { box-shadow: 0 10px 30px -8px var(--accent); }
.step .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex: none; }
.step .body { flex: 1; min-width: 0; }
.step .body small { display: block; color: var(--muted); word-break: break-word; }
.hop details summary { cursor: pointer; color: var(--muted); font-size: 12px; }
select.sel, .speed, .actions select, .story-controls select { width: auto; }
.main, .story, .card { min-width: 0; }
.app { overflow-x: clip; }
[hidden] { display: none !important; }
.field.inline input[type=date] { width: auto; }

/* Actualización / migraciones */
.update-card { max-width: 640px; width: 100%; }
.update-card h1 { margin: 6px 0 8px; }
.mig-list { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 8px; }
.mig-list li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--border); transition: all .3s; }
.mig-list li small { display: block; color: var(--muted); font-size: 11.5px; }
.mig-list li.ok { border-color: var(--ok); background: var(--ok-bg); }
.mig-list li.fail { border-color: var(--fail); background: var(--fail-bg); }
.mig-ic { font-size: 20px; display: inline-block; }
.mig-ic.spinning { animation: spin 1.2s linear infinite; }
@media (max-width: 480px) {
  .center-page { padding: 12px; }
  .center-page .card { padding: 18px; }
  .update-card h1 { font-size: 24px; }
  .update-card .row .btn { flex: 1 1 100%; }
  .mig-list li small { word-break: break-all; }
}
.insights .item small { white-space: normal; line-height: 1.55; }
.tile small.muted { display: block; margin-top: 4px; font-size: 11px; }
