:root {
  --navy: #082b4a;
  --blue: #0b65ad;
  --blue-soft: #eaf5fc;
  --orange: #f28c28;
  --orange-dark: #9a5718;
  --orange-soft: #fff2e5;
  --ink: #17324c;
  --muted: #64798c;
  --line: #d7e3ec;
  --canvas: #f3f7fa;
  --green: #148269;
  --green-soft: #e9f7f2;
  --shadow: 0 12px 34px rgba(8, 43, 74, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "DM Sans", sans-serif; }
.auth-pending .app-shell { visibility: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #ffc273; outline-offset: 2px; }
.pilot-strip { min-height: 28px; padding: 7px 18px; display: grid; place-items: center; color: white; background: linear-gradient(90deg, var(--orange), #1579c7 55%, var(--navy)); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-align: center; }
.app-shell { min-height: calc(100vh - 28px); display: grid; grid-template-columns: 242px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: calc(100vh - 28px); padding: 28px 18px 20px; color: white; background: var(--navy); display: flex; flex-direction: column; overflow-y: auto; z-index: 20; }
.brand { padding: 0 10px; display: flex; align-items: center; gap: 11px; }
.brand > span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, var(--orange), #e2740d); box-shadow: 0 9px 22px rgba(0, 0, 0, .22); font: 800 18px "Manrope", sans-serif; }
.brand strong, .brand small { display: block; }
.brand strong { font: 800 20px "Manrope", sans-serif; letter-spacing: .02em; }
.brand small { margin-top: 2px; color: #9fb4c6; font-size: 9px; }
.sidebar nav { margin-top: 34px; display: grid; gap: 7px; }
.nav-item { width: 100%; min-height: 43px; padding: 9px 11px; border: 0; border-radius: 10px; display: flex; align-items: center; gap: 10px; color: #b8c7d3; background: transparent; text-align: left; font-size: 12px; font-weight: 700; }
.nav-item:hover { color: white; background: #0c3d66; }
.nav-item.active { color: white; background: #0e4c7e; box-shadow: inset 3px 0 var(--orange); }
.nav-item i { width: 23px; height: 23px; border: 1px solid #4c6d86; border-radius: 6px; display: grid; place-items: center; font-size: 8px; font-style: normal; }
.nav-item b { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; color: #7d95a8; background: #0a3456; font-size: 9px; }
.side-section { margin-top: auto; padding-top: 22px; border-top: 1px solid #26506f; }
.side-section > p { margin: 0 10px 9px; color: #718ea5; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.connection-card, .extension-link { min-height: 54px; margin-top: 7px; padding: 10px 11px; border: 1px solid #2a5472; border-radius: 11px; display: flex; align-items: center; gap: 10px; color: white; background: #0b3659; text-decoration: none; }
.connection-card strong, .connection-card small, .extension-link strong, .extension-link small { display: block; }
.connection-card strong, .extension-link strong { font-size: 11px; }
.connection-card small, .extension-link small { margin-top: 3px; color: #91aabd; font-size: 8px; line-height: 1.35; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(20, 130, 105, .18); }
.lock-mark, .extension-link > span { width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; color: var(--navy); background: var(--orange); font-weight: 800; }
.extension-link { transition: .18s ease; }
.extension-link:hover { border-color: var(--orange); transform: translateY(-1px); }
.connection-button { width: 100%; font-family: inherit; text-align: left; cursor: pointer; }
.connection-button:hover { border-color: var(--orange); background: #0d416a; }
.media-mark { width: 27px; height: 27px; flex: 0 0 27px; border-radius: 8px; display: grid; place-items: center; color: white; background: var(--blue); font-size: 8px; font-weight: 800; }
.media-mark.guide-mark { color: var(--navy); background: var(--orange); font-size: 12px; }
.media-mark.data-clean-mark { background: #53697b; font-size: 12px; }
.data-clean-button { margin-top: 2px; }
.data-clean-button:disabled { opacity: .55; cursor: wait; }
.account-placeholder { margin-top: 14px; padding: 14px 7px 0; border-top: 1px solid #26506f; display: flex; align-items: center; gap: 9px; color: white; text-decoration: none; }
.account-placeholder > span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--navy); background: white; font-size: 8px; font-weight: 800; }
.account-placeholder strong, .account-placeholder small { display: block; }
.account-placeholder strong { font-size: 9px; }
.account-placeholder small { margin-top: 2px; color: #7f9aaf; font-size: 8px; }
.account-placeholder > div { min-width: 0; flex: 1; }
.account-placeholder > b { color: #87a5bb; font-size: 19px; }
.account-placeholder:hover strong { color: #ffaf64; }
.drawer-close, .drawer-backdrop, .mobile-bar { display: none; }
.main { min-width: 0; padding: 30px 34px 40px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.eyebrow { margin: 0 0 5px; color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
h1, h2, h3 { margin: 0; font-family: "Manrope", sans-serif; }
h1 { font-size: 26px; }
h2 { font-size: 24px; }
h3 { font-size: 17px; }
.topbar > div > p:last-child, .workspace-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.office-lock { min-width: 240px; padding: 9px 12px; border: 1px solid #bcd9eb; border-radius: 10px; background: #f8fcff; }
.office-lock span, .office-lock strong { display: block; }
.office-lock span { color: var(--blue); font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.office-lock strong { margin-top: 3px; font-size: 9px; }
.sync-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.sync-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(242, 140, 40, .14); }
.sync-status.connected { color: #166b58; font-weight: 700; }
.sync-status.connected i { background: var(--green); box-shadow: 0 0 0 4px rgba(20,130,105,.14); }
.page { display: none; margin-top: 24px; }
.page.active { display: block; animation: page-in .22s ease-out; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.setup-banner { border-radius: 19px; padding: 30px 31px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); gap: 32px; color: white; background: radial-gradient(circle at 85% 10%, rgba(242, 140, 40, .55), transparent 29%), linear-gradient(135deg, #0b65ad, #074d85 50%, #062f51); box-shadow: var(--shadow); }
.setup-pill { display: inline-flex; padding: 6px 9px; border: 1px solid rgba(255,255,255,.34); border-radius: 999px; color: #e8f6ff; font-size: 8px; font-weight: 800; letter-spacing: .11em; }
.setup-copy h2 { max-width: 700px; margin-top: 13px; font-size: clamp(25px, 3vw, 38px); line-height: 1.12; letter-spacing: -.03em; }
.setup-copy > p { max-width: 720px; margin: 11px 0 0; color: #d2e8f8; font-size: 12px; line-height: 1.6; }
.banner-actions { margin-top: 20px; display: flex; gap: 9px; flex-wrap: wrap; }
.primary, .secondary { min-height: 41px; padding: 0 15px; border-radius: 9px; font-size: 10px; font-weight: 800; }
.primary { border: 0; color: white; background: var(--orange); box-shadow: 0 8px 20px rgba(0,0,0,.14); }
.secondary { border: 1px solid rgba(255,255,255,.42); color: white; background: rgba(255,255,255,.08); }
.readiness-card { align-self: center; padding: 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(4, 37, 63, .55); backdrop-filter: blur(8px); }
.readiness-card > div { min-height: 61px; padding: 10px 11px; display: grid; grid-template-columns: 29px 1fr auto; gap: 10px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.12); }
.readiness-card > div:last-child { border-bottom: 0; }
.readiness-card > div > span { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--navy); background: white; font-size: 9px; font-weight: 800; }
.readiness-card b, .readiness-card small { display: block; }
.readiness-card b { font-size: 10px; }
.readiness-card small { margin-top: 3px; color: #aac5d9; font-size: 8px; }
.readiness-card em { padding: 5px 7px; border-radius: 999px; color: #ffcb90; background: rgba(242,140,40,.14); font-size: 7px; font-style: normal; font-weight: 800; letter-spacing: .08em; }
.readiness-card .ready-text { color: #71dec0; background: rgba(20,130,105,.18); }
.scan-notice { margin-top: 15px; padding: 13px 15px; border: 1px solid #b7dfd4; border-radius: 12px; display: flex; align-items: center; gap: 11px; background: var(--green-soft); }
.scan-notice[hidden] { display: none; }
.scan-icon { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; color: white; background: var(--green); font-weight: 800; }
.scan-notice b, .scan-notice small { display: block; }
.scan-notice b { font-size: 11px; }
.scan-notice small { margin-top: 3px; color: #487568; font-size: 9px; }
.scan-notice button { margin-left: auto; border: 0; color: var(--green); background: transparent; font-size: 9px; font-weight: 800; }
.metric-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-grid article { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 6px 18px rgba(8,43,74,.04); }
.metric-grid span, .metric-grid strong, .metric-grid small { display: block; }
.metric-grid span { color: var(--muted); font-size: 9px; font-weight: 700; }
.metric-grid strong { margin: 7px 0 3px; font: 800 26px "Manrope", sans-serif; }
.metric-grid small { color: #7a8d9d; font-size: 8px; }
.dashboard-grid { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); gap: 14px; }
.dashboard-grid.dashboard-single { grid-template-columns: minmax(0, 1fr); }
.panel { border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 8px 24px rgba(8,43,74,.05); overflow: hidden; }
.section-head { min-height: 71px; padding: 17px 19px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.section-head h3 { font-size: 16px; }
.secure-label, .progress-label { padding: 6px 8px; border-radius: 999px; color: var(--blue); background: var(--blue-soft); font-size: 8px; font-weight: 800; }
.empty-state { min-height: 310px; padding: 38px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-state.small { min-height: 330px; }
.empty-document { width: 50px; height: 58px; border: 2px solid #9cc6e2; border-radius: 8px; display: grid; place-items: center; color: var(--blue); background: #f4faff; box-shadow: inset 0 -10px 0 #e8f4fb; font-size: 9px; font-weight: 800; }
.empty-state h3 { margin-top: 15px; font-size: 17px; }
.empty-state p { max-width: 520px; margin: 7px 0 17px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.empty-state .primary { color: white; background: var(--blue); }
.checklist-panel ul { margin: 0; padding: 10px 18px 18px; list-style: none; }
.checklist-panel li { padding: 12px 0; border-bottom: 1px solid #e8eff4; display: flex; gap: 10px; align-items: flex-start; }
.checklist-panel li:last-child { border-bottom: 0; }
.checklist-panel li > span { width: 25px; height: 25px; flex: 0 0 25px; border-radius: 7px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); font-size: 8px; font-weight: 800; }
.checklist-panel li.done > span { color: white; background: var(--green); }
.checklist-panel b, .checklist-panel small { display: block; }
.checklist-panel b { font-size: 10px; }
.checklist-panel small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.checklist-ai-test { margin-top: 9px; padding: 7px 10px; border: 1px solid #b9d7ea; border-radius: 8px; color: var(--blue); background: white; font-size: 8px; font-weight: 800; cursor: pointer; }
.checklist-ai-test:hover { border-color: var(--orange); color: var(--orange-dark); }
.checklist-ai-test:disabled { opacity: .62; cursor: wait; }
.workspace-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.workspace-head h2 { font-size: 25px; }
.workspace-count { padding: 8px 11px; border: 1px solid #bcd9eb; border-radius: 999px; color: var(--blue); background: #f5fbff; font-size: 9px; font-weight: 800; white-space: nowrap; }
.workspace-count.secure { color: var(--green); border-color: #b7dfd4; background: var(--green-soft); }
.compact-metrics { margin: 16px 0 13px; }
.compact-metrics article { padding: 14px 16px; }
.compact-metrics strong { font-size: 22px; }
.data-panel { min-height: 470px; }
.data-tools { min-height: 75px; padding: 13px 15px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-end; gap: 8px; background: #fbfdff; }
.data-tools label { flex: 1; }
.data-tools label span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 8px; font-weight: 800; }
.data-tools input { width: 100%; min-height: 39px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: #91a1ae; background: white; font-size: 10px; }
.filter-tools { display: grid; grid-template-columns: minmax(230px, 2fr) minmax(145px, 1fr) minmax(145px, 1fr); align-items: end; }
.filter-tools label { min-width: 0; }
.filter-tools select { width: 100%; min-height: 39px; padding: 0 34px 0 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font: 600 10px/1.2 inherit; }
.decision-filters { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px; }
.decision-filters .reset-filter { margin-left: auto; color: #87541e; border-color: #f0c18d; background: #fffaf4; }
.decision-filters .reset-filter:hover { color: white; border-color: var(--orange); background: var(--orange); }
.data-tools button { min-height: 39px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: #557086; background: white; font-size: 9px; font-weight: 800; cursor: pointer; }
.data-tools button:hover, .data-tools button.active { color: white; border-color: var(--blue); background: var(--blue); }
.table-head { min-height: 41px; padding: 0 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1.3fr 1.2fr .8fr 1fr; gap: 15px; align-items: center; color: var(--muted); background: #f8fbfd; font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.claims-head { grid-template-columns: 1.2fr 1.1fr .8fr .85fr 1.2fr; }
.preauth-head { grid-template-columns: 1.2fr 1.25fr .85fr 1.2fr; }
.remit-head { grid-template-columns: 1.1fr 1.3fr .6fr .8fr; }
.queue-head { grid-template-columns: .6fr 1.5fr 1fr .7fr; }
.checklist-head { grid-template-columns: 1.25fr .9fr .9fr .7fr; }
.page-scan-notice { margin: 15px 0 13px; }
.local-record-row { width: 100%; min-height: 88px; padding: 15px 16px; border: 0; border-bottom: 1px solid #e8eff4; display: grid; grid-template-columns: 1.3fr 1.2fr .8fr 1fr; gap: 15px; align-items: center; color: var(--ink); background: white; font-family: inherit; text-align: left; cursor: pointer; }
.local-record-row.claims-row { grid-template-columns: 1.2fr 1.1fr .8fr .85fr 1.2fr; }
.local-record-row.preauth-row { grid-template-columns: 1.2fr 1.25fr .85fr 1.2fr; }
.local-record-row:last-child, .local-file-row:last-child { border-bottom: 0; }
.local-record-row:hover { background: #f8fcff; }
.local-record-row.queue-row { grid-template-columns: .6fr 1.5fr 1fr .7fr; }
.local-file-row.checklist-row { grid-template-columns: 42px 1.25fr .9fr .9fr .7fr; }
.no-source-link { color: var(--muted); font-size: 8px; font-weight: 700; }
.local-cell { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.local-cell b, .local-cell small { overflow: hidden; text-overflow: ellipsis; }
.local-cell b { font-size: 10px; line-height: 1.35; }
.local-cell small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.decision { width: max-content; max-width: 100%; padding: 5px 8px; border-radius: 999px; color: var(--blue); background: var(--blue-soft); font-size: 7px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.decision.paid, .decision.approved { color: #116b57; background: #e4f6f0; }
.decision.partial { color: #946100; background: #fff2cf; }
.decision.denied { color: #a33448; background: #fde8ed; }
.decision.needs_info { color: var(--blue); background: var(--blue-soft); }
.exact-action { color: var(--ink) !important; font-weight: 700; }
.local-file-row { min-height: 77px; padding: 13px 16px; border-bottom: 1px solid #e8eff4; display: grid; grid-template-columns: 42px 1.2fr .8fr .9fr .8fr; gap: 12px; align-items: center; }
.open-eob-button { width: max-content; max-width: 100%; margin-top: 3px; padding: 5px 8px; border: 1px solid #9fc9e2; border-radius: 7px; color: var(--blue); background: white; font-size: 8px; font-weight: 800; cursor: pointer; }
.open-eob-button:hover { color: white; border-color: var(--blue); background: var(--blue); }
.open-eob-button:disabled { opacity: .45; cursor: not-allowed; }
.file-icon, .batch-file > span { width: 38px; height: 43px; border: 1px solid #abd1e9; border-radius: 7px; display: grid; place-items: center; color: var(--blue); background: #f0f9ff; font-size: 7px; font-weight: 900; }
.batch-summary { padding: 15px 18px 19px; }
.batch-summary > div:first-child { min-height: 58px; margin-bottom: 8px; padding: 9px 11px; border: 1px solid #b9dfd0; border-radius: 11px; display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; background: var(--green-soft); }
.batch-mark { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: white; background: var(--green); font-size: 13px; font-weight: 900; }
.batch-summary p, .batch-file p { margin: 0; min-width: 0; }
.batch-summary b, .batch-summary small { display: block; }
.batch-summary b { font-size: 10px; }
.batch-summary small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.batch-summary button { border: 0; color: var(--green); background: transparent; font-size: 8px; font-weight: 800; cursor: pointer; }
.batch-file { min-height: 55px; padding: 7px 9px; border-bottom: 1px solid #e8eff4; display: grid; grid-template-columns: 32px 1fr auto; gap: 9px; align-items: center; }
.batch-file:last-child { border-bottom: 0; }
.batch-file > span { width: 29px; height: 34px; font-size: 6px; }
.batch-file em { color: var(--green); font-size: 7px; font-style: normal; font-weight: 900; letter-spacing: .05em; }
.record-dialog { width: min(1180px, calc(100vw - 30px)); max-height: 88vh; padding: 24px; border: 1px solid #bad7e9; border-radius: 18px; color: var(--ink); background: white; box-shadow: 0 28px 80px rgba(2,23,39,.42); }
.record-dialog::backdrop { background: rgba(3,24,41,.74); backdrop-filter: blur(4px); }
.dialog-close { position: sticky; z-index: 2; top: 0; margin: 0 0 -36px auto; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 9px; display: grid; place-items: center; color: var(--muted); background: white; font-size: 19px; cursor: pointer; }
.record-dialog h2 { margin-top: 13px; padding-right: 45px; font-size: 25px; }
.dialog-sub { margin: 5px 0 18px; color: var(--muted); font-size: 10px; }
.identity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.identity-grid > span, .procedure-line > span { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #f8fbfd; }
.identity-grid small, .identity-grid b, .procedure-line small, .procedure-line b { display: block; }
.identity-grid small, .procedure-line small { color: var(--muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.identity-grid b, .procedure-line b { margin-top: 4px; overflow-wrap: anywhere; font-size: 10px; }
.record-analysis { margin-top: 13px; padding: 14px; border: 1px solid #bcd9eb; border-radius: 11px; background: #f1f9fe; }
.record-analysis small, .record-analysis b { display: block; }
.record-analysis small { color: var(--blue); font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.record-analysis b { margin-top: 5px; font-size: 12px; }
.record-analysis p, .no-lines { margin: 6px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.record-analysis.feedback-summary { border-color: #9fcce7; border-left: 4px solid var(--blue); background: linear-gradient(135deg, #eef8fe, #f8fcff); }
.feedback-meta { margin-top: 12px; padding-top: 10px; border-top: 1px solid #cce3f1; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #527087; font-size: 8px; font-weight: 800; }
.confidence-chip { padding: 4px 7px; border-radius: 999px; color: var(--blue); background: #dceef9; white-space: nowrap; }
.confidence-chip.high { color: #116b57; background: #dff3ec; }
.confidence-chip.medium { color: #8a5a00; background: #fff0c7; }
.confidence-chip.low { color: #8b4351; background: #fce9ed; }
.record-analysis.denial-summary { border-color: #f2c1c9; background: #fff7f8; }
.record-analysis.denial-summary small { color: #a33448; }
.record-analysis.outreach-complete { border-color: #b7dfd4; background: var(--green-soft); }
.record-analysis.outreach-complete small { color: var(--green); }
.record-analysis.outreach-ready { border-color: #f0c18d; background: #fffaf4; }
.record-analysis.outreach-ready small { color: var(--orange-dark); }
.evidence-summary-grid { margin-top: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.evidence-summary-grid .record-analysis { margin-top: 0; }
.ai-action { margin-top: 11px; min-height: 34px; padding: 0 10px; border-radius: 8px; font-size: 9px; font-weight: 800; cursor: pointer; }
.record-evidence { padding: 14px; border: 1px solid #f0c18d; border-radius: 11px; background: #fffaf4; }
.record-evidence > small, .record-evidence > b { display: block; }
.record-evidence > small { color: var(--orange-dark); font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.record-evidence > b { margin-top: 5px; font-size: 12px; }
.record-evidence > div { margin-top: 9px; display: grid; gap: 6px; }
.record-evidence > div > p { margin: 0; color: var(--muted); font-size: 9px; }
.record-evidence > div > button { width: 100%; min-height: 48px; padding: 7px; border: 1px solid #edd5bc; border-radius: 8px; display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; color: var(--ink); background: white; text-align: left; cursor: pointer; }
.record-evidence > div > button > span { width: 27px; height: 31px; border-radius: 5px; display: grid; place-items: center; color: var(--orange-dark); background: var(--orange-soft); font-size: 6px; font-weight: 900; }
.record-evidence > div > button b, .record-evidence > div > button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-evidence > div > button b { font-size: 9px; }
.record-evidence > div > button small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.record-evidence > div > button em { color: var(--blue); font-size: 8px; font-style: normal; font-weight: 800; }
.record-eob-preview { min-height: 300px; overflow: hidden; border: 1px solid #f0c18d; border-radius: 11px; background: #fffaf4; }
.record-eob-preview header { min-height: 48px; padding: 10px 12px; border-bottom: 1px solid #f2d8bc; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff7ee; }
.record-eob-preview header small, .record-eob-preview header b { display: block; }
.record-eob-preview header small { color: var(--orange-dark); font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.record-eob-preview header b { max-width: 255px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.record-eob-preview header a { padding: 6px 8px; border: 1px solid #e7bf8d; border-radius: 7px; color: var(--orange-dark); background: white; font-size: 8px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.record-eob-preview iframe { width: 100%; height: 310px; border: 0; display: block; background: white; }
.text-action { margin-top: 8px; padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 8px; font-weight: 800; cursor: pointer; }
.reach-out-button { margin-top: 12px; min-width: 112px; cursor: pointer; }
.claim-contact-draft { margin-top: 12px; padding: 12px; border: 1px solid #f0c18d; border-radius: 9px; background: #fff; }
.claim-contact-draft[hidden] { display: none; }
.claim-contact-draft label { display: block; margin-bottom: 6px; color: var(--orange-dark); font-size: 9px; font-weight: 800; }
.claim-contact-draft textarea { width: 100%; min-height: 70px; padding: 9px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fbfdff; font: inherit; font-size: 10px; line-height: 1.5; }
.claim-contact-draft button { margin-top: 8px; cursor: pointer; }
.record-dialog h3 { margin-top: 18px; font-size: 15px; }
.procedure-lines { margin-top: 9px; display: grid; gap: 7px; }
.procedure-line { display: grid; grid-template-columns: .65fr 1.5fr .55fr .8fr; gap: 7px; }
.record-work-card { margin-top: 17px; padding: 14px; border: 1px solid #bcd9eb; border-radius: 11px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; background: #f7fbfe; }
.record-work-card small, .record-work-card h3, .record-work-card p { display: block; }
.record-work-card small { color: var(--blue); font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.record-work-card h3 { margin-top: 5px; font-size: 13px; }
.record-work-card p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.record-work-card p b { color: var(--ink); }
.work-actions { display: flex; align-items: end; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.work-actions button { min-height: 38px; padding: 0 10px; border-radius: 8px; font-size: 8px; font-weight: 800; cursor: pointer; }
.work-actions label { display: grid; gap: 4px; color: var(--muted); font-size: 7px; font-weight: 800; }
.work-actions input { min-height: 38px; padding: 0 7px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font-size: 9px; }
.record-lower-grid { margin-top: 18px; display: grid; grid-template-columns: 1.15fr .8fr .8fr; gap: 10px; }
.staff-notes, .denticon-card, .record-activity { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdff; }
.staff-notes > small, .denticon-card > small, .record-activity > small { color: var(--blue); font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.staff-notes h3, .denticon-card h3, .record-activity h3 { margin-top: 5px; }
.conversation-scope { margin: 7px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.staff-notes ul { max-height: 180px; margin: 10px 0 12px; padding: 0; overflow: auto; list-style: none; }
.staff-notes li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.staff-notes li:last-child { border-bottom: 0; }
.staff-notes li p { margin: 0; color: var(--ink); font-size: 10px; line-height: 1.45; }
.staff-notes li small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.note-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.note-footer .delete-note { padding: 3px 5px; border: 0; color: #a33448; background: transparent; font-size: 8px; font-weight: 800; cursor: pointer; }
.note-footer .delete-note:hover { text-decoration: underline; }
.note-footer .delete-note:disabled { opacity: .5; cursor: wait; }
.staff-notes .empty-note { color: var(--muted); font-size: 9px; }
.staff-notes form { display: grid; grid-template-columns: 1fr auto; gap: 7px; align-items: end; }
.staff-notes form label { grid-column: 1 / -1; color: var(--muted); font-size: 8px; font-weight: 800; }
.staff-notes textarea { min-height: 68px; padding: 9px 10px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font: 10px/1.45 inherit; }
.staff-notes form button { min-height: 39px; cursor: pointer; }
.record-activity { background: #fff; }
.record-activity ul { max-height: 190px; margin: 11px 0 0; padding: 0; overflow: auto; list-style: none; }
.record-activity li { padding: 9px 0; border-bottom: 1px solid #e8eff4; }
.record-activity li:last-child { border-bottom: 0; }
.record-activity li b, .record-activity li small { display: block; }
.record-activity li b { color: var(--ink); font-size: 9px; line-height: 1.4; }
.record-activity li small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.denticon-card { border-color: #c8dceb; background: #f4faff; }
.denticon-card p { margin: 8px 0 12px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.denticon-card button { min-height: 38px; padding: 0 11px; border-radius: 8px; font-size: 9px; font-weight: 800; cursor: pointer; }
.denticon-card button:disabled { opacity: .65; cursor: not-allowed; }
.denticon-checklist { margin: 13px 0; padding: 12px; border: 1px solid #b9d9ec; border-radius: 9px; background: #fff; }
.denticon-checklist .checklist-label { margin: 0 0 9px; color: var(--blue); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.denticon-checklist ol { margin: 0; padding: 0; list-style: none; counter-reset: denticon-step; }
.denticon-checklist li { position: relative; min-height: 31px; padding: 0 0 9px 25px; counter-increment: denticon-step; }
.denticon-checklist li::before { content: counter(denticon-step); position: absolute; left: 0; top: 0; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: #e4f3fc; font-size: 8px; font-weight: 900; }
.denticon-checklist li:last-child { padding-bottom: 0; }
.denticon-checklist li b, .denticon-checklist li span { display: block; }
.denticon-checklist li b { color: var(--navy); font-size: 9px; }
.denticon-checklist li span { margin-top: 2px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.denticon-warning { margin: 10px 0 0 !important; padding-top: 9px; border-top: 1px solid #e2edf3; color: #58728a !important; font-size: 8px !important; }
.assistant-panel { min-height: 0; }
.chat-page { min-height: calc(100vh - 190px); }
.chat-workspace { min-height: calc(100vh - 220px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #dde8f0; border-radius: 16px; background: #fff; box-shadow: 0 12px 30px rgba(14, 51, 78, .07); }
.chat-page-head { padding: 30px 32px 24px; border-bottom: 1px solid #edf2f5; }
.chat-page-head h2 { margin: 4px 0 7px; color: var(--navy); font: 800 25px/1.15 Manrope, sans-serif; }
.chat-page-head p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.chat-thread { flex: 1; max-height: none; min-height: 420px; padding: 24px 32px; background: #fff; }
.chat-composer { margin-top: auto; padding: 17px 24px; background: #fff; }
.assistant-thread { min-height: 196px; max-height: 330px; padding: 16px; overflow: auto; background: linear-gradient(180deg, #fafdff, #fff); }
.assistant-message { width: min(100%, 540px); padding: 12px 13px; border: 1px solid #d4e7f2; border-radius: 12px 12px 12px 3px; color: var(--ink); background: #edf8ff; }
.assistant-message.user-message { margin: 12px 0 12px auto; border-color: #cbe2d5; border-radius: 12px 12px 3px 12px; background: #effaf4; }
.assistant-message b { display: block; font-size: 10px; }
.assistant-message p { margin: 5px 0 0; color: #48647b; font-size: 10px; line-height: 1.5; }
.assistant-message .assistant-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.assistant-message .assistant-actions button { min-height: 28px; padding: 0 9px; border: 1px solid #9fc9e2; border-radius: 7px; color: var(--blue); background: white; font: 800 8px inherit; cursor: pointer; }
.assistant-composer { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 13px 15px; border-top: 1px solid var(--line); }
.assistant-composer input { min-width: 0; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font: 10px inherit; }
.assistant-composer .primary { min-height: 42px; padding: 0 16px; }
.assistant-upload { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; border-top: 1px solid var(--line); }
.assistant-upload b,.assistant-upload small { display: block; }
.assistant-upload b { color: var(--navy); font-size: 10px; }
.assistant-upload small { max-width: 425px; margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.assistant-upload label { min-width: 94px; min-height: 35px; display: grid; place-items: center; cursor: pointer; }
.assistant-disclaimer { margin: 0; padding: 0 15px 14px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.flow-panel { margin-top: 15px; padding: 22px; }
.flow-step { min-height: 77px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: 38px 1fr auto; gap: 13px; align-items: center; background: #fbfdff; }
.flow-step > span { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); font-size: 9px; font-weight: 800; }
.flow-step b, .flow-step small { display: block; }
.flow-step b { font-size: 11px; }
.flow-step small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.flow-step em { padding: 6px 8px; border-radius: 999px; color: var(--orange); background: var(--orange-soft); font-size: 8px; font-style: normal; font-weight: 800; }
.flow-step.ready-step { border-color: #b7dfd4; background: #fbfffd; }
.flow-step.ready-step > span { color: white; background: var(--green); }
.flow-step.ready-step em { color: var(--green); background: var(--green-soft); }
.flow-panel > i { height: 25px; display: grid; place-items: center; color: #89a4b8; font-style: normal; font-weight: 800; }
footer { margin-top: 24px; padding-top: 13px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: #8193a2; font-size: 8px; }
.modal-open { overflow: hidden; }
.media-modal[hidden], .guided-tour[hidden] { display: none; }
.media-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(3, 24, 41, .78); backdrop-filter: blur(5px); }
.video-card { position: relative; z-index: 1; width: min(1120px, 96vw); max-height: 95vh; overflow: auto; border: 1px solid #bfd8e8; border-radius: 20px; padding: 14px; background: white; box-shadow: 0 32px 90px rgba(2, 23, 39, .42); }
.video-card header { min-height: 61px; padding: 3px 5px 13px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.video-card header h2 { font-size: 20px; }
.video-card header > button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: white; font-size: 20px; }
.video-card video { width: 100%; aspect-ratio: 16 / 9; display: block; border-radius: 14px; background: #061b2f; }
.video-card > p { margin: 11px 5px 2px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.guided-tour { position: fixed; inset: 0; z-index: 110; pointer-events: none; }
.guide-highlight { position: fixed; z-index: 111; border: 3px solid var(--orange); border-radius: 16px; box-shadow: 0 0 0 9999px rgba(3, 24, 41, .74), 0 0 0 7px rgba(242, 140, 40, .2), 0 18px 54px rgba(2, 23, 39, .38); transition: top .28s ease, left .28s ease, width .28s ease, height .28s ease; }
.guide-card { position: fixed; z-index: 112; width: min(390px, calc(100vw - 32px)); border: 1px solid #f0c18d; border-radius: 16px; padding: 18px; background: white; box-shadow: 0 25px 75px rgba(2, 23, 39, .42); pointer-events: auto; transition: top .28s ease, left .28s ease; }
.guide-close { position: absolute; right: 12px; top: 11px; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: white; font-size: 17px; }
.guide-progress { padding-right: 38px; display: flex; align-items: center; gap: 10px; }
.guide-progress > i { height: 5px; flex: 1; border-radius: 5px; overflow: hidden; background: #e7edf2; }
.guide-progress > i b { width: 16%; height: 100%; display: block; border-radius: 5px; background: linear-gradient(90deg, var(--orange), var(--blue)); transition: width .25s ease; }
.guide-progress > span { color: var(--muted); font-size: 8px; font-weight: 800; }
.guide-card > .eyebrow { margin-top: 18px; color: var(--orange); }
.guide-card h3 { font-size: 19px; line-height: 1.25; }
.guide-card > p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.guide-actions { margin-top: 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.guide-actions button { min-height: 38px; border-radius: 9px; padding: 0 12px; font-size: 9px; font-weight: 800; }
.secondary-light { border: 1px solid #bcd9eb; color: var(--blue); background: white; }
.secondary-light:disabled { opacity: .42; cursor: not-allowed; }
.text-guide { justify-self: center; border: 0; color: var(--muted); background: transparent; }
.toast { position: fixed; right: 22px; bottom: 22px; width: min(390px, calc(100vw - 30px)); padding: 13px 15px; border: 1px solid #bcd9eb; border-radius: 12px; display: flex; gap: 11px; align-items: center; background: white; box-shadow: 0 18px 44px rgba(8,43,74,.2); transform: translateY(130%); opacity: 0; transition: .25s ease; z-index: 80; }
.toast.show { transform: none; opacity: 1; }
.toast > span { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: white; background: var(--blue); font-weight: 800; }
.toast b, .toast small { display: block; }
.toast b { font-size: 10px; }
.toast small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .sidebar { padding-left: 13px; padding-right: 13px; }
  .main { padding-left: 22px; padding-right: 22px; }
  .setup-banner, .dashboard-grid { grid-template-columns: 1fr; }
  .readiness-card { max-width: 620px; }
  .top-actions { display: none; }
}

@media (max-width: 760px) {
  .pilot-strip { min-height: 34px; font-size: 8px; line-height: 1.35; }
  .app-shell { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(310px, 86vw); height: 100vh; transform: translateX(-110%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility 0s linear .24s; box-shadow: 18px 0 45px rgba(3,25,42,.3); }
  .drawer-open .sidebar { transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .drawer-close { position: absolute; right: 14px; top: 15px; width: 34px; height: 34px; border: 1px solid #3a617d; border-radius: 9px; display: grid; place-items: center; color: white; background: #0b3659; font-size: 20px; }
  .drawer-backdrop { position: fixed; inset: 0; display: block; border: 0; background: rgba(4,23,38,.56); opacity: 0; visibility: hidden; transition: .2s ease; z-index: 15; }
  .drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
  .main { padding: 0 14px 28px; }
  .mobile-bar { min-height: 64px; margin: 0 -14px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; color: white; background: var(--navy); }
  .brand.compact { padding: 0; }
  .brand.compact > span { width: 34px; height: 34px; border-radius: 10px; }
  .brand.compact strong { font-size: 16px; }
  .mobile-bar button { width: 39px; height: 39px; border: 1px solid #315a77; border-radius: 10px; display: grid; place-content: center; gap: 4px; background: #0b3659; }
  .mobile-bar button i { width: 17px; height: 2px; border-radius: 2px; background: white; }
  .topbar { padding-top: 18px; }
  .topbar h1 { font-size: 22px; }
  .topbar > div > p:last-child { max-width: 95%; line-height: 1.45; }
  .setup-banner { padding: 22px 18px; gap: 20px; }
  .setup-copy h2 { font-size: 27px; }
  .setup-copy > p { font-size: 11px; }
  .readiness-card > div { grid-template-columns: 29px 1fr; }
  .readiness-card em { grid-column: 2; justify-self: start; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; }
  .secure-label, .progress-label { white-space: nowrap; }
  .workspace-head { align-items: flex-start; }
  .workspace-count { display: none; }
  .data-tools { align-items: stretch; flex-wrap: wrap; }
  .data-tools label { flex-basis: 100%; }
  .data-tools button { flex: 1; min-width: 64px; }
  .filter-tools { grid-template-columns: 1fr 1fr; }
  .filter-tools .search-tool { grid-column: 1 / -1; }
  .decision-filters { grid-column: 1 / -1; }
  .evidence-summary-grid, .record-lower-grid { grid-template-columns: 1fr; }
  .record-work-card { grid-template-columns: 1fr; }
  .work-actions { justify-content: flex-start; }
  .table-head { display: none; }
  .local-record-row, .local-record-row.queue-row { grid-template-columns: 1fr 1fr; }
  .local-file-row { grid-template-columns: 36px 1fr 1fr; }
  .local-file-row .local-cell:nth-last-child(-n+2) { grid-column: span 1; }
  .identity-grid { grid-template-columns: 1fr 1fr; }
  .procedure-line { grid-template-columns: 1fr 1fr; }
  .assistant-upload { align-items: flex-start; flex-direction: column; }
  .empty-state { min-height: 350px; }
  .scan-notice { align-items: flex-start; }
  .scan-notice button { display: none; }
  .flow-step { grid-template-columns: 36px 1fr; }
  .flow-step em { grid-column: 2; justify-self: start; }
  footer { flex-direction: column; gap: 5px; }
  .video-card { width: 100%; max-height: calc(100dvh - 24px); padding: 9px; border-radius: 16px; }
  .video-card header { padding: 5px 5px 10px; }
  .video-card header h2 { font-size: 16px; }
  .guide-highlight { border-radius: 11px; }
  .guide-card { left: 10px !important; right: 10px; bottom: 10px; top: auto !important; width: auto !important; max-height: 44vh; overflow: auto; }
}

@media (max-width: 430px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric-grid article { padding: 15px 16px; }
  .setup-copy h2 { font-size: 24px; }
  .banner-actions { display: grid; }
  .banner-actions button { width: 100%; }
  .section-head { flex-direction: column; }
  .local-record-row, .local-record-row.queue-row { grid-template-columns: 1fr; }
  .local-file-row { grid-template-columns: 34px 1fr; }
  .local-file-row .local-cell { grid-column: 2; }
  .batch-summary > div:first-child { grid-template-columns: 36px 1fr; }
  .batch-summary button { grid-column: 2; justify-self: start; }
  .identity-grid, .procedure-line { grid-template-columns: 1fr; }
  .filter-tools { grid-template-columns: 1fr; }
  .filter-tools .search-tool, .decision-filters { grid-column: 1; }
  .decision-filters .reset-filter { margin-left: 0; }
  .staff-notes form { grid-template-columns: 1fr; }
  .staff-notes form label { grid-column: 1; }
  .record-dialog { padding: 17px; }
  .empty-state { padding-left: 16px; padding-right: 16px; }
}
