:root {
  --bg: #f4f6f7;
  --surface: #ffffff;
  --surface-soft: #f8f9f8;
  --ink: #1d2527;
  --muted: #647078;
  --line: #d9dedf;
  --line-strong: #b8c2c5;
  --navy: #213034;
  --blue: #2f6f76;
  --blue-soft: #e7f1f0;
  --green: #2d604f;
  --green-soft: #e7f2ed;
  --amber: #8a6725;
  --amber-soft: #fff1d0;
  --red: #9c444a;
  --red-soft: #fae8e8;
  --focus: #336f77;
  --graphite: #2a3133;
  --shadow: 0 18px 44px rgba(29, 37, 39, 0.09);
  --shadow-soft: 0 1px 2px rgba(29, 37, 39, 0.07);
  --radius-xl: 8px;
  --radius-lg: 8px;
  --radius-md: 8px;
}

:root[data-theme="dark"] {
  --bg: #111719;
  --surface: #182124;
  --surface-soft: #202a2d;
  --ink: #eef4f2;
  --muted: #aab8ba;
  --line: #344246;
  --line-strong: #59686b;
  --navy: #edf5f2;
  --blue: #7dc1c7;
  --blue-soft: #183035;
  --green: #8bcfb5;
  --green-soft: #173029;
  --amber: #e8c977;
  --amber-soft: #352b16;
  --red: #f0a1a6;
  --red-soft: #351b20;
  --focus: #8bd3dd;
  --graphite: #f5f8f7;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.24);
}

