:root{--bg:#f4f1eb;--panel:#fffefa;--text:#26392f;--muted:#65746c;--border:#dedfd6;--accent:#315f48;--soft:#e9efe5;--warm:#f4e7ca;--danger:#a33128;font-family:'Segoe UI',Arial,sans-serif;color:var(--text);background:var(--bg);color-scheme:light}*{box-sizing:border-box}body{margin:0;font-size:16px;line-height:1.5}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;background:transparent;border:1px solid var(--border);border-radius:10px;color:var(--text);min-height:44px;padding:8px 14px}button:hover{background:var(--soft)}button:disabled{opacity:.55;cursor:wait}input{width:100%;min-height:46px;background:var(--panel);color:var(--text);border:1px solid var(--border);border-radius:9px;padding:10px 12px}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #ad7730;outline-offset:3px}a{color:var(--accent)}[hidden]{display:none!important}header{padding:20px 36px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border);gap:20px}.brand{font-weight:650;letter-spacing:-.5px;font-size:22px;text-decoration:none;color:var(--text)}.brand span{color:#a47d40}.header-actions{display:flex;gap:9px;align-items:center;font-size:12px}#clock{font-size:20px;font-variant-numeric:tabular-nums;margin-right:12px}main{max-width:1800px;margin:auto;padding:35px 36px 20px}.intro{display:flex;justify-content:space-between;align-items:center;gap:25px;margin-bottom:25px}.eyebrow{font-size:10px;letter-spacing:1.7px;color:var(--muted);font-weight:650}h1{font-family:Georgia,serif;font-weight:400;font-size:clamp(30px,3vw,44px);line-height:1.2;margin:10px 0}h2{font-size:23px;font-weight:600;letter-spacing:-.6px;margin:6px 0 0}h3{font-size:14px;margin:0}.subtitle{color:var(--muted);margin:10px 0 0;font-size:14px}.sync{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:11px}.sync button{font-size:12px}.board-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:20px;align-items:start}.panel{background:var(--panel);border:1px solid var(--border);border-radius:20px;padding:24px;min-width:0;min-height:435px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.add{border-radius:50%;height:44px;width:44px;padding:0;font-size:24px;flex-shrink:0}.calendar .add{background:var(--accent);color:#fff;border-color:var(--accent)}.week-nav{display:flex;align-items:center;gap:7px;margin:23px 0 13px}.week-nav button{padding:6px 10px}.week-nav strong{flex:1;font-size:13px;text-align:center}#today{font-size:12px}.days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.day{padding:7px 1px;min-width:0;border:0;border-radius:11px;position:relative}.day span{display:block;font-size:10px;color:var(--muted)}.day strong{display:block;font-size:19px;font-weight:500}.day.selected{background:var(--accent);color:white}.day.selected span{color:#e6f1e9}.day.has-events:after{content:'';display:block;width:4px;height:4px;border-radius:50%;background:currentColor;position:absolute;bottom:3px;left:calc(50% - 2px)}.section-line{display:flex;justify-content:space-between;gap:10px;margin:24px 0 13px;color:var(--muted);font-size:11px}.entries{max-height:340px;overflow-y:auto}.entry{display:flex;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid var(--border)}.entry:last-child{border-bottom:0}.entry-body{flex:1;min-width:0}.entry-title{font-size:14px;font-weight:550;overflow-wrap:anywhere;margin:0}.entry-meta{color:var(--muted);font-size:11px;overflow-wrap:anywhere;margin-top:4px}.entry-time{font-size:13px;min-width:56px;color:var(--accent);font-variant-numeric:tabular-nums}.edit{padding:5px 9px;border:0;color:var(--muted);font-size:12px}.check{min-width:44px;padding:0;font-size:18px;border-radius:50%;width:44px}.done .entry-title{text-decoration:line-through;color:var(--muted)}.done .check{background:var(--soft)}.empty{padding:35px 12px;text-align:center;color:var(--muted);font-size:13px}.empty strong{display:block;color:var(--text);font-size:16px;margin-bottom:7px;font-weight:500}.panel-description{font-size:13px;color:var(--muted);margin:23px 0 7px}.calendar-note{font-size:10px;color:var(--muted);border-top:1px solid var(--border);margin:22px 0 0;padding-top:13px}.text-button{font-size:12px;border:0;color:var(--accent);margin-top:12px;padding-left:0}.quick-add{display:flex;gap:8px;margin:24px 0 12px}.quick-add input{min-width:0;font-size:13px}.quick-add button{background:var(--warm);font-size:20px}.shopping-note{color:var(--muted);font-family:Georgia,serif;font-size:14px;margin:22px 0 0}footer{display:flex;justify-content:space-between;gap:15px;color:var(--muted);font-size:11px;padding:24px 2px}footer a{text-decoration:none}.primary{background:var(--accent);color:white;border-color:var(--accent)}.primary:hover{background:#244d38}.error{color:var(--danger);font-size:13px}.error:empty{display:none}dialog{width:min(520px,94vw);max-height:94vh;overflow:auto;background:var(--panel);border:1px solid var(--border);border-radius:20px;padding:25px;color:var(--text)}dialog::backdrop{background:#152d2399}.dialog-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:20px}.dialog-heading h2{margin:0}.dialog-heading button{font-size:23px;border:0}label{display:block;margin:16px 0 7px;font-size:13px}.date-fields{display:flex;gap:15px}.date-fields>div{flex:1;min-width:0}#editor-note{font-size:12px;color:var(--muted);margin:15px 0}.dialog-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:24px;flex-wrap:wrap}.danger{color:var(--danger);margin-right:auto}.login{min-height:100vh;display:grid;place-items:center;padding:25px}.login form{width:min(450px,100%);background:var(--panel);border:1px solid var(--border);border-radius:20px;padding:32px}.login .primary{width:100%;margin-top:20px}.login h1{font-size:35px}.login p{color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}body.night{--bg:#17221d;--panel:#202e26;--text:#e1e5d9;--muted:#a8b6aa;--border:#3c4a40;--accent:#92b49b;--soft:#344c3c;--warm:#534a32;--danger:#ffb1a7;color-scheme:dark}.night .primary,.night .day.selected,.night .calendar .add{color:#15251a}.night .primary:hover{background:#abc9b2}@media(max-width:1050px){header{padding:16px 22px}main{padding:25px 22px}.board-grid{gap:13px;grid-template-columns:1.35fr 1fr 1fr}.panel{padding:17px}h2{font-size:20px}.sync{flex-direction:column;gap:4px}.entries{max-height:300px}}@media(max-width:800px){header{flex-wrap:wrap;gap:9px}.header-actions{flex-wrap:wrap;gap:6px}.intro{align-items:start}.board-grid{grid-template-columns:1fr 1fr}.calendar{grid-column:1/-1}.panel{min-height:300px}.calendar .entries{max-height:220px}.sync button{font-size:11px}.brand{font-size:20px}}@media(max-width:520px){main{padding:24px 16px}.board-grid{display:block}.panel{margin-bottom:16px;min-height:240px;padding:20px}.intro{display:block}.sync{flex-direction:row;justify-content:space-between;margin-top:20px}header{padding:16px}.header-actions{width:100%;justify-content:space-between}.header-actions button{font-size:11px;padding:6px 8px}#clock{font-size:16px;margin:0}footer{flex-direction:column}.date-fields{display:block}h1{font-size:32px}.entries{max-height:320px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
