:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f6f7fb;color:#172033}*{box-sizing:border-box}body{margin:0;min-width:320px;background:linear-gradient(135deg,rgba(26,115,232,.08),transparent 36%),linear-gradient(315deg,rgba(4,120,87,.08),transparent 32%),#f6f7fb}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{cursor:pointer}.app-shell{width:min(1120px,calc(100% - 32px));margin:0 auto;padding:28px 0 48px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:72px}.brand-link{display:inline-block}.topbar h1,.topbar p,.section-heading h2,.section-heading p{margin:0}.topnav{display:flex;align-items:center;gap:8px}.topnav a{min-height:38px;border:1px solid transparent;border-radius:8px;padding:9px 12px;color:#4e5c70;font-weight:800}.topnav a:hover,.topnav a.active{border-color:#c8d3e2;background:#fff;color:#172033}h1{font-size:1.3rem;line-height:1.2}h2{margin:0;font-size:2.25rem;line-height:1.08;letter-spacing:0}h3{margin:0;font-size:1rem}p{line-height:1.6}.eyebrow{margin:0 0 8px;color:#28615a;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.panel{margin-top:20px;padding:32px;border:1px solid #dfe5ef;border-radius:8px;background:#ffffffeb;box-shadow:0 20px 60px #16203314}.welcome-panel{display:grid;grid-template-columns:minmax(0,1fr) 260px;align-items:center;gap:28px;min-height:430px}.welcome-copy p:not(.eyebrow){max-width:620px;color:#4e5c70;font-size:1.08rem}.summary-card{display:grid;place-items:center;min-height:220px;border:1px solid #d8e7e2;border-radius:8px;background:#eef8f5;color:#28615a;text-align:center}.metric{display:block;font-size:4.5rem;font-weight:900;line-height:1}.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.primary-button,.secondary-button,.ghost-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:8px;border:1px solid transparent;padding:0 18px;font-weight:800}.primary-button{background:#1a73e8;color:#fff}.primary-button:hover{background:#145fc3}.primary-button:disabled{cursor:not-allowed;opacity:.65}.secondary-button,.ghost-button{border-color:#c8d3e2;background:#fff;color:#172033}.ghost-button{min-height:38px;padding:0 14px}.section-heading{max-width:760px;margin-bottom:24px}.step-grid,.form-grid,.binary-grid,.result-grid,.about-grid{display:grid;gap:16px}.step-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.about-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.step-card,.field-card,.result-card{border:1px solid #dfe5ef;border-radius:8px;background:#fff}.step-card{padding:20px}.step-card span{display:inline-grid;place-items:center;width:32px;height:32px;margin-bottom:14px;border-radius:50%;background:#e9f1fe;color:#1a73e8;font-weight:900}.step-card p,.binary-card p,.result-card p{margin-bottom:0;color:#5a6778}.warning-card span{background:#fff4df;color:#9a5a00}.form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.binary-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:16px}.field-card{display:flex;flex-direction:column;min-width:0;padding:18px}.field-label,legend{margin-bottom:6px;color:#172033;font-weight:900}fieldset{margin:0;min-width:0}legend{padding:0}.field-helper{min-height:44px;color:#5a6778;font-size:.92rem;line-height:1.45}select,input{width:100%;min-height:44px;margin-top:12px;border:1px solid #c8d3e2;border-radius:8px;padding:0 12px;background:#fff;color:#172033}select:focus,input:focus,.segmented-control button:focus,button:focus,a:focus{outline:3px solid rgba(26,115,232,.24);outline-offset:2px}.field-error,.error-banner{color:#a52714;font-size:.9rem;font-weight:700}.field-error{margin-top:10px}.error-banner{margin:18px 0 0;border:1px solid #f1b8ad;border-radius:8px;padding:12px 14px;background:#fff0ee}.segmented-control{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:auto}.segmented-control button{min-height:42px;border:1px solid #c8d3e2;border-radius:8px;background:#f8fafc;color:#172033;font-weight:800}.segmented-control button.active{border-color:#1a73e8;background:#e9f1fe;color:#145fc3}.form-actions{justify-content:flex-end}.results-panel{display:grid;gap:18px}.result-hero{border-radius:8px;padding:28px;background:#e9f1fe;color:#123f7a}.result-hero p:last-child{max-width:760px;margin-bottom:0}.band-low_apparent_risk{background:#eaf7ef;color:#23653d}.band-moderate_uncertain_risk{background:#fff4df;color:#8a5200}.band-elevated_risk{background:#fff0e7;color:#914100}.band-high_diabetes_likelihood_risk{background:#ffecec;color:#9d1f1f}.result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.result-card{padding:20px}.result-card span{display:block;margin-bottom:8px;font-size:2rem;font-weight:900}.probability-list{border:1px solid #dfe5ef;border-radius:8px;overflow:hidden;background:#fff}.probability-list div{display:flex;justify-content:space-between;gap:16px;padding:14px 18px}.probability-list div+div{border-top:1px solid #edf1f6}.probability-note,.disclaimer{margin:0;border-radius:6px;padding:14px 16px;color:#4e5c70}.probability-note{margin-top:18px;background:#f7fafc;border:1px solid #dfe5ef}.disclaimer{border-left:4px solid #1a73e8;background:#f4f8ff}.empty-results .section-heading p:not(.eyebrow){color:#5a6778}@media(max-width:900px){.welcome-panel,.form-grid,.result-grid,.about-grid{grid-template-columns:1fr}.step-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-card{min-height:150px}}@media(max-width:640px){.app-shell{width:min(100% - 20px,1120px);padding-top:16px}.topbar{align-items:flex-start;flex-direction:column}.topnav{width:100%}.topnav a{flex:1;text-align:center}.panel{padding:20px}h2{font-size:1.75rem}.step-grid,.binary-grid{grid-template-columns:1fr}.actions,.form-actions{flex-direction:column}.primary-button,.secondary-button,.ghost-button{width:100%}}
