@import url("../fonts/fonts.css");

:root {
  --ink: #0f1629;
  --ink-2: #161f38;
  --ink-3: #212c4f;
  --ink-4: #2f3c6b;
  --sage: #4f63e8;
  --sage-2: #8190f0;
  --sage-3: #c3caf0;
  --mist: #dfe3f2;
  --mist-2: #e9ecf7;
  --mist-3: #f1f3fb;
  --paper: #f6f7fc;
  --white: #ffffff;
  --text: #12192b;
  --muted: #5c6684;
  --faint: #8c94b0;
  --line: #dde1f0;
  --line-2: #e8ebf6;
  --ok: #1f8f5f;
  --ok-bg: #dff3e9;
  --flag: #d1453b;
  --flag-bg: #fde6e3;
  --flag-row: #fdf0ee;
  --wait: #b7791f;
  --wait-bg: #fbefd6;
  --rej: #4b5578;
  --rej-bg: #e4e7f3;
  --info: #3b6fb6;
  --info-bg: #dde9f8;
  --serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 22, 41, .06), 0 1px 1px rgba(15, 22, 41, .04);
  --shadow: 0 8px 28px -10px rgba(15, 22, 41, .22), 0 2px 6px rgba(15, 22, 41, .06);
  --shadow-lg: 0 30px 80px -24px rgba(15, 22, 41, .5), 0 8px 24px rgba(15, 22, 41, .12);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --side-w: 244px;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body, button, input, select, textarea { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
body {
  margin: 0; font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--text); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow: hidden;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
a { color: inherit; }
::selection { background: var(--sage-3); }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ scenes (welcome / auth) */
.scene {
  position: fixed; inset: 0; z-index: 100; background: var(--ink); overflow: hidden; display: grid; place-items: center;
  transition: opacity .7s var(--ease), visibility .7s;
}
.scene.out { opacity: 0; visibility: hidden; pointer-events: none; }
.aura { position: absolute; inset: 0; overflow: hidden; background: #0f1629; }
.aura .b { position: absolute; border-radius: 50%; will-change: transform; }
.aura .b1 { width: 92vmax; height: 74vmax; left: -34vmax; top: -38vmax; filter: blur(14px); background: radial-gradient(closest-side, #6b7cf2 0%, #4f63e8 48%, rgba(79, 99, 232, 0) 100%); animation: drift1 24s ease-in-out infinite alternate; }
.aura .b2 { width: 130vmax; height: 58vmax; left: -40vmax; top: 18vmax; filter: blur(16px); background: radial-gradient(closest-side, #e8ebf6 0%, #dde2f7 52%, rgba(221, 226, 247, 0) 100%); transform: rotate(-24deg); animation: drift2 28s ease-in-out infinite alternate; }
.aura .b3 { width: 104vmax; height: 104vmax; right: -44vmax; top: -34vmax; filter: blur(10px); background: radial-gradient(closest-side, #0a1022 0%, #0f1629 72%, rgba(15, 22, 41, 0) 100%); animation: drift3 30s ease-in-out infinite alternate; }
.aura .b4 { width: 96vmax; height: 56vmax; left: 6vmax; bottom: -40vmax; filter: blur(12px); background: radial-gradient(closest-side, #0b1226 0%, #0f1629 70%, rgba(15, 22, 41, 0) 100%); animation: drift1 26s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(5vmax, 4vmax, 0) scale(1.07); } }
@keyframes drift2 { from { transform: rotate(-24deg); } to { transform: rotate(-19deg) translate3d(4vmax, -3vmax, 0) scale(1.05); } }
@keyframes drift3 { to { transform: translate3d(-4vmax, 3vmax, 0) scale(1.05); } }
.aura::after, .side-grain::after, .grain::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); background-size: 180px; opacity: .2; mix-blend-mode: overlay; pointer-events: none; }
.grain { position: relative; }
.auth-stage { position: relative; z-index: 2; width: min(460px, calc(100vw - 32px)); text-align: center; color: #fff; }
.welcome-word { font-family: var(--serif); font-size: clamp(34px, 5vw, 58px); font-weight: 400; letter-spacing: .01em; color: #fbfffd; text-shadow: 0 2px 30px rgba(15, 22, 41, .25); animation: wordIn 1.6s var(--ease) both; }
.welcome-sub { margin-top: 14px; font-family: var(--serif); font-size: 17px; color: rgba(255, 255, 255, .8); letter-spacing: .01em; animation: wordIn 1.6s .5s var(--ease) both; }
.welcome-hint { position: absolute; z-index: 2; bottom: 34px; left: 0; right: 0; text-align: center; font-family: var(--serif); font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .7); animation: wordIn 1.4s 1.4s var(--ease) both; }
.welcome-hint span { display: inline-block; animation: nudge 2.2s ease-in-out infinite; }
@keyframes wordIn { from { opacity: 0; transform: translateY(14px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes nudge { 50% { transform: translateY(4px); opacity: .55; } }
.glass {
  position: relative; background: rgba(251, 253, 252, .86); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 26px; padding: 36px 34px 30px; text-align: left; color: var(--text);
  box-shadow: 0 40px 90px -30px rgba(3, 6, 16, .65), 0 2px 0 rgba(255, 255, 255, .5) inset; animation: cardIn .8s var(--ease) both;
}
.glass h2 { font-size: 30px; margin-bottom: 6px; }
.glass p.lead { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.glass .note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.glass .brand-mark { margin-bottom: 18px; }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(.98); } to { opacity: 1; transform: none; } }
.step-swap { animation: cardIn .6s var(--ease) both; }
.code-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; margin: 6px 0 4px; }
.code-boxes input { width: 100%; aspect-ratio: 1 / 1.12; text-align: center; font-family: var(--serif); font-size: 26px; border-radius: 12px; border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease-spring); }
.code-boxes input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px rgba(79, 99, 232, .22); transform: translateY(-2px); }
.code-boxes.err input { border-color: var(--flag); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.demo-code { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--mist-3); border: 1px dashed var(--sage); font-size: 13px; color: var(--ink-3); display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.demo-code b { font-family: var(--serif); font-size: 22px; letter-spacing: .24em; color: var(--ink); }
.row-split { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.avatar-pick { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }

/* ------------------------------------------------------------------ shell */
#app { position: fixed; inset: 0; display: grid; grid-template-columns: var(--side-w) 1fr; transition: grid-template-columns .35s var(--ease); opacity: 0; }
#app.ready { opacity: 1; transition: opacity .6s var(--ease), grid-template-columns .35s var(--ease); }
#app.collapsed { --side-w: 76px; }
.side { position: relative; background: var(--ink); color: #d3d9f0; display: flex; flex-direction: column; padding: 18px 14px 14px; z-index: 20; overflow: hidden; }
.side::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 60% at 0% 0%, rgba(79, 99, 232, .32), rgba(79, 99, 232, 0) 60%), radial-gradient(90% 50% at 100% 100%, rgba(79, 99, 232, .12), rgba(79, 99, 232, 0)); pointer-events: none; }
.side-grain::after { opacity: .13; }
.brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; padding: 6px 8px 22px; color: #fff; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 23px; letter-spacing: .01em; white-space: nowrap; transition: opacity .2s; }
#app.collapsed .brand-name, #app.collapsed .nav a span, #app.collapsed .me-text, #app.collapsed .side-foot .label { opacity: 0; width: 0; overflow: hidden; }
.nav { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nav a { position: relative; display: flex; align-items: center; gap: 13px; padding: 11px 13px; border-radius: 12px; color: #aab4d6; text-decoration: none; font-family: var(--serif); font-size: 16.5px; white-space: nowrap; transition: background .25s, color .25s, transform .25s var(--ease); }
.nav a svg { flex: none; width: 19px; height: 19px; stroke-width: 1.6; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.on { background: linear-gradient(100deg, rgba(79, 99, 232, .34), rgba(79, 99, 232, .12)); color: #fff; box-shadow: inset 0 0 0 1px rgba(129, 144, 240, .25); }
.nav a.on::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--sage-2); }
.nav .badge { margin-left: auto; font-family: var(--sans); font-size: 11px; font-weight: 600; background: var(--flag); color: #fff; border-radius: 999px; padding: 1px 7px; min-width: 20px; text-align: center; animation: pop .4s var(--ease-spring); }
#app.collapsed .nav .badge { position: absolute; right: 6px; top: 4px; padding: 0 5px; font-size: 10px; }
.side-foot { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 12px; margin-top: 8px; }
.me { display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: 12px; text-decoration: none; color: #fff; transition: background .25s; }
.me:hover, .me.on { background: rgba(255, 255, 255, .08); }
.me-text { min-width: 0; line-height: 1.25; }
.me-name { font-family: var(--serif); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-mail { font-size: 11.5px; color: #8f9ac0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.collapse-btn { display: flex; align-items: center; gap: 12px; background: none; border: 0; color: #8a95bd; padding: 8px 13px; border-radius: 10px; font-family: var(--serif); font-size: 14.5px; }
.collapse-btn:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.collapse-btn svg { transition: transform .35s var(--ease); width: 18px; height: 18px; }
#app.collapsed .collapse-btn svg { transform: rotate(180deg); }
.avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--sage), var(--ink-4)); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 16px; overflow: hidden; box-shadow: 0 0 0 2px rgba(255, 255, 255, .15); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 84px; height: 84px; font-size: 32px; }

.main { position: relative; min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--paper); }
.main::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 340px; background: radial-gradient(70% 100% at 0% 0%, rgba(79, 99, 232, .2), rgba(79, 99, 232, 0)), radial-gradient(50% 90% at 100% 0%, rgba(223, 227, 242, .9), rgba(223, 227, 242, 0)); pointer-events: none; }
.topbar { position: relative; z-index: 5; display: flex; align-items: flex-start; gap: 16px; padding: 28px 38px 6px; flex-wrap: wrap; }
.topbar .titles { flex: 1; min-width: 220px; }
.topbar h1 { font-size: 38px; line-height: 1.05; }
.topbar .sub { color: var(--muted); margin-top: 6px; font-size: 14px; max-width: 70ch; }
.top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.company-chip { display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-family: var(--serif); font-size: 15px; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; }
.company-chip:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.company-chip .ic { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--mist-2); color: var(--ink-3); }
.company-chip .ic svg { width: 14px; height: 14px; }
.page { position: relative; z-index: 2; flex: 1; overflow: auto; padding: 18px 38px 48px; scroll-behavior: smooth; }
.page > * { animation: rise .55s var(--ease) both; }
.page > *:nth-child(2) { animation-delay: .05s; } .page > *:nth-child(3) { animation-delay: .1s; } .page > *:nth-child(4) { animation-delay: .15s; } .page > *:nth-child(5) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.btn.menu-btn { display: none; }

/* ------------------------------------------------------------------ controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 10px 18px; font-family: var(--serif); font-size: 15.5px; line-height: 1.2; font-weight: 500; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .25s, background .25s, color .25s, border-color .25s, opacity .2s; position: relative; overflow: hidden; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -10px rgba(15, 22, 41, .8); }
.btn.primary:hover:not(:disabled) { background: var(--ink-3); transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(15, 22, 41, .75); }
.btn.sage { background: var(--sage); color: #ffffff; }
.btn.sage:hover:not(:disabled) { background: var(--sage-2); transform: translateY(-1px); }
.btn.light { background: var(--white); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn.light:hover:not(:disabled) { border-color: var(--sage-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.ghost { background: transparent; color: var(--ink-3); }
.btn.ghost:hover:not(:disabled) { background: var(--mist-2); }
.btn.danger { background: var(--flag-bg); color: var(--flag); border-color: #f1c4bf; }
.btn.danger:hover:not(:disabled) { background: #f9d6d2; }
.btn.ok { background: var(--ok); color: #fff; }
.btn.ok:hover:not(:disabled) { background: #17784d; transform: translateY(-1px); }
.btn.sm { padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; padding: 13px 18px; font-size: 17px; }
.btn.icon { padding: 8px; border-radius: 10px; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.field { display: block; margin-bottom: 14px; }
.field > .lab { display: block; font-family: var(--serif); font-size: 14.5px; color: var(--ink-3); margin-bottom: 6px; }
.field .hint { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 11px 14px; transition: border-color .2s, box-shadow .2s; font-size: 14px; }
.textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px rgba(79, 99, 232, .2); }
.input.err { border-color: var(--flag); box-shadow: 0 0 0 4px rgba(191, 79, 68, .12); }
.input.sm, .select.sm { padding: 7px 11px; border-radius: 10px; font-size: 13px; }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%235b7371' stroke-width='1.6' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; cursor: pointer; }
.err-text { color: var(--flag); font-size: 12.5px; margin-top: 6px; min-height: 1px; }
.searchbox { position: relative; }
.searchbox svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.searchbox .input { padding-left: 36px; }
.segs { display: inline-flex; background: var(--mist-2); border-radius: 12px; padding: 3px; gap: 2px; position: relative; }
.segs button { position: relative; z-index: 1; background: none; border: 0; padding: 7px 14px; border-radius: 9px; font-family: var(--serif); font-size: 14.5px; color: var(--muted); transition: color .25s, background .25s, box-shadow .25s; white-space: nowrap; }
.segs button:hover { color: var(--ink); }
.segs button.on { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.segs button .n { font-family: var(--sans); font-size: 11px; font-weight: 600; margin-left: 6px; padding: 1px 6px; border-radius: 99px; background: var(--mist); color: var(--ink-3); }
.segs button.on .n { background: var(--ink); color: #fff; }
.segs button.flag .n { background: var(--flag-bg); color: var(--flag); }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; position: relative; z-index: 20; }
.toolbar:has(.range-pop) { z-index: 40; }
.toolbar .grow { flex: 1; min-width: 180px; }
.toggle { position: relative; width: 42px; height: 24px; flex: none; }
.toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 2; }
.toggle i { position: absolute; inset: 0; background: var(--mist); border-radius: 99px; transition: background .25s; }
.toggle i::after { content: ""; position: absolute; width: 18px; height: 18px; top: 3px; left: 3px; background: #fff; border-radius: 50%; transition: transform .3s var(--ease-spring); box-shadow: var(--shadow-sm); }
.toggle input:checked + i { background: var(--sage); }
.toggle input:checked + i::after { transform: translateX(18px); }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 11px 3px 9px; font-family: var(--serif); font-size: 14px; white-space: nowrap; line-height: 1.35; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.approved { background: var(--ok-bg); color: var(--ok); }
.chip.flagged { background: var(--flag-bg); color: var(--flag); }
.chip.awaiting { background: var(--wait-bg); color: var(--wait); }
.chip.rejected { background: var(--rej-bg); color: var(--rej); }
.chip.processing { background: var(--info-bg); color: var(--info); }
.chip.processing::before { animation: pulse 1s infinite; }
.chip.excluded, .chip.neutral { background: var(--mist-2); color: var(--muted); }
.chip.neutral::before { display: none; }
.chip.draft, .chip.pending, .chip.inactive { background: var(--wait-bg); color: var(--wait); }
.chip.verified { background: var(--ok-bg); color: var(--ok); }
.chip.blocked, .chip.cancelled { background: var(--flag-bg); color: var(--flag); }
.chip.closed { background: var(--rej-bg); color: var(--rej); }
.chip.sm { font-size: 12.5px; padding: 1px 9px 1px 7px; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }
.tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; background: var(--mist-2); color: var(--ink-3); }

/* cards + tables */
.card { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 22px 24px; position: relative; }
.card.pad0 { padding: 0; overflow: hidden; }
.card h3 { font-size: 21px; margin-bottom: 4px; }
.card .sub { color: var(--muted); font-size: 13px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.table-wrap { overflow: auto; max-width: 100%; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 860px; }
.tbl th { position: sticky; top: 0; z-index: 1; text-align: left; font-family: var(--serif); font-weight: 500; font-size: 14px; color: var(--muted); padding: 13px 14px; background: var(--mist-3); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; transition: background .2s; }
.tbl tbody tr { cursor: pointer; animation: rowIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); }
@keyframes rowIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.tbl tbody tr:hover td { background: var(--mist-3); }
.tbl tbody tr.flagged td { background: var(--flag-row); }
.tbl tbody tr.flagged:hover td { background: #f8e3df; }
.tbl tbody tr.flagged td:first-child { box-shadow: inset 3px 0 0 var(--flag); }
.tbl tbody tr.approved td:first-child { box-shadow: inset 3px 0 0 var(--ok); }
.tbl tbody tr.rejected td { color: var(--muted); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .cell-main { font-family: var(--serif); font-size: 17px; line-height: 1.2; }
.tbl .cell-sub { font-size: 12px; color: var(--muted); margin-top: 2px; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl .cmt { min-width: 220px; max-width: 440px; color: #2f3957; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.45; }
.tbl .amt { font-family: var(--serif); font-size: 17px; white-space: nowrap; }
.tbl tr.skeleton td { animation: none; }
.empty { text-align: center; padding: 64px 24px; color: var(--muted); }
.empty .art { width: 84px; height: 84px; margin: 0 auto 14px; color: var(--sage); }
.empty h3 { color: var(--text); font-size: 22px; margin-bottom: 6px; }
.empty p { margin: 0 auto 18px; max-width: 46ch; }
.sk { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--mist-2) 25%, var(--mist-3) 50%, var(--mist-2) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.link { background: none; border: 0; padding: 0; color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 3px; cursor: pointer; font: inherit; }
.link:hover { color: var(--ink); }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--muted); font-family: var(--serif); font-size: 14.5px; }
.kv dd { margin: 0; word-break: break-word; }

/* ------------------------------------------------------------------ dashboard */
.dash-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.c-total { grid-column: span 4; } .c-donut { grid-column: span 8; } .c-line { grid-column: span 12; } .c-attn { grid-column: span 7; } .c-recent { grid-column: span 5; }
.big-num { font-family: var(--serif); font-size: 64px; line-height: 1; letter-spacing: -.02em; }
.big-sub { font-family: var(--serif); font-size: 26px; color: var(--ink-3); margin-top: 6px; }
.stat-row { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.stat-pill { flex: 1; min-width: 92px; background: var(--mist-3); border-radius: 14px; padding: 11px 13px; border: 1px solid var(--line-2); }
.stat-pill .k { font-family: var(--serif); color: var(--muted); font-size: 13.5px; }
.stat-pill .v { font-family: var(--serif); font-size: 24px; line-height: 1.15; }
.dark-card { background: var(--ink); color: #eceffb; border: 0; overflow: hidden; }
.dark-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 80% at 0% 0%, rgba(79, 99, 232, .5), rgba(79, 99, 232, 0) 65%), radial-gradient(70% 60% at 100% 100%, rgba(129, 144, 240, .22), rgba(129, 144, 240, 0)); pointer-events: none; }
.dark-card > * { position: relative; }
.dark-card .sub, .dark-card .big-sub { color: #aeb8dc; }
.dark-card .stat-pill { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .1); }
.dark-card .stat-pill .k { color: #aeb8dc; }
.donut-wrap { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.donut { position: relative; width: 236px; height: 236px; flex: none; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.donut circle.dseg { fill: none; stroke-width: 26; stroke-linecap: butt; cursor: pointer; transition: stroke-width .25s var(--ease), opacity .25s, filter .25s; transform-origin: 50% 50%; }
.donut circle.dseg:hover, .donut circle.dseg.hi { stroke-width: 32; filter: drop-shadow(0 4px 10px rgba(15, 22, 41, .25)); }
.donut.dim circle.dseg:not(.hi) { opacity: .35; }
.donut .center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut .center .n { font-family: var(--serif); font-size: 50px; line-height: 1; }
.donut .center .l { font-family: var(--serif); color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.legend { flex: 1; min-width: 230px; display: flex; flex-direction: column; gap: 10px; }
.legend-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--white); cursor: pointer; text-align: left; width: 100%; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, background .25s; }
.legend-row:hover, .legend-row.hi { transform: translateX(4px); box-shadow: var(--shadow); border-color: var(--sage-2); background: var(--mist-3); }
.legend-row .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.legend-row .nm { font-family: var(--serif); font-size: 17px; flex: 1; }
.legend-row .ct { font-family: var(--serif); font-size: 24px; }
.legend-row .am { font-size: 12px; color: var(--muted); min-width: 92px; text-align: right; }
.legend-row .go { color: var(--faint); transition: transform .25s var(--ease), color .25s; }
.legend-row:hover .go { transform: translateX(3px); color: var(--ink); }
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid line { stroke: var(--line-2); stroke-width: 1; }
.chart .ax text { fill: var(--faint); font-family: var(--sans); font-size: 11px; }
.chart .path { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.4s .15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart .area { opacity: 0; animation: fadein 1s .7s ease forwards; }
@keyframes fadein { to { opacity: 1; } }
.chart .guide { stroke: var(--ink); stroke-opacity: .25; stroke-dasharray: 3 4; opacity: 0; transition: opacity .15s; }
.chart .pt { opacity: 0; transition: opacity .15s; }
.chart .tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; padding: 9px 12px; border-radius: 12px; font-size: 12px; opacity: 0; transform: translate(-50%, -110%); transition: opacity .15s; white-space: nowrap; box-shadow: var(--shadow); z-index: 3; }
.chart .tip b { font-family: var(--serif); font-size: 14px; font-weight: 500; display: block; margin-bottom: 3px; }
.chart .tip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.key { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.key i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.attn-item { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; transition: transform .2s var(--ease); }
.attn-item:last-child { border-bottom: 0; }
.attn-item:hover { transform: translateX(4px); }
.attn-item .t { flex: 1; min-width: 0; }
.attn-item .t b { font-family: var(--serif); font-size: 17px; font-weight: 500; }
.attn-item .t div { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-item { display: flex; gap: 12px; padding: 11px 0; font-size: 13px; border-bottom: 1px solid var(--line-2); }
.feed-item:last-child { border-bottom: 0; }
.feed-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--sage); }
.feed-dot.flagged { background: var(--flag); } .feed-dot.approved { background: var(--ok); } .feed-dot.rejected { background: var(--rej); }
.feed-item b { font-family: var(--serif); font-weight: 500; font-size: 15px; }
.feed-item time { color: var(--faint); font-size: 11.5px; display: block; }
.range { position: relative; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.range-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 16px; display: grid; gap: 10px; width: 270px; animation: pop .25s var(--ease); transform-origin: top right; }

/* ------------------------------------------------------------------ overlays */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(9, 13, 26, .45); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); opacity: 0; transition: opacity .3s var(--ease); display: grid; place-items: center; padding: 20px; }
.overlay.show { opacity: 1; }
.modal { background: var(--white); border-radius: 24px; width: min(540px, 100%); max-height: calc(100vh - 40px); overflow: auto; box-shadow: var(--shadow-lg); padding: 28px; transform: translateY(24px) scale(.97); opacity: 0; transition: transform .4s var(--ease), opacity .3s; }
.modal.wide { width: min(780px, 100%); }
.overlay.show .modal { transform: none; opacity: 1; }
.modal h2 { font-size: 28px; margin-bottom: 6px; }
.modal .lead { color: var(--muted); margin: 0 0 20px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
.drawer-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(9, 13, 26, .4); backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s var(--ease); }
.drawer-overlay.show { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(1180px, 100vw); background: var(--paper); z-index: 51; transform: translateX(104%); transition: transform .5s var(--ease); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; border-radius: 28px 0 0 28px; overflow: hidden; }
.drawer.narrow { width: min(640px, 100vw); }
.drawer.show { transform: none; }
.drawer-head { position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 24px 30px 16px; background: linear-gradient(180deg, var(--white), var(--paper)); border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.drawer-head .ttl { flex: 1; min-width: 200px; }
.drawer-head h2 { font-size: 32px; line-height: 1.1; }
.drawer-head .meta { color: var(--muted); font-size: 13px; margin-top: 6px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.drawer-body { flex: 1; overflow: auto; padding: 22px 30px 40px; }
.toasts { position: fixed; z-index: 200; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; background: var(--ink); color: #fff; padding: 12px 18px 12px 14px; border-radius: 14px; box-shadow: var(--shadow-lg); display: flex; gap: 11px; align-items: center; font-size: 14px; max-width: min(560px, 92vw); animation: toastIn .5s var(--ease-spring) both; }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
.toast svg { width: 18px; height: 18px; flex: none; }
.toast.ok svg { color: var(--sage-2); } .toast.err svg { color: #ff9f94; } .toast.err { background: #3a1613; }
@keyframes toastIn { from { opacity: 0; transform: translateY(26px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(12px) scale(.96); } }

/* ------------------------------------------------------------------ case drawer */
.case-grid { display: grid; grid-template-columns: minmax(300px, 5fr) 7fr; gap: 22px; align-items: start; }
.doc-panel { position: sticky; top: 0; }
.doc-frame { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); position: relative; min-height: 320px; }
.doc-frame img { display: block; width: 100%; height: auto; animation: fadein .5s ease both; opacity: 0; }
.doc-frame .loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); }
.doc-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.doc-bar .grow { flex: 1; }
.pill-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-family: var(--serif); font-size: 15px; cursor: pointer; transition: all .25s var(--ease); }
.pill:hover { border-color: var(--sage-2); transform: translateY(-1px); }
.pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill .sd { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.pill .sd.approved { background: var(--ok); } .pill .sd.flagged { background: var(--flag); } .pill .sd.rejected { background: var(--rej); } .pill .sd.processing { background: var(--info); }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { position: relative; background: none; border: 0; padding: 10px 2px 12px; font-family: var(--serif); font-size: 17px; color: var(--muted); white-space: nowrap; transition: color .2s; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); }
.tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); animation: grow .35s var(--ease); transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.tabs .cnt { font-family: var(--sans); font-size: 11px; font-weight: 600; margin-left: 6px; background: var(--mist-2); border-radius: 99px; padding: 1px 7px; color: var(--ink-3); }
.tab-pane { animation: rise .4s var(--ease) both; }
.banner { border-radius: 18px; padding: 18px 20px; display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; border: 1px solid; }
.banner .bi { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.banner .bi svg { width: 20px; height: 20px; }
.banner h4 { font-size: 20px; margin-bottom: 3px; }
.banner p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #2b3552; }
.banner.approved { background: var(--ok-bg); border-color: #b8e1cd; } .banner.approved .bi { background: var(--ok); color: #fff; } .banner.approved h4 { color: #176e49; }
.banner.flagged { background: var(--flag-row); border-color: #f1c6c0; } .banner.flagged .bi { background: var(--flag); color: #fff; } .banner.flagged h4 { color: #a8362d; }
.banner.rejected { background: var(--rej-bg); border-color: #d3d8ea; } .banner.rejected .bi { background: var(--rej); color: #fff; }
.banner.processing, .banner.excluded { background: var(--info-bg); border-color: #c4d7ef; } .banner.processing .bi, .banner.excluded .bi { background: var(--info); color: #fff; }
.bar-calc { margin: 6px 0 20px; }
.bar-calc .lab { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 15px; margin-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.bar { position: relative; height: 16px; background: var(--mist); border-radius: 99px; overflow: hidden; display: flex; }
.bar .bseg { height: 100%; transition: width 1s var(--ease); border-right: 2px solid var(--white); min-width: 2px; }
.bar.over { box-shadow: 0 0 0 2px var(--flag-bg); }
.bar-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 8px; }
.bar-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.issue { border: 1px solid #f1c6c0; background: var(--white); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; position: relative; overflow: hidden; }
.issue::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--flag); }
.issue .step { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--flag); margin-bottom: 4px; }
.issue .tx { font-size: 14px; line-height: 1.5; }
.issue .nx { margin-top: 6px; font-size: 13px; color: var(--muted); }
.issue .nx b { font-family: var(--serif); font-weight: 500; color: var(--ink-3); font-size: 14px; }
.issue .acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.checks { display: grid; gap: 4px; }
.check { display: flex; gap: 11px; padding: 8px 10px; border-radius: 10px; font-size: 13px; align-items: flex-start; }
.check:hover { background: var(--mist-3); }
.check .ci { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.check .ci svg { width: 11px; height: 11px; stroke-width: 3; }
.check.pass .ci { background: var(--ok-bg); color: var(--ok); } .check.fail .ci { background: var(--flag-bg); color: var(--flag); } .check.info .ci { background: var(--mist-2); color: var(--muted); }
.check .d { color: var(--muted); font-size: 12.5px; }
.check .stp { margin-left: auto; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding-top: 3px; }
.action-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 20px; }
.fields-table { width: 100%; border-collapse: collapse; }
.fields-table td { padding: 8px 6px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.fields-table td:first-child { width: 150px; font-family: var(--serif); color: var(--muted); font-size: 14.5px; }
.fields-table .orig { font-size: 11.5px; color: var(--faint); margin-top: 3px; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-table th { text-align: left; font-family: var(--serif); font-weight: 500; font-size: 13.5px; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
.mini-table td { padding: 9px 8px; border-bottom: 1px solid var(--line-2); }
.mini-table .r { text-align: right; }
.mini-table .tick { color: var(--ok); } .mini-table .cross { color: var(--flag); }
.qty-bar { height: 6px; border-radius: 6px; background: var(--mist); overflow: hidden; margin-top: 5px; min-width: 70px; }
.qty-bar i { display: block; height: 100%; background: var(--sage); border-radius: 6px; transition: width .8s var(--ease); }
.qty-bar i.over { background: var(--flag); }
.thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.bubble { max-width: 88%; padding: 13px 16px; border-radius: 18px; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; animation: rise .4s var(--ease) both; }
.bubble.out { align-self: flex-end; background: var(--ink); color: #eceffb; border-bottom-right-radius: 6px; }
.bubble.in { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble .bm { font-size: 11.5px; opacity: .7; margin-bottom: 5px; display: flex; gap: 8px; flex-wrap: wrap; white-space: normal; }
.bubble .bs { font-family: var(--serif); font-size: 15px; margin-bottom: 4px; white-space: normal; }
.bubble.out .link { color: #c6cdf6; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); border-radius: 2px; }
.tl-item { position: relative; padding: 0 0 18px; }
.tl-item::before { content: ""; position: absolute; left: -22px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--sage); }
.tl-item.flagged::before { border-color: var(--flag); } .tl-item.approved::before { border-color: var(--ok); } .tl-item.rejected::before { border-color: var(--rej); }
.tl-item .when { font-size: 11.5px; color: var(--faint); }
.tl-item .who { font-family: var(--serif); font-size: 15.5px; }
.tl-item .what { font-size: 13px; color: #2b3552; margin-top: 2px; line-height: 1.5; }
.sect-title { font-family: var(--serif); font-size: 19px; margin: 22px 0 10px; display: flex; align-items: center; gap: 10px; }
.sect-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ------------------------------------------------------------------ live run */
.run-grid { display: grid; grid-template-columns: 290px 1fr; gap: 22px; align-items: start; }
.doc-list { display: flex; flex-direction: column; gap: 10px; }
.doc-card { display: flex; align-items: center; gap: 12px; text-align: left; padding: 13px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--white); cursor: pointer; transition: all .3s var(--ease); width: 100%; animation: rise .4s var(--ease) both; }
.doc-card:hover { border-color: var(--sage-2); transform: translateX(3px); }
.doc-card.on { border-color: var(--ink); box-shadow: var(--shadow); }
.doc-card .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--mist-2); color: var(--ink-3); flex: none; }
.doc-card .ic svg { width: 18px; height: 18px; }
.doc-card .nm { font-size: 13px; font-weight: 500; word-break: break-all; line-height: 1.3; }
.doc-card .st { margin-top: 4px; }
.pipe { position: relative; padding-left: 8px; }
.stage { position: relative; display: flex; gap: 16px; padding-bottom: 6px; }
.stage .rail { position: relative; width: 34px; flex: none; display: flex; flex-direction: column; align-items: center; }
.stage .rail::after { content: ""; flex: 1; width: 2px; background: var(--line); margin: 4px 0; transition: background .5s; }
.stage:last-child .rail::after { display: none; }
.stage.done .rail::after { background: var(--sage); }
.node { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--line); color: var(--faint); transition: all .4s var(--ease-spring); flex: none; }
.node svg { width: 16px; height: 16px; }
.stage.running .node { border-color: var(--sage); color: var(--sage); box-shadow: 0 0 0 6px rgba(79, 99, 232, .2); }
.stage.running .node::after { content: ""; position: absolute; width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--sage); animation: spin .8s linear infinite; }
.stage.ok .node, .stage.approved .node { background: var(--ok); border-color: var(--ok); color: #fff; animation: pop .5s var(--ease-spring); }
.stage.fail .node, .stage.flagged .node { background: var(--flag); border-color: var(--flag); color: #fff; animation: pop .5s var(--ease-spring); }
.stage.skip .node, .stage.excluded .node { background: var(--mist-2); color: var(--muted); }
.stage .body { flex: 1; min-width: 0; padding: 3px 0 18px; }
.stage .st-title { font-family: var(--serif); font-size: 18px; line-height: 1.2; color: var(--muted); transition: color .3s; }
.stage.running .st-title, .stage.ok .st-title, .stage.fail .st-title, .stage.approved .st-title, .stage.flagged .st-title { color: var(--ink); }
.stage .st-detail { margin-top: 8px; display: grid; gap: 5px; animation: rise .45s var(--ease) both; }
.sd-line { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; background: var(--white); border: 1px solid var(--line-2); border-radius: 11px; padding: 7px 11px; }
.sd-line .dt { color: var(--muted); }
.sd-line .m { flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; }
.sd-line .m svg { width: 10px; height: 10px; stroke-width: 3.2; }
.sd-line.pass .m { background: var(--ok-bg); color: var(--ok); } .sd-line.fail .m { background: var(--flag-bg); color: var(--flag); } .sd-line.info .m { background: var(--mist-2); color: var(--muted); }
.sd-line.fail { border-color: #f1c6c0; background: var(--flag-row); }
.decision-card { margin-top: 8px; padding: 18px 20px; border-radius: 18px; animation: pop .5s var(--ease-spring) both; }
.decision-card.approved { background: var(--ok-bg); border: 1px solid #b8e1cd; } .decision-card.flagged { background: var(--flag-row); border: 1px solid #f1c6c0; } .decision-card.excluded { background: var(--info-bg); border: 1px solid #c4d7ef; }
.decision-card h4 { font-size: 22px; margin-bottom: 4px; }
.decision-card p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; }
.mail-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 18px; display: flex; gap: 14px; }
.mail-card .mi { width: 40px; height: 40px; border-radius: 50%; background: var(--mist-2); display: grid; place-items: center; color: var(--ink-3); flex: none; }

/* add / scenarios */
.drop { display: block; border: 2px dashed var(--sage-2); background: var(--mist-3); border-radius: 20px; padding: 34px 20px; text-align: center; transition: all .3s var(--ease); cursor: pointer; }
.drop:hover, .drop.over { background: var(--ok-bg); border-color: var(--sage); transform: scale(1.01); }
.drop svg { width: 38px; height: 38px; color: var(--sage); margin-bottom: 8px; }
.drop b { font-family: var(--serif); font-size: 19px; font-weight: 500; display: block; }
.file-list { display: grid; gap: 6px; margin: 12px 0 0; }
.file-item { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 11px; padding: 7px 8px 7px 12px; font-size: 13px; animation: rise .3s var(--ease) both; }
.file-item .sz { color: var(--faint); font-size: 12px; }
.scen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.scen { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 15px 16px; transition: all .3s var(--ease); position: relative; display: flex; flex-direction: column; gap: 6px; }
.scen:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sage-2); }
.scen h4 { font-size: 18px; line-height: 1.2; }
.scen p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; flex: 1; }
.scen .tg { align-self: flex-start; }
.scen .tg.ok { background: var(--ok-bg); color: var(--ok); } .scen .tg.warn { background: var(--wait-bg); color: var(--wait); } .scen .tg.bad { background: var(--flag-bg); color: var(--flag); }
.scen .go { font-family: var(--serif); font-size: 14.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.scen:hover .go { color: var(--ink); }

/* settings, vendors */
.settings-grid { display: grid; gap: 18px; max-width: 920px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.status-line { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 10px 14px; border-radius: 12px; background: var(--mist-3); margin-bottom: 14px; }
.status-line i { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.status-line.good i { background: var(--ok); } .status-line.warn i { background: var(--wait); } .status-line.bad i { background: var(--flag); }
.vendor-name { display: flex; align-items: center; gap: 12px; }
.vendor-ico { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--sage-3), var(--sage)); display: grid; place-items: center; color: var(--ink); font-family: var(--serif); font-size: 18px; flex: none; }
.po-lines-edit .row { display: grid; grid-template-columns: 110px 1fr 80px 110px 34px; gap: 8px; margin-bottom: 8px; align-items: center; animation: rise .3s var(--ease) both; }
.menu { position: fixed; z-index: 90; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 190px; animation: pop .2s var(--ease); transform-origin: top right; }
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border: 0; background: none; border-radius: 9px; font-family: var(--serif); font-size: 15px; text-align: left; }
.menu button:hover { background: var(--mist-3); }
.menu button.dng { color: var(--flag); }
.menu hr { border: 0; border-top: 1px solid var(--line-2); margin: 5px 0; }
.run-list { display: grid; gap: 8px; }
.run-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); cursor: pointer; transition: all .25s var(--ease); text-align: left; width: 100%; }
.run-row:hover { border-color: var(--sage-2); transform: translateX(3px); }
.hbar { height: 1px; background: var(--line); margin: 18px 0; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .c-total, .c-donut, .c-attn, .c-recent { grid-column: span 12; }
}
@media (max-width: 1100px) { .col-sno { display: none; } }
@media (max-width: 960px) {
  .case-grid { grid-template-columns: 1fr; }
  .doc-panel { position: static; }
}
@media (max-width: 900px) {
  #app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 262px; transform: translateX(-102%); transition: transform .4s var(--ease), box-shadow .4s; box-shadow: none; }
  #app.menu-open .side { transform: none; box-shadow: var(--shadow-lg); }
  #app.collapsed { --side-w: 244px; }
  #app.collapsed .brand-name, #app.collapsed .nav a span, #app.collapsed .me-text, #app.collapsed .side-foot .label { opacity: 1; width: auto; }
  .collapse-btn { display: none; }
  .btn.menu-btn { display: inline-flex; }
  .topbar { padding: 20px 18px 4px; } .topbar h1 { font-size: 30px; }
  .page { padding: 14px 18px 40px; }
  .run-grid { grid-template-columns: 1fr; }
  .drawer { border-radius: 0; }
  .drawer-head, .drawer-body { padding-left: 18px; padding-right: 18px; }
  .two, .three { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 8px; }
  .po-lines-edit .row { grid-template-columns: 1fr 1fr; }
  .menu-scrim { position: fixed; inset: 0; z-index: 19; background: rgba(9, 13, 26, .4); }
}
@media (max-width: 560px) {
  .glass { padding: 28px 22px 24px; }
  .big-num { font-size: 52px; }
  .donut { width: 200px; height: 200px; margin: 0 auto; }
  .segs button { padding: 7px 10px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--sage-3); border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--sage-2); background-clip: content-box; border: 2px solid transparent; }


/* ---- standard type scale (Inter) ---- */
body { font-size: 14px; }
.topbar h1 { font-size: 30px; font-weight: 650; }
.topbar .sub { font-size: 14px; }
.brand-name { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.nav a { font-size: 14.5px; font-weight: 500; }
.me-name { font-size: 14px; font-weight: 600; }
.collapse-btn { font-size: 13.5px; }
.company-chip { font-size: 13.5px; font-weight: 500; }
.btn { font-size: 14px; font-weight: 550; padding: 9px 16px; }
.btn.sm { font-size: 13px; padding: 6px 11px; }
.btn.block { font-size: 15px; }
.field > .lab { font-size: 13px; font-weight: 550; color: var(--ink-3); }
.segs button { font-size: 13.5px; font-weight: 500; }
.chip { font-size: 12.5px; font-weight: 550; }
.chip.sm { font-size: 11.5px; }
.tbl th { font-size: 12.5px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.tbl .cell-main { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.tbl .amt { font-size: 14.5px; font-weight: 600; }
.card h3 { font-size: 17px; font-weight: 650; }
.glass h2 { font-size: 26px; }
.welcome-word { font-weight: 600; letter-spacing: -.03em; }
.big-num { font-size: 58px; font-weight: 650; letter-spacing: -.04em; }
.big-sub { font-size: 24px; font-weight: 550; }
.stat-pill .k { font-size: 12.5px; } .stat-pill .v { font-size: 20px; font-weight: 600; }
.donut .center .n { font-size: 44px; font-weight: 650; } .donut .center .l { font-size: 13px; }
.legend-row .nm { font-size: 15px; font-weight: 550; } .legend-row .ct { font-size: 20px; font-weight: 650; }
.attn-item .t b { font-size: 14.5px; font-weight: 600; }
.feed-item b { font-size: 13.5px; font-weight: 600; }
.drawer-head h2 { font-size: 26px; }
.tabs button { font-size: 14.5px; font-weight: 550; }
.pill { font-size: 13.5px; font-weight: 550; }
.banner h4 { font-size: 17px; font-weight: 650; }
.bar-calc .lab { font-size: 14px; }
.issue .nx b { font-size: 13px; font-weight: 600; }
.sect-title { font-size: 16px; font-weight: 650; }
.stage .st-title { font-size: 15.5px; font-weight: 600; }
.decision-card h4 { font-size: 19px; }
.mail-card .serif, .serif { font-weight: 600; }
.scen h4 { font-size: 16px; font-weight: 650; } .scen .go { font-size: 13.5px; font-weight: 550; }
.drop b { font-size: 16px; font-weight: 600; }
.menu button { font-size: 14px; font-weight: 500; }
.modal h2 { font-size: 24px; }
.bubble .bs { font-size: 14px; font-weight: 600; }
.tl-item .who { font-size: 14px; font-weight: 600; }
.empty h3 { font-size: 20px; }
.vendor-ico { font-weight: 650; font-size: 16px; }
.kv dt { font-size: 13px; }
.tbl .cell-main, .legend-row .ct, .big-num { font-variant-numeric: tabular-nums lining-nums; }
.code-boxes input { font-family: var(--sans); font-weight: 600; font-size: 24px; }
.demo-code b { font-family: var(--sans); font-weight: 650; letter-spacing: .2em; }
.mini-table th { font-size: 12.5px; font-weight: 600; }
.fields-table td:first-child { font-size: 13px; font-weight: 550; }

/* ---- flat, solid surfaces (only faint gradients) ---- */
.aura { background: linear-gradient(165deg, #172140 0%, #0f1629 60%, #0b1122 100%); }
.aura .b { display: none; }
.aura::after, .side-grain::after, .grain::after { display: none; }
.glass { background: #ffffff; backdrop-filter: none; -webkit-backdrop-filter: none; border: 1px solid #e3e6f3; box-shadow: 0 30px 70px -30px rgba(3, 6, 16, .7); }
.side { background: #0f1629; }
.side::before { display: none; }
.nav a.on { background: rgba(255, 255, 255, .09); box-shadow: none; }
.nav a:hover { background: rgba(255, 255, 255, .05); }
.main::before { display: none; }
.main { background: var(--paper); }
.dark-card { background: linear-gradient(160deg, #1a2447 0%, #0f1629 100%); }
.dark-card::before { display: none; }
.avatar { background: var(--sage); box-shadow: none; }
.vendor-ico { background: var(--sage-3); color: var(--ink); }
.drawer-head { background: var(--white); }
.btn.primary { box-shadow: none; }
.btn.primary:hover:not(:disabled) { box-shadow: none; }
.company-chip, .btn.light, .card { box-shadow: 0 1px 2px rgba(15, 22, 41, .06); }
.demo-code { background: var(--mist-3); }

/* ---- case page ---- */
.case-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.case-head .meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 13px; }
.doc-panel { top: 8px; }
.page > .case-head, .page > #cbody { animation: rise .45s var(--ease) both; }

/* ---- Finzo brand ---- */
.brand { padding: 4px 8px 22px; }
.brand-full { height: 30px; width: auto; display: block; }
.brand-icon { display: none; height: 28px; width: auto; margin-left: 2px; }
#app.collapsed .brand-full { display: none; }
#app.collapsed .brand-icon { display: block; }
.auth-logo { height: 38px; width: auto; display: block; margin-bottom: 20px; }
img.brand-mark { width: auto; height: 32px; }

/* ---- standard settings layout ---- */
.set-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; max-width: 1080px; }
.set-nav { position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; }
.set-nav button { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 0; background: none; border-radius: 10px; font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--muted); text-align: left; transition: background .2s, color .2s; }
.set-nav button:hover { background: var(--mist-2); color: var(--ink); }
.set-nav button.on { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 22, 41, .08), inset 0 0 0 1px var(--line-2); }
.set-card { background: var(--white); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 1px 2px rgba(15, 22, 41, .05); overflow: hidden; animation: rise .4s var(--ease) both; }
.set-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--line-2); }
.set-head h2 { font-size: 20px; font-weight: 650; }
.set-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.srow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; padding: 18px 24px; border-bottom: 1px solid var(--line-2); align-items: center; }
.srow.top { align-items: start; }
.s-t { font-size: 14px; font-weight: 600; }
.s-d { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.s-c .input, .s-c .select { max-width: 100%; }
.s-steps { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.trio { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 8px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.set-foot { padding: 16px 24px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; background: var(--paper); }
details.adv { border-top: 1px solid var(--line-2); }
details.adv summary { padding: 16px 24px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-3); list-style: none; display: flex; align-items: center; gap: 8px; }
details.adv summary::before { content: "›"; transition: transform .2s; font-size: 18px; line-height: 1; }
details.adv[open] summary::before { transform: rotate(90deg); }
details.adv[open] summary { border-bottom: 1px solid var(--line-2); }
@media (max-width: 900px) {
  .set-layout { grid-template-columns: 1fr; gap: 14px; }
  .set-nav { flex-direction: row; overflow-x: auto; position: static; }
  .set-nav button { white-space: nowrap; }
  .srow { grid-template-columns: 1fr; gap: 10px; }
  .trio, .duo { grid-template-columns: 1fr; }
}

.chip.dup { background: var(--wait-bg); color: var(--wait); }

.tbl tbody tr.dup td { background: #fdf7e8; }
.tbl tbody tr.dup:hover td { background: #faf0d4; }
.tbl tbody tr.dup td:first-child { box-shadow: inset 3px 0 0 var(--wait); }


/* ---- status palette: amber review, blue awaiting, purple duplicate, red only for rejected ---- */
:root {
  --review: #b4701a; --review-bg: #fdf0d6; --review-line: #efd9a6; --review-row: #fffaf0;
  --await: #3a62d3; --await-bg: #e7edff; --await-line: #cbd8fa; --await-row: #f3f6ff;
  --dupc: #6650c4; --dup-bg: #edeafa; --dup-line: #d5cff2; --dup-row: #f7f5fd;
  --rej: #c1453b; --rej-bg: #fde8e6; --rej-line: #f1c5c0; --rej-row: #fef6f5;
}
.chip.flagged { background: var(--review-bg); color: var(--review); }
.chip.awaiting { background: var(--await-bg); color: var(--await); }
.chip.dup { background: var(--dup-bg); color: var(--dupc); }
.chip.rejected { background: var(--rej-bg); color: var(--rej); }
.tbl tbody tr.flagged td { background: var(--review-row); }
.tbl tbody tr.flagged:hover td { background: #fff3dc; }
.tbl tbody tr.flagged td:first-child { box-shadow: inset 3px 0 0 var(--review); }
.tbl tbody tr.awaiting td { background: var(--await-row); }
.tbl tbody tr.awaiting:hover td { background: #e9f0ff; }
.tbl tbody tr.awaiting td:first-child { box-shadow: inset 3px 0 0 var(--await); }
.tbl tbody tr.rejected td { background: var(--rej-row); color: var(--muted); }
.tbl tbody tr.rejected:hover td { background: #fdecea; }
.tbl tbody tr.rejected td:first-child { box-shadow: inset 3px 0 0 var(--rej); }
.tbl tbody tr.dup td { background: var(--dup-row); }
.tbl tbody tr.dup:hover td { background: #efecfb; }
.tbl tbody tr.dup td:first-child { box-shadow: inset 3px 0 0 var(--dupc); }
.tbl tbody tr.approved td:first-child { box-shadow: inset 3px 0 0 var(--ok); }
.cell-sub[style*="--wait"] { color: var(--dupc) !important; }
.seg button.flag .n, .segs button.flag .n { background: var(--review-bg); color: var(--review); }
.nav .badge { background: var(--review); }
.feed-dot.flagged { background: var(--review); } .feed-dot.rejected { background: var(--rej); }
.pill .sd.flagged { background: var(--review); } .pill .sd.rejected { background: var(--rej); }

/* case banners: tinted, quiet, no solid circles */
.banner { border-radius: 14px; padding: 16px 18px; }
.banner .bi { width: 34px; height: 34px; }
.banner.approved { background: #f3faf6; border-color: #d3eadd; } .banner.approved .bi { background: var(--ok-bg); color: var(--ok); } .banner.approved h4 { color: #176e49; }
.banner.flagged { background: var(--review-row); border-color: var(--review-line); } .banner.flagged .bi { background: var(--review-bg); color: var(--review); } .banner.flagged h4 { color: #7d4f0e; }
.banner.awaiting { background: var(--await-row); border-color: var(--await-line); } .banner.awaiting .bi { background: var(--await-bg); color: var(--await); } .banner.awaiting h4 { color: #2a4ba8; }
.banner.dup { background: var(--dup-row); border-color: var(--dup-line); } .banner.dup .bi { background: var(--dup-bg); color: var(--dupc); } .banner.dup h4 { color: #4f3aa6; }
.banner.rejected { background: var(--rej-row); border-color: var(--rej-line); } .banner.rejected .bi { background: var(--rej-bg); color: var(--rej); } .banner.rejected h4 { color: #9b352c; }
.banner.processing, .banner.excluded { background: #f3f7fb; border-color: #d5e2f0; } .banner.processing .bi, .banner.excluded .bi { background: #e0ebf7; color: var(--info); }
.banner p { color: #3a4560; }

/* issue cards: plain white, no heavy red bar */
.issue { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: none; }
.issue::before { display: none; }
.issue .step { color: var(--muted); font-size: 11.5px; letter-spacing: .05em; display: flex; align-items: center; gap: 8px; }
.issue .step::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--review); flex: none; }
.issue .tx { font-size: 14.5px; font-weight: 500; }
.check.fail .ci { background: var(--review-bg); color: var(--review); }

/* live run: amber for review, not red */
.stage.fail .node, .stage.flagged .node { background: var(--review); border-color: var(--review); }
.sd-line.fail { background: var(--review-row); border-color: var(--review-line); }
.sd-line.fail .m { background: var(--review-bg); color: var(--review); }
.decision-card.flagged { background: var(--review-row); border-color: var(--review-line); }
.decision-card.flagged h4 { color: #7d4f0e; }

/* email thread */
.mail-thread { display: grid; gap: 12px; margin-bottom: 18px; }
.mail-subject { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 4px; }
.mail-subject h4 { font-size: 16px; font-weight: 650; flex: 1; min-width: 0; }
.mail-card { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); animation: rise .35s var(--ease) both; }
.mail-card.out { background: #f3f6ff; border-color: #d6e0fb; }
.mc-av { width: 34px; height: 34px; border-radius: 50%; background: var(--mist); color: var(--ink-3); display: grid; place-items: center; font-weight: 650; font-size: 14px; flex: none; }
.mail-card.out .mc-av { background: var(--sage); color: #fff; }
.mc-main { min-width: 0; flex: 1; }
.mc-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.mc-head b { font-size: 14px; font-weight: 650; }
.mc-addr { color: var(--muted); font-size: 12.5px; }
.mc-head time { margin-left: auto; color: var(--faint); font-size: 12px; white-space: nowrap; }
.mc-meta { font-size: 12px; color: var(--muted); margin: 2px 0 10px; }
.mc-state.ok { color: var(--ok); } .mc-state.warn { color: var(--review); } .mc-state.bad { color: var(--rej); } .mc-state.info { color: var(--await); }
.mc-body { font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; color: var(--text); }

/* duplicates: light red tint only */
:root { --dupc: var(--rej); --dup-bg: var(--rej-bg); --dup-row: var(--rej-row); --dup-line: var(--rej-line); }
.tbl tbody tr.dup td { background: var(--rej-row); }
.tbl tbody tr.dup:hover td { background: #fdecea; }
.tbl tbody tr.dup td:first-child { box-shadow: none; }
.chip.dup { background: var(--rej-bg); color: var(--rej); }
.banner.dup h4 { color: #9b352c; }
.pill .sd.dup { background: var(--rej); }

/* side panels sit flush against the edge: square corners */
.drawer { border-radius: 0; }
.drawer-head { border-radius: 0; }

/* ---- onboarding: mailbox setup ---- */
.setup-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.setup-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .25s, background .25s; }
.setup-steps li.done { border-color: #cfe7da; background: #f6fbf8; }
.setup-steps .n { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 650; flex: none; transition: background .25s; }
.setup-steps .n svg { width: 13px; height: 13px; stroke-width: 3; }
.setup-steps li.done .n { background: var(--ok); }
.setup-steps b { font-size: 14px; font-weight: 600; }
.setup-steps .d { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.setup-steps .btn { flex: none; align-self: center; }
.glass .segs { margin-bottom: 14px; }
.glass .row-split { flex-wrap: wrap; }

a.btn, a.btn:hover { text-decoration: none; }
