/* ============================================================
   Cloura · App multi-cloud — Design system (rediseño)
   Una sola nube o tres: la misma UI. Mono cálido + acento teal.
   Claro / oscuro. Poppins (display) + Inter (texto).
   ============================================================ */

/* ---------------- Tokens · claro ---------------- */
:root {
  /* superficie y tinta (blancos/negros cálidos, saturación mínima) */
  --bg:        #FBFAF8;   /* lienzo */
  --surface:   #FFFFFF;   /* cards */
  --surface-2: #F6F4F0;   /* bloques, code, hover sutil */
  --ink:       #16150F;   /* texto principal */
  --ink-2:     #5C5A52;   /* texto secundario */
  --ink-3:     #8C897F;   /* terciario / hints */
  --line:      #EAE7E0;   /* bordes */
  --line-2:    #DFD9CC;   /* divisor sutil (un pelín más presente que --line) */
  --line-2:    #DCD8CF;   /* bordes hover */

  /* acento de marca + semánticos (mismo tono sobrio) */
  --accent:      #0F766E; /* teal — acción, marca, ahorro */
  --accent-700:  #0C5F58; /* hover */
  --accent-soft: rgba(15,118,110,.10);
  --accent-line: rgba(15,118,110,.28);

  --good:  #0F766E;       /* ahorro / ok = teal */
  --warn:  #B57E12;       /* madurez / atención = ámbar sobrio */
  --warn-soft: rgba(181,126,18,.12);
  --danger: #B23B2E;      /* riesgo crítico */
  --danger-soft: rgba(178,59,46,.10);

  /* identidad de proveedor — hues distintos, croma/luz parejos, nunca chillones */
  --p-aws:   oklch(0.66 0.115 64);   /* ámbar-naranja */
  --p-azure: oklch(0.60 0.105 248);  /* azul */
  --p-gcp:   oklch(0.60 0.115 24);   /* terracota */
  --p-aws-soft:   oklch(0.66 0.115 64 / .12);
  --p-azure-soft: oklch(0.60 0.105 248 / .12);
  --p-gcp-soft:   oklch(0.60 0.115 24 / .12);

  /* severidad — escala semántica MATE, en línea con la paleta cálida de Cloura
     (crítico→ladrillo, alto→terracota, medio→ámbar, bajo→pizarra) */
  --sev-crit: #B23B2E;
  --sev-high: #BF6B3A;
  --sev-med:  #B8902E;
  --sev-low:  #5E7E8E;

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;

  --r-xl: 18px; --r-lg: 14px; --r: 11px; --r-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(20,18,12,.05);
  --shadow:    0 1px 2px rgba(20,18,12,.05), 0 12px 30px rgba(20,18,12,.06);
  --shadow-lift: 0 1px 2px rgba(20,18,12,.06), 0 22px 50px rgba(20,18,12,.12);

  --ease: cubic-bezier(.22,.61,.36,1);
  --topbar-h: 60px;
  --sidebar-w: 232px;
}

/* ---------------- Tokens · oscuro ---------------- */
html[data-theme="dark"] {
  --bg:        #14130F;
  --surface:   #1C1B16;
  --surface-2: #24221C;
  --ink:       #F4F2EC;
  --ink-2:     #B4B0A4;
  --ink-3:     #88857A;
  --line:      #2E2C25;
  --line-2:    #3A372E;   /* divisor sutil (un pelín más presente que --line) */
  --line-2:    #3B392F;

  --accent:      #2DD4BF;
  --accent-700:  #14B8A6;
  --accent-soft: rgba(45,212,191,.14);
  --accent-line: rgba(45,212,191,.34);

  --good:  #2DD4BF;
  --warn:  #E0B24A;
  --warn-soft: rgba(224,178,74,.16);
  --danger: #E0796B;
  --danger-soft: rgba(224,121,107,.16);

  --p-aws:   oklch(0.74 0.12 70);
  --p-azure: oklch(0.72 0.11 250);
  --p-gcp:   oklch(0.72 0.12 30);
  --p-aws-soft:   oklch(0.74 0.12 70 / .18);
  --p-azure-soft: oklch(0.72 0.11 250 / .18);
  --p-gcp-soft:   oklch(0.72 0.12 30 / .18);

  /* severidad — misma escala mate, levemente aclarada para el fondo oscuro */
  --sev-crit: #D98C7E;
  --sev-high: #D49E73;
  --sev-med:  #D2B45C;
  --sev-low:  #8BA5B3;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 1px 2px rgba(0,0,0,.4), 0 12px 30px rgba(0,0,0,.5);
  --shadow-lift: 0 1px 2px rgba(0,0,0,.4), 0 22px 50px rgba(0,0,0,.6);
}

/* ---------------- Reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background .3s var(--ease), color .3s var(--ease);
}
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
button { font-family: inherit; color: inherit; }
a { color: var(--accent); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 5px; }
::selection { background: var(--accent-soft); }

/* ---------------- Logo ---------------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; user-select: none; color: var(--ink); }
.logo .iso { width: 26px; height: 26px; color: var(--ink); flex-shrink: 0; }
.logo .word { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --h: 38px;
  appearance: none; border: 1px solid transparent; height: var(--h);
  padding: 0 16px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap;
  transition: transform .1s var(--ease), background .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease), color .16s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
html[data-theme="dark"] .btn-primary { color: #0b1a18; }
.btn-primary:hover { background: var(--accent-700); box-shadow: 0 8px 22px var(--accent-soft); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--line-2); background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); }
.btn-lg { --h: 48px; font-size: 15px; padding: 0 24px; }
.btn-sm { --h: 32px; font-size: 12.5px; padding: 0 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ============================================================
   App shell
   ============================================================ */
.app { min-height: 100dvh; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 14px;
  height: var(--topbar-h); padding: 0 clamp(14px, 2.4vw, 26px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .spacer { flex: 1; }
.topbar .tb-right { display: flex; align-items: center; gap: 9px; }

/* scope selector (segmented) — el cromo multi-cloud clave */
.scope {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 3px;
}
.scope.is-hidden { display: none; }
.scope .sc-opt {
  appearance: none; border: 0; background: transparent;
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 12px; border-radius: 7px;
  font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer;
  transition: background .16s var(--ease), color .16s var(--ease), box-shadow .16s var(--ease);
}
.scope .sc-opt .pdot { width: 8px; height: 8px; border-radius: 50%; }
.scope .sc-opt[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
html[data-theme="dark"] .scope .sc-opt[aria-pressed="true"] { background: var(--line-2); }
.scope .sc-opt:hover:not([aria-pressed="true"]) { color: var(--ink); }
/* Nubes no conectadas: visibles pero atenuadas (no se esconden ni llevan badge) */
.scope .sc-opt.sc-locked { opacity: .45; cursor: not-allowed; }
.scope .sc-opt.sc-locked .pdot { filter: grayscale(1); }
.scope .sc-opt.sc-locked:hover { color: var(--ink-2); }
.scope .sc-opt.sc-connectable { cursor: pointer; }

/* account + avatar */
.tb-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer;
}
.tb-pill:hover { border-color: var(--line-2); background: var(--surface-2); }
.tb-pill .ic { width: 15px; height: 15px; color: var(--ink-3); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font-family: var(--font-display);
  font-weight: 600; font-size: 13px; display: grid; place-items: center; cursor: pointer; flex-shrink: 0;
}

/* body: sidebar + main */
.shell { flex: 1; display: grid; grid-template-columns: var(--sidebar-w) minmax(0,1fr); }
.sidebar {
  border-right: 1px solid var(--line); padding: 18px 12px;
  position: sticky; top: var(--topbar-h); align-self: start;
  height: calc(100dvh - var(--topbar-h)); overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
}
.nav-label { font-size: 10.5px; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3); padding: 6px 12px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 9px 12px; border: 0; background: none; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; text-align: left;
  position: relative; transition: background .14s var(--ease), color .14s var(--ease);
}
.nav-item .ic { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.is-active { color: var(--accent); background: var(--accent-soft); }
.nav-item.is-active::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav-count { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--ink-3); background: var(--surface-2); border-radius: 999px; padding: 1px 8px; }
.nav-item.is-active .nav-count { color: var(--accent); background: transparent; }
.sidebar .grow { flex: 1; }
.sidebar-foot { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }

.main { min-width: 0; padding: clamp(22px, 2.8vw, 38px) clamp(18px, 3vw, 46px) 84px; }
.view { display: none; }
.view.is-active { display: block; }
@media (prefers-reduced-motion: no-preference) { .view.is-active { animation: rise .32s var(--ease); } }
@keyframes rise { from { transform: translateY(8px); } to { transform: none; } }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(21px, 2.4vw, 26px); }
.page-head .sub { color: var(--ink-2); font-size: 13.5px; margin-top: 5px; }
.page-head .actions { display: flex; gap: 9px; align-items: center; }
.section-title { font-family: var(--font-display); font-weight: 600; font-size: 14px; margin: 36px 0 14px; display: flex; align-items: center; gap: 10px; }
.section-title .meta { font-family: var(--font-body); font-weight: 400; font-size: 12.5px; color: var(--ink-3); }

