:root{--bg:#f6f5f2;--panel:#fff;--text:#1d1d1b;--muted:#6b6a66;--border:#dcdad4;--accent:#2f6fdb;--on-accent:#fff;--online:#2e8540;--offline:#b7791f;--error:#c53030;--touch:48px;color:var(--text);background:var(--bg);font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}@media (prefers-color-scheme:dark){:root{--bg:#161615;--panel:#22221f;--text:#ecebe6;--muted:#a3a29c;--border:#3a3935;--accent:#6b9cf0;--on-accent:#10131a}}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);overscroll-behavior:none;-webkit-user-select:none;user-select:none}button{min-height:var(--touch);border:1px solid var(--border);background:var(--panel);color:var(--text);font:inherit;border-radius:8px;padding:0 16px}button.primary{border-color:var(--accent);background:var(--accent);color:var(--on-accent)}.error{color:var(--error)}.gate{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:16px;height:100%;padding:16px;display:flex}.shell{grid-template:"tabs header""tabs content"1fr/auto 1fr;height:100%;display:grid}.header{border-bottom:1px solid var(--border);grid-area:header;align-items:center;gap:16px;padding:8px 16px;display:flex}.content{grid-area:content;padding:16px;overflow-y:auto}.tabs{border-right:1px solid var(--border);background:var(--panel);flex-direction:column;grid-area:tabs;gap:8px;padding:8px;display:flex}.tab{background:0 0;border-color:#0000;min-width:112px;font-weight:500}.tab.selected{background:var(--accent);color:var(--on-accent)}@media (orientation:portrait){.shell{grid-template:"header""content"1fr"tabs"/1fr}.tabs{border-right:none;border-top:1px solid var(--border);flex-direction:row}.tab{flex:1;min-width:0}}.clock{flex:1;align-items:baseline;gap:12px;min-width:0;display:flex}.clock .time{font-size:1.75rem;font-weight:600}.clock .date{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.status{white-space:nowrap;font-size:.875rem}.status:before{content:"";background:currentColor;border-radius:50%;width:10px;height:10px;margin-right:6px;display:inline-block}.status.online{color:var(--online)}.status.offline,.status.unplugged{color:var(--offline)}.status.battery-low{color:var(--error);font-weight:600}.app-menu{position:relative}.menu-button{width:var(--touch);justify-content:center;align-items:center;padding:0;display:flex}.menu-backdrop{z-index:1;position:fixed;top:0;bottom:0;left:0;right:0}.app-menu .menu{z-index:1;border:1px solid var(--border);background:var(--panel);border-radius:8px;flex-direction:column;gap:8px;min-width:200px;padding:8px 16px 16px;display:flex;position:absolute;top:calc(100% + 4px);right:0;box-shadow:0 4px 16px #00000026}.app-menu .menu p{margin:8px 0}.placeholder{color:var(--muted)}.placeholder h2{color:var(--text)}.chores-message{color:var(--muted)}.chore-list{flex-direction:column;gap:4px;max-width:800px;margin:0;padding:0;list-style:none;display:flex}.chore{border:1px solid var(--border);background:var(--panel);border-radius:8px;align-items:center;gap:8px;min-height:52px;padding:2px 12px;display:flex}.chore.done{background:0 0;border-color:#0000;min-height:40px}.chore.done .avatar,.chore.done .chore-text,.chore.done .chore-time{opacity:.45}.chore.done .avatar{width:28px;height:28px;margin:0 8px 0 4px;font-size:.8125rem}.chore.done .avatar.anyone{font-size:.625rem}.chore .avatar{margin-right:4px}.check-button{width:var(--touch);background:0 0;border:none;flex:none;justify-content:center;align-items:center;padding:0;display:flex}.chore .check{border:2px solid var(--border);border-radius:50%;flex:none;width:28px;height:28px;position:relative}.chore.done .check{background:var(--online);border-color:#0000}.chore.done .check:after{content:"";border:3px solid #fff;border-width:0 3px 3px 0;width:7px;height:13px;position:absolute;top:3px;left:8px;transform:rotate(45deg)}.chore-text{flex-direction:column;flex:1;min-width:0;display:flex}.chore-title{font-size:1.125rem}.chore.done .chore-title{font-size:1rem;text-decoration:line-through}.chore-details{color:var(--muted);font-size:.875rem}.chore.overdue .chore-details{color:var(--error)}.chore-time{color:var(--muted);white-space:nowrap}.chore.late .chore-time{color:var(--error);font-weight:600}.avatar{color:#fff;border-radius:50%;flex:none;justify-content:center;align-items:center;width:36px;height:36px;font-size:1rem;font-weight:600;display:flex}.avatar.anyone{border:2px dashed var(--border);color:var(--muted);font-size:.75rem}.overlay{z-index:2;background:#0006;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.picker{background:var(--panel);text-align:center;border-radius:12px;width:100%;max-width:480px;padding:16px 24px 24px}.picker h2{margin-bottom:0}.picker>p{color:var(--muted)}.picker-members{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;margin-bottom:16px;display:grid}.picker-members button{color:#fff;border:none;min-height:72px;font-size:1.125rem;font-weight:600}.picker-actions{grid-template-columns:1fr 1fr;gap:12px;display:grid}.picker .cancel{width:100%}.toast{z-index:2;background:var(--text);max-width:calc(100% - 32px);color:var(--bg);border-radius:8px;align-items:center;gap:16px;padding:8px 8px 8px 16px;display:flex;position:fixed;bottom:96px;left:50%;transform:translate(-50%)}.toast span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
