/* ==========================================================================
   CreditRun° — app.css  (matches base.html + login.html class names exactly)
   ========================================================================== */

/* ---------- Custom properties --------------------------------------- */
:root {
  --side-w: 240px;
  --top-h: 56px;
  --rad: 10px;
  --c-side: #0a0a0b;
  --c-side-border: rgba(255,255,255,.07);
  --c-side-item: rgba(255,255,255,.72);
  --c-side-item-hover: rgba(255,255,255,.1);
  --c-side-item-active: rgba(99,102,241,.22);
  --c-side-item-active-text: #a5b4fc;
  --c-side-muted: rgba(255,255,255,.35);
  --c-accent: #6366f1;
  --c-accent-2: #818cf8;
  --c-bg: #f8fafc;
  --c-surface: #ffffff;
  --c-surface-2: #f1f5f9;
  --c-border: #e2e8f0;
  --c-border-2: #cbd5e1;
  --c-text: #0f172a;
  --c-muted: #64748b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.09);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.06);
  --transition: .2s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset & base -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body.lz {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: var(--c-bg);
  color: var(--c-text);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code, pre, .font-monospace, kbd { font-family: 'Geist Mono', 'Fira Code', ui-monospace, monospace; }

a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-accent-2); }

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.lz-side {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--side-w);
  background: var(--c-side);
  display: flex;
  flex-direction: column;
  z-index: 300;
  transition: transform var(--transition);
  overflow: hidden;
}

/* ---------- Brand header -------------------------------------------- */
.lz-side__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-side-border);
  flex-shrink: 0;
}

.lz-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  text-decoration: none;
}
.lz-brand:hover { color: #ffffff; }

.lz-brand__mark {
  width: 26px;
  height: 26px;
  color: var(--c-accent-2);
  flex-shrink: 0;
}
.lz-brand__mark svg { width: 100%; height: 100%; }

.lz-brand__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.025em;
  color: #ffffff;
  line-height: 1;
}
.lz-brand__name em {
  font-style: italic;
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  color: var(--c-accent-2);
}
.lz-brand__deg { color: var(--c-accent-2); font-weight: 400; }

.lz-side__close {
  display: none;
  background: none;
  border: none;
  color: var(--c-side-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  line-height: 1;
  transition: color .12s, background .12s;
}
.lz-side__close:hover { color: #fff; background: var(--c-side-item-hover); }

/* ---------- Search trigger in sidebar ------------------------------ */
.lz-cmdk-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% - 24px);
  margin: 10px 12px 4px;
  padding: 7px 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: var(--c-side-muted);
  font-size: 12.5px;
  cursor: pointer;
  text-align: left;
  transition: background .12s, border-color .12s;
  flex-shrink: 0;
}
.lz-cmdk-trigger:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.8); }
.lz-cmdk-trigger kbd { margin-left: auto; font-size: 10px; background: rgba(255,255,255,.1); padding: 1px 5px; border-radius: 4px; }

/* ---------- Nav ---------------------------------------------------- */
.lz-nav {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0 12px;
}
.lz-nav::-webkit-scrollbar { width: 3px; }
.lz-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }

.lz-nav__group { padding: 0 0 4px; }

.lz-nav__title {
  padding: 14px 16px 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-side-muted);
}

.lz-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin: 1px 8px;
  border-radius: 7px;
  color: var(--c-side-item);
  font-size: 13.5px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition: background .12s, color .12s;
}
.lz-nav__item:hover { background: var(--c-side-item-hover); color: #fff; }
.lz-nav__item.is-active {
  background: var(--c-side-item-active);
  color: var(--c-side-item-active-text);
  font-weight: 600;
}
.lz-nav__item .bi { font-size: 15px; flex-shrink: 0; width: 18px; text-align: center; }

/* ---------- Sidebar footer ----------------------------------------- */
.lz-side__foot {
  padding: 10px 14px;
  border-top: 1px solid var(--c-side-border);
  flex-shrink: 0;
}

.lz-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--c-side-muted);
}
.lz-status__ver { margin-left: auto; font-family: 'Geist Mono', monospace; font-size: 11px; }

.lz-status__pulse {
  display: inline-block;
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.lz-status__pulse::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(34,197,94,.3);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:0;transform:scale(1)} 50%{opacity:1;transform:scale(1.5)} }

/* ---------- Scrim (mobile overlay) --------------------------------- */
.lz-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 299;
  backdrop-filter: blur(2px);
}

/* ==========================================================================
   APP SHELL (right of sidebar)
   ========================================================================== */
.lz-app {
  margin-left: var(--side-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition);
}

/* ---------- Topbar -------------------------------------------------- */
.lz-top {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--top-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}

