:root{--bg:#f6f7fb;--surface:#fff;--border:#e3e5ee;--text:#1c1e2b;--muted:#6b7084;--accent:#4f46e5;--accent-soft:#eef0ff;--danger:#dc2626;--radius:12px;color:var(--text);background:var(--bg);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#111218;--surface:#1b1d27;--border:#2c2f3d;--text:#e8e9f0;--muted:#9095aa;--accent:#818cf8;--accent-soft:#252846;--danger:#f87171}}*{box-sizing:border-box}body{background:var(--bg);margin:0}button,input,textarea{font:inherit;color:inherit}button{cursor:pointer}.app{max-width:1400px;margin:0 auto;padding:20px 16px 40px}.muted{color:var(--muted);font-size:.85em}.topbar{flex-wrap:wrap;align-items:center;gap:12px 24px;margin-bottom:20px;display:flex}.brand{flex-direction:column;margin-right:auto;display:flex}.brand h1{letter-spacing:-.02em;margin:0;font-size:1.5rem}.week-nav{align-items:center;gap:4px;display:flex}.range{white-space:nowrap;margin-left:8px;font-weight:600}.primary,.ghost,.danger{border:1px solid #0000;border-radius:8px;padding:8px 14px}.primary{background:var(--accent);color:#fff;font-weight:600}.primary:disabled{opacity:.6}.ghost{background:var(--surface);border-color:var(--border)}.ghost:hover{border-color:var(--accent)}.danger{color:var(--danger);border-color:var(--danger);background:0 0}.week-nav .ghost:not(.today-btn){width:36px;padding:8px 0;font-size:1.1rem;line-height:1}.error{background:color-mix(in srgb, var(--danger) 12%, transparent);color:var(--danger);border-radius:8px;margin-bottom:16px;padding:10px 14px}.week{grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;transition:opacity .15s;display:grid}.week.is-loading{opacity:.6}@media (width<=900px){.week{grid-template-columns:1fr}}.day{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);cursor:pointer;min-height:160px;padding:12px;transition:border-color .15s}.day:hover{border-color:color-mix(in srgb, var(--accent) 50%, var(--border))}.day.is-today{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.day.is-past{opacity:.75}@media (width<=900px){.day{min-height:0}}.day-head{align-items:baseline;gap:8px;margin-bottom:10px;display:flex}.weekday{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-size:.75rem;font-weight:600}.date{all:unset;cursor:pointer;border-radius:4px;font-size:1.25rem;font-weight:700}.date:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.is-today .date{color:var(--accent)}.add-inline{color:var(--muted);background:0 0;border:none;border-radius:6px;margin-left:auto;padding:0 4px;font-size:1.25rem;line-height:1}.add-inline:hover{color:var(--accent);background:var(--accent-soft)}.tasks{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.empty{color:var(--border);text-align:center;padding:8px 0}.task{cursor:default;background:var(--accent-soft);border-radius:8px;align-items:flex-start;gap:8px;padding:8px;display:flex}.task input{accent-color:var(--accent);flex-shrink:0;margin-top:3px}.task-body{all:unset;cursor:pointer;flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.task-body:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}.time{color:var(--accent);font-variant-numeric:tabular-nums;font-size:.75rem;font-weight:600}.title{overflow-wrap:anywhere;font-size:.9rem;font-weight:500}.notes{color:var(--muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.78rem;display:-webkit-box;overflow:hidden}.notes.is-full{white-space:pre-wrap;-webkit-line-clamp:none;display:block}.task.is-done .title{color:var(--muted);text-decoration:line-through}.task.is-done{opacity:.7}.backdrop{z-index:10;background:#0006;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.sheet{background:var(--surface);border-radius:var(--radius);flex-direction:column;gap:14px;width:100%;max-width:460px;max-height:calc(100dvh - 32px);padding:20px;display:flex;box-shadow:0 20px 50px #00000040}.sheet h2{margin:0;font-size:1.1rem}.sheet-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.close{color:var(--muted);background:0 0;border:none;border-radius:6px;padding:2px 8px;font-size:1.5rem;line-height:1}.close:hover{color:var(--text);background:var(--accent-soft)}.day-list{min-height:0;overflow-y:auto}.day-list .task{padding:10px}.day-list .title{font-size:1rem}.day-list .notes{font-size:.85rem}.sheet label{flex-direction:column;gap:6px;font-size:.85rem;font-weight:600;display:flex}.sheet input:not([type=checkbox]),.sheet textarea{background:var(--bg);border:1px solid var(--border);border-radius:8px;width:100%;min-width:0;padding:9px 10px;font-size:16px;font-weight:400}.sheet input:not([type=checkbox]){appearance:none;height:44px;line-height:24px}.sheet input::-webkit-date-and-time-value{text-align:left}.sheet input:focus,.sheet textarea:focus{outline:2px solid var(--accent);outline-offset:-1px}.sheet textarea{resize:vertical}.row{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:12px;display:grid}.actions{align-items:center;gap:8px;display:flex}.spacer{flex:1}.topbar-actions{align-items:center;gap:8px;display:flex}.user-menu{position:relative}.user-menu>.ghost{align-items:center;gap:8px;padding:5px 12px 5px 5px;display:flex}.avatar{background:var(--accent-soft);width:26px;height:26px;color:var(--accent);border-radius:50%;place-items:center;font-size:.8rem;font-weight:700;display:grid}.menu{background:var(--surface);border:1px solid var(--border);z-index:5;border-radius:10px;flex-direction:column;min-width:180px;padding:4px;display:flex;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 10px 30px #0003}.menu button{text-align:left;background:0 0;border:none;border-radius:6px;padding:9px 12px}.menu button:hover,.menu button:focus-visible{background:var(--accent-soft);outline:none}.form-error{color:var(--danger);margin:0;font-size:.875rem}.success{margin:0}.login{place-items:center;min-height:100dvh;padding:16px;display:grid}.login-card{max-width:360px;box-shadow:none;border:1px solid var(--border)}.login-brand{align-items:center;gap:12px;margin-bottom:4px;display:flex}.login-brand h1{letter-spacing:-.02em;margin:0;font-size:1.5rem}.login-card h2{margin:0}.login-submit{padding:11px;font-size:1rem}.auth-form{flex-direction:column;gap:14px;display:flex}.auth-text{overflow-wrap:anywhere;margin:0;line-height:1.5}.auth-switch{text-align:center;margin:0}.label-row{justify-content:space-between;align-items:baseline;display:flex}.hint{font-size:.8rem;font-weight:400}.link{color:var(--accent);font-weight:500;font-size:inherit;text-underline-offset:2px;background:0 0;border:none;padding:0;text-decoration:underline}.link:disabled{opacity:.6}.user-email{text-overflow:ellipsis;white-space:nowrap;max-width:22ch;overflow:hidden}
