:root{color-scheme:light;--ink:#202c35;--accent:#24594a;--paper:#faf9f5;--border:#d3d9d3;--muted:#55636a;font:16px/1.5 system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}header,nav,main{max-width:58rem;margin:auto;padding:1rem}header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.brand{font-weight:750;font-size:1.3rem;text-decoration:none}nav{display:flex;gap:.5rem;flex-wrap:wrap;padding-top:0}nav a{padding:.4rem .7rem;border-radius:2rem;background:#e7eee9}a{color:var(--accent)}h1{font-size:1.65rem;margin:.25rem 0 1rem}h2{font-size:1.05rem;margin:1.5rem 0 .5rem}button,.button{font:inherit;background:var(--accent);color:white;padding:.55rem .8rem;border:1px solid transparent;border-radius:.5rem;cursor:pointer;text-decoration:none;min-height:44px}button:hover,.button:hover{background:#183f35}input,textarea,select{font:inherit;max-width:100%;width:100%;padding:.6rem;border:1px solid #89968e;border-radius:.4rem;background:white;color:var(--ink)}label{display:block;margin:.65rem 0}label>input,label>textarea,label>select{display:block;margin-top:.2rem}textarea{min-height:5rem;resize:vertical}.input-row{display:flex;gap:.5rem;flex-wrap:wrap}.input-row input{flex:1 1 14rem;min-width:0}.quick-add{padding-bottom:1rem;border-bottom:1px solid var(--border)}.chip{background:#e3f0e8;border-radius:.5rem;padding:.75rem;font-size:.9rem}.warning{background:#fff0ce;color:#6e3c00;padding:.7rem;border-radius:.4rem;overflow-wrap:anywhere}.reminder{background:white;border:1px solid var(--border);border-radius:.75rem;margin:.7rem 0;padding:1rem;overflow-wrap:anywhere}.reminder .title{font-weight:650}.reminder time{display:block;font-size:.85rem;color:var(--muted);margin:.25rem 0}.actions,.actions form{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem}.actions{margin-top:.8rem}.actions label{margin:0}.actions select{width:auto}.actions button,.actions .button{font-size:.85rem}.note{white-space:pre-wrap;color:var(--muted)}.late .reminder{border-left:4px solid #ae3636}.late h2{color:#a12e2e}.empty{color:var(--muted);padding:1rem 0}.edit-form,#settings-form,.login form{max-width:34rem}.checkbox{display:flex;gap:.5rem;align-items:center}.checkbox input{width:auto}.login{max-width:28rem;padding-top:10vh}#undo-bar{position:fixed;bottom:1rem;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:.8rem 1rem;border-radius:.6rem;box-shadow:0 3px 15px #0003;white-space:nowrap}dialog{max-width:min(94vw,30rem);border:1px solid var(--border);border-radius:.75rem}dialog::backdrop{background:#0006}details ul{padding-left:1.1rem;font-size:.9rem}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}[hidden]{display:none!important}:focus-visible{outline:3px solid #db9400;outline-offset:2px}
.quick-page main{max-width:36rem;padding-top:8vh}.quick-page .field-wrap{font-size:1.15rem}.quick-page #quick-submit{width:100%;margin-top:1rem}.quick-page #quick-saved{padding:1rem;background:#e3f0e8;border-radius:.5rem;overflow-wrap:anywhere}
/* The mirror and input share all text metrics; only the mirror paints highlights. */
.field-wrap{position:relative;flex:1 1 14rem;min-width:0;background:white;border-radius:.4rem}
.field-wrap>input,.highlight-layer{font:inherit;letter-spacing:inherit;line-height:inherit;padding:.6rem;border-width:1px;border-style:solid}
.field-wrap>input{position:relative;z-index:1;background:transparent;margin:0;width:100%}
.highlight-layer{position:absolute;inset:0;pointer-events:none;overflow:hidden;white-space:pre;color:transparent;border-color:transparent}
.highlight-layer mark{background:#ffe9a8;color:transparent;border-radius:.2rem;padding:0}
.highlight-layer .literal{background:transparent;text-decoration:underline dotted #db9400;text-underline-offset:.2em;text-decoration-thickness:2px}
@media(min-width:640px){main{padding-top:1.5rem}.reminder>div:first-child{display:flex;justify-content:space-between;gap:1rem}.reminder time{flex-shrink:0}}

#quick-chips{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.5rem}.recognition-chip{background:#e3f0e8;color:var(--accent);border:1px solid var(--border);border-radius:2rem;font-size:.9rem}.recognition-chip:hover{background:#cce3d5}button:disabled{opacity:.5;cursor:not-allowed}
