/* VNA enterprise theme. Restrained and dense: navy navigation, light grey work area, white panels with hairline
   borders, 4-6px corners, one blue accent (Loom Blue #1868db). Loaded last so it wins over the dark OLED rules. */
:root, :root[data-theme="dark"], :root[data-theme="light"] {
  --ui: "Inter", "Charlie Text", -apple-system, "Segoe UI", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  --display: var(--ui);
  --bg: #f4f5f7; --panel: #ffffff; --panel-2: #f0f2f5;
  --ink: #101214; --ink-2: #292a2e; --mut: #5b6068;
  --line: #d9dce1; --line-2: #c3c7ce;
  --brand: #1868db; --brand-2: #1558bc; --brand-ink: #ffffff;
  --ok: #1a7a52; --ok-bg: #e3f6ee; --warn: #8f5200; --warn-bg: #fdf1d8;
  --bad: #b42318; --bad-bg: #fdeceb; --info: var(--brand-2); --info-bg: #e9f2fe;
  --nav: #0e1a2b; --nav-ink: #c7d0dd; --nav-mut: #7d8aa0; --nav-on: #ffffff; --nav-onbg: #1b2c45;
  --sh: none; --overlay: rgba(16,18,20,.5);
  --shadow-sm: none; --shadow-md: 0 12px 32px rgba(16,18,20,.18);
  --rec: #ff613d; --navy: #0e1a2b;
  color-scheme: light;
}
html, body.nva-oled, .nva-oled .auth-screen { background: var(--bg); color: var(--ink); font-family: var(--ui); }
body.nva-oled { -webkit-font-smoothing: antialiased; font-size: 13px; }
h1, h2, h3, .nva-oled h1, .nva-oled h2, .nva-oled h3 { color: var(--ink); font-weight: 650; letter-spacing: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* shell: navy navigation, white top bar, grey work area */
.nva-oled .desk-side { background: #0e1a2b; border-right: 0; }
.nva-oled .desk-logo { border-bottom: 1px solid #22344f; }
.nva-oled .desk-logo b { color: #fff; }
.nva-oled .desk-logo span, .desk-nav .lbl { color: #7d8aa0; }
.nva-logomark svg path:first-child { fill: #fff; }
.nva-logomark svg path:last-child { fill: #4d94f5; stroke: none; }
.nva-oled .desk-nav { scrollbar-color: #2c4262 transparent; }
.nva-oled .desk-nav .nav-item { color: #c7d0dd; border-radius: 4px; font-weight: 500; }
.nva-oled .desk-nav .nav-item:hover { color: #fff; background: #162539; }
.nva-oled .desk-nav .nav-item.active { color: #fff; background: #1b2c45; border-color: transparent; box-shadow: inset 3px 0 0 #4d94f5; font-weight: 600; }
.desk-nav .ct { background: #2a4a7a; color: #fff; }
.nva-oled .desk-foot { background: #0a1422; border-top: 1px solid #22344f; color: #c7d0dd; }
.nva-oled .desk-foot b, .nva-oled .desk-foot strong { color: #fff; }
.nva-oled .desk-foot small, .nva-oled .desk-foot span { color: #7d8aa0; }
.nva-oled .desk-main { background: var(--bg); }
.nva-oled .desk-top { background: #fff; border-bottom: 1px solid var(--line); backdrop-filter: none; }
.nva-oled .global-search, .nva-table-search, .nva-lead-search { background: #fff; border: 1px solid var(--line-2); border-radius: 4px; color: var(--ink); }
.nva-oled .rolepick { background: #fff; border: 1px solid var(--line-2); border-radius: 4px; }
.global-search kbd { border-color: var(--line-2); color: var(--mut); border-radius: 3px; }
.nva-oled .rolepick .on { background: #0e1a2b; color: #fff; border-radius: 3px; }
.nva-oled .desk-logo .mk { background: var(--brand); color: #fff; }
.nva-eyebrow, .nva-oled .d-eyebrow, .d-eyebrow { color: var(--mut); letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }

/* buttons: rectangular, 4px */
.nva-oled .d-btn, .nva-oled .button.primary { background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: 4px; box-shadow: none; font-weight: 600; font-size: 12px; padding: 8px 14px; min-height: 32px; }
.nva-oled .d-btn:hover, .nva-oled .button.primary:hover { background: var(--brand-2); border-color: var(--brand-2); filter: none; }
.nva-oled .d-btn:active, .nva-oled .button.primary:active { background: #123263; border-color: #123263; }
.nva-oled .d-btn.ghost, .nva-oled .button.secondary { background: #fff; color: #1d2430; border: 1px solid var(--line-2); }
.nva-oled .d-btn.ghost:hover, .nva-oled .button.secondary:hover { background: #f4f5f7; border-color: #9aa1ab; }
.nva-oled .d-btn.ok { background: #1a7a52; border-color: #1a7a52; color: #fff; }
.nva-oled .d-btn.nva-call-cancel { background: #b42318; border-color: #b42318; color: #fff; }
.nva-oled .d-btn.sm { min-height: 26px; padding: 4px 10px; }

/* panels, tables: white, hairline, dense */
.nva-stat, .nva-stat.purple, .nva-stat.green, .nva-stat.teal, .nva-stat.amber, .nva-stat.red { background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: none; color: var(--ink); }
.nva-stat-icon, .nva-stat.purple .nva-stat-icon, .nva-stat.green .nva-stat-icon, .nva-stat.amber .nva-stat-icon { background: #eef1f5; color: #3b4452; border-color: transparent; border-radius: 6px; }
.nva-panel, .nva-oled .d-panel, .nva-oled .panel { background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: none; }
.nva-panel > header, .nva-oled .panel-header, .nva-oled .d-sechead { background: #fff; border-color: var(--line); }
.nva-panel > header h2, .nva-panel > header h3 { font-size: 13px; font-weight: 650; }
.nva-table th, .nva-oled .data-table th, .nva-oled .d-table th { background: #f0f2f5; color: #4b515b; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; font-weight: 650; border-bottom: 1px solid var(--line); }
.nva-table td { border-top: 1px solid #e8eaee; }
.nva-table tbody tr:hover td { background: #f7f9fc; }
.nva-table-count { color: var(--mut); border-top: 1px solid var(--line); }
.nva-oled .d-lane { background: #f0f2f5; border-color: var(--line); }
.nva-oled .d-card, .nva-oled .d-kpi { background: #fff; border-color: var(--line); border-radius: 6px; }
.nva-oled input, .nva-oled select, .nva-oled textarea { background-color: #fff; color: #101214; border-color: var(--line-2); border-radius: 4px; }
.nva-oled input::placeholder, .nva-oled textarea::placeholder { color: #8b919a; }
.nva-pill, .nva-oled .d-tag.info, .nva-oled .pill { background: #eef1f5; color: #2b3340; border: 1px solid #d9dce1; border-radius: 3px; text-transform: none; font-weight: 600; }
.nva-pill.blue { background: #e9f2fe; color: var(--brand-2); border-color: #c4dbfa; }
.nva-pill.green, .nva-oled .d-tag.ok, .nva-oled .pill.mint { background: #e3f6ee; color: #1a7a52; border-color: #b6e2cf; }
.nva-pill.red { background: #fdeceb; color: #b42318; border-color: #f5c2bd; }
.nva-human, .nva-notice { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--brand); color: var(--ink-2); border-radius: 4px; }
.nva-call-card { background: #fff; border: 1px solid var(--line); }
.nva-feed > button, .nva-dial-queue > button { color: var(--ink-2); border-bottom-color: #e8eaee; }
.nva-dial-queue > button.selected { background: #e9f2fe; border-color: var(--brand); }
.nva-dial-queue > button > b { background: #eef1f5; color: #2b3340; }
.nva-avatar { background: #e9f2fe; color: var(--brand-2); border-color: #c4dbfa; }
.nva-chart-track { border-bottom-color: var(--line-2); background: repeating-linear-gradient(to top, transparent 0, transparent 39px, #e4e6ea 40px); }
.nva-progress { background: #e4e6ea; }
.nva-empty > svg { color: #b0b5bd; }
.nva-pipeline .step, .nva-pipeline .step-4, .nva-pipeline .step-5, .nva-pipeline .step-6, .nva-pipeline .step-7 { background: #eef1f5; color: #1d2430; border-color: #d9dce1; border-radius: 4px; }
.nva-pipeline .step-8 { background: #e3f6ee; color: #1a7a52; border-color: #b6e2cf; }

/* modals, menus, toasts */
.nva-oled .modal, .nva-oled .d-modal, .nva-oled .d-modal .mh, .nva-oled .d-modal .mf { background: #fff; color: var(--ink); border-color: var(--line); }
.nva-oled .modal, .nva-oled .d-modal { border-radius: 8px; }
.nva-oled .modal-backdrop, .nva-oled .d-modal-bg { background: rgba(16,18,20,.5); }
.nva-oled .toast { background: #101214; color: #fff; border-color: #101214; border-radius: 4px; }
.nva-reply-options, .nva-sending-popover, .nva-lead-filter-popover, .nva-contact-menu { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-md); border-radius: 6px; }
.nva-sending-account, .nva-provider-choice { border-bottom-color: #e8eaee; }
.nva-provider-choice:hover, .nva-provider-choice[aria-pressed="true"] { background: #e9f2fe; }
.nva-call-from-select, .nva-dialer-sending-menu > .nva-call-provider-trigger { background: #fff !important; color: #1d2430 !important; border: 1px solid var(--line-2) !important; border-radius: 4px !important; }
.nva-lead-filter-menu[open] summary { background: #e9f2fe; color: var(--brand-2); }

/* keypad */
.nva-phone-console .nva-keypad button { background: #fff; border: 1px solid var(--line-2); color: #101214; }
.nva-phone-console .nva-keypad button:hover { background: #e9f2fe; border-color: var(--brand); }
.nva-phone-console .nva-keypad button:active { background: #c4dbfa; }
.nva-phone-console .nva-keypad small { color: #5b6068; }
.nva-phone-number { color: var(--ink); }
.nva-oled .nva-keypad-actions .d-btn.nva-call-start { background: #1a7a52; border: 0; color: #fff; }
.nva-mic-toggle.is-muted { color: #b42318; border-color: #f5c2bd; background: #fdeceb; }

/* lead progress, needs-you, funnel, settings */
.nva-lead-progress-row > td { background: #f7f8fa; }
.nva-lead-expand:hover, .nva-lead-expand:focus-visible { background: #e9f2fe; color: var(--brand-2); }
.nva-lead-expand[aria-expanded="true"] { color: var(--brand-2); }
.nva-track li { border-top-color: #d9dce1; color: #7a808a; }
.nva-track li.done { border-color: #1a7a52; color: #1a7a52; }
.nva-track li.now { border-color: var(--brand); color: #101214; }
.nva-progress-card, .nva-funnel button { background: #fff; border-color: var(--line); color: var(--ink-2); border-radius: 6px; }
.nva-funnel button:hover, .nva-funnel button:focus-visible { border-color: var(--brand); color: #101214; }
.nva-needs li, .nva-setting { border-bottom-color: #e8eaee; }
.nva-needs-icon { background: #eef1f5; color: #3b4452; border-radius: 6px; }
.nva-needs li.amber .nva-needs-icon { background: #fdf1d8; color: #8f5200; }
.nva-needs li.red .nva-needs-icon { background: #fdeceb; color: #b42318; }
.nva-command-feed .nva-record { color: var(--brand-2); }
.nva-settings-tabs button:hover, .nva-settings-tabs button:focus-visible { background: #eef1f5; color: #101214; }
.nva-settings-tabs button[aria-selected="true"] { background: #e9f2fe; color: var(--brand-2); }
.nva-switch { background: #9aa1ab; }
.nva-switch[aria-checked="true"] { background: var(--brand); }
.ai-live-dot { box-shadow: none; }

/* sign-in: plain, institutional. Navy bar, white card on grey. */
.signin { display: block; background: #f4f5f7; padding: 0; }
.signin-aside { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 24px; background: #0e1a2b; color: #fff; }
.signin-aside-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.signin-aside-body, .signin-aside-foot { display: none; }
.signin-main { display: grid; place-items: start center; padding: 64px 20px 40px; min-height: calc(100vh - 56px); box-sizing: border-box; }
.signin-card { width: 100%; max-width: 420px; padding: 32px 32px 28px; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 4px; background: #fff; box-shadow: none; }
.signin-brand { display: none; }
.signin h1 { margin: 0 0 6px; font-size: 22px; font-weight: 650; line-height: 1.25; color: #101214; }
.signin-lede { color: #5b6068; font-size: 13px; }
.signin form { gap: 16px; margin-top: 22px; }
.signin label { color: #1d2430; font-weight: 600; font-size: 13px; }
.signin input { height: 40px; padding: 0 12px; border: 1px solid #9aa1ab; border-radius: 4px; background: #fff; color: #101214; font-size: 14px; }
.signin input:hover { border-color: #5b6068; }
.signin input:focus { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: 1px; }
.signin .d-btn { height: 42px; border-radius: 4px; font-size: 14px; font-weight: 600; }
.signin .d-btn.ghost { background: #fff; color: var(--brand-2); border: 1px solid var(--brand); }
.signin-link { color: var(--brand-2); text-decoration: underline; font-weight: 500; }
.signin-eye { color: #5b6068; }
.signin-foot { color: #5b6068; font-size: 13px; }
.signin-notice { max-width: 420px; margin: 16px auto 0; color: #5b6068; font-size: 12px; text-align: center; line-height: 1.5; }

/* key/value settings rows */
.nva-kv { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 1.6fr) auto; align-items: center; gap: 16px; padding: 14px 16px; border-bottom: 1px solid #e8eaee; }
.nva-kv:last-child { border-bottom: 0; }
.nva-kv-k b { display: block; font-size: 13px; font-weight: 650; color: var(--ink); }
.nva-kv-k small { display: block; margin-top: 2px; font-size: 12px; color: var(--mut); line-height: 1.4; }
.nva-kv-v { font-size: 13px; color: var(--ink-2); }
.nva-kv-a { justify-self: end; }
@media (max-width: 700px) { .nva-kv { grid-template-columns: 1fr; gap: 8px; } .nva-kv-a { justify-self: start; } }

/* secondary text readable on white */
.nva-muted, .d-hint, .nva-panel p, .nva-notice p, .nva-oled small { color: #5b6068; }
.signin { place-items: stretch; }
.signin-aside { width: 100%; box-sizing: border-box; }
.nva-kv { grid-template-columns: 260px minmax(0, 1fr) 150px; }
.nva-empty, .nva-empty * { color: #5b6068; }
.nva-empty > svg { color: #b0b5bd; }
.nva-call-error { color: #b42318; background: #fdeceb; border: 1px solid #f5c2bd; border-radius: 6px; }

/* New blast: channel switch and audience choices */
.nva-seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.nva-seg label { margin: 0; cursor: pointer; }
.nva-seg input { position: absolute; opacity: 0; pointer-events: none; }
.nva-seg span { display: block; padding: 7px 20px; font-weight: 600; font-size: 12.5px; color: #292a2e; background: #fff; }
.nva-seg input:checked + span { background: var(--brand); color: #fff; }
.nva-seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: -2px; }
.nva-msg-who { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin: 10px 0; display: grid; gap: 8px; }
.nva-msg-who legend { padding: 0 6px; font-weight: 650; color: var(--ink); font-size: 12.5px; }
.nva-who { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 8px; align-items: center; cursor: pointer; }
.nva-who > select, .nva-who > .nva-who-pair { grid-column: 2; }
.nva-who-pair { display: flex; gap: 8px; flex-wrap: wrap; }
.nva-who-pair select { flex: 1 1 140px; }
.nva-who select:disabled { opacity: .45; }
.nva-msg-preview { min-height: 44px; }
.nva-msg-preview p { margin: 0 0 4px; }
.nva-msg-who-list { margin: 6px 0 0; padding-left: 18px; column-count: 2; font-size: 12px; }
.nva-msg-preview summary { cursor: pointer; color: var(--brand-2); font-size: 12px; }

/* ===== Intelligence pages (.nva-intel): readable type, plain words, colour that carries meaning ===== */
.nva-intel { font-size: 14.5px; line-height: 1.55; color: var(--ink); max-width: 1180px; font-variant-numeric: tabular-nums; }
.nva-intel .nva-heading { margin-bottom: 20px; align-items: flex-start; flex-wrap: wrap; }
.nva-intel .nva-heading h1 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.02em; margin: 4px 0 6px; line-height: 1.2; }
.nva-intel .nva-heading p { font-size: 15px; color: #4b515b; max-width: 62ch; line-height: 1.5; }
.nva-intel .nva-heading .nva-eyebrow { font-size: 11px; letter-spacing: .12em; color: var(--mut); }
.nva-intel .d-btn { font-size: 13.5px; min-height: 36px; padding: 8px 16px; }
.nva-intel .d-btn.sm { min-height: 30px; padding: 5px 12px; font-size: 13px; }
.nva-intel .d-btn:disabled { opacity: .5; cursor: not-allowed; }
.nva-intel .nva-panel { margin-bottom: 18px; }
.nva-intel .nva-panel > header { min-height: 54px; padding: 14px 18px; }
.nva-intel .nva-panel > header h2 { font-size: 16px; font-weight: 650; }
.nva-intel .nva-panel-body { padding: 18px; }
.nva-intel .nva-panel-body:has(> .nva-table-scroll) { padding: 0; }
.nva-intel .nva-muted, .nva-intel small { font-size: 13px; }
.nva-intel .nva-help { margin: 0; padding: 12px 18px; color: var(--mut); font-size: 13px; border-top: 1px solid #e8eaee; }
.nva-intel .nva-sub { display: block; color: var(--mut); margin-top: 3px; }
.nva-intel .nva-zero { color: #9aa1ab; }

/* numbers at the top: one idea per tile, the colour says whether it needs a look */
.nva-intel .nva-stats { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 18px; }
.nva-intel .nva-stat { align-items: flex-start; padding: 16px 18px; min-height: 0; border-top: 3px solid var(--line-2); }
.nva-intel .nva-stat.blue { border-top-color: var(--brand); }
.nva-intel .nva-stat.green { border-top-color: var(--ok); }
.nva-intel .nva-stat.amber { border-top-color: #c27a00; }
.nva-intel .nva-stat.red { border-top-color: var(--bad); }
.nva-intel .nva-stat.teal { border-top-color: #0b7285; }
.nva-intel .nva-stat-icon { display: none; }
.nva-intel .nva-stat span:not(.nva-stat-icon) { font-size: 13px; color: #4b515b; font-weight: 600; }
.nva-intel .nva-stat strong { font-size: 28px; letter-spacing: -.02em; line-height: 1.2; margin-top: 2px; }
.nva-intel .nva-stat small { font-size: 13px; color: var(--mut); margin-top: 2px; }

/* tables */
.nva-intel .nva-table th { font-size: 12.5px; text-transform: none; letter-spacing: .01em; color: #4b515b; font-weight: 650; padding: 11px 12px; white-space: nowrap; }
.nva-intel .nva-table th:first-child, .nva-intel .nva-table td:first-child { padding-left: 18px; }
.nva-intel .nva-table td { font-size: 14px; padding: 14px 12px; vertical-align: middle; }
.nva-intel .nva-table td:first-child { font-weight: 600; }
.nva-intel .nva-record { font-size: 14px; font-weight: 650; }
.nva-intel .nva-meter { display: inline-block; width: 72px; height: 8px; background: #e4e6ea; border-radius: 99px; vertical-align: middle; margin-right: 8px; overflow: hidden; }
.nva-intel .nva-meter i { display: block; height: 100%; background: var(--ok); }

/* status pills: green is good, amber is waiting, red needs action, grey is just a label */
.nva-intel .nva-pill { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.nva-intel .nva-pill.amber { background: var(--warn-bg); color: var(--warn); border-color: #f1d9a0; }
.nva-intel .nva-pill.grey { background: #eef1f5; color: #4b515b; border-color: #d9dce1; }

/* lenders: a short list, each one opens into its file */
.nva-lenders { display: grid; gap: 12px; }
.nva-lender { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.nva-lender[open] { border-color: var(--line-2); }
.nva-lender > summary { display: grid; grid-template-columns: minmax(0, 1.7fr) auto minmax(130px, auto) 14px; align-items: center; gap: 16px; padding: 16px 18px; cursor: pointer; list-style: none; }
.nva-lender > summary::-webkit-details-marker { display: none; }
.nva-lender > summary:hover { background: #f7f9fc; }
.nva-lender > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.nva-lender-main strong { display: block; font-size: 16px; font-weight: 650; }
.nva-lender-main small { display: block; color: var(--mut); font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.nva-lender-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.nva-lender-stat { color: #4b515b; font-size: 13.5px; text-align: right; }
.nva-chevron { width: 9px; height: 9px; border-right: 2px solid #7a808a; border-bottom: 2px solid #7a808a; transform: rotate(45deg); transition: transform .15s; justify-self: end; }
.nva-lender[open] .nva-chevron { transform: rotate(-135deg); }
.nva-lender-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 28px; padding: 20px 18px; border-top: 1px solid var(--line); }
.nva-lender-body h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); margin: 0 0 12px; font-weight: 700; }
.nva-lender-body h4 { font-size: 13px; margin: 16px 0 8px; font-weight: 650; }
.nva-facts { margin: 0; display: grid; gap: 0; }
.nva-facts > div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid #eef0f3; }
.nva-facts dt { color: var(--mut); }
.nva-facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.nva-way { margin: 0 0 8px; font-size: 15px; }
.nva-callout { background: var(--warn-bg); color: var(--warn); border: 1px solid #f1d9a0; border-radius: 6px; padding: 10px 12px; margin: 10px 0; font-size: 13.5px; }
.nva-lender-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--line); background: #f7f8fa; }
.nva-trail { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nva-trail li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; }
.nva-trail li span { color: var(--mut); }

/* send a lead to every lender that fits */
.nva-send { display: grid; gap: 16px; }
.nva-pick, .nva-filters label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: #4b515b; }
.nva-pick { max-width: 380px; }
.nva-fit { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.nva-fit li { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(0, 2fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid #e8eaee; }
.nva-fit li:first-child { border-top: 0; }
.nva-fit li.fits { background: #f3fbf7; }
.nva-fit-name { font-weight: 650; }
.nva-fit-note { color: var(--mut); font-size: 13.5px; }
.nva-send-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nva-send-foot .d-btn { min-height: 42px; padding: 10px 20px; font-size: 14.5px; }
.nva-intel .nva-setting { padding: 16px 0 0; margin-top: 16px; border-top: 1px solid #e8eaee; border-bottom: 0; }
.nva-intel .nva-setting strong { font-size: 14.5px; }
.nva-intel .nva-setting small { font-size: 13px; line-height: 1.45; }
.nva-filters { display: flex; gap: 16px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.nva-filters select { min-width: 200px; }

/* phones and small tablets: panels fill the width, lists become cards */
@media (max-width: 980px) {
  .nva-lender > summary { grid-template-columns: minmax(0, 1fr) 14px; row-gap: 8px; }
  .nva-lender-tags, .nva-lender-stat { grid-column: 1; text-align: left; }
  .nva-chevron { grid-column: 2; grid-row: 1; }
}
@media (max-width: 720px) {
  .nva-intel { font-size: 15px; }
  .nva-intel .nva-heading { gap: 12px; }
  .nva-intel .nva-actions { width: 100%; }
  .nva-intel .nva-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .nva-intel .nva-stat strong { font-size: 24px; }
  .nva-intel .nva-panel-body { padding: 14px; }
  .nva-fit li { grid-template-columns: 1fr auto; row-gap: 2px; }
  .nva-fit-note { grid-column: 1; grid-row: 2; }
  .nva-filters select, .nva-pick { min-width: 0; width: 100%; max-width: none; }
  .nva-filters label { flex: 1 1 100%; }
  .nva-send-foot .d-btn { width: 100%; }
  .nva-intel .nva-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nva-intel .nva-stack, .nva-intel .nva-stack tbody, .nva-intel .nva-stack tr, .nva-intel .nva-stack td { display: block; width: 100%; box-sizing: border-box; }
  .nva-intel .nva-stack tr { padding: 12px 16px; border-top: 1px solid #e8eaee; }
  .nva-intel .nva-stack tr:first-child { border-top: 0; }
  .nva-intel .nva-stack td { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 6px 0; border: 0; text-align: right; }
  .nva-intel .nva-stack td::before { content: attr(data-label); color: var(--mut); font-weight: 600; font-size: 13px; text-align: left; flex: none; }
}
@media (max-width: 720px) {
  .nva-intel .nva-stack td:first-child { justify-content: flex-start; text-align: left; font-size: 16px; padding: 0 0 8px; }
  .nva-intel .nva-stack td:first-child::before { display: none; }
}
@media (max-width: 340px) { .nva-intel .nva-stats { grid-template-columns: 1fr; } }

/* reports: charts and the pipeline use the same readable scale */
.nva-intel .nva-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.nva-intel .nva-grid > .nva-panel { margin-bottom: 0; }
.nva-intel .nva-pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px; overflow: visible; padding: 0; }
.nva-intel .nva-pipeline .step { text-align: left; padding: 12px; }
.nva-intel .nva-pipeline .step span { white-space: normal; font-size: 13px; }
.nva-intel .nva-pipeline .step strong { font-size: 24px; margin-top: 2px; }
.nva-intel .nva-chart-col span { font-size: 12px; }
.nva-intel .nva-chart-col b { font-size: 12.5px; }
.nva-intel .nva-chart-track i { background: var(--brand); border-radius: 3px 3px 0 0; }

/* lean pages: lead checks beside the picker, update trail inside a result */
.nva-gates { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.nva-gate { display: inline-flex; gap: 8px; flex-wrap: wrap; padding-bottom: 6px; }
.nva-steps { margin-top: 6px; }
.nva-steps summary { cursor: pointer; color: var(--brand-2); font-size: 13px; }
.nva-steps ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.nva-steps li { display: grid; grid-template-columns: 96px auto minmax(0, 1fr); gap: 8px; font-size: 13px; align-items: baseline; }
.nva-steps li span { color: var(--mut); }
.nva-trail li small { grid-column: 2 / 4; }

/* ===== Chat room ===== */
.nva-chat { display: grid; grid-template-columns: 240px minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; height: calc(100vh - 230px); min-height: 480px; }
.nva-chat-side { border-right: 1px solid var(--line); background: #f7f8fa; overflow: auto; padding: 12px; }
.nva-chat-side summary { font-weight: 700; font-size: 12px; color: var(--mut); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; margin-bottom: 8px; }
.nva-chat-threads { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nva-chat-threads li { display: flex; align-items: center; border-radius: 6px; }
.nva-chat-threads li.on { background: #e9f2fe; }
.nva-chat-threads li > button:first-child { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 8px 10px; font: inherit; font-size: 13.5px; color: var(--ink-2); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 6px; }
.nva-chat-threads li:hover { background: #eef1f5; }
.nva-chat-threads li.on:hover { background: #e9f2fe; }
.nva-chat-x { background: none; border: 0; color: var(--mut); cursor: pointer; font-size: 18px; line-height: 1; padding: 4px 8px; opacity: 0; }
.nva-chat-threads li:hover .nva-chat-x, .nva-chat-threads li:focus-within .nva-chat-x { opacity: 1; }
.nva-chat-none { margin: 4px 2px; }
.nva-chat-main { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; min-width: 0; }
.nva-chat-stream { overflow-y: auto; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.nva-msg { display: flex; gap: 10px; max-width: 820px; font-size: 14.5px; line-height: 1.55; }
.nva-msg.user { align-self: flex-end; }
.nva-msg.user > div { background: #e9f2fe; border-radius: 14px 14px 4px 14px; padding: 10px 14px; }
.nva-msg > div { min-width: 0; overflow-wrap: anywhere; }
.nva-msg p { margin: 0 0 8px; }
.nva-msg p:last-child { margin-bottom: 0; }
.nva-msg ul, .nva-msg ol { margin: 4px 0 8px; padding-left: 20px; }
.nva-msg pre, .nva-ask pre { background: #101214; color: #e8eaee; border-radius: 8px; padding: 10px 12px; overflow: auto; font-size: 12.5px; margin: 6px 0; }
.nva-msg code { background: #eef1f5; border-radius: 4px; padding: 1px 5px; font-size: .92em; }
.nva-msg pre code, .nva-ask pre code { background: none; padding: 0; color: inherit; }
.nva-bot { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #0e1a2b; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.nva-bot.big { width: 52px; height: 52px; font-size: 22px; }
.nva-work { align-self: flex-start; margin-left: 38px; font-size: 13px; color: var(--mut); max-width: 760px; }
.nva-work summary { cursor: pointer; }
.nva-work ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; }
.nva-work li span { color: var(--ok); margin-right: 6px; font-weight: 700; }
.nva-work li.bad span { color: var(--bad); }
.nva-work small { display: block; margin-left: 18px; color: var(--bad); }
.nva-ask { margin-left: 38px; max-width: 760px; border: 1px solid #f1d9a0; border-left: 4px solid #c27a00; background: #fffaf0; border-radius: 8px; padding: 12px 14px; display: grid; gap: 8px; }
.nva-ask.approved { border-color: #b6e2cf; border-left-color: var(--ok); background: #f3fbf7; }
.nva-ask.declined { border-color: var(--line); border-left-color: #9aa1ab; background: #f7f8fa; }
.nva-ask.failed { border-color: #f5c2bd; border-left-color: var(--bad); background: #fff7f6; }
.nva-ask-head { display: grid; gap: 2px; }
.nva-ask-head small, .nva-ask-result small { color: var(--mut); }
.nva-ask-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nva-ask-jobs li { display: grid; gap: 2px; font-size: 13.5px; }
.nva-ask-jobs small { color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; overflow-wrap: anywhere; }
.nva-ask-more summary { cursor: pointer; color: var(--brand-2); font-size: 13px; }
.nva-ask-actions, .nva-ask-result { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nva-open { align-self: flex-start; margin-left: 38px; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 600; color: var(--brand-2); cursor: pointer; }
.nva-open:hover { background: #e9f2fe; border-color: var(--brand); }
.nva-chat-empty { margin: auto; text-align: center; max-width: 580px; display: grid; gap: 10px; justify-items: center; padding: 20px; }
.nva-chat-empty h2 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.nva-chat-empty p { margin: 0; color: var(--mut); }
.nva-chat-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.nva-chat-chips button { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 9px 16px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.nva-chat-chips button:hover { background: #f4f5f7; border-color: var(--brand); color: var(--brand-2); }
.nva-chat-form { display: flex; gap: 10px; align-items: flex-end; padding: 14px 18px; border-top: 1px solid var(--line); background: #fff; }
.nva-chat-form textarea { flex: 1; resize: none; border-radius: 10px; padding: 11px 14px; font: inherit; font-size: 14.5px; line-height: 1.4; min-height: 46px; max-height: 180px; }
.nva-chat-form .d-btn { min-height: 46px; padding: 0 22px; font-size: 14.5px; }
.nva-chat-error { margin: 0; padding: 8px 18px; color: var(--bad); background: var(--bad-bg); font-size: 13.5px; }
.nva-typing { display: flex; gap: 4px; padding: 10px 4px; }
.nva-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa1ab; animation: nva-dot 1.1s infinite ease-in-out; }
.nva-typing i:nth-child(2) { animation-delay: .15s; }
.nva-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes nva-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .nva-typing i { animation: none; opacity: .6; } }
@media (max-width: 900px) {
  .nva-chat { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: calc(100vh - 190px); }
  .nva-chat-side { border-right: 0; border-bottom: 1px solid var(--line); max-height: 28vh; }
  .nva-chat-stream { padding: 16px; }
  .nva-ask, .nva-work, .nva-open { margin-left: 0; }
}
@media (max-width: 520px) { .nva-chat-form { padding: 10px; } .nva-chat-form .d-btn { padding: 0 14px; } }
/* The workspace search keeps one clear look: no browser-drawn clear (×) button in the top bar. */
.global-search input[type="search"]::-webkit-search-cancel-button,
.global-search input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
/* Lead file overview values are buttons that open their detail; they read as values, in the panel's ink. */
.nva-oled .d-overview-link { color: var(--ink, #0f172a); }
/* Message times: list rows show when the last message came in; the dialer lists a lead's recent texts with times. */
.d-convo-when { white-space: nowrap; font-size: 11px; }
.d-convo-preview { margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.nva-recent-texts { margin: 10px 0 14px; }
.nva-recent-texts ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.nva-recent-texts li { border: 1px solid var(--line, #e5e7eb); border-radius: 6px; padding: 6px 8px; background: #fff; }
.nva-recent-texts li.out { background: #f3f6fb; }
.nva-recent-texts li span { font-size: 11px; color: var(--mut, #5b6068); }
.nva-recent-texts li p { margin: 2px 0 0; font-size: 13px; }
.d-convo > .d-row { flex-wrap: nowrap; }
.d-convo > .d-row > b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.d-convo > .d-row > span { flex-shrink: 0; }

/* Lead list: the owner filter sits in the toolbar beside the buttons, at button height. */
.nva-lead-toolbar .nva-owner-filter { width: auto; min-width: 150px; max-width: 220px; height: 34px; padding: 0 10px; font-size: 13px; }

/* Two-step sign-in: the setup QR code, the setup key, and recovery code lists. */
.signin-qr { display: flex; justify-content: center; margin: 4px 0 12px; }
.signin-qr svg { width: 200px; height: 200px; border-radius: 8px; border: 1px solid #e3e6ec; }
.signin-key { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; word-break: break-all; }
.signin-codes, .nva-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; list-style: none; padding: 0; margin: 14px 0; }
.signin-codes code, .nva-codes code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; letter-spacing: .08em; }

/* Agency switcher above the signed-in person, and the per-agency business type in Settings. */
.desk-agency { display: flex; flex-direction: column; gap: 4px; width: 100%; margin-bottom: 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.desk-agency select { width: 100%; height: 32px; border-radius: 6px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; padding: 0 8px; font-size: 13px; text-transform: none; letter-spacing: 0; }
.desk-agency option { color: #0b1324; }
.nva-agency-vertical { width: auto; min-width: 190px; height: 34px; font-size: 13px; }
#desk-foot { flex-wrap: wrap; }

/* Audit log search: filters on one line above the results. */
.nva-audit-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.nva-audit-filters .d-i { width: auto; min-width: 140px; height: 34px; font-size: 13px; }

/* Do-not-call: the number check sits under the lists. */
.nva-dnc-check { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 4px; }
.nva-dnc-check .d-i { width: auto; min-width: 260px; height: 34px; font-size: 13px; }

/* Single sign-on on the sign-in card */
.signin .signin-sso { width: 100%; justify-content: center; margin: 4px 0 2px; }
.signin-or { display: flex; align-items: center; gap: 10px; color: #6b7280; font-size: 12px; margin: 10px 0 4px; }
.signin-or::before, .signin-or::after { content: ""; flex: 1; height: 1px; background: #e5e7eb; }

/* White label */
.nva-brand-logo { background: transparent !important; }
.nva-brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.nva-brand-thumb { max-height: 28px; max-width: 120px; object-fit: contain; }
.nva-brand-now img { max-height: 32px; max-width: 140px; object-fit: contain; vertical-align: middle; margin-right: 8px; }
.nva-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--line); vertical-align: -2px; }
.nva-brand-fields { margin-top: 10px; }
.signin-logo { max-height: 36px; max-width: 160px; object-fit: contain; }
.signin .d-btn:not(.ghost) { background: var(--brand); border-color: var(--brand); }
/* A firm's name is longer than "VNA": it wraps inside the sidebar instead of pushing it sideways. */
.desk-logo > div:last-child { min-width: 0; }
.desk-logo b.nva-brand-name { font-size: 18px; letter-spacing: -.3px; line-height: 1.15; overflow-wrap: anywhere; }
.nva-brand-logo { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 6px; overflow: hidden; }
.signin-aside-brand img { max-height: 28px; max-width: 140px; object-fit: contain; }
/* The search box stays inside the top bar (it was wider than its slot and pushed the page sideways). */
.nva-oled .desk-top .global-search-wrap { width: min(440px, 32vw); max-width: 100%; }
.nva-oled .desk-top .global-search { min-width: 0; width: 100%; box-sizing: border-box; }

/* Getting started */
.nva-setup { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nva-setup li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.nva-setup li:last-child { border-bottom: 0; }
.nva-setup strong { display: block; font-size: 13px; }
.nva-setup small { color: var(--mut); font-size: 12px; }
.nva-setup-mark { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 11px; color: #fff; }
.nva-setup li.done .nva-setup-mark { background: var(--ok); border-color: var(--ok); }
.nva-setup li.done strong { color: var(--mut); }

/* ===== Underwriting ===== */
.nva-uw-panel .nva-panel-body { padding: 0; }
.nva-uw-item { border-top: 1px solid var(--line); }
.nva-uw-item:first-child { border-top: 0; }
.nva-uw-item.open { background: #fafbfc; }
.nva-uw-row { display: grid; grid-template-columns: minmax(170px, 1.1fr) minmax(200px, 2fr) 96px minmax(150px, 1.1fr) 110px; align-items: center; gap: 6px 14px; padding: 10px 16px; }
.nva-uw-name { all: unset; cursor: pointer; display: grid; gap: 2px; min-width: 0; }
.nva-uw-name:focus-visible { outline: 2px solid #1558bc; outline-offset: 2px; border-radius: 3px; }
.nva-uw-name b { font-size: 13.5px; font-weight: 650; color: var(--ink); overflow-wrap: anywhere; }
.nva-uw-name small, .nva-uw-verdict small { color: var(--mut); font-size: 11.5px; line-height: 1.35; }
.nva-uw-tag { background: #eef1f5; border-radius: 3px; padding: 0 5px; }
.nva-uw-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--ink-2); }
.nva-uw-fact b { font-variant-numeric: tabular-nums; }
.nva-uw-wait { color: var(--mut); font-style: italic; }
.nva-uw-dots { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #1558bc; animation: nva-uw-pulse 1.2s ease-in-out infinite; }
.nva-uw-est { font-weight: 650; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.nva-uw-verdict { display: grid; gap: 3px; justify-items: start; }
.nva-uw-act { justify-self: end; }
.nva-uw-detail { padding: 4px 16px 16px; display: grid; gap: 12px; }
.nva-uw-line { margin: 0; font-size: 13px; }
.nva-uw-list { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 5px; font-size: 13px; }
.nva-uw-list .nva-pill { margin-right: 6px; }
.nva-uw-working summary { cursor: pointer; color: var(--mut); font-size: 12px; }
.nva-uw-working .nva-uw-list { margin-top: 6px; color: var(--ink-2); }
.nva-uw-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nva-uw-tools input { flex: 1 1 220px; min-width: 0; }
.nva-uw-screening { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fff; display: grid; gap: 10px; }
.nva-uw-screening h3 { margin: 0; font-size: 14px; }
.nva-uw-screening-scope { margin: 0; color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
.nva-uw-screening a { color: #1558bc; }
.nva-uw-court-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nva-uw-court-card { min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 10px; display: grid; gap: 8px; }
.nva-uw-court-card legend { padding: 0 4px; font-size: 12.5px; font-weight: 650; }
.nva-uw-court-card p { margin: 0; font-size: 11.5px; }
.nva-uw-court-card .d-f { min-width: 0; }
.nva-uw-court-evidence { border-top: 1px solid var(--line); padding-top: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nva-uw-court-evidence .d-f:last-child { grid-column: 1 / -1; }
.nva-uw-screening .nva-uw-tools { padding-top: 4px; }
.nva-uw-label { font-size: 12px; font-weight: 650; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; }
.nva-uw-tierpick { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; margin-left: auto; }
.nva-uw-tierpick select { text-transform: none; letter-spacing: 0; font-weight: 400; min-width: 200px; }
.nva-uw-decide { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 4px; }
.nva-uw-more { all: unset; cursor: pointer; display: block; margin: 2px 0 20px; color: var(--mut); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }
.nva-uw-more:focus-visible { outline: 2px solid #1558bc; outline-offset: 2px; }
.nva-uw-page { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 22px; }
.nva-uw-h { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--mut); margin: 18px 0 6px; }
.nva-uw-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 12px 0; }
.nva-uw-tier { border: 1px solid var(--line); border-radius: 6px; padding: 0 14px; margin: 0 0 8px; background: #fff; }
.nva-uw-tier[open] { padding-bottom: 12px; }
.nva-uw-tier summary { cursor: pointer; display: grid; gap: 2px; padding: 10px 0; }
.nva-uw-tier summary small { color: var(--mut); font-size: 12px; }
.nva-uw-fresh { animation: nva-uw-fresh 2.4s ease-out 1; }
@keyframes nva-uw-fresh { from { background: #e9f2fe; } to { background: transparent; } }
@keyframes nva-uw-pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .nva-uw-fresh, .nva-uw-dots { animation: none; } }
@media (max-width: 900px) { .nva-uw-row { grid-template-columns: 1fr auto; } .nva-uw-facts { grid-column: 1 / -1; } .nva-uw-est { justify-self: start; } .nva-uw-verdict { grid-column: 1 / 2; } .nva-uw-tierpick { margin-left: 0; width: 100%; } }
@media (max-width: 700px) { .nva-uw-court-grid, .nva-uw-court-evidence { grid-template-columns: 1fr; } .nva-uw-court-evidence .d-f:last-child { grid-column: auto; } }

.nva-rowacts { display: flex; gap: 12px; margin-top: 2px; }
.nva-rowact { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-size: 11px; cursor: pointer; }
.nva-rowact:hover { text-decoration: underline; }
@media (max-width: 560px) { .nva-lead-toolbar .nva-actions { flex-wrap: wrap; flex-shrink: 1; margin-left: 0; width: 100%; } }
/* Tall dialogs scroll inside themselves, so their buttons can always be reached. */
.nva-oled .d-modal.nva-modal { max-height: calc(100vh - 88px); overflow-y: auto; }
/* Subject's portal: permission rows stack their lines; the contact-preference form is one field per line on phones. */
[data-permission-list] .source-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
[data-permission-list] .source-row strong, [data-permission-list] .source-row span { display: block; }
[data-permission-list] .source-row span { color: var(--mut); font-size: 12px; margin-top: 2px; }
[data-permission-list] details { margin-top: 4px; }
.merchant-preferences-form label { display: block; margin: 0 0 12px; }
.merchant-preferences-form label > span { display: block; font-size: 12px; margin-bottom: 4px; }
.merchant-preferences-form input:not([type="checkbox"]), .merchant-preferences-form select { width: 100%; box-sizing: border-box; padding: 8px; border: 1px solid var(--line-2); border-radius: 4px; }
.merchant-preferences-form input[type="checkbox"] + span { display: inline; }
[data-permission-list] .source-row > div { flex: 1; min-width: 0; text-align: left; }
[data-permission-list] .source-row strong { text-align: left; }
.merchant-preferences-form { padding: 0 16px 16px; }
