:root {
  --paper:#f6f2e9; --card:#fffdf8; --ink:#18352b; --muted:#626e66;
  --forest:#245b45; --forest2:#174332; --raspberry:#a8415e; --line:#ded9ce;
  --shadow:0 7px 24px rgba(31,63,49,.045);
}
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font:16px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
header,main { width:min(760px,calc(100% - 40px)); margin:auto; }
header { padding:48px 0 10px; display:flex; align-items:end; justify-content:space-between; gap:20px; }
h1 { font:500 clamp(2.8rem,8vw,4.1rem)/1.05 Georgia,serif; margin:0; letter-spacing:-.045em; }
h2 { font:500 1.5rem Georgia,serif; margin:0; }
nav { display:flex; align-items:center; gap:14px; }
a { color:var(--forest); text-underline-offset:3px; }
nav a { font-size:.8rem; }
.eyebrow { text-transform:uppercase; letter-spacing:.15em; font-size:.68rem; color:var(--raspberry); font-weight:750; margin:0 0 9px; }
.intro { color:var(--muted); margin:10px 0 30px; font-size:.95rem; }
.section-title { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin:26px 0 13px; }
.section-title span,.help { color:var(--muted); font-size:.83rem; }
.help { margin:8px 0 14px; overflow-wrap:anywhere; }
.card,.now-card,.capture,main>details,.login-card { background:var(--card); border:1px solid rgba(36,91,69,.12); border-radius:17px; box-shadow:var(--shadow); }
.now-card { padding:27px; border-left:4px solid var(--forest); min-height:150px; }
.now-card .task-title { font-size:1.35rem; letter-spacing:-.02em; }
.now-card.empty { display:flex; flex-direction:column; justify-content:center; color:var(--muted); border-left-color:#b3bdb0; }
.now-card.empty p { margin:0 0 8px; }
.empty-review-link { font-size:.87rem; }
.grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.card { padding:19px; min-width:0; }
.task-title { font-weight:650; font-size:1rem; margin:0 0 8px; line-height:1.45; overflow-wrap:anywhere; }
.next-step { margin:9px 0 14px; color:#36554a; overflow-wrap:anywhere; }
.step-label { display:block; font-size:.69rem; text-transform:uppercase; letter-spacing:.09em; color:var(--muted); margin-bottom:3px; }
.meta { display:flex; flex-wrap:wrap; gap:6px; margin:10px 0; color:var(--muted); font-size:.71rem; overflow-wrap:anywhere; }
.pill { background:#edf2ec; border-radius:99px; padding:3px 8px; max-width:100%; }
.pill.important { color:var(--raspberry); background:#f8e9ed; }
.actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:17px; }
button { appearance:none; border:1px solid transparent; border-radius:9px; background:var(--forest); color:white; padding:10px 15px; font:600 .82rem/1.4 system-ui; cursor:pointer; min-height:42px; }
button:hover { background:var(--forest2); }
button:disabled { cursor:wait; opacity:.6; }
button.quiet { background:transparent; border:1px solid var(--line); color:var(--forest); }
button.quiet:hover { background:#edf2ec; }
button.small { font-size:.75rem; padding:6px 10px; min-height:34px; }
button.danger { color:var(--raspberry); }
button:focus-visible,a:focus-visible,summary:focus-visible { outline:3px solid #a8bbae; outline-offset:3px; }
main>details { padding:16px 19px; margin:10px 0; }
summary { cursor:pointer; font-weight:550; font-size:.9rem; }
summary::marker { color:var(--muted); }
.count { color:var(--muted); font-size:.8rem; font-weight:400; margin-left:5px; }
.list { display:grid; gap:11px; margin-top:14px; }
.list:empty { margin:0; }
.list .card { box-shadow:none; }
.safely-kept { color:var(--muted); font-size:.82rem; margin:29px 0 15px; }
.safely-kept span { color:var(--raspberry); margin-right:5px; }
.task-options { margin-top:10px; font-size:.8rem; }
.task-options summary { font-size:.75rem; color:var(--muted); font-weight:400; }
.task-options .actions { margin-top:10px; }
.task-notes { white-space:pre-wrap; overflow-wrap:anywhere; max-height:230px; overflow:auto; font-size:.82rem; color:var(--muted); margin-top:12px; }
.source-link { display:inline-block; font-size:.78rem; margin-top:5px; }
.capture { margin:25px 0; padding:23px; }
.capture h2 { margin-bottom:18px; }
label { display:block; font-weight:550; font-size:.8rem; margin:13px 0; }
.optional { color:var(--muted); font-weight:400; font-size:.76rem; }
input,textarea,select { display:block; width:100%; margin-top:6px; padding:11px 12px; border:1px solid var(--line); border-radius:9px; background:#fffefb; color:var(--ink); font:400 1rem/1.4 system-ui; }
input:focus,textarea:focus,select:focus { outline:2px solid #a8bbae; outline-offset:1px; }
input::placeholder,textarea::placeholder { color:#7d857e; font-size:.87rem; }
textarea { resize:vertical; }
.row { display:grid; grid-template-columns:1fr 1fr; gap:13px; }
.optional-fields { margin:15px 0; }
.optional-fields summary { font-size:.78rem; color:var(--muted); font-weight:400; }
.notice { padding:12px 15px; border-radius:10px; background:#e6eee4; margin:14px 0; font-size:.85rem; overflow-wrap:anywhere; }
.notice button { margin-left:10px; }
.hidden { display:none!important; }
.source-details { margin-top:30px; }
.source { border-top:1px solid var(--line); padding:12px 0; font-size:.8rem; overflow-wrap:anywhere; }
.source:first-child { margin-top:14px; }
.source b { font-weight:600; }
.source .unavailable { color:var(--raspberry); }
.source .help { font-size:.73rem; margin-bottom:0; }
footer { text-align:center; color:var(--muted); font-size:.72rem; padding:25px 10px 42px; }
dialog { border:1px solid var(--line); border-radius:18px; padding:26px; width:min(510px,calc(100% - 28px)); max-height:90dvh; background:var(--card); color:var(--ink); overflow:auto; }
dialog::backdrop { background:rgba(24,53,43,.32); backdrop-filter:blur(3px); }
.stuck-choices { display:grid; gap:9px; margin:18px 0; }
.stuck-choices button { text-align:left; font-size:.87rem; }
.stuck-choices span { display:block; font-size:.76rem; color:var(--muted); font-weight:400; margin-top:3px; }
.login-page { min-height:100dvh; display:grid; place-items:center; padding:20px; }
.login-card { width:min(410px,100%); padding:35px; margin:0; }
.login-card h1 { font-size:3rem; }
.login-card>p { color:var(--muted); font-size:.9rem; }
.login-card form { margin-top:27px; }
.login-card button { width:100%; margin-top:8px; }
.leaf { color:var(--raspberry); font-size:1.3rem; margin-bottom:20px; }
#error { color:var(--raspberry); font-size:.82rem; min-height:1em; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:560px) {
  header,main { width:calc(100% - 30px); }
  header { padding-top:29px; align-items:center; }
  nav { flex-direction:column-reverse; align-items:end; gap:9px; }
  nav a { font-size:.72rem; }
  .intro { font-size:.85rem; margin-top:14px; }
  .grid { grid-template-columns:1fr; }
  .now-card { padding:21px 19px; }
  .now-card .task-title { font-size:1.2rem; }
  .section-title span { font-size:.72rem; }
  .capture { padding:19px; }
  .row { grid-template-columns:minmax(0,1fr); gap:0; }
  dialog { padding:21px; }
  .safely-kept { font-size:.76rem; }
}
@media(prefers-reduced-motion:no-preference) { button { transition:background .15s ease; } }
