:root{--navy:var(--pc-navy);--navy2:var(--pc-navy-2);--teal:var(--pc-teal);--teal2:var(--pc-teal-deep);--tealsoft:var(--pc-soft-teal);--blue:var(--pc-blue);--green:var(--pc-green);--greensoft:var(--pc-soft-green);--amber:var(--pc-amber);--ambersoft:var(--pc-soft-amber);--red:var(--pc-red);--redsoft:var(--pc-soft-red);--ink:var(--pc-ink);--muted:var(--pc-muted);--bg:var(--pc-bg);--surface:var(--pc-surface);--line:var(--pc-line);--line2:var(--pc-line-soft);--shadow:0 16px 42px rgba(10,48,64,.10);--topbar:76px;--sidebar:232px;--radius:20px;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink)}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);min-height:100%;font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}.topbar{position:fixed;inset:0 0 auto 0;height:var(--topbar);display:flex;align-items:center;gap:18px;padding:0 22px;background:var(--navy);color:white;z-index:50;border-bottom:1px solid rgba(255,255,255,.08)}.brand{display:flex;align-items:center;gap:10px;border:0;background:transparent;color:white;text-align:left;padding:0}.brand-mark{width:38px;height:38px;border-radius:13px;background:linear-gradient(145deg,var(--pc-teal),var(--pc-teal-deep));display:grid;place-items:center;color:var(--pc-on-strong);font-weight:900;font-size:18px;box-shadow:0 8px 22px rgba(19,168,158,.25)}.brand-mark.large{width:62px;height:62px;border-radius:20px;font-size:29px;margin:auto}.brand-copy{display:flex;flex-direction:column}.brand-copy strong{font-size:16px}.brand-copy small{font-size:9px;letter-spacing:.11em;text-transform:uppercase;color:#a9ccd4}.topbar-center{display:flex;gap:8px;margin:auto}.tenant-pill,.mode-pill{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:7px 12px;font-size:11px}.status-dot{width:8px;height:8px;border-radius:50%;background:var(--pc-green);box-shadow:0 0 0 4px rgba(55,219,156,.12)}.topbar-actions{display:flex;align-items:center;gap:9px}.button,.icon-button,.account-button{border:1px solid transparent;border-radius:13px;transition:.15s ease}.button{padding:11px 16px;font-weight:750}.button.primary{background:var(--teal);color:white;box-shadow:0 9px 20px rgba(19,168,158,.18)}.button.primary:hover{background:var(--pc-teal-deep);transform:translateY(-1px)}.button.secondary{background:var(--pc-surface);border-color:var(--line);color:var(--ink)}.button.ghost{background:color-mix(in srgb,var(--pc-surface) 6%,transparent);border-color:rgba(255,255,255,.2);color:white}.button.compact{padding:10px 13px}.button.wide{width:100%}.icon-button{width:40px;height:40px;display:grid;place-items:center;background:var(--pc-surface);border-color:var(--line);color:var(--ink);font-size:18px}.ai-top{background:linear-gradient(145deg,var(--pc-soft-teal),var(--pc-surface));color:var(--teal2);font-size:12px;font-weight:900}.account-button{display:flex;align-items:center;gap:9px;background:transparent;color:white;padding:4px}.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--pc-surface);color:var(--navy);font-weight:900}.user-copy{display:flex;flex-direction:column;max-width:190px;text-align:left}.user-copy strong{font-size:11px;overflow:hidden;text-overflow:ellipsis}.user-copy small{font-size:8px;color:#a9ccd4}.mobile-menu-button{display:none}.sidebar{position:fixed;left:0;top:var(--topbar);bottom:0;width:var(--sidebar);background:var(--pc-surface);border-right:1px solid var(--line);padding:18px 12px 14px;display:flex;flex-direction:column;z-index:40}.sidebar nav{display:flex;flex-direction:column;gap:5px}.nav-item{border:0;background:transparent;border-radius:13px;padding:11px 12px;display:grid;grid-template-columns:24px 1fr auto;align-items:center;text-align:left;color:var(--pc-ink);font-size:12px;font-weight:700}.nav-item:hover{background:var(--pc-surface)}.nav-item.active{background:var(--tealsoft);color:var(--teal2)}.nav-icon{font-weight:900;text-align:center}.count-badge{min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--redsoft);color:var(--red);display:grid;place-items:center;font-size:9px}.sidebar-footer{margin-top:auto}.side-status{display:flex;gap:9px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:11px}.side-status div{display:flex;flex-direction:column}.side-status strong{font-size:10px}.side-status small{font-size:8px;color:var(--muted)}.owner-label{text-align:center;margin-top:12px;font-size:8px;letter-spacing:.12em;color:var(--pc-muted)}.sidebar-backdrop{display:none}.main{margin-left:var(--sidebar);padding:calc(var(--topbar) + 28px) 28px 40px;min-height:100vh}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:17px}.page-title-row{display:flex;align-items:center;gap:12px}.page-header h1{font-size:30px;letter-spacing:-.04em;margin:4px 0 5px}.page-header p{margin:0;color:var(--muted)}.eyebrow{font-size:9px;letter-spacing:.13em;font-weight:900;color:var(--teal2)}.back-button{width:36px;height:36px}.header-actions{display:flex;gap:8px}.setup-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;margin-bottom:16px;border:1px solid var(--pc-line-tint);border-radius:17px;background:linear-gradient(135deg,var(--pc-soft-teal),var(--pc-surface));box-shadow:0 8px 24px rgba(8,92,91,.06)}.setup-copy strong{display:block;font-size:14px}.setup-copy p{margin:4px 0 0;color:var(--muted);font-size:11px}.setup-progress{display:flex;gap:7px;margin-top:10px;flex-wrap:wrap}.step-pill{padding:5px 8px;border-radius:999px;background:var(--pc-surface);border:1px solid var(--line);font-size:9px}.step-pill.done{background:var(--greensoft);border-color:var(--pc-line-tint);color:var(--green)}.filter-bar{display:grid;grid-template-columns:1.2fr 1fr .8fr .8fr 1fr auto;gap:10px;align-items:end;background:var(--pc-surface);border:1px solid var(--line);border-radius:17px;padding:12px;margin-bottom:16px}.filter-bar label{display:flex;flex-direction:column;gap:5px}.filter-bar label span{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:var(--pc-muted);font-weight:850}.filter-bar input,.filter-bar select,.form-control{width:100%;height:42px;border:1px solid var(--line);border-radius:11px;padding:0 12px;background:var(--pc-surface);color:var(--ink)}.content{min-height:420px}.loading-card,.error-card,.empty-state{border:1px solid var(--line);border-radius:var(--radius);background:var(--pc-surface);min-height:300px;display:grid;place-items:center;text-align:center;color:var(--muted);padding:32px}.spinner{width:30px;height:30px;border-radius:50%;border:3px solid var(--pc-line);border-top-color:var(--teal);animation:spin .8s linear infinite;margin:auto auto 12px}@keyframes spin{to{transform:rotate(360deg)}}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:14px}.kpi-grid.primary-six{grid-template-columns:repeat(3,minmax(0,1fr))}.kpi-card{position:relative;overflow:hidden;min-height:132px;background:var(--pc-surface);border:1px solid var(--line);border-radius:18px;padding:17px;box-shadow:0 5px 18px rgba(12,53,68,.035);text-align:left}.kpi-card.clickable{transition:.18s ease}.kpi-card.clickable:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(12,53,68,.09);border-color:var(--pc-line-tint)}.kpi-card:after{content:"";position:absolute;right:-23px;top:-38px;width:105px;height:105px;border-radius:50%;background:var(--tealsoft)}.kpi-card.warning:after{background:var(--ambersoft)}.kpi-card.critical:after{background:var(--redsoft)}.kpi-card.positive:after{background:var(--greensoft)}.kpi-card.unavailable{background:var(--pc-surface)}.kpi-top{position:relative;z-index:1;display:flex;justify-content:space-between;gap:8px}.kpi-label{font-size:9px;text-transform:uppercase;letter-spacing:.085em;color:var(--pc-muted);font-weight:850}.metric-icon{width:32px;height:32px;border-radius:11px;background:color-mix(in srgb,var(--pc-surface) 65%,transparent);display:grid;place-items:center;color:var(--teal2);font-weight:900}.kpi-value{position:relative;z-index:1;margin:15px 0 6px;font-size:31px;font-weight:900;letter-spacing:-.045em}.kpi-value.long{font-size:20px;letter-spacing:-.02em;line-height:1.2}.kpi-foot{position:relative;z-index:1;color:var(--muted);font-size:10px;line-height:1.4}.why{display:inline-grid;place-items:center;width:18px;height:18px;border:1px solid var(--line);border-radius:50%;font-size:9px;background:var(--pc-surface);color:var(--teal2);margin-left:5px}.card{background:var(--pc-surface);border:1px solid var(--line);border-radius:18px;box-shadow:0 5px 20px rgba(15,42,57,.03);margin-bottom:14px;overflow:hidden}.card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:16px 17px 12px;border-bottom:1px solid var(--line2)}.card-header h2{font-size:14px;margin:0}.card-header p{font-size:10px;color:var(--muted);margin:4px 0 0;line-height:1.45}.card-body{padding:16px 17px}.dashboard-grid,.two-col{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.85fr);gap:14px}.two-col{grid-template-columns:1fr 1fr}.three-col{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:880px}.data-table th{background:var(--pc-surface);color:var(--pc-muted);text-transform:uppercase;letter-spacing:.07em;font-size:8px;text-align:left;padding:10px 12px;white-space:nowrap}.data-table td{border-top:1px solid var(--line2);padding:11px 12px;font-size:10px;vertical-align:middle}.provider-cell{display:flex;align-items:center;gap:9px;min-width:160px}.provider-badge{width:31px;height:31px;border-radius:10px;background:var(--tealsoft);display:grid;place-items:center;color:var(--teal2);font-weight:900}.provider-button{border:0;background:transparent;font-weight:800;color:var(--ink);padding:0;text-align:left}.provider-button:hover{color:var(--teal2)}.status-pill{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:9px;font-weight:850;white-space:nowrap}.status-pill.Healthy,.status-pill.Complete,.status-pill.Resolved,.status-pill.Bonus-Qualified,.status-pill.Ahead-Full-Bonus,.status-pill.Crushing-Max{background:var(--greensoft);color:var(--green)}.status-pill.Watch,.status-pill.Open,.status-pill.At-Risk,.status-pill.Running,.status-pill.History-loading{background:var(--ambersoft);color:var(--amber)}.status-pill.Critical,.status-pill.Failed{background:var(--redsoft);color:var(--red)}.status-pill.Neutral,.status-pill.Inactive,.status-pill.Not-ready{background:var(--pc-surface-2);color:var(--pc-muted)}.insight-list{display:flex;flex-direction:column;gap:9px}.insight{display:grid;grid-template-columns:9px 1fr;gap:10px;padding:11px;border:1px solid var(--line2);border-radius:13px;background:var(--pc-surface)}.insight-dot{width:8px;height:8px;border-radius:50%;background:var(--blue);margin-top:5px}.insight.Critical .insight-dot{background:var(--red)}.insight.Watch .insight-dot{background:var(--amber)}.insight strong{font-size:11px}.insight p{margin:3px 0;color:var(--muted);font-size:10px;line-height:1.45}.brief{display:grid;gap:12px}.brief-headline{padding:15px;border-radius:15px;background:linear-gradient(135deg,var(--tealsoft),var(--pc-surface));border:1px solid var(--pc-line-tint)}.brief-headline strong{font-size:15px}.brief-columns{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.brief-column{border:1px solid var(--line2);border-radius:13px;padding:12px}.brief-column h3{font-size:9px;color:var(--pc-muted);text-transform:uppercase;letter-spacing:.08em;margin:0 0 8px}.brief-item{font-size:10px;line-height:1.45;margin:0 0 7px;padding-left:13px;position:relative}.brief-item:before{content:"•";position:absolute;left:0;color:var(--teal)}.chart{width:100%;height:250px}.chart-grid{stroke:#e6ecef;stroke-width:1}.chart-line{fill:none;stroke:var(--teal);stroke-width:3}.chart-area{fill:rgba(19,168,158,.10)}.chart-label{font-size:9px;fill:var(--pc-muted)}.bar-list{display:flex;flex-direction:column;gap:11px}.bar-row{display:grid;grid-template-columns:145px 1fr 64px;align-items:center;gap:10px;font-size:10px}.bar-track{height:9px;border-radius:999px;background:var(--pc-surface-2);overflow:hidden}.bar-fill{height:100%;border-radius:999px;background:var(--teal)}.age-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}.age-card{border:1px solid var(--line);border-radius:14px;padding:13px;background:var(--pc-surface);text-align:left}.age-card strong{display:block;font-size:22px}.age-card span{font-size:9px;color:var(--muted)}.queue-list{display:flex;flex-direction:column}.queue-row{display:grid;grid-template-columns:minmax(160px,1.4fr) repeat(3,minmax(100px,.8fr)) auto;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line2);font-size:10px}.queue-row:last-child{border-bottom:0}.queue-primary strong{display:block}.queue-primary small{color:var(--muted)}.section-tabs{display:flex;gap:6px;padding:5px;background:var(--pc-soft-teal);border-radius:12px;width:max-content}.tab-button{border:0;background:transparent;border-radius:9px;padding:8px 11px;font-size:10px;font-weight:750;color:var(--pc-muted)}.tab-button.active{background:var(--pc-surface);color:var(--teal2);box-shadow:0 3px 12px rgba(12,53,68,.08)}.action-row{display:grid;grid-template-columns:80px minmax(240px,2fr) 120px 140px auto;gap:12px;align-items:center;padding:12px 16px;border-top:1px solid var(--line2);font-size:10px}.action-title strong{display:block}.action-title small{display:block;color:var(--muted);margin-top:3px;line-height:1.4}.readiness-panel{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border-radius:15px;background:var(--pc-soft-amber);border:1px solid var(--pc-line-tint);margin-bottom:14px}.readiness-panel.ready{background:var(--greensoft);border-color:var(--pc-line-tint)}.readiness-panel strong{display:block}.readiness-panel p{font-size:10px;color:var(--muted);margin:4px 0 0}.settings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.setting-card{padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--pc-surface)}.setting-card label{display:flex;flex-direction:column;gap:5px;margin-bottom:9px}.setting-card label span{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.07em}.checklist{display:flex;flex-direction:column;gap:8px}.check-item{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid var(--line2);border-radius:11px}.check-icon{width:23px;height:23px;border-radius:50%;display:grid;place-items:center;background:var(--ambersoft);color:var(--amber)}.check-item.done .check-icon{background:var(--greensoft);color:var(--green)}.advanced{margin-top:13px}.advanced summary{cursor:pointer;font-weight:800}.ai-panel{display:grid;gap:11px}.ai-chips{display:flex;gap:7px;flex-wrap:wrap}.ai-chip{border:1px solid var(--pc-line-tint);background:var(--pc-surface);color:var(--teal2);border-radius:999px;padding:8px 11px;font-size:10px;font-weight:750}.ai-disclaimer{font-size:9px;color:var(--muted)}.drawer-backdrop{position:fixed;inset:0;background:rgba(3,25,34,.42);z-index:70}.drawer{position:fixed;right:0;top:0;bottom:0;width:min(560px,96vw);background:var(--pc-surface);z-index:80;box-shadow:-20px 0 60px rgba(3,25,34,.2);display:flex;flex-direction:column}.drawer-head{display:flex;justify-content:space-between;align-items:flex-start;padding:22px;border-bottom:1px solid var(--line)}.drawer-head h2{margin:4px 0 0}.drawer-body{padding:20px;overflow:auto}.toast{position:fixed;right:18px;bottom:18px;z-index:100;background:var(--navy);color:white;border-radius:13px;padding:12px 16px;box-shadow:var(--shadow);font-size:11px}.bottom-nav{display:none}.login-shell{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 20% 10%,var(--pc-soft-teal),transparent 36%),var(--bg)}.login-card{width:min(430px,92vw);background:var(--pc-surface);border:1px solid var(--line);border-radius:25px;padding:36px;text-align:center;box-shadow:var(--shadow)}.login-card h1{font-size:34px;margin:10px 0}.login-card p{color:var(--muted);line-height:1.5}.login-card small{display:block;color:var(--pc-muted);margin-top:14px}.empty{padding:30px;text-align:center;color:var(--muted);font-size:11px}.notice{padding:12px 14px;border-radius:12px;background:var(--pc-surface-2);color:var(--pc-ink-2);font-size:10px}.notice.warning{background:var(--ambersoft);color:var(--pc-amber)}.notice.critical{background:var(--redsoft);color:var(--pc-red)}.mt{margin-top:14px}.mb{margin-bottom:14px}
@media(max-width:1180px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.kpi-grid.primary-six{grid-template-columns:repeat(2,1fr)}.filter-bar{grid-template-columns:repeat(3,1fr)}.dashboard-grid,.two-col{grid-template-columns:1fr}.settings-grid{grid-template-columns:repeat(2,1fr)}.age-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){:root{--sidebar:0px;--topbar:66px}.topbar{padding:0 12px;gap:8px}.mobile-menu-button{display:grid;background:color-mix(in srgb,var(--pc-surface) 8%,transparent);border-color:rgba(255,255,255,.16);color:white}.brand-copy,.topbar-center,.user-copy,.button.ghost span{display:none}.brand{flex:1}.topbar-actions{gap:5px}.sidebar{width:min(300px,88vw);transform:translateX(-105%);box-shadow:18px 0 50px rgba(3,25,34,.2);transition:.2s ease}.sidebar.open{transform:translateX(0)}.sidebar-backdrop.open{display:block;position:fixed;inset:var(--topbar) 0 0;background:rgba(3,25,34,.35);border:0;z-index:35}.main{margin-left:0;padding:calc(var(--topbar) + 18px) 13px 92px}.page-header{flex-direction:column}.header-actions{width:100%}.header-actions .button{flex:1}.page-header h1{font-size:25px}.setup-banner{align-items:flex-start;flex-direction:column}.filter-bar{grid-template-columns:1fr 1fr}.filter-bar label:first-child,.filter-bar label:nth-child(2){grid-column:span 1}.filter-bar label:nth-child(5){grid-column:span 2}.filter-bar button{grid-column:span 2}.kpi-grid,.kpi-grid.primary-six{grid-template-columns:1fr}.kpi-card{min-height:120px}.brief-columns,.three-col,.settings-grid{grid-template-columns:1fr}.age-grid{grid-template-columns:1fr 1fr}.queue-row,.action-row{grid-template-columns:1fr}.queue-row>*:not(.queue-primary):not(:last-child),.action-row>*:nth-child(3),.action-row>*:nth-child(4){display:none}.bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom));z-index:60;background:color-mix(in srgb,var(--pc-surface) 96%,transparent);border:1px solid var(--line);border-radius:18px;padding:6px;box-shadow:0 16px 50px rgba(3,25,34,.18);backdrop-filter:blur(16px)}.bottom-nav button{border:0;background:transparent;border-radius:12px;padding:7px 2px;display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--pc-muted)}.bottom-nav button.active{background:var(--tealsoft);color:var(--teal2)}.bottom-nav span{font-size:17px}.bottom-nav small{font-size:8px}.drawer{width:100vw}.data-table{min-width:780px}}

/* Practice Current v1.9.0 interaction and accessibility additions */
.kpi-card.clickable{cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.kpi-card.clickable:hover,.kpi-card.clickable:focus{transform:translateY(-2px);box-shadow:0 16px 38px rgba(3,25,34,.12);border-color:var(--pc-line-tint);outline:none}.kpi-card.unavailable{background:var(--pc-surface)}.kpi-card.unavailable .kpi-value{font-size:22px;color:var(--pc-muted)}.kpi-why{border:0;background:var(--pc-soft-teal);color:var(--pc-ink);border-radius:999px;width:20px;height:20px;font-size:10px;font-weight:900;cursor:pointer;margin-left:5px;vertical-align:middle}.kpi-why:hover{background:var(--pc-soft-teal)}.compact-checklist{display:flex!important;flex-direction:row!important;flex-wrap:wrap;margin-top:9px}.compact-checklist .check-item{padding:6px 9px;background:color-mix(in srgb,var(--pc-surface) 55%,transparent)}.full-span{grid-column:1/-1}.setting-card textarea{resize:vertical}.bar-progress{width:100%;height:9px;accent-color:var(--teal);border:0}.bar-progress::-webkit-progress-bar{background:var(--pc-surface-2);border-radius:999px}.bar-progress::-webkit-progress-value{background:var(--teal);border-radius:999px}.bar-progress::-moz-progress-bar{background:var(--teal);border-radius:999px}.kpi-readable-json{display:block;white-space:normal;word-break:break-word;padding:8px 10px;border-radius:9px;background:var(--pc-surface);color:var(--pc-ink);line-height:1.4;font-size:9px}.drawer-body pre.kpi-readable-json{white-space:pre-wrap;font-size:11px}.setup-banner p,.brief-headline p{margin:5px 0 0;color:var(--muted);font-size:10px;line-height:1.5}.check-item>div{display:flex;flex-direction:column}.check-item small{color:var(--muted);font-size:9px}.age-card{cursor:pointer;transition:.15s ease}.age-card:hover{border-color:var(--pc-line-tint);box-shadow:0 8px 22px rgba(3,25,34,.08)}.ai-top{font-weight:900}.notice strong{font-weight:900}.card .empty p{margin:7px 0 14px}.kpi-value{overflow-wrap:anywhere}.mode-pill{white-space:nowrap}.button:disabled{opacity:.55;cursor:not-allowed}.provider-button{cursor:pointer}.provider-button:focus,.age-card:focus,.ai-chip:focus{outline:2px solid var(--pc-teal);outline-offset:2px}
@media(max-width:760px){.compact-checklist{flex-direction:column!important}.compact-checklist .check-item{width:100%}.kpi-card.clickable:hover{transform:none}.kpi-why{width:24px;height:24px}}
.search-row{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:8px}.search-row input{min-height:42px;border:1px solid var(--line);border-radius:11px;padding:0 12px;background:var(--pc-surface);color:var(--ink)}.selection-list{display:grid;gap:7px;margin-top:10px}.selection-option{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:var(--pc-surface);color:var(--ink);text-align:left}.selection-option:hover,.selection-option:focus{border-color:var(--pc-line-tint);background:var(--tealsoft);outline:none}.selection-option strong{font-size:11px}.selection-option small{font-size:9px;color:var(--muted)}.selection-confirmation{margin-top:10px;padding:10px 12px;border-radius:11px;background:var(--greensoft);color:var(--green);font-size:10px;font-weight:800}.muted{color:var(--muted);font-size:10px;padding:8px 0}
@media(max-width:760px){.search-row{grid-template-columns:1fr}.search-row .button{width:100%}}
.button.danger{background:var(--redsoft);border-color:var(--pc-line-tint);color:var(--red)}.button.danger:hover{background:var(--pc-soft-red)}.block{display:block;margin-top:3px;color:var(--muted)}

/* Practice Current v1.9.0 measurement-based care and assistant experience */
.outcome-tabs{display:flex;gap:7px;padding:5px;margin:14px 0;background:var(--pc-soft-teal);border:1px solid var(--line);border-radius:15px;width:max-content;max-width:100%;overflow:auto}.outcome-tab{border:0;border-radius:11px;padding:10px 16px;background:transparent;color:var(--pc-ink-2);font-size:11px;font-weight:850;white-space:nowrap}.outcome-tab.active{background:var(--pc-surface);color:var(--teal2);box-shadow:0 5px 16px rgba(3,25,34,.09)}.mbc-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.mbc-step{position:relative;display:flex;gap:12px;min-height:112px;padding:17px;border:1px solid var(--pc-line-tint);border-radius:18px;background:linear-gradient(145deg,var(--pc-surface),var(--pc-surface))}.mbc-step:not(:last-child):after{content:"→";position:absolute;right:-10px;top:42px;z-index:2;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:var(--teal);color:#fff;font-weight:900}.mbc-step>span{flex:0 0 31px;width:31px;height:31px;border-radius:11px;display:grid;place-items:center;background:var(--teal);color:#fff;font-weight:900}.mbc-step strong{font-size:13px}.mbc-step p{margin:6px 0 0;color:var(--muted);font-size:10px;line-height:1.5}.outcome-search{grid-template-columns:minmax(200px,1fr) auto auto}.outcome-section-head{display:flex;align-items:end;justify-content:space-between;gap:14px;margin:19px 2px 11px}.outcome-section-head h2{margin:0;font-size:18px}.outcome-section-head p{margin:4px 0 0;color:var(--muted);font-size:10px}.outcome-series-grid{display:grid;grid-template-columns:1fr;gap:14px}.outcome-series-card{overflow:hidden}.outcome-chart{width:100%;padding:4px 4px 0;border:1px solid var(--line2);border-radius:15px;background:linear-gradient(180deg,var(--pc-surface),var(--pc-surface))}.outcome-chart svg{display:block;width:100%;height:auto;max-height:280px}.outcome-grid-line{stroke:#dfeaea;stroke-width:1}.outcome-line{fill:none;stroke:var(--teal);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.outcome-point{fill:#fff;stroke:var(--teal2);stroke-width:4}.outcome-axis-label{fill:var(--pc-muted);font-size:10px}.outcome-score-label{fill:var(--teal2);font-size:12px;font-weight:900}.outcome-legend{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:11px}.outcome-legend span{padding:11px 12px;border:1px solid var(--line2);border-radius:12px;background:var(--pc-surface);color:var(--muted);font-size:9px;line-height:1.4}.outcome-legend strong{display:block;color:var(--ink);font-size:11px;margin-bottom:2px}.outcome-history{margin-top:12px;border-top:1px solid var(--line2);padding-top:11px}.outcome-history summary{cursor:pointer;color:var(--teal2);font-size:10px;font-weight:850}.outcome-history .table-wrap{margin-top:10px}.patient-draft{padding:15px;border:1px solid var(--pc-line-tint);border-radius:15px;background:var(--pc-surface)}.patient-draft h3{margin:0 0 7px;font-size:13px}.patient-draft p{margin:0;color:var(--pc-ink);line-height:1.7}.patient-draft small{display:block;margin-top:9px;color:var(--muted);font-weight:750}.ai-mode-divider{display:flex;align-items:center;gap:10px;margin:18px 0 11px;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.08em;font-weight:850}.ai-mode-divider:before,.ai-mode-divider:after{content:"";height:1px;background:var(--line);flex:1}.conversational-answer .brief-headline p{font-size:12px;line-height:1.75;color:var(--pc-ink)}.conversational-answer ol{padding-left:22px}.conversational-answer li{margin:0 0 9px;line-height:1.55;color:var(--pc-ink)}.ai-question-form textarea{width:100%;border:1px solid var(--line);border-radius:11px;padding:11px;background:var(--pc-surface);color:var(--ink);font:inherit}
.outcome-band{opacity:.5}.outcome-band.minimal{fill:#e4f5ed}.outcome-band.mild{fill:#fff3c7}.outcome-band.moderate{fill:#ffe0ad}.outcome-band.high{fill:#ffd0bb}.outcome-band.severe{fill:#fac9ce}.outcome-band.neutral{fill:#eef7f7}.outcome-band-label{fill:var(--pc-ink-2);font-size:8px;font-weight:800}.outcome-point.minimal{stroke:var(--pc-teal-deep)}.outcome-point.mild{stroke:var(--pc-amber)}.outcome-point.moderate{stroke:var(--pc-amber)}.outcome-point.high,.outcome-point.severe{stroke:var(--pc-red)}.outcome-point.latest{fill:#fff;stroke-width:5}.outcome-tick{stroke:var(--pc-muted);stroke-width:1}.outcome-today-label{fill:var(--pc-ink);font-size:7px;font-weight:900;letter-spacing:.12em}.outcome-card-head{align-items:center}.outcome-card-head h2{font-size:27px;margin:3px 0}.latest-score-callout{display:flex;flex-direction:column;align-items:flex-end;gap:4px;text-align:right}.latest-score-callout small{color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.outcome-legend.four{grid-template-columns:repeat(4,1fr)}.outcome-discovery{border-color:var(--pc-line-tint);background:linear-gradient(135deg,var(--pc-surface),var(--pc-surface))}.outcome-review-row{grid-template-columns:minmax(180px,1.2fr) 1fr 1fr 1.2fr auto}
@media(max-width:1180px){.mbc-flow{grid-template-columns:repeat(2,1fr)}.mbc-step:nth-child(2):after{display:none}.outcome-review-row{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.outcome-tabs{width:100%}.outcome-tab{flex:1;padding:10px 12px}.mbc-flow{grid-template-columns:1fr}.mbc-step:not(:last-child):after{content:"↓";right:auto;left:24px;top:auto;bottom:-11px}.outcome-search{grid-template-columns:1fr}.outcome-section-head{align-items:stretch;flex-direction:column}.outcome-legend,.outcome-legend.four{grid-template-columns:1fr}.outcome-card-head{align-items:flex-start}.latest-score-callout{align-items:flex-start;text-align:left}.outcome-review-row{grid-template-columns:1fr}.bar-row{grid-template-columns:105px 1fr 45px}}

/* Practice Current v1.9.0 controlled-medication compliance tracker */
.controlled-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:22px;margin-bottom:14px;border:1px solid var(--pc-line-tint);border-radius:20px;background:linear-gradient(135deg,var(--pc-soft-teal),var(--pc-surface))}.controlled-hero h2{margin:5px 0 7px;font-size:25px}.controlled-hero p{max-width:780px;margin:0;color:var(--muted);font-size:11px;line-height:1.55}.controlled-hero-actions{display:flex;gap:8px;flex-wrap:wrap}.controlled-filters{display:flex;flex-wrap:wrap;gap:7px}.controlled-filters select,.controlled-filters input{min-height:38px;border:1px solid var(--line);border-radius:10px;padding:0 10px;background:var(--pc-surface);color:var(--ink);font-size:10px}.controlled-provider-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;padding:16px}.controlled-provider-card{border:1px solid var(--line);border-radius:15px;padding:12px;background:var(--pc-surface)}.controlled-provider-card.selected{border-color:var(--teal);box-shadow:0 0 0 2px rgba(19,168,158,.1)}.controlled-provider-card>button:first-child{display:block;width:100%;border:0;background:transparent;text-align:left;padding:0}.controlled-provider-card .provider-cell{justify-content:flex-start}.controlled-provider-card .provider-cell small{display:block;color:var(--muted);margin-top:3px}.controlled-provider-card>.button{margin-top:10px}.traffic-counts{display:flex;gap:6px;margin-top:12px;flex-wrap:wrap}.traffic{padding:6px 8px;border-radius:999px;font-size:9px}.traffic b{font-size:11px}.traffic.green{background:var(--greensoft);color:var(--green)}.traffic.yellow{background:var(--ambersoft);color:var(--amber)}.traffic.red{background:var(--redsoft);color:var(--red)}.controlled-queue-table{min-width:1080px}.risk-number{color:var(--red);font-size:12px}.confirmation-check{display:flex!important;flex-direction:row!important;align-items:center;gap:10px}.confirmation-check input{width:18px;height:18px}.confirmation-check span{text-transform:none!important;letter-spacing:0!important;color:var(--ink)!important;font-size:10px!important}.status-pill.Healthy{background:var(--greensoft);color:var(--green)}
@media(max-width:900px){.controlled-hero{align-items:flex-start;flex-direction:column}.controlled-hero-actions{width:100%}.controlled-hero .button{flex:1}.controlled-filters{width:100%}.controlled-filters>*{flex:1 1 150px}.controlled-provider-grid{grid-template-columns:1fr}}
.intake-copilot{border-color:var(--pc-line-tint);background:linear-gradient(135deg,var(--pc-surface),var(--pc-surface))}.intake-copilot .notice{border-radius:0}.copilot-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.copilot-strip span{padding:11px;border:1px solid var(--line2);border-radius:12px;background:var(--pc-surface);color:var(--muted);font-size:9px}.copilot-strip strong{display:block;color:var(--ink);font-size:16px;margin-bottom:3px}@media(max-width:900px){.copilot-strip{grid-template-columns:repeat(2,1fr)}}

.morning-brief{border-color:var(--pc-line-tint);background:linear-gradient(135deg,var(--pc-surface),var(--pc-surface))}.morning-brief .card-header h2{font-size:17px;max-width:900px}.priority-list{margin:0;padding-left:20px;display:grid;gap:8px;font-size:11px;line-height:1.5}.exception-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:14px}.exception-strip span{padding:10px;border:1px solid var(--line2);border-radius:11px;background:var(--pc-surface);color:var(--muted);font-size:9px}.exception-strip b{display:block;color:var(--ink);font-size:17px;margin-bottom:2px}.inquiry-table{min-width:1180px}.inquiry-table td small{display:block;color:var(--muted);margin-top:3px}.traffic.neutral{background:var(--pc-surface-2);color:var(--pc-muted)}.inquiry-detail{display:grid;gap:10px}.inquiry-stage{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:10px}.drawer-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.match-choice{display:grid;grid-template-columns:auto 1fr;column-gap:9px;align-items:center;padding:10px 0;border-top:1px solid var(--line2);text-transform:none!important;letter-spacing:0!important}.match-choice input{grid-row:1/3;width:17px;height:17px}.match-choice strong{font-size:10px}.match-choice small{font-size:9px;color:var(--muted)}.ai-feedback{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding-top:10px;border-top:1px solid var(--line2);font-size:9px;color:var(--muted)}
.intake-funnel{display:grid;gap:14px}.intake-funnel>div{display:grid;gap:7px}.intake-funnel span{display:flex;justify-content:space-between;gap:12px}.intake-funnel progress{width:100%;height:14px;accent-color:var(--teal)}.intake-matrix th:not(:first-child),.intake-matrix td:not(:first-child){text-align:center;white-space:nowrap}.intake-matrix th:first-child{min-width:190px}.team-top{min-width:auto}.team-hub-boundary{padding:12px 14px;border:1px solid var(--pc-line-tint);border-radius:12px;background:var(--pc-soft-teal);color:var(--pc-ink);font-size:.88rem}.team-direct-panel{margin-top:12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--pc-surface)}.team-member-list{display:flex;gap:8px;overflow-x:auto;padding-top:9px}.team-channel-tabs{display:flex;gap:8px;overflow-x:auto;padding:14px 0 8px}.team-channel-tabs .active{background:var(--teal);color:#fff}.team-purpose{color:var(--muted);font-size:.9rem}.team-message-list{display:flex;flex-direction:column;gap:10px;min-height:260px;max-height:48vh;overflow:auto;padding:12px 4px}.team-message{padding:11px 13px;border:1px solid var(--line);border-radius:13px;background:var(--pc-surface)}.team-message>div{display:flex;justify-content:space-between;gap:12px}.team-message small,.team-message span{color:var(--muted);font-size:.75rem}.team-message p{margin:7px 0 0;white-space:pre-wrap}.team-composer{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end}.team-composer textarea{resize:vertical}.team-voice-panel,.voice-guide{margin-top:14px;padding:13px;border:1px solid var(--line);border-radius:14px;background:var(--pc-surface);display:flex;align-items:center;gap:10px;flex-wrap:wrap}.team-voice-panel>div:first-child{display:flex;flex-direction:column;flex:1;min-width:180px}.team-voice-panel small,.voice-guide small{color:var(--muted)}.voice-button{background:var(--pc-teal-deep);color:var(--pc-on-strong);border-color:var(--pc-teal-deep);touch-action:none;user-select:none}.voice-button:active{background:var(--pc-red);border-color:var(--pc-red)}.voice-guide{display:grid}.voice-guide .voice-button{justify-self:start}#ai-spoken-answer{width:100%;margin-top:14px}

@media(max-width:900px){.exception-strip{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.drawer-action-grid,.exception-strip{grid-template-columns:1fr}.section-tabs{width:100%;overflow:auto}.tab-button{white-space:nowrap}}

/* 2026.09 — Lucent intelligence workspace */
:root{--navy:var(--pc-navy);--navy2:var(--pc-navy-2);--ink:var(--pc-ink);--muted:var(--pc-muted);--bg:var(--pc-bg);--line:var(--pc-line);--line2:var(--pc-line-soft);--teal:var(--pc-teal);--teal2:var(--pc-teal-deep);--shadow:0 12px 36px rgba(28,46,80,.07);--radius:18px;--sidebar:240px}
body{background:radial-gradient(ellipse at 90% 0,var(--pc-soft-blue) 0,transparent 42%),var(--bg);font-feature-settings:"tnum" 1,"cv11" 1}
.topbar{background:linear-gradient(110deg,var(--pc-navy),var(--pc-navy));border-bottom:1px solid var(--pc-navy)}
.brand-mark{border:1px solid var(--pc-teal);box-shadow:0 0 24px #14b8a62d;background:linear-gradient(140deg,var(--pc-teal),var(--pc-blue));border-radius:12px}
.brand-copy small{letter-spacing:.14em;color:#a9c3dc}.tenant-pill,.mode-pill{border-color:var(--pc-line-hi);color:#d7eeff}
.sidebar{background:linear-gradient(180deg,var(--pc-navy),var(--pc-navy));border-right:1px solid var(--pc-navy);padding:22px 14px}
.nav-item{color:#bdcbe0;font-size:12px;border-radius:11px;padding:12px 13px;margin-bottom:5px;position:relative}
.nav-item:hover{background:var(--pc-navy);color:#fff}.nav-item.active{color:#83f1df;background:linear-gradient(105deg,var(--pc-navy),var(--pc-navy));box-shadow:inset 3px 0 #49d8c2}
.nav-icon{color:inherit}.sidebar-footer .side-status{background:var(--pc-navy);border:1px solid var(--pc-line-hi);color:#e5effb}.sidebar-footer small,.owner-label{color:#a8b8ce}
.main{padding-top:calc(var(--topbar) + 28px)}.page-header{margin-bottom:23px}.page-header h1{font-size:30px;letter-spacing:-.035em}.page-header p{font-size:13px;line-height:1.6}
.eyebrow{font-size:10px;letter-spacing:.16em;font-weight:800;color:var(--teal2)}
.filter-bar{background:var(--pc-surface);border:1px solid var(--line);border-radius:16px;padding:14px;box-shadow:0 5px 20px #253f6810}
.filter-bar label span{font-size:10px}.filter-bar input,.filter-bar select{font-size:12px;min-height:40px}
.card{border:1px solid var(--line);box-shadow:0 5px 23px #243d6609;border-radius:var(--radius);overflow:hidden;background:var(--pc-surface)}
.card-header{padding:20px 22px;gap:14px}.card-header h2{font-size:17px;letter-spacing:-.02em}.card-header p{font-size:12px;line-height:1.6;max-width:880px}.card-body{padding:20px 22px}
.kpi-grid{gap:14px;margin-bottom:18px}.kpi-card{position:relative;padding:22px;min-height:148px;border-radius:18px;background:linear-gradient(130deg,var(--pc-surface),var(--pc-surface))}
.kpi-card:before{content:"";position:absolute;left:22px;right:22px;top:0;height:2px;background:linear-gradient(90deg,var(--pc-teal),var(--pc-blue),transparent)}
.kpi-label{font-size:10px;letter-spacing:.08em}.kpi-value{font-size:32px;letter-spacing:-.045em;font-weight:800}.kpi-foot{font-size:11px;line-height:1.5}
.button{font-size:12px;min-height:40px;border-radius:11px;padding:10px 15px;font-weight:650}.button.primary{background:linear-gradient(120deg,var(--pc-teal-deep),var(--pc-teal-deep));box-shadow:0 5px 14px #009c9428}.button.secondary:hover{border-color:var(--pc-blue);background:var(--pc-surface)}.button.compact{font-size:11px;min-height:34px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--pc-blue);outline-offset:3px}
.controlled-hero{background:linear-gradient(125deg,var(--pc-soft-teal),var(--pc-surface) 70%,var(--pc-surface));border-color:var(--pc-line-tint);padding:25px}.controlled-hero h2{font-size:25px;letter-spacing:-.03em;max-width:750px}.controlled-hero p{font-size:12px;max-width:830px}
.controlled-hero-actions{justify-content:flex-end}.controlled-filters input,.controlled-filters select{font-size:12px;min-height:40px}.controlled-filters label{font-size:12px}
.data-table th{font-size:10px;letter-spacing:.065em;background:var(--pc-surface);color:var(--pc-muted);padding:13px 16px}.data-table td{font-size:12px;padding:15px 16px;line-height:1.55;vertical-align:middle}.data-table tr:hover td{background:var(--pc-surface)}.data-table td small{display:block;font-size:10px;color:var(--muted);margin-top:4px;line-height:1.5}
.data-table td strong{font-weight:700}.data-table progress{display:block;width:95px;height:5px;margin-top:8px;accent-color:var(--pc-teal-deep)}.provider-badge{background:linear-gradient(135deg,var(--pc-soft-teal),var(--pc-soft-blue));border:1px solid var(--pc-line-tint);color:var(--pc-teal-deep);flex-shrink:0}
.bonus-table{min-width:1050px}.performance-matrix{min-width:900px}.performance-matrix td{min-width:138px}.performance-matrix td strong{font-size:17px}.performance-matrix .muted{font-size:12px;color:var(--muted);font-weight:400}.performance-matrix td small{font-size:11px;color:var(--pc-teal-deep);font-weight:600}
.performance-matrix th:first-child{position:sticky;left:0;z-index:1;background:var(--pc-surface);min-width:160px}.matrix-total td,.matrix-total th{background:var(--pc-soft-teal)!important;border-top:2px solid var(--pc-line-tint)}
.month-chip{display:inline-grid;gap:3px;padding:7px 10px;background:var(--pc-soft-blue);border-radius:8px;margin:3px;font-size:10px;color:var(--muted)}.month-chip b{font-size:12px;color:var(--ink)}
.notice{font-size:12px;line-height:1.65;padding:15px 18px}.status-pill,.traffic{font-size:10px}.traffic b{font-size:11px}.section-tabs{background:var(--pc-soft-blue);border:1px solid var(--pc-line-tint);padding:5px;border-radius:13px}.tab-button{font-size:12px;min-height:38px;padding:9px 16px}.tab-button.active{background:var(--pc-surface);box-shadow:0 3px 10px #23365412;color:var(--pc-teal-deep)}
.autopilot-panel{border-color:var(--pc-line-tint);background:linear-gradient(120deg,var(--pc-surface),var(--pc-surface))}.autopilot-panel .card-header{border-bottom:1px solid var(--pc-line-tint)}.autopilot-stages{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.autopilot-stages>div{background:linear-gradient(130deg,var(--pc-navy),var(--pc-navy));color:#f5fbff;border:1px solid var(--pc-navy);border-radius:12px;padding:18px}.autopilot-stages span{display:block;color:#90e6d7;font-size:10px;letter-spacing:.13em}.autopilot-stages strong{display:block;font-size:30px;font-weight:750;margin:8px 0}.autopilot-stages small{font-size:12px;color:#c2d3e6}
.automation-evidence{font-size:12px;color:var(--muted);line-height:1.7}.reason-chips{display:flex;flex-wrap:wrap;gap:8px}.reason-chips span{background:var(--pc-soft-amber);border:1px solid var(--pc-line-tint);border-radius:8px;padding:8px 12px;font-size:11px;color:var(--pc-amber)}.reason-chips b{margin-right:4px}
.copilot-strip span,.exception-strip span{font-size:11px}.copilot-strip strong{font-size:16px}.morning-brief .card-header h2{font-size:17px}.priority-list{font-size:12px;line-height:1.7}.connector-health .notice{margin-bottom:12px}
.drawer{box-shadow:-16px 0 50px #12233b24}.drawer-body{font-size:13px;line-height:1.6}.setting-card span{font-size:11px}.setting-card input,.setting-card select{font-size:13px;min-height:40px}.inquiry-detail .notice strong{display:block;margin-bottom:5px}.inquiry-detail{gap:15px}.drawer-action-grid .button{min-height:42px}
@media(min-width:1550px){.main{padding-left:32px;padding-right:32px}.kpi-grid{gap:18px}.card-header{padding:22px 24px}}
@media(max-width:1100px){.controlled-hero{align-items:flex-start;flex-direction:column}.controlled-hero-actions{justify-content:flex-start}.two-col{grid-template-columns:1fr}.autopilot-stages{gap:8px}.autopilot-stages>div{padding:14px}}
@media(max-width:760px){:root{--sidebar:0px}.main{padding-top:calc(var(--topbar) + 20px)}.page-header h1{font-size:26px}.card-header,.card-body{padding:16px}.controlled-hero{padding:18px}.controlled-hero h2{font-size:22px}.autopilot-stages{grid-template-columns:1fr}.autopilot-stages>div{display:grid;grid-template-columns:1fr auto;align-items:center}.autopilot-stages strong{grid-column:2;grid-row:1/3;margin:0}.autopilot-stages small{grid-column:1}.kpi-card{padding:17px;min-height:128px}.kpi-value{font-size:28px}.section-tabs{overflow:auto;max-width:100%}}

/* Evidence surfaces share the app's restrained navy/teal interface. */
.workflow-event{position:relative;display:flex;flex-direction:column;gap:.35rem;padding:.9rem 1rem .9rem 1.35rem;border-left:2px solid var(--pc-teal);margin-left:.3rem;border-bottom:1px solid var(--line,var(--pc-line-tint));font-size:.86rem}
.workflow-event::before{content:"";position:absolute;width:.55rem;height:.55rem;border-radius:50%;background:var(--pc-teal);left:-.34rem;top:1.05rem;box-shadow:0 0 0 4px #e5f8f5}
.workflow-event small{color:var(--muted,var(--pc-ink-2));line-height:1.5}
.setting-card>span,.setting-card>strong,.setting-card>small{display:block}
.autopilot-stages{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.performance-matrix th{position:sticky;top:0;background:var(--pc-soft-teal);z-index:1}
#credit-entry-form button:disabled,#bonus-rule-form button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:760px){.workflow-event{padding-right:.3rem}.autopilot-stages{grid-template-columns:1fr 1fr}.two-col .data-table{min-width:680px}}

.credential-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.credential-summary>div{display:grid;padding:20px;border-radius:16px;background:var(--surface-alt,var(--pc-soft-teal))}.credential-summary strong{font-size:32px}.credential-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}.credential-form textarea{min-height:90px;width:100%}@media(max-width:700px){.credential-form,.credential-summary{grid-template-columns:1fr}}

.fc-revenue{margin-bottom:28px}.fc-revenue>.fc-panel-head{margin-bottom:16px}.fc-revenue+.fc-context{margin-top:28px}

/* A provider-only print surface prevents dashboard or patient detail leakage. */
#provider-print-sheet{display:none}
@media print {
 @page{size:A4 portrait;margin:14mm}
 body.printing-provider{background:var(--pc-surface)!important;margin:0!important;padding:0!important}
 body.printing-provider>*{display:none!important}
 body.printing-provider>#provider-print-sheet{display:block!important;font:11px/1.5 Arial,sans-serif;color:var(--pc-ink);background:var(--pc-surface)}
 #provider-print-sheet *{box-sizing:border-box}
 #provider-print-sheet header{display:flex;justify-content:space-between;border-bottom:3px solid var(--pc-teal-deep);padding-bottom:16px;margin-bottom:18px}
 #provider-print-sheet h1{font-size:26px;margin:5px 0}
 #provider-print-sheet h2{font-size:48px;margin:6px 0}
 #provider-print-sheet h3{font-size:14px;margin:18px 0 9px}
 #provider-print-sheet p{margin:5px 0}
 #provider-print-sheet .pr-brand{font-size:9px;letter-spacing:1.5px;font-weight:bold;color:var(--pc-ink)}
 #provider-print-sheet .pr-stamp{font-size:9px;text-align:right;max-width:160px}
 #provider-print-sheet .pr-hero{display:flex;justify-content:space-between;gap:30px;background:var(--pc-soft-teal);padding:20px;border:1px solid var(--pc-line-tint);border-radius:12px}
 #provider-print-sheet .pr-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 0}
 #provider-print-sheet .pr-metric{border:1px solid var(--pc-line);padding:13px;border-radius:8px;break-inside:avoid}
 #provider-print-sheet .pr-metric span,#provider-print-sheet .pr-metric small{display:block;color:var(--pc-ink-2);font-size:10px}
 #provider-print-sheet .pr-metric strong{display:block;font-size:23px;margin:7px 0}
 #provider-print-sheet footer{border-top:1px solid var(--pc-line);margin-top:20px;padding-top:12px;font-size:9px;color:var(--pc-ink-2)}
 #provider-print-sheet .pr-note{color:var(--pc-ink-2);font-size:10px}
}

.nav-section{display:flex;flex-direction:column;gap:5px;margin-top:9px}
.nav-section-head{width:100%;border:0;background:transparent;color:var(--pc-muted);display:flex;align-items:center;justify-content:space-between;padding:7px 12px 4px;font-size:8.5px;letter-spacing:.11em;text-transform:uppercase;font-weight:850;cursor:pointer}
.nav-section-head:hover{color:#bdcbe0}
.nav-section-head:hover .nav-caret{opacity:1}
.nav-caret{transition:transform .15s ease;font-size:9px;opacity:.85}
.nav-section.collapsed .nav-caret{transform:rotate(-90deg)}
.nav-section.collapsed .nav-section-items{display:none}
.nav-section-items{display:flex;flex-direction:column;gap:5px}
.nav-section.empty{display:none}

.mbc-bands h3{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:var(--pc-muted);margin:0 0 8px}
.done-today{border-color:var(--pc-line-tint);background:linear-gradient(135deg,var(--pc-surface),var(--pc-surface))}.done-row .queue-primary strong{color:var(--green)}.done-how{font-weight:700;color:var(--ink)}.done-check{border-color:var(--pc-line-tint);background:var(--pc-surface)}.done-check p{font-size:11px;color:var(--muted);margin:6px 0}.done-check small{display:block;color:var(--muted);font-size:10px}
.sheet-top{display:grid;grid-template-columns:minmax(0,2fr) minmax(220px,.8fr);gap:14px}.sheet-calendar{padding:14px}.cal-title{background:var(--navy);color:#fff;text-align:center;font-weight:850;padding:9px;border-radius:10px 10px 0 0;font-size:13px}.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid var(--line);border-top:0}.cal-head{background:var(--pc-soft-blue);text-align:center;font-size:10px;font-weight:800;padding:6px 0;color:var(--pc-ink)}.cal-cell{min-height:64px;border-top:1px solid var(--line2);border-left:1px solid var(--line2);padding:5px 6px;display:flex;flex-direction:column;align-items:center;background:var(--pc-surface)}.cal-cell:nth-child(7n+1){border-left:0}.cal-cell.blank{background:var(--pc-surface)}.cal-cell small{align-self:flex-start;font-size:9px;color:var(--muted)}.cal-cell strong{font-size:20px;color:var(--pc-muted);line-height:1.1}.cal-cell.has strong{color:var(--teal2)}.cal-cell span{font-size:8px;color:var(--muted);text-align:center}.sheet-totals{padding:16px;display:flex;flex-direction:column;gap:10px;justify-content:center}.sheet-totals div{display:flex;justify-content:space-between;align-items:baseline;border:1px solid var(--line);border-radius:12px;padding:12px 14px}.sheet-totals span{font-size:11px;font-weight:800;color:var(--pc-ink)}.sheet-totals strong{font-size:24px}.sheet-totals .hl{background:var(--pc-soft-amber);border-color:var(--pc-amber)}.sheet-totals small{color:var(--muted);font-size:10px}.sheet-table{min-width:560px}.sheet-table th small{display:block;font-weight:500;text-transform:none;letter-spacing:0;color:var(--muted)}.sheet-table tbody th{text-align:left;font-size:11px;text-transform:none;letter-spacing:0;color:var(--ink);background:var(--pc-surface);padding:10px 12px}.sheet-table td{font-size:12px;text-align:center}.sheet-ratio.good{background:var(--pc-soft-amber);font-weight:800}.sheet-ratio.mid{background:var(--pc-soft-amber)}.sheet-ratio.low{background:var(--pc-soft-red)}.sheet-ratio.none{color:var(--muted)}.sheet-sum th,.sheet-sum td{font-weight:800}.sheet-more{padding:14px 16px}.sheet-more summary{cursor:pointer;font-weight:800}
@media(max-width:760px){.sheet-top{grid-template-columns:1fr}.cal-cell{min-height:48px}.cal-cell strong{font-size:15px}}
.sheet-note{display:block;margin-top:8px;color:var(--muted);font-size:10px}
.gv-line{font-size:11px;margin:8px 0;color:var(--ink)}
.qwen-chip{display:block;margin-top:3px;font-size:10px;font-weight:700;color:var(--pc-teal-deep)}.qwen-chip.spam,.qwen-chip.not_patient{color:var(--pc-muted)}.qwen-chip.existing_patient{color:var(--pc-muted)}.qwen-chip.urgent{color:var(--red)}.qwen-card{border-color:var(--pc-line-tint);background:var(--pc-surface)}.qwen-card small{display:block;color:var(--muted);font-size:10px;margin-top:4px}

/* Imported Headway history (2026-11-02): the full note text, read only */
.pc-hw-text { white-space: pre-wrap; max-height: 28rem; overflow: auto; font-size: 0.85rem; margin-top: 0.5rem; }
.send-time-text{white-space:pre-wrap;word-break:break-word;margin-top:6px}

/* Luna assistant panel (2026-10-06) */
.luna-fab{position:fixed;right:22px;bottom:22px;z-index:60;border:0;border-radius:999px;padding:12px 18px;font-weight:700;font-size:.95rem;color:var(--pc-on-strong);background:linear-gradient(135deg,var(--pc-navy),var(--pc-teal-deep));box-shadow:0 10px 28px rgba(15,61,74,.35);cursor:pointer}
.luna-fab.hidden,.luna-panel.hidden{display:none}
.luna-panel{position:fixed;right:22px;bottom:22px;z-index:61;width:min(420px,calc(100vw - 32px));height:min(640px,calc(100vh - 110px));display:flex;flex-direction:column;background:var(--pc-surface);color:var(--pc-ink);border-radius:18px;box-shadow:0 24px 60px rgba(15,23,42,.28);overflow:hidden}
.luna-panel header{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;background:linear-gradient(135deg,var(--pc-navy),var(--pc-teal-deep));color:var(--pc-on-strong)}
.luna-panel header small{display:block;opacity:.8;font-size:.78rem}
.luna-x{border:0;background:transparent;color:inherit;font-size:1.4rem;line-height:1;cursor:pointer;padding:2px 6px;border-radius:8px}
.luna-tabs{display:flex;border-bottom:1px solid var(--pc-line-tint)}
.luna-tabs button{flex:1;border:0;background:transparent;padding:10px;font-weight:600;color:var(--pc-ink-2);cursor:pointer;border-bottom:2px solid transparent}
.luna-tabs button.active{color:var(--pc-ink);border-bottom-color:var(--pc-teal-deep)}
.luna-body{flex:1;display:flex;flex-direction:column;min-height:0}
.luna-log{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px}
.luna-msg{max-width:88%;padding:10px 12px;border-radius:14px;line-height:1.4}
.luna-msg p{margin:0;white-space:pre-wrap}
.luna-user{align-self:flex-end;background:var(--pc-navy);color:#fff;border-bottom-right-radius:4px}
.luna-assistant{align-self:flex-start;background:var(--pc-surface-2);border-bottom-left-radius:4px}
.luna-typing{opacity:.7;font-style:italic}
.luna-empty{padding:4px 2px}.luna-empty p{color:var(--pc-ink-2)}
.luna-starters{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.luna-chip{text-align:left;border:1px solid var(--pc-line);background:var(--pc-surface);border-radius:12px;padding:8px 10px;cursor:pointer;color:var(--pc-ink)}
.luna-chip:hover{border-color:var(--pc-teal-deep)}
.luna-pending{display:flex;flex-direction:column;gap:8px}
.luna-card{border:1px solid var(--pc-line-tint);background:var(--pc-surface);border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:8px}
.luna-action{border-color:var(--pc-line-tint);background:var(--pc-soft-amber)}
.luna-card small{font-weight:700;text-transform:uppercase;letter-spacing:.04em;font-size:.7rem;color:var(--pc-ink)}
.luna-card p{margin:2px 0}.luna-card span{font-size:.85rem;color:var(--pc-ink-2)}
.luna-card-actions{display:flex;gap:6px}
.luna-input{display:flex;gap:8px;padding:10px 12px;border-top:1px solid var(--pc-line-tint)}
.luna-input textarea{flex:1;resize:none;border:1px solid var(--pc-line);border-radius:12px;padding:8px 10px;font:inherit}
.luna-note{font-size:.75rem;color:var(--pc-muted);margin:0 12px 10px}
.luna-facts{flex:1;overflow-y:auto;padding:12px 14px}
.luna-facts h4{margin:10px 0 6px;font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;color:var(--pc-ink)}
.luna-fact{display:flex;justify-content:space-between;gap:8px;align-items:flex-start;padding:8px 10px;background:var(--pc-surface);border-radius:10px;margin-bottom:6px}
.luna-fact p{margin:0}.luna-fact .luna-x{color:var(--pc-muted);font-size:1.1rem}
.luna-sync{padding:10px 14px;border-top:1px solid var(--pc-line-tint)}
@media(max-width:600px){.luna-panel{right:8px;left:8px;bottom:8px;width:auto;height:calc(100vh - 90px)}.luna-fab{right:14px;bottom:76px}}
.luna-modes{display:flex;gap:6px;padding:8px 12px;background:var(--pc-surface-2);border-bottom:1px solid var(--pc-line-tint)}
.luna-modes button{flex:1;border:1px solid var(--pc-line);background:var(--pc-surface);border-radius:999px;padding:7px 10px;font-weight:700;font-size:.8rem;color:var(--pc-ink-2);cursor:pointer}
.luna-modes button.active{background:var(--pc-navy);border-color:var(--pc-navy);color:#fff}
.luna-briefs{display:flex;flex-wrap:wrap;gap:6px;padding:8px 12px 0}
.luna-briefs .luna-chip{padding:6px 9px;font-size:.78rem;border-radius:999px}
.luna-link{border:0;background:transparent;color:var(--pc-teal-deep);font-weight:700;cursor:pointer;padding:0;font-size:inherit}
.ai-top.luna-top{width:auto;padding:0 12px;font-size:12px}
.luna-stop{display:block;width:calc(100% - 24px);margin:8px 12px 0;background:var(--red,var(--pc-red));color:var(--pc-on-strong);font-weight:800;border-radius:12px;padding:10px}
.luna-stop:hover{background:var(--pc-red)}

/* Intake Coordinator (2026-10-07) */
.coord-split{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}
.coord-more summary{cursor:pointer;font-size:10px;font-weight:800;color:var(--teal2);padding:10px 0}
.coord-topchip{display:inline-flex;align-items:center;border-radius:13px;overflow:hidden;border:1px solid rgba(255,255,255,.22);background:color-mix(in srgb,var(--pc-surface) 6%,transparent)}
.coord-topchip button{border:0;background:transparent;color:white;font-size:11px;font-weight:800;padding:10px 11px}
.coord-topchip-label span{margin-left:2px}
.coord-topchip.live .coord-topchip-label{color:#bff3e9}
.coord-topchip.stopped{border-color:var(--pc-line-tint);background:rgba(207,61,75,.25)}
.coord-topchip.stopped .coord-topchip-label{color:#ffd9dd}
.coord-topchip-stop{background:var(--red)!important;color:white!important;border-left:1px solid rgba(255,255,255,.25)!important}
.coord-topchip-stop:hover{background:var(--pc-red)!important}
.coord-hero .card-body{display:grid;gap:14px}
.coord-hero-main{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.coord-hero h2{display:flex;align-items:center;gap:10px;font-size:24px;letter-spacing:-.03em;margin:6px 0 4px}
.coord-hero p{margin:0;color:var(--muted)}
.coord-hero.stopped{border-color:var(--pc-line-tint);background:linear-gradient(135deg,var(--redsoft),var(--pc-surface) 60%)}
.coord-hero.running{border-color:var(--pc-line-tint);background:linear-gradient(135deg,var(--greensoft),var(--pc-surface) 60%)}
.coord-hero.preview,.coord-hero.waiting{background:linear-gradient(135deg,var(--tealsoft),var(--pc-surface) 60%)}
.coord-dot{width:12px;height:12px;border-radius:50%;background:var(--teal);box-shadow:0 0 0 5px rgba(19,168,158,.15)}
.coord-dot.stopped{background:var(--red);box-shadow:0 0 0 5px rgba(207,61,75,.15);border-radius:3px}
.coord-dot.running{background:var(--green);animation:coordPulse 2s ease-in-out infinite}
@keyframes coordPulse{50%{box-shadow:0 0 0 9px rgba(20,134,94,.05)}}
.coord-hero-actions{display:flex;flex-direction:column;gap:8px;align-items:stretch;min-width:220px}
.coord-stop{background:var(--red);color:white;font-size:14px;padding:14px 18px;box-shadow:0 9px 20px rgba(207,61,75,.22)}
.coord-stop:hover{background:var(--pc-red)}
.coord-start{font-size:14px;padding:14px 18px}
.coord-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.coord-chip-s{display:inline-flex;align-items:center;padding:4px 9px;border-radius:999px;font-size:9px;font-weight:800;background:var(--pc-surface-2);color:var(--pc-ink-2);white-space:nowrap}
.coord-chip-s.ok{background:var(--greensoft);color:var(--green)}
.coord-chip-s.info{background:var(--tealsoft);color:var(--teal2)}
.coord-chip-s.due{background:var(--ambersoft);color:var(--amber)}
.coord-chip-s.bad{background:var(--redsoft);color:var(--red)}
.coord-chip-s.muted{background:var(--pc-surface-2);color:var(--pc-muted)}
.coord-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.coord-kpis div{border:1px solid var(--line);border-radius:14px;background:var(--pc-surface);padding:11px 12px;display:flex;flex-direction:column}
.coord-kpis small{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:var(--pc-muted);font-weight:850}
.coord-kpis strong{font-size:26px;letter-spacing:-.04em;margin:3px 0 1px}
.coord-kpis span{font-size:9px;color:var(--muted)}
.coord-now{font-size:12px;color:var(--ink)!important}
.coord-group h3,.coord-sub{font-size:9px;text-transform:uppercase;letter-spacing:.09em;color:var(--pc-muted);margin:14px 0 6px}
.coord-group:first-child h3,.coord-sub:first-child{margin-top:0}
.coord-row{display:grid;grid-template-columns:minmax(80px,.7fr) minmax(0,2fr) auto auto auto;gap:9px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line2);font-size:11px}
.coord-row.hands-off{opacity:.55}
.coord-who{font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.coord-what{color:var(--pc-ink-2)}
.coord-row-actions{display:flex;gap:8px;justify-content:flex-end;min-width:118px}
.coord-link{border:0;background:transparent;color:var(--teal2);font-size:10px;font-weight:750;padding:2px}
.coord-link:hover{text-decoration:underline}
.coord-call{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line2)}
.coord-call div:first-child{display:flex;flex-direction:column}
.coord-call small{font-size:10px;color:var(--muted)}
.coord-call.bad strong{color:var(--red)}
.coord-call-results{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end}
.coord-pill{border:1px solid var(--pc-line-tint);background:var(--pc-surface);color:var(--teal2);border-radius:999px;padding:6px 10px;font-size:10px;font-weight:750}
.coord-pill:hover{background:var(--tealsoft)}
.coord-pill.muted{border-color:var(--line);color:var(--pc-muted)}
.coord-log{list-style:none;margin:0;padding:0}
.coord-log li{display:grid;grid-template-columns:62px 1fr auto;gap:10px;padding:7px 0;border-bottom:1px solid var(--line2);font-size:11px;align-items:center}
.coord-log time{color:var(--muted);font-variant-numeric:tabular-nums}
.coord-log small{color:var(--muted);font-size:9px}
.coord-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.coord-lane{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line2)}
.coord-lane div{display:flex;flex-direction:column}
.coord-lane small{font-size:10px;color:var(--muted);line-height:1.4}
.coord-toggle{min-width:74px;border:1px solid var(--line);border-radius:999px;padding:7px 12px;background:var(--pc-surface-2);color:var(--pc-muted);font-weight:800;font-size:10px}
.coord-toggle.on{background:var(--green);border-color:var(--green);color:white}
.coord-toggle:disabled{opacity:.5;cursor:not-allowed}
.coord-mode{display:flex;gap:9px;align-items:center;padding:9px 11px;border:1px solid var(--line);border-radius:12px;margin-bottom:7px;font-size:11px}
.coord-mode.on{border-color:var(--teal);background:var(--tealsoft)}
.coord-settings{display:grid;gap:9px}
.coord-field-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:9px}
.coord-field-row label{display:flex;flex-direction:column;gap:4px}
.coord-field-row span{font-size:9px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted)}
.coord-check{display:flex;gap:8px;align-items:center;font-size:11px}
.coord-doc-text{white-space:pre-line;font-size:11px;line-height:1.5;background:var(--pc-surface);border:1px solid var(--line2);border-radius:10px;padding:10px;max-height:320px;overflow:auto;color:var(--ink)}
.coord-note{font-size:10px;color:var(--muted);line-height:1.5}
.coord-table{min-width:640px}
.coord-table td{vertical-align:top;line-height:1.45}
@media(max-width:760px){
  .coord-split{grid-template-columns:1fr}
  .coord-topchip-label span{display:none}
  .coord-hero-main{flex-direction:column}
  .coord-hero-actions{width:100%;min-width:0}
  .coord-kpis{grid-template-columns:repeat(2,1fr)}
  .coord-row{grid-template-columns:1fr auto;grid-template-areas:"who chip" "what what" "act act"}
  .coord-row-actions{min-width:0;justify-content:flex-start}
  .coord-who{grid-area:who}.coord-what{grid-area:what}.coord-row .coord-chip-s{grid-area:chip}.coord-row-actions{grid-area:act}
  .coord-call{flex-direction:column;align-items:flex-start}
  .coord-call-results{justify-content:flex-start}
  .coord-controls{grid-template-columns:1fr}
}
@media(max-width:1180px){.coord-split{grid-template-columns:1fr}}
/* Assistants tabs and role worklists (2026-10-07) */
.coord-tabs{display:flex;gap:6px;padding:5px;background:var(--pc-soft-teal);border-radius:12px;width:max-content;max-width:100%;overflow:auto;margin-bottom:14px}
.coord-tabs button{border:0;background:transparent;border-radius:9px;padding:9px 14px;font-size:11px;font-weight:800;color:var(--pc-muted);white-space:nowrap}
.coord-tabs button.active{background:var(--pc-surface);color:var(--teal2);box-shadow:0 3px 12px rgba(12,53,68,.08)}
.coord-role-item{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line2)}
.coord-role-item.done{opacity:.6}
.coord-role-main{display:flex;flex-direction:column;gap:3px;min-width:0}
.coord-role-main strong{font-size:12px}
.coord-role-main p{margin:2px 0;font-size:11px;color:var(--ink)}
.coord-role-main small{font-size:10px;color:var(--muted)}
.coord-role-main .coord-chip-s{align-self:flex-start}
.coord-checks{margin:4px 0 0;padding-left:16px;font-size:10px;color:var(--pc-amber)}
.coord-template{margin-top:6px;border:1px dashed var(--line);border-radius:10px;padding:8px 10px;background:var(--pc-surface)}
.coord-template span{font-size:9px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-weight:800}
.coord-template p{margin:4px 0;font-size:11px;line-height:1.45}
.coord-role-actions{display:flex;align-items:flex-start}
.coord-needs{margin:0;padding-left:18px;font-size:11px;line-height:1.55}
.coord-needs li{margin-bottom:6px}
.coord-closeout{white-space:pre-wrap;font-size:11px;background:var(--pc-surface);border:1px solid var(--line2);border-radius:10px;padding:10px;margin:0 0 8px}
@media(max-width:760px){.coord-role-item{flex-direction:column}}
/* intake@ emails to check (2026-10-08) */
.coord-emails .coord-call small{display:block}
.coord-excerpt{font-style:italic;margin-top:2px;white-space:normal}

.coord-state-fix{display:inline-flex;align-items:center;gap:3px}
.coord-row-state{display:inline-flex}
/* Current board (2026-10-29) */
.cur-grid{display:grid;gap:10px;margin-bottom:14px}
.cur-row summary{display:flex;justify-content:space-between;gap:14px;align-items:center;cursor:pointer;list-style:none;padding:12px 14px}
.cur-row summary::-webkit-details-marker{display:none}
.cur-row.card{padding:0}
.cur-name{display:flex;flex-direction:column;min-width:0}
.cur-name small{color:var(--muted);font-size:10px}
.cur-counts{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.cur-count{display:inline-flex;flex-direction:column;align-items:center;min-width:64px;padding:6px 8px;border-radius:12px;background:var(--pc-surface-2)}
.cur-count b{font-size:18px;letter-spacing:-.03em}
.cur-count small{font-size:8px;text-transform:uppercase;letter-spacing:.06em;color:var(--pc-muted)}
.cur-count.ok b{color:var(--green)}.cur-count.info b{color:var(--teal2)}.cur-count.due b{color:var(--amber)}.cur-count.bad b{color:var(--red)}
.cur-count.zero b{color:var(--pc-muted)}
.cur-items{list-style:none;margin:0;padding:0 14px 12px}
.cur-item{display:grid;grid-template-columns:58px 80px minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:7px 0;border-top:1px solid var(--line2);font-size:11px}
.cur-item time{color:var(--muted);font-variant-numeric:tabular-nums}
.cur-kind{color:var(--pc-muted);text-transform:uppercase;font-size:9px;letter-spacing:.06em}
.cur-label small{display:block;color:var(--muted)}
.cur-nochart{color:var(--pc-muted);font-size:10px}
.cur-row .empty{padding:4px 14px 14px}
.cur-draft{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line2)}
.cur-draft div:first-child{display:flex;flex-direction:column}
.cur-draft small{color:var(--muted);font-size:10px}
.cur-draft-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
@media (max-width:760px){.cur-item{grid-template-columns:50px minmax(0,1fr) auto}.cur-kind,.cur-item time+ .cur-kind{display:none}.cur-row summary{flex-direction:column;align-items:flex-start}}
.cur-draft-preview pre { white-space: pre-wrap; font: inherit; margin: 6px 0; max-height: 360px; overflow: auto; }

/* On the Go (2026-10-08): phone-first; big tap targets; one column, centered on wide screens */
.go-page{display:grid;gap:14px;max-width:720px;margin:0 auto}
.go-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow)}
.go-card h2{margin:0 0 10px;font-size:16px;letter-spacing:-.01em}
.go-hero{border-radius:var(--radius);padding:16px;display:grid;gap:14px;border:1px solid var(--line);background:linear-gradient(135deg,var(--tealsoft),var(--pc-surface) 70%)}
.go-hero.stopped{border-color:var(--pc-line-tint);background:linear-gradient(135deg,var(--redsoft),var(--pc-surface) 70%)}
.go-hero-line{display:flex;gap:12px;align-items:flex-start}
.go-hero-line strong{display:block;font-size:20px;letter-spacing:-.02em}
.go-hero-line small{display:block;color:var(--muted);margin-top:3px;line-height:1.35}
.go-dot{width:12px;height:12px;border-radius:50%;margin-top:7px;flex:none;background:var(--teal);box-shadow:0 0 0 5px rgba(19,168,158,.15)}
.go-hero.stopped .go-dot{background:var(--red);box-shadow:0 0 0 5px rgba(207,61,75,.15)}
.go-big{width:100%;min-height:56px;border:0;border-radius:16px;font-size:17px;font-weight:900;cursor:pointer}
.go-stop{background:var(--red);color:#fff;box-shadow:0 10px 26px rgba(207,61,75,.28)}
.go-stop:active{background:var(--pc-red)}
.go-start{background:var(--teal2);color:#fff}
.go-plain{background:var(--navy);color:#fff;margin:6px 0}
.go-row{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:11px 0;border-top:1px solid var(--line2)}
.go-row:first-of-type{border-top:0}
.go-row>div:first-child{min-width:0}
.go-row strong{display:block;font-size:14px}
.go-row small{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.go-row.bad strong{color:var(--red)}
.go-actions{display:flex;gap:6px;flex:none}
.go-pill{min-height:40px;min-width:64px;padding:0 13px;border-radius:12px;border:1px solid var(--line);background:var(--pc-surface);font-weight:800;font-size:13px;color:var(--ink);cursor:pointer}
.go-pill.ok{background:var(--teal2);border-color:var(--teal2);color:#fff}
.go-pill.bad{background:var(--red);border-color:var(--red);color:#fff}
.go-pill:disabled,.go-lane:disabled{opacity:.5}
.go-chip{display:inline-block;border-radius:999px;padding:3px 9px;font-size:11px;font-weight:800;background:var(--line2);color:var(--muted)}
.go-chip.ok{background:var(--greensoft);color:var(--green)}
.go-chip.bad{background:var(--redsoft);color:var(--red)}
.go-assistant{padding:12px 0;border-top:1px solid var(--line2)}
.go-assistant:first-of-type{border-top:0;padding-top:0}
.go-assistant-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.go-assistant p{margin:4px 0 8px;color:var(--muted);font-size:13px}
.go-lanes{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:7px}
.go-lane{display:flex;justify-content:space-between;align-items:center;gap:6px;min-height:46px;padding:0 12px;border-radius:12px;border:1px solid var(--line);background:var(--pc-surface);font-size:13px;font-weight:700;color:var(--ink);cursor:pointer;text-align:left}
.go-lane em{font-style:normal;font-size:11px;font-weight:900;color:var(--muted)}
.go-lane.on{border-color:var(--pc-line-tint);background:var(--tealsoft)}
.go-lane.on em{color:var(--teal2)}
.go-assistant-foot{display:flex;gap:14px;margin-top:8px}
.go-link{border:0;background:transparent;color:var(--teal2);font-weight:800;font-size:13px;padding:8px 0;cursor:pointer}
.go-log{list-style:none;margin:0;padding:0}
.go-log li{display:grid;grid-template-columns:62px 1fr;gap:8px;padding:8px 0;border-top:1px solid var(--line2);font-size:13px}
.go-log li:first-child{border-top:0}
.go-log time{color:var(--muted);font-weight:700}
.go-empty,.go-note{color:var(--muted);font-size:13px;margin:6px 0 0;line-height:1.4}
.go-install{border:1px dashed var(--line);border-radius:14px;padding:12px;margin-bottom:12px}
.go-install ol{margin:8px 0;padding-left:20px;font-size:13px;line-height:1.6}
.go-install small{color:var(--muted)}
@media(max-width:760px){.go-page{gap:12px}.go-card,.go-hero{padding:14px}}

/* Finance Command Center: compact, evidence-led navy/teal surfaces. */
.finance-center{width:100%;min-width:0;grid-column:1/-1;box-sizing:border-box}
.pf-workspace{max-width:none!important;font-family:inherit}.pf-workspace *{box-sizing:border-box}.pf-hero{background:linear-gradient(115deg,var(--pc-navy),var(--pc-navy));color:#fff;border-radius:22px;padding:32px;display:flex;justify-content:space-between;gap:28px;align-items:center;margin-bottom:18px}.pf-eyebrow{font-size:10px;font-weight:800;letter-spacing:.16em;color:var(--pc-teal)}.pf-hero h2{font-size:clamp(25px,3vw,40px);line-height:1.15;margin:14px 0;letter-spacing:-.04em;color:white}.pf-hero p{color:#d9e9ee;font-size:14px}.pf-hero small{color:#a9c7d3;font-size:11px}.pf-hero-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:450px}.pf-hero-controls label{display:grid;gap:6px;font-size:11px;color:#d2e7e9}.pf-hero-controls input,.pf-hero-controls select{width:100%;min-width:0;border-radius:9px;border:1px solid var(--pc-line-hi);padding:10px;background:var(--pc-surface);color:var(--pc-ink);font:inherit}.pf-hero-controls .button{background:var(--pc-soft-teal);color:var(--pc-ink);border:0}.pf-tab-active{background:var(--pc-navy)!important;color:white!important}.pf-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}.pf-metric{background:var(--pc-surface);border:1px solid var(--pc-line);padding:22px;border-radius:16px}.pf-metric span{font-size:11px;color:var(--pc-ink-2);display:block;font-weight:700}.pf-metric strong{font-size:clamp(22px,2.3vw,34px);display:block;margin:13px 0;letter-spacing:-.04em}.pf-metric small{display:block;font-size:11px;line-height:1.6;color:var(--pc-muted)}.pf-metric.pf-profit{background:var(--pc-soft-teal);border-color:var(--pc-line-tint)}.pf-loss{color:var(--pc-red)}.pf-gain{color:var(--pc-teal-deep)}.pf-halves{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}.pf-half{background:var(--pc-surface-2);border:1px solid var(--pc-line-tint);border-radius:16px;padding:24px}.pf-half>strong{font-size:32px;letter-spacing:-.03em}.pf-half p{font-size:13px;color:var(--pc-ink-2)}.pf-half small{font-size:11px;color:var(--pc-muted);line-height:1.6}.pf-trend{width:100%;height:auto;min-height:180px}.pf-bar{fill:var(--pc-teal-deep);stroke:var(--pc-teal-deep);stroke-width:2}.pf-bar-loss{fill:var(--pc-red);stroke:var(--pc-red);stroke-width:2}.pf-bar-forecast{fill:#eff8f7;stroke-dasharray:4 2}.pf-workspace td small{display:block;font-size:10px;color:var(--pc-muted);margin-top:5px}.pf-selected td{background:var(--pc-soft-teal)}.pf-provider-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.pf-result{font-size:32px;font-weight:750;margin:14px 0}.pf-input-table input{width:140px;min-height:40px;border:1px solid var(--pc-line);border-radius:8px;padding:10px;font:inherit;text-align:right}.pf-workspace fieldset{border:0;margin:0;padding:0;min-width:0}.pf-workspace form h3{margin:24px 0 16px}.pf-workspace form>.button{margin-top:16px}.pf-workspace select,.pf-workspace input,.pf-workspace textarea{font:inherit}.pf-ai textarea{display:block;width:100%;min-height:115px;border:1px solid var(--pc-line);border-radius:12px;padding:16px;margin:10px 0 16px;resize:vertical}.pf-ai label{font-size:13px;font-weight:700}.pf-answer{background:var(--pc-surface-2);border:1px solid var(--pc-line);padding:22px;margin-top:22px;border-radius:14px}.pf-answer p{white-space:pre-wrap;line-height:1.75}.pf-answer small{color:var(--pc-muted)}.pf-method{margin-top:24px}.pf-back{margin:0 0 16px;grid-column:1/-1}.pf-workspace .fc-table td{padding:14px}.pf-workspace .fc-panel{padding:24px}
@media(max-width:1100px){.pf-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.pf-provider-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.pf-hero{align-items:start}.pf-hero-controls{max-width:330px}}
@media(max-width:720px){.pf-hero{display:block;padding:24px}.pf-hero-controls{max-width:none;margin-top:22px}.pf-halves,.pf-provider-cards{grid-template-columns:1fr}.pf-metric{padding:16px}.pf-workspace .fc-panel{padding:16px}.pf-metrics{gap:9px}}
.finance-center{--fc-navy:#102f40;--fc-teal:#087f83;--fc-line:#d8e5e9;--fc-muted:#536c7b;container-type:inline-size;color:var(--fc-navy);font-variant-numeric:tabular-nums;max-width:1600px;margin:auto}
.fc-context{position:sticky;top:76px;z-index:12;background:var(--pc-surface);border:1px solid var(--fc-line);border-radius:16px;padding:15px 18px;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;box-shadow:0 6px 18px #133f4b06}.fc-context strong{font-size:16px}.fc-context small{display:block;color:var(--fc-muted);margin-top:6px;line-height:1.5}.fc-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:end}.fc-controls label{font-size:11px;font-weight:700;color:var(--fc-muted);display:grid;gap:5px}.fc-controls input,.fc-controls select,.fc-form input,.fc-form select,.fc-form textarea,.fc-mapping input,.fc-mapping select{min-height:38px;padding:8px 10px;border:1px solid var(--pc-line);border-radius:8px;background:var(--pc-surface);color:var(--fc-navy);font:inherit;max-width:100%;min-width:0}.fc-tabs{display:flex;gap:6px;overflow:auto;margin:20px 0}.fc-tabs button{white-space:nowrap;padding:10px 14px;background:none;border:0;border-radius:10px;color:var(--fc-muted);font-weight:650;cursor:pointer}.fc-tabs button[aria-selected=true]{background:var(--pc-navy);color:white}.fc-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:16px 0}.fc-metric{border:1px solid var(--fc-line);border-radius:14px;background:var(--pc-surface);text-align:left;padding:18px 16px;cursor:pointer;min-height:139px;color:inherit}.fc-metric span{display:block;font-size:11px;font-weight:700;line-height:1.5;text-transform:uppercase;letter-spacing:.05em;color:var(--fc-muted)}.fc-metric strong{font-size:clamp(18px,2vw,28px);letter-spacing:-.04em;display:block;margin:12px 0 7px;font-weight:750}.fc-metric small{font-size:11px;line-height:1.5;color:var(--fc-muted);display:block}.fc-panel{border:1px solid var(--fc-line);border-radius:16px;padding:22px;background:var(--pc-surface);margin-bottom:16px}.fc-panel h2{font-size:18px;letter-spacing:-.02em;margin:0 0 8px}.fc-panel h3{font-size:14px;margin:0 0 8px}.fc-panel p{color:var(--fc-muted);font-size:13px;line-height:1.6;margin:5px 0 14px}.fc-panel-head{display:flex;justify-content:space-between;align-items:start;gap:14px;flex-wrap:wrap;margin-bottom:18px}.fc-kicker{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--fc-teal);font-weight:800;margin-bottom:6px}.fc-split{display:grid;grid-template-columns:1fr 1fr;gap:16px}.fc-chart{width:100%;height:auto;min-height:190px}.fc-gridline{stroke:#e4ecef;stroke-width:1}.fc-axis{fill:var(--pc-ink-2);font-size:12px}.fc-actual{fill:none;stroke:var(--pc-ink);stroke-width:3}.fc-forecast{fill:none;stroke:var(--pc-teal-deep);stroke-width:3;stroke-dasharray:7 5}.fc-scenario{fill:none;stroke:var(--pc-muted);stroke-width:2;stroke-dasharray:3 4}.fc-reserve{stroke:var(--pc-amber);stroke-dasharray:5 5}.fc-point{fill:white;stroke:var(--pc-teal-deep);stroke-width:2;cursor:pointer}.fc-point:hover,.fc-point:focus{r:6;fill:var(--pc-teal-deep);outline:3px solid var(--pc-line-tint)}.fc-legend{display:flex;gap:18px;flex-wrap:wrap;font-size:11px;color:var(--fc-muted);margin:8px 0 10px}.fc-legend i{width:25px;display:inline-block;border-top:3px solid var(--pc-navy);margin-right:6px;vertical-align:middle}.fc-legend .forecast{border-color:var(--pc-teal-deep);border-top-style:dashed}.fc-legend .reserve{border-color:var(--pc-amber);border-top-style:dashed}.fc-legend .scenario{border-color:var(--pc-line-hi);border-top-style:dotted}.fc-banner{padding:12px 15px;background:var(--pc-surface-2);border-radius:10px;font-size:12px;line-height:1.6;margin:12px 0;border-left:3px solid var(--pc-line-hi)}.fc-banner.warning{background:var(--pc-soft-amber);border-color:var(--pc-amber)}.fc-banner.danger{background:var(--pc-surface);border-color:var(--pc-red)}.fc-banner.success{background:var(--pc-soft-teal);border-color:var(--pc-teal-deep)}.fc-empty{padding:42px 22px;text-align:center;border:1px dashed var(--pc-line);border-radius:16px;background:linear-gradient(145deg,var(--pc-surface),var(--pc-surface));margin:16px 0}.fc-empty h2{font-size:22px;margin:12px 0}.fc-empty p{max-width:620px;margin:12px auto 20px;line-height:1.65;color:var(--fc-muted)}.fc-badge{display:inline-block;font-size:10px;font-weight:750;letter-spacing:.03em;padding:5px 8px;border-radius:6px;background:var(--pc-soft-blue);color:var(--pc-ink-2)}.fc-badge.actual{background:var(--pc-soft-teal);color:var(--pc-ink)}.fc-badge.forecast{background:var(--pc-soft-teal);color:var(--pc-ink)}.fc-badge.provisional{background:var(--pc-soft-amber);color:var(--pc-amber)}.fc-table-wrap{overflow:auto;max-width:100%;border:1px solid var(--fc-line);border-radius:10px}.fc-table{border-collapse:collapse;width:100%;font-size:12px}.fc-table th,.fc-table td{padding:12px 14px;text-align:right;white-space:nowrap;border-bottom:1px solid var(--pc-line)}.fc-table th{background:var(--pc-surface);color:var(--pc-ink-2);font-size:10px;text-transform:uppercase;letter-spacing:.05em}.fc-table th:first-child,.fc-table td:first-child{text-align:left}.fc-table td:first-child{font-weight:650}.fc-grid th:first-child,.fc-grid td:first-child{position:sticky;left:0;background:var(--pc-surface);z-index:2;box-shadow:1px 0 #d8e5e9}.fc-grid tr:last-child td{background:var(--pc-soft-teal);font-weight:750}.fc-link{padding:0;border:0;background:none;color:var(--pc-teal-deep);text-decoration:underline;text-underline-offset:3px;cursor:pointer;font:inherit}.fc-list{display:grid;gap:10px}.fc-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid var(--pc-line)}.fc-row strong{display:block;font-size:13px}.fc-row small{display:block;color:var(--fc-muted);font-size:11px;line-height:1.6;margin-top:4px}.fc-row:last-child{border-bottom:0}.fc-number{white-space:nowrap;font-weight:750}.fc-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.fc-form label{display:grid;gap:6px;font-size:12px;font-weight:650;color:var(--pc-ink-2)}.fc-form .wide{grid-column:1/-1}.fc-form textarea{min-height:74px;resize:vertical}.fc-form .check{display:flex;align-items:start;gap:8px;line-height:1.6}.fc-form input[type=checkbox]{min-height:20px;width:20px;flex-shrink:0}.fc-form small{font-weight:400;line-height:1.5;color:var(--fc-muted)}.fc-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.fc-error{padding:12px;background:var(--pc-surface);color:var(--pc-red);border-radius:8px;font-size:12px;line-height:1.6}.fc-drawer-result{margin:16px 0}.fc-evidence{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.7;background:var(--pc-surface);padding:14px;border-radius:8px}.fc-stepper{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0;font-size:11px;color:var(--pc-muted)}.fc-stepper b{color:var(--pc-teal-deep)}.fc-mapping{display:grid;grid-template-columns:2fr 1fr;gap:10px;margin:12px 0;padding:14px;background:var(--pc-surface);border:1px solid var(--pc-line);border-radius:10px}.fc-mapping label{display:grid;gap:5px;font-size:11px}.fc-mapping h3{grid-column:1/-1;margin:0;font-size:13px}.fc-planning>summary,.fc-panel summary{cursor:pointer;font-size:14px;font-weight:700;padding:6px 0}.fc-panel details .fc-panel{margin-top:15px}.fc-provider{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:14px;align-items:center;padding:16px 0;border-bottom:1px solid var(--pc-line)}.fc-provider h3{margin:0 0 6px}.fc-provider span{display:block;color:var(--pc-muted);font-size:11px;margin-bottom:5px}.fc-provider strong{font-size:20px}.fc-chart-table{margin-top:15px}.finance-center :focus-visible,.fc-form :focus-visible,.fc-mapping :focus-visible{outline:3px solid var(--pc-teal-deep);outline-offset:3px}.finance-center button:disabled,.fc-form button:disabled{opacity:.6;cursor:not-allowed}.fc-neutral{color:var(--pc-ink-2)}.fc-approved{background:var(--pc-soft-teal)}.fc-danger{color:var(--pc-red)}.fc-import-actions{position:sticky;bottom:0;background:var(--pc-surface);padding:10px 0;border-top:1px solid var(--pc-line-tint)}.fc-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.fc-detail-grid>div{background:var(--pc-surface-2);padding:13px;border-radius:10px}.fc-detail-grid span{display:block;font-size:11px;color:var(--pc-ink-2);margin-bottom:6px}.fc-detail-grid strong{font-size:20px}.fc-audit-note{font-size:10px!important;color:var(--pc-muted)!important;line-height:1.5!important;margin-top:16px!important}
@container(max-width:1000px){.fc-metrics{grid-template-columns:repeat(3,1fr)}.fc-context{position:static}.fc-split{grid-template-columns:1fr}}
@container(max-width:650px){.fc-metrics{grid-template-columns:repeat(2,1fr)}.fc-metric{padding:14px;min-height:125px}.fc-metric strong{font-size:22px}.fc-panel{padding:16px}.fc-form,.fc-provider{grid-template-columns:1fr}.fc-context{padding:14px}.fc-controls{width:100%}.fc-controls label{flex:1}.fc-tabs{gap:0}.fc-tabs button{padding:9px 10px}.fc-mapping{grid-template-columns:1fr}.fc-split{display:block}}
@media(max-width:600px){.fc-form{grid-template-columns:1fr}.fc-panel{padding:14px}.fc-detail-grid strong{font-size:17px}.fc-mapping{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.finance-center *{transition:none!important;animation:none!important}}
.pf-effective{display:flex;flex-direction:column;gap:4px;margin-bottom:12px;max-width:320px}
.pf-effective input[type=month]{height:40px;border:1px solid var(--line);border-radius:10px;padding:0 10px}
.pf-effective small{color:var(--muted);font-size:10px}
.pf-input-table input[type=month]{min-width:112px;height:36px;border:1px solid var(--line);border-radius:8px;padding:0 8px}
.pf-input-table .pf-active{text-align:center}
.pf-input-table .pf-active input{width:18px;height:18px}
.pf-hint{color:var(--muted);font-size:11px;margin:8px 0 0}

/* Payback & debt tab + cumulative line (2026-10-06) */
.pf-cumulative{fill:none;stroke:var(--pc-blue);stroke-width:2.5}
.pf-cumulative-dot{fill:var(--pc-blue)}
.pf-cumulative-label{fill:var(--pc-blue);font-weight:600}
.pf-section-head{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:flex-start}
.pf-actions{display:flex;gap:8px;flex-wrap:wrap}
.pf-upload{cursor:pointer}
.pf-np-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;margin:8px 0 16px}
.pf-np-card{border:1px solid var(--pc-line-tint);border-radius:10px;padding:12px;background:var(--pc-surface)}
.pf-np-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.pf-np-big{font-size:1.35rem;font-weight:700;margin:6px 0}
.pf-np-big small{font-size:.75rem;font-weight:400;color:var(--pc-ink-2)}
.pf-np-card dl{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;margin:8px 0 0;font-size:.85rem}
.pf-np-card dt{color:var(--pc-ink-2)}
.pf-np-card dd{margin:0}
.pf-badge{font-size:.72rem;padding:2px 8px;border-radius:999px;background:var(--pc-soft-blue);white-space:nowrap}
.pf-badge.pf-ok{background:var(--pc-soft-green);color:var(--pc-green)}
.pf-badge.pf-warn{background:var(--pc-soft-amber);color:var(--pc-amber)}
.pf-badge.pf-bad{background:var(--pc-soft-red);color:var(--pc-red)}
.pf-progress{width:100%;height:8px;display:block;margin:6px 0}
.pf-progress-bg{fill:#e4e7eb}
.pf-progress-fill{fill:var(--pc-green)}
.pf-kpis{display:flex;flex-wrap:wrap;gap:12px;margin:8px 0 16px}
.pf-kpis>div{border:1px solid var(--pc-line-tint);border-radius:10px;padding:10px 14px;min-width:150px;display:flex;flex-direction:column;background:var(--pc-surface)}
.pf-kpis strong{font-size:1.15rem}
.pf-kpis small{color:var(--pc-ink-2)}
.pf-total td{font-weight:700;border-top:2px solid var(--pc-line)}

/* Billing area (revenue cycle, owner 2026-10-30). Reuses the Current frame (.pq-eg); these rules only add the RCM bits. */
html body.pq[data-pq-view="rcm"] .content { padding: 0; }
html body.pq[data-pq-view="rcm"] .pq-subbar { display: none; }
html body.pq .pc-rcm-banner { margin: 0 0 14px; padding: 8px 12px; border-radius: 6px; background: #FFF6E5; color: #6B4A00; border: 1px solid #F2D49B; font-size: 13px; }
html body.pq .pc-rcm-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; }
html body.pq .pc-rcm-kpi { border: 1px solid #DCE3EA; border-radius: 8px; padding: 10px 12px; background: #FFFFFF; text-align: left; font: inherit; color: inherit; }
html body.pq button.pc-rcm-kpi { cursor: pointer; }
html body.pq button.pc-rcm-kpi.on { border-color: #1E4C79; box-shadow: inset 0 0 0 1px #1E4C79; }
html body.pq .pc-rcm-kpi-v { font-size: 20px; font-weight: 700; color: #1E4C79; }
html body.pq .pc-rcm-kpi-l { font-size: 12px; color: #5B6B7B; margin-top: 2px; }
html body.pq .pc-rcm-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 0 0 12px; }
html body.pq .pc-rcm-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
html body.pq .pc-rcm-form label { display: grid; gap: 4px; font-size: 12px; color: #44515E; min-width: 140px; }
html body.pq .pc-rcm-form label.wide { flex: 1 1 100%; }
html body.pq .pc-rcm-form input, html body.pq .pc-rcm-form select, html body.pq .pc-rcm-form textarea { font: inherit; padding: 6px 8px; border: 1px solid #C9D3DD; border-radius: 4px; background: #FFFFFF; color: #1F2A36; }
html body.pq .pc-rcm-form textarea { min-height: 120px; width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
html body.pq .pc-rcm-pre { white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; background: #F6F8FA; border: 1px solid #E1E6EB; border-radius: 6px; padding: 10px; max-height: 60vh; overflow: auto; }
html body.pq .pc-rcm-small { font-size: 12px; color: #5B6B7B; }
html body.pq .pc-rcm-grid td { vertical-align: top; }
html body.pq .pc-rcm-cell { display: grid; gap: 2px; text-align: left; background: none; border: 1px dashed transparent; border-radius: 4px; padding: 2px 4px; cursor: pointer; font: inherit; color: inherit; }
html body.pq .pc-rcm-cell:hover { border-color: #9FB3C8; }
html body.pq .pc-rcm-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
html body.pq .pc-rcm-checks label { display: grid; grid-template-columns: 18px 1fr; gap: 6px; font-size: 13px; padding: 4px 0; }
html body.pq .pc-rcm-hints { margin: 4px 0 0; padding-left: 18px; font-size: 12px; color: #5B6B7B; }
@media (max-width: 760px) {
  html body.pq .pc-rcm .pq-eg-side nav { display: flex; flex-wrap: wrap; }
  html body.pq .pc-rcm-form label { min-width: 0; flex: 1 1 100%; }
}
html body.pq .pc-rcm-h3 { font-size: 15px; margin: 18px 0 10px; color: #1F2A36; }
html body.pq .pc-rcm-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
html body.pq .pc-rcm .pq-nowrap { white-space: nowrap; }
html body.pq .pc-rcm-cell .pq-tag { justify-self: start; }
/* Clearinghouse card and the mock eligibility result (owner 2026-10-30, Stedi test mode). */
html body.pq .pc-rcm-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 8px; }
html body.pq .pc-rcm-row label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #5B6B7B; }
html body.pq .pc-rcm-elig h5 { margin: 12px 0 4px; font-size: 13px; }
/* Billing v1 (2026-11-03): switches, go live steps, the NP code card, coverage badges, statement and estimate documents. Light only. */
html body.pq .pc-v1-off { background: #F3F6F9; color: #44515E; border-color: #DCE3EA; }
html body.pq .pc-v1-switch { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; }
html body.pq .pc-v1-step { display: grid; grid-template-columns: 18px 1fr; gap: 6px; font-size: 13px; padding: 3px 0; }
html body.pq .pc-v1-doc p { margin: 0 0 8px; }
html .pc-v1-np .pc-v1-nplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
html .pc-v1-np .pc-v1-nplist li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid #DCE3EA; border-radius: 8px; background: #FFFFFF; }
html .pc-v1-np .pc-v1-npbtns { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
html .pc-v1-np .pc-v1-npbtns select { max-width: 240px; }
html .pc-v1-cov { font-style: normal; }
html .pc-v1-cov.ok { background: #E7F5EC; color: #1F6B3A; }
html .pc-v1-cov.warn { background: #FFF4DF; color: #7A5200; }
html .pc-v1-cov.bad { background: #FDEBEC; color: #9B2230; }
html .pc-v1-cov.grey { background: #EEF2F5; color: #44515E; }
@media (max-width: 760px) { html .pc-v1-np .pc-v1-nplist li { flex-direction: column; align-items: stretch; } }
html .pq-ev .pc-v1-cov { display: block; width: max-content; max-width: 100%; margin-top: 2px; padding: 0 4px; border-radius: 3px; font-size: 10px; line-height: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* lead-engine.css: the Growth tab (Reports > Command Center > Growth, owner 2026-11-03). PracticeQ tables (pq.css) with a few Growth bits. Light only. */
html body.pq .pc-gr-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 0 0 4px; }
html body.pq .pc-gr-kpi { border: 1px solid #DCE3EA; border-radius: 8px; padding: 12px; background: #FFFFFF; }
html body.pq .pc-gr-kpi-v { font-size: 22px; font-weight: 700; color: #1E4C79; }
html body.pq .pc-gr-kpi-l { font-size: 12px; color: #44515E; margin-top: 2px; font-weight: 600; }
html body.pq .pc-gr-kpi-f { font-size: 11px; color: #5B6B7B; margin-top: 2px; }
html body.pq .pc-gr-table { font-size: 14px; }
html body.pq .pc-gr-table th[scope="row"] { text-align: left; font-weight: 600; white-space: nowrap; }
html body.pq .pc-gr-table td small { display: block; font-size: 11px; color: #5B6B7B; }
html body.pq .pc-gr-table tr.pc-gr-total th, html body.pq .pc-gr-table tr.pc-gr-total td { background: #F5F7F9; font-weight: 700; }
html body.pq .pc-gr-muted { color: #6B7785; font-size: 12px; }
html body.pq .pc-gr-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
html body.pq .pc-gr-tools label, html body.pq .pc-gr-field { display: grid; gap: 4px; font-size: 12px; color: #44515E; }
html body.pq .pc-gr-tools select, html body.pq .pc-gr-field input { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid #C9D3DD; border-radius: 4px; background: #FFFFFF; color: #1F2A36; min-width: 160px; }
html body.pq .pc-gr-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
html body.pq .pc-gr-field small { color: #5B6B7B; font-size: 11px; }
html body.pq .pc-gr-field.wide { margin-top: 12px; }
html body.pq .pc-gr-field.wide input { width: 100%; }
html body.pq .pc-gr-save { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
html body.pq .pc-gr-save small { color: #5B6B7B; font-size: 12px; }
html body.pq .pc-gr-notes { margin: 0; padding-left: 18px; font-size: 13px; color: #44515E; line-height: 1.5; }
@media (max-width: 760px) { html body.pq .pc-gr-kpis { grid-template-columns: 1fr 1fr; } html body.pq .pc-gr-tools select { min-width: 0; width: 100%; } }

/* growth-engine.css: Reports > Command Center > Growth engine (multi-practice P5). PracticeQ tables and buttons (pq.css) with a few Growth engine bits. Light only. */
html body.pq .pc-ge-tabs { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 0 4px; border-bottom: 1px solid #DCE3EA; }
html body.pq .pc-ge-tabs button { font: inherit; font-size: 14px; height: 40px; padding: 0 14px; border: 1px solid transparent; border-bottom: 0; background: transparent; color: #1E4C79; cursor: pointer; }
html body.pq .pc-ge-tabs button.on { background: #FFFFFF; border-color: #DCE3EA; color: #44515E; font-weight: 600; position: relative; top: 1px; }
html body.pq .pc-ge-tabs button:focus-visible { outline: 2px solid #1E4C79; outline-offset: -2px; }
html body.pq .pc-ge-table { font-size: 14px; }
html body.pq .pc-ge-table th[scope="row"] { text-align: left; font-weight: 600; }
html body.pq .pc-ge-table small, html body.pq .pc-ge-table td small { display: block; font-size: 12px; color: #5B6B7B; font-weight: 400; margin-top: 2px; }
html body.pq .pc-ge-table .r { text-align: right; white-space: nowrap; }
html body.pq .pc-ge-muted { color: #6B7785; font-size: 13px; }
html body.pq .pc-ge-ok { color: #2B6E37; font-size: 13px; margin: 10px 0 0; }
html body.pq .pc-ge-notice { margin: 8px 0; }
html body.pq .pc-ge-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; background: #EEF2F6; color: #44515E; }
html body.pq .pc-ge-badge.ok { background: #E6F4EA; color: #2B6E37; }
html body.pq .pc-ge-badge.wait { background: #FFF4E0; color: #8A5A00; }
html body.pq .pc-ge-badge.bad { background: #FDECEC; color: #A12C2C; }
html body.pq .pc-ge-badge.off { background: #EEF2F6; color: #5B6B7B; }
html body.pq .pc-ge-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
html body.pq .pc-ge-switch input { width: 18px; height: 18px; }
html body.pq .pc-ge-pieces { display: grid; }
html body.pq .pc-ge-piece { display: grid; grid-template-columns: minmax(0, 1fr) 90px 260px 170px; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid #EEF2F6; }
html body.pq .pc-ge-piece:first-child { border-top: 0; }
html body.pq .pc-ge-piece-name strong { display: block; font-size: 15px; color: #1F2A36; }
html body.pq .pc-ge-piece small { display: block; font-size: 12px; color: #5B6B7B; margin-top: 2px; }
html body.pq .pc-ge-piece-go { text-align: right; }
html body.pq .pc-ge-form { display: grid; gap: 12px; }
html body.pq .pc-ge-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
html body.pq .pc-ge-field { display: grid; gap: 4px; font-size: 12px; color: #44515E; }
html body.pq .pc-ge-field span { font-weight: 600; }
html body.pq .pc-ge-field small { color: #5B6B7B; font-size: 11px; }
html body.pq .pc-ge-field input, html body.pq .pc-ge-field select, html body.pq .pc-ge-field textarea, html body.pq .pc-ge-hour input { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid #C9D3DD; border-radius: 4px; background: #FFFFFF; color: #1F2A36; width: 100%; box-sizing: border-box; }
html body.pq .pc-ge-field textarea { resize: vertical; line-height: 1.45; }
html body.pq .pc-ge-field input:disabled, html body.pq .pc-ge-field textarea:disabled, html body.pq .pc-ge-field select:disabled { background: #F5F7F9; color: #44515E; }
html body.pq .pc-ge-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #1F2A36; }
html body.pq .pc-ge-checks { display: flex; flex-wrap: wrap; gap: 18px; }
html body.pq .pc-ge-h3 { font-size: 15px; margin: 8px 0 0; color: #1F2A36; }
html body.pq .pc-ge-hours { display: grid; gap: 6px; }
html body.pq .pc-ge-hour { display: grid; grid-template-columns: 140px 120px auto 120px; align-items: center; gap: 8px; font-size: 14px; }
html body.pq .pc-ge-np { border: 1px solid #DCE3EA; border-radius: 6px; padding: 10px 12px 12px; display: grid; gap: 10px; }
html body.pq .pc-ge-np legend { font-size: 13px; font-weight: 600; color: #44515E; padding: 0 4px; }
html body.pq .pc-ge-np .button.danger { justify-self: start; }
html body.pq .pc-ge-save { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
html body.pq .pc-ge-save small { color: #5B6B7B; font-size: 12px; }
html body.pq .pc-ge-approve { margin-top: 12px; padding: 10px 12px; border: 1px solid #F0D9A8; background: #FFFAF0; border-radius: 6px; display: grid; gap: 8px; justify-items: start; }
html body.pq .pc-ge-approve p { margin: 0; font-size: 13px; }
html body.pq .pc-ge-approve small { color: #5B6B7B; }
html body.pq .pc-ge-list { margin: 0; padding-left: 18px; font-size: 13px; color: #44515E; line-height: 1.55; }
html body.pq .pc-ge-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 0 0 10px; }
html body.pq .pc-ge-kpis div { border: 1px solid #DCE3EA; border-radius: 8px; padding: 10px 12px; background: #FFFFFF; display: grid; gap: 2px; }
html body.pq .pc-ge-kpis strong { font-size: 20px; color: #1E4C79; }
html body.pq .pc-ge-kpis span { font-size: 12px; color: #44515E; }
html body.pq .pc-ge-inline { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
html body.pq .pc-ge-kit { display: grid; grid-template-columns: 200px 1fr auto; gap: 10px; align-items: start; padding: 8px 0; border-top: 1px solid #EEF2F6; }
html body.pq .pc-ge-kit small { display: block; font-size: 11px; color: #5B6B7B; }
html body.pq .pc-ge-kit pre { margin: 0; white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 13px; color: #1F2A36; background: #F8FAFB; border: 1px solid #EEF2F6; border-radius: 4px; padding: 6px 8px; }
@media (max-width: 760px) {
  html body.pq .pc-ge-piece { grid-template-columns: 1fr auto; }
  html body.pq .pc-ge-piece-status, html body.pq .pc-ge-piece-go { grid-column: 1 / -1; text-align: left; }
  html body.pq .pc-ge-hour { grid-template-columns: 1fr 1fr; }
  html body.pq .pc-ge-hour span { display: none; }
  html body.pq .pc-ge-kit { grid-template-columns: 1fr; }
  html body.pq .pc-ge-tabs button { height: 36px; padding: 0 10px; font-size: 13px; }
}

/* network.css: Reports > Command Center > Referral network (multi-practice P6, shadow mode). PracticeQ tables (pq.css), light only. */
html body.pq .pc-net-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 0 0 12px; }
html body.pq .pc-net-kpi { border: 1px solid #DCE3EA; border-radius: 8px; padding: 12px; background: #FFFFFF; }
html body.pq .pc-net-kpi-v { font-size: 22px; font-weight: 700; color: #1E4C79; }
html body.pq .pc-net-kpi-l { font-size: 12px; color: #44515E; margin-top: 2px; font-weight: 600; }
html body.pq .pc-net-kpi-f { font-size: 11px; color: #5B6B7B; margin-top: 2px; }
html body.pq .pc-net-table { font-size: 14px; }
html body.pq .pc-net-table th[scope="row"] { text-align: left; font-weight: 600; }
html body.pq .pc-net-table th[scope="row"] small { display: block; font-weight: 400; font-size: 11px; color: #5B6B7B; }
html body.pq .pc-net-table tr.pc-net-open td { background: #F7F9FB; }
html body.pq .pc-net-muted { color: #5B6B7B; font-size: 12px; }
html body.pq .pc-net-h3, html body.pq .pc-net-two h3, html body.pq .pc-net-addbox h3 { font-size: 14px; margin: 16px 0 8px; color: #1F2A36; }
html body.pq .pc-net-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
html body.pq .pc-net-list, html body.pq .pc-net-warn { margin: 0; padding-left: 18px; font-size: 13px; color: #44515E; line-height: 1.5; }
html body.pq .pc-net-warn { color: #7A5A00; margin-bottom: 10px; }
html body.pq .pc-net-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; }
html body.pq .pc-net-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid transparent; }
html body.pq .pc-net-pill.ok { background: #E7F5EC; color: #1F6B3A; border-color: #BFE3CB; }
html body.pq .pc-net-pill.wait { background: #FFF6DD; color: #7A5A00; border-color: #F0DB9C; }
html body.pq .pc-net-pill.bad { background: #FBE9E9; color: #9B2C2C; border-color: #F1C4C4; }
html body.pq .pc-net-pill.none { background: #F1F4F7; color: #44515E; border-color: #DCE3EA; }
html body.pq .pc-net-live-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
html body.pq .pc-net-checks { margin: 0 0 8px; padding-left: 18px; font-size: 13px; line-height: 1.6; color: #1F2A36; }
html body.pq .pc-net-checks li.ok strong { color: #1F6B3A; }
html body.pq .pc-net-checks li.no strong { color: #9B2C2C; }
html body.pq .pc-net-checks span { color: #5B6B7B; }
html body.pq .pc-net-disc { margin: 0; padding-left: 20px; font-size: 14px; color: #1F2A36; }
html body.pq .pc-net-disc li { margin-bottom: 10px; }
html body.pq .pc-net-disc p { margin: 4px 0 0; line-height: 1.5; color: #44515E; }
html body.pq .pc-net-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
html body.pq .pc-net-field { display: grid; gap: 4px; font-size: 12px; color: #44515E; align-content: start; }
html body.pq .pc-net-field.wide { grid-column: 1 / -1; }
html body.pq .pc-net-field input, html body.pq .pc-net-field select, html body.pq .pc-net-field textarea { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid #C9D3DD; border-radius: 4px; background: #FFFFFF; color: #1F2A36; width: 100%; box-sizing: border-box; }
html body.pq .pc-net-field small { color: #5B6B7B; font-size: 11px; }
html body.pq .pc-net-pair { display: flex; align-items: center; gap: 6px; }
html body.pq .pc-net-pair input { width: 80px; }
html body.pq .pc-net-checks-row { display: flex; flex-wrap: wrap; gap: 14px; }
html body.pq .pc-net-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #1F2A36; }
html body.pq .pc-net-crit { display: grid; gap: 6px; margin-bottom: 12px; font-size: 13px; }
html body.pq .pc-net-save { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
html body.pq .pc-net-save small { color: #5B6B7B; font-size: 12px; }
html body.pq .pc-net-errors ul { margin: 8px 0 0; padding-left: 18px; color: #9B2C2C; font-size: 13px; }
html body.pq .pc-net-addbox { border: 1px solid #DCE3EA; border-radius: 8px; padding: 12px; margin-bottom: 12px; background: #FBFCFD; }
html body.pq .pc-net-edit { margin-top: 12px; }
html body.pq .pc-net-edit summary { cursor: pointer; font-size: 13px; color: #1E4C79; }
@media (max-width: 760px) { html body.pq .pc-net-kpis { grid-template-columns: 1fr 1fr; } html body.pq .pc-net-two { grid-template-columns: 1fr; } }

/* office.css: Reports > Command Center > Office Manager (owner 2026-11-03). PracticeQ tables (pq.css), light only. */
html body.pq .pc-om-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
html body.pq .pc-om-kpi { border: 1px solid #DCE3EA; border-radius: 8px; padding: 12px; background: #FFFFFF; }
html body.pq .pc-om-kpi-v { font-size: 22px; font-weight: 700; color: #1E4C79; }
html body.pq .pc-om-kpi-l { font-size: 12px; color: #44515E; margin-top: 2px; font-weight: 600; }
html body.pq .pc-om-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
html body.pq .pc-om-two > .card { margin-top: 0; }
html body.pq .pc-om-muted { color: #5B6B7B; font-size: 12px; }
html body.pq .pc-om-table { font-size: 14px; }
html body.pq .pc-om-table tr.pc-om-inactive td { color: #8A97A4; }
html body.pq .pc-om-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; }
html body.pq .pc-om-switches { display: grid; gap: 8px; margin-bottom: 10px; }
html body.pq .pc-om-switch { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #1F2A36; }
html body.pq .pc-om-switch small { display: block; color: #5B6B7B; font-size: 12px; }
html body.pq .pc-om-rules { margin: 8px 0 0; padding-left: 18px; font-size: 12px; color: #44515E; line-height: 1.5; }
html body.pq .pc-om-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; color: #1F2A36; }
html body.pq .pc-om-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid transparent; }
html body.pq .pc-om-pill.ok { background: #E7F5EC; color: #1F6B3A; border-color: #BFE3CB; }
html body.pq .pc-om-pill.wait { background: #FFF6DD; color: #7A5A00; border-color: #F0DB9C; }
html body.pq .pc-om-pill.bad { background: #FBE9E9; color: #9B2C2C; border-color: #F1C4C4; }
html body.pq .pc-om-pill.none { background: #F1F4F7; color: #44515E; border-color: #DCE3EA; }
html body.pq .pc-om-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
html body.pq .pc-om-cal-h { font-size: 12px; font-weight: 700; color: #44515E; padding: 4px; }
html body.pq .pc-om-cal-d { min-height: 64px; border: 1px solid #DCE3EA; border-radius: 4px; padding: 4px; background: #FFFFFF; font-size: 12px; overflow: hidden; }
html body.pq .pc-om-cal-d.today { border-color: #1E4C79; box-shadow: inset 0 0 0 1px #1E4C79; }
html body.pq .pc-om-cal-d.gap { background: #FFF6DD; border-color: #F0DB9C; }
html body.pq .pc-om-cal-d.past { opacity: .6; }
html body.pq .pc-om-cal-n { font-weight: 600; color: #44515E; margin-bottom: 2px; }
html body.pq .pc-om-cal-p { color: #1F2A36; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body.pq .pc-om-cal-p.pending { font-style: italic; color: #7A5A00; }
html body.pq .pc-om-gapdot { color: #9B2C2C; font-weight: 700; }
html body.pq .pc-om-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
html body.pq .pc-om-field { display: grid; gap: 4px; font-size: 12px; color: #44515E; align-content: start; }
html body.pq .pc-om-field.wide { grid-column: 1 / -1; margin-top: 6px; }
html body.pq .pc-om-field.small { max-width: 80px; }
html body.pq .pc-om-field input, html body.pq .pc-om-field select, html body.pq .pc-om-field textarea, html body.pq .pc-om-inline input { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid #C9D3DD; border-radius: 4px; background: #FFFFFF; color: #1F2A36; width: 100%; box-sizing: border-box; }
html body.pq .pc-om-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-top: 10px; }
html body.pq .pc-om-inline input { width: auto; }
html body.pq .pc-om-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #1F2A36; }
html body.pq .pc-om-save { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
html body.pq .pc-om-errors ul { margin: 6px 0 0; padding-left: 18px; color: #9B2C2C; font-size: 13px; }
html body.pq .pc-om-draft { border: 1px solid #DCE3EA; border-radius: 6px; padding: 10px 12px; margin-bottom: 10px; background: #FFFFFF; }
html body.pq .pc-om-draft-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
html body.pq .pc-om-items { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
html body.pq .pc-om-step { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
html body.pq .pc-om-step .pc-om-pill { min-width: 104px; text-align: center; }
html body.pq .pc-om-report { white-space: pre-wrap; font: 13px/1.5 var(--pq-font, sans-serif); background: #F7F9FB; border: 1px solid #DCE3EA; border-radius: 4px; padding: 10px; max-height: 420px; overflow: auto; }
@media (max-width: 760px) {
  html body.pq .pc-om-two { grid-template-columns: 1fr; }
  html body.pq .pc-om-cal { grid-template-columns: repeat(7, minmax(44px, 1fr)); overflow-x: auto; }
  html body.pq .pc-om-cal-d { min-height: 48px; font-size: 11px; }
}

/* agentops.css: More > Agent Ops (owner RJ 2026-11-19). One card per agent lane, red first. PracticeQ tables (pq.css), PC visuals, light only. */
html body.pq .pc-ao { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
html body.pq .pc-ao-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: #44515E; }
html body.pq .pc-ao-stale { margin: 0; }
html body.pq .pc-ao-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; align-items: start; }
html body.pq .pc-ao-card { background: #FFFFFF; border: 1px solid #DCE3EA; border-left: 5px solid #8FD3A7; border-radius: 8px; padding: 12px 14px; display: grid; gap: 10px; min-width: 0; }
html body.pq .pc-ao-card.red { border-left-color: #C53030; }
html body.pq .pc-ao-card.amber { border-left-color: #D69E2E; }
html body.pq .pc-ao-card.green { border-left-color: #2F855A; }
html body.pq .pc-ao-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 6px 10px; }
html body.pq .pc-ao-head > div { min-width: 0; }
html body.pq .pc-ao-more { min-width: 0; }
html body.pq .pc-ao-head h3 { margin: 0; font-size: 16px; color: #1E4C79; }
html body.pq .pc-ao-head p { margin: 2px 0 0; font-size: 12px; color: #5B6B7B; }
html body.pq .pc-ao-reasons { margin: 0; padding-left: 18px; font-size: 13px; color: #1F2A36; line-height: 1.45; }
html body.pq .pc-ao-card.red .pc-ao-reasons { color: #9B2C2C; }
html body.pq .pc-ao-sweep { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html body.pq .pc-ao-sweep > div { background: #F7F9FB; border: 1px solid #E3E9EF; border-radius: 6px; padding: 8px; display: grid; gap: 2px; min-width: 0; }
html body.pq .pc-ao-sweep span { font-size: 12px; font-weight: 700; color: #44515E; }
html body.pq .pc-ao-sweep strong { font-size: 15px; color: #1F2A36; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
html body.pq .pc-ao-sweep small { font-size: 12px; color: #5B6B7B; overflow-wrap: anywhere; }
html body.pq .pc-ao-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
html body.pq .pc-ao-num { border: 1px solid #E3E9EF; border-radius: 6px; padding: 6px 8px; display: grid; gap: 1px; }
html body.pq .pc-ao-num strong { font-size: 18px; color: #1E4C79; font-variant-numeric: tabular-nums; }
html body.pq .pc-ao-num span { font-size: 12px; color: #44515E; font-weight: 600; }
html body.pq .pc-ao-num.ok strong { color: #1F6B3A; }
html body.pq .pc-ao-num.wait { background: #FFFBEB; border-color: #F0DB9C; }
html body.pq .pc-ao-num.wait strong { color: #7A5A00; }
html body.pq .pc-ao-num.info strong { color: #1E4C79; }
html body.pq .pc-ao-num.bad { background: #FDF2F2; border-color: #F1C4C4; }
html body.pq .pc-ao-num.bad strong { color: #9B2C2C; }
html body.pq .pc-ao-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
html body.pq .pc-ao-pill.ok { background: #E7F5EC; color: #1F6B3A; border-color: #BFE3CB; }
html body.pq .pc-ao-pill.wait { background: #FFF6DD; color: #7A5A00; border-color: #F0DB9C; }
html body.pq .pc-ao-pill.bad { background: #FBE9E9; color: #9B2C2C; border-color: #F1C4C4; }
html body.pq .pc-ao-pill.none { background: #F1F4F7; color: #44515E; border-color: #DCE3EA; }
html body.pq .pc-ao-more > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #1E4C79; }
html body.pq .pc-ao-more h4 { margin: 12px 0 6px; font-size: 13px; color: #44515E; }
html body.pq .pc-ao-table { font-size: 13px; }
html body.pq .pc-ao-table small { color: #5B6B7B; }
html body.pq .pc-ao-chart { font: inherit; font-size: 13px; color: #1E4C79; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; white-space: nowrap; }
html body.pq .pc-ao-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
html body.pq .pc-ao-muted { color: #5B6B7B; font-size: 12px; }
html body.pq .pc-ao-foot { margin: 0; }
@media (max-width: 760px) {
  html body.pq .pc-ao-grid { grid-template-columns: minmax(0, 1fr); }
  html body.pq .pc-ao-sweep { grid-template-columns: minmax(0, 1fr); }
  html body.pq .pc-ao-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Focus over time (owner RJ 2026-11-20): one panel per focus test instrument on the chart and in Patient Progress. */
/* min-width 0: the chart's card column is a grid, and a wide table must scroll inside its own box, never widen the page. */
.pc-focus, .pc-focus-panel, .pc-focus-chart { min-width: 0; max-width: 100%; }
.pc-focus .pc-focus-table-wrap { overflow-x: auto; max-width: 100%; }
.pc-focus .pc-focus-note { margin: 0 0 10px; font-size: 11px; }
.pc-focus-panel { border: 1px solid var(--pc-line); border-radius: 14px; background: var(--pc-surface); padding: 12px 13px; margin-top: 10px; }
.pc-focus-panel + .pc-focus-panel { margin-top: 12px; }
.pc-focus-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pc-focus-head h4 { margin: 2px 0 0; font-size: 13px; color: var(--pc-ink); }
.pc-focus-meta { color: var(--pc-muted); font-size: 11px; }
.pc-focus-chart { margin: 10px 0 8px; border: 1px solid var(--pc-line-soft); border-radius: 12px; background: var(--pc-surface); padding: 4px 4px 0; }
.pc-focus-chart svg { display: block; width: 100%; height: auto; max-height: 240px; }
.pc-focus-grid { stroke: var(--pc-line-soft); stroke-width: 1; }
.pc-focus-cutoff { stroke: var(--pc-muted); stroke-width: 1; stroke-dasharray: 5 4; }
.pc-focus-axis { fill: var(--pc-muted); font-size: 10px; }
.pc-focus-chart.narrow .pc-focus-axis { font-size: 12px; }
.pc-focus-chart.narrow .pc-focus-value { font-size: 13px; }
.pc-focus-value { fill: var(--pc-ink); font-size: 11px; font-weight: 800; }
.pc-focus-line { fill: none; stroke: var(--pc-teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pc-focus-dot { fill: var(--pc-teal); stroke: var(--pc-surface); stroke-width: 2; }
.pc-focus-dot.latest { fill: var(--pc-teal-deep); }
.pc-focus-rx { stroke: var(--pc-violet); stroke-width: 1.5; stroke-dasharray: 2 3; }
.pc-focus-rx-label { fill: var(--pc-ink-2); font-size: 9px; font-weight: 800; }
.pc-focus-hit { fill: transparent; stroke: none; pointer-events: all; }
.pc-focus-pt:hover .pc-focus-dot, .pc-focus-pt:focus-within .pc-focus-dot { stroke: var(--pc-ink); }
.pc-focus-marker:hover .pc-focus-rx { stroke-width: 2.5; }
.pc-focus-table-wrap { margin-top: 4px; }
.pc-focus-table { width: 100%; border-collapse: collapse; }
.pc-focus-table th, .pc-focus-table td { padding: 8px 10px; text-align: left; vertical-align: top; border-top: 1px solid var(--pc-line-soft); }
.pc-focus-table thead th { border-top: 0; color: var(--pc-muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.pc-focus-table th[scope="row"] { font-size: 11px; color: var(--pc-ink); font-weight: 700; min-width: 170px; max-width: 240px; }
.pc-focus-table th[scope="row"] small, .pc-focus-table td small { display: block; color: var(--pc-muted); font-weight: 500; font-size: 10px; }
.pc-focus-table td { font-size: 11px; color: var(--pc-ink); white-space: nowrap; }
.pc-focus-all { margin-top: 10px; border-top: 1px solid var(--pc-line-soft); padding-top: 8px; }
.pc-focus-all summary { cursor: pointer; color: var(--pc-teal-deep); font-size: 11px; font-weight: 800; }
.pc-focus-foot { margin: 10px 0 0; color: var(--pc-muted); font-size: 10px; line-height: 1.45; }
.pc-focus-card .card-header h2 { font-size: 16px; }
@media (max-width: 640px) {
  .pc-focus-panel { padding: 10px; }
  .pc-focus-table th[scope="row"] { min-width: 140px; }
}

/* Writing assist (owner 2026-10-28): overlay underlines, fix popover, rewrite toolbar. Light mode only. */
.pc-wa { position: relative; display: block; width: 100%; }
.pc-wa > textarea { position: relative; z-index: 1; background: transparent !important; }
.pc-wa-mirror { position: absolute; inset: 0; z-index: 0; overflow: hidden; color: transparent; background: #fff; border-style: solid; border-color: transparent; border-radius: inherit; pointer-events: none; white-space: pre-wrap; overflow-wrap: break-word; }
.pc-wa-probe { visibility: hidden; height: auto; inset: auto; top: 0; left: 0; }
.pc-wa-u { color: transparent; background: transparent; text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.pc-wa-spelling { text-decoration-color: #D9534F; text-decoration-style: solid; }
.pc-wa-grammar { text-decoration-color: #1F6FB2; text-decoration-style: solid; }
.pc-wa-clarity { text-decoration-color: #777; text-decoration-style: dotted; }
.pc-wa-style { text-decoration-color: #C72E56; text-decoration-style: wavy; }
.pc-wa-chip { position: absolute; right: 8px; bottom: 6px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 8px; font: 500 11px/1.4 "Inter", "Open Sans", Helvetica, Arial, sans-serif; color: #5B5878; background: #fff; border: 1px solid #ECE6DC; border-radius: 999px; box-shadow: 0 1px 2px rgba(30, 27, 75, .06); }
.pc-wa-chip.hidden { display: none; }
.pc-wa-chip button { all: unset; cursor: pointer; padding: 1px 7px; border-radius: 999px; color: #fff; background: #5A3FC0; font: inherit; font-weight: 600; }
.pc-wa-chip button.pc-wa-x { color: #5B5878; background: transparent; padding: 0 5px; font-size: 14px; line-height: 1; }
.pc-wa-chip button:hover { filter: brightness(1.1); }
.pc-wa-dot { width: 8px; height: 8px; border-radius: 50%; background: #5A3FC0; animation: pc-wa-pulse 1s infinite alternate; }
@keyframes pc-wa-pulse { from { opacity: .3; } to { opacity: 1; } }
.pc-wa-pop, .pc-wa-bar { position: absolute; z-index: 1300; background: #fff; border: 1px solid #ECE6DC; border-radius: 10px; box-shadow: 0 8px 24px rgba(30, 27, 75, .12); font: 13px/1.45 "Inter", "Open Sans", Helvetica, Arial, sans-serif; color: #1E1B4B; }
.pc-wa-pop { width: 280px; padding: 10px 12px; }
.pc-wa-pop small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5B5878; margin-bottom: 2px; }
.pc-wa-pop-spelling small { color: #D9534F; } .pc-wa-pop-grammar small { color: #1F6FB2; } .pc-wa-pop-style small { color: #C72E56; }
.pc-wa-pop p { margin: 0 0 8px; }
.pc-wa-fix { display: block; width: 100%; text-align: left; cursor: pointer; padding: 6px 8px; border: 1px solid #CFC4F2; background: #F1ECFD; border-radius: 8px; font: inherit; color: inherit; }
.pc-wa-fix s { color: #B4234A; margin-right: 4px; } .pc-wa-fix b { color: #1F7A45; }
.pc-wa-fix:hover { background: #E6DDFB; }
.pc-wa-ign { all: unset; cursor: pointer; display: inline-block; margin-top: 6px; font: inherit; font-size: 12px; color: #5B5878; text-decoration: underline; }
.pc-wa-bar { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; }
.pc-wa-bar span { font-size: 12px; color: #5B5878; margin-right: 2px; }
.pc-wa-bar button { all: unset; cursor: pointer; padding: 3px 9px; border-radius: 999px; background: #F1ECFD; color: #1E1B4B; font: inherit; font-size: 12px; font-weight: 600; }
.pc-wa-bar button:hover { background: #5A3FC0; color: #fff; }
.pc-wa-bar.busy { opacity: .6; pointer-events: none; }
.pc-wa-setting { display: flex; align-items: center; gap: 10px; }
.pc-wa-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 8px 0 0; font-size: 12px; color: #5B5878; }
.pc-wa-legend i { font-style: normal; text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; color: #1E1B4B; }

/* Lucent Focus check-ins on the chart (owner RJ 2026-11-20): small line charts, one per measure, in the theme's own tokens so
   the light and dark looks both read. Thin 2px lines, 9px points, a dashed line at the first check-in, flags in amber with "!". */
.lf-chart .lf-head { align-items: flex-start; }
.lf-chart .lf-tag { display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 999px; background: var(--pc-soft-violet); color: var(--pc-ink-2); font-size: 12px; font-weight: 600; }
.lf-chart .lf-send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0; }
.lf-chart .lf-send label { display: inline-flex; align-items: center; gap: 6px; color: var(--pc-ink-2); font-size: 13px; }
.lf-chart .lf-send select { min-height: 36px; border: 1px solid var(--pc-line); border-radius: 9px; padding: 0 8px; background: var(--pc-surface); color: var(--pc-ink); }
.lf-chart .lf-off { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: var(--pc-surface-2); color: var(--pc-ink-2); font-size: 13px; }
.lf-chart .lf-bad { color: var(--pc-red); }
.lf-chart .lf-newlink { margin: 10px 0 14px; padding: 12px; border: 1px solid var(--pc-line-tint); border-radius: 12px; background: var(--pc-soft-teal); }
.lf-chart .lf-newlink label { display: block; font-weight: 600; color: var(--pc-ink); margin-bottom: 6px; }
.lf-chart .lf-urlrow { display: flex; gap: 8px; flex-wrap: wrap; }
.lf-chart .lf-urlrow input { flex: 1 1 260px; min-width: 0; min-height: 38px; border: 1px solid var(--pc-line); border-radius: 9px; padding: 0 10px; background: var(--pc-surface); color: var(--pc-ink); font-family: var(--pc-mono); font-size: 12px; }
.lf-chart .lf-newlink p { margin: 8px 0 0; }
.lf-chart .lf-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.lf-chart .lf-tabs [aria-pressed="true"] { border-color: var(--pc-accent); color: var(--pc-ink); box-shadow: inset 0 0 0 1px var(--pc-accent); }
.lf-chart .lf-sub { margin: 8px 0 10px; color: var(--pc-ink-2); font-size: 13px; }
.lf-chart .lf-flag-key b { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--pc-soft-amber); color: var(--pc-amber); font-size: 11px; }
.lf-chart .lf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.lf-chart .lf-mini { margin: 0; padding: 10px 10px 6px; border: 1px solid var(--pc-line-soft); border-radius: 12px; background: var(--pc-surface); min-width: 0; }
.lf-chart .lf-mini-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.lf-chart .lf-mini-name { font-size: 12.5px; font-weight: 600; color: var(--pc-ink-2); line-height: 1.3; }
.lf-chart .lf-mini-now { text-align: right; flex: none; max-width: 55%; }
.lf-chart .lf-mini-now strong { display: block; font-size: 15px; color: var(--pc-ink); }
.lf-chart .lf-mini-now small { display: block; font-size: 11px; color: var(--pc-muted); }
.lf-chart .lf-svg { display: block; width: 100%; height: auto; margin-top: 4px; overflow: visible; }
.lf-chart .lf-line { fill: none; stroke: var(--pc-violet); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lf-chart .lf-base { stroke: var(--pc-line-hi); stroke-width: 1; stroke-dasharray: 4 4; }
.lf-chart .lf-dot { fill: var(--pc-violet); stroke: var(--pc-surface); stroke-width: 2; }
.lf-chart .lf-hit { fill: transparent; stroke: none; cursor: help; }
.lf-chart .lf-pt.flagged .lf-dot { fill: var(--pc-surface); stroke: var(--pc-amber); stroke-width: 2.5; }
.lf-chart .lf-pt:hover .lf-dot { stroke: var(--pc-ink); }
.lf-chart .lf-flag-mark { fill: var(--pc-amber); font-size: 11px; font-weight: 800; }
.lf-chart .lf-axis { fill: var(--pc-muted); font-size: 9.5px; }
.lf-chart .lf-table { margin-top: 12px; }
.lf-chart .lf-table summary, .lf-chart .lf-links summary { cursor: pointer; font-weight: 600; color: var(--pc-ink-2); }
.lf-chart .lf-table .data-table { min-width: 1100px; }
.lf-chart .lf-chg { display: block; color: var(--pc-muted); }
.lf-chart .lf-links { margin-top: 10px; }
.lf-chart .lf-links ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.lf-chart .lf-links li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--pc-line-soft); border-radius: 10px; font-size: 13px; }
.lf-chart .lf-foot { margin-top: 12px; font-size: 12px; }
.lf-chart .lf-empty { margin: 10px 0; }
#lucent-focus-settings .lf-setting-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
#lucent-focus-settings .card-body p { margin: 0 0 8px; }
@media (max-width: 560px) {
  .lf-chart .lf-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lf-chart .lf-mini { padding: 8px 8px 4px; }
  .lf-chart .lf-mini-h { flex-direction: column; gap: 2px; }
  .lf-chart .lf-mini-now { text-align: left; }
}
@media (max-width: 380px) { .lf-chart .lf-grid { grid-template-columns: 1fr; } }

/* The LP Psychiatric Note (Andrea 2026-11-23): full height sections, bold subsection titles with double spacing, bullets for
   the Risk Assessment, the Discussion reminder, the Plan's diagnosis list and AI suggestion, the CPT picker and the chart
   pulled sections at the top of every note. Classic (PracticeQ) layout only. */
.pc-lp-sec{margin:0 0 22px}
.pc-lp-h{margin:0 0 10px;padding-bottom:6px;border-bottom:1px solid var(--pc-line);font-size:15px;font-weight:700;letter-spacing:.01em;color:var(--pc-ink)}
.pc-lp-edit .pc-note-field{margin-bottom:10px}
textarea.pc-lp-ta,textarea.pc-sr-ta{resize:none;overflow:hidden;min-height:72px;white-space:pre-wrap;line-height:1.55}
.pc-lp-tos-field{max-width:360px}
.pc-lp-tos{margin:0 0 10px;font-size:13.5px}
.pc-lp-body .pc-lp-sub{margin:16px 0 0;line-height:1.55}
.pc-lp-body .pc-lp-sub:first-child{margin-top:0}
.pc-lp-body .pc-lp-subtitle{font-weight:800;letter-spacing:.02em}
.pc-lp-body .pc-lp-line{margin:0;line-height:1.55}
/* The score lines at the top of Assessment (Andrea 11-23): the two spaces before PHQ9 stay, digits line up. */
.pc-lp-body .pc-lp-score{white-space:pre-wrap;font-variant-numeric:tabular-nums}
.pc-lp-body .pc-lp-line+.pc-lp-line{margin-top:2px}
.pc-lp-body .pc-lp-bullets{margin:4px 0 0;padding-left:22px;line-height:1.55}
.pc-lp-body .pc-lp-bullets li{margin:2px 0}
.pc-lp-empty{margin:0}
.pc-lp-reminder{margin:0 0 10px;padding:9px 12px;border-left:4px solid var(--pc-accent,#c77d2b);background:var(--pc-soft,rgba(199,125,43,.08));border-radius:0 8px 8px 0;font-size:13px;font-weight:600;color:var(--pc-ink)}
.pc-lp-discmeta{grid-template-columns:repeat(4,minmax(0,1fr))}
.pc-lp-fixed{margin:0 0 10px;font-size:13.5px;line-height:1.55}
.pc-lp-blank{font-weight:800;color:var(--pc-accent,#c77d2b)}
.pc-lp-mins{font-weight:700}
.pc-lp-psy{font-weight:600}
.pc-lp-dx{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-direction:column;gap:6px}
.pc-lp-dxrow{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--pc-line);border-radius:8px;background:var(--pc-surface)}
.pc-lp-dxrow.ro{border-style:dashed}
.pc-lp-dxmain{min-width:0;font-size:13.5px}
.pc-dx-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px;letter-spacing:.02em}
.pc-lp-dxacts{display:flex;align-items:center;gap:8px;flex-shrink:0}
.pc-lp-ro{display:flex;align-items:center;gap:5px;font-size:12.5px;cursor:pointer}
.pc-lp-dxadd{margin:0 0 12px}
.pc-lp-dxhits{display:flex;flex-direction:column;gap:4px;margin:-4px 0 8px}
.pc-lp-dxhit{text-align:left;border:1px solid var(--pc-line);border-radius:8px;background:var(--pc-surface);padding:7px 10px;font:inherit;font-size:13px;cursor:pointer;color:inherit}
.pc-lp-dxhit:hover,.pc-lp-dxhit:focus-visible{border-color:var(--pc-teal);outline:none}
.pc-lp-sug{margin:0 0 14px;padding:12px;border:1px solid var(--pc-line-hi,var(--pc-line));border-radius:10px;background:var(--pc-surface-2,var(--pc-surface))}
.pc-lp-sughead{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.pc-lp-disclaimer{margin:0 0 10px;font-size:12.5px;font-weight:600;color:var(--pc-ink)}
.pc-lp-sugcard{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:9px 10px;border:1px solid var(--pc-line);border-radius:8px;background:var(--pc-surface);margin-bottom:6px}
.pc-lp-sugcard.done{opacity:.6}
.pc-lp-sugmain{min-width:0;font-size:13.5px}
.pc-lp-sugwhy{margin:4px 0 0;font-size:12.5px;color:var(--pc-muted)}
.pc-lp-sugacts{display:flex;gap:6px;flex-shrink:0;align-items:center}
.pc-lp-cpt{display:flex;flex-wrap:wrap;gap:8px}
.pc-lp-cptchip{border:1px solid var(--pc-line);border-radius:999px;background:var(--pc-surface);padding:7px 14px;font:inherit;font-size:13.5px;font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;cursor:pointer;color:var(--pc-ink)}
.pc-lp-cptchip.on{background:var(--pc-teal);border-color:var(--pc-teal);color:#fff}
.pc-lp-cptchip:focus-visible{outline:2px solid var(--pc-teal);outline-offset:2px}
.pc-lp-cptpicked{display:flex;gap:8px;flex-wrap:wrap}
/* From the chart */
.pc-lp-pulled{margin:0 0 22px;padding:0 0 14px;border-bottom:1px solid var(--pc-line)}
.pc-lp-pgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px}
.pc-lp-pcard{border:1px solid var(--pc-line);border-radius:10px;padding:10px 12px;background:var(--pc-surface);min-width:0}
.pc-lp-phead{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px}
.pc-lp-phead strong{font-size:13.5px}
.pc-lp-pline{margin:0;font-size:13.5px}
.pc-lp-plist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:13.5px}
.pc-lp-med{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:6px 0;border-bottom:1px dashed var(--pc-line)}
.pc-lp-med:last-child{border-bottom:0}
.pc-lp-med.off .pc-lp-medmain>strong{text-decoration:line-through;color:var(--pc-muted)}
.pc-lp-medmain{min-width:0}
.pc-lp-medacts{display:flex;gap:6px;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end}
.pc-lp-hist{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px}
.pc-lp-hrow{display:flex;flex-direction:column;gap:1px;padding:4px 0;border-bottom:1px dashed var(--pc-line)}
.pc-lp-hrow dt{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--pc-muted);font-weight:700}
.pc-lp-hrow dd{margin:0;font-size:13.5px;white-space:pre-wrap}
.pc-lp-hrow.empty dd{font-size:12.5px}
.pc-lp-histform{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
.pc-lp-histform textarea.pc-lp-ta{min-height:44px}
.pc-lp-textlink,.pc-lp-link{font:inherit}
.pc-lp-textlink{background:none;border:0;padding:0;color:var(--pc-teal);text-decoration:underline;cursor:pointer}
/* Scribe review: no transcript column; the draft runs full width and opens the transcript in a new tab */
.pc-sr-cols.one{grid-template-columns:minmax(0,1fr)}
.pc-sr-ta{overflow:hidden;resize:none}
/* The transcript page opened in its own tab */
.pc-transcript-page{max-width:860px;margin:0 auto;padding:24px 20px 60px;font-size:14px;line-height:1.55}
.pc-transcript-page h1{font-size:20px;margin:0 0 4px}
.pc-transcript-page .pc-sr-transcript{max-height:none;overflow:visible}
@media(max-width:900px){.pc-lp-discmeta{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.pc-lp-pgrid,.pc-lp-hist,.pc-lp-histform{grid-template-columns:1fr}.pc-lp-discmeta{grid-template-columns:1fr}.pc-lp-dxrow,.pc-lp-med,.pc-lp-sugcard{flex-direction:column;align-items:stretch}.pc-lp-medacts,.pc-lp-dxacts,.pc-lp-sugacts{justify-content:flex-start}}

.pc-de {
  border: 1px solid var(--pc-line, #d7e1e3);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 10px;
  background: var(--pc-surface, #ffffff);
  color: var(--pc-ink, #183234);
}

.pc-de-heading {
  color: var(--pc-ink, #183234);
  font-size: 0.9rem;
  font-weight: 700;
}

.pc-de-entry {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pc-de-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--pc-line, #d7e1e3);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--pc-ink, #183234);
  background: var(--pc-surface, #ffffff);
}

.pc-de-status {
  min-height: 1.2em;
  color: var(--pc-muted, #667779);
  font-size: 0.88rem;
}

.pc-de-ops {
  display: grid;
  gap: 8px;
}

.pc-de-op {
  padding: 10px;
  border-radius: 8px;
  background: var(--pc-surface, #f4f8f8);
  display: grid;
  gap: 8px;
}

.pc-de-op-section {
  color: var(--pc-teal, #147d7e);
  font-weight: 700;
  font-size: 0.88rem;
}

.pc-de-op-reason {
  color: var(--pc-muted, #667779);
  font-size: 0.9rem;
}

.pc-de-diff {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.pc-de-del {
  color: #a33b3b;
  background: #fbeaea;
  text-decoration: line-through;
}

.pc-de-ins {
  color: #176b42;
  background: #e8f6ed;
  text-decoration: none;
}

.pc-de-warn {
  padding: 8px;
  border-radius: 6px;
  color: #76520b;
  background: #fff4d6;
  font-size: 0.88rem;
}

.pc-de-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pc-de-refused {
  color: var(--pc-muted, #667779);
  margin: 4px 0;
}

.pc-docs {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  background: var(--pc-surface, #ffffff);
  color: var(--pc-ink, #183234);
  box-shadow: -8px 0 24px rgba(24, 50, 52, 0.18);
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.pc-docs.pc-docs-open {
  transform: translateX(0);
}

.pc-docs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--pc-line, #d7e1e3);
}

.pc-docs-header h2,
.pc-docs-current h3 {
  margin: 0;
}

.pc-docs-close {
  border: 1px solid var(--pc-line, #d7e1e3);
  border-radius: 6px;
  padding: 6px 9px;
  background: var(--pc-surface, #ffffff);
  color: var(--pc-ink, #183234);
  cursor: pointer;
}

.pc-docs-list {
  display: grid;
  gap: 6px;
  padding: 12px 16px;
}

.pc-docs-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--pc-line, #d7e1e3);
  border-radius: 7px;
  padding: 9px;
  text-align: left;
  background: var(--pc-surface, #ffffff);
  color: var(--pc-ink, #183234);
  cursor: pointer;
}

.pc-docs-item small {
  color: var(--pc-muted, #667779);
}

.pc-docs-current {
  display: grid;
  gap: 12px;
  padding: 4px 16px 24px;
}

.pc-docs-current p {
  margin: 0;
  color: var(--pc-muted, #667779);
  font-size: 0.9rem;
}

.pc-docs-fields {
  display: grid;
  gap: 8px;
}

.pc-docs-field {
  display: grid;
  gap: 8px;
}

.pc-docs-label {
  font-weight: 700;
}

.pc-docs-value {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
}

.pc-docs-prov {
  color: var(--pc-muted, #667779);
  font-size: 12px;
}

@media (max-width: 640px) {
  .pc-docs {
    width: 100%;
  }

  .pc-de-entry {
    align-items: stretch;
    flex-direction: column;
  }
}

.pc-de-refusals { margin: 0; padding-left: 18px; color: #76520b; font-size: 0.88rem; }
.pc-docs-busy, .pc-docs-empty { color: var(--pc-muted, #667779); font-size: 0.9rem; padding: 6px 0; }
.pc-docs-value[readonly] { background: #f7fafa; }

/* Practice Current theme (2026-10-08): PracticeQ's map (Tasks, Engage, Intake, Bookings, Lists, Reports, More) with a
   futuristic finish. Dark glass is the default; light is frosted; "auto" follows the device. Every color in the older
   stylesheets is a --pc-* token (scripted from their literal colors by role), so both themes reach every page.
   Loaded last in /styles.css. No inline styles anywhere: the content security policy forbids them. */

/* Display and mono stacks are system fonts since 2026-10-29 (the Chakra Petch and JetBrains Mono files left with the Horizon look). */
:root {
  --pc-display: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, sans-serif;
  --pc-body: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --pc-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --topbar: 62px; --ribbon: 30px; --sidebar: 0px;
  /* Light: frosted glass over a faint grid */
  --pc-bg: #ECF2F7; --pc-grid: rgba(25, 60, 95, .045); --pc-glow-a: rgba(10, 142, 162, .10); --pc-glow-b: rgba(107, 91, 214, .07);
  --pc-surface: #FFFFFF; --pc-surface-2: #F3F7FA; --pc-surface-3: #E6EDF3; --pc-glass: rgba(255, 255, 255, .96); --pc-chrome: rgba(250, 252, 254, .94);
  --pc-line: #DAE3EB; --pc-line-soft: #EAF0F4; --pc-line-hi: #C2D0DC; --pc-line-tint: #BCDFE3;
  --pc-ink: #0B1B2B; --pc-ink-2: #3B5164; --pc-muted: #576C7D;
  --pc-navy: #0B2236; --pc-navy-2: #12324A;
  --pc-teal: #0A8EA2; --pc-teal-deep: #08707F; --pc-green: #11865E; --pc-amber: #A2670A; --pc-red: #C63A47; --pc-blue: #2468BD; --pc-violet: #6655D4;
  --pc-soft-teal: #E1F4F6; --pc-soft-green: #E3F4EB; --pc-soft-amber: #FBF0D8; --pc-soft-red: #FBE8EA; --pc-soft-blue: #E5EEFA; --pc-soft-violet: #ECE9FB;
  --pc-on-strong: #FFFFFF; --pc-accent: var(--pc-teal); --pc-accent-2: var(--pc-violet);
  --pc-glow: 0 0 0 transparent; --pc-text-glow: none; --pc-shadow: 0 8px 26px rgba(15, 40, 70, .07);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --pc-bg: #050A13; --pc-grid: rgba(120, 165, 220, .045); --pc-glow-a: rgba(44, 201, 214, .11); --pc-glow-b: rgba(154, 140, 255, .10);
  --pc-surface: #0C1524; --pc-surface-2: #101C2F; --pc-surface-3: #16253D; --pc-glass: rgba(12, 21, 36, .93); --pc-chrome: rgba(6, 12, 22, .92);
  --pc-line: #1B2B43; --pc-line-soft: #152238; --pc-line-hi: #2A4163; --pc-line-tint: #1E4757;
  --pc-ink: #E3ECF7; --pc-ink-2: #B4C3D6; --pc-muted: #8496B0;
  --pc-navy: #091426; --pc-navy-2: #0F1F38;
  --pc-teal: #2DCBD8; --pc-teal-deep: #24B1BE; --pc-green: #3FD49D; --pc-amber: #F1B54C; --pc-red: #FF6D7A; --pc-blue: #63A9FF; --pc-violet: #9C8EFF;
  --pc-soft-teal: rgba(45, 203, 216, .13); --pc-soft-green: rgba(63, 212, 157, .13); --pc-soft-amber: rgba(241, 181, 76, .14); --pc-soft-red: rgba(255, 109, 122, .14);
  --pc-soft-blue: rgba(99, 169, 255, .14); --pc-soft-violet: rgba(156, 142, 255, .15);
  --pc-on-strong: #04121A;
  --pc-glow: 0 0 22px rgba(45, 203, 216, .26); --pc-text-glow: 0 0 16px rgba(45, 203, 216, .40); --pc-shadow: 0 12px 34px rgba(0, 0, 0, .40);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] {
  --pc-bg: #050A13; --pc-grid: rgba(120, 165, 220, .045); --pc-glow-a: rgba(44, 201, 214, .11); --pc-glow-b: rgba(154, 140, 255, .10);
  --pc-surface: #0C1524; --pc-surface-2: #101C2F; --pc-surface-3: #16253D; --pc-glass: rgba(12, 21, 36, .93); --pc-chrome: rgba(6, 12, 22, .92);
  --pc-line: #1B2B43; --pc-line-soft: #152238; --pc-line-hi: #2A4163; --pc-line-tint: #1E4757;
  --pc-ink: #E3ECF7; --pc-ink-2: #B4C3D6; --pc-muted: #8496B0;
  --pc-navy: #091426; --pc-navy-2: #0F1F38;
  --pc-teal: #2DCBD8; --pc-teal-deep: #24B1BE; --pc-green: #3FD49D; --pc-amber: #F1B54C; --pc-red: #FF6D7A; --pc-blue: #63A9FF; --pc-violet: #9C8EFF;
  --pc-soft-teal: rgba(45, 203, 216, .13); --pc-soft-green: rgba(63, 212, 157, .13); --pc-soft-amber: rgba(241, 181, 76, .14); --pc-soft-red: rgba(255, 109, 122, .14);
  --pc-soft-blue: rgba(99, 169, 255, .14); --pc-soft-violet: rgba(156, 142, 255, .15);
  --pc-on-strong: #04121A;
  --pc-glow: 0 0 22px rgba(45, 203, 216, .26); --pc-text-glow: 0 0 16px rgba(45, 203, 216, .40); --pc-shadow: 0 12px 34px rgba(0, 0, 0, .40);
  color-scheme: dark;
} }

/* ---- Ground ---------------------------------------------------------------------------------------------------- */
html body { font-family: var(--pc-body); color: var(--pc-ink); background:
  radial-gradient(1100px 600px at 6% -12%, var(--pc-glow-a), transparent 62%),
  radial-gradient(900px 600px at 104% 108%, var(--pc-glow-b), transparent 60%),
  repeating-linear-gradient(0deg, var(--pc-grid) 0 1px, transparent 1px 44px),
  repeating-linear-gradient(90deg, var(--pc-grid) 0 1px, transparent 1px 44px), var(--pc-bg);
  background-attachment: fixed; }
html { scroll-padding-top: calc(var(--topbar) + var(--ribbon) + 14px); }
html :focus-visible { outline: 2px solid var(--pc-accent); outline-offset: 2px; }
html ::selection { background: var(--pc-soft-teal); }
.pc-num, .kpi-value, .data-table td.num { font-family: var(--pc-mono); font-variant-numeric: tabular-nums; }

/* ---- Top bar: brand, PracticeQ's menu, tools ------------------------------------------------------------------- */
html .topbar { height: var(--topbar); gap: 14px; padding: 0 18px; background: var(--pc-chrome); color: var(--pc-ink); border-bottom: 1px solid var(--pc-line); box-shadow: none; }
html .brand { color: var(--pc-ink); flex: none; }
html .brand-mark { width: 34px; height: 34px; border-radius: 10px; font: 700 15px var(--pc-display); color: var(--pc-on-strong);
  background: linear-gradient(135deg, var(--pc-teal), var(--pc-violet)); box-shadow: var(--pc-glow); }
html img.brand-mark { object-fit: cover; background: none; display: block; }
html img.brand-mark.large { width: 62px; height: 62px; border-radius: 18px; }
html .brand-copy strong { font: 700 15px var(--pc-display); letter-spacing: .06em; text-transform: uppercase; }
html .brand-copy small { color: var(--pc-muted); letter-spacing: .14em; font-size: 9px; }
html .topbar-actions { margin-left: 0; gap: 8px; flex: none; }
/* Horizon top bar (owner 2026-10-09): logo left, a centered global search, tools on the right. */
html .topbar .cmd-button { flex: 0 1 540px; margin: 0 auto; }
html .topbar .button.ghost, html .topbar .icon-button, html .account-button { background: var(--pc-surface); border: 1px solid var(--pc-line); color: var(--pc-ink); border-radius: 10px; }
html .topbar .button.ghost { padding: 8px 12px; font-weight: 600; }
html .topbar .button.ghost:hover, html .topbar .icon-button:hover { border-color: var(--pc-line-hi); }
html .luna-top, html .ai-top { background: var(--pc-soft-violet); color: var(--pc-violet); border: 1px solid var(--pc-line); border-radius: 10px; font: 700 12px var(--pc-display); letter-spacing: .08em; text-transform: uppercase; }
html .account-button { padding: 3px; }
html .avatar { background: var(--pc-soft-teal); color: var(--pc-accent); font: 700 12px var(--pc-display); width: 32px; height: 32px; }
html .user-copy strong { color: var(--pc-ink); } html .user-copy small { color: var(--pc-muted); }
.cmd-button { display: flex; align-items: center; gap: 8px; height: 38px; min-width: 220px; padding: 0 10px; border: 1px solid var(--pc-line); border-radius: 10px; background: var(--pc-surface); color: var(--pc-muted); font-size: 13px; text-align: left; }
.cmd-button:hover { border-color: var(--pc-accent); color: var(--pc-ink); }
.cmd-button kbd { margin-left: auto; font: 500 10.5px var(--pc-mono); border: 1px solid var(--pc-line); border-radius: 5px; padding: 1px 5px; color: var(--pc-muted); }
.cmd-icon { font-size: 15px; }
html .theme-button { width: 38px; height: 38px; font-size: 16px; }

/* Luna lives in the top bar and the command bar; the floating button duplicated it and covered content on phones. */
html .luna-fab { display: none; }
/* Luna's header stays dark in both themes, so its text stays white (the dark theme's --pc-on-strong is near-black). */
html .luna-panel header { background: linear-gradient(135deg, var(--pc-navy), color-mix(in srgb, var(--pc-teal-deep) 55%, var(--pc-navy))); color: #FFFFFF; }

/* Text on the bright status fills of the older pages: white in light, near-black in dark, where the fills brighten. */
html .coord-stop, html .coord-toggle.on, html .go-stop, html .go-start, html .go-pill.ok, html .go-pill.bad,
html .mbc-step > span, html .mbc-step:not(:last-child)::after, html .team-channel-tabs .active { color: var(--pc-on-strong); }
/* The Finance Command Center keeps its own color variables; point them at the theme so dark mode reaches it. */
html .finance-center { --fc-navy: var(--pc-ink); --fc-teal: var(--pc-teal-deep); --fc-line: var(--pc-line); --fc-muted: var(--pc-muted); }

/* The assistants chip, restyled as a status orb with Stop */
html .coord-topchip { border: 1px solid var(--pc-line); background: var(--pc-surface); border-radius: 10px; overflow: hidden; flex-shrink: 0; }
/* coordinator.css colors these for the old navy bar (pale mint and pink, Stop text white !important); they must lose here. */
html .coord-topchip-label, html .coord-topchip.live .coord-topchip-label { color: var(--pc-ink); font-weight: 600; }
html .coord-topchip.stopped { background: var(--pc-soft-red); border-color: color-mix(in srgb, var(--pc-red) 45%, var(--pc-line)); }
html .coord-topchip.stopped .coord-topchip-label { color: var(--pc-red); }
html .coord-topchip.live .coord-topchip-label::first-letter { color: var(--pc-green); text-shadow: 0 0 10px var(--pc-green); }
html .coord-topchip-stop { background: var(--pc-red); color: var(--pc-on-strong) !important; font-weight: 700; }

/* ---- Live ribbon ----------------------------------------------------------------------------------------------- */
.ribbon { position: fixed; top: var(--topbar); left: 0; right: 0; height: var(--ribbon); z-index: 44; display: flex; align-items: center; gap: 12px; padding: 0 18px;
  background: var(--pc-chrome); border-bottom: 1px solid var(--pc-line); font-size: 12px; color: var(--pc-ink-2); }
.ribbon-label { display: inline-flex; align-items: center; gap: 7px; font: 700 10.5px var(--pc-display); letter-spacing: .16em; color: var(--pc-accent); text-shadow: var(--pc-text-glow); flex: none; }
.ribbon-orb { width: 8px; height: 8px; border-radius: 50%; background: var(--pc-green); box-shadow: 0 0 0 0 var(--pc-green); animation: pc-ping 2.4s ease-out infinite; }
.ribbon.stopped .ribbon-orb { background: var(--pc-red); animation: none; }
.ribbon-track { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ribbon-ticker { display: inline-flex; gap: 34px; padding-left: 18px; white-space: nowrap; animation: pc-slide 60s linear infinite; }
.ribbon-ticker:hover { animation-play-state: paused; }
.ribbon-ticker span::before { content: "◆"; margin-right: 7px; font-size: 8px; color: var(--pc-violet); vertical-align: 1px; }
.ribbon-ticker span.bad::before { color: var(--pc-red); } .ribbon-ticker span.good::before { color: var(--pc-green); }
.ribbon-ticker time { font-family: var(--pc-mono); color: var(--pc-muted); margin-right: 6px; }
html .ribbon .topbar-center { margin: 0; flex: none; display: flex; gap: 6px; }
html .ribbon .tenant-pill, html .ribbon .mode-pill { border: 1px solid var(--pc-line); color: var(--pc-ink-2); padding: 3px 9px; font-size: 10.5px; background: var(--pc-surface); }
@keyframes pc-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pc-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pc-green) 60%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }

/* ---- Main area ------------------------------------------------------------------------------------------------- */
html .main { margin-left: 0; padding: calc(var(--topbar) + var(--ribbon) + 24px) 24px 48px; max-width: 1600px; margin-right: auto; margin-left: auto; }
html .page-header h1 { font: 700 30px/1.08 var(--pc-display); letter-spacing: .01em; color: var(--pc-ink); }
html .page-header p { color: var(--pc-muted); }
html .eyebrow { font: 700 10.5px var(--pc-display); letter-spacing: .18em; color: var(--pc-accent); text-shadow: var(--pc-text-glow); }
.home-pin { border: 1px solid var(--pc-line); background: var(--pc-surface); color: var(--pc-muted); border-radius: 9px; width: 34px; height: 34px; font-size: 15px; }
.home-pin[aria-pressed="true"] { color: var(--pc-amber); border-color: color-mix(in srgb, var(--pc-amber) 50%, var(--pc-line)); }

/* ---- Components, glass in both themes ------------------------------------------------------------------------- */
html .card, html .kpi-card, html .setting-card, html .filter-bar, html .setup-banner, html .readiness-panel, html .controlled-hero, html .age-card, html .controlled-provider-card, html .loading-card {
  background: var(--pc-glass); border: 1px solid var(--pc-line); box-shadow: var(--pc-shadow); color: var(--pc-ink); }
html .card-header h2, html .card-header h3 { font: 700 14px var(--pc-display); letter-spacing: .1em; text-transform: uppercase; color: var(--pc-ink); }
html .card-header p { color: var(--pc-muted); }
html .kpi-card { border-radius: 16px; }
html .kpi-card::before { background: linear-gradient(90deg, var(--pc-teal), var(--pc-violet)); }
html .kpi-card.clickable:hover { border-color: var(--pc-line-hi); box-shadow: var(--pc-shadow), var(--pc-glow); }
html .kpi-value { font-family: var(--pc-display); font-weight: 700; color: var(--pc-ink); text-shadow: var(--pc-text-glow); letter-spacing: .01em; }
html .data-table th { font: 700 10.5px var(--pc-display); letter-spacing: .12em; text-transform: uppercase; color: var(--pc-muted); background: var(--pc-surface-2); border-bottom: 1px solid var(--pc-line); }
html .data-table td { border-bottom: 1px solid var(--pc-line-soft); color: var(--pc-ink); }
html .data-table tbody tr:hover td { background: var(--pc-soft-teal); }
html .button.primary { background: linear-gradient(135deg, var(--pc-teal), color-mix(in srgb, var(--pc-teal) 55%, var(--pc-violet))); color: var(--pc-on-strong); box-shadow: var(--pc-glow); border: 0; }
html .button.primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
html .button.secondary { background: var(--pc-surface); border-color: var(--pc-line-hi); color: var(--pc-ink); }
html .icon-button { background: var(--pc-surface); border-color: var(--pc-line); color: var(--pc-ink); }
html .tab-button { color: var(--pc-ink-2); border-color: var(--pc-line); background: var(--pc-surface); font: 700 11.5px var(--pc-display); letter-spacing: .08em; text-transform: uppercase; }
html .tab-button.active { color: var(--pc-accent); background: var(--pc-soft-teal); border-color: color-mix(in srgb, var(--pc-accent) 45%, var(--pc-line)); text-shadow: var(--pc-text-glow); }
html input, html select, html textarea, html .form-control, html .filter-bar input, html .filter-bar select { background: var(--pc-surface-2); color: var(--pc-ink); border-color: var(--pc-line); }
html .filter-bar label span { color: var(--pc-muted); font-family: var(--pc-display); letter-spacing: .12em; }
html .notice { background: var(--pc-surface-2); border-color: var(--pc-line); color: var(--pc-ink-2); }
html .drawer { background: var(--pc-surface); border-left: 1px solid var(--pc-line-hi); box-shadow: -18px 0 60px rgba(0, 0, 0, .35); color: var(--pc-ink); }
html .drawer-backdrop { background: rgba(2, 8, 16, .55); }
html .toast { background: var(--pc-surface); color: var(--pc-ink); border: 1px solid var(--pc-accent); box-shadow: var(--pc-glow), var(--pc-shadow); }
html .empty { color: var(--pc-muted); }
html .status-pill { font-weight: 700; letter-spacing: .02em; }
html .login-shell { background: transparent; }
html .login-card { background: var(--pc-glass); border: 1px solid var(--pc-line-hi); box-shadow: var(--pc-shadow), var(--pc-glow); color: var(--pc-ink); }
html .login-card h1 { font-family: var(--pc-display); letter-spacing: .04em; text-transform: uppercase; }

/* ---- Navigation: inline PracticeQ menu on wide screens ------------------------------------------------------ */
@media (min-width: 1180px) {
  :root { --sidebar: 246px; }
  html .mobile-menu-button { display: none; }
  html .sidebar { position: fixed; left: 0; top: calc(var(--topbar) + var(--ribbon)); bottom: 0; width: var(--sidebar); padding: 12px 10px 14px; display: flex; flex-direction: column;
    background: var(--pc-chrome); border-right: 1px solid var(--pc-line); box-shadow: none; transform: none; overflow-y: auto; z-index: 42; }
  html .sidebar nav, html #nav { flex-direction: column; align-items: stretch; gap: 2px; }
  html #nav .nav-item { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 11px; height: auto; padding: 10px 12px; border-radius: 10px; border: 0; background: transparent;
    font: 600 13.5px var(--pc-body); letter-spacing: 0; text-transform: none; color: var(--pc-ink-2); white-space: nowrap; text-align: left; }
  html #nav .nav-item .nav-icon { display: inline; color: var(--pc-muted); font: 700 12px var(--pc-mono); text-align: center; }
  html #nav .nav-item:hover { background: var(--pc-surface-2); color: var(--pc-ink); }
  html #nav .nav-item.active { background: var(--pc-soft-teal); color: var(--pc-accent); box-shadow: inset 3px 0 0 var(--pc-accent); }
  html #nav .nav-item.active .nav-icon { color: var(--pc-accent); }
  html #nav .count-badge { background: var(--pc-red); color: var(--pc-on-strong); font: 500 10px var(--pc-mono); min-width: 18px; height: 18px; }
  html #nav .count-badge.zero { display: none; }
  html .nav-section { margin: 12px 0 0; padding: 0; border: 0; display: block; }
  html .nav-section-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 12px 4px; border: 0; background: none;
    font: 700 9.5px var(--pc-display); letter-spacing: .14em; text-transform: uppercase; color: var(--pc-muted); cursor: pointer; }
  html .nav-section-head:hover { color: var(--pc-ink-2); }
  html .nav-section-head .nav-caret { font-size: 9px; transition: transform .15s ease; }
  html .nav-section.collapsed .nav-section-head .nav-caret { transform: rotate(-90deg); }
  html .nav-section .nav-section-items { display: grid; gap: 2px; }
  html .nav-section.collapsed .nav-section-items { display: none; }
  html .nav-section .nav-section-items .nav-item { font-size: 13px; padding: 8px 12px; }
  html .nav-section.empty { display: none; }
  html .sidebar-footer { display: block; margin-top: auto; padding-top: 12px; }
  html .bottom-nav { display: none; }
  html .main { margin-left: var(--sidebar); max-width: none; }
}
/* Medium and small screens: the same menu as a drawer from the left */
@media (max-width: 1179px) {
  html .mobile-menu-button { display: grid; background: var(--pc-surface); border: 1px solid var(--pc-line); color: var(--pc-ink); border-radius: 10px; width: 38px; height: 38px; }
  html .sidebar { position: fixed; top: calc(var(--topbar) + var(--ribbon)); left: 0; bottom: 0; width: min(320px, 88vw); z-index: 60; padding: 14px 12px; overflow-y: auto;
    background: var(--pc-surface); border-right: 1px solid var(--pc-line-hi); box-shadow: 18px 0 60px rgba(0, 0, 0, .35); transform: translateX(-105%); transition: transform .2s ease; display: flex; flex-direction: column; }
  html .sidebar.open { transform: translateX(0); }
  /* The drawer sits inside the top bar (z-index 50), so the backdrop must stay under 50 or it covers the drawer. */
  html .sidebar-backdrop.open { display: block; position: fixed; inset: calc(var(--topbar) + var(--ribbon)) 0 0; background: rgba(2, 8, 16, .5); border: 0; z-index: 49; }
  html #nav .nav-item { color: var(--pc-ink); font: 600 13.5px var(--pc-body); border-radius: 9px; }
  html #nav .nav-item .nav-icon { color: var(--pc-accent); font: 700 11px var(--pc-mono); }
  html #nav .nav-item:hover { background: var(--pc-surface-2); color: var(--pc-ink); }
  html #nav .nav-item.active { background: var(--pc-soft-teal); color: var(--pc-accent); }
  html #nav .nav-section-head { color: var(--pc-muted); font: 700 10.5px var(--pc-display); letter-spacing: .16em; text-transform: uppercase; background: none; border: 0; }
  html .sidebar-footer .side-status { background: var(--pc-surface-2); border-color: var(--pc-line); color: var(--pc-ink); }
  html .sidebar-footer small, html .sidebar-footer .owner-label { color: var(--pc-muted); }
  .cmd-button { min-width: 0; width: 38px; padding: 0; justify-content: center; }
  .cmd-label, .cmd-button kbd { display: none; }
  html .brand-copy small { display: none; }
}
html .topbar .button, html .topbar .icon-button, html .coord-topchip, html .coord-topchip button { white-space: nowrap; }
html .topbar #refresh-button { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; }
html .topbar #refresh-button span { display: none; }
html .coord-topchip { display: flex; align-items: stretch; height: 38px; }
html .coord-topchip button { padding: 0 11px; border: 0; }
/* The full menu plus every tool needs about 1880px with labels and 1300px without; below those, labels give way first so
   Stop and the account button are never pushed off the bar. */
@media (max-width: 1879px) { html .user-copy { display: none; } html .coord-topchip-label span { display: none; } .cmd-label { display: none; } .cmd-button { min-width: 0; width: 38px; padding: 0; justify-content: center; } .cmd-button kbd { display: none; } }
@media (min-width: 1180px) and (max-width: 1365px) { html .brand-copy { display: none; } }
@media (max-width: 760px) {
  :root { --topbar: 58px; --ribbon: 26px; }
  html .topbar { padding: 0 10px; gap: 6px; }
  html .topbar-actions { gap: 5px; }
  html .topbar #refresh-button, html .topbar #theme-button { display: none; }
  /* The Team hub (messages and push-to-talk) has no other phone entry for most people, so it stays, compact. */
  html .topbar #team-button { height: 38px; padding: 0 8px; }
  html .topbar #ai-button { font-size: 0; width: 38px; min-width: 38px; padding: 0; display: grid; place-items: center; } html .topbar #ai-button::before { content: "✦"; font-size: 16px; }
  html .brand-copy { display: none; }
  html .main { padding: calc(var(--topbar) + var(--ribbon) + 16px) 14px 96px; }
  html .sidebar { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .ribbon { padding: 0 12px; } html .ribbon .topbar-center { display: none; }
  html .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--pc-chrome); border: 1px solid var(--pc-line-hi); box-shadow: var(--pc-shadow), var(--pc-glow); }
  html .bottom-nav button { color: var(--pc-muted); }
  html .bottom-nav button span { font-size: 16px; }
  html .bottom-nav button small { font: 700 9px var(--pc-display); letter-spacing: .08em; text-transform: uppercase; }
  html .bottom-nav button.active { background: var(--pc-soft-teal); color: var(--pc-accent); text-shadow: var(--pc-text-glow); }
  html .page-header h1 { font-size: 24px; }
}
@media (max-width: 374px) { html .topbar-actions { gap: 4px; } }
@media (max-width: 359px) { html .topbar #team-button { display: none; } }

/* ---- Command bar (Ctrl K) ------------------------------------------------------------------------------------- */
.pc-overlay { position: fixed; inset: 0; z-index: 120; background: rgba(2, 8, 16, .55); display: grid; place-items: start center; padding: 12vh 16px 16px; }
.pc-palette { width: min(640px, 100%); background: var(--pc-surface); color: var(--pc-ink); border: 1px solid var(--pc-line-hi); border-radius: 14px; box-shadow: var(--pc-shadow), var(--pc-glow); overflow: hidden; }
.pc-palette input { width: 100%; border: 0; border-bottom: 1px solid var(--pc-line); background: transparent; padding: 15px 16px; font: 500 16px var(--pc-body); color: var(--pc-ink); outline: none; }
.pc-results { display: grid; padding: 6px; max-height: 52vh; overflow: auto; }
.pc-results button { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; background: transparent; color: var(--pc-ink); text-align: left; padding: 9px 10px; border-radius: 8px; font-size: 14px; }
.pc-results button:hover, .pc-results button.on { background: var(--pc-soft-teal); }
.pc-results small { color: var(--pc-muted); font: 600 10.5px var(--pc-display); letter-spacing: .1em; text-transform: uppercase; }
.pc-palette-foot { display: flex; gap: 14px; flex-wrap: wrap; padding: 9px 14px; border-top: 1px solid var(--pc-line); color: var(--pc-muted); font-size: 11.5px; background: var(--pc-surface-2); }
.pc-palette-foot kbd { font: 500 10.5px var(--pc-mono); border: 1px solid var(--pc-line); border-radius: 4px; padding: 0 4px; }

/* ---- Tasks: Engage-style three panes -------------------------------------------------------------------------- */
.pc-tasks { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr) minmax(220px, 300px); border: 1px solid var(--pc-line); border-radius: 16px; overflow: hidden; background: var(--pc-glass); box-shadow: var(--pc-shadow); min-height: 560px; }
.pc-tlist { border-right: 1px solid var(--pc-line); display: flex; flex-direction: column; min-width: 0; }
.pc-tfilters { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border-bottom: 1px solid var(--pc-line); }
.pc-tfilters button { border: 1px solid var(--pc-line); background: transparent; color: var(--pc-ink-2); border-radius: 99px; padding: 3px 10px; font-size: 11.5px; font-weight: 700; }
.pc-tfilters button[aria-pressed="true"] { border-color: var(--pc-accent); color: var(--pc-accent); background: var(--pc-soft-teal); }
.pc-items { overflow: auto; max-height: 70vh; }
.pc-item { display: grid; grid-template-columns: 3px minmax(0, 1fr); gap: 10px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--pc-line-soft); background: transparent; color: var(--pc-ink); padding: 11px 12px 11px 8px; }
.pc-item:hover { background: var(--pc-surface-2); }
.pc-item[aria-current="true"] { background: var(--pc-soft-teal); }
.pc-item .pc-stripe { border-radius: 3px; background: var(--pc-line); }
.pc-item.bad .pc-stripe { background: var(--pc-red); box-shadow: 0 0 10px var(--pc-red); } .pc-item.warn .pc-stripe { background: var(--pc-amber); }
.pc-item.accent .pc-stripe { background: var(--pc-accent); } .pc-item.violet .pc-stripe { background: var(--pc-violet); }
.pc-item b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.pc-item small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--pc-muted); margin-top: 3px; font-size: 12px; }
.pc-kind { font: 700 10px var(--pc-display); letter-spacing: .12em; text-transform: uppercase; color: var(--pc-accent); }
.pc-item.bad .pc-kind { color: var(--pc-red); } .pc-item.warn .pc-kind { color: var(--pc-amber); } .pc-item.violet .pc-kind { color: var(--pc-violet); }
.pc-tdetail { padding: 20px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.pc-tdetail h2 { font: 700 19px/1.3 var(--pc-display); letter-spacing: .02em; max-width: 62ch; }
.pc-tdetail p { margin: 0; color: var(--pc-ink-2); }
.pc-quote { border-left: 3px solid var(--pc-accent); padding: 8px 12px; background: var(--pc-surface-2); border-radius: 0 10px 10px 0; color: var(--pc-ink); }
.pc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pc-tside { border-left: 1px solid var(--pc-line); padding: 18px; display: grid; gap: 12px; align-content: start; min-width: 0; background: var(--pc-surface-2); }
.pc-tside h3 { font: 700 11px var(--pc-display); letter-spacing: .14em; text-transform: uppercase; color: var(--pc-muted); margin: 0; }
.pc-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 12.5px; }
.pc-log li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; }
.pc-log time { font: 500 11px var(--pc-mono); color: var(--pc-muted); padding-top: 1px; }
.pc-empty { padding: 28px 18px; text-align: center; color: var(--pc-muted); }
.pc-empty strong { display: block; font: 700 15px var(--pc-display); letter-spacing: .06em; color: var(--pc-ink); margin-bottom: 6px; }
.pc-back { display: none; }
@media (max-width: 1180px) { .pc-tasks { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); } .pc-tside { display: none; } }
@media (max-width: 760px) {
  .pc-tasks { grid-template-columns: minmax(0, 1fr); }
  .pc-tasks .pc-tdetail { display: none; } .pc-tasks.open .pc-tlist { display: none; } .pc-tasks.open .pc-tdetail { display: grid; }
  .pc-back { display: inline-flex; }
  .pc-items { max-height: none; }
}

.pc-brief { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; padding: 14px 16px; border: 1px solid var(--pc-line); border-radius: 16px; background: var(--pc-glass); box-shadow: var(--pc-shadow); }
.pc-brief-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.pc-brief-line strong { font: 700 17px var(--pc-display); letter-spacing: .02em; }
.pc-brief-line span { color: var(--pc-muted); font-size: 13px; }
.pc-brief-orb { width: 12px; height: 12px; border-radius: 50%; background: var(--pc-green); box-shadow: 0 0 12px var(--pc-green); flex: none; }
.pc-brief-orb.warn { background: var(--pc-amber); box-shadow: 0 0 12px var(--pc-amber); } .pc-brief-orb.bad { background: var(--pc-red); box-shadow: 0 0 14px var(--pc-red); animation: pc-ping 2.4s ease-out infinite; }
.pc-brief-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.pc-brief-stats button { display: grid; justify-items: center; min-width: 74px; padding: 6px 10px; border: 1px solid var(--pc-line); border-radius: 10px; background: var(--pc-surface-2); color: var(--pc-muted); }
.pc-brief-stats button b { font-size: 18px; color: var(--pc-muted); }
.pc-brief-stats button span { font: 700 9.5px var(--pc-display); letter-spacing: .12em; text-transform: uppercase; }
.pc-brief-stats button.on b { color: var(--pc-ink); text-shadow: var(--pc-text-glow); }
.pc-brief-stats button.on { border-color: var(--pc-line-hi); }
@media (max-width: 760px) { .pc-brief-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; gap: 6px; } .pc-brief-stats button { min-width: 0; padding: 6px 2px; } .pc-brief-stats button span { font-size: 8px; letter-spacing: .06em; } }

/* ---- Intake › Clearance ---------------------------------------------------------------------------------------- */
.pc-clearlist { display: grid; gap: 12px; }
.pc-clear { border: 1px solid var(--pc-line); border-left: 3px solid var(--pc-line-hi); border-radius: 14px; background: var(--pc-glass); box-shadow: var(--pc-shadow); padding: 14px 16px; display: grid; gap: 12px; }
.pc-clear.bad { border-left-color: var(--pc-red); } .pc-clear.warn { border-left-color: var(--pc-amber); } .pc-clear.good { border-left-color: var(--pc-green); }
.pc-clear header { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.pc-clear h3 { margin: 2px 0 0; font: 700 18px var(--pc-display); letter-spacing: .03em; }
.pc-clear h3 small { font: 500 12px var(--pc-mono); color: var(--pc-muted); margin-left: 6px; }
.pc-clear header p { margin: 0; color: var(--pc-ink-2); font-size: 13px; }
.pc-clear.good .pc-kind { color: var(--pc-green); } .pc-clear.bad .pc-kind { color: var(--pc-red); } .pc-clear.warn .pc-kind { color: var(--pc-amber); }
.pc-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.pc-box { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 8px; text-align: left; border: 1px solid var(--pc-line); border-radius: 10px; padding: 8px 10px; background: var(--pc-surface-2); color: var(--pc-ink); font-size: 12.5px; }
.pc-box i { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--pc-line-hi); display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; color: var(--pc-on-strong); }
.pc-box.done i { background: var(--pc-green); border-color: var(--pc-green); } .pc-box.hold i { background: var(--pc-red); border-color: var(--pc-red); } .pc-box.na { opacity: .55; } .pc-box.na i { border-style: dashed; color: var(--pc-muted); }
.pc-box.manual:not([disabled]) { cursor: pointer; border-color: var(--pc-line-hi); } .pc-box.manual:not([disabled]):hover { border-color: var(--pc-accent); box-shadow: var(--pc-glow); }
.pc-box small { font: 700 9.5px var(--pc-display); letter-spacing: .1em; text-transform: uppercase; color: var(--pc-accent); }
.pc-box[disabled] { cursor: default; }

/* ---- Bookings › Calendar (owner 2026-10-09) ------------------------------------------------------------------- */
.pc-cal { padding: 0; overflow: hidden; }
.pc-cal .p0 { --cal-np: var(--pc-teal); } .pc-cal .p1 { --cal-np: var(--pc-violet); } .pc-cal .p2 { --cal-np: var(--pc-blue); } .pc-cal .p3 { --cal-np: var(--pc-green); }
.pc-cal .p4 { --cal-np: var(--pc-amber); } .pc-cal .p5 { --cal-np: var(--pc-red); } .pc-cal .p6 { --cal-np: var(--pc-teal-deep); } .pc-cal .p7 { --cal-np: var(--pc-navy-2); }
.pc-cal-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; }
.pc-cal-nav { display: flex; gap: 6px; } .pc-cal-nav .button { min-width: 38px; }
.section-tabs.pc-cal-views { margin: 0; }
.pc-cal-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px; }
.pc-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--pc-line); border-radius: 999px; padding: 4px 11px; background: var(--pc-surface-2); color: var(--pc-ink-2); font-size: 12.5px; cursor: pointer; }
.pc-chip b { font: 600 11px var(--pc-mono); color: var(--pc-muted); }
.pc-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--cal-np, var(--pc-line-hi)); }
.pc-chip.active { border-color: var(--pc-accent); background: var(--pc-soft-teal); color: var(--pc-ink); box-shadow: var(--pc-glow); }
.pc-chip input { margin: 0; accent-color: var(--pc-accent); }
.pc-cal-scroll { max-height: calc(100vh - 300px); min-height: 440px; overflow: auto; border-top: 1px solid var(--pc-line); }
.pc-cal-grid { display: grid; grid-auto-flow: column; grid-template-columns: 54px; grid-auto-columns: minmax(150px, 1fr); min-width: 100%; }
.pc-cal-head { position: sticky; top: 0; z-index: 3; height: 48px; display: grid; align-content: center; gap: 1px; padding: 0 10px; background: var(--pc-chrome); border-bottom: 1px solid var(--pc-line); border-left: 1px solid var(--pc-line-soft); }
.pc-cal-head b { font: 700 13px var(--pc-display); letter-spacing: .03em; color: var(--pc-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-cal-head small { font: 500 11px var(--pc-mono); color: var(--pc-muted); }
.pc-cal-col.today .pc-cal-head b { color: var(--pc-accent); text-shadow: var(--pc-text-glow); }
.pc-cal-col.today .pc-cal-body { background-color: color-mix(in srgb, var(--pc-accent) 4%, transparent); }
.pc-cal-times { position: sticky; left: 0; z-index: 4; background: var(--pc-surface); }
.pc-cal-times .pc-cal-head { border-left: 0; z-index: 5; }
.pc-cal-ticks span { display: block; height: 64px; padding-right: 8px; text-align: right; font: 500 10.5px var(--pc-mono); color: var(--pc-muted); transform: translateY(-6px); }
.pc-cal-ticks span:first-child { transform: none; }
.pc-cal-body { position: relative; border-left: 1px solid var(--pc-line-soft); background-image: repeating-linear-gradient(to bottom, var(--pc-line-soft) 0 1px, transparent 1px 64px); }
.pc-cal-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--pc-red); z-index: 2; pointer-events: none; box-shadow: 0 0 8px var(--pc-red); }
.pc-cal-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--pc-red); }
.pc-appt { position: absolute; z-index: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "time tags" "name name" "svc svc"; align-content: start; column-gap: 6px; overflow: hidden; padding: 4px 7px 4px 8px; text-align: left; border: 1px solid var(--pc-line); border-left: 3px solid var(--cal-np); border-radius: 8px; background: var(--pc-surface); color: var(--pc-ink); font-size: 12px; line-height: 1.3; cursor: pointer; box-shadow: 0 1px 2px rgba(10, 30, 50, .06); }
.pc-appt:hover, .pc-appt:focus-visible { z-index: 2; border-color: var(--pc-accent); border-left-color: var(--cal-np); box-shadow: var(--pc-shadow), var(--pc-glow); }
.pc-appt-time { grid-area: time; font: 600 11px var(--pc-mono); color: var(--pc-ink-2); white-space: nowrap; }
.pc-appt strong { grid-area: name; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-appt small { grid-area: svc; color: var(--pc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-appt-tags { grid-area: tags; display: flex; justify-content: flex-end; gap: 4px; min-width: 0; overflow: hidden; }
.pc-appt.tight { display: flex; align-items: center; gap: 6px; padding-top: 0; padding-bottom: 0; white-space: nowrap; }
.pc-appt.tight strong { flex: 0 1 auto; min-width: 0; } .pc-appt.tight small { flex: 1 1 0; min-width: 0; } .pc-appt.tight .pc-appt-tags { flex: none; margin-left: auto; }
.pc-appt.crowd .pc-np, .pc-appt.crowd small { display: none; } .pc-appt.crowd .pc-flag { width: 8px; height: 8px; padding: 0; font-size: 0; background: currentColor; } .pc-appt.crowd { gap: 4px; padding-left: 5px; padding-right: 4px; }
.pc-appt.t-new, .pc-appt-row.t-new { background: var(--pc-soft-violet); }
.pc-appt.s-wait, .pc-appt-row.s-wait { border-style: dashed; border-left-style: solid; }
.pc-appt.s-miss, .pc-appt-row.s-miss { background: var(--pc-soft-red); }
.pc-appt.s-off, .pc-appt-row.s-off { opacity: .55; } .pc-appt.s-off strong, .pc-appt-row.s-off strong { text-decoration: line-through; }
.pc-np { margin-left: auto; font: 700 9px var(--pc-mono); font-style: normal; color: var(--cal-np); border: 1px solid currentColor; border-radius: 4px; padding: 0 3px; }
.pc-flag, .pc-status { display: inline-block; font: 700 9.5px var(--pc-display); font-style: normal; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 1px 7px; white-space: nowrap; background: var(--pc-surface-3); color: var(--pc-ink-2); }
.pc-flag.good, .pc-status.s-ok { background: var(--pc-soft-green); color: var(--pc-green); }
.pc-flag.warn, .pc-status.s-wait { background: var(--pc-soft-amber); color: var(--pc-amber); }
.pc-flag.bad, .pc-status.s-miss { background: var(--pc-soft-red); color: var(--pc-red); }
.pc-appt-tags .pc-flag { padding: 0 5px; font-size: 8.5px; }
.pc-cal-list { display: grid; gap: 16px; padding: 14px; border-top: 1px solid var(--pc-line); }
.pc-cal-day h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font: 700 15px var(--pc-display); letter-spacing: .03em; }
.pc-cal-day h3 small { margin-left: auto; font: 500 11.5px var(--pc-mono); color: var(--pc-muted); }
.pc-cal-rows { display: grid; gap: 6px; }
.pc-appt-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; text-align: left; border: 1px solid var(--pc-line); border-left: 3px solid var(--cal-np); border-radius: 10px; background: var(--pc-surface); color: var(--pc-ink); cursor: pointer; }
.pc-appt-row:hover { border-color: var(--pc-accent); border-left-color: var(--cal-np); }
.pc-row-time { display: grid; font: 600 12.5px var(--pc-mono); } .pc-row-time small { font-weight: 500; color: var(--pc-muted); }
.pc-row-main { min-width: 0; } .pc-row-main strong { display: block; } .pc-row-main small { display: block; color: var(--pc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-row-tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.pc-cal-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 14px; border-top: 1px solid var(--pc-line); color: var(--pc-muted); font-size: 12px; }
.pc-cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pc-cal-legend span::before { content: ""; width: 14px; height: 10px; border-radius: 3px; border: 1px solid var(--pc-line-hi); background: var(--pc-surface); }
.pc-cal-legend .t-new::before { background: var(--pc-soft-violet); } .pc-cal-legend .s-wait::before { border-style: dashed; } .pc-cal-legend .s-miss::before { background: var(--pc-soft-red); } .pc-cal-legend .s-off::before { opacity: .5; }
#pc-cal-host.pc-loading { opacity: .6; transition: opacity .2s; }
.pc-brief-stats button.on.warn b { color: var(--pc-amber); } .pc-brief-stats button.on.bad b { color: var(--pc-red); }
.pc-cal-detail { display: grid; gap: 10px; margin: 0 0 14px; }
.pc-cal-detail div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.pc-cal-detail dt { font: 700 10px var(--pc-display); letter-spacing: .12em; text-transform: uppercase; color: var(--pc-muted); }
.pc-cal-detail dd { margin: 0; color: var(--pc-ink); } .pc-cal-detail small { color: var(--pc-muted); }
.pc-cal-note { color: var(--pc-muted); font-size: 12.5px; }
@media (max-width: 720px) { .pc-cal-bar { padding: 10px; } .pc-cal-chips { padding: 0 10px 10px; } .pc-cal-grid { grid-template-columns: 44px; grid-auto-columns: minmax(124px, 1fr); } .pc-cal-scroll { max-height: calc(100vh - 260px); } .pc-appt-row { grid-template-columns: 54px minmax(0, 1fr); } .pc-row-tags { grid-column: 2; justify-content: flex-start; } }

/* ---- Horizon chart (owner 2026-10-09): one patient, phase one of the full EHR ------------------------------------ */
.pc-chart { display: grid; gap: 14px; }
.pc-chart-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--pc-line); border-radius: 16px; background: var(--pc-glass); box-shadow: var(--pc-shadow); }
.pc-chart-backbtn { min-width: 36px; }
.pc-chart-avatar { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, var(--pc-teal), var(--pc-teal-deep)); color: var(--pc-on-strong); font: 800 17px var(--pc-display); letter-spacing: .02em; flex: none; }
.pc-chart-id { min-width: 0; flex: 1; } .pc-chart-id h2 { margin: 0; font: 700 22px var(--pc-display); letter-spacing: .02em; } .pc-chart-id p { margin: 2px 0 0; color: var(--pc-muted); font: 500 12.5px var(--pc-mono); }
.pc-chart-statuschip { align-self: center; }
.section-tabs.pc-chart-tabs { margin: 0; }
.pc-chart-body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .9fr); gap: 14px; align-items: start; }
.pc-chart-main { display: grid; gap: 14px; }
.pc-chart-rail { display: grid; gap: 14px; position: sticky; top: calc(var(--topbar) + var(--ribbon) + 12px); }
.pc-chart-card { border: 1px solid var(--pc-line); border-radius: 16px; background: var(--pc-glass); box-shadow: var(--pc-shadow); padding: 15px 16px; }
.pc-chart-card h3 { margin: 2px 0 12px; font: 700 15px var(--pc-display); letter-spacing: .02em; }
.pc-chart-card .eyebrow { color: var(--pc-accent); }
.pc-chart-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-muted { color: var(--pc-muted); font-size: 13px; margin: 4px 0 0; }
.pc-chart-appts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pc-chart-appt { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--pc-line); border-radius: 11px; background: var(--pc-surface-2); }
.pc-chart-appt.off { opacity: .6; } .pc-chart-appt.off strong { text-decoration: line-through; }
.pc-chart-when { display: grid; font: 600 12px var(--pc-mono); } .pc-chart-when small { font-weight: 500; color: var(--pc-muted); }
.pc-chart-appt-main { min-width: 0; } .pc-chart-appt-main strong { display: block; } .pc-chart-appt-main small { color: var(--pc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-chart-past { margin-top: 8px; } .pc-chart-past summary { cursor: pointer; color: var(--pc-muted); font-size: 12.5px; } .pc-chart-past ul { margin-top: 8px; }
.pc-chart-forms { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pc-chart-forms li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--pc-line); border-radius: 11px; background: var(--pc-surface-2); }
.pc-chart-form-name { min-width: 0; } .pc-chart-form-name small { color: var(--pc-muted); }
.pc-chart-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pc-chart-timeline li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 0 0 14px; position: relative; }
.pc-chart-timeline li:not(:last-child)::before { content: ""; position: absolute; left: 9px; top: 16px; bottom: 0; width: 2px; background: var(--pc-line); }
.pc-chart-timeline .pc-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; background: var(--pc-teal); border: 2px solid var(--pc-surface); box-shadow: 0 0 0 1px var(--pc-line); z-index: 1; }
.pc-dot[data-tag="headway"] { background: var(--pc-violet); } .pc-dot[data-tag="screen"] { background: var(--pc-amber); } .pc-dot[data-tag="review"] { background: var(--pc-red); } .pc-dot[data-tag="appointment"] { background: var(--pc-blue); } .pc-dot[data-tag="clearance"] { background: var(--pc-green); }
.pc-chart-timeline strong { font-weight: 600; } .pc-chart-timeline small { display: block; color: var(--pc-muted); font: 500 11px var(--pc-mono); margin-top: 1px; }
.pc-chart-status { display: flex; align-items: center; gap: 10px; font: 700 17px var(--pc-display); margin: 6px 0; }
.pc-chart-status.bad { color: var(--pc-red); } .pc-chart-status.warn { color: var(--pc-amber); } .pc-chart-status.good { color: var(--pc-green); }
.pc-chart-next { color: var(--pc-ink-2); font-size: 13px; margin: 0; }
.pc-chart-encounter .button { margin-top: 10px; }
.pc-chart-clinical, .pc-chart-encounter { border-style: dashed; }
.pc-chart-stubs { display: grid; gap: 8px; margin-top: 10px; }
.pc-chart-stub { padding: 10px 12px; border: 1px dashed var(--pc-line-hi); border-radius: 11px; background: var(--pc-surface-2); } .pc-chart-stub strong { display: block; } .pc-chart-stub small { color: var(--pc-muted); }
.pc-chart-note { color: var(--pc-muted); font-size: 12px; text-align: center; margin: 4px 0 0; }
.pc-cell-pt { display: flex; align-items: center; gap: 9px; } .pc-cell-pt div { display: grid; } .pc-cell-pt small { color: var(--pc-muted); }
tr[data-open-chart] { cursor: pointer; } tr[data-open-chart]:hover td { background: var(--pc-surface-2); }
.pc-assess-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 4px; }
.pc-assess { border: 1px solid var(--pc-line); border-radius: 12px; background: var(--pc-surface-2); padding: 12px 13px; display: grid; gap: 4px; }
.pc-assess-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pc-assess-top strong { font: 700 13px var(--pc-display); letter-spacing: .03em; }
.pc-assess-score { font: 800 30px var(--pc-display); letter-spacing: -.02em; line-height: 1; } .pc-assess-score small { font: 500 13px var(--pc-mono); color: var(--pc-muted); margin-left: 3px; }
.pc-assess-trend { font-weight: 650; } .pc-assess-trend.good { color: var(--pc-green); } .pc-assess-trend.bad { color: var(--pc-red); }
.pc-cal-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.pc-clear-chart { margin-left: auto; }
#pc-chart-host.pc-loading { opacity: .6; transition: opacity .2s; }
@media (max-width: 900px) { .pc-chart-body { grid-template-columns: 1fr; } .pc-chart-rail { position: static; } .pc-chart-id h2 { font-size: 19px; } }

/* ---- Floating Luna (owner 2026-10-09): bottom-right, shown per role ------------------------------------------- */
.luna-float { position: fixed; right: 22px; bottom: 22px; z-index: 55; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(145deg, var(--pc-teal), var(--pc-violet)); color: var(--pc-on-strong); font: 700 13.5px var(--pc-display); letter-spacing: .06em; box-shadow: 0 12px 34px rgba(10, 142, 162, .38), var(--pc-glow); }
.luna-float span { font-size: 16px; } .luna-float:hover { transform: translateY(-2px); } .luna-float:active { transform: none; }
@media (max-width: 760px) { .luna-float { right: 14px; bottom: calc(70px + env(safe-area-inset-bottom)); padding: 11px 15px; font-size: 12.5px; } }
@media (prefers-reduced-motion: reduce) { .luna-float:hover { transform: none; } }

/* ---- Role dashboard (owner 2026-10-09) ----------------------------------------------------------------------- */
.pc-dash-hero { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 14px; border: 1px solid var(--pc-line); border-radius: 18px; background: linear-gradient(135deg, var(--pc-soft-teal), var(--pc-glass)); box-shadow: var(--pc-shadow); }
.pc-dash-hero .pc-brief-orb { width: 14px; height: 14px; flex: none; }
.pc-dash-hero strong { display: block; font: 700 21px var(--pc-display); letter-spacing: .01em; } .pc-dash-hero span { color: var(--pc-ink-2); font-size: 13.5px; }
.pc-dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
.pc-dash-tile { border: 1px solid var(--pc-line); border-left: 3px solid var(--pc-line-hi); border-radius: 16px; background: var(--pc-glass); box-shadow: var(--pc-shadow); padding: 15px 16px; display: grid; gap: 3px; }
.pc-dash-tile.go { cursor: pointer; } .pc-dash-tile.go:hover { border-color: var(--pc-accent); box-shadow: var(--pc-shadow), var(--pc-glow); }
.pc-dash-tile b { font: 800 30px var(--pc-display); letter-spacing: -.02em; line-height: 1.05; }
.pc-dash-tile span { font: 700 10px var(--pc-display); letter-spacing: .12em; text-transform: uppercase; color: var(--pc-muted); }
.pc-dash-tile small { color: var(--pc-ink-2); font-size: 12px; }
.pc-dash-tile.warn { border-left-color: var(--pc-amber); } .pc-dash-tile.warn b { color: var(--pc-amber); }
.pc-dash-tile.bad { border-left-color: var(--pc-red); } .pc-dash-tile.bad b { color: var(--pc-red); }
.pc-dash-tile.good { border-left-color: var(--pc-green); } .pc-dash-tile.good b { color: var(--pc-green); }
.pc-dash-tasks .pc-dash-tasklist { display: grid; gap: 6px; padding: 14px 16px; }
.pc-dash-task { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--pc-line); border-left: 3px solid var(--pc-blue); border-radius: 11px; background: var(--pc-surface-2); color: var(--pc-ink); text-align: left; cursor: pointer; }
.pc-dash-task:hover { border-color: var(--pc-accent); }
.pc-dash-task.tone-red { border-left-color: var(--pc-red); } .pc-dash-task.tone-amber { border-left-color: var(--pc-amber); } .pc-dash-task.tone-violet { border-left-color: var(--pc-violet); } .pc-dash-task.tone-green { border-left-color: var(--pc-green); } .pc-dash-task.tone-teal { border-left-color: var(--pc-teal); }
.pc-dash-kind { font: 700 9.5px var(--pc-display); letter-spacing: .1em; text-transform: uppercase; color: var(--pc-muted); }
.pc-dash-task-main { min-width: 0; } .pc-dash-task-main strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pc-dash-task-main small { color: var(--pc-muted); }
.pc-dash-chevron { color: var(--pc-muted); font-size: 18px; }
.pc-dash-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-dash-link { border: 1px solid var(--pc-line); border-radius: 10px; padding: 9px 14px; background: var(--pc-surface-2); color: var(--pc-ink); font: 600 13px var(--pc-body); cursor: pointer; }
.pc-dash-link:hover { border-color: var(--pc-accent); color: var(--pc-accent); }
@media (max-width: 720px) { .pc-dash-task { grid-template-columns: 1fr auto; } .pc-dash-kind { display: none; } .pc-dash-hero strong { font-size: 18px; } }

/* ---- Where did my pages go? ----------------------------------------------------------------------------------- */
.pc-map td:first-child { color: var(--pc-ink-2); }
.pc-map td:nth-child(2) { color: var(--pc-accent); font-weight: 650; }
.pc-map button { border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.pc-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.pc-keys div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--pc-line); border-radius: 10px; background: var(--pc-surface-2); }
.pc-keys kbd { font: 500 11px var(--pc-mono); border: 1px solid var(--pc-line-hi); border-radius: 5px; padding: 1px 6px; color: var(--pc-ink); }

@media (prefers-reduced-motion: reduce) { .ribbon-ticker, .ribbon-orb { animation: none; } html .button.primary:hover { transform: none; } }
@media print { .ribbon, .pc-overlay { display: none !important; } }

/* Schedule clinical rail (Stage 1, 2026-10-10): Next patient + today's queue beside the Bookings calendar. */
.pc-sched-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}
.pc-sched-main{min-width:0}
.pc-sched-rail{display:flex;flex-direction:column;gap:10px}
.pc-rail-h{font-size:10px;font-weight:850;letter-spacing:.1em;text-transform:uppercase;color:var(--pc-muted);display:flex;align-items:center;gap:8px;margin:4px 2px 0}
.pc-rail-h b{background:var(--pc-surface-3);color:var(--pc-ink-2);border-radius:999px;padding:1px 8px;font-size:10px;font-weight:800}
.pc-nextpt .card-body{display:flex;flex-direction:column;gap:7px}
.pc-nextpt-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.pc-nextpt-when{font-family:var(--pc-mono);font-size:12px;color:var(--pc-ink-2);font-weight:700}
.pc-nextpt-name{font-size:17px;color:var(--pc-ink)}
.pc-nextpt-meta{font-size:12px;color:var(--pc-ink-2)}
.pc-nextpt-tags{display:flex;gap:6px;flex-wrap:wrap}
.pc-rail-empty{color:var(--pc-muted);font-size:11px;padding:6px 2px}
.pc-queue.card{padding:0}
.pc-queue-list{display:flex;flex-direction:column;max-height:460px;overflow-y:auto}
.pc-qrow{display:flex;align-items:center;gap:10px;padding:10px 13px;border:0;border-top:1px solid var(--pc-line-soft);background:var(--pc-surface);text-align:left;width:100%}
.pc-qrow:first-child{border-top:0}
.pc-qrow:hover{background:var(--pc-surface-2)}
.pc-qtime{font-family:var(--pc-mono);font-size:11px;color:var(--pc-ink-2);width:42px;flex:none}
.pc-qmain{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.pc-qmain strong{font-size:12.5px;color:var(--pc-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc-qmain small{font-size:10.5px;color:var(--pc-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:1080px){.pc-sched-layout{grid-template-columns:minmax(0,1fr)}.pc-sched-rail{order:-1}}

/* Chart assessment severity bar (Stage 2, 2026-10-10): score/max as a band-colored gauge; width set in JS (no inline styles). */
.pc-assess-bar{height:6px;border-radius:999px;background:var(--pc-surface-3);overflow:hidden;margin:7px 0 3px}
.pc-assess-bar i{display:block;height:100%;width:0;border-radius:999px;background:var(--pc-teal);transition:width .4s ease}
.pc-assess-bar.good i{background:var(--pc-green)}
.pc-assess-bar.warn i{background:var(--pc-amber)}
.pc-assess-bar.bad i{background:var(--pc-red)}

/* Reports framing strip (Horizon phase, owner 2026-10-10): sits at the head of the Analytics area (Command Center),
   reusing .card/.card-header/.button — no new tab. Just keep the ask button whole and let it wrap on narrow screens. */
.pc-reports-strip .card-header{flex-wrap:wrap}
.pc-reports-strip .button{white-space:nowrap;flex:0 0 auto;align-self:center}
.pc-reports-strip h2{margin:2px 0 6px}

/* Encounter notes (Horizon shadow pilot): SOAP editor, list and signed view inside the chart. */
.pc-note-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px}
.pc-note-head h3{margin:2px 0 0}
.pc-note-status{background:var(--pc-soft-teal);color:var(--pc-teal-deep);border:1px solid var(--pc-line);border-radius:8px;padding:8px 11px;font-size:12px;margin-bottom:12px}
.pc-note-fine{font-size:11px;margin-top:10px}
.pc-note-rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.pc-note-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--pc-line);border-radius:12px;background:var(--pc-surface);cursor:pointer;transition:border-color .12s ease}
.pc-note-row:hover{border-color:var(--pc-teal)}
.pc-note-row:focus-visible{outline:2px solid var(--pc-teal);outline-offset:2px}
.pc-note-rmain{display:flex;flex-direction:column;gap:2px;min-width:0}
.pc-note-rmain small{color:var(--pc-muted)}
.pc-note-rtags{display:flex;align-items:center;gap:7px;flex-shrink:0}
.pc-note-meta{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-bottom:4px}
.pc-note-field{display:flex;flex-direction:column;gap:5px;margin-bottom:12px}
.pc-note-field>span{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--pc-muted);font-weight:700}
.pc-note-ta{width:100%;border:1px solid var(--pc-line);border-radius:11px;padding:11px 12px;background:var(--pc-surface);color:var(--pc-ink);font:inherit;font-size:13px;line-height:1.5;resize:vertical;min-height:44px}
.pc-note-ta:focus{outline:2px solid var(--pc-teal);outline-offset:1px;border-color:var(--pc-teal)}
.pc-note-snap{margin:2px 0 12px;display:flex;flex-direction:column;gap:6px}
.pc-note-snap>div{display:flex;flex-wrap:wrap;gap:6px}
/* Audit-proof check before signing (2026-10-20) */
.pc-ready{margin:4px 0 12px;padding:12px;border:1px solid var(--pc-line,rgba(0,0,0,.1));border-radius:10px;display:flex;flex-direction:column;gap:10px}
.pc-ready-ctx{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.pc-ready-ctx .pc-note-field{min-width:150px;flex:0 1 200px;margin:0}
.pc-ready-consent{display:flex;gap:6px;align-items:center;font-size:.9em}
.pc-ready-head{display:flex;gap:10px;align-items:center}
.pc-ready-score{font-size:1.1em;font-weight:700;min-width:44px;text-align:center}
.pc-ready-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.pc-ready-item{padding:8px 10px;border-radius:8px;background:var(--pc-soft,rgba(0,0,0,.03))}
.pc-ready-why{margin:4px 0 6px;font-size:.92em}
.pc-ready-override{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:.92em}
.pc-note-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end;margin-top:6px}
.pc-note-sec{margin:0 0 14px}
.pc-note-sec .eyebrow{margin-bottom:4px}
.pc-note-body{white-space:normal;margin:0;font-size:13.5px;line-height:1.55;color:var(--pc-ink)}
.pc-note-add{border-left:3px solid var(--pc-line);padding:2px 0 2px 12px;margin:0 0 10px}
.pc-note-hist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:5px}
.pc-note-hist li{display:flex;justify-content:space-between;gap:10px;font-size:12px;border-bottom:1px solid var(--pc-line);padding-bottom:4px}
.pc-note-hist li span{font-weight:600}
@media(max-width:620px){.pc-note-meta{grid-template-columns:1fr}.pc-note-actions{justify-content:stretch}.pc-note-actions .button{flex:1}}
/* Vitals (Horizon Stage 2): capture form + reading grid. Tokens only; no inline styles (CSP). */
.pc-vital-form{display:grid;grid-template-columns:repeat(3,1fr);gap:10px 12px;margin:4px 0 14px}
.pc-vital-field{display:flex;flex-direction:column;gap:5px}
.pc-vital-field>span{font-size:11px;letter-spacing:.03em;text-transform:uppercase;color:var(--pc-muted);font-weight:700}
.pc-vital-field>span i{font-style:normal;color:var(--pc-ink-2);text-transform:none;letter-spacing:0}
.pc-vital-latest{margin:2px 0 14px}
.pc-vital-latest .eyebrow,.pc-vital-history .eyebrow{margin-bottom:6px}
.pc-vital-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(74px,1fr));gap:9px;margin:0 0 8px}
.pc-vital-cell{border:1px solid var(--pc-line);border-radius:11px;padding:8px 10px;background:var(--pc-surface-2);display:flex;flex-direction:column;gap:2px}
.pc-vital-cell small{font-size:10.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--pc-muted);font-weight:700}
.pc-vital-cell strong{font-size:17px;color:var(--pc-ink);font-variant-numeric:tabular-nums;line-height:1.1}
.pc-vital-cell strong i{font-style:normal;font-size:11px;font-weight:600;color:var(--pc-ink-2);margin-left:2px}
.pc-vital-flags{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
.pc-vital-history{margin-top:10px}
.pc-vital-hist{border-top:1px solid var(--pc-line);padding:8px 0 2px}
.pc-vital-hist>summary{cursor:pointer;font-size:12.5px;font-weight:600;color:var(--pc-ink-2);font-variant-numeric:tabular-nums}
.pc-vital-hist[open]>summary{margin-bottom:8px}
@media(max-width:620px){.pc-vital-form{grid-template-columns:repeat(2,1fr)}}
/* E-prescribe (Horizon Stage 3): hard-stop banner, controlled checkbox, signed-order detail list. Tokens only. */
.pc-rx-blocks{display:flex;flex-direction:column;gap:8px;margin:2px 0 14px}
.pc-rx-block{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;border:1px solid var(--pc-red);background:var(--pc-soft-red);border-radius:11px;padding:11px 13px}
.pc-rx-block strong{color:var(--pc-ink);font-size:13.5px;font-weight:600;line-height:1.45}
.pc-rx-check{display:flex;gap:9px;align-items:flex-start;margin:2px 0 14px;font-size:13px;color:var(--pc-ink-2);cursor:pointer}
.pc-rx-check input{margin-top:2px;width:16px;height:16px;flex:0 0 auto;accent-color:var(--pc-teal)}
.pc-rx-dl{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px 16px;margin:4px 0 10px}
.pc-rx-dl dt{font-size:10.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--pc-muted);font-weight:700;margin-bottom:2px}
.pc-rx-dl dd{margin:0;font-size:14px;color:var(--pc-ink);line-height:1.4}
/* AI scribe (Horizon Stage 4): a draft-from-transcript panel inside the note editor. Tokens only. */
.pc-scribe{margin:2px 0 12px;border:1px dashed var(--pc-line-hi);border-radius:12px;padding:10px 12px;background:var(--pc-surface-2)}
.pc-scribe-body{margin-top:10px;display:flex;flex-direction:column;gap:4px}
.pc-scribe-missing{background:var(--pc-soft-amber);border:1px solid var(--pc-line);border-radius:10px;padding:8px 11px;margin:2px 0 8px}
.pc-scribe-missing small{font-size:11px;letter-spacing:.03em;text-transform:uppercase;color:var(--pc-muted);font-weight:700}
.pc-scribe-missing ul{margin:5px 0 0;padding-left:18px}
.pc-scribe-missing li{font-size:12.5px;color:var(--pc-ink-2);margin:2px 0}
.pc-kup{margin:2px 0 12px}
.pc-kup.open{border:1px solid var(--pc-line-hi);border-radius:12px;padding:12px 14px;background:var(--pc-surface-2);display:flex;flex-direction:column;gap:6px}
.pc-kup-head{display:flex;flex-direction:column;gap:2px;margin-bottom:4px}
.pc-kup-ta{min-height:180px;font-family:inherit}
.pc-kup-file{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:12.5px}
.pc-sr{margin:2px 0 12px}
.pc-sr.open{border:1px solid var(--pc-line-hi);border-radius:12px;padding:12px 14px;background:var(--pc-surface-2);display:flex;flex-direction:column;gap:8px}
.pc-sr-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap}
.pc-sr-headr{display:flex;align-items:center;gap:8px}
.pc-sr-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.pc-sr-row{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;text-align:left;border:1px solid var(--pc-line);border-radius:8px;background:var(--pc-surface);padding:7px 10px;font:inherit;font-size:12.5px;cursor:pointer;color:inherit}
.pc-sr-row:hover{border-color:var(--pc-line-hi)}
.pc-sr-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
@media (max-width:900px){.pc-sr-cols{grid-template-columns:1fr}}
.pc-sr-col{min-width:0}
.pc-sr-transcript{max-height:70vh;overflow:auto;border:1px solid var(--pc-line);border-radius:8px;background:var(--pc-surface);padding:8px 10px;font-size:12.5px;display:flex;flex-direction:column;gap:6px}
.pc-sr-turn{display:grid;grid-template-columns:86px minmax(0,1fr);gap:8px}
.pc-sr-who{font-weight:700;font-size:11px;letter-spacing:.03em;text-transform:uppercase;color:var(--pc-muted)}
.pc-sr-turn.pt .pc-sr-who{color:var(--pc-accent)}
.pc-sr-box{border:1px solid var(--pc-line);border-radius:8px;background:var(--pc-surface);padding:8px 10px;margin-bottom:8px}
.pc-sr-box.off{opacity:.55}
.pc-sr-boxhead{display:flex;align-items:center;gap:8px;font-size:12.5px;margin-bottom:6px;cursor:pointer}
.pc-sr-boxhead small{margin-left:auto}
.pc-sr-ta{width:100%;font-family:inherit;font-size:12.5px;white-space:pre-wrap}
.pc-sr-raw{white-space:pre-wrap;font:12.5px/1.45 inherit;max-height:70vh;overflow:auto;border:1px solid var(--pc-line);border-radius:8px;padding:8px 10px;background:var(--pc-surface)}
.pc-sr-changes{margin:0;padding-left:18px;font-size:12.5px}
.pc-sr-target{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}
.pc-kup-file label{position:relative;overflow:hidden;cursor:pointer}
.pc-kup-input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.pc-kup-recent{margin-top:6px;border-top:1px solid var(--pc-line);padding-top:8px}
.pc-kup-list{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:4px}
.pc-kup-list li{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12.5px;flex-wrap:wrap}
.pc-note-status.bad{background:var(--pc-soft-amber)}
/* Reports hub (owner 2026-10-11 "amazing reporting side"): one front door for every standing report + a custom ask. */
.pc-reports-hub { display: flex; flex-direction: column; gap: 16px; }
.pc-report-ask { background: linear-gradient(135deg, color-mix(in srgb, var(--pc-teal) 14%, var(--pc-surface)), var(--pc-surface)); }
.pc-report-ask h2 { margin: 2px 0 6px; }
.pc-report-ask p { color: var(--pc-ink-2); max-width: 62ch; }
.pc-report-ask .button.wide { margin-top: 12px; }
.pc-report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pc-report-card { display: flex; align-items: center; gap: 13px; text-align: left; padding: 15px 16px; cursor: pointer; border: 1px solid var(--pc-line); background: var(--pc-surface); transition: transform .12s, border-color .12s, box-shadow .12s; }
.pc-report-card:hover { transform: translateY(-2px); border-color: var(--pc-line-hi); box-shadow: var(--pc-shadow); }
.pc-report-ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font: 800 16px var(--pc-display); color: var(--pc-accent); background: var(--pc-soft-teal); }
.pc-report-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.pc-report-txt strong { font-size: 15px; color: var(--pc-ink); }
.pc-report-txt small { font-size: 12.5px; color: var(--pc-muted); line-height: 1.4; }
.pc-report-go { flex: 0 0 auto; color: var(--pc-muted); font-size: 20px; }
/* Desktop "Encounter documentation" rail (Horizon desktop mockup, owner 2026-10-11): note/orders/billing + CDS on wide. */
.pc-enc-head { display: grid; gap: 8px; }
.pc-enc-tabs { display: flex; gap: 4px; background: var(--pc-surface-2); border: 1px solid var(--pc-line); border-radius: 12px; padding: 4px; }
.pc-enc-tab { flex: 1; min-width: 68px; border: 0; background: transparent; color: var(--pc-muted); font: 700 10.5px var(--pc-display); letter-spacing: .05em; text-transform: uppercase; padding: 8px 6px; border-radius: 9px; cursor: pointer; }
.pc-enc-tab.active { background: var(--pc-surface); color: var(--pc-accent); box-shadow: var(--pc-shadow); }
.pc-enc-pane { display: grid; gap: 14px; }
.pc-cds { display: grid; gap: 8px; }
.pc-cds-card { display: flex; align-items: flex-start; gap: 9px; border: 1px solid var(--pc-line); border-radius: 11px; padding: 10px 12px; font-size: 13px; line-height: 1.45; color: var(--pc-ink); background: var(--pc-surface-2); }
.pc-cds-card.warn { border-color: color-mix(in srgb, var(--pc-amber) 45%, var(--pc-line)); background: var(--pc-soft-amber); }
.pc-cds-card.bad { border-color: color-mix(in srgb, var(--pc-red) 45%, var(--pc-line)); background: var(--pc-soft-red); }
.pc-cds-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: var(--pc-amber); }
.pc-cds-card.bad .pc-cds-dot { background: var(--pc-red); }

/* ---- Chart Invoices (EHR flow rebuild, Slice 1, 2026-10-15): PracticeQ's invoice flow in Practice Current's look ---- */
.pc-inv-headbtns{display:flex;gap:8px;flex-wrap:wrap}
.pc-inv-totals{margin:2px 0 8px}
.pc-inv-cols{display:grid;grid-template-columns:1fr auto;gap:8px;font-size:10.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--pc-muted);font-weight:700;padding:0 4px 4px}
.pc-inv-cols span:nth-child(2){display:none}
.pc-inv-amt{display:flex;flex-direction:column;align-items:flex-end;font-family:var(--pc-mono);font-size:13px;color:var(--pc-ink);line-height:1.25}
.pc-inv-amt small{font-size:11px;color:var(--pc-muted)}
.pc-inv-sub{margin:12px 0 6px}
.pc-inv-line{display:grid;grid-template-columns:minmax(150px,2.4fr) .8fr 1.2fr .6fr 1fr auto;gap:8px;align-items:center;margin-bottom:6px}
.pc-inv-linehead{font-size:10.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--pc-muted);font-weight:700;margin-bottom:2px}
.pc-inv-addrow{display:flex;gap:6px;flex-wrap:wrap;margin:4px 0 8px}
.pc-inv-total{display:flex;justify-content:flex-end;gap:10px;align-items:baseline;padding:8px 2px;border-top:1px solid var(--pc-line-soft);margin:4px 0 10px;color:var(--pc-ink-2)}
.pc-inv-total strong{font-family:var(--pc-mono);font-size:17px;color:var(--pc-ink)}
.pc-inv-vlines{list-style:none;margin:0 0 6px;padding:0;display:flex;flex-direction:column}
.pc-inv-vline{display:grid;grid-template-columns:1fr auto auto;gap:14px;padding:7px 4px;border-bottom:1px solid var(--pc-line-soft);font-size:14px;color:var(--pc-ink)}
.pc-inv-vline small{color:var(--pc-muted);font-family:var(--pc-mono);margin-left:4px}
.pc-inv-vline span:last-child{font-family:var(--pc-mono);text-align:right}
.pc-inv-msg{margin:8px 0;padding:10px 12px;background:var(--pc-surface-2);border:1px solid var(--pc-line-soft);border-radius:10px;color:var(--pc-ink-2);font-size:14px}
.pc-inv-pay{margin-top:10px}
.pc-sb-line{grid-template-columns:1fr 2.4fr .8fr .5fr 1fr}
.pc-sb-line span:last-child{font-family:var(--pc-mono);text-align:right}
.pc-sb-go{display:flex;align-items:flex-end}
@media(max-width:620px){
  .pc-inv-line{grid-template-columns:1fr 1fr;}
  .pc-inv-line [data-item="description"]{grid-column:1/-1}
  .pc-inv-linehead{display:none}
  .pc-sb-line{grid-template-columns:1fr 1fr}
}
/* print ONLY the superbill, and only while it is being printed (body.pc-print-sb), so other pages print normally */
@media print{
  body.pc-print-sb *{visibility:hidden}
  body.pc-print-sb .pc-printable,body.pc-print-sb .pc-printable *{visibility:visible}
  body.pc-print-sb .pc-printable{position:absolute;inset:0;box-shadow:none;border:0}
  body.pc-print-sb .pc-printable .pc-note-actions,body.pc-print-sb .pc-printable .pc-sb-go,body.pc-print-sb .pc-printable .pc-note-fine{display:none}
  body.pc-print-sb .pc-print-only{display:block !important}
  body.pc-print-sb .button,body.pc-print-sb .pc-printable .pc-note-status{display:none !important}
}

/* ---- Chart Events (EHR flow rebuild, Slice 4): PracticeQ's EVENT / BY / DATE / DETAILS log ---- */
.pc-ev-chips{display:flex;gap:6px;flex-wrap:wrap;margin:2px 0 10px}
.pc-ev-chip{border:1px solid var(--pc-line);background:var(--pc-surface-2);color:var(--pc-ink-2);border-radius:999px;padding:5px 12px;font-size:12px;font-weight:600;cursor:pointer}
.pc-ev-chip.active{background:var(--pc-teal);border-color:var(--pc-teal);color:var(--pc-on-strong)}
.pc-ev-row{display:grid;grid-template-columns:1.4fr 1.3fr .9fr 1.2fr;gap:10px;padding:8px 4px;border-bottom:1px solid var(--pc-line-soft);font-size:13.5px;color:var(--pc-ink);align-items:baseline}
.pc-ev-head{font-size:10.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--pc-muted);font-weight:700}
.pc-ev-by{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--pc-ink-2)}
.pc-ev-at{font-family:var(--pc-mono);font-size:12px;color:var(--pc-ink-2)}
@media(max-width:620px){.pc-ev-row{grid-template-columns:1fr 1fr}.pc-ev-head{display:none}}

/* ---- Chart profile (EHR flow rebuild, Slice 2): Session tracker, Contacts, Linked clients on the Overview ---- */
.pc-prof-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 4px;border-bottom:1px solid var(--pc-line-soft);cursor:pointer}
.pc-prof-row:last-child{border-bottom:0}
.pc-prof-row:hover{background:var(--pc-surface-2)}
.pc-prof-main{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.pc-prof-main strong{color:var(--pc-ink);font-size:14px}
.pc-prof-main small{color:var(--pc-muted);font-size:12.5px}
.pc-prof-bar{margin-top:5px;max-width:320px}
.pc-prof-count{display:flex;flex-direction:column;align-items:flex-end;font-family:var(--pc-mono);color:var(--pc-ink)}
.pc-prof-count b{font-size:16px}
.pc-prof-count small{font-size:11px;color:var(--pc-muted)}
.pc-prof-count.warn b{color:var(--pc-amber)}
.pc-prof-count.bad b{color:var(--pc-red)}
.pc-prof-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.pc-prof-form{margin-top:4px}
.pc-prof-emerg{align-self:end;margin-bottom:8px}

/* ---- Diagnosis + Comments tabs (EHR flow rebuild, Slice 5) ---- */
.pc-dx-code{font-family:var(--pc-mono);font-size:13px;padding:2px 7px;border-radius:6px;background:var(--pc-surface-3);color:var(--pc-ink);margin-right:4px}
.pc-comment{cursor:pointer;align-items:flex-start}
.pc-comment-text{white-space:pre-wrap;color:var(--pc-ink);font-size:14px;line-height:1.45}
.pc-row-link{cursor:pointer}.pc-row-link:hover td{background:var(--pc-surface-2)}

/* ---- Invoice & superbill settings (EHR flow rebuild, Slice 8): business header on printed invoices / superbills ---- */
.pc-print-only{display:none}
.pc-biz{display:flex;flex-direction:column;gap:2px;margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid var(--pc-line-soft);color:var(--pc-ink-2);font-size:13px}
.pc-biz strong{font-size:16px;color:var(--pc-ink)}
.pc-sb-ids{font-size:12.5px;color:var(--pc-ink-2);margin:0 0 10px;font-family:var(--pc-mono)}
.pc-inv-bottom{margin:10px 0 0;font-size:12.5px;color:var(--pc-muted);white-space:pre-wrap}
.pc-setgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.pc-prov-line{display:grid;grid-template-columns:2fr 1fr 1.2fr auto;gap:8px;margin-bottom:6px}
@media(max-width:620px){.pc-prov-line{grid-template-columns:1fr 1fr}}
.pc-inv-search{display:grid;grid-template-columns:1fr 1fr 1.4fr auto auto;gap:8px}
@media(max-width:720px){.pc-inv-search{grid-template-columns:1fr 1fr}}
#invoice-settings label.setting-card,#invoice-settings div.setting-card{display:flex;flex-direction:column;gap:6px;margin:0}
#invoice-settings label.setting-card.mt,#invoice-settings div.setting-card.mt{margin-top:12px}
#invoice-settings h3{font-size:13px;margin:4px 0 10px}
#invoice-settings input,#invoice-settings select,#invoice-settings textarea,.pc-inv-search input{width:100%;min-height:40px;border:1px solid var(--pc-line);border-radius:11px;padding:8px 12px;background:var(--pc-surface);color:var(--pc-ink);font-size:13px}
#invoice-settings textarea{min-height:64px;resize:vertical}
.pc-ev-search{grid-template-columns:1fr 1.3fr 1fr 1fr auto auto}
@media(max-width:720px){.pc-ev-search{grid-template-columns:1fr 1fr}}

/* ---- Note snippets (EHR flow rebuild, Slice 11) ---- */
.pc-snip-bar{display:flex;align-items:center;gap:10px;margin:4px 0 10px;flex-wrap:wrap}
.pc-snip-bar select{max-width:340px}
.pc-snip-text{white-space:pre-wrap;color:var(--pc-ink-2);font-size:12.5px;max-width:640px}

/* ---- Dashboard panels (EHR flow rebuild, Slice 12) ---- */
.pc-dash-panels{display:grid;grid-template-columns:repeat(auto-fit,minmax(420px,1fr));gap:14px;margin-bottom:14px;align-items:start}
.pc-dash-table td:first-child strong{white-space:nowrap}
.pc-dash-panels .card{margin-bottom:0}
.pc-dash-table{min-width:0}
@media(max-width:620px){.pc-dash-panels{grid-template-columns:1fr}}

/* ---- Client directory (EHR flow rebuild, Slice 13) ---- */
.pc-client-search{display:grid;grid-template-columns:1fr auto auto;gap:8px;max-width:640px}
.pc-client-search input{min-height:40px;border:1px solid var(--pc-line);border-radius:11px;padding:8px 12px;background:var(--pc-surface);color:var(--pc-ink);font-size:13px}
.pc-pager{display:flex;align-items:center;gap:12px;justify-content:flex-end}
.data-table td small{display:block;color:var(--pc-muted)}
.pc-bi-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px 18px;margin-top:6px}
.pc-bi span{display:block;font-size:10px;letter-spacing:.07em;text-transform:uppercase;color:var(--pc-muted);font-weight:800}
.pc-bi strong{font-size:13px;font-weight:650;overflow-wrap:anywhere}
.pc-bi-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.pc-bi-actions{display:flex;align-items:center;gap:10px;margin-top:12px;flex-wrap:wrap}

/* ---- Chart files (EHR flow rebuild, Slice 14) ---- */
.pc-file-up{display:grid;grid-template-columns:1.6fr 1fr auto auto;gap:8px;align-items:center;margin-top:6px}
.pc-file-up input[type=file]{font-size:12.5px;min-width:0}
.pc-file-share{display:flex;align-items:center;gap:6px;font-size:12.5px;white-space:nowrap}
.pc-file-list{display:flex;flex-direction:column;margin-top:10px}
.pc-file-row{display:grid;grid-template-columns:42px 1fr auto;gap:12px;align-items:center;padding:10px 0;border-top:1px solid var(--pc-line-soft)}
.pc-file-icon{width:42px;height:42px;border-radius:11px;background:var(--pc-soft-teal);color:var(--pc-teal-deep);display:grid;place-items:center;font-size:10px;font-weight:900}
.pc-file-main strong{display:block;font-size:13px;overflow-wrap:anywhere}.pc-file-main small{color:var(--pc-muted);font-size:11.5px}
.pc-file-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:720px){.pc-file-up{grid-template-columns:1fr 1fr}.pc-file-row{grid-template-columns:42px 1fr}.pc-file-actions{grid-column:1/-1;justify-content:flex-start}}

/* ---- Cards on file (EHR flow rebuild, Slice 15) ---- */
.pc-cards{border:1px solid var(--pc-line-soft);border-radius:14px;padding:12px 14px;margin:10px 0;display:flex;flex-direction:column;gap:8px}
.pc-cards-off small{color:var(--pc-muted)}
.pc-cards-head{display:flex;align-items:center;gap:10px}.pc-cards-head .button{margin-left:auto}
.pc-card-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.pc-card-row{display:grid;grid-template-columns:70px 1fr auto auto;gap:10px;align-items:center;font-size:13px}
.pc-card-brand{text-transform:uppercase;font-size:10px;font-weight:900;letter-spacing:.08em;color:var(--pc-teal-deep);background:var(--pc-soft-teal);border-radius:8px;padding:4px 6px;text-align:center}
.pc-card-el{border:1px solid var(--pc-line);border-radius:11px;padding:12px;background:var(--pc-surface)}
.pc-card-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.pc-card-actions select{max-width:260px}
.pc-row-link-btn{border:0;background:none;color:var(--pc-teal-deep);font:inherit;font-weight:700;cursor:pointer;padding:0}

/* ---- Portal messages on the chart (EHR flow rebuild, Slice 16) ---- */
.pc-portal-acc{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;padding:10px 12px;border:1px solid var(--pc-line-soft);border-radius:12px;margin:6px 0 12px}
.pc-portal-acc small{color:var(--pc-muted);flex:1;min-width:180px}
.pc-pmsg-thread{display:flex;flex-direction:column;gap:8px;max-height:460px;overflow:auto;padding:2px}
.pc-pmsg{max-width:82%;padding:10px 12px;border-radius:14px;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.pc-pmsg small{display:block;margin-top:4px;color:var(--pc-muted);font-size:11px}
.pc-pmsg.pt{align-self:flex-start;background:var(--pc-surface-2);border:1px solid var(--pc-line-soft)}
.pc-pmsg.st{align-self:flex-end;background:var(--pc-soft-teal)}
.pc-pmsg.urgent{border:2px solid var(--pc-red)}
.pc-pmsg-compose{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end;margin-top:12px}
.pc-pmsg-compose .pc-pmsg-ch{grid-column:1/-1;display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600}
.pc-pmsg-compose .pc-pmsg-ch select{width:auto;min-width:200px;max-width:100%}

/* Tab rows wrap instead of widening the page (Intakes has 8 tabs since Slice 18). */
.section-tabs{max-width:100%;flex-wrap:wrap}
.pc-pkg-row{grid-template-columns:1.4fr 1.4fr auto auto}
@media(max-width:620px){.pc-pkg-row{grid-template-columns:1fr 1fr}}

/* ---- Print schedule (EHR flow rebuild, Slice 23) ---- */
.pc-cal-print h3{margin:0 0 8px;font-size:18px}.pc-cal-print h4{margin:16px 0 6px;font-size:14px}
.pc-print-table{width:100%;border-collapse:collapse;font-size:12px}.pc-print-table th,.pc-print-table td{border-bottom:1px solid #ccc;padding:4px 6px;text-align:left}
.pc-print-foot{margin-top:14px;font-size:11px;color:#555}
@media print{body.pc-print-sb .pc-cal-print{color:#000;background:#fff}}
#portal-settings .pc-toggle{flex-direction:row!important;align-items:center;gap:10px}
#portal-settings .pc-toggle input{width:20px;min-height:20px}
#portal-settings input[data-portalset]{width:100%;min-height:40px;border:1px solid var(--pc-line);border-radius:11px;padding:8px 12px;background:var(--pc-surface);color:var(--pc-ink);font-size:13px}
#portal-settings label.setting-card{display:flex;flex-direction:column;gap:6px}

/* ---- Form builder (EHR flow rebuild, Slice 25) ---- */
.pc-fb-q{display:grid;grid-template-columns:150px 1fr auto auto;gap:8px;align-items:center;padding:10px;border:1px solid var(--pc-line-soft);border-radius:12px;margin-bottom:8px}
.pc-fb-q select,.pc-fb-q input[data-fb="label"],.pc-fb-q textarea{min-height:38px;border:1px solid var(--pc-line);border-radius:10px;padding:6px 10px;background:var(--pc-surface);color:var(--pc-ink);font-size:13px}
.pc-fb-q textarea,.pc-fb-scale{grid-column:1/-1}
.pc-fb-scale input{width:70px;min-height:34px;border:1px solid var(--pc-line);border-radius:10px;padding:4px 8px}
.pc-fb-req{display:flex;align-items:center;gap:6px;font-size:12.5px;white-space:nowrap}
@media(max-width:620px){.pc-fb-q{grid-template-columns:1fr 1fr}}
.pc-pform-list{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.pc-pform{border:1px solid var(--pc-line-soft);border-radius:12px;padding:10px 12px}.pc-pform.urgent{border:2px solid var(--pc-red)}
.pc-pform-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}.pc-pform-head span{font-size:12.5px;color:var(--pc-ink-2)}.pc-pform-act{margin-left:auto;display:flex;gap:6px}
.pc-pform-answers{margin:10px 0 0;display:grid;gap:6px}.pc-pform-answers div{display:grid;grid-template-columns:1fr auto;gap:12px;font-size:12.5px;border-top:1px solid var(--pc-line-soft);padding-top:6px}
.pc-pform-answers dt{color:var(--pc-ink-2)}.pc-pform-answers dd{margin:0;font-weight:700;text-align:right}.pc-pform-answers .flag dd,.pc-pform-answers .flag dt{color:var(--pc-red);font-weight:800}
.pc-fb-q{grid-template-columns:128px minmax(0,1fr) auto auto}
.pc-fb-q select,.pc-fb-q input[data-fb="label"]{width:100%;min-width:0}
#fb-form label.setting-card input,#fb-form label.setting-card select{width:100%}
.pc-inv-coupon{max-width:260px}.pc-inv-disc{color:var(--pc-green)}

/* ---- Print note + chart summary (EHR flow rebuild, Slice 28) ---- */
.pc-sum-bar{display:flex;justify-content:flex-end;margin-bottom:8px}
.pc-print-pt{font-weight:700;margin:6px 0 10px}.pc-print-sign{margin-top:14px;font-style:italic}
.pc-sum h3{margin:8px 0}.pc-sum h4{margin:14px 0 6px;font-size:14px;border-bottom:1px solid #ccc;padding-bottom:3px}.pc-sum h5{margin:8px 0 2px;font-size:12px;text-transform:uppercase;letter-spacing:.05em}
.pc-sum p,.pc-sum li{font-size:12.5px;line-height:1.45;margin:2px 0}.pc-sum-note{break-inside:avoid-page;margin-bottom:12px}
#pc-summary-print{display:none}
@media print{body.pc-print-sb .pc-noprint{display:none!important}body.pc-print-summary>*:not(#pc-summary-print){display:none!important}body.pc-print-summary #pc-summary-print{display:block!important;color:#000;background:#fff;padding:0}}
@media(max-width:720px){[data-cal-print]{display:none}}
/* Slice 30: notes filter bar (PracticeQ #/notes filters) */
[data-note-search].pc-inv-search{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
[data-note-search] select,[data-note-search] input{width:100%;min-height:40px;border:1px solid var(--pc-line);border-radius:11px;padding:8px 12px;background:var(--pc-surface);color:var(--pc-ink);font-size:13px}
.pc-inline-date{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--pc-muted)}
/* Slice 31: appointments List (PracticeQ Bookings > List) */
.pc-appt-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin:10px 0}
.pc-appt-filters select,.pc-appt-filters input{width:100%;min-height:40px;border:1px solid var(--pc-line);border-radius:11px;padding:8px 12px;background:var(--pc-surface);color:var(--pc-ink);font-size:13px}
.pc-cal-table{padding:4px 16px 12px}
.pc-cal-table .table-wrap{margin:0 -16px}
.pc-msgtpl{max-width:320px;margin-bottom:8px}
/* Slice 34: Export records */
.pc-sum-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start}
.pc-export summary{list-style:none;cursor:pointer}.pc-export summary::-webkit-details-marker{display:none}
.pc-export-body{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px;padding:12px;border:1px solid var(--pc-line);border-radius:12px;background:var(--pc-surface);max-width:560px}
.pc-export-body label{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--pc-muted)}
.pc-export-body input{min-height:36px;border:1px solid var(--pc-line);border-radius:10px;padding:6px 10px;background:var(--pc-surface);color:var(--pc-ink)}
.pc-export-body small{flex-basis:100%}
@media print{.pc-export{display:none!important}}
/* Slice 37: calendar Month view + team availability */
.pc-month{padding:0 12px 12px}
.pc-month-head,.pc-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.pc-month-head span{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--pc-muted);padding:6px 4px}
.pc-month-cell{min-height:96px;display:flex;flex-direction:column;gap:2px;align-items:stretch;text-align:left;padding:6px;border:1px solid var(--pc-line);border-radius:10px;background:var(--pc-surface);color:var(--pc-ink);font:inherit;cursor:pointer;overflow:hidden}
.pc-month-cell:hover{border-color:var(--pc-accent,#1f8aa6)}
.pc-month-cell.out{opacity:.5}.pc-month-cell.today{box-shadow:inset 0 0 0 2px var(--pc-accent,#1f8aa6)}
.pc-month-cell b{font-size:13px}.pc-month-cell small{font-size:11px;color:var(--pc-muted)}
.pc-month-appt{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:1px 4px;border-radius:5px;background:var(--pc-soft,rgba(31,138,166,.08))}
.pc-month-appt.off{text-decoration:line-through;opacity:.6}.pc-month-more{font-size:11px;color:var(--pc-muted)}
@media(max-width:720px){.pc-month-cell{min-height:64px;padding:4px}.pc-month-appt{display:none}}
.pc-gap-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.pc-cal-nav{flex-wrap:wrap}
[data-inv-search].pc-inv-search{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.pc-dash-quick{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.pc-chip-search{min-height:34px;border:1px solid var(--pc-line);border-radius:999px;padding:4px 12px;background:var(--pc-surface);color:var(--pc-ink);font-size:12px;max-width:180px}
/* Slice 42: client profile settings */
.pc-cpf-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) auto;gap:8px;margin-top:8px}
.pc-cpf-row input,.pc-cpf-row select{width:100%;min-height:38px;border:1px solid var(--pc-line);border-radius:10px;padding:6px 10px;background:var(--pc-surface);color:var(--pc-ink)}
@media(max-width:720px){.pc-cpf-row{grid-template-columns:1fr 1fr}}
/* Slice 42: pinned notes, tags, custom fields on the chart */
.pc-pins{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0}
.pc-pin{flex:1 1 260px;padding:8px 12px;border-radius:12px;font-size:13px;cursor:pointer;border:1px solid transparent}
.pc-pin.info{background:rgba(31,138,166,.10);border-color:rgba(31,138,166,.25)}
.pc-pin.warn{background:rgba(214,158,46,.14);border-color:rgba(214,158,46,.35)}
.pc-pin.alert{background:rgba(204,55,55,.12);border-color:rgba(204,55,55,.35)}
.pc-pin-add{flex:0 0 auto}
.pc-tag-list{display:flex;flex-wrap:wrap;gap:6px}.pc-tag{cursor:pointer}
.pc-cf-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.pc-cf-grid .pc-cf{grid-column:1/-1}.pc-cf-grid .pc-cf.half{grid-column:auto}
@media(max-width:720px){.pc-cf-grid .pc-cf.half{grid-column:1/-1}}
/* Slice 43: dashboard Quick notes */
.pc-qnotes{width:100%;min-height:110px;border:1px solid var(--pc-line);border-radius:12px;padding:10px 12px;background:var(--pc-surface);color:var(--pc-ink);font:inherit;resize:vertical}
.pc-qnotes-bar{display:flex;justify-content:space-between;align-items:center;margin-top:8px;gap:8px}

/* ---- PracticeQ layout (Slice 44, owner 2026-10-16: "same layout, same location of stuff"). On wide screens the menu sits
   in the top bar like PracticeQ (Tasks, Engage, My Forms, Bookings, Lists, Reports, More), pages are full width, and
   Lists, Reports and More open as dropdowns. Phones and tablets keep the same menu in the drawer. ---- */
.nav-divider { padding: 10px 12px 4px; font: 700 9.5px var(--pc-display); letter-spacing: .14em; text-transform: uppercase; color: var(--pc-muted); border-top: 1px solid var(--pc-line); margin-top: 6px; }
.pq-icon { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--pc-line); border-radius: 10px; background: var(--pc-surface); font-size: 16px; cursor: pointer; }
.pq-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--pc-red); color: var(--pc-on-strong); font: 600 10px var(--pc-mono); display: grid; place-items: center; }
.pq-count.zero { display: none; }
@media (min-width: 1180px) {
  html body.pq-topnav .sidebar, html body.pq-topnav .sidebar-backdrop { display: none; }
  html body.pq-topnav .main { margin-left: 0; }
  html body.pq-topnav .topbar .cmd-button { flex: 0 0 auto; min-width: 0; width: 38px; padding: 0; justify-content: center; margin: 0 0 0 8px; }
  html body.pq-topnav .topbar .cmd-button .cmd-label, html body.pq-topnav .topbar .cmd-button kbd { display: none; }
  html body.pq-topnav #refresh-button span, html body.pq-topnav .user-copy { display: none; }
  html #nav.pq-top { display: flex; flex-direction: row; align-items: center; gap: 2px; margin-left: auto; height: 100%; }
  html #nav.pq-top > .nav-item, html #nav.pq-top > .nav-section > .nav-section-head {
    display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; box-shadow: none;
    font: 700 12px var(--pc-display); letter-spacing: .06em; text-transform: uppercase; color: var(--pc-ink-2); white-space: nowrap; cursor: pointer; }
  html #nav.pq-top > .nav-item .nav-icon { display: none; }
  html #nav.pq-top > .nav-item[data-view="actions"] .nav-icon { display: inline; color: var(--pc-accent); }
  html #nav.pq-top > .nav-item:hover, html #nav.pq-top > .nav-section > .nav-section-head:hover { background: var(--pc-surface-2); color: var(--pc-ink); }
  html #nav.pq-top > .nav-item.active, html #nav.pq-top > .nav-section.has-active > .nav-section-head { color: var(--pc-accent); background: var(--pc-soft-teal); box-shadow: inset 0 -2px 0 var(--pc-accent); }
  html #nav.pq-top > .pq-home { display: none; }
  html #nav.pq-top .nav-section { position: relative; margin: 0; }
  html #nav.pq-top .nav-section-items { position: absolute; top: calc(100% + 8px); right: 0; min-width: 250px; max-height: 72vh; overflow-y: auto; display: grid; gap: 2px; padding: 6px;
    background: var(--pc-surface); border: 1px solid var(--pc-line); border-radius: 12px; box-shadow: 0 18px 50px rgba(3, 25, 34, .18); z-index: 90; }
  html #nav.pq-top .nav-section.collapsed .nav-section-items { display: none; }
  html #nav.pq-top .nav-section-items .nav-item { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
    font: 600 13px var(--pc-body); text-transform: none; letter-spacing: 0; color: var(--pc-ink-2); background: transparent; text-align: left; }
  html #nav.pq-top .nav-section-items .nav-item:hover { background: var(--pc-surface-2); color: var(--pc-ink); }
  html #nav.pq-top .nav-section-items .nav-item.active { background: var(--pc-soft-teal); color: var(--pc-accent); box-shadow: none; }
  html #nav.pq-top .count-badge { margin-left: 4px; }
}
@media (min-width: 1180px) {
  html #nav.pq-top .nav-section-head .nav-caret, html #nav.pq-top .nav-section.collapsed .nav-section-head .nav-caret { transform: none; font-size: 9px; opacity: .7; }
}
@media (min-width: 1180px) and (max-width: 1439px) {
  html body.pq-topnav #luna-top span:last-child { display: none; }   /* Luna becomes its ✦ icon */
  html #nav.pq-top > .nav-item, html #nav.pq-top > .nav-section > .nav-section-head { padding: 0 8px; letter-spacing: .03em; font-size: 11.5px; }
  html body.pq-topnav .topbar { gap: 10px; padding: 0 14px; }
  html body.pq-topnav .brand-copy { display: none; }
}
@media (max-width: 760px) { html #luna-top span:first-child { display: inline !important; } }

/* Lucent app page and chart tab (2026-10-19) */
.pc-la-needs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pc-la-need { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line, #d9e0e6); border-radius: 10px; }
.pc-la-need > span { font-weight: 700; width: 1.2em; text-align: center; }
.pc-la-need > div { flex: 1; min-width: 0; }
.pc-la-need small, .pc-la-card small, .pc-la-switch small { display: block; opacity: .75; }
.pc-la-need.done { opacity: .85; }   /* QA 2026-10-25: .7 faded the small text below 4.5:1 */
.pc-la-need.done small { opacity: 1; }
.pc-la-practice, .pc-la-card { border: 1px solid var(--line, #d9e0e6); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; }
.pc-la-practice summary { cursor: pointer; }
.pc-la-practice summary small { display: block; opacity: .7; margin-top: 2px; }
.pc-la-switch { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line, #d9e0e6); }
.pc-la-assign { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.pc-la-assign select, .pc-la-assign input { flex: 1 1 220px; min-width: 0; }
.pc-la-link { width: 100%; }
.pc-la-alerts li { margin-bottom: 6px; }
.pc-status.s-bad { background: var(--pc-soft-red); color: var(--pc-red); }
/* Lucent app free library review (2026-10-25): batch select, English and Spanish side by side */
.pc-lr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0 12px; margin-bottom: 10px; border-bottom: 1px solid var(--line, #d9e0e6); }
.pc-lr-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.pc-lr-note { flex: 1 1 240px; min-width: 0; }
.pc-lr-row { display: flex; align-items: flex-start; gap: 10px; }
.pc-lr-row > input[type=checkbox] { margin-top: 13px; flex: none; width: 16px; height: 16px; }
.pc-lr-item { flex: 1; min-width: 0; }
.pc-lr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.pc-lr-cols section { min-width: 0; overflow-wrap: anywhere; }
.pc-lr-cols h5 { margin: 0 0 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.pc-lr-item summary small.pc-lr-why { color: var(--pc-red); opacity: 1; }
.pc-lr-meta { font-size: 12px; opacity: .85; margin: 8px 0 0; overflow-wrap: anywhere; }
@media (max-width: 700px) { .pc-lr-cols { grid-template-columns: 1fr; } }
/* KPI cards: a stretched open button under the content, the "?" stays clickable above it (axe nested-interactive) */
.kpi-card.clickable { position: relative; cursor: pointer; }
.kpi-card .kpi-open { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.kpi-card .kpi-open:focus-visible { outline: 3px solid var(--pc-accent, #5B2A86); outline-offset: 2px; }
.kpi-card .kpi-why { position: relative; z-index: 2; }
.kpi-card .kpi-top, .kpi-card .kpi-value, .kpi-card .kpi-foot { pointer-events: none; }
.kpi-card .kpi-why { pointer-events: auto; }

/* Alfred QA session (owner RJ 2026-11-24): the persistent top bar notice while the Spark's QA bot is signed in. */
html .qa-banner { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 6px 12px; border-radius: 999px; background: var(--pc-soft-amber); color: var(--pc-amber); border: 1px solid var(--pc-line); font-size: 11px; font-weight: 800; white-space: nowrap; }
@media (max-width: 760px) { html .qa-banner { font-size: 9px; padding: 4px 8px; } }

/* PracticeQ layout layer (owner 2026-10-16, for Andrea: "mimic to the T 100% matching. The colors we can make it whatever.
   BUT the layout must 100% match"). Geometry comes from Andrea's 29 PracticeQ photos at 1920x1032 and the layout scan
   (worker/layout_scan.py): 54px navy bar, 54px white sub-bar with the breadcrumb, Open Sans 15px on a light grey page,
   34px bordered buttons, white panels with 18px bold titles. Colors are Practice Current's own (navy, teal). */
@font-face { font-family: "Open Sans"; font-weight: 300 800; font-stretch: 75% 100%; font-style: normal; font-display: swap; src: url("/config.js?asset=font-open-sans") format("woff2"); }

:root {
  --pq-bar: #0B2236; --pq-bar-ink: #FFFFFF; --pq-drop: #12324A; --pq-stripe: #0A8EA2; --pq-bubble: #E8590C;
  --pq-page: #F7F7F7; --pq-panel: #FFFFFF; --pq-panel-2: #F5F5F5; --pq-line: #DDDDDD; --pq-line-2: #E7E7E7;
  --pq-ink: #333333; --pq-ink-2: #444444; --pq-muted: #777777; --pq-link: #1F6FB2; --pq-link-2: #08707F;
  --pq-btn: #FFFFFF; --pq-btn-line: #CCCCCC; --pq-btn-on: #E6E6E6; --pq-btn-on-line: #ADADAD;
  --pq-primary: #08707F; --pq-dark-btn: #0B2236; --pq-green: #3C9B3C; --pq-orange: #F07B24; --pq-red: #D9534F;
  --pq-fab: #2BA4EF; --pq-today: #FCF8E3; --pq-user: #F4E64B; --pq-user-ink: #2B2B2B; --pq-unread: #F0A530;
  --pq-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
:root[data-theme="dark"] {
  --pq-bar: #07121D; --pq-drop: #0E2436; --pq-page: #0E1620; --pq-panel: #152230; --pq-panel-2: #1A2938; --pq-line: #2A3B4C; --pq-line-2: #223243;
  --pq-ink: #E4ECF3; --pq-ink-2: #CAD6E1; --pq-muted: #93A6B7; --pq-link: #6CB4F0; --pq-link-2: #4FC3D3;
  --pq-btn: #1A2938; --pq-btn-line: #34495D; --pq-btn-on: #24384B; --pq-btn-on-line: #4A6178; --pq-today: #2B2A1C; --pq-user: #C9BC2C;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --pq-bar: #07121D; --pq-drop: #0E2436; --pq-page: #0E1620; --pq-panel: #152230; --pq-panel-2: #1A2938; --pq-line: #2A3B4C; --pq-line-2: #223243;
    --pq-ink: #E4ECF3; --pq-ink-2: #CAD6E1; --pq-muted: #93A6B7; --pq-link: #6CB4F0; --pq-link-2: #4FC3D3;
    --pq-btn: #1A2938; --pq-btn-line: #34495D; --pq-btn-on: #24384B; --pq-btn-on-line: #4A6178; --pq-today: #2B2A1C; --pq-user: #C9BC2C;
  }
}

/* ---- Page ------------------------------------------------------------------------------------------------------ */
html body.pq { font-family: var(--pq-font); font-size: 15px; color: var(--pq-ink); background: var(--pq-page); }
html body.pq .app-shell { background: var(--pq-page); }
html body.pq .ribbon, html body.pq .page-header, html body.pq #setup-banner { display: none !important; }
html body.pq .main { padding: 0 0 80px; background: var(--pq-page); }
html body.pq .content { padding: 20px 15px 0; max-width: none; }
html body.pq .content.pq-flush { padding: 0; }
html body.pq a { color: var(--pq-link); }

/* ---- Top bar (54px) -------------------------------------------------------------------------------------------- */
html body.pq .topbar { position: sticky; top: 0; z-index: 60; height: 54px; min-height: 54px; padding: 0 0 0 15px; gap: 0; background: var(--pq-bar);
  border: 0; box-shadow: none; backdrop-filter: none; color: var(--pq-bar-ink); }
html body.pq .topbar .brand { height: 54px; padding: 0; gap: 8px; color: var(--pq-bar-ink); background: transparent; border: 0; }
html body.pq .topbar .brand-mark { width: 30px; height: 30px; border-radius: 6px; }
html body.pq .topbar .brand-copy { display: flex; }
html body.pq .topbar .brand-copy strong { font-family: var(--pq-font); font-size: 25px; font-weight: 700; letter-spacing: -.02em; text-transform: none; color: var(--pq-bar-ink); line-height: 1; }
html body.pq .topbar .brand-copy strong .pq-brand-c { color: var(--pq-stripe); }
html body.pq .topbar .brand-copy small { display: none; }
html body.pq .topbar .cmd-button { display: none; }
html body.pq .pq-icons { display: flex; align-items: stretch; height: 54px; margin-left: auto; }
html body.pq .pq-ico { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 54px; min-width: 43px; padding: 0 14px; border: 0; border-radius: 0;
  background: transparent; color: var(--pq-bar-ink); cursor: pointer; }
html body.pq .pq-ico svg { width: 16px; height: 16px; }
html body.pq .pq-ico:hover, html body.pq .pq-ico[aria-expanded="true"] { background: rgba(255, 255, 255, .08); }
html body.pq .pq-ico:focus-visible { outline: 2px solid var(--pq-stripe); outline-offset: -2px; }
html body.pq .pq-bubble { position: absolute; top: 12px; left: 22px; min-width: 18px; height: 17px; padding: 1px 5px; border-radius: 9px; background: var(--pq-bubble); color: #FFFFFF;
  font-size: 10px; font-weight: 400; line-height: 15px; text-align: center; }
html body.pq .pq-bubble.zero, html body.pq .pq-icons .count-badge.zero { display: none; }
html body.pq #pq-msg-button { font-size: 0; }
html body.pq #pq-msg-button .pq-count { position: absolute; top: 12px; left: 22px; min-width: 18px; height: 17px; padding: 1px 5px; border-radius: 9px; background: var(--pq-bubble);
  color: #FFFFFF; font-size: 10px; line-height: 15px; }
html body.pq #pq-msg-button .pq-count.zero { display: none; }

/* PracticeQ's text menu: ENGAGE ↗ · MY FORMS · BOOKINGS · LISTS ▾ · REPORTS ▾ · MORE ▾ */
html body.pq #nav.pq-top { margin-left: 0; gap: 0; height: 54px; align-items: stretch; }
html body.pq #nav.pq-top > .nav-item, html body.pq #nav.pq-top > .nav-section > .nav-section-head {
  height: 54px; padding: 0 15px; border: 0; border-radius: 0; background: transparent; color: var(--pq-bar-ink); box-shadow: none;
  font-family: var(--pq-font); font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: uppercase; }
html body.pq #nav.pq-top > .nav-item:hover, html body.pq #nav.pq-top > .nav-section > .nav-section-head:hover { background: rgba(255, 255, 255, .08); color: var(--pq-bar-ink); }
html body.pq #nav.pq-top > .nav-item.active, html body.pq #nav.pq-top > .nav-section.has-active > .nav-section-head { background: transparent; color: var(--pq-bar-ink); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); border-radius: 4px; }
html body.pq #nav.pq-top > .nav-item[data-view="actions"], html body.pq #nav.pq-top > .pq-home { display: none; }
html body.pq #nav.pq-top .nav-section { position: relative; display: flex; }
html body.pq #nav.pq-top .nav-section-head .nav-caret { align-self: center; display: inline-block; margin-left: 5px; font-size: 0; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid currentColor; opacity: 1; }
html body.pq #nav.pq-top [data-section="engage"] .nav-section-head .nav-caret { width: 13px; height: 13px; border: 0; margin-left: 6px;
  background: center / 13px 13px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3h7v7'/%3E%3Cpath d='M21 3 10 14'/%3E%3Cpath d='M19 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h5'/%3E%3C/svg%3E"); }
html body.pq #nav.pq-top .nav-section-items { top: 54px; right: 0; min-width: 173px; max-height: 80vh; padding: 5px 0; gap: 0; border: 0; border-top: 4px solid var(--pq-stripe); border-radius: 0;
  background: var(--pq-drop); box-shadow: 0 6px 12px rgba(0, 0, 0, .18); backdrop-filter: none; }
html body.pq #nav.pq-top .nav-section-items .nav-item { display: flex; align-items: center; gap: 12px; min-height: 41px; padding: 10px 20px; border-radius: 0; background: transparent;
  color: #FFFFFF; font-family: var(--pq-font); font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; white-space: nowrap; }
html body.pq #nav.pq-top .nav-section-items .nav-item:hover, html body.pq #nav.pq-top .nav-section-items .nav-item.active { background: rgba(255, 255, 255, .1); color: #FFFFFF; box-shadow: none; }
html body.pq #nav.pq-top .nav-section-items .nav-item .nav-icon { display: inline-flex; width: 18px; justify-content: center; color: #FFFFFF; opacity: .95; font-size: 14px; }
html body.pq #nav.pq-top .nav-divider { margin: 6px 0 2px; padding: 6px 20px 2px; border-top: 1px solid rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .6); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
html body.pq #nav.pq-top [data-section="lists"] .nav-section-items { min-width: 173px; }
html body.pq #nav.pq-top [data-section="tools"] .nav-section-items { min-width: 218px; }
html body.pq .topbar-actions { display: none; }

/* ---- Sub-bar (54px): breadcrumb left, the page's buttons right -------------------------------------------------- */
html body.pq .pq-subbar { position: sticky; top: 54px; z-index: 40; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 5px 15px; background: var(--pq-panel);
  border-bottom: 1px solid var(--pq-line-2); }
html body.pq .pq-crumbs { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; font-size: 16.5px; font-weight: 700; color: var(--pq-ink); white-space: nowrap; }
html body.pq .pq-crumbs li + li::before { content: ">"; padding: 0 10px; color: #AAAAAA; font-weight: 400; font-size: 14px; }
html body.pq .pq-crumbs button { padding: 0; border: 0; background: none; color: var(--pq-link); font: inherit; cursor: pointer; }
html body.pq .pq-crumbs button:hover { text-decoration: underline; }
html body.pq .pq-sub-center { display: flex; gap: 4px; margin: 0 auto; }
html body.pq .pq-sub-right { display: flex; align-items: center; gap: 15px; margin-left: auto; }
html body.pq .pq-sub-center + .pq-sub-right { margin-left: 0; }

/* ---- Buttons (34px, PracticeQ's bordered default) --------------------------------------------------------------- */
html body.pq .pq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 6px 12px; border: 1px solid var(--pq-btn-line); border-radius: 3px;
  background: var(--pq-btn); color: var(--pq-ink); font: 400 14px/1.42 var(--pq-font); white-space: nowrap; cursor: pointer; text-decoration: none; }
html body.pq .pq-btn:hover { background: var(--pq-btn-on); }
html body.pq .pq-btn.on { background: var(--pq-btn-on); border-color: var(--pq-btn-on-line); box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); }
html body.pq .pq-btn svg { width: 14px; height: 14px; flex: none; }
html body.pq .pq-btn.sm { height: 30px; padding: 5px 10px; font-size: 12px; }
html body.pq .pq-btn.xs { height: 26px; padding: 1px 8px; font-size: 12px; }
html body.pq .pq-btn.outline { border-color: var(--pq-primary); color: var(--pq-primary); background: transparent; }
html body.pq .pq-btn.outline:hover { background: var(--pq-primary); color: #FFFFFF; }
html body.pq .pq-btn.dark { border-color: var(--pq-dark-btn); background: var(--pq-dark-btn); color: #FFFFFF; }
html body.pq .pq-btn.green { border-color: var(--pq-green); background: var(--pq-green); color: #FFFFFF; }
html body.pq .pq-btn.orange { border-color: var(--pq-orange); background: var(--pq-orange); color: #FFFFFF; }
html body.pq .pq-btn.red-line { border-color: var(--pq-red); color: var(--pq-red); background: transparent; }
html body.pq .pq-btn[disabled] { opacity: .55; cursor: default; }
html body.pq .pq-group { display: inline-flex; }
html body.pq .pq-group > .pq-btn { border-radius: 0; margin-left: -1px; }
html body.pq .pq-group > .pq-btn:first-child { border-radius: 3px 0 0 3px; margin-left: 0; }
html body.pq .pq-group > .pq-btn:last-child { border-radius: 0 3px 3px 0; }
html body.pq .pq-group > .pq-btn:only-child { border-radius: 3px; }

/* ---- Panels (dashboard widgets) --------------------------------------------------------------------------------- */
/* Wide tables scroll inside their box on a phone instead of pushing the page sideways (QA 2026-10-22: Video was off screen). */
html body.pq .pq-table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
html body.pq .pq-panel { background: var(--pq-panel); border: 1px solid var(--pq-line); border-radius: 4px; box-shadow: var(--pq-shadow); }
html body.pq .pq-panel-head { display: flex; align-items: center; gap: 8px; padding: 12px 10px 10px; }
html body.pq .pq-panel-head h4 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 18px; font-weight: 700; color: var(--pq-ink-2); }
html body.pq .pq-panel-head h4 svg { width: 16px; height: 16px; }
html body.pq .pq-panel-head .pq-btn { margin-left: auto; }
html body.pq .pq-panel-body { position: relative; max-height: 283px; overflow-y: auto; padding: 0 8px; }
html body.pq .pq-panel-foot { display: flex; justify-content: flex-end; align-items: center; gap: 4px; padding: 6px 12px 8px; font-size: 11px; color: var(--pq-muted); }
html body.pq .pq-panel-foot button { padding: 0; border: 0; background: none; color: var(--pq-muted); cursor: pointer; }
html body.pq .pq-panel-foot svg { width: 11px; height: 11px; }
html body.pq .pq-table { width: 100%; border-collapse: collapse; font-size: 15px; }
html body.pq .pq-table th { padding: 14px 8px 10px; border-bottom: 1px solid var(--pq-line); text-align: left; font-weight: 700; color: var(--pq-ink); white-space: nowrap; }
html body.pq .pq-table td { padding: 11px 8px; border-bottom: 1px solid var(--pq-line-2); vertical-align: middle; }
html body.pq .pq-table tbody tr:last-child td { border-bottom: 0; }
html body.pq .pq-table .pq-client { padding: 0; border: 0; background: none; color: var(--pq-link); font: inherit; cursor: pointer; text-align: left; }
html body.pq .pq-table .pq-client:hover { text-decoration: underline; }
html body.pq .pq-table .r { text-align: right; }
html body.pq .pq-tag { display: inline-block; padding: 2px 5px; border-radius: 3px; color: #FFFFFF; font-size: 10.5px; font-weight: 700; line-height: 1.2; }
html body.pq .pq-tag.unread { background: var(--pq-unread); }
html body.pq .pq-tag.ok { background: var(--pq-green); }
html body.pq .pq-tag.grey { background: #777777; }
html body.pq .pq-tag.warn { background: var(--pq-orange); }
html body.pq .pq-tag.bad { background: var(--pq-red); }
html body.pq .pq-when-day { color: var(--pq-orange); font-size: 19px; line-height: 1.1; }
html body.pq .pq-when-sub { color: var(--pq-muted); font-size: 12.5px; }
html body.pq .pq-split { display: inline-flex; }
html body.pq .pq-split > .pq-btn { border-radius: 3px 0 0 3px; }
html body.pq .pq-split > .pq-btn + .pq-btn { margin-left: -1px; padding: 0 6px; border-radius: 0 3px 3px 0; }
html body.pq .pq-empty { padding: 24px 8px; color: var(--pq-muted); text-align: center; font-size: 13px; }

/* ---- My Dashboard ----------------------------------------------------------------------------------------------- */
html body.pq .pq-dash-hello { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
html body.pq .pq-dash-hello h4 { margin: 0; font-size: 18px; font-weight: 500; color: var(--pq-ink); }
html body.pq .pq-dash-hello h4 button { padding: 0; border: 0; background: none; color: var(--pq-link); font: inherit; cursor: pointer; }
html body.pq .pq-dash-hello .pq-btn { margin-left: auto; }
html body.pq .pq-dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; max-width: 1516px; }
html body.pq .pq-dash-grid > .pq-panel.wide { grid-column: 1 / -1; }
html body.pq .pq-panel.editing { outline: 2px dashed var(--pq-btn-line); }
html body.pq .pq-panel .pq-remove { margin-left: auto; padding: 0 4px; border: 0; background: none; color: var(--pq-muted); font-size: 18px; cursor: pointer; }

/* Dashboard Library: a sheet from the right over a dimmed page */
html body.pq .pq-sheet-back { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .4); }
html body.pq .pq-sheet { position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(1152px, 100vw); overflow-y: auto; padding: 0 58px 40px; background: var(--pq-panel); box-shadow: -4px 0 18px rgba(0, 0, 0, .2); }
html body.pq .pq-sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; min-height: 54px; margin: 0 0 14px; background: var(--pq-panel); }
html body.pq .pq-sheet-head h3 { margin: 0; font-size: 26px; font-weight: 600; color: var(--pq-link); }
/* The small sheet (the blocked pop up fallback for the visit room, Andrea 11-23): a narrow panel, not the full width drawer. */
html body.pq .pq-sheet-small { width: min(420px, 100vw); }
html body.pq .pq-sheet-close { margin-left: auto; padding: 4px 8px; border: 0; background: none; color: var(--pq-ink); font-size: 34px; font-weight: 700; line-height: 1; cursor: pointer; }
html body.pq .pq-lib { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
html body.pq .pq-lib-card { display: flex; flex-direction: column; gap: 10px; padding: 4px 12px 14px; border: 1px solid var(--pq-line); border-radius: 3px; background: var(--pq-panel); }
html body.pq .pq-lib-thumb { display: grid; place-items: center; height: 138px; margin: 0 auto; width: 82%; border: 1px solid var(--pq-line-2); background: var(--pq-panel-2); color: var(--pq-muted); }
html body.pq .pq-lib-thumb svg { width: 46px; height: 46px; opacity: .55; }
html body.pq .pq-lib-card h5 { margin: 6px 0 0; font-size: 23px; font-weight: 400; color: var(--pq-ink); }
html body.pq .pq-lib-card .pq-btn { align-self: flex-start; height: 26px; padding: 2px 10px; font-size: 13px; }
html body.pq .pq-lib-card .pq-btn.added { border-color: #9DD0E8; background: #9DD0E8; color: #FFFFFF; cursor: default; }

/* ---- Admin Dashboard: one block per practitioner ----------------------------------------------------------------- */
html body.pq .pq-admin { display: grid; gap: 15px; padding-top: 22px; }
html body.pq .pq-admin-block { background: var(--pq-panel); border: 1px solid var(--pq-line-2); }
html body.pq .pq-admin-head { display: flex; align-items: center; gap: 8px; padding: 14px 15px 12px; border-bottom: 1px solid var(--pq-line-2); }
html body.pq .pq-admin-head h3 { margin: 0 auto 0 0; font-size: 30px; font-weight: 400; color: var(--pq-ink); }
html body.pq .pq-admin-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; padding: 15px; }
html body.pq .pq-admin-panel { border: 1px solid var(--pq-line); }
html body.pq .pq-admin-panel > h4 { display: flex; align-items: center; gap: 6px; margin: 0; padding: 8px 10px; background: #8A8A8A; color: #FFFFFF; font-size: 19px; font-weight: 400; }
html body.pq .pq-admin-panel > h4 svg { width: 16px; height: 16px; }
html body.pq .pq-admin-panel .pq-table { font-size: 15px; }
html body.pq .pq-admin-panel .pq-table td { padding: 11px 8px; }

/* ---- Bookings ---------------------------------------------------------------------------------------------------- */
html body.pq .pq-cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 30px; padding-right: 15px; }
html body.pq .pq-cal-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
html body.pq .pq-cal-bar h2 { margin: 0; min-width: 300px; font-size: 30px; font-weight: 400; color: var(--pq-ink); white-space: nowrap; }
html body.pq .pq-cal-bar .pq-mode { margin: 0 auto 0 70px; }
html body.pq .pq-cal-grid { position: relative; overflow: hidden; border: 1px solid var(--pq-line); background: var(--pq-panel); }
html body.pq .pq-cal-head { display: grid; grid-template-columns: 73px repeat(var(--pq-days, 7), minmax(0, 1fr)); border-bottom: 1px solid var(--pq-line); }
html body.pq .pq-cal-head > div { padding: 8px 4px; border-left: 1px solid var(--pq-line); text-align: center; font-size: 17px; color: var(--pq-link); }
html body.pq .pq-cal-head > div:first-child { border-left: 0; }
html body.pq .pq-cal-head > .today { background: var(--pq-today); }
html body.pq .pq-cal-body { position: relative; display: grid; grid-template-columns: 73px repeat(var(--pq-days, 7), minmax(0, 1fr)); max-height: calc(100vh - 230px); overflow-y: auto; }
html body.pq .pq-cal-axis > div { height: 53px; padding: 6px 8px 0 0; border-top: 1px solid var(--pq-line-2); text-align: right; font-size: 15.5px; color: var(--pq-ink); }
html body.pq .pq-cal-axis > div.half { border-top-style: dotted; }
html body.pq .pq-cal-day { position: relative; border-left: 1px solid var(--pq-line); }
html body.pq .pq-cal-day.today { background: var(--pq-today); }
html body.pq .pq-cal-day .pq-slot { height: 53px; border-top: 1px solid var(--pq-line-2); }
html body.pq .pq-cal-day .pq-slot.half { border-top-style: dotted; }
html body.pq .pq-cal-day .pq-slot.off { background: rgba(0, 0, 0, .045); }
html body.pq .pq-ev { position: absolute; left: 1px; right: 1px; overflow: hidden; padding: 2px 4px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 0; color: #FFFFFF; font-size: 13px; line-height: 1.25;
  text-align: left; cursor: pointer; }
html body.pq .pq-ev small { display: block; font-size: 12px; }
html body.pq .pq-ev.block { border-color: rgba(220, 120, 130, .45); color: var(--pq-ink); background: repeating-linear-gradient(135deg, rgba(240, 160, 170, .22) 0 6px, rgba(240, 160, 170, .08) 6px 12px); }
html body.pq .pq-ev.svc-0 { background: #B07DB6; } html body.pq .pq-ev.svc-1 { background: #93C86A; } html body.pq .pq-ev.svc-2 { background: #F04B4B; }
html body.pq .pq-ev.svc-3 { background: #E8A33B; } html body.pq .pq-ev.svc-4 { background: #5C7CC9; } html body.pq .pq-ev.svc-5 { background: #3FA7A0; }
html body.pq .pq-ev.cancel { opacity: .55; text-decoration: line-through; }
html body.pq .pq-now { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid #E05050; z-index: 3; }
html body.pq .pq-rail { display: grid; gap: 15px; align-content: start; }
html body.pq .pq-rail-box { width: 100%; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--pq-btn-line); border-radius: 3px; background: var(--pq-btn); color: var(--pq-ink); font-size: 15px; cursor: pointer; }
html body.pq .pq-rail-box svg { width: 14px; height: 14px; }
html body.pq .pq-rail-box .pq-chev { margin-left: auto; width: 14px; height: 14px; }
html body.pq .pq-rail-panel { padding: 10px; border: 1px solid var(--pq-line); border-top: 0; background: var(--pq-panel); font-size: 13px; }
html body.pq .pq-rail-search { position: relative; margin-top: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--pq-line); }
html body.pq .pq-rail-search input { width: 100%; height: 34px; padding: 6px 30px 6px 12px; border: 1px solid var(--pq-btn-line); border-radius: 3px; background: var(--pq-btn); color: var(--pq-ink); font: 14px var(--pq-font); }
html body.pq .pq-rail-search svg { position: absolute; right: 9px; top: 10px; width: 14px; height: 14px; color: var(--pq-muted); }
html body.pq .pq-mini { padding-top: 14px; text-align: center; }
html body.pq .pq-mini h5 { margin: 0 0 8px; font-size: 15.5px; font-weight: 400; color: var(--pq-muted); text-align: right; padding-right: 98px; }
html body.pq .pq-mini-nav { display: flex; align-items: center; justify-content: space-between; padding: 0 92px 4px 6px; font-size: 13px; }
html body.pq .pq-mini-nav button { padding: 2px 6px; border: 0; background: none; color: var(--pq-ink); cursor: pointer; }
html body.pq .pq-mini table { width: 200px; border-collapse: collapse; font-size: 12px; }
html body.pq .pq-mini th { padding: 3px 0; font-weight: 600; }
html body.pq .pq-mini td button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--pq-ink); font: 12px var(--pq-font); cursor: pointer; }
html body.pq .pq-mini td button.out { color: var(--pq-muted); }
html body.pq .pq-mini td button.today { background: #2BA4EF; color: #FFFFFF; }
html body.pq .pq-mini td button.sel { box-shadow: inset 0 0 0 2px #2BA4EF; }
html body.pq .pq-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid var(--pq-line); }
html body.pq .pq-month > div { min-height: 118px; padding: 4px; border-right: 1px solid var(--pq-line); border-bottom: 1px solid var(--pq-line); font-size: 12px; }
html body.pq .pq-month .num { display: block; text-align: right; color: var(--pq-ink); }
html body.pq .pq-month .out .num { color: var(--pq-muted); }
html body.pq .pq-month .pq-mev { display: block; overflow: hidden; margin-top: 2px; padding: 1px 3px; color: #FFFFFF; white-space: nowrap; text-overflow: ellipsis; font-size: 11.5px; border: 0; width: 100%; text-align: left; cursor: pointer; }

/* ---- Settings tabs (Booking Settings and friends) ---------------------------------------------------------------- */
html body.pq .pq-tabs-page { max-width: 1110px; margin: 18px auto 0; }
html body.pq .pq-tabs { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
html body.pq .pq-tabs button { display: inline-flex; align-items: center; gap: 7px; height: 56px; padding: 0 14px; border: 1px solid transparent; border-bottom: 0; border-radius: 0;
  background: var(--pq-panel-2); color: var(--pq-ink); font: 15px var(--pq-font); cursor: pointer; }
html body.pq .pq-tabs button svg { width: 14px; height: 14px; }
html body.pq .pq-tabs button.on { background: var(--pq-panel); border-color: var(--pq-line); color: var(--pq-muted); position: relative; top: 1px; }
html body.pq .pq-tab-body { padding: 20px 20px 34px; border: 1px solid var(--pq-line); background: var(--pq-panel); }
html body.pq .pq-tab-body h3 { margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--pq-line-2); font-size: 20px; font-weight: 700; color: var(--pq-ink); }
html body.pq .pq-tab-body h4 { margin: 26px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--pq-line-2); font-size: 20px; font-weight: 700; color: var(--pq-ink); }
html body.pq .pq-field { display: grid; gap: 6px; margin: 0 0 16px; font-size: 15px; color: var(--pq-ink); }
html body.pq .pq-field > span { font-weight: 600; }
html body.pq .pq-input, html body.pq .pq-field input, html body.pq .pq-field select, html body.pq .pq-field textarea { width: 100%; max-width: 500px; height: 34px; padding: 6px 12px;
  border: 1px solid var(--pq-btn-line); border-radius: 3px; background: var(--pq-btn); color: var(--pq-ink); font: 14px var(--pq-font); }
html body.pq .pq-field select.short { max-width: 240px; }
html body.pq .pq-field textarea { height: auto; max-width: none; }
html body.pq .pq-check { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 15px; color: var(--pq-ink); }
html body.pq .pq-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
html body.pq .pq-grid3 { display: grid; grid-template-columns: repeat(3, 274px); gap: 20px 20px; }
html body.pq .pq-prac { padding: 10px 14px; background: var(--pq-panel-2); font-size: 15px; }
html body.pq .pq-prac small { display: block; margin-top: 2px; color: var(--pq-link); font-size: 13.5px; }
html body.pq .pq-ok { display: flex; align-items: center; gap: 12px; font-size: 22px; color: var(--pq-ink); }
html body.pq .pq-ok svg { width: 34px; height: 34px; color: #7BC67B; }
html body.pq .pq-swatch { display: inline-block; width: 40px; height: 20px; border-radius: 2px; }
html body.pq .pq-code { width: 100%; min-height: 92px; padding: 10px 12px; border: 1px solid var(--pq-btn-line); background: var(--pq-panel-2); color: var(--pq-ink); font: 13px var(--pq-font); resize: vertical; }
html body.pq .pq-hint { color: var(--pq-muted); font-size: 14px; font-style: italic; }
html body.pq .pq-icon-btns { display: inline-flex; }
html body.pq .pq-icon-btns .pq-btn { border-radius: 0; margin-left: -1px; }
html body.pq .pq-icon-btns .pq-btn:first-child { border-radius: 3px 0 0 3px; margin-left: 0; }
html body.pq .pq-icon-btns .pq-btn:last-child { border-radius: 0 3px 3px 0; }

/* ---- My Forms: card grids ---------------------------------------------------------------------------------------- */
html body.pq .pq-forms-sec { margin: 0 0 30px; }
html body.pq .pq-forms-head { display: flex; align-items: center; gap: 8px; margin: 6px 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--pq-line-2); }
html body.pq .pq-forms-head h3 { margin: 0 auto 0 0; font-size: 24px; font-weight: 400; color: var(--pq-ink); }
html body.pq .pq-cards { display: grid; grid-template-columns: repeat(auto-fill, 148px); gap: 22px; }
html body.pq .pq-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 178px; padding: 14px 8px 10px;
  border: 0; border-top: 3px solid var(--pq-tone, #999999); border-radius: 0; background: var(--pq-panel); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); color: var(--pq-ink); font: 15px/1.35 var(--pq-font); text-align: center; cursor: pointer; }
html body.pq .pq-card:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
html body.pq .pq-card .dots { position: absolute; top: 4px; right: 10px; color: #BBBBBB; font-size: 15px; letter-spacing: 1px; }
html body.pq .pq-card .state { position: absolute; bottom: 10px; left: 0; right: 0; color: var(--pq-muted); font-size: 13px; }
html body.pq .pq-card.inactive { color: #9A9A9A; }
html body.pq .pq-card.folder { border-top-color: transparent; background: #4A86C5; color: #FFFFFF; }
html body.pq .pq-card.folder svg { width: 48px; height: 40px; margin-bottom: 14px; }
html body.pq .pq-card.folder .state { color: rgba(255, 255, 255, .85); }
html body.pq .pq-card.add { color: #7DBE5E; } html body.pq .pq-card.upload { color: #F2A02C; }
html body.pq .pq-card.add svg, html body.pq .pq-card.upload svg { width: 46px; height: 46px; margin-bottom: 10px; }
html body.pq .pq-card.tone-0 { --pq-tone: #9B6BC2; } html body.pq .pq-card.tone-1 { --pq-tone: #F1C40F; } html body.pq .pq-card.tone-2 { --pq-tone: #4A90D9; }
html body.pq .pq-card.tone-3 { --pq-tone: #7DBE5E; } html body.pq .pq-card.tone-4 { --pq-tone: #E05A5A; } html body.pq .pq-card.tone-5 { --pq-tone: #999999; }

/* ---- Secure Messaging -------------------------------------------------------------------------------------------- */
html body.pq .pq-msg { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: calc(100vh - 54px); background: var(--pq-panel); }
html body.pq .pq-msg-list { border-right: 1px solid var(--pq-line); overflow-y: auto; max-height: calc(100vh - 54px); }
html body.pq .pq-msg-list .pq-rail-search { margin: 8px; padding: 0; border: 0; }
html body.pq .pq-msg-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 10px 8px; border: 0; border-bottom: 1px solid var(--pq-line-2);
  background: none; color: var(--pq-ink); font: 13.5px var(--pq-font); text-align: left; cursor: pointer; }
html body.pq .pq-msg-row:hover, html body.pq .pq-msg-row.on { background: var(--pq-panel-2); }
html body.pq .pq-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #8E6BB5; color: #FFFFFF; font: 13px Georgia, serif; }
html body.pq .pq-msg-row small { display: block; color: var(--pq-muted); font-size: 12px; }
html body.pq .pq-msg-row .pq-tag { align-self: end; }
html body.pq .pq-msg-main { position: relative; display: grid; place-items: center; align-content: center; gap: 18px; padding: 40px; text-align: center; }
html body.pq .pq-msg-main .pq-lock { width: 120px; height: 104px; color: #3F86C7; }
html body.pq .pq-msg-main h2 { margin: 0; font-size: 31px; font-weight: 400; }
html body.pq .pq-msg-main .pq-signin { width: min(600px, 100%); padding: 18px; border: 1px solid var(--pq-line); background: var(--pq-panel-2); font-size: 15px; }
html body.pq .pq-msg-settings { position: absolute; top: 20px; right: 20px; }

/* ---- Tasks slide-over, notifications, Rx ------------------------------------------------------------------------- */
html body.pq .pq-tasks { position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(1151px, 100vw); overflow-y: auto; background: var(--pq-panel); box-shadow: -4px 0 18px rgba(0, 0, 0, .2); }
html body.pq .pq-tasks-tabs { display: flex; align-items: flex-end; height: 62px; padding: 0 30px; border-bottom: 1px solid var(--pq-line-2); }
html body.pq .pq-tasks-tabs button { height: 62px; padding: 0 24px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--pq-muted); font: 15px var(--pq-font); cursor: pointer; }
html body.pq .pq-tasks-tabs button.on { border-bottom-color: var(--pq-link); color: var(--pq-ink); }
html body.pq .pq-tasks-tabs .pq-sheet-close { align-self: center; }
html body.pq .pq-tasks-tools { display: flex; justify-content: flex-end; gap: 14px; padding: 14px 70px 14px 30px; }
html body.pq .pq-tasks-tools .pq-rail-search { margin: 0; padding: 0; border: 0; width: 160px; }
html body.pq .pq-task { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; margin: 0 70px 16px 60px; padding: 14px 14px 12px; border-radius: 4px; background: var(--pq-panel-2); }
html body.pq .pq-task .ring { width: 28px; height: 28px; border: 2px solid #4A90D9; border-radius: 50%; background: none; cursor: pointer; }
html body.pq .pq-task h5 { margin: 3px 0 10px; font-size: 15px; font-weight: 600; color: var(--pq-ink); }
html body.pq .pq-task h5 span { color: var(--pq-link); font-weight: 400; }
html body.pq .pq-task p { margin: 0 0 12px; overflow: hidden; color: var(--pq-muted); font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
html body.pq .pq-task .meta { display: flex; align-items: center; gap: 16px; font-size: 14px; }
html body.pq .pq-task .due { color: var(--pq-orange); }
html body.pq .pq-task .who { color: var(--pq-link); font-weight: 600; }
html body.pq .pq-task .acts { display: flex; gap: 10px; margin-left: auto; }
html body.pq .pq-task .acts button { padding: 0 9px; height: 24px; border: 1px solid var(--pq-line); border-radius: 12px; background: var(--pq-panel); color: var(--pq-muted); font-size: 12px; cursor: pointer; }
html body.pq .pq-pop { position: fixed; z-index: 92; width: 362px; max-height: 70vh; overflow-y: auto; border-top: 4px solid var(--pq-bubble); background: var(--pq-panel); box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
html body.pq .pq-pop-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--pq-line-2); font-size: 13.5px; color: var(--pq-ink); }
html body.pq .pq-pop-row .dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #FFFFFF; }
html body.pq .pq-pop-row .dot svg { width: 16px; height: 16px; }
html body.pq .pq-pop-row small { display: block; margin-top: 3px; color: var(--pq-muted); font-size: 12px; }
html body.pq .pq-rx { position: fixed; inset: 0; z-index: 93; display: grid; grid-template-rows: 62px 1fr; background: var(--pq-panel); }
html body.pq .pq-rx-head { display: flex; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--pq-line-2); color: var(--pq-link); }
html body.pq .pq-rx-head svg { width: 22px; height: 22px; }
html body.pq .pq-rx-bar { display: flex; align-items: stretch; margin: 14px 14px 0; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
html body.pq .pq-rx-bar .who { display: flex; gap: 32px; padding: 10px 16px; background: var(--pq-bar); color: #FFFFFF; }
html body.pq .pq-rx-bar .who small { display: block; color: rgba(255, 255, 255, .7); font-size: 11px; }
html body.pq .pq-rx-bar .who strong { font-size: 17px; }
html body.pq .pq-rx-find { margin: 34px 38px; }
html body.pq .pq-rx-find h5 { margin: 0 0 12px; font-size: 16px; }
html body.pq .pq-rx-find form { display: flex; width: 790px; max-width: 100%; }
html body.pq .pq-rx-find input { flex: 1; height: 40px; padding: 0 16px; border: 1px solid #888888; border-radius: 3px 0 0 3px; font: 12px var(--pq-font); }
html body.pq .pq-rx-find form button { padding: 0 14px; border: 0; background: var(--pq-bar); color: #FFFFFF; font-weight: 700; font-size: 12px; }

/* ---- Bottom corners: Quick Notes (left), the signed-in person (right) -------------------------------------------- */
html body.pq .pq-fab { position: fixed; left: 15px; bottom: 15px; z-index: 70; display: grid; place-items: center; width: 50px; height: 50px; border: 0; border-radius: 50%;
  background: var(--pq-fab); color: #FFFFFF; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); cursor: pointer; }
html body.pq .pq-fab svg { width: 27px; height: 27px; }
html body.pq .pq-user { position: fixed; right: 0; bottom: 0; z-index: 70; display: flex; align-items: stretch; }
html body.pq .pq-user-button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 0; background: var(--pq-user); color: var(--pq-user-ink);
  font: 15px var(--pq-font); cursor: pointer; }
html body.pq .pq-user-button::after { content: ""; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 4px solid currentColor; }
html body.pq .pq-user .coord-topchip { display: flex; height: 30px; margin: 0; border-radius: 0; }
html body.pq .pq-user-menu { position: absolute; right: 0; bottom: 30px; display: grid; min-width: 220px; padding: 5px 0; border-top: 4px solid var(--pq-stripe); background: var(--pq-drop); box-shadow: 0 -6px 12px rgba(0, 0, 0, .18); }
html body.pq .pq-user-menu.hidden { display: none; }
html body.pq .pq-user-menu > button, html body.pq .pq-user-menu .button, html body.pq .pq-user-menu .icon-button, html body.pq .pq-user-menu .account-button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 41px; height: auto; padding: 10px 20px; border: 0; border-radius: 0; background: transparent; color: #FFFFFF;
  font: 15px var(--pq-font); text-align: left; box-shadow: none; cursor: pointer; }
html body.pq .pq-user-menu > button:hover, html body.pq .pq-user-menu .button:hover, html body.pq .pq-user-menu .icon-button:hover, html body.pq .pq-user-menu .account-button:hover { background: rgba(255, 255, 255, .1); }
html body.pq .pq-user-menu .hidden { display: none; }
html body.pq .pq-user-menu .account-button .avatar { display: none; }
html body.pq .pq-user-menu .account-button .user-copy { display: block; }
html body.pq .pq-user-menu .account-button small { display: none; }

/* ---- Phones and tablets: PracticeQ hides the icons and folds the menu; keep the drawer --------------------------- */
@media (max-width: 1179px) {
  html body.pq .pq-icons > :not(#pq-tasks):not(#pq-msg-button):not(#pq-team) { display: none; }
  html body.pq .pq-subbar { position: static; flex-wrap: wrap; }
  html body.pq .pq-sub-center { margin: 0; }
  html body.pq .pq-dash-grid, html body.pq .pq-admin-body, html body.pq .pq-grid2 { grid-template-columns: minmax(0, 1fr); }
  html body.pq .pq-cal-wrap { grid-template-columns: minmax(0, 1fr); }
  html body.pq .pq-lib { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body.pq .pq-grid3 { grid-template-columns: minmax(0, 1fr); }
  html body.pq .pq-msg { grid-template-columns: minmax(0, 1fr); }
  html body.pq .pq-task { margin: 0 12px 12px; }
  html body.pq .pq-fab { bottom: 76px; }
  html body.pq .pq-user { bottom: 62px; }
}
@media (max-width: 640px) {
  html body.pq .pq-lib { grid-template-columns: minmax(0, 1fr); }
  html body.pq .pq-cal-bar { flex-wrap: wrap; }
  html body.pq .pq-cal-bar h2 { min-width: 0; font-size: 22px; }
  html body.pq .pq-cal-bar .pq-mode { margin: 0; }
  html body.pq .pq-sheet { padding: 0 16px 30px; }
}
html body.pq #nav.pq-top [data-section="lists"] .nav-icon { display: none; }
/* PracticeQ pages that have no report filters */
html body.pq[data-pq-view="dashboard"] #filters, html body.pq[data-pq-view="admin"] #filters, html body.pq[data-pq-view="retention"] #filters,
html body.pq[data-pq-view="bookingsettings"] #filters, html body.pq[data-pq-view="myforms"] #filters, html body.pq[data-pq-view="messaging"] #filters { display: none !important; }
html body.pq .pq-cal-head.month { grid-template-columns: repeat(7, minmax(0, 1fr)); }
html body.pq .pq-month > .today { background: var(--pq-today); }
html body.pq .pq-mev.svc-0 { background: #B07DB6; } html body.pq .pq-mev.svc-1 { background: #93C86A; } html body.pq .pq-mev.svc-2 { background: #F04B4B; }
html body.pq .pq-mev.svc-3 { background: #E8A33B; } html body.pq .pq-mev.svc-4 { background: #5C7CC9; } html body.pq .pq-mev.svc-5 { background: #3FA7A0; }
html body.pq .pq-legacy > .card, html body.pq .pq-legacy > article { margin-bottom: 15px; }
html body.pq .pq-tab-body h4.pq-plain { margin: 0; padding: 0; border: 0; font-size: 20px; color: var(--pq-link); font-weight: 400; }
html body.pq .pq-tab-body .pq-cal-bar { margin: 18px 0 10px; }
html body.pq .pq-tab-body .pq-swatch { display: inline-block; position: static; width: 40px; height: 20px; padding: 0; border-radius: 2px; }
html body.pq .pq-tab-body p { margin: 0 0 12px; }
html body.pq .pq-sheet-actions { display: flex; gap: 8px; margin-top: 14px; }
html body.pq .pq-card.folder .state { position: static; margin-top: 18px; }
html body.pq[data-pq-view="messaging"] .content { padding: 0; }
html body.pq .pq-msg-main .pq-lock { color: #3F86C7; }
@media (max-width: 1179px) {
  html body.pq .pq-sub-right, html body.pq .pq-sub-center { flex-wrap: wrap; gap: 6px; margin-left: 0; }
  html body.pq .pq-subbar { gap: 8px; }
  html body.pq .pq-cal-bar { flex-wrap: wrap; }
  html body.pq .pq-cal-bar .pq-mode { margin: 0; }
  html body.pq .pq-user { bottom: 64px; }
}
@media (max-width: 720px) {
  html body.pq .topbar .brand-copy { display: none; }
  html body.pq .pq-cal-bar h2 { min-width: 0; width: 100%; font-size: 22px; }
  html body.pq .pq-cal-axis > div { font-size: 12px; padding-right: 4px; }
  html body.pq .pq-cal-head, html body.pq .pq-cal-body { grid-template-columns: 52px repeat(var(--pq-days, 1), minmax(0, 1fr)); }
  html body.pq .pq-user-button { max-width: 46vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  html body.pq .pq-dash-hello { flex-wrap: wrap; }
  html body.pq .pq-panel-body { overflow-x: auto; }
  html body.pq .pq-admin-head { flex-wrap: wrap; }
  html body.pq .pq-admin-head h3 { width: 100%; font-size: 24px; }
  html body.pq .pq-tabs { flex-wrap: wrap; }
  html body.pq .pq-tabs button { height: 44px; }
  html body.pq .pq-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
html body.pq #pq-user-name { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
html body.pq .pq-user-button { max-width: 60vw; }

/* ---- Client chart (layout scan chart-overview): 320px Timeline column, NAME header, underlined tabs ---------------- */
html body.pq[data-pq-view="chart"] .content { padding: 0; }
html body.pq .pq-chart { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: calc(100vh - 108px); }
html body.pq .pq-tl { border-right: 1px solid var(--pq-line); background: var(--pq-panel); }
html body.pq .pq-tl-head { display: grid; grid-template-columns: 62px 1fr 36px 36px; align-items: center; height: 36px; background: var(--pq-panel-2); color: var(--pq-ink-2); font-size: 15px; text-align: center; }
html body.pq .pq-tl-head svg { width: 14px; height: 14px; justify-self: center; }
html body.pq .pq-tl-add { display: grid; place-items: center; height: 36px; border: 0; background: #4CAF50; color: #FFFFFF; cursor: pointer; }
html body.pq .pq-tl-pin { display: grid; grid-template-columns: 62px 1fr; align-items: center; height: 36px; border-bottom: 1px solid var(--pq-line-2); color: var(--pq-link); font-size: 13px; }
html body.pq .pq-tl-pin svg { width: 13px; height: 13px; justify-self: center; }
html body.pq .pq-tl-pinned:empty { display: none; }
html body.pq .pq-tl-pinned { padding: 6px 10px; border-bottom: 1px solid var(--pq-line-2); font-size: 13px; }
html body.pq .pq-tl-item { display: grid; grid-template-columns: 66px 1fr; width: 100%; min-height: 54px; padding: 0; border: 0; border-bottom: 1px solid var(--pq-line-2); background: none; text-align: left; cursor: pointer; }
html body.pq .pq-tl-item:hover { background: var(--pq-panel-2); }
html body.pq .pq-tl-item.on { background: var(--pq-user); box-shadow: inset 3px 0 0 var(--pq-link); }  /* the timeline item that is open (2026-10-25) */
html body.pq .pq-tl-item:focus-visible { outline: 2px solid var(--pq-link); outline-offset: -2px; }
html body.pq .pc-tl-form .pc-card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
html body.pq .pc-tl-form h3:focus { outline: none; }
html body.pq .pc-tl-appt .pq-modal-head h3 svg { flex: none; }
html body.pq .pc-tl-appt a.pq-btn, html body.pq .pc-tl-form a.pq-btn { text-decoration: none; }
html body.pq .pq-tl-date { display: grid; place-items: center; padding: 6px 0; background: #6FB86F; color: #FFFFFF; font-size: 12px; line-height: 1.5; text-align: center; }
html body.pq .pq-tl-text { position: relative; padding: 8px 8px 16px; color: var(--pq-link); font-size: 13px; }
html body.pq .pq-tl-text small { position: absolute; right: 6px; bottom: 3px; color: #707070; font-size: 11px; }  /* QA 2026-10-25: #AAA was 2.3:1 on white (WCAG AA needs 4.5) */
html body.pq .pq-tl-empty { padding: 14px; color: var(--pq-muted); font-size: 13px; }
html body.pq .pq-ch-main { min-width: 0; background: var(--pq-page); }
html body.pq .pq-ch-head { position: relative; display: flex; align-items: center; gap: 12px; min-height: 86px; padding: 0 30px 0 15px; margin: 0 0 0; border-bottom: 1px solid var(--pq-line-2); background: var(--pq-panel); }
html body.pq .pq-ch-av { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #DADADA; color: #FFFFFF; font-size: 17px; }
html body.pq .pq-ch-head h1 { margin: 0; font-size: 31px; font-weight: 400; color: var(--pq-ink); text-transform: uppercase; letter-spacing: 0; }
html body.pq .pq-ch-state { padding: 2px 8px; border-radius: 3px; background: var(--pq-panel-2); color: var(--pq-muted); font-size: 12px; }
html body.pq .pq-ch-state.good { background: #E3F4EB; color: #11865E; } html body.pq .pq-ch-state.bad { background: #FBE8EA; color: #C63A47; } html body.pq .pq-ch-state.warn { background: #FBF0D8; color: #A2670A; }
html body.pq .pq-ch-tools { position: relative; display: flex; gap: 14px; margin-left: auto; }
html body.pq .pq-round { display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid #C9C9C9; border-radius: 50%; background: var(--pq-panel); color: #9A9A9A; cursor: pointer; }
html body.pq .pq-round svg { width: 15px; height: 15px; }
html body.pq .pq-round:hover { border-color: var(--pq-link); color: var(--pq-link); }
html body.pq .pq-ch-menu { position: absolute; top: 44px; right: 0; z-index: 5; display: grid; min-width: 210px; padding: 5px 0; border-top: 4px solid var(--pq-stripe); background: var(--pq-drop); box-shadow: 0 6px 12px rgba(0, 0, 0, .18); }
html body.pq .pq-ch-menu button { padding: 10px 20px; border: 0; background: none; color: #FFFFFF; font: 15px var(--pq-font); text-align: left; cursor: pointer; }
html body.pq .pq-ch-menu button:hover { background: rgba(255, 255, 255, .1); }
html body.pq .pq-ch-tabs { display: flex; flex-wrap: wrap; gap: 0; padding: 0 0 0 15px; background: var(--pq-panel); border-bottom: 1px solid var(--pq-line-2); }
html body.pq .pq-ch-tabs button { display: inline-flex; align-items: center; gap: 5px; height: 66px; padding: 0 20px; border: 0; border-bottom: 3px solid transparent; background: none; color: #555555;
  font: 600 13px var(--pq-font); letter-spacing: 0; cursor: pointer; }
html body.pq .pq-ch-tabs button svg { width: 13px; height: 13px; }
html body.pq .pq-ch-tabs button.on { border-bottom-color: #3FA3D8; color: var(--pq-ink); }
html body.pq .pq-ch-body { padding: 48px 30px 60px; }
html body.pq .pq-ch-cards { display: grid; gap: 22px; max-width: 860px; margin: 0 auto; }
html body.pq .pq-ch-cards .pc-chart-card, html body.pq .pq-ch-cards > section, html body.pq .pq-ch-cards > article { padding: 18px 15px 20px; border: 0; border-radius: 0; background: var(--pq-panel); box-shadow: none; }
html body.pq .pq-ch-cards .pc-chart-card > .eyebrow { display: none; }
html body.pq .pq-ch-cards .pc-chart-card > h3 { margin: 0 0 22px; padding-bottom: 10px; border-bottom: 1px solid var(--pq-line-2); font-family: var(--pq-font); font-size: 22px; font-weight: 400; letter-spacing: 0; color: var(--pq-ink); text-transform: none; }
/* Section titles inside a card head (Vitals, Patient Demographics, Files, Messages...) read like PracticeQ's plain section
   titles: the same 22px line with the rule under it (Andrea 2026-11-23: "Vitals, same heading size as questionnaires"). */
html body.pq .pq-ch-cards .pc-chart-card > .pc-note-head { align-items: flex-start; margin: 0 0 22px; padding-bottom: 10px; border-bottom: 1px solid var(--pq-line-2); }
html body.pq .pq-ch-cards .pc-chart-card > .pc-note-head .eyebrow { display: none; }
html body.pq .pq-ch-cards .pc-chart-card > .pc-note-head h3 { margin: 0; font-family: var(--pq-font); font-size: 22px; font-weight: 400; letter-spacing: 0; color: var(--pq-ink); text-transform: none; }
html body.pq .pq-ch-cards .pc-bi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; }
html body.pq .pq-ch-cards .pc-bi span { display: block; margin-bottom: 6px; color: #555555; font: 11.5px var(--pq-font); letter-spacing: .1em; text-transform: uppercase; }
html body.pq .pq-ch-cards .pc-bi strong { font-family: var(--pq-font); font-size: 15px; font-weight: 400; color: var(--pq-ink); }
html body.pq .pq-ch-search { width: 604px; max-width: 46vw; height: 34px; padding: 6px 12px; border: 1px solid var(--pq-btn-line); border-radius: 3px; background: var(--pq-btn); color: var(--pq-ink); font: 14px var(--pq-font); }
html body.pq .pq-sub-center.pq-chart-sub { gap: 30px; }
@media (max-width: 1179px) {
  html body.pq .pq-chart { grid-template-columns: minmax(0, 1fr); }
  html body.pq .pq-tl { max-height: 260px; overflow-y: auto; border-right: 0; border-bottom: 1px solid var(--pq-line); }
  html body.pq .pq-ch-head h1 { font-size: 22px; }
  html body.pq .pq-ch-tools { gap: 6px; }
  html body.pq .pq-ch-tabs { flex-wrap: nowrap; overflow-x: auto; }
  html body.pq .pq-ch-tabs button { height: 48px; padding: 0 12px; white-space: nowrap; }
  html body.pq .pq-ch-body { padding: 18px 12px 40px; }
  html body.pq .pq-ch-cards .pc-bi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body.pq .pq-ch-search { max-width: 100%; width: 100%; }
}

/* ---- Every other page in PracticeQ's dress: flat white panels, Open Sans, grey table heads, bordered buttons ------- */
html body.pq .content .card, html body.pq .content .setting-card, html body.pq .content .kpi-card, html body.pq .content .readiness-panel, html body.pq .content .loading-card,
html body.pq .drawer .card { background: var(--pq-panel); border: 1px solid var(--pq-line); border-radius: 4px; box-shadow: none; backdrop-filter: none; color: var(--pq-ink); }
html body.pq .content .card + .card, html body.pq .content .mt { margin-top: 15px; }
html body.pq .card-header { padding: 14px 15px 12px; border-bottom: 1px solid var(--pq-line-2); }
html body.pq .card-header h2, html body.pq .card-header h3 { font: 700 18px var(--pq-font); letter-spacing: 0; text-transform: none; color: var(--pq-ink-2); }
html body.pq .card-header p { color: var(--pq-muted); font-size: 13.5px; }
html body.pq .eyebrow { display: none; }
html body.pq .card .eyebrow + h2, html body.pq .card .eyebrow + h3 { margin-top: 0; }
html body.pq .data-table { font: 15px var(--pq-font); }
html body.pq .data-table th { padding: 10px 8px; background: #777777; color: #FFFFFF; border-bottom: 0; font: 400 15px var(--pq-font); letter-spacing: 0; text-transform: none; }
html body.pq .data-table td { padding: 12px 8px; border-bottom: 1px solid var(--pq-line-2); color: var(--pq-ink); }
html body.pq .data-table tbody tr:hover td { background: var(--pq-panel-2); }
html body.pq .button, html body.pq .content .button.compact { height: 34px; min-height: 34px; padding: 6px 12px; border: 1px solid var(--pq-btn-line); border-radius: 3px; background: var(--pq-btn); color: var(--pq-ink);
  font: 400 14px var(--pq-font); letter-spacing: 0; text-transform: none; box-shadow: none; transform: none; filter: none; }
html body.pq .button:hover { background: var(--pq-btn-on); }
html body.pq .button.primary { border-color: #2F9E44; background: #2F9E44; color: #FFFFFF; }
html body.pq .button.primary:hover { background: #2B8C3D; }
html body.pq .button.danger, html body.pq .button.warn { border-color: var(--pq-red); background: transparent; color: var(--pq-red); }
html body.pq .section-tabs { gap: 0; padding: 0; border: 0; border-bottom: 1px solid var(--pq-line); background: transparent; box-shadow: none; border-radius: 0; }
html body.pq .tab-button { height: 44px; padding: 0 16px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; color: #555555;
  font: 600 13px var(--pq-font); letter-spacing: 0; text-transform: uppercase; text-shadow: none; }
html body.pq .tab-button.active { border-bottom-color: #3FA3D8; background: none; color: var(--pq-ink); }
html body.pq input, html body.pq select, html body.pq textarea { border-radius: 3px; border-color: var(--pq-btn-line); background: var(--pq-btn); color: var(--pq-ink); font-family: var(--pq-font); }
html body.pq .filter-bar { margin: 20px 15px 0; padding: 15px; border: 1px solid var(--pq-line); border-radius: 0; background: var(--pq-panel); box-shadow: none; }
html body.pq .filter-bar label span { font: 700 14px var(--pq-font); letter-spacing: 0; text-transform: none; color: var(--pq-ink); }
html body.pq .notice { border-radius: 3px; background: var(--pq-panel-2); border-color: var(--pq-line); color: var(--pq-ink-2); }
html body.pq .kpi-card::before { display: none; }
html body.pq .kpi-value { font-family: var(--pq-font); text-shadow: none; }
html body.pq .drawer { font-family: var(--pq-font); }
html body.pq h1, html body.pq h2, html body.pq h3, html body.pq h4 { font-family: var(--pq-font); }

/* ---- PracticeQ list pages: filter box, tools, the list -------------------------------------------------------------- */
html body.pq .pq-filter { margin: 0 0 20px; padding: 15px 15px 12px; border: 1px solid var(--pq-line); background: var(--pq-panel); }
html body.pq .pq-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px 30px; padding-bottom: 15px; border-bottom: 1px solid var(--pq-line-2); }
html body.pq .pq-filter-grid label { display: grid; grid-template-columns: 30% minmax(0, 1fr); align-items: center; gap: 14px; }
html body.pq .pq-filter-grid label > span { font-weight: 700; font-size: 15px; text-align: right; color: var(--pq-ink); }
html body.pq .pq-filter-grid input, html body.pq .pq-filter-grid select { width: 100%; height: 34px; padding: 6px 12px; font-size: 14px; }
html body.pq .pq-filter-grid input[disabled], html body.pq .pq-filter-grid select[disabled] { background: var(--pq-panel-2); color: var(--pq-muted); }
html body.pq .pq-range { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
html body.pq .pq-range input { min-width: 0; }
/* Phones (QA 2026-10-22): filter labels sit above their boxes and the two dates stack, so list pages fit the screen. */
@media (max-width: 520px) {
  html body.pq .pq-filter-grid label { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  html body.pq .pq-filter-grid label > span { text-align: left; }
  html body.pq .pq-range { grid-template-columns: minmax(0, 1fr); }
  html body.pq .pq-forms-head { flex-wrap: wrap; }
}
html body.pq .pq-filter-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; }
html body.pq .pq-search-btn { height: 40px; padding: 0 14px; font-size: 19px; }
html body.pq .pq-search-btn svg { width: 18px; height: 18px; }
html body.pq .pq-tools { display: flex; justify-content: flex-end; gap: 12px; margin: 0 0 12px; }
html body.pq .pq-list > .card > .card-header, html body.pq .pq-list .pc-client-search, html body.pq .pq-list .pc-ev-chips, html body.pq .pq-list > .pc-dash-grid,
html body.pq .pq-list-notes #note-templates, html body.pq .pq-list-notes #snippets, html body.pq .pq-list .card-body:has(> .pc-ev-chips), html body.pq .pq-list form[data-note-search],
html body.pq .pq-list form[data-inv-search], html body.pq .pq-list .pc-inv-totals { display: none !important; }
html body.pq .pq-list > .card { border: 0; background: transparent; }
html body.pq .pq-list .table-wrap { border: 0; background: var(--pq-panel); }
@media (max-width: 1179px) {
  html body.pq .pq-filter-grid { grid-template-columns: minmax(0, 1fr); }
  html body.pq .pq-filter-grid label { grid-template-columns: 34% minmax(0, 1fr); }
}
html body.pq .pq-list form.pc-inv-search, html body.pq .pq-list .pc-dash-grid { display: none !important; }
html body.pq input:not([type="checkbox"]):not([type="radio"]), html body.pq select, html body.pq textarea { border: 1px solid var(--pq-btn-line); box-shadow: none; }
html body.pq .pq-list .pc-muted:only-child, html body.pq .pq-list .card-body > .pc-muted { margin: 0; padding: 14px 15px; border: 1px solid #BCE8F1; background: #D9EDF7; color: #31708F; font-size: 15px; }

/* ---- Engage frame (PracticeQ Engage: navy sidebar, white page, location picker top right) ------------------------------ */
html body.pq[data-pq-view="coordinator"] .content { padding: 0; }
html body.pq[data-pq-view="coordinator"] .pq-subbar { display: none; }
html body.pq .pq-eg { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: calc(100vh - 54px); }
html body.pq .pq-eg-side { background: #1E4C79; color: #FFFFFF; }
html body.pq .pq-eg-brand { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; align-items: center; padding: 22px 26px 18px 60px; }
html body.pq .pq-eg-brand svg { grid-row: 1 / 3; width: 40px; height: 40px; }
html body.pq .pq-eg-brand strong { font-size: 31px; font-weight: 600; line-height: 1; }
html body.pq .pq-eg-brand small { font-size: 11px; opacity: .8; }
html body.pq .pq-eg-side nav { display: grid; gap: 2px; padding: 8px 12px 20px; }
html body.pq .pq-eg-side nav button { display: flex; align-items: center; gap: 16px; min-height: 52px; padding: 0 14px; border: 0; border-radius: 26px; background: none; color: #FFFFFF;
  font: 17px var(--pq-font); text-align: left; cursor: pointer; }
html body.pq .pq-eg-side nav button svg { width: 20px; height: 20px; }
html body.pq .pq-eg-side nav button:hover, html body.pq .pq-eg-side nav button.on { background: rgba(255, 255, 255, .16); }
html body.pq .pq-eg-group { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; color: rgba(255, 255, 255, .6); font-size: 15px; }
html body.pq .pq-eg-group::before { content: ""; width: 22px; border-top: 1px solid rgba(255, 255, 255, .3); }
html body.pq .pq-eg-group::after { content: ""; flex: 1; border-top: 1px solid rgba(255, 255, 255, .3); }
html body.pq .pq-eg-main { min-width: 0; padding: 24px 26px 60px; background: #FAFAFA; }
html body.pq .pq-eg-top { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; }
html body.pq .pq-eg-top h2 { margin: 0 auto 0 0; font-size: 26px; font-weight: 600; color: var(--pq-ink); }
html body.pq .pq-eg-loc { width: 136px; height: 42px; }
html body.pq .pq-eg-split { display: grid; grid-template-columns: 352px minmax(0, 1fr); gap: 0; min-height: 70vh; }
html body.pq .pq-eg-tpl { display: grid; }
html body.pq .pq-eg-tpl > div, html body.pq .pq-eg-tpl > .pq-btn { padding: 10px 18px; border: 0; border-bottom: 1px solid var(--pq-line-2); border-radius: 0; height: auto; justify-content: flex-start; font-size: 15px; }
@media (max-width: 1179px) {
  html body.pq .pq-eg { grid-template-columns: minmax(0, 1fr); }
  html body.pq .pq-eg-side nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body.pq .pq-eg-split { grid-template-columns: minmax(0, 1fr); }
}
/* A menu lights up only for its own page, not for a PracticeQ duplicate shortcut (data-dup) */
html body.pq #nav.pq-top > .nav-section.has-active > .nav-section-head { box-shadow: none; }
html body.pq #nav.pq-top > .nav-section:has(.nav-item.active:not([data-dup])) > .nav-section-head { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); border-radius: 4px; }
html body.pq #nav.pq-top > .nav-item.active { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }

/* ---- Chart tabs other than Overview: full width; Progress's navy date bar; Messages' yellow compose ------------------ */
html body.pq .pq-ch-cards.full { max-width: none; }
html body.pq .pq-ch-body:has(.pq-ch-cards.full) { padding: 20px 20px 60px; }
html body.pq .pq-prog-bar { display: flex; align-items: stretch; height: 54px; margin: 0 0 22px; border-bottom: 4px solid var(--pq-orange); background: #0F5279; color: #FFFFFF; }
html body.pq .pq-prog-bar > span:first-child { flex: 1; }
html body.pq .pq-prog-gear { width: 46px; border: 0; border-left: 1px solid rgba(255, 255, 255, .2); background: none; color: #FFFFFF; cursor: pointer; }
html body.pq .pq-prog-gear svg, html body.pq .pq-prog-range svg { width: 15px; height: 15px; }
html body.pq .pq-prog-range { display: flex; align-items: center; gap: 10px; padding: 0 18px; border-left: 1px solid rgba(255, 255, 255, .2); font-size: 15.5px; }
html body.pq .pq-ch-cards.full .pc-pmsg textarea, html body.pq .pq-ch-cards.full textarea[data-pmsg-text] { background: #FFFDE6; min-height: 54px; }
html body.pq .pq-ch-cards.full .data-table th { background: transparent; color: #555555; font-size: 12.5px; text-transform: uppercase; border-bottom: 1px solid var(--pq-line-2); }
html body.pq .pq-ch-cards.full .data-table td:first-child { font-weight: 600; }

/* ---- Settings: PracticeQ's left list of sections ---------------------------------------------------------------------- */
html body.pq .pq-set { display: grid; grid-template-columns: 302px minmax(0, 1fr); gap: 0; min-height: 70vh; background: var(--pq-panel); }
html body.pq .pq-set-menu { display: grid; align-content: start; background: var(--pq-panel-2); }
html body.pq .pq-set-menu button { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 15px; border: 0; border-bottom: 1px solid var(--pq-line-2); background: none; color: var(--pq-muted);
  font: 15px var(--pq-font); text-align: left; cursor: pointer; }
html body.pq .pq-set-menu button svg { width: 14px; height: 14px; flex: none; }
html body.pq .pq-set-menu button.on { background: var(--pq-panel); color: var(--pq-link); }
html body.pq .pq-set-body { min-width: 0; padding: 18px 26px 40px; }
html body.pq .pq-set-body .pq-hide { display: none !important; }
html body.pq .pq-set-body > .card { border: 0; }

/* ---- Add Appointment window -------------------------------------------------------------------------------------- */
html body.pq .pq-modal { position: fixed; top: 31px; left: 50%; z-index: 92; width: min(598px, calc(100vw - 24px)); max-height: calc(100vh - 50px); overflow-y: auto; transform: translateX(-50%); background: var(--pq-panel); box-shadow: 0 5px 15px rgba(0, 0, 0, .5); border-radius: 0; }
html body.pq .pq-modal-head { padding: 18px 15px 14px; border-bottom: 1px solid var(--pq-line-2); }
html body.pq .pq-modal-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 20px; font-weight: 400; color: var(--pq-link); }
html body.pq .pq-modal-head h3 svg { width: 20px; height: 20px; }
html body.pq .pq-modal-head small { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--pq-link); font-size: 15px; }
html body.pq .pq-modal-head small svg { width: 14px; height: 14px; }
html body.pq .pq-modal-body { display: grid; gap: 15px; padding: 16px 15px 20px; }
html body.pq .pq-mrow { display: grid; grid-template-columns: 135px minmax(0, 1fr); align-items: center; gap: 30px; }
html body.pq .pq-mrow > span:first-child { font-weight: 400; font-size: 15px; text-align: right; color: var(--pq-ink); }
html body.pq .pq-mrow input, html body.pq .pq-mrow select, html body.pq .pq-mrow textarea { width: 100%; height: 34px; padding: 6px 12px; font-size: 14px; }
html body.pq .pq-mrow textarea { height: auto; }
html body.pq .pq-mpair { display: flex; align-items: center; gap: 6px; }
html body.pq .pq-mpair input[type="date"] { width: 120px; } html body.pq .pq-mpair select { width: auto; }
html body.pq .pq-addon { display: flex; width: 118px; flex: none; } html body.pq .pq-addon input { width: 64px; border-radius: 3px 0 0 3px; }
html body.pq .pq-addon em { display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--pq-btn-line); border-left: 0; background: var(--pq-panel-2); font-style: normal; }
html body.pq .pq-mcheck { margin-left: 165px; }
html body.pq .pq-modal-foot { display: flex; justify-content: space-between; padding: 15px; border-top: 1px solid var(--pq-line-2); }
html body.pq .pq-modal-foot > span { display: flex; gap: 14px; }
html body.pq .pq-showing { margin-right: auto; align-self: end; font-size: 15px; }
@media (max-width: 720px) {
  html body.pq .pq-set { grid-template-columns: minmax(0, 1fr); }
  html body.pq .pq-mrow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  html body.pq .pq-mrow > span:first-child { text-align: left; }
  html body.pq .pq-mcheck { margin-left: 0; }
  html body.pq .pq-mpair { flex-wrap: wrap; }
}
html body.pq .pq-mrow .pq-mpair select[name="service"] { flex: 1; min-width: 0; }
html body.pq .pq-mrow .pq-addon input { width: 60px; flex: none; }
html body.pq .pq-mrow .pq-mpair input[type="date"] { width: 132px; flex: none; }
html body.pq .pq-mrow .pq-mpair select:not([name]) { width: auto; flex: none; padding-right: 26px; }
html body.pq .pq-sheet-back { z-index: 90; background: rgba(0, 0, 0, .45); }
html body.pq .pq-set-body .setting-card { display: grid; gap: 6px; padding: 12px; }
html body.pq .pq-set-body .setting-card input, html body.pq .pq-set-body .setting-card select, html body.pq .pq-set-body .setting-card textarea { width: 100%; max-width: 520px; height: 34px; }
html body.pq .pq-set-body .setting-card textarea { height: auto; }
html body.pq .pq-set-body .settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
html body.pq .pq-set-body > div:has(> .card.pq-hide + .card.pq-hide), html body.pq .pq-set-body > div:not(:has(.card:not(.pq-hide))):has(.card) { display: none; }

/* ==== Combo look (owner 2026-10-20, Andrea: "same wires but new visuals") ==========================================
   Ona's calm (warm ivory ground, white rounded cards, coral accent) plus JotPsych's cards (navy, lavender, status pills).
   Layout, menus, tabs and controls are untouched: only tokens, type and surfaces change. Always light (Lucent rule). */
@font-face { font-family: "Inter"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("/config.js?asset=font-inter") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 200 800; font-style: normal; font-display: swap; src: url("/config.js?asset=font-jakarta") format("woff2"); }

:root, :root[data-theme="dark"], :root[data-theme="auto"], :root[data-theme="light"] {
  --pq-font: "Inter", "Open Sans", Helvetica, Arial, sans-serif; --pq-head: "Plus Jakarta Sans", "Inter", Helvetica, Arial, sans-serif;
  --pq-bar: #1E1B4B; --pq-bar-ink: #FFFFFF; --pq-drop: #26235C; --pq-stripe: #FF8FA8; --pq-bubble: #E8456B;
  --pq-page: #FAF7F2; --pq-panel: #FFFFFF; --pq-panel-2: #F7F3EC; --pq-line: #ECE6DC; --pq-line-2: #F0EAE0;
  --pq-ink: #1E1B4B; --pq-ink-2: #2B2763; --pq-muted: #5B5878; --pq-link: #5A3FC0; --pq-link-2: #C72E56;
  --pq-btn: #FFFFFF; --pq-btn-line: #E2DAD0; --pq-btn-on: #F1ECFD; --pq-btn-on-line: #CFC4F2;
  --pq-primary: #C72E56; --pq-dark-btn: #1E1B4B; --pq-green: #1F7A45; --pq-orange: #A24F0E; --pq-red: #B4234A;
  --pq-fab: #C72E56; --pq-today: #FFF8E6; --pq-user: #F1ECFD; --pq-user-ink: #1E1B4B; --pq-unread: #E8456B;
  --pq-shadow: 0 1px 2px rgba(30, 27, 75, .04), 0 8px 24px rgba(30, 27, 75, .05);
  --pq-radius: 16px; --pq-radius-sm: 10px;
  --pq-good-bg: #E6F6EC; --pq-good: #1F7A45; --pq-warn-bg: #FFF4D6; --pq-warn: #7A4F00; --pq-bad-bg: #FDE8EC; --pq-bad: #B4234A;
  --pq-info-bg: #E8F0FE; --pq-info: #2853C4; --pq-ai-bg: #F1ECFD; --pq-ai: #5A3FC0;
  --pc-display: var(--pq-head); --pc-body: var(--pq-font);
  --pc-bg: #FAF7F2; --pc-grid: transparent; --pc-glow-a: transparent; --pc-glow-b: transparent;
  --pc-surface: #FFFFFF; --pc-surface-2: #F7F3EC; --pc-surface-3: #F0EAE0; --pc-glass: rgba(255, 255, 255, .97); --pc-chrome: rgba(255, 255, 255, .97);
  --pc-line: #ECE6DC; --pc-line-soft: #F0EAE0; --pc-line-hi: #E2DAD0; --pc-line-tint: #DDD3F8;
  --pc-ink: #1E1B4B; --pc-ink-2: #3D3A66; --pc-muted: #5B5878; --pc-navy: #1E1B4B; --pc-navy-2: #26235C;
  --pc-teal: #C72E56; --pc-teal-deep: #A9234A; --pc-green: #1F7A45; --pc-amber: #7A4F00; --pc-red: #B4234A; --pc-blue: #2853C4; --pc-violet: #5A3FC0;
  --pc-soft-teal: #FDE8EC; --pc-soft-green: #E6F6EC; --pc-soft-amber: #FFF4D6; --pc-soft-red: #FDE8EC; --pc-soft-blue: #E8F0FE; --pc-soft-violet: #F1ECFD;
  --pc-on-strong: #FFFFFF; --pc-accent: #C72E56; --pc-accent-2: #5A3FC0;
  --pc-glow: 0 0 0 transparent; --pc-text-glow: none; --pc-shadow: 0 8px 24px rgba(30, 27, 75, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"], :root[data-theme="dark"] { color-scheme: light; --pq-page: #FAF7F2; --pq-panel: #FFFFFF; --pq-ink: #1E1B4B; --pc-bg: #FAF7F2; --pc-surface: #FFFFFF; --pc-ink: #1E1B4B; }
}

/* Type: Inter for reading, Plus Jakarta Sans for names and titles */
html body.pq { font-family: var(--pq-font); background: var(--pq-page); -webkit-font-smoothing: antialiased; }
html body.pq h1, html body.pq h2, html body.pq h3, html body.pq h4, html body.pq h5,
html body.pq .pq-crumbs, html body.pq .pq-panel-head h4, html body.pq .pq-ch-head h1, html body.pq .pq-cal-bar h2, html body.pq .pq-admin-head h3,
html body.pq .pq-forms-head h3, html body.pq .pq-tab-body h3, html body.pq .pq-tab-body h4, html body.pq .pq-ch-cards .pc-chart-card > h3 { font-family: var(--pq-head); letter-spacing: -.01em; }
html body.pq .topbar .brand-copy strong { font-family: var(--pq-head); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
html body.pq .topbar .brand-mark { border-radius: 10px; }
html body.pq .pc-dx-code, html body.pq code, html body.pq .pc-num { font-family: var(--pc-mono); }

/* Top bar and menus: deep navy, soft rounded highlights */
html body.pq #nav.pq-top > .nav-item.active, html body.pq #nav.pq-top > .nav-section.has-active > .nav-section-head { box-shadow: none; background: rgba(255, 255, 255, .12); border-radius: 10px; }
html body.pq #nav.pq-top > .nav-item, html body.pq #nav.pq-top > .nav-section > .nav-section-head { font-size: 14px; font-weight: 500; letter-spacing: .02em; }
html body.pq #nav.pq-top .nav-section-items { border-top-width: 3px; border-radius: 0 0 14px 14px; overflow: hidden; }
html body.pq .pq-bubble, html body.pq #pq-msg-button .pq-count { font-weight: 600; border-radius: 999px; }

/* Sub-bar */
html body.pq .pq-subbar { background: var(--pq-panel); border-bottom-color: var(--pq-line); }
html body.pq .pq-crumbs { font-weight: 800; font-size: 16px; }
html body.pq .pq-crumbs li + li::before { color: #B9B2A6; }

/* Buttons: soft rounded, coral for the main action */
html body.pq .pq-btn { border-radius: var(--pq-radius-sm); border-color: var(--pq-btn-line); font-weight: 500; transition: background .15s, border-color .15s; }
html body.pq .pq-btn:hover { background: var(--pq-btn-on); border-color: var(--pq-btn-on-line); }
html body.pq .pq-btn.on { box-shadow: none; background: var(--pq-ai-bg); border-color: var(--pq-btn-on-line); color: var(--pq-ai); }
html body.pq .pq-btn.green, html body.pq .pq-btn.outline:hover { background: var(--pq-primary); border-color: var(--pq-primary); color: #FFFFFF; }
html body.pq .pq-btn.outline { border-color: var(--pq-primary); color: var(--pq-primary); }
html body.pq .pq-btn.dark { background: var(--pq-dark-btn); border-color: var(--pq-dark-btn); }
html body.pq .pq-group > .pq-btn:first-child, html body.pq .pq-icon-btns .pq-btn:first-child, html body.pq .pq-split > .pq-btn { border-radius: var(--pq-radius-sm) 0 0 var(--pq-radius-sm); }
html body.pq .pq-group > .pq-btn:last-child, html body.pq .pq-icon-btns .pq-btn:last-child, html body.pq .pq-split > .pq-btn + .pq-btn { border-radius: 0 var(--pq-radius-sm) var(--pq-radius-sm) 0; }
html body.pq .pq-group > .pq-btn:only-child { border-radius: var(--pq-radius-sm); }
html body.pq .button { border-radius: var(--pq-radius-sm); }
html body.pq .button.primary, html body.pq .button:not(.secondary):not(.ghost):not(.danger) { background: var(--pq-primary); border-color: var(--pq-primary); color: #FFFFFF; }
html body.pq .button.secondary { background: #FFFFFF; border-color: var(--pq-btn-line); color: var(--pq-ink); }
html body.pq .button.secondary:hover { background: var(--pq-ai-bg); border-color: var(--pq-btn-on-line); }

/* Inputs */
html body.pq .pq-input, html body.pq .pq-field input, html body.pq .pq-field select, html body.pq .pq-field textarea, html body.pq .pq-rail-search input, html body.pq .pq-ch-search,
html body.pq .form-control, html body.pq input[type="text"], html body.pq input[type="search"], html body.pq input[type="date"], html body.pq select, html body.pq textarea {
  border-radius: var(--pq-radius-sm); border-color: var(--pq-btn-line); }
html body.pq .pq-input:focus, html body.pq .form-control:focus, html body.pq input:focus, html body.pq select:focus, html body.pq textarea:focus { outline: 2px solid #CFC4F2; outline-offset: 0; border-color: var(--pq-ai); }

/* Cards and panels: white, 1px warm line, 16px corners, a soft lift */
html body.pq .pq-panel, html body.pq .pq-admin-block, html body.pq .pq-tab-body, html body.pq .pq-lib-card, html body.pq .card,
html body.pq .pq-ch-cards .pc-chart-card, html body.pq .pq-ch-cards > section, html body.pq .pq-ch-cards > article, html body.pq .pc-chart-card {
  border: 1px solid var(--pq-line); border-radius: var(--pq-radius); background: var(--pq-panel); box-shadow: var(--pq-shadow); }
html body.pq .pq-admin-panel { border-radius: 12px; overflow: hidden; }
html body.pq .pq-admin-panel > h4 { background: var(--pq-bar); font-family: var(--pq-head); font-size: 16px; font-weight: 700; }
html body.pq .pq-ch-cards .pc-chart-card > h3 { border-bottom-color: var(--pq-line-2); font-weight: 800; }
html body.pq .pq-tabs button { border-radius: 12px 12px 0 0; }
html body.pq .pq-tab-body { border-radius: 0 var(--pq-radius) var(--pq-radius) var(--pq-radius); }
html body.pq .pq-card { border-radius: 14px; box-shadow: var(--pq-shadow); }
html body.pq .pq-card.folder { background: var(--pq-ai); }

/* Tables: navy text on warm white, quiet heads */
html body.pq .pq-table th { color: var(--pq-muted); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
html body.pq .data-table th { background: var(--pq-panel-2); color: var(--pq-muted); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--pq-line); }
html body.pq .data-table tbody tr:hover td, html body.pq .pq-table tbody tr:hover td { background: #FCFAF6; }
html body.pq .pq-filter-grid .pq-btn.green { background: var(--pq-primary); border-color: var(--pq-primary); }

/* Pills: fully rounded, soft fills with strong text (all at least 4.5:1) */
html body.pq .pq-tag { border-radius: 999px; padding: 2px 8px; font-weight: 600; }
html body.pq .pq-tag.ok { background: var(--pq-good-bg); color: var(--pq-good); } html body.pq .pq-tag.warn { background: var(--pq-warn-bg); color: var(--pq-warn); }
html body.pq .pq-tag.bad { background: var(--pq-bad-bg); color: var(--pq-bad); } html body.pq .pq-tag.unread { background: var(--pq-bubble); color: #FFFFFF; }
html body.pq .pq-tag.grey { background: #EFEBE4; color: #4E4B66; }
html body.pq .pc-flag, html body.pq .pc-status, html body.pq .pq-ch-state { border-radius: 999px; padding: 3px 10px; font-weight: 600; font-size: 12px; }
html body.pq .pc-flag.good, html body.pq .pq-ch-state.good, html body.pq .pc-status.s-ok { background: var(--pq-good-bg); color: var(--pq-good); border-color: transparent; }
html body.pq .pc-flag.warn, html body.pq .pq-ch-state.warn, html body.pq .pc-status.s-wait { background: var(--pq-warn-bg); color: var(--pq-warn); border-color: transparent; }
html body.pq .pc-flag.bad, html body.pq .pq-ch-state.bad { background: var(--pq-bad-bg); color: var(--pq-bad); border-color: transparent; }
html body.pq .pc-flag.info { background: var(--pq-info-bg); color: var(--pq-info); border-color: transparent; }

/* Client chart */
html body.pq .pq-tl { background: var(--pq-panel); border-right-color: var(--pq-line); }
html body.pq .pq-tl-head { background: var(--pq-panel-2); font-family: var(--pq-head); font-weight: 700; }
html body.pq .pq-tl-add { background: var(--pq-primary); }
html body.pq .pq-tl-date { background: var(--pq-ai-bg); color: var(--pq-ai); font-weight: 600; }
html body.pq .pq-tl-item { border-bottom-color: var(--pq-line-2); }
html body.pq .pq-tl-text { color: var(--pq-ink); }
html body.pq .pq-ch-head { background: var(--pq-panel); flex-wrap: wrap; row-gap: 8px; }
html body.pq .pq-ch-av { background: linear-gradient(135deg, #F1ECFD, #FFE3EA); color: var(--pq-ink); font-family: var(--pq-head); font-weight: 800; }
html body.pq .pq-ch-head h1 { font-family: var(--pq-head); font-weight: 800; font-size: 26px; text-transform: none; }
html body.pq .pq-ch-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
html body.pq .pq-round { border: 1px solid var(--pq-btn-line); color: var(--pq-muted); background: #FFFFFF; }
html body.pq .pq-round:hover { border-color: var(--pq-ai); color: var(--pq-ai); background: var(--pq-ai-bg); }
html body.pq .pq-ch-tabs { background: var(--pq-panel); border-bottom-color: var(--pq-line); }
html body.pq .pq-ch-tabs button { color: var(--pq-muted); font-weight: 600; font-size: 13px; letter-spacing: .03em; }
html body.pq .pq-ch-tabs button.on { border-bottom-color: var(--pq-primary); color: var(--pq-ink); }
html body.pq .pq-tab-count { display: inline-block; min-width: 18px; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--pq-ai-bg); color: var(--pq-ai); font-size: 11px; font-weight: 700; letter-spacing: 0; text-align: center; }
html body.pq .pq-tab-count.due { background: var(--pq-bad-bg); color: var(--pq-bad); }
html body.pq .pq-ch-main { background: var(--pq-page); }
html body.pq .pq-ch-cards { gap: 20px; }
html body.pq .pq-prog-bar { border-radius: 12px; background: var(--pq-bar); }

/* Measurement based care: trend pill next to the score */
html body.pq .pc-assess { border-radius: 14px; }
html body.pq .pc-assess-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
html body.pq .pc-trend-pill { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: #EFEBE4; color: #4E4B66; font-size: 12px; font-weight: 700; }
html body.pq .pc-trend-pill.good { background: var(--pq-good-bg); color: var(--pq-good); }
html body.pq .pc-trend-pill.bad { background: var(--pq-bad-bg); color: var(--pq-bad); }
html body.pq .pc-assess-bar { border-radius: 99px; background: #F3EEE6; }
html body.pq .pc-assess-bar i { border-radius: 99px; background: linear-gradient(90deg, #6D4FD8, #E8456B); }

/* Diagnoses and medications as chips with the code in small mono text */
html body.pq .pc-prof-row { border-radius: 12px; }
html body.pq .pc-dx-code { display: inline-block; margin-right: 4px; padding: 1px 7px; border-radius: 6px; background: #FFF8E1; border: 1px solid #F1E3B8; color: #5E4A00; font-size: 11.5px; font-weight: 600; }
html body.pq .pc-chart-forms li { border-radius: 12px; }

/* Audit-proof check before signing: one card, score ring, Must fix / Review, passed checks */
html body.pq .pc-ready { padding: 16px; border: 1px solid var(--pq-line); border-radius: 18px; background: #FFFFFF; box-shadow: 0 10px 30px rgba(30, 27, 75, .08); }
html body.pq .pc-ready-head { display: flex; align-items: center; gap: 14px; }
html body.pq .pc-ready-head strong { font-family: var(--pq-head); font-weight: 800; }
html body.pq .pc-ready-ring { --score: 0; --ring: #5A3FC0; display: grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: 50%;
  background: conic-gradient(var(--ring) calc(var(--score) * 1%), #F1ECFD 0); }
html body.pq .pc-ready-ring.bad { --ring: #C72E56; } html body.pq .pc-ready-ring.warn { --ring: #B07A00; } html body.pq .pc-ready-ring.good { --ring: #1F7A45; }
html body.pq .pc-ready-ring .pc-ready-score { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; background: #FFFFFF; color: var(--pq-ink);
  font-family: var(--pq-head); font-size: 17px; font-weight: 800; }
html body.pq .pc-ready-list { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
html body.pq .pc-ready-item { padding: 12px; border: 1px solid #F7CBD6; border-radius: 12px; background: #FFF7F9; }
html body.pq .pc-ready-item:has(.pc-flag.warn) { border-color: #F1E3B8; background: #FFFDF5; }
html body.pq .pc-ready-item .pc-flag.bad { background: var(--pq-bad); color: #FFFFFF; text-transform: uppercase; font-size: 10.5px; letter-spacing: .05em; }
html body.pq .pc-ready-item .pc-flag.warn { text-transform: uppercase; font-size: 10.5px; letter-spacing: .05em; }
html body.pq .pc-ready-item .button.secondary { margin-top: 6px; background: var(--pq-primary); border-color: var(--pq-primary); color: #FFFFFF; }
html body.pq .pc-ready-item:has(.pc-flag.warn) .button.secondary { background: #FFFFFF; border-color: var(--pq-btn-line); color: var(--pq-ink); }
html body.pq .pc-ready-passed { display: grid; gap: 4px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--pq-ink); }
html body.pq .pc-ready-passed li::before { content: "✓"; display: inline-block; width: 18px; color: var(--pq-good); font-weight: 700; }

/* Floating visit bar on the chart (existing actions only) */
html body.pq .pq-ch-main { position: relative; }
html body.pq .pq-dock { position: sticky; bottom: 18px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px);
  margin: -20px auto 24px; padding: 7px 7px 7px 18px; border-radius: 999px; background: var(--pq-bar); color: #FFFFFF; font-size: 13px; box-shadow: 0 12px 30px rgba(30, 27, 75, .25); }
html body.pq .pq-dock-btn { min-height: 40px; padding: 8px 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #FFFFFF; font: 600 13px var(--pq-font); cursor: pointer; }
html body.pq .pq-dock-btn:hover { background: rgba(255, 255, 255, .2); }
html body.pq .pq-dock-btn.hot { background: var(--pq-primary); }
html body.pq .pq-dock-btn:focus-visible { outline: 2px solid #FF8FA8; outline-offset: 2px; }

/* Bookings: calendar with soft corners and a clearance pill on each booking */
html body.pq .pq-cal-grid, html body.pq .pq-month { border-radius: var(--pq-radius); overflow: hidden; border-color: var(--pq-line); }
html body.pq .pq-cal-head > div { color: var(--pq-ink); font-family: var(--pq-head); font-weight: 700; font-size: 15px; }
html body.pq .pq-ev { border-radius: 8px; border-color: rgba(30, 27, 75, .08); box-shadow: 0 1px 2px rgba(30, 27, 75, .08); }
html body.pq .pq-ev.svc-0 { background: #6D4FD8; } html body.pq .pq-ev.svc-1 { background: #2E7D52; } html body.pq .pq-ev.svc-2 { background: #C72E56; }
html body.pq .pq-ev.svc-3 { background: #A85A0C; } html body.pq .pq-ev.svc-4 { background: #2853C4; } html body.pq .pq-ev.svc-5 { background: #1E6E6A; }
html body.pq .pq-ev-ready { display: inline-block; margin-top: 3px; padding: 1px 7px; border-radius: 999px; background: #FFFFFF; font-size: 10.5px; font-weight: 700; }
html body.pq .pq-ev-ready.good { color: var(--pq-good); } html body.pq .pq-ev-ready.warn { color: var(--pq-warn); } html body.pq .pq-ev-ready.bad { color: var(--pq-bad); }
html body.pq .pq-now { border-top: 2px solid var(--pq-primary); }
html body.pq .pq-mini td button.today { background: var(--pq-primary); }
html body.pq .pq-mini td button.sel { box-shadow: inset 0 0 0 2px var(--pq-primary); }
html body.pq .pq-rail-box { border-radius: var(--pq-radius-sm); }

/* Messaging, tasks, popups */
html body.pq .pq-avatar { background: linear-gradient(135deg, #6D4FD8, #C72E56); font: 700 13px var(--pq-head); }
html body.pq .pq-task { border-radius: 14px; background: #FFFFFF; border: 1px solid var(--pq-line); }
html body.pq .pq-task .ring { border-color: var(--pq-ai); }
html body.pq .pq-pop { border-radius: 0 0 14px 14px; }
html body.pq .pq-tasks-tabs button.on { border-bottom-color: var(--pq-primary); }
html body.pq .pq-ch-tabs button { padding: 0 14px; }

/* Calendar toolbar wraps instead of running under the right rail (same clicks at 1280 and 1440) */
html body.pq .pq-cal-wrap > :first-child { min-width: 0; }
html body.pq .pq-cal-bar { flex-wrap: wrap; row-gap: 8px; }
html body.pq .pq-cal-bar h2 { min-width: 0; margin-right: 12px; }
html body.pq .pq-cal-bar .pq-mode { margin-left: 0; }
/* Clearance on a booking: short bookings keep a right gutter for a small dot, tall ones show the pill on its own line */
html body.pq .pq-ev.has-ready { padding-right: 18px; }
html body.pq .pq-ev .pq-ev-ready { position: absolute; top: 5px; right: 4px; width: 10px; height: 10px; margin: 0; padding: 0; border: 2px solid #FFFFFF; border-radius: 50%; box-shadow: 0 0 0 1px rgba(30, 27, 75, .25); }
html body.pq .pq-ev .pq-ev-ready.good { background: #1F7A45; } html body.pq .pq-ev .pq-ev-ready.warn { background: #E0A100; } html body.pq .pq-ev .pq-ev-ready.bad { background: #E8456B; }
html body.pq .pq-ev .pq-ev-ready-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html body.pq .pq-ev.has-ready.tall { padding-right: 4px; }
html body.pq .pq-ev.tall .pq-ev-ready { position: static; display: inline-block; width: auto; height: auto; margin-top: 4px; padding: 1px 8px; border: 0; border-radius: 999px; background: #FFFFFF; box-shadow: none; font-size: 10.5px; font-weight: 700; }
html body.pq .pq-ev.tall .pq-ev-ready.good { background: #FFFFFF; color: #1F7A45; } html body.pq .pq-ev.tall .pq-ev-ready.warn { background: #FFFFFF; color: #7A4F00; } html body.pq .pq-ev.tall .pq-ev-ready.bad { background: #FFFFFF; color: #B4234A; }
html body.pq .pq-ev.tall .pq-ev-ready-t { position: static; width: auto; height: auto; overflow: visible; clip: auto; }

/* ==== Brand: "The Current" mark and the split sign-in (owner 2026-10-20) ============================================ */
html body.pq .topbar .brand-mark { border: 0; box-shadow: none; background: none; border-radius: 9px; }
html body.pq .topbar .brand-copy strong .pq-brand-c { color: #FF8FA8; }
/* RJ's logo (2026-11-20), bigger than the old mark: the waves on a white tile (icon-192) plus the light-text wordmark, since
   the bar is navy. Other brand names keep the text (app.js drops .has-logo). The bar stays 54px at every width; the
   wordmark steps down where the full menu needs the room and gives way on the narrowest phones. Never stretched. */
html body.pq .topbar .brand { gap: 10px; }
html body.pq .topbar .brand-mark { width: 40px; height: 40px; }
html body.pq .topbar .brand-word { display: block; flex: none; width: auto; height: 26px; }
html body.pq .topbar .brand.has-logo .brand-copy, html body.pq .topbar .brand:not(.has-logo) .brand-word { display: none; }
@media (min-width: 1280px) and (max-width: 1365px) { html body.pq .topbar .brand-word { height: 22px; } }
@media (min-width: 1180px) and (max-width: 1279px) { html body.pq .topbar .brand-word { display: none; } }
@media (max-width: 720px) { html body.pq .topbar .brand { gap: 8px; margin-left: 6px; } html body.pq .topbar .brand-word { height: 16px; } }
@media (max-width: 384px) { html body.pq .topbar .brand-word { display: none; } }

html body.pq .login-shell.pc-login { min-height: 100vh; display: flex; flex-wrap: wrap; place-items: initial; background: #FAF7F2; color: #1E1B4B; font-family: var(--pq-font); }
html body.pq .pc-login-hero { flex: 1 1 520px; position: relative; overflow: hidden; box-sizing: border-box; background: #1E1B4B; color: #FFFFFF;
  padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
html body.pq .pc-login-waves { position: absolute; right: -160px; bottom: -60px; width: 760px; height: 420px; opacity: .18; pointer-events: none; }
html body.pq .pc-login-brand { position: relative; display: flex; align-items: center; gap: 16px; }
html body.pq .pc-login-mark { width: 60px; height: 60px; border-radius: 13px; display: block; flex: none; }
html body.pq .pc-login-word { line-height: 0; }
html body.pq .pc-login-wordmark { display: block; width: auto; max-width: 100%; height: 34px; object-fit: contain; object-position: left center; }
html body.pq .pc-login-tag { margin-top: 8px; font-size: 11px; letter-spacing: .18em; color: #CFC8F5; font-weight: 600; }
html body.pq .pc-login-pitch { position: relative; max-width: 520px; display: flex; flex-direction: column; gap: 18px; }
html body.pq .pc-login-pitch h1 { margin: 0; font: 800 44px/1.1 var(--pq-head); letter-spacing: -.02em; color: #FFFFFF; text-transform: none; }
html body.pq .pc-login-pitch h1 span { color: #FF8FA8; }
html body.pq .pc-login-pitch p { margin: 0; color: #E4E0FA; font-size: 17px; line-height: 1.6; }
html body.pq .pc-login-points { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
html body.pq .pc-login-points li { display: flex; align-items: center; gap: 10px; color: #FFFFFF; font-size: 15px; }
html body.pq .pc-login-points li span { width: 26px; height: 26px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 143, 168, .18); color: #FF8FA8; font-weight: 700; }
html body.pq .pc-login-secure { position: relative; color: #CFC8F5; font-size: 13px; }
html body.pq .pc-login-side { flex: 1 1 460px; box-sizing: border-box; padding: 56px 40px; display: flex; align-items: center; justify-content: center; }
html body.pq .login-card.pc-login-card { width: 100%; max-width: 420px; box-sizing: border-box; text-align: left; background: #FFFFFF; border: 1px solid #ECE6DC;
  border-radius: 24px; padding: 40px; box-shadow: 0 20px 50px rgba(30, 27, 75, .08); display: flex; flex-direction: column; gap: 22px; backdrop-filter: none; }
html body.pq .pc-login-card h2 { margin: 0; font: 800 28px var(--pq-head); color: #1E1B4B; letter-spacing: -.01em; text-transform: none; }
html body.pq .pc-login-card > p { margin: -14px 0 0; color: #5B5878; font-size: 15px; }
html body.pq .pc-login-card #login-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border: 0; border-radius: 14px;
  background: #C72E56; color: #FFFFFF; font: 700 16px var(--pq-font); cursor: pointer; box-shadow: none; }
html body.pq .pc-login-card #login-button:hover { background: #A9264A; }
html body.pq .pc-login-card #login-button:focus-visible { outline: 3px solid #A48BF5; outline-offset: 2px; }
html body.pq .pc-login-mfa { display: flex; align-items: center; gap: 10px; background: #F1ECFD; border-radius: 12px; padding: 12px 14px; color: #5A3FC0; font-size: 13px; font-weight: 600; }
html body.pq .pc-login-foot { border-top: 1px solid #F0EAE0; padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #5B5878; font-size: 13px; }
html body.pq .pc-login-foot a { color: #C72E56; }
@media (max-width: 700px) {
  html body.pq .pc-login-hero { padding: 32px 24px; gap: 24px; }
  html body.pq .pc-login-brand { gap: 12px; }
  html body.pq .pc-login-mark { width: 52px; height: 52px; border-radius: 12px; }
  html body.pq .pc-login-wordmark { height: 26px; }
  html body.pq .pc-login-pitch h1 { font-size: 32px; }
  html body.pq .pc-login-points, html body.pq .pc-login-pitch p { display: none; }
  html body.pq .pc-login-side { padding: 24px 16px 40px; }
  html body.pq .login-card.pc-login-card { padding: 28px 22px; }
}

html body.pq .pq-tl-head { position: relative; }
html body.pq .pq-tl-menu { top: 40px; right: 0; left: auto; }

/* Evidence panel (owner 2026-10-24): label flags as chips, most serious first, every one linked to its FDA label section. */
html body.pq .pq-ev-form { display: grid; gap: 10px; margin-bottom: 14px; }
html body.pq .pq-ev-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--pq-muted, #777); }
html body.pq .pq-ev-form textarea, html body.pq .pq-ev-form input:not([type=checkbox]), html body.pq .pq-ev-form select { border: 1px solid #D5D5D5; border-radius: 4px; padding: 8px; font: inherit; color: var(--pq-text, #333); background: var(--pq-panel, #fff); }
html body.pq .pq-ev-row { display: grid; grid-template-columns: 80px 1fr auto; gap: 10px; align-items: end; }
html body.pq .pq-ev-check { flex-direction: row !important; align-items: center; gap: 6px !important; padding-bottom: 8px; }
html body.pq .pq-ev-chips, html body.pq .pq-ev-points, html body.pq .pq-ev-srclist { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
html body.pq .pq-ev-chip { border: 1px solid #E2E2E2; border-left: 4px solid #9A9A9A; border-radius: 4px; padding: 10px 12px; background: var(--pq-panel, #fff); }
html body.pq .pq-ev-chip strong { display: block; font-size: 13px; margin: 4px 0; }
html body.pq .pq-ev-chip p { margin: 0 0 6px; font-size: 12px; line-height: 1.45; }
html body.pq .pq-ev-chip.sev-contraindicated, html body.pq .pq-ev-chip.sev-high { border-left-color: #C0392B; }
html body.pq .pq-ev-chip.sev-major { border-left-color: #E67E22; }
html body.pq .pq-ev-chip.sev-moderate { border-left-color: #2E86C1; }
html body.pq .pq-ev-chip.pq-ev-pending { border-left-color: #9A9A9A; border-style: dashed; background: #FAFAFA; }
html body.pq .pq-ev-chip.pq-ev-pending .pq-ev-sev { background: #FFF4D6; color: #7A5B00; }
html body.pq .pq-ev-facts h3 { font-size: 13px; margin: 10px 0 6px; }
html body.pq .pq-ev-glist, html body.pq .pq-ev-fact ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
html body.pq .pq-ev-fact { border: 1px solid #E2E2E2; border-radius: 4px; padding: 8px 10px; margin-bottom: 6px; background: var(--pq-panel, #fff); }
html body.pq .pq-ev-fact summary { cursor: pointer; font-weight: 700; font-size: 13px; }
html body.pq .pq-ev-fact .pq-ev-count { font-size: 10px; font-weight: 700; border-radius: 10px; padding: 1px 7px; background: #F1F1F1; color: #555; }
html body.pq .pq-ev-fi { font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
html body.pq .pq-ev-fi.fi-pgx .pq-ev-kind { background: #EDE7F6; color: #4A2C8A; }
html body.pq .pq-ev-sum { margin: 4px 0; padding-left: 8px; border-left: 2px solid #E2E2E2; color: #444; }
html body.pq .pq-ev-tags { display: flex; gap: 6px; }
html body.pq .pq-ev-kind, html body.pq .pq-ev-sev, html body.pq .pq-ev-cite { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-radius: 10px; padding: 2px 8px; background: #F1F1F1; color: #555; }
html body.pq .sev-contraindicated .pq-ev-sev, html body.pq .sev-high .pq-ev-sev { background: #FADBD8; color: #922B21; }
html body.pq .sev-major .pq-ev-sev { background: #FDEBD0; color: #9C5110; }
html body.pq .pq-ev-srcs { display: flex; flex-wrap: wrap; gap: 8px; }
html body.pq .pq-ev-src { font-size: 11px; color: var(--pq-link, #1A73E8); }
html body.pq .pq-ev-answer h3 { font-size: 13px; margin: 6px 0; }
html body.pq .pq-ev-answer h4 { font-size: 12px; margin: 10px 0 6px; color: #777; }
html body.pq .pq-ev-points li, html body.pq .pq-ev-srclist li { font-size: 12px; line-height: 1.45; }
html body.pq .pq-ev-none, html body.pq .pq-ev-wait, html body.pq .pq-ev-foot { font-size: 12px; color: #777; }
html body.pq .pq-ev-draft { color: #444; white-space: pre-line; border-left: 3px solid #cfd8e3; padding: 4px 8px; }
html body.pq .pq-ev-sec { margin: 10px 0 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #555; }
html body.pq .pq-ev-follow { margin: 8px 0 2px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
html body.pq .pq-ev-followq { font-size: 12px; border: 1px solid #cfd8e3; background: #F7F9FC; border-radius: 14px; padding: 3px 10px; cursor: pointer; text-align: left; }
html body.pq .pq-ev-followq:hover { background: #EDF2F9; }
html body.pq .pq-ev-footer { font-size: 11.5px; color: #777; border-top: 1px solid #eee; padding-top: 6px; margin: 8px 0 0; }
html body.pq .pq-ev-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-radius: 10px; padding: 1px 7px; background: #E6F4EA; color: #1F7A45; }
html body.pq .pq-ev-badge-practice { background: #EEF0FA; color: #3B3F8C; }
html body.pq .pq-ev-practice { background: #EEF0FA; color: #3B3F8C; }
html body.pq .pq-ev-cited .pq-ev-cite { background: #1F7A45; color: #fff; }
html body.pq .pq-ev-gap { font-size: 12px; color: #6b5a2e; background: #fbf6e6; border-left: 3px solid #d9c27a; padding: 4px 8px; margin: 6px 0 0; }
html body.pq .pq-ev-points li.pq-ev-pending { color: #666; border-left: 2px dashed #bbb; padding-left: 6px; }

/* One Command Center (owner 2026-10-29): PracticeQ tabs over the reports that used to be separate menu entries */
html body.pq .pc-cc-tabs { margin: 0 0 16px; border-bottom: 1px solid #d5dbe2; flex-wrap: wrap; }
html body.pq .pc-cc-tabs button { height: 44px; }

/* ---- Production polish 11-11: chart + phone fit and finish ------------------------------------------------------ */
/* Consent chips wrap inside the 320px timeline instead of running off the edge */
html body.pq .pq-tl .pc-consent-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; }
html body.pq .pq-tl .pc-consent-chips .pc-flag { max-width: 100%; white-space: normal; text-align: left; line-height: 1.3; }
/* Chart tabs stay on one row and scroll, no second 66px band */
html body.pq .pq-ch-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
html body.pq .pq-ch-tabs button { flex: none; white-space: nowrap; }
@media (max-width: 1179px) {
  /* Patient name and tabs first, timeline after the work area */
  html body.pq .pq-chart { display: flex; flex-direction: column; }
  html body.pq .pq-chart > .pq-ch-main { order: 1; }
  html body.pq .pq-chart > .pq-tl { order: 2; max-height: 340px; border-top: 1px solid var(--pq-line); }
  html body.pq .pq-ch-head { min-height: 64px; padding: 10px 12px; }
  html body.pq .pq-ch-tools { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 720px) {
  /* Keep the last row of every page clear of the floating dock and bottom menu */
  html body.pq .main, html body.pq .content { padding-bottom: 150px; }
  /* Dock: name collapses to an icon, Stop stays one tap away */
  html body.pq .pq-user { right: 8px; bottom: calc(76px + env(safe-area-inset-bottom)); border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
  html body.pq #pq-user-name { display: none; }
  html body.pq .pq-user-button { max-width: none; padding: 0 10px; }
  html body.pq .pq-user-button::before { content: "\263A"; font-size: 15px; }
  html body.pq .pq-fab { width: 48px; height: 48px; bottom: calc(76px + env(safe-area-inset-bottom)); }
  /* Chart subbar: search full width, buttons share one row */
  html body.pq .pq-sub-center.pq-chart-sub { gap: 8px; width: 100%; flex-wrap: nowrap; }
  html body.pq .pq-sub-center.pq-chart-sub .button, html body.pq .pq-sub-center.pq-chart-sub button { flex: 1 1 0; white-space: nowrap; }
  /* Tables: tighter cells so 4 columns fit a phone */
  html body.pq .pq-panel-body table th, html body.pq .pq-panel-body table td { padding: 8px 6px; font-size: 13px; }
  html body.pq .pq-dash-hello { font-size: 18px; }
  html body.pq .pq-ch-cards .pc-bi-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 12px; }
  /* Inputs at 16px so iOS Safari does not zoom on focus */
  html body.pq input, html body.pq select, html body.pq textarea { font-size: 16px; }
}

/* ---- Andrea's chart shell (2026-11-23): Documentation fold, header with ID photo and demographics, vitals table, files labels */
html body.pq .pq-tl-head { position: relative; }
html body.pq .pq-tl-fold { display: grid; place-items: center; height: 36px; border: 0; border-left: 1px solid var(--pq-line-2); background: none; color: var(--pq-ink-2); cursor: pointer; }
html body.pq .pq-tl-fold svg { width: 14px; height: 14px; transition: transform .15s; }
html body.pq .pq-tl-fold:hover { background: var(--pq-panel); color: var(--pq-link); }
html body.pq .pq-tl-fold:focus-visible { outline: 2px solid var(--pq-link); outline-offset: -2px; }
html body.pq .pq-chart.pq-doc-folded { grid-template-columns: 44px minmax(0, 1fr); }
html body.pq .pq-tl-folded .pq-tl-head { grid-template-columns: 1fr; }
html body.pq .pq-tl-folded .pq-tl-head > svg, html body.pq .pq-tl-folded .pq-tl-head > span, html body.pq .pq-tl-folded .pq-tl-add, html body.pq .pq-tl-folded .pq-tl-menu { display: none; }
html body.pq .pq-tl-folded .pq-tl-fold { border-left: 0; }
html body.pq .pq-tl-folded .pq-tl-fold svg { transform: rotate(180deg); }
html body.pq .pq-ch-photo { object-fit: cover; flex: none; }
html body.pq .pq-ch-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
html body.pq .pq-ch-demo { display: flex; flex-wrap: wrap; gap: 3px 16px; color: #555555; font-size: 13px; }
html body.pq .pq-ch-demo small { margin-right: 5px; color: #777777; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
html body.pq .pq-ch-cards .pc-demo .pc-demo-emerg { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--pq-line-2); }
html body.pq .pq-ch-cards .pc-demo h4, html body.pq .pq-ch-cards .pc-prof-sub, html body.pq .pq-ch-cards .pc-cards-banks h4 { margin: 0 0 12px; font: 600 13px var(--pq-font); color: #555555; letter-spacing: .06em; text-transform: uppercase; }
html body.pq .pq-ch-cards .pc-prof-sub { margin-top: 14px; }
html body.pq .pq-ch-cards .pc-cards-banks { margin: 14px 0; padding: 14px 0; border-top: 1px solid var(--pq-line-2); border-bottom: 1px solid var(--pq-line-2); }
html body.pq .pq-ch-cards .pc-clinical-support > h3 { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
/* A wide table (the vitals rows) scrolls inside its card; the card never widens the page on a phone. */
html body.pq .pq-ch-cards > section, html body.pq .pq-ch-cards > article, html body.pq .pq-ch-cards .pc-chart-card { min-width: 0; }
html body.pq .pc-vitals .table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
html body.pq .pc-vitals-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13.5px; }
html body.pq .pc-vitals-table th { padding: 6px 8px; border-bottom: 1px solid var(--pq-line-2); color: #555555; font-size: 12px; font-weight: 600; text-align: left; text-transform: uppercase; letter-spacing: .04em; }
html body.pq .pc-vitals-table td { padding: 9px 8px; border-bottom: 1px solid var(--pq-line-2); vertical-align: top; }
html body.pq .pc-vitals-table td small, html body.pq .pc-vitals-table .pc-vital-by { display: block; }
html body.pq .pc-vitals-table td small { font-size: 11.5px; }
html body.pq .pc-vital-editor .pc-vital-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html body.pq .pc-file-label { display: inline-flex; align-items: center; gap: 6px; }
html body.pq .pc-file-label select { width: auto; max-width: 160px; height: 28px; padding: 2px 6px; font-size: 12.5px; }
html body.pq .pc-consent-row > .pc-flag { margin-right: 8px; }
@media (max-width: 1179px) {
  html body.pq .pq-chart.pq-doc-folded { grid-template-columns: minmax(0, 1fr); }
  html body.pq .pq-tl-folded { max-height: 36px; }
  html body.pq .pq-tl-folded .pq-tl-head { grid-template-columns: 62px 1fr 36px; }
  html body.pq .pq-tl-folded .pq-tl-head > svg, html body.pq .pq-tl-folded .pq-tl-head > span { display: block; }
  html body.pq .pq-tl-folded .pq-tl-head > span { text-align: left; }
  html body.pq .pq-ch-head { flex-wrap: wrap; padding: 10px 12px; }
  html body.pq .pq-ch-demo { font-size: 12px; }
  html body.pq .pc-vitals-table { font-size: 12.5px; }
  html body.pq .pc-vital-editor .pc-vital-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- NP dashboard (Andrea 2026-11-23, slice G): Inbox + Medication Queue | today's patients | Pending Patient Care Tasks ---- */
html body.pq[data-pq-view="npdash"] #filters { display: none !important; }
html body.pq .pq-npd { max-width: 1516px; }
html body.pq .pq-npd-top { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
html body.pq .pq-npd-top h2 { margin: 0; font-size: 24px; font-weight: 400; color: var(--pq-ink); }
html body.pq .pq-npd-pick { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; color: var(--pq-muted); }
html body.pq .pq-npd-pick select { height: 34px; padding: 0 8px; border: 1px solid var(--pq-btn-line); border-radius: 3px; background: var(--pq-btn); color: var(--pq-ink); font: 14px var(--pq-font); }
html body.pq .pq-npd-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr) 300px; gap: 15px; align-items: start; }
html body.pq .pq-npd-left, html body.pq .pq-npd-right { display: grid; gap: 15px; }
html body.pq .pq-npd-panel, html body.pq .pq-npd-main { background: var(--pq-panel); border: 1px solid var(--pq-line); border-radius: 4px; box-shadow: var(--pq-shadow); overflow: hidden; }
html body.pq .pq-npd-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--pq-dark-btn); color: #FFFFFF; }
html body.pq .pq-npd-title { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: 700 17px var(--pq-font); cursor: pointer; text-align: left; }
html body.pq .pq-npd-title:hover { text-decoration: underline; }
html body.pq .pq-npd-title .pq-i { width: 14px; height: 14px; opacity: .8; }
html body.pq .pq-npd-count { margin-left: auto; padding: 2px 8px; border-radius: 10px; background: rgba(255, 255, 255, .18); font-size: 12px; white-space: nowrap; }
html body.pq .pq-npd-body { max-height: 560px; overflow-y: auto; }
html body.pq .pq-npd-row { display: block; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--pq-line-2); background: none; color: var(--pq-ink); font: 14px var(--pq-font); text-align: left; cursor: pointer; }
html body.pq .pq-npd-row:hover { background: var(--pq-panel-2); }
html body.pq .pq-npd-row.unread strong { font-weight: 700; } html body.pq .pq-npd-row strong { font-weight: 600; }
html body.pq .pq-npd-row.urgent, html body.pq .pq-npd-rx.urgent { box-shadow: inset 3px 0 0 var(--pq-red); }
html body.pq .pq-npd-line1 { display: flex; align-items: baseline; gap: 8px; }
html body.pq .pq-npd-line1 time { margin-left: auto; color: var(--pq-muted); font-size: 12px; white-space: nowrap; }
html body.pq .pq-npd-preview { display: block; margin-top: 2px; overflow: hidden; color: var(--pq-ink-2); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
html body.pq .pq-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html body.pq .pq-npd-rx { padding: 10px 12px; border-bottom: 1px solid var(--pq-line-2); font-size: 14px; }
html body.pq .pq-npd-rx .pq-client { padding: 0; border: 0; background: none; color: var(--pq-link); font: 600 14px var(--pq-font); cursor: pointer; }
html body.pq .pq-npd-med { margin: 6px 0 2px; font-size: 15px; } html body.pq .pq-npd-med span { color: var(--pq-ink-2); }
html body.pq .pq-npd-sub { color: var(--pq-muted); font-size: 12.5px; line-height: 1.4; }
html body.pq .pq-npd-by { margin-top: 6px; }
html body.pq .pq-npd-fine { padding: 8px 12px 10px; }
html body.pq .pq-npd-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
html body.pq .pq-btn.sm { height: 28px; padding: 2px 10px; font-size: 13px; }
html body.pq .pq-npd-mainhead { display: flex; align-items: center; gap: 12px; padding: 12px 14px 4px; }
html body.pq .pq-npd-mainhead h3 { margin: 0; font-size: 20px; font-weight: 600; color: var(--pq-ink); }
html body.pq .pq-npd-toggle { margin-left: auto; }
html body.pq .pq-npd-prov { padding: 0 14px 10px; }
html body.pq .pq-npd-table { width: 100%; border-collapse: collapse; }
html body.pq .pq-npd-visit { cursor: pointer; } html body.pq .pq-npd-visit:hover td { background: var(--pq-panel-2); }
html body.pq .pq-npd-table td { padding: 11px 14px; border-top: 1px solid var(--pq-line-2); border-bottom: 0; vertical-align: middle; }
html body.pq .pq-npd-table small { display: block; color: var(--pq-muted); font-size: 12px; }
html body.pq .pq-npd-time { width: 86px; white-space: nowrap; } html body.pq .pq-npd-time strong { font-size: 15px; }
html body.pq .pq-npd-who { display: flex; align-items: center; gap: 10px; }
html body.pq .pq-npd-ava { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; background: #EDE8F5; color: #4B3A7A; font-size: 13px; font-weight: 700; }
html body.pq .pq-npd-st { width: 110px; text-align: right; }
html body.pq .pq-npd-cal { padding: 0 8px 8px; }
html body.pq .pq-cal-embedded { grid-template-columns: minmax(0, 1fr); padding-right: 0; }
html body.pq .pq-cal-embedded [data-pq-book], html body.pq .pq-cal-embedded [data-pq-print] { display: none; }
html body.pq .pq-cal-embedded .pq-cal-bar h2 { min-width: 0; font-size: 22px; }
html body.pq .pq-cal-embedded .pq-cal-bar .pq-mode { margin: 0 auto 0 14px; }
html body.pq .pq-cal-embedded .pq-cal-body { max-height: 560px; }
html body.pq .pq-npd-task { position: relative; margin: 10px 12px; padding: 12px 26px 10px 12px; }
html body.pq .pq-npd-task h5 { margin: 3px 0 8px; font-size: 14px; } html body.pq .pq-npd-task .meta { flex-wrap: wrap; gap: 8px 14px; font-size: 13px; }
html body.pq .pq-npd-task .meta svg { width: 13px; height: 13px; vertical-align: -2px; }
html body.pq .pq-npd-dot { position: absolute; top: 14px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: #4A90D9; }
html body.pq .pq-npd-dot.red { background: var(--pq-red); }
@media (max-width: 1179px) {
  html body.pq .pq-npd-grid { grid-template-columns: minmax(0, 1fr); }
  html body.pq .pq-npd-main { order: -1; }
  html body.pq .pq-npd-body { max-height: none; }
  html body.pq .pq-npd-task { margin: 10px 12px; }
}
@media (max-width: 720px) {
  html body.pq .pq-sub-right .pq-group { flex-wrap: wrap; }   /* My Dashboard · Admin Dashboard · View as NP fit a phone */
  html body.pq .pq-npd-top { flex-wrap: wrap; } html body.pq .pq-npd-pick { margin-left: 0; width: 100%; } html body.pq .pq-npd-pick select { flex: 1; min-width: 0; }
  html body.pq .pq-npd-mainhead { flex-wrap: wrap; } html body.pq .pq-npd-toggle { margin-left: 0; }
  html body.pq .pq-npd-table td { padding: 10px 10px; } html body.pq .pq-npd-time { width: 70px; } html body.pq .pq-npd-st { display: none; }
  html body.pq .pq-npd-acts .pq-btn { flex: 1 1 auto; }
}
