/* ============================================================
   LuxGap KYC/AML — LuxGap blue · navy ink · institutional / CSSF
   ============================================================ */
:root {
  --paper: #eef2f8;
  --paper-2: #e0e8f2;
  --card: #ffffff;
  --card-2: #f3f7fc;
  --ink: #14233b;
  --ink-2: #3d4d66;
  --muted: #7a899f;
  --line: #dde5ef;
  --line-2: #c6d2e1;
  --accent: #2a6fdb;
  --accent-ink: #1c5bb8;
  --accent-soft: #2a6fdb15;

  --low: #2f8f6b;
  --moderate: #c08a2e;
  --high: #d27a3c;
  --critical: #ce4848;

  --r: 9px;
  --r-sm: 6px;
  --shadow: 0 1px 2px #1a3a6b0f, 0 6px 22px -12px #1a3a6b26;
  --shadow-lg: 0 2px 6px #1a3a6b14, 0 18px 48px -20px #1a3a6b3a;

  --ui: "Hanken Grotesk", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #root { height: 100%; }
body {
  font-family: var(--ui);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input { font: inherit; }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }
.muted { color: var(--muted); }
.accent { color: var(--accent-ink) !important; }

/* ---- shared label ---- */
.mlabel {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ============================================================ APP SHELL */
.shell { display: flex; flex-direction: column; height: 100%; }
.app { flex: 1; min-height: 0; display: flex; background: var(--paper); }
.main { flex: 1; min-width: 0; height: 100%; overflow: hidden; display: flex; }

/* ---- demo banner ---- */
.demobar {
  flex-shrink: 0; display: flex; align-items: center; gap: 16px;
  padding: 9px 20px;
  background: linear-gradient(100deg, #102136 0%, #1c4e9e 60%, #2a6fdb 100%);
  color: #eaf1fb; position: relative; overflow: hidden;
}
.demobar::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 200% at 88% -40%, #ffffff22, transparent 60%);
  pointer-events: none;
}
.demobar__pill {
  flex-shrink: 0; font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: .14em; padding: 4px 9px; border-radius: 5px;
  background: #ffffff1f; color: #fff; border: 1px solid #ffffff33;
}
.demobar__text { flex: 1; font-size: 12.8px; line-height: 1.45; color: #d7e4f6; min-width: 0; }
.demobar__text strong { color: #fff; font-weight: 600; }
.demobar__cta {
  flex-shrink: 0; font-size: 12.5px; font-weight: 600; padding: 7px 15px; border-radius: 7px;
  background: #fff; color: var(--accent-ink); transition: transform .08s, background .14s; z-index: 1;
}
.demobar__cta:hover { background: #eaf1fb; }
.demobar__cta:active { transform: translateY(1px); }
.demobar__close {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 6px; font-size: 18px; line-height: 1;
  color: #cdddf2; display: grid; place-items: center; z-index: 1;
}
.demobar__close:hover { background: #ffffff1a; color: #fff; }
.demobar__reopen {
  flex-shrink: 0; display: flex; align-items: center; gap: 9px;
  padding: 6px 14px; font-size: 12px; font-weight: 500; color: #eaf1fb;
  background: linear-gradient(100deg, #102136, #1c4e9e);
}
.demobar__reopen .demobar__pill { font-size: 9px; }

.side {
  width: 244px; flex-shrink: 0; height: 100%;
  background: linear-gradient(180deg, #182c4a, #102136);
  color: #c5d3e6;
  display: flex; flex-direction: column;
  padding: 20px 14px;
  border-right: 1px solid #00000030;
}
.side__brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 22px; }
.side__mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  box-shadow: inset 0 0 0 1px #ffffff22;
}
.side__name { font-family: var(--serif); font-size: 17px; color: #eef4fb; line-height: 1.1; }
.side__mod { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: #8595ad; color: #8595ad; color: #8595ad; text-transform: uppercase; }
.side__nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side__cap { color: #6f819c; margin: 18px 8px 7px; }
.navitem {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: 7px;
  color: #aab9d0; font-size: 13.5px; font-weight: 500;
  text-align: left; transition: background .14s, color .14s;
}
.navitem span:nth-child(2) { flex: 1; }
.navitem:hover { background: #ffffff0d; color: #dfe9f5; }
.navitem.is-active { background: #ffffff14; color: #fff; }
.navitem.is-active svg { color: var(--accent); }
.navitem__k { font-family: var(--mono); font-size: 9.5px; color: #6f819c; letter-spacing: .04em; }
.navitem__star { color: var(--accent); font-size: 12px; }
.navitem.is-active .navitem__star { color: #7fb0ff; }
.side__foot { border-top: 1px solid #ffffff14; padding-top: 14px; margin-top: 8px; }
.side__user { display: flex; align-items: center; gap: 10px; padding: 4px; }
.side__avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: #284166; color: #cdddf2; display: grid; place-items: center;
  font-size: 12px; font-weight: 600; font-family: var(--mono);
}
.side__uname { font-size: 13px; color: #e3ecf7; font-weight: 500; }
.side__urole { font-size: 11px; color: #8595ad; }

/* ============================================================ SCREEN */
.screen { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100%; }
.screen__body { flex: 1; overflow-y: auto; padding: 26px 34px 60px; }

/* ---- topbar ---- */
.topbar {
  height: 58px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px 0 30px;
  border-bottom: 1px solid var(--line);
  background: #eef2f8dd; backdrop-filter: blur(8px);
}
.topbar__crumbs { display: flex; align-items: center; gap: 12px; }
.topbar__back {
  display: flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: var(--muted); padding: 5px 9px; border-radius: 6px;
}
.topbar__back:hover { background: var(--paper-2); color: var(--ink); }
.flip { transform: rotate(180deg); }
.crumb { font-size: 14px; color: var(--ink); display: inline-flex; align-items: center; gap: 12px; }
.crumb__sep { color: var(--line-2); }
.crumb__cur { font-weight: 600; }
.topbar__right { display: flex; align-items: center; gap: 12px; }
.topbar__search {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 11px; width: 268px; color: var(--muted);
}
.topbar__search input { border: none; background: none; outline: none; flex: 1; color: var(--ink); font-size: 13px; }
.topbar__search input::placeholder { color: var(--muted); }
.topbar__search kbd {
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 5px;
}
.aiclass { font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 20px; padding: 5px 11px; }

/* ============================================================ BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 9px 15px; border-radius: 8px; font-size: 13px; font-weight: 600;
  transition: background .14s, border-color .14s, transform .06s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 7px 12px; font-size: 12.5px; }
.btn--block { width: 100%; justify-content: center; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn--accent:hover { background: var(--accent-ink); }
.btn--ghost { background: var(--card); border: 1px solid var(--line-2); color: var(--ink-2); }
.btn--ghost:hover { background: var(--card-2); border-color: var(--line-2); color: var(--ink); }

/* ============================================================ CARD / SECTION */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.panel { padding: 20px 22px; }
.sec-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.sec-head__k { margin-bottom: 5px; }
.sec-head__title { font-family: var(--serif); font-size: 18px; font-weight: 560; letter-spacing: -.01em; }
.pill { font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-radius: 20px; }
.pill--count { background: var(--paper-2); color: var(--ink-2); }

/* ---- KV ---- */
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dotted var(--line-2); font-size: 13px; }
.kv:last-child { border-bottom: none; }
.kv__k { color: var(--muted); }
.kv__v { color: var(--ink); font-weight: 500; }

/* ============================================================ RISK BAND */
.band { display: inline-flex; align-items: center; gap: 7px; border-radius: 20px; font-weight: 600; white-space: nowrap; }
.band--sm { font-size: 11.5px; padding: 3px 9px; }
.band--md { font-size: 12.5px; padding: 4px 11px; }
.band--lg { font-size: 14px; padding: 6px 14px; }
.band__dot { width: 7px; height: 7px; border-radius: 50%; }
.band__num { font-family: var(--mono); font-weight: 600; }
.band--low { background: #2f8f6b1f; color: #1f6b4e; } .band--low .band__dot { background: var(--low); }
.band--moderate { background: #c08a2e22; color: #946616; } .band--moderate .band__dot { background: var(--moderate); }
.band--high { background: #d27a3c22; color: #a85619; } .band--high .band__dot { background: var(--high); }
.band--critical { background: #ce484820; color: #a8302e; } .band--critical .band__dot { background: var(--critical); }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.band-bg--low { background: var(--low); } .band-bg--moderate { background: var(--moderate); }
.band-bg--high { background: var(--high); } .band-bg--critical { background: var(--critical); }

/* ---- meter ---- */
.meter__track { position: relative; height: 6px; border-radius: 4px; overflow: visible; display: flex; width: 168px; }
.meter__seg { height: 100%; }
.meter__seg--low { width: 25%; background: #2f8f6b55; } .meter__seg--moderate { width: 25%; background: #c08a2e55; }
.meter__seg--high { width: 25%; background: #d27a3c55; } .meter__seg--critical { width: 25%; background: #ce484855; }
.meter__track > :first-child { border-radius: 4px 0 0 4px; } .meter__track > .meter__pin ~ .meter__seg:last-child, .meter__seg--critical { border-radius: 0 4px 4px 0; }
.meter__pin { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); border: 2px solid var(--card); box-shadow: 0 1px 3px #0003; }
.meter__pin--low { background: var(--low); } .meter__pin--moderate { background: var(--moderate); }
.meter__pin--high { background: var(--high); } .meter__pin--critical { background: var(--critical); }

/* ============================================================ COCKPIT */
.cockpit__hero { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; gap: 20px; }
.cockpit__hi { font-family: var(--serif); font-size: 30px; font-weight: 560; letter-spacing: -.02em; margin: 6px 0 6px; }
.cockpit__sub { color: var(--ink-2); font-size: 14.5px; max-width: 540px; }
.cockpit__sub strong { color: var(--critical); }

.kpis { display: grid; grid-template-columns: 1fr 1.6fr 1fr 1.1fr; gap: 16px; margin-bottom: 18px; }
.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.kpi--wide { gap: 12px; }
.kpi__big { font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1; margin-top: 2px; }
.kpi__foot { font-size: 12px; color: var(--muted); }
.kpi__row { display: flex; align-items: center; justify-content: space-between; }

.sparkline__area { fill: var(--accent-soft); }
.sparkline__line { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.sparkline__dot { fill: var(--accent); }

.bandbars { display: flex; flex-direction: column; gap: 12px; }
.bandbars__stack { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--paper-2); }
.bandbars__seg { height: 100%; }
.bandbars__legend { display: flex; gap: 16px; flex-wrap: wrap; }
.bandbars__item { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.bandbars__lbl { color: var(--ink-2); }
.bandbars__val { color: var(--ink); font-weight: 600; }

.cockpit__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }

/* queue */
.queue { display: flex; flex-direction: column; }
.queue__row { display: flex; align-items: center; gap: 13px; padding: 12px 8px; border-radius: 8px; text-align: left; border-bottom: 1px solid var(--line); transition: background .12s; }
.queue__row:last-child { border-bottom: none; }
.queue__row:hover { background: var(--card-2); }
.queue__prio { width: 4px; height: 34px; border-radius: 3px; flex-shrink: 0; }
.prio--critical { background: var(--critical); } .prio--high { background: var(--high); } .prio--medium { background: var(--moderate); }
.queue__main { flex: 1; min-width: 0; }
.queue__who { font-weight: 600; font-size: 14px; }
.queue__why { font-size: 12.5px; color: var(--muted); }
.queue__meta { text-align: right; }
.queue__id { display: block; font-size: 11px; color: var(--ink-2); }
.queue__age { font-size: 11px; color: var(--muted); }
.queue__chev { color: var(--line-2); }
.queue__row:hover .queue__chev { color: var(--accent); }

/* alerts */
.alerts { display: flex; flex-direction: column; gap: 2px; }
.alert { display: flex; gap: 12px; padding: 11px 8px; border-bottom: 1px solid var(--line); }
.alert:last-child { border-bottom: none; }
.alert__sev { width: 3px; border-radius: 3px; flex-shrink: 0; align-self: stretch; }
.sev--critical { background: var(--critical); } .sev--high { background: var(--high); } .sev--medium { background: var(--moderate); } .sev--low { background: var(--line-2); }
.alert__body { flex: 1; min-width: 0; }
.alert__top { display: flex; align-items: center; gap: 9px; margin-bottom: 3px; flex-wrap: nowrap; }
.alert__client { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.alert__time { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.alert__text { font-size: 12.5px; color: var(--ink-2); }
.alerts--full .alert { padding: 13px 10px; }
.alert--btn { width: 100%; text-align: left; align-items: center; border-radius: 8px; }
.alert--btn:hover { background: var(--card-2); }

/* tags */
.tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; font-weight: 500; white-space: nowrap; }
.tag--sanctions, .tag--clear-x { background: #ce48481c; color: #a8302e; }
.tag--rbe, .tag--rcs, .tag--registry { background: #2a6fdb1c; color: var(--accent-ink); }
.tag--adverse, .tag--media { background: #d27a3c1c; color: #a85619; }
.tag--pep { background: #7a5ca81c; color: #5b4488; }
.tag--expiry, .tag--doc { background: var(--paper-2); color: var(--ink-2); }
.tag--score { background: #c08a2e1c; color: #946616; }
.tag--clear { background: #2f8f6b1c; color: #1f6b4e; }

/* ============================================================ CASES LIST */
.caselist__filters { display: flex; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 20px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); border: 1px solid var(--line); background: var(--card); }
.chip:hover { border-color: var(--line-2); }
.chip.is-on { background: var(--ink); color: #eef4fb; border-color: var(--ink); }
.chip__n { font-size: 11px; opacity: .7; }

.table { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.table__head, .trow { display: grid; grid-template-columns: 2.4fr 1.1fr 1fr 1.4fr 1fr .9fr .6fr; align-items: center; }
.table__head { padding: 11px 18px; border-bottom: 1px solid var(--line); background: var(--card-2); }
.th { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.th--c, .td--c { text-align: center; justify-self: center; }
.trow { padding: 13px 18px; border-bottom: 1px solid var(--line); text-align: left; transition: background .12s; width: 100%; }
.trow:last-child { border-bottom: none; }
.trow:hover { background: var(--card-2); }
.td { font-size: 13px; color: var(--ink-2); }
.td--name { display: flex; align-items: center; gap: 11px; }
.trow__flag { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .04em; color: var(--muted); background: var(--paper-2); padding: 4px 6px; border-radius: 5px; }
.trow__name { font-weight: 600; color: var(--ink); font-size: 13.5px; }
.trow__star { color: var(--accent); margin-right: 3px; }
.trow__legal { font-weight: 400; color: var(--muted); font-size: 12px; }
.trow__id { font-size: 11px; color: var(--muted); margin-top: 1px; }
.trow__rcs { font-size: 12px; }
.trow__stage { font-size: 12.5px; }
.prog { width: 54px; height: 5px; background: var(--paper-2); border-radius: 3px; overflow: hidden; display: inline-block; vertical-align: middle; }
.prog__fill { display: block; height: 100%; background: var(--accent); }
.prog__n { font-size: 11px; color: var(--muted); margin-left: 7px; }
.alertbubble { background: var(--critical); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 600; }

/* ============================================================ CASE DETAIL */
.casehead { display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 34px 18px; border-bottom: 1px solid var(--line); gap: 20px; }
.casehead__id { display: flex; gap: 14px; }
.casehead__flag { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--line); padding: 6px 8px; border-radius: 7px; align-self: center; }
.casehead__name { font-family: var(--serif); font-size: 25px; font-weight: 560; letter-spacing: -.015em; }
.casehead__legal { font-size: 16px; color: var(--muted); font-weight: 400; }
.casehead__meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.casehead__risk { display: flex; align-items: center; gap: 26px; }
.casehead__scorewrap { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.casehead__stage div { font-size: 13.5px; font-weight: 500; margin-top: 3px; }

.tabs { display: flex; gap: 2px; padding: 0 30px; border-bottom: 1px solid var(--line); background: var(--paper); }
.tab { display: flex; align-items: center; gap: 7px; padding: 12px 15px; font-size: 13px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab.is-on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.tab__k { font-size: 9.5px; color: var(--line-2); }
.tab.is-on .tab__k { color: var(--accent); }
.casebody { padding-top: 22px; }
.emptytab { padding: 50px; text-align: center; color: var(--muted); font-size: 14px; background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--r); }

/* overview */
.overview { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.overview__lead { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin-bottom: 18px; text-wrap: pretty; }
.kvgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.overview__hero { display: flex; align-items: center; gap: 18px; justify-content: space-between; margin-top: 18px; padding: 16px 18px; border-radius: var(--r); background: linear-gradient(100deg, var(--accent-soft), #2a6fdb0a); border: 1px solid #2a6fdb33; }
.overview__herotxt { font-size: 13.5px; color: var(--ink-2); max-width: 460px; margin-top: 4px; }
.overview__side { display: flex; flex-direction: column; gap: 16px; }
.signals { display: flex; flex-direction: column; }
.signal { display: flex; justify-content: space-between; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.signal:last-child { border-bottom: none; }
.signal:hover { background: var(--card-2); }
.signal__k { font-size: 13px; color: var(--ink-2); }
.signal__v { font-size: 12.5px; font-weight: 600; font-family: var(--mono); }
.signal__v.ok { color: var(--low); } .signal__v.warn { color: var(--high); } .signal__v.bad { color: var(--critical); }

/* ============================================================ OWNERSHIP / UBO TREE */
.ownership__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.ownership__legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink-2); }
.ownership__legend span { display: inline-flex; align-items: center; gap: 6px; }
.ownership__note { font-size: 12.5px; color: var(--muted); max-width: 420px; text-align: right; }
.orgchart { overflow-x: auto; padding: 10px 6px 24px; }

.ubo__root, .ubo__kids { list-style: none; }
.ubo__root { display: flex; }
.ubo__kids { display: flex; gap: 18px; padding-top: 26px; position: relative; }
.ubo { position: relative; display: flex; flex-direction: column; align-items: center; }
/* connectors */
.ubo.has-kids > .ubo__kids::before { content: ""; position: absolute; top: 0; left: 50%; width: 1.5px; height: 13px; background: var(--line-2); }
.ubo__kids > .ubo::before { content: ""; position: absolute; top: -13px; left: 50%; width: 1.5px; height: 13px; background: var(--line-2); }
.ubo__kids > .ubo::after { content: ""; position: absolute; top: -13px; left: 0; right: 0; height: 1.5px; background: var(--line-2); }
.ubo__kids > .ubo:first-child::after { left: 50%; }
.ubo__kids > .ubo:last-child::after { right: 50%; }
.ubo__kids > .ubo:only-child::after { display: none; }

.unode { width: 210px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 13px; box-shadow: var(--shadow); position: relative; }
.unode__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.unode__kind { font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; padding: 2px 6px; border-radius: 3px; background: var(--paper-2); color: var(--muted); }
.unode__kind--fund { background: var(--accent); color: #fff; }
.unode__kind--nominee { background: #d27a3c22; color: #a85619; }
.unode__kind--person { background: #2f8f6b20; color: #1f6b4e; }
.unode__pct { font-size: 12px; font-weight: 700; color: var(--ink); }
.unode__name { font-weight: 600; font-size: 13px; line-height: 1.25; }
.unode__sub { font-size: 11px; color: var(--muted); margin-top: 2px; font-family: var(--mono); }
.unode__ubo { display: inline-block; margin-top: 7px; font-size: 11px; font-weight: 600; color: var(--low); }
.unode__ubo.ubo-resolved { color: var(--accent-ink); }
.unode__warn { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 600; color: var(--high); }
.unode--nominee { border-color: #d27a3c66; }
.unode--fund { border-color: var(--accent); }
.ubo--validated > .unode { box-shadow: var(--shadow), inset 3px 0 0 var(--low); }
.ubo--flag > .unode { box-shadow: var(--shadow), inset 3px 0 0 var(--critical); }
.unode.is-resolved { border-color: var(--accent); background: linear-gradient(180deg, #2a6fdb0e, var(--card)); box-shadow: var(--shadow), inset 3px 0 0 var(--accent); }

.ubo-callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 14px; padding: 18px 22px; background: linear-gradient(100deg, var(--accent-soft), transparent); border-color: #2a6fdb40; }
.ubo-callout__txt { font-size: 13.5px; color: var(--ink-2); margin-top: 5px; max-width: 540px; }

/* ============================================================ IDV */
.idv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.idvcard { padding: 18px 20px; }
.idvcard__head { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.idvcard__photo { width: 46px; height: 46px; border-radius: 9px; background: var(--paper-2); display: grid; place-items: center; font-family: var(--mono); font-weight: 600; color: var(--ink-2); border: 1px solid var(--line-2); }
.idvcard__id { flex: 1; }
.idvcard__name { font-weight: 600; font-size: 15px; }
.idvcard__role { font-size: 12px; color: var(--muted); }
.idvcard__ref { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.verified { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--low); background: #2f8f6b1a; padding: 4px 9px; border-radius: 20px; }
.idvgrid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.idvmetric { display: flex; flex-direction: column; gap: 2px; }
.idvmetric__k { font-size: 11px; color: var(--muted); }
.idvmetric__v { font-size: 13px; font-weight: 600; }
.idvmetric__v.ok { color: var(--low); }
.idvcard__pipe { display: flex; flex-wrap: wrap; gap: 5px; padding-top: 14px; border-top: 1px solid var(--line); }
.pipe__step { font-family: var(--mono); font-size: 10px; padding: 3px 8px; border-radius: 4px; background: var(--paper-2); color: var(--muted); }
.pipe__step--done { background: #2f8f6b15; color: #1f6b4e; }

/* ============================================================ SCREENING */
.screening { display: flex; flex-direction: column; gap: 11px; }
.hit { display: flex; align-items: center; gap: 16px; padding: 15px 18px; }
.hit--clear { opacity: .8; }
.hit__type { }
.hit__main { flex: 1; min-width: 0; }
.hit__target { font-weight: 600; font-size: 14px; }
.hit__list { font-size: 11px; color: var(--muted); margin: 2px 0 5px; }
.hit__detail { font-size: 12.5px; color: var(--ink-2); }
.hit__right { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; min-width: 90px; }
.hit__match { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.hit__match .mono { font-size: 20px; font-weight: 700; }
.hit__matchk { font-size: 10px; color: var(--muted); }
.status { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.status--review { background: #d27a3c20; color: #a85619; }
.status--confirmed { background: #ce484820; color: #a8302e; }
.status--clear { background: #2f8f6b20; color: #1f6b4e; }

/* ============================================================ SCORE */
.scoretab { display: flex; flex-direction: column; gap: 16px; }
.bd { display: flex; flex-direction: column; gap: 9px; }
.bd__row { display: grid; grid-template-columns: 1.3fr 2fr auto auto 1.6fr; align-items: center; gap: 14px; font-size: 12.5px; }
.bd__dim { font-weight: 600; }
.bd__bar { height: 8px; background: var(--paper-2); border-radius: 4px; overflow: hidden; }
.bd__fill { display: block; height: 100%; border-radius: 4px; }
.bd__fill.hot { background: var(--critical); } .bd__fill.warm { background: var(--high); } .bd__fill.cool { background: var(--moderate); }
.bd__raw { font-weight: 700; width: 24px; text-align: right; }
.bd__w { color: var(--muted); width: 38px; }
.bd__note { color: var(--muted); font-size: 11.5px; }

.hist { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; }
.hist__chart { display: flex; align-items: flex-end; gap: 12px; height: 180px; padding-top: 10px; }
.hist__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.hist__barwrap { width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; flex: 1; position: relative; }
.hist__bar { width: 60%; border-radius: 4px 4px 0 0; min-height: 4px; transition: height .5s cubic-bezier(.2,.8,.2,1); }
.hist__val { font-size: 10.5px; color: var(--ink-2); margin-bottom: 4px; }
.hist__date { font-size: 10px; color: var(--muted); }
.hist__events { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--ink-2); }
.hist__events li { padding-bottom: 8px; border-bottom: 1px dotted var(--line-2); }
.hist__edate { color: var(--accent-ink); font-size: 11px; margin-right: 6px; }

/* ============================================================ MONITORING TAB */
.montab { display: flex; flex-direction: column; gap: 2px; }
.monrow { display: flex; align-items: center; gap: 13px; padding: 13px 12px; border-bottom: 1px solid var(--line); background: var(--card); }
.monrow:first-child { border-radius: var(--r) var(--r) 0 0; }
.monrow:last-child { border-radius: 0 0 var(--r) var(--r); border-bottom: 1px solid var(--line); }
.monrow { border: 1px solid var(--line); border-bottom: none; }
.monrow:last-child { border-bottom: 1px solid var(--line); }
.monrow__sev { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.monrow__when { font-size: 11.5px; color: var(--muted); width: 92px; flex-shrink: 0; }
.monrow__text { font-size: 13px; color: var(--ink-2); }

/* ============================================================ WORKFLOW + AUDIT */
.wftab { display: flex; flex-direction: column; gap: 16px; }
.wfsteps { display: flex; flex-direction: column; gap: 2px; }
.wfstep { display: flex; align-items: center; gap: 13px; padding: 11px 6px; }
.wfstep__node { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 600; flex-shrink: 0; border: 1.5px solid var(--line-2); color: var(--muted); }
.wfstep--done .wfstep__node { background: var(--low); border-color: var(--low); color: #fff; }
.wfstep--active .wfstep__node { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); animation: pulse 1.8s infinite; }
.wfstep__body { flex: 1; }
.wfstep__name { font-weight: 600; font-size: 13.5px; }
.wfstep--todo .wfstep__name, .wfstep--todo .wfstep__node { color: var(--muted); }
.wfstep__who { font-size: 12px; color: var(--muted); }
.wfstep__at { font-size: 11.5px; color: var(--muted); }
.strbox { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--paper-2); }
.strbox__reason { font-size: 12.5px; color: var(--ink-2); margin-top: 5px; max-width: 560px; }

.auditlog { display: flex; flex-direction: column; }
.auditrow { display: grid; grid-template-columns: 1.4fr 1.3fr 1.3fr 1.4fr .9fr; gap: 12px; font-size: 11.5px; padding: 8px 4px; border-bottom: 1px solid var(--line); align-items: center; }
.auditrow:last-child { border-bottom: none; }
.auditrow__ts { color: var(--muted); }
.auditrow__actor { color: var(--ink); font-weight: 500; }
.auditrow__actor.is-ai { color: var(--accent-ink); }
.auditrow__act { color: var(--ink-2); letter-spacing: .03em; }
.auditrow__obj { color: var(--muted); }
.auditrow__hash { color: var(--line-2); text-align: right; }

/* ============================================================ AGENT (HERO) */
.agentscreen { background: linear-gradient(180deg, #f1ede4, var(--paper)); }
.agent { flex: 1; overflow-y: auto; padding: 24px 34px 50px; }
.agent__mission { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; margin-bottom: 20px; }
.agent__title { font-family: var(--serif); font-size: 27px; font-weight: 560; letter-spacing: -.02em; margin: 7px 0 9px; }
.agent__brief { font-size: 14px; color: var(--ink-2); max-width: 680px; line-height: 1.6; text-wrap: pretty; }
.agent__status { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; }
.agent__working { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.agent__spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 #2a6fdb44; } 50% { box-shadow: 0 0 0 5px #2a6fdb00; } }

.ring__bg { stroke: var(--line-2); }
.ring__fg { stroke: var(--accent); transition: stroke-dashoffset 1s cubic-bezier(.2,.8,.2,1); }
.ring__txt { font-family: var(--mono); font-size: 15px; font-weight: 700; fill: var(--accent-ink); }

.budget { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 22px; padding: 16px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 18px; }
.budget__item { display: flex; flex-direction: column; gap: 7px; }
.budget__bar { height: 6px; background: var(--paper-2); border-radius: 4px; overflow: hidden; }
.budget__fill { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .3s ease; }
.budget__num { font-size: 11.5px; color: var(--ink-2); }
.budget__steps { display: flex; gap: 5px; }
.budget__step { flex: 1; height: 6px; border-radius: 3px; background: var(--paper-2); transition: background .3s; }
.budget__step.is-on { background: var(--accent); animation: pulse 1.4s infinite; }
.budget__step.is-done { background: var(--accent-ink); }

.agent__cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
.agent__cols > * { min-width: 0; }

/* trace */
.trace { display: flex; flex-direction: column; min-width: 0; }
.tstep { display: flex; gap: 14px; opacity: 1; animation: slidein .4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes stepin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes slidein { from { transform: translateY(8px); } to { transform: none; } }
.tstep__rail { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.tstep__node { width: 24px; height: 24px; border-radius: 50%; background: var(--card); border: 1.5px solid var(--line-2); display: grid; place-items: center; color: var(--low); margin-top: 4px; }
.tstep.is-done .tstep__node { border-color: var(--low); background: #2f8f6b15; }
.tstep__rail::after { content: ""; flex: 1; width: 1.5px; background: var(--line); margin: 4px 0; }
.tstep:last-child .tstep__rail::after { display: none; }
.tstep__pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s infinite; }
.tstep__card { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.tstep.is-running .tstep__card { border-color: #2a6fdb55; }
.tstep__head { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.tstep__phase { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tstep__tool { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em; padding: 3px 8px; border-radius: 20px; margin-left: auto; font-weight: 500; }
.tool--reasoning { background: #2a6fdb1c; color: var(--accent-ink); }
.tool--registry { background: var(--paper-2); color: var(--ink-2); }
.tool--web { background: #4a6b8e1c; color: #3a5575; }
.tool--leak { background: #7a5ca81c; color: #5b4488; }
.tool--screening { background: #ce48481c; color: #a8302e; }
.tstep__title { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.tstep__body { font-size: 13px; color: var(--ink-2); line-height: 1.55; text-wrap: pretty; }
.tstep__thinking { display: flex; gap: 5px; padding: 4px 0; }
.tstep__thinking span { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); animation: think 1.2s infinite; }
.tstep__thinking span:nth-child(2) { animation-delay: .2s; } .tstep__thinking span:nth-child(3) { animation-delay: .4s; }
@keyframes think { 0%,100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.tstep__sources { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.srcchip { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-family: var(--mono); background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 4px 9px 4px 4px; color: var(--ink-2); }
.srcchip__k { font-size: 8.5px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; color: #fff; }
.srcchip--registry .srcchip__k { background: #5a6b85; } .srcchip--leak .srcchip__k { background: #5b4488; }
.srcchip--press .srcchip__k { background: #a85619; } .srcchip--screening .srcchip__k { background: #a8302e; }
.tstep--final .tstep__node--final { background: var(--accent); border-color: var(--accent); color: #fff; font-size: 13px; }
.tstep__card--final { background: linear-gradient(100deg, var(--accent-soft), var(--card)); border-color: #2a6fdb40; }

/* evidence rail */
.evidence { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 4px; }
.srclist { display: flex; flex-direction: column; gap: 2px; max-height: 220px; overflow-y: auto; }
.srclist__empty { font-size: 12px; color: var(--muted); padding: 10px 0; }
.srclist__row { display: flex; align-items: center; gap: 9px; padding: 8px 4px; border-bottom: 1px solid var(--line); animation: slidein .4s both; }
.srclist__row:last-child { border-bottom: none; }
.srcdot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.srcdot--registry { background: #5a6b85; } .srcdot--leak { background: #5b4488; } .srcdot--press { background: #a85619; } .srcdot--screening { background: #a8302e; }
.srclist__label { font-size: 11px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srclist__kind { font-size: 9.5px; font-family: var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.dossier__pending { font-size: 12px; color: var(--muted); padding: 14px 0; }
.resolved { padding: 13px 14px; border-radius: var(--r-sm); background: var(--accent-soft); border: 1px solid #2a6fdb33; margin-bottom: 14px; }
.resolved__txt { font-size: 13px; color: var(--ink-2); margin-top: 5px; line-height: 1.5; }
.findings { display: flex; flex-direction: column; gap: 9px; }
.finding { padding: 11px 13px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card-2); animation: stepin .5s both; }
.finding__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.finding__tier { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; font-weight: 500; }
.tier--established { background: #2f8f6b20; color: #1f6b4e; }
.tier--probable { background: #c08a2e22; color: #946616; }
.tier--unconfirmed { background: var(--paper-2); color: var(--muted); }
.finding__conf { font-size: 12px; font-weight: 700; }
.finding__text { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.finding__bar { height: 3px; background: var(--paper-2); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.finding__bar span { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.dossier__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.dossier__guard { font-size: 10px; color: var(--muted); margin-top: 12px; text-align: center; line-height: 1.5; }

/* ============================================================ REPORTS */
.reptiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reptile { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.reptile__head { display: flex; justify-content: space-between; align-items: center; color: var(--accent); }
.reptile__k { font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.reptile__t { font-family: var(--serif); font-size: 17px; font-weight: 560; margin-top: 6px; }
.reptile__s { font-size: 12.5px; color: var(--muted); }
.reptile__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-2); }

/* scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 5px; border: 2px solid var(--paper); }
::-webkit-scrollbar-track { background: transparent; }

/* ============================================================ K1 ONBOARDING */
.onboard { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: start; }
.phonewrap { display: flex; justify-content: center; padding-top: 4px; }
.phone { width: 338px; height: 690px; background: #211e17; border-radius: 38px; padding: 10px; box-shadow: var(--shadow-lg), inset 0 0 0 2px #00000040; position: relative; }
.phone__notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: #211e17; border-radius: 14px; z-index: 3; }
.phone__screen { width: 100%; height: 100%; background: var(--card); border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; }
.ob__bar { display: flex; align-items: center; justify-content: space-between; padding: 26px 22px 6px; }
.ob__brand { font-family: var(--serif); font-size: 18px; font-weight: 560; color: var(--accent-ink); }
.ob__step { font-size: 11px; color: var(--muted); }
.ob__progress { display: none; }
.ob__dots { display: flex; gap: 6px; padding: 4px 22px 14px; }
.ob__dot { flex: 1; height: 4px; border-radius: 2px; background: var(--paper-2); transition: background .3s; }
.ob__dot.on { background: var(--accent); } .ob__dot.done { background: var(--accent-ink); }
.ob__body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.ob__pane { display: flex; flex-direction: column; animation: slidein .35s both; }
.ob__pane > * + * { margin-top: 13px; }
.ob__pane--center { align-items: center; text-align: center; justify-content: center; height: 100%; }
.ob__hero { width: 56px; height: 56px; border-radius: 14px; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 30px; font-weight: 600; box-shadow: inset 0 0 0 1px #ffffff22; }
.ob__h { font-family: var(--serif); font-size: 18.5px; font-weight: 560; letter-spacing: -.01em; line-height: 1.25; }
.ob__p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.ob__p strong { color: var(--ink); }
.ob__list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.ob__list li { font-size: 13px; color: var(--ink-2); padding-left: 22px; position: relative; }
.ob__list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.ob__field { display: flex; flex-direction: column; gap: 5px; }
.ob__field label { font-size: 11px; color: var(--muted); font-weight: 500; }
.ob__inp { font-size: 13.5px; padding: 10px 12px; background: var(--paper-2); border-radius: 8px; border: 1px solid var(--line); font-weight: 500; }
.ob__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ob__doc { display: flex; flex-direction: column; gap: 10px; }
.ob__docframe { height: 150px; border-radius: 10px; background: repeating-linear-gradient(135deg, var(--paper-2), var(--paper-2) 10px, #dde6f1 10px, #dde6f1 20px); display: grid; place-items: center; color: var(--muted); font-size: 11px; border: 1px solid var(--line-2); }
.ob__mrz { background: #211e17; color: #aebcd2; font-size: 9.5px; line-height: 1.6; padding: 10px 12px; border-radius: 8px; letter-spacing: .04em; }
.ob__chk { font-size: 12.5px; color: var(--ink-2); background: #2f8f6b12; padding: 10px 12px; border-radius: 8px; display: flex; align-items: center; gap: 8px; }
.ob__ok { width: 18px; height: 18px; border-radius: 50%; background: var(--low); color: #fff; display: grid; place-items: center; font-size: 11px; flex-shrink: 0; }
.ob__face { width: 150px; height: 150px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; color: var(--muted); font-size: 11px; position: relative; margin-bottom: 4px; }
.ob__facering { position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--accent); border-top-color: transparent; animation: spin 1.4s linear infinite; }
.ob__q { font-size: 14px; font-weight: 600; margin-top: 12px; }
.ob__opts { display: flex; gap: 10px; }
.ob__opts--col { flex-direction: column; }
.ob__opt { flex: 1; padding: 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--card); font-size: 13.5px; font-weight: 500; text-align: center; }
.ob__opt:hover { border-color: var(--accent); }
.ob__opt.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.ob__sub { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; animation: slidein .3s both; }
.ob__flag { font-size: 10.5px; color: var(--high); }
.ob__sign { display: flex; align-items: center; gap: 11px; padding: 13px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--card); font-size: 14px; font-weight: 600; }
.ob__sign.on { border-color: var(--accent); background: var(--accent-soft); }
.ob__signmark { width: 30px; height: 30px; border-radius: 7px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 12px; font-family: var(--mono); }
.ob__signmark.itsme { background: #d27a3c; }
.ob__done { width: 72px; height: 72px; border-radius: 50%; background: var(--low); color: #fff; display: grid; place-items: center; font-size: 36px; margin-bottom: 8px; }
.ob__nav { display: flex; gap: 10px; padding: 14px 22px 24px; border-top: 1px solid var(--line); }
.ob__back { padding: 13px 18px; border-radius: 10px; background: var(--paper-2); font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
.ob__next { flex: 1; padding: 13px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; }
.ob__next:disabled { background: var(--line-2); color: var(--muted); cursor: not-allowed; }

.obside { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.obpipe { display: flex; flex-direction: column; }
.obpipe__row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); opacity: .5; transition: opacity .3s; }
.obpipe__row.is-ok { opacity: 1; }
.obpipe__row:last-child { border-bottom: none; }
.obpipe__node { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--muted); flex-shrink: 0; }
.obpipe__row.is-ok .obpipe__node { background: var(--low); border-color: var(--low); color: #fff; }
.obpipe__t { flex: 1; font-size: 13px; font-weight: 500; }
.obpipe__v { font-size: 11.5px; color: var(--muted); }
.obroute__band { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.obroute__chip { font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 20px; background: #2f8f6b1f; color: #1f6b4e; }
.obroute__chip.edd { background: #d27a3c22; color: #a85619; }
.obroute__txt { font-size: 13px; color: var(--ink-2); line-height: 1.55; }

/* ============================================================ K4 SCREENING CONSOLE */
.scr { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
.scrlist { display: flex; flex-direction: column; gap: 10px; }
.scrhit { display: flex; align-items: center; gap: 15px; padding: 14px 16px; }
.scrhit__main { flex: 1; min-width: 0; }
.scrhit__client { font-weight: 600; font-size: 14px; text-align: left; }
.scrhit__client:hover { color: var(--accent-ink); text-decoration: underline; }
.scrhit__sub { font-size: 11px; color: var(--muted); margin: 2px 0 4px; }
.scrhit__note { font-size: 12.5px; color: var(--ink-2); }
.scrhit__match { display: flex; flex-direction: column; align-items: center; line-height: 1.1; min-width: 56px; }
.scrhit__match .mono { font-size: 19px; font-weight: 700; }
.scrhit__match span:last-child { font-size: 10px; color: var(--muted); }
.scrhit__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 130px; }
.scrhit__btns { display: flex; gap: 6px; }
.minibtn { font-size: 11.5px; font-weight: 600; padding: 6px 11px; border-radius: 7px; background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); }
.minibtn:hover { border-color: var(--line-2); }
.minibtn--keep { background: var(--accent); color: #fff; border-color: var(--accent); }
.status--false-positive { background: var(--paper-2); color: var(--muted); }
.mengine { display: flex; flex-direction: column; }
.mengine__row { padding: 10px 0; border-bottom: 1px dotted var(--line-2); }
.mengine__row:last-child { border-bottom: none; }
.mengine__k { font-size: 12.5px; font-weight: 600; }
.mengine__v { font-size: 11px; color: var(--muted); margin-top: 2px; }
.mengine__foot { font-size: 10.5px; color: var(--muted); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); line-height: 1.5; }

/* ============================================================ K10 API & AI CONFIG */
.apicfg { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.apicfg__col { display: flex; flex-direction: column; gap: 16px; }
.eplist, .whlist, .costlist { display: flex; flex-direction: column; }
.eprow { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; gap: 2px 11px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.eprow:last-child { border-bottom: none; }
.epm { grid-row: 1 / 3; font-family: var(--mono); font-size: 9.5px; font-weight: 600; padding: 4px 0; border-radius: 5px; text-align: center; align-self: start; }
.epm--get { background: #2f8f6b20; color: #1f6b4e; } .epm--post { background: #2a6fdb20; color: var(--accent-ink); }
.epp { font-size: 12.5px; font-weight: 500; }
.epd { font-size: 11.5px; color: var(--muted); }
.whrow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.whrow:last-child { border-bottom: none; }
.whdot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.whe { font-size: 12.5px; font-weight: 600; width: 160px; }
.whd { font-size: 12px; color: var(--muted); }
.costrow { display: grid; grid-template-columns: 1.2fr 1.3fr .8fr .9fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: center; font-size: 12px; }
.costrow:last-child { border-bottom: none; }
.cost__post { font-weight: 600; } .cost__prov { font-size: 11px; color: var(--muted); }
.cost__basis { color: var(--ink-2); } .cost__mult { font-weight: 600; color: var(--accent-ink); text-align: right; }
.aimx { display: flex; flex-direction: column; }
.aimx__row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.aimx__row:last-child { border-bottom: none; }
.aimx__use { font-size: 13px; font-weight: 600; }
.aimx__choice { margin: 6px 0 5px; line-height: 1.4; }
.aimx__model { font-size: 12.5px; color: var(--accent-ink); font-weight: 500; }
.aimx__mode { display: inline-block; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; background: var(--paper-2); color: var(--muted); margin-left: 8px; vertical-align: middle; }
.aimx__mode--in-house { background: #2f8f6b20; color: #1f6b4e; }
.aimx__mode--specialist { background: #2a6fdb20; color: var(--accent-ink); }
.aimx__note { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.aiact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.aiact__item { font-size: 12px; color: var(--ink-2); line-height: 1.5; padding: 13px; border-radius: var(--r-sm); background: var(--card-2); border: 1px solid var(--line); }
.aiact__b { display: block; font-weight: 700; color: var(--ink); font-size: 12.5px; margin-bottom: 3px; }

/* ============================================================ COCKPIT ROLE VIEWS (§11.3) */
.roleswitch { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.roleswitch__tabs { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 4px; box-shadow: var(--shadow); }
.roletab { padding: 8px 14px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.roletab:hover { color: var(--ink); }
.roletab.is-on { background: var(--accent); color: #fff; }
.rolekpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.rolekpi { padding: 15px 18px; display: flex; flex-direction: column; gap: 5px; border-left: 3px solid var(--accent); }
.rolekpi__v { font-size: 25px; font-weight: 700; letter-spacing: -.02em; line-height: 1; margin-top: 2px; color: var(--ink); }
.rolekpi__foot { font-size: 11.5px; color: var(--muted); }

/* ============================================================ K7 STR / goAML */
.str { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
.str__list { display: flex; flex-direction: column; gap: 10px; }
.strrow { text-align: left; padding: 13px 15px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); transition: border-color .14s, box-shadow .14s; }
.strrow:hover { border-color: var(--line-2); }
.strrow.is-on { border-color: var(--accent); box-shadow: var(--shadow), inset 3px 0 0 var(--accent); }
.strrow__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.strrow__id { font-size: 11px; color: var(--ink-2); font-weight: 600; }
.strrow__client { font-weight: 600; font-size: 13.5px; }
.strrow__typ { font-size: 12px; color: var(--ink-2); margin: 2px 0 6px; }
.strrow__foot { font-size: 10.5px; color: var(--muted); }
.str__detail { display: flex; flex-direction: column; gap: 16px; }
.tipping { display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: var(--r); background: #ce48480f; border: 1px solid #ce484833; font-size: 12.8px; color: var(--ink-2); }
.tipping strong { color: var(--critical); }
.tipping__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--critical); flex-shrink: 0; animation: pulse 1.8s infinite; }
.strmeta { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 26px; margin-bottom: 14px; }
.narrative { padding: 16px 18px; border-radius: var(--r-sm); background: var(--card-2); border: 1px solid var(--line); }
.narrative__tag { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; }
.narrative__p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin-bottom: 11px; text-wrap: pretty; }
.narrative__p:last-child { margin-bottom: 0; }
.str__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.goaml { display: flex; flex-direction: column; }
.goaml__row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dotted var(--line-2); font-size: 12.5px; }
.goaml__row:last-child { border-bottom: none; }
.goaml__f { color: var(--accent-ink); font-size: 11.5px; }
.goaml__v { color: var(--ink); font-weight: 500; text-align: right; }
.strchecks { display: flex; flex-direction: column; gap: 8px; }
.strcheck { display: flex; align-items: center; gap: 11px; font-size: 12.5px; }
.strcheck__node { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.strcheck.is-ok .strcheck__node { background: var(--low); color: #fff; }
.strcheck.is-pending .strcheck__node { background: var(--high); color: #fff; }
.strcheck__k { flex: 1; font-weight: 500; }
.strcheck__v { color: var(--muted); font-size: 11.5px; }
.str__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.str__archived .str__sent { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 13px 15px; border-radius: var(--r-sm); background: #2f8f6b12; font-size: 13px; color: var(--ink-2); }
.str__sent--wait { background: #d27a3c12 !important; }
.str__sent--wait .strcheck__node { background: var(--high); color: #fff; }

/* ============================================================ K6 PERIODIC REVIEW */
.revpolicy { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.revpol { padding: 15px 18px; display: flex; flex-direction: column; align-items: flex-start; }
.revpol__freq { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; margin: 9px 0 6px; }
.revpol__n { font-size: 12px; color: var(--muted); }
.table__head.revhead, .trow.revrow { grid-template-columns: 1.8fr .9fr 1fr 1fr 1.4fr .8fr; }
.revrow__date { font-size: 12px; }
.revrow__trig { font-size: 12.5px; }
