:root {
  --bg: #f3f5f8; --panel: #ffffff; --panel-2: #f8fafc; --line: #e3e8ef; --text: #16202c; --muted: #66758a;
  --brand: #0f6bdc; --brand-ink: #ffffff; --brand-soft: #e6f0fd;
  --ok: #138a52; --ok-soft: #e3f5ec; --warn: #b26a00; --warn-soft: #fff3df; --bad: #c4302b; --bad-soft: #fde9e8;
  --info: #5a4fcf; --info-soft: #eeecfd; --gray-soft: #eef1f5;
  --c-down: #1d6fdc; --c-up: #d9730d;
  --radius: 12px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e141b; --panel: #151d27; --panel-2: #1a2430; --line: #26323f; --text: #e6edf5; --muted: #8fa0b3;
    --brand: #4c9bff; --brand-ink: #071425; --brand-soft: #14304f;
    --ok: #3fcf8a; --ok-soft: #12301f; --warn: #f0b04a; --warn-soft: #33270f; --bad: #ff6b63; --bad-soft: #3a1715;
    --info: #a69cff; --info-soft: #211d45; --gray-soft: #202b37; --shadow: none;
    --c-down: #4a90f0; --c-up: #d07a1c;
  }
}
:root[data-theme="dark"] {
  --bg: #0e141b; --panel: #151d27; --panel-2: #1a2430; --line: #26323f; --text: #e6edf5; --muted: #8fa0b3;
  --brand: #4c9bff; --brand-ink: #071425; --brand-soft: #14304f;
  --ok: #3fcf8a; --ok-soft: #12301f; --warn: #f0b04a; --warn-soft: #33270f; --bad: #ff6b63; --bad-soft: #3a1715;
  --info: #a69cff; --info-soft: #211d45; --gray-soft: #202b37; --shadow: none;
  --c-down: #4a90f0; --c-up: #d07a1c;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-text-size-adjust: 100%; }
a { color: var(--brand); text-decoration: none; }
h1 { font-size: 22px; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 17px; margin: 0 0 10px; }
h3 { font-size: 15px; margin: 0 0 6px; }
code, .mono { font-family: var(--mono); font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.show-m { display: none; }

/* Layout */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; font-weight: 700; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: 16px; }
.logo small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--text); font-weight: 500; }
.nav a:hover { background: var(--panel-2); }
.nav a.on { background: var(--brand-soft); color: var(--brand); }
.nav .ico { width: 20px; text-align: center; }
.nav-sep { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 10px 4px; }
.side-foot { margin-top: auto; padding: 12px 8px 0; font-size: 13px; color: var(--muted); }
.main { padding: 22px 26px 90px; max-width: 1280px; width: 100%; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.topbar .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bottom-nav { display: none; }

/* Cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.kpi .label { color: var(--muted); font-size: 13px; }
.kpi .value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.kpi .sub { font-size: 12px; color: var(--muted); }
.meter { height: 7px; background: var(--gray-soft); border-radius: 9px; overflow: hidden; margin-top: 6px; }
.meter > i { display: block; height: 100%; background: var(--brand); border-radius: 9px; }

/* Help */
details.help { background: var(--info-soft); border: 1px solid transparent; border-radius: var(--radius); padding: 0 14px; margin-bottom: 14px; }
details.help summary { cursor: pointer; padding: 11px 0; font-weight: 600; color: var(--info); list-style: none; display: flex; gap: 8px; align-items: center; }
details.help summary::-webkit-details-marker { display: none; }
details.help summary::before { content: "?"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--info); color: var(--panel); font-size: 12px; }
details.help[open] summary { border-bottom: 1px solid color-mix(in srgb, var(--info) 20%, transparent); }
details.help .body { padding: 10px 0 14px; font-size: 14px; }
details.help .body p { margin: 0 0 8px; }
details.help .body ul { margin: 0 0 8px; padding-left: 20px; }
.tip { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Buttons & forms */
.btn { appearance: none; border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 8px 14px; border-radius: 9px; font: 500 14px var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; }
.btn:hover { background: var(--panel-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.btn.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.btn.sm { padding: 4px 10px; min-height: 30px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: wait; }
label.f { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.field { margin-bottom: 12px; }
input, select, textarea { width: 100%; font: 15px var(--font); color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
textarea { min-height: 80px; resize: vertical; font-family: var(--mono); font-size: 13px; }
.switch { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.switch input { width: 40px; height: 22px; appearance: none; background: var(--line); border-radius: 22px; position: relative; flex: none; padding: 0; border: 0; cursor: pointer; margin-top: 2px; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { left: 21px; }
.search { position: relative; }
.search input { padding-left: 34px; }
.search::before { content: "⌕"; position: absolute; left: 11px; top: 7px; color: var(--muted); font-size: 18px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--panel); border-radius: 99px; padding: 5px 12px; font-size: 13px; cursor: pointer; color: var(--text); }
.chip.on { background: var(--text); color: var(--panel); border-color: var(--text); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--gray-soft); color: var(--muted); white-space: nowrap; }
.badge.activo, .badge.ok, .badge.pagada { background: var(--ok-soft); color: var(--ok); }
.badge.alertado, .badge.warn, .badge.pendiente { background: var(--warn-soft); color: var(--warn); }
.badge.cortado, .badge.bad, .badge.critical, .badge.vencida { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: inline-block; flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--panel-2); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--panel-2); }
tr.off td { opacity: .5; }

/* Client cards (mobile) */
.clist { display: none; }
.citem { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; gap: 12px; align-items: center; }
.citem .info { flex: 1; min-width: 0; }
.citem .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(8, 14, 22, .55); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 50; overflow-y: auto; }
.modal { background: var(--panel); border-radius: 16px; width: 100%; max-width: 560px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.modal.wide { max-width: 860px; }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-b { padding: 18px; }
.modal-f { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.x { background: none; border: 0; font-size: 22px; color: var(--muted); cursor: pointer; line-height: 1; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--panel); padding: 11px 18px; border-radius: 10px; z-index: 60; font-weight: 500; max-width: 92vw; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.toast.err { background: var(--bad); color: #fff; }
.changes { list-style: none; padding: 0; margin: 0; }
.changes li { padding: 9px 0 9px 28px; border-bottom: 1px solid var(--line); position: relative; font-size: 14px; }
.changes li::before { content: "→"; position: absolute; left: 6px; color: var(--brand); font-weight: 700; }
.changes li:last-child { border-bottom: 0; }

/* Alerts / misc */
.alert { border-radius: var(--radius); padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.alert.warn { background: var(--warn-soft); color: var(--text); border-left: 4px solid var(--warn); }
.alert.bad { background: var(--bad-soft); border-left: 4px solid var(--bad); }
.alert.ok { background: var(--ok-soft); border-left: 4px solid var(--ok); }
.alert.info { background: var(--info-soft); border-left: 4px solid var(--info); }
.demo-banner { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 600; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 14px; scrollbar-width: none; }
.tabs a { padding: 9px 13px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--brand); border-color: var(--brand); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
pre.out { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow: auto; max-height: 420px; font-size: 12.5px; margin: 0; }
.finding { border-left: 4px solid var(--line); }
.finding.critical { border-left-color: var(--bad); }
.finding.warning { border-left-color: var(--warn); }
.finding.ok { border-left-color: var(--ok); }
.finding.info { border-left-color: var(--info); }
.loading { padding: 40px; text-align: center; color: var(--muted); }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: s .7s linear infinite; vertical-align: -3px; }
@keyframes s { to { transform: rotate(360deg); } }

/* Auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth .card { width: 100%; max-width: 400px; padding: 26px; }

/* Responsive */
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .main { padding: 14px 14px 96px; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .g4 { grid-template-columns: 1fr 1fr; }
  .kpi .value { font-size: 21px; }
  h1 { font-size: 20px; }
  .hide-m { display: none !important; }
  .show-m { display: block; margin-top: 4px; }
  td, th { padding: 9px 8px; }
  .clist { display: flex; flex-direction: column; gap: 8px; }
  .ctable { display: none; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: var(--panel); border-top: 1px solid var(--line); z-index: 40; padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; padding: 8px 2px 7px; font-size: 11px; color: var(--muted); gap: 1px; }
  .bottom-nav a .ico { font-size: 19px; }
  .bottom-nav a.on { color: var(--brand); }
  .modal-bg { padding: 0; align-items: flex-end; }
  .modal { border-radius: 16px 16px 0 0; max-height: 94vh; overflow-y: auto; }
  .topbar .actions .btn { flex: 1; justify-content: center; }
}

/* Gráficas */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .tt { position: absolute; pointer-events: none; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-size: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.15); white-space: nowrap; z-index: 2; display: none; }
.chart .tt b { font-weight: 600; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.stat-row { display: flex; gap: 22px; flex-wrap: wrap; margin: 6px 0 10px; }
.stat-row div { font-size: 12px; color: var(--muted); }
.stat-row b { display: block; font-size: 18px; color: var(--text); font-weight: 700; }
.bar-inline { height: 6px; background: var(--gray-soft); border-radius: 6px; overflow: hidden; min-width: 70px; }
.bar-inline i { display: block; height: 100%; background: var(--c-down); border-radius: 6px; }
.boost-on { background: linear-gradient(90deg, var(--info-soft), transparent); border-left: 4px solid var(--info); }
.preset { display: flex; gap: 6px; flex-wrap: wrap; }
.ratio { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }

/* Selector de router */
.rsw { display: block; margin: 0 6px 14px; }
.rsw select { margin-top: 4px; font-weight: 600; background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.rsw-one { margin: -6px 10px 12px; }
.router-chip { display: inline-flex; gap: 6px; align-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 13px; padding: 5px 12px; border-radius: 99px; margin-bottom: 10px; }

.ipc { border: 0; border-radius: 6px; padding: 7px 0; font: 600 12px var(--mono); cursor: pointer; }
.ipc:hover { filter: brightness(.94); outline: 2px solid var(--brand); }
.modal.xwide { max-width: 1080px; }

/* ===== v1.5: barra superior, buscador, alertas, módulos nuevos ===== */
.qbar { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin: -6px 0 12px; }
.qsearch { flex: 0 1 360px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; text-align: left; min-width: 0; }
.qsearch .qs-t { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qsearch:hover { border-color: var(--brand); }
kbd { font: 11px var(--mono); padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--panel-2); color: var(--muted); }
.qbtn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 17px; cursor: pointer; color: var(--text); }
.qn, .nn, .tab-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font: 700 11px/18px var(--font); text-align: center; }
.qn { position: absolute; top: -6px; right: -6px; }
.nn { margin-left: auto; }
.tab-n { display: inline-block; margin-left: 6px; }
.qa .qn { position: static; margin-left: 4px; }
.gres { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow: auto; }
.gitem { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 9px; color: var(--text); }
.gitem.on, .gitem:hover { background: var(--brand-soft); }
.gitem .gi { font-size: 18px; width: 24px; text-align: center; }
.gitem .gt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.quick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); font: 600 13px var(--font); cursor: pointer; text-align: center; }
.qa span { font-size: 20px; }
.qa:hover { border-color: var(--brand); color: var(--brand); }
.onboard { margin-bottom: 14px; border-color: var(--brand); }
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.step { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; background: var(--panel-2); color: var(--text); }
.step > span:last-child { display: flex; flex-direction: column; }
.step .ck { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.step.done { opacity: .62; }
.step.done .ck { background: var(--ok); border-color: var(--ok); color: #fff; }
.mini { display: block; padding: 8px 10px; border-radius: 9px; background: var(--panel-2); color: var(--text); border: 0; font: inherit; cursor: pointer; margin-bottom: 6px; }
.mini:hover { background: var(--brand-soft); }
.aps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.apc { cursor: pointer; }
.apc:hover { border-color: var(--brand); }
.apc.down { border-color: var(--bad); background: var(--bad-soft); }
.sig { font-weight: 700; font-family: var(--mono); font-size: 13px; }
.sig.ok { color: var(--ok); } .sig.warn { color: var(--warn); } .sig.bad { color: var(--bad); }
.timeline { display: flex; flex-direction: column; gap: 8px; max-height: 40vh; overflow: auto; }
.tl { padding: 8px 12px; border-left: 3px solid var(--line); background: var(--panel-2); border-radius: 0 9px 9px 0; }
.tl.pub { border-left-color: var(--info); }
.hb { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; }
.hb-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.hb-t { height: 10px; background: var(--gray-soft); border-radius: 6px; overflow: hidden; }
.hb-t i { display: block; height: 100%; background: var(--c-down); border-radius: 0 4px 4px 0; }
.hb-v { font-weight: 600; font-size: 14px; white-space: nowrap; }
.ctip { position: absolute; pointer-events: none; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 13px; box-shadow: 0 6px 18px rgba(0,0,0,.14); min-width: 160px; z-index: 5; }
.ctip i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.alc { display: flex; gap: 12px; align-items: flex-start; color: var(--text); padding: 12px 14px; }
.alc.new { border-left: 4px solid var(--brand); }
.alc.res { opacity: .6; }
.al-i { font-size: 16px; line-height: 1.4; }
.prc { display: flex; gap: 14px; align-items: flex-start; }
.pr-img { width: 110px; flex: none; }
.pr-img img { width: 110px; height: 140px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-2); }
@media (max-width: 1000px) { .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .qbar { position: sticky; top: 0; z-index: 20; margin: -14px -14px 12px; padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .qsearch { flex: 1; }
  .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pr-img, .pr-img img { width: 80px; height: 100px; }
  .hb { grid-template-columns: minmax(0, 1fr) auto; } .hb-t { grid-column: 1 / -1; grid-row: 2; }
}
.step .badge { align-self: flex-start; margin: 2px 0; }
.mini { overflow-wrap: anywhere; }
.card { min-width: 0; }
.qn:empty, .nn:empty, .tab-n:empty { display: none; }

/* ===== v1.6 ===== */
@keyframes rcflash { 0%, 30% { background: var(--brand-soft); } 100% { background: transparent; } }
tr.flash td { animation: rcflash 2.4s ease-out; }
.live-ban { position: fixed; left: 50%; transform: translateX(-50%); bottom: 84px; z-index: 200; border: 0; border-radius: 99px; padding: 10px 18px; background: var(--brand); color: var(--brand-ink); font: 600 14px var(--font); box-shadow: 0 6px 20px rgba(0,0,0,.25); cursor: pointer; }
.live-dot { position: fixed; right: 16px; bottom: 16px; z-index: 150; padding: 5px 12px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); font: 600 12px var(--font); opacity: 0; pointer-events: none; }
.live-dot.show { animation: livedot 2.2s ease-out; }
@keyframes livedot { 0% { opacity: 0; transform: translateY(6px); } 15%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.qlive { margin-right: auto; font: 600 12px var(--font); color: var(--ok); white-space: nowrap; }
.ipfree { text-align: center; padding: 14px; border-radius: 12px; background: var(--ok-soft); margin-bottom: 12px; }
.ipfree .mono { font-size: 30px; font-weight: 800; color: var(--ok); }
@media (max-width: 760px) { .qlive { display: none; } .live-dot { bottom: 84px; } }
