:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#183431;background:#f5f8f7}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}header{background:#fff;border-bottom:1px solid #dce7e4;padding:16px max(18px,calc((100vw - 960px)/2));display:flex;justify-content:space-between;align-items:center}.brand{font-size:19px;font-weight:800}.brand span{color:#087e79}main{max-width:960px;margin:auto;padding:22px 16px 100px}.top{display:flex;align-items:center;justify-content:space-between;gap:12px}h1{font-size:25px;margin:0 0 14px}h2{font-size:18px;margin:0 0 14px}p{color:#60746e}.card{background:#fff;border:1px solid #e0e9e6;border-radius:17px;padding:18px;margin-bottom:15px;box-shadow:0 3px 15px #153a2a07}.hero{background:#0a716d;color:white}.hero p,.hero small{color:#d7efeb}.big{font-size:35px;font-weight:800;letter-spacing:-1px;margin:8px 0}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.metric{background:#f3f8f6;border-radius:12px;padding:14px}.metric small{display:block;color:#60746e;margin-bottom:5px}.metric strong{font-size:20px}.hero .metric{background:#ffffff19}.hero .metric small{color:#e1f3f1}.primary{background:#087e79;color:#fff;border:0;border-radius:12px;padding:12px 16px;font-weight:700}.secondary{background:#edf5f2;color:#15544f;border:0;border-radius:12px;padding:11px 14px;font-weight:650}.danger{color:#ac423e}.ghost{border:1px solid #dce8e4;background:white;border-radius:10px;padding:8px 10px}.actions{display:flex;gap:10px;flex-wrap:wrap}.nav{display:flex;gap:8px}.nav button{border:0;background:transparent;border-radius:10px;padding:10px 14px;color:#58716a;font-weight:700}.nav button.active{background:#e3f4f0;color:#087e79}.mobile-nav{display:none}.row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #edf1ef}.row:last-child{border:0}.muted{font-size:13px;color:#6b817a}.tag{font-size:12px;padding:5px 8px;border-radius:9px;background:#f0f5f3}.tag.due{background:#fff0e8;color:#a65a2c}.hidden{display:none!important}label{display:block;font-size:13px;font-weight:700;margin:12px 0 5px}input,select{width:100%;padding:12px;border:1px solid #cbdad5;border-radius:11px;background:#fff;color:#183431}dialog{border:0;border-radius:18px;box-shadow:0 25px 90px #102c2960;width:min(480px,calc(100% - 20px));max-height:90vh;overflow:auto;padding:22px}dialog::backdrop{background:#0c2d2b80}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{margin:0}.small{font-size:12px}.empty{text-align:center;padding:26px;color:#698078}.alert{padding:12px;background:#fff6e7;border-radius:10px;color:#865a1b;font-size:13px}.inline{display:flex;align-items:center;gap:8px}.inline input{width:auto}.footer{margin-top:25px;color:#6b817a;font-size:12px}.right{text-align:right}@media(max-width:650px){header{padding:13px 16px}.desktop-nav{display:none}.mobile-nav{position:fixed;bottom:0;left:0;right:0;background:white;border-top:1px solid #dce7e4;display:grid;grid-template-columns:repeat(3,1fr);z-index:5;padding:8px 4px max(9px,env(safe-area-inset-bottom))}.mobile-nav button{font-size:13px;padding:11px 3px}.top h1{font-size:22px}.big{font-size:31px}.card{padding:15px}.row{align-items:flex-start}.row .actions{justify-content:flex-end}} 
.agenda-check{display:flex;align-items:flex-start;gap:12px;margin:0;cursor:pointer;flex:1;font-size:14px}.agenda-check input{width:19px;height:19px;flex:none;accent-color:#087e79;margin:2px 0 0}.agenda-desc{display:block;margin-top:4px;line-height:1.5;font-weight:400}.completed{text-decoration:line-through;opacity:.55}.agenda-actions{margin-top:15px}.agenda-setting{display:flex;align-items:center;gap:12px;padding:8px 0}.agenda-setting input{width:19px;height:19px;accent-color:#087e79;margin:0}.agenda-setting span{font-weight:500}
.auth-screen{position:fixed;inset:0;background:#f5f8f8;z-index:100;display:grid;place-items:center;padding:20px}.auth-card{background:white;max-width:420px;width:100%;padding:26px;border-radius:18px;box-shadow:0 12px 35px #0b3e4018}.auth-card input{margin-bottom:14px}.auth-card button{margin:6px 8px 6px 0}.auth-card #authMessage{min-height:24px;color:#0b6864}
