/* ============================================================
   MUBS Design System v2 — "civic professional"
   Tokens → primitives → components. No external assets.
   ============================================================ */
:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --ink: #16212e;
  --ink-2: #3d4b5c;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e6e9ef;
  --line-strong: #d5dbe4;

  --accent: #2160c4;
  --accent-ink: #17498f;
  --accent-soft: #e9f0fb;
  --accent-softer: #f4f8fd;

  --ok: #177245;   --ok-soft: #e3f4ea;
  --warn: #9a5b00; --warn-soft: #fdf0d7;
  --bad: #b42324;  --bad-soft: #fde8e8;
  --info: #4653b0; --info-soft: #eceefb;

  --nav-bg-1: #0b1c36;
  --nav-bg-2: #12294e;
  --nav-ink: #b9c9de;
  --nav-ink-dim: #7d92ad;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 1px 2px rgba(16, 24, 40, .05), 0 2px 8px rgba(16, 24, 40, .06);
  --shadow-lg: 0 4px 12px rgba(16, 24, 40, .10), 0 16px 48px rgba(16, 24, 40, .14);
  --ease: cubic-bezier(.22, .8, .36, 1);
  font-size: 15px;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
::selection { background: #cfe0f8; }
button { font: inherit; cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

input, select, textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 8px 11px; width: 100%;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
input::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: #b9c3d2; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3.5px rgba(33, 96, 196, .14);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px;
}

/* ---------------- layout shell ---------------- */
#app { display: flex; min-height: 100vh; }
aside {
  width: 236px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--nav-bg-1), var(--nav-bg-2));
  color: var(--nav-ink);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: #2c4a76 transparent;
}
aside .brand { padding: 20px 18px 14px; display: flex; align-items: center; gap: 10px; }
aside .brand .logo {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #2f7ce0, #1b4f9e);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 6px rgba(0,0,0,.3);
  font-size: 17px;
}
aside .brand b { font-size: 15px; display: block; color: #fff; letter-spacing: -.01em; }
aside .brand span { font-size: 10.5px; color: var(--nav-ink-dim); display: block; margin-top: 1px; }
aside nav { flex: 1; padding: 2px 10px 12px; }
aside nav h6 {
  margin: 16px 8px 5px; font-size: 9.5px; letter-spacing: .1em;
  color: var(--nav-ink-dim); text-transform: uppercase; font-weight: 700;
}
aside nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 6.5px 10px; margin: 1px 0;
  color: var(--nav-ink); font-size: 13px; font-weight: 500;
  border-radius: 8px; position: relative;
  transition: background .12s var(--ease), color .12s var(--ease);
}
aside nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
aside nav a.active { background: rgba(88, 146, 227, .22); color: #fff; }
aside nav a.active::before {
  content: ''; position: absolute; left: -10px; top: 6px; bottom: 6px; width: 3px;
  border-radius: 3px; background: #5b9ae8;
}
aside nav a svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .75; }
aside nav a.active svg { opacity: 1; }
aside .whoami {
  padding: 12px 14px; font-size: 12px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 10px;
}
aside .whoami .avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #3d7fd8, #7db3f0);
  color: #fff; font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
