/* ============================================================
   SyntroFlow · Demo OSS
   Hoja de estilos única (sin dependencias externas)
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #f3f6fb;
  --bg-glow: rgba(30, 136, 229, .07);
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --surface-3: #eef3fa;
  --border: #e3e9f3;
  --border-strong: #cfd9e8;
  --text: #101828;
  --text-soft: #475467;
  --muted: #8892a4;
  --primary: #1e88e5;
  --primary-strong: #1565c0;
  --primary-soft: #e8f2fd;
  --cyan: #06b6d4;
  --cyan-soft: #e2f9fd;
  --green: #12864a;
  --green-soft: #e6f7ee;
  --amber: #b45309;
  --amber-soft: #fdf2df;
  --red: #dc2626;
  --red-soft: #fdecec;
  --violet: #7c3aed;
  --violet-soft: #f2ecfe;
  --sidebar: #0d1730;
  --sidebar-2: #0a1124;
  --sidebar-text: #c3cde0;
  --sidebar-muted: #7787a3;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, .06);
  --shadow: 0 18px 40px -22px rgba(16, 24, 40, .28);
  --shadow-lg: 0 26px 70px -24px rgba(16, 24, 40, .35);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --sidebar-w: 262px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

[data-theme="dark"] {
  --bg: #0a0f1c;
  --bg-glow: rgba(6, 182, 212, .06);
  --surface: #121a2b;
  --surface-2: #0e1626;
  --surface-3: #1a2438;
  --border: #22304a;
  --border-strong: #31415f;
  --text: #e7edf7;
  --text-soft: #aab7cc;
  --muted: #7787a3;
  --primary: #4d9fff;
  --primary-strong: #2f7fe0;
  --primary-soft: #14263f;
  --cyan: #22d3ee;
  --cyan-soft: #0d2b33;
  --green: #4ade80;
  --green-soft: #10291c;
  --amber: #fbbf24;
  --amber-soft: #2b2110;
  --red: #f87171;
  --red-soft: #331416;
  --violet: #a78bfa;
  --violet-soft: #241a3d;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .7);
  --shadow-lg: 0 26px 70px -24px rgba(0, 0, 0, .8);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; }
a { color: var(--primary); }
svg { display: block; flex: none; }
::selection { background: rgba(30, 136, 229, .22); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: -.15px; }
.muted { color: var(--muted); }
.soft { color: var(--text-soft); }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* ---------- 3. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s, border-color .16s, opacity .16s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #0d7fd8 60%, var(--cyan) 130%);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(30, 136, 229, .75);
}
.btn-primary:hover { box-shadow: 0 12px 24px -10px rgba(30, 136, 229, .8); }

.btn-outline {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text-soft);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
}
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }

.btn-danger {
  background: var(--red-soft);
  color: var(--red);
  border-color: transparent;
}

.btn-sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; gap: 6px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 14.5px; border-radius: 12px; }
.btn-icon {
  width: 38px; height: 38px; padding: 0; border-radius: 10px;
  background: transparent; border: 1px solid transparent; color: var(--text-soft);
}
.btn-icon:hover { background: var(--surface-3); color: var(--text); }
.btn-block { width: 100%; }

/* ---------- 4. Login ---------- */
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
}

.login-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 56px;
  color: #eaf2ff;
  background:
    radial-gradient(900px 520px at 12% 0%, rgba(6, 182, 212, .22), transparent 60%),
    radial-gradient(900px 680px at 100% 100%, rgba(30, 136, 229, .34), transparent 55%),
    linear-gradient(150deg, #0b1428 0%, #0d1730 45%, #10275a 100%);
}
.login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 184, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 184, 255, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 40% 35%, #000 0%, transparent 78%);
  pointer-events: none;
}
.login-brand::after {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  right: -140px; bottom: -170px;
  border-radius: 50%;
  border: 1px solid rgba(120, 190, 255, .18);
  box-shadow: 0 0 0 70px rgba(30, 136, 229, .05), 0 0 0 150px rgba(6, 182, 212, .035);
  pointer-events: none;
}
.login-brand > * { position: relative; z-index: 1; }

