:root {
  --ink: #0b1f3a;
  --muted: #6d7c91;
  --line: #dfe7f1;
  --line-strong: #c9d7e7;
  --paper: #ffffff;
  --canvas: #f5f9fd;
  --blue: #1769e0;
  --blue-dark: #0b4fba;
  --cyan: #00a8c7;
  --violet: #7667ed;
  --green: #1b9d6c;
  --amber: #eaa129;
  --red: #e05260;
  --shadow: 0 16px 44px rgba(40, 78, 121, .09);
  --sidebar: 258px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  background-image:
    radial-gradient(circle at 80% -10%, rgba(0, 168, 199, .10), transparent 28rem),
    radial-gradient(circle at 5% 95%, rgba(118, 103, 237, .07), transparent 30rem);
}

button, input, select, textarea { font: inherit; }
.d-none { display: none !important; }

.access-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 32px 20px;
  background: linear-gradient(135deg, #f7fbff 0%, #eff8ff 50%, #fafaff 100%);
}
.gate-grid {
  position: absolute;
  inset: 0;
  opacity: .65;
  background-image: linear-gradient(rgba(19, 93, 177, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(19, 93, 177, .055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}
.gate-grid::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 0, rgba(247,251,255,.75) 68%); }
.gate-orbit { position: absolute; width: 680px; height: 680px; border: 1px solid rgba(23,105,224,.10); border-radius: 50%; animation: orbit 28s linear infinite; }
.gate-orbit::before, .gate-orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(0,168,199,.11); inset: 90px; }
.gate-orbit::after { inset: 205px; border-color: rgba(118,103,237,.15); }
.gate-orbit span { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 25px rgba(23,105,224,.5); }
.gate-orbit span:nth-child(1) { top: 82px; left: 130px; }.gate-orbit span:nth-child(2) { right: 36px; top: 310px; background: var(--cyan); }.gate-orbit span:nth-child(3) { left: 205px; bottom: 16px; background: var(--violet); }
.gate-orbit i { position: absolute; width: 1px; height: 420px; background: linear-gradient(transparent, rgba(23,105,224,.13), transparent); left: 50%; top: 130px; transform: rotate(47deg); }
@keyframes orbit { to { transform: rotate(360deg); } }

