:root{--ink:#213c34;--muted:#6c7e76;--green:#174f45;--lime:#dfedc5;--bg:#f5f7f2;--line:#e1e7df;--white:#fff;--red:#a53d39;--radius:18px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:var(--green)}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8aab64;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(28px,3vw,38px);font-weight:600;letter-spacing:-1.2px;margin-bottom:9px}h2{font-size:20px;font-weight:600;letter-spacing:-.4px}h3{font-size:16px}p{line-height:1.6}.muted,.help{color:var(--muted)}.help{font-size:13px;line-height:1.6}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:11px;font-weight:700;color:var(--muted)}.brand{display:flex;align-items:center;gap:10px;font-size:25px;font-weight:650;letter-spacing:-1px;text-decoration:none}.brand img{width:38px;height:38px}.sidebar{width:232px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:34px 22px;display:flex;flex-direction:column;z-index:20}.sidebar .brand{margin:0 10px 45px}.nav{display:flex;flex-direction:column;gap:8px}.nav a{color:var(--muted);text-decoration:none;padding:13px 16px;border-radius:10px;font-size:14px;font-weight:550;display:flex;align-items:center;gap:12px}.nav a:hover{background:var(--bg)}.nav a.active{background:var(--green);color:#fff}.icon{width:20px;height:20px;display:inline-block;flex-shrink:0;vertical-align:middle}.sidebar-bottom{margin-top:auto}.private-note{padding:18px 14px;background:var(--bg);border-radius:14px;margin-bottom:22px}.private-note p{font-size:12px;color:var(--muted);margin:8px 0 0}.user-chip{display:flex;gap:10px;align-items:center;padding:12px 2px;font-size:13px}.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--lime);font-weight:600}.user-chip strong{display:block;max-width:140px;overflow:hidden;text-overflow:ellipsis}.user-chip small{display:block;color:var(--muted);text-transform:capitalize}.shell{margin-left:232px}.topbar{height:78px;border-bottom:1px solid var(--line);padding:0 42px;display:flex;align-items:center;justify-content:space-between;background:#ffffffb3;font-size:13px}.topbar .brand{display:none}.topbar-right{display:flex;gap:20px;align-items:center}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#79a363;margin-right:7px}.content{max-width:1350px;margin:auto;padding:35px 42px 25px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.page-head p{margin:0;color:var(--muted);font-size:14px}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.btn{border:1px solid var(--line);background:white;color:var(--ink);padding:11px 17px;border-radius:9px;font-size:13px;font-weight:600;min-height:44px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn:hover{background:#eef3e9}.btn.primary{background:var(--green);border-color:var(--green);color:white}.btn.primary:hover{background:#246355}.btn.danger{color:var(--red);border-color:#ecd1ce}.btn.text{border:0;background:transparent;padding:6px 10px;color:var(--muted)}.btn.small{font-size:12px;padding:8px 10px;min-height:40px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stat{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:22px;min-height:148px}.stat.featured{background:var(--green);color:#fff;border:0}.stat .label{font-size:12px;display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;color:var(--muted)}.stat.featured .label,.stat.featured small{color:#d1dfd7}.stat .value{font-size:31px;line-height:1;font-weight:550;letter-spacing:-1px}.stat .value span{font-size:14px;letter-spacing:0;font-weight:400;margin-left:5px}.stat small{display:block;margin-top:12px;color:var(--muted);font-size:11px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(260px,1fr);gap:22px;align-items:start}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:24px;margin-bottom:22px;min-width:0}.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px}.card-head h2{margin:0}.card-head p{margin:6px 0 0;font-size:12px;color:var(--muted)}.pill{border-radius:20px;background:#eef4e6;color:#536c3d;padding:5px 9px;font-size:11px;white-space:nowrap}.pill.gray{background:#f0f2ef;color:#758075}.chart{width:100%;height:218px;display:block;overflow:visible}.chart text{font-family:inherit;font-size:11px;fill:var(--muted)}.chart .grid{stroke:#e6ebe3;stroke-dasharray:3 5}.chart .area{fill:#f0f5e6}.chart .trend{stroke:#547648;stroke-width:2.5;fill:none;stroke-linecap:round;stroke-linejoin:round}.chart circle{fill:#547648;stroke:#fff;stroke-width:2}.chart-caption{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-top:10px;gap:10px}.empty{text-align:center;padding:35px 16px}.empty .empty-icon{width:48px;height:48px;border-radius:14px;background:#eef4e7;display:grid;place-items:center;margin:0 auto 14px}.empty h3{margin:0 0 8px}.empty p{font-size:13px;color:var(--muted);max-width:360px;margin:0 auto 18px}.quick-card{background:#eaf0dd;border:0}.quick-card p{font-size:13px;color:#60704f}.quick-card .btn{width:100%;margin-top:8px}.catalog-mini{display:flex;flex-wrap:wrap;gap:8px}.catalog-mini span{padding:7px 10px;background:var(--bg);border:1px solid var(--line);border-radius:7px;font-size:11px}.notice{border-radius:10px;background:#f7f2e5;border:1px solid #eadfbe;color:#796333;padding:13px 15px;font-size:12px;line-height:1.6}.footer{font-size:11px;line-height:1.7;color:var(--muted);margin-top:8px;padding:0 4px 12px}.table-wrap{overflow-x:auto;margin:0 -4px}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:var(--muted);font-weight:600;padding:11px 10px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:16px 10px;border-bottom:1px solid #edf0ea;vertical-align:middle}tr:last-child td{border-bottom:0}td strong{font-weight:550}td small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.cell-main{display:flex;align-items:center;gap:10px}.med-icon{width:34px;height:34px;border-radius:10px;background:#edf2e7;display:grid;place-items:center;color:#687e54;flex-shrink:0}.nowrap{white-space:nowrap}.toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:16px}.toolbar select{max-width:240px}.pagination{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:20px;color:var(--muted);font-size:12px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:block;min-width:0}.field.full,.full{grid-column:1/-1}.field>span{font-size:12px;font-weight:600;display:block;margin-bottom:8px}input,select,textarea{width:100%;border:1px solid #dbe3d7;border-radius:9px;background:#fff;color:var(--ink);padding:12px;min-height:46px;font-size:14px}textarea{resize:vertical;min-height:92px}input::placeholder,textarea::placeholder{color:#a0aaa0}.field .help{display:block;margin-top:6px;font-size:11px;font-weight:400}.check{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.6}.check input{width:18px;height:18px;min-height:0;flex-shrink:0;margin:2px 0 0;accent-color:var(--green)}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.error{padding:12px 14px;background:#fbefed;border:1px solid #efd2cd;color:#98433b;font-size:13px;border-radius:9px;margin-bottom:16px}.error:empty{display:none}.two-col{display:grid;grid-template-columns:1.2fr 1fr;gap:24px;align-items:start}.medications{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.med-card{padding:22px;border-radius:16px;border:1px solid var(--line);background:#fff}.med-card h3{margin:16px 0 8px}.med-card p{font-size:12px;color:var(--muted);min-height:38px}.med-card-top{display:flex;align-items:center;justify-content:space-between}.med-card .btn{margin-top:8px}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.tab{border:1px solid var(--line);background:#fff;border-radius:8px;padding:11px 18px;min-height:44px;color:var(--muted);font-size:13px}.tab.active{background:var(--green);color:#fff;border-color:var(--green)}.setting{padding:18px 0;border-bottom:1px solid var(--line)}.setting p{margin:7px 0 0 28px;font-size:12px;color:var(--muted)}.setting:last-of-type{border:0}.code{font-family:ui-monospace,monospace;font-size:19px;word-break:break-all;background:var(--bg);padding:18px;border:1px dashed #a8bc96;border-radius:9px;margin:16px 0}.auth{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.auth-story{background:var(--green);color:#fff;padding:44px 8vw;display:flex;flex-direction:column;position:relative;overflow:hidden}.auth-story .brand{color:#fff}.auth-story .brand img{background:#fff1}.auth-copy{margin:auto 0;padding:60px 0;position:relative;z-index:1}.auth-copy .eyebrow{color:#b3c6ae}.auth-copy h1{font-size:clamp(40px,4.5vw,68px);line-height:1.12;letter-spacing:-2px;margin:22px 0}.auth-copy h1 em{font-style:normal;color:var(--lime)}.auth-copy p{font-size:15px;color:#c0d4c8;max-width:390px}.auth-bottom{font-size:12px;color:#bed0c5}.auth-art{display:flex;align-items:flex-end;gap:11px;height:100px;margin:40px 0}.auth-art i{width:34px;background:#e4f1c6;border-radius:7px;display:block;opacity:.65}.auth-art i:nth-child(1){height:90px}.auth-art i:nth-child(2){height:77px}.auth-art i:nth-child(3){height:85px}.auth-art i:nth-child(4){height:61px}.auth-art i:nth-child(5){height:70px}.auth-art i:nth-child(6){height:46px}.auth-art i:nth-child(7){height:38px;opacity:1}.auth-panel{display:flex;align-items:center;justify-content:center;padding:45px 36px;background:#fbfcf8}.auth-form{width:100%;max-width:410px}.auth-form h2{font-size:28px;margin-bottom:8px}.auth-form>p{color:var(--muted);font-size:14px}.auth-form form{margin-top:26px}.auth-form .field{margin-bottom:18px}.auth-form .btn.primary{width:100%;margin-top:16px}.auth-switch{text-align:center;font-size:13px;margin-top:24px;color:var(--muted)}.auth-switch a{font-weight:600}.auth-form .notice{margin-top:14px}.loading{padding:80px;text-align:center;color:var(--muted)}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:var(--green);color:white;padding:13px 20px;border-radius:10px;z-index:100;box-shadow:0 8px 28px #0b30232b;font-size:13px;max-width:90vw;display:none}#toast.visible{display:block}dialog{border:1px solid var(--line);border-radius:20px;width:min(560px,calc(100% - 28px));max-height:90dvh;padding:28px;box-shadow:0 24px 100px #133a3230;color:var(--ink)}dialog::backdrop{background:#142b2560;backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.modal-head h2{margin:0}.modal-head button{font-size:22px}.skip{position:absolute;left:10px;top:-80px;z-index:200;background:white;padding:10px}.skip:focus{top:10px}.row-actions{display:flex;gap:5px}.wrap-note{white-space:pre-wrap;overflow-wrap:anywhere;max-width:250px}.mobile-only{display:none}.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(min-width:1500px){.content{padding-top:45px}.card{padding:28px}.chart{height:250px}}
@media(max-width:1100px){.sidebar{width:200px;padding:28px 14px}.shell{margin-left:200px}.content{padding:28px 24px}.topbar{padding:0 24px}.stats{gap:12px}.stat{padding:17px}.dashboard-grid{grid-template-columns:1.5fr 1fr}.medications{grid-template-columns:repeat(2,1fr)}}
@media(max-width:850px){.sidebar{width:80px;padding:25px 10px}.sidebar .brand{margin:0 auto 32px}.sidebar .brand span,.nav a span,.sidebar-bottom{display:none}.nav a{justify-content:center;padding:16px}.shell{margin-left:80px}.dashboard-grid{grid-template-columns:1fr}.dashboard-side{display:grid;grid-template-columns:1fr 1fr;gap:20px}.stats{grid-template-columns:repeat(2,1fr)}.two-col{grid-template-columns:1fr}.page-head{align-items:flex-start}.auth-story{padding:35px}.auth-copy h1{font-size:44px}}
@media(max-width:600px){.sidebar{inset:auto 0 0 0;width:100%;height:74px;padding:5px 7px calc(5px + env(safe-area-inset-bottom));border:0;border-top:1px solid var(--line)}.sidebar .brand{display:none}.nav{flex-direction:row;justify-content:space-around;gap:0}.nav a{flex:1;flex-direction:column;gap:4px;padding:8px 2px;font-size:9px;border-radius:9px}.nav a span{display:block}.nav a.active{background:#e9f0df;color:var(--green)}.nav .icon{width:20px;height:20px}.shell{margin-left:0;padding-bottom:85px}.topbar{height:67px;padding:0 20px}.topbar .brand{display:flex;font-size:21px}.topbar .brand img{height:31px;width:31px}.topbar .breadcrumb,.topbar-date,.topbar-status{display:none}.topbar-right{gap:8px}.content{padding:26px 17px 15px}.page-head{display:block;margin-bottom:23px}.page-head .actions{margin-top:18px}.page-head .actions .btn{flex:1}.page-head h1{font-size:29px}.stats{gap:10px;margin-bottom:18px}.stat{padding:17px 15px;min-height:136px;border-radius:14px}.stat .value{font-size:29px}.stat .label{font-size:11px}.stat small{font-size:10px}.card{padding:20px 16px;margin-bottom:18px;border-radius:15px}.card-head{margin-bottom:18px}.card-head h2{font-size:18px}.dashboard-grid{gap:0}.dashboard-side{display:block}.chart{height:190px}.table-wrap{margin:0 -7px}th,td{padding:12px 8px}table{font-size:12px}.hide-mobile{display:none}.medications{gap:10px}.med-card{padding:16px}.med-card h3{font-size:14px;overflow-wrap:anywhere}.med-card p{font-size:11px}.med-card .pill{font-size:9px}.form-grid{gap:14px}.two-col{gap:0}.toolbar{align-items:flex-start}.toolbar select{max-width:175px}.auth{display:block}.auth-story{padding:22px 24px}.auth-copy{padding:25px 0 5px}.auth-copy h1{font-size:35px;margin:12px 0}.auth-copy p,.auth-art,.auth-bottom{display:none}.auth-panel{padding:30px 24px 45px}.auth-form h2{font-size:25px}.auth-story .brand{font-size:23px}.auth-copy .eyebrow{font-size:10px}.auth-form .field{margin-bottom:15px}dialog{padding:23px 19px;max-height:88dvh}.modal-head h2{font-size:21px}#toast{bottom:90px}.tabs{gap:5px}.tab{font-size:12px;padding:9px 12px}.form-actions .btn{flex:1}.user-list{min-width:530px}.mobile-only{display:block}input,select,textarea{font-size:16px}}
@media(prefers-reduced-motion:no-preference){.btn,.nav a{transition:background .15s ease}.card,.stat{animation:appear .25s ease}@keyframes appear{from{opacity:.4;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}}

@media(max-width:600px){.chart text{font-size:18px}.auth-form .check{margin-top:15px}}
