﻿:root {
  --bg:#dfe8f5;--bg-soft:#cfdcf0;--card:rgba(255,255,255,.48);--border:rgba(255,255,255,.62);--text:#0f213d;--muted:#4f6180;
  --accent:#0a76ff;--accent-dark:#0455c8;--danger:#b3261e;--success:#0d8b45;--warning:#a86a00;
  --radius:18px;
  --shadow-sm:0 6px 18px rgba(11,34,74,.08);
  --shadow-md:0 24px 44px rgba(11,34,74,.16);
  --glass-blur:18px;
  --sticky-top:8px;
  --mobile-top-extra:0px;
  --mobile-bottom-extra:0px;
  --mobile-note-min:300px;
}
*{box-sizing:border-box;margin:0;padding:0}
.billing-floating-reset{display:none}
body{
  font-family:"SF Pro Text","Segoe UI",system-ui,-apple-system,sans-serif;
  background:
    radial-gradient(900px 560px at 10% 5%,rgba(3, 3, 3, 0.85) 0,rgba(255,255,255,0) 60%),
    radial-gradient(760px 460px at 92% 18%,rgba(9,117,255,.22) 0,rgba(9,117,255,0) 70%),
    linear-gradient(160deg,#d7e2f2 0%,#e6eef9 45%,#f3f6fb 100%);
  color:var(--text);
  min-height:100vh;
  position:relative;
}
html{
  scrollbar-gutter:stable;
}
body::before,body::after{
  content:"";
  position:fixed;
  z-index:-1;
  pointer-events:none;
  border-radius:999px;
  filter:blur(2px);
}
body::before{
  width:420px;
  height:420px;
  top:-130px;
  left:-110px;
  background:radial-gradient(circle,rgba(255,255,255,.92) 0,rgba(255,255,255,0) 72%);
}
body::after{
  width:520px;
  height:520px;
  right:-180px;
  bottom:-190px;
  background:radial-gradient(circle,rgba(10,118,255,.18) 0,rgba(10,118,255,0) 70%);
}
.page{max-width:1140px;margin:0 auto;padding:24px 16px 20px}
.app-topbar{
  position:sticky;
  top:10px;
  z-index:95;
  margin-bottom:14px;
  padding:10px 12px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.78);
  background:linear-gradient(168deg,rgba(255,255,255,.74) 0,rgba(236,243,252,.6) 100%);
  backdrop-filter:blur(calc(var(--glass-blur) - 1px)) saturate(132%);
  -webkit-backdrop-filter:blur(calc(var(--glass-blur) - 1px)) saturate(132%);
  box-shadow:0 14px 28px rgba(11,34,74,.14),inset 0 1px 0 rgba(255,255,255,.88);
}
.brand-block{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
}
.brand-lockup{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-bottom:0;
  flex-wrap:nowrap;
}
.brand-mark{
  display:inline-flex;
  align-items:flex-end;
  border:1px solid rgba(255,255,255,.9);
  border-radius:999px;
  padding:6px 10px 7px;
  background:rgba(255,255,255,.78);
  box-shadow:var(--shadow-sm),inset 0 1px 0 rgba(255,255,255,.9);
  line-height:1;
  font-family:"Inter","SF Pro Text","Segoe UI",system-ui,-apple-system,sans-serif;
}
.brand-mark .vir{
  font-style:italic;
  font-weight:100;
  font-size:18px;
  letter-spacing:.01em;
}
.brand-mark .tool{
  font-weight:400;
  font-size:10px;
  margin-left:2px;
  transform:translateY(-1px);
  letter-spacing:.08em;
}
.brand-title{
  font-size:24px;
  font-weight:760;
  margin:0;
  letter-spacing:.01em;
  line-height:1.1;
}
.brand-org{
  font-size:12px;
  text-align:center;
  color:rgba(15,33,61,.62);
  margin:0;
}
.header{
  text-align:left;
  margin-bottom:14px;
}
.header-meta{
  font-size:12px;
  color:var(--muted);
  letter-spacing:.01em;
  margin-bottom:8px;
}
.tabs{
  display:flex;
  align-items:stretch;
  gap:4px;
  width:100%;
  padding:4px;
  background:rgba(15,33,61,.07);
  border:1px solid rgba(255,255,255,.8);
  border-radius:12px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.78);
}
.tab{
  position:relative;
  flex:1 1 0;
  min-width:170px;
  border:none;
  background:transparent;
  padding:10px 14px;
  border-radius:9px;
  font-size:13px;
  cursor:pointer;
  color:var(--muted);
  font-weight:650;
  transition:color .18s ease,background-color .18s ease,box-shadow .18s ease;
}
.tab-label{
  display:inline-block;
  text-align:center;
  line-height:1.2;
}
.tab::after{
  content:"";
  position:absolute;
  left:10px;
  right:10px;
  bottom:4px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--accent) 0,var(--accent-dark) 100%);
  opacity:0;
  transform:scaleX(.35);
  transform-origin:center;
  transition:opacity .2s ease,transform .2s ease;
}
.tab:hover{color:var(--text);background:rgba(255,255,255,.42)}
.tab.active{
  background:rgba(255,255,255,.88);
  color:var(--accent-dark);
  box-shadow:0 8px 18px rgba(9,38,84,.12),inset 0 1px 0 rgba(255,255,255,.94);
}
.tab.active::after{
  opacity:1;
  transform:scaleX(1);
}
.panel{display:none}.panel.active{display:block}
.card{
  background:linear-gradient(165deg,rgba(255,255,255,.56) 0,rgba(255,255,255,.34) 100%);
  border:1px solid var(--border);
  backdrop-filter:blur(var(--glass-blur)) saturate(130%);
  -webkit-backdrop-filter:blur(var(--glass-blur)) saturate(130%);
  border-radius:var(--radius);
  padding:18px;
  margin-bottom:14px;
  box-shadow:var(--shadow-md),inset 0 1px 0 rgba(255,255,255,.78);
}
.card h3,.sticky-group h3{font-size:12px;font-weight:650;text-transform:uppercase;letter-spacing:.07em;color:rgba(15,33,61,.74);margin-bottom:11px}
.field-row{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.field-group{flex:1;min-width:200px}
.field-group label{display:block;font-size:11px;font-weight:600;text-transform:uppercase;color:var(--muted);margin-bottom:4px;letter-spacing:.03em}
select,textarea{
  width:100%;
  border:1px solid rgba(255,255,255,.76);
  border-radius:12px;
  padding:9px 11px;
  font-size:13px;
  font-family:inherit;
  color:var(--text);
  background:rgba(255,255,255,.64);
  outline:none;
  backdrop-filter:blur(12px) saturate(128%);
  -webkit-backdrop-filter:blur(12px) saturate(128%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
  transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease,transform .16s ease;
}
select:hover,textarea:hover{background:rgba(255,255,255,.74)}
select:focus,textarea:focus{
  border-color:rgba(10,118,255,.6);
  box-shadow:0 0 0 3px rgba(10,118,255,.16),inset 0 1px 0 rgba(255,255,255,.9);
}
#refProcCombo,
#refPayerCombo,
#checkerProcCombo,
#checkerPayerCombo{
  width:100%;
  border:1px solid rgba(255,255,255,.76);
  border-radius:12px;
  padding:9px 34px 9px 11px;
  font-size:13px;
  font-family:inherit;
  color:var(--text);
  background:rgba(255,255,255,.64);
  outline:none;
  backdrop-filter:blur(12px) saturate(128%);
  -webkit-backdrop-filter:blur(12px) saturate(128%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
  transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease,transform .16s ease;
  appearance:none;
  -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23384B70' stroke-width='2' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 10px center;
  background-size:14px 14px;
}
#refProcCombo:hover,
#refPayerCombo:hover,
#checkerProcCombo:hover,
#checkerPayerCombo:hover{background:rgba(255,255,255,.74)}
#refProcCombo:focus,
#refPayerCombo:focus,
#checkerProcCombo:focus,
#checkerPayerCombo:focus{
  border-color:rgba(10,118,255,.6);
  box-shadow:0 0 0 3px rgba(10,118,255,.16),inset 0 1px 0 rgba(255,255,255,.9);
}
#refProcCombo::-webkit-calendar-picker-indicator,
#refPayerCombo::-webkit-calendar-picker-indicator,
#checkerProcCombo::-webkit-calendar-picker-indicator,
#checkerPayerCombo::-webkit-calendar-picker-indicator{
  opacity:0;
  width:0;
  margin:0;
}
.combo-shell{
  position:relative;
}
.combo-menu{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 2px);
  display:none;
  max-height:420px;
  overflow:auto;
  background:#fff;
  border:1px solid #c6cfdd;
  border-radius:12px;
  box-shadow:0 12px 26px rgba(13,31,60,.16);
  z-index:120;
}
.combo-shell.open .combo-menu{
  display:block;
}
.combo-menu-group{
  padding:8px 12px 4px;
  font-size:13px;
  font-weight:700;
  color:#0f213d;
}
.combo-menu-item{
  padding:6px 12px;
  font-size:13px;
  color:#0f213d;
  cursor:pointer;
}
.combo-menu-item:hover,
.combo-menu-item.active{
  background:#2b66c6;
  color:#fff;
}
.combo-menu-item.hidden,
.combo-menu-group.hidden{
  display:none;
}
.combo-menu-empty{
  padding:8px 12px;
  font-size:12px;
  color:var(--muted);
}
textarea{min-height:160px;resize:vertical}
.btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 16px;
  border:none;
  border-radius:12px;
  font-size:13px;
  font-weight:630;
  cursor:pointer;
  transition:all .16s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{
  background:linear-gradient(140deg,var(--accent) 0,var(--accent-dark) 100%);
  color:#fff;
  box-shadow:0 10px 20px rgba(10,118,255,.26),inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-primary:hover{filter:brightness(.97)}
.btn-secondary{
  background:linear-gradient(170deg,rgba(255,255,255,.8) 0,rgba(255,255,255,.56) 100%);
  color:var(--text);
  border:1px solid rgba(255,255,255,.72);
  box-shadow:var(--shadow-sm),inset 0 1px 0 rgba(255,255,255,.92);
}
.btn-secondary:hover{background:rgba(255,255,255,.84)}
.btn-sm{padding:6px 12px;font-size:12px}
.btn-tertiary{background:rgba(10,118,255,.1);color:var(--accent-dark);border:1px solid rgba(10,118,255,.26)}
.results{margin-top:14px}
.badge{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:999px;font-size:11px;font-weight:600}
.badge-green{background:rgba(11,138,66,.1);color:var(--success)}
.badge-red{background:rgba(179,38,30,.1);color:var(--danger)}
.badge-yellow{background:rgba(184,106,0,.1);color:var(--warning)}
.badge-blue{background:rgba(31,111,235,.1);color:var(--accent)}
.badge-gray{background:rgba(15,23,42,.06);color:var(--muted)}
.result-card{
  background:linear-gradient(165deg,rgba(255,255,255,.62) 0,rgba(255,255,255,.4) 100%);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:14px;
  margin-top:10px;
  backdrop-filter:blur(calc(var(--glass-blur) - 3px)) saturate(125%);
  -webkit-backdrop-filter:blur(calc(var(--glass-blur) - 3px)) saturate(125%);
  box-shadow:var(--shadow-sm),inset 0 1px 0 rgba(255,255,255,.72);
}
.result-card h4{font-size:14px;font-weight:600;margin-bottom:8px}
.result-row{display:flex;gap:20px;flex-wrap:wrap;margin-bottom:10px}
.result-col{flex:1;min-width:200px}
.result-col h5{font-size:11px;font-weight:600;text-transform:uppercase;color:var(--muted);margin-bottom:6px;letter-spacing:.03em}
.result-col ul{list-style:none;padding:0}
.result-col li{font-size:13px;padding:3px 0;display:flex;align-items:flex-start;gap:6px}
.result-col li::before{content:"";display:none}
.check{color:var(--success);font-size:14px;flex-shrink:0}
.miss{color:var(--danger);font-size:14px;flex-shrink:0}
.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;margin:10px 0}
.info-item{font-size:12px}.info-item strong{display:block;font-size:11px;text-transform:uppercase;color:var(--muted);margin-bottom:2px;letter-spacing:.02em}
.source-link{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:var(--accent);text-decoration:none;margin-top:8px}
.source-link:hover{text-decoration:underline}
.med-nec{background:rgba(10,118,255,.08);border:1px solid rgba(10,118,255,.2);border-radius:10px;padding:10px;margin-top:10px;font-size:12px;line-height:1.5}
.notes-box{background:rgba(184,106,0,.08);border:1px solid rgba(184,106,0,.2);border-radius:10px;padding:10px;margin-top:8px;font-size:12px;line-height:1.5}
.payer-docs-highlight{
  margin-top:10px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(10,118,255,.32);
  background:rgba(10,118,255,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
}
.payer-docs-highlight strong{
  display:block;
  margin-bottom:6px;
  color:var(--accent-dark);
  font-size:12px;
}
.payer-docs-highlight ul{
  list-style:none;
  margin:0;
  padding:0;
}
.payer-docs-highlight li{
  font-size:13px;
  padding:3px 0;
  display:flex;
  align-items:flex-start;
  gap:6px;
}
.verification{display:inline-flex;align-items:center;gap:4px;font-size:10px;margin-left:6px;padding:2px 6px;border-radius:4px}
.v-verified{background:rgba(11,138,66,.08);color:var(--success)}
.v-template{background:rgba(184,106,0,.08);color:var(--warning)}
.analysis-found li::before,.analysis-miss li::before{display:inline;margin-right:2px}
.analysis-found li{color:var(--success)}.analysis-miss li{color:var(--danger)}
.stats{display:none;gap:16px;flex-wrap:wrap;margin:10px 0}
.stat{
  text-align:center;
  padding:8px 12px;
  background:rgba(255,255,255,.48);
  border-radius:10px;
  border:1px solid rgba(255,255,255,.68);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  min-width:80px;
  box-shadow:var(--shadow-sm),inset 0 1px 0 rgba(255,255,255,.82);
}
.stat .num{font-size:20px;font-weight:700}.stat .lbl{font-size:10px;text-transform:uppercase;color:var(--muted)}
.kpi-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(170px,1fr));
  gap:10px;
}
.kpi-card{
  border:1px solid rgba(255,255,255,.9);
  border-radius:12px;
  background:linear-gradient(170deg,rgba(255,255,255,.88) 0,rgba(241,247,255,.72) 100%);
  padding:12px 12px 10px;
  box-shadow:var(--shadow-sm),inset 0 1px 0 rgba(255,255,255,.92);
}
.kpi-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--muted);
  margin-bottom:5px;
}
.kpi-value{
  font-size:28px;
  font-weight:760;
  color:var(--accent-dark);
  line-height:1;
}
.kpi-meta{
  margin-top:10px;
  font-size:12px;
  color:var(--muted);
}
.about-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(220px,1fr));
  gap:10px;
}
.about-card{
  border:1px solid rgba(255,255,255,.9);
  border-radius:12px;
  background:linear-gradient(170deg,rgba(255,255,255,.88) 0,rgba(241,247,255,.72) 100%);
  padding:12px;
  box-shadow:var(--shadow-sm),inset 0 1px 0 rgba(255,255,255,.92);
}
.about-card h4{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--muted);
  margin-bottom:8px;
}
.about-line{
  font-size:14px;
  line-height:1.45;
}
.about-line a{
  color:var(--accent-dark);
  text-decoration:none;
}
.about-line a:hover{
  text-decoration:underline;
}
#noteArea::placeholder{color:#aaa}
.hidden{display:none}
.app-actions{margin-top:10px;display:flex;gap:8px;flex-wrap:wrap}
.kbd-hint{font-size:11px;color:var(--muted);margin-left:4px}
.creator-credit{width:100%;font-size:12px;color:var(--muted);text-align:right;line-height:1.35;padding:8px 16px 12px}
.analysis-actions{margin-top:0;margin-bottom:10px}
.det-draft-block{
  margin-top:12px;
  border-color:rgba(10,118,255,.3);
  background:rgba(10,118,255,.06);
}
.det-draft-label{
  display:block;
  margin-bottom:6px;
  color:var(--accent-dark);
  font-size:12px;
  font-weight:700;
}
.det-draft-meta{
  font-size:11px;
  color:var(--muted);
  margin-bottom:8px;
}
.det-draft-text{
  width:100%;
  min-height:140px;
  border-radius:10px;
  border:1px solid rgba(15,23,42,.16);
  background:rgba(255,255,255,.86);
  color:var(--text);
  padding:10px 12px;
  font-size:12px;
  line-height:1.5;
  white-space:pre-wrap;
  overflow:auto;
}
.pin-placeholder{display:none}
.sticky-group{
  position:relative;
  z-index:45;
  margin:0 0 10px;
  padding:8px 8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.9);
  background:linear-gradient(170deg,rgba(245,249,255,.92) 0,rgba(236,243,252,.88) 100%);
  box-shadow:0 6px 14px rgba(11,34,74,.08),inset 0 1px 0 rgba(255,255,255,.86);
}
#checker .sticky-group{z-index:52}
#reference .sticky-group{z-index:51}
.cpt-filter-row{
  position:relative;
  z-index:50;
  padding:8px 8px;
  margin:0 0 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.9);
  background:linear-gradient(170deg,rgba(245,249,255,.92) 0,rgba(236,243,252,.88) 100%);
  box-shadow:0 6px 14px rgba(11,34,74,.08),inset 0 1px 0 rgba(255,255,255,.86);
}
.cpt-token{
  border:1px solid rgba(10,118,255,.26);
  background:rgba(10,118,255,.09);
  color:#155fcf;
  border-radius:6px;
  padding:1px 7px;
  font-size:12px;
  line-height:1.5;
  display:inline-block;
  margin:1px 2px 1px 0;
  cursor:pointer;
  font-family:inherit;
  transition:background-color .12s,border-color .12s,box-shadow .12s;
}
.cpt-token:hover,.cpt-token:focus{
  background:rgba(10,118,255,.15);
  border-color:rgba(10,118,255,.48);
  outline:none;
}
.cpt-token.active{
  background:rgba(10,118,255,.17);
  border-color:var(--accent);
  box-shadow:0 0 0 2px rgba(10,118,255,.16);
}
.cpt-popup{
  position:fixed;
  z-index:9999;
  display:none;
  width:min(360px,calc(100vw - 16px));
  max-height:min(65vh,420px);
  overflow:auto;
  background:linear-gradient(165deg,rgba(255,255,255,.78) 0,rgba(255,255,255,.58) 100%);
  border:1px solid rgba(255,255,255,.78);
  border-radius:12px;
  backdrop-filter:blur(calc(var(--glass-blur) - 2px)) saturate(135%);
  -webkit-backdrop-filter:blur(calc(var(--glass-blur) - 2px)) saturate(135%);
  box-shadow:0 16px 34px rgba(13,34,64,.2),inset 0 1px 0 rgba(255,255,255,.86);
  padding:10px 12px;
}
.cpt-popup.visible{display:block}
.cpt-popup h6{
  font-size:12px;
  margin-bottom:4px;
  color:var(--accent-dark);
}
.cpt-popup p{
  font-size:11px;
  color:var(--muted);
  margin-bottom:6px;
}
.cpt-popup ul{
  margin:0;
  padding-left:18px;
}
.cpt-popup li{
  font-size:12px;
  margin-bottom:3px;
  line-height:1.35;
}
.cpt-token-wrap{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  align-items:center;
}
.cpt-inline-note{
  margin-top:4px;
  font-size:11px;
  color:var(--muted);
  line-height:1.35;
}
input{
  border:1px solid rgba(255,255,255,.72);
  border-radius:12px;
  background:rgba(255,255,255,.64);
  color:var(--text);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.74);
}
input:focus{
  border-color:rgba(10,118,255,.6);
  box-shadow:0 0 0 3px rgba(10,118,255,.16),inset 0 1px 0 rgba(255,255,255,.88);
  outline:none;
}
#cptSearch,#cptCategoryFilter{
  border:1px solid rgba(255,255,255,.72) !important;
  border-radius:12px !important;
  background:rgba(255,255,255,.64) !important;
  color:var(--text) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.74) !important;
}
#cptSearch:focus,#cptCategoryFilter:focus{
  border-color:rgba(10,118,255,.6) !important;
  box-shadow:0 0 0 3px rgba(10,118,255,.16),inset 0 1px 0 rgba(255,255,255,.88) !important;
  outline:none !important;
}
.source-link:hover{opacity:.82}
:focus-visible{
  outline:2px solid rgba(10,118,255,.58);
  outline-offset:2px;
}
body.viewport-zoomed .app-topbar{
  position:static !important;
  top:auto !important;
}