.lz-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: none;
  border: none;
  border-radius: 7px;
  color: var(--c-muted);
  font-size: 13px;
  cursor: pointer;
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.lz-ghost:hover { background: var(--c-surface-2); color: var(--c-text); }
.lz-ghost kbd { font-size: 11px; background: var(--c-border); padding: 1px 5px; border-radius: 4px; }
.lz-ghost--cmdk .bi { font-size: 15px; }

.lz-top__title { flex: 1; min-width: 0; }

.lz-crumbs {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--c-muted);
  margin-bottom: 1px;
}
.lz-crumbs a { color: var(--c-muted); }
.lz-crumbs a:hover { color: var(--c-accent); }
.lz-crumbs__sep { opacity: .4; }
.lz-crumbs__leaf { color: var(--c-text); font-weight: 500; }

.lz-top__h1 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lz-top__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

/* ---------- User dropdown ------------------------------------------ */
.lz-user { position: relative; }

.lz-user__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: none;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--c-text);
  transition: background .12s;
}
.lz-user__btn:hover { background: var(--c-surface-2); }

.lz-user__avatar {
  width: 26px; height: 26px;
  background: var(--c-accent);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}

.lz-user__meta { display: flex; flex-direction: column; align-items: flex-start; }
.lz-user__name { font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.lz-user__role { font-size: 11px; color: var(--c-muted); line-height: 1.2; }
.lz-user__caret { font-size: 13px; color: var(--c-muted); }

.lz-pop {
  min-width: 200px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 4px;
}
.lz-pop__head { padding: 10px 12px 8px; }
.lz-pop__head .lz-user__name { font-size: 13px; font-weight: 600; }
.lz-pop__sub { font-size: 11.5px; color: var(--c-muted); margin-top: 2px; }
.lz-pop__div { margin: 4px 0; border-color: var(--c-border); }

.lz-pop .dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--c-text);
  transition: background .1s;
}
.lz-pop .dropdown-item:hover { background: var(--c-surface-2); }
.lz-pop .dropdown-item.is-danger { color: #dc2626; }
.lz-pop .dropdown-item.is-danger:hover { background: #fee2e2; }

/* ---------- Main content + wrapper --------------------------------- */
.lz-main { flex: 1; display: flex; flex-direction: column; }
.lz-wrap { flex: 1; padding: 24px; }

/* ---------- Footer ------------------------------------------------- */
.lz-foot {
  padding: 14px 24px;
  border-top: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--c-muted);
  flex-wrap: wrap;
}
.lz-foot__brand { display: flex; align-items: center; gap: 7px; }
.lz-foot__mark { width: 16px; height: 16px; color: var(--c-accent); }
.lz-foot__mark svg { width: 100%; height: 100%; }
.lz-foot__name { font-weight: 600; color: var(--c-text); }
.lz-foot__name em { font-style: italic; font-family: 'Instrument Serif', serif; }
.lz-foot__sep { opacity: .4; }
.lz-foot__links { display: flex; gap: 16px; }
.lz-foot__links a { color: var(--c-muted); }
.lz-foot__links a:hover { color: var(--c-accent); }

/* ---------- Sidebar collapsed (desktop) ---------------------------- */
body.is-side-collapsed .lz-side { transform: translateX(-100%); }
body.is-side-collapsed .lz-app { margin-left: 0; }

/* ---------- Mobile ------------------------------------------------- */
@media (max-width: 768px) {
  .lz-side { transform: translateX(-100%); }
  .lz-side__close { display: flex; }
  .lz-app { margin-left: 0; }

  body.is-side-open .lz-side { transform: translateX(0); }
  body.is-side-open .lz-scrim { display: block; }
}

/* ==========================================================================
   COMMAND PALETTE
   ========================================================================== */
.lz-cmdk {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  backdrop-filter: blur(3px);
}
.lz-cmdk.is-open { display: flex; }

.lz-cmdk__box {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  width: 560px;
  max-width: calc(100vw - 32px);
  overflow: hidden;
}

.lz-cmdk__search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-border);
}
.lz-cmdk__icon { font-size: 16px; color: var(--c-muted); flex-shrink: 0; }
.lz-cmdk__search input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-size: 15px;
  color: var(--c-text);
}
.lz-cmdk__esc {
  font-size: 11px;
  background: var(--c-surface-2);
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--c-muted);
  cursor: pointer;
  flex-shrink: 0;
}

.lz-cmdk__list {
  max-height: 380px;
  overflow-y: auto;
  padding: 6px;
}
.lz-cmdk__section {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--c-muted);
  padding: 8px 10px 4px;
}
.lz-cmdk__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--c-text);
  font-size: 13.5px;
  text-decoration: none;
}
.lz-cmdk__item:hover, .lz-cmdk__item.is-selected { background: var(--c-surface-2); color: var(--c-text); }
.lz-cmdk__item .bi { font-size: 14px; color: var(--c-muted); flex-shrink: 0; }
.lz-cmdk__empty { padding: 20px; text-align: center; color: var(--c-muted); font-size: 13px; }

/* ==========================================================================
   AUTH PAGE (login.html)
   ========================================================================== */
