:root{--bg:#08090a;--panel:#0d0f11;--panel-2:#101214;--line:#202326;--line-soft:#181a1d;--text:#f4f5f6;--muted:#9a9fa8;--muted-2:#686d75;--magenta:#e20074;--magenta-bright:#ff1684;--green:#68d391;--yellow:#f6c945;--sidebar:220px;--topbar:68px;--radius:7px;--ease:cubic-bezier(.25,.46,.45,.94)}
*{box-sizing:border-box}html{background:var(--bg);color-scheme:dark}body{margin:0;min-width:1100px;background:var(--bg);color:var(--text);font-family:Inter,"SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;letter-spacing:-.01em}.svg-sprite{position:absolute;width:0;height:0;overflow:hidden}button,input,textarea{font:inherit}.ambient{position:fixed;pointer-events:none;border-radius:50%;filter:blur(1px);opacity:.5;z-index:0}.ambient-one{width:620px;height:620px;left:20%;top:-390px;background:radial-gradient(circle,rgba(226,0,116,.055),transparent 68%)}.ambient-two{width:540px;height:540px;right:-290px;bottom:-300px;background:radial-gradient(circle,rgba(255,255,255,.028),transparent 68%)}
svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);z-index:20;border-right:1px solid var(--line);background:rgba(8,9,10,.94);backdrop-filter:blur(22px);display:flex;flex-direction:column}.brand{height:var(--topbar);display:flex;align-items:center;gap:10px;padding:0 22px;border-bottom:1px solid var(--line);font-size:18px;font-weight:600;letter-spacing:-.03em}.brand-mark{display:grid;place-items:center;width:24px;height:24px;border-radius:5px;background:var(--magenta);font-size:15px;font-weight:800;color:white;box-shadow:0 0 22px rgba(226,0,116,.18)}.nav-label{padding:26px 20px 10px;text-transform:uppercase;font-size:10px;font-weight:600;letter-spacing:.08em;color:var(--muted-2)}.primary-nav{padding:0 8px;display:grid;gap:3px}.nav-item{position:relative;width:100%;height:38px;border:0;border-radius:6px;background:transparent;color:var(--muted);display:flex;align-items:center;gap:11px;padding:0 11px;cursor:pointer;text-align:left;transition:background .12s var(--ease),color .12s var(--ease),transform .12s var(--ease)}.nav-item:hover{background:rgba(255,255,255,.035);color:#d9dce1}.nav-item:active{transform:scale(.985)}.nav-item.active{background:rgba(255,255,255,.055);color:var(--text)}.nav-item.active:before{content:"";position:absolute;left:-8px;width:2px;height:20px;border-radius:0 2px 2px 0;background:var(--magenta-bright);box-shadow:0 0 10px rgba(255,22,132,.35)}.nav-item.active svg{color:var(--magenta-bright)}.nav-count{margin-left:auto;color:var(--muted-2);font-size:11px}.soon{margin-left:auto;border:1px solid var(--line);border-radius:4px;padding:2px 5px;color:var(--muted-2);font-size:9px;text-transform:uppercase;letter-spacing:.05em}.sidebar-foot{margin-top:auto;border-top:1px solid var(--line)}.system-line{display:flex;align-items:center;gap:8px;padding:18px 20px 5px;font-size:12px;color:#c5c8ce}.system-sub{padding-left:37px;color:var(--muted-2);font-size:11px}.profile{margin:17px 8px 8px;padding:10px;display:flex;align-items:center;gap:9px;border-radius:6px;transition:background .12s var(--ease)}.profile:hover{background:rgba(255,255,255,.035)}.profile>div:nth-child(2){display:grid;gap:3px;min-width:0}.profile strong{font-size:12px;font-weight:520}.profile span{color:var(--muted-2);font-size:10px}.profile .icon-button{margin-left:auto}.avatar{width:30px;height:30px;flex:0 0 auto;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#8d3b73,#4b2141);color:white;font-size:10px;font-weight:650}.avatar.small{width:28px;height:28px}.avatar.purple{background:linear-gradient(135deg,#6f5ade,#322b69)}.avatar.coral{background:linear-gradient(135deg,#d96682,#643343)}.avatar.blue{background:linear-gradient(135deg,#4381a4,#233f54)}
.topbar{position:fixed;z-index:15;left:var(--sidebar);right:0;top:0;height:var(--topbar);display:grid;grid-template-columns:1fr minmax(360px,510px) auto;align-items:center;gap:22px;padding:0 24px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,rgba(11,12,13,.96),rgba(8,9,10,.88));backdrop-filter:blur(22px)}.breadcrumbs{display:flex;align-items:center;gap:13px;color:var(--muted);white-space:nowrap}.breadcrumbs b{font-weight:400;color:#4f5359}.breadcrumbs strong{color:#e4e6e9;font-weight:510}.search-trigger{height:36px;border:1px solid #272a2e;border-radius:7px;background:rgba(255,255,255,.02);color:var(--muted);display:flex;align-items:center;gap:10px;padding:0 10px;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.02);transition:border-color .12s var(--ease),background .12s var(--ease)}.search-trigger:hover{border-color:#363a3f;background:rgba(255,255,255,.035)}.search-trigger span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-trigger kbd{margin-left:auto}.top-actions{display:flex;gap:4px;border-left:1px solid var(--line);padding-left:14px}.icon-button{width:32px;height:32px;border:0;border-radius:6px;background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer;position:relative}.icon-button:hover{background:rgba(255,255,255,.045);color:#e3e5e8}.top-actions i{position:absolute;width:5px;height:5px;border-radius:50%;background:var(--magenta-bright);right:5px;top:4px;box-shadow:0 0 0 2px var(--bg)}kbd{border:1px solid var(--line);border-radius:4px;background:#121416;color:#737880;padding:2px 5px;font-family:inherit;font-size:10px;box-shadow:inset 0 1px rgba(255,255,255,.04)}
.main-shell{position:relative;z-index:1;margin-left:var(--sidebar);padding-top:var(--topbar);min-height:100vh}.page{display:none;padding:30px 28px 48px;max-width:1510px;margin:0 auto}.page.active{display:block;animation:page-in .22s var(--ease)}@keyframes page-in{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}h1,h2,p{margin:0}h1{font-size:27px;line-height:1.2;letter-spacing:-.035em;font-weight:610}h2{font-size:14px;line-height:1.4;font-weight:590;letter-spacing:-.015em}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:24px}.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:10px;color:var(--muted-2);font-weight:600;margin-bottom:8px}.subhead{color:var(--muted);margin-top:7px;line-height:1.5}.button{height:36px;border:1px solid #2b2e32;border-radius:6px;background:rgba(255,255,255,.018);color:#e9eaec;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;transition:transform .1s var(--ease),background .12s var(--ease),border-color .12s var(--ease)}.button:hover{background:rgba(255,255,255,.05);border-color:#3a3e43}.button:active{transform:scale(.98)}.button svg{width:16px;height:16px}.button-primary{background:linear-gradient(180deg,#eb0b7d,#d90070);border-color:#f11a87;color:white;box-shadow:0 5px 24px rgba(226,0,116,.12),inset 0 1px rgba(255,255,255,.2)}.button-primary:hover{background:linear-gradient(180deg,#f31b89,#e20074);border-color:#ff2c96}.button-outline-magenta{color:var(--magenta-bright);border-color:rgba(255,22,132,.55)}.button-outline-magenta:hover{background:rgba(226,0,116,.08);border-color:var(--magenta-bright)}.panel{position:relative;border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(145deg,rgba(16,18,20,.93),rgba(10,12,14,.9));box-shadow:inset 0 1px rgba(255,255,255,.012);overflow:hidden}.spotlight:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:0;background:radial-gradient(220px circle at var(--spot-x,50%) var(--spot-y,0%),rgba(255,255,255,.045),transparent 70%);transition:opacity .15s var(--ease)}.spotlight:hover:before{opacity:1}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:10px}.metric{padding:16px 17px;min-height:128px}.metric-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px}.metric-top svg{color:#6c7179}.metric-value{font-size:28px;font-weight:610;letter-spacing:-.035em;margin:17px 0 5px}.metric p{font-size:11px;color:var(--muted-2)}.positive{color:var(--green)!important}.warning{color:var(--yellow)}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:7px}.status-dot.green,.green-bg{background:var(--green)}.status-dot.yellow,.yellow-solid{background:var(--yellow)}.status-dot.magenta,.magenta-solid{background:var(--magenta-bright)}.overview-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(290px,.7fr);gap:10px;margin-bottom:10px}.panel-head{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:17px 18px;border-bottom:1px solid var(--line-soft)}.panel-head p{color:var(--muted-2);font-size:11px;margin-top:4px}.panel-head.compact{padding:16px 18px}.text-button{border:0;background:none;color:var(--magenta-bright);display:inline-flex;align-items:center;gap:5px;padding:0;cursor:pointer;font-size:11px}.text-button svg{width:13px;height:13px;transition:transform .12s var(--ease)}.text-button:hover svg{transform:translateX(2px)}.attention-list{position:relative;z-index:1}.attention-row{width:100%;height:70px;border:0;border-top:1px solid var(--line-soft);background:transparent;color:var(--text);display:grid;grid-template-columns:36px minmax(260px,1fr) 74px 40px 18px;align-items:center;gap:12px;padding:0 17px;text-align:left;cursor:pointer;transition:background .12s var(--ease)}.attention-row:first-child{border-top:0}.attention-row:hover{background:rgba(255,255,255,.028)}.signal-icon{width:32px;height:32px;border-radius:6px;display:grid;place-items:center}.signal-icon svg{width:16px;height:16px}.yellow-bg{background:rgba(246,201,69,.1);color:var(--yellow)}.magenta-bg{background:rgba(226,0,116,.11);color:var(--magenta-bright)}.neutral-bg{background:rgba(255,255,255,.05);color:#a6abb3}.attention-copy{display:grid;gap:5px}.attention-copy strong{font-weight:520}.attention-copy span{font-size:11px;color:var(--muted)}.priority{justify-self:start;padding:3px 7px;border-radius:4px;font-size:10px}.priority-review{color:var(--yellow);background:rgba(246,201,69,.08)}.priority-high{color:var(--magenta-bright);background:rgba(226,0,116,.1)}.priority-low{color:#989da5;background:rgba(255,255,255,.045)}.time{color:var(--muted-2);font-size:11px}.row-chevron{width:14px;height:14px;color:#555a61}.right-stack{display:grid;gap:10px}.coverage,.sync-panel{min-height:151px}.donut-row{position:relative;z-index:1;display:flex;align-items:center;padding:8px 18px 17px;gap:21px}.donut{width:82px;height:82px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--green) 0 79%,var(--yellow) 79% 91%,var(--magenta-bright) 91%);position:relative}.donut:after{content:"";position:absolute;inset:8px;border-radius:50%;background:#0d0f11}.donut span{position:relative;z-index:1;font-size:18px;font-weight:600;text-align:center}.donut small{display:block;color:var(--muted-2);font-size:9px;font-weight:400}.legend{display:grid;gap:10px;flex:1}.legend div{display:grid;grid-template-columns:8px 1fr auto;align-items:center;gap:8px;color:var(--muted);font-size:11px}.legend b{color:#e6e8eb;font-weight:520}.legend-dot{width:6px;height:6px;border-radius:50%}.mini-icon{width:16px;height:16px;color:var(--green)}.sync-score{display:flex;align-items:center;padding:16px 18px 12px}.sync-score strong{font-size:12px;font-weight:520}.sync-stats{display:grid;padding:0 18px 15px;gap:8px}.sync-stats span{display:flex;justify-content:space-between;color:var(--muted);font-size:11px}.sync-stats b{color:#e5e7e9;font-weight:450}.patient-panel{margin-bottom:20px}.filter-button{height:28px;border:1px solid var(--line);border-radius:5px;background:#111315;color:var(--muted);padding:0 9px;display:flex;align-items:center;gap:7px;font-size:11px}.filter-button svg{width:12px;height:12px;transform:rotate(90deg)}.patient-table{position:relative;z-index:1;display:grid;grid-template-columns:1.35fr .7fr .9fr .65fr .65fr 20px;align-items:center;gap:10px;padding:0 18px}.table-head{height:35px;color:var(--muted-2);font-size:10px;border-bottom:1px solid var(--line-soft)}.patient-row{width:100%;height:60px;border:0;border-bottom:1px solid var(--line-soft);background:transparent;color:#dfe1e4;text-align:left;cursor:pointer;font-size:12px}.patient-row:last-child{border-bottom:0}.patient-row:hover{background:rgba(255,255,255,.027)}.patient-row>span:not(.patient-name){color:#b1b5bc}.patient-row svg{width:14px;height:14px;color:#555a61}.patient-name{display:flex;align-items:center;gap:10px}.patient-name>span{display:grid;gap:3px}.patient-name strong{font-weight:520}.patient-name small{font-size:10px;color:var(--muted-2)}
.back-link{display:none}.patient-heading{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:42px;margin-bottom:23px;padding:0 5px}.patient-heading .subhead b{font-weight:400;color:#4d5259;margin:0 5px}.patient-state{display:grid;gap:8px;color:var(--muted)}.patient-state p{color:#e7e8ea}.patient-state>span{padding-left:14px}.patient-actions{display:flex;gap:9px}.patient-tabs{height:43px;display:flex;gap:29px;border-bottom:1px solid var(--line);margin-bottom:15px;padding-left:5px}.patient-tabs button{position:relative;border:0;background:transparent;color:var(--muted);padding:0 2px 14px;cursor:pointer}.patient-tabs button:hover{color:#d7d9dd}.patient-tabs button.active{color:var(--text)}.patient-tabs button.active:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--magenta-bright);box-shadow:0 0 10px rgba(226,0,116,.24)}.patient-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:15px}.patient-main,.patient-aside{display:grid;align-content:start;gap:15px}.summary-panel{padding:20px}.summary-panel p{color:#b5b9c0;line-height:1.55;margin-top:9px;max-width:780px}.signals-panel{overflow-x:auto}.signals-grid{min-width:770px;display:grid;grid-template-columns:1.15fr .9fr .65fr 1.25fr 1fr .6fr;align-items:center;gap:18px;padding:0 18px}.signals-head{height:38px;color:var(--muted);font-size:10px;border-bottom:1px solid var(--line-soft)}.signal-row{min-height:63px;border-bottom:1px solid var(--line-soft);line-height:1.45}.signal-row:last-child{border:0}.signal-row>span{color:#e1e3e6}.signal-row small{display:block;margin-top:2px;font-size:11px}.modality{display:flex;align-items:center;gap:11px}.modality svg{width:17px;height:17px;color:#b2b6bd}.context-panel{padding:18px 19px}.context-flow{display:grid;grid-template-columns:1fr 24px 1fr 24px 1fr;align-items:start;gap:9px;margin-top:18px}.context-flow>div{display:flex;gap:11px}.context-flow>b{padding-top:11px;color:#697079;font-weight:400}.context-icon{flex:0 0 auto;width:36px;height:36px;border:1px solid #30343a;border-radius:6px;display:grid;place-items:center;background:rgba(255,255,255,.015)}.context-icon svg{color:#aeb3bb}.context-flow p{display:grid;gap:5px;line-height:1.4}.context-flow strong{font-weight:520}.context-flow p span{font-size:11px;color:var(--muted)}.context-panel footer{border-top:1px solid var(--line-soft);margin-top:18px;padding-top:13px;color:var(--muted-2);font-size:10px}.context-panel footer i{font-style:normal;margin:0 5px}.patient-aside .panel{padding:18px}.patient-aside .panel-head{padding:0 0 16px;border:0}.activity-panel h2{margin-bottom:14px}.timeline{display:grid}.timeline>div{display:grid;grid-template-columns:10px 78px 1fr;gap:10px;min-height:58px;position:relative}.timeline>div:not(:last-child):before{content:"";position:absolute;left:3px;top:9px;bottom:-9px;width:1px;background:#34383d}.timeline i{width:7px;height:7px;border-radius:50%;margin-top:4px;position:relative;z-index:1;box-shadow:0 0 0 4px #0d0f11}.timeline time{color:var(--muted);font-size:11px}.timeline p{font-size:12px;line-height:1.3}.timeline p span{display:block;color:var(--muted);font-size:10px;margin-top:5px}.detail-list{display:grid;gap:13px}.detail-list span{display:flex;justify-content:space-between;color:var(--muted)}.detail-list b{color:#e4e6e8;font-weight:450}.plan-panel>h2{margin-bottom:16px}
.command-overlay,.modal-backdrop{position:fixed;z-index:100;inset:0;background:rgba(0,0,0,.62);backdrop-filter:blur(5px);display:flex;align-items:flex-start;justify-content:center;padding-top:13vh}.command-overlay[hidden],.modal-backdrop[hidden]{display:none}.command-box{width:min(590px,calc(100vw - 40px));border:1px solid #33373c;border-radius:9px;background:#101214;box-shadow:0 24px 80px rgba(0,0,0,.58),inset 0 1px rgba(255,255,255,.035);overflow:hidden;animation:modal-in .16s var(--ease)}@keyframes modal-in{from{opacity:0;transform:translateY(-6px) scale(.99)}to{opacity:1;transform:none}}.command-input{height:54px;display:flex;align-items:center;gap:11px;padding:0 14px;border-bottom:1px solid var(--line)}.command-input svg{color:#989da5}.command-input input{flex:1;border:0;outline:0;background:transparent;color:var(--text);font-size:14px}.command-input input::placeholder{color:#737880}.command-results{padding:8px}.command-results>p{padding:6px 8px 8px;color:var(--muted-2);font-size:10px;text-transform:uppercase;letter-spacing:.07em}.command-results button{width:100%;height:48px;border:0;border-radius:6px;background:transparent;color:var(--text);display:grid;grid-template-columns:30px 1fr auto;align-items:center;gap:10px;text-align:left;padding:0 9px;cursor:pointer}.command-results button:hover{background:rgba(255,255,255,.055)}.command-results button>span:nth-child(2){display:grid;gap:3px}.command-results strong{font-size:12px;font-weight:520}.command-results small{font-size:10px;color:var(--muted-2)}.result-icon{width:28px;height:28px;border-radius:5px;background:rgba(255,255,255,.045);display:grid;place-items:center}.result-icon svg{width:15px;height:15px}.modal-backdrop{align-items:center;padding-top:0}.modal{width:520px;border:1px solid #30343a;border-radius:9px;background:#101214;box-shadow:0 24px 80px rgba(0,0,0,.58);padding:19px;animation:modal-in .16s var(--ease)}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:20px}.modal-head h2{font-size:16px}.modal-head p{margin-top:5px;color:var(--muted);font-size:11px}.modal label{display:grid;gap:8px;color:#c8cbd0;font-size:11px}.modal textarea{height:130px;resize:vertical;border:1px solid #2d3035;border-radius:6px;outline:0;background:#0b0d0f;color:var(--text);padding:11px;line-height:1.5}.modal textarea:focus{border-color:rgba(255,22,132,.65);box-shadow:0 0 0 3px rgba(226,0,116,.08)}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:17px}.toast{position:fixed;z-index:120;right:22px;bottom:22px;min-width:240px;padding:12px 14px;border:1px solid #34383d;border-radius:7px;background:#141719;color:#e8eaec;box-shadow:0 12px 40px rgba(0,0,0,.45);opacity:0;transform:translateY(8px);pointer-events:none;transition:.2s var(--ease)}.toast.show{opacity:1;transform:none}
@media(max-width:1220px){:root{--sidebar:200px}.page{padding-left:20px;padding-right:20px}.patient-layout{grid-template-columns:1fr 305px}.topbar{grid-template-columns:1fr 390px auto}.overview-grid{grid-template-columns:1fr 310px}.metric-grid{gap:8px}.metric{padding:15px 14px}.context-flow{grid-template-columns:1fr}.context-flow>b{display:none}.context-flow>div{margin-top:4px}}
@media(max-width:900px){body{min-width:0}.sidebar{width:64px}.brand{padding:0;justify-content:center}.brand>span:last-child,.nav-label,.nav-item span,.sidebar-foot{display:none}.primary-nav{padding:14px 9px}.nav-item{justify-content:center;padding:0}.nav-item.active:before{left:-9px}.topbar{left:64px;grid-template-columns:1fr auto;padding:0 14px}.breadcrumbs{display:none}.search-trigger{width:44px;justify-self:end}.search-trigger span,.search-trigger kbd{display:none}.main-shell{margin-left:64px}.metric-grid{grid-template-columns:repeat(2,1fr)}.overview-grid,.patient-layout{grid-template-columns:1fr}.patient-aside{grid-template-columns:repeat(3,1fr)}.patient-heading{grid-template-columns:1fr auto}.patient-state{display:none}.patient-table{grid-template-columns:1.2fr .7fr .8fr .6fr 16px}.patient-table>:nth-child(4){display:none}.signals-grid{min-width:740px}}

/* Linear embedded-app density, measured from the public hero app frame. */
:root{--bg:#090a0b;--panel:#0d0f10;--line:#1e2022;--line-soft:#18191a;--muted:#9b9fa7;--muted-2:#62666d;--sidebar:232px;--topbar:52px;--radius:6px}
body{font-family:"Inter Variable",Inter,"SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:13px}
.ambient-one{top:-430px;opacity:.75;background:radial-gradient(circle,rgba(226,0,116,.04),transparent 68%)}
.ambient-two{right:-330px;bottom:-340px;opacity:.7;background:radial-gradient(circle,rgba(255,255,255,.02),transparent 68%)}
.sidebar{border-color:var(--line-soft);background:#0d0f10;backdrop-filter:none;padding:0 14px 14px 8px}
.brand{height:var(--topbar);padding:0 8px;border-bottom:0;gap:9px;font-size:15px;font-weight:590}
.brand-mark{width:22px;height:22px;font-size:13px;box-shadow:0 0 18px rgba(226,0,116,.14)}
.nav-label{padding:21px 7px 8px;text-transform:none;font-size:11px;font-weight:510;letter-spacing:0}
.primary-nav{padding:0;gap:2px}
.nav-item{height:28px;padding:0 7px;gap:8px;color:#aeb3bc;font-size:13px;font-weight:510;transition:background .1s var(--ease),color .1s var(--ease),transform .1s var(--ease)}
.nav-item:hover{background:rgba(255,255,255,.02);color:#d0d6e0}
.nav-item.active{background:rgba(255,255,255,.04);color:#d0d6e0}
.nav-item.active:before{height:16px;box-shadow:0 0 9px rgba(255,22,132,.28)}
.topbar{grid-template-columns:1fr minmax(360px,500px) auto;padding:0 22px;border-color:var(--line-soft);background:#0d0f10;backdrop-filter:none}
.main-shell{background:#090a0b}.page{padding:24px 24px 42px}
.panel{background:#0d0f10;border-color:var(--line);border-radius:6px}
.attention-row:hover,.patient-row:hover{background:rgba(255,255,255,.02)}
button:focus{outline:none}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:1px solid rgba(255,22,132,.78);outline-offset:1px}.nav-item svg{width:16px;height:16px}

/* Linear-like application shell and component material system. */
body{background:radial-gradient(900px 520px at 8% 100%,rgba(87,92,99,.16),transparent 67%),radial-gradient(700px 460px at 100% 8%,rgba(226,0,116,.035),transparent 70%),#070809;color:#d0d6e0;font-weight:400}
.app-frame{position:fixed;z-index:2;inset:14px;border:1px solid #232629;border-radius:12px;overflow:hidden;background:linear-gradient(145deg,rgba(17,19,21,.98),rgba(8,9,10,.985));box-shadow:0 28px 90px rgba(0,0,0,.52),inset 0 1px 0 rgba(255,255,255,.026);isolation:isolate}
.sidebar{position:absolute;inset:0 auto 0 0;width:var(--sidebar);padding:0 14px 14px 8px;border:0;background:linear-gradient(180deg,rgba(15,17,18,.96),rgba(11,13,14,.94))}
.content-frame{position:absolute;left:var(--sidebar);right:8px;top:8px;bottom:8px;border:1px solid #222529;border-radius:10px;overflow:hidden;background:linear-gradient(145deg,rgba(15,17,18,.985),rgba(9,10,11,.99));box-shadow:inset 0 1px 0 rgba(255,255,255,.018)}
.topbar{position:absolute;left:0;right:0;top:0;border-color:#1b1d20;background:linear-gradient(180deg,rgba(17,19,20,.98),rgba(13,15,16,.96));box-shadow:0 1px 0 rgba(0,0,0,.25)}
.main-shell{position:absolute;inset:var(--topbar) 0 0 0;margin:0;padding:0;min-height:0;overflow:auto;background:radial-gradient(700px 340px at 42% -80px,rgba(255,255,255,.024),transparent 70%),#090a0b;scrollbar-color:#3a3e43 transparent;scrollbar-width:thin}
.main-shell::-webkit-scrollbar{width:7px}.main-shell::-webkit-scrollbar-thumb{background:#30343a;border:2px solid transparent;background-clip:padding-box;border-radius:8px}
.page{padding:24px 24px 42px}

.nav-item.active:before{display:none}.nav-item.active svg{color:inherit}.nav-item.active{background:linear-gradient(90deg,rgba(255,255,255,.052),rgba(255,255,255,.032));color:#d0d6e0}.nav-item:hover{background:linear-gradient(90deg,rgba(255,255,255,.038),rgba(255,255,255,.018));color:#d8dce3}.nav-item:focus-visible{outline:0;box-shadow:0 0 0 1px rgba(112,120,153,.38)}
.brand{color:#f3f4f5}.brand-mark{box-shadow:0 5px 20px rgba(226,0,116,.18),inset 0 1px rgba(255,255,255,.22)}
h1{color:#f7f8f8;font-size:25px;font-weight:590;letter-spacing:-.028em}h2{color:#e5e8ec;font-size:13px;font-weight:590}.subhead{color:#8a8f98}.breadcrumbs strong{color:#d9dde3;font-weight:510}

.panel{border-color:rgba(42,45,49,.84);background:linear-gradient(145deg,rgba(19,21,23,.88),rgba(12,14,15,.92));backdrop-filter:blur(16px);box-shadow:inset 0 1px 0 rgba(255,255,255,.024),0 1px 2px rgba(0,0,0,.28);transition:border-color .14s var(--ease),box-shadow .14s var(--ease),transform .14s var(--ease)}
.panel:hover{border-color:rgba(53,57,62,.92);box-shadow:inset 0 1px 0 rgba(255,255,255,.032),0 5px 24px rgba(0,0,0,.12)}
.spotlight:before{background:radial-gradient(240px circle at var(--spot-x,50%) var(--spot-y,0%),rgba(255,255,255,.052),rgba(255,255,255,.015) 34%,transparent 72%);transition:opacity .14s var(--ease)}
.metric:nth-child(1){background:radial-gradient(260px 150px at 0% 0%,rgba(226,0,116,.045),transparent 75%),linear-gradient(145deg,rgba(19,21,23,.9),rgba(12,14,15,.94))}
.metric:nth-child(2){background:radial-gradient(250px 150px at 100% 0%,rgba(104,211,145,.045),transparent 74%),linear-gradient(145deg,rgba(18,21,21,.91),rgba(12,14,15,.94))}
.metric:nth-child(3){background:radial-gradient(250px 150px at 100% 0%,rgba(246,201,69,.04),transparent 74%),linear-gradient(145deg,rgba(20,20,18,.9),rgba(12,14,15,.94))}
.metric:nth-child(4){background:radial-gradient(250px 150px at 100% 0%,rgba(98,130,210,.048),transparent 74%),linear-gradient(145deg,rgba(18,20,23,.9),rgba(12,14,15,.94))}
.attention-panel{background:radial-gradient(560px 230px at 12% 0%,rgba(91,101,128,.045),transparent 72%),linear-gradient(145deg,rgba(18,20,22,.92),rgba(11,13,14,.95))}
.coverage{background:radial-gradient(300px 190px at 100% 100%,rgba(104,211,145,.04),transparent 72%),linear-gradient(145deg,rgba(18,21,21,.92),rgba(11,13,14,.95))}
.sync-panel{background:radial-gradient(300px 180px at 100% 0%,rgba(93,181,162,.04),transparent 72%),linear-gradient(145deg,rgba(17,21,21,.92),rgba(11,13,14,.95))}
.patient-panel,.signals-panel{background:radial-gradient(620px 260px at 0% 0%,rgba(98,111,155,.035),transparent 73%),linear-gradient(145deg,rgba(18,20,22,.92),rgba(11,13,14,.96))}
.summary-panel{background:radial-gradient(480px 220px at 100% 0%,rgba(226,0,116,.028),transparent 75%),linear-gradient(145deg,rgba(19,20,22,.9),rgba(11,13,14,.95))}
.context-panel{background:radial-gradient(500px 250px at 50% 100%,rgba(105,86,160,.035),transparent 75%),linear-gradient(145deg,rgba(18,19,22,.92),rgba(11,13,14,.96))}
.activity-panel{background:radial-gradient(320px 220px at 0% 0%,rgba(104,211,145,.028),transparent 72%),linear-gradient(145deg,rgba(18,20,21,.92),rgba(11,13,14,.96))}.plan-panel{background:linear-gradient(145deg,rgba(19,21,23,.91),rgba(11,13,14,.96))}
.metric-value{color:#f7f8f8;font-weight:590}.metric-top,.panel-head p,.table-head,.signals-head{color:#7f858e}.patient-name strong,.attention-copy strong,.signal-row>span{font-weight:450;color:#d0d6e0}

.attention-row,.patient-row,.signal-row{transition:background .12s var(--ease),box-shadow .12s var(--ease)}
.attention-row:hover,.patient-row:hover,.signal-row:hover{background:linear-gradient(90deg,rgba(255,255,255,.047),rgba(255,255,255,.02) 58%,rgba(255,255,255,.006));box-shadow:inset 0 1px rgba(255,255,255,.012),inset 0 -1px rgba(0,0,0,.16)}
.patient-table{grid-template-columns:20px 1.35fr .7fr .9fr .65fr .65fr 20px;padding:0 15px;gap:9px}.table-head{height:34px}.patient-row{height:56px;color:#cdd1d7}.row-check{width:15px;height:15px;border:1px solid #4b5058;border-radius:4px;display:grid;place-items:center;color:#f2f4f6;opacity:0;transform:scale(.88);transition:opacity .12s var(--ease),transform .12s var(--ease),border-color .12s var(--ease),background .12s var(--ease)}.row-check svg{width:10px;height:10px;opacity:0;stroke-width:2.2}.patient-row:hover .row-check,.patient-row:focus-visible .row-check,.patient-row.selected .row-check{opacity:1;transform:scale(1)}.patient-row.selected{background:linear-gradient(90deg,rgba(106,113,140,.12),rgba(255,255,255,.025) 62%,transparent)}.patient-row.selected .row-check{background:#696f85;border-color:#838ba8}.patient-row.selected .row-check svg{opacity:1;color:#fff}.patient-row:focus-visible{outline:0;box-shadow:inset 0 0 0 1px rgba(112,120,153,.42)}
.priority,.filter-button{border:1px solid rgba(49,53,58,.7);border-radius:999px;background:rgba(12,14,15,.62)}
.signals-grid{min-width:0;grid-template-columns:1.08fr .86fr .66fr 1.2fr 1fr .64fr;gap:12px;padding-left:14px;padding-right:14px}.signal-row{min-height:61px}

@media(max-width:900px){.app-frame{inset:0;border:0;border-radius:0}.sidebar{width:64px;padding:0 8px 8px}.content-frame{left:64px;right:0;top:0;bottom:0;border-radius:0;border-width:0 0 0 1px}.patient-table{grid-template-columns:20px 1.2fr .7fr .8fr .6fr 16px}.patient-table>:nth-child(5){display:none}}

/* Motion restraint and Linear-style command palette. */
.ambient{opacity:.2}.ambient-one{opacity:.22}.ambient-two{opacity:.18}
.page.active{animation:none}.spotlight:before{display:none}
.panel{transition:border-color .08s linear;backdrop-filter:blur(10px)}.panel:hover{border-color:rgba(48,52,56,.9);box-shadow:inset 0 1px 0 rgba(255,255,255,.024),0 1px 2px rgba(0,0,0,.28)}
.nav-item{transition:background .08s linear,color .08s linear}.nav-item:active{transform:none}
.button{transition:background .08s linear,border-color .08s linear}.button:active{transform:none}.button-primary{box-shadow:inset 0 1px rgba(255,255,255,.12)}
.brand-mark{box-shadow:inset 0 1px rgba(255,255,255,.16)}
.attention-row,.patient-row,.signal-row{transition:background .08s linear}.row-check{transform:none;transition:opacity .08s linear,border-color .08s linear,background .08s linear}.patient-row:hover .row-check,.patient-row:focus-visible .row-check,.patient-row.selected .row-check{transform:none}
.toast{transform:none;transition:opacity .12s linear}.toast.show{transform:none}

.command-overlay{align-items:flex-start;justify-content:center;padding-top:14vh;background:rgba(4,5,6,.74);backdrop-filter:none}
.command-box{width:min(620px,calc(100vw - 48px));border:1px solid #2a2d31;border-radius:10px;background:#101213;box-shadow:0 18px 55px rgba(0,0,0,.46),inset 0 1px rgba(255,255,255,.022);animation:none}
.command-input{height:62px;padding:0 16px;gap:12px;border-color:#222529;background:#111314}.command-input svg{width:17px;height:17px;color:#777d86}.command-input input{font-size:15px;font-weight:400;color:#e2e5e9;caret-color:#777ee8}.command-input input:focus-visible{outline:0}.command-input input::placeholder{color:#656a72}.command-input kbd{background:transparent;border-color:#2b2e32;color:#686d75;box-shadow:none}
.command-results{padding:14px 10px 10px}.command-results>p{padding:2px 10px 8px;color:#62676f;font-size:10px;font-weight:560;letter-spacing:.07em}.command-results .command-section-label{margin-top:10px;padding-top:11px;border-top:1px solid #1d2023}
.command-results button{height:56px;padding:0 10px;border-radius:7px;color:#cdd1d7;transition:background .08s linear}.command-results button:hover,.command-results button.active{background:rgba(255,255,255,.038)}.command-results button:focus-visible{outline:0;background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px #30343a}
.command-results strong{font-size:13px;font-weight:510;color:#dde0e4}.command-results small{font-size:11px;color:#71767e}.command-results .avatar,.command-results .result-icon{width:30px;height:30px}.command-check{width:16px;height:16px;color:#6f747d;stroke-width:2;opacity:0}.command-results button.active .command-check{opacity:1}.command-footer{height:38px;border-top:1px solid #1d2023;display:flex;align-items:center;justify-content:flex-end;gap:17px;padding:0 13px;color:#62676f;font-size:10px}.command-footer span{display:flex;align-items:center;gap:5px}.command-footer kbd{padding:1px 4px;background:#151719;border-color:#2a2d31;box-shadow:none}

@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Messages workspace */
.workspace-page{height:100%;min-height:100%;padding:0;max-width:none}.messages-layout{display:grid;grid-template-columns:390px minmax(0,1fr);height:100%;min-height:0}.inbox-pane{min-width:0;border-right:1px solid #222529;background:linear-gradient(145deg,rgba(15,17,18,.94),rgba(10,12,13,.97));overflow:auto}.workspace-heading{height:86px;padding:23px 20px 14px;display:flex;align-items:flex-start;justify-content:space-between}.workspace-heading h1{font-size:22px}.workspace-heading p,.sources-heading p{margin-top:6px;color:#7f858e;font-size:12px}.icon-button.bordered{border:1px solid #2b2e32;background:#111315}.workspace-tabs{height:42px;padding:0 20px;display:flex;align-items:end;gap:26px;border-bottom:1px solid #1d2023}.workspace-tabs button{height:42px;padding:0 0 12px;border:0;background:transparent;color:#8a8f98;cursor:pointer;position:relative}.workspace-tabs button.active{color:#e8eaed}.workspace-tabs button.active:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:#e20074}.thread-list{padding:8px 10px}.thread-row{width:100%;min-height:72px;padding:13px 12px;border:1px solid transparent;border-radius:6px;background:transparent;color:#cfd3d8;display:grid;grid-template-columns:minmax(0,1fr) auto 42px;align-items:center;gap:10px;text-align:left;cursor:pointer;position:relative}.thread-row:hover{background:rgba(255,255,255,.024)}.thread-row.active{background:linear-gradient(90deg,rgba(255,255,255,.052),rgba(255,255,255,.024));border-color:#2c3034}.thread-row.active:before{content:"";position:absolute;left:-1px;top:12px;bottom:12px;width:2px;border-radius:2px;background:#e20074}.thread-row>span:first-child{display:grid;gap:6px;min-width:0}.thread-row strong{font-size:13px;font-weight:510;color:#e0e3e7}.thread-row small{color:#7f858e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thread-context{display:flex;align-items:center;white-space:nowrap;color:#9ba0a8;font-size:11px}.thread-context .status-dot{margin-right:6px}.thread-row time{justify-self:end;color:#777c84;font-size:11px}.blue-dot{background:#79aef4}.neutral-dot{background:#89909a}
.conversation-pane{height:100%;min-width:0;display:flex;flex-direction:column;background:radial-gradient(600px 300px at 80% 0%,rgba(255,255,255,.018),transparent 70%),#0a0b0c}.conversation-head{min-height:108px;padding:25px 24px 18px;display:flex;justify-content:space-between;align-items:flex-start}.conversation-head h1{font-size:22px}.conversation-head p{margin-top:6px;color:#8a8f98}.care-mini{display:flex;border:1px solid #292c30;border-radius:7px;background:rgba(255,255,255,.014)}.care-mini span{min-width:120px;padding:11px 14px;display:grid;gap:6px;color:#7f858e}.care-mini span+span{border-left:1px solid #24272a}.care-mini strong{font-weight:510;color:#d8dce1}.linked-signal{margin:0 24px;height:48px;border:1px solid #292c30;border-radius:7px;background:#101213;color:#90959d;display:flex;align-items:center;gap:10px;padding:0 13px;text-align:left;cursor:pointer}.linked-signal:hover{background:#121415}.linked-signal span{flex:1;color:#c9cdd2}.linked-signal b{font-size:11px;font-weight:510;color:#68d391}.linked-signal svg:last-child{width:13px;height:13px}.conversation-stream{flex:1;min-height:0;margin:18px 24px 0;padding-left:34px;overflow:auto;display:grid;align-content:start;gap:12px;position:relative}.conversation-stream:before{content:"";position:absolute;left:11px;top:8px;bottom:8px;width:1px;background:#30343a}.message-card{position:relative;border:1px solid #292c30;border-radius:7px;background:linear-gradient(145deg,rgba(18,20,22,.94),rgba(12,14,15,.96));padding:15px 17px;max-width:720px}.message-card:before{content:"";position:absolute;left:-30px;top:15px;width:15px;height:15px;border:1px solid #3b4046;border-radius:50%;background:#101213;box-shadow:0 0 0 6px #0a0b0c}.message-card.system-message:before{border-color:#7c838d}.message-meta{display:flex;align-items:center;gap:9px;margin-bottom:10px}.message-meta strong{font-weight:520;color:#e2e5e8}.message-meta span{color:#767b83}.message-meta time{margin-left:auto;color:#7b8088}.message-card p{line-height:1.55;color:#cbd0d5}.message-card small{display:block;margin-top:6px;color:#7f858e;line-height:1.5}.add-instruction{align-self:flex-start;margin:12px 24px 12px 58px;border:0;background:transparent;color:#8b9098;display:flex;gap:7px;align-items:center;cursor:pointer}.add-instruction svg{width:14px;height:14px}.message-compose{min-height:92px;margin:0 24px 20px;border:1px solid #2b2e32;border-radius:8px;background:#101213;display:flex;align-items:flex-end;padding:10px}.message-compose textarea{flex:1;height:64px;resize:none;border:0;outline:0;background:transparent;color:#d8dce1;padding:4px 7px;line-height:1.5}.message-compose textarea::placeholder{color:#686d75}.send-button{width:38px;height:38px;border:1px solid #ee1680;border-radius:6px;background:#e20074;color:#fff;display:grid;place-items:center;cursor:pointer}.send-button svg{width:17px;height:17px;transform:rotate(-45deg)}

/* Data sources workspace and quality disclosure model */
.sources-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;height:100%;min-height:0}.sources-main{min-width:0;display:flex;flex-direction:column;background:#0a0b0c}.sources-heading{min-height:95px;padding:20px 20px 15px;display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #1e2124}.sources-heading h1{font-size:22px}.inline-search{width:min(330px,42%);height:38px;border:1px solid #292c30;border-radius:6px;background:#0e1011;display:flex;align-items:center;gap:9px;padding:0 11px}.inline-search svg{color:#777d85}.inline-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:#d3d7dc;font-size:12px}.inline-search input::placeholder{color:#666b73}.source-controls{min-height:74px;padding:12px 20px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #1e2124}.source-counts{display:flex;gap:18px;white-space:nowrap;color:#9ba0a8}.source-counts span{display:flex;align-items:center}.source-counts b{margin-left:4px;font-weight:510;color:#d1d5da}.source-filters{display:flex;gap:7px}.source-filters button{height:32px;padding:0 10px;border:1px solid #2a2d31;border-radius:6px;background:#101213;color:#a2a7ae;white-space:nowrap}.source-table{display:grid;grid-template-columns:1.08fr .92fr .8fr .9fr .8fr .82fr 1fr 14px;gap:8px;align-items:center;padding:0 16px;text-align:left}.source-head{height:42px;border-bottom:1px solid #1d2023;color:#737880;font-size:10px}.source-rows{min-height:0;overflow:auto}.source-row{width:100%;min-height:60px;border:0;border-bottom:1px solid #1d2023;background:transparent;color:#c2c7cd;font-size:11px;cursor:pointer}.source-row:hover{background:rgba(255,255,255,.022)}.source-row.active{background:linear-gradient(90deg,rgba(226,0,116,.06),rgba(255,255,255,.025));box-shadow:inset 2px 0 #e20074}.source-row>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.source-row svg{width:13px;height:13px;color:#696f77}.quality-label{justify-self:start;border:1px solid #2c3034;border-radius:999px;padding:3px 7px;font-size:10px}.quality-label.verified{color:#74c98f;background:rgba(104,211,145,.045)}.quality-label.usable{color:#e2bc55;background:rgba(246,201,69,.045)}.quality-label.retake{color:#f06f85;background:rgba(226,0,60,.055)}.sources-footer{margin-top:auto;height:44px;padding:0 20px;border-top:1px solid #1e2124;display:flex;align-items:center;color:#696e76;font-size:11px}
.source-detail{min-width:0;border-left:1px solid #24272a;background:linear-gradient(145deg,#101213,#0b0d0e);overflow:auto;padding-bottom:62px;position:relative}.source-detail-head{min-height:108px;padding:23px 20px 17px;display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #26292d}.source-detail-head h1{font-size:20px}.source-detail-head p{margin-top:7px;color:#7d828a;font-size:11px}.detail-section{padding:20px;border-bottom:1px solid #26292d}.detail-section h2{margin-bottom:17px}.diagnostic-list{display:grid;gap:14px}.diagnostic-list span{display:flex;align-items:center;justify-content:space-between;color:#8e939b}.diagnostic-list b{font-weight:510;color:#d9dde1;text-align:right}.quality-explainer{margin-top:17px;padding:11px;border:1px solid #292c30;border-radius:6px;background:rgba(255,255,255,.018);color:#7f858e;font-size:11px;line-height:1.5}.danger-text{color:#f06f85!important}.trace-list{display:grid}.trace-list button{min-height:67px;border:0;background:transparent;color:#cfd3d8;display:grid;grid-template-columns:28px 1fr 14px;align-items:start;gap:9px;text-align:left;padding:7px 0;cursor:pointer;position:relative}.trace-list button:not(:last-child):after{content:"";position:absolute;left:13px;top:35px;bottom:-5px;width:1px;background:#34383d}.trace-list i{width:28px;height:28px;border:1px solid #444950;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:10px;background:#101213;z-index:1}.trace-list span{display:grid;gap:6px}.trace-list small{color:#747981;line-height:1.4}.trace-list svg{width:13px;height:13px;margin-top:7px}.related-detail>button{width:100%;border:0;background:transparent;color:#cfd3d8;display:grid;grid-template-columns:1fr 14px;align-items:center;text-align:left;padding:0;cursor:pointer}.related-detail>button span{display:grid;gap:7px}.related-detail strong{font-weight:510}.related-detail small{color:#7b8088}.source-detail-actions{position:absolute;left:0;right:0;bottom:0;min-height:62px;border-top:1px solid #26292d;background:#0d0f10;display:flex;align-items:center;gap:8px;padding:10px 20px}.source-detail-actions .button:last-child{margin-left:auto}

.source-detail-actions{position:sticky;z-index:5}

/* Shared Linear-style selection language: neutral layer, no accent rail. */
:root{--selection-layer:linear-gradient(90deg,rgba(106,113,140,.11),rgba(255,255,255,.025) 62%,transparent);--selection-border:#30343a;--hover-layer:rgba(255,255,255,.026);--focus-ring:rgba(112,120,153,.42)}
.nav-item.active,.patient-row.selected,.source-row.active{background:var(--selection-layer)}
.source-row.active{box-shadow:none}
.nav-item:focus-visible,.patient-row:focus-visible,.source-row:focus-visible{outline:0;box-shadow:inset 0 0 0 1px var(--focus-ring)}
.nav-item:hover,.patient-row:hover,.source-row:hover{background:var(--hover-layer)}
.source-detail{display:grid;grid-template-rows:minmax(0,1fr) auto;overflow:hidden;padding-bottom:0}
.source-detail-scroll{min-height:0;overflow:auto}
.source-detail-actions{position:relative;bottom:auto;flex:0 0 auto;z-index:2}

/* T-Mobile brand and Linear-inspired Insights */
.brand-wordmark{width:72px;height:27px;object-fit:contain;object-position:left center}.brand-product{height:19px;border-left:1px solid #303338;padding-left:9px;display:flex;align-items:center;color:#d7d9dd;font-size:12px;font-weight:540;letter-spacing:-.01em}
.orange-dot{background:#f47b35}.insights-page{padding-top:24px}.insights-heading{align-items:center;margin-bottom:17px}.insights-heading .eyebrow{margin-bottom:6px}.insights-heading h1{font-size:25px}.insight-controls{display:flex;gap:7px}.insight-controls .button{height:34px;color:#aeb3ba;background:#0f1113}
.insight-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:10px}.insight-metric{min-height:91px;padding:14px;display:grid;grid-template-columns:38px 1fr;grid-template-rows:1fr auto;column-gap:12px;align-items:center}.metric-symbol{grid-row:1/3;width:38px;height:38px;border:1px solid #31353a;border-radius:50%;display:grid;place-items:center;color:#9fa5ae;background:rgba(255,255,255,.012)}.metric-symbol svg{width:17px;height:17px}.metric-symbol.critical{color:#f16778;font-size:18px}.metric-symbol.source-gap{color:#8da2ff}.metric-symbol.ready{color:#70d596}.insight-metric>div{display:flex;align-items:baseline;gap:9px}.insight-metric strong{font-size:23px;font-weight:610;letter-spacing:-.03em}.insight-metric>div span{color:#a7acb4;font-size:11px;white-space:nowrap}.insight-metric small{grid-column:2;color:#656b74;font-size:10px}
.insight-dashboard{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.72fr);gap:10px;align-items:start}.distribution-panel{min-width:0}.insight-panel-head{min-height:64px;padding:14px 17px;border-bottom:1px solid #1d2023;display:flex;align-items:center;justify-content:space-between;gap:15px}.insight-panel-head h2{font-size:13px}.insight-panel-head p{margin-top:4px;color:#6f747c;font-size:10px}.chart-legend{display:flex;gap:15px;color:#8f949c;font-size:10px;white-space:nowrap}.chart-legend span{display:flex;align-items:center;gap:6px}.legend-dot.violet,.chart-dot.violet{background:#6576e8}.legend-dot.pink,.chart-dot.pink{background:#e74491}.legend-dot.gray,.chart-dot.gray{background:#666d77}.distribution-chart{position:relative;height:333px;padding:4px 10px 0}.distribution-chart svg{width:100%;height:100%;overflow:visible}.chart-grid path{fill:none;stroke:#24282d;stroke-width:1;stroke-dasharray:3 5}.chart-ticks text{fill:#5f656e;stroke:none;font:11px Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.trend-line{fill:none;stroke-width:1.2;opacity:.5}.trend-line.violet{stroke:#6576e8}.trend-line.pink{stroke:#e74491}.chart-dot{stroke:none;opacity:.72;transition:r .1s linear,opacity .1s linear}.chart-dot:hover,.chart-dot.is-hovered{opacity:1;r:5}.chart-tooltip{position:absolute;z-index:4;min-width:145px;padding:9px 10px;border:1px solid #34383e;border-radius:6px;background:rgba(18,20,22,.97);box-shadow:0 12px 35px rgba(0,0,0,.35);pointer-events:none;display:grid;gap:4px}.chart-tooltip strong{font-size:11px;font-weight:550}.chart-tooltip span{font-size:10px;color:#8c929a}.chart-footer{height:47px;border-top:1px solid #1d2023;padding:0 17px;display:flex;align-items:center;gap:25px;color:#747a82;font-size:10px}.chart-footer b{color:#cbd0d5;font-weight:520;margin-left:4px}
.pulse-panel{min-height:445px}.pulse-score{padding:18px 17px 14px;display:flex;align-items:center;gap:13px}.pulse-score>span{width:65px;height:65px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,#151a19 55%,transparent 57%),conic-gradient(#60d08b 0 78%,#252a2d 78%);color:#80dca2;font-size:17px;font-weight:620}.pulse-score div{display:grid;gap:5px}.pulse-score strong{font-weight:540}.pulse-score small{color:#70767e}.pulse-list{padding:0 10px}.pulse-list>div{height:62px;border-top:1px solid #1d2023;display:grid;grid-template-columns:1fr 130px;align-items:center;padding:0 7px}.pulse-list span{display:grid;grid-template-columns:13px 1fr;align-items:center;column-gap:3px}.pulse-list b{font-size:11px;font-weight:510}.pulse-list small{grid-column:2;color:#737982;margin-top:4px}.pulse-list svg{width:130px;height:32px}.spark{fill:none;stroke-width:1.3}.spark.green{stroke:#61cf8b}.spark.amber{stroke:#eaa61a}.spark.pink{stroke:#e74491}.spark-fill.green{stroke:none;fill:url(#none);opacity:.08}.pulse-callout{margin:12px 10px 10px;padding:12px;border:1px solid #292d32;border-radius:6px;background:linear-gradient(135deg,rgba(101,118,232,.045),rgba(255,255,255,.012));display:grid;grid-template-columns:31px 1fr;gap:10px}.pulse-icon{width:31px;height:31px;border:1px solid #384058;border-radius:6px;display:grid;place-items:center;color:#7d8df2}.pulse-icon svg{width:15px}.pulse-callout div{display:grid;gap:5px}.pulse-callout strong{font-size:11px}.pulse-callout p{font-size:10px;color:#747a83;line-height:1.45}.pulse-callout button{grid-column:2;justify-self:start;border:0;background:transparent;color:#8da0ff;padding:0;display:flex;align-items:center;gap:4px;font-size:10px;cursor:pointer}.pulse-callout button svg{width:11px;height:11px}
.cohort-panel{min-width:0}.cohort-table{display:grid;grid-template-columns:1fr 1.65fr .55fr .8fr .8fr;gap:10px;align-items:center;padding:0 17px}.cohort-head{height:34px;color:#666c75;font-size:9px;border-bottom:1px solid #1d2023}.cohort-row{min-height:49px;border-bottom:1px solid #1d2023;color:#aeb3ba;font-size:10px}.cohort-row:last-child{border-bottom:0}.cohort-row strong{font-weight:510;color:#d1d5da}.cohort-row button{justify-self:start;border:0;background:transparent;color:#e15598;padding:0;cursor:pointer;font-size:10px}.period-label{font-size:10px;color:#747a82}.health-ring-row{padding:22px 18px 15px;display:flex;align-items:center;gap:25px}.health-ring{width:94px;height:94px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#68d391 0 81%,#f6c945 81% 92%,#f47b35 92%);position:relative}.health-ring:after{content:"";position:absolute;inset:9px;border-radius:50%;background:#0e1012}.health-ring span{position:relative;z-index:1;text-align:center;font-size:20px;font-weight:610}.health-ring small{display:block;color:#6f757d;font-size:9px;font-weight:400;margin-top:2px}.health-legend{flex:1;display:grid;gap:12px}.health-legend span{display:grid;grid-template-columns:12px 1fr auto;color:#90969e;font-size:10px}.health-legend b{font-weight:520;color:#d2d6da}.health-note{border-top:1px solid #1d2023;padding:14px 17px;color:#6f757e;font-size:10px;line-height:1.5}
.insight-metric>div span{font-size:10px;white-space:normal}
.chart-dot.violet{fill:#6576e8}.chart-dot.pink{fill:#e74491}.chart-dot.gray{fill:#666d77}

/* Care-specific insights and alerts */
.insight-stat{min-height:98px;padding:13px 14px;text-align:left;color:#d6dade;display:grid;grid-template-rows:auto 1fr auto;gap:7px}.insight-stat header{display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:8px}.stat-icon{width:28px;height:28px;border:1px solid #30343a;border-radius:6px;background:#111316;display:grid;place-items:center;color:#8f96a0}.stat-icon svg{width:14px;height:14px}.stat-icon.review{color:#e8bd46}.stat-icon.alert{color:#ed5b75}.stat-icon.evidence{color:#6ed392}.insight-stat header p{font-size:10px;color:#858b93;text-transform:uppercase;letter-spacing:.055em}.stat-delta{font-size:9px;font-weight:520;border:1px solid #282c30;border-radius:999px;padding:3px 6px;background:#111315}.insight-stat>strong{font-size:25px;line-height:1;font-weight:620;letter-spacing:-.035em}.insight-stat footer{color:#6d737b;font-size:9px}.insight-stat footer .status-dot{margin-right:5px}.stat-link{width:100%;border-color:var(--line);background:linear-gradient(145deg,rgba(16,18,20,.93),rgba(10,12,14,.9));cursor:pointer}.stat-link:hover{background:linear-gradient(145deg,rgba(20,22,24,.96),rgba(12,14,16,.94));border-color:#30343a}
.legend-dot.amber{background:#f0a51f}.attention-area{fill:url(#attention-area);stroke:none}.attention-line{fill:none;stroke-width:1.7}.attention-line.bp{stroke:#e74491}.attention-line.mobility{stroke:#6d7be8}.attention-line.gaps{stroke:#e79b23}.attention-points{stroke:#101214;stroke-width:2}.attention-points.bp{fill:#e74491}.attention-points.mobility{fill:#6d7be8}.attention-points.gaps{fill:#e79b23}.attention-hit-zones rect{fill:transparent;stroke:none;cursor:crosshair}.attention-hit-zones rect:hover{fill:rgba(255,255,255,.018)}.attention-tooltip small{color:#676d75;font-size:9px}.attention-trend-chart:after{content:"";position:absolute;inset:15px 30px 37px 62px;pointer-events:none;background:radial-gradient(380px 150px at 78% 36%,rgba(226,0,116,.035),transparent 72%)}
.alerts-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;height:100%;min-height:0}.alerts-main{min-width:0;background:#0a0b0c;display:flex;flex-direction:column}.alerts-heading{min-height:102px;padding:20px 20px 15px;border-bottom:1px solid #1e2124;display:flex;align-items:flex-start;justify-content:space-between}.alerts-heading h1{font-size:22px}.alerts-heading p:last-child{margin-top:6px;color:#7f858e;font-size:11px}.alerts-heading .button{margin-top:4px}.alerts-toolbar{min-height:56px;padding:0 20px;border-bottom:1px solid #1e2124;display:flex;align-items:center;justify-content:space-between;gap:15px}.alert-tabs{height:56px;display:flex;gap:25px}.alert-tabs button{position:relative;border:0;background:transparent;color:#7f858e;padding:0;cursor:pointer}.alert-tabs button.active{color:#e2e5e8}.alert-tabs button.active:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:#e20074}.alert-tabs span{margin-left:4px;color:#626871}.alert-filters{display:flex;gap:6px}.alert-filters button{height:30px;border:1px solid #292d31;border-radius:6px;background:#101214;color:#8e949c;padding:0 9px}.alert-table{display:grid;grid-template-columns:.7fr .85fr 1.4fr .75fr .48fr 14px;gap:10px;align-items:center;padding:0 16px;text-align:left}.alert-head{height:39px;border-bottom:1px solid #1e2124;color:#686e76;font-size:9px}.alert-rows{min-height:0;overflow:auto}.alert-row{width:100%;min-height:72px;border:0;border-bottom:1px solid #1d2023;background:transparent;color:#aeb3ba;cursor:pointer;font-size:10px}.alert-row:hover{background:var(--hover-layer)}.alert-row.active{background:var(--selection-layer)}.alert-row:focus-visible{outline:0;box-shadow:inset 0 0 0 1px var(--focus-ring)}.alert-row>span:first-child{display:flex;align-items:center;gap:7px}.alert-row>span:nth-child(2),.alert-row>span:nth-child(3){display:grid;gap:5px;min-width:0}.alert-row strong{font-size:11px;font-weight:520;color:#d8dce0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.alert-row small{font-size:9px;color:#6f757d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.alert-row time{color:#747a82}.alert-row>svg{width:12px;height:12px;color:#60666e}.alert-severity{width:24px;height:24px;border:1px solid #33373c;border-radius:6px;display:grid;place-items:center}.alert-severity svg{width:13px;height:13px}.alert-severity.critical{color:#ef5b70;background:rgba(226,0,60,.045)}.alert-severity.review{color:#e8bd46;background:rgba(246,201,69,.04)}.alert-severity.data{color:#e99242;background:rgba(244,123,53,.04)}.alert-severity.follow{color:#8da3ef;background:rgba(101,118,232,.04)}
.alert-detail{min-width:0;border-left:1px solid #24272a;background:linear-gradient(145deg,#101213,#0b0d0e);display:grid;grid-template-rows:minmax(0,1fr) auto}.alert-detail-scroll{min-height:0;overflow:auto}.alert-detail-head{padding:20px;border-bottom:1px solid #25292d;display:flex;align-items:flex-start;justify-content:space-between}.alert-detail-severity{display:inline-flex;align-items:center;border:1px solid #30343a;border-radius:999px;padding:4px 8px;color:#aeb3ba;font-size:9px}.alert-detail-head h1{font-size:19px;margin-top:14px}.alert-detail-head p{margin-top:7px;color:#7c828a;font-size:10px}.alert-patient-card{min-height:67px;padding:12px 20px;border-bottom:1px solid #25292d;display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:10px}.alert-patient-card>div{display:grid;gap:4px}.alert-patient-card strong{font-size:11px}.alert-patient-card small{color:#717780;font-size:9px}.alert-patient-card button{border:0;background:transparent;color:#9ba1a9;display:flex;align-items:center;gap:4px;font-size:9px;cursor:pointer}.alert-patient-card button svg{width:10px;height:10px}.alert-section{padding:18px 20px;border-bottom:1px solid #25292d}.alert-section h2{margin-bottom:16px}.alert-evidence-value{display:flex;align-items:baseline;gap:6px}.alert-evidence-value strong{font-size:25px;letter-spacing:-.03em}.alert-evidence-value span{color:#777d85;font-size:10px}.alert-section>p{margin-top:9px;color:#8f959d;font-size:10px;line-height:1.5}.alert-evidence-grid{margin-top:15px;display:grid;gap:10px}.alert-evidence-grid span{display:flex;justify-content:space-between;color:#747a82;font-size:9px}.alert-evidence-grid b{font-weight:510;color:#cbd0d5}.alert-timeline{display:grid;gap:0}.alert-timeline>div{min-height:47px;display:grid;grid-template-columns:14px 1fr;gap:8px;position:relative}.alert-timeline>div:not(:last-child):after{content:"";position:absolute;left:3px;top:10px;bottom:-4px;width:1px;background:#34383d}.alert-timeline i{width:7px;height:7px;border-radius:50%;background:#747b84;margin-top:3px;z-index:1;box-shadow:0 0 0 4px #0d0f10}.alert-timeline p{font-size:10px}.alert-timeline small{display:block;color:#6d737b;margin-top:5px}.alert-recommendation{margin:14px 20px;border:1px solid #2b3038;border-radius:7px;background:linear-gradient(135deg,rgba(101,118,232,.05),rgba(226,0,116,.02));padding:12px;display:flex;gap:10px}.alert-recommendation>span{width:30px;height:30px;border:1px solid #384057;border-radius:6px;display:grid;place-items:center;color:#8291ed;flex:0 0 auto}.alert-recommendation svg{width:14px}.alert-recommendation p{color:#747a82;font-size:8px;text-transform:uppercase;letter-spacing:.05em}.alert-recommendation strong{display:block;margin-top:5px;font-size:10px;line-height:1.45}.alert-detail-actions{height:64px;border-top:1px solid #25292d;background:#0d0f10;display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:0 20px}

/* Patient-level insight drill-down */
.patient-insights-panel{grid-column:1/-1}.patient-insight-list{display:grid}.patient-insight-list>button{min-height:64px;border:0;border-bottom:1px solid #1d2023;background:transparent;color:#bec3ca;display:grid;grid-template-columns:34px minmax(250px,1.4fr) minmax(110px,.55fr) minmax(90px,.45fr) 14px;align-items:center;gap:11px;padding:0 17px;text-align:left;cursor:pointer;transition:background .08s linear}.patient-insight-list>button:last-child{border-bottom:0}.patient-insight-list>button:hover{background:var(--hover-layer)}.patient-insight-list>button:focus-visible{outline:0;box-shadow:inset 0 0 0 1px var(--focus-ring)}.patient-insight-list>button>span:nth-child(2){display:grid;gap:5px}.patient-insight-list strong{font-size:11px;font-weight:520;color:#d9dce0}.patient-insight-list small{font-size:10px;color:#747a82}.patient-insight-value{display:grid;gap:4px}.patient-insight-value b{font-size:13px;font-weight:570;color:#d8dce1}.patient-insight-list>button>span:nth-child(4){font-size:10px;white-space:nowrap}.patient-insight-list>button>svg{width:12px;height:12px;color:#626872}
.patient-insight-backdrop{position:fixed;inset:0;z-index:100;background:rgba(2,3,4,.58);backdrop-filter:blur(2px);display:flex;justify-content:flex-end}.patient-insight-backdrop[hidden]{display:none}.patient-insight-drawer{width:min(445px,calc(100vw - 64px));height:100%;border-left:1px solid #2a2e33;background:linear-gradient(145deg,#111315,#0a0c0d 72%);box-shadow:-24px 0 70px rgba(0,0,0,.38);display:grid;grid-template-rows:auto minmax(0,1fr) auto;color:#d9dde1}.drawer-head{min-height:92px;padding:18px 18px 16px;border-bottom:1px solid #24272b;display:flex;justify-content:space-between;align-items:flex-start}.drawer-identity{display:flex;align-items:center;gap:12px}.drawer-identity>.avatar{width:38px;height:38px}.drawer-identity>div{display:grid;gap:4px}.drawer-identity p{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#6e747c}.drawer-identity h1{font-size:19px}.drawer-identity>div>span{color:#7e848c;font-size:10px}.drawer-scroll{min-height:0;overflow:auto;padding:18px;display:grid;align-content:start;gap:12px}.drawer-summary{padding:2px 2px 6px}.drawer-status{display:inline-flex;align-items:center;height:24px;padding:0 8px;border:1px solid #30343a;border-radius:999px;color:#aeb3ba;font-size:10px;margin-bottom:17px}.drawer-summary>p:first-of-type{color:#757b84;font-size:10px;text-transform:uppercase;letter-spacing:.07em}.drawer-summary h2{margin-top:7px;font-size:20px;line-height:1.25;letter-spacing:-.025em}.drawer-summary>p:last-of-type{margin-top:10px;color:#9ba1a9;line-height:1.55;font-size:11px}.drawer-change{margin-top:17px;display:flex;align-items:baseline;gap:8px}.drawer-change strong{font-size:29px;font-weight:620;letter-spacing:-.04em}.drawer-change span{color:#737982;font-size:10px}.drawer-trend{padding:14px 14px 10px}.drawer-trend>div:first-child{display:flex;justify-content:space-between;align-items:center}.drawer-trend h2{font-size:12px}.drawer-trend>div>span{color:#717780;font-size:10px}.drawer-trend svg{width:100%;height:150px;margin-top:7px}.drawer-grid path{fill:none;stroke:#25292d;stroke-width:1;stroke-dasharray:3 5}.drawer-trend-area{stroke:none;fill:rgba(226,0,116,.07)}.drawer-trend-line{fill:none;stroke:#e74491;stroke-width:1.7}.drawer-trend-point{fill:#e74491;stroke:#141618;stroke-width:2}.drawer-trend footer{display:flex;justify-content:space-between;color:#626872;font-size:9px}.drawer-evidence{border:1px solid #25292d;border-radius:7px;background:rgba(255,255,255,.012);padding:14px}.drawer-evidence h2{font-size:12px;margin-bottom:13px}.drawer-evidence>div{display:grid;gap:11px}.drawer-evidence span{display:flex;justify-content:space-between;color:#747a82;font-size:10px}.drawer-evidence b{color:#cbd0d5;font-weight:510}.drawer-action{border:1px solid #2b3038;border-radius:7px;background:linear-gradient(135deg,rgba(101,118,232,.055),rgba(226,0,116,.025));padding:13px;display:flex;gap:11px}.drawer-action-icon{width:31px;height:31px;border:1px solid #3b4055;border-radius:6px;display:grid;place-items:center;color:#8997ef;flex:0 0 auto}.drawer-action-icon svg{width:15px}.drawer-action div{display:grid;gap:5px}.drawer-action p{color:#747b84;font-size:9px;text-transform:uppercase;letter-spacing:.05em}.drawer-action strong{font-size:11px;line-height:1.45;font-weight:520}.drawer-footer{height:67px;border-top:1px solid #25282c;background:#0d0f10;padding:0 18px;display:flex;align-items:center;justify-content:flex-end;gap:8px}

.chart-dot{cursor:pointer}

@media(max-width:1160px){.insight-metrics{grid-template-columns:repeat(2,1fr)}.insight-dashboard{grid-template-columns:1fr}.pulse-panel{min-height:0}.cohort-panel{order:3}.health-panel{order:4}}

@media(max-width:1180px){.sources-layout{grid-template-columns:minmax(0,1fr) 300px}.source-table{font-size:10px;padding-left:10px;padding-right:10px;gap:6px}.source-controls{align-items:flex-start;flex-direction:column}.source-filters{width:100%}.source-filters button{flex:1}.inline-search{width:44%}}

/* Compact notification center: alerts belong to the global bell, not the sidebar. */
.alert-trigger{position:relative}.alert-trigger i{position:absolute;right:5px;top:5px;width:6px;height:6px;border-radius:50%;background:#f0187d;box-shadow:0 0 0 2px #0d0f10}.alert-trigger[aria-expanded="true"]{background:#17191c;color:#e1e4e7}
.alert-popover-backdrop{position:fixed;inset:0;z-index:90;background:rgba(2,3,4,.12)}.alert-popover-backdrop[hidden]{display:none}.alert-center{position:absolute;right:14px;top:58px;width:min(430px,calc(100vw - 28px));max-height:calc(100vh - 72px);overflow:hidden;border:1px solid #2a2d31;border-radius:10px;background:linear-gradient(150deg,rgba(19,21,23,.985),rgba(10,12,13,.99));box-shadow:0 24px 70px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.015);display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto;color:#d7dbe0}.alert-center-head{min-height:68px;padding:14px 14px 12px 16px;display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #24272a}.alert-center-head .eyebrow{font-size:8px;margin-bottom:5px}.alert-center-head h2{font-size:16px;letter-spacing:-.02em}.alert-center-head h2 small{display:inline-grid;place-items:center;min-width:19px;height:19px;margin-left:6px;padding:0 5px;border:1px solid #35393e;border-radius:99px;color:#979da5;font-size:9px;font-weight:520;vertical-align:2px}.alert-center-tabs{height:39px;padding:0 16px;display:flex;gap:20px;border-bottom:1px solid #24272a}.alert-center-tabs button{position:relative;border:0;background:transparent;color:#717780;font-size:10px;cursor:pointer}.alert-center-tabs button.active{color:#d8dce1}.alert-center-tabs button.active:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:#e20074}.alert-center-tabs span{margin-left:3px;color:#d15b85}.alert-center-list{overflow:auto}.alert-center-list .alert-row{min-height:58px;padding:0 14px;display:grid;grid-template-columns:26px minmax(0,1fr) auto 12px;gap:10px;align-items:center;text-align:left}.alert-center-list .alert-row>span{display:grid;gap:4px;min-width:0}.alert-center-list .alert-row strong{font-size:10px}.alert-center-list .alert-row small{font-size:9px}.alert-center-list .alert-row time{font-size:9px}.alert-center-list .alert-row>svg{width:10px;height:10px}.alert-center-list .alert-row.active{background:linear-gradient(90deg,rgba(255,255,255,.045),rgba(255,255,255,.018))}.alert-center-list .alert-severity{width:25px;height:25px}.alert-center-preview{padding:14px 16px 15px;border-top:1px solid #292c30;background:rgba(255,255,255,.012)}.alert-preview-top{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#717780;font-size:9px}.alert-center-preview h3{margin-top:11px;font-size:13px}.alert-preview-value{display:flex;align-items:baseline;gap:6px;margin-top:9px}.alert-preview-value strong{font-size:20px;letter-spacing:-.035em}.alert-preview-value span{color:#747a82;font-size:9px}.alert-center-preview>p{margin-top:7px;color:#858b93;font-size:9px;line-height:1.45}.alert-preview-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.alert-preview-meta span{display:grid;gap:4px;color:#656b73;font-size:8px}.alert-preview-meta b{color:#b9bec4;font-size:9px;font-weight:520;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.alert-center-actions{min-height:54px;padding:9px 14px;border-top:1px solid #282b2f;display:flex;justify-content:flex-end;gap:7px;background:#0d0f10}

/* Insights controls and cards stay aligned without clipping. */
.insights-heading{display:flex;justify-content:space-between;gap:20px;min-width:0}.insights-heading>div:first-child{min-width:0}.insight-controls{flex:0 0 auto;align-items:center}.insight-filter{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;padding:0 11px}.insight-filter svg{width:10px;height:10px;transform:rotate(90deg);color:#6f757d}.insight-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.insight-stat{min-width:0}.insight-stat header{grid-template-columns:28px minmax(0,1fr) auto}.insight-stat header p,.insight-stat footer{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stat-delta{white-space:nowrap}
@media(max-width:1160px){.insights-heading{align-items:flex-start}.insight-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.insights-page{padding:18px 14px 34px}.insights-heading{align-items:flex-start;flex-direction:column;gap:13px}.insight-controls{width:100%}.insight-controls .button{flex:1;min-width:0}.insight-metrics{grid-template-columns:1fr}.insight-stat footer{white-space:normal;line-height:1.35}.chart-panel-head{align-items:flex-start;flex-direction:column;gap:10px}.chart-legend{flex-wrap:wrap}.alert-center{right:8px;top:54px;width:calc(100vw - 16px)}}

/* No purple: use neutral blue-gray and clinical cyan alongside T-Mobile magenta. */
.avatar{background:linear-gradient(135deg,#e20074,#9c004f)}
.avatar.purple{background:linear-gradient(135deg,#ed2f91,#b6005d)}
.avatar.coral{background:linear-gradient(135deg,#df7088,#a73d5a)}
.avatar.blue{background:linear-gradient(135deg,#4d83a8,#31566f)}
.legend-dot.violet,.chart-dot.violet{background:#4fa6b4}
.trend-line.violet{stroke:#4fa6b4}
.chart-dot.violet{fill:#4fa6b4}
.attention-line.mobility{stroke:#4fa6b4}
.attention-points.mobility{fill:#4fa6b4}
.metric-symbol.source-gap{color:#61b5c1}
.pulse-callout{background:linear-gradient(135deg,rgba(79,166,180,.045),rgba(255,255,255,.012))}
.pulse-icon{border-color:#31515a;color:#61b5c1}
.pulse-callout button{color:var(--magenta-bright)}
.alert-severity.follow{color:#61b5c1;background:rgba(79,166,180,.045)}
.alert-recommendation{background:linear-gradient(135deg,rgba(79,166,180,.05),rgba(226,0,116,.02))}
.alert-recommendation>span{border-color:#31515a;color:#61b5c1}
.drawer-action{background:linear-gradient(135deg,rgba(79,166,180,.05),rgba(226,0,116,.025))}
.drawer-action-icon{border-color:#31515a;color:#61b5c1}

/* Linear-style KPI cards: typography and state only, without decorative icons. */
.insight-stat{min-height:98px;padding:15px 15px 14px;gap:8px}
.insight-stat header{grid-template-columns:minmax(0,1fr) auto;gap:10px}
.insight-stat header p{font-size:9px;letter-spacing:.075em;color:#777d85}
.insight-stat>strong{font-size:27px;font-weight:610}
.insight-stat footer{font-size:9px;color:#70767e}
.insight-stat footer .status-dot{width:6px;height:6px;margin-right:6px}

/* Insights chart: magenta primary series with grayscale comparison series. */
.insights-page .stat-link .danger-text,.insights-page .chart-footer .danger-text{color:var(--magenta-bright)!important}
.insights-page .stat-link .status-dot.magenta,.insights-page .pulse-list .status-dot.magenta,.insights-page .patient-insight-list .status-dot.magenta{background:var(--magenta-bright)}
.insights-page .legend-dot{width:12px;height:2px;border-radius:2px}
.insights-page .legend-dot.violet{background:#989fa7}
.insights-page .legend-dot.amber{background:#626970}
.insights-page .attention-line.mobility{stroke:#989fa7;stroke-dasharray:7 5}
.insights-page .attention-line.gaps{stroke:#626970;stroke-dasharray:2 6}
.insights-page .attention-points.mobility{fill:#989fa7}
.insights-page .attention-points.gaps{fill:#626970}
.insights-page .pulse-callout{background:rgba(255,255,255,.012)}
.insights-page .pulse-icon{border-color:#34383d;color:#8d949c}

/* Data Sources master-detail: full list by default, detail only after selection. */
.sources-layout{grid-template-columns:minmax(0,1fr)}
.sources-layout.detail-open{grid-template-columns:minmax(0,1fr) 330px}
.source-detail[hidden]{display:none}
.sources-layout.detail-open .source-detail{animation:source-detail-in .16s var(--ease)}
@keyframes source-detail-in{from{opacity:0;transform:translateX(8px)}to{opacity:1;transform:none}}
.source-product-visual{height:170px;margin:0;border-bottom:1px solid #26292d;background:radial-gradient(160px 120px at 50% 44%,#f4f4f1,#d8dad9 78%,#c8cbcb);position:relative;display:grid;place-items:center;overflow:hidden}
.source-product-visual:after{content:"";position:absolute;inset:0;box-shadow:inset 0 0 45px rgba(21,24,27,.1);pointer-events:none}
.source-product-visual img{width:100%;height:100%;object-fit:contain;padding:12px;mix-blend-mode:multiply}
.source-product-visual figcaption{position:absolute;right:10px;bottom:9px;z-index:1;max-width:calc(100% - 20px);padding:4px 7px;border:1px solid rgba(20,22,24,.13);border-radius:5px;background:rgba(245,245,242,.84);backdrop-filter:blur(8px);color:#4b5055;font-size:8px;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:1180px){.sources-layout.detail-open{grid-template-columns:minmax(0,1fr) 300px}}
@media(max-width:900px){.sources-layout.detail-open{grid-template-columns:minmax(0,1fr)}.sources-layout.detail-open .source-detail{position:fixed;z-index:85;right:0;top:0;bottom:0;width:min(390px,calc(100vw - 64px));box-shadow:-24px 0 70px rgba(0,0,0,.5)}}

/* Product imagery gets consistent breathing room and never sits under its label. */
.source-product-visual{height:192px;grid-template-rows:minmax(0,1fr) 28px;align-items:stretch;background:radial-gradient(170px 115px at 50% 42%,#f5f5f2,#dde0df 78%,#ced1d1)}
.source-product-visual img{width:100%;height:100%;min-height:0;padding:10px 18px;object-fit:contain;object-position:center;transform:scale(.98);transform-origin:center;mix-blend-mode:multiply}
.source-product-visual figcaption{position:static;display:flex;align-items:center;justify-content:flex-end;max-width:none;padding:0 11px;border:0;border-top:1px solid rgba(20,22,24,.1);border-radius:0;background:rgba(244,245,242,.78);color:#555b60;font-size:8px}

/* Compact opaque alert popover; global alerts should not compete with page drawers. */
.alert-popover-backdrop{background:transparent}
.alert-center{right:12px;top:57px;width:min(392px,calc(100vw - 24px));max-height:calc(100vh - 70px);border-color:#292d31;border-radius:9px;background:#101214;box-shadow:0 20px 58px rgba(0,0,0,.58),0 0 0 1px rgba(255,255,255,.012);grid-template-rows:auto auto minmax(0,1fr) auto auto}
.alert-trigger[aria-expanded="true"],.alert-trigger[aria-expanded="true"]:focus-visible{outline:0!important;box-shadow:inset 0 0 0 1px #35393e;background:#17191c;color:#e1e4e7}
.alert-center-head{min-height:59px;padding:11px 12px 10px 14px;background:#111315}
.alert-center-head .eyebrow{font-size:7px;margin-bottom:4px}.alert-center-head h2{font-size:15px}.alert-center-head h2 small{height:18px;min-width:18px;font-size:8px}
.alert-center-tabs{height:35px;padding:0 14px;gap:18px}.alert-center-tabs button{font-size:9px}
.alert-center-list{max-height:204px}.alert-center-list .alert-row{min-height:51px;padding:0 12px;grid-template-columns:24px minmax(0,1fr) auto 10px;gap:9px}.alert-center-list .alert-severity{width:24px;height:24px}.alert-center-list .alert-row strong{font-size:9px}.alert-center-list .alert-row small,.alert-center-list .alert-row time{font-size:8px}
.alert-center-preview{padding:11px 14px 12px;background:#0e1012}.alert-preview-top{font-size:8px}.alert-center-preview h3{margin-top:8px;font-size:12px}.alert-preview-value{margin-top:7px}.alert-preview-value strong{font-size:18px}.alert-center-preview>p{margin-top:6px;font-size:8px}.alert-preview-meta{margin-top:9px;gap:6px}.alert-preview-meta span{font-size:7px}.alert-preview-meta b{font-size:8px}
.alert-center-actions{min-height:48px;padding:7px 12px}.alert-center-actions .button{height:32px;font-size:10px}

/* Persistent light appearance: same hierarchy and clinical colors, brighter material. */
.theme-toggle .theme-icon{position:absolute;width:16px;height:16px}.theme-icon-moon{display:none}
html[data-theme="light"]{color-scheme:light;--bg:#f4f4f2;--panel:#fff;--panel-2:#f8f8f6;--line:#d9dbdd;--line-soft:#e7e8e8;--text:#202226;--muted:#6c7178;--muted-2:#8a8f96}
html[data-theme="light"] body{background:radial-gradient(900px 520px at 8% 100%,rgba(65,71,78,.09),transparent 67%),radial-gradient(700px 460px at 100% 8%,rgba(226,0,116,.045),transparent 70%),#eeefed;color:#303338}
html[data-theme="light"] .theme-icon-sun{display:none}html[data-theme="light"] .theme-icon-moon{display:block}
html[data-theme="light"] .app-frame{border-color:#c9cccf;background:#f5f5f3;box-shadow:0 26px 75px rgba(39,43,48,.18),inset 0 1px #fff}
html[data-theme="light"] .sidebar{background:linear-gradient(180deg,#f7f7f5,#f1f2f0);border-color:#d9dbdd}
html[data-theme="light"] .content-frame{border-color:#cfd2d4;background:#fbfbfa;box-shadow:inset 0 1px #fff}
html[data-theme="light"] .topbar{background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,248,246,.97));border-color:#dde0e2;box-shadow:0 1px 0 rgba(25,29,33,.04)}
html[data-theme="light"] .main-shell,html[data-theme="light"] .sources-main,html[data-theme="light"] .conversation-pane{background:radial-gradient(700px 320px at 42% -100px,rgba(226,0,116,.025),transparent 72%),#fafaf8}
html[data-theme="light"] h1,html[data-theme="light"] h2,html[data-theme="light"] .metric-value,html[data-theme="light"] .breadcrumbs strong{color:#202226}
html[data-theme="light"] .brand,html[data-theme="light"] .nav-item.active,html[data-theme="light"] .nav-item:hover{color:#303338}
html[data-theme="light"] .brand-product{color:#34373b}
html[data-theme="light"] .nav-item.active{background:linear-gradient(90deg,rgba(25,29,33,.075),rgba(25,29,33,.035))}
html[data-theme="light"] .nav-item:hover{background:rgba(25,29,33,.045)}
html[data-theme="light"] .search-trigger,html[data-theme="light"] .inline-search,html[data-theme="light"] .source-filters button,html[data-theme="light"] .filter-button{border-color:#d6d9dc;background:#fff;color:#5e646b;box-shadow:inset 0 1px #fff}
html[data-theme="light"] .button:not(.button-primary){border-color:#d2d5d8;background:#fff;color:#33363b;box-shadow:inset 0 1px #fff}
html[data-theme="light"] .button:not(.button-primary):hover{border-color:#c4c8cc;background:#f3f4f2}
html[data-theme="light"] kbd{border-color:#d9dcde;background:#f2f3f2;color:#777c82}
html[data-theme="light"] .icon-button:hover{background:rgba(22,26,30,.055);color:#25282c}
html[data-theme="light"] .top-actions i,html[data-theme="light"] .alert-trigger i{box-shadow:0 0 0 2px #fafaf8}
html[data-theme="light"] .panel,html[data-theme="light"] .metric:nth-child(n),html[data-theme="light"] .attention-panel,html[data-theme="light"] .coverage,html[data-theme="light"] .sync-panel,html[data-theme="light"] .patient-panel,html[data-theme="light"] .signals-panel,html[data-theme="light"] .summary-panel,html[data-theme="light"] .context-panel,html[data-theme="light"] .activity-panel,html[data-theme="light"] .plan-panel{border-color:#dadddf;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(246,247,245,.96));box-shadow:inset 0 1px #fff,0 1px 2px rgba(31,35,39,.05)}
html[data-theme="light"] .panel:hover{border-color:#cdd0d3;box-shadow:inset 0 1px #fff,0 5px 20px rgba(31,35,39,.06)}
html[data-theme="light"] .insight-stat>strong{color:#282b2f}
html[data-theme="light"] .stat-delta{border-color:#d4d7d9;background:#f4f5f3;color:#596067}
html[data-theme="light"] .attention-row,html[data-theme="light"] .patient-row,html[data-theme="light"] .signal-row,html[data-theme="light"] .source-row{color:#2d3035}
html[data-theme="light"] .attention-row:hover,html[data-theme="light"] .patient-row:hover,html[data-theme="light"] .signal-row:hover,html[data-theme="light"] .source-row:hover{background:linear-gradient(90deg,rgba(25,29,33,.05),rgba(25,29,33,.018))}
html[data-theme="light"] .patient-name strong,html[data-theme="light"] .attention-copy strong,html[data-theme="light"] .signal-row>span,html[data-theme="light"] .patient-row>span:not(.patient-name){color:#34373b}
html[data-theme="light"] .donut:after{background:#fff}
html[data-theme="light"] .legend b,html[data-theme="light"] .sync-stats b{color:#303338}
html[data-theme="light"] .source-detail{border-color:#d6d9db;background:linear-gradient(145deg,#fff,#f6f7f5)}
html[data-theme="light"] .source-detail-head,html[data-theme="light"] .detail-section,html[data-theme="light"] .source-detail-actions,html[data-theme="light"] .source-head,html[data-theme="light"] .source-row,html[data-theme="light"] .source-controls,html[data-theme="light"] .sources-heading{border-color:#e0e2e3}
html[data-theme="light"] .source-detail-actions{background:#fafaf8}
html[data-theme="light"] .diagnostic-list b,html[data-theme="light"] .trace-list button,html[data-theme="light"] .related-detail>button{color:#303338}
html[data-theme="light"] .quality-explainer{border-color:#d9dcde;background:#f7f8f7;color:#666c73}
html[data-theme="light"] .trace-list i{background:#fff;border-color:#c8ccd0}
html[data-theme="light"] .alert-center{border-color:#cfd2d4;background:#fff;box-shadow:0 22px 62px rgba(37,41,46,.22),0 0 0 1px rgba(255,255,255,.8);color:#303338}
html[data-theme="light"] .alert-center-head,html[data-theme="light"] .alert-center-preview,html[data-theme="light"] .alert-center-actions{background:#fafaf8}
html[data-theme="light"] .alert-center-head,html[data-theme="light"] .alert-center-tabs,html[data-theme="light"] .alert-row,html[data-theme="light"] .alert-center-preview,html[data-theme="light"] .alert-center-actions{border-color:#e1e3e4}
html[data-theme="light"] .alert-center-list .alert-row.active{background:linear-gradient(90deg,rgba(25,29,33,.055),rgba(25,29,33,.018))}
html[data-theme="light"] .alert-center-preview h3,html[data-theme="light"] .alert-preview-value strong,html[data-theme="light"] .alert-preview-meta b,html[data-theme="light"] .alert-center-list .alert-row strong{color:#2a2d31}
html[data-theme="light"] .alert-trigger[aria-expanded="true"],html[data-theme="light"] .alert-trigger[aria-expanded="true"]:focus-visible{background:#eceeec;color:#25282c;box-shadow:inset 0 0 0 1px #cdd0d3}
html[data-theme="light"] .command-overlay{background:rgba(45,49,54,.22)}html[data-theme="light"] .command-box{border-color:#cfd2d4;background:#fff;box-shadow:0 20px 60px rgba(37,41,46,.2)}html[data-theme="light"] .command-input{border-color:#e0e2e3;background:#fafaf8}html[data-theme="light"] .command-input input{color:#292c30}html[data-theme="light"] .command-results button{color:#3d4146}html[data-theme="light"] .command-results button:hover,html[data-theme="light"] .command-results button.active{background:#f1f2f1}
html[data-theme="light"] .patient-insight-backdrop{background:rgba(45,49,54,.2)}html[data-theme="light"] .patient-insight-drawer{border-color:#cfd2d4;background:linear-gradient(145deg,#fff,#f5f6f4);color:#303338}html[data-theme="light"] .drawer-footer{background:#fafaf8}

/* Light v2 — based on the original T-Mobile care concept: clean white canvas,
   restrained pink gradients, hairline structure, and generous whitespace. */
html[data-theme="light"]{--bg:#fff;--panel:#fff;--panel-2:#fdfcfd;--line:#e7e3e7;--line-soft:#f0edf0;--text:#242328;--muted:#77757d;--muted-2:#aaa6ae}
html[data-theme="light"] body{background:#0b0b0c;color:#38363d}
html[data-theme="light"] .ambient{display:none}
html[data-theme="light"] .app-frame{border-color:#ddd9de;background:#fff;box-shadow:0 30px 90px rgba(0,0,0,.28),inset 0 1px #fff}
html[data-theme="light"] .sidebar{background:#fff;border-right:1px solid #ece8ec}
html[data-theme="light"] .content-frame{border-color:#e5e1e5;background:#fff;box-shadow:none}
html[data-theme="light"] .topbar{background:rgba(255,255,255,.97);border-color:#eee9ed;box-shadow:0 1px 0 rgba(35,30,35,.025)}
html[data-theme="light"] .main-shell,html[data-theme="light"] .sources-main,html[data-theme="light"] .conversation-pane{background:radial-gradient(650px 260px at 42% -100px,rgba(226,0,116,.027),transparent 74%),#fff}
html[data-theme="light"] .page{color:#38363d}
html[data-theme="light"] .nav-label{color:#98949c}
html[data-theme="light"] .nav-item{color:#9a97a0}
html[data-theme="light"] .nav-item.active{background:#f5f2f4;color:#37343a;box-shadow:none}
html[data-theme="light"] .nav-item:hover{background:#faf7f9;color:#4a474e}
html[data-theme="light"] .nav-item:focus-visible{outline:0;box-shadow:inset 0 0 0 1px #ded8de}
html[data-theme="light"] .system-line{color:#8b8790}
html[data-theme="light"] .profile:hover{background:#faf7f9}
html[data-theme="light"] .search-trigger,html[data-theme="light"] .inline-search{border-color:#e6e1e6;background:#fff;box-shadow:0 4px 16px rgba(38,29,37,.025),inset 0 1px #fff}
html[data-theme="light"] .search-trigger:hover{border-color:#d8d1d8;background:#fff}
html[data-theme="light"] .top-actions{border-color:#ece7eb}
html[data-theme="light"] .panel,html[data-theme="light"] .metric:nth-child(n),html[data-theme="light"] .attention-panel,html[data-theme="light"] .coverage,html[data-theme="light"] .sync-panel,html[data-theme="light"] .patient-panel,html[data-theme="light"] .signals-panel,html[data-theme="light"] .summary-panel,html[data-theme="light"] .context-panel,html[data-theme="light"] .activity-panel,html[data-theme="light"] .plan-panel{border-color:#e8e4e8;background:#fff;box-shadow:0 7px 26px rgba(41,31,40,.035),inset 0 1px #fff}
html[data-theme="light"] .panel:hover{border-color:#ddd7dd;box-shadow:0 10px 30px rgba(41,31,40,.05),inset 0 1px #fff}
html[data-theme="light"] .metric:nth-child(3),html[data-theme="light"] #open-alerts-card{background:linear-gradient(145deg,#fff 15%,#fff7fb 100%)}
html[data-theme="light"] .panel-head,html[data-theme="light"] .signals-head,html[data-theme="light"] .table-head,html[data-theme="light"] .insight-panel-head,html[data-theme="light"] .chart-footer{border-color:#f0ecf0}
html[data-theme="light"] .attention-row,html[data-theme="light"] .patient-row,html[data-theme="light"] .signal-row{border-color:#f0edf0}
html[data-theme="light"] .attention-row:hover,html[data-theme="light"] .patient-row:hover,html[data-theme="light"] .signal-row:hover{background:linear-gradient(90deg,#fff8fb,rgba(255,255,255,.2))}
html[data-theme="light"] .neutral-bg{background:#f7f5f7;color:#99959d}
html[data-theme="light"] .priority{border:1px solid transparent;background:transparent}
html[data-theme="light"] .priority-review{color:#a77400;background:#fff8e6;border-color:#f4e5b8}
html[data-theme="light"] .priority-high{color:#d60069;background:#fff0f7;border-color:#f7cadf}
html[data-theme="light"] .priority-low{color:#817d85;background:#f5f3f5;border-color:#e5e0e5}
html[data-theme="light"] .patient-state p{color:#3b383f}
html[data-theme="light"] .patient-tabs{border-color:#ebe6eb}
html[data-theme="light"] .patient-tabs button:hover,html[data-theme="light"] .patient-tabs button.active{color:#2c2a2f}
html[data-theme="light"] .summary-panel p,html[data-theme="light"] .signal-row>span,html[data-theme="light"] .timeline p,html[data-theme="light"] .detail-list b{color:#4d4a51}
html[data-theme="light"] .timeline>div:not(:last-child):before{background:#ded9de}
html[data-theme="light"] .timeline i{box-shadow:0 0 0 4px #fff}
html[data-theme="light"] .context-icon{border-color:#e5e0e5;background:#fdfbfd}
html[data-theme="light"] .context-flow strong{color:#39363d}
html[data-theme="light"] .source-controls,html[data-theme="light"] .sources-heading,html[data-theme="light"] .source-head,html[data-theme="light"] .source-row,html[data-theme="light"] .sources-footer{border-color:#eee9ee}
html[data-theme="light"] .source-filters button,html[data-theme="light"] .filter-button,html[data-theme="light"] .insight-filter{border-color:#e5e0e5;background:#fff;color:#5e5a62;box-shadow:0 3px 13px rgba(43,32,41,.025)}
html[data-theme="light"] .source-row.active{background:linear-gradient(90deg,#fff4f9,#fff 68%);box-shadow:inset 2px 0 #e20074}
html[data-theme="light"] .quality-label{background:#fff;border-color:#ded8de}
html[data-theme="light"] .quality-label.verified{color:#29945a;border-color:#cfe5d7;background:#fbfffc}
html[data-theme="light"] .quality-label.usable{color:#a87900;border-color:#eadfb9;background:#fffdf7}
html[data-theme="light"] .quality-label.retake{color:#d34a6d;border-color:#edced7;background:#fff9fb}
html[data-theme="light"] .source-detail{background:#fff;border-color:#e7e2e7}
html[data-theme="light"] .source-detail-head,html[data-theme="light"] .detail-section,html[data-theme="light"] .source-detail-actions{border-color:#eee9ee}
html[data-theme="light"] .source-detail-actions{background:rgba(255,255,255,.96)}
html[data-theme="light"] .insight-stat{background:#fff}
html[data-theme="light"] .insight-stat header p{color:#817d85}
html[data-theme="light"] .insight-stat footer{color:#7d7981}
html[data-theme="light"] .chart-grid path,html[data-theme="light"] .drawer-grid path{stroke:#ebe7eb;stroke-dasharray:3 6}
html[data-theme="light"] .chart-ticks text{fill:#8d8991}
html[data-theme="light"] .attention-points{stroke:#fff}
html[data-theme="light"] .attention-hit-zones rect:hover{fill:rgba(226,0,116,.025)}
html[data-theme="light"] .attention-trend-chart:after{background:radial-gradient(400px 170px at 78% 36%,rgba(226,0,116,.06),transparent 72%)}
html[data-theme="light"] .chart-tooltip{border-color:#e20074;background:linear-gradient(155deg,#e90079,#ee4da0);box-shadow:0 18px 38px rgba(148,0,75,.2);color:#fff}
html[data-theme="light"] .chart-tooltip span,html[data-theme="light"] .attention-tooltip small{color:rgba(255,255,255,.78)}
html[data-theme="light"] .chart-footer b{color:#49464d}
html[data-theme="light"] .pulse-ring{background:#fff}
html[data-theme="light"] .pulse-score>span{background:radial-gradient(circle,#fff 55%,transparent 57%),conic-gradient(#60d08b 0 78%,#ece8ec 78%);color:#25975a}
html[data-theme="light"] .pulse-list>div{border-color:#eee9ee}
html[data-theme="light"] .pulse-callout{border-color:transparent;background:linear-gradient(145deg,#e40075,#ef68ad);box-shadow:0 14px 32px rgba(162,0,82,.16)}
html[data-theme="light"] .pulse-callout strong,html[data-theme="light"] .pulse-callout p,html[data-theme="light"] .pulse-callout button{color:#fff}
html[data-theme="light"] .pulse-icon{border-color:rgba(255,255,255,.42);color:#fff;background:rgba(255,255,255,.12)}
html[data-theme="light"] .alert-center{border-color:#e4dfe4;background:#fff;box-shadow:0 25px 65px rgba(54,37,50,.18)}
html[data-theme="light"] .alert-center-head,html[data-theme="light"] .alert-center-preview,html[data-theme="light"] .alert-center-actions{background:#fff}
html[data-theme="light"] .alert-center-list .alert-row.active{background:#fff6fa}
html[data-theme="light"] .button:not(.button-primary){border-color:#e2dce2;background:#fff;color:#403d44;box-shadow:0 3px 12px rgba(42,32,40,.025)}
html[data-theme="light"] .button:not(.button-primary):hover{border-color:#d7cfd7;background:#fff9fc}
html[data-theme="light"] .button-primary{background:linear-gradient(180deg,#ed1684,#dc0071);box-shadow:0 10px 25px rgba(226,0,116,.17),inset 0 1px rgba(255,255,255,.22)}
html[data-theme="light"] .row-check{border-color:#cfc9cf;color:#fff}
html[data-theme="light"] .patient-row.selected{background:linear-gradient(90deg,#fff1f8,#fff 70%)}
html[data-theme="light"] .patient-row.selected .row-check{background:#e20074;border-color:#e20074}
html[data-theme="light"] .theme-toggle:focus-visible{outline:0;box-shadow:inset 0 0 0 1px #ddd6dd;background:#faf7f9;color:#4a464d}

/* Alerts removed; finish the Insights light-mode cleanup. */
.chart-tooltip[hidden]{display:none}
.insight-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
.profile{padding-left:14px}
.profile>div:first-child{display:grid;gap:3px;min-width:0}.profile>div:first-child strong{font-size:12px;font-weight:520}.profile>div:first-child span{color:var(--muted-2);font-size:10px}.profile .icon-button{margin-left:auto}
html[data-theme="light"] .cohort-head,html[data-theme="light"] .cohort-row,html[data-theme="light"] .health-note,html[data-theme="light"] .patient-insight-list>button{border-color:#eee9ee}
html[data-theme="light"] .cohort-row,html[data-theme="light"] .patient-insight-list>button{color:#67636b}
html[data-theme="light"] .cohort-row strong,html[data-theme="light"] .patient-insight-list strong,html[data-theme="light"] .patient-insight-value b{color:#403d44}
html[data-theme="light"] .health-ring:after{background:#fff}
@media(max-width:1160px){.insight-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Sidebar optical grid: icon, label, and count are fixed columns. */
@media(min-width:901px){
  .nav-item{display:grid;grid-template-columns:16px minmax(0,1fr) max-content;column-gap:8px;padding-left:7px;padding-right:7px}
  .nav-item svg{grid-column:1;width:16px;height:16px;justify-self:center}
  .nav-item>span:not(.nav-count){grid-column:2}
  .nav-count{grid-column:3;justify-self:end;margin-left:0}
  .system-line{display:grid;grid-template-columns:16px 1fr;column-gap:8px;padding:18px 7px 5px}
  .system-line .status-dot{justify-self:center;margin-right:0}
  .system-sub{padding-left:31px}
  .profile{margin-left:0;margin-right:0;padding-left:31px;padding-right:7px}
}