/* === MOBILE + DESKTOP RESPONSIVENESS FIXES === */
*, *::before, *::after {
  box-sizing: border-box;
}
html, body {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* Fix all text containers to wrap properly (all screen sizes) */
.result-card,
.result-col,
.result-col li,
.info-item,
.med-nec,
.notes-box,
.source-link,
.result-card h4 {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}
.result-col ul {
  padding: 0;
  margin: 0;
  list-style: none;
  max-width: 100%;
}
.result-col li {
  min-width: 0;
}
.result-col li span.check,
.result-col li span.miss {
  flex-shrink: 0;
}
.info-item span:not(.badge):not(.verification) {
  display: block;
  overflow-wrap: break-word;
  word-break: break-word;
}
.result-card {
  overflow: hidden;
}
.med-nec, .notes-box {
  overflow: hidden;
}

/* Tablet and mobile */
@media(max-width:640px){
  :root{
    --mobile-sticky-top: calc(env(safe-area-inset-top,0px) + var(--mobile-top-extra) + 54px);
    --sticky-top: var(--mobile-sticky-top);
  }
  .page {
    max-width: 100%;
    padding: calc(12px + env(safe-area-inset-top,0px) + var(--mobile-top-extra)) 10px calc(20px + env(safe-area-inset-bottom,0px) + var(--mobile-bottom-extra));
    min-height: calc(100dvh - env(safe-area-inset-top,0px));
    overflow-x: hidden;
  }
  body::before{width:210px;height:210px;left:-80px;top:-90px;opacity:.65}
  body::after{width:260px;height:260px;right:-130px;bottom:-130px;opacity:.6}
  .app-topbar {
    top: calc(env(safe-area-inset-top,0px) + var(--mobile-top-extra) + 4px);
    margin-bottom: 12px;
    padding: 10px 10px 10px;
    border-radius: 14px;
  }
  .brand-lockup {
    gap: 8px;
    align-items: center;
  }
  .brand-block {
    gap: 2px;
  }
  .brand-mark {
    padding: 5px 8px 6px;
  }
  .brand-mark .vir {
    font-size: 16px;
  }
  .brand-mark .tool {
    font-size: 9px;
  }
  .brand-title {
    font-size: 17px;
    line-height: 1.18;
  }
  .brand-org {
    font-size: 11px;
    line-height: 1.3;
  }
  .header {
    margin-bottom: 12px;
  }
  .header-meta {
    font-size: 11px;
    margin-bottom: 6px;
  }
  .card,
  .result-card {
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    box-shadow: 0 10px 24px rgba(11,34,74,.11), inset 0 1px 0 rgba(255,255,255,.75);
    border-radius: 14px;
    border: 1.2px solid rgba(255,255,255,.86);
  }
  .field-row {
    flex-direction: column;
    gap: 8px;
  }
  .field-group {
    min-width: 0;
    width: 100%;
  }
  .result-row {
    flex-direction: column;
  }
  .result-col {
    min-width: 0;
    width: 100%;
  }
  .info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .tabs {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 3px;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    scrollbar-width: none;
    border: 1px solid rgba(255,255,255,.84);
    box-shadow: 0 8px 18px rgba(11,34,74,.09), inset 0 1px 0 rgba(255,255,255,.82);
  }
  .tabs::-webkit-scrollbar {
    display: none;
  }
  .tab {
    flex: 0 0 calc((100% - 8px)/3);
    text-align: center;
    padding: 8px 7px;
    white-space: normal;
    min-width: calc((100% - 8px)/3);
    font-size: 11px;
    line-height: 1.15;
  }
  .tab-label{
    white-space: normal;
    line-height: 1.15;
  }
  .tab::after {
    left: 8px;
    right: 8px;
    bottom: 3px;
  }
  select, textarea, input {
    font-size: 14px !important;
    max-width: 100%;
  }
  select, #refProcCombo, #refPayerCombo, #checkerProcCombo, #checkerPayerCombo {
    padding-right: 34px;
  }
  .field-group label {
    font-size: 10px;
    letter-spacing: .06em;
  }
  textarea {
    min-height: 132px;
    line-height: 1.4;
  }
  .card {
    padding: 12px 11px;
  }
  .sticky-group{
    z-index: 45;
    margin: -2px -4px 10px;
    padding: 8px 8px 10px;
  }
  #checker .sticky-group h3,
  #reference .sticky-group h3{
    margin-bottom: 8px;
  }
  #checker .sticky-group .field-row,
  #reference .sticky-group .field-row{
    margin-bottom: 0;
  }
  #checker .sticky-group .field-group,
  #reference .sticky-group .field-group{
    margin-bottom: 0;
  }
  #noteArea{
    min-height: var(--mobile-note-min);
  }
  .app-actions {
    gap: 6px;
  }
  .app-actions .btn {
    flex: 1 1 calc(50% - 3px);
    justify-content: center;
    min-height: 40px;
  }
  .app-actions .btn-primary {
    flex-basis: 100%;
  }
  .kbd-hint {
    display: block;
    width: 100%;
    margin-left: 0;
    margin-top: 2px;
    text-align: left;
  }
  .info-item,
  .result-col li,
  .med-nec,
  .notes-box {
    font-size: 11px;
  }
  .cpt-filter-row{
    z-index: 46;
    padding: 8px 8px;
    margin: 0 -4px 10px;
  }
  .cpt-filter-row #cptCategoryFilter{
    flex: 1 1 190px;
  }
  .cpt-filter-row #cptResultCount{
    flex: 1 1 auto;
    text-align: right;
  }
  #checker .card,
  #reference .card,
  #about .card,
  #cptdirectory .card{
    overflow: visible;
  }
  .kpi-grid{
    grid-template-columns:1fr;
    gap:8px;
  }
  .kpi-card{
    padding:10px 10px 9px;
  }
  .kpi-value{
    font-size:24px;
  }
  .about-grid{
    grid-template-columns:1fr;
    gap:8px;
  }
  .about-card{
    padding:10px;
  }
  .about-line{
    font-size:13px;
  }
  .creator-credit{
    padding-bottom: calc(12px + env(safe-area-inset-bottom,0px) + var(--mobile-bottom-extra));
  }
}

