:root{color-scheme:light;--ink:#1f3034;--muted:#627379;--line:#d9e1df;--paper:#f4f5f2;--card:#ffffff;--teal:#216d67;--teal-dark:#19534f;--lime:#d7e9dc;--coral:#f1a28f;--navy:#1c3438}*{box-sizing:border-box}html{min-height:100%}body,html{background:var(--paper)}body{margin:0;color:var(--ink);font-family:Tahoma,Segoe UI,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.app-shell{min-height:100vh;display:grid;grid-template-columns:250px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;padding:26px 18px;background:var(--navy);color:#f6f8f2;display:flex;flex-direction:column;gap:32px}.brand{display:flex;align-items:center;padding:0 7px}.brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;color:var(--navy);background:var(--lime);font-size:23px}.brand-title{font-size:15px;font-weight:800;letter-spacing:-.3px}.brand-sub{margin-top:4px;color:#9cb4b6;font-size:10px}.nav-label{padding:0 12px;color:#78999e;font-size:10px;font-weight:700;letter-spacing:.8px}.nav-list{display:grid;gap:7px}.nav-item{width:100%;border:0;border-radius:11px;padding:11px 12px;text-align:right;color:#bfd0cd;background:transparent;display:flex;align-items:center;gap:11px;font-size:13px;transition:.18s ease}.nav-item.active,.nav-item:hover{background:#1b414a;color:white}.nav-item.active{box-shadow:inset -3px 0 var(--lime)}.nav-icon{width:20px;text-align:center;color:var(--lime);font-size:17px}.side-bottom{margin-top:auto}.profile-card{padding:13px;border:1px solid #31505a;border-radius:15px;background:#173640}.profile-top{display:flex;align-items:center;gap:10px}.avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;color:var(--navy);background:var(--lime);font-weight:800}.profile-name{font-size:12px;font-weight:700}.profile-role{margin-top:4px;color:#9cb4b6;font-size:10px}.main-area{min-width:0;padding:30px clamp(18px,4vw,56px) 60px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:28px}.crumb{color:var(--muted);font-size:12px}.top-actions{display:flex;align-items:center;gap:10px}.icon-button,.outline-button{border:1px solid var(--line);border-radius:10px;background:white;color:var(--ink);padding:9px 12px;font-size:12px}.primary-button{border:0;border-radius:10px;padding:11px 16px;color:white;background:var(--teal);font-weight:700;font-size:12px;transition:background .18s,transform .18s}.primary-button:hover{background:var(--teal-dark);transform:translateY(-1px)}.primary-button:disabled{opacity:.55;cursor:wait;transform:none}.eyebrow{margin:0 0 10px;color:var(--teal);font-weight:800;letter-spacing:.3px}h1,h2,h3,p{margin-top:0}h1{margin-bottom:10px;font-size:clamp(25px,3vw,36px);letter-spacing:-1px}h2{font-size:19px;letter-spacing:-.4px}h2,h3{margin-bottom:7px}h3{font-size:14px}.subtle{line-height:1.9}.hero{overflow:hidden;min-height:230px;padding:30px 34px;border-radius:23px;background:var(--navy);color:white;display:flex;align-items:center}.hero,.hero-copy{position:relative}.hero-copy{max-width:570px;z-index:1}.hero h1{max-width:540px;line-height:1.55}.hero p{color:#b7c7c4;line-height:2}.hero .eyebrow{color:var(--lime)}.hero-art{position:absolute;left:25px;top:7px;color:#d9ef92;opacity:.12;font-size:190px;line-height:1;transform:rotate(-13deg)}.hero-cta{display:flex;gap:10px;flex-wrap:wrap}.hero-cta .primary-button{background:var(--lime);color:var(--navy)}.hero-cta .primary-button:hover{background:#edf8c7}.hero-cta .outline-button{border-color:#49616a;color:white}.section-head{display:flex;justify-content:space-between;align-items:end;gap:14px;margin:28px 0 15px}.section-head p{margin-bottom:0}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.feature-group,.panel,.result-card,.stat-card{border:1px solid var(--line);border-radius:16px;background:var(--card)}.stat-card{padding:16px}.stat-label{color:var(--muted)}.stat-value{margin-top:13px;font-size:26px;font-weight:800;letter-spacing:-.8px}.stat-foot{margin-top:4px;color:var(--teal)}.content-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.8fr);gap:15px}.panel{padding:20px}.panel-title{display:flex;justify-content:space-between;align-items:start;gap:10px;margin-bottom:16px}.pill{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:20px;background:#eaf4e8;color:#2d7758;font-size:10px;font-weight:700;white-space:nowrap}.pill.draft{background:#fff1dc;color:#9a671d}.activity-list{display:grid;gap:9px}.activity-item{padding:12px;border-radius:12px;background:#f6f8f5;display:flex;justify-content:space-between;gap:10px;align-items:center}.activity-item strong{display:block;font-size:12px}.activity-item small{display:block;margin-top:5px;color:var(--muted);font-size:10px}.empty-state{padding:27px 14px;border:1px dashed #cdd8d5;border-radius:13px;color:var(--muted);text-align:center;line-height:1.9;font-size:12px}.empty-icon{display:block;margin:0 auto 10px;color:var(--teal);font-size:26px}.page-intro{margin:0 0 20px}.practice-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;align-items:start;gap:16px}.feature-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.feature-group{padding:15px}.feature-group h3{display:flex;justify-content:space-between;align-items:center}.feature-group h3 small{color:var(--muted);font-size:10px;font-weight:400}.feature-checks{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.feature-chip{border:1px solid var(--line);border-radius:9px;padding:8px 9px;background:#fafbf9;color:#52616a;font-size:11px}.feature-chip.selected{border-color:#87b9a6;color:#075b59;background:#eaf5ec}.bubble-board{display:grid;gap:13px}.bubble-instructions{display:flex;align-items:center;gap:12px;padding:15px 17px;border:1px solid #cbded7;border-radius:15px;background:#eaf3eb}.bubble-instructions-icon{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:50%;color:var(--teal-dark);background:#d1e9d4;font-size:21px}.bubble-instructions strong{font-size:13px}.bubble-instructions p{margin:4px 0 0;color:#526b63;font-size:11px;line-height:1.8}.bubble-pool,.patient-zone{border:1px solid var(--line);border-radius:16px;padding:19px;background:var(--card);transition:border-color .15s,background .15s}.patient-zone{min-height:195px;border:2px dashed #95bdac;background:#f5faf3}.bubble-pool.is-over,.patient-zone.is-over{border-color:var(--teal);background:#e4f3e5}.bubble-zone-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.bubble-zone-heading h2{margin:5px 0 0;font-size:15px}.bubble-step{color:var(--teal-dark);font-size:10px;font-weight:700}.bubble-counter{padding:6px 10px;border-radius:20px;background:#e3efe5;color:#285e4c;font-size:11px;white-space:nowrap}.bubble-empty{display:grid;justify-items:center;padding:12px;color:#5b776b;text-align:center}.bubble-empty span{display:grid;place-items:center;width:43px;height:43px;border:1px dashed #9cbdab;border-radius:50%;font-size:23px}.bubble-empty p{margin:8px 0 3px;font-size:12px;font-weight:700}.bubble-empty small{font-size:10px;line-height:1.8}.bubble-groups{display:grid;gap:17px}.bubble-group h3{margin:0 0 9px;color:#596e68;font-size:11px}.bubble-cloud{display:flex;flex-wrap:wrap;gap:8px}.bubble-ghost,.clinical-bubble{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:8px 14px;border:1px solid #bed5cd;border-radius:30px;color:var(--teal-dark);background:#f0f8f4;font-size:12px;font-weight:700;line-height:1.5}.clinical-bubble{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}.clinical-bubble:active{cursor:grabbing}.clinical-bubble:hover{border-color:var(--teal);background:#e4f3eb}.clinical-bubble:focus-visible{outline:3px solid #368b7a;outline-offset:3px}.clinical-bubble span{display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#d4e9dc;font-size:16px;line-height:1}.clinical-bubble.is-selected{border-color:#8eb39a;background:#dfeedd;color:#204d3a}.clinical-bubble.is-selected span{background:#c4ddc6}.bubble-group-empty{color:#7a8c84;font-size:11px}.bubble-ghost{position:fixed;z-index:100;pointer-events:none;transform:translate(-50%,-50%);border-color:var(--teal);background:#d9efde;box-shadow:0 5px 16px #102d3733}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media (prefers-reduced-motion:reduce){.bubble-pool,.patient-zone{transition:none}}.field{display:grid;gap:7px;margin-bottom:12px}.field label{color:#65737c;font-size:11px;font-weight:700}.input,.select,.textarea{width:100%;border:1px solid #dce4e1;border-radius:9px;outline:0;padding:10px 11px;color:var(--ink);background:#fff;font-size:12px}.input:focus,.select:focus,.textarea:focus{border-color:var(--teal);box-shadow:0 0 0 3px #0d777415}.textarea{min-height:90px;resize:vertical;line-height:1.8}.full-width{width:100%}.result-list{display:grid;gap:9px;margin-top:14px}.result-card{padding:12px}.result-top{display:flex;align-items:center;gap:9px}.rank{width:24px;height:24px;display:grid;place-items:center;border-radius:7px;background:#eef3ee;color:var(--teal);font-weight:800;font-size:11px}.result-name{flex:1 1;font-size:12px;font-weight:800}.score{color:var(--teal);font-size:15px;font-weight:900}.reason-list{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}.reason{padding:4px 7px;border-radius:8px;background:#f3f6f3;color:#64716d;font-size:9px}.feedback{margin-top:14px;padding:11px 12px;border-radius:10px;background:#eff6dc;color:#53672c;font-size:11px;line-height:1.8}.feedback.warning{background:#fff1e9;color:#91563f}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px;background:white}.data-table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:11px}.data-table td,.data-table th{padding:9px 10px;border-bottom:1px solid #edf0ee;text-align:right}.data-table th{position:sticky;top:0;z-index:1;background:#f2f6f2;color:#63716e;font-weight:800}.data-table tr:last-child td{border-bottom:0}.data-table input{width:48px;border:1px solid #d8e1dd;border-radius:6px;padding:5px;text-align:center}.table-section{margin-top:19px}.table-section h3{margin-bottom:9px}.tabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:8px;margin-bottom:16px}.tab{flex:0 0 auto;border:1px solid var(--line);border-radius:9px;padding:8px 12px;background:#fff;color:#5f6e74;font-size:11px}.tab.active{border-color:var(--navy);color:white;background:var(--navy)}.inline-form{display:grid;grid-template-columns:repeat(3,1fr) auto;gap:9px;align-items:end}.inline-form .field{margin:0}.admin-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,.55fr);gap:15px}.checkbox-list{display:flex;flex-wrap:wrap;gap:7px;padding:5px 0 10px}.check-label{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:8px;padding:6px 8px;color:#59666d;font-size:10px}.check-label input{accent-color:var(--teal)}.alert{margin:0 0 14px;padding:11px 13px;border-radius:10px;color:#674e19;background:#fff2d2;font-size:11px;line-height:1.8}.alert.error{color:#8c3b35;background:#fff0ee}.auth-card{width:min(430px,100%);margin:6vh auto;padding:26px;border:1px solid var(--line);border-radius:19px;background:white;box-shadow:0 18px 55px #102d3710}.auth-back{display:inline-flex;margin-bottom:22px;color:var(--teal);font-size:11px}.notice{padding:12px;border-radius:10px;background:#eff6dc;color:#506429;font-size:11px;line-height:1.9}.footer-note{margin-top:28px;color:#8b9796;font-size:10px;text-align:center}.loading{padding:24px;color:var(--muted);font-size:12px}.sidebar{padding:30px 20px;background:#20383b}.brand{gap:12px}.brand-mark{width:43px;height:43px;border:1px solid #9dc1b2;border-radius:11px;color:#ecf6ee;background:transparent;font-size:24px;font-weight:700}.brand-title{font-size:19px}.brand-sub{color:#b4c8c1;font-size:11px}.nav-label{color:#b6c7c2;font-size:11px}.nav-item{min-height:44px;border-radius:7px;color:#d2dfda}.nav-item.active,.nav-item:hover{background:#34514e}.nav-item.active{box-shadow:inset -3px 0 #a3c9af}.nav-icon{color:#b7d3c1}.profile-card{border-color:#54706a;border-radius:9px;background:#294541}.profile-role{color:#c0d0c8;line-height:1.8}.main-area{padding-top:27px}.topbar{padding-bottom:19px;border-bottom:1px solid var(--line)}.crumb{color:#536a6b;font-size:13px}.environment-label{display:inline-flex;align-items:center;gap:7px;color:#506c62;font-size:11px}.environment-label span{color:#428967;font-size:9px}.outline-button,.primary-button{min-height:42px;border-radius:7px;font-size:12px}.primary-button{background:var(--teal-dark)}.primary-button:hover{background:#123f3c}.primary-button:disabled{cursor:not-allowed}.outline-button:hover{border-color:#9ab8ac;background:#f7faf7}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8ebbaa;outline-offset:2px}.eyebrow{color:#377769;font-size:11px}.eyebrow,h1{letter-spacing:0}h1{line-height:1.6}h2{letter-spacing:0}.subtle{color:var(--muted);font-size:12px}.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(205px,.42fr);gap:40px;min-height:270px;padding:36px 38px;border:1px solid #d5e2dc;border-radius:12px;background:#eaf1eb;color:var(--ink)}.hero-copy{max-width:590px}.hero h1{max-width:550px;margin-bottom:10px;font-size:clamp(25px,2.7vw,34px)}.hero p{max-width:510px;color:#50675f;font-size:13px}.hero .eyebrow{color:#377769}.hero-cta{margin-top:20px}.hero-cta .primary-button{background:var(--teal-dark);color:#fff}.hero-cta .primary-button:hover{background:#123f3c}.hero-cta .primary-button span{margin-right:14px}.hero-cta .outline-button{border-color:#b8ccc0;color:#26483f;background:transparent}.hero-cta .outline-button:hover{background:#f5f9f5}.hero-note{align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding:4px 25px 4px 0;border-right:1px solid #bdcfc2}.hero-note-label{color:#568172;font-size:11px}.hero-note strong{display:block;margin:12px 0 8px;font-size:16px}.hero-note p{margin:0;font-size:12px}.hero-note-index{margin-top:20px;color:#55766b;font-size:10px}.stats-grid{gap:0;margin-top:18px;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:#fff}.stat-card{min-width:0;border:0;border-left:1px solid var(--line);border-radius:0;padding:18px 20px}.stat-card:last-child{border-left:0}.stat-label{color:#5d7270;font-size:11px}.stat-value{margin-top:8px;font-size:24px}.stat-foot{color:#52796b;font-size:10px}.feature-group,.panel,.result-card{border-radius:10px}.panel{padding:22px}.activity-item{border-radius:7px;background:#f5f7f4}.pill{background:#edf3ee;color:#356b55}.page-intro{margin-bottom:24px}.bubble-instructions{border-radius:10px;background:#edf4ee}.bubble-instructions-icon{border-radius:10px;background:#dbeae0}.bubble-pool,.patient-zone{border-radius:10px}.patient-zone{background:#f7faf6}.auth-card{border-radius:12px;box-shadow:0 12px 35px #20383b0d}.footer-note{line-height:1.8}@media (max-width:1050px){.app-shell{grid-template-columns:210px minmax(0,1fr)}.stats-grid{grid-template-columns:repeat(2,1fr)}.admin-grid,.practice-layout{grid-template-columns:1fr}.stat-card:nth-child(2){border-left:0}.stat-card:nth-child(-n+2){border-bottom:1px solid var(--line)}}@media (max-width:720px){.app-shell{display:block}.sidebar{position:fixed;inset:auto 0 0;z-index:10;width:100%;height:auto;padding:7px 8px max(7px,env(safe-area-inset-bottom));border-top:1px solid #31505a}.sidebar .brand,.sidebar .nav-label,.sidebar .side-bottom{display:none}.nav-list{grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:3px}.nav-item{justify-content:center;flex-direction:column;gap:3px;padding:6px 2px;font-size:9px}.nav-item.active{box-shadow:inset 0 -2px var(--lime)}.nav-icon{font-size:15px}.main-area{padding:17px 15px 90px}.topbar{margin-bottom:18px}.hero{grid-template-columns:1fr;gap:24px;min-height:0;padding:25px 22px}.hero-note{padding:18px 0 0;border-right:0;border-top:1px solid #bdcfc2}.hero-note-index{margin-top:12px}.content-grid,.feature-groups,.inline-form{grid-template-columns:1fr}.section-head{align-items:start;flex-direction:column}}