/* ============================================================
   Cloura · DASHBOARD (extensión, vistas nuevas)
   Reutiliza los tokens de styles.css. No edita reglas existentes.
   Todo va scopeado bajo #dashboard / .dash-* para no pisar nada.
   ============================================================ */

/* ---------- Mostrar / ocultar app vs dashboard ---------- */
#dashboard { display: none; }
body.dash-mode .app { display: none; }
body.dash-mode #dashboard {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* tokens locales (severidad mono-cálida + pista de gráficas) — solo añade */
#dashboard {
  --sev-crit: #2A2A2A;
  --sev-high: #6E6C66;
  --sev-med:  #A7A49D;
  --sev-low:  #D6D2CA;
  --track: #ECE9E4;
  --green-soft: rgba(15, 118, 110, 0.10);
  --amber-soft: rgba(201, 138, 22, 0.12);
}

/* ============================================================
   Topbar
   ============================================================ */
.dash-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
  padding: 0 clamp(16px, 3vw, 28px);
  background: rgba(254, 254, 253, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.dash-topbar .logo-img { display: block; width: auto; }
.dash-topbar .tb-spacer { flex: 1; }
.dash-topbar .tb-right { display: flex; align-items: center; gap: 10px; }

/* account selector */
.acct-select { position: relative; }
.acct-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.acct-btn:hover { border-color: #d8d4cc; background: var(--soft); }
.acct-btn .mono { font-family: var(--font-mono); font-size: 12.5px; }
.acct-btn .chev { width: 14px; height: 14px; color: var(--gray); transition: transform 180ms var(--ease); }
.acct-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

.menu {
  position: absolute;
  z-index: 60;
  min-width: 240px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 6px;
  display: none;
}
.menu.is-open { display: block; animation: menuIn 160ms var(--ease); }
@media (prefers-reduced-motion: reduce) { .menu.is-open { animation: none; } }
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.menu.right { right: 0; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: none;
  background: none;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  text-align: left;
  border-radius: 7px;
  cursor: pointer;
}
.menu-item:hover { background: var(--soft); }
.menu-item .mono { font-family: var(--font-mono); font-size: 12px; color: var(--gray); }
.menu-item .tick { width: 15px; height: 15px; margin-left: auto; color: var(--green); opacity: 0; }
.menu-item.is-current .tick { opacity: 1; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); padding: 8px 11px 4px; }

/* avatar */
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.avatar:hover { border-color: #d8d4cc; }

.btn-sm { --bh: 38px; height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn .ico-lead { width: 16px; height: 16px; }

/* mobile menu toggle */
.tb-menu-toggle {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  place-items: center;
}
.tb-menu-toggle svg { width: 18px; height: 18px; }

/* ============================================================
   Body layout: sidebar + main
   ============================================================ */
.dash-body {
  flex: 1;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}
.dash-sidebar {
  border-right: 1px solid var(--line);
  padding: 22px 14px;
  position: sticky;
  top: 64px;
  align-self: start;
  height: calc(100dvh - 64px);
  overflow-y: auto;
}
.nav-group-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 0 12px 10px;
}
.nav { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  border-radius: var(--r-sm);
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.nav-item .ico { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { background: var(--soft); color: var(--ink); }
.nav-item.is-active { color: var(--green); background: var(--green-soft); }
.nav-item.is-active::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--green);
}
.nav-count {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gray);
  background: var(--soft-2);
  border-radius: 999px;
  padding: 1px 8px;
}
.nav-item.is-active .nav-count { color: var(--green); background: var(--green-soft); }

.dash-main { min-width: 0; padding: clamp(20px, 3vw, 34px) clamp(16px, 3vw, 40px) 80px; }

/* ============================================================
   Dash views (sub-router)
   ============================================================ */
.dash-view { display: none; }
.dash-view.is-active { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .dash-view.is-active { animation: dashIn 300ms var(--ease); }
}
@keyframes dashIn { from { transform: translateY(8px); } to { transform: none; } }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.page-head h1 { font-size: clamp(22px, 2.6vw, 28px); }
.page-head .page-sub { color: var(--gray); font-size: 14px; margin-top: 6px; }
.page-head .head-actions { display: flex; gap: 10px; align-items: center; }

.dash-section-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; margin: 30px 0 14px; }

/* ============================================================
   KPI cards
   ============================================================ */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.kpi {
  padding: 18px 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
}
.kpi .k-label { font-size: 12.5px; color: var(--gray); font-weight: 500; }
.kpi .k-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 27px;
  letter-spacing: -0.02em;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.kpi .k-value .unit { font-size: 14px; color: var(--gray); font-weight: 500; }
.kpi .k-sub { font-size: 12px; color: var(--gray); margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; }
.kpi.k-green .k-value { color: var(--green); }
.kpi.k-amber .k-value { color: var(--amber); }
.k-trend-up { color: var(--green); font-weight: 600; }
.k-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); display: inline-block; }

/* ============================================================
   Generic dash card
   ============================================================ */