/* Small phones (iPhone SE / mini) */
@media(max-width:400px){
  .brand-title {
    font-size: 15px;
  }
  .brand-org {
    font-size: 11px;
    padding: 0 4px;
  }
  .brand-mark .vir {
    font-size: 15px;
  }
  .brand-mark .tool {
    font-size: 8px;
  }
  .tab {
    font-size: 10px;
    padding: 6px 6px;
    line-height: 1.2;
    min-width: calc((100% - 8px)/3);
  }
  .card h3,
  .sticky-group h3 {
    font-size: 11px;
  }
  .result-col li {
    font-size: 12px;
  }
  .btn {
    padding: 8px 10px;
    font-size: 12px;
  }
  .badge {
    font-size: 10px;
    padding: 2px 8px;
  }
  .med-nec, .notes-box {
    font-size: 11px;
    padding: 8px;
  }
  .info-item {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce){
  .btn,.tab,.cpt-token,select,textarea,input{
    transition:none;
  }
  .btn:hover{
    transform:none;
  }
}

/* === Premium Visual Refresh (v11.1) === */
:root{
  --bg0:#f8fafc;
  --bg1:#eef2f7;
  --surface:#ffffff;
  --surface-2:rgba(255,255,255,.72);
  --border:#e3e8f2;
  --text:#0b1220;
  --muted:#52627a;
  --muted-2:#7b8aa3;
  --primary:#1d4ed8;
  --primary-hover:#1e40af;
  --primary-pressed:#1e3a8a;
  --focus:rgba(29,78,216,.25);
  --accent:var(--primary);
  --accent-dark:var(--primary-hover);
  --radius:18px;
  --shadow-sm:0 1px 2px rgba(16,24,40,.06);
  --shadow-md:0 12px 28px rgba(16,24,40,.10);
  --shadow-lg:0 24px 60px rgba(16,24,40,.12);
  --glass-blur:10px;
}

body{
  font-family:Inter,"SF Pro Text","Segoe UI",system-ui,-apple-system,sans-serif;
  background:
    radial-gradient(900px 450px at 50% -10%, rgba(29,78,216,.16), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}
html,
body{
  overscroll-behavior-y:auto;
}
body::before,
body::after{
  content:none;
  display:none;
}

.page{
  max-width:1040px;
  margin:0 auto;
  padding:42px 20px 60px;
}

.app-topbar{
  top:12px;
  border:1px solid var(--border);
  background:var(--surface-2);
  backdrop-filter:blur(var(--glass-blur));
  -webkit-backdrop-filter:blur(var(--glass-blur));
  border-radius:var(--radius);
  box-shadow:var(--shadow-md);
}

.brand-mark{
  background:#f1f5f9;
  border:1px solid var(--border);
  box-shadow:none;
}
.brand-title{
  font-size:22px;
  letter-spacing:-.02em;
  color:var(--text);
}
.brand-org{
  color:var(--muted);
}

.tabs{
  margin-top:14px;
  gap:6px;
  justify-content:center;
  padding:6px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.65);
  box-shadow:none;
}
.tab{
  border:1px solid transparent;
  border-radius:999px;
  padding:10px 14px;
  font-size:13px;
  font-weight:700;
  color:var(--muted);
  min-width:170px;
}
.tab::after{
  display:none;
}
.tab:hover{
  color:var(--text);
  background:rgba(2,6,23,.03);
}
.tab.active{
  background:var(--surface);
  color:var(--text);
  border-color:var(--border);
  box-shadow:var(--shadow-sm);
}

.card{
  background:var(--surface);
  border:1px solid var(--border);
  box-shadow:var(--shadow-md);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.result-card,
.sticky-group,
.cpt-filter-row,
.about-card,
.kpi-card{
  background:var(--surface);
  border:1px solid var(--border);
  box-shadow:var(--shadow-sm);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

.card h3,
.sticky-group h3,
.field-group label,
.kpi-label,
.about-card h4{
  color:var(--muted);
}

select,
textarea,
input,
#refProcCombo,
#refPayerCombo,
#checkerProcCombo,
#checkerPayerCombo,
#cptSearch,
#cptCategoryFilter{
  border:1px solid var(--border) !important;
  border-radius:10px !important;
  background:#fbfdff !important;
  color:var(--text) !important;
  box-shadow:none !important;
}
select:focus,
textarea:focus,
input:focus,
#refProcCombo:focus,
#refPayerCombo:focus,
#checkerProcCombo:focus,
#checkerPayerCombo:focus,
#cptSearch:focus,
#cptCategoryFilter:focus{
  border-color:rgba(29,78,216,.55) !important;
  box-shadow:0 0 0 4px var(--focus) !important;
  outline:none !important;
}
.combo-menu{
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:var(--shadow-md);
}
.combo-menu-group{
  color:var(--muted);
}
.combo-menu-item:hover,
.combo-menu-item.active{
  background:var(--primary);
  color:#fff;
}

.btn{
  height:40px;
  border-radius:999px;
  padding:0 14px;
  font-size:13px;
  font-weight:800;
  transform:none;
}
.btn:hover{
  transform:none;
}
.btn-primary{
  background:var(--primary);
  color:#fff;
  box-shadow:0 10px 24px rgba(29,78,216,.25);
}
.btn-primary:hover{
  background:var(--primary-hover);
  filter:none;
}
.btn-primary:active{
  background:var(--primary-pressed);
}
.btn-secondary{
  background:var(--surface);
  color:var(--text);
  border:1px solid var(--border);
  box-shadow:var(--shadow-sm);
}
.btn-secondary:hover{
  background:#f8fafc;
}
.btn-tertiary{
  background:transparent;
  color:var(--muted);
  border:1px solid transparent;
}
.btn-tertiary:hover{
  background:rgba(2,6,23,.04);
  color:var(--text);
}

.med-nec,
.notes-box,
.payer-docs-highlight{
  border-radius:10px;
}

.creator-credit{
  color:var(--muted);
}

@media(min-width:641px) and (max-width:860px){
  .tabs{
    justify-content:flex-start;
  }
  .tab{
    flex:1 1 0;
    min-width:0;
    padding:9px 8px;
    font-size:12px;
  }
}

@media(max-width:640px){
  html,
  body{
    overscroll-behavior-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  .page,
  .panel{
    overscroll-behavior-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  .page{
    max-width:100%;
    padding:calc(12px + env(safe-area-inset-top,0px) + var(--mobile-top-extra)) 10px calc(20px + env(safe-area-inset-bottom,0px) + var(--mobile-bottom-extra));
  }
  .app-topbar{
    top:calc(env(safe-area-inset-top,0px) + var(--mobile-top-extra) + 4px);
    border-radius:14px;
  }
  .tabs{
    justify-content:flex-start;
    overflow-x:auto;
    overflow-y:hidden;
    border-radius:18px;
    scrollbar-width:none;
  }
  .tabs::-webkit-scrollbar{
    display:none;
  }
  .tab{
    flex:0 0 calc((100% - 8px)/3);
    min-width:calc((100% - 8px)/3);
    border-radius:12px;
    font-size:11px;
    padding:8px 7px;
  }
  .brand-title{
    font-size:17px;
  }
}

/* === Figma-Grade Design System (v11.5-prod) === */
:root{
  --fig-bg-0:#f6f9ff;
  --fig-bg-1:#edf3fd;
  --fig-bg-2:#e7eef9;
  --fig-surface:#ffffff;
  --fig-surface-soft:#f9fbff;
  --fig-stroke:#d7e1ef;
  --fig-stroke-strong:#c6d4e8;
  --fig-text:#0f1a2e;
  --fig-muted:#5d6f90;
  --fig-muted-soft:#8090ad;
  --fig-blue:#2563eb;
  --fig-blue-strong:#1d4ed8;
  --fig-focus:rgba(37,99,235,.2);
  --fig-success:#0f9f6e;
  --fig-warning:#af7a2c;
  --fig-danger:#c4473d;
  --fig-radius-xl:22px;
  --fig-radius-lg:16px;
  --fig-radius-md:12px;
  --fig-radius-sm:10px;
  --fig-shadow-sm:0 2px 8px rgba(14,26,46,.07);
  --fig-shadow-md:0 12px 30px rgba(14,26,46,.1);
  --fig-shadow-lg:0 20px 48px rgba(14,26,46,.12);
  --fig-ease:cubic-bezier(.2,.75,.25,1);
}

body{
  font-family:"Plus Jakarta Sans","SF Pro Text","Segoe UI",-apple-system,sans-serif;
  color:var(--fig-text);
  background:
    radial-gradient(980px 520px at -8% -18%, rgba(37,99,235,.14), transparent 62%),
    radial-gradient(760px 380px at 108% -10%, rgba(14,165,164,.11), transparent 60%),
    linear-gradient(180deg,var(--fig-bg-0) 0%,var(--fig-bg-1) 56%,var(--fig-bg-2) 100%);
}

.page{
  position:relative;
  width:100%;
  max-width:1360px;
  margin:0 auto;
  padding:30px clamp(12px, 2vw, 24px) 58px;
}
.page::before{
  content:"";
  position:fixed;
  inset:-30% auto auto 50%;
  width:760px;
  height:760px;
  transform:translateX(-50%);
  pointer-events:none;
  z-index:-1;
  background:radial-gradient(circle, rgba(255,255,255,.72) 0%, rgba(255,255,255,0) 70%);
}

.app-topbar{
  top:14px;
  margin-bottom:16px;
  padding:14px 16px 13px;
  border-radius:var(--fig-radius-xl);
  border:1px solid var(--fig-stroke);
  background:linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(247,251,255,.87) 100%);
  box-shadow:var(--fig-shadow-md), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter:blur(12px) saturate(130%);
  -webkit-backdrop-filter:blur(12px) saturate(130%);
}

.brand-lockup{
  gap:12px;
}
.brand-mark{
  border:1px solid var(--fig-stroke);
  background:linear-gradient(180deg,#f8fbff 0%,#eef4ff 100%);
  box-shadow:0 1px 0 rgba(255,255,255,.95), var(--fig-shadow-sm);
  font-family:"Inter","Plus Jakarta Sans","SF Pro Text","Segoe UI",-apple-system,sans-serif;
}
.brand-mark .vir{
  color:#6d7f9f;
}
.brand-mark .tool{
  color:#394b6c;
}
.brand-title{
  font-size:clamp(22px,2.1vw,32px);
  font-weight:740;
  letter-spacing:-.03em;
  color:var(--fig-text);
  text-shadow:0 1px 0 rgba(255,255,255,.7), 0 2px 8px rgba(15,26,46,.12);
}
.brand-org{
  font-size:13px;
  color:var(--fig-muted);
}

.tabs{
  margin-top:13px;
  display:flex;
  gap:6px;
  align-items:stretch;
  justify-content:flex-start;
  padding:6px;
  border-radius:14px;
  border:1px solid var(--fig-stroke);
  background:linear-gradient(180deg,rgba(253,254,255,.94) 0%,rgba(244,249,255,.92) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95);
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
}
.tabs::-webkit-scrollbar{
  display:none;
}
.tab{
  flex:1 1 0;
  min-width:0;
  border:1px solid transparent;
  border-radius:10px;
  padding:11px 10px 10px;
  font-size:13px;
  color:var(--fig-muted);
  font-weight:650;
  background:transparent;
  transition:color .2s var(--fig-ease),background-color .2s var(--fig-ease),box-shadow .2s var(--fig-ease),border-color .2s var(--fig-ease);
}
.tab-label{
  display:inline-block;
  line-height:1.15;
}
.tab::after{
  display:block;
  height:2px;
  bottom:4px;
  left:12px;
  right:12px;
  background:linear-gradient(90deg,var(--fig-blue) 0%,var(--fig-blue-strong) 100%);
  opacity:0;
  transform:scaleX(.45);
  transform-origin:center;
  transition:opacity .2s var(--fig-ease),transform .2s var(--fig-ease);
}
.tab:hover{
  color:#304768;
  background:rgba(37,99,235,.06);
}
.tab.active{
  color:var(--fig-blue-strong);
  background:#ffffff;
  border-color:var(--fig-stroke);
  box-shadow:var(--fig-shadow-sm);
}
.tab.active::after{
  opacity:1;
  transform:scaleX(1);
}

.panel.active{
  animation:fig-panel-in .24s var(--fig-ease) both;
}
@keyframes fig-panel-in{
  from{opacity:.02;transform:translateY(8px)}
  to{opacity:1;transform:translateY(0)}
}

.card{
  border:1px solid var(--fig-stroke);
  border-radius:20px;
  background:linear-gradient(180deg,#ffffff 0%,var(--fig-surface-soft) 100%);
  box-shadow:var(--fig-shadow-md), inset 0 1px 0 rgba(255,255,255,.97);
  padding:20px;
  margin-bottom:16px;
}
.sticky-group,
.cpt-filter-row,
.result-card,
.about-card,
.kpi-card{
  border:1px solid var(--fig-stroke);
  border-radius:var(--fig-radius-lg);
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  box-shadow:var(--fig-shadow-sm), inset 0 1px 0 rgba(255,255,255,.95);
}

.card h3,
.sticky-group h3{
  margin-bottom:12px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--fig-muted);
}
.field-group label,
.kpi-label,
.about-card h4{
  color:var(--fig-muted);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
}

input,
select,
textarea,
#refProcCombo,
#refPayerCombo,
#checkerProcCombo,
#checkerPayerCombo,
#cptSearch,
#cptCategoryFilter{
  border:1px solid var(--fig-stroke) !important;
  border-radius:var(--fig-radius-sm) !important;
  background:#fbfdff !important;
  color:var(--fig-text) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95) !important;
  transition:border-color .16s var(--fig-ease), box-shadow .16s var(--fig-ease), background-color .16s var(--fig-ease) !important;
}
input,
select,
#refProcCombo,
#refPayerCombo,
#checkerProcCombo,
#checkerPayerCombo,
#cptSearch,
#cptCategoryFilter{
  min-height:44px;
  padding-top:9px;
  padding-bottom:9px;
}
textarea{
  min-height:176px;
  line-height:1.55;
}
#noteArea{
  min-height:max(176px,var(--mobile-note-min));
}
input:hover,
select:hover,
textarea:hover,
#refProcCombo:hover,
#refPayerCombo:hover,
#checkerProcCombo:hover,
#checkerPayerCombo:hover,
#cptSearch:hover,
#cptCategoryFilter:hover{
  background:#ffffff !important;
}
input:focus,
select:focus,
textarea:focus,
#refProcCombo:focus,
#refPayerCombo:focus,
#checkerProcCombo:focus,
#checkerPayerCombo:focus,
#cptSearch:focus,
#cptCategoryFilter:focus{
  border-color:rgba(37,99,235,.58) !important;
  box-shadow:0 0 0 4px var(--fig-focus), inset 0 1px 0 rgba(255,255,255,.95) !important;
  outline:none !important;
}

.combo-shell{
  border-radius:var(--fig-radius-sm);
}
.combo-menu{
  border:1px solid var(--fig-stroke);
  border-radius:var(--fig-radius-md);
  box-shadow:var(--fig-shadow-lg);
  background:#ffffff;
}
.combo-menu-group{
  color:var(--fig-muted);
  font-size:12px;
  letter-spacing:.03em;
}
.combo-menu-item{
  font-size:13px;
}
.combo-menu-item:hover,
.combo-menu-item.active{
  background:linear-gradient(90deg,var(--fig-blue) 0%,var(--fig-blue-strong) 100%);
  color:#fff;
}

.btn{
  height:42px;
  border-radius:12px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.01em;
  padding:0 15px;
  border:1px solid transparent;
  transition:transform .16s var(--fig-ease), box-shadow .16s var(--fig-ease), background-color .16s var(--fig-ease), border-color .16s var(--fig-ease);
}
.btn:hover{
  transform:translateY(-1px);
}
.btn-primary{
  background:linear-gradient(160deg,#1b7def 0%,#126be2 100%);
  color:#ffffff;
  border-color:rgba(18,107,226,.42);
  box-shadow:0 8px 18px rgba(18,107,226,.24);
}
.btn-primary:hover{
  background:linear-gradient(160deg,#2184f4 0%,#176fe6 100%);
}
.btn-primary:active{
  transform:translateY(0);
  background:linear-gradient(160deg,#156fdf 0%,#0f63cf 100%);
  box-shadow:0 5px 12px rgba(18,107,226,.22);
}
.btn-secondary{
  background:#ffffff;
  color:var(--fig-text);
  border-color:var(--fig-stroke);
  box-shadow:var(--fig-shadow-sm);
}
.btn-secondary:hover{
  background:#f8fbff;
}
.btn-tertiary{
  background:transparent;
  color:var(--fig-muted);
}
.btn-tertiary:hover{
  background:rgba(15,23,42,.05);
  color:#334a6d;
}

.app-actions{
  margin-top:12px;
  gap:8px;
}
.kbd-hint{
  font-size:11px;
  color:var(--fig-muted-soft);
}

.result-card{
  margin-top:12px;
  padding:14px;
}
.result-card h4{
  font-size:15px;
  font-weight:750;
  letter-spacing:-.01em;
}
.result-col h5{
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  color:var(--fig-muted);
}
.result-col li{
  font-size:13px;
  line-height:1.45;
}
.check{color:var(--fig-success)}
.miss{color:var(--fig-danger)}

.badge{
  font-size:11px;
  font-weight:700;
  border:1px solid transparent;
}
.badge-blue{
  background:rgba(37,99,235,.12);
  color:var(--fig-blue-strong);
  border-color:rgba(37,99,235,.22);
}
.badge-green{
  background:rgba(15,159,110,.1);
  color:var(--fig-success);
  border-color:rgba(15,159,110,.2);
}
.badge-yellow{
  background:rgba(175,122,44,.1);
  color:var(--fig-warning);
  border-color:rgba(175,122,44,.2);
}
.badge-red{
  background:rgba(196,71,61,.1);
  color:var(--fig-danger);
  border-color:rgba(196,71,61,.2);
}

.med-nec{
  background:rgba(37,99,235,.08);
  border:1px solid rgba(37,99,235,.2);
  border-radius:var(--fig-radius-md);
}
.notes-box{
  background:rgba(175,122,44,.08);
  border:1px solid rgba(175,122,44,.22);
  border-radius:var(--fig-radius-md);
}
.payer-docs-highlight{
  border:1px solid rgba(37,99,235,.24);
  border-radius:var(--fig-radius-md);
  background:rgba(37,99,235,.07);
}
.payer-docs-highlight strong{
  color:var(--fig-blue-strong);
}

.det-draft-block{
  border-color:rgba(37,99,235,.24);
  background:rgba(37,99,235,.06);
}
.det-draft-label{
  color:var(--fig-blue-strong);
}
.det-draft-text{
  border:1px solid var(--fig-stroke-strong);
  border-radius:var(--fig-radius-md);
  background:#ffffff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96);
}

.cpt-search-row{
  margin-bottom:12px;
}
.cpt-search-row #cptSearch{
  width:100%;
  box-sizing:border-box;
  min-height:44px;
  padding:11px 16px !important;
  padding-inline:16px !important;
  font-size:14px;
  line-height:1.3;
}
.cpt-search-row #cptSearch::placeholder{
  color:var(--fig-muted-soft);
}
.cpt-filter-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:12px;
  padding:9px;
}
#cptCategoryFilter{
  min-width:220px;
}
#cptResultCount{
  font-size:12px;
  color:var(--fig-muted);
  align-self:center;
}
.cpt-token{
  border:1px solid rgba(37,99,235,.3);
  border-radius:999px;
  background:rgba(37,99,235,.09);
  color:var(--fig-blue-strong);
  font-weight:600;
  padding:3px 9px;
}
.cpt-token:hover,
.cpt-token:focus{
  background:rgba(37,99,235,.15);
  border-color:rgba(37,99,235,.46);
}

.cpt-popup{
  border:1px solid var(--fig-stroke);
  border-radius:14px;
  background:#ffffff;
  box-shadow:var(--fig-shadow-lg);
}

