:root{font-family:system-ui,sans-serif;color:#302721;background:#f9f5ef;line-height:1.45;--surface: #fffdf9;--line: #e8ddd1;--muted: #6b5d52;--accent: #873e2c}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}.masthead,main{max-width:46rem;margin:auto;padding-inline:clamp(1rem,5vw,2rem)}.masthead{display:flex;align-items:center;justify-content:space-between;min-height:4.5rem;border-bottom:1px solid var(--line)}.brand{font-weight:750;letter-spacing:-.02em}.brand span{color:var(--accent);margin-right:.25em}main{padding-block:1.25rem 3rem}h1,h2{margin:0;font-family:Georgia,serif;font-weight:500;line-height:1.12}h1{font-size:clamp(2rem,7vw,3.25rem);letter-spacing:-.045em}h2{font-size:1.65rem}p{color:var(--muted)}.eyebrow{font-size:.72rem;font-weight:750;letter-spacing:.14em;color:var(--accent)}.card,dialog{background:var(--surface);border:1px solid var(--line);border-radius:1.1rem}.welcome{max-width:28rem;margin:1rem auto;padding:clamp(1rem,5vw,2rem)}.summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;margin:1.2rem 0}.summary>div{padding:.75rem .6rem}.summary span{color:var(--muted);font-size:.76rem;display:block}.summary strong{display:block;font-size:clamp(.9rem,3.5vw,1.25rem);margin-top:.2rem}.quick-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-block:.55rem}.quick-actions button{flex:1 0 auto}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:.7rem;background:#f5e6db;color:#512e22;padding:.55rem .75rem;min-height:44px;font-weight:650}button:disabled{opacity:.55;cursor:wait}.primary{background:var(--accent);color:#fff;border-color:var(--accent)}.quiet{background:transparent;border-color:transparent;color:var(--accent)}:focus-visible{outline:3px solid #9a4e37;outline-offset:2px}form{display:grid;gap:.85rem}label{display:grid;gap:.3rem;font-size:.9rem}input,select,textarea{background:#fff;color:inherit;border:1px solid #cdbeb1;border-radius:.55rem;min-height:44px;padding:.5rem;min-width:0;width:100%;font-size:1rem}.day-nav{display:flex;align-items:center;gap:.4rem;margin-top:.8rem}.day-nav button{padding-inline:.5rem;min-width:44px}.day-label{flex:1;min-width:0;max-width:13rem}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.view-switch{display:flex;gap:.35rem;padding:.25rem;margin-bottom:1.25rem;border-radius:.9rem;background:#f0e5db}.view-switch button{flex:1;background:transparent;border-color:transparent}.view-switch button[aria-pressed=true]{background:var(--surface);border-color:var(--line)}.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem;margin-top:1.2rem}.category-tile{display:grid;justify-items:center;gap:.55rem;padding:.9rem .2rem;font-size:clamp(.72rem,3.55vw,1rem)}.category-tile [aria-hidden]{display:grid;place-items:center;width:2.8rem;height:2.8rem;border-radius:50%;background:#f5e6db;font-size:1.3rem}.history-date{margin-top:1.25rem;font-size:1.15rem}.history-pages{display:flex;justify-content:space-between;gap:.5rem}.timeline-head{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin-block:.65rem}#day-view>.timeline-head{margin-top:1.6rem}#timeline,.history-list{display:grid;list-style:none;padding:0;gap:.6rem}.record{display:grid;grid-template-columns:minmax(4.5rem,auto) 1fr auto;align-items:start;gap:.55rem;padding:.75rem}.record time,.record small{color:var(--muted);font-size:.82rem}.record small{display:block}.record p{margin:.25rem 0 0;overflow-wrap:anywhere;white-space:pre-wrap}.empty{padding:1rem;color:var(--muted)}dialog{width:min(30rem,calc(100% - 1.5rem));color:inherit;padding:1rem}dialog::backdrop{background:#2e211b78}#status:empty,#entry-error:empty{display:none}#entry-error{color:#942e23;margin:0}
