:root{color-scheme:light dark;--bg:#f8fafb;--panel:#fff;--ink:#172b38;--muted:#526573;--line:#b9c8cf;--accent:#075b84;--edge:#728692;--focus:#005fcc;font-family:system-ui,sans-serif;background:var(--bg);color:var(--ink)}
@media(prefers-color-scheme:dark){:root{--bg:#111b23;--panel:#192833;--ink:#e5edf2;--muted:#a8bbc7;--line:#526a78;--accent:#8dd4fc;--edge:#8a9fae;--focus:#8dd4fc}}
*{box-sizing:border-box}body{margin:0}header{display:flex;gap:1.5rem;align-items:center;padding:.65rem 1rem;border-bottom:1px solid var(--line);background:var(--panel)}a{color:var(--accent);overflow-wrap:anywhere}nav,.actions,.toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem}nav form,.actions form{margin:0}.brand{font-size:1.4rem;font-weight:750;text-decoration:none}main{padding:1rem;max-width:1600px;margin:auto}h1{font-size:1.65rem;margin:.7rem 0}h2{font-size:1.15rem}p{line-height:1.5}small,.legend{color:var(--muted)}button,input,textarea,select{font:inherit}button,.button{display:inline-block;min-height:44px;padding:.55rem .8rem;border:1px solid var(--line);border-radius:.4rem;background:var(--panel);color:var(--accent);cursor:pointer;text-decoration:none}button:disabled{opacity:.5;cursor:wait}button:hover,.button:hover{border-color:var(--accent)}:focus-visible{outline:3px solid var(--focus);outline-offset:3px}label{display:block;margin:.8rem 0}input:not([type=checkbox]):not([type=hidden]),textarea{display:block;width:100%;padding:.65rem;border:1px solid var(--line);border-radius:.3rem;background:var(--panel);color:var(--ink)}input[type=checkbox]{width:22px;height:22px;vertical-align:middle;accent-color:var(--accent)}textarea{resize:vertical}.check{display:flex;align-items:center;gap:.6rem}.narrow{max-width:45rem}.description{overflow-wrap:anywhere;margin:1.5rem 0}.description pre,pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}.description img{max-width:100%}li{margin:.65rem 0}li small{display:block}li form{display:inline-block;margin:.4rem 0}.toolbar{margin-bottom:.65rem}.toolbar label{margin:0}.toolbar select{min-height:44px}.toolbar #graph-status{font-size:.9rem;color:var(--muted)}.graph-layout{display:grid;grid-template-columns:minmax(0,1fr) 18rem;gap:1rem}.graph-layout>section{min-width:0;position:relative}.sidebar section{background:var(--panel);border:1px solid var(--line);border-radius:.5rem;padding:.8rem;margin-bottom:.8rem}.sidebar p{font-size:.9rem}.sidebar ol{padding-left:1.4rem}.goal-row{display:grid;grid-template-columns:minmax(0,1fr) 5rem;gap:.4rem;align-items:center}.goal-row label{overflow-wrap:anywhere;margin:.35rem 0}.goal-row input[type=number]{padding:.45rem}.legend{font-size:.8rem;line-height:1.7}#viewport{height:68vh;min-height:350px;border:1px solid var(--line);border-radius:.4rem;overflow:hidden;touch-action:none;background:var(--panel);cursor:grab;overscroll-behavior:contain}#viewport:active{cursor:grabbing}#viewport svg{width:100%;height:100%;display:block;user-select:none}svg>.graph>polygon{fill:transparent;stroke:none}svg .edge path{stroke:var(--edge)}svg .edge polygon{fill:var(--edge);stroke:var(--edge)}svg .node{cursor:pointer}svg .node polygon,svg .node ellipse,svg .node path{fill:var(--panel);stroke:var(--ink);stroke-width:1.2;vector-effect:non-scaling-stroke}svg .node text{fill:var(--ink);font-family:system-ui,sans-serif;font-size:12px}svg .node.flow-1 polygon{fill:#f1f6fc}svg .node.flow-2 polygon{fill:#e2edfa}svg .node.flow-3 polygon{fill:#c9def5}svg .node.flow-4 polygon{fill:#a9cbef}svg .node.flow-5 polygon{fill:#84b3e5}svg .node.flow-6 polygon{fill:#5897d7}svg .node.flow-7 polygon{fill:#307bc5}svg .node.flow-8 polygon{fill:#1760aa}svg .node.flow-9 polygon{fill:#064787}svg .node.flow-7 text,svg .node.flow-8 text,svg .node.flow-9 text{fill:#fff}svg .node.actionable polygon{stroke-width:3.5}svg .node.goal polygon{stroke:#ffb000;stroke-width:4.5}svg .node.goal.actionable polygon{stroke-width:6}svg .node.done text{text-decoration:line-through}svg .node.done polygon{stroke-dasharray:9 3}svg .node.failed polygon{stroke-dasharray:5 4}svg .node.cycle polygon{stroke-dasharray:2 3}svg .node.outside{opacity:.2}svg .node.outside polygon{stroke-dasharray:1 4}svg .node:focus{outline:none}svg .node:focus polygon{stroke:var(--focus);stroke-width:5}svg .node.selected polygon{stroke:var(--focus);stroke-width:5}#popup{position:absolute;top:.5rem;left:.5rem;width:min(26rem,calc(100% - 1rem));max-height:50vh;overflow:auto;z-index:2;box-shadow:0 4px 18px #0004;padding:.8rem;border:2px solid var(--accent);border-radius:.4rem;margin-top:.6rem;background:var(--panel)}#popup h2{margin:0}#popup .actions{margin-top:.5rem}.changes{padding-left:1.5rem}.changes>li{padding:.7rem;border-bottom:1px solid var(--line)}.changes details{margin:.6rem 0}.changes summary{cursor:pointer}.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}[hidden]{display:none!important}
@media(max-width:760px){header{padding:.5rem;gap:.7rem;align-items:flex-start}header nav{gap:.45rem}main{padding:.65rem}.graph-layout{grid-template-columns:minmax(0,1fr)}.sidebar{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:.6rem}#viewport{height:60vh;min-height:320px}nav a{min-height:36px;display:inline-flex;align-items:center}.toolbar{gap:.4rem}.toolbar #graph-status{flex-basis:100%}}

body,small,li,.sidebar{overflow-wrap:anywhere;min-width:0}
#top-actions{margin:0;padding-left:1.2rem}#top-actions li{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:.5rem;margin:.4rem 0;padding:.25rem 0;border-bottom:1px solid var(--line)}#top-actions li>a{font-weight:600}#top-actions li>small{grid-column:1}#top-actions li>form{grid-column:2;grid-row:1 / 3;margin:0}#top-actions details{grid-column:1 / -1;font-size:.8rem}#top-actions summary{cursor:pointer;color:var(--muted)}
@media(prefers-color-scheme:dark){svg .node.flow-1 polygon{fill:#1b2d3c}svg .node.flow-2 polygon{fill:#20394f}svg .node.flow-3 polygon{fill:#244b6a}svg .node.flow-4 polygon{fill:#285f86}svg .node.flow-5 polygon{fill:#2a75a4}svg .node.flow-6 polygon{fill:#318cc2}svg .node.flow-7 polygon{fill:#47a2d9}svg .node.flow-8 polygon{fill:#64b7ed}svg .node.flow-9 polygon{fill:#86cfff}svg .node.flow-6 text,svg .node.flow-7 text,svg .node.flow-8 text,svg .node.flow-9 text{fill:#071c2b}}
@media(max-width:760px){.sidebar{display:contents}.graph-section{order:2}.top-section{order:1}.goals-section{order:3}.graph-layout{display:flex;flex-direction:column}.sidebar section{margin:0}.graph-layout>*{min-width:0}#viewport{height:78svh;min-height:400px}#top-actions li>a{font-size:.9rem}#top-actions li>small{font-size:.75rem}#top-actions details{margin:0}#top-actions li{margin:.2rem 0}#top-actions button{padding:.4rem .6rem}}
.alluviate-nav{position:sticky;top:0;background:var(--bg);z-index:3;padding:.35rem 0;border-bottom:1px solid var(--line)}.alluviate-nav a{display:inline-flex;min-height:44px;align-items:center;padding:.35rem .55rem}.capture-screen .actions{margin-top:.7rem}.capture-screen input{font-size:1.2rem}.capture-screen{min-height:60svh}.suggestion,.pool-item,.day-item{padding:1rem;background:var(--panel);border:1px solid var(--line);border-radius:.5rem;margin:.7rem 0}.suggestion summary, .pool-item summary{min-height:44px;cursor:pointer;padding:.5rem 0}.pool-item h2,.day-item h2{margin:0 0 .4rem}#pool,.day-list{list-style:none;padding:0;max-width:65rem}.pool-item p{margin:.6rem 0}.pool-item details>form{display:block;max-width:40rem;margin:1rem 0}.pool-item .actions form,.day-item .actions form{margin:0}.library-filters{max-width:45rem}.library-filters select{display:block;max-width:100%;min-height:44px;background:var(--panel);color:var(--ink);border:1px solid var(--line);padding:.5rem}#half-life{min-height:44px;width:100%;accent-color:var(--accent)}.current-item{border:3px solid var(--accent);box-shadow:0 0 0 3px var(--line)}.current-item h2{font-size:1.5rem}.finished-item h2{text-decoration:line-through}.pool-item>small,.day-item>small{display:block}#capture-status{min-height:1.5em}

svg .node.archived{opacity:.45}svg .node.archived polygon{stroke-dasharray:1 5}svg .node.archived text{font-style:italic}

.brand{flex-shrink:0;white-space:nowrap}header nav{min-width:0}