body.lz--auth {
  background: var(--c-bg);
  min-height: 100vh;
}

.lz-auth {
  display: flex;
  min-height: 100vh;
}

/* Left: form panel */
.lz-auth__form {
  flex: 0 0 480px;
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border-right: 1px solid var(--c-border);
}

.lz-auth__top {
  padding: 20px 32px;
  border-bottom: 1px solid var(--c-border);
}
.lz-auth__brandtag {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--c-text);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.lz-auth__brandtag:hover { color: var(--c-text); }
.lz-auth__brandtag .lz-brand__mark { width: 24px; height: 24px; color: var(--c-accent); }
.lz-auth__brandtag em { font-style: italic; font-family: 'Instrument Serif', serif; font-weight: 400; color: var(--c-accent); }

.lz-auth__form-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.lz-auth-card {
  width: 100%;
  max-width: 380px;
}
.lz-auth-card h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.04em;
  margin-bottom: 6px;
}
.lz-auth-card h1 em { font-style: italic; font-family: 'Instrument Serif', serif; font-weight: 400; }
.lz-auth-sub { font-size: 14px; color: var(--c-muted); margin-bottom: 24px; }
.lz-auth-foot { margin-top: 20px; font-size: 11.5px; color: var(--c-muted); text-align: center; }

.lz-auth__bottom {
  padding: 14px 32px;
  border-top: 1px solid var(--c-border);
  font-size: 12px;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Right: showcase panel */
.lz-show {
  flex: 1;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #312e81 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 40px;
}

.lz-show__glow {
  position: absolute;
  top: -120px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,.35) 0%, transparent 70%);
  pointer-events: none;
}
.lz-show__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.lz-show__head { position: relative; z-index: 1; margin-bottom: 32px; }
.lz-show__tag {
  display: inline-block;
  background: rgba(99,102,241,.25);
  border: 1px solid rgba(99,102,241,.4);
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
}
.lz-show__title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.2;
}
.lz-show__title em { font-style: italic; font-family: 'Instrument Serif', serif; font-weight: 400; color: #a5b4fc; }
.lz-show__sub { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.6; }

/* Decision card */
.lz-show__card {
  position: relative; z-index: 1;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 18px 20px;
  backdrop-filter: blur(8px);
  margin-bottom: 16px;
}
.lz-show__card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.lz-show__eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 4px; }
.lz-show__pan { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.9); }