html { scroll-behavior: smooth; }
body.v40-body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, #f7f8f8 0%, var(--bg) 260px); color: var(--ink); font-family: Aptos, Inter, "SF Pro Text", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif; font-size: 14px; }
body.v40-body > :not(#v40-root):not(script):not(style):not(noscript) { display: none !important; }
#v40-root, #v40-root * { box-sizing: border-box; }
#v40-root { min-height: 100vh; background: var(--bg); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(51, 111, 119, 0.18); outline-offset: 2px; }

.v40-auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 80% 0, rgba(49,88,212,.30), transparent 34%), linear-gradient(135deg, #07111f, #0d1b31); }
.v40-auth-panel { width: min(460px, 100%); display: grid; gap: 22px; border: 1px solid rgba(255,255,255,.14); border-top: 0; border-radius: 25px; background: rgba(255,255,255,.98); box-shadow: 0 30px 90px rgba(0,0,0,.34); padding: 30px; }
.v40-auth-panel .v40-logo { padding: 0; }
.v40-auth-panel h1 { margin: 0; font-size: 34px; line-height: 1.02; letter-spacing: -.045em; }
.v40-auth-form { display: grid; gap: 14px; }
.v40-auth-form .v40-btn { width: 100%; justify-content: center; min-height: 48px; border: 0; border-radius: 999px; background: linear-gradient(135deg,#4772ee,#2145af); box-shadow: 0 12px 30px rgba(49,88,212,.3); }
.v45-auth-link { color: #3158d4; font-size: 13px; font-weight: 850; text-align: center; }
.v40-auth-panel .v44-logo-asset { width: 162px; height: 40px; border: 0; background: #07111f; border-radius: 10px; padding: 7px 10px; box-shadow: none; }

.v40-shell { display: grid; grid-template-columns: 304px minmax(0, 1fr); min-height: 100vh; }
.v40-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 18px; border-right: 1px solid var(--line); background: rgba(252,253,252,0.96); backdrop-filter: blur(18px); }
.v40-logo { display: flex; align-items: center; gap: 11px; padding: 4px 5px 20px; }
.v40-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(135deg, #213034 0%, #326f74 100%); color: white; font-weight: 950; letter-spacing: 0; box-shadow: 0 12px 24px rgba(33, 48, 52, .16); }
.v40-logo strong { display: block; font-size: 16px; letter-spacing: 0; }
.v40-logo span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.v40-role-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 15px; background: white; box-shadow: var(--shadow-soft); margin-bottom: 18px; border-top: 3px solid #c9d8d5; }
.v40-label { margin: 0 0 7px; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: 0; text-transform: uppercase; }
.v40-role-card h2 { margin: 0; font-size: 19px; line-height: 1.13; letter-spacing: 0; }
.v40-meta-grid { display: grid; gap: 8px; margin-top: 14px; }
.v40-mini-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.v40-mini-row strong { color: var(--ink); text-align: right; }
.v40-nav { display: grid; gap: 6px; }
.v40-nav button { width: 100%; display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; text-align: left; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); padding: 10px; font-size: 13px; font-weight: 820; transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease; }
.v40-nav button:hover { background: #f2f5f4; color: var(--ink); border-color: #e2e7e8; }
.v40-nav button.active { background: #edf5f3; border-color: #b8cfcc; color: var(--graphite); box-shadow: inset 3px 0 0 var(--blue); }
.v40-nav-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #edf4f2; color: var(--blue); font-size: 12px; font-weight: 950; }
.v40-count { min-width: 25px; text-align: center; border-radius: 999px; padding: 4px 7px; background: #eef2f2; color: var(--muted); font-size: 11px; font-weight: 950; }
.v40-sidebar-note { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; background: #f7f8f6; color: var(--muted); font-size: 12px; line-height: 1.55; }

.v40-main { min-width: 0; padding: 24px clamp(18px, 3vw, 40px) 44px; }
.v40-topbar { position: sticky; top: 0; z-index: 40; display: flex; justify-content: space-between; gap: 16px; align-items: center; margin: -24px calc(clamp(18px, 3vw, 40px) * -1) 18px; padding: 14px clamp(18px, 3vw, 40px); border-bottom: 1px solid rgba(217,222,223,.88); background: rgba(244,246,247,.92); backdrop-filter: blur(16px); }
.v46-demo-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 15px 17px; border: 1px solid rgba(49,88,212,.28); border-left: 4px solid #3158d4; border-radius: 12px; background: #eef3ff; box-shadow: var(--shadow-soft); }
.v46-demo-banner strong, .v46-demo-banner span { display: block; }
.v46-demo-banner strong { color: #17347f; font-size: 13px; }
.v46-demo-banner div > span { margin-top: 3px; color: #51637d; font-size: 12px; }
.v46-demo-badge { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: #3158d4; color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.v40-topbar-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.v40-breadcrumb { color: var(--muted); font-size: 13px; font-weight: 850; }
.v40-sync-pill, .v40-user-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); padding: 5px 10px; font-size: 11px; font-weight: 900; box-shadow: var(--shadow-soft); }
.v40-sync-pill span, .v40-user-pill span { color: var(--ink); }
.v40-sync-pill strong, .v40-user-pill strong { color: var(--muted); font-size: 10px; }
.v40-user-pill { background: #fbfdff; border-color: #cdd8e5; }
.v40-sync-pill.server { border-color: #b7dccb; background: var(--green-soft); }
.v40-sync-pill.syncing { border-color: #ead298; background: var(--amber-soft); }
.v40-sync-pill.local { border-color: #d6dde7; background: #f7fafc; }
.v40-sync-pill.review { border-color: #efc3c3; background: var(--red-soft); }
.v40-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.v40-btn { border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--graphite); padding: 10px 12px; font-size: 13px; font-weight: 850; box-shadow: var(--shadow-soft); transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease; }
.v40-btn:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--line-strong); box-shadow: 0 8px 18px rgba(23, 32, 46, 0.08); }
.v40-btn.primary { border-color: var(--graphite); background: var(--graphite); color: white; }
.v40-btn.warn { border-color: #ead298; background: var(--amber-soft); color: var(--amber); }
.v40-btn.danger { border-color: #efc3c3; background: var(--red-soft); color: var(--red); }
.v40-btn:disabled { opacity: .5; cursor: not-allowed; }
.v40-btn.small { padding: 7px 9px; font-size: 12px; }

.v40-hero { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr); gap: 18px; margin-bottom: 18px; }
.v40-panel, .v40-card, .v40-hero-main, .v40-hero-side, .v40-metric { border: 1px solid var(--line); border-radius: var(--radius-xl); background: rgba(255,255,255,.99); box-shadow: var(--shadow); }
.v40-hero-main { padding: clamp(22px, 2.8vw, 32px); border-top: 4px solid #c9d8d5; }
.v40-kicker { margin: 0 0 10px; color: var(--blue); font-size: 12px; font-weight: 950; letter-spacing: 0; text-transform: uppercase; }
.v40-title { margin: 0; max-width: 900px; font-size: clamp(30px, 3vw, 40px); line-height: 1.09; letter-spacing: 0; font-weight: 820; }
.v40-lead { max-width: 880px; margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.v40-chip-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.v40-chip { display: inline-flex; align-items: center; min-height: 34px; border: 1px solid var(--line); border-radius: 999px; background: #fbfcfc; color: var(--muted); padding: 8px 11px; font-size: 12px; font-weight: 850; }
.v40-chip strong { color: var(--ink); margin-right: 6px; }
.v40-hero-side { padding: 22px; }
.v40-side-heading { margin: 0 0 14px; font-size: 19px; letter-spacing: 0; }
.v40-status-list { display: grid; gap: 0; }
.v40-status-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; border-top: 1px solid #edf2f8; padding: 11px 0; }
.v40-status-row:first-child { border-top: 0; padding-top: 0; }
.v40-status-row span:first-child { color: var(--muted); font-size: 13px; }
.v40-status-row strong { text-align: right; font-size: 13px; }

.v40-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.v40-metric { padding: 16px; min-height: 118px; border-top: 3px solid #d9e5e2; }
.v40-metric .value { margin-top: 10px; font-size: 31px; font-weight: 880; letter-spacing: 0; }
.v40-metric .note { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.v40-command-panel { border: 1px solid var(--line); border-radius: var(--radius-xl); background: #fbfcfb; box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; border-top: 4px solid #d6e2df; }
.v40-command-grid { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 12px; }
.v40-signal-card { min-height: 136px; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 8px; background: white; padding: 15px; box-shadow: var(--shadow-soft); }
.v40-signal-card.good { border-top-color: var(--green); }
.v40-signal-card.warn { border-top-color: var(--amber); }
.v40-signal-card.risk { border-top-color: var(--red); }
.v40-signal-card strong { display: block; margin-top: 8px; font-size: 28px; line-height: 1.08; letter-spacing: 0; font-weight: 880; }
.v40-signal-card span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.v40-owner-grid { display: grid; gap: 10px; }
.v40-owner-card { border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; padding: 14px; }
.v40-owner-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.v40-owner-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
.v40-owner-stats span { border: 1px solid #edf2f8; border-radius: 8px; background: white; color: var(--muted); padding: 10px; font-size: 12px; }
.v40-owner-stats strong { display: block; color: var(--ink); font-size: 18px; line-height: 1.1; }
.v40-system-grid { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 12px; }
.v40-system-grid > div { border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); padding: 14px; }
.v40-system-grid strong { display: block; overflow-wrap: anywhere; font-size: 18px; line-height: 1.25; }
.v40-system-grid span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.v40-grid-2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); gap: 18px; margin-bottom: 18px; }
.v40-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.v40-panel, .v40-card { padding: 20px; }
.v40-panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.v40-panel h2, .v40-card h3 { margin: 0; letter-spacing: 0; color: var(--graphite); }
.v40-panel h2 { font-size: 21px; font-weight: 820; }
.v40-card h3 { font-size: 17px; }
.v40-subtitle { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.v40-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 5px 9px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 11px; font-weight: 900; white-space: nowrap; }
.v40-badge.good { background: var(--green-soft); color: var(--green); }
.v40-badge.warn { background: var(--amber-soft); color: var(--amber); }
.v40-badge.risk { background: var(--red-soft); color: var(--red); }
.v40-badge.neutral { background: #eef4fb; color: var(--muted); }

.v40-list { display: grid; gap: 10px; }
.v40-list-item { border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); padding: 14px; box-shadow: var(--shadow-soft); }
.v40-list-item:hover { border-color: var(--line-strong); background: #fbfcfb; }
.v40-list-item.split { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 14px; }
.v40-list-item h3, .v40-list-item h4 { margin: 0; font-size: 14px; letter-spacing: 0; }
.v40-list-item p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.v40-action-help { color: #4f5f73 !important; font-size: 12px !important; }
.v40-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.v40-field { display: grid; gap: 6px; }
.v40-field label { color: var(--muted); font-size: 12px; font-weight: 900; }
.v40-field input, .v40-field textarea, .v40-field select { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); padding: 11px 12px; outline: none; }
.v40-field-help { margin: -1px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.v40-field textarea { min-height: 110px; resize: vertical; }
.v40-field input:focus, .v40-field textarea:focus, .v40-field select:focus { border-color: #8db6b3; box-shadow: 0 0 0 3px rgba(47, 111, 118, 0.10); }
.v40-table-wrap { overflow-x: auto; }
.v40-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.v40-table th { text-align: left; color: var(--muted); border-bottom: 1px solid var(--line); background: #f7f8f7; padding: 11px 10px; font-size: 11px; font-weight: 900; letter-spacing: 0; text-transform: uppercase; }
.v40-table td { border-bottom: 1px solid #edf2f8; padding: 13px 10px; vertical-align: top; }
.v40-table tbody tr:hover td { background: #fbfcfb; }
.v40-table tr:last-child td { border-bottom: 0; }
.v40-link { border: 0; background: transparent; color: var(--blue); padding: 0; font-weight: 900; }
.v40-progress { height: 9px; overflow: hidden; border-radius: 999px; background: #e8edf5; margin-top: 7px; }
.v40-progress span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.v40-funnel { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 10px; }
.v40-funnel-step { border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; padding: 13px; }
.v40-funnel-step strong { display: block; font-size: 25px; letter-spacing: 0; }
.v40-funnel-step span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 850; }
.v40-candidate-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.v40-candidate-name { margin: 0; font-size: 30px; letter-spacing: 0; }
.v40-candidate-meta { margin-top: 5px; color: var(--muted); font-size: 13px; }
.v40-score-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.v40-score { border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; padding: 13px; }
.v40-score-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 850; }
.v40-evidence-card { border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; padding: 14px; }
.v40-evidence-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.v40-evidence-card h4 { margin: 0; font-size: 14px; }
.v40-evidence-card p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.v40-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.v40-search { flex: 1 1 260px; border: 1px solid var(--line); border-radius: 8px; background: white; padding: 11px 12px; }
.v40-select { border: 1px solid var(--line); border-radius: 8px; background: white; padding: 11px 12px; }
.v40-select.compact { max-width: 132px; padding: 8px 9px; }
.v40-alert { border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); padding: 14px; display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.v40-alert.good { background: var(--green-soft); border-color: #b7dccb; }
.v40-alert.warn { background: var(--amber-soft); border-color: #ead298; }
.v40-alert.risk { background: var(--red-soft); border-color: #efc3c3; }
.v40-alert h4 { margin: 0; font-size: 14px; }
.v40-alert p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.v40-toast { position: fixed; right: 24px; bottom: 24px; max-width: 430px; z-index: 50; border: 1px solid var(--line); border-radius: 8px; background: var(--navy); color: white; padding: 14px 16px; box-shadow: 0 20px 50px rgba(16,41,68,.25); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .22s ease; }
.v40-toast.show { opacity: 1; transform: translateY(0); }
.v40-empty { border: 1px dashed var(--line-strong); border-radius: 8px; padding: 24px; text-align: center; color: var(--muted); background: #fbfdff; }
.v40-modal-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(17,29,46,.42); display: grid; place-items: center; padding: 20px; }
.v40-modal { width: min(760px, 100%); max-height: 88vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 28px 80px rgba(16,41,68,.28); padding: 22px; }
.v40-modal-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 16px; }
.v40-modal h2 { margin: 0; letter-spacing: 0; }
.v40-close { border: 0; background: #eef4fb; border-radius: 8px; width: 36px; height: 36px; font-weight: 950; }
.v40-close:hover { background: #e3e7ff; color: #4836b7; }
.v40-two-col { columns: 2 260px; column-gap: 18px; }
.v40-two-col li { break-inside: avoid; margin-bottom: 8px; }

.v42-path { border: 1px solid var(--line); border-radius: var(--radius-xl); background: rgba(255,255,255,.99); box-shadow: var(--shadow); padding: 18px; margin-bottom: 18px; border-top: 4px solid #d6e2df; }
.v42-path-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.v42-path-head h2 { margin: 0; font-size: 20px; letter-spacing: 0; }
.v42-build-pill { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; border: 1px solid var(--line); border-radius: 999px; background: #fbfcfc; color: var(--muted); padding: 7px 10px; font-size: 11px; font-weight: 900; white-space: normal; overflow-wrap: anywhere; }
.v42-build-pill span, .v42-build-pill strong { min-width: 0; overflow-wrap: anywhere; }
.v42-build-pill strong { color: var(--ink); }
.v44-readonly-status { display: inline-flex; align-items: center; min-height: 32px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: var(--muted); padding: 6px 10px; font-size: 11px; font-weight: 900; white-space: nowrap; }
.v42-path-steps { display: grid; grid-template-columns: repeat(8, minmax(112px, 1fr)); gap: 8px; }
.v42-path-step { min-height: 118px; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; text-align: left; border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; padding: 12px; box-shadow: var(--shadow-soft); color: var(--ink); }
.v42-path-step:hover { border-color: var(--line-strong); background: white; transform: translateY(-1px); }
.v42-path-step.active { border-color: #b8cfcc; background: #edf5f3; box-shadow: inset 0 3px 0 var(--blue), var(--shadow-soft); }
.v42-step-index { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px; background: var(--graphite); color: white; font-size: 11px; font-weight: 950; }
.v42-step-main { display: grid; gap: 4px; }
.v42-step-main strong { font-size: 13px; line-height: 1.2; }
.v42-step-main em { color: var(--muted); font-size: 11px; line-height: 1.35; font-style: normal; }
.v42-action-center { border: 1px solid var(--line); border-radius: var(--radius-xl); background: #fbfcfb; box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; }
.v42-action-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.v42-action-column { border: 1px solid var(--line); border-radius: 8px; background: white; padding: 14px; box-shadow: var(--shadow-soft); }
.v42-action-column h3 { margin: 0 0 11px; font-size: 15px; letter-spacing: 0; }
.v42-compact-list { display: grid; gap: 9px; }
.v42-compact-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: start; border: 1px solid #edf2f8; border-radius: 8px; background: #fbfdff; padding: 11px; }
.v42-compact-item strong { display: block; font-size: 13px; line-height: 1.3; }
.v42-compact-item span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.v42-manager-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.v42-manager-card { border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: var(--shadow-soft); padding: 16px; display: grid; gap: 14px; }
.v42-manager-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.v42-manager-summary span { border: 1px solid #edf2f8; border-radius: 8px; background: var(--surface-soft); padding: 10px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.v42-manager-summary strong { display: block; color: var(--ink); font-size: 16px; line-height: 1.1; }
.v42-checklist { display: grid; gap: 9px; }
.v42-check-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: start; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); padding: 12px; }
.v42-check-item strong { display: block; font-size: 13px; }
.v42-check-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.v42-trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.v42-trust-card { border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; padding: 14px; box-shadow: var(--shadow-soft); }
.v42-trust-card h3 { margin: 0; font-size: 15px; }

.v43-required-list { display: grid; gap: 10px; }
.v43-required-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: white; padding: 14px; box-shadow: var(--shadow-soft); }
.v43-required-item h3 { margin: 0; font-size: 16px; }
.v43-required-item p { margin: 5px 0 0; color: var(--muted); line-height: 1.45; }
.v43-slate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.v43-slate-grid.compact { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.v43-slate-card { display: grid; gap: 13px; border: 1px solid var(--line); border-top: 4px solid #d6e2df; border-radius: 8px; background: white; padding: 16px; box-shadow: var(--shadow-soft); }
.v43-slate-card.lead { border-top-color: var(--green); background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%); }
.v43-slate-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.v43-slate-head h3 { margin: 0; font-size: 20px; }
.v43-slate-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.v43-fit-row { display: flex; flex-wrap: wrap; gap: 7px; }
.v43-assessment-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.v43-assessment-mini span { border: 1px solid #edf2f8; border-radius: 8px; background: var(--surface-soft); padding: 10px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.v43-assessment-mini strong { display: block; color: var(--ink); font-size: 15px; line-height: 1.1; }
.v43-card-section { display: grid; gap: 5px; }
.v43-card-section strong { font-size: 12px; color: var(--graphite); }
.v43-card-section p, .v43-card-section ul { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.v43-card-section ul { padding-left: 18px; }
.v43-decision-hero { border-top-color: var(--green); }
.v43-hero-decision { display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdfb; padding: 16px; }
.v43-hero-decision span { display: block; color: var(--muted); font-size: 12px; font-weight: 850; }
.v43-hero-decision strong { display: block; margin-top: 4px; font-size: 26px; line-height: 1.1; }
.v43-hero-decision p { margin: 5px 0 0; color: var(--muted); }
.v43-criteria-list { display: grid; gap: 12px; }
.v43-criteria-card { border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; padding: 15px; }
.v43-criteria-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.v43-criteria-head h3 { margin: 0; font-size: 16px; }
.v43-criteria-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.v43-criteria-candidates { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 9px; }
.v43-criteria-candidates div { border: 1px solid #edf2f8; border-radius: 8px; background: white; padding: 10px; }
.v43-criteria-candidates strong, .v43-criteria-candidates span, .v43-criteria-candidates em { display: block; }
.v43-criteria-candidates span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.v43-criteria-candidates em { margin-top: 4px; color: var(--muted); font-size: 11px; font-style: normal; }
.v43-disclosure { border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; padding: 0; margin-top: 12px; overflow: hidden; }
.v43-disclosure summary { cursor: pointer; padding: 14px 16px; font-weight: 900; color: var(--graphite); list-style-position: inside; }
.v43-disclosure[open] { padding-bottom: 14px; }
.v43-disclosure[open] > :not(summary) { margin: 0 16px 12px; }
.v43-method-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.v43-method-grid div { border: 1px solid #edf2f8; border-radius: 8px; background: white; padding: 14px; }
.v43-method-grid h3 { margin: 0 0 7px; font-size: 15px; }
.v43-method-grid p { margin: 0; color: var(--muted); line-height: 1.5; }
.v43-manager-list { display: grid; gap: 14px; }
.v43-manager-review-card { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: 16px; border: 1px solid var(--line); border-radius: 8px; background: white; padding: 16px; box-shadow: var(--shadow-soft); }
.v43-manager-card-main { min-width: 0; display: grid; gap: 12px; }
.v43-manager-reason-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.v43-manager-reason-grid div { border: 1px solid #edf2f8; border-radius: 8px; background: var(--surface-soft); padding: 11px; }
.v43-manager-reason-grid strong { display: block; margin-bottom: 5px; }
.v43-manager-reason-grid p, .v43-manager-reason-grid ul { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.v43-manager-reason-grid ul { padding-left: 18px; }
.v43-manager-action-panel { display: grid; gap: 12px; align-content: start; }
.v43-manager-buttons { display: grid; gap: 8px; }
.v43-decision-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.v43-decision-summary div { border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; padding: 14px; }
.v43-decision-summary strong { display: block; font-size: 20px; line-height: 1.15; overflow-wrap: anywhere; }
.v43-decision-summary span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.v43-row-menu { position: relative; }
.v43-row-menu summary { border: 1px solid var(--line); border-radius: 8px; background: white; padding: 7px 9px; font-size: 12px; font-weight: 850; list-style: none; }
.v43-row-menu-body { display: grid; gap: 8px; min-width: 210px; margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; background: white; padding: 10px; box-shadow: var(--shadow-soft); }
.v43-row-menu-body label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 850; }
.v43-tight-metrics { margin-bottom: 0; }
.v40-empty strong, .v40-empty span { display: block; }
.v40-empty span { margin-top: 6px; font-size: 12px; line-height: 1.45; }

.v44-header-brand { min-width: 236px; display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); padding: 4px 6px; text-align: left; }
.v44-header-brand:hover { background: var(--surface-soft); }
.v44-header-brand .v40-mark { flex: 0 0 auto; width: 36px; height: 36px; box-shadow: none; }
.v44-header-brand strong { display: block; font-size: 15px; line-height: 1.1; }
.v44-header-brand em { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-style: normal; line-height: 1.25; }
.v40-logo.v44-logo-with-asset { padding: 2px 0 20px; }
.v40-auth-panel .v40-logo.v44-logo-with-asset { padding: 0; }
.v40-logo .v44-logo-lockup, .v44-header-brand .v44-logo-lockup { display: flex; align-items: center; gap: 10px; min-width: 0; }
.v40-logo .v44-logo-asset, .v44-header-brand .v44-logo-asset { width: 132px; height: 34px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: #132128; padding: 5px 8px; box-shadow: 0 10px 20px rgba(18, 30, 36, .14); }
.v40-logo .v44-logo-asset img, .v44-header-brand .v44-logo-asset img { display: block; width: 100%; height: 100%; object-fit: contain; }
.v40-logo .v44-logo-copy, .v44-header-brand .v44-logo-copy { display: block; min-width: 0; color: var(--muted); font-size: 12px; margin-top: 0; }
.v40-logo .v44-logo-copy em, .v44-header-brand .v44-logo-copy em { display: block; color: var(--muted); font-size: 11px; font-style: normal; line-height: 1.25; }
.v44-topbar-context { min-width: 0; display: grid; gap: 6px; }
.v44-topbar-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.v44-theme-control { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); padding: 5px 8px; box-shadow: var(--shadow-soft); font-size: 11px; font-weight: 900; }
.v44-theme-control select { min-height: 30px; border: 0; background: transparent; color: var(--ink); font-weight: 850; outline: none; }
.v44-task-list { display: grid; gap: 10px; }
.v44-task-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 14px; box-shadow: var(--shadow-soft); }
.v44-task-item h3 { margin: 0; font-size: 16px; line-height: 1.25; }
.v44-task-item p { margin: 5px 0 0; color: var(--muted); line-height: 1.45; }
.v44-guidance { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; border: 1px solid #cfe0dc; border-left: 4px solid var(--blue); border-radius: 8px; background: var(--blue-soft); padding: 15px 16px; margin-bottom: 18px; box-shadow: var(--shadow-soft); }
.v44-guidance h2 { margin: 0; font-size: 17px; color: var(--graphite); }
.v44-guidance p { margin: 5px 0 0; color: var(--muted); line-height: 1.48; }
.v44-onboarding { border-top: 4px solid var(--blue); }
.v44-readiness { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); padding: 14px; margin-bottom: 14px; }
.v44-readiness.ready { border-color: #b7dccb; background: var(--green-soft); }
.v44-readiness.open { border-color: #ead298; background: var(--amber-soft); }
.v44-readiness strong { display: block; font-size: 20px; line-height: 1.15; color: var(--ink); }
.v44-readiness span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.v44-setup-meter { height: 9px; overflow: hidden; border-radius: 999px; background: rgba(127, 143, 148, .22); margin: 6px 0 14px; }
.v44-setup-meter span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.v44-setup-steps { display: grid; grid-template-columns: repeat(7, minmax(118px, 1fr)); gap: 9px; }
.v44-setup-step { min-height: 138px; display: grid; grid-template-rows: auto auto auto 1fr; gap: 6px; text-align: left; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 12px; box-shadow: var(--shadow-soft); }
.v44-setup-step:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.v44-setup-step span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px; background: var(--graphite); color: var(--surface); font-size: 11px; font-weight: 950; }
.v44-setup-step.complete span { background: var(--green); }
.v44-setup-step.required span { background: var(--amber); }
.v44-setup-step.optional span { background: var(--blue); }
.v44-setup-step strong { font-size: 13px; line-height: 1.22; }
.v44-setup-step em { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 900; }
.v44-setup-step small { color: var(--muted); font-size: 11px; line-height: 1.35; }

/* v4.5 paying-app experience */
.v45-billing-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #dfc06d; border-left: 4px solid var(--amber); border-radius: var(--radius-lg); background: var(--amber-soft); padding: 14px 16px; margin-bottom: 18px; box-shadow: var(--shadow-soft); }
.v45-billing-banner strong, .v45-billing-banner span { display: block; }
.v45-billing-banner span { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.v46-billing-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.v45-account-menu { position: relative; }
.v45-account-menu > summary { list-style: none; min-height: 38px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--graphite); padding: 8px 12px; font-size: 13px; font-weight: 850; box-shadow: var(--shadow-soft); cursor: pointer; }
.v45-account-menu > summary::-webkit-details-marker { display: none; }
.v45-account-menu > summary::after { content: "⌄"; margin-left: 8px; color: var(--muted); }
.v45-account-menu[open] > summary { border-color: var(--line-strong); }
.v45-account-menu > div { position: absolute; z-index: 70; top: calc(100% + 8px); right: 0; min-width: 230px; display: grid; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 12px; box-shadow: var(--shadow); }
.v45-account-menu .v44-theme-control { justify-content: space-between; }
.v45-account-menu .v40-btn { width: 100%; }

.v45-workflow { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); margin-bottom: 18px; box-shadow: var(--shadow-soft); }
.v45-workflow > summary { list-style: none; display: grid; grid-template-columns: minmax(230px, 1.2fr) minmax(160px, .8fr) auto; gap: 16px; align-items: center; padding: 13px 15px; cursor: pointer; }
.v45-workflow > summary::-webkit-details-marker { display: none; }
.v45-workflow > summary span:first-child em, .v45-workflow > summary span:first-child strong { display: block; font-style: normal; }
.v45-workflow > summary span:first-child em { color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.v45-workflow > summary span:first-child strong { margin-top: 3px; font-size: 13px; }
.v45-workflow > summary small { color: var(--muted); font-weight: 800; white-space: nowrap; }
.v45-workflow-meter { height: 7px; overflow: hidden; border-radius: 999px; background: var(--line); }
.v45-workflow-meter i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.v45-workflow .v42-path-steps { padding: 4px 14px 14px; }
.v45-build-note { padding: 0 15px 12px; color: var(--muted); font-size: 10px; text-align: right; }

.v45-decision-gate { display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius-lg); background: var(--surface); padding: 15px 17px; margin-bottom: 18px; box-shadow: var(--shadow-soft); }
.v45-decision-gate strong, .v45-decision-gate span { display: block; }
.v45-decision-gate span { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.v45-slate-panel { margin-bottom: 18px; }

.v45-intake-form { display: grid; gap: 12px; }
.v45-intake-step, .v45-review-model, .v45-manual-candidate { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-soft); }
.v45-intake-step > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 15px; cursor: pointer; }
.v45-intake-step > summary::-webkit-details-marker, .v45-review-model > summary::-webkit-details-marker { display: none; }
.v45-intake-step > summary > span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 999px; background: var(--graphite); color: var(--surface); font-weight: 900; }
.v45-intake-step > summary strong, .v45-intake-step > summary small { display: block; }
.v45-intake-step > summary small { margin-top: 2px; color: var(--muted); }
.v45-intake-step[open] > summary { border-bottom: 1px solid var(--line); }
.v45-intake-step > .v40-form-grid { padding: 16px; }
.v45-intake-submit { display: flex; justify-content: space-between; align-items: center; gap: 14px; color: var(--muted); font-size: 12px; padding: 4px 0; }
.v45-review-model { margin-top: 18px; }
.v45-review-model > summary, .v45-manual-candidate > summary { padding: 14px 15px; color: var(--graphite); font-weight: 850; cursor: pointer; }
.v45-review-model > .v40-list, .v45-manual-candidate > form { border-top: 1px solid var(--line); padding: 15px; }
.v45-upload-form input[type="file"] { min-height: 48px; padding: 10px; border-style: dashed; }
.v45-manual-candidate { grid-column: 1 / -1; margin-top: 18px; }

summary:focus-visible { outline: 3px solid rgba(51, 111, 119, 0.22); outline-offset: 2px; }

:root[data-theme="dark"] body.v40-body,
:root[data-theme="dark"] #v40-root { background: var(--bg); color: var(--ink); }
:root[data-theme="dark"] body.v40-body { background: linear-gradient(180deg, #131b1e 0%, var(--bg) 260px); }
:root[data-theme="dark"] .v40-auth-shell { background: radial-gradient(circle at 80% 0, rgba(49,88,212,.30), transparent 34%), linear-gradient(135deg, #07111f, #0d1b31); }
:root[data-theme="dark"] .v40-auth-panel,
:root[data-theme="dark"] .v40-sidebar,
:root[data-theme="dark"] .v40-topbar,
:root[data-theme="dark"] .v40-role-card,
:root[data-theme="dark"] .v40-panel,
:root[data-theme="dark"] .v40-card,
:root[data-theme="dark"] .v40-hero-main,
:root[data-theme="dark"] .v40-hero-side,
:root[data-theme="dark"] .v40-metric,
:root[data-theme="dark"] .v40-command-panel,
:root[data-theme="dark"] .v40-signal-card,
:root[data-theme="dark"] .v40-owner-card,
:root[data-theme="dark"] .v40-list-item,
:root[data-theme="dark"] .v42-path,
:root[data-theme="dark"] .v42-action-center,
:root[data-theme="dark"] .v42-action-column,
:root[data-theme="dark"] .v42-manager-card,
:root[data-theme="dark"] .v42-trust-card,
:root[data-theme="dark"] .v43-required-item,
:root[data-theme="dark"] .v43-slate-card,
:root[data-theme="dark"] .v43-criteria-card,
:root[data-theme="dark"] .v43-manager-review-card,
:root[data-theme="dark"] .v43-row-menu-body,
:root[data-theme="dark"] .v45-workflow,
:root[data-theme="dark"] .v45-account-menu > div,
:root[data-theme="dark"] .v45-decision-gate,
:root[data-theme="dark"] .v45-intake-step,
:root[data-theme="dark"] .v45-review-model,
:root[data-theme="dark"] .v45-manual-candidate,
:root[data-theme="dark"] .v40-modal { background: var(--surface); }
:root[data-theme="dark"] .v43-slate-card.lead { background: linear-gradient(180deg, #1b2827 0%, #182124 100%); }
:root[data-theme="dark"] .v40-sidebar-note,
:root[data-theme="dark"] .v40-system-grid > div,
:root[data-theme="dark"] .v40-owner-stats span,
:root[data-theme="dark"] .v40-score,
:root[data-theme="dark"] .v40-evidence-card,
:root[data-theme="dark"] .v40-empty,
:root[data-theme="dark"] .v40-funnel-step,
:root[data-theme="dark"] .v43-hero-decision,
:root[data-theme="dark"] .v43-criteria-candidates div,
:root[data-theme="dark"] .v43-disclosure,
:root[data-theme="dark"] .v43-method-grid div,
:root[data-theme="dark"] .v43-manager-reason-grid div,
:root[data-theme="dark"] .v43-decision-summary div,
:root[data-theme="dark"] .v42-path-step,
:root[data-theme="dark"] .v42-compact-item,
:root[data-theme="dark"] .v42-check-item { background: var(--surface-soft); }
:root[data-theme="dark"] .v40-btn,
:root[data-theme="dark"] .v40-field input,
:root[data-theme="dark"] .v40-field textarea,
:root[data-theme="dark"] .v40-field select,
:root[data-theme="dark"] .v40-search,
:root[data-theme="dark"] .v40-select,
:root[data-theme="dark"] .v43-row-menu summary { background: var(--surface); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .v40-btn.primary { background: #e9f2ef; color: #172022; border-color: #e9f2ef; }
:root[data-theme="dark"] .v40-auth-form .v40-btn.primary { background: linear-gradient(135deg,#4772ee,#2145af); color: #fff; border-color: transparent; }
:root[data-theme="dark"] .v46-demo-banner { background: rgba(49,88,212,.16); border-color: rgba(111,156,255,.36); border-left-color: #6f9cff; }
:root[data-theme="dark"] .v46-demo-banner strong { color: #d9e5ff; }
:root[data-theme="dark"] .v46-demo-banner div > span { color: #b2bfd1; }
:root[data-theme="dark"] .v40-nav button:hover,
:root[data-theme="dark"] .v40-list-item:hover,
:root[data-theme="dark"] .v42-path-step:hover { background: var(--surface-soft); }
:root[data-theme="dark"] .v40-nav button.active,
:root[data-theme="dark"] .v42-path-step.active { background: #203437; border-color: #477379; color: var(--ink); }
:root[data-theme="dark"] .v40-nav-icon,
:root[data-theme="dark"] .v40-count,
:root[data-theme="dark"] .v40-chip,
:root[data-theme="dark"] .v40-sync-pill,
:root[data-theme="dark"] .v40-user-pill,
:root[data-theme="dark"] .v42-build-pill { background: var(--surface-soft); color: var(--muted); border-color: var(--line); }
:root[data-theme="dark"] .v44-logo-asset { background: #0f1a21; border-color: rgba(255,255,255,.18); box-shadow: none; }
:root[data-theme="dark"] .v40-table th { background: #202a2d; color: var(--muted); }
:root[data-theme="dark"] .v40-table td { border-color: var(--line); }
:root[data-theme="dark"] .v40-table tbody tr:hover td { background: #202a2d; }
:root[data-theme="dark"] .v40-mark { background: linear-gradient(135deg, #eaf3f0 0%, #89c8bd 100%); color: #172022; }
:root[data-theme="dark"] .v40-toast { background: #e9f2ef; color: #172022; }
:root[data-theme="dark"] button:focus-visible,
:root[data-theme="dark"] input:focus-visible,
:root[data-theme="dark"] textarea:focus-visible,
:root[data-theme="dark"] select:focus-visible { outline-color: rgba(139, 211, 221, 0.45); }

@media (max-width: 1400px) { .v42-path-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } .v42-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .v42-manager-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .v44-setup-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1280px) { .v40-command-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .v40-system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1120px) { .v40-shell { grid-template-columns: 1fr; } .v40-sidebar { position: relative; height: auto; } .v40-nav { grid-template-columns: repeat(2, minmax(0,1fr)); } .v40-hero, .v40-grid-2, .v43-manager-review-card { grid-template-columns: 1fr; } .v40-metrics, .v40-grid-3, .v42-trust-grid, .v43-decision-summary { grid-template-columns: repeat(2, minmax(0,1fr)); } .v40-topbar { position: relative; margin-top: 0; } .v44-header-brand { min-width: 210px; } }
@media (max-width: 760px) {
  .v46-demo-banner { align-items: flex-start; }
  .v43-required-item, .v43-hero-decision, .v43-slate-head, .v43-criteria-head, .v44-task-item, .v44-guidance, .v44-readiness { grid-template-columns: 1fr; display: grid; align-items: stretch; }
  .v43-assessment-mini, .v43-manager-reason-grid, .v43-method-grid, .v43-decision-summary { grid-template-columns: 1fr; }
  .v43-candidate-table table, .v43-candidate-table thead, .v43-candidate-table tbody, .v43-candidate-table tr, .v43-candidate-table td { display: block; width: 100%; }
  .v43-candidate-table thead { display: none; }
  .v43-candidate-table tr { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); margin-bottom: 12px; padding: 8px; }
  .v43-candidate-table td { border: 0; padding: 9px 8px; }
  .v43-candidate-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
  .v44-setup-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v45-workflow > summary { grid-template-columns: 1fr; gap: 8px; }
  .v45-billing-banner, .v45-decision-gate, .v45-intake-submit { display: grid; align-items: stretch; }
  .v46-billing-actions { display: grid; }
}
@media (max-width: 680px) { .v40-main { padding: 18px 14px 32px; } .v40-topbar { margin: -18px -14px 18px; padding: 14px; } .v40-nav { grid-template-columns: 1fr; } .v40-metrics, .v40-grid-3, .v40-form-grid, .v40-score-grid, .v40-funnel, .v40-command-grid, .v40-system-grid, .v40-owner-stats, .v42-path-steps, .v42-action-grid, .v42-manager-grid, .v42-manager-summary, .v42-trust-grid, .v44-setup-steps { grid-template-columns: 1fr; } .v40-topbar, .v40-panel-header, .v40-candidate-header, .v42-path-head { flex-direction: column; align-items: stretch; } .v40-topbar-left, .v44-topbar-pills { align-items: stretch; } .v44-header-brand { width: 100%; min-width: 0; } .v44-theme-control { width: 100%; justify-content: space-between; } .v40-actions { justify-content: stretch; } .v40-btn { width: 100%; } .v40-sync-pill, .v40-user-pill, .v42-build-pill { width: 100%; justify-content: space-between; } .v42-compact-item, .v42-check-item { grid-template-columns: 1fr; } }
