:root{color-scheme:light;--ink:#1b373e;--muted:#688087;--accent:#276977;--border:#dce6e4;--bg:#f6f8f7}*{box-sizing:border-box}body{margin:0;background:var(--bg);font:15px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink)}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button,.btn{border:1px solid var(--accent);background:var(--accent);color:white;border-radius:10px;padding:11px 17px;font-weight:650}button.secondary{color:var(--accent);background:white}button.ghost{background:transparent;border-color:transparent;color:var(--accent)}input[type=text],input[type=password],input[type=email],input[type=number],select{border:1px solid #c8d9d8;border-radius:9px;padding:11px;background:white;max-width:100%;width:100%;margin:4px 0 14px}input[type=radio],input[type=checkbox]{accent-color:var(--accent)}h1{font-family:Georgia,serif;font-weight:500;font-size:clamp(30px,4vw,44px);margin:5px 0 13px}h2{font-size:18px;margin:0 0 15px}p{color:var(--muted)}.layout{display:flex;min-height:100vh}.aside{width:250px;background:#183e48;color:white;padding:30px 18px;flex-shrink:0}.aside h2{font-family:Georgia,serif;font-size:25px;font-weight:500}.aside small{display:block;color:#b6cbcc}.aside nav{display:grid;gap:8px;margin-top:45px}.aside button{background:transparent;text-align:left;border:0;color:#d6e8e8}.aside button:hover{background:#305e68}.main{width:100%;max-width:1050px;padding:42px 28px;margin:0 auto}.eyebrow{letter-spacing:1.3px;text-transform:uppercase;color:#68858a;font-size:11px;font-weight:750}.card{background:white;border:1px solid var(--border);border-radius:15px;padding:25px;margin:18px 0}.listrow{display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid #ebefee;padding:14px 0;flex-wrap:wrap}.listrow:last-child{border:0}.muted,small{color:var(--muted)}.stack{display:grid;gap:12px}.hint{font-size:12px;color:#74878a}.warn{border:1px solid #eed6a7;background:#fff8ea;color:#75511f;padding:13px 16px;border-radius:10px;margin:15px 0}.risk{background:#fff0ee;border-color:#f1bcba;color:#934843}.ok{color:#2a7a52}.columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{max-width:540px}.client{max-width:680px;margin:0 auto;padding:44px 20px 80px}.brand{margin-bottom:55px;color:#3e6165;font-size:14px}.brand span{background:#e1f1eb;color:#296e6e;border-radius:9px;padding:8px 12px;margin-right:10px;font-family:Georgia,serif;font-size:22px}.client .card{padding:23px}.client fieldset{border:0;border-bottom:1px solid #e4ece9;padding:25px 0}.client legend{font-weight:600;line-height:1.6}.choices{display:grid;grid-template-columns:1fr;gap:8px;margin:15px 0}.choice{border:1px solid var(--border);border-radius:10px;padding:11px 13px;display:flex;gap:10px;align-items:center;cursor:pointer}.choice:has(input:checked){background:#e9f4ef;border-color:#80b3a5}.choice span{flex:1}.choices.compact{grid-template-columns:repeat(auto-fit,minmax(90px,1fr))}.choices.compact .choice{justify-content:center}.score{font-size:39px;font-family:Georgia,serif}.track{background:#e2eeea;height:12px;border-radius:8px;overflow:hidden}.track>div{height:100%;background:#5d9b93;border-radius:8px}.barrow{display:grid;grid-template-columns:135px 1fr 60px;gap:10px;align-items:center;margin:12px 0;font-size:12px}.barrow .track{height:10px}.table{width:100%;border-collapse:collapse}.table td,.table th{padding:11px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}.code{word-break:break-all;font-family:monospace;font-size:12px}.error{color:#a83f3f}.tag{font-size:11px;background:#e4f2eb;color:#37754d;padding:5px 9px;border-radius:20px}.progress{display:flex;justify-content:space-between;color:#6c8588;font-size:12px}.chart{width:100%;height:auto;max-height:230px}.chart text{font-size:11px;fill:#698084}.chart polyline{fill:none;stroke:#367a80;stroke-width:3}.chart circle{fill:#367a80}.smallbtn{padding:7px 11px;font-size:12px}.footer{margin-top:40px;font-size:12px;color:#8b9c9f}@media(max-width:800px){.layout{display:block}.aside{width:auto}.aside nav{display:flex;margin-top:14px;flex-wrap:wrap}.main{padding:25px 16px}.columns{grid-template-columns:1fr}.barrow{grid-template-columns:92px 1fr 48px}}
/* Clinician-only patient profile */
.profile-tabs{display:flex;gap:9px;flex-wrap:wrap;margin:16px 0}.profile-tabs button{background:#eaf1ef;color:#285b62;border:1px solid #c5d8d4}.profile-tabs button.active{background:#285f6b;color:white}.profile-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.profile-stat{border:1px solid #deebe7;padding:17px;border-radius:12px;background:#fbfdfc}.profile-stat b{display:block;font-size:23px;font-family:Georgia,serif;font-weight:500}.profile-stat small{color:#70868a}.profile-note{padding:13px 0;border-bottom:1px solid #e4eeeb;font-size:14px;line-height:1.6}.goal-row{padding:16px 0;border-bottom:1px solid #e4eeeb}.goal-row header{display:flex;justify-content:space-between;align-items:center;gap:10px}.goal-row p{margin:8px 0;color:#647a7e}.goal-track{height:8px;border-radius:20px;background:#e5eeeb;margin:11px 0 7px;overflow:hidden}.goal-track>div{height:100%;background:#458a83}.field textarea{width:100%;max-width:680px;padding:11px;border:1px solid #cadbd8;border-radius:9px;min-height:92px}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.profile-risk{background:#fff3ec;border:1px solid #ecc5a3;color:#885326;border-radius:11px;padding:13px;margin-top:15px}.profile-summary{background:#f4f8f6;border-radius:12px;padding:16px;border:1px solid #dbe8e3}.profile-summary li{margin:9px 0}.profile-tip{font-size:12px;color:#657b7c;line-height:1.6}@media(max-width:720px){.profile-stat-grid,.profile-grid{grid-template-columns:1fr}.profile-tabs button{flex:1}}
