/* CardSync · estilos compartidos (tema oscuro cyberpunk, diseño aprobado en el lienzo) */
:root {
  --bg: #080B14;
  --bg-2: #0B1020;
  --card: #111827;
  --line: #1E2A44;
  --line-strong: #2A3A5C;
  --text: #F3F4F6;
  --text-2: #C7CDD8;
  --muted: #9CA3AF;
  --cyan: #00E5FF;
  --cyan-soft: rgba(0, 229, 255, .10);
  --cyan-line: rgba(0, 229, 255, .40);
  --magenta: #FF2BD6; --magenta-text: #FF7EE5; --magenta-soft: rgba(255, 43, 214, .12); --magenta-line: rgba(255, 43, 214, .5);
  --violet: #8B5CF6; --violet-text: #C4B5FD; --violet-soft: rgba(139, 92, 246, .18); --violet-line: rgba(139, 92, 246, .6);
  --green: #22E5A5; --green-soft: rgba(34, 229, 165, .12); --green-line: rgba(34, 229, 165, .5);
  --amber: #FFB020; --amber-text: #FFD27A; --amber-soft: rgba(255, 176, 32, .12); --amber-line: rgba(255, 176, 32, .5);
  --grad: linear-gradient(135deg, #00E5FF 0%, #8B5CF6 100%);
  --radius: 16px;
  --radius-sm: 12px;
  --glow: 0 0 18px rgba(0, 229, 255, .35);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .25);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Consolas", monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); }
body.centered { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #7FF1FF; text-decoration: underline; }
h1, h2, h3 { color: var(--text); margin: 0; font-weight: 700; letter-spacing: -.01em; font-family: var(--display); }
h1 { font-size: 28px; }
h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
h2 .ico { color: var(--cyan); }
h3 { font-size: 14px; }
p { margin: 8px 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.strong { font-weight: 600; color: var(--text); }
.mono { font-family: var(--mono); font-size: 12px; }
.num, .table td.num, .table th.num { font-variant-numeric: tabular-nums; }
.t-right { text-align: right; }
.ico { vertical-align: -3px; flex: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }

/* ---- estructura: barra lateral + contenido */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.sidebar { flex: 0 0 248px; background: var(--bg-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; padding: 22px 16px; }
.content { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; font-size: 20px; font-family: var(--display); padding: 0 6px; }
.brand:hover { text-decoration: none; color: var(--text); }
.brand__logo { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); display: flex; align-items: center; justify-content: center; color: var(--bg); box-shadow: var(--glow); flex: none; }
.brand small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; font-family: var(--font); }
.brand--big { font-size: 22px; margin-bottom: 14px; padding: 0; }
.side-label { font-size: 11px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; padding: 0 6px; margin-bottom: 8px; }
.account-pill { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: var(--text); }
.account-pill:hover { text-decoration: none; color: var(--text); border-color: var(--line-strong); }
.account-pill .ico { color: var(--cyan); }
.account-pill span { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-pill small { color: var(--muted); }
.sidenav { display: flex; flex-direction: column; gap: 4px; }
.sidenav .tab, .sidenav .topnav__link { appearance: none; background: none; border: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font: inherit; font-weight: 500; cursor: pointer; text-align: left; white-space: nowrap; text-decoration: none; width: 100%; }
.sidenav .tab:hover, .sidenav .topnav__link:hover { background: rgba(243, 244, 246, .05); color: var(--text); text-decoration: none; }
.sidenav .tab[aria-selected=true], .sidenav .topnav__link.is-active { background: var(--cyan); color: var(--bg); font-weight: 700; box-shadow: var(--glow); }
.sidenav .tab .badge { margin-left: auto; }
.sidenav .tab[aria-selected=true] .badge { background: rgba(8, 11, 20, .25); color: var(--bg); }
.userbox { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 4px 0; border-top: 1px solid var(--line); }
.userbox__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); flex: none; }
.userbox__name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.userbox__role { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu__panel { position: absolute; left: 0; bottom: calc(100% + 8px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 12px; width: 240px; display: grid; gap: 10px; z-index: 30; }

.topbar { display: flex; align-items: center; gap: 16px; padding: 14px 28px; border-bottom: 1px solid var(--line); background: var(--bg-2); flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.crumbs a:hover { color: var(--text); text-decoration: none; }
.crumbs .current { color: var(--text); font-weight: 600; }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); display: inline-block; flex: none; }
.dot--on { background: var(--green); box-shadow: 0 0 10px var(--green); }
.dot--off { background: var(--magenta); box-shadow: 0 0 10px var(--magenta); }

/* ---- página */
.page { padding: 26px 28px 32px; max-width: 1240px; width: 100%; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.pagehead p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.pagehead__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- tarjetas y resumen */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 18px; }
.card--login { width: 100%; max-width: 400px; padding: 26px; box-shadow: var(--shadow); }
.card--login h1 { margin-bottom: 4px; font-size: 22px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card__head h2 { margin: 0; }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 2px; min-width: 0; }
.stat--grad { border-color: var(--green-line); box-shadow: 0 0 24px rgba(34, 229, 165, .10); }
.stat--warn { border-color: var(--magenta-line); }
.stat__label { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.stat__value { color: var(--text); font-size: 24px; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--display); }
.stat__value.is-text { font-size: 16px; white-space: normal; display: flex; align-items: center; gap: 8px; }
.stat__value .ico { color: var(--green); }
.stat__hint { color: var(--muted); font-size: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-2 > .card { margin: 0; }

/* ---- botones y campos */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text-2); font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; line-height: 1.2; min-height: 38px; }
.btn:hover { background: rgba(243, 244, 246, .06); color: var(--text); text-decoration: none; }
.btn--primary { background: var(--cyan); border-color: var(--cyan); color: #061018; font-weight: 700; }
.btn--primary:hover { background: var(--cyan); color: #061018; box-shadow: 0 0 0 1px var(--cyan), var(--glow); }
.btn--outline { border-color: var(--cyan); color: var(--cyan); font-weight: 600; }
.btn--outline:hover { background: var(--cyan-soft); color: var(--cyan); }
.btn--ghost { border-color: transparent; color: var(--muted); }
.btn--ghost:hover { background: rgba(243, 244, 246, .06); color: var(--text); }
.btn--danger { border-color: var(--magenta); color: var(--magenta-text); font-weight: 600; }
.btn--danger:hover { background: var(--magenta-soft); color: var(--magenta-text); }
.btn--danger-ghost { color: var(--magenta-text); border-color: transparent; }
.btn--danger-ghost:hover { background: var(--magenta-soft); color: var(--magenta-text); }
.btn--sm { padding: 5px 10px; font-size: 12.5px; border-radius: 9px; min-height: 30px; }
.btn[disabled], .btn.is-busy { opacity: .55; cursor: progress; }
.btn[disabled] { background: var(--line); border-color: var(--line); color: #8B93A4; cursor: not-allowed; box-shadow: none; }
.btn.is-busy::after { content: ""; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
input, select, textarea { font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; min-width: 0; min-height: 40px; }
input::placeholder { color: #6B7280; }
input:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 229, 255, .22); outline: none; }
input[aria-invalid=true] { border-color: var(--magenta); }
input[type=number] { font-variant-numeric: tabular-nums; }
select option { background: var(--card); color: var(--text); }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; color: var(--text-2); font-weight: 500; }
.field--inline { display: inline-grid; }
.stack { display: grid; gap: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 14px; align-items: end; }
.form-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.actions { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.toolbar { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center; }
.toolbar form { display: contents; }
.toolbar .field--inline { display: inline-flex; align-items: center; gap: 6px; }
.toolbar .field--inline > span { font-size: 13px; color: var(--text-2); }

/* interruptor (botón de formulario) */
.switch { display: inline-flex; align-items: center; gap: 8px; }
.switch__label { color: var(--text-2); }
.switch__btn { border: 1px solid var(--line); background: var(--bg-2); border-radius: 999px; padding: 3px 10px 3px 4px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; color: var(--muted); min-height: 26px; }
.switch__btn::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--line); transition: background .15s, box-shadow .15s; }
.switch__btn[aria-pressed=true] { color: var(--green); border-color: var(--green-line); background: var(--green-soft); }
.switch__btn[aria-pressed=true]::before { background: var(--green); box-shadow: 0 0 8px var(--green); }

/* ---- estados */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.badge--green { background: var(--green-soft); color: var(--green); border-color: var(--green-line); }
.badge--amber { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-line); }
.badge--violet { background: var(--violet-soft); color: var(--violet-text); border-color: var(--violet-line); }
.badge--pink { background: var(--magenta-soft); color: var(--magenta-text); border-color: var(--magenta-line); }
.badge--blue { background: var(--cyan-soft); color: var(--cyan); border-color: var(--cyan-line); }
.badge--gray { background: rgba(243, 244, 246, .06); color: var(--muted); border-color: var(--line); }
.flash { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--radius-sm); margin: 0 0 16px; border: 1px solid; }
.flash--ok { background: var(--green-soft); color: var(--green); border-color: var(--green-line); }
.flash--warn { background: var(--amber-soft); color: var(--amber-text); border-color: var(--amber-line); }
.flash--bad { background: var(--magenta-soft); color: var(--magenta-text); border-color: var(--magenta-line); }
.empty { color: var(--muted); text-align: center; padding: 18px 8px !important; }
.note { position: relative; display: block; background: var(--cyan-soft); border: 1px solid var(--cyan-line); border-radius: var(--radius-sm); padding: 10px 12px 10px 40px; color: var(--text-2); font-size: 12.5px; margin: 12px 0 0; }
.note::before { content: "i"; position: absolute; left: 12px; top: 10px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--cyan); color: var(--cyan); font-weight: 700; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.note--warn { background: var(--amber-soft); border-color: var(--amber-line); color: var(--amber-text); }
.note--warn::before { content: "!"; border-color: var(--amber); color: var(--amber); }
.danger-zone { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.danger-zone > summary { cursor: pointer; color: var(--magenta-text); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.danger-zone > form { margin-top: 10px; }

/* ---- tablas */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 6px 0 12px; background: var(--bg-2); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; background: var(--card); padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; letter-spacing: .02em; }
.table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.table td.strong, .table td .strong { color: var(--text); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(243, 244, 246, .03); }
.table--compact td, .table--compact th { padding: 6px 8px; }
.table .t-right { text-align: right; }
.table tr.is-warn td { color: var(--amber-text); }
.table tr.is-bad td { color: var(--magenta-text); }
.table .wrap { white-space: normal; word-break: break-word; max-width: 520px; }
details.panel { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; margin-top: 12px; background: var(--card); }
details.panel > summary { cursor: pointer; color: var(--text-2); font-weight: 500; display: flex; align-items: center; gap: 6px; }
details.panel[open] > summary { margin-bottom: 8px; }

/* ---- pestañas (si no hay barra lateral) y paneles */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 0 16px; overflow-x: auto; scrollbar-width: thin; }
.tab { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 12px; color: var(--muted); font: inherit; font-weight: 500; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.tab[aria-selected=true] { color: var(--cyan); border-bottom-color: var(--cyan); }
.tabpanel[hidden] { display: none; }
.browser { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); }
.browser__bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.browser__dots { display: inline-flex; gap: 6px; }
.browser__dots span { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.browser__url { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; }
.shot { max-width: 100%; display: block; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; margin: 6px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--text-2); }
.json { font-family: var(--mono); font-size: 12px; color: var(--muted); word-break: break-all; }