.dcard {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  padding: 22px;
}
.dcard-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.dcard-head h3 { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.dcard-head .muted { font-size: 12.5px; color: var(--gray); }

.grid-2-1 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }

/* legend */
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.legend .sw { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.legend .lg-name { color: var(--ink); }
.legend .lg-val { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }

/* charts */
.chart { width: 100%; height: auto; display: block; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis-label { fill: var(--gray); font-family: var(--font-body); font-size: 11px; }
.donut-wrap { display: flex; align-items: center; gap: 20px; }
.donut-center .dc-num { font-family: var(--font-display); font-weight: 700; font-size: 26px; fill: var(--ink); }
.donut-center .dc-sub { fill: var(--gray); font-family: var(--font-body); font-size: 10.5px; }

/* por dimensión tiles */
.dim-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dim-tile {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  padding: 18px;
  cursor: pointer;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.dim-tile:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: 0 1px 2px rgba(15,118,110,0.08), 0 14px 30px rgba(15,118,110,0.10); }
.dim-tile .dt-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); margin-bottom: 14px; }
.dim-tile .dt-ico .ico { width: 16px; height: 16px; }
.dim-tile .dt-name { font-size: 13px; color: var(--gray); font-weight: 500; }
.dim-tile .dt-val { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; margin: 6px 0 2px; }
.dim-tile .dt-meta { font-size: 12px; color: var(--gray); }

/* quick wins */
.qw-list { display: flex; flex-direction: column; gap: 10px; }
.qw-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
}
.qw-item .qw-rank { width: 26px; height: 26px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 12px; display: grid; place-items: center; flex-shrink: 0; }
.qw-item .qw-body { min-width: 0; flex: 1; }
.qw-item .qw-title { font-size: 14px; font-weight: 500; }
.qw-item .qw-tags { font-size: 12px; color: var(--gray); margin-top: 3px; }
.qw-item .qw-save { font-family: var(--font-display); font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ============================================================
   Filters
   ============================================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.select-wrap { position: relative; }
.fselect {
  appearance: none;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  height: 38px;
  padding: 0 32px 0 13px;
  cursor: pointer;
}
.fselect:hover { border-color: #d8d4cc; }
.select-wrap .chev { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--gray); pointer-events: none; }
.filters .filter-clear { margin-left: auto; }

/* ============================================================
   Table
   ============================================================ */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg); }
.dtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dtable thead th {
  text-align: left;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  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: none; }
.dtable tbody tr { cursor: pointer; transition: background 140ms var(--ease); }
.dtable tbody tr:hover { background: var(--soft); }
.dtable .rec-name { font-weight: 500; color: var(--ink); }
.dtable .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dtable .save-val { font-weight: 600; color: var(--green); }
.dtable .save-none { color: var(--gray); }
.dtable td.right, .dtable th.right { text-align: right; }
.tr-dismissed .rec-name { color: var(--gray); text-decoration: line-through; text-decoration-color: var(--track); }
.tr-dismissed { opacity: 0.7; }

/* dimension tag */
.dim-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.dim-tag .dt-dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-costos { background: var(--green); }
.dot-rendimiento { background: var(--ink); }
.dot-seguridad { background: var(--amber); }

/* severity pill */
.sev { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; white-space: nowrap; }
.sev .sev-dot { width: 8px; height: 8px; border-radius: 2px; }
.sev-critico .sev-dot { background: var(--sev-crit); }
.sev-alto .sev-dot { background: var(--sev-high); }
.sev-medio .sev-dot { background: var(--sev-med); }
.sev-bajo .sev-dot { background: var(--sev-low); }

/* status chip (editable) */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--gray);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 140ms var(--ease), background 140ms var(--ease);
}
.status-chip .st-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-chip .chev { width: 12px; height: 12px; opacity: 0.6; }
.status-chip:hover { border-color: #d8d4cc; }
.status-chip[data-status="abierto"] { color: var(--gray); }
.status-chip[data-status="en-progreso"] { color: var(--amber); background: var(--amber-soft); border-color: rgba(201,138,22,0.30); }
.status-chip[data-status="resuelto"] { color: var(--green); background: var(--green-soft); border-color: rgba(15,118,110,0.30); }
.status-chip[data-status="descartado"] { color: var(--gray); background: var(--soft); }

/* empty state */
.empty-state { padding: 56px 20px; text-align: center; color: var(--gray); }
.empty-state .es-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; margin: 0 auto 14px; color: var(--gray); }
.empty-state h4 { font-family: var(--font-display); color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.empty-state p { font-size: 13.5px; }

/* ============================================================
   Drawer
   ============================================================ */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(20, 20, 20, 0.28);
  opacity: 0; visibility: hidden;
  transition: opacity 240ms var(--ease), visibility 240ms var(--ease);
  z-index: 80;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(460px, 92vw);
  background: var(--bg);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 50px rgba(20,20,20,0.10);
  z-index: 81;
  transform: translateX(100%);
  transition: transform 320ms var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.drawer.is-open { transform: none; }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-backdrop { transition: none; } }
