:root {
  --navy-950: #05121f;
  --navy-900: #071a2b;
  --navy-800: #0d2b47;
  --navy-700: #153f63;
  --blue: #176ab6;
  --teal: #08a5a8;
  --teal-soft: #e7f8f7;
  --ink: #122034;
  --muted: #65748a;
  --line: #dce3ea;
  --surface: #ffffff;
  --canvas: #f4f7f9;
  --warning: #c96b12;
  --warning-soft: #fff4e7;
  --danger: #c24152;
  --danger-soft: #fff0f2;
  --success: #15835f;
  --success-soft: #eaf8f2;
  --shadow: 0 18px 50px rgba(7, 26, 43, .1);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 268px minmax(0, 1fr); }

.sidebar { position: sticky; top: 0; height: 100vh; background: var(--navy-950); color: white; padding: 23px 18px 18px; display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 24px; }
.brand img { width: 42px; height: 42px; border-radius: 10px; object-fit: contain; background: white; padding: 4px; }
.brand strong { display: block; font-size: 14px; letter-spacing: -.01em; }
.brand span { display: block; color: #91a6b8; font-size: 11px; margin-top: 2px; }
.workspace-card { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.055); border-radius: 13px; padding: 14px; margin: 0 3px 22px; }
.workspace-card strong { display: block; margin: 5px 0 4px; font-size: 13px; }
.workspace-card > span:last-child { color: #91a6b8; font-size: 11px; }
.eyebrow { color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.workspace-card .eyebrow { color: #65d9d2; }
nav { display: grid; gap: 4px; }
.nav-item { width: 100%; min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: #a9bac9; display: flex; align-items: center; gap: 11px; padding: 0 12px; text-align: left; font-size: 13px; font-weight: 600; transition: .18s ease; }
.nav-item span { width: 18px; color: #6f899d; font-size: 17px; text-align: center; }
.nav-item em { margin-left: auto; color: #8298aa; background: rgba(255,255,255,.07); border-radius: 8px; padding: 2px 7px; font-style: normal; font-size: 10px; }
.nav-item b { margin-left: auto; color: #7de6df; font-size: 8px; letter-spacing: .1em; }
.nav-item:hover, .nav-item.active { color: white; background: rgba(255,255,255,.095); }
.nav-item.active { box-shadow: inset 3px 0 var(--teal); }
.nav-item.active span { color: #70ddd7; }
.nav-divider { height: 1px; background: rgba(255,255,255,.08); margin: 10px 8px; }
.sidebar-footer { margin-top: auto; padding: 15px 7px 0; border-top: 1px solid rgba(255,255,255,.08); }
.security-note { display: flex; gap: 9px; color: #bfd0dd; margin-bottom: 14px; }
.security-note > span { color: #44d3a4; font-size: 9px; padding-top: 3px; }
.security-note strong, .security-note small { display: block; }
.security-note strong { font-size: 11px; }
.security-note small { color: #748da0; font-size: 10px; margin-top: 3px; }
.text-button { border: 0; padding: 0; color: var(--blue); background: transparent; font-weight: 700; font-size: 12px; }
.sidebar .text-button { color: #839aad; }

main { min-width: 0; }
.topbar { height: 82px; padding: 0 32px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); }
.topbar-left { display: flex; gap: 12px; align-items: center; min-width: 0; }
.breadcrumb { color: var(--muted); font-size: 11px; }
.breadcrumb span { color: var(--ink); }
.topbar h1 { font-size: 18px; margin: 3px 0 0; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.role-select { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; font-weight: 750; }
.role-select select { min-height: 34px; max-width: 168px; background: #f7f9fa; }
.sync-state { color: var(--muted); font-size: 11px; display: flex; gap: 7px; align-items: center; margin-right: 5px; }
.sync-state i { width: 7px; height: 7px; border-radius: 50%; background: #27b680; box-shadow: 0 0 0 4px #e7f7f0; }
.avatar { width: 36px; height: 36px; background: var(--navy-800); color: white; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 11px; margin-left: 3px; }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 20px; }
.button { min-height: 38px; border-radius: 9px; padding: 0 14px; border: 1px solid transparent; font-size: 12px; font-weight: 800; letter-spacing: -.005em; }
.button.primary { background: var(--navy-800); color: white; box-shadow: 0 6px 16px rgba(13,43,71,.14); }
.button.primary:hover { background: var(--navy-700); }
.button.secondary { background: var(--teal-soft); color: #087d80; border-color: #c8ecea; }
.button.ghost { background: white; color: var(--ink); border-color: var(--line); }
.button.compact { min-height: 34px; }

.page { display: none; padding: 28px 32px 48px; max-width: 1550px; margin: 0 auto; }
.page.active { display: block; }
.welcome-row { background: linear-gradient(112deg, #071a2b, #0f3b59 76%, #087c83); color: white; padding: 28px 30px; border-radius: 19px; display: flex; align-items: end; justify-content: space-between; gap: 24px; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.welcome-row::after { content: ""; position: absolute; width: 280px; height: 280px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; right: -70px; top: -180px; box-shadow: 0 0 0 40px rgba(255,255,255,.025), 0 0 0 80px rgba(255,255,255,.02); }
.welcome-row > * { position: relative; z-index: 1; }
.welcome-row h2 { margin: 7px 0 7px; max-width: 760px; font-size: clamp(23px, 2.1vw, 32px); line-height: 1.15; letter-spacing: -.035em; }
.welcome-row p { max-width: 800px; color: #c0d0db; margin: 0; font-size: 13px; line-height: 1.55; }
.welcome-row .button { flex: 0 0 auto; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin: 18px 0; }
.metric-card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 17px; box-shadow: 0 5px 14px rgba(7,26,43,.035); }
.metric-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; font-weight: 700; }
.metric-icon { width: 31px; height: 31px; border-radius: 9px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-size: 14px; }
.metric-value { display: block; font-size: 27px; font-weight: 850; margin: 12px 0 5px; letter-spacing: -.04em; }
.metric-foot { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.metric-foot strong { color: var(--success); }

.content-grid { display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 14px; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 19px; min-width: 0; }
.span-2 { grid-column: span 2; }
.panel-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 17px; }
.panel-heading h3 { margin: 4px 0 0; font-size: 15px; letter-spacing: -.02em; }
.quiet { color: var(--muted); font-size: 10px; }
.segmented { border: 1px solid var(--line); border-radius: 8px; padding: 3px; display: flex; background: #f6f8fa; }
.segmented button { border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; padding: 6px 9px; }
.segmented button.active { background: white; color: var(--ink); box-shadow: 0 2px 8px rgba(7,26,43,.08); }
.provider-list { display: grid; gap: 7px; }
.provider-row { border: 1px solid transparent; display: grid; grid-template-columns: minmax(210px,1.4fr) minmax(145px,.8fr) minmax(130px,.7fr) 72px 24px; gap: 13px; align-items: center; padding: 11px; border-radius: 11px; transition: .18s ease; cursor: pointer; }
.provider-row:hover { border-color: var(--line); background: #fbfcfd; }
.provider-identity { display: flex; gap: 10px; align-items: center; min-width: 0; }
.initials { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; background: #eaf2f8; color: var(--navy-700); font-weight: 850; font-size: 11px; flex: 0 0 auto; }
.provider-identity strong, .provider-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.provider-identity strong { font-size: 12px; }
.provider-identity small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.stage-copy small, .readiness-copy small { display: block; color: var(--muted); font-size: 9px; margin-bottom: 5px; }
.stage-copy strong, .readiness-copy strong { font-size: 11px; }
.progress { height: 5px; background: #e8edf1; border-radius: 10px; overflow: hidden; margin-top: 6px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--teal)); border-radius: inherit; }
.status { display: inline-flex; align-items: center; width: max-content; border-radius: 20px; padding: 5px 8px; font-size: 9px; font-weight: 800; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; margin-right: 5px; background: currentColor; }
.status.risk { color: var(--danger); background: var(--danger-soft); }
.status.track { color: #a86309; background: var(--warning-soft); }
.status.ready { color: var(--success); background: var(--success-soft); }
.row-arrow { color: #9aa8b5; }

.blocker { display: grid; grid-template-columns: 31px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid #edf0f3; }
.blocker:first-child { border-top: 0; padding-top: 0; }
.blocker-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--danger-soft); color: var(--danger); display: grid; place-items: center; font-weight: 900; }
.blocker strong { display: block; font-size: 11px; line-height: 1.35; }
.blocker p { margin: 4px 0 6px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.blocker footer { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
.blocker footer b { color: var(--danger); }
.chart-wrap { padding: 5px 4px 0; }
.chart { height: 170px; display: flex; align-items: end; gap: 14px; border-bottom: 1px solid var(--line); padding: 0 8px 0; background: repeating-linear-gradient(to top, transparent 0, transparent 42px, #eef1f4 43px); }
.bar-group { height: 100%; flex: 1; display: flex; align-items: end; justify-content: center; gap: 4px; position: relative; padding-bottom: 23px; }
.bar-group i { width: 13px; border-radius: 4px 4px 0 0; min-height: 7px; }
.bar-group .completed { background: var(--teal); }
.bar-group .submitted { background: var(--navy-700); opacity: .9; }
.bar-group span { position: absolute; bottom: 5px; color: var(--muted); font-size: 9px; }
.chart-legend { display: flex; justify-content: flex-end; gap: 15px; margin-top: 10px; color: var(--muted); font-size: 9px; }
.chart-legend span { display: flex; gap: 5px; align-items: center; }
.chart-legend i { width: 7px; height: 7px; border-radius: 2px; }
.chart-legend .teal { background: var(--teal); }
.chart-legend .navy { background: var(--navy-700); }
.timeline { position: relative; }
.milestone { display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding-bottom: 15px; position: relative; }
.milestone::after { content: ""; position: absolute; left: 18px; top: 30px; bottom: 0; width: 1px; background: var(--line); }
.milestone:last-child::after { display: none; }
.milestone time { width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; font-size: 9px; font-weight: 800; color: var(--navy-700); background: white; z-index: 1; }
.milestone strong { font-size: 11px; display: block; margin-top: 2px; }
.milestone span { color: var(--muted); font-size: 9px; display: block; margin-top: 4px; }
.activity-feed { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.activity-item { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: start; padding: 11px 0; border-top: 1px solid #edf0f3; }
.activity-item:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.activity-mark { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--teal-soft); color: #07888a; font-weight: 900; font-size: 10px; }
.activity-item strong, .activity-item small { display: block; }
.activity-item strong { font-size: 10px; line-height: 1.4; }
.activity-item small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.activity-item time { color: var(--muted); font-size: 8px; white-space: nowrap; }
.ops-card { background: linear-gradient(145deg, #f0fbfa, #fff); border-color: #cdeae8; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.ops-card h3 { font-size: 17px; line-height: 1.25; margin: 7px 0 8px; }
.ops-card p { color: var(--muted); font-size: 10px; line-height: 1.55; margin: 0 0 14px; }

.section-intro { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin: 6px 0 20px; }
.section-intro h2 { font-size: 27px; margin: 5px 0 6px; letter-spacing: -.035em; }
.section-intro p { color: var(--muted); max-width: 680px; margin: 0; font-size: 12px; }
.table-panel { padding: 0; overflow: hidden; }
.table-tools { display: flex; gap: 10px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.search { min-height: 36px; min-width: 260px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #f9fafb; border-radius: 9px; padding: 0 10px; }
.search span { color: var(--muted); }
.search input { border: 0; outline: 0; background: transparent; min-width: 0; flex: 1; font-size: 11px; }
select { min-height: 36px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; padding: 0 10px; font-size: 11px; }
.table-tools .button { margin-left: auto; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th { text-align: left; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; padding: 11px 16px; background: #f8fafb; }
td { padding: 13px 16px; border-top: 1px solid #edf0f3; font-size: 11px; }
tr[data-provider] { cursor: pointer; }
tr[data-provider]:hover { background: #fbfcfd; }
.table-readiness { display: flex; gap: 8px; align-items: center; min-width: 130px; }
.table-readiness .progress { flex: 1; margin: 0; }

.module-hero { border: 1px solid var(--line); background: white; border-radius: var(--radius); padding: 25px; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.module-hero h2 { margin: 5px 0 7px; font-size: 26px; letter-spacing: -.035em; }
.module-hero p { margin: 0; color: var(--muted); max-width: 760px; font-size: 12px; }
.module-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.module-card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.module-card h3 { font-size: 13px; margin: 0 0 12px; }
.module-stat { font-size: 27px; font-weight: 850; letter-spacing: -.04em; }
.module-card p { color: var(--muted); font-size: 10px; line-height: 1.5; }
.stage-list { display: grid; gap: 8px; margin-top: 14px; }
.stage-item { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #edf0f3; padding-top: 9px; font-size: 10px; }

.queue-toolbar { display: flex; gap: 7px; margin-bottom: 14px; }
.pill { border: 1px solid var(--line); background: white; color: var(--muted); padding: 7px 12px; border-radius: 18px; font-size: 10px; font-weight: 800; }
.pill.active { border-color: var(--navy-700); background: var(--navy-800); color: white; }
.task-board { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; align-items: start; }
.task-column { background: #eef2f5; border-radius: 14px; padding: 12px; }
.task-column h3 { font-size: 11px; margin: 2px 3px 11px; display: flex; justify-content: space-between; }
.task-column h3 span { color: var(--muted); }
.task-card { background: white; border: 1px solid var(--line); border-radius: 11px; padding: 13px; margin-bottom: 8px; box-shadow: 0 4px 12px rgba(7,26,43,.035); }
.task-card:last-child { margin-bottom: 0; }
.task-card .task-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.task-card h4 { font-size: 11px; line-height: 1.4; margin: 9px 0 6px; }
.task-card p { margin: 0; color: var(--muted); font-size: 9px; }
.task-card footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.task-card footer span { font-size: 9px; font-weight: 800; }
.task-card footer button { border: 0; background: var(--teal-soft); color: #087d80; border-radius: 7px; padding: 5px 8px; font-size: 9px; font-weight: 800; }
.priority-high { color: var(--danger)!important; }

.report-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.report-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 21px; min-height: 220px; }
.report-card h3 { font-size: 14px; margin: 0 0 5px; }
.report-card > p { color: var(--muted); font-size: 10px; margin: 0 0 20px; }
.donut-row { display: flex; gap: 30px; align-items: center; }
.donut { width: 125px; height: 125px; border-radius: 50%; background: conic-gradient(var(--teal) 0 58%, var(--navy-700) 58% 78%, #e4e9ee 78% 100%); display: grid; place-items: center; }
.donut::after { content: "78%"; width: 82px; height: 82px; display: grid; place-items: center; background: white; border-radius: 50%; font-weight: 850; font-size: 22px; }
.report-list { flex: 1; display: grid; gap: 11px; }
.report-list div { display: flex; justify-content: space-between; font-size: 10px; }
.report-list span { color: var(--muted); }
.h-bars { display: grid; gap: 13px; }
.h-bar label { display: flex; justify-content: space-between; font-size: 10px; margin-bottom: 5px; }
.h-bar i { display: block; background: linear-gradient(90deg,var(--navy-700),var(--teal)); height: 7px; border-radius: 10px; }

.ehr-hero { padding: 35px; background: linear-gradient(125deg, var(--navy-950), #0d3855 70%, #087c83); color: white; border-radius: 20px; }
.eyebrow.light { color: #71e0d9; }
.ehr-hero h2 { font-size: clamp(26px,3vw,40px); max-width: 880px; line-height: 1.1; margin: 8px 0 12px; letter-spacing: -.045em; }
.ehr-hero > p { color: #b9cbd7; max-width: 900px; font-size: 13px; line-height: 1.6; }
.architecture-flow { display: flex; align-items: stretch; gap: 9px; margin-top: 28px; }
.architecture-flow span { flex: 1; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); border-radius: 11px; padding: 13px; font-weight: 800; font-size: 11px; }
.architecture-flow .live { background: rgba(28,194,179,.16); border-color: rgba(74,231,217,.38); }
.architecture-flow small { display: block; color: #98b0bf; margin-top: 5px; font-weight: 500; font-size: 9px; }
.architecture-flow i { align-self: center; color: #6f8ca0; font-style: normal; }
.roadmap-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin: 15px 0; }
.roadmap-grid article { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 20px; }
.roadmap-grid article > span { color: var(--teal); font-size: 10px; font-weight: 900; }
.roadmap-grid h3 { font-size: 14px; margin: 9px 0; }
.roadmap-grid p { color: var(--muted); font-size: 10px; line-height: 1.5; min-height: 47px; }
.roadmap-grid ul { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.roadmap-grid li { font-size: 9px; padding: 8px 0; border-bottom: 1px solid #edf0f3; }
.roadmap-grid li::before { content: "✓"; color: var(--teal); margin-right: 7px; }
.foundation-note { border: 1px solid #f0d8b8; background: var(--warning-soft); border-radius: 13px; padding: 15px 17px; display: flex; gap: 16px; color: #765022; font-size: 10px; line-height: 1.5; }
.foundation-note strong { flex: 0 0 auto; }

.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; background: rgba(5,18,31,.42); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: .2s ease; z-index: 30; }
.drawer-backdrop.open, .modal-backdrop.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; z-index: 31; top: 0; right: 0; width: min(490px,95vw); height: 100vh; background: white; box-shadow: -20px 0 50px rgba(5,18,31,.18); transform: translateX(102%); transition: .25s ease; overflow-y: auto; padding: 27px; }
.drawer.open { transform: translateX(0); }
.drawer-close { position: absolute; top: 18px; right: 18px; border: 1px solid var(--line); background: white; width: 31px; height: 31px; border-radius: 9px; font-size: 19px; color: var(--muted); }
.drawer-header { display: flex; gap: 13px; align-items: center; padding-right: 36px; }
.drawer-header .initials { width: 48px; height: 48px; font-size: 14px; }
.drawer-header h2 { margin: 0 0 4px; font-size: 21px; }
.drawer-header p { margin: 0; color: var(--muted); font-size: 10px; }
.readiness-hero { border-radius: 13px; background: var(--navy-900); color: white; padding: 17px; margin: 21px 0; display: flex; justify-content: space-between; align-items: center; }
.readiness-hero strong { font-size: 27px; }
.readiness-hero small { display: block; color: #9fb3c2; font-size: 9px; margin-top: 3px; }
.drawer-section { padding: 18px 0; border-top: 1px solid var(--line); }
.drawer-section h3 { font-size: 12px; margin: 0 0 12px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-item { background: #f7f9fa; border-radius: 9px; padding: 10px; }
.detail-item small { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.detail-item strong { display: block; font-size: 10px; margin-top: 4px; }
.enrollment-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 10px 0; border-top: 1px solid #edf0f3; }
.enrollment-row:first-of-type { border-top: 0; }
.enrollment-row strong, .enrollment-row small { display: block; }
.enrollment-row strong { font-size: 10px; }
.enrollment-row small { color: var(--muted); font-size: 8px; margin-top: 3px; }

.modal { position: fixed; z-index: 40; top: 50%; left: 50%; width: min(610px,92vw); max-height: 90vh; overflow-y: auto; transform: translate(-50%,-46%) scale(.98); background: white; border-radius: 18px; box-shadow: 0 30px 90px rgba(5,18,31,.3); padding: 25px; opacity: 0; visibility: hidden; transition: .2s ease; }
.modal.open { opacity: 1; visibility: visible; transform: translate(-50%,-50%) scale(1); }
.modal-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 20px; }
.modal-heading h2 { margin: 5px 0 0; font-size: 21px; }
.modal-heading button { border: 0; background: transparent; color: var(--muted); font-size: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid label { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.form-grid label.wide { grid-column: span 2; }
.form-grid input, .form-grid select { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 0 11px; margin-top: 6px; color: var(--ink); outline: none; text-transform: none; letter-spacing: 0; font-size: 11px; }
.form-grid input:focus, .form-grid select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.modal-note { display: flex; gap: 9px; background: var(--teal-soft); color: #28716f; border-radius: 9px; padding: 10px 12px; margin-top: 14px; font-size: 9px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.hidden { display: none!important; }
.wizard-modal { width: min(720px,94vw); }
.wizard-progress { display: flex; align-items: center; justify-content: center; margin: 0 0 22px; }
.wizard-progress > span { display: flex; align-items: center; gap: 7px; color: #97a4b0; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.wizard-progress > span b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: white; color: var(--muted); }
.wizard-progress > span.active { color: var(--navy-800); }
.wizard-progress > span.active b { background: var(--navy-800); border-color: var(--navy-800); color: white; }
.wizard-progress > span.done b { background: var(--teal); border-color: var(--teal); color: white; }
.wizard-progress > i { width: 44px; height: 1px; background: var(--line); margin: 0 8px; }
.wizard-step { display: none; min-height: 270px; }
.wizard-step.active { display: block; }
.npi-lookup-card { display: grid; grid-template-columns: 1fr auto; gap: 10px 18px; align-items: center; background: #f5fafb; border: 1px solid #d7eceb; border-radius: 13px; padding: 14px; margin-bottom: 15px; }
.npi-lookup-card strong, .npi-lookup-card span { display: block; }
.npi-lookup-card strong { color: var(--navy-800); font-size: 11px; }
.npi-lookup-card span { color: var(--muted); font-size: 9px; margin-top: 4px; }
.npi-lookup-card label { display: flex; min-width: 270px; }
.npi-lookup-card input { width: 150px; min-height: 38px; border: 1px solid var(--line); border-radius: 8px 0 0 8px; padding: 0 10px; outline: none; }
.npi-lookup-card .button { border-radius: 0 8px 8px 0; }
.lookup-result { grid-column: 1/-1; font-size: 9px; min-height: 0; }
.lookup-result.success { background: var(--success-soft); color: var(--success); padding: 9px 10px; border-radius: 8px; }
.lookup-result.error { background: var(--danger-soft); color: var(--danger); padding: 9px 10px; border-radius: 8px; }
.lookup-result a { color: inherit; font-weight: 850; }
.step-copy h3 { font-size: 15px; margin: 0 0 6px; }
.step-copy p { color: var(--muted); font-size: 10px; margin: 0 0 15px; line-height: 1.5; }
.payer-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.payer-selector label { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 11px; cursor: pointer; transition: .15s ease; }
.payer-selector label:has(input:checked) { border-color: #8fdad7; background: var(--teal-soft); }
.payer-selector input { accent-color: var(--teal); }
.payer-selector span, .payer-selector b, .payer-selector small { display: block; }
.payer-selector b { font-size: 10px; }
.payer-selector small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.check-row { display: flex; gap: 20px; background: #f7f9fa; border-radius: 10px; padding: 11px; margin-top: 12px; color: var(--muted); font-size: 9px; }
.check-row input { accent-color: var(--teal); }
.plan-preview { display: grid; gap: 12px; }
.plan-provider { background: linear-gradient(115deg,var(--navy-900),var(--navy-700)); color: white; border-radius: 13px; padding: 16px; display: flex; justify-content: space-between; align-items: center; }
.plan-provider strong, .plan-provider small { display: block; }
.plan-provider strong { font-size: 14px; }
.plan-provider small { color: #abc0cf; font-size: 9px; margin-top: 4px; }
.plan-provider b { font-size: 24px; }
.plan-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.plan-stat { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.plan-stat small, .plan-stat strong { display: block; }
.plan-stat small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }
.plan-stat strong { margin-top: 5px; font-size: 15px; }
.plan-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.plan-checklist span { color: var(--muted); font-size: 9px; }
.plan-checklist span::before { content: "✓"; color: var(--teal); font-weight: 900; margin-right: 6px; }

.document-checklist { display: grid; gap: 7px; }
.document-check { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; font-size: 9px; }
.document-check label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.document-check input { accent-color: var(--teal); }
.document-check span { color: var(--muted); }
.drawer-actions { display: flex; gap: 8px; margin-top: 14px; }

.ops-fab { position: fixed; right: 24px; bottom: 23px; z-index: 25; border: 0; border-radius: 30px; color: white; background: linear-gradient(105deg,var(--navy-800),#087f85); box-shadow: 0 13px 30px rgba(7,26,43,.26); padding: 11px 16px; font-size: 10px; font-weight: 850; }
.ops-fab span { color: #7fe2dd; margin-right: 5px; }
.ops-assistant { position: fixed; right: 23px; bottom: 73px; z-index: 35; width: min(390px,calc(100vw - 30px)); background: white; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 25px 70px rgba(5,18,31,.26); transform: translateY(20px) scale(.98); opacity: 0; visibility: hidden; transition: .2s ease; overflow: hidden; }
.ops-assistant.open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
.ops-assistant-head { background: var(--navy-900); color: white; padding: 15px; display: flex; justify-content: space-between; align-items: start; }
.ops-assistant-head > div { display: grid; grid-template-columns: 26px 1fr; }
.ops-assistant-head > div > span { grid-row: span 2; color: #76dfd8; font-size: 18px; }
.ops-assistant-head strong, .ops-assistant-head small { display: block; }
.ops-assistant-head strong { font-size: 11px; }
.ops-assistant-head small { color: #91a8b8; font-size: 8px; margin-top: 3px; }
.ops-assistant-head button { border: 0; background: transparent; color: #a9bbc8; font-size: 20px; }
.assistant-prompts { display: flex; gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); }
.assistant-prompts button { border: 1px solid var(--line); background: white; border-radius: 14px; padding: 6px 8px; color: var(--navy-700); font-size: 8px; font-weight: 800; }
.assistant-prompts button:hover { border-color: var(--teal); background: var(--teal-soft); }
.assistant-response { padding: 16px; min-height: 150px; color: var(--ink); }
.assistant-label { color: var(--teal); font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.assistant-response p { font-size: 10px; line-height: 1.65; margin: 8px 0 0; white-space: pre-line; }
.ops-assistant > footer { padding: 9px 13px; background: #f7f9fa; color: var(--muted); font-size: 8px; }
.toast { position: fixed; z-index: 60; bottom: 24px; right: 25px; color: white; background: var(--navy-900); border-left: 4px solid var(--teal); border-radius: 10px; padding: 12px 15px; box-shadow: var(--shadow); font-size: 11px; font-weight: 700; transform: translateY(30px); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.empty-state { color: var(--muted); text-align: center; padding: 30px 10px; font-size: 11px; }

@media (max-width: 1180px) {
  .content-grid { grid-template-columns: 1fr 1fr; }
  .attention-panel { grid-column: span 2; }
  .roadmap-grid { grid-template-columns: 1fr 1fr; }
  .provider-row { grid-template-columns: 1.3fr .8fr .7fr 24px; }
  .provider-row .status { display: none; }
  .role-select { display: none; }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; transform: translateX(-102%); transition: .22s ease; width: 268px; }
  .sidebar.open { transform: translateX(0); box-shadow: 15px 0 40px rgba(5,18,31,.3); }
  .mobile-menu { display: block; }
  .sync-state, .topbar-actions .ghost { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .task-board { grid-template-columns: 1fr; }
  .architecture-flow { flex-wrap: wrap; }
  .architecture-flow span { flex: 1 1 40%; }
  .architecture-flow i { display: none; }
}
@media (max-width: 640px) {
  .topbar { height: 70px; padding: 0 16px; }
  .topbar h1 { font-size: 14px; max-width: 210px; }
  .topbar-actions .avatar { display: none; }
  .button { padding: 0 10px; }
  .page { padding: 18px 15px 35px; }
  .welcome-row { padding: 24px 21px; display: block; }
  .welcome-row .button { margin-top: 18px; }
  .metric-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .span-2, .attention-panel { grid-column: auto; }
  .provider-row { grid-template-columns: 1fr 80px 20px; }
  .provider-row .stage-copy { display: none; }
  .table-tools { flex-wrap: wrap; }
  .search { width: 100%; min-width: 0; }
  .table-tools .button { margin-left: 0; }
  .report-grid, .roadmap-grid, .module-grid { grid-template-columns: 1fr; }
  .architecture-flow span { flex-basis: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label.wide { grid-column: auto; }
  .activity-feed, .payer-selector, .plan-checklist { grid-template-columns: 1fr; }
  .activity-item:nth-child(2) { border-top: 1px solid #edf0f3; padding-top: 11px; }
  .npi-lookup-card { grid-template-columns: 1fr; }
  .npi-lookup-card label { min-width: 0; }
  .npi-lookup-card input { flex: 1; min-width: 0; }
  .lookup-result { grid-column: auto; }
  .check-row { display: grid; gap: 8px; }
  .plan-stats { grid-template-columns: 1fr; }
  .wizard-progress > span { font-size: 0; }
  .wizard-progress > i { width: 30px; }
}