.lz-show__badge {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 6px;
}
.lz-show__badge--approved { background: #d1fae5; color: #065f46; }
.lz-show__badge--rejected { background: #fee2e2; color: #991b1b; }

.lz-show__metrics { display: flex; gap: 20px; margin-bottom: 14px; }
.lz-show__metric-label { font-size: 10.5px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.lz-show__metric-val { font-size: 20px; font-weight: 700; color: #ffffff; font-family: 'Geist Mono', monospace; }
.lz-show__metric-val--accent { color: #a5b4fc; }

.lz-show__rules { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.lz-show__rule {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; padding: 3px 8px; border-radius: 6px;
}
.lz-show__rule--pass { background: rgba(16,185,129,.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,.25); }
.lz-show__rule--fail { background: rgba(239,68,68,.15); color: #fca5a5; border: 1px solid rgba(239,68,68,.25); }

.lz-show__foot { display: flex; gap: 16px; font-size: 11.5px; color: rgba(255,255,255,.4); }
.lz-show__foot .bi { margin-right: 3px; }

/* Floating chips */
.lz-show__floats { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.lz-show__chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
}

.lz-dot { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; display: inline-block; }
.lz-dot--ok { background: #22c55e; }
.lz-dot--warn { background: #f59e0b; }

/* Stats row at bottom */
.lz-show__foot-line {
  position: relative; z-index: 1;
  display: flex; gap: 24px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.lz-show__stat { display: flex; flex-direction: column; }
.lz-show__stat strong { font-size: 18px; font-weight: 800; color: #ffffff; }
.lz-show__stat span { font-size: 11px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .05em; }

/* Auth mobile collapse */
@media (max-width: 860px) {
  .lz-show { display: none; }
  .lz-auth__form { flex: 1; border-right: none; }
}
@media (max-width: 480px) {
  .lz-auth__form { flex: 0 0 auto; min-height: 100vh; }
  .lz-auth__form-inner { padding: 24px 20px; }
}

/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--rad);
  box-shadow: var(--shadow-sm);
}
.card-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
  border-radius: var(--rad) var(--rad) 0 0;
  font-size: 13.5px;
}
.card-body { padding: 16px; }

/* ==========================================================================
   OUTCOME BADGES
   ========================================================================== */
.outcome-APPROVED       { background: #d1fae5; color: #065f46 !important; border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 700; display: inline-block; }
.outcome-REJECTED       { background: #fee2e2; color: #991b1b !important; border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 700; display: inline-block; }
.outcome-HARD_REJECTED  { background: #1e1b4b; color: #a5b4fc !important; border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 700; display: inline-block; }
.outcome-MANUAL_REVIEW  { background: #fef3c7; color: #78350f !important; border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 700; display: inline-block; }
.outcome-BANKING_REVIEW { background: #dbeafe; color: #1e3a8a !important; border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 700; display: inline-block; }

/* ==========================================================================
   TOGGLE SWITCH
   ========================================================================== */
.lz-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.lz-switch__input { display: none; }
.lz-switch__track {
  position: relative;
  width: 36px; height: 20px;
  background: #d1d5db;
  border-radius: 99px;
  transition: background .18s;
  flex-shrink: 0;
}
.lz-switch__input:checked + .lz-switch__track { background: var(--c-accent); }
.lz-switch__thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .18s;
}
.lz-switch__input:checked + .lz-switch__track .lz-switch__thumb { transform: translateX(16px); }
.lz-switch__label { font-size: 13px; color: var(--c-muted); }

/* ==========================================================================
   RULE IMPACT BADGES
   ========================================================================== */
.impact-hard_reject   { background: #1e1b4b; color: #a5b4fc; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; }
.impact-reject        { background: #fee2e2; color: #991b1b; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; }
.impact-banking_review{ background: #dbeafe; color: #1e3a8a; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; }
.impact-manual_review { background: #fef3c7; color: #78350f; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; }
.impact-warn          { background: #f3f4f6; color: #374151; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; }

/* ==========================================================================
   TABLES
   ========================================================================== */
.table { font-size: 13.5px; }
.table th { font-weight: 600; color: var(--c-muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; border-color: var(--c-border); }
.table td { border-color: var(--c-border); vertical-align: middle; }
.table-hover tbody tr:hover td { background: var(--c-surface-2); }

/* ==========================================================================
   FORM CONTROLS
   ========================================================================== */
.form-control, .form-select {
  font-size: 13.5px;
  border-color: var(--c-border);
  border-radius: 8px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.form-label { font-size: 13px; font-weight: 500; margin-bottom: 4px; }

/* ==========================================================================
   MISC UTILITIES
   ========================================================================== */
.nav-tabs .nav-link { font-size: 13.5px; color: var(--c-muted); border: none; border-bottom: 2px solid transparent; border-radius: 0; padding: 8px 14px; }
.nav-tabs .nav-link.active { color: var(--c-accent); border-bottom-color: var(--c-accent); background: none; }
.nav-tabs { border-bottom: 1px solid var(--c-border); }
.tab-pane { padding-top: 12px; }

.alert { border-radius: 10px; }
.badge { border-radius: 6px; font-weight: 600; }

pre { background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 14px; font-size: 12.5px; overflow-x: auto; }

.page-link { border-radius: 7px !important; font-size: 13px; }
.page-item.active .page-link { background: var(--c-accent); border-color: var(--c-accent); }

/* Pre/code copy wrapper */
.lz-pre-wrap { position: relative; }
.lz-copy-btn {
  position: absolute; top: 8px; right: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.75); border-radius: 6px;
  padding: 3px 8px; font-size: 11px; cursor: pointer;
  transition: background .12s;
}
.lz-copy-btn:hover { background: rgba(255,255,255,.2); }

/* ==========================================================================
   PREMIUM LAYER (2026-10) — softer surfaces, smoother motion, mobile polish.
   Overrides the base rules above; keep class names unchanged.
   ========================================================================== */
:root {
  --rad: 14px;
  --c-accent: #5b5bf0;
  --c-accent-2: #8b8cf8;
  --c-accent-soft: #eef0ff;
  --c-bg: #f5f6fa;
  --c-border: #e6e8f0;
  --c-border-2: #d5d9e4;
  --c-ok: #10b981;   --c-ok-soft: #e7f8f1;   --c-ok-ink: #047857;
  --c-warn: #f59e0b; --c-warn-soft: #fef5e4; --c-warn-ink: #b45309;
  --c-bad: #f43f5e;  --c-bad-soft: #fdecef;  --c-bad-ink: #be123c;
  --c-info: #0ea5e9; --c-info-soft: #e6f5fd; --c-info-ink: #0369a1;
  --c-hard: #312e81; --c-hard-soft: #e9e8fb; --c-hard-ink: #3730a3;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.04);
  --shadow-md: 0 8px 24px -6px rgba(16,24,40,.10), 0 2px 6px rgba(16,24,40,.04);
  --shadow-lg: 0 24px 60px -16px rgba(16,24,40,.22), 0 6px 16px rgba(16,24,40,.06);
  --ease: cubic-bezier(.22,1,.36,1);
}

body.lz {
  background:
    radial-gradient(1200px 520px at 100% -10%, rgba(91,91,240,.07), transparent 60%),
    radial-gradient(900px 480px at -10% 110%, rgba(16,185,129,.05), transparent 60%),
    var(--c-bg);
  background-attachment: fixed;
}

/* Sidebar */
.lz-side { background: linear-gradient(180deg, #0b0b12 0%, #0a0a0f 60%, #0d0c1d 100%); }
.lz-nav__item { border-radius: 10px; transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.lz-nav__item:hover { transform: translateX(2px); }
.lz-nav__item.is-active {
  background: linear-gradient(90deg, rgba(91,91,240,.32), rgba(91,91,240,.08));
  color: #c7c8ff;
  box-shadow: inset 2px 0 0 #8b8cf8;
}
.lz-cmdk-trigger { border-radius: 10px; }

/* Topbar: glass */
.lz-top { background: rgba(255,255,255,.72); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom-color: rgba(230,232,240,.8); }
.lz-user__btn { border-radius: 12px; border-color: var(--c-border); background: rgba(255,255,255,.7); }
.lz-user__avatar { border-radius: 9px; background: linear-gradient(135deg, #5b5bf0, #8b5cf6); }
.lz-pop { border-radius: 14px; box-shadow: var(--shadow-lg); }

/* Cards */
.card { border-radius: var(--rad); border-color: var(--c-border); box-shadow: var(--shadow-sm); transition: box-shadow .25s var(--ease), border-color .25s var(--ease); overflow: hidden; }
.card:hover { box-shadow: var(--shadow-md); }
.card-header { background: transparent; border-bottom-color: var(--c-border); padding: 14px 18px; border-radius: var(--rad) var(--rad) 0 0; }
.card-body { padding: 18px; }
details.card > summary { list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }

/* Buttons */
.btn { border-radius: 10px; font-weight: 500; font-size: 13.5px; padding: .5rem .95rem; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, border-color .18s, color .18s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { border-radius: 9px; padding: .32rem .7rem; font-size: 12.5px; }
.btn-primary { background: linear-gradient(135deg, #5b5bf0, #7c5cf6); border: 0; box-shadow: 0 6px 16px -6px rgba(91,91,240,.55); }
.btn-primary:hover, .btn-primary:focus { background: linear-gradient(135deg, #4f4fe6, #6f4ff0); box-shadow: 0 10px 22px -8px rgba(91,91,240,.6); transform: translateY(-1px); }
.btn-outline-primary { color: var(--c-accent); border-color: rgba(91,91,240,.35); background: rgba(91,91,240,.04); }
.btn-outline-primary:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.btn-outline-secondary { border-color: var(--c-border-2); color: #475569; background: #fff; }
.btn-outline-secondary:hover { background: var(--c-surface-2); color: var(--c-text); border-color: var(--c-border-2); }
.btn-light { background: var(--c-surface-2); border-color: transparent; }
.btn:focus-visible { outline: 2px solid var(--c-accent-2); outline-offset: 2px; box-shadow: none; }

/* Forms */
.form-control, .form-select { border-radius: 10px; padding: .55rem .8rem; background-color: #fff; transition: border-color .18s, box-shadow .18s; }
.form-control-sm, .form-select-sm { border-radius: 8px; padding: .35rem .6rem; }
.form-control:focus, .form-select:focus { border-color: var(--c-accent-2); box-shadow: 0 0 0 4px rgba(91,91,240,.12); }
.form-check-input:checked { background-color: var(--c-accent); border-color: var(--c-accent); }

/* Tables */
.table { --bs-table-bg: transparent; }
.table th { font-size: 11px; letter-spacing: .06em; padding-top: 12px; padding-bottom: 12px; background: rgba(245,246,250,.7); }
.table td { padding-top: 11px; padding-bottom: 11px; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover > td { background: rgba(91,91,240,.035); }

/* Badges & outcomes — soft pills */
.badge { border-radius: 999px; font-weight: 600; padding: .38em .7em; }
.outcome-APPROVED, .outcome-REJECTED, .outcome-HARD_REJECTED, .outcome-MANUAL_REVIEW, .outcome-BANKING_REVIEW { border-radius: 999px; padding: 3px 10px; font-size: 11.5px; letter-spacing: .01em; }
.outcome-APPROVED { background: var(--c-ok-soft); color: var(--c-ok-ink) !important; }
.outcome-REJECTED { background: var(--c-bad-soft); color: var(--c-bad-ink) !important; }
.outcome-HARD_REJECTED { background: var(--c-hard-soft); color: var(--c-hard-ink) !important; }
.outcome-MANUAL_REVIEW { background: var(--c-warn-soft); color: var(--c-warn-ink) !important; }
.outcome-BANKING_REVIEW { background: var(--c-info-soft); color: var(--c-info-ink) !important; }
.alert { border-radius: 12px; border: 1px solid transparent; }
.alert-success { background: var(--c-ok-soft); color: var(--c-ok-ink); border-color: rgba(16,185,129,.2); }
.alert-danger { background: var(--c-bad-soft); color: var(--c-bad-ink); border-color: rgba(244,63,94,.2); }
.alert-info { background: var(--c-accent-soft); color: #3730a3; border-color: rgba(91,91,240,.18); }
.alert-warning { background: var(--c-warn-soft); color: var(--c-warn-ink); border-color: rgba(245,158,11,.25); }
pre { border-radius: 12px; }
.progress { border-radius: 999px; background: var(--c-surface-2); }
.progress-bar { background: linear-gradient(90deg, #5b5bf0, #8b5cf6); }

/* Page headings inside content */
.lz-wrap > h2, .lz-wrap > h3 { letter-spacing: -.02em; font-weight: 700; }

/* Mobile polish */
@media (max-width: 768px) {
  .lz-wrap { padding: 16px; }
  .lz-top { padding: 0 12px; }
  .card-body { padding: 14px; }
  .card-header { padding: 12px 14px; }
  .lz-foot { padding: 14px 16px; }
  .btn { padding: .55rem .9rem; }
}

/* ==========================================================================
   AUTOMATED UNDERWRITING DASHBOARD (uw-*)
   ========================================================================== */
.uw { display: flex; flex-direction: column; gap: 18px; }

@keyframes uwRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.uw-rise { animation: uwRise .6s var(--ease) both; animation-delay: calc(var(--d, 0) * 60ms); }

/* Hero */
.uw-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1fr minmax(240px, 300px); gap: 28px; align-items: end;
  padding: 30px 32px; border-radius: 22px; color: #e9e9ff;
  background:
    radial-gradient(600px 300px at 85% -20%, rgba(139,92,246,.55), transparent 65%),
    radial-gradient(500px 260px at 10% 120%, rgba(14,165,233,.28), transparent 60%),
    linear-gradient(135deg, #0c0c1d 0%, #16153a 55%, #1d1b4f 100%);
  box-shadow: 0 30px 60px -30px rgba(29,27,79,.7);
}
.uw-hero__grid { position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: radial-gradient(ellipse at 70% 0%, #000 20%, transparent 75%); }
.uw-hero__glow { position: absolute; z-index: -1; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,140,248,.45), transparent 70%); filter: blur(10px); animation: uwFloat 9s ease-in-out infinite; }
@keyframes uwFloat { 50% { transform: translate(-30px, 24px); } }
.uw-live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: #c7c8ff;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.uw-live__dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: uwPing 2.2s infinite; }
@keyframes uwPing { 70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.uw-hero__title { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin: 14px 0 10px; color: #fff; }
.uw-hero__title em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.01em;
  background: linear-gradient(90deg, #c7c8ff, #a5f3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.uw-hero__sub { color: rgba(233,233,255,.72); font-size: 14.5px; max-width: 560px; margin: 0 0 22px; }
.uw-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.uw-hero__side { display: grid; gap: 10px; }
.uw-policy { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(10px); }
.uw-policy__label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: rgba(233,233,255,.5); }
.uw-policy__name { font-weight: 600; color: #fff; font-size: 14.5px; }
a.uw-policy__name:hover { color: #c7c8ff; }
.uw-policy__meta { font-size: 12px; color: rgba(233,233,255,.6); }
.uw-c-ok { color: #34d399; } .uw-c-warn { color: #fbbf24; }

/* Buttons (dashboard) */
.uw-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s; }
.uw-btn:hover { transform: translateY(-1px); }
.uw-btn--sm { padding: 7px 12px; font-size: 12.5px; border-radius: 10px; }
.uw-btn--primary { color: #fff; background: linear-gradient(135deg, #6366f1, #8b5cf6); box-shadow: 0 10px 24px -10px rgba(139,92,246,.9), inset 0 1px 0 rgba(255,255,255,.2); }
.uw-btn--primary:hover { color: #fff; box-shadow: 0 14px 30px -10px rgba(139,92,246,1), inset 0 1px 0 rgba(255,255,255,.25); }
.uw-btn--glass { color: #e9e9ff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); backdrop-filter: blur(8px); }
.uw-btn--glass:hover { color: #fff; background: rgba(255,255,255,.14); }
.uw-btn--soft { color: var(--c-accent); background: var(--c-accent-soft); }
.uw-btn--soft:hover { color: #fff; background: var(--c-accent); }
.uw-btn--ghost { color: #475569; border-color: var(--c-border); background: #fff; }
.uw-btn--ghost:hover { color: var(--c-text); border-color: var(--c-border-2); }

/* KPIs */
.uw-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.uw-kpi { position: relative; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.85); border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); transition: transform .25s var(--ease), box-shadow .25s var(--ease); overflow: hidden; }
.uw-kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.uw-kpi__icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 17px; margin-bottom: 14px; }
.uw-kpi__label { font-size: 12px; color: var(--c-muted); font-weight: 500; }
.uw-kpi__value { font-size: 30px; font-weight: 750; letter-spacing: -.03em; line-height: 1.15; margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.uw-kpi__foot { font-size: 12px; color: var(--c-muted); }
.uw-kpi__foot strong { color: var(--c-ok-ink); }
.uw-tone-accent { background: var(--c-accent-soft); color: var(--c-accent); }
.uw-tone-ok { background: var(--c-ok-soft); color: var(--c-ok-ink); }
.uw-tone-bad { background: var(--c-bad-soft); color: var(--c-bad-ink); }
.uw-tone-info { background: var(--c-info-soft); color: var(--c-info-ink); }
.uw-tone-warn { background: var(--c-warn-soft); color: var(--c-warn-ink); }

/* Panels */
.uw-row { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 14px; }
.uw-panel { padding: 20px; border-radius: 18px; background: rgba(255,255,255,.88); border: 1px solid var(--c-border); box-shadow: var(--shadow-sm); min-width: 0; }
.uw-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.uw-panel__title { font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.uw-panel__sub { font-size: 12px; color: var(--c-muted); margin: 2px 0 0; }
.uw-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 10px; color: var(--c-muted); font-size: 13px; text-align: center; }
.uw-empty .bi { font-size: 26px; opacity: .45; }

/* Legend + swatches */
.uw-legend { display: flex; gap: 14px; font-size: 12px; color: var(--c-muted); flex-wrap: wrap; }
.uw-legend span { display: inline-flex; align-items: center; gap: 6px; }
.uw-sw { width: 9px; height: 9px; border-radius: 3px; display: inline-block; flex-shrink: 0; }
.uw-sw--ok, .uw-bg-ok { background: var(--c-ok); }
.uw-sw--warn, .uw-bg-warn { background: var(--c-warn); }
.uw-sw--bad, .uw-bg-bad { background: var(--c-bad); }
.uw-sw--hard, .uw-bg-hard { background: var(--c-hard); }
.uw-sw--info, .uw-bg-info { background: var(--c-info); }
.uw-sw--muted, .uw-bg-muted { background: #cbd2e1; }

/* Chart */
.uw-chart { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 8px; align-items: end; height: 220px; padding-top: 8px; }
.uw-chart__col { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 100%; outline: none; }
.uw-chart__bar { width: 100%; max-width: 30px; height: max(var(--h), 2%); display: flex; flex-direction: column; border-radius: 8px; overflow: hidden;
  background: var(--c-surface-2); transform-origin: bottom; animation: uwGrow .8s var(--ease) both; animation-delay: calc(var(--i) * 35ms + 200ms);
  transition: filter .2s, transform .2s var(--ease); }
@keyframes uwGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.uw-seg { display: block; min-height: 0; }
.uw-seg--ok { background: linear-gradient(180deg, #34d399, #10b981); }
.uw-seg--warn { background: linear-gradient(180deg, #fcd34d, #f59e0b); }
.uw-seg--muted { background: linear-gradient(180deg, #e2e6ef, #cbd2e1); }
.uw-chart__x { font-size: 11px; color: var(--c-muted); white-space: nowrap; }
.uw-chart__x.is-today { color: var(--c-accent); font-weight: 600; }
.uw-chart__col:hover .uw-chart__bar, .uw-chart__col:focus .uw-chart__bar { filter: saturate(1.2) brightness(1.03); transform: scaleX(1.08); }
.uw-chart__tip { position: absolute; bottom: calc(100% - 6px); left: 50%; transform: translate(-50%, 6px); opacity: 0; pointer-events: none;
  background: #0f0f1f; color: #e9e9ff; font-size: 11.5px; line-height: 1.45; padding: 8px 10px; border-radius: 10px; white-space: nowrap; z-index: 5;
  box-shadow: var(--shadow-lg); transition: opacity .18s, transform .18s var(--ease); }
.uw-chart__tip strong { display: block; color: #fff; }
.uw-chart__col:hover .uw-chart__tip, .uw-chart__col:focus .uw-chart__tip { opacity: 1; transform: translate(-50%, 0); }
.uw-chart__col:first-child .uw-chart__tip { left: 0; transform: translate(0, 6px); }
.uw-chart__col:last-child .uw-chart__tip { left: auto; right: 0; transform: translate(0, 6px); }
.uw-chart__col:first-child:hover .uw-chart__tip, .uw-chart__col:last-child:hover .uw-chart__tip { transform: translate(0, 0); }

/* Outcome mix */
.uw-mixbar { display: flex; gap: 3px; height: 12px; border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.uw-mixbar__seg { min-width: 4px; transition: filter .2s; }
.uw-mixbar__seg:hover { filter: brightness(1.1); }
.uw-mix { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.uw-mix li { display: grid; grid-template-columns: 1fr auto 56px; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; transition: background .15s; }
.uw-mix li:hover { background: var(--c-surface-2); }
.uw-mix__name { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; }
.uw-mix__val { font-weight: 650; font-variant-numeric: tabular-nums; }
.uw-mix__pct { text-align: right; font-size: 12px; color: var(--c-muted); font-variant-numeric: tabular-nums; }

/* Feed */
.uw-feed { display: flex; flex-direction: column; gap: 2px; }
.uw-feed__row { display: grid; grid-template-columns: 10px minmax(0, 1fr) 64px 56px 118px; align-items: center; gap: 14px; padding: 11px 12px;
  border-radius: 12px; color: var(--c-text); transition: background .15s, transform .2s var(--ease); }
.uw-feed__row:hover { background: rgba(91,91,240,.05); color: var(--c-text); transform: translateX(2px); }
.uw-feed__dot { width: 8px; height: 8px; border-radius: 50%; }
.uw-feed__main { display: flex; flex-direction: column; min-width: 0; }
.uw-feed__who { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: capitalize; }
.uw-feed__meta { font-size: 12px; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uw-feed__score { display: flex; flex-direction: column; align-items: flex-end; font-weight: 650; font-variant-numeric: tabular-nums; font-size: 14px; line-height: 1.1; }
.uw-feed__score small { font-size: 10px; font-weight: 500; color: var(--c-muted); text-transform: uppercase; letter-spacing: .06em; }
.uw-pill { justify-self: end; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.uw-pill--ok { background: var(--c-ok-soft); color: var(--c-ok-ink); }
.uw-pill--warn { background: var(--c-warn-soft); color: var(--c-warn-ink); }
.uw-pill--bad { background: var(--c-bad-soft); color: var(--c-bad-ink); }
.uw-pill--hard { background: var(--c-hard-soft); color: var(--c-hard-ink); }
.uw-pill--info { background: var(--c-info-soft); color: var(--c-info-ink); }
.uw-pill--muted { background: var(--c-surface-2); color: var(--c-muted); }

/* Engine setup */
.uw-stack { display: grid; gap: 8px; }
.uw-stat { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--c-border); color: var(--c-text); background: #fff;
  transition: border-color .2s, box-shadow .2s var(--ease), transform .2s var(--ease); }
.uw-stat:hover { color: var(--c-text); border-color: rgba(91,91,240,.35); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.uw-stat__icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
.uw-stat__text { flex: 1; font-size: 13px; color: var(--c-muted); }
.uw-stat__text strong { color: var(--c-text); font-size: 15px; margin-right: 4px; font-variant-numeric: tabular-nums; }
.uw-stat__go { color: var(--c-border-2); transition: color .2s, transform .2s var(--ease); }
.uw-stat:hover .uw-stat__go { color: var(--c-accent); transform: translateX(2px); }
.uw-stack__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* Responsive */
@media (max-width: 1200px) {
  .uw-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
  .uw-row { grid-template-columns: 1fr; }
  .uw-hero { grid-template-columns: 1fr; align-items: start; }
  .uw-hero__side { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .uw { gap: 12px; }
  .uw-hero { padding: 22px 18px; border-radius: 18px; }
  .uw-hero__sub { font-size: 13.5px; }
  .uw-hero__side { grid-template-columns: 1fr; }
  .uw-hero__actions .uw-btn { flex: 1 1 auto; justify-content: center; }
  .uw-hero__actions .uw-btn--primary { flex-basis: 100%; }
  .uw-kpis { gap: 10px; }
  .uw-kpi { padding: 14px; border-radius: 16px; }
  .uw-kpi__icon { width: 30px; height: 30px; font-size: 15px; margin-bottom: 10px; }
  .uw-kpi__value { font-size: 24px; }
  .uw-panel { padding: 16px; border-radius: 16px; }
  .uw-chart { gap: 4px; height: 180px; }
  .uw-chart__x { font-size: 9.5px; }
  .uw-chart__col:nth-child(odd):not(:last-child) .uw-chart__x { visibility: hidden; }
  .uw-feed__row { grid-template-columns: 8px minmax(0, 1fr) auto; grid-template-areas: "dot main pill" ". scores scores"; row-gap: 6px; padding: 12px 8px; }
  .uw-feed__dot { grid-area: dot; }
  .uw-feed__main { grid-area: main; }
  .uw-pill { grid-area: pill; }
  .uw-feed__score { display: inline; font-size: 12.5px; }
  .uw-feed__score small { margin-left: 3px; }
  .uw-feed__score--bureau { grid-area: scores; }
  .uw-feed__score--risk { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .uw-rise, .uw-chart__bar, .uw-hero__glow, .uw-live__dot { animation: none !important; }
  .uw-btn, .uw-kpi, .uw-stat, .uw-feed__row, .lz-nav__item { transition: none !important; }
}

/* Light badges: Bootstrap 5.3 renders white text on bg-light — make them legible */
.badge.bg-light { background: var(--c-surface-2) !important; color: #475569 !important; border: 1px solid var(--c-border); }
.btn { white-space: nowrap; }