.drawer-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); }
.drawer-head .dr-close { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); cursor: pointer; display: grid; place-items: center; color: var(--gray); }
.drawer-head .dr-close:hover { background: var(--soft); color: var(--ink); }
.drawer-head .dr-eyebrow { font-size: 12px; color: var(--gray); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.drawer-head h2 { font-size: 19px; padding-right: 40px; }
.drawer-body { padding: 22px 24px 28px; }
.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: 24px; }
.dr-metric { background: var(--bg); padding: 14px 16px; }
.dr-metric .m-k { font-size: 12px; color: var(--gray); }
.dr-metric .m-v { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-top: 4px; }
.dr-metric .m-v.green { color: var(--green); }
.dr-steps-title { font-family: var(--font-display); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.dr-steps { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.dr-steps li { display: flex; gap: 13px; font-size: 13.5px; line-height: 1.5; }
.dr-steps .n { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.drawer-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; position: sticky; bottom: 0; background: var(--bg); }

/* ============================================================
   Accounts
   ============================================================ */
.acct-list { display: flex; flex-direction: column; gap: 14px; }
.acct-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  flex-wrap: wrap;
}
.acct-card .ac-ico { width: 42px; height: 42px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); flex-shrink: 0; }
.acct-card .ac-main { min-width: 180px; flex: 1; }
.acct-card .ac-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.acct-card .ac-id { font-family: var(--font-mono); font-size: 12.5px; color: var(--gray); margin-top: 3px; }
.acct-card .ac-status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--green); }
.acct-card .ac-status .ico { width: 16px; height: 16px; }
.acct-card .ac-scan { font-size: 12.5px; color: var(--gray); }
.acct-card .ac-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================================================
   Madurez
   ============================================================ */
.maturity-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; }
.ring-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.ring-card .ring-label { font-size: 14px; font-weight: 600; color: var(--amber); }
.ring-card .ring-sub { font-size: 12.5px; color: var(--gray); }
.spark-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; font-size: 12.5px; color: var(--gray); }

.pillars { display: flex; flex-direction: column; gap: 18px; }
.pillar .p-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.pillar .p-name { font-size: 13.5px; font-weight: 500; }
.pillar .p-score { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.pillar .p-score .of { color: var(--gray); font-weight: 400; }
.pillar .p-bar { height: 8px; background: var(--track); border-radius: 999px; overflow: hidden; }
.pillar .p-fill { height: 100%; border-radius: 999px; background: var(--ink); transition: width 600ms var(--ease); }
.pillar.full .p-fill { background: var(--green); }
.pillar .p-hint { font-size: 12px; color: var(--gray); margin-top: 7px; }

/* ============================================================
   Settings
   ============================================================ */
.settings-grid { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.set-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: none; }
.set-row .set-info { max-width: 50ch; }
.set-row .set-name { font-size: 14px; font-weight: 600; }
.set-row .set-desc { font-size: 13px; color: var(--gray); margin-top: 4px; }

/* segmented control */
.segmented { display: inline-flex; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px; }
.segmented button { appearance: none; border: none; background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--gray); padding: 7px 14px; border-radius: 6px; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--bg); color: var(--green); box-shadow: var(--shadow-sm); }

/* switch */
.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(--track); border-radius: 999px; transition: background 200ms 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 200ms var(--ease); }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track + .knob { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--green); outline-offset: 2px; }

/* team */
.team-list { display: flex; flex-direction: column; gap: 2px; }
.team-member { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.team-member .tm-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 13px; }
.team-member .tm-name { font-size: 13.5px; font-weight: 500; }
.team-member .tm-email { font-size: 12.5px; color: var(--gray); }
.team-member .tm-role { margin-left: auto; font-size: 12px; color: var(--gray); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

.plan-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft); flex-wrap: wrap; }
.plan-box .plan-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.plan-box .plan-sub { font-size: 13px; color: var(--gray); margin-top: 3px; }

/* utilities */
.stack-16 > * + * { margin-top: 16px; }
.mt-30 { margin-top: 30px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .dim-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2-1 { grid-template-columns: 1fr; }
  .maturity-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .dash-body { grid-template-columns: 1fr; }
  .dash-sidebar {
    position: static; height: auto; width: 100%;
    border-right: none; border-bottom: 1px solid var(--line);
    padding: 10px;
  }
  .dash-sidebar.is-collapsed { display: none; }
  .nav-group-label { display: none; }
  .nav { flex-direction: row; overflow-x: auto; gap: 4px; }
  .nav-item { white-space: nowrap; }
  .nav-item.is-active::before { display: none; }
  .tb-menu-toggle { display: grid; }
  .acct-btn .acct-id-full { display: none; }
}
@media (max-width: 620px) {
  .kpis { grid-template-columns: 1fr; }
  .dim-grid { grid-template-columns: 1fr; }
  .dtable .col-conf, .dtable .col-effort { display: none; }
  .head-actions .btn-newscan-label { display: none; }
  .dash-topbar .tb-newscan-label { display: none; }
}