.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #1e88e5, #06b6d4);
  box-shadow: 0 10px 25px -8px rgba(6, 182, 212, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.brand-word { font-size: 20px; font-weight: 750; letter-spacing: -.03em; }
.brand-word span { color: #6fd8ec; }
.brand-sub { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #8fa6c9; margin-top: 1px; }

.login-hero { max-width: 560px; padding: 28px 0; }
.login-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(120, 200, 255, .28);
  background: rgba(20, 60, 110, .35);
  color: #9fe0f2; font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
}
.login-hero h1 {
  margin-top: 22px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 760;
}
.login-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #6fd8ec, #7db4ff 55%, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.login-hero p {
  margin-top: 18px;
  max-width: 470px;
  color: #a9bad6;
  font-size: 15px;
  line-height: 1.65;
}
.login-points { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.login-points li { display: flex; align-items: center; gap: 11px; color: #d3def1; font-size: 13.5px; }
.login-points .tick {
  width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center;
  background: rgba(6, 182, 212, .14);
  border: 1px solid rgba(6, 182, 212, .3);
  color: #6fd8ec;
}

.login-flow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(148, 184, 255, .13);
}
.login-flow .node {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 11px; border-radius: 9px;
  background: rgba(16, 38, 79, .72);
  border: 1px solid rgba(120, 160, 220, .18);
  font-size: 11.5px; color: #c6d6ee; font-weight: 600;
}
.login-flow .node b { color: #6fd8ec; font-weight: 700; }
.login-flow .arrow { color: #4d6b96; }

.login-foot { display: flex; justify-content: space-between; gap: 20px; font-size: 11.5px; color: #7286a6; }

.login-panel {
  position: relative;
  display: grid;
  place-items: center;
  padding: 40px 28px;
  background:
    radial-gradient(700px 420px at 90% 0%, var(--bg-glow), transparent 65%),
    var(--bg);
}
.login-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px;
  box-shadow: var(--shadow-lg);
  animation: rise .5s var(--ease) both;
}
.login-card .eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: 10.5px;
  color: var(--muted); font-weight: 700;
}
.login-card h2 { margin-top: 8px; font-size: 25px; letter-spacing: -.03em; }
.login-card .hint { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.demo-note {
  margin-top: 14px;
  display: flex; gap: 9px; align-items: flex-start;
  padding: 11px 12px; border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  border: 1px solid rgba(30, 136, 229, .18);
  font-size: 12px; line-height: 1.5;
}
[data-theme="dark"] .demo-note { color: #9cc9ff; }

.field { margin-top: 16px; }
.field label { display: block; font-size: 12px; font-weight: 650; color: var(--text-soft); margin-bottom: 6px; }
.field .control { position: relative; }
.field .control > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.field input,
.field select {
  width: 100%; height: 43px;
  padding: 0 12px 0 39px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.field input:focus,
.field select:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, .14);
}
.login-card .btn { margin-top: 22px; }
.login-card .legal { margin-top: 16px; text-align: center; font-size: 11px; color: var(--muted); }

/* ---------- 5. Shell ---------- */
.app { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%);
  color: var(--sidebar-text);
  z-index: 50;
  overflow-y: auto;
  scrollbar-width: thin;
}
.sidebar-top { padding: 20px 20px 14px; }
.sidebar .brand-lockup { gap: 10px; }
.sidebar .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
.sidebar .brand-word { font-size: 17.5px; color: #fff; }
.sidebar .brand-sub { font-size: 9.5px; letter-spacing: .18em; }
.demo-chip {
  margin: 12px 0 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 9.5px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase;
  color: #b9e9f5;
  background: rgba(6, 182, 212, .12);
  border: 1px solid rgba(6, 182, 212, .3);
}
.demo-chip i { width: 5px; height: 5px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 10px #22d3ee; animation: blink 1.8s infinite; }

.sidebar-nav { flex: 1; padding: 8px 12px 20px; }
.nav-group { margin-top: 16px; }
.nav-group:first-child { margin-top: 4px; }
.nav-label {
  padding: 0 12px;
  margin-bottom: 5px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sidebar-muted);
}
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  height: 38px;
  padding: 0 12px;
  margin: 2px 0;
  border-radius: 9px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 550;
  transition: background .16s, color .16s;
}
.nav-item svg { color: #8fa3c2; transition: color .16s; }
.nav-item:hover { background: rgba(255, 255, 255, .055); color: #fff; }
.nav-item:hover svg { color: #cfe1ff; }
.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(30, 136, 229, .3), rgba(6, 182, 212, .06));
  box-shadow: inset 0 0 0 1px rgba(120, 190, 255, .12);
}
.nav-item.active::before {
  content: "";
  position: absolute; left: -12px; top: 9px; bottom: 9px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #22d3ee, #1e88e5);
}
.nav-item.active svg { color: #6fd8ec; }
.nav-item .nav-badge {
  margin-left: auto;
  min-width: 20px; height: 18px; padding: 0 6px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(6, 182, 212, .16);
  color: #7fe3f2;
  font-size: 10px; font-weight: 700;
}
.nav-item.cta {
  margin-top: 6px;
  color: #eaf7ff;
  background: linear-gradient(135deg, rgba(30, 136, 229, .32), rgba(6, 182, 212, .18));
  border: 1px solid rgba(90, 200, 235, .25);
}
.nav-item.cta:hover { background: linear-gradient(135deg, rgba(30, 136, 229, .45), rgba(6, 182, 212, .28)); }
.nav-item.cta svg { color: #7fe3f2; }

.sidebar-foot {
  margin: 0 12px 14px;
  padding: 13px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(148, 184, 255, .1);
  font-size: 11px;
  color: var(--sidebar-muted);
  line-height: 1.6;
}
.sidebar-foot strong { color: #cfddf3; font-size: 11.5px; }
.sidebar-foot .status-line { display: flex; align-items: center; gap: 7px; margin-top: 7px; color: #93b9a8; }
.sidebar-foot .status-line i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 9px #34d399; }

.main-wrap { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: 66px;
  display: flex; align-items: center; gap: 14px;
  padding: 0 26px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  background: var(--surface);
  backdrop-filter: blur(12px);
}
.topbar .menu-btn { display: none; }
.topbar-search {
  position: relative;
  width: min(330px, 34vw);
}
.topbar-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.topbar-search input {
  width: 100%; height: 38px;
  padding: 0 12px 0 37px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit; font-size: 12.5px;
}
.topbar-search input::placeholder { color: var(--muted); }
.topbar-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30, 136, 229, .12); }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang-select {
  height: 34px; padding: 0 8px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text);
  font: inherit; font-size: 11px; font-weight: 750; letter-spacing: .03em;
  cursor: pointer;
}
.lang-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30, 136, 229, .12); }
.login-lang { position: absolute; top: 20px; right: 24px; z-index: 3; }
.tenant-chip {
  display: inline-flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 12px; font-weight: 600;
  color: var(--text-soft);
}
.tenant-chip .tenant-logo {
  width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #1e88e5, #06b6d4);
  color: #fff; font-size: 10px; font-weight: 800;
}
.tenant-chip svg { color: var(--muted); }
.live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
}
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.8s infinite; }

.user-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 4px 8px 4px 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}
.user-chip:hover { border-color: var(--border-strong); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #1e88e5, #7c3aed);
  color: #fff; font-size: 10.5px; font-weight: 750;
}
.user-chip .u-name { font-size: 12px; font-weight: 650; line-height: 1.15; }
.user-chip .u-role { font-size: 10px; color: var(--muted); }

.main { padding: 24px 30px 48px; max-width: 1480px; width: 100%; margin: 0 auto; }