.about-grid{
  gap:12px;
}
.about-card{
  padding:13px;
}
.about-line{
  font-size:14px;
  color:var(--fig-text);
}
.about-line a{
  color:var(--fig-blue-strong);
}
.kpi-grid{
  gap:12px;
}
.kpi-card{
  padding:13px 13px 11px;
}
.kpi-value{
  color:var(--fig-blue-strong);
  letter-spacing:-.02em;
}
.kpi-meta{
  color:var(--fig-muted);
}

.creator-credit{
  margin-top:2px;
  color:var(--fig-muted);
  font-size:12px;
}

@media(max-width:1080px){
  .page{
    max-width:100%;
    padding:22px 14px 48px;
  }
  .brand-title{
    font-size:clamp(20px,2.4vw,28px);
  }
  .card{
    padding:16px;
  }
}

@media(max-width:860px){
  .tab{
    padding:10px 8px;
    font-size:12px;
  }
  .brand-lockup{
    gap:9px;
  }
}

@media(max-width:640px){
  .page{
    max-width:100%;
    padding:calc(12px + env(safe-area-inset-top,0px) + var(--mobile-top-extra)) 10px calc(22px + env(safe-area-inset-bottom,0px) + var(--mobile-bottom-extra));
  }
  .page::before{
    width:560px;
    height:560px;
    inset:-34% auto auto 50%;
  }
  .app-topbar{
    top:calc(env(safe-area-inset-top,0px) + var(--mobile-top-extra) + 4px);
    border-radius:16px;
    padding:11px 10px 10px;
    margin-bottom:12px;
  }
  .brand-title{
    font-size:17px;
    line-height:1.18;
  }
  .brand-org{
    font-size:11px;
  }
  .tabs{
    gap:4px;
    padding:4px;
    border-radius:12px;
  }
  .tab{
    flex:0 0 calc((100% - 8px)/3);
    min-width:calc((100% - 8px)/3);
    border-radius:10px;
    font-size:11px;
    padding:9px 7px 8px;
  }
  .tab::after{
    left:8px;
    right:8px;
  }
  .card{
    border-radius:16px;
    padding:12px 11px;
  }
  .sticky-group{
    border-radius:13px;
    margin:-2px -4px 10px;
    padding:8px 8px 10px;
  }
  .field-row{
    flex-direction:column;
    gap:8px;
  }
  .field-group{
    min-width:0;
    width:100%;
  }
  textarea{
    min-height:136px;
  }
  #noteArea{
    min-height:var(--mobile-note-min);
  }
  .app-actions{
    gap:6px;
  }
  .app-actions .btn{
    flex:1 1 calc(50% - 3px);
    min-height:40px;
    justify-content:center;
  }
  .app-actions .btn-primary{
    flex-basis:100%;
  }
  .kbd-hint{
    width:100%;
    margin-left:0;
  }
  .result-row{
    flex-direction:column;
    gap:10px;
  }
  .result-col{
    min-width:0;
    width:100%;
  }
  .info-grid{
    grid-template-columns:1fr;
    gap:8px;
  }
  .cpt-filter-row{
    margin:0 -4px 10px;
  }
  #cptCategoryFilter{
    min-width:0;
    flex:1 1 190px;
  }
  #cptResultCount{
    flex:1 1 auto;
    text-align:right;
  }
  .about-grid,
  .kpi-grid{
    grid-template-columns:1fr;
    gap:8px;
  }
}

@media(max-width:400px){
  .brand-mark .vir{
    font-size:15px;
  }
  .brand-mark .tool{
    font-size:8px;
  }
  .brand-title{
    font-size:15px;
  }
  .tab{
    font-size:10px;
    padding:7px 6px;
  }
  .btn{
    font-size:12px;
    padding:0 11px;
  }
}

@media (prefers-reduced-motion: reduce){
  .panel.active,
  .tab,
  .btn,
  .cpt-token,
  input,
  select,
  textarea{
    animation:none !important;
    transition:none !important;
  }
  .btn:hover{
    transform:none;
  }
}