/* ============================================================
   Cards
   ============================================================ */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-pad { padding: 24px; }

/* ---- KPI tiles ---- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px 21px; }
.kpi .k-top { display: flex; align-items: center; gap: 8px; }
.kpi .k-ico { width: 26px; height: 26px; border-radius: 7px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); }
.kpi .k-ico .ic { width: 15px; height: 15px; }
.kpi .k-label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.kpi .k-value { font-family: var(--font-display); font-weight: 600; font-size: 27px; letter-spacing: -.025em; margin-top: 11px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpi .k-value .u { font-size: 14px; color: var(--ink-3); font-weight: 500; }
/* flex-wrap + min-width:0: el subtexto NUNCA desborda ni se monta — lo que no cabe baja de línea. */
.kpi .k-sub { font-size: 12px; color: var(--ink-3); margin-top: 7px; display: flex; align-items: center; flex-wrap: wrap; gap: 3px 6px; min-width: 0; }
.kpi .k-sub .k-sub-line { min-width: 0; }
/* El enlace de bloqueados va SIEMPRE en su propia línea, con wrapping normal (jamás encima del texto). */
.kpi .k-sub .k-sub-lock { flex-basis: 100%; min-width: 0; }
.kpi.accent .k-value { color: var(--good); }
.kpi.accent .k-ico { background: var(--accent-soft); color: var(--accent); }
.kpi.warn .k-value { color: var(--warn); }
.kpi.warn .k-ico { background: var(--warn-soft); color: var(--warn); }
.delta { font-weight: 600; }
.delta.up { color: var(--good); }
.delta.down { color: var(--danger); }

/* score ring inline */
.k-ring { width: 26px; height: 26px; }

/* ============================================================
   Cloud breakdown
   ============================================================ */
.breakdown { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
.bd-bar { height: 14px; border-radius: 999px; overflow: hidden; display: flex; background: var(--surface-2); }
.bd-seg { height: 100%; transition: width .5s var(--ease), opacity .2s var(--ease); cursor: pointer; }
.bd-seg.aws { background: var(--p-aws); }
.bd-seg.azure { background: var(--p-azure); }
.bd-seg.gcp { background: var(--p-gcp); }
.bd-seg:hover { opacity: .82; }
.bd-seg.dimmed { opacity: .25; }
.bd-legend { display: flex; flex-wrap: wrap; gap: 10px; }
.bd-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px 9px 11px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  cursor: pointer; transition: border-color .14s var(--ease), background .14s var(--ease);
  text-align: left;
}
.bd-chip:hover { border-color: var(--line-2); background: var(--surface-2); }
.bd-chip.is-active { border-color: var(--accent-line); background: var(--accent-soft); }
.bd-chip .pdot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.bd-chip .bc-name { font-size: 12.5px; font-weight: 600; }
.bd-chip .bc-stat { font-size: 12px; color: var(--ink-3); margin-top: 1px; font-variant-numeric: tabular-nums; }
.bd-chip .bc-pct { margin-left: 8px; font-family: var(--font-display); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }

/* dimension split mini cards */
.dim-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.dim-tile {
  text-align: left; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); padding: 16px 18px; cursor: pointer;
  transition: border-color .16s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease);
}
.dim-tile:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: var(--shadow); }
.dim-tile .dt-top { display: flex; align-items: center; gap: 9px; }
.dim-tile .dt-ico { width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); }
.dim-tile .dt-ico .ic { width: 15px; height: 15px; }
.dim-tile .dt-name { font-size: 13px; font-weight: 600; }
.dim-tile .dt-val { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; margin: 12px 0 2px; font-variant-numeric: tabular-nums; }
.dim-tile.cost .dt-val { color: var(--good); }
.dim-tile .dt-meta { font-size: 12px; color: var(--ink-3); }

/* ============================================================
   Provider chip (componente clave)
   ============================================================ */
.pchip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pmark {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700;
  font-size: 9px; letter-spacing: .02em; text-transform: uppercase;
}
.pmark.aws   { background: var(--p-aws-soft);   color: var(--p-aws); }
.pmark.azure { background: var(--p-azure-soft); color: var(--p-azure); }
.pmark.gcp   { background: var(--p-gcp-soft);   color: var(--p-gcp); }
.pchip .pname { color: var(--ink-2); }
.psq { width: 15px; height: 15px; border-radius: 4px; flex-shrink: 0; }
.psq.aws { background: var(--p-aws); }
.psq.azure { background: var(--p-azure); }
.psq.gcp { background: var(--p-gcp); }
.psq.github { background: #24292f; } /* bitácora: eventos de la integración GitHub (Fix-as-Code) */

/* ============================================================
   Findings list (lista priorizada única)
   ============================================================ */
.find-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.fselect-wrap { position: relative; }
.fselect {
  appearance: none; font: inherit; font-size: 13px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  height: 34px; padding: 0 30px 0 12px; cursor: pointer;
}
.fselect:hover { border-color: var(--line-2); }
.fselect-wrap .chev { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; color: var(--ink-3); pointer-events: none; }
.find-toolbar .right { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.find-search { position: relative; }
.find-search .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--ink-3); }
.find-search input { height: 34px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); padding: 0 12px 0 32px; font: inherit; font-size: 13px; color: var(--ink); width: 190px; }
.find-search input:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }

.find-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.find-row {
  display: grid;
  grid-template-columns: 30px minmax(0,1fr) 130px 110px 120px;
  align-items: center; gap: 14px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: background .12s var(--ease); text-align: left; width: 100%; background: none; border-left: 0; border-right: 0;
}
.find-list .find-row:last-child { border-bottom: 0; }
.find-row:hover { background: var(--surface-2); }
.find-row .fr-sev { display: grid; place-items: center; }
.sev-bead { width: 9px; height: 9px; border-radius: 3px; }
.sev-critico .sev-bead { background: var(--sev-crit); }
.sev-alto .sev-bead { background: var(--sev-high); }
.sev-medio .sev-bead { background: var(--sev-med); }
.sev-bajo .sev-bead { background: var(--sev-low); }
.find-row .fr-main { min-width: 0; }
.find-row .fr-title { font-size: 14px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-row .fr-meta { display: flex; align-items: center; gap: 9px; margin-top: 4px; flex-wrap: wrap; }
.fr-dim { font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.fr-dim .dim-dot { width: 6px; height: 6px; border-radius: 50%; }
.dim-dot.costos { background: var(--good); }
.dim-dot.rendimiento { background: var(--ink-3); }
.dim-dot.seguridad { background: var(--warn); }
.find-row .fr-save { text-align: right; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--good); font-variant-numeric: tabular-nums; }
.find-row .fr-save.risk { color: var(--ink-3); font-family: var(--font-body); font-weight: 500; font-size: 12.5px; }
.find-row .fr-fresh { font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.find-row .fr-fresh .ic { width: 13px; height: 13px; }
.find-row .fr-prov { display: flex; justify-content: flex-end; }
.find-row .fr-prov .pchip { flex-direction: row-reverse; gap: 8px; }
.find-row.dismissed { opacity: .55; }
.find-row.dismissed .fr-title { text-decoration: line-through; text-decoration-color: var(--line-2); }

/* freshness + coverage badges */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.badge .ic { width: 12px; height: 12px; }
.badge-fresh { color: var(--ink-3); background: var(--surface-2); }
.badge-cov { color: var(--warn); background: var(--warn-soft); }
.badge-new { color: var(--accent); background: var(--accent-soft); }
.badge-pack { color: var(--ok, #2e7d6b); background: var(--ok-soft, rgba(46,125,107,.12)); font-weight: 600; }
/* Suite Shield (Ajustes) — estado de packs por tenant */
.badge-ok     { color: var(--ok, #2e7d6b); background: var(--ok-soft, rgba(46,125,107,.12)); }
.badge-active { color: var(--accent); background: var(--accent-soft); }
.badge-muted  { color: var(--ink-3); background: var(--surface-2); }
.badge-soon   { color: var(--warn); background: var(--warn-soft); }
.shield-pack { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.shield-pack:first-child { border-top: 0; }
.shield-pack .sp-ico { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); }
.shield-pack .sp-ico .ic { width: 18px; height: 18px; }
.shield-pack .sp-info { min-width: 0; flex: 1; }
.shield-pack .sp-name { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shield-pack .sp-desc { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; max-width: 60ch; }
.shield-pack .sp-price { font-size: 12.5px; font-weight: 700; color: var(--ink); margin-top: 5px; }
.shield-pack.plan-locked .sp-ico { opacity: .5; filter: grayscale(.4); }
.shield-pack .pl-cta { margin: 0 0 0 auto; align-self: center; flex: none; }
/* Estado de remediación del hallazgo */
.badge-st.st-en_progreso { color: #1d4ed8; background: rgba(37,99,235,.12); }
.badge-st.st-resuelto    { color: #15803d; background: rgba(34,197,94,.14); }
.badge-st.st-descartado  { color: var(--ink-3); background: var(--surface-2); }
.find-row.st-resuelto .fr-title { text-decoration: line-through; text-decoration-color: var(--line-2); }
.find-row.st-resuelto { opacity: .7; }

/* Drawer — control de estado */
.dr-status-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.dr-status-k { font-size: 12px; color: var(--ink-3); }
.dr-status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.dr-status.st-abierto    { color: var(--ink-2); background: var(--surface-2); }
.dr-status.st-en_progreso{ color: #1d4ed8; background: rgba(37,99,235,.12); }
.dr-status.st-resuelto   { color: #15803d; background: rgba(34,197,94,.14); }
.dr-status.st-descartado { color: var(--ink-3); background: var(--surface-2); }

/* coverage banner */
.cov-banner {
  display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; margin-bottom: 16px;
  border: 1px solid var(--warn-soft); background: var(--warn-soft); border-radius: var(--r-lg);
}
.cov-banner .ic { width: 18px; height: 18px; color: var(--warn); flex-shrink: 0; margin-top: 1px; }
.cov-banner .cb-title { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cov-banner .cb-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.cov-banner[hidden] { display: none; }

/* empty state */
.empty { padding: 54px 20px; text-align: center; color: var(--ink-2); }
.empty .e-ico { width: 46px; height: 46px; border-radius: 13px; background: var(--surface-2); display: grid; place-items: center; margin: 0 auto 14px; color: var(--ink-3); }
.empty h4 { font-family: var(--font-display); color: var(--ink); font-size: 15px; margin-bottom: 5px; }
.empty p { font-size: 13px; }

/* ============================================================
   Drawer (detalle de hallazgo)
   ============================================================ */
.scrim { position: fixed; inset: 0; background: rgba(20,18,12,.34); opacity: 0; visibility: hidden; transition: opacity .24s var(--ease), visibility .24s var(--ease); z-index: 80; }
.scrim.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 94vw);
  background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lift); z-index: 81; transform: translateX(100%);
  transition: transform .32s var(--ease); display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.is-open { transform: none; }
@media (prefers-reduced-motion: reduce) { .drawer, .scrim { transition: none; } }
.dr-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.dr-close { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--ink-3); }
.dr-close:hover { background: var(--surface-2); color: var(--ink); }
.dr-eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; flex-wrap: wrap; }
.dr-head h2 { font-size: 19px; padding-right: 40px; line-height: 1.3; }
.dr-body { padding: 20px 24px 24px; }
.dr-metrics { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 22px; }
.dr-metric { background: var(--surface); padding: 13px 15px; }
.dr-metric .m-k { font-size: 11.5px; color: var(--ink-3); }
.dr-metric .m-v { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.dr-metric .m-v.green { color: var(--good); }
.dr-resource { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 22px; }
.dr-resource .rk { font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.dr-resource .rv { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink); margin-top: 5px; word-break: break-all; }
.dr-sub { font-family: var(--font-display); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.dr-text { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; margin-bottom: 22px; }
.dr-steps { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dr-steps li { display: flex; gap: 12px; font-size: 13.5px; line-height: 1.5; }
.dr-steps .n { flex-shrink: 0; width: 23px; height: 23px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.dr-foot { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; position: sticky; bottom: 0; background: var(--surface); }
.dr-actions { display: flex; gap: 10px; }
.dr-actions .btn { flex: 1; justify-content: center; min-width: 0; }
.btn.dr-danger { color: var(--danger); }
.btn.dr-danger:hover { color: #fff; background: var(--danger); }

/* Modal propio de Cloura (clDialog) */
.cl-dialog-scrim { position: fixed; inset: 0; z-index: 9998; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(17,24,39,.46); }
@media (prefers-reduced-motion: no-preference) { .cl-dialog-scrim { animation: cldlgfade .14s ease; } }
@keyframes cldlgfade { from { opacity: 0; } to { opacity: 1; } }
.cl-dialog-card { width: 432px; max-width: 92vw; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px 20px; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.cl-dialog-t { font-family: var(--font-display, Poppins), sans-serif; font-size: 18px; margin: 0 0 8px; color: var(--ink-1, var(--ink)); }
.cl-dialog-m { font-size: 14px; line-height: 1.55; color: var(--ink-3); margin: 0 0 20px; }
.cl-dialog-acts { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* Badge de análisis en ejecución (vista Análisis) */
.badge-run { color: var(--accent); background: var(--accent-soft); }
.badge-run .spin { width: 11px; height: 11px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; display: inline-block; }
@media (prefers-reduced-motion: no-preference) { .badge-run .spin { animation: spin .8s linear infinite; } }
.anl-running td { color: var(--ink-2); }

/* enterprise PR block */
.pr-card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 22px; }
.pr-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.pr-head .ic { width: 16px; height: 16px; color: var(--ink-2); }
.pr-head .pr-title { font-size: 13px; font-weight: 600; }
.pr-head .ent { margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }
.pr-body { padding: 14px; }
.pr-desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; margin-bottom: 14px; }
.pr-state { display: none; align-items: center; gap: 10px; font-size: 13px; padding: 11px 13px; border-radius: var(--r-sm); background: var(--surface-2); margin-bottom: 0; }
.pr-state.is-shown { display: flex; }
.pr-state .dot { width: 8px; height: 8px; border-radius: 50%; }
.pr-state.proposed .dot { background: var(--warn); }
.pr-state.review .dot { background: var(--p-azure); }
.pr-state.merged .dot { background: var(--good); }
.pr-state .pr-link { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); }
.pr-state .spin { width: 14px; height: 14px; border: 2px solid var(--line-2); border-top-color: var(--ink-2); border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) { .pr-state .spin { animation: spin .8s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Overlay del primer análisis: spinner visible + barra indeterminada */
.cl-scan-spin { width: 42px; height: 42px; margin: 0 auto 22px; border: 4px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) { .cl-scan-spin { animation: spin .8s linear infinite; } }
.cl-scan-bar { position: relative; height: 4px; margin: 22px auto 0; max-width: 320px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.cl-scan-bar span { position: absolute; top: 0; left: 0; height: 100%; width: 40%; border-radius: 4px; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .cl-scan-bar span { animation: clscanslide 1.5s ease-in-out infinite; } }
@keyframes clscanslide { 0% { left: -40%; } 100% { left: 100%; } }
/* Barra determinada: ancho = % real, sin animación indeterminada */
.cl-scan-bar.is-determinate span { width: 0; animation: none !important; transition: width .4s ease; }

/* Pantalla "análisis completado" — check de éxito */
.cl-done-check { width: 60px; height: 60px; margin: 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #16a34a, #22c55e); box-shadow: 0 6px 20px rgba(34,197,94,.35); }

/* Onboarding — selector de alcance (Una cuenta / Toda la organización · Pro) */
.onb-scope { display: flex; gap: 10px; }
.onb-scope-opt { flex: 1; min-width: 0; text-align: left; display: flex; flex-direction: column; gap: 3px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.onb-scope-opt .oso-head { display: flex; align-items: center; gap: 8px; }
.onb-scope-opt .oso-t { font-weight: 600; font-size: 13.5px; color: var(--ink-1); }
.onb-scope-opt .oso-sub { font-size: 11.5px; color: var(--ink-3); }
.onb-scope-opt.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
/* Opción Pro destacada y notoria, incluso bloqueada en plan Free */
.onb-scope-org { border-color: color-mix(in srgb, #a855f7 50%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, #a855f7 9%, var(--surface)), var(--surface)); }
.onb-scope-org.is-locked { cursor: pointer; opacity: 1; }
.plan-badge { flex: none; font: 700 10px/1 Inter, system-ui, sans-serif; letter-spacing: .07em; color: #fff; background: linear-gradient(135deg, #8b5cf6, #a855f7); padding: 3px 7px; border-radius: 999px; text-transform: uppercase; box-shadow: 0 1px 3px rgba(139,92,246,.4); }

/* Paso Método — tarjetas horizontales (Guía por consola / CLI) */
.onb-method { display: flex; flex-direction: column; gap: 10px; margin: 2px 0 4px; }
.onb-method-opt { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.onb-method-opt:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.onb-method-opt.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.onb-method-opt .omo-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-1); }
.onb-method-opt.is-active .omo-ico { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.onb-method-opt .omo-ico .ic { width: 19px; height: 19px; }
.onb-method-opt .omo-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.onb-method-opt .omo-t { font-weight: 600; font-size: 14px; color: var(--ink-1); }
.onb-method-opt .omo-sub { font-size: 12px; color: var(--ink-3); }
.onb-method-opt .omo-go { width: 18px; height: 18px; margin-left: auto; color: var(--ink-3); transform: rotate(-90deg); flex: none; transition: color .15s, transform .15s; }
.onb-method-opt:hover .omo-go, .onb-method-opt.is-active .omo-go { color: var(--accent); }

/* Análisis — enlace a reporte HTML */
.rep-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.rep-link:hover { text-decoration: underline; }

/* ============================================================
   Menus / popovers
   ============================================================ */
.menu { position: absolute; z-index: 70; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; display: none; }
.menu.is-open { display: block; animation: pop .14s var(--ease); }
@media (prefers-reduced-motion: reduce) { .menu.is-open { animation: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.menu.right { right: 0; }
.menu-label { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 7px 10px 4px; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; font-size: 13px; color: var(--ink); text-align: left; border-radius: 7px; cursor: pointer; }
.menu-item:hover { background: var(--surface-2); }
.menu-item .ic { width: 15px; height: 15px; color: var(--ink-3); }
.menu-item .mono { font-size: 11.5px; color: var(--ink-3); }
.menu-item .tick { width: 15px; height: 15px; margin-left: auto; color: var(--accent); opacity: 0; }
.menu-item.is-current .tick { opacity: 1; }
.menu-item.is-current { color: var(--accent); }

/* ============================================================
   Onboarding — Connect step
   ============================================================ */
.onb { max-width: 1000px; margin: 0 auto; }
.onb-stepper { display: flex; align-items: center; gap: 0; margin-bottom: 30px; flex-wrap: wrap; }
.onb-step { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-3); }
.onb-step .n { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 11.5px; font-weight: 600; background: var(--surface); }
.onb-step.done { color: var(--ink); }
.onb-step.done .n { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.onb-step.active { color: var(--ink); font-weight: 600; }
.onb-step.active .n { background: var(--accent); border-color: var(--accent); color: #fff; }
.onb-sep { width: 26px; height: 1px; background: var(--line); margin: 0 12px; }
/* Mini-resumen del paso Conectar (nube · alcance elegidos). */
.onb-summary { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 16px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.onb-summary .pmark { width: 24px; height: 24px; border-radius: 7px; font-size: 9px; }
.onb-summary .onb-sum-txt { font-size: 12.5px; font-weight: 600; color: var(--ink-1); }
/* Navegación del wizard por pasos (Atrás / Continuar). */
.onb-nav { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.onb-nav #conn-next { margin-left: auto; }
/* Enganche sutil de upsell a organización (Free/Starter, paso Conectar). */
.onb-upsell { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 12px; border: 1px dashed color-mix(in srgb, #a855f7 45%, var(--line)); border-radius: 10px; background: color-mix(in srgb, #a855f7 6%, var(--surface)); font-size: 12.5px; color: var(--ink-2); }
.onb-upsell .ic { width: 15px; height: 15px; color: #a855f7; flex-shrink: 0; }
.onb-upsell a { color: #7c3aed; font-weight: 600; text-decoration: none; }
.onb-upsell a:hover { text-decoration: underline; }

.onb-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 30px; align-items: start; }
.onb-grid .lead { color: var(--ink-2); font-size: 14.5px; margin: 8px 0 24px; max-width: 56ch; }
.onb-grid h1 { font-size: clamp(22px, 2.6vw, 28px); }

/* provider switch (Connect adapts content by provider) */
.prov-switch { display: inline-flex; gap: 6px; margin-bottom: 22px; }
.prov-switch button {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer;
}
.prov-switch button[aria-pressed="true"] { border-color: var(--accent-line); background: var(--accent-soft); color: var(--ink); }

.kv {
  display: flex; align-items: center; gap: 12px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 11px 11px 15px; margin-bottom: 22px;
}
.kv .kv-k { font-size: 11.5px; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; }
.kv .kv-v { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink); overflow-x: auto; white-space: nowrap; flex: 1; scrollbar-width: none; }
.kv .kv-v::-webkit-scrollbar { display: none; }

.copybtn { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 12.5px; font-weight: 500; height: 32px; padding: 0 11px; border-radius: var(--r-sm); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; flex-shrink: 0; transition: all .14s var(--ease); }
.copybtn:hover { border-color: var(--line-2); background: var(--surface-2); }
.copybtn .ic { width: 14px; height: 14px; }
.copybtn.copied { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

.tablist { display: inline-flex; gap: 3px; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; margin-bottom: 16px; }
.tab { appearance: none; border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 7px 14px; border-radius: 6px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm); }
.tabpanel { display: none; }
.tabpanel.is-active { display: block; }

.code { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px 9px 14px; border-bottom: 1px solid var(--line); }
.code-head .fname { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); }
.code pre { margin: 0; padding: 15px; overflow-x: auto; font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: var(--ink); tab-size: 2; }
.code .dim { color: var(--ink-3); }
.code-help { margin: 9px 2px 0; font-size: 12px; line-height: 1.55; color: var(--ink-3); }
.code-help code { font-family: var(--font-mono); font-size: 11px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: var(--ink); }

.steps-ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps-ol li { display: flex; gap: 13px; align-items: flex-start; }
.steps-ol .n { flex-shrink: 0; width: 25px; height: 25px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 12px; font-weight: 600; display: grid; place-items: center; margin-top: 1px; }
.steps-ol .t { font-size: 13.5px; line-height: 1.55; }
.steps-ol code { font-family: var(--font-mono); font-size: 11.5px; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 500; margin-bottom: 7px; }
.input { width: 100%; height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14px; font-family: inherit; color: var(--ink); background: var(--surface); }
.input:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.arn-block { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }

/* connection state pill */
.conn-state { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; padding: 9px 14px; border-radius: var(--r-sm); }
.conn-state .ic, .conn-state .spin { width: 16px; height: 16px; }
.conn-state .spin { border: 2px solid var(--line-2); border-top-color: var(--ink-2); border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) { .conn-state .spin { animation: spin .8s linear infinite; } }
.conn-state.idle { color: var(--ink-3); background: var(--surface-2); }
.conn-state.connecting { color: var(--ink-2); background: var(--surface-2); }
.conn-state.verifying { color: var(--p-azure); background: var(--p-azure-soft); }
.conn-state.connected { color: var(--good); background: var(--accent-soft); }
.conn-state.error { color: var(--danger); background: var(--danger-soft); }

/* security side panel */
.secure { position: sticky; top: calc(var(--topbar-h) + 20px); padding: 20px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); }
.secure h4 { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.secure ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.secure li { display: flex; gap: 12px; align-items: flex-start; }
.secure .s-ico { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); }
.secure .s-ico .ic { width: 16px; height: 16px; }
.secure li > span:last-child { display: flex; flex-direction: column; }
.secure .s-title { display: block; font-size: 13px; font-weight: 600; }
.secure .s-sub { font-size: 12px; color: var(--ink-3); line-height: 1.45; margin-top: 2px; }

/* ============================================================
   Accounts (cuentas / conexiones)
   ============================================================ */
.acct-list { display: flex; flex-direction: column; gap: 12px; }
.acct-row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); flex-wrap: wrap; }
.acct-row .pmark { width: 38px; height: 38px; border-radius: 10px; font-size: 11px; }
.acct-row .ar-main { min-width: 170px; flex: 1; }
.acct-row .ar-name { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
.acct-row .ar-id { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.acct-row .ar-col { display: flex; flex-direction: column; gap: 3px; min-width: 120px; }
.acct-row .ar-k { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.acct-row .ar-v { font-size: 13px; }
.acct-row .ar-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--good); font-weight: 500; }
.acct-row .ar-status .ic { width: 14px; height: 14px; }
.acct-row .ar-status.partial { color: var(--warn); }
.acct-row .ar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* Desconectar: sobrio en reposo, tinte de peligro elegante al hover (acción destructiva). */
.ar-disconnect { transition: color .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease); }
.ar-disconnect:hover:not(:disabled) { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }
.ar-disconnect.is-busy, .ar-disconnect:disabled { opacity: .6; cursor: progress; }
/* Chip de alcance de la conexión (org vs cuenta única) — grounded desde el campo source. */
.acct-row .ar-scope { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.5; }
.acct-row .ar-scope .ic { width: 12px; height: 12px; }
.acct-row .ar-scope-org { color: var(--brand, #0F766E); background: var(--brand-soft, rgba(15,118,110,.10)); }
.acct-row .ar-scope-single { color: var(--ink-3); background: var(--surface-2); }
/* Fase 3: desplegable de las cuentas de la organización (bajo la etiqueta org). */
.acct-row .ar-scope-wrap { position: relative; display: inline-block; margin-top: 6px; }
.acct-row .ar-scope-wrap .ar-scope { margin-top: 0; border: 0; cursor: pointer; }
.acct-row .ar-scope-wrap .oa-caret { width: 11px; height: 11px; margin-left: 2px; }
.org-acct-pop { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 34px rgba(0,0,0,.16); padding: 8px; display: none; }
.org-acct-pop.is-open { display: block; }
.org-acct-pop .oa-h { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding: 4px 6px 6px; }
.org-acct-pop .oa-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.org-acct-pop .oa-item { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 7px; }
.org-acct-pop .oa-item:hover { background: var(--surface-2); }
.org-acct-pop .oa-id { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-1); }
.org-acct-pop .oa-alias { font-size: 11.5px; color: var(--ink-3); }
.org-acct-pop .oa-st { margin-left: auto; font-size: 10.5px; font-weight: 600; }
.org-acct-pop .oa-ok { color: var(--good, #0F766E); }
.org-acct-pop .oa-err { color: var(--danger, #b3261e); }
/* Mono para el identificador de cuenta dentro del modal de confirmación. */
.cl-mono { font-family: var(--font-mono); font-size: .92em; color: var(--ink-2, var(--ink)); }

/* Preview grounded antes de lanzar un análisis (qué se va a escanear, por nube). */
.cl-prev-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cl-prev-row { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--r-sm, 10px); background: var(--surface-2); }
.cl-prev-row .pmark { width: 26px; height: 26px; border-radius: 7px; font-size: 9.5px; flex-shrink: 0; }
.cl-prev-row .cl-prev-name { font-weight: 600; font-size: 13px; }
.cl-prev-row .cl-prev-depth { margin-left: auto; font-size: 12px; color: var(--ink-3); }
/* CTA product-led en el preview (Pro+ con solo cuentas hoja → invita a conectar la organización). */
.cl-prev-cta { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 9px 11px; border: 1px dashed color-mix(in srgb, #a855f7 45%, var(--line)); border-radius: 9px; background: color-mix(in srgb, #a855f7 6%, var(--surface)); font-size: 12px; color: var(--ink-2); }
.cl-prev-cta .ic { width: 14px; height: 14px; color: #a855f7; flex-shrink: 0; }
/* Botones de lanzar análisis mientras corre uno de organización: aspecto ocupado (siguen
   clickeables para avisar "en curso" — el guard real es orgScanBusy()). */
#new-scan-top.is-busy, #refresh-all.is-busy { opacity: .55; cursor: progress; }

/* Columna "Proveedor Cloud" de Análisis: nube + identificador de cuenta/subscription/proyecto debajo
   (distingue filas de una misma nube en análisis de organización). */
.anl-prov { display: flex; flex-direction: column; gap: 3px; }
.anl-acct { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Toolbar de filtros del historial de Análisis: segmented por nube (con contador) + búsqueda
   por cuenta. Reutiliza .find-toolbar/.find-search/.seg; solo ajustes locales. */
.anl-toolbar { margin-bottom: 14px; }
/* .find-toolbar/.seg fijan display:flex → ganan al UA [hidden]; hay que re-anularlo explícito. */
.anl-toolbar[hidden], .anl-provseg[hidden] { display: none; }
.anl-toolbar .find-search input { width: 300px; }   /* que el placeholder de 3 términos quepa completo */
.anl-provseg .seg-btn { display: inline-flex; align-items: center; gap: 7px; }
.anl-provseg .psq { width: 10px; height: 10px; border-radius: 3px; }
.anl-provseg .seg-n { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.anl-provseg .seg-btn.is-on .seg-n { color: var(--ink-2); }
.anl-hl { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 1px; }
.anl-clear-lnk { border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.anl-clear-lnk:hover { color: var(--accent-700); }

/* Columna "Ejecución" de Análisis: fecha/hora absoluta + relativo y actor (auditoría). */
.anl-exec { display: flex; flex-direction: column; gap: 2px; }
.anl-exec .ae-when { font-size: 13px; color: var(--ink); white-space: nowrap; }
.anl-exec .ae-sub { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }

/* Fix-as-Code real: botones inline del flujo (conectar / preview / copiar / reintentar). */
.pr-fmt-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 8px; padding: 9px 11px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink-2); font-size: 12px; line-height: 1.5; }
.pr-fmt-note .ic { width: 15px; height: 15px; color: var(--warn); flex-shrink: 0; margin-top: 1px; }
.pr-retry { border: 1px solid var(--line); background: var(--surface); color: var(--accent); font-size: 11.5px; font-weight: 600; border-radius: 7px; padding: 3px 9px; cursor: pointer; margin-left: 4px; }
.pr-retry:hover { border-color: var(--accent); background: var(--accent-soft); }
#pr-flow .pr-state { display: none; }
#pr-flow .pr-state.is-shown { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Características por plan en el gestor (fuente: PLANES_DETALLE_v2.md v4.2). */
.plan-feats { list-style: none; margin: 8px 0 0; padding: 0; font-size: 12px; color: #4b5563; }
.plan-feats li { display: flex; gap: 6px; margin: 3px 0; line-height: 1.4; }
.plan-feats li::before { content: "✓"; color: var(--accent); font-weight: 700; flex: none; }
.plan-feats-more { display: contents; }
.plan-feats-more[hidden] { display: none; }
.plan-feats-toggle { border: 0; background: none; color: var(--accent); font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px 0 0; }
.plan-feats-toggle:hover { text-decoration: underline; }

/* Paginador compartido (Análisis · Recomendaciones): 20 por página, lenguaje visual de .seg/.mtc-arrow. */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.pg-info { font-size: 12.5px; color: var(--ink-3); }
.pg-ctl { display: inline-flex; align-items: center; gap: 6px; }
.pg-arrow, .pg-num { min-width: 30px; height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-2); font: 500 12.5px var(--font-sans, inherit); cursor: pointer; display: grid; place-items: center; transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); }
.pg-arrow { font-size: 15px; line-height: 1; }
.pg-arrow:hover:not(:disabled), .pg-num:hover:not(.is-on) { background: var(--surface-2); border-color: var(--ink-3); }
.pg-arrow:disabled { opacity: .38; cursor: not-allowed; }
.pg-num.is-on { background: var(--accent); border-color: var(--accent); color: #fff; cursor: default; font-weight: 600; }
.pg-ellipsis { color: var(--ink-3); padding: 0 3px; font-size: 12.5px; user-select: none; }

/* Documentación: guías y referencias (el sidebar reemplaza 'Conectar nube' por esta entrada). */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.doc-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; text-decoration: none; color: var(--ink); border: 1px solid var(--line); cursor: pointer; font: inherit; transition: border-color .16s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease); }
.doc-card:hover:not(.is-soon) { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.doc-card.is-soon { cursor: default; opacity: .85; }
.doc-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.doc-ico .ic { width: 18px; height: 18px; }
.doc-t { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.doc-s { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.doc-cta { margin-top: auto; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.doc-badge { font-size: 10px; font-weight: 700; color: var(--warn); background: var(--warn-soft); padding: 2px 8px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }

/* Historial de conexiones (auditoría): quién conectó/desconectó cada nube y cuándo. */
.conn-history { margin-top: 16px; }
.conn-history .ch-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ch-list { list-style: none; margin: 0; padding: 0; }
.ch-item { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--line); font-size: 13px; flex-wrap: wrap; }
.ch-item:first-child { border-top: 0; }
.ch-ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; flex: none; }
.ch-ico .ic { width: 13px; height: 13px; }
.ch-ico.ch-on  { background: rgba(15,118,110,.10); color: var(--good); }
.ch-ico.ch-off { background: var(--danger-soft); color: var(--danger); }
.ch-main { display: inline-flex; align-items: center; gap: 8px; flex: 1; min-width: 220px; flex-wrap: wrap; }
.ch-acct { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
.ch-act { font-weight: 500; }
.ch-meta { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.ch-empty { padding: 18px 4px; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; text-align: center; }

/* Estado vacío de Conexiones: sin nubes conectadas pero con histórico (sesión activa). */
.acct-empty { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border: 1px dashed var(--line); border-radius: var(--r-lg); background: var(--surface); }
.acct-empty .ae-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); color: var(--ink-3); flex: none; }
.acct-empty .ae-ico .ic { width: 20px; height: 20px; }
.acct-empty .ae-txt { flex: 1; min-width: 0; }
.acct-empty .ae-t { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
.acct-empty .ae-s { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.45; }

/* NFR-3 — Popover de cobertura del último análisis (estado por fuente). */
.ar-status-col { position: relative; }
.ar-status-btn { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }
.ar-status-btn .cov-caret { width: 12px; height: 12px; color: var(--ink-3); transition: transform .16s var(--ease); }
.ar-status-btn[aria-expanded="true"] .cov-caret { transform: rotate(180deg); }
.cov-pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 70; min-width: 268px; max-width: 320px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 14px; display: none; }
.cov-pop.is-open { display: block; animation: pop .14s var(--ease); }
@media (prefers-reduced-motion: reduce) { .cov-pop.is-open { animation: none; } }
.cov-pop-h { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 9px; }
.cov-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cov-item { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 8px 10px; font-size: 13px; }
.cov-item .cov-ic { width: 15px; height: 15px; }
.cov-src { color: var(--ink); }
.cov-st { font-size: 12px; font-weight: 500; white-space: nowrap; }
.cov-detail { grid-column: 2 / -1; font-size: 11.5px; color: var(--ink-3); line-height: 1.35; margin-top: -2px; }
.cov-action { grid-column: 2 / -1; font-size: 11.5px; line-height: 1.35; color: var(--accent); display: flex; gap: 5px; }
.cov-action::before { content: "→"; color: var(--accent); }
.cov-ok   .cov-ic { color: var(--good); }   .cov-ok   .cov-st { color: var(--good); }
.cov-fail .cov-ic { color: var(--danger); } .cov-fail .cov-st { color: var(--danger); }
.cov-wait .cov-ic { color: var(--warn); }   .cov-wait .cov-st { color: var(--warn); }
.cov-pop-f { margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }

/* ============================================================
   Settings
   ============================================================ */
.set-grid { display: flex; flex-direction: column; gap: 0; max-width: 760px; }
.set-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line-2, var(--line)); }
.set-row:last-child { border-bottom: 0; padding-bottom: 4px; }
.set-row:first-child { padding-top: 8px; }
.set-info { max-width: 52ch; }
.set-name { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.set-desc { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.5; }
.segmented { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px; }
.segmented button { appearance: none; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 500; color: var(--ink-2); padding: 7px 13px; border-radius: 6px; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm); }
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; background: var(--line-2); border-radius: 999px; transition: background .2s var(--ease); }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track + .knob { transform: translateX(18px); }

/* resource band usage */
.band { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 760px; }
.band-bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.band-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .6s var(--ease); }
.band-fill.over { background: var(--warn); }
.band-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--ink-2); }
.band-meta .big { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); }
.plan-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); flex-wrap: wrap; }
.plan-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.plan-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.upgrade-note { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; border-radius: var(--r-lg); background: var(--accent-soft); border: 1px solid var(--accent-line); margin-top: 14px; }
.upgrade-note .ic { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.upgrade-note .un-t { font-size: 13px; font-weight: 600; }
.upgrade-note .un-s { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.upgrade-note .un-cta { margin-top: 10px; border: 1px solid var(--accent-line); background: var(--surface); color: var(--accent); font-size: 12px; font-weight: 600; border-radius: 8px; padding: 6px 13px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.upgrade-note .un-cta:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
/* Feature gateada por plan: visible pero deshabilitada + CTA de upgrade (product-led). */
.plan-locked input:disabled, .plan-locked select:disabled, .plan-locked textarea:disabled,
.plan-locked button:disabled:not(.pl-cta) { opacity: .5; cursor: not-allowed; }
/* El CTA "Mejorar plan" SIEMPRE a la derecha de su fila: margin-left:auto lo empuja en filas
   horizontales; align-self:flex-end en filas .set-row en columna (email/org/equipo). Consistente
   con el upsell de Uso (#plan-upgrade-btn margin-left:auto) y con Shield (.shield-pack .pl-cta). */
.pl-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; margin-left: auto; align-self: flex-end; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 600; border-radius: 9px; padding: 8px 14px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.pl-cta:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.pl-cta .ic { width: 15px; height: 15px; }
/* Typeahead de regiones de AWS (chips + menú filtrable) */
.ar-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.ar-chip { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono, monospace); font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 999px; padding: 3px 6px 3px 10px; }
.ar-chip .ar-x { border: 0; background: transparent; color: var(--accent); font-size: 15px; line-height: 1; cursor: pointer; padding: 0 2px; border-radius: 50%; }
.ar-chip .ar-x:hover { background: var(--accent); color: #fff; }
.ar-empty { font-size: 12px; color: #b3261e; }
.ar-wrap { position: relative; }
.ar-menu { position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; right: 0; max-height: 240px; overflow: auto; background: var(--surface, #fff); border: 1px solid var(--line, #e5e7eb); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 4px; }
.ar-item { display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.ar-item:hover { background: var(--surface-2, #f3f4f6); }
.ar-item .ar-code { font-family: var(--font-mono, monospace); font-size: 12.5px; font-weight: 600; color: var(--ink-1, #111827); min-width: 118px; }
.ar-item .ar-name { font-size: 12.5px; color: var(--ink-2, #6b7280); }
.ar-item.ar-custom .ar-name { color: var(--accent); font-weight: 600; }
/* Fila de análisis fallido: badge + motivo + botón Reintentar */
.badge-fail { background: #fef2f2; color: #b3261e; }
.anl-fail-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.anl-fail-reason { font-size: 12px; color: var(--ink-3, #9aa1ab); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.anl-retry { flex-shrink: 0; border: 1px solid var(--accent-line, #d5d9e0); background: var(--surface, #fff); color: var(--accent); font-size: 12px; font-weight: 600; border-radius: 8px; padding: 4px 11px; cursor: pointer; transition: background .15s, color .15s; }
.anl-retry:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.anl-retry:disabled { opacity: .6; cursor: default; }

/* team */
.team { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.team-m { display: flex; align-items: center; gap: 11px; padding: 9px 0; }
.team-m .tm-av { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 12px; }
.team-m .tm-name { font-size: 13px; font-weight: 500; }
.team-m .tm-email { font-size: 12px; color: var(--ink-3); }
.team-m .tm-role { margin-left: auto; font-size: 11.5px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

/* ============================================================
   Demo panel (andamiaje de demostración — fuera del producto)
   ============================================================ */
.demo {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift); padding: 14px; width: 268px;
  transform-origin: bottom right;
}
.demo.collapsed { width: auto; padding: 0; }
.demo.collapsed .demo-body { display: none; }
.demo-tab { display: none; }
.demo.collapsed .demo-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.demo.collapsed .demo-tab .ic { width: 15px; height: 15px; color: var(--accent); }
.demo-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.demo-head .dh-t { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; align-items: center; gap: 7px; }
.demo-head .dh-t .ic { width: 14px; height: 14px; color: var(--accent); }
.demo-x { border: 0; background: none; cursor: pointer; color: var(--ink-3); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; }
.demo-x:hover { background: var(--surface-2); color: var(--ink); }
.demo-block { margin-bottom: 12px; }
.demo-block:last-child { margin-bottom: 0; }
.demo-lab { font-size: 11.5px; color: var(--ink-2); font-weight: 500; margin-bottom: 7px; }
.demo-seg { display: flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px; }
.demo-seg button { flex: 1; appearance: none; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 500; color: var(--ink-2); padding: 6px 4px; border-radius: 6px; cursor: pointer; }
.demo-seg button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm); }
.demo-hint { font-size: 11px; color: var(--ink-3); line-height: 1.45; margin-top: 4px; }

/* lang toggle in topbar */
.lang { display: inline-flex; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button { border: 0; background: none; font: 600 11.5px var(--font-body); color: var(--ink-3); padding: 4px 9px; border-radius: 999px; cursor: pointer; }
.lang button.on { background: var(--ink); color: var(--surface); }
.icon-btn { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); }
.icon-btn .ic { width: 17px; height: 17px; }

/* ============================================================
   Donut (distribución por severidad)
   ============================================================ */
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut-wrap svg { flex-shrink: 0; }
.donut-center .dc-num { font-family: var(--font-display); font-weight: 700; font-size: 26px; fill: var(--ink); }
.donut-center .dc-sub { fill: var(--ink-3); font-family: var(--font-body); font-size: 10.5px; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; min-width: 120px; }
.legend li { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.legend .lg-name { color: var(--ink-2); }
.legend .lg-val { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.sev-side { display: flex; flex-direction: column; gap: 12px; min-width: 160px; flex: 1; }
.sev-insight { margin: 0; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); background: var(--surface-2); border-left: 3px solid var(--line); border-radius: 8px; }
.btn.is-disabled { opacity: .5; cursor: not-allowed; }
.rec-locked { display: flex; align-items: center; gap: 9px; padding: 11px 14px; margin: 0 0 10px; font-size: 13px; color: var(--ink-2); background: var(--surface-2); border: 1px dashed var(--line); border-radius: 10px; }
.rec-locked .ic { width: 15px; height: 15px; color: var(--ink-3); flex-shrink: 0; }
.empty-inline { color: var(--ink-3); font-size: 13px; padding: 14px 0; }
/* SHIELD-E7 T1: enlace de upsell para hallazgos bloqueados por pack (KPI de hallazgos + donut).
   Sin white-space:nowrap: el nowrap hacía que el enlace largo desbordara la tarjeta y se montara
   sobre el desglose; con wrapping normal el texto baja de línea dentro de su contenedor. */
.kpi-lock-link { color: var(--brand, var(--ink-2)); text-decoration: none; border-bottom: 1px dashed currentColor; cursor: pointer; overflow-wrap: anywhere; }
.kpi-lock-link:hover { opacity: .8; }
.sev-locked { display: flex; align-items: center; gap: 7px; margin: 8px 0 0; font-size: 12px; color: var(--ink-3); }
.sev-locked .ic { width: 13px; height: 13px; flex-shrink: 0; }
/* SHIELD-E7 T2: aviso de postura parcial (org-posture truncado) en el reporte Shield 360. */
.s360-partial { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 13px; color: var(--ink-2); background: var(--surface-2); border: 1px dashed var(--warn, var(--line)); border-radius: 10px; }
.s360-partial .ic { width: 16px; height: 16px; color: var(--warn, var(--ink-3)); flex-shrink: 0; }

/* ============================================================
   Quick wins · matriz impacto / esfuerzo
   ============================================================ */
.mxd-card { margin-top: 0; }
.mxd-grid { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: 1fr 26px; margin-top: 6px; }
.mxd-axis-y { display: flex; flex-direction: column; justify-content: space-between; align-items: center; font-size: 10.5px; color: var(--ink-3); padding: 6px 0; }
.mxd-axis-y span:nth-child(2) { text-transform: uppercase; letter-spacing: .12em; writing-mode: vertical-rl; transform: rotate(180deg); color: var(--ink-2); font-weight: 600; }
.mxd-axis-x { grid-column: 2; display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; color: var(--ink-3); padding: 8px 6px 0; }
.mxd-axis-x span:nth-child(2) { text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); font-weight: 600; }
.mxd-plot { position: relative; height: 280px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.mxd-line { position: absolute; background: var(--line); }
.mxd-line.v { top: 0; bottom: 0; width: 1px; }
.mxd-line.h { left: 0; right: 0; height: 1px; }
.mxd-quick { position: absolute; left: 0; top: 0; width: 33.33%; height: 50%; background: linear-gradient(135deg, var(--accent-soft), transparent); border-right: 1.5px dashed var(--accent-line); border-bottom: 1.5px dashed var(--accent-line); border-radius: 12px 0 0 0; }
.mxdq-label { position: absolute; top: 10px; left: 12px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.mxd-pt { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; display: grid; place-items: center; background: none; border: 0; padding: 0; cursor: pointer; }
.mxd-dot { width: 13px; height: 13px; border-radius: 50%; box-shadow: 0 2px 6px rgba(20,18,12,.18); transition: transform .18s ease; }
.mxd-pt.dim-costos .mxd-dot { background: var(--good); }
.mxd-pt.dim-rendimiento .mxd-dot { background: var(--ink-3); }
.mxd-pt.dim-seguridad .mxd-dot { background: var(--warn); }
.mxd-pt.is-qw .mxd-dot { width: 16px; height: 16px; box-shadow: 0 0 0 5px var(--accent-soft), 0 2px 8px rgba(20,18,12,.22); }
.mxd-pt:hover .mxd-dot, .mxd-pt:focus-visible .mxd-dot { transform: scale(1.3); }
.mxd-pt:focus-visible { outline: none; }
.mxd-tip { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--surface); border-radius: 9px; padding: 8px 11px; width: max-content; max-width: 220px; text-align: left; font-size: 12px; line-height: 1.4; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .16s ease; z-index: 5; }
.mxd-tip .t-save { color: var(--good); font-weight: 700; }
.mxd-tip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--ink); }
.mxd-pt:hover .mxd-tip, .mxd-pt:focus-visible .mxd-tip { opacity: 1; visibility: visible; }
.mxd-pt.tip-below .mxd-tip { bottom: auto; top: calc(100% + 10px); }
.mxd-pt.tip-below .mxd-tip::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--ink); }

/* ============================================================
   Madurez FinOps · ring + pilares
   ============================================================ */
.mat-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr); gap: 16px; align-items: stretch; }
.ring-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 30px 20px; }
.ring-wrap { position: relative; display: grid; place-items: center; }
.ring-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-num .rn-big { font-family: var(--font-display); font-weight: 700; font-size: 40px; letter-spacing: -.025em; line-height: 1; color: var(--warn); }
.ring-num .rn-of { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.ring-label { font-size: 13px; color: var(--ink-2); }
.mat-trend-card { margin-top: 16px; }
.mtc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mtc-title { min-width: 0; }
.mtc-intro { font-size: 12.5px; color: var(--ink-3); margin: 5px 0 0; line-height: 1.5; max-width: 620px; }
.mtc-controls { display: flex; align-items: center; gap: 14px; flex: none; }
.mtc-delta { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
/* Toggle segmentado Semanal/Mensual */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.seg-btn { border: 0; background: none; padding: 5px 13px; font: 500 12.5px var(--font-sans, inherit); color: var(--ink-3); border-radius: 7px; cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease); }
.seg-btn.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
/* Navegador de semana */
.mtc-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px 0 6px; }
.mtc-arrow { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-2); font-size: 16px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .15s var(--ease), border-color .15s var(--ease); }
.mtc-arrow:hover:not(:disabled) { background: var(--surface-2); border-color: var(--ink-3); }
.mtc-arrow:disabled { opacity: .38; cursor: not-allowed; }
.mtc-range { font-size: 13px; font-weight: 500; color: var(--ink); min-width: 168px; text-align: center; }
.mat-trend-svg { width: 100%; height: 236px; display: block; margin-top: 4px; }
.mat-trend-empty { padding: 34px 8px; font-size: 13px; color: var(--ink-3); text-align: center; line-height: 1.55; }
.mat-trend-leg { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; justify-content: center; }
.mat-trend-leg .mtl { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.mat-trend-leg .mtl-dot { width: 10px; height: 10px; border-radius: 3px; }
.pillars { display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.pillar .p-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; gap: 12px; }
.pillar .p-name { font-size: 13px; font-weight: 500; }
.pillar .p-score { font-family: var(--font-display); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pillar .p-score .of { color: var(--ink-3); font-weight: 400; }
.pillar .p-bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.pillar .p-fill { height: 100%; border-radius: 999px; background: var(--warn); transition: width .6s var(--ease); }
.pillar.full .p-fill { background: var(--good); }
.pillar .p-hint { font-size: 12px; color: var(--ink-3); margin-top: 7px; }

/* ============================================================
   Table (Análisis)
   ============================================================ */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.dtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dtable thead th { text-align: left; font-weight: 600; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.dtable tbody td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable td.right, .dtable th.right { text-align: right; }
.dtable .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dtable .save-val { color: var(--good); font-weight: 600; }
.dtable .agg { color: var(--ink-2); font-weight: 500; display: inline-flex; align-items: center; gap: 7px; }
.dtable .agg .psq { width: 15px; height: 15px; border-radius: 4px; background: linear-gradient(135deg, var(--p-aws), var(--p-azure) 55%, var(--p-gcp)); }

/* ============================================================
   Grids / utility
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 16px; }
.grid-2.single { grid-template-columns: 1fr; }
.mt-0 { margin-top: 0; }
.hide { display: none !important; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1040px) { .onb-grid { grid-template-columns: 1fr; } .secure { position: static; } }
@media (max-width: 960px) {
  .kpis { grid-template-columns: repeat(2,1fr); }
  .dim-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .mat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; width: 100%; border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; overflow-x: auto; padding: 8px; }
  .sidebar .nav-label, .sidebar .grow, .sidebar-foot { display: none; }
  .nav-item { white-space: nowrap; }
  .nav-item.is-active::before { display: none; }
  .scope .sc-label { display: none; }
}
@media (max-width: 680px) {
  .kpis { grid-template-columns: 1fr; }
  .find-row { grid-template-columns: 24px minmax(0,1fr) 92px; }
  .find-row .fr-fresh, .find-row .fr-prov { display: none; }
  .topbar .scope { order: 3; }
  .demo { left: 16px; right: 16px; width: auto; }
}

/* ============================================================
   Shield 360 · landing interna de upsell (sin colores por-nube)
   ============================================================ */
.s360-hero { display: grid; grid-template-columns: 1.08fr .92fr; gap: 0; overflow: hidden; border-radius: var(--r-xl); box-shadow: var(--shadow-lift); }
.s360-hero-copy { padding: 46px 44px 44px; display: flex; flex-direction: column; align-items: flex-start; }
.s360-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--accent); }
.s360-eyebrow .ic { width: 14px; height: 14px; }
.s360-h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.7vw, 33px); line-height: 1.22; letter-spacing: -.03em; margin: 20px 0 0; color: var(--ink); max-width: 16ch; text-wrap: balance; }
.s360-lede { color: var(--ink-2); font-size: 15px; line-height: 1.62; margin: 16px 0 0; max-width: 44ch; }
.s360-cta-row { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.s360-reader-note { font-size: 13.5px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 15px; }
.s360-price-note { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }
.s360-hero-preview { position: relative; display: flex; align-items: center; justify-content: center; padding: 34px 30px;
  background:
    radial-gradient(120% 90% at 100% 0%, var(--accent-soft), transparent 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, var(--surface)), var(--surface)); }
html[data-theme="light"] .s360-hero-preview { border-left: 1px solid color-mix(in srgb, var(--accent) 10%, var(--line)); }
html[data-theme="dark"] .s360-hero-preview { border-left: 1px solid var(--line); }

/* Visualización de CONSOLIDACIÓN (honesta: nubes reales → una sola postura) */
.s360-preview { position: relative; width: 100%; max-width: 380px; }
.s360-viz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 20px 18px; box-shadow: var(--shadow); }
.s360-viz-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.s360-viz-eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.s360-watch { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 9px 3px 8px; }
.s360-pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.s360-pulse::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: .5; }
@media (prefers-reduced-motion: no-preference) { .s360-pulse::after { animation: s360pulse 1.9s ease-out infinite; } }
@keyframes s360pulse { 0% { transform: scale(.6); opacity: .6; } 70% { transform: scale(1.9); opacity: 0; } 100% { opacity: 0; } }
.s360-clouds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.s360-cloud { display: flex; flex-direction: column; align-items: center; gap: 5px; border-radius: 11px; padding: 11px 6px 9px; text-align: center; }
.s360-cloud.is-on { background: var(--surface-2); border: 1px solid var(--line); }
.s360-cloud.is-off { background: transparent; border: 1px dashed var(--line-2); }
.s360-cloud-top { display: inline-flex; align-items: center; gap: 6px; }
.s360-cloud-mark { font-family: var(--font-display); font-size: 12.5px; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.s360-cloud.is-off .s360-cloud-mark { color: var(--ink-3); }
.s360-cloud-n { font-size: 10px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 1px 6px; font-variant-numeric: tabular-nums; }
.s360-cloud-st { font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.s360-cloud.is-on .s360-cloud-st { color: var(--accent); }
.s360-cloud.is-off .s360-cloud-st { color: var(--ink-3); }
.s360-flow { display: flex; flex-direction: column; align-items: center; gap: 0; height: 34px; color: var(--accent); }
.s360-flow-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-line); }
.s360-flow-line { width: 1.5px; flex: 1; background: linear-gradient(var(--accent-line), var(--accent)); }
.s360-flow-chev { width: 16px; height: 16px; margin-top: -3px; }
.s360-posture { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, var(--accent-soft), transparent); border: 1px solid var(--accent-line); border-radius: var(--r); padding: 13px 15px; }
.s360-posture-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px var(--accent-soft); }
html[data-theme="dark"] .s360-posture-ico { color: #0b1a18; }
.s360-posture-ico .ic { width: 20px; height: 20px; }
.s360-posture-ti { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.s360-posture-de { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.s360-viz-caps { list-style: none; margin: 15px 0 0; padding: 0; display: grid; gap: 8px; }
.s360-viz-caps li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.s360-viz-caps .ic { width: 14px; height: 14px; color: var(--accent); flex: none; }

/* Beneficios (3) */
.s360-bullets { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 20px; }
.s360-bullet { display: flex; gap: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; transition: border-color .15s, box-shadow .15s; }
.s360-bullet:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.s360-b-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.s360-b-ico .ic { width: 18px; height: 18px; }
.s360-b-ti { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.32; }
.s360-b-de { font-size: 12.5px; color: var(--ink-2); line-height: 1.52; margin-top: 6px; }

/* Qué incluye */
.s360-includes { margin-top: 16px; }
.s360-inc-title { font-size: 15px; margin: 0 0 14px; }
.s360-inc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 11px 24px; }
.s360-inc-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--ink); }
.s360-inc-ico { flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-top: 1px; }
.s360-inc-ico .ic { width: 12px; height: 12px; }

/* ── Shield 360 · reporte consolidado (con el pack) ── */
.s360-watch-badge { gap: 7px; padding: 5px 11px 5px 9px; }
.s360-watch-badge .s360-pulse { background: var(--accent); }
/* T3 (SHIELD-E7): tarjeta de vigilancia continua real (drift_rescan) — prueba del valor 360. */
.s360-watchcard { margin-bottom: 18px; border-left: 3px solid var(--accent); }
.s360-watch-live { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.s360-watch-idle { display: block; }
.s360-watch-idle-msg { margin: 8px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); max-width: 72ch; }
.s360-watch-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.s360-watch-ev { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-2); }
.s360-watch-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.s360-watch-acct { font-weight: 600; color: var(--ink); }
.s360-watch-meta { color: var(--ink-3); font-size: 12.5px; }
.s360-row-drift { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 11px; color: var(--accent); font-weight: 500; }
.s360-row-drift .s360-watch-dot { width: 5px; height: 5px; }
.s360-rep-loading { display: flex; flex-direction: column; align-items: center; padding: 40px; }
.s360-kpis { margin-bottom: 18px; }
.s360-kpis .kpi .k-value { font-size: 26px; }
.s360-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink); flex-wrap: wrap; }
.s360-sec-tot { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.s360-sec-sub { font-size: 12px; font-weight: 400; color: var(--ink-3); }
.s360-sevcard { margin-bottom: 18px; }
.s360-sevbar { display: flex; gap: 3px; height: 12px; margin: 15px 0 14px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.s360-sevseg { min-width: 4px; border-radius: 3px; }
.s360-sevlegend { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.s360-sevleg { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.s360-sevleg .sev-bead { width: 9px; height: 9px; border-radius: 3px; }
.s360-sevleg b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.s360-tablecard { padding: 22px 22px 8px; }
.s360-tbl-h { margin-bottom: 6px; }
.s360-table { font-size: 13px; }
.s360-table td { padding: 12px 10px; }
.s360-row { cursor: pointer; transition: background .12s; }
.s360-row:hover, .s360-row:focus-visible { background: var(--surface-2); outline: none; }
.s360-acct { display: flex; flex-direction: column; gap: 1px; }
.s360-acct-n { font-weight: 600; color: var(--ink); }
.s360-acct-id { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.s360-prov { font-size: 12px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }
.s360-chev { width: 16px; height: 16px; color: var(--ink-3); transform: rotate(-90deg); }
.s360-row:hover .s360-chev { color: var(--accent); }
.s360-empty .e-ico-alert { color: var(--warn); background: var(--warn-soft); }

@media (max-width: 960px) {
  .s360-hero { grid-template-columns: 1fr; }
  .s360-hero-preview { border-left: 0 !important; border-top: 1px solid var(--line); }
  .s360-preview { max-width: 420px; }
  .s360-bullets { grid-template-columns: 1fr; }
  .s360-inc-list { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .s360-hero-copy { padding: 30px 22px; }
  .s360-cta-row .btn { width: 100%; }
}