.access-card {
  position: relative;
  z-index: 2;
  width: min(610px, 100%);
  padding: 48px;
  border: 1px solid rgba(186, 207, 229, .8);
  background: rgba(255,255,255,.88);
  border-radius: 24px;
  box-shadow: 0 32px 90px rgba(47, 89, 135, .16), inset 0 1px 0 #fff;
  backdrop-filter: blur(22px);
}
.brand-lockup, .sidebar-brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 20px; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 10px 22px rgba(23,105,224,.24); }
.brand-lockup strong, .sidebar-brand strong { display: block; color: var(--ink); letter-spacing: .22em; font-size: 17px; }
.brand-lockup small, .sidebar-brand small { display: block; margin-top: 2px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 9px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--blue); font-weight: 700; letter-spacing: .13em; text-transform: uppercase; font-size: 11px; }
.eyebrow i { width: 18px; height: 2px; display: inline-block; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 9px; }
.access-card h1 { margin: 16px 0 14px; color: var(--ink); font-size: clamp(38px, 7vw, 58px); line-height: .99; letter-spacing: -.045em; font-weight: 650; }
.access-card h1 span { color: var(--blue); }
.gate-copy { max-width: 480px; color: var(--muted); line-height: 1.7; font-size: 16px; margin-bottom: 30px; }
.form-label { color: #43546a; font-weight: 650; font-size: 12px; letter-spacing: .03em; }
.form-control, .form-select { border-color: var(--line-strong); color: var(--ink); box-shadow: none !important; }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23,105,224,.09) !important; }
.input-group-text { border-color: var(--line-strong); background: #f4f8fc; color: var(--blue); }
.btn { font-weight: 650; border-radius: 9px; }
.btn-primary { border-color: var(--blue); background: linear-gradient(135deg, var(--blue), var(--blue-dark)); box-shadow: 0 8px 18px rgba(23,105,224,.18); }
.btn-primary:hover { border-color: var(--blue-dark); background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline-primary { border-color: #bdd2ed; color: var(--blue); background: rgba(255,255,255,.7); }
.btn-outline-primary:hover { background: #edf5ff; border-color: var(--blue); color: var(--blue-dark); }
.form-error { margin-top: 12px; color: var(--red); font-size: 13px; font-weight: 600; }
.gate-foot { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 28px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.gate-foot span { display: flex; align-items: center; gap: 8px; }.gate-foot b { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(27,157,108,.09); }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1040; width: var(--sidebar); display: flex; flex-direction: column; padding: 22px 16px; border-right: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(18px); box-shadow: 8px 0 28px rgba(48,79,112,.04); transition: transform .25s ease; }
.sidebar-brand { padding: 0 8px 20px; border-bottom: 1px solid var(--line); }
.sidebar-nav { display: flex; flex-direction: column; gap: 5px; padding-top: 24px; }
.nav-caption { color: #95a2b3; text-transform: uppercase; letter-spacing: .15em; font-size: 9px; font-weight: 700; margin: 0 12px 8px; }
.sidebar .nav-link { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: #556579; font-weight: 600; font-size: 13px; text-align: left; transition: .18s ease; }
.sidebar .nav-link i { width: 20px; color: #8190a2; font-size: 16px; }.sidebar .nav-link:hover { background: #f3f7fb; color: var(--blue); }.sidebar .nav-link.active { color: var(--blue); background: linear-gradient(90deg, rgba(23,105,224,.11), rgba(0,168,199,.045)); box-shadow: inset 3px 0 0 var(--blue); }.sidebar .nav-link.active i { color: var(--blue); }
.nav-badge { margin-left: auto; min-width: 22px; height: 19px; padding: 0 6px; border-radius: 9px; display: grid; place-items: center; background: #fff0f1; color: var(--red); font-size: 10px; }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 16px 5px 0; border-top: 1px solid var(--line); }
.session-dot { display: flex; min-width: 0; align-items: center; gap: 10px; }.session-dot > i { width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px rgba(27,157,108,.10); }.session-dot span { min-width: 0; }.session-dot small, .session-dot strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }.session-dot small { color: var(--green); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }.session-dot strong { color: #556579; font-size: 11px; margin-top: 3px; }
.icon-button { border: 1px solid var(--line); color: #63748a; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: #fff; transition: .18s ease; }.icon-button:hover { color: var(--blue); border-color: #b5ceed; background: #f4f9ff; }

.workspace { flex: 1; margin-left: var(--sidebar); min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 1020; min-height: 72px; display: flex; align-items: center; gap: 18px; padding: 12px 28px; border-bottom: 1px solid var(--line); background: rgba(248,251,254,.91); backdrop-filter: blur(18px); }
.sidebar-toggle { display: none; }
.intelligence-search { width: min(780px, 100%); margin: 0 auto; display: grid; grid-template-columns: 130px 1fr auto; align-items: stretch; }
.intelligence-search .form-select { border-radius: 10px 0 0 10px; background-color: #eef5fd; border-right: 0; font-size: 12px; font-weight: 650; color: #44566c; }
.search-input { position: relative; }.search-input > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--blue); z-index: 2; }.search-input .form-control { height: 44px; padding-left: 42px; padding-right: 100px; border-radius: 0; background: rgba(255,255,255,.88); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }.source-pill { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); color: var(--cyan); background: #e9fafd; border: 1px solid #c2edf4; padding: 4px 7px; border-radius: 5px; font-weight: 800; font-size: 8px; letter-spacing: .08em; }
.intelligence-search .btn { border-radius: 0 10px 10px 0; padding: 0 20px; }.intelligence-search .btn i { margin-right: 7px; }
.top-actions { display: flex; align-items: center; gap: 12px; }.status-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; color: var(--green); background: #eefbf6; border: 1px solid #c8eddf; border-radius: 7px; font-size: 9px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }.status-chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.main-content { padding: 32px; max-width: 1720px; margin: 0 auto; }
.view { display: none; animation: fadeUp .3s ease both; }.view.active { display: block; } @keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }.page-heading h2 { margin: 8px 0 4px; color: var(--ink); font-size: 30px; font-weight: 650; letter-spacing: -.035em; }.page-heading p { margin: 0; color: var(--muted); font-size: 13px; }.heading-actions { display: flex; flex-wrap: wrap; gap: 8px; }.heading-actions .btn { font-size: 12px; }
.heading-search { display: flex; width: min(420px, 100%); }.heading-search .form-control { border-radius: 9px 0 0 9px; }.heading-search .btn { border-radius: 0 9px 9px 0; white-space: nowrap; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }.metric-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-card { min-height: 142px; display: flex; justify-content: space-between; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(247,251,255,.92)); box-shadow: var(--shadow); overflow: hidden; position: relative; }.metric-card::after { content: ""; position: absolute; width: 100px; height: 100px; border-radius: 50%; background: rgba(23,105,224,.035); right: -32px; bottom: -44px; }.metric-card span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }.metric-card strong { display: block; margin-top: 21px; color: var(--ink); font-size: 23px; letter-spacing: -.025em; }.metric-card small { display: block; margin-top: 5px; color: #8895a7; font-size: 10px; }.metric-card > i { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: #eaf3ff; font-size: 17px; }.metric-card > i.accent { color: var(--cyan); background: #e8f9fc; }.metric-card > i.warning { color: var(--amber); background: #fff7e8; }.metric-card > i.danger { color: var(--red); background: #fff0f1; }

.surface-card { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); overflow: hidden; }.surface-head { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }.surface-head span { display: block; color: #8a98aa; font-weight: 700; text-transform: uppercase; letter-spacing: .11em; font-size: 9px; }.surface-head h3 { margin: 4px 0 0; color: var(--ink); font-size: 15px; font-weight: 650; }.model-chip, .count-chip { color: var(--blue) !important; background: #edf5ff; border: 1px solid #d2e3f8; border-radius: 7px; padding: 5px 8px; font-family: ui-monospace, monospace; font-size: 9px !important; }
.graph-legend { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }.graph-legend b { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }.graph-legend b.company { background: var(--cyan); }.graph-legend b.beneficial { background: var(--violet); }
.network-canvas { height: 430px; width: 100%; background-image: radial-gradient(circle at center, rgba(0,168,199,.06), transparent 58%), linear-gradient(rgba(23,105,224,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(23,105,224,.035) 1px, transparent 1px); background-size: auto, 28px 28px, 28px 28px; }.network-canvas.full { height: calc(100vh - 225px); min-height: 520px; }.empty-canvas { display: grid; place-items: center; }.empty-state { width: min(390px, 80%); text-align: center; color: var(--muted); }.empty-state h4 { margin-top: 18px; color: var(--ink); font-size: 17px; }.empty-state p { line-height: 1.6; font-size: 12px; }.empty-orbit { width: 78px; height: 78px; margin: 0 auto; display: grid; place-items: center; position: relative; border: 1px solid #cee1f4; border-radius: 50%; color: var(--blue); font-size: 24px; }.empty-orbit::before { content: ""; position: absolute; inset: 8px; border: 1px dashed #bbd6ef; border-radius: 50%; animation: orbit 14s linear infinite; }
.network-canvas.mini { height: 310px; border: 1px solid var(--line); border-radius: 12px; }
.risk-empty { min-height: 430px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; text-align: center; }.risk-empty > p { max-width: 250px; margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }.risk-ring { --risk-color: var(--green); width: 145px; height: 145px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--risk-color) calc(var(--score) * 1%), #e8eef5 0); position: relative; }.risk-ring::before { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }.risk-ring span { z-index: 1; }.risk-ring strong { display: block; font-size: 38px; line-height: 1; color: var(--ink); }.risk-ring small { color: var(--muted); }.risk-band { margin: 14px 0 2px; color: var(--risk-color); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; }.driver-list { width: 100%; margin-top: 20px; text-align: left; }.driver { margin-top: 12px; }.driver div { display: flex; justify-content: space-between; color: #607087; font-size: 10px; }.driver .bar { display: block; height: 4px; margin-top: 6px; background: #e9eef4; border-radius: 4px; overflow: hidden; }.driver .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.chart-wrap { height: 290px; padding: 18px; }.raw-toggle { border: 0; color: var(--blue); background: transparent; font-weight: 700; font-size: 10px; }.raw-toggle i { margin-right: 5px; }.raw-drawer { display: none; max-height: 220px; overflow: auto; padding: 15px 20px; border-top: 1px solid var(--line); background: #f8fbfe; }.raw-drawer.show { display: block; }

.corvex-table { --bs-table-bg: transparent; --bs-table-color: #526278; margin: 0; }.corvex-table thead th { padding: 12px 18px; background: #f7fafe; border-color: var(--line); color: #8794a5; text-transform: uppercase; letter-spacing: .09em; font-size: 9px; font-weight: 750; white-space: nowrap; }.corvex-table tbody td { padding: 15px 18px; border-color: #edf1f6; vertical-align: middle; font-size: 12px; }.corvex-table tbody tr { transition: .15s ease; }.corvex-table tbody tr:hover { background: #f8fbff; }.entity-name { color: var(--ink); font-weight: 650; }.entity-meta { display: block; margin-top: 4px; color: #93a0b0; font-family: ui-monospace, monospace; font-size: 9px; }.status-badge, .risk-badge, .outcome-badge { display: inline-flex; align-items: center; padding: 5px 7px; border-radius: 6px; font-weight: 750; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }.status-registered, .outcome-success { color: var(--green); background: #eaf8f3; border: 1px solid #cdeee1; }.status-struckoff, .status-dissolved, .outcome-failure, .outcome-denied { color: var(--red); background: #fff0f2; border: 1px solid #f6d4d8; }.status-unknown, .outcome-partial { color: var(--amber); background: #fff7e7; border: 1px solid #f6e0b6; }.risk-low { color: var(--green); background: #eaf8f3; }.risk-moderate, .risk-elevated { color: var(--amber); background: #fff7e7; }.risk-high, .risk-critical { color: var(--red); background: #fff0f2; }.table-empty { text-align: center; padding: 50px 20px; color: #95a2b2; font-size: 12px; }
.mini-search { position: relative; width: 280px; }.mini-search i { position: absolute; z-index: 2; top: 50%; left: 11px; transform: translateY(-50%); color: #8d9aac; }.mini-search input { height: 35px; padding-left: 34px; font-size: 11px; }.pagination-strip { display: flex; justify-content: flex-end; gap: 6px; padding: 14px 18px; border-top: 1px solid var(--line); }.pagination-strip button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #67768a; font-size: 11px; }.pagination-strip button.active { color: #fff; background: var(--blue); border-color: var(--blue); }

.summary-block { padding: 24px; }.summary-block strong { display: block; color: var(--ink); font-size: 27px; }.summary-block p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }.centrality-list > div:not(.table-empty) { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid #edf1f5; }.centrality-list strong { color: #4e6076; font-size: 11px; }.centrality-list span { color: var(--blue); font-family: ui-monospace, monospace; font-size: 10px; }
.review-list { max-height: 680px; overflow: auto; }.review-item { padding: 18px 20px; border-bottom: 1px solid #edf1f5; }.review-item:last-child { border-bottom: 0; }.review-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }.review-item h4 { margin: 0; color: var(--ink); font-size: 12px; }.review-item code { display: block; margin-top: 7px; color: var(--red); white-space: pre-wrap; word-break: break-all; font-size: 10px; }.review-item p { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }.severity { padding: 4px 6px; border-radius: 5px; text-transform: uppercase; font-size: 8px; font-weight: 800; }.severity-high, .severity-critical { color: var(--red); background: #fff0f2; }.severity-medium { color: var(--amber); background: #fff7e7; }.resolution-score { color: var(--blue); font-family: ui-monospace, monospace; font-size: 18px; font-weight: 700; }.resolution-actions { display: flex; gap: 6px; margin-top: 12px; }.resolution-actions .btn { padding: 4px 8px; font-size: 9px; }

.integration-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; }.integration-card { min-height: 170px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }.integration-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--blue); background: #edf5ff; border-radius: 10px; font-size: 18px; }.integration-card h4 { margin: 19px 0 5px; font-size: 13px; }.integration-card p { margin: 0; min-height: 34px; color: var(--muted); font-size: 10px; line-height: 1.55; }.adapter-status { display: flex; align-items: center; gap: 7px; margin-top: 12px; color: var(--red); font-size: 9px; text-transform: uppercase; font-weight: 800; }.adapter-status.configured { color: var(--green); }.adapter-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }.skeleton-card { background: linear-gradient(90deg,#fff,#f2f6fa,#fff); background-size: 200%; animation: shimmer 1.5s infinite; } @keyframes shimmer { to { background-position: -200% 0; } }
.pipeline { display: grid; grid-template-columns: 1fr 35px 1fr 35px 1fr 35px 1fr 35px 1fr; align-items: center; padding: 28px; }.pipeline > div { min-height: 130px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg,#fff,#f5f9fd); text-align: center; }.pipeline > div b { position: absolute; top: 10px; left: 12px; color: #afbbc8; font-family: ui-monospace, monospace; font-size: 9px; }.pipeline > div i { color: var(--blue); font-size: 22px; }.pipeline > div strong { margin-top: 10px; font-size: 11px; }.pipeline > div small { margin-top: 4px; color: var(--muted); font-size: 9px; }.pipeline > span { height: 1px; background: linear-gradient(90deg,var(--blue),var(--cyan)); position: relative; }.pipeline > span::after { content: ""; position: absolute; right: -1px; top: -3px; border-left: 5px solid var(--cyan); border-top: 3px solid transparent; border-bottom: 3px solid transparent; }

.intelligence-loader { position: fixed; z-index: 2000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(240,247,253,.83); backdrop-filter: blur(14px); }.loader-card { width: min(590px,100%); padding: 38px; border: 1px solid #c9dced; border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: 0 35px 100px rgba(45,82,125,.20); text-align: center; }.loader-card h3 { margin: 16px 0 8px; font-size: 24px; letter-spacing: -.025em; }.loader-card > p { color: var(--muted); font-size: 12px; }.loader-visual { width: 110px; height: 110px; position: relative; margin: 0 auto 24px; border: 1px solid #c8dcf0; border-radius: 50%; animation: orbit 8s linear infinite; }.loader-visual > span { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }.loader-visual > span:nth-child(2) { top: 8px; left: 25px; }.loader-visual > span:nth-child(3) { right: 7px; top: 54px; background: var(--cyan); }.loader-visual > span:nth-child(4) { left: 26px; bottom: 7px; background: var(--violet); }.pulse-core { position: absolute; inset: 26px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg,var(--blue),var(--cyan)); box-shadow: 0 0 0 10px rgba(23,105,224,.08), 0 0 30px rgba(23,105,224,.3); animation: orbit 8s linear infinite reverse; }.loader-card .progress { height: 5px; margin: 22px 0 15px; background: #e6edf4; }.loader-card .progress-bar { background: linear-gradient(90deg,var(--blue),var(--cyan),var(--violet)); transition: width .6s ease; }.loader-stages { display: grid; grid-template-columns: repeat(5,1fr); gap: 5px; margin-top: 15px; }.loader-stages span { color: #a1adba; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }.loader-stages span.active { color: var(--blue); font-weight: 800; }.loader-card > small { display: block; margin-top: 22px; color: #a2adba; font-family: ui-monospace, monospace; font-size: 9px; }
.system-alert { position: fixed; z-index: 3000; top: 18px; left: 50%; transform: translateX(-50%); width: min(620px,calc(100% - 30px)); padding: 13px 16px; border-radius: 10px; color: #fff; background: var(--red); box-shadow: 0 12px 35px rgba(125,40,50,.22); font-size: 12px; font-weight: 650; }.system-alert.success { background: var(--green); }

.modal-content { border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 28px 80px rgba(32,67,105,.20); }.modal-header { align-items: flex-start; padding: 22px 24px; border-color: var(--line); }.modal-title { margin-top: 7px; font-size: 19px; }.modal-body { padding: 24px; }.modal-footer { border-color: var(--line); }.profile-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 22px; }.profile-metric { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #f8fbfe; }.profile-metric span { color: var(--muted); font-size: 9px; text-transform: uppercase; }.profile-metric strong { display: block; margin-top: 7px; color: var(--ink); font-size: 14px; }.profile-section { margin-top: 24px; }.profile-section > h4 { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; color: var(--blue); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }.profile-section > h4::before { content: ""; width: 18px; height: 2px; background: var(--blue); }.profile-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }.profile-detail { padding: 12px; border-bottom: 1px solid var(--line); }.profile-detail span { display: block; color: var(--muted); font-size: 9px; }.profile-detail strong { display: block; margin-top: 5px; color: #405168; font-size: 11px; }.timeline-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #edf1f5; }.timeline-dot { width: 10px; height: 10px; flex: 0 0 10px; margin-top: 4px; border: 2px solid var(--blue); background: #fff; border-radius: 50%; box-shadow: 0 0 0 5px rgba(23,105,224,.08); }.timeline-item h5 { margin: 0; font-size: 11px; }.timeline-item p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }.flag-card { padding: 13px; margin-bottom: 9px; border-left: 3px solid var(--amber); background: #fff9ed; border-radius: 0 8px 8px 0; }.flag-card.high, .flag-card.critical { border-color: var(--red); background: #fff2f3; }.flag-card strong { font-size: 11px; }.flag-card p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.entity-text-link { appearance: none; border: 0; padding: 0; color: var(--blue); background: transparent; font-weight: 700; text-align: left; cursor: pointer; }.entity-text-link:hover { color: var(--blue-dark); text-decoration: underline; }.candidate-vehicle-table { max-height: 430px; overflow: auto; }.enrichment-state { display: flex; align-items: center; gap: 10px; padding: 11px 14px; margin-bottom: 20px; color: #526b83; border: 1px solid #d5e6f7; border-radius: 10px; background: #f3f9ff; font-size: 11px; }.enrichment-state i { color: var(--blue); }.enrichment-state .btn { margin-left: auto; }.vehicle-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px; margin-bottom: 22px; border: 1px solid #d8e6f4; border-radius: 14px; background: linear-gradient(135deg,#f7fbff,#eef7ff); }.vehicle-hero span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }.vehicle-hero strong { display: block; margin-top: 7px; color: var(--ink); font-family: ui-monospace,monospace; font-size: 28px; letter-spacing: .08em; }.vehicle-profile-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px 16px; }.vehicle-profile-grid .profile-detail { min-width: 0; }.vehicle-profile-grid strong { overflow-wrap: anywhere; }

@media (max-width: 1250px) { .metric-grid { grid-template-columns: repeat(2,1fr); }.integration-grid { grid-template-columns: repeat(3,1fr); }.top-actions .status-chip { display: none; } }
@media (max-width: 992px) { .sidebar { transform: translateX(-102%); }.sidebar.open { transform: translateX(0); }.workspace { margin-left: 0; }.sidebar-toggle { display: grid; }.topbar { padding: 12px 16px; }.main-content { padding: 24px 18px; }.intelligence-search { margin: 0; }.top-actions { margin-left: auto; }.pipeline { grid-template-columns: 1fr; gap: 10px; }.pipeline > span { width: 1px; height: 18px; justify-self: center; }.pipeline > span::after { right: -3px; top: auto; bottom: -1px; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 5px solid var(--cyan); border-bottom: 0; }.network-canvas.full { height: 560px; } }
@media (max-width: 768px) { .access-card { padding: 34px 24px; }.gate-foot { flex-direction: column; gap: 8px; }.topbar { flex-wrap: wrap; }.intelligence-search { order: 3; grid-template-columns: 110px 1fr auto; flex: 1 0 100%; }.source-pill { display: none; }.search-input .form-control { padding-right: 12px; }.intelligence-search .btn span { display: none; }.page-heading { align-items: flex-start; flex-direction: column; }.heading-actions, .heading-search { width: 100%; }.heading-actions .btn { flex: 1; }.metric-grid, .metric-grid.compact, .integration-grid, .profile-metrics, .profile-grid, .vehicle-profile-grid { grid-template-columns: 1fr; }.graph-legend { display: none; }.chart-wrap { height: 250px; }.loader-stages { grid-template-columns: 1fr; text-align: left; }.loader-stages span { display: none; }.loader-stages span.active { display: block; }.main-content { padding: 20px 12px; }.vehicle-hero { align-items: flex-start; flex-direction: column; } }

@media print {
  .sidebar, .topbar, .heading-actions, .raw-toggle, .system-alert, .modal, #view-network, #view-entities, #view-quality, #view-audit, #view-integrations { display: none !important; }
  body, .workspace, .main-content { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  .view { display: none !important; }.view#view-dashboard { display: block !important; }
  .surface-card, .metric-card { box-shadow: none !important; break-inside: avoid; }
}

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