:root{--bg: #111;--surface: #1c1c1c;--line: #2c2c2c;--text: #f2f2f2;--muted: #8a8a8a;--accent: #f5a623;--danger: #ff6b5b;--tabbar: 56px;color-scheme:dark;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:var(--text);background:var(--bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}*{box-sizing:border-box}html,body{margin:0;background:var(--bg)}h1,h2,p{margin:0}h1{font-size:24px;margin-bottom:8px}h2{font-size:16px;margin:24px 0 6px}.muted{color:var(--muted)}.error{color:var(--danger)}.screen{max-width:560px;margin:0 auto;padding:calc(env(safe-area-inset-top) + 20px) calc(env(safe-area-inset-right) + 16px) calc(env(safe-area-inset-bottom) + var(--tabbar) + 20px) calc(env(safe-area-inset-left) + 16px)}input{width:100%;font:inherit;font-size:16px;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:12px}button{font:inherit;font-size:16px;min-height:44px;padding:0 16px;border:none;border-radius:10px;color:#111;background:var(--accent)}button:disabled{opacity:.5}button.secondary{margin-top:24px;color:var(--text);background:var(--surface)}.login{min-height:100dvh;display:flex;flex-direction:column;justify-content:center;padding-bottom:calc(env(safe-area-inset-bottom) + 20px)}.login form{display:flex;flex-direction:column;gap:10px;margin-top:20px}.login button.secondary{margin-top:0}.tabbar{position:fixed;left:0;right:0;bottom:0;display:flex;padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);background:var(--bg);border-top:1px solid var(--line)}.tab{flex:1;height:var(--tabbar);min-width:0;padding:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:10px;border-radius:0;color:var(--muted);background:none}.tab.active{color:var(--accent)}.tab svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.mode-badge{position:fixed;z-index:10;top:env(safe-area-inset-top);right:8px;font-size:11px;color:var(--muted)}.small{font-size:13px}.streak{font-size:56px;font-weight:700;margin-top:16px;color:var(--accent)}button.wide{width:100%;margin-top:16px}.small+.error,button.wide+.small{margin-top:6px}.row-form{display:flex;gap:8px;margin-bottom:8px}.row-form button{flex:none}.buttons{display:flex;flex-wrap:wrap;gap:8px}.buttons button.secondary{margin-top:0}.qr{width:200px;margin-top:12px;background:#fff}.qr svg{display:block;width:100%;height:auto}.list,.plain-list{list-style:none;margin:0;padding:0}.item{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid var(--line)}.item.column{flex-direction:column;align-items:stretch}.item button,.cal-head button{min-height:36px;padding:0 12px;font-size:14px;margin-top:0}.grow{flex:1;min-width:0}button.plain{padding:0;min-height:36px;text-align:left;color:var(--text);background:none}.detail{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding-bottom:6px}.plain-list li{padding:2px 0}.check{display:flex;align-items:center;gap:8px;min-height:36px}.check input{width:20px;height:20px}.cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.cal{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center}.cal-wd{font-size:12px;color:var(--muted)}.cal-day{min-height:40px;padding:0;font-size:15px;color:var(--text);background:var(--surface)}.cal-day.done{color:#111;background:var(--accent)}.cal-day.today{outline:1px solid var(--text)}.cal-day.picked{outline:2px solid var(--text)}.cal-detail{margin-top:8px}.prost{position:fixed;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;font-size:40px;font-weight:700;background:#0009;pointer-events:none;animation:prost 1.6s ease forwards}@keyframes prost{0%{opacity:0}15%,70%{opacity:1}to{opacity:0}}