aside .whoami .who b { display: block; color: #e6eefb; font-size: 12.5px; }
aside .whoami .who span { color: var(--nav-ink-dim); font-size: 10.5px; }
aside .whoami button {
  margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.18);
  color: var(--nav-ink); border-radius: 7px; padding: 4px 9px; font-size: 11.5px;
  transition: all .12s var(--ease);
}
aside .whoami button:hover { border-color: rgba(255,255,255,.4); color: #fff; }
aside .portal-link {
  display: block; margin: 0 14px 14px; padding: 7px 10px; text-align: center;
  font-size: 11.5px; color: #9fc3ec; border: 1px dashed rgba(140, 180, 230, .35);
  border-radius: 8px; transition: all .12s var(--ease);
}
aside .portal-link:hover { background: rgba(255,255,255,.05); text-decoration: none; color: #cfe3fa; }

main { flex: 1; padding: 26px 32px 60px; max-width: 1240px; animation: pagein .25s var(--ease); }
@keyframes pagein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

h1 { font-size: 21px; margin: 0 0 3px; letter-spacing: -.02em; font-weight: 700; }
.sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }

/* ---------------- panels & grids ---------------- */
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  padding: 18px 20px; margin-bottom: 16px;
}
.panel h3 { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.grid { display: grid; gap: 14px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .cols-3, .cols-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  main { padding: 18px 14px 50px; }
  .bars .bar span { display: none; }
  .bars .bar:nth-child(2n+1) span { display: block; }
}

/* stat tiles */
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 2px; position: relative; overflow: hidden;
  transition: box-shadow .15s var(--ease), transform .15s var(--ease);
}
.stat:hover { box-shadow: var(--shadow-md); }
.stat .icon {
  width: 30px; height: 30px; border-radius: 9px; margin-bottom: 8px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.stat .icon svg { width: 15px; height: 15px; }
.stat .v { font-size: 23px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .k { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat.ok .icon { background: var(--ok-soft); color: var(--ok); }
.stat.warn .icon { background: var(--warn-soft); color: var(--warn); }
.stat.bad .icon { background: var(--bad-soft); color: var(--bad); }
.stat.warn .v { color: var(--warn); } .stat.bad .v { color: var(--bad); } .stat.ok .v { color: var(--ok); }

/* ---------------- tables ---------------- */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
  text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--faint); font-weight: 700; padding: 9px 10px 7px;
  border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
td { padding: 9.5px 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; }
tbody tr { transition: background .1s; }
tbody tr:hover { background: var(--accent-softer); }
tbody tr:last-child td { border-bottom: none; }
tr.click { cursor: pointer; }
tr.click:hover { background: var(--accent-soft); }
td.num, th.num { text-align: right; }
.empty-state { text-align: center; color: var(--faint); padding: 26px 10px !important; font-size: 13px; }

/* ---------------- buttons ---------------- */
.btn {
  background: linear-gradient(180deg, #2a6ed3, var(--accent));
  color: #fff; border: none; border-radius: 9px; padding: 8px 15px;
  font-size: 13.5px; font-weight: 600; letter-spacing: -.005em;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .18), inset 0 1px 0 rgba(255,255,255,.12);
  transition: filter .12s var(--ease), transform .06s var(--ease), box-shadow .12s var(--ease);
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); box-shadow: 0 0 0 rgba(0,0,0,0); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3.5px rgba(33, 96, 196, .3); }
.btn.ghost {
  background: #fff; color: var(--accent-ink); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); filter: none; background: var(--accent-softer); }
.btn.small { padding: 4.5px 10px; font-size: 12px; border-radius: 7px; }
.btn.danger { background: linear-gradient(180deg, #c8382f, #b42324); }
.btn.ok { background: linear-gradient(180deg, #1d8955, #177245); }
.btn:disabled { opacity: .45; cursor: default; filter: none; }
label.btn { display: inline-block; }

.toolbar { display: flex; gap: 9px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar input[type=search] { max-width: 280px; }
.toolbar input[type=search] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.4' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>");
  background-repeat: no-repeat; background-position: 10px center; padding-left: 32px;
}
.spacer { flex: 1; }

/* ---------------- status pills ---------------- */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .03em;
  padding: 2.5px 9px; border-radius: 999px;
  background: #eef1f5; color: var(--muted); white-space: nowrap;
}
.tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .75; }
.tag.ACTIVE, .tag.COMPLETED, .tag.ISSUED, .tag.APPROVED, .tag.VALID, .tag.ACTIVATED,
.tag.COMMIT, .tag.SENT, .tag.CLOSED, .tag.RESOLVED { background: var(--ok-soft); color: var(--ok); }
.tag.PENDING, .tag.DRAFT, .tag.TRIAL, .tag.QUEUED, .tag.RUNNING, .tag.ESTIMATE, .tag.OPEN,
.tag.ASSIGNED, .tag.IN_PROGRESS, .tag.REQUESTED, .tag.UNMATCHED { background: var(--warn-soft); color: var(--warn); }
.tag.VOID, .tag.REVERSED, .tag.REJECTED, .tag.FAILED, .tag.NEGATIVE, .tag.ARCHIVED,
.tag.HISTORICAL, .tag.SUPERSEDED, .tag.DEFAULTED, .tag.CANCELLED, .tag.ROLLOVER,
.tag.SHUTOFF, .tag.EMERGENCY { background: var(--bad-soft); color: var(--bad); }

/* ---------------- forms ---------------- */
label { display: block; font-size: 11.5px; font-weight: 650; color: var(--ink-2); margin: 11px 0 4px; letter-spacing: .01em; }
.formrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 12px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.error { color: var(--bad); font-size: 13px; margin-top: 8px; }

/* ---------------- modal ---------------- */
.overlay {
  position: fixed; inset: 0; background: rgba(11, 24, 44, .42);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 48px 16px; z-index: 50; overflow-y: auto;
  animation: fadein .16s var(--ease);
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; border-radius: var(--r-lg); width: 660px; max-width: 100%;
  padding: 22px 24px; box-shadow: var(--shadow-lg);
  animation: modalin .2s var(--ease);
}
@keyframes modalin { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.modal h2 { margin: 0 0 14px; font-size: 16.5px; letter-spacing: -.015em; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ---------------- toasts ---------------- */
#toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 99; }
.toast {
  background: #17253c; color: #f1f5fb; padding: 11px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lg); max-width: 400px;
  display: flex; align-items: center; gap: 9px;
  animation: toastin .22s var(--ease);
  border: 1px solid rgba(255,255,255,.08);
}
.toast::before { content: 'ℹ'; font-size: 12px; opacity: .8; }
.toast.ok { background: #0e3a24; border-color: #1d5c3c; } .toast.ok::before { content: '✓'; color: #6fd39e; }
.toast.bad { background: #47140f; border-color: #6e211a; } .toast.bad::before { content: '✕'; color: #f19086; }
@keyframes toastin { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* ---------------- login ---------------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: stretch;
  background: var(--bg);
}
.login-hero {
  flex: 1.15; display: none; flex-direction: column; justify-content: space-between;
  padding: 48px 52px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(91, 154, 232, .35), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(28, 78, 153, .5), transparent 55%),
    linear-gradient(160deg, #0b1c36, #133262);
  color: #dce8f8;
}
@media (min-width: 880px) { .login-hero { display: flex; } }
.login-hero .brandline { display: flex; align-items: center; gap: 12px; }
.login-hero .brandline .logo {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #2f7ce0, #1b4f9e);
  display: flex; align-items: center; justify-content: center; font-size: 21px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 14px rgba(0,0,0,.35);
}
.login-hero h2 { font-size: 30px; letter-spacing: -.03em; margin: 0 0 14px; color: #fff; line-height: 1.15; }
.login-hero p { color: #a8bdd9; font-size: 14.5px; line-height: 1.6; max-width: 420px; margin: 0; }
.login-hero ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 11px; }
.login-hero li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #c6d6ec; }
.login-hero li::before {
  content: '✓'; flex-shrink: 0; width: 18px; height: 18px; border-radius: 6px;
  background: rgba(111, 211, 158, .15); color: #6fd39e;
  display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800;
  margin-top: 1px;
}
.login-hero .foot { font-size: 11.5px; color: #6e86a8; }
.login-form-side { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-card { width: 380px; max-width: 100%; }
.login-card .panel-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 30px 26px; box-shadow: var(--shadow-md);
}
.login-card h1 { font-size: 20px; margin: 0 0 2px; }
.login-card .sub { margin-bottom: 20px; }
.login-card .btn { width: 100%; margin-top: 18px; padding: 10px; font-size: 14px; }
.login-card .demo-hint {
  margin-top: 16px; padding: 11px 13px; border-radius: 10px;
  background: var(--accent-softer); border: 1px solid var(--accent-soft);
  font-size: 11.8px; color: var(--ink-2); line-height: 1.55;
}
.login-card .demo-hint b { color: var(--accent-ink); }

/* ---------------- charts (single-series, recessive axes) ---------------- */
.bars { display: flex; align-items: flex-end; gap: 5px; height: 150px; padding-top: 16px; }
.bars .bar {
  flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 3px;
  position: relative; opacity: .9; max-width: 34px;
  transition: opacity .12s;
}
.bars .bar:hover { opacity: 1; }
.bars .bar:last-child { background: #e69138; }
.bars .bar span {
  position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  font-size: 9px; color: var(--faint); white-space: nowrap;
}
.bars .bar b {
  position: absolute; top: -17px; left: 50%; transform: translateX(-50%);
  font-size: 9.5px; color: var(--ink-2); font-weight: 650; font-variant-numeric: tabular-nums;
}
.sparkbars { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.sparkbars i { flex: 1; background: var(--accent-soft); border-radius: 2px 2px 0 0; min-height: 2px; }
.sparkbars i.hi { background: var(--accent); }

details { margin-top: 8px; }
summary { cursor: pointer; font-size: 13px; color: var(--accent); font-weight: 550; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; }
.muted { color: var(--muted); }
.right { text-align: right; }

/* ---------------- Oracle demo center ---------------- */
.demo-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 28px; margin-bottom: 16px; border-radius: var(--r-lg);
  color: #fff; box-shadow: var(--shadow-md);
  background: radial-gradient(600px 200px at 95% 0, rgba(102, 178, 255, .32), transparent 65%),
    linear-gradient(135deg, #0a1c35, #174a84);
}
.demo-hero.blocked { background: linear-gradient(135deg, #3b2410, #7a4b0f); }
.demo-hero h2 { font-size: 25px; margin: 7px 0 5px; letter-spacing: -.025em; }
.demo-hero h2 strong { color: #89c5ff; }
.demo-hero p { margin: 0; color: #bfd1e8; font-size: 13px; }
.eyebrow { font-size: 9.5px; letter-spacing: .12em; font-weight: 800; color: #7fa9d6; }
.demo-total { min-width: 190px; padding-left: 28px; border-left: 1px solid rgba(255,255,255,.18); text-align: right; }
.demo-total span, .demo-total small { display: block; color: #b8cce5; font-size: 11px; }
.demo-total b { display: block; font-size: 30px; margin: 2px 0; font-variant-numeric: tabular-nums; }
.demo-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0 0 16px; }
.demo-step { display: flex; align-items: center; gap: 9px; padding: 11px 12px; background: #fff; border: 1px solid var(--line); border-right: 0; }
.demo-step:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.demo-step:last-child { border-right: 1px solid var(--line); border-radius: 0 var(--r-md) var(--r-md) 0; }
.demo-step i { width: 25px; height: 25px; flex: 0 0 25px; border-radius: 50%; background: #edf0f4; color: var(--faint); font-style: normal; font-weight: 750; font-size: 11px; display: grid; place-items: center; }
.demo-step b, .demo-step span { display: block; }
.demo-step b { font-size: 11.5px; } .demo-step span { font-size: 9.5px; color: var(--muted); margin-top: 1px; }
.demo-step.done i { background: var(--ok-soft); color: var(--ok); }
.demo-step.active i { background: var(--warn-soft); color: var(--warn); }
.demo-actions .panel { min-height: 178px; }
.demo-actions .panel h3 { margin: 5px 0 7px; font-size: 16px; }
.demo-actions .panel p { min-height: 40px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.result-ok { color: var(--ok); font-size: 12.5px; font-weight: 700; margin: 10px 0; }
.check-ok { color: var(--ok); font-weight: 700; } .check-bad { color: var(--bad); font-weight: 700; }
.check-wait { color: var(--muted); font-weight: 600; }
.cred-box { display: flex; gap: 28px; background: var(--pale, #eef4fa); border: 1px solid var(--line, #d5e0ea);
  border-radius: 10px; padding: 14px 18px; margin: 10px 0; }
.cred-box > div { display: flex; flex-direction: column; gap: 3px; }
.cred-box b { font-size: 18px; font-family: ui-monospace, Menlo, monospace; letter-spacing: .5px; }
.cred-box .muted { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 20px; border-left: 2px solid var(--line, #d5e0ea); }
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 3px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--blue, #1769aa); }
.timeline .tl-when { font-size: 11px; color: var(--muted); }
.timeline .tl-actor { font-weight: 700; }
.timeline .tl-sum { color: var(--muted); font-size: 12px; }
.addr-badge { margin-top: 6px; font-size: 12.5px; padding: 6px 10px; border-radius: 8px; display: inline-block; }
.addr-badge.muted { color: var(--muted); background: transparent; padding-left: 0; }
.addr-badge.ok { color: #0f7b4f; background: #e5f6ee; border: 1px solid #b6e2cd; font-weight: 600; }
.addr-badge.warn { color: #8a5a00; background: #fdf3e2; border: 1px solid #f0dcae; }
.ac-drop { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; margin-top: 3px;
  background: #fff; border: 1px solid var(--line, #d5e0ea); border-radius: 9px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(15,32,59,.16); max-height: 240px; overflow-y: auto; }
.ac-item { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 12px; cursor: pointer; font-size: 13.5px; }
.ac-item:hover { background: #eef4fb; }
.ac-item .ac-pn { color: var(--muted, #667); font-size: 11.5px; font-family: ui-monospace, Menlo, monospace; }
@media (prefers-color-scheme: dark) { .ac-drop { background: #16233b; } .ac-item:hover { background: #1e3050; } }
.oracle-seam { background: linear-gradient(120deg,#0b1f3a,#153a6b); color: #eaf2fb; border-radius: 12px; padding: 18px 20px; }
.oracle-seam h3 { color: #fff; margin: 0 0 4px; }
.oracle-seam .muted { color: #9db7d8; }
.oracle-seam .batch-row { display: flex; gap: 26px; margin: 12px 0; flex-wrap: wrap; }
.oracle-seam .batch-row > div { display: flex; flex-direction: column; gap: 2px; }
.oracle-seam .batch-row b { font-size: 17px; font-family: ui-monospace, Menlo, monospace; }
.oracle-seam .batch-row span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #9db7d8; }
.int-status { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.int-status .dot { width: 9px; height: 9px; border-radius: 50%; background: #47d18e; box-shadow: 0 0 0 4px rgba(71,209,142,.2); }
.reconcile-band, .reconcile-total { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 14px; margin-top: 12px; border-radius: 9px; background: var(--accent-softer); color: var(--ink-2); font-size: 12.5px; }
.reconcile-band b, .reconcile-total b { color: var(--ink); }
.reconcile-total strong { color: var(--ok); }
@media (max-width: 900px) {
  .demo-flow { grid-template-columns: 1fr; }
  .demo-step, .demo-step:last-child { border: 1px solid var(--line); border-bottom: 0; border-radius: 0; }
  .demo-step:first-child { border-radius: var(--r-md) var(--r-md) 0 0; }
  .demo-step:last-child { border-bottom: 1px solid var(--line); border-radius: 0 0 var(--r-md) var(--r-md); }
}
@media (max-width: 700px) {
  .demo-hero { align-items: flex-start; flex-direction: column; }
  .demo-total { border: 0; padding: 0; text-align: left; }
  .reconcile-total, .reconcile-band { align-items: flex-start; flex-direction: column; gap: 5px; }
}

/* thin elegant scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c9d2de; border-radius: 8px; border: 2.5px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #aab7c8; }
::-webkit-scrollbar-track { background: transparent; }