/* ---------- 6. Page header ---------- */
.page-head {
  display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.page-head .eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10.5px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}
.page-head .eyebrow i { width: 16px; height: 2px; border-radius: 2px; background: currentColor; }
.page-head h1 { font-size: 26px; letter-spacing: -.035em; font-weight: 740; line-height: 1.15; }
.page-head .sub { margin-top: 5px; font-size: 13px; color: var(--muted); max-width: 760px; }
.page-head .head-actions { margin-left: auto; display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }

.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- 7. Cards & KPIs ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.card-pad { padding: 20px; }
.card-head {
  display: flex; align-items: center; gap: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
}
.card-head h3 { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.card-head .sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.card-head .head-actions { margin-left: auto; display: flex; align-items: center; gap: 7px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.kpi::after {
  content: "";
  position: absolute; right: -28px; top: -34px;
  width: 110px; height: 110px; border-radius: 50%;
  background: var(--tone-soft, var(--primary-soft));
  opacity: .55;
}
.kpi-top { display: flex; align-items: center; gap: 10px; }
.kpi-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--tone-soft, var(--primary-soft));
  color: var(--tone, var(--primary));
}
.kpi-label { font-size: 11.5px; font-weight: 650; color: var(--muted); }
.kpi-value { margin-top: 13px; font-size: 30px; font-weight: 750; letter-spacing: -.045em; line-height: 1; }
.kpi-value small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 3px; }
.kpi-foot { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.trend { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.trend.up { background: var(--green-soft); color: var(--green); }
.trend.down { background: var(--red-soft); color: var(--red); }
.trend.neutral { background: var(--surface-3); color: var(--text-soft); }
.kpi.green { --tone: var(--green); --tone-soft: var(--green-soft); }
.kpi.amber { --tone: var(--amber); --tone-soft: var(--amber-soft); }
.kpi.blue { --tone: var(--primary); --tone-soft: var(--primary-soft); }
.kpi.violet { --tone: var(--violet); --tone-soft: var(--violet-soft); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .85fr); gap: 18px; align-items: start; }
.dash-col { display: grid; gap: 18px; }

/* chart */
.chart-wrap { padding: 18px 20px 14px; }
.chart-legend { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.chart-legend i { width: 8px; height: 8px; border-radius: 3px; background: linear-gradient(180deg, #22d3ee, #1e88e5); }
.bars { display: flex; align-items: flex-end; gap: 12px; height: 148px; margin-top: 14px; padding-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar-track { width: 100%; max-width: 46px; flex: 1; display: flex; align-items: flex-end; border-radius: 7px; background: var(--surface-2); }
.bar {
  width: 100%;
  border-radius: 7px;
  background: linear-gradient(180deg, #38bdf8, #1e88e5 70%, #1565c0);
  box-shadow: 0 4px 12px -6px rgba(30, 136, 229, .65);
  transform-origin: bottom;
  animation: grow .7s var(--ease) both;
}
.bar.today { background: linear-gradient(180deg, #22d3ee, #0ea5b7); }
.bar-label { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.bar-value { font-size: 10px; font-weight: 700; color: var(--text-soft); }

/* health */
.health-list { padding: 6px 20px 14px; }
.health-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px dashed var(--border); }
.health-row:last-child { border-bottom: 0; }
.health-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); flex: none; }
.health-dot.warn { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.health-name { font-size: 12.5px; font-weight: 600; }
.health-meta { font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.health-lat { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.health-bar { width: 62px; height: 4px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.health-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #22d3ee, #1e88e5); }

/* mini activity */
.activity { padding: 4px 20px 14px; }
.act-item { display: flex; gap: 11px; padding: 10px 0; }
.act-item + .act-item { border-top: 1px dashed var(--border); }
.act-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-soft); flex: none; }
.act-icon.ok { background: var(--green-soft); color: var(--green); }
.act-icon.warn { background: var(--amber-soft); color: var(--amber); }
.act-body { min-width: 0; }
.act-title { font-size: 12.5px; font-weight: 600; }
.act-detail { font-size: 11px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-time { margin-left: auto; font-size: 10.5px; color: var(--muted); white-space: nowrap; }

/* demo banner */
.demo-banner {
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 20px 22px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  color: #eaf4ff;
  background:
    radial-gradient(700px 200px at 88% 20%, rgba(6, 182, 212, .35), transparent 60%),
    linear-gradient(115deg, #0e2450 0%, #153a76 55%, #0f5f83 100%);
  border: 1px solid rgba(90, 180, 235, .22);
  box-shadow: var(--shadow);
}
.demo-banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, #000);
  pointer-events: none;
}
.demo-banner > * { position: relative; }
.demo-banner .db-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(6, 182, 212, .16);
  border: 1px solid rgba(6, 182, 212, .35);
  color: #7fe3f2;
}
.demo-banner h3 { font-size: 16px; letter-spacing: -.02em; }
.demo-banner p { margin-top: 4px; font-size: 12.5px; color: #a8c4e8; max-width: 620px; }
.demo-banner .db-actions { margin-left: auto; display: flex; gap: 9px; flex-wrap: wrap; }
.demo-banner .btn-primary { box-shadow: 0 10px 24px -10px rgba(6, 182, 212, .8); }

/* ---------- 8. Tables ---------- */
.table-card { overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 10px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
tbody td { padding: 12px 18px; border-bottom: 1px solid var(--border); font-size: 12.5px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .14s; }
tbody tr:hover { background: var(--surface-2); }
tbody tr.clickable { cursor: pointer; }
.cell-main { font-weight: 650; font-size: 12.5px; }
.cell-sub { font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.table-empty { padding: 44px 20px; text-align: center; color: var(--muted); font-size: 12.5px; }

/* ---------- 9. Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .01em;
  background: var(--surface-3);
  color: var(--text-soft);
  white-space: nowrap;
}
.badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.success { background: var(--green-soft); color: var(--green); }
.badge.warning { background: var(--amber-soft); color: var(--amber); }
.badge.danger { background: var(--red-soft); color: var(--red); }
.badge.info { background: var(--primary-soft); color: var(--primary); }
.badge.cyan { background: var(--cyan-soft); color: #0e7490; }
[data-theme="dark"] .badge.cyan { color: #67e8f9; }
.badge.violet { background: var(--violet-soft); color: var(--violet); }
.badge.gray { background: var(--surface-3); color: var(--muted); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 7px;
  font-size: 10.5px; font-weight: 650;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-soft);
}
.pill.mono { font-family: var(--mono); font-size: 10.5px; }
.pill svg { color: var(--muted); }

/* ---------- 10. Wizard ---------- */
.wizard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 354px; gap: 20px; align-items: start; }
.wizard-main { min-width: 0; }
.wizard-aside { position: sticky; top: 86px; display: grid; gap: 14px; }

.stepper {
  display: flex; align-items: flex-start;
  padding: 10px 16px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  overflow-x: auto;
}
.step {
  flex: 1;
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 5px;
  min-width: 92px;
  text-align: center;
}
.step::after {
  content: "";
  position: absolute; top: 12px; left: calc(50% + 17px); right: calc(-50% + 17px);
  height: 2px; border-radius: 2px;
  background: var(--border);
  transition: background .25s;
}
.step:last-child::after { display: none; }
.step .dot {
  width: 25px; height: 25px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 2px solid var(--border);
  color: var(--muted);
  font-size: 11px; font-weight: 750;
  transition: all .25s var(--ease);
  position: relative; z-index: 1;
}
.step .lbl { font-size: 10px; font-weight: 650; color: var(--muted); transition: color .2s; }
.step.active .dot {
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  border-color: transparent; color: #fff;
  box-shadow: 0 0 0 4px rgba(30, 136, 229, .14);
}
.step.active .lbl { color: var(--text); }
.step.done .dot { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.step.done .lbl { color: var(--text-soft); }
.step.done::after { background: linear-gradient(90deg, var(--green), rgba(18, 134, 74, .35)); }

.wizard-card { padding: 20px; }
.wizard-card > h2 { font-size: 19px; letter-spacing: -.025em; }
.wizard-card > .desc { margin-top: 5px; font-size: 12.5px; color: var(--muted); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.fld label { display: block; font-size: 11.5px; font-weight: 650; color: var(--text-soft); margin-bottom: 6px; }
.fld input,
.fld select,
.fld textarea {
  width: 100%; height: 41px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit; font-size: 13px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.fld textarea { height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; }
.fld input:focus,
.fld select:focus,
.fld textarea:focus {
  outline: none; background: var(--surface);
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30, 136, 229, .13);
}
.fld .hint { margin-top: 5px; font-size: 10.5px; color: var(--muted); }
.fld.invalid input { border-color: var(--red); }
.fld .err { margin-top: 5px; font-size: 10.5px; color: var(--red); display: block; }

.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.plan-card {
  position: relative;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.plan-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.plan-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, .12), var(--shadow-sm);
}
.plan-card .plan-radio {
  position: absolute; top: 13px; right: 13px;
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: grid; place-items: center;
}
.plan-card.selected .plan-radio { border-color: var(--primary); background: var(--primary); color: #fff; }
.plan-card .plan-radio svg { opacity: 0; }
.plan-card.selected .plan-radio svg { opacity: 1; }
.plan-name { font-size: 12.5px; font-weight: 700; padding-right: 22px; }
.plan-speed { margin-top: 8px; display: flex; align-items: baseline; gap: 4px; }
.plan-speed b { font-size: 23px; font-weight: 760; letter-spacing: -.04em; }
.plan-speed span { font-size: 10.5px; color: var(--muted); }
.plan-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.plan-meta span { font-size: 9.5px; padding: 2px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }

.coverage {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 15px;
  margin-top: 14px;
  border-radius: 11px;
  background: var(--green-soft);
  border: 1px solid rgba(18, 134, 74, .18);
}
.coverage .cov-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .6); color: var(--green); }
[data-theme="dark"] .coverage .cov-icon { background: rgba(255, 255, 255, .06); }
.coverage strong { font-size: 12.5px; color: var(--text); }
.coverage p { font-size: 11px; color: var(--text-soft); margin-top: 2px; }

.port-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.port-card {
  position: relative;
  padding: 14px 15px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border-color .16s, box-shadow .16s;
}
.port-card:hover { border-color: var(--border-strong); }
.port-card.selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30, 136, 229, .1); }
.port-card.full { opacity: .55; cursor: not-allowed; }
.port-top { display: flex; align-items: center; gap: 9px; }
.port-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.port-card.full .port-icon { background: var(--surface-3); color: var(--muted); }
.port-name { font-family: var(--mono); font-size: 12px; font-weight: 650; }
.port-sub { font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.port-occupancy { display: flex; align-items: center; gap: 3px; margin-top: 12px; }
.dot-slot { width: 13px; height: 6px; border-radius: 3px; background: var(--surface-3); }
.dot-slot.used { background: linear-gradient(90deg, #38bdf8, #1e88e5); }
.port-cap { margin-left: auto; font-size: 10.5px; color: var(--text-soft); font-weight: 650; }

.ont-list { display: grid; gap: 10px; margin-top: 14px; }
.ont-card {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.ont-card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.ont-card.selected { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px rgba(30, 136, 229, .08); }
[data-theme="dark"] .ont-card.selected { background: var(--primary-soft); }
.ont-radio { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: grid; place-items: center; flex: none; }
.ont-card.selected .ont-radio { border-color: var(--primary); background: var(--primary); color: #fff; }
.ont-radio svg { opacity: 0; }
.ont-card.selected .ont-radio svg { opacity: 1; }
.ont-main { min-width: 0; flex: 1; }
.ont-name { font-size: 12.5px; font-weight: 700; }
.ont-name span { font-weight: 500; color: var(--muted); }
.ont-serial { font-family: var(--mono); font-size: 11px; color: var(--text-soft); margin-top: 2px; }
.ont-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; font-size: 10.5px; color: var(--muted); }
.ont-tag { flex: none; }

.discover-box {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px;
  margin-top: 18px;
  border: 1px dashed var(--border-strong);
  border-radius: 11px;
  background: var(--surface-2);
}
.discover-box .radar {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid rgba(30, 136, 229, .25);
  position: relative; flex: none;
}
.discover-box .radar::before {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  border: 2px solid rgba(30, 136, 229, .45);
  animation: radar 1.8s infinite var(--ease);
}
.discover-box strong { font-size: 12px; }
.discover-box p { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.discover-box .btn { margin-left: auto; }
.scanning .radar::before { animation-duration: .7s; }

.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.review-block { padding: 11px 13px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); }
.review-block .rb-label { font-size: 9.5px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.review-block .rb-main { margin-top: 7px; font-size: 12.5px; font-weight: 650; }
.review-block .rb-sub { margin-top: 3px; font-size: 11px; color: var(--muted); line-height: 1.55; }
.review-block .rb-action { margin-top: 8px; }

.json-preview {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
}
.json-preview summary {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; cursor: pointer;
  background: var(--surface-2);
  font-size: 11.5px; font-weight: 650; color: var(--text-soft);
  list-style: none;
}
.json-preview summary::-webkit-details-marker { display: none; }
.json-preview summary svg { color: var(--muted); transition: transform .2s; }
.json-preview[open] summary svg { transform: rotate(90deg); }
.json-preview pre {
  margin: 0; padding: 14px 16px;
  max-height: 300px; overflow: auto;
  background: #0c1425; color: #cbd5e1;
  font-family: var(--mono); font-size: 11px; line-height: 1.7;
}

.wizard-nav {
  display: flex; align-items: center; gap: 9px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--border);
}
.wizard-nav .nav-hint { font-size: 10.5px; color: var(--muted); margin-right: auto; }

/* summary */
.summary-card { overflow: hidden; }
.summary-head {
  position: relative; overflow: hidden;
  padding: 18px 20px;
  color: #eaf4ff;
  background:
    radial-gradient(280px 120px at 95% 0%, rgba(6, 182, 212, .35), transparent 70%),
    linear-gradient(120deg, #10234a, #124a74);
}
.summary-head .sh-label { font-size: 9.5px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; color: #83b7e8; }
.summary-head h3 { margin-top: 5px; font-size: 16px; letter-spacing: -.02em; }
.summary-head .sh-plan { margin-top: 3px; font-size: 11.5px; color: #a9c9ea; }
.summary-body { padding: 6px 20px 16px; }
.sum-row { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.sum-row:last-of-type { border-bottom: 0; }
.sum-key { width: 82px; flex: none; font-size: 10.5px; color: var(--muted); padding-top: 1px; }
.sum-val { font-size: 11.5px; font-weight: 600; min-width: 0; word-break: break-word; }
.sum-val .mono { font-size: 10.5px; color: var(--text-soft); }
.sum-val small { display: block; font-weight: 500; color: var(--muted); font-size: 10px; margin-top: 1px; }
.sum-empty { color: var(--muted); font-weight: 500; font-style: italic; }
.check-list { display: grid; gap: 8px; padding: 16px 20px 18px; }
.check-item { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; color: var(--text-soft); }
.check-item svg { margin-top: 1px; color: var(--green); flex: none; }
.check-item.pending { color: var(--muted); }
.check-item.pending svg { color: var(--border-strong); }

/* ---------- 11. Provisioning flow ---------- */
.flow-head {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.flow-head h2 { font-size: 18px; letter-spacing: -.025em; }
.flow-head .fh-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.flow-head .fh-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.progress-ring { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--primary) calc(var(--p) * 1%), var(--surface-3) 0); position: relative; }
.progress-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); }
.progress-ring b { position: relative; font-size: 11.5px; font-weight: 750; letter-spacing: -.03em; }
.progress-line { height: 5px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress-line i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #1e88e5, #06b6d4); transition: width .5s var(--ease); }

.flow-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); }
.flow-timeline { padding: 22px 24px 18px; }
.flow-step { position: relative; display: flex; gap: 14px; padding-bottom: 24px; }
.flow-step:last-child { padding-bottom: 4px; }
.flow-step::before {
  content: ""; position: absolute; left: 15px; top: 34px; bottom: 0; width: 2px;
  background: var(--border);
}
.flow-step:last-child::before { display: none; }
.flow-step.done::before { background: linear-gradient(180deg, rgba(30, 136, 229, .6), rgba(6, 182, 212, .18)); }
.flow-step .fs-icon {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  position: relative;
  background: var(--surface-2); border: 2px solid var(--border);
  color: var(--muted); z-index: 1;
  transition: all .3s;
}
.flow-step.running .fs-icon { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.flow-step.running .fs-icon::after {
  content: ""; position: absolute; top: -2px; left: -2px; width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--primary);
  animation: spin .9s linear infinite;
}
.flow-step.done .fs-icon { border-color: transparent; background: linear-gradient(135deg, var(--primary), var(--cyan)); color: #fff; box-shadow: 0 4px 12px -5px rgba(30, 136, 229, .7); }
.flow-step.pending .fs-icon { color: var(--muted); }
.flow-step .fs-body { min-width: 0; padding-top: 2px; }
.flow-step .fs-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--text); }
.flow-step.pending .fs-title { color: var(--muted); font-weight: 550; }
.flow-step .fs-desc { font-size: 11px; color: var(--muted); margin-top: 3px; }
.flow-step .fs-api { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; font-family: var(--mono); font-size: 9.5px; color: var(--text-soft); background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 2px 6px; }
.flow-step .fs-dur { margin-left: auto; font-size: 9.5px; color: var(--muted); font-weight: 500; }

.console {
  display: flex; flex-direction: column;
  background: #0a1120;
  border-left: 1px solid var(--border);
  min-height: 100%;
}
.console-head {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(148, 184, 255, .1);
  color: #93a8c8; font-size: 10.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
}
.console-head .dots { display: flex; gap: 4px; margin-right: 5px; }
.console-head .dots i { width: 7px; height: 7px; border-radius: 50%; background: #f87171; }
.console-head .dots i:nth-child(2) { background: #fbbf24; }
.console-head .dots i:nth-child(3) { background: #34d399; }
.console-head .live { margin-left: auto; color: #34d399; font-size: 9.5px; display: flex; align-items: center; gap: 5px; }
.console-head .live i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: blink 1.4s infinite; }
.console-body {
  flex: 1;
  padding: 14px 15px 18px;
  overflow-y: auto;
  max-height: 520px;
  font-family: var(--mono); font-size: 10.5px; line-height: 1.75;
  color: #9fb3d1;
  scrollbar-width: thin;
}
.log-line { display: flex; gap: 8px; animation: fadeIn .25s both; }
.log-line .t { color: #4f6484; flex: none; }
.log-line .tag { flex: none; font-weight: 650; }
.log-line .tag.workflow { color: #7db4ff; }
.log-line .tag.inventory { color: #67e8f9; }
.log-line .tag.awx { color: #fbbf24; }
.log-line .tag.crm { color: #c4b5fd; }
.log-line .tag.bff { color: #94a3b8; }
.log-line .msg { color: #b9c9e2; word-break: break-word; }
.log-line.ok .msg { color: #86efac; }
.log-line.warn .msg { color: #fcd34d; }
.log-line .msg b { color: #e2e8f0; font-weight: 600; }
.console-cursor { display: inline-block; width: 6px; height: 12px; background: #34d399; margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
.console-foot { padding: 10px 15px; border-top: 1px solid rgba(148, 184, 255, .1); display: flex; gap: 8px; align-items: center; color: #5d7294; font-size: 9.5px; }
.console-foot .spinner { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #2c3f5f; border-top-color: #38bdf8; animation: spin .8s linear infinite; }

.flow-actions { display: flex; gap: 9px; padding: 16px 20px; border-top: 1px solid var(--border); background: var(--surface-2); flex-wrap: wrap; align-items: center; }
.flow-actions .fa-note { font-size: 10.5px; color: var(--muted); margin-right: auto; }

/* success */
.success-hero {
  position: relative; overflow: hidden;
  padding: 38px 26px 32px;
  text-align: center;
  background:
    radial-gradient(400px 200px at 50% 0%, rgba(6, 182, 212, .16), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  border-bottom: 1px solid var(--border);
}
.success-hero .halo {
  position: relative;
  width: 78px; height: 78px; margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #22c55e, #06b6d4);
  color: #fff;
  box-shadow: 0 0 0 10px rgba(34, 197, 94, .09), 0 18px 40px -14px rgba(6, 182, 212, .6);
  animation: pop .55s var(--ease) both;
}
.success-hero .halo::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid rgba(34, 197, 94, .25);
  animation: ping 1.8s infinite var(--ease);
}
.success-hero h2 { font-size: 23px; letter-spacing: -.03em; }
.success-hero p { margin-top: 7px; font-size: 12.5px; color: var(--muted); max-width: 560px; margin-left: auto; margin-right: auto; }
.success-hero .btn-row { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; margin-top: 20px; }
.result-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; max-width: 900px; margin: 24px auto 0; }
.result-chip { padding: 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); text-align: left; }
.result-chip .rc-label { font-size: 9px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.result-chip .rc-value { margin-top: 5px; font-family: var(--mono); font-size: 11.5px; font-weight: 650; word-break: break-all; }
.result-chip .rc-sub { margin-top: 2px; font-size: 10px; color: var(--muted); }

/* ---------- 12. API explorer ---------- */
.api-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
.api-list { padding: 8px; }
.api-item {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .14s, border-color .14s;
}
.api-item:hover { background: var(--surface-2); }
.api-item.active { background: var(--surface-2); border-color: var(--border); box-shadow: var(--shadow-xs); }
.method { width: 46px; flex: none; text-align: center; padding: 2px 0; border-radius: 5px; font-family: var(--mono); font-size: 9px; font-weight: 750; letter-spacing: .04em; }
.method.get { background: var(--primary-soft); color: var(--primary); }
.method.post { background: var(--green-soft); color: var(--green); }
.method.patch { background: var(--amber-soft); color: var(--amber); }
.method.delete { background: var(--red-soft); color: var(--red); }
.api-item .ai-body { min-width: 0; flex: 1; overflow: hidden; }
.api-item .ai-path { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.api-item .ai-name { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.api-item .ai-std { margin-left: auto; flex: none; font-size: 8.5px; font-weight: 750; color: var(--muted); letter-spacing: .04em; }

.api-detail { min-width: 0; overflow: hidden; }
.api-detail-head { padding: 18px 20px 0; }
.api-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.api-title-row h3 { font-size: 15px; letter-spacing: -.02em; }
.api-desc { margin-top: 6px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.path-bar {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface-2); font-family: var(--mono); font-size: 11px;
  overflow-x: auto;
}
.path-bar .host { color: var(--muted); }
.path-bar .path { color: var(--text); font-weight: 600; }
.path-bar .btn { margin-left: auto; }
.tabs { display: flex; gap: 2px; padding: 12px 20px 0; border-bottom: 1px solid var(--border); }
.tab {
  padding: 8px 12px;
  border: 0; background: transparent;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 11.5px; font-weight: 650;
  cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.code-wrap { position: relative; background: #0a1120; }
.code-wrap .btn-copy { position: absolute; top: 10px; right: 10px; z-index: 1; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .1); color: #b9c9e2; height: 28px; font-size: 10.5px; }
.code-wrap .btn-copy:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.code-block {
  margin: 0; padding: 18px 20px;
  max-height: 520px; overflow: auto;
  color: #c9d6ea;
  font-family: var(--mono); font-size: 11.5px; line-height: 1.75;
  tab-size: 2;
}
.code-block .j-key { color: #7db4ff; }
.code-block .j-str { color: #86efac; }
.code-block .j-num { color: #fcd34d; }
.code-block .j-bool { color: #c4b5fd; }
.code-block .c-method { color: #fbbf24; font-weight: 650; }
.code-block .c-flag { color: #67e8f9; }
.code-block .c-url { color: #86efac; }
.code-block .c-comment { color: #5d7294; }
.api-foot { display: flex; align-items: center; gap: 8px; padding: 11px 20px; border-top: 1px solid var(--border); font-size: 10.5px; color: var(--muted); background: var(--surface-2); }
.api-foot .badge { margin-left: auto; }

/* ---------- 13. Diagram ---------- */
.diagram-card { overflow: hidden; }
.diagram { padding: 18px; overflow-x: auto; }
.diagram svg { width: 100%; height: auto; min-width: 820px; }
.diagram .node rect { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1; }
.diagram .node.primary rect { stroke: #3b82f6; stroke-width: 1.5; fill: var(--surface); }
.diagram .node.dark rect { fill: #0f1e38; stroke: #2b4874; }
.diagram .node .nt { fill: var(--text); font-family: var(--font); font-size: 13px; font-weight: 700; }
.diagram .node.dark .nt { fill: #e7f1ff; }
.diagram .node .ns { fill: var(--muted); font-family: var(--font); font-size: 10.5px; }
.diagram .node.dark .ns { fill: #8fa9cc; }
.diagram .node .np { fill: var(--primary); font-family: var(--mono); font-size: 9px; }
.diagram .node.dark .np { fill: #6fd8ec; }
.diagram .node .nicon { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.diagram .link { fill: none; stroke: var(--border-strong); stroke-width: 1.5; }
.diagram .link.flow { stroke: url(#lineGrad); stroke-dasharray: 5 5; animation: dash 1.4s linear infinite; }
.diagram .link.callback { stroke: #f59e0b; stroke-dasharray: 4 5; animation: dash 1.8s linear infinite; }
.diagram .link-label { fill: var(--muted); font-family: var(--mono); font-size: 8.5px; }
.diagram .step-num { fill: #fff; font-family: var(--font); font-size: 8px; font-weight: 800; }
.diagram .step-circle { fill: #1e88e5; stroke: var(--surface); stroke-width: 2; }
.diagram-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px 20px 18px; border-top: 1px dashed var(--border); }
.diagram-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--muted); }
.diagram-legend i { width: 16px; height: 2px; border-radius: 2px; background: var(--border-strong); }
.diagram-legend i.flow { background: linear-gradient(90deg, #1e88e5, #06b6d4); }
.diagram-legend i.callback { background: repeating-linear-gradient(90deg, #f59e0b 0 4px, transparent 4px 7px); }

/* ---------- 14. Audit & misc ---------- */
.toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.toolbar .search {
  position: relative; flex: 1; min-width: 180px; max-width: 340px;
}
.toolbar .search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.toolbar .search input {
  width: 100%; height: 34px; padding: 0 10px 0 32px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface-2); color: var(--text); font-size: 11.5px;
}
.toolbar .search input:focus { outline: none; border-color: var(--primary); }
.toolbar .spacer { margin-left: auto; }
.toolbar select { height: 34px; padding: 0 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text-soft); font: inherit; font-size: 11.5px; }

.empty-state { padding: 56px 24px; text-align: center; }
.empty-state .eicon { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.empty-state h3 { font-size: 14px; }
.empty-state p { margin-top: 5px; font-size: 11.5px; color: var(--muted); }

.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.inv-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.integration-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.integration-card { padding: 14px 16px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.integration-card .ic-top { display: flex; align-items: center; gap: 9px; }
.integration-card .ic-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-soft); }
.integration-card .ic-name { font-size: 11.5px; font-weight: 650; }
.integration-card .ic-port { font-family: var(--mono); font-size: 9.5px; color: var(--muted); }
.integration-card .ic-foot { display: flex; align-items: center; gap: 6px; margin-top: 11px; font-size: 10px; color: var(--muted); }
.integration-card .ic-foot .badge { margin-left: auto; }

.info-banner {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 15px; border-radius: 10px;
  background: var(--primary-soft);
  border: 1px solid rgba(30, 136, 229, .16);
  color: var(--text-soft);
  font-size: 11.5px; line-height: 1.6;
}
.info-banner svg { color: var(--primary); margin-top: 1px; }
.info-banner b { color: var(--text); }
.info-banner.warn { background: var(--amber-soft); border-color: rgba(180, 83, 9, .16); }
.info-banner.warn svg { color: var(--amber); }

/* ---------- 15. Modal & toasts ---------- */
.modal-root { position: fixed; inset: 0; z-index: 200; display: none; }
.modal-root.open { display: block; }
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(8, 15, 30, .55);
  backdrop-filter: blur(4px);
  animation: fadeIn .2s both;
}
.modal {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 60px);
  margin: 30px auto;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  animation: modalIn .28s var(--ease) both;
  overflow: hidden;
}
.modal.wide { width: min(920px, calc(100vw - 32px)); }
.modal-head {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
}
.modal-head h3 { font-size: 17px; letter-spacing: -.025em; }
.modal-head .mh-sub { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.modal-head .btn-icon { margin-left: auto; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { display: flex; gap: 9px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--border); background: var(--surface-2); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-block { padding: 13px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.detail-block .dk { font-size: 9px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.detail-block .dv { margin-top: 5px; font-size: 12px; font-weight: 600; word-break: break-word; }
.detail-block .dv.mono { font-weight: 500; }

.toast-root { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px;
  min-width: 260px; max-width: 380px;
  padding: 12px 14px;
  border-radius: 11px;
  background: #0f1b30;
  color: #e6eefc;
  border: 1px solid #29405f;
  box-shadow: 0 18px 45px -18px rgba(0, 0, 0, .65);
  font-size: 12px;
  animation: toastIn .3s var(--ease) both;
  pointer-events: auto;
}
.toast .ticon { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; background: rgba(34, 211, 238, .14); color: #6fd8ec; }
.toast.success .ticon { background: rgba(52, 211, 153, .14); color: #6ee7b7; }
.toast.warn .ticon { background: rgba(251, 191, 36, .14); color: #fcd34d; }
.toast .tmsg { line-height: 1.4; }
.toast .tmsg small { display: block; color: #8fa9cc; font-size: 10.5px; margin-top: 2px; }
.toast.hide { animation: toastOut .25s var(--ease) forwards; }

/* ---------- 16. Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(18px); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: -20; } }
@keyframes grow { from { transform: scaleY(.05); opacity: .4; } to { transform: scaleY(1); opacity: 1; } }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 60% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
@keyframes ping { 0% { transform: scale(.85); opacity: .8; } 80%, 100% { transform: scale(1.25); opacity: 0; } }
@keyframes radar { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.view-anim { animation: fadeUp .32s var(--ease) both; }
.stagger > * { animation: fadeUp .35s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: .04s; }
.stagger > *:nth-child(3) { animation-delay: .08s; }
.stagger > *:nth-child(4) { animation-delay: .12s; }

/* ---------- 17. Responsive ---------- */

/* ---------- 22. Acciones de servicio ---------- */
.action-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.action-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.action-tab:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.action-tab.active { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px rgba(30, 136, 229, .08); }
.at-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--primary-soft);
  color: var(--primary);
}
.at-icon.amber { background: var(--amber-soft); color: var(--amber); }
.at-icon.green { background: var(--green-soft); color: var(--green); }
.at-icon.red { background: var(--red-soft); color: var(--red); }
.at-copy { display: flex; flex-direction: column; min-width: 0; }
.at-copy b { font-size: 13px; }
.at-copy small { color: var(--muted); font-size: 10.5px; line-height: 1.35; margin-top: 2px; }
.at-active { margin-left: auto; color: var(--primary); }
.action-layout { display: grid; grid-template-columns: 370px minmax(0, 1fr); gap: 20px; align-items: start; }
.service-picker { display: flex; flex-direction: column; gap: 10px; max-height: 590px; overflow-y: auto; padding-right: 4px; }
.service-option {
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  padding: 14px;
  cursor: pointer;
  color: var(--text);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.service-option:hover { border-color: var(--border-strong); background: var(--surface); }
.service-option.selected { border-color: var(--primary); background: var(--primary-soft); }
.so-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10.5px; color: var(--muted); }
.so-client { margin-top: 8px; font-size: 14px; font-weight: 700; }
.so-meta { margin-top: 3px; font-size: 11px; color: var(--muted); }
.action-empty { text-align: center; color: var(--muted); padding: 34px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; }
.action-service-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.action-service-head h3 { margin: 3px 0 2px; font-size: 20px; }
.action-fields { margin-top: 22px; display: flex; flex-direction: column; gap: 2px; }
.action-current { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-soft); font-size: 12px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text-soft); font-size: 12px; line-height: 1.45; }
.check-row input { width: auto; margin-top: 2px; }
.action-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.action-result { padding: 8px 4px; }
.action-result-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); margin-bottom: 18px; }
.action-result h2 { margin: 6px 0 8px; font-size: 24px; }
.action-result p { color: var(--text-soft); font-size: 13px; line-height: 1.55; max-width: 640px; }

@media (max-width: 1000px) {
  .action-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .action-layout { grid-template-columns: 1fr; }
  .service-picker { max-height: none; }
}
@media (max-width: 560px) {
  .action-tabs { grid-template-columns: 1fr; }
  .action-form-foot { align-items: stretch; }
  .action-form-foot .btn { width: 100%; justify-content: center; }
}

@media (max-width: 1180px) {
  .wizard-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-body { grid-template-columns: 1fr; }
  .console { border-left: 0; border-top: 1px solid var(--border); }
  .console-body { max-height: 280px; }
}

@media (max-width: 1000px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: 262px;
    transform: translateX(-102%);
    transition: transform .28s var(--ease);
    box-shadow: 0 0 60px rgba(0, 0, 0, .5);
  }
  .sidebar.open { transform: none; }
  .topbar .menu-btn { display: inline-flex; }
  .main { padding: 22px 18px 48px; }
  .topbar { padding: 0 16px; }
  .dash-grid { grid-template-columns: 1fr; }
  .wizard-layout { grid-template-columns: 1fr; }
  .wizard-aside { position: static; grid-row: 1; }
  .api-layout { grid-template-columns: 1fr; }
  .api-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-panel { min-height: 100vh; }
}

@media (max-width: 760px) {
  .page-head h1 { font-size: 22px; }
  .page-head .head-actions { margin-left: 0; width: 100%; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: 1fr; }
  .port-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .result-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .api-list { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .topbar-search { display: none; }
  .tenant-chip { display: none; }
  .user-chip .u-name, .user-chip .u-role { display: none; }
  .user-chip { padding: 4px; }
  .integration-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .inv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-banner .db-actions { margin-left: 0; }
  .flow-head .fh-right { margin-left: 0; }
  .wizard-card { padding: 18px; }
  .stepper { padding: 14px 8px; }
  .step { min-width: 68px; }
  .step .lbl { font-size: 9px; }
  .step::after { left: calc(50% + 14px); right: calc(-50% + 14px); }
}

@media (max-width: 460px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .result-chips { grid-template-columns: 1fr; }
  .login-card { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