/* - Billing Assistant - */
.billing-sticky{
  position:relative;
  top:auto;
  z-index:1;
  margin:0 0 6px 0;
  padding:6px 10px;
  border:1px solid rgba(16,42,74,.14);
  border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,.74), rgba(249,252,255,.7));
  box-shadow:0 3px 8px rgba(11,34,74,.05);
}
.billing-sticky-combined{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.billing-sticky-copy{
  min-width:0;
  flex:1 1 auto;
}
.billing-sticky-titleline{
  display:flex;
  align-items:baseline;
  gap:6px;
  flex-wrap:wrap;
}
.billing-sticky .billing-sticky-titleline h3{
  margin:0;
}
.billing-sticky-sep{
  font-size:12px;
  color:var(--muted);
  font-weight:600;
}
.billing-sticky-proc-label{
  font-size:15px;
  font-weight:650;
  color:var(--text);
  letter-spacing:.01em;
}
.billing-sticky-hint{
  margin-top:2px;
  font-size:12px;
  color:var(--muted);
  line-height:1.35;
}
.billing-extraction-pill{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  min-width:0;
  text-align:right;
  line-height:1.15;
}
.billing-extraction-label{
  display:block;
  font-size:10px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--muted);
}
.billing-extraction-health{
  margin-top:1px;
  font-size:11px;
  color:var(--muted);
}
.billing-action-row{
  display:flex;
  gap:8px;
  margin-top:8px;
  align-items:flex-end;
  flex-wrap:wrap;
}
.billing-action-site-group{
  flex:0 0 220px;
  min-width:180px;
  max-width:250px;
}
.billing-action-row #billingSiteOfService{
  min-height:42px;
  height:42px;
  padding-top:8px;
  padding-bottom:8px;
}
.billing-action-site-group.is-hidden{
  display:none !important;
}
.billing-input-section{margin-top:4px;}
.billing-workspace{margin-top:4px;}
.billing-left-pane,
.billing-right-pane{min-width:0;}
.billing-pane-divider{display:none;}
.billing-left-slide-tab{display:none;}
.checker-input-section{margin-top:4px;}
.checker-note-viewer{
  border:1px solid rgba(16,42,74,.16);
  border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,251,255,.92));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.78);
  padding:14px;
  min-height:220px;
  max-height:56vh;
  overflow:auto;
  line-height:1.62;
  font-size:14px;
  letter-spacing:.01em;
  color:#172b49;
  font-family:'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  white-space:pre-wrap;
  word-break:break-word;
}
.checker-select-readonly{
  width:100%;
  border:none;
  border-radius:0;
  background:transparent;
  padding:6px 2px 0;
  font-size:13px;
  line-height:1.4;
  color:#132949;
}
.checker-output-line{
  display:flex;
  align-items:flex-start;
  gap:7px;
  min-width:0;
}
.checker-output-icon{
  flex:0 0 auto;
  font-size:13px;
  line-height:1.2;
  opacity:.78;
  transform:translateY(1px);
}
.checker-output-value{
  display:block;
  min-width:0;
  font-weight:600;
  letter-spacing:.005em;
  overflow-wrap:anywhere;
  word-break:normal;
}
#checker .field-row .field-group:nth-child(2) .checker-select-readonly{
  text-align:right;
  display:flex;
  justify-content:flex-end;
}
#checker .field-row .field-group:nth-child(2) .checker-output-line{
  justify-content:flex-end;
  margin-left:auto;
  width:max-content;
  max-width:100%;
}
#checker .field-row .field-group:nth-child(2) label{
  display:block;
  width:max-content;
  max-width:100%;
  margin-left:auto;
  text-align:left;
}
.checker-note-hit{
  background:rgba(245, 186, 73, .24);
  border-radius:4px;
  padding:0 1px;
  box-shadow:0 0 0 1px rgba(226,152,0,.14) inset;
}
.checker-note-hit.active{
  background:rgba(245, 186, 73, .44);
}
.checker-evidence-icon{
  appearance:none;
  border:1px solid rgba(10,118,255,.16);
  background:rgba(10,118,255,.04);
  color:#1d5cad;
  border-radius:999px;
  width:17px;
  height:17px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  margin-left:8px;
  font-size:10px;
  line-height:1;
  cursor:pointer;
  vertical-align:middle;
  opacity:.45;
  transition:opacity .15s ease,background-color .15s ease,border-color .15s ease;
}
.checker-evidence-icon:hover{
  opacity:.95;
  background:rgba(10,118,255,.12);
  border-color:rgba(10,118,255,.28);
}
.checker-evidence-icon:focus-visible{
  outline:2px solid rgba(10,118,255,.45);
  outline-offset:1px;
  opacity:1;
}
.checker-found-item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}
.checker-found-item .checker-found-text{
  flex:1 1 auto;
}
.checker-found-item:hover .checker-evidence-icon,
.checker-found-item:focus-within .checker-evidence-icon{
  opacity:1;
}
#checkerNoteViewer.checker-evidence-highlight-pulse{
  box-shadow:0 0 0 2px rgba(37,99,235,.28), 0 0 0 6px rgba(37,99,235,.08);
}
.billing-evidence-jump{
  appearance:none;
  border:none;
  background:transparent;
  padding:2px 0;
  margin:0;
  font:inherit;
  color:inherit;
  text-align:left;
  line-height:1.45;
  cursor:pointer;
}
.billing-evidence-jump:hover{text-decoration:underline;color:#0455c8;}
.billing-evidence-jump.inline{
  display:inline-flex;
  align-items:center;
  font-size:11px;
  color:#0b66d2;
  text-decoration:underline;
  margin-left:6px;
}
.billing-evidence-icon{
  appearance:none;
  border:1px solid rgba(10,118,255,.16);
  background:rgba(10,118,255,.04);
  color:#1d5cad;
  border-radius:999px;
  width:16px;
  height:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  margin-left:6px;
  font-size:10px;
  line-height:1;
  cursor:pointer;
  vertical-align:middle;
  opacity:.45;
  transition:opacity .15s ease,background-color .15s ease,border-color .15s ease;
}
.billing-evidence-icon:hover{
  opacity:.95;
  background:rgba(10,118,255,.12);
  border-color:rgba(10,118,255,.28);
}
.billing-evidence-icon:focus-visible{
  outline:2px solid rgba(10,118,255,.45);
  outline-offset:1px;
  opacity:1;
}
.billing-ai-source-icon{
  appearance:none;
  border:1px solid rgba(180,83,9,.24);
  background:rgba(180,83,9,.08);
  color:#92400e;
  border-radius:999px;
  min-width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 5px;
  margin-left:6px;
  font-size:9.5px;
  line-height:1;
  font-weight:700;
  letter-spacing:.02em;
  cursor:pointer;
  vertical-align:middle;
  opacity:.82;
  transition:opacity .15s ease,background-color .15s ease,border-color .15s ease,transform .15s ease;
}
.billing-ai-source-icon:hover{
  opacity:1;
  background:rgba(180,83,9,.14);
  border-color:rgba(180,83,9,.36);
  transform:translateY(-1px);
}
.billing-ai-source-icon:focus-visible{
  outline:2px solid rgba(180,83,9,.45);
  outline-offset:1px;
  opacity:1;
}
.billing-strong-with-icon{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.billing-strong-with-icon .billing-strong-text{
  min-width:0;
}
.billing-strong-with-icon .billing-evidence-icon{
  margin-left:0;
}
#billingDictation.billing-evidence-highlight-pulse{
  box-shadow:0 0 0 2px rgba(37,99,235,.28), 0 0 0 6px rgba(37,99,235,.08);
}
.billing-loading-shell{display:grid;gap:12px;}
.billing-loading-progress-card{
  border:1px solid rgba(71,119,255,.28);
  border-radius:12px;
  background:rgba(245,249,255,.9);
  padding:12px;
  box-shadow:0 1px 2px rgba(15,23,42,.06);
}
.billing-loading-progress-title{
  font-size:11px;
  font-weight:700;
  color:#17395a;
  text-transform:uppercase;
  letter-spacing:.04em;
  margin-bottom:6px;
}
.billing-loading-progress-stage{
  font-size:13px;
  color:#133354;
  margin-bottom:6px;
}
.billing-loading-progress-metrics,
.billing-loading-progress-keys{
  font-size:11.5px;
  color:#2f4f70;
  margin-bottom:4px;
}
.billing-loading-progress-preview{
  margin:6px 0 2px;
  padding:6px 8px;
  border:1px solid rgba(43,94,177,.18);
  border-radius:8px;
  background:rgba(255,255,255,.78);
  font-size:11.5px;
  line-height:1.35;
  color:#1f3f5f;
  font-family:inherit;
  white-space:pre-wrap;
  max-height:88px;
  overflow:auto;
}
.billing-loading-progress-events-wrap{
  margin-top:8px;
  border-top:1px dashed rgba(43,94,177,.24);
  padding-top:8px;
}
.billing-loading-progress-events-title{
  font-size:10.5px;
  font-weight:700;
  color:#52708f;
  text-transform:uppercase;
  letter-spacing:.03em;
  margin-bottom:4px;
}
.billing-loading-progress-events{
  max-height:120px;
  overflow:auto;
  font-size:11.5px;
  color:#244463;
  line-height:1.4;
}
.billing-loading-progress-objects{
  max-height:180px;
}
.billing-loading-progress-event{
  padding:2px 0;
  border-bottom:1px dotted rgba(43,94,177,.16);
}
.billing-loading-progress-event:last-child{border-bottom:0;}
.billing-loading-progress-object{
  font-family:inherit;
  white-space:pre-wrap;
  word-break:break-word;
}
.billing-loading-card{
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  background:rgba(255,255,255,.68);
  padding:12px;
}
.billing-loading-line{
  height:11px;
  border-radius:7px;
  background:linear-gradient(90deg, rgba(15,33,61,.06) 10%, rgba(15,33,61,.14) 40%, rgba(15,33,61,.06) 70%);
  background-size:200% 100%;
  animation:billing-shimmer 1.2s linear infinite;
  margin-bottom:10px;
}
.billing-loading-line:last-child{margin-bottom:0;}
.billing-loading-line.w40{width:40%;}
.billing-loading-line.w55{width:55%;}
.billing-loading-line.w70{width:70%;}
.billing-loading-line.w85{width:85%;}
.billing-loading-line.w100{width:100%;}
@keyframes billing-shimmer{to{background-position:-200% 0;}}
.billing-streaming-placeholder{
  margin-top:10px;
  padding:12px 14px;
  border:1px dashed rgba(43,94,177,.32);
  border-radius:12px;
  background:rgba(244,248,255,.78);
  color:#244463;
  font-size:12px;
  line-height:1.45;
}
.billing-error{background:rgba(179,38,30,.08);border:1px solid rgba(179,38,30,.2);border-radius:10px;padding:12px 16px;color:#b3261e;font-size:13px;margin-top:10px;}
.billing-result-header{display:flex;align-items:center;gap:6px;margin-bottom:10px;flex-wrap:wrap;}
.billing-result-header-main{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap;}
.billing-result-header h4{margin:0;font-size:15px;font-weight:700;color:var(--text);line-height:1.15;}
.billing-extraction-progress-pill{
  margin-left:auto;
  width:320px;
  max-width:100%;
  border:none;
  border-radius:999px;
  padding:0;
  background:transparent;
  box-shadow:none;
  display:flex;
  align-items:center;
  gap:4px;
}
.billing-extraction-progress-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:6px;
}
.billing-extraction-progress-label{
  font-size:9px;
  text-transform:none;
  letter-spacing:0;
  font-weight:600;
  color:#3b4e64;
  flex:1 1 auto;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  transition:color .2s ease;
}
.billing-extraction-progress-percent{
  font-size:8px;
  font-weight:700;
  color:#1f3650;
  flex:0 0 auto;
  line-height:1;
}
.billing-extraction-progress-track{
  position:relative;
  flex:1 1 auto;
  min-width:66px;
  height:3px;
  border-radius:999px;
  background:rgba(26,76,130,.12);
  overflow:hidden;
}
.billing-extraction-progress-fill{
  position:absolute;
  inset:0 auto 0 0;
  width:0%;
  border-radius:999px;
  background:#2f7cf0;
  transition:width .28s ease;
}
.billing-extraction-progress-pill.is-running .billing-extraction-progress-fill{
  background:#2f7cf0;
  animation:billing-progress-pulse 1.2s ease-in-out infinite;
}
.billing-extraction-progress-pill.is-done .billing-extraction-progress-fill{
  background:#209251;
}
.billing-extraction-progress-pill.is-error{
  background:transparent;
}
.billing-extraction-progress-pill.is-error .billing-extraction-progress-fill{
  background:#c0342b;
  animation:none;
}
.billing-extraction-progress-pill.is-error .billing-extraction-progress-label,
.billing-extraction-progress-pill.is-error .billing-extraction-progress-percent{
  color:#8f241d;
}
@keyframes billing-progress-pulse{
  0%{filter:brightness(1);}
  50%{filter:brightness(1.14);}
  100%{filter:brightness(1);}
}
.billing-results-columns{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:10px;
  min-width:0;
}
.billing-results-col{min-width:0;}
.billing-results-divider{display:none;}
.billing-badge{display:inline-flex;align-items:center;padding:3px 10px;border-radius:20px;font-size:11px;font-weight:600;letter-spacing:.3px;}
.billing-badge.site-obl{background:rgba(13,139,69,.12);color:#0d8b45;}
.billing-badge.site-facility{background:rgba(10,118,255,.1);color:#0455c8;}
.billing-badge.site-asc{background:rgba(168,106,0,.1);color:#a86a00;}
.billing-badge.billing-global{background:rgba(13,139,69,.08);color:#0d8b45;border:1px solid rgba(13,139,69,.15);}
.billing-badge.billing-prof{background:rgba(10,118,255,.08);color:#0455c8;border:1px solid rgba(10,118,255,.15);}
@media(min-width:861px){
  .billing-result-header{
    flex-wrap:nowrap;
    align-items:center;
    padding:4px 10px;
    border:1px solid rgba(16,42,74,.12);
    border-radius:10px;
    background:linear-gradient(180deg, rgba(255,255,255,.94), rgba(247,251,255,.9));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.84);
  }
  .billing-result-header-main{
    flex:1 1 auto;
    padding:2px 2px 2px 0;
    border:none;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
  .billing-result-header .billing-badge{
    padding:2px 8px;
    font-size:10px;
    line-height:1.1;
  }
  .billing-extraction-progress-pill{
    margin-left:0;
    flex:0 0 290px;
  }
  #billingTokenCount{
    display:none !important;
  }
  .billing-loading-shell-desktop .billing-loading-result-header{
    margin-bottom:10px;
  }
  .billing-loading-shell-desktop .billing-results-columns{
    grid-template-columns:minmax(0,1fr) 6px minmax(300px,var(--billing-aux-pane-width,32%));
    gap:4px;
    align-items:stretch;
  }
  .billing-loading-shell-desktop .billing-results-divider{
    display:block;
    height:100%;
    margin:0;
    border-radius:999px;
    background:rgba(15,33,61,.04);
    box-shadow:inset 0 0 0 1px rgba(15,33,61,.05);
  }
}
@media(max-width:860px){
  .billing-extraction-progress-pill{
    display:none;
  }
}
.billing-section{margin-top:10px;border:1px solid rgba(0,0,0,.08);border-radius:12px;overflow:visible;}
.billing-section-header{padding:8px 12px;font-weight:600;font-size:13px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;user-select:none;transition:background .15s;}
.billing-section-header:hover{background:rgba(0,0,0,.02);}
.billing-section-header .chevron{transition:transform .2s cubic-bezier(.16,1,.3,1);font-size:12px;color:var(--muted);}
.billing-section-header.open .chevron{transform:rotate(90deg);}
.billing-section-body{padding:0 12px 10px 12px;overflow:visible;}
.billing-scroll-anchor{display:block;height:0;line-height:0;pointer-events:none;}
.billing-section-split{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:8px;
  align-items:start;
}
.billing-section-main,
.billing-section-side{min-width:0;}
.billing-section.codes .billing-section-header{background:rgba(10,118,255,.04);}
.billing-section.warnings .billing-section-header{background:rgba(168,106,0,.04);}
.billing-section.compliance .billing-section-header{background:rgba(179,38,30,.04);}
.billing-section.docs .billing-section-header{background:rgba(13,139,69,.04);}
.billing-section.payment .billing-section-header{background:rgba(115,60,200,.04);}
.billing-section.billing-summary-pop{
  border:2px solid rgba(10,118,255,.28);
  box-shadow:0 14px 26px rgba(10,118,255,.14);
  background:linear-gradient(180deg, rgba(248,252,255,.92) 0%, rgba(243,248,255,.86) 100%);
}
.billing-section.billing-summary-pop .billing-section-header{
  background:linear-gradient(180deg, rgba(221,237,255,.95) 0%, rgba(208,230,255,.9) 100%);
}
.billing-section.billing-summary-pop .billing-charge-summary{
  gap:12px;
}
.billing-section.underbilling-priority{
  border:2px solid rgba(168,106,0,.35);
  box-shadow:0 10px 22px rgba(168,106,0,.16);
}
.billing-section.underbilling-priority .billing-section-header{
  background:linear-gradient(180deg,rgba(255,243,214,.86) 0,rgba(255,236,194,.86) 100%);
}
.billing-underbilling-lead{
  font-size:12px;
  font-weight:600;
  color:#8a5a00;
  margin-bottom:6px;
}
.billing-section.parallel-review{
  border:1px solid rgba(10,118,255,.25);
  box-shadow:0 8px 18px rgba(10,118,255,.08);
}
.billing-section.parallel-review .billing-section-header{
  background:linear-gradient(180deg,rgba(236,246,255,.88) 0,rgba(226,240,255,.88) 100%);
}
.billing-parallel-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  font-weight:600;
  border-radius:999px;
  padding:4px 10px;
  margin-bottom:8px;
}
.billing-parallel-status.ok{background:rgba(13,139,69,.12);color:#0d8b45;}
.billing-parallel-status.attention{background:rgba(168,106,0,.14);color:#8a5a00;}
.billing-parallel-status.running,
.billing-parallel-status.info{background:rgba(10,118,255,.12);color:#0455c8;}
.billing-parallel-status.error{background:rgba(179,38,30,.12);color:#8b1a1a;}
.billing-parallel-meta{
  font-size:11.5px;
  color:var(--muted);
  margin:2px 0 8px;
}
.billing-parallel-meta.error{color:#8b1a1a;}
.billing-parallel-empty{
  font-size:12px;
  color:#0d8b45;
  margin-top:4px;
}
.billing-parallel-row{
  border:1px solid rgba(10,118,255,.2);
  border-radius:10px;
  padding:8px 10px;
  margin:8px 0;
  background:rgba(255,255,255,.74);
}
.billing-parallel-row.is-resolved{
  opacity:.74;
  background:rgba(0,0,0,.02);
}
.billing-parallel-row-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}
.billing-parallel-row-title{
  font-size:12px;
  font-weight:600;
  line-height:1.35;
}
.billing-parallel-confidence{
  font-size:11px;
  color:#0455c8;
  background:rgba(10,118,255,.1);
  border-radius:999px;
  padding:2px 7px;
  white-space:nowrap;
}
.billing-parallel-row-line{
  font-size:11.5px;
  color:var(--muted);
  margin-top:4px;
}
.billing-parallel-evidence{
  margin:4px 0 0 16px;
  padding:0;
}
.billing-parallel-evidence li{
  font-size:11.5px;
  color:var(--muted);
  margin:2px 0;
}
.billing-parallel-actions{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:8px;
}
.billing-parallel-disposition{
  font-size:11.5px;
  color:#0d8b45;
  font-weight:600;
  text-transform:capitalize;
}
.billing-parallel-side{
  border:1px solid rgba(10,118,255,.22);
  border-radius:10px;
  padding:10px;
  background:linear-gradient(180deg,rgba(240,247,255,.8) 0%, rgba(250,252,255,.9) 100%);
  position:relative;
  overflow:hidden;
}
.billing-parallel-side.is-running::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:3px;
  background:linear-gradient(90deg, rgba(10,118,255,.25), rgba(10,118,255,.95), rgba(10,118,255,.25));
  background-size:220% 100%;
  animation:billing-running-bar 1.15s linear infinite;
}
.billing-parallel-side-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  font-size:12px;
  font-weight:700;
  margin-bottom:8px;
}
.billing-parallel-title{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.billing-parallel-side-head .billing-parallel-status{
  margin-bottom:0;
  font-size:11px;
  padding:3px 8px;
}
.billing-running-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:#1d5cad;
  box-shadow:0 0 0 0 rgba(29,92,173,.45);
  animation:billing-running-dot 1.2s ease-out infinite;
}
.billing-parallel-running-wrap{
  border:1px solid rgba(10,118,255,.18);
  border-radius:8px;
  background:rgba(255,255,255,.75);
  padding:8px 9px;
  margin:0 0 8px;
}
.billing-parallel-thinking{
  border:1px solid rgba(10,118,255,.24);
  border-radius:10px;
  background:
    radial-gradient(120% 140% at 100% 0, rgba(10,118,255,.14) 0%, rgba(10,118,255,0) 58%),
    linear-gradient(165deg, rgba(255,255,255,.88) 0%, rgba(243,248,255,.9) 100%);
  box-shadow:0 10px 24px rgba(9,63,141,.12);
  padding:9px;
  margin:0 0 8px;
}
.billing-parallel-thinking-head{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  color:#1d5cad;
}
.billing-parallel-thinking-sub{
  font-size:11.5px;
  color:var(--muted);
  margin-top:6px;
  line-height:1.35;
}
.billing-parallel-phase-stack{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:7px;
  margin-top:8px;
}
.billing-parallel-phase-card{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  border-radius:9px;
  border:1px solid rgba(47,79,130,.22);
  background:rgba(255,255,255,.78);
  padding:7px 8px;
}
.billing-parallel-phase-card.is-complete{
  border-color:rgba(13,139,69,.34);
  background:linear-gradient(165deg, rgba(236,250,243,.88) 0%, rgba(248,255,250,.88) 100%);
}
.billing-parallel-phase-card.is-active{
  border-color:rgba(10,118,255,.48);
  background:linear-gradient(165deg, rgba(232,243,255,.9) 0%, rgba(247,251,255,.9) 100%);
  animation:billing-phase-pulse 1.4s ease-in-out infinite;
}
.billing-parallel-phase-card.is-pending{
  border-color:rgba(47,79,130,.18);
  background:rgba(255,255,255,.62);
}
.billing-parallel-phase-index{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:56px;
  font-size:10.5px;
  font-weight:700;
  color:#2b4f9d;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.billing-parallel-phase-body{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.billing-parallel-phase-body strong{
  font-size:11.5px;
  line-height:1.3;
  color:#274986;
}
.billing-parallel-phase-body span{
  font-size:11px;
  color:var(--muted);
  line-height:1.35;
  margin-top:2px;
}
.billing-parallel-phase-state{
  font-size:10.5px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.03em;
  color:#44628f;
}
.billing-parallel-phase-card.is-complete .billing-parallel-phase-state{color:#0d8b45;}
.billing-parallel-phase-card.is-active .billing-parallel-phase-state{color:#0455c8;}
.billing-parallel-running-line{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:11.5px;
  color:#1d5cad;
}
.billing-parallel-running-steps{
  position:relative;
  height:16px;
  margin-top:5px;
  font-size:11px;
  color:var(--muted);
}
.billing-parallel-running-steps span{
  position:absolute;
  left:0;
  top:0;
  opacity:0;
  animation:billing-running-step 8s linear infinite;
}
.billing-parallel-running-steps span:nth-child(2){animation-delay:2s;}
.billing-parallel-running-steps span:nth-child(3){animation-delay:4s;}
.billing-parallel-running-steps span:nth-child(4){animation-delay:6s;}
.billing-parallel-side-note{
  font-size:11.5px;
  color:var(--muted);
  margin:0 0 8px;
  line-height:1.35;
}
.billing-parallel-side-note.error{color:#8b1a1a;}
@keyframes billing-running-dot{
  0%{box-shadow:0 0 0 0 rgba(29,92,173,.4);}
  100%{box-shadow:0 0 0 7px rgba(29,92,173,0);}
}
@keyframes billing-running-bar{
  0%{background-position:0 0;}
  100%{background-position:-220% 0;}
}
@keyframes billing-running-step{
  0%{opacity:0;}
  10%{opacity:1;}
  30%{opacity:1;}
  40%{opacity:0;}
  100%{opacity:0;}
}
@keyframes billing-phase-pulse{
  0%{box-shadow:0 0 0 0 rgba(10,118,255,.22);}
  100%{box-shadow:0 0 0 6px rgba(10,118,255,0);}
}
@keyframes billing-manual-open-pulse{
  0%{box-shadow:0 0 0 0 rgba(179,38,30,.34), 0 0 0 1px rgba(255,255,255,.75) inset;}
  100%{box-shadow:0 0 0 5px rgba(179,38,30,0), 0 0 0 1px rgba(255,255,255,.75) inset;}
}
.billing-parallel-side-item{
  border:1px solid rgba(10,118,255,.16);
  border-radius:8px;
  background:#fff;
  padding:8px;
  margin-top:8px;
}
.billing-parallel-side-item.is-resolved{
  opacity:.74;
  background:rgba(0,0,0,.015);
}
.billing-parallel-side-item.billing-reviewer-focus-pulse,
.billing-parallel-row.billing-reviewer-focus-pulse{
  box-shadow:0 0 0 2px rgba(180,83,9,.28), 0 0 0 6px rgba(180,83,9,.08);
  border-color:rgba(180,83,9,.45);
}
.billing-parallel-side-item-title{
  font-size:11.5px;
  font-weight:600;
  line-height:1.35;
}
.billing-parallel-summary-pop{
  border:1px solid rgba(115,60,200,.35);
  background:linear-gradient(180deg,rgba(247,241,255,.92) 0%,rgba(239,248,255,.92) 100%);
  box-shadow:0 8px 18px rgba(82,43,145,.15);
}
.billing-parallel-summary-pop .billing-parallel-side-item-title{
  font-size:12px;
  font-weight:700;
  color:#3f2a7a;
}
.billing-parallel-summary-pop.is-strong{
  border-color:rgba(115,60,200,.52);
  box-shadow:0 10px 24px rgba(82,43,145,.22);
}
.billing-parallel-kpi-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:6px;
}
.billing-parallel-kpi-row .k{
  font-size:11px;
  font-weight:600;
  color:#5e4b87;
}
.billing-parallel-kpi-row .v{
  font-size:13px;
  font-weight:700;
  color:#2b4f9d;
}
.billing-parallel-kpi-row .v.up{color:#0d8b45;}
.billing-parallel-kpi-row .v.down{color:#8b1a1a;}
.billing-parallel-side-line{
  font-size:11px;
  color:var(--muted);
  margin-top:3px;
  line-height:1.3;
}
.billing-opportunity-toolbar{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:8px;
}
.billing-opportunity-row{
  border:1px solid rgba(168,106,0,.24);
  border-radius:10px;
  padding:8px 10px;
  margin:8px 0;
  background:rgba(255,250,241,.75);
}
.billing-opportunity-row.is-included{
  border-color:rgba(13,139,69,.4);
  background:rgba(236,250,243,.8);
}
.billing-opportunity-toggle{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:11.5px;
  color:var(--muted);
  margin-bottom:4px;
}
.billing-code-row{display:flex;align-items:flex-start;gap:8px;padding:5px 0;border-bottom:1px solid rgba(0,0,0,.04);font-size:12.5px;line-height:1.35;}
.billing-code-row:last-child{border-bottom:none;}
.billing-inline-experimental-row{
  padding-left:4px;
}
.billing-inline-experimental-row.reasoning-engine{
  border-left:2px solid rgba(0,116,124,.18);
  padding-left:10px;
  background:linear-gradient(90deg, rgba(0,116,124,.04), rgba(0,116,124,.01));
}
.billing-code-row-reasoning{
  background:linear-gradient(90deg, rgba(0,116,124,.05), rgba(0,116,124,.012));
  border-left:2px solid rgba(0,116,124,.2);
  padding-left:10px;
  border-radius:8px;
}
.billing-inline-reasoning-badge{
  display:inline-flex;
  align-items:center;
  padding:1px 8px;
  border-radius:999px;
  background:rgba(0,116,124,.1);
  color:#006b74;
  font-weight:700;
  font-size:10.5px;
  margin-right:6px;
}
.billing-icd-split{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:14px;
}
.billing-icd-col{min-width:0;}
.billing-icd-unmapped-title{
  font-weight:600;
  font-size:12px;
  text-transform:uppercase;
  color:var(--warning);
  margin-bottom:6px;
}
.billing-icd-no-suggestions{
  font-size:11.5px;
  color:var(--muted);
  margin:2px 0 8px 34px;
}
.billing-code-tag{font-family:'SF Mono',SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;font-weight:600;background:rgba(10,118,255,.08);color:#0455c8;padding:2px 8px;border-radius:6px;white-space:nowrap;min-width:58px;text-align:center;}
.billing-code-tag.addon{background:rgba(115,60,200,.08);color:#6930c3;}
.billing-code-tag.discrepancy{
  background:rgba(168,106,0,.18);
  color:#8a5a00;
  border:1px solid rgba(168,106,0,.45);
  box-shadow:0 0 0 1px rgba(255,255,255,.6) inset;
}
.billing-code-tag.icd{background:rgba(13,139,69,.08);color:#0d8b45;}
.billing-code-tag.guidance{background:rgba(168,106,0,.08);color:#a86a00;}
.billing-code-tag.sedation{background:rgba(0,116,124,.1);color:#006b74;}
.billing-code-tag.supply{background:rgba(100,100,100,.08);color:#555;}
.billing-code-tag.modifier{background:rgba(179,38,30,.06);color:#b3261e;}
.billing-code-tag.modifier.is-dropped{
  background:rgba(139,26,26,.14);
  color:#8b1a1a;
  border:1px solid rgba(139,26,26,.26);
  text-decoration:line-through;
  opacity:.82;
}
.billing-code-tag.optional-selected{
  background:rgba(13,139,69,.20);
  color:#0b6f39;
  border:1px solid rgba(13,139,69,.42);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.42);
}
.billing-code-tag.ai-assisted{background:rgba(180,83,9,.12);color:#92400e;border:1px solid rgba(180,83,9,.28);}
.billing-code-tag.reasoning-engine{background:rgba(10,92,79,.12);color:#0a5c4f;border:1px solid rgba(10,92,79,.24);}
.billing-code-tag.suppressed{background:rgba(139,26,26,.08);color:#8b1a1a;text-decoration:line-through;opacity:.75;}
.billing-code-tag.billing-cpt-token{cursor:pointer;}
.billing-code-tag.billing-cpt-token.active{box-shadow:0 0 0 2px rgba(37,99,235,.24) inset;}
.billing-payment-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:8px;}
.billing-payment-card{background:rgba(255,255,255,.7);border:1px solid rgba(0,0,0,.06);border-radius:10px;padding:14px 16px;text-align:center;}
.billing-payment-card .label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);margin-bottom:4px;}
.billing-payment-card .amount{font-size:22px;font-weight:700;font-variant-numeric:tabular-nums;}
.billing-payment-card .amount.obl{color:#0d8b45;}
.billing-payment-card .amount.facility{color:#0455c8;}
.billing-payment-card.optional{border-color:rgba(168,106,0,.35);background:rgba(255,247,232,.85);}
.billing-payment-card .amount.optional{color:#a86a00;}
.billing-optional-note{text-align:center;font-size:11.5px;color:#8a5a00;margin-top:6px;line-height:1.35;}
.billing-wrvu-line{text-align:center;font-size:13px;color:var(--muted);margin-top:6px;}
.billing-alerts-head{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:600;
  text-transform:uppercase;
  color:var(--warning);
  margin-top:10px;
  margin-bottom:6px;
}
.billing-alerts-audit-wrap{
  position:relative;
  display:inline-flex;
  align-items:center;
}
.billing-alerts-audit-trigger{
  font-size:11px;
  text-transform:none;
  font-weight:600;
  color:var(--muted);
  border-bottom:1px dotted rgba(0,0,0,.35);
  cursor:help;
  outline:none;
}
.billing-alerts-audit-popover{
  position:absolute;
  left:0;
  top:calc(100% + 6px);
  min-width:300px;
  max-width:min(560px,92vw);
  max-height:320px;
  overflow:auto;
  background:#fff;
  border:1px solid rgba(0,0,0,.14);
  border-radius:10px;
  box-shadow:0 12px 28px rgba(11,34,74,.18);
  padding:10px;
  z-index:3500;
  display:none;
}
.billing-alerts-audit-wrap:hover .billing-alerts-audit-popover,
.billing-alerts-audit-wrap:focus-within .billing-alerts-audit-popover{
  display:block;
}
.billing-sedation-split{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:12px;
}
.billing-sedation-col{min-width:0;}
.billing-alerts-audit-title{
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.03em;
  color:var(--muted);
  margin-bottom:6px;
}
.billing-flag{display:flex;align-items:flex-start;gap:8px;padding:5px 0;border-bottom:1px solid rgba(0,0,0,.04);font-size:12.5px;line-height:1.35;}
.billing-flag:last-child{border-bottom:none;}
.billing-flag-icon{font-size:14px;flex-shrink:0;margin-top:1px;}
.billing-flag-compliance .billing-flag-icon{color:#b3261e;}
.billing-flag-detail-wrap{margin-top:4px;display:flex;flex-direction:column;gap:3px;}
.billing-flag-detail{font-size:11.5px;color:var(--muted);line-height:1.35;}
.billing-narrative{font-size:13.5px;line-height:1.6;color:var(--text);padding:4px 0;}
.billing-charge-summary{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.billing-ai-disclaimer{
  border:1px solid rgba(10,118,255,.24);
  background:rgba(10,118,255,.08);
  color:#2b4f9d;
  border-radius:8px;
  padding:6px 9px;
  font-size:11.5px;
  font-weight:600;
}
.billing-finalize-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  border:1px solid rgba(0,0,0,.09);
  background:rgba(255,255,255,.8);
  border-radius:8px;
  padding:7px 9px;
}
.billing-finalize-state{
  font-size:11.5px;
  line-height:1.35;
  color:#33405e;
  font-weight:600;
}
.billing-finalize-state.ok{color:#0d8b45;}
.billing-finalize-state.attention{color:#8a5a00;}
.billing-charge-kpis{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:8px;
}
.billing-charge-kpi{
  border:1px solid rgba(0,0,0,.08);
  border-radius:10px;
  padding:8px 10px;
  background:rgba(255,255,255,.78);
}
.billing-charge-kpi .k{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.3px;
  color:var(--muted);
  font-weight:600;
}
.billing-charge-kpi .v{
  margin-top:2px;
  font-size:13px;
  font-weight:600;
  color:var(--text);
}
.billing-charge-block{
  border:1px solid rgba(0,0,0,.07);
  border-radius:10px;
  background:rgba(255,255,255,.75);
  padding:8px 10px;
}
.billing-charge-title{
  margin-bottom:8px;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.3px;
  color:#44516f;
}
.billing-charge-table{
  border:1px solid rgba(0,0,0,.08);
  border-radius:8px;
  overflow:visible;
}
.billing-charge-table-head,
.billing-charge-table-row{
  display:grid;
  grid-template-columns:50px 74px 42px 74px minmax(0,1fr);
  gap:7px;
  align-items:start;
  padding:7px 9px;
}
.billing-charge-table-head > span,
.billing-charge-table-row > span{
  min-width:0;
}
.billing-charge-table-head > span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.billing-charge-table-head > span:first-child,
.billing-charge-table-row > span:first-child{
  padding-right:2px;
  overflow:visible;
  text-overflow:clip;
}
.billing-charge-table-head > span:nth-child(2),
.billing-charge-table-row > span:nth-child(2){
  padding-left:2px;
}
.billing-charge-review-head{
  text-align:center;
}
.billing-charge-table-head{
  background:rgba(10,118,255,.05);
  font-size:10.5px;
  font-weight:700;
  text-transform:uppercase;
  color:var(--muted);
  letter-spacing:.3px;
}
.billing-charge-table-row{
  font-size:12.5px;
  border-top:1px solid rgba(0,0,0,.06);
}
.billing-charge-table-row.ai-assisted{
  background:linear-gradient(90deg, rgba(180,83,9,.08), rgba(180,83,9,.03));
}
.billing-charge-table-row.optional-selected{
  background:linear-gradient(90deg, rgba(13,139,69,.20), rgba(13,139,69,.09));
  box-shadow:inset 3px 0 0 rgba(13,139,69,.72);
}
.billing-charge-table-row.ai-assisted.optional-selected{
  background:linear-gradient(90deg, rgba(13,139,69,.22), rgba(13,139,69,.10));
  box-shadow:inset 3px 0 0 rgba(13,139,69,.72);
}
.billing-charge-table-row.reasoning-engine{
  background:linear-gradient(90deg, rgba(10,92,79,.08), rgba(10,92,79,.02));
  border-left:3px solid rgba(10,92,79,.55);
}
.billing-charge-type.reasoning-engine{
  background:rgba(10,92,79,.1);
  color:#0a5c4f;
}
.billing-reasoning-banner{
  margin-top:10px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(10,92,79,.2);
  background:linear-gradient(180deg, rgba(10,92,79,.10), rgba(10,92,79,.04));
  color:#0a5c4f;
  font-size:12px;
  font-weight:600;
}
.billing-engine-toggle{
  appearance:none;
  border:1px solid transparent;
  border-radius:999px;
  padding:6px 12px;
  font-size:11.5px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.billing-engine-toggle-inline{
  min-width:64px;
  padding:6px 10px;
  font-size:12px;
  flex:0 0 auto;
}
.billing-engine-toggle.is-on{
  background:rgba(24,90,219,.10);
  color:#1d4ed8;
  border-color:rgba(24,90,219,.24);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.45);
}
.billing-engine-toggle.is-off{
  background:rgba(179,38,30,.08);
  color:#b3261e;
  border-color:rgba(179,38,30,.2);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.45);
}
.billing-section.reasoning-engine-pop{
  border-color:rgba(10,92,79,.18);
  background:linear-gradient(180deg, rgba(10,92,79,.08), rgba(255,255,255,.96));
}
.billing-section.reasoning-engine-pop .billing-section-header{
  background:linear-gradient(180deg, rgba(10,92,79,.14), rgba(10,92,79,.08));
}
.billing-reasoning-inline-shell{
  margin-top:4px;
  padding:10px 12px;
  border:1px solid rgba(10,92,79,.18);
  border-radius:12px;
  background:linear-gradient(180deg, rgba(10,92,79,.08), rgba(255,255,255,.96));
}
.billing-reasoning-panel{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.billing-reasoning-panel.is-applied{
  border-left:3px solid rgba(10,92,79,.55);
  padding-left:10px;
}
.billing-reasoning-status-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.billing-reasoning-status{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:4px 10px;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.billing-reasoning-status.is-on{
  background:rgba(10,92,79,.14);
  color:#0a5c4f;
}
.billing-reasoning-status.is-off{
  background:rgba(90,90,90,.1);
  color:#555;
}
.billing-reasoning-delta{
  font-size:12px;
  color:var(--muted);
}
.billing-reasoning-summary{
  font-size:12.5px;
  color:#143b35;
}
.billing-reasoning-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:6px;
}
.billing-reasoning-action-item{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.billing-reasoning-action-label{
  font-size:11px;
  font-weight:700;
  color:#0a5c4f;
  letter-spacing:.02em;
}
.billing-reasoning-action-control .billing-manual-review-popover{
  min-width:138px;
}
.billing-reasoning-card{
  border:1px solid rgba(10,92,79,.12);
  border-radius:12px;
  padding:10px 12px;
  background:rgba(255,255,255,.82);
}
.billing-reasoning-card.is-applied{
  box-shadow:inset 0 0 0 1px rgba(10,92,79,.18);
}
.billing-reasoning-card-head{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:6px;
}
.billing-reasoning-line,
.billing-reasoning-audit-line,
.billing-reasoning-evidence{
  font-size:12px;
  color:#23423c;
}
.billing-reasoning-audit-head{
  margin-top:2px;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  color:#0a5c4f;
  letter-spacing:.03em;
}
.billing-modifier-tip-wrap{
  position:relative;
  display:inline-flex;
  align-items:center;
  vertical-align:middle;
  outline:none;
}
.billing-modifier-tooltip{
  position:absolute;
  left:50%;
  bottom:calc(100% + 8px);
  transform:translate(-50%, 4px);
  min-width:220px;
  max-width:300px;
  padding:8px 10px;
  border:1px solid rgba(16,42,74,.16);
  border-radius:10px;
  background:rgba(255,255,255,.98);
  box-shadow:0 12px 24px rgba(11,34,74,.16);
  color:var(--text);
  display:flex;
  flex-direction:column;
  gap:4px;
  z-index:30;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .12s ease,transform .12s ease;
}
.billing-modifier-tooltip strong{
  font-size:11px;
  color:#1f4178;
  line-height:1.35;
}
.billing-modifier-tooltip span{
  font-size:11px;
  color:var(--muted);
  line-height:1.4;
}
.billing-modifier-tip-wrap:hover .billing-modifier-tooltip,
.billing-modifier-tip-wrap:focus-within .billing-modifier-tooltip,
.billing-modifier-tip-wrap:focus-visible .billing-modifier-tooltip{
  opacity:1;
  visibility:visible;
  transform:translate(-50%, 0);
}
.billing-modifier-tip-wrap:focus-visible .billing-code-tag.modifier{
  box-shadow:0 0 0 2px rgba(10,118,255,.2);
}
.billing-charge-table-row.manual-keep{
  background:linear-gradient(90deg, rgba(13,139,69,.12), rgba(13,139,69,.04));
  box-shadow:inset 3px 0 0 rgba(13,139,69,.50);
}
.billing-charge-table-row.manual-drop{
  background:linear-gradient(90deg, rgba(139,26,26,.10), rgba(139,26,26,.03));
  box-shadow:inset 3px 0 0 rgba(139,26,26,.45);
}
.billing-charge-table-row.manual-drop > span:not(.billing-charge-manual-col){
  text-decoration:line-through;
  opacity:.78;
}
.billing-charge-manual-col{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  min-height:20px;
}
.billing-manual-review-control{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  outline:none;
}
.billing-manual-review-icon{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  padding:0;
  border-radius:999px;
  border:1px solid rgba(47,79,130,.28);
  background:rgba(47,79,130,.08);
  color:#2f4f82;
  font-size:10px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  user-select:none;
}
.billing-manual-review-icon.is-keep,
.billing-manual-review-icon.is-drop{
  cursor:default;
}
.billing-manual-review-icon.is-open{
  border-color:rgba(179,38,30,.55);
  background:rgba(179,38,30,.18);
  color:#8b1a1a;
  box-shadow:0 0 0 1px rgba(255,255,255,.75) inset;
  animation:billing-manual-open-pulse 1.2s ease-out infinite;
}
.billing-manual-review-icon.is-keep{
  border-color:rgba(13,139,69,.35);
  background:rgba(13,139,69,.16);
  color:#0f6a3b;
}
.billing-manual-review-icon.is-drop{
  border-color:rgba(139,26,26,.35);
  background:rgba(139,26,26,.14);
  color:#8b1a1a;
}
.billing-manual-review-control:focus-visible .billing-manual-review-icon,
.billing-manual-review-icon:focus-visible{
  box-shadow:0 0 0 2px rgba(10,118,255,.32);
}
.billing-manual-review-popover{
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  transform:translate(0, -4px);
  min-width:150px;
  padding:6px 7px;
  border:1px solid rgba(16,42,74,.16);
  border-radius:8px;
  background:#fff;
  box-shadow:0 10px 20px rgba(11,34,74,.14);
  display:flex;
  flex-direction:column;
  gap:4px;
  z-index:20;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .12s ease, transform .12s ease;
}
.billing-manual-review-control:hover .billing-manual-review-popover,
.billing-manual-review-control:focus-within .billing-manual-review-popover{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translate(0, 0);
}
.billing-manual-review-label{
  font-size:10px;
  font-weight:600;
  color:var(--muted);
  letter-spacing:.02em;
}
.billing-manual-review-select{
  width:100%;
  font-size:11px;
  padding:2px 4px;
  border:1px solid var(--border);
  border-radius:6px;
  background:#fff;
  color:var(--text);
}
.billing-coding-validation-hint{
  margin:0 0 8px;
  padding:6px 8px;
  border:1px solid rgba(175,122,44,.36);
  border-radius:8px;
  background:rgba(175,122,44,.10);
  color:#6d4b00;
}
.billing-charge-code{
  font-family:'SF Mono',SFMono-Regular,Menlo,Consolas,monospace;
  font-weight:700;
  color:#0455c8;
}
.billing-charge-type{
  display:inline-flex;
  margin-left:7px;
  padding:1px 6px;
  border-radius:999px;
  background:rgba(10,118,255,.08);
  color:#2f4f82;
  font-size:10.5px;
  font-weight:600;
}
.billing-charge-type.ai-assisted{
  background:rgba(180,83,9,.14);
  color:#92400e;
}
.billing-charge-type.optional-selected{
  background:rgba(13,139,69,.22);
  color:#0f6a3b;
  border:1px solid rgba(13,139,69,.42);
}
.billing-charge-note{
  margin-top:2px;
  font-size:11.5px;
  color:var(--muted);
  line-height:1.35;
}
.billing-charge-hcpcs-row{
  display:flex;
  align-items:flex-start;
  gap:8px;
  padding:6px 0;
  border-bottom:1px solid rgba(0,0,0,.04);
  font-size:12.5px;
}
.billing-charge-hcpcs-row:last-child{border-bottom:none;}
.billing-charge-dx-row{
  display:flex;
  align-items:flex-start;
  gap:8px;
  padding:6px 0;
  border-bottom:1px solid rgba(0,0,0,.04);
  font-size:12.5px;
}
.billing-charge-dx-row:last-child{border-bottom:none;}
.billing-charge-unmapped-head{
  margin-top:10px;
  font-size:11.5px;
  font-weight:700;
  text-transform:uppercase;
  color:#8a5a00;
}
.billing-charge-empty{
  font-size:12px;
  color:var(--muted);
}
.billing-charge-footnote{
  margin-top:8px;
  font-size:11px;
  color:var(--muted);
}
.billing-charge-narrative{
  border:1px solid rgba(0,0,0,.07);
  border-radius:10px;
  background:rgba(255,255,255,.72);
  padding:8px 10px;
}
.billing-charge-narrative summary{
  cursor:pointer;
  font-size:12px;
  font-weight:600;
  color:var(--muted);
}
.billing-inline-subsection-title{
  margin-top:10px;
  margin-bottom:6px;
  padding-top:10px;
  border-top:1px solid rgba(0,0,0,.06);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.3px;
  color:var(--muted);
}
.billing-inline-subsection-title-reasoning{
  color:#0a5c4f;
}
.billing-cath-summary{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  font-size:11.5px;
  color:var(--muted);
  padding:8px 0 10px;
}
.billing-cath-summary-item{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:3px 8px;
  border-radius:999px;
  font-weight:600;
}
.billing-cath-summary-item.ok{background:rgba(13,139,69,.1);color:#0d8b45;}
.billing-cath-summary-item.conflict{background:rgba(175,122,44,.14);color:#8a5a00;}
.billing-cath-summary-help{color:var(--muted);}
.billing-cath-row{align-items:flex-start;}
.billing-cath-head{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  gap:8px;
}
.billing-cath-vessel{
  font-weight:600;
  line-height:1.35;
}
.billing-cath-meta-line{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:2px;
}
.billing-cath-meta-text{
  font-size:11.5px;
  color:var(--muted);
}
.billing-cath-recon-wrap{
  position:relative;
  display:inline-block;
  margin-top:0;
  margin-left:0;
}
.billing-cath-recon-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  font-weight:600;
  border-radius:999px;
  padding:2px 9px;
  border:1px solid rgba(0,0,0,.14);
  background:#fff;
  color:var(--text);
  cursor:help;
}
.billing-cath-recon-pill .icon{font-size:11px;line-height:1;}
.billing-cath-recon-pill.recon-ok{background:rgba(13,139,69,.08);border-color:rgba(13,139,69,.35);color:#0d8b45;}
.billing-cath-recon-pill.recon-conflict{background:rgba(175,122,44,.13);border-color:rgba(175,122,44,.45);color:#8a5a00;}
.billing-cath-recon-pill.recon-override{background:rgba(10,118,255,.08);border-color:rgba(10,118,255,.32);color:#0455c8;}
.billing-cath-recon-pill.recon-verified{background:rgba(13,139,69,.12);border-color:rgba(13,139,69,.45);color:#0b7a3f;}
.billing-cath-recon-pill.recon-na{background:rgba(100,100,100,.08);border-color:rgba(100,100,100,.28);color:#666;}
.billing-cath-recon-popover{
  position:absolute;
  right:0;
  left:auto;
  top:calc(100% + 6px);
  min-width:300px;
  max-width:min(420px,88vw);
  background:#fff;
  border:1px solid rgba(0,0,0,.14);
  border-radius:10px;
  box-shadow:0 12px 28px rgba(11,34,74,.18);
  padding:10px 10px 8px;
  z-index:3000;
  display:none;
}
.billing-cath-mobile-overlay{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:calc(12px + env(safe-area-inset-top, 0px)) 12px calc(12px + env(safe-area-inset-bottom, 0px));
  background:rgba(6,17,34,.42);
  z-index:7000;
}
.billing-cath-mobile-overlay.open{display:flex;}
.billing-cath-mobile-sheet{
  width:min(92vw, 460px);
  max-height:min(78dvh, 680px);
  overflow:auto;
  background:#fff;
  border:1px solid rgba(0,0,0,.14);
  border-radius:12px;
  box-shadow:0 20px 50px rgba(10,30,60,.3);
  padding:10px;
  -webkit-overflow-scrolling:touch;
}
.billing-cath-mobile-close{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(0,0,0,.14);
  border-radius:8px;
  background:#fff;
  color:var(--text);
  font-size:12px;
  font-weight:600;
  padding:5px 10px;
  margin:0 0 8px auto;
  cursor:pointer;
}
.billing-cath-mobile-content{
  max-width:100%;
}
html.billing-cath-overlay-open,
body.billing-cath-overlay-open{
  overflow:hidden;
}
.billing-cath-recon-wrap:hover .billing-cath-recon-popover,
.billing-cath-recon-wrap:focus-within .billing-cath-recon-popover{
  display:none;
}
@media (max-width:640px), (hover:none) and (pointer:coarse){
  .billing-cath-recon-popover,
  .billing-cath-recon-wrap:hover .billing-cath-recon-popover,
  .billing-cath-recon-wrap:focus-within .billing-cath-recon-popover{
    display:none !important;
  }
  .billing-cath-recon-pill{cursor:pointer;}
  .billing-cath-recon-controls select{
    min-width:0;
    width:100%;
  }
}
.billing-cath-recon-title{
  font-size:12px;
  font-weight:700;
  margin-bottom:6px;
}
.billing-cath-recon-line{
  font-size:11.5px;
  color:var(--text);
  margin-bottom:3px;
  line-height:1.35;
}
.billing-cath-recon-line.muted{color:var(--muted);}
.billing-cath-recon-controls{
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid rgba(0,0,0,.08);
  display:flex;
  gap:6px;
  align-items:center;
  flex-wrap:wrap;
}
.billing-cath-recon-controls label{
  font-size:11px;
  color:var(--muted);
  font-weight:600;
}
.billing-cath-recon-controls select{
  width:auto;
  min-width:170px;
  padding:4px 7px;
  font-size:11.5px;
  border-radius:7px;
}
.billing-debug-label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.4px;color:var(--muted);margin:10px 0 6px 0;}
.billing-debug-pre{background:rgba(0,0,0,.03);border:1px solid rgba(0,0,0,.08);border-radius:8px;padding:10px;white-space:pre-wrap;word-break:break-word;font-size:11.5px;line-height:1.45;max-height:280px;overflow:auto;margin:0;}
.billing-export-row{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap;}
.billing-export-row .btn{min-width:0;}
.billing-regression{margin-top:10px;border:1px solid rgba(0,0,0,.08);border-radius:10px;background:rgba(0,0,0,.015);padding:10px 12px;}
.billing-regression-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-bottom:6px;}
.billing-regression-item{padding:8px 0;border-top:1px solid rgba(0,0,0,.06);}
.billing-regression-item:first-child{border-top:none;padding-top:2px;}
.billing-regression-pass{color:#0d8b45;font-weight:600;}
.billing-regression-fail{color:#b3261e;font-weight:600;}
.billing-regression-meta{font-size:11.5px;color:var(--muted);margin-top:2px;}
.billing-regression-failure{font-size:12px;color:#8b1a1a;margin-top:2px;}
.spinner{display:inline-block;width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:billing-spin .6s linear infinite;vertical-align:middle;margin-left:6px;}
@keyframes billing-spin{to{transform:rotate(360deg)}}
@media(min-width:861px){
  html:has(body.checker-tab-active.checker-split-active){
    overflow:hidden;
  }
  body.checker-tab-active.checker-split-active{
    overflow:hidden;
  }
  body.checker-tab-active.checker-split-active #checker.panel.active{
    height:var(--checker-panel-height, calc(100dvh - var(--billing-topbar-height, 0px) - 56px));
    overflow:hidden;
  }
  body.checker-tab-active.checker-split-active #checker.panel.active .card{
    height:100%;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    min-height:0;
  }
  .checker-workspace.is-split-live{
    --checker-left-pane-width:540px;
    display:grid;
    grid-template-columns:minmax(360px,var(--checker-left-pane-width)) 10px minmax(0,1fr);
    gap:0;
    align-items:stretch;
    margin-top:4px;
    flex:1 1 auto;
    min-height:0;
    height:100%;
    border:1px solid rgba(16,42,74,.14);
    border-radius:16px;
    background:linear-gradient(180deg, rgba(255,255,255,.56), rgba(248,252,255,.44));
    overflow:hidden;
  }
  .checker-workspace.is-split-live .checker-pane-divider{
    display:block;
    border-radius:8px;
    margin:0 2px;
    cursor:col-resize;
    background:linear-gradient(180deg, rgba(15,33,61,.05), rgba(15,33,61,.12), rgba(15,33,61,.05));
    touch-action:none;
    user-select:none;
    z-index:3;
  }
  .checker-workspace.is-split-live.is-resizing{
    cursor:col-resize;
    user-select:none;
  }
  .checker-workspace.is-split-live .checker-left-pane,
  .checker-workspace.is-split-live .checker-right-pane{
    min-height:0;
    height:100%;
    overflow-y:auto;
    padding:8px 10px 10px;
    scrollbar-gutter:stable;
    background:transparent;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  .checker-workspace.is-split-live .checker-right-pane{
    border-left:1px solid rgba(0,0,0,.07);
  }
  .checker-workspace.is-split-live .checker-left-pane .checker-input-section{
    margin-top:0;
    min-height:100%;
    display:flex;
    flex-direction:column;
  }
  .checker-workspace.is-split-live .checker-left-pane #noteArea{
    display:none !important;
  }
  .checker-workspace.is-split-live .checker-left-pane #checkerNoteViewer{
    display:block !important;
    flex:1 1 auto;
    min-height:320px;
    max-height:none;
  }
  .checker-workspace.is-split-live .checker-left-pane .app-actions{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    align-items:center;
  }
  .checker-workspace.is-split-live .checker-left-pane .app-actions > .btn{
    width:100%;
    justify-content:center;
    min-width:0;
  }
  .checker-workspace.is-split-live .checker-left-pane .app-actions .kbd-hint{
    grid-column:1 / -1;
    margin-left:0;
    text-align:center;
  }
  .checker-workspace.is-split-live .checker-right-pane .det-draft-block .app-actions{
    display:flex !important;
    justify-content:flex-end;
    align-items:center;
    gap:8px;
    margin-top:10px !important;
  }
  .checker-workspace.is-split-live .checker-right-pane .analysis-actions{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    align-items:center;
    margin-top:0;
    margin-bottom:10px;
  }
  .checker-workspace.is-split-live .checker-right-pane .analysis-actions > .btn{
    width:100%;
    min-width:0;
    justify-content:center;
  }
  .checker-workspace.is-split-live .checker-right-pane .det-draft-block .app-actions > .btn{
    min-width:120px;
    justify-content:center;
  }
  .checker-workspace.is-split-live .checker-right-pane #checkerResults{
    margin-top:0 !important;
  }
  .checker-workspace.is-split-live .checker-right-pane #checkerResults .result-card:first-child{
    margin-top:0;
  }
  html:has(body.billing-tab-active.billing-split-active){
    overflow:hidden;
  }
  body.billing-tab-active.billing-split-active{
    overflow:hidden;
  }
  body.billing-tab-active.billing-split-active #billing.panel.active{
    height:calc(100dvh - var(--billing-topbar-height, 0px) - 56px);
    overflow:hidden;
  }
  body.billing-tab-active.billing-split-active #billing.panel.active .card{
    height:100%;
    overflow:hidden;
    display:flex;
    flex-direction:column;
  }
  .billing-workspace.is-split-live{
    --billing-left-pane-width:540px;
    display:grid;
    grid-template-columns:minmax(360px,var(--billing-left-pane-width)) 10px minmax(0,1fr);
    gap:0;
    align-items:stretch;
    margin-top:4px;
    flex:1 1 auto;
    min-height:0;
    height:100%;
    border:1px solid rgba(16,42,74,.14);
    border-radius:16px;
    background:linear-gradient(180deg, rgba(255,255,255,.56), rgba(248,252,255,.44));
    overflow:hidden;
    position:relative;
    isolation:isolate;
  }
  .billing-workspace.is-split-live .billing-left-pane{
    grid-column:1;
    grid-row:1;
  }
  .billing-workspace.is-split-live .billing-pane-divider{
    grid-column:2;
    grid-row:1;
  }
  .billing-workspace.is-split-live .billing-right-pane{
    grid-column:3;
    grid-row:1;
  }
  .billing-workspace.is-split-live .billing-left-slide-tab{
    display:flex;
    position:absolute;
    left:calc(var(--billing-left-pane-width) - 12px);
    top:50%;
    transform:translateY(-50%) rotate(180deg);
    transform-origin:center;
    writing-mode:vertical-rl;
    text-orientation:mixed;
    align-items:center;
    justify-content:center;
    height:118px;
    min-height:118px;
    width:30px;
    border:1px solid rgba(33,106,205,.22);
    border-radius:8px 0 0 8px;
    background:rgba(46,124,240,.1);
    color:#3c5f86;
    font-size:12px;
    font-weight:700;
    letter-spacing:.02em;
    cursor:pointer;
    z-index:14;
    box-shadow:0 2px 8px rgba(28,66,122,.12);
    backdrop-filter:blur(4px);
    -webkit-backdrop-filter:blur(4px);
    transition:left .24s ease, background .18s ease, opacity .18s ease, box-shadow .18s ease;
    opacity:.9;
  }
  .billing-workspace.is-split-live .billing-left-slide-tab:hover{
    background:rgba(46,124,240,.16);
    opacity:.98;
    box-shadow:0 4px 10px rgba(28,66,122,.16);
  }
  .billing-workspace #billingFloatingReset,
  .billing-workspace.has-floating-reset #billingFloatingReset{
    display:none;
  }
  body.billing-tab-active.billing-split-active .billing-workspace.has-floating-reset.is-split-live.is-left-collapsed #billingFloatingReset:not([hidden]){
    display:inline-flex;
    position:fixed;
    left:auto;
    right:10px;
    bottom:8px;
    align-items:center;
    justify-content:center;
    min-height:30px;
    padding:0 12px;
    border:1px solid rgba(33,106,205,.22);
    border-radius:999px;
    background:rgba(46,124,240,.1);
    color:#3c5f86;
    font-size:11.5px;
    font-weight:600;
    letter-spacing:.01em;
    box-shadow:0 2px 8px rgba(28,66,122,.12);
    backdrop-filter:blur(4px);
    -webkit-backdrop-filter:blur(4px);
    cursor:pointer;
    z-index:260;
    opacity:.86;
    transition:transform .14s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
  }
  body.billing-tab-active.billing-split-active .billing-workspace.has-floating-reset.is-split-live.is-left-collapsed #billingFloatingReset:not([hidden]):hover{
    background:rgba(46,124,240,.16);
    opacity:.96;
    transform:translateY(-1px);
    box-shadow:0 4px 10px rgba(28,66,122,.16);
  }
  body.billing-tab-active.billing-split-active .billing-workspace.has-floating-reset.is-split-live.is-left-collapsed #billingFloatingReset:not([hidden]):active{
    transform:translateY(0);
    box-shadow:0 2px 6px rgba(28,66,122,.12);
  }
  .billing-workspace.is-split-live.is-left-collapsed{
    grid-template-columns:0 0 minmax(0,1fr);
  }
  .billing-workspace.is-split-live.is-left-collapsed .billing-pane-divider{
    display:block;
    width:0;
    min-width:0;
    margin:0;
    background:transparent;
    cursor:default;
    pointer-events:none;
  }
  .billing-workspace.is-split-live.is-left-collapsed .billing-left-pane{
    opacity:0;
    pointer-events:none;
    overflow:hidden;
    padding:0;
    transform:translateX(-14px);
  }
  .billing-workspace.is-split-live.is-left-collapsed.is-left-overlay .billing-left-pane{
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:var(--billing-left-pane-width);
    min-width:360px;
    max-width:78vw;
    z-index:12;
    opacity:1;
    pointer-events:auto;
    overflow-y:auto;
    padding:8px 10px 16px;
    transform:translateX(0);
    background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,255,.96));
    border-right:1px solid rgba(16,42,74,.14);
    box-shadow:10px 0 22px rgba(15,33,61,.12);
  }
  .billing-workspace.is-split-live.is-left-collapsed .billing-right-pane{
    border-left:none;
  }
  .billing-workspace.is-split-live.is-left-collapsed .billing-left-slide-tab{
    left:0;
  }
  .billing-workspace.is-split-live.is-left-collapsed.is-left-overlay .billing-left-slide-tab{
    left:calc(min(var(--billing-left-pane-width), 78vw) - 12px);
  }
  .billing-workspace.is-split-live::after{
    content:"";
    position:absolute;
    inset:0;
    border-radius:inherit;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.42);
    pointer-events:none;
  }
  .billing-workspace.is-split-live .billing-pane-divider{
    display:block;
    border-radius:8px;
    margin:0 2px;
    cursor:col-resize;
    background:linear-gradient(180deg, rgba(15,33,61,.05), rgba(15,33,61,.12), rgba(15,33,61,.05));
  }
  .billing-workspace.is-split-live.is-resizing{
    cursor:col-resize;
    user-select:none;
  }
  .billing-workspace.is-split-live .billing-left-pane,
  .billing-workspace.is-split-live .billing-right-pane{
    min-height:0;
    height:100%;
    overflow-y:auto;
    padding:8px 10px 16px;
    box-sizing:border-box;
    scrollbar-gutter:auto;
    background:transparent;
  }
  .billing-workspace.is-split-live .billing-left-pane{
    transition:opacity .2s ease, transform .24s ease, padding .2s ease;
  }
  .billing-workspace.is-split-live .billing-left-pane,
  .billing-workspace.is-split-live .billing-right-pane,
  .billing-workspace.is-split-live .billing-right-pane .billing-results-col-main,
  .billing-workspace.is-split-live .billing-right-pane .billing-results-col-aux{
    -ms-overflow-style:none;
    scrollbar-width:none;
  }
  .billing-workspace.is-split-live .billing-left-pane::-webkit-scrollbar,
  .billing-workspace.is-split-live .billing-right-pane::-webkit-scrollbar,
  .billing-workspace.is-split-live .billing-right-pane .billing-results-col-main::-webkit-scrollbar,
  .billing-workspace.is-split-live .billing-right-pane .billing-results-col-aux::-webkit-scrollbar{
    width:0;
    height:0;
    display:none;
  }
  .billing-workspace.is-split-live .billing-left-pane::-webkit-scrollbar-track,
  .billing-workspace.is-split-live .billing-right-pane::-webkit-scrollbar-track,
  .billing-workspace.is-split-live .billing-right-pane .billing-results-col-main::-webkit-scrollbar-track,
  .billing-workspace.is-split-live .billing-right-pane .billing-results-col-aux::-webkit-scrollbar-track{
    background:transparent;
  }
  .billing-workspace.is-split-live .billing-left-pane::-webkit-scrollbar-thumb,
  .billing-workspace.is-split-live .billing-right-pane::-webkit-scrollbar-thumb,
  .billing-workspace.is-split-live .billing-right-pane .billing-results-col-main::-webkit-scrollbar-thumb,
  .billing-workspace.is-split-live .billing-right-pane .billing-results-col-aux::-webkit-scrollbar-thumb{
    background:transparent;
  }
  .billing-workspace.is-split-live .billing-right-pane{
    border-left:1px solid rgba(0,0,0,.07);
  }
  .billing-workspace.is-split-live .billing-left-pane .billing-input-section{
    margin-top:0;
    min-height:100%;
    display:flex;
    flex-direction:column;
  }
  .billing-workspace.is-split-live .billing-left-pane #billingDictation{
    flex:1 1 auto;
    min-height:320px;
    height:auto;
    max-height:none;
  }
  .billing-workspace.is-split-live .billing-left-pane #billingDictation.billing-dictation-readable{
    background:linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,251,255,.92));
    border:1px solid rgba(16,42,74,.18);
    border-radius:12px;
    padding:14px;
    line-height:1.6;
    font-size:14px;
    letter-spacing:.01em;
    color:#172b49;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
    font-family:'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  }
  .billing-workspace.is-split-live .billing-left-pane .billing-action-row{
    position:static;
    margin-top:8px;
    padding:0;
    background:transparent;
    border-top:none;
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px !important;
    align-items:center;
  }
  .billing-workspace.is-split-live .billing-left-pane .billing-action-row > .btn{
    width:100%;
    justify-content:center;
    min-width:0 !important;
  }
  .billing-workspace.is-split-live .billing-left-pane #billingActionMeta{
    grid-column:1 / -1;
    justify-content:space-between;
    margin-left:0 !important;
    width:100%;
  }
  .billing-workspace.is-split-live .billing-right-pane .billing-export-row{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
  }
  .billing-workspace.is-split-live .billing-right-pane .billing-export-row .btn{
    width:100%;
    text-align:center;
  }
  .billing-workspace.is-split-live .billing-right-pane #billingResults{
    margin-top:0 !important;
  }
}
@media(min-width:1600px){
  .page{
    max-width:1760px;
  }
  .billing-workspace.is-split-live .billing-right-pane.has-three-pane-results{
    overflow:hidden;
    border-radius:0 14px 14px 0;
    background-clip:padding-box;
    padding-right:12px;
  }
  .billing-workspace.is-split-live .billing-right-pane.has-three-pane-results #billingResults .billing-result-header{
    position:sticky;
    top:4px;
    z-index:8;
    margin:2px 6px 10px;
    padding:10px 14px;
    border:1px solid rgba(16,42,74,.1);
    border-radius:14px;
    background:rgba(252,254,255,.9);
    box-shadow:0 1px 3px rgba(15,33,61,.05);
    backdrop-filter:blur(4px);
    -webkit-backdrop-filter:blur(4px);
  }
  .billing-workspace.is-split-live .billing-right-pane.has-three-pane-results #billingResults{
    display:grid;
    grid-template-rows:auto minmax(0,1fr) auto;
    gap:0;
    min-height:100%;
    height:100%;
    overflow:visible;
  }
  .billing-workspace.is-split-live .billing-right-pane.has-three-pane-results .billing-results-columns{
    height:100%;
    min-height:0;
    display:grid;
    grid-template-columns:minmax(0,1fr) 6px minmax(300px,var(--billing-aux-pane-width,32%));
    gap:4px;
    align-items:stretch;
    padding:2px 0 18px;
    box-sizing:border-box;
    border-radius:10px;
    overflow:visible;
  }
  .billing-workspace.is-split-live .billing-right-pane.has-three-pane-results{
    border-left:none;
  }
  .billing-workspace.is-split-live .billing-right-pane.has-three-pane-results .billing-results-divider{
    display:block;
    height:calc(100% - 12px);
    margin:6px 0;
    border-radius:999px;
    background:rgba(15,33,61,.04);
    box-shadow:inset 0 0 0 1px rgba(15,33,61,.05);
    cursor:col-resize;
  }
  .billing-workspace.is-split-live .billing-right-pane.has-three-pane-results .billing-results-divider:hover{
    background:rgba(15,33,61,.08);
  }
  .billing-workspace.is-split-live .billing-right-pane.has-three-pane-results .billing-results-col-main,
  .billing-workspace.is-split-live .billing-right-pane.has-three-pane-results .billing-results-col-aux{
    min-height:0;
    height:100%;
    overflow-y:auto;
    overflow-x:clip;
    scrollbar-gutter:auto;
    padding:2px 10px 36px 8px;
    box-sizing:border-box;
    scroll-padding-bottom:36px;
  }
  .billing-workspace.is-split-live .billing-right-pane.has-three-pane-results .billing-results-col-main .billing-section:last-child,
  .billing-workspace.is-split-live .billing-right-pane.has-three-pane-results .billing-results-col-aux .billing-section:last-child{
    margin-bottom:18px;
  }
  .billing-workspace.is-split-live .billing-right-pane.has-three-pane-results .billing-export-row{
    margin-top:10px;
  }
  body.billing-aux-resizing{
    cursor:col-resize;
    user-select:none;
  }
}
@media(min-width:980px){
  .billing-icd-split{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
  .billing-icd-unmapped-col{
    border-left:1px solid rgba(0,0,0,.06);
    padding-left:12px;
  }
  .billing-sedation-split{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    align-items:start;
  }
  .billing-sedation-col-alerts{
    border-left:1px solid rgba(0,0,0,.06);
    padding-left:12px;
  }
}
@media(max-width:700px){
  .billing-sticky-combined{
    flex-direction:column;
    gap:6px;
  }
  .billing-sticky-proc-label{
    font-size:14px;
  }
  .billing-extraction-pill{
    max-width:100%;
    width:100%;
    align-items:flex-start;
    text-align:left;
  }
  .billing-sticky{
    position:static;
    top:auto;
    z-index:auto;
    margin:0 0 8px 0;
    padding:8px 0;
    border:none;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
  #billing .card{
    padding:10px;
  }
  .billing-input-section{
    margin-top:0;
  }
  .billing-action-row{
    gap:6px !important;
    align-items:stretch;
  }
  .billing-action-site-group{
    flex:0 0 100%;
    max-width:none;
    min-width:0;
  }
  .billing-action-row .btn{
    min-width:0 !important;
    flex:1 1 calc(50% - 3px);
  }
  .billing-action-row #billingRunBtn{
    flex-basis:100%;
  }
  #billingDictation{
    min-height:220px !important;
    max-height:42vh;
    line-height:1.45 !important;
  }
  #billing .panel,
  #billing{
    overflow:visible;
  }
  .billing-payment-grid{grid-template-columns:1fr;}
  .billing-section-split{grid-template-columns:1fr;}
  .billing-charge-kpis{grid-template-columns:1fr 1fr;}
  .billing-charge-table-head,
  .billing-charge-table-row{
    grid-template-columns:46px 66px 38px 66px minmax(0,1fr);
    gap:6px;
    padding:7px 8px;
  }
  .billing-charge-type{
    display:inline-flex;
    margin-left:0;
    margin-top:4px;
  }
}

.creator-credit{
  width:100%;
  text-align:right;
  line-height:1.35;
  font-size:12px;
  color:var(--fig-muted);
  padding:8px 16px 12px;
}
@media(max-width:700px){
  .creator-credit{
    text-align:center;
    font-size:clamp(10px,3.1vw,12px);
    line-height:1.32;
    padding:8px 10px calc(12px + env(safe-area-inset-bottom,0px));
    white-space:normal;
    word-break:break-word;
  }
  .creator-credit > div{
    display:block;
    max-width:100%;
  }
}

:root{
  --billing-topbar-height:0px;
}

@media(min-width:861px){
  body.billing-tab-active .app-topbar{
    position:sticky;
    top:14px;
    left:auto;
    transform:none;
    width:min(
      calc(1360px - (2 * clamp(12px, 2vw, 24px))),
      calc(100% - (2 * clamp(12px, 2vw, 24px)))
    );
    margin-left:auto;
    margin-right:auto;
    max-height:240px;
    overflow:visible;
    z-index:95;
  }
  body.billing-tab-active .page{
    width:calc(100% - 24px);
    max-width:none;
    margin-left:auto;
    margin-right:auto;
    padding-top:30px;
  }
}
@media(min-width:1600px){
  body.billing-tab-active .app-topbar{
    width:min(
      calc(1760px - (2 * clamp(12px, 2vw, 24px))),
      calc(100% - (2 * clamp(12px, 2vw, 24px)))
    );
  }
}

@media(min-width:861px) and (max-width:1080px){
  body.billing-tab-active .page{
    padding-top:22px;
  }
}
@media(min-width:861px){
  body.billing-tab-active.billing-topbar-animate .app-topbar{
    transition:max-height .24s ease, margin-bottom .24s ease, padding-top .24s ease, padding-bottom .24s ease, opacity .2s ease, transform .24s ease, border-color .2s ease;
    will-change:max-height, opacity, transform;
  }
  body.billing-tab-active.billing-topbar-hidden .app-topbar{
    transform:translateY(-18px);
    opacity:0;
    max-height:0;
    margin-bottom:0;
    padding-top:0;
    padding-bottom:0;
    border-color:transparent;
    overflow:hidden;
    pointer-events:none;
  }
  body.billing-tab-active.billing-topbar-hidden .page{
    padding-top:16px;
  }
}
  .billing-workspace.is-split-live .billing-right-pane.has-three-pane-results .billing-results-col-main .billing-section-split{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:6px;
  }
