:root{--bg:#fff;--surface:#fff;--ink:#28293b;--muted:#80818e;--line:#e7e7e8;--purple:#64567f;--purple-dark:#51436c;--red:#ef3340;--red-bg:#ffe0e3;--red-ink:#a11d2a;--orange:#ff8a00;--orange-bg:#ffe6c6;--orange-ink:#8a4100;--yellow:#ffd400;--yellow-bg:#fff3ad;--yellow-ink:#665100;--green:#00b85a;--green-bg:#d1f5df;--green-ink:#006f3a;--radius:20px;--shadow:0 8px 34px #22213a06}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:95px}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}button,select,input,textarea{font:inherit}button,a,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:inherit}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #a39abd;outline-offset:3px}.hidden{display:none!important}.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}.skip-link{position:fixed;top:-100px;left:20px;padding:12px;background:#fff;z-index:200}.skip-link:focus{top:10px}.icon{width:20px;height:20px;display:block;flex:0 0 auto;stroke:currentColor;stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round}[data-icon]{display:inline-flex;vertical-align:middle}
.topbar{height:84px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:32px;padding:0 max(36px,calc((100vw - 1344px)/2));background:#fff;position:sticky;top:0;z-index:25;backdrop-filter:blur(16px)}.brand{text-decoration:none;display:flex;align-items:center;gap:12px;font-size:23px;font-weight:750;letter-spacing:-.7px;white-space:nowrap}.brand-light{font-weight:400}.brand-mark{width:38px;height:38px;border-radius:11px;background:#29283e;display:grid;grid-template-columns:1fr 1fr;padding:7px;gap:3px;transform:rotate(-5deg)}.brand-mark i{border-radius:50%;background:var(--red)}.brand-mark i:nth-child(2){background:var(--orange)}.brand-mark i:nth-child(3){background:var(--yellow)}.brand-mark i:nth-child(4){background:var(--green)}.topbar nav{display:flex;align-self:stretch;align-items:stretch;gap:30px}.nav-link{display:flex;align-items:center;text-decoration:none;color:var(--muted);font-size:13px;position:relative;font-weight:500;white-space:nowrap}.nav-link:hover,.nav-link.active{color:var(--ink)}.nav-link.active:after{content:"";height:3px;position:absolute;bottom:0;left:0;right:0;background:var(--purple);border-radius:3px}.topbar-right{display:flex;align-items:center;gap:16px}.demo-pill{display:flex;align-items:center;gap:7px;border:1px solid #e1dfeb;border-radius:30px;font-size:11px;padding:5px 11px;color:var(--purple);background:#f7f5fb}.demo-pill>span{width:5px;height:5px;background:var(--purple);border-radius:50%}.avatar{width:33px;height:33px;border:1px solid #e3dedb;background:#eae5df;border-radius:50%;display:grid;place-items:center;font-size:13px;color:#726c68}.icon-button{display:grid;place-items:center;background:transparent;border:0;border-radius:9px;width:34px;height:34px;color:#8b8997}.icon-button:hover{background:#eeeaf3;color:var(--purple)}
main{max-width:1360px;margin:auto;padding:48px 28px 0}.hero{display:flex;justify-content:space-between;align-items:center;gap:28px;margin-bottom:32px}.eyebrow,.overline{font-size:10px;font-weight:650;letter-spacing:1.65px;color:#92909d;line-height:1.6}.eyebrow{display:flex;align-items:center;gap:8px;color:#7e748b;letter-spacing:1.45px;margin-bottom:11px}.eyebrow-dot{width:6px;height:6px;background:#b3a3bb;border-radius:50%}h1{font-weight:600;letter-spacing:-1.55px;font-size:36px;line-height:1.2;margin:0 0 12px}h1>span{color:#bf8292}h2{font-size:23px;font-weight:600;letter-spacing:-.65px;line-height:1.35;margin:4px 0 0}h3{font-size:17px;font-weight:600;letter-spacing:-.35px;margin:0}.hero-copy{margin:0;font-size:14px;color:var(--muted)}.mobile-break{display:none}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:11px 18px;border-radius:10px;border:1px solid transparent;font-size:12px;font-weight:600;white-space:nowrap;transition:background .15s,transform .15s}.button:hover{transform:translateY(-1px)}.button .icon{width:17px;height:17px}.button.primary{background:var(--purple);color:#fff;box-shadow:0 3px 6px #64567f15}.button.primary:hover{background:var(--purple-dark)}.button.secondary{background:#fff;border-color:var(--line)}.button.secondary:hover{background:#f8f6fa;border-color:#d9d2e4}.button.small{min-height:35px;padding:8px 12px;font-size:11px}.text-button{background:none;border:0;padding:0;display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;color:var(--purple);text-decoration:none;white-space:nowrap}.text-button:hover{color:var(--purple-dark);text-decoration:underline}.text-button .icon{width:14px;height:14px}
.filter-panel{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:15px;display:grid;grid-template-columns:1.32fr 1fr 1.13fr 40px;gap:24px;align-items:end;padding:21px 24px}.field label,.compare-region>label{display:flex;align-items:center;gap:6px;font-size:10px;color:#96949e;font-weight:500;margin-bottom:7px}.select-shell{display:flex;align-items:center;position:relative;gap:10px;min-width:0}.select-shell>span:not(.select-chevron){color:#9992a1}.select-shell>.icon,.select-shell>span>.icon{width:17px;height:17px}.select-shell select{appearance:none;-webkit-appearance:none;background:transparent;color:var(--ink);border:0;border-radius:3px;padding:3px 27px 3px 0;width:100%;font-size:13px;font-weight:550;outline-offset:5px;cursor:pointer;min-width:0;text-overflow:ellipsis}.select-shell select option{font-size:13px;font-weight:400;color:var(--ink)}.select-chevron{position:absolute;right:3px;top:50%;transform:translateY(-50%);pointer-events:none;color:#a19aaa}.select-chevron .icon{width:14px;height:14px}.reset-button{background:#f5f4f7;border:0;border-radius:9px;width:38px;height:38px;display:grid;place-items:center;color:#7f778c;margin-bottom:0}.reset-button:hover{background:#e9e4ef}.reset-button .icon{width:17px;height:17px}.inline-help{display:grid;place-items:center;width:13px;height:13px;border:1px solid #c2bdc9;background:none;border-radius:50%;font-size:8px;padding:0;color:#8c8498}
.summary-row{display:grid;grid-template-columns:1fr 1fr 1fr;margin:27px 0 40px;gap:30px}.summary-item{display:flex;align-items:center;gap:14px;padding:0 24px;border-right:1px solid #e2e1e5}.summary-item:first-child{padding-left:4px}.summary-item:last-child{border:0}.summary-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#eae8ee;color:#9588a6}.summary-icon.green-tint{background:#e7eee8;color:#7e9b84}.summary-icon .icon{width:18px;height:18px}.summary-label{font-size:10px;color:#8b8795;margin-bottom:2px}.summary-value{font-size:24px;letter-spacing:-.7px;font-weight:600;line-height:1.35}.summary-value small{font-size:12px;font-weight:450;letter-spacing:0;color:#898393;margin-left:5px}.summary-note{font-size:10px;color:#99949f;margin-left:8px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:0 0 22px}.section-heading p{margin:7px 0 0;color:#92909b;font-size:12px}.section-heading-tools{display:flex;align-items:center;gap:15px}.soft-label{display:inline-flex;align-items:center;gap:5px;font-size:10px;color:#8b8397;border:1px solid #e3dfe9;border-radius:5px;padding:4px 8px}.soft-label .icon{width:12px;height:12px}.risk-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.risk-card{--risk:var(--red);--risk-bg:var(--red-bg);--risk-ink:var(--red-ink);border:1px solid color-mix(in srgb,var(--risk) 45%,#fff);border-top:6px solid var(--risk);border-radius:17px;background:var(--risk-bg);padding:22px 19px 16px;position:relative;transition:box-shadow .15s,transform .15s,border-color .15s;overflow:hidden}.risk-card.orange{--risk:var(--orange);--risk-bg:var(--orange-bg);--risk-ink:var(--orange-ink)}.risk-card.yellow{--risk:var(--yellow);--risk-bg:var(--yellow-bg);--risk-ink:var(--yellow-ink)}.risk-card.green{--risk:var(--green);--risk-bg:var(--green-bg);--risk-ink:var(--green-ink)}.risk-card:hover{box-shadow:0 8px 18px #22212d09;transform:translateY(-2px)}.risk-card.selected{outline:2px solid var(--risk-ink);outline-offset:3px}.risk-card.dimmed{opacity:.6}.risk-card.dimmed:hover{opacity:1}.risk-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:23px}.risk-title-button{display:flex;align-items:center;gap:10px;padding:0;border:0;background:transparent;text-align:left}.risk-light{width:15px;height:15px;border:1px solid color-mix(in srgb,var(--risk-ink) 25%,var(--risk));border-radius:50%;background:var(--risk);box-shadow:0 0 0 5px color-mix(in srgb,var(--risk) 20%,transparent);flex-shrink:0}.risk-title{font-size:14px;font-weight:600}.risk-subtitle{font-size:10px;color:#a18d8d;margin-top:1px}.orange .risk-subtitle{color:#a49886}.yellow .risk-subtitle{color:#a49e84}.green .risk-subtitle{color:#869b8c}.risk-menu{background:none;border:0;padding:4px;color:#b3a4a4}.risk-menu .icon{width:17px;height:17px}.risk-numbers{display:flex;align-items:baseline;justify-content:space-between;gap:7px}.risk-count{font-size:32px;line-height:1.25;letter-spacing:-1.2px;font-weight:550;background:none;border:0;padding:0;text-align:left;white-space:nowrap}.risk-count:hover{color:var(--risk-ink)}.risk-percent{font-size:12px;color:var(--risk-ink);font-weight:550}.risk-unit{font-size:10px;color:#97909b;margin-top:4px}.risk-bar{height:7px;border:1px solid color-mix(in srgb,var(--risk-ink) 18%,var(--risk-bg));border-radius:5px;background:#ffffffb3;margin:17px 0 21px;overflow:hidden}.risk-bar>span{height:100%;display:block;border-radius:inherit;background:var(--risk);min-width:2px;transition:width .25s}.risk-action-label{font-size:9px;letter-spacing:.75px;color:#9b939f;text-transform:uppercase;margin-bottom:7px}.risk-action-select{background:#ffffffd9;border:1px solid color-mix(in srgb,var(--risk-ink) 25%,#fff);border-radius:7px;display:flex;align-items:center;padding:7px 8px;gap:7px}.risk-action-select .icon{width:15px;height:15px;color:var(--risk-ink)}.risk-action-select select{border:0;appearance:none;background:transparent;width:100%;font-size:11px;color:#645d6a;cursor:pointer;outline-offset:5px;min-width:0}.risk-action-select>span:last-child .icon{width:11px;height:11px;color:#a59baa}.risk-card-footer{display:flex;justify-content:space-between;gap:6px;align-items:center;margin-top:13px}.risk-card-footer .text-button{font-size:10px;color:var(--risk-ink)}.risk-age-note{font-size:8px;background:#f6e9e7;color:#aa7771;border-radius:4px;padding:3px 5px}.cohort-note{display:flex;align-items:center;gap:7px;color:#98939f;font-size:10px;margin:16px 2px 30px}.cohort-note>.icon,.cohort-note>span>.icon{width:12px;height:12px}.cohort-note .text-button{margin-left:auto;font-size:10px}
.automation-panel{display:grid;grid-template-columns:1fr 263px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);overflow:hidden}.automation-main{padding:26px 28px 20px}.automation-heading{display:flex;align-items:center;justify-content:space-between;gap:24px}.automation-heading h2{font-size:20px}.toggle-label{display:inline-flex;align-items:center;gap:8px;font-size:10px;color:#8a8295;cursor:pointer;white-space:nowrap;position:relative}.toggle-label input{position:absolute;opacity:0;width:35px;height:20px;margin:0;left:0;z-index:1;cursor:pointer}.toggle-track{width:32px;height:18px;border-radius:20px;background:#d4d0da;transition:background .15s;display:inline-block;position:relative}.toggle-track:before{content:"";position:absolute;height:14px;width:14px;border-radius:50%;background:#fff;top:2px;left:2px;box-shadow:0 1px 2px #3332;transition:transform .15s}.toggle-label input:checked+.toggle-track{background:var(--purple)}.toggle-label input:checked+.toggle-track:before{transform:translateX(14px)}.toggle-label input:focus-visible+.toggle-track{outline:3px solid #a39abd;outline-offset:3px}.timeline{display:flex;position:relative;margin:31px 0 25px;align-items:flex-start;gap:0}.timeline:before{content:"";height:1px;position:absolute;top:15px;left:17px;right:20px;background:#e8e4ec}.timeline-step{flex:1;position:relative;display:flex;flex-direction:column;align-items:flex-start;background:none;border:0;padding:0;text-align:left}.timeline-step:last-child{flex:.87}.timeline-node{width:31px;height:31px;border:1px solid #e6e1ec;background:#fff;border-radius:50%;display:grid;place-items:center;color:#b5adbf;font-size:10px;z-index:1;position:relative}.timeline-node .icon{width:13px;height:13px}.timeline-step.done .timeline-node{background:#f0edf4;color:#988ba6;border-color:#e4dceb}.timeline-step.current .timeline-node{background:var(--purple);color:#fff;border-color:var(--purple);box-shadow:0 0 0 5px #f3f0f7}.timeline-title{font-size:11px;font-weight:550;color:#8f869c;margin-top:12px}.timeline-step.current .timeline-title{color:var(--purple-dark)}.timeline-caption{font-size:9px;color:#b1aabb;margin-top:2px}.automation-bottom{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid #efecf2;padding-top:17px}.automation-bottom p{font-size:10px;color:#a09aa9;margin:0;display:flex;gap:6px;align-items:center}.automation-bottom p .icon{width:13px;height:13px;color:#9cae9f}.automation-aside{background:#f2f0f6;border-left:1px solid #e7e2ed;padding:25px 28px;position:relative}.aside-icon{position:absolute;right:24px;top:24px;color:#b9adcb}.aside-icon .icon{width:22px;height:22px}.automation-aside>.overline{font-size:9px;color:#9e92b0;margin-top:7px}.next-contact{font-size:38px;line-height:1.2;letter-spacing:-1px;font-weight:550;margin:14px 0 2px;color:#625274}.next-contact span{font-size:17px;letter-spacing:-.5px;font-weight:500}.automation-aside>p{font-size:10px;color:#a093b0;margin:6px 0 15px}.status-line{display:flex;align-items:center;gap:6px;font-size:10px;color:#8a7e99;margin-bottom:13px}.status-line>span:first-child{width:5px;height:5px;background:#9baa8e;border-radius:50%}.automation-aside>.text-button{font-size:10px}.content-section{padding-top:48px}.section-number{color:#b4afbb;font-size:10px;letter-spacing:1px}.action-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.action-card{padding:23px 20px 18px;background:#fff;border:1px solid var(--line);border-radius:15px;text-align:left;transition:transform .15s,box-shadow .15s;position:relative}.action-card:hover{transform:translateY(-3px);box-shadow:0 9px 24px #2221360b;border-color:#d5cfde}.action-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.action-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#f0eef5;color:#8a7a9e}.action-icon.green{background:var(--green-bg);color:var(--green-ink)}.action-icon.amber{background:var(--yellow-bg);color:var(--yellow-ink)}.action-icon.rose{background:var(--red-bg);color:var(--red-ink)}.action-channel{color:#aca5b4;font-size:9px;border:1px solid #ede8f0;border-radius:4px;padding:2px 5px}.action-card h3{font-size:14px;font-weight:600;margin-bottom:6px}.action-card p{font-size:10px;line-height:1.7;color:#9b94a4;margin:0;min-height:34px}.action-card-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:21px;color:#aaa2b4}.action-risk-dots{display:flex;align-items:center;gap:5px}.action-risk-dots>i{width:9px;height:9px;border-radius:50%;box-shadow:inset 0 0 0 1px #28293b26}.action-card-bottom .icon{width:16px;height:16px}.segmented{display:inline-flex;padding:3px;border:1px solid var(--line);border-radius:9px;background:#eeecef;gap:2px}.segmented button{border:0;border-radius:6px;background:transparent;color:#a198ac;font-size:10px;padding:7px 11px}.segmented button.active{background:#fff;color:var(--purple);box-shadow:0 1px 3px #3331}.comparison-panel{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}.comparison-top{padding:19px 25px 0;display:flex;justify-content:space-between;gap:15px;font-size:10px;color:#a299ad}.history-tag{display:inline-flex;gap:6px;align-items:center}.history-tag .icon{width:12px;height:12px}.compare-grid{display:grid;grid-template-columns:1fr 70px 1fr;padding:22px 29px 24px;align-items:center;gap:22px}.compare-region .select-shell{max-width:100%;padding-bottom:13px;border-bottom:1px solid #f0edf3}.compare-region .select-shell select{font-size:15px;font-weight:550;letter-spacing:-.3px}.compare-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}.compare-dot.purple{background:#a697b6}.compare-dot.teal{background:#92b9ac}.compare-versus{display:grid;place-items:center;height:31px;width:31px;border-radius:50%;background:#f5f3f7;color:#c1b8ca;font-size:10px;margin:auto}.compare-stat-row{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:18px}.compare-value{font-size:38px;font-weight:550;letter-spacing:-1.6px;color:#726086}.compare-region:last-child .compare-value{color:#628f80}.compare-stat-note{text-align:right;color:#aaa2b1;font-size:10px;line-height:1.8}.compare-stat-note strong{font-weight:500;color:#817589}.compare-bar{height:7px;border-radius:9px;background:#f0edf3;margin-top:15px;overflow:hidden}.compare-bar>span{display:block;background:#c1b2d0;height:100%;border-radius:inherit;transition:width .2s}.compare-region:last-child .compare-bar{background:#edf3f0}.compare-region:last-child .compare-bar>span{background:#a1c2b6}.comparison-result{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:16px 26px;background:#faf9fb;border-top:1px solid #eeeaf1;font-size:11px;color:#918697}.comparison-result strong{font-weight:600;color:#706178}.difference{display:flex;align-items:center;gap:8px;font-size:11px;white-space:nowrap}.difference span{padding:4px 9px;background:#eee8f4;border-radius:5px;color:#827094;font-size:12px;font-weight:600}.comparison-reasons{padding:20px 26px;border-top:1px solid #efecf2;display:flex;align-items:center;justify-content:space-between;gap:20px}.reason-preview{display:flex;gap:10px;align-items:flex-start}.reason-preview>.icon{width:17px;height:17px;color:#b5a981;flex-shrink:0;margin-top:1px}.reason-preview strong{font-size:10px;font-weight:550;color:#96879e}.reason-preview p{color:#afa6b7;font-size:10px;line-height:1.65;margin:4px 0 0;max-width:840px}footer{padding:31px 0 27px;display:flex;align-items:center;justify-content:space-between;gap:20px;color:#b4adbc;margin-top:15px;border-top:1px solid #e6e1e9;font-size:10px}.footer-brand{font-weight:600;color:#9e91ac}.footer-brand span{font-weight:400;color:#b3a9bc;margin-left:5px}footer p{margin:0}footer .text-button{font-size:10px;color:#9e91ac}
.modal-backdrop{position:fixed;inset:0;background:#28233766;backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:28px;z-index:100;animation:fade-in .15s}.modal{width:min(800px,100%);max-height:calc(100dvh - 56px);background:#fff;border:1px solid #ffffff80;border-radius:22px;box-shadow:0 24px 100px #17102244;display:flex;flex-direction:column;outline:none}.modal.wide{width:min(1040px,100%)}.modal.chat-width{width:min(900px,100%)}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:25px;padding:27px 30px 22px;border-bottom:1px solid #eeeaf2;flex-shrink:0}.modal-header h2{font-size:24px;margin-top:5px}.modal-header p{color:#9b91a6;font-size:12px;margin:7px 0 0}.modal-header .overline{color:#a697b6;font-size:9px}.modal-close{background:#f6f3f8;flex-shrink:0}.modal-body{padding:25px 30px 30px;overflow-y:auto;overscroll-behavior:contain;min-height:0}.modal-body>p{color:#7f748b;font-size:13px;line-height:1.8}.modal-body h3{margin-bottom:11px;font-size:15px}.modal-section{padding:21px 0;border-bottom:1px solid #eeeaf2}.modal-section:first-child{padding-top:0}.modal-section:last-child{border:0;padding-bottom:0}.modal-section p,.modal-section li{color:#877b92;font-size:12px;line-height:1.8}.modal-section ul{padding-left:18px;margin:8px 0}.modal-banner{padding:13px 16px;border-radius:10px;background:#f4f1f7;color:#887499;font-size:11px;line-height:1.7;display:flex;gap:10px;align-items:flex-start;margin-bottom:20px}.modal-banner .icon{width:16px;height:16px;flex-shrink:0;margin-top:2px}.modal-banner.warm{background:#fbf3e9;color:#a38358}.modal-banner.rose{background:#faecee;color:#a96b76}.modal-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:20px 0}.modal-metric{padding:17px;background:#f7f5f9;border-radius:12px}.modal-metric strong{display:block;font-size:23px;letter-spacing:-.7px;font-weight:550;color:#6d597e}.modal-metric span{font-size:10px;color:#a193ad}.tech-code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;white-space:pre-wrap;padding:15px;background:#f4f1f7;border-radius:10px;color:#8a759b;overflow:auto}.risk-chip{--risk:var(--red);--risk-ink:var(--red-ink);display:inline-flex;align-items:center;gap:6px;font-size:10px;padding:4px 7px;border:1px solid color-mix(in srgb,var(--risk) 40%,#fff);border-radius:5px;background:var(--red-bg);color:var(--risk-ink);white-space:nowrap}.risk-chip i{width:7px;height:7px;border:1px solid color-mix(in srgb,var(--risk-ink) 25%,var(--risk));border-radius:50%;background:var(--risk)}.risk-chip.orange{--risk:var(--orange);--risk-ink:var(--orange-ink);background:var(--orange-bg)}.risk-chip.yellow{--risk:var(--yellow);--risk-ink:var(--yellow-ink);background:var(--yellow-bg)}.risk-chip.green{--risk:var(--green);--risk-ink:var(--green-ink);background:var(--green-bg)}.inline-tags{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:15px}.inline-tags .tag{font-size:10px;color:#9c8aa9;background:#f3eff7;border-radius:5px;padding:5px 8px}.list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.search-field{display:flex;align-items:center;gap:8px;border:1px solid #e7dfef;border-radius:8px;padding:9px 11px;color:#a08fac;min-width:220px}.search-field .icon{width:15px;height:15px}.search-field input{border:0;outline:none;background:transparent;font-size:11px;min-width:0;width:100%;color:#756080}.table-wrap{overflow:auto;border:1px solid #eee7f2;border-radius:10px}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:11px}th{padding:11px 12px;background:#f8f5fa;color:#a597af;font-size:9px;font-weight:500;border-bottom:1px solid #eee8f2}td{padding:12px;color:#83728f;border-bottom:1px solid #f1ebf5}tbody tr:last-child td{border:0}tbody tr:hover{background:#fcfafd}.patient-id{font-family:ui-monospace,SFMono-Regular,monospace;font-size:10px;color:#7d668d}.empty-state{padding:36px;text-align:center;color:#a294ad;font-size:12px}.list-pagination{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:15px;color:#a394ae;font-size:10px}.list-pagination>div{display:flex;gap:8px}.rules-list{display:flex;flex-direction:column;gap:10px}.rule-row{display:grid;grid-template-columns:115px 1fr 1.35fr;align-items:center;gap:16px;border:1px solid #eee7f2;padding:15px;border-radius:11px}.rule-row label{display:block;font-size:9px;color:#a598b0;margin-bottom:4px}.rule-row select,.simple-select{width:100%;border:1px solid #e7dfee;border-radius:7px;padding:8px;background:#fff;color:#83718f;font-size:11px;min-width:0}.rule-extra{display:flex;gap:10px;align-items:flex-start;background:#faf1f3;border:1px solid #f0e0e6;border-radius:11px;padding:16px;margin-top:15px}.rule-extra input{accent-color:var(--purple);margin:3px 0 0}.rule-extra strong{display:block;font-size:12px;font-weight:550;color:#997181}.rule-extra p{font-size:11px;color:#b18c9a;line-height:1.65;margin:5px 0 0}.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:23px;padding-top:19px;border-top:1px solid #eee7f2}.scenario-layout{display:grid;grid-template-columns:1fr 1fr;gap:25px}.scenario-info p,.scenario-info li{font-size:12px;color:#95859f;line-height:1.8}.scenario-info ol{padding-left:18px}.phone-preview{border:1px solid #e7dfee;background:#f5f1f7;border-radius:18px;padding:14px;min-width:0}.phone-header{display:flex;align-items:center;gap:8px;padding:0 2px 12px;border-bottom:1px solid #e9e1ef;color:#8d789d;font-size:11px}.insurance-avatar{display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;background:#8e759c;border-radius:50%;color:#fff;font-size:9px;font-weight:600}.phone-header strong{font-size:11px;display:block}.phone-header small{font-size:9px;color:#ad9ab8;font-weight:400}.message-bubble{background:#fff;border-radius:12px 12px 12px 3px;padding:14px 13px;font-size:11px;color:#806d8d;line-height:1.8;margin-top:13px;box-shadow:0 2px 5px #33224404;white-space:pre-line}.message-bubble.user{background:#e6ddee;border-radius:12px 12px 3px 12px;margin-left:30px;white-space:normal}.preview-label{font-size:9px;color:#ab96b9;margin:10px 0 0;line-height:1.6}.partner-card{border:1px solid #eae2f0;border-radius:8px;padding:10px;margin-top:8px;background:#fff}.partner-card strong{display:block;font-size:10px;color:#8e749e;font-weight:550}.partner-card p{margin:3px 0 0;font-size:9px;color:#b29cc0;line-height:1.6}.partner-ending{font-size:11px;color:#877093;line-height:1.8;margin:12px 0 0}.chat-layout{display:grid;grid-template-columns:1fr 250px;gap:22px}.chat-stage{border:1px solid #e7dfee;border-radius:16px;overflow:hidden;min-width:0}.chat-stage .phone-header{background:#f5f0f8;padding:15px;border-bottom:1px solid #e8dfef}.chat-messages{padding:4px 16px 16px;height:355px;overflow:auto;background:#faf7fc;overscroll-behavior:contain}.chat-messages .message-bubble{max-width:92%}.chat-messages .message-bubble.user{margin-left:auto;max-width:83%}.chat-options{display:flex;flex-wrap:wrap;gap:7px;padding:13px 15px;border-top:1px solid #eee5f4;background:#fff}.chat-option{font-size:10px;line-height:1.5;border:1px solid #ded1e8;border-radius:8px;padding:8px 11px;background:#fff;color:#90749f;text-align:left}.chat-option:hover{background:#f1eaf7}.chat-option.secondary{border-color:#ece6f0;color:#b3a1bf}.chat-footer{padding:0 15px 13px;display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#b4a4be}.chat-sidebar{min-width:0}.chat-sidebar>h3{font-size:12px;margin:0 0 12px}.faq-button{display:flex;align-items:center;justify-content:space-between;gap:7px;width:100%;padding:11px;border:1px solid #e9dff1;border-radius:8px;margin-bottom:8px;background:#fff;color:#9b83aa;text-align:left;font-size:11px;line-height:1.5}.faq-button:hover{background:#f9f4fc}.faq-button .icon{width:13px;height:13px;flex-shrink:0}.chat-sidebar>.button{width:100%;font-size:10px;margin-top:10px}.chat-progress{height:3px;background:#f0e9f5;margin-bottom:8px;border-radius:5px;overflow:hidden}.chat-progress>span{display:block;height:100%;background:#b099c0;transition:width .2s}.chat-explanation{font-size:10px;line-height:1.8;color:#b1a0bc;margin-top:15px}.faq-answer{background:#f7f1fb;border:1px solid #ebe0f2;padding:13px;border-radius:10px;font-size:11px;line-height:1.8;color:#9c83aa;margin:10px 0}.run-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #f0e7f5;padding:13px 0;font-size:12px;color:#9a81a9}.run-row>div{display:flex;align-items:center;gap:12px}.run-row strong{font-size:16px;font-weight:550}.run-success{background:#edf5ee;padding:25px;border-radius:15px;text-align:center;color:#74947b}.run-success .icon{width:34px;height:34px;margin:auto auto 12px}.run-success h3{margin:0 0 8px}.run-success p{font-size:12px;line-height:1.8}.source-links{display:flex;flex-direction:column;gap:8px}.source-links a{font-size:11px;color:#a186b1;text-decoration:underline;text-underline-offset:3px}.dropzone{border:1px dashed #c7b7d3;border-radius:13px;padding:20px;background:#faf7fc;text-align:center}.dropzone input{max-width:100%;font-size:11px;color:#9881a7}.dropzone p{font-size:11px;color:#ad97ba}.metric-pair{display:grid;grid-template-columns:1fr 1fr;gap:13px}.metric-pair>div{background:#f7f2fa;border:1px solid #eee4f4;padding:15px;border-radius:11px}.metric-pair label{font-size:10px;color:#a991b7;display:block}.metric-pair strong{display:block;font-size:24px;color:#9979ad;font-weight:500;margin-top:4px}.hypothesis-list{display:flex;flex-direction:column;gap:12px}.hypothesis-item{display:flex;gap:12px;padding:15px;background:#faf8f4;border:1px solid #efe8df;border-radius:11px}.hypothesis-item>.icon{color:#b2a083;width:18px;height:18px;flex-shrink:0}.hypothesis-item strong{font-size:12px;font-weight:500;color:#ab9278}.hypothesis-item p{font-size:11px;color:#baa58c;margin:5px 0 0;line-height:1.8}.toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%,20px);padding:13px 21px;border-radius:11px;box-shadow:0 6px 35px #22103322;background:#3e3349;color:#fff;font-size:12px;z-index:200;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:calc(100vw - 30px);text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.loading-skeleton{height:45px;background:linear-gradient(90deg,#edeaf0,#f6f4f7,#edeaf0);background-size:200%;border-radius:10px;animation:shimmer 1.4s infinite}@keyframes shimmer{to{background-position:-200%}}@keyframes fade-in{from{opacity:0}to{opacity:1}}
@media(min-width:1550px){main{padding-top:58px}.risk-card{padding:25px 23px 19px}.risk-count{font-size:37px}.hero{margin-bottom:36px}h1{font-size:41px}.filter-panel{padding:23px 26px}.summary-row{margin-top:31px;margin-bottom:43px}}
@media(max-width:1100px){.topbar{gap:20px;padding:0 25px}.topbar nav{gap:20px}.topbar-right{gap:10px}main{padding:35px 24px 0}h1{font-size:30px}.hero-copy{font-size:12px}.filter-panel{gap:17px;padding:18px}.risk-grid{gap:12px}.risk-card{padding:19px 14px 15px}.risk-count{font-size:28px}.risk-title{font-size:12px}.risk-subtitle{font-size:9px}.risk-top{margin-bottom:20px}.risk-card-footer{align-items:flex-start;min-height:20px}.risk-age-note{max-width:65px;text-align:right;font-size:7px}.automation-panel{grid-template-columns:1fr 220px}.automation-main{padding:23px}.automation-aside{padding:23px}.automation-heading{gap:14px}.automation-heading h2{font-size:18px}.automation-bottom p{font-size:9px}.action-card{padding:20px 15px 16px}.action-card h3{font-size:12px}.action-channel{font-size:8px}.action-icon{width:31px;height:31px;border-radius:8px}.action-icon .icon{width:18px;height:18px}.action-card p{font-size:9px}.summary-value{font-size:22px}.summary-row{gap:16px}.summary-item{padding:0 15px;gap:10px}.summary-icon{width:32px;height:32px}.comparison-result{align-items:flex-start}}
@media(max-width:850px){.topbar{height:72px;padding:0 22px}.brand{font-size:21px}.topbar nav{gap:18px}.nav-link{font-size:11px}.topbar-right .avatar{display:none}.hero{align-items:flex-start}.hero>.button{font-size:10px;padding:10px 13px;min-height:39px;margin-top:26px}h1{font-size:28px}.filter-panel{grid-template-columns:1.2fr .85fr 1fr 32px;gap:12px}.field label{font-size:8px}.select-shell select{font-size:11px}.reset-button{width:31px;height:31px}.risk-grid{grid-template-columns:repeat(2,1fr);gap:16px}.risk-card{padding:23px}.risk-title{font-size:15px}.risk-subtitle{font-size:10px}.risk-count{font-size:37px}.risk-action-select{padding:10px}.risk-action-select select{font-size:12px}.risk-card-footer .text-button{font-size:11px}.risk-age-note{max-width:none;font-size:9px}.risk-grid .risk-card-footer{min-height:20px}.risk-action-label{font-size:10px}.automation-panel{grid-template-columns:1fr 200px}.automation-main{padding:23px 20px}.automation-heading{align-items:flex-start}.automation-heading h2{font-size:16px}.automation-heading .overline{font-size:8px}.toggle-label{font-size:9px;gap:6px;margin-top:5px}.automation-bottom{align-items:flex-start}.automation-bottom p{max-width:185px}.automation-bottom .button{font-size:9px}.timeline-title{font-size:10px}.timeline-caption{font-size:8px}.action-grid{grid-template-columns:repeat(2,1fr)}.action-card{padding:23px}.action-card h3{font-size:14px}.action-card p{font-size:11px}.action-icon{width:36px;height:36px}.action-channel{font-size:9px}.summary-item{gap:8px}.summary-label{font-size:9px}.summary-value{font-size:20px}.summary-note{display:none}.section-heading h2{font-size:22px}.compare-grid{gap:12px;grid-template-columns:1fr 40px 1fr;padding:20px}.comparison-reasons{align-items:flex-start}.scenario-layout{gap:18px}.chat-layout{grid-template-columns:1fr 210px;gap:16px}}
@media(max-width:640px){html{scroll-padding-top:80px}.topbar{height:64px;padding:0 17px}.brand{font-size:19px;gap:9px}.brand-mark{width:34px;height:34px;padding:6px;gap:2px;border-radius:10px}.topbar nav{display:none}.topbar-right{gap:7px}.demo-pill{font-size:9px;padding:4px 8px}.icon-button{width:29px;height:29px}main{padding:28px 17px 0}.hero{display:block;margin-bottom:23px;position:relative}.eyebrow{font-size:8px;letter-spacing:1.2px;margin-bottom:10px}h1{font-size:29px;letter-spacing:-1.2px;line-height:1.23;max-width:330px;margin-bottom:12px}.mobile-break{display:block}.hero-copy{font-size:11px;max-width:270px;line-height:1.65}.hero>.button{margin-top:19px;min-height:40px;font-size:11px}.filter-panel{grid-template-columns:1fr 1fr 34px;padding:17px 15px;gap:18px 14px;border-radius:13px}.region-field{grid-column:1/4;padding-bottom:14px;border-bottom:1px solid #eeeaf2}.field label{font-size:8px;line-height:1.6;min-height:14px}.select-shell select{font-size:11px}.select-shell>span>.icon{width:14px;height:14px}.filter-panel .field:nth-child(3) label{max-width:130px;min-height:27px}.filter-panel .field:nth-child(2){align-self:end}.inline-help{display:none}.summary-row{margin:24px 0 30px;grid-template-columns:1fr 1fr;gap:18px 10px}.summary-item{padding:0!important;border:0}.summary-item:last-child{grid-column:1/3;background:#eeebf2;padding:11px 13px!important;border-radius:10px;gap:10px}.summary-item:last-child .summary-icon{display:none}.summary-item:last-child>div:last-child{width:100%;display:flex;align-items:center;justify-content:space-between}.summary-item:last-child .summary-label{margin:0;font-size:10px}.summary-item:last-child .summary-value{font-size:14px}.summary-icon{width:32px;height:32px;border-radius:10px}.summary-value{font-size:22px}.summary-label{font-size:8px}.summary-value small{font-size:9px}.section-heading{gap:12px;align-items:flex-start;margin-bottom:19px}.section-heading h2{font-size:21px}.section-heading .overline{font-size:8px;letter-spacing:1.3px}.section-heading p{font-size:10px;max-width:245px;line-height:1.6}.section-heading-tools{align-items:flex-end;flex-direction:column;gap:8px;padding-top:6px}.soft-label{font-size:8px;padding:3px 5px;white-space:nowrap}.soft-label .icon{display:none}.risk-grid{gap:12px}.risk-card{padding:19px 13px 14px;border-radius:14px}.risk-top{margin-bottom:18px}.risk-title-button{gap:8px}.risk-light{width:13px;height:13px;box-shadow:0 0 0 3px color-mix(in srgb,var(--risk) 20%,transparent)}.risk-title{font-size:12px}.risk-subtitle{font-size:8px}.risk-menu{padding:0}.risk-menu .icon{width:14px;height:14px}.risk-count{font-size:26px;letter-spacing:-1px}.risk-percent{font-size:9px}.risk-numbers{gap:5px;flex-wrap:wrap}.risk-unit{font-size:9px;margin-top:4px}.risk-bar{margin:13px 0 15px;height:6px}.risk-action-label{font-size:8px;letter-spacing:.4px}.risk-action-select{padding:8px 6px;gap:5px}.risk-action-select select{font-size:9px}.risk-action-select .icon{width:12px;height:12px}.risk-action-select>span:last-child{display:none}.risk-card-footer .text-button{font-size:9px}.risk-card-footer .text-button .icon{width:11px;height:11px}.risk-age-note{display:none}.cohort-note{font-size:8px;align-items:flex-start;margin:14px 0 23px;flex-wrap:wrap;gap:5px}.cohort-note>span{flex:1}.cohort-note .text-button{font-size:9px;margin-left:17px;width:100%;margin-top:3px}.automation-panel{grid-template-columns:1fr;border-radius:15px}.automation-main{padding:22px 18px 17px}.automation-heading h2{font-size:18px}.automation-heading .overline{font-size:8px}.toggle-label{font-size:8px;gap:5px}.toggle-track{width:29px;height:17px}.toggle-track:before{width:13px;height:13px}.toggle-label input:checked+.toggle-track:before{transform:translateX(12px)}.timeline{margin-top:27px;margin-bottom:22px}.timeline-title{font-size:9px}.timeline-caption{font-size:8px}.timeline-node{width:28px;height:28px;font-size:9px}.timeline:before{top:14px}.automation-bottom{gap:12px}.automation-bottom p{font-size:8px;max-width:160px}.automation-bottom .button{font-size:9px;padding:7px 9px;min-height:31px}.automation-bottom .button .icon{width:12px;height:12px}.automation-aside{border-left:0;border-top:1px solid #e4daec;padding:18px 20px;display:grid;grid-template-columns:1fr 1fr;gap:2px 12px}.aside-icon{display:none}.automation-aside>.overline{margin:0;font-size:8px;grid-column:1/3}.next-contact{font-size:28px;margin-top:3px;grid-row:2/4}.next-contact span{font-size:15px}.automation-aside>p{font-size:9px;margin:5px 0 0;grid-column:1;grid-row:4}.status-line{font-size:9px;margin:5px 0 3px;grid-column:2;grid-row:2}.automation-aside>.text-button{font-size:9px;grid-column:2;grid-row:3/5;align-self:center}.content-section{padding-top:34px}.section-number{font-size:8px;padding-top:6px}.action-grid{gap:12px}.action-card{padding:17px 13px 14px;border-radius:13px}.action-card-top{margin-bottom:14px}.action-icon{height:29px;width:29px;border-radius:8px}.action-icon .icon{width:15px;height:15px}.action-channel{font-size:7px;border:0;padding:0;max-width:55px;text-align:right}.action-card h3{font-size:12px;line-height:1.5}.action-card p{font-size:9px;min-height:43px;line-height:1.65}.action-card-bottom{margin-top:16px}.segmented{padding:2px;border-radius:6px;gap:0;margin-top:5px}.segmented button{padding:6px 6px;font-size:8px}.comparison-top{padding:16px 16px 0;font-size:8px}.history-tag .icon{width:11px;height:11px}.compare-grid{grid-template-columns:1fr;gap:14px;padding:20px 17px}.compare-versus{height:23px;width:23px;font-size:8px;position:relative;align-self:center}.compare-region>label{font-size:9px;margin-bottom:6px}.compare-region .select-shell{padding-bottom:11px}.compare-region .select-shell select{font-size:14px}.compare-stat-row{margin-top:12px}.compare-value{font-size:33px}.compare-stat-note{font-size:9px}.compare-bar{margin-top:10px;height:5px}.comparison-result{flex-direction:column;padding:16px 18px;gap:9px;font-size:10px}.difference{font-size:10px}.difference span{font-size:11px}.comparison-reasons{padding:17px 18px;flex-direction:column;gap:12px}.reason-preview strong{font-size:10px}.reason-preview p{font-size:9px}.reason-preview>.icon{width:15px;height:15px}.comparison-reasons>.text-button{font-size:10px;margin-left:25px}footer{margin-top:18px;padding:23px 0;flex-wrap:wrap;gap:10px;font-size:9px}footer p{display:none}footer .text-button{font-size:9px}.modal-backdrop{padding:10px}.modal{border-radius:17px;max-height:calc(100dvh - 20px)}.modal-header{padding:21px 20px 17px;gap:12px}.modal-header h2{font-size:20px}.modal-header p{font-size:10px}.modal-header .overline{font-size:8px}.modal-body{padding:19px 18px 23px}.modal-metrics{gap:8px}.modal-metric{padding:12px 10px}.modal-metric strong{font-size:19px}.modal-metric span{font-size:8px}.modal-banner{font-size:10px;padding:12px}.modal-section p,.modal-section li{font-size:11px}.rule-row{grid-template-columns:90px 1fr;gap:9px;padding:12px}.rule-row>div:last-child{grid-column:1/3}.rule-row .risk-chip{font-size:9px}.scenario-layout{grid-template-columns:1fr;gap:20px}.scenario-info ol{margin-bottom:0}.phone-preview{padding:14px}.chat-layout{grid-template-columns:1fr}.chat-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:7px}.chat-sidebar h3{grid-column:1/3}.faq-button{margin:0;font-size:10px;padding:9px}.chat-sidebar>.button{grid-column:1/3;margin-top:3px}.chat-explanation{grid-column:1/3;margin:4px 0;font-size:9px}.chat-messages{height:310px}.chat-options{gap:6px;padding:12px}.chat-option{font-size:10px;padding:8px}.chat-footer{font-size:8px}.list-toolbar{flex-wrap:wrap;gap:10px}.search-field{width:100%;min-width:0}.list-pagination{font-size:9px;gap:10px}.list-pagination .button{font-size:9px;padding:6px 9px;min-height:30px}.metric-pair{gap:9px}.metric-pair>div{padding:12px}.metric-pair label{font-size:9px}.metric-pair strong{font-size:22px}.run-row{font-size:10px;gap:10px}.run-row>div{gap:7px}.run-row strong{font-size:13px}.modal-actions{gap:8px}.modal-actions .button{font-size:10px;padding:9px 12px}.toast{font-size:11px;bottom:16px;padding:11px 16px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}

/* Signals use saturated colors; their darker ink variants keep labels readable. */
/* Readable secondary text, stable grid sizing and modal controls. */
:root {
  --muted: #6c6575;
}
html { scrollbar-gutter: stable; }
img, svg, video { max-width: 100%; }
:is(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}
.toggle-label input:focus-visible + .toggle-track {
  outline-color: var(--purple);
}
.search-field:focus-within, .chat-input-row input:focus {
  border-color: var(--purple);
}
.field, .summary-item, .summary-item > div, .section-heading > div,
.risk-card, .action-card, .automation-main, .automation-aside,
.compare-region, .compare-stat-row > div, .reason-preview, .reason-preview > div,
.modal-header > div, .modal-metric, .rule-row > div, .scenario-info,
.timeline-step, .metric-pair > div, .chat-sidebar, .modal-select-row > * {
  min-width: 0;
}
.filter-panel {
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr) minmax(0, 1.13fr) 40px;
}
.risk-grid, .action-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.summary-row, .modal-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.scenario-layout, .metric-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compare-grid { grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr); }
.chat-layout { grid-template-columns: minmax(0, 1fr) 250px; }
.hero > div { min-width: 0; }
.hero > .button { flex-shrink: 0; }
.button { max-width: 100%; white-space: normal; text-align: center; }
.text-button { min-height: 24px; }
.select-shell select {
  flex: 1 1 0%;
  max-width: 100%;
  min-height: 32px;
}
.select-shell > span:not(.select-chevron) { flex-shrink: 0; }
.risk-action-select { min-width: 0; min-height: 42px; }
.risk-action-select select { min-width: 0; min-height: 26px; font-size: 12px; }
.risk-action-select > span { flex-shrink: 0; }
.risk-title-button { min-width: 0; min-height: 32px; }
.risk-menu, .select-chevron, .risk-action-select > span:last-child .icon { color: var(--muted); }
.risk-title { font-size: 15px; }
.risk-subtitle { font-size: 11px; }
.risk-count { font-size: clamp(26px, 2.6vw, 36px); font-variant-numeric: tabular-nums; }
.risk-percent { font-size: 12px; font-variant-numeric: tabular-nums; }
.risk-numbers { flex-wrap: wrap; }
.risk-menu { min-width: 30px; min-height: 30px; flex-shrink: 0; }
.risk-card-footer { flex-wrap: wrap; align-items: center; }
.risk-card-footer .text-button { white-space: normal; font-size: 11px; }
.risk-age-note { font-size: 10px; max-width: none; color: #8b515e; text-align: left; }
.risk-card.dimmed { opacity: 1; background: #faf9fb; border-style: dashed; border-top-style: solid; }
.risk-card.selected { box-shadow: 0 0 0 6px color-mix(in srgb, var(--risk) 16%, transparent); }

.overline, .section-number, .field label, .compare-region > label,
.summary-label, .summary-note, .summary-value small, .section-heading p,
.soft-label, .risk-subtitle, .orange .risk-subtitle, .yellow .risk-subtitle,
.green .risk-subtitle, .risk-unit, .risk-action-label, .cohort-note,
.toggle-label, .timeline-title, .timeline-caption, .automation-bottom p,
.automation-aside > .overline, .automation-aside > p, .status-line,
.action-channel, .action-card p, .segmented button, .comparison-top,
.compare-stat-note, .compare-stat-note strong, .comparison-result,
.reason-preview strong, .reason-preview p, footer, .footer-brand,
.footer-brand span, footer .text-button, .modal-header p,
.modal-header .overline, .modal-body > p, .modal-section p, .modal-section li,
.modal-metric span, .inline-tags .tag, .list-pagination, .empty-state,
.rule-row label, .rule-row select, .simple-select, .scenario-info p,
.scenario-info li, .phone-header small, .preview-label, .partner-card p,
.chat-footer, .chat-explanation, .faq-answer, .run-row,
.dropzone p, .dropzone input, .metric-pair label {
  color: var(--muted);
}
.field label, .compare-region > label, .summary-label,
.section-heading p, .risk-unit, .cohort-note, .timeline-title,
.automation-bottom p, .automation-aside > p, .status-line,
.action-channel, .comparison-top, .compare-stat-note,
.reason-preview strong, .reason-preview p, .modal-metric span,
.rule-row label, .phone-header small, .preview-label, .partner-card p,
.chat-footer, .chat-explanation, .metric-pair label {
  font-size: 11px;
}
.overline, .risk-action-label, .timeline-caption, .section-number,
.summary-note { font-size: 10px; }
.section-heading p, .action-card p, .cohort-note { line-height: 1.7; }
.action-card h3 { font-size: 15px; line-height: 1.5; }
.action-card p { font-size: 12px; }
.action-card-top { gap: 10px; }
.action-channel { text-align: right; }
.action-icon, .summary-icon { flex-shrink: 0; }
.timeline-step { padding-right: 10px; }
.timeline-step:last-child { padding-right: 0; }
.timeline-node, .timeline-step.done .timeline-node { color: var(--muted); }
.toggle-label { min-height: 32px; }
.toggle-track { background: #80768d; }
.automation-heading, .automation-bottom { flex-wrap: wrap; }
.automation-bottom p { flex: 1 1 240px; max-width: none; }
.automation-bottom > .button { flex: 0 1 auto; }
.inline-help { display: inline-flex; justify-content: center; align-items: center; min-width: 20px; min-height: 20px; font-size: 10px; color: var(--purple); flex-shrink: 0; }
.comparison-top, .compare-stat-row, .comparison-result, .comparison-reasons { flex-wrap: wrap; }
.difference { white-space: normal; flex-wrap: wrap; }
.difference span { white-space: nowrap; }
.comparison-reasons > .text-button, .cohort-note .text-button { white-space: normal; }
.comparison-reasons .reason-preview { flex: 1 1 400px; }
.reason-preview p, .modal-body p, .modal-body li, .message-bubble,
.partner-card, .faq-button, .chat-option, .chat-explanation, .modal-banner,
.modal-header h2, .modal-header p, .hypothesis-item { overflow-wrap: anywhere; }

.modal-backdrop { overflow-y: auto; }
.modal { min-width: 0; max-height: calc(100vh - 56px); max-height: calc(100dvh - 56px); }
.modal-body { max-width: 100%; overflow-x: hidden; scrollbar-gutter: stable; }
.modal-header { min-width: 0; }
.modal-close { width: 40px; height: 40px; }
.modal-section p, .modal-section li, .scenario-info p, .scenario-info li { font-size: 13px; }
.modal-banner { color: #66566f; font-size: 12px; }
.modal-banner.warm { color: #826332; }
.modal-banner.rose, .rule-extra strong, .rule-extra p { color: #8b515e; }
.tech-code { color: #66566f; max-width: 100%; overflow-wrap: anywhere; }
.table-wrap { min-width: 0; max-width: 100%; overscroll-behavior-x: contain; }
th { color: #6c6575; font-size: 11px; }
td { color: #66566f; font-size: 12px; }
.patient-id { color: #66566f; font-size: 11px; }
.list-toolbar, .list-pagination, .modal-actions { flex-wrap: wrap; }
.list-pagination > div { flex-wrap: wrap; }
.search-field { max-width: 100%; }
.search-field input { min-height: 24px; font-size: 13px; color: #66566f; }
.rule-row { grid-template-columns: 115px minmax(0, 1fr) minmax(0, 1.35fr); }
.rule-row select, .simple-select { min-height: 40px; font-size: 12px; }
.rule-extra input { flex-shrink: 0; }
.phone-header, .message-bubble, .partner-card strong, .partner-ending,
.chat-option, .faq-button, .source-links a, .metric-pair strong { color: #66566f; }
.message-bubble, .partner-ending, .chat-option, .faq-button { font-size: 12px; }
.partner-card strong { font-size: 12px; }
.chat-option.secondary { color: #6c6575; }
.chat-option, .faq-button { min-height: 40px; }
.chat-sidebar > .button { white-space: normal; }
.chat-messages { height: min(355px, 50dvh); min-height: 180px; }
.chat-footer { gap: 10px; flex-wrap: wrap; }
.run-row { gap: 16px; }
.run-row > div { min-width: 0; flex-wrap: wrap; }
.run-row strong { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.run-success { color: #3f6d4b; }
.hypothesis-item strong, .hypothesis-item p { color: #806334; }

.chat-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  background: #fff;
  border-top: 1px solid #eee5f4;
}
.chat-input-row input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: #faf8fc;
  border: 1px solid #d8d0e1;
  border-radius: 9px;
  color: var(--ink);
  font-size: 13px;
}
.chat-input-row input::placeholder { color: #766d80; opacity: 1; }
.chat-input-row button { min-height: 44px; padding: 9px 12px; }
.age-notice {
  margin: 12px 0;
  padding: 11px 13px;
  border-left: 3px solid #bf8292;
  border-radius: 0 8px 8px 0;
  background: #faf0f2;
  color: #8b515e;
  font-size: 12px;
  line-height: 1.7;
}
.demo-caption, .consent-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.consent-note { padding: 10px 12px; background: #f5f2f8; border-radius: 8px; }
.list-selection { display: flex; flex-wrap: wrap; gap: 7px 12px; align-items: center; margin: 12px 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.queue-breakdown { display: grid; gap: 10px; margin: 16px 0; }
.queue-breakdown > div { min-width: 0; padding: 12px 14px; background: #f8f6fa; border: 1px solid #ece6f1; border-radius: 9px; }
.modal-select-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 12px; margin: 15px 0; }
.modal-select-row label { color: var(--muted); font-size: 12px; line-height: 1.6; }
.modal-select-row select { width: 100%; max-width: 100%; min-width: 0; min-height: 42px; padding: 9px 12px; border: 1px solid #d8d0e1; border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px; }

@media (max-width: 1024px) {
  .risk-grid, .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .risk-card { padding: 22px; }
  .risk-age-note { font-size: 10px; }
  .action-card { padding: 22px; }
}
@media (max-width: 850px) {
  .filter-panel { grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr) minmax(0, 1fr) 36px; }
  .compare-grid { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); }
  .chat-layout { grid-template-columns: minmax(0, 1fr) 210px; }
  .automation-panel { grid-template-columns: minmax(0, 1fr) 200px; }
}
@media (max-width: 740px) {
  .topbar nav { display: none; }
}
@media (max-width: 640px) {
  .topbar { gap: 12px; }
  .topbar-right .icon-button { width: 36px; height: 36px; }
  .filter-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; }
  .field label { font-size: 10px; }
  .select-shell select { font-size: 12px; min-height: 36px; }
  .reset-button { width: 36px; height: 36px; }
  .summary-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-item:last-child > div:last-child { flex-wrap: wrap; gap: 8px; }
  .summary-label { font-size: 10px; }
  .section-heading { flex-wrap: wrap; }
  .section-heading-tools { flex-direction: row; align-items: center; }
  .section-heading p { font-size: 11px; max-width: 100%; }
  .risk-card { padding: 18px 15px; }
  .risk-title { font-size: 14px; }
  .risk-subtitle { font-size: 10px; }
  .risk-menu { min-width: 26px; }
  .risk-age-note { display: inline-block; font-size: 10px; }
  .risk-action-label { font-size: 10px; }
  .cohort-note { font-size: 11px; }
  .cohort-note > span:first-child { flex: 0 0 auto; }
  .cohort-note .text-button { font-size: 11px; }
  .automation-panel { grid-template-columns: minmax(0, 1fr); }
  .automation-heading { gap: 14px; }
  .toggle-label { font-size: 11px; }
  .timeline-title { font-size: 11px; }
  .timeline-caption { font-size: 10px; }
  .automation-bottom p { flex-basis: 100%; font-size: 11px; }
  .automation-bottom .button { font-size: 11px; min-height: 36px; }
  .automation-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .automation-aside > .text-button { font-size: 11px; white-space: normal; }
  .action-card { padding: 18px 15px; }
  .action-card h3 { font-size: 14px; }
  .action-card p { font-size: 12px; }
  .action-channel { font-size: 10px; max-width: 80px; }
  .segmented button { padding: 8px 11px; font-size: 11px; min-height: 34px; }
  .compare-grid { grid-template-columns: minmax(0, 1fr); }
  .compare-stat-note, .reason-preview p { font-size: 11px; }
  .comparison-reasons .reason-preview { flex-basis: auto; }
  .comparison-result { align-items: flex-start; }
  .modal { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  .modal-header p { font-size: 12px; }
  .modal-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .modal-metric span { font-size: 10px; }
  .modal-banner, .modal-section p, .modal-section li { font-size: 12px; }
  .rule-row { grid-template-columns: 90px minmax(0, 1fr); }
  .scenario-layout, .chat-layout { grid-template-columns: minmax(0, 1fr); }
  .chat-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-button, .chat-option { font-size: 12px; }
  .chat-input-row { padding: 12px; }
  .chat-input-row input, .search-field input { font-size: 16px; }
  .chat-footer, .chat-explanation { font-size: 11px; }
  .modal-select-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .modal-actions .button, .list-pagination .button { min-height: 40px; font-size: 12px; }
  .modal-actions { justify-content: stretch; }
  .modal-actions .button { flex: 1 1 140px; }
  .metric-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-pair label, .list-pagination, .run-row { font-size: 11px; }
}
@media (max-width: 440px) {
  .risk-grid, .action-grid { grid-template-columns: minmax(0, 1fr); }
  .risk-card, .action-card { padding: 22px; }
  .risk-count { font-size: 34px; }
  .risk-title { font-size: 16px; }
  .risk-subtitle, .risk-action-select select { font-size: 12px; }
  .action-card-top { margin-bottom: 12px; }
  .action-card p { min-height: 0; }
  .field.region-field { grid-column: 1 / -1; }
  .filter-panel { grid-template-columns: minmax(0, 1fr) 36px; }
  .filter-panel .field:nth-child(2) { grid-column: 1 / -1; }
  .filter-panel .field:nth-child(3) label { max-width: none; min-height: 20px; }
  .filter-panel .field:nth-child(3) { grid-column: 1; }
  .filter-panel .reset-button { grid-column: 2; }
  .summary-row { gap: 18px 8px; }
  .summary-icon { display: none; }
  .summary-value { font-size: 22px; }
  .modal-metrics { grid-template-columns: minmax(0, 1fr); }
  .modal-metric { display: flex; align-items: center; gap: 14px; }
  .modal-metric strong { flex-shrink: 0; min-width: 85px; }
  .modal-metric span { font-size: 11px; }
  .chat-sidebar { grid-template-columns: minmax(0, 1fr); }
  .chat-sidebar > h3, .chat-sidebar > .button, .chat-explanation { grid-column: auto; }
  .chat-input-row { grid-template-columns: minmax(0, 1fr); }
  .chat-input-row button { justify-self: stretch; }
  .modal-header { padding: 18px 16px 15px; }
  .modal-body { padding: 17px 14px 21px; }
  .list-pagination { align-items: flex-start; flex-direction: column; }
  .rule-row { grid-template-columns: minmax(0, 1fr); }
  .rule-row > div:last-child { grid-column: auto; }
}
@media (pointer: coarse) {
  .risk-menu, .modal-close { min-width: 40px; min-height: 40px; }
  .text-button { min-height: 32px; }
}
@media (forced-colors: active) {
  .risk-card, .risk-card.selected, .risk-action-select, .modal, .button,
  .chat-option, .faq-button, .risk-chip { border: 1px solid CanvasText; }
  .risk-card.selected { outline: 3px solid Highlight; }
  .toggle-track { border: 1px solid CanvasText; }
}

/* Keep the chat submit control large enough for its icon and padding. */
.chat-input-row button { width: 44px; min-width: 44px; min-height: 44px; padding: 10px; }
.soft-label { background: #f8f6fb; cursor: pointer; }
@media (max-width: 440px) {
  .chat-input-row button { width: 100%; }
}

/* Compact working header and clear spacing between the dashboard controls. */
.overview > .hero { align-items:center; margin-bottom:24px; }
.overview > .hero h1 { font-size:28px; line-height:1.25; letter-spacing:-.75px; margin:0; max-width:none; }
.overview > .hero > .button { margin-top:0; }
.overview > .risk-grid { margin-bottom:28px; }
@media (max-width:640px) {
  .overview > .hero h1 { font-size:25px; }
  .overview > .hero > .button { margin-top:16px; }
}

/* Evidence and impact notes live behind the header information button. */
.evidence-nav { display:flex; flex-wrap:wrap; gap:6px; padding:5px; margin:0 0 24px; border:1px solid var(--line); background:#f7f6fa; border-radius:12px; }
.evidence-nav button { flex:1 1 170px; border:0; border-radius:8px; min-height:44px; padding:10px 14px; background:transparent; color:#665a75; font-weight:600; font-size:13px; }
.evidence-nav button.active { color:#fff; background:var(--purple-dark); box-shadow:0 2px 6px #29283e12; }
.evidence-nav button span { margin-left:7px; font-size:10px; font-weight:400; opacity:.9; }
.impact-callout { display:grid; grid-template-columns:minmax(180px,.7fr) minmax(0,1.3fr); gap:28px; align-items:center; border:1px solid #e1d9eb; background:#f6f3fa; border-radius:14px; padding:24px; }
.impact-callout > div { display:flex; flex-direction:column; gap:4px; }
.impact-callout .overline { color:#665378; font-size:10px; }
.impact-callout strong { color:#51436c; font-size:42px; line-height:1.2; font-weight:700; letter-spacing:-1.5px; }
.impact-callout small { font-size:22px; font-weight:500; letter-spacing:0; }
.impact-callout > div > span:last-child { color:#65586f; font-size:12px; }
.impact-callout p { color:#554d62; font-size:13px; line-height:1.75; margin:0; }
.impact-table { margin:14px 0; }
.impact-table th, .impact-table td { font-size:12px; line-height:1.5; padding:14px; }
.impact-table thead th { color:#62536f; font-size:10px; text-transform:uppercase; letter-spacing:.35px; }
.impact-table tbody th { font-weight:500; color:#51465e; background:#fff; }
.impact-table .working-scenario th, .impact-table .working-scenario td { background:#f2edf8; color:#51436c; font-weight:700; }
.project-info-content .modal-section ol { padding-left:20px; }
.evidence-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.evidence-card { border:1px solid #e2dce9; background:#fff; border-radius:14px; padding:20px; min-width:0; display:flex; flex-direction:column; }
.evidence-meta { color:#695c78; font-size:10px; font-weight:600; letter-spacing:.3px; }
.evidence-card h3 { color:#342b41; font-size:15px; line-height:1.5; margin:9px 0 4px; }
.evidence-card p { color:#62596e; font-size:12px; line-height:1.75; margin:9px 0; }
.evidence-results { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; background:#f7f5fa; padding:14px 10px; border-radius:9px; margin:12px 0; }
.evidence-results dt { color:#6c6079; font-size:10px; }
.evidence-results dd { color:#443552; font-size:20px; font-weight:650; margin:4px 0 0; letter-spacing:-.5px; }
.evidence-results > div:last-child dd { color:#51436c; }
.evidence-card .evidence-relevance { margin-bottom:16px; }
.evidence-link { margin-top:auto; padding-top:14px; border-top:1px solid #ebe6f0; color:#5a456f; text-decoration:underline; text-underline-offset:3px; font-size:11px; line-height:1.7; overflow-wrap:anywhere; }
.evidence-link strong, .evidence-link span { display:block; }
.evidence-link:hover { color:#372349; }
.evidence-footnote { margin:20px 0 0; color:#675b74; font-size:12px; line-height:1.8; }
@media (max-width:640px) {
  .impact-callout { grid-template-columns:minmax(0,1fr); gap:14px; padding:19px; }
  .impact-callout strong { font-size:36px; }
  .evidence-grid { grid-template-columns:minmax(0,1fr); }
  .evidence-card { padding:17px; }
  .evidence-nav button { flex-basis:120px; font-size:12px; padding:10px 8px; }
  .evidence-nav button span { display:block; margin-left:0; }
  .evidence-results dd { font-size:18px; }
}

/* Uploaded CSV and column filters */
.hero-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.hero-actions .button{margin-top:0}
.data-bar{display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap;margin-top:14px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:#faf9fb;font-size:12px;color:var(--muted)}
.data-source{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;min-width:0}
.data-source strong{color:var(--ink);font-weight:600}
.data-source-label{display:inline-flex;align-items:center;gap:6px;color:var(--ink);font-weight:600;overflow-wrap:anywhere}
.data-source-label .icon{width:15px;height:15px;color:var(--purple)}
.data-source .text-button{font-size:12px;white-space:normal}
.data-progress{display:block;width:140px;height:6px;border-radius:3px;background:#ebe7f0;overflow:hidden}
.data-progress span{display:block;height:100%;background:var(--purple);transition:width .2s}
.data-error{color:var(--red-ink)}
.filter-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;flex:1 1 200px;min-width:0}
.filter-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;border:1px solid #ddd5e6;background:#fff;border-radius:999px;padding:4px 8px 4px 11px;font-size:11px;color:#51436c}
.filter-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.filter-chip .icon{width:12px;height:12px}
.filter-chip:hover{border-color:var(--purple)}
#allFiltersButton{margin:0 0 0 auto}
.filter-count{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--purple);color:#fff;font-size:10px}
.filter-match{padding:12px 14px;border-radius:10px;background:#f4f1f7;color:#66566f;font-size:13px}
.filter-match strong{color:var(--ink)}
.filter-note{font-size:12px;color:var(--muted);margin:10px 0 4px}
.filter-group{padding:16px 0;border-bottom:1px solid #eeeaf2}
.filter-group:last-child{border-bottom:0}
.filter-group h3{margin:0 0 10px;font-size:13px}
.filter-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));grid-auto-flow:row dense;gap:10px}
.filter-field{margin:0;padding:10px 12px 12px;border:1px solid var(--line);border-radius:10px;min-width:0}
.filter-field.wide{grid-column:1/-1}
.filter-field legend{display:flex;flex-direction:column;padding:0 4px;font-size:12px;font-weight:600;color:var(--ink)}
.filter-field legend code{font-size:9px;font-weight:400;color:var(--muted);overflow-wrap:anywhere}
.filter-options{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.filter-option{display:inline-flex;align-items:center;gap:6px;border:1px solid #e7dfee;border-radius:7px;padding:5px 9px;font-size:12px;cursor:pointer;color:var(--ink)}
.filter-option:has(input:checked){border-color:var(--purple);background:#f3eff7}
.filter-option input,.filter-missing input{accent-color:var(--purple);margin:0}
.filter-option small,.filter-missing small{color:var(--muted);font-size:10px}
.filter-range{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:4px}
.filter-range label{display:flex;flex-direction:column;gap:3px;font-size:10px;color:var(--muted);min-width:0}
.filter-input{width:100%;min-width:0;border:1px solid #e7dfee;border-radius:7px;padding:7px 9px;font-size:13px;color:var(--ink);background:#fff}
.filter-input:focus{border-color:var(--purple)}
.filter-missing{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:11px;color:var(--muted)}
@media (max-width:640px){
  .hero-actions{margin-top:16px}
  .hero-actions .button{flex:1 1 140px}
  #allFiltersButton{margin-left:0;flex:1 1 100%}
  .filter-grid{grid-template-columns:minmax(0,1fr)}
}
.filter-match .filter-chips:not(:empty){margin-top:8px}
.filter-scope{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:5px;background:#fff;color:#51436c;font-size:11px}
.filter-option.zero{opacity:.45}
.filter-option.zero:has(input:checked){opacity:1}
select.filter-input{appearance:auto;padding:6px 8px}

/* Message drafting with Claude */
.compose-form{display:flex;flex-direction:column;gap:12px}
.compose-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}
.compose-field{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:12px;color:var(--muted)}
.compose-field small{font-size:10px;color:#a79db3}
.compose-field textarea{resize:vertical;font-family:inherit;line-height:1.5}
.compose-actions{margin-top:0;padding-top:0;border-top:0;justify-content:flex-start}
.compose-privacy{display:flex;gap:8px;align-items:flex-start;margin:0;font-size:11px;color:var(--muted)}
.compose-privacy .icon{width:14px;height:14px;margin-top:2px}
.compose-names{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}
.compose-template .modal-actions{margin-top:10px;padding-top:0;border-top:0;justify-content:flex-start}
.compose-api{margin-bottom:14px}
.compose-api:not(.hidden){display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:10px;background:#fbf3e9;color:#826332;font-size:12px}
.compose-api .icon{width:16px;height:16px;flex-shrink:0;margin-top:1px}
.compose-api code{font-size:11px;background:#fff;padding:1px 4px;border-radius:4px}
.compose-empty{color:var(--muted)}
.compose-error{background:#faecee;color:#8b515e}
.compose-warnings{display:flex;flex-direction:column;gap:2px;margin:10px 0}
.compose-meta{font-size:10px;color:var(--muted);text-align:right;margin-top:6px}
.compose-loading{display:flex;gap:5px;width:max-content}
.compose-loading span{width:7px;height:7px;border-radius:50%;background:#b5aac2;animation:compose-dot 1s infinite ease-in-out}
.compose-loading span:nth-child(2){animation-delay:.15s}
.compose-loading span:nth-child(3){animation-delay:.3s}
@keyframes compose-dot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){.compose-loading span{animation:none}}
@media (max-width:640px){.compose-grid,.compose-names{grid-template-columns:minmax(0,1fr)}}

/* Three model tiers and segments A–E */
@media (min-width:1025px){.risk-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.segment-panel{margin:8px 0 36px}
.segment-list{display:flex;flex-direction:column;gap:8px}
.segment-item{display:grid;grid-template-columns:36px minmax(0,1fr) minmax(120px,220px) 90px;gap:14px;align-items:center;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:#fff}
.segment-letter{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#f3eff7;color:var(--purple);font-weight:700}
.segment-text{display:flex;flex-direction:column;min-width:0}
.segment-text strong{font-size:13px;font-weight:600}
.segment-text span{font-size:12px;color:var(--muted)}
.segment-mix{display:flex;height:8px;border-radius:4px;overflow:hidden;background:#f0edf3}
.segment-mix i{display:block;min-width:0}
.segment-mix i.red{background:var(--red)}
.segment-mix i.yellow{background:var(--yellow)}
.segment-mix i.green{background:var(--green)}
.segment-count{display:flex;flex-direction:column;align-items:flex-end}
.segment-count strong{font-size:15px}
.segment-count span{font-size:11px;color:var(--muted)}
@media (max-width:640px){.segment-item{grid-template-columns:32px minmax(0,1fr) 70px}.segment-mix{grid-column:2/4}}

/* FHIR records */
.fhir-tag{display:inline-flex;align-items:center;gap:5px;color:#51436c}
.fhir-tag .icon{width:12px;height:12px}
.segment-badge{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:7px;background:#f3eff7;color:var(--purple);font-weight:700;cursor:help}
.plan-cell{display:flex;flex-wrap:wrap;gap:4px}
.plan-item{display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:999px;background:#f4f1f7;font-size:11px;white-space:nowrap}
.plan-item .icon{width:12px;height:12px}
.plan-item.urgent{background:#ffe0e3;color:var(--red-ink)}
.plan-control{font-size:11px;color:var(--muted);font-style:italic}
.compose-patient{margin-bottom:14px}
.compose-saved{font-size:12px;color:var(--green-ink);margin:8px 0 0}

/* AI messenger */
button.plan-item{border:0;cursor:pointer;color:inherit}
button.plan-item:hover{background:#e9e4ef}
.message-strategy{font-size:13px;color:var(--muted);margin:0 0 12px}
.message-heading{font-size:13px;margin:0 0 6px}
.message-raw{white-space:pre-wrap;font-size:12px}
.message-gloss{font-size:12px;color:var(--muted)}
.message-bubble mark{background:#f3eff7;color:var(--purple);padding:0 2px;border-radius:3px}
.messenger-table th code{display:block;font-size:10px;font-weight:400;color:var(--muted)}
.messenger-table td,.messenger-table th{vertical-align:top}
.messenger-example .text-button{white-space:normal;text-align:left;font-weight:500}
@media (min-width:1025px){.action-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Test the model (IRIS) */
.model-result p{font-size:13px;margin:8px 0}
.model-chance{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.model-chance strong{font-size:34px;letter-spacing:-1px;color:var(--ink)}
.model-chance span{font-size:12px;color:var(--muted)}
.model-chance em{font-style:normal;font-size:12px;font-weight:600;padding:2px 8px;border-radius:999px}
.model-chance em.up{background:var(--green-bg);color:var(--green-ink)}
.model-chance em.down{background:var(--red-bg);color:var(--red-ink)}
.model-reasons{list-style:none;padding:0;margin:4px 0;display:flex;flex-direction:column;gap:4px}
.model-reasons li{display:flex;justify-content:space-between;gap:10px;font-size:12px;padding:6px 10px;background:#fff;border-radius:8px}
.model-reasons b{color:var(--red-ink);white-space:nowrap}
.model-note{font-size:11px!important;color:var(--muted)}
.row-actions{display:flex;flex-direction:column;gap:4px;align-items:flex-start}