/* ---- responsive */
@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .sidebar { flex: none; width: 100%; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; gap: 12px; }
  .sidenav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 2px; scrollbar-width: thin; }
  .sidenav .tab, .sidenav .topnav__link { width: auto; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); }
  .sidenav .tab[aria-selected=true], .sidenav .topnav__link.is-active { border-color: var(--cyan); }
  .userbox { margin-top: 0; border-top: 0; padding-top: 0; }
  .menu__panel { bottom: auto; top: calc(100% + 8px); left: auto; right: 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .page { padding: 16px 14px 24px; }
  .topbar { padding: 10px 14px; }
}
@media (max-width: 640px) {
  .pagehead { flex-direction: column; align-items: stretch; }
  .pagehead__actions .btn { flex: 1; justify-content: center; }
  .stat__value { font-size: 20px; }
  .card { padding: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .table { font-size: 12.5px; }
  .actions { justify-content: flex-start; }
  .btn { min-height: 44px; }
  .brand small { display: none; }
}

/* ---- tarjeta 'Estado del sistema' (Resumen) */
.resumen-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.resumen-grid > .card { margin: 0; }
.status-card { padding: 22px; display: flex; flex-direction: column; gap: 14px; border-color: rgba(0, 229, 255, .28); box-shadow: 0 0 32px rgba(0, 229, 255, .06); }
.status-head { display: flex; align-items: center; gap: 16px; margin-bottom: 2px; }
.status-head__icon { color: var(--cyan); display: flex; filter: drop-shadow(0 0 8px rgba(0, 229, 255, .6)); }
.status-head h2 { font-size: 24px; }
.status-head p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.status-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.status-tile, .status-row { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; }
.status-tile { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.status-tile__top { display: flex; gap: 14px; align-items: flex-start; }
.status-tile__main { flex: 1; min-width: 0; display: grid; gap: 8px; }
.status-tile__title { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.status-tile h3, .status-row h3 { font-size: 17px; }
.status-line { display: flex; align-items: center; gap: 9px; color: var(--text-2); min-width: 0; }
.status-line > span:not(.pill) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-line .ico { color: var(--muted); }
.status-tile__foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; display: flex; gap: 12px; align-items: center; color: var(--text-2); line-height: 1.35; }
.status-tile__foot strong { color: var(--text); font-weight: 600; }
.status-row { padding: 14px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.status-row__main { flex: 1 1 200px; min-width: 0; }
.status-row__main p { margin: 2px 0 0; color: var(--muted); }
.status-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-left: auto; text-align: right; }
.status-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex: none; border: 1px solid; }
.status-icon--cyan { color: var(--cyan); background: rgba(0, 229, 255, .08); border-color: rgba(0, 229, 255, .35); box-shadow: inset 0 0 14px rgba(0, 229, 255, .12); }
.status-icon--violet { color: #B794FF; background: rgba(139, 92, 246, .12); border-color: rgba(139, 92, 246, .5); box-shadow: inset 0 0 14px rgba(139, 92, 246, .15); }
.status-icon--magenta { color: var(--magenta); background: rgba(255, 43, 214, .10); border-color: rgba(255, 43, 214, .45); box-shadow: inset 0 0 14px rgba(255, 43, 214, .15); }
.status-foot { border-top: 1px solid var(--line); padding-top: 14px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.status-foot__label { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.status-foot__sep { width: 1px; height: 24px; background: var(--line-strong); }
.status-foot form { margin-left: auto; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 10px; border: 1px solid; font-size: 13px; font-weight: 600; white-space: nowrap; line-height: 1.3; }
.pill__dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; flex: none; }
.pill--nodot { padding: 3px 12px; }
.pill--ok { color: var(--green); background: var(--green-soft); border-color: var(--green-line); }
.pill--warn { color: var(--amber); background: var(--amber-soft); border-color: var(--amber-line); }
.pill--violet { color: var(--violet-text); background: var(--violet-soft); border-color: var(--violet-line); }
.pill--bad { color: var(--magenta-text); background: var(--magenta-soft); border-color: var(--magenta-line); }
.pill--info { color: var(--cyan); background: var(--cyan-soft); border-color: var(--cyan-line); }
.pill--muted { color: var(--muted); background: rgba(243, 244, 246, .05); border-color: var(--line); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 9px; font-size: 12.5px; color: var(--text-2); background: var(--card); }
.c-cyan { color: var(--cyan); }
.c-violet { color: #B794FF; }
.c-bad { color: var(--magenta-text); }
@media (max-width: 1200px) { .resumen-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .status-card { padding: 16px; }
  .status-head h2 { font-size: 20px; }
  .status-icon { width: 44px; height: 44px; }
  .status-row__side { align-items: flex-start; text-align: left; margin-left: 0; width: 100%; }
  .status-foot form { margin-left: 0; width: 100%; }
  .status-foot form .btn { width: 100%; justify-content: center; }
}

/* ---- progreso de la sincronización completa */
.progress { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--cyan-line); background: var(--cyan-soft); color: var(--text-2); border-radius: var(--radius-sm); padding: 12px 14px; margin: 4px 0 12px; }
.progress strong { color: var(--text); }
.progress--ok { border-color: var(--green-line); background: var(--green-soft); }
.progress--ok > span:first-child { color: var(--green); }
.progress--bad { border-color: var(--magenta-line); background: var(--magenta-soft); }
.progress--bad > span:first-child { color: var(--magenta-text); }
.progress__spin { width: 18px; height: 18px; border: 2px solid var(--cyan); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; flex: none; margin-top: 2px; }
.progress__stats { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
