:root{font-family:system-ui,-apple-system,sans-serif;color:#372d23;background:#f8f3e9;--red:#8f291e;--olive:#626c42;--line:#e5d8c7}*{box-sizing:border-box}body{margin:0}header{position:sticky;top:0;z-index:2;background:#fffaf2;display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line);padding-top:max(12px,env(safe-area-inset-top))}header img{width:58px;height:58px;border-radius:50%}header b{font-family:Georgia,serif;font-size:24px;color:var(--red)}small{display:block;font-size:11px;letter-spacing:1px;color:#766b5c}#connection{margin-left:auto;font-size:11px;color:var(--olive);text-align:right}main{max-width:850px;margin:auto;padding:20px 16px 115px}h1,h2,h3{font-family:Georgia,serif;margin:0 0 12px}h1{font-size:30px}h2{font-size:22px}p{line-height:1.5}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:12px;padding:12px 15px;background:var(--red);color:white;font-weight:650}button.secondary{background:#eae0cf;color:#493b2c}button.danger{background:#f4e1dc;color:var(--red)}button:disabled{opacity:.5}input,select,textarea{width:100%;border:1px solid #d9c9b5;border-radius:9px;padding:12px;background:white;color:#372d23;font-size:16px}label{display:block;margin:12px 0 4px;font-size:13px;font-weight:650}textarea{min-height:80px}.card{background:#fffdf8;border:1px solid var(--line);border-radius:16px;padding:16px;margin:10px 0}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.grid .card{margin:0}.metric{font-size:34px;font-weight:750;color:var(--red)}.muted{color:#786d60;font-size:13px}.bar{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}.row{display:flex;align-items:center;gap:12px}.grow{flex:1;min-width:0}.avatar{width:55px;height:55px;object-fit:cover;border-radius:14px;background:#ece2ce;display:grid;place-items:center;font-size:28px}.tag{display:inline-block;font-size:12px;background:#e6eadc;color:#485430;padding:4px 8px;border-radius:30px}.warn{background:#f7e6d1;color:#8b4c1f}.overdue{color:#9c3023}nav{position:fixed;bottom:0;left:0;right:0;background:#fffaf2;border-top:1px solid var(--line);display:flex;justify-content:center;padding:5px 4px max(8px,env(safe-area-inset-bottom));z-index:3}nav button{background:none;color:#746656;font-size:11px;flex:1;max-width:140px;padding:8px 3px}nav button.active{color:var(--red);background:#f3e5d8}nav span{display:block;font-size:21px;margin-bottom:3px}dialog{border:0;border-radius:18px;background:#fffaf2;color:#372d23;width:min(94vw,560px);max-height:88vh;padding:20px;overflow:auto}dialog::backdrop{background:#32251b80}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.notice{padding:12px;border-left:4px solid var(--olive);background:#e9eadf;border-radius:6px;font-size:14px}.record{overflow-wrap:anywhere}.photo{max-width:100%;max-height:260px;border-radius:12px}.done{text-decoration:line-through;opacity:.65}a{color:var(--red)}@media(min-width:650px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
