:root{color:#17202a;background:#eef4f3;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}.app-shell{min-height:100vh;display:grid;grid-template-columns:280px 1fr}.sidebar{background:#fff;border-right:1px solid #d8e3e0;padding:24px;display:flex;flex-direction:column;gap:24px}.brand{display:flex;gap:12px;align-items:center}.brand svg{color:#127c74}.brand strong,.brand span{display:block}.brand span,.page-title p,.muted{color:#63726f}nav{display:grid;gap:8px}nav button,.history-row{border:0;background:transparent;min-height:44px;padding:10px 12px;text-align:left;display:flex;align-items:center;gap:10px;border-radius:8px;cursor:pointer}nav button.active,nav button:hover,.history-row:hover{background:#e5f3f0;color:#0b6c65}.config-pill,.ai-label{margin-top:auto;width:fit-content;padding:6px 10px;border:1px solid #c7d9d5;border-radius:999px;color:#31544f;font-size:.85rem}.content{padding:32px;max-width:1100px;width:100%}.panel{background:#fff;border:1px solid #d8e3e0;border-radius:8px;padding:24px}.page-title{margin-bottom:22px}.page-title p,.result-head p{margin:0 0 6px;text-transform:uppercase;font-size:.78rem;letter-spacing:0;font-weight:700}h1,h2{margin:0}label{display:grid;gap:8px;font-weight:700}input,select,textarea{width:100%;border:1px solid #bed0cc;border-radius:8px;padding:11px 12px;background:#fbfdfc;color:#17202a}textarea{min-height:110px;resize:vertical}.grid{display:grid;gap:16px}.two{grid-template-columns:repeat(2,minmax(0,1fr))}.intake,form{display:grid;gap:18px}.primary{justify-self:start;border:0;border-radius:8px;background:#11776f;color:#fff;min-height:46px;padding:0 18px;font-weight:800;cursor:pointer}.question{border:1px solid #d8e3e0;border-radius:8px;padding:16px;display:grid;gap:12px}.segmented{display:inline-grid;grid-template-columns:1fr 1fr;width:190px;border:1px solid #bed0cc;border-radius:8px;overflow:hidden}.segmented button{border:0;background:#fff;min-height:38px;cursor:pointer}.segmented .selected{background:#127c74;color:#fff;font-weight:800}.result{display:grid;gap:18px}.result-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.badge{display:inline-flex;align-items:center;min-height:30px;border-radius:999px;padding:4px 10px;font-size:.78rem;font-weight:900}.low{background:#dff5e8;color:#126235}.moderate{background:#fff2c7;color:#765300}.high{background:#ffe0c7;color:#8d3f00}.emergency{background:#ffd7dc;color:#9e1028}.pending{background:#e7eaed;color:#586069}.red-flags{border:2px solid #df4055;border-radius:8px;background:#fff3f5;padding:14px;display:flex;gap:12px;color:#771020}.red-flags span,.info-list strong,.explanation strong{display:block}.red-flags span{margin-top:6px}.info-list ul{margin:8px 0 0;padding-left:20px}.explanation p{margin-bottom:0}.disclaimer,.error,.loading{border-radius:8px;padding:12px}.disclaimer{background:#eef4f3;color:#31544f}.error{margin-bottom:16px;background:#fff3f5;color:#9e1028}.loading{margin-bottom:16px;display:flex;gap:8px;align-items:center;background:#fff;border:1px solid #d8e3e0}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.history-layout{display:grid;grid-template-columns:minmax(280px,420px) 1fr;gap:18px}.history-row{width:100%;justify-content:space-between;border-bottom:1px solid #edf2f1;border-radius:0}.detail .result{padding:0;border:0}@media(max-width:820px){.app-shell,.history-layout,.two{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid #d8e3e0}nav{grid-template-columns:repeat(3,1fr)}nav button{justify-content:center}.content{padding:18px}}
