:root{font-family:Inter,-apple-system,BlinkMacSystemFont,Hiragino Kaku Gothic ProN,Noto Sans JP,sans-serif;color:#283f36;background:#f7f8f4;font-synthesis:none;--bg: #f7f8f4;--surface: #fff;--ink: #283f36;--muted: #7b877e;--line: #e4e8df;--accent: #28543f;--green: #eaf0df;--lavender: #eeeaf7;--peach: #f8e9df;--sand: #f1ecd9;--hero: #edf0e5}:root[data-theme=dark]{color-scheme:dark;--bg: #17221d;--surface: #212e27;--ink: #e3eadf;--muted: #a4b0a6;--line: #35453b;--accent: #b7d69f;--green: #344631;--lavender: #443e53;--peach: #543f33;--sand: #4c4933;--hero: #28382b}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #96b385;outline-offset:4px}button{border:0;background:none}a{color:var(--accent)}svg{width:21px;height:21px;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:32px;letter-spacing:-.04em;font-weight:650;line-height:1.6}h2{font-size:19px;font-weight:600}h3{font-size:16px;font-weight:600;line-height:1.6}p{line-height:1.9}small{font-weight:400}.sidebar{width:238px;position:fixed;inset:0 auto 0 0;background:var(--surface);border-right:1px solid var(--line);padding:40px 25px;display:flex;flex-direction:column;z-index:10}.brand{text-decoration:none;display:flex;gap:11px;align-items:center;color:var(--ink);font:600 23px Georgia,serif;letter-spacing:-.5px}.brand>svg{width:35px;height:40px;color:var(--accent)}.brand small{display:block;font:10px -apple-system,sans-serif;letter-spacing:1.7px;color:var(--muted);margin-top:7px}.navcaption{font-size:9px;letter-spacing:1.7px;color:var(--muted);margin:58px 12px 20px}.sidebar nav{display:grid;gap:9px}.navitem{display:flex;align-items:center;gap:14px;padding:14px 17px;min-height:49px;border-radius:9px;font-size:13px;color:var(--muted);text-align:left}.navitem:hover{background:var(--bg)}.navitem.active{background:var(--green);color:var(--accent);font-weight:600}.navitem svg{width:19px;height:19px}.sidebar-bottom{margin-top:auto;padding:24px 10px 0;border-top:1px solid var(--line)}.local-badge{font-size:11px;display:flex;align-items:center;gap:7px}.dot{width:6px;height:6px;background:#8aa879;border-radius:50%}.sidebar-bottom p{font-size:10px;color:var(--muted);margin-top:13px;line-height:2.1}.main-wrap{margin-left:238px}.topbar{height:79px;padding:0 46px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.breadcrumb{font-size:9px;letter-spacing:1.6px;color:var(--muted)}.breadcrumb span{letter-spacing:.2px;margin-left:15px}.top-actions{display:flex;align-items:center;gap:18px}.local-label{font-size:10px;color:var(--muted)}.avatar{width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:var(--green);font:14px Georgia,serif}.icon-btn{width:42px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px}.icon-btn:hover{background:var(--green)}main{max-width:1270px;margin:auto;padding:40px 46px 50px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.eyebrow{font-size:9px;color:var(--muted);letter-spacing:2px;line-height:1.8}.page-heading .eyebrow{margin-bottom:5px}.subtitle{font-size:12px;color:var(--muted);margin-top:9px;line-height:1.9}.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:13px 20px;min-height:46px;border-radius:8px;font-size:12px;font-weight:550;white-space:nowrap;text-decoration:none;line-height:1.5}.btn svg{width:17px;height:17px}.primary{background:var(--accent);color:var(--surface)}.dark{background:#294d3d;color:#fff}.outline{border:1px solid var(--line);background:var(--surface)}.btn:hover{filter:brightness(.95)}.hero{border:1px solid #e2e6d8;border-radius:15px;min-height:302px;background:var(--hero);position:relative;display:flex;overflow:hidden}.hero-copy{padding:34px 38px;width:57%;z-index:1}.pill{display:inline-flex;gap:6px;align-items:center;font-size:8px;letter-spacing:1.5px;color:#6a8261}.pill svg{width:13px;height:13px}.hero h2{font-size:28px;line-height:1.7;letter-spacing:-.02em;margin:12px 0 9px;font-weight:550}.hero p{font-size:11px;color:var(--muted);line-height:2}.hero .btn{margin-top:20px;font-size:11px;padding:11px 18px;min-height:42px}.hero-art{position:absolute;right:-2%;width:51%;height:100%;top:0}.hero-art>svg{position:absolute;inset:0;width:100%;height:100%}.orbit{position:absolute;width:265px;height:265px;border-radius:50%;border:1px dashed #cbd4c2;left:20%;top:10%;opacity:.6}.orbit.o2{width:180px;height:180px;left:31%;top:24%;border-style:solid;opacity:.4}.art-label{position:absolute;display:inline-flex;align-items:center;gap:5px;background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:0 5px 15px #28483105;font-size:10px;padding:10px 13px;white-space:nowrap}.art-label svg{width:14px;height:14px}.l1{left:2%;top:20%;transform:rotate(-5deg)}.l2{left:60%;top:16%;transform:rotate(5deg);background:var(--lavender)}.l3{left:31%;top:66%;transform:rotate(-3deg);background:var(--green)}.l4{left:38%;top:35%;font-size:9px}.stats{display:grid;grid-template-columns:repeat(3,1fr);padding:26px 0 29px;margin:0 0 14px;border-bottom:1px solid var(--line)}.stats>div{padding-left:25px;border-left:1px solid var(--line)}.stats>div:first-child{padding-left:3px;border:0}.stats span{display:block;font-size:10px;color:var(--muted);margin-bottom:9px}.stats strong{font-size:30px;font-weight:450;line-height:1.2;letter-spacing:-1px}.stats small{font-size:9px;color:var(--muted);letter-spacing:.6px;margin-left:12px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:26px 0 17px}.section-title h2{font-size:16px}.section-title h2 span{font-size:8px;letter-spacing:1.7px;color:var(--muted);margin-left:13px;font-weight:400}.text-btn{display:inline-flex;align-items:center;gap:7px;font-size:11px;min-height:44px;padding:6px 3px;color:var(--accent)}.text-btn svg{width:15px;height:15px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.record-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:20px;text-align:left;min-width:0;transition:transform .15s,border-color .15s}.record-card:hover{transform:translateY(-3px);border-color:#a3b59b}.card-top{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:18px}.node-icon{width:37px;height:37px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center}.node-icon svg{width:19px;height:19px}.green{background:var(--green);fill:var(--green)}.lavender{background:var(--lavender);fill:var(--lavender)}.peach{background:var(--peach);fill:var(--peach)}.sand{background:var(--sand);fill:var(--sand)}.chip{display:inline-block;padding:4px 8px;border-radius:5px;font-size:9px;color:var(--ink);background:var(--bg);line-height:1.5}.chip.green{background:var(--green)}.chip.lavender{background:var(--lavender)}.chip.peach{background:var(--peach)}.chip.sand{background:var(--sand)}.record-card h3{font-size:14px;overflow-wrap:anywhere;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.record-card p{font-size:10px;color:var(--muted);margin-top:7px;min-height:38px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-bottom{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:16px;padding-top:12px}.card-bottom>span>svg{width:14px;height:14px;color:var(--muted)}.state{font-size:9px;color:var(--muted)}.discovery-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:28px}.discovery{padding:24px;border-radius:12px;border:1px solid var(--line);background:var(--surface)}.discovery.rediscover{background:var(--sand);border-color:transparent}.discovery .eyebrow{display:flex;align-items:center;gap:7px;font-size:8px;letter-spacing:1.5px}.discovery .eyebrow svg{width:15px;height:15px}.discovery h2{font-size:15px;margin:13px 0 8px}.discovery p{font-size:11px;color:var(--muted)}.discovery .text-btn{margin-top:7px}footer{max-width:1270px;margin:auto;padding:0 46px 25px;font:11px Georgia,serif;color:var(--muted);display:flex;justify-content:space-between}footer span{font:9px -apple-system,sans-serif}.mobile-nav{display:none}.empty{text-align:center;padding:35px 20px;grid-column:1/-1}.empty h2{margin:12px 0}.empty p{font-size:12px;color:var(--muted);margin:10px 0 20px}.empty .text-btn{display:flex;margin:10px auto}.empty-icon{display:inline-flex;padding:15px;border-radius:50%;background:var(--green)}.empty-icon svg{width:25px;height:25px}.filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:21px}.search{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:8px;flex:1;min-width:200px;padding-left:13px}.search svg{width:17px;height:17px;color:var(--muted)}input,select,textarea{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:7px;padding:12px;font-size:13px;min-height:45px;outline-color:#91ad7f;max-width:100%}.search input{border:0;width:100%;background:none;min-width:0}input::placeholder,textarea::placeholder{color:var(--muted)}.filters select{font-size:11px}.list-meta{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted);margin-bottom:13px;gap:10px}.list-meta>div{display:flex;gap:16px}.collection{row-gap:17px}.graph-bar{display:flex;justify-content:space-between;gap:12px;margin:10px 0 15px;align-items:center}.segmented{display:flex;background:var(--line);border-radius:8px;padding:3px}.segmented button{min-height:39px;padding:0 15px;font-size:11px;border-radius:6px;white-space:nowrap}.segmented .active{background:var(--surface);box-shadow:0 1px 3px #0001}.graph-actions{display:flex;gap:12px;align-items:center}.graph-actions select{font-size:11px;max-width:180px}.graph-canvas{position:relative;background:radial-gradient(var(--line) 1px,transparent 1px);background-size:20px 20px;border:1px solid var(--line);border-radius:14px;height:550px;overflow:hidden}.graph-hint{position:absolute;left:20px;top:20px;display:flex;gap:8px;align-items:center;font-size:11px;z-index:1;pointer-events:none}.graph-hint svg{width:17px;height:17px}.graph-hint span{font-size:9px;color:var(--muted);margin-left:10px}#network{width:100%;height:100%;touch-action:none;-webkit-user-select:none;user-select:none}.edge{fill:none;stroke:#a4b5a0;stroke-width:3;cursor:pointer;pointer-events:stroke}.edge:hover{stroke:#527b58;stroke-width:7}.edge.undirected{stroke-dasharray:6 5}.graph-node{cursor:pointer;fill:var(--green)}.graph-node.lavender{fill:var(--lavender)}.graph-node.peach{fill:var(--peach)}.graph-node.sand{fill:var(--sand)}.graph-node rect{stroke:#bacab0;stroke-width:1.3}.graph-node:hover rect,.graph-node:focus rect{stroke:var(--accent);stroke-width:2}.graph-node text{fill:var(--ink);font-size:13px;font-weight:500}.graph-node .node-kind{font-size:9px;font-weight:400;fill:var(--muted)}.status-dot{fill:transparent;stroke:#95a58c;stroke-width:1}.status-dot.current{fill:#769765}.graph-node.lit rect{animation:bloom 1.4s ease-out 2;stroke:#76975d;stroke-width:2.4}.edge.lit{stroke:#76975d;animation:line-bloom 1.4s ease-out 2}.zoom-controls{position:absolute;bottom:18px;right:18px;display:flex;align-items:center;background:var(--surface);box-shadow:0 2px 10px #0001;border:1px solid var(--line);border-radius:8px;overflow:hidden}.zoom-controls button{width:43px;height:44px;font-size:21px}.zoom-controls span{font-size:10px;color:var(--muted);min-width:34px;text-align:center}.graph-legend{display:flex;gap:18px;flex-wrap:wrap;margin:17px 0;font-size:9px;color:var(--muted)}.graph-legend span{display:inline-flex;gap:6px;align-items:center}.graph-legend i{width:9px;height:9px;border:1px solid var(--line);border-radius:50%}.fine{font-size:11px;color:var(--muted);line-height:1.8}.graph-empty{position:absolute;inset:30% 0 auto;text-align:center;pointer-events:none}.graph-empty p{font-size:12px;margin:13px}.graph-empty .btn{pointer-events:auto}.timeline{max-width:780px;margin:30px auto}.year-label{font:25px Georgia,serif;margin:32px 0 15px}.timeline-item{position:relative;display:flex;align-items:center;gap:23px;text-align:left;width:100%;padding:22px 10px 22px 35px;border-left:1px solid var(--line);margin-left:8px;border-bottom:1px solid var(--line)}.timeline-dot{position:absolute;width:12px;height:12px;border-radius:50%;left:-7px;border:2px solid var(--bg)}.timeline-date{min-width:110px;font-size:11px;color:var(--muted)}.timeline-item>div{flex:1}.timeline-item p{font-size:11px;color:var(--muted);margin-top:5px}.timeline-item .eyebrow{font-size:8px;letter-spacing:1px}.timeline-item>svg{width:17px}.settings-panel{display:flex;justify-content:space-between;align-items:center;gap:28px;border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:27px;margin:18px 0}.settings-panel h2{font-size:15px;margin-bottom:10px}.settings-panel p{font-size:11px;color:var(--muted);line-height:2}.settings-panel .fine{font-size:10px;margin-top:10px}.button-stack{display:grid;gap:8px;flex-shrink:0}.demo-banner{background:var(--green);border-bottom:1px solid var(--line);padding:10px 46px;display:flex;justify-content:space-between;gap:10px;font-size:10px;align-items:center}.demo-banner button{display:flex;gap:8px;align-items:center;min-height:36px}.demo-banner svg{width:15px;height:15px}#modal{display:none}#modal.open{display:flex;position:fixed;inset:0;align-items:center;justify-content:center;padding:25px;z-index:100}.scrim{position:absolute;inset:0;background:#0b201a77;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.modal{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:29px;width:510px;max-width:100%;max-height:90dvh;overflow:auto;overscroll-behavior:contain;box-shadow:0 15px 80px #0002}.modal.wide{width:650px}.modal-open{overflow:hidden}.modal-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:23px}.modal-head h2{font-size:21px;margin-top:4px;overflow-wrap:anywhere}.modal-head .state{display:inline-block;margin-top:7px}.modal-head .icon-btn{margin-top:-8px;margin-right:-8px;flex-shrink:0}.modal label{display:block;font-size:11px;margin:16px 0 8px;font-weight:500}.modal label input:not([type=checkbox]),.modal label select,.modal label textarea{display:block;width:100%;margin-top:8px;font-size:16px}.modal label input[type=file]{font-size:12px;padding:10px}.modal textarea{resize:vertical;line-height:1.7}.modal p{font-size:12px;line-height:1.9}.modal .fine{font-size:10px}.required{font-size:9px;color:var(--muted);margin-left:5px}.modal details{margin:20px 0}.modal summary{font-size:12px;cursor:pointer;padding:13px 0;min-height:44px;color:var(--accent)}summary span{font-size:10px;color:var(--muted);float:right}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:26px;padding-top:18px;border-top:1px solid var(--line)}.form-error{color:#b14e3f;font-size:12px;margin-top:15px}.parent-note{background:var(--green);padding:12px;border-radius:8px}.image-preview{width:110px;max-height:100px;object-fit:cover;border-radius:8px}.checkbox{display:flex!important;align-items:center;gap:12px;min-height:44px;font-size:13px!important}.checkbox input{width:20px;height:20px;min-height:20px;accent-color:#4c7352}.detail-tabs{display:flex;border-bottom:1px solid var(--line);gap:20px;margin-bottom:25px}.detail-tabs button{min-height:44px;font-size:12px;padding:5px 0 13px;color:var(--muted)}.detail-tabs button.active{color:var(--accent);border-bottom:2px solid var(--accent)}.detail-image{width:100%;max-height:250px;object-fit:contain;border-radius:9px;background:var(--bg);margin-bottom:15px}.detail-memo{white-space:pre-wrap;overflow-wrap:anywhere}.detail-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:15px 0;font-size:10px;color:var(--muted)}.influence{background:var(--green);border-radius:12px;padding:20px;margin:22px 0}.influence>div{display:flex;align-items:center;gap:14px}.influence strong{font-size:35px;font-weight:450}.influence span{font-size:11px}.influence p{font-size:10px;color:var(--muted);margin-top:8px}.influence details{margin:5px 0 -7px}.influence summary{font-size:10px}.modal h3{margin-top:20px;font-size:13px}.modal h3 small{color:var(--muted);margin-left:6px}.connection-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:10px 0}.connection-row>button:first-child{flex:1;min-width:0;text-align:left;display:grid;gap:5px;min-height:49px;overflow-wrap:anywhere}.connection-row strong{font-size:12px;font-weight:500}.connection-row small{font-size:11px;color:var(--muted)}.detail-actions{display:flex;align-items:center;gap:10px;padding-top:22px;margin-top:25px;border-top:1px solid var(--line)}.detail-actions .danger{margin-left:auto}.danger{color:#b96150}.suggestion{width:100%;display:flex;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:8px;min-height:48px;margin-top:8px;font-size:12px;padding:10px}.suggestion span{font-size:10px;color:var(--muted);flex-shrink:0}.root-paths{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0}.root-paths article{border:1px solid var(--line);background:var(--bg);padding:17px;border-radius:10px}.root-paths .eyebrow{display:block;margin-bottom:12px}.path-node{display:block;border:1px solid var(--line);background:var(--surface);border-radius:8px;width:100%;padding:12px;font-size:12px;overflow-wrap:anywhere;min-height:44px}.path-node.target{background:var(--green);border-color:#a7b995}.path-arrow{display:block;text-align:center;font-size:9px;color:var(--muted);padding:7px}.event-list article{border-left:1px solid var(--line);padding:17px 20px}.event-list p{font-size:11px;white-space:pre-wrap}.event-list h3{margin:5px 0}.event-list{margin-top:20px}.fusion-list{max-height:40dvh;overflow:auto}.fusion-list .checkbox{border-bottom:1px solid var(--line);padding:8px 0}#toast{position:fixed;bottom:25px;left:calc(50% + 80px);transform:translate(-50%,15px);max-width:90%;background:#284735;color:#fff;padding:15px 22px;border-radius:10px;font-size:12px;box-shadow:0 5px 25px #0002;z-index:150;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;line-height:1.7}#toast.show{opacity:1;transform:translate(-50%)}@keyframes bloom{0%{filter:drop-shadow(0 0 0 #a4bd7b)}40%{filter:drop-shadow(0 0 10px #a4bd7b)}to{filter:drop-shadow(0 0 0 #a4bd7b)}}@keyframes line-bloom{0%{stroke-opacity:.4}50%{stroke-opacity:1}to{stroke-opacity:.6}}@media(min-width:1500px){main{padding-top:50px}.hero{min-height:340px}.hero h2{font-size:32px}.hero-copy{padding:40px 45px}}@media(max-width:1100px){.sidebar{width:200px;padding:35px 18px}.main-wrap{margin-left:200px}.brand{font-size:21px}main{padding:30px}.topbar{padding:0 30px}footer{padding:0 30px 25px}.hero-copy{width:65%;padding:30px}.hero h2{font-size:25px}.hero-art{right:-8%;width:53%;opacity:.85}.cards{gap:10px}.record-card{padding:16px}.stats small{display:block;margin:4px 0 0}.card-top{align-items:flex-start}.chip{font-size:8px}.section-title h2 span{display:none}.filters .search{flex-basis:100%}.graph-hint span{display:none}}@media(max-width:760px){.sidebar{display:none}.main-wrap{margin-left:0}.topbar{height:61px;padding:0 21px}.breadcrumb{font-size:8px;letter-spacing:1.1px}.breadcrumb span{display:none}.top-actions{gap:7px}.local-label{font-size:9px}.avatar{width:27px;height:27px}.topbar .icon-btn{width:34px;min-height:40px}.topbar .icon-btn svg{width:18px}main{padding:27px 20px 30px}.page-heading{align-items:flex-start;gap:8px;margin-bottom:23px;flex-wrap:wrap}.page-heading>div{width:100%}h1{font-size:28px}.eyebrow{font-size:8px;letter-spacing:1.7px}.page-heading .subtitle{font-size:11px;margin-top:6px;max-width:330px}.page-heading>.btn{margin-top:7px;font-size:11px;min-height:44px;padding:11px 15px}.hero{min-height:350px}.hero-copy{padding:25px 23px;width:100%}.hero h2{font-size:24px;line-height:1.65;margin-top:12px}.hero p{font-size:10px}.hero .btn{margin-top:16px;position:relative;z-index:2}.hero-art{width:245px;height:195px;top:auto;bottom:-50px;right:-45px;opacity:.75}.hero-art .l1,.hero-art .l4{display:none}.hero-art .l2{top:11%;left:44%;font-size:8px}.hero-art .l3{top:48%;left:11%;font-size:8px}.hero-art .orbit{width:170px;height:170px;left:15%;top:4%}.hero-art .o2{width:120px;height:120px;left:25%;top:17%}.stats{padding:23px 0;margin-bottom:4px}.stats>div{padding-left:15px}.stats span{font-size:9px;margin-bottom:8px}.stats strong{font-size:27px}.stats small{font-size:7px;letter-spacing:.3px;margin-top:5px}.section-title{margin:23px 0 12px}.section-title h2{font-size:15px}.cards{grid-template-columns:1fr;gap:11px}.record-card{padding:17px 18px;position:relative}.card-top{margin-bottom:6px}.node-icon{width:34px;height:34px}.record-card h3{position:absolute;left:63px;top:22px;max-width:calc(100% - 150px);font-size:13px}.record-card p{margin-top:10px;min-height:0;font-size:10px;-webkit-line-clamp:1}.card-bottom{margin-top:11px;padding-top:10px}.card-top .chip{margin-top:7px}.discovery-grid{grid-template-columns:1fr;gap:13px;margin-top:22px}.discovery{padding:22px}.discovery h2{font-size:15px}.discovery .text-btn{margin-top:4px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;justify-content:space-around;background:var(--surface);border-top:1px solid var(--line);padding:6px 6px max(8px,env(safe-area-inset-bottom));z-index:30}.mobile-nav .navitem{display:flex;flex-direction:column;gap:5px;padding:8px 14px;min-height:50px;font-size:9px;border-radius:9px}.mobile-nav .navitem svg{width:20px;height:20px}.main-wrap{padding-bottom:90px}footer{padding:0 20px 12px;font-size:10px}footer span{font-size:7px}.filters{gap:7px;margin-bottom:15px}.filters .search{flex-basis:100%}.filters select{font-size:10px;min-width:0;flex:1;padding:10px 7px}.graph-bar{align-items:flex-start;gap:9px;flex-direction:column}.graph-actions{width:100%;justify-content:space-between}.graph-actions select{max-width:65%;font-size:11px;flex:1}.graph-canvas{height:460px;margin-left:-8px;margin-right:-8px}.graph-hint{top:15px;left:14px;font-size:10px}.graph-legend{gap:11px;font-size:8px;margin:14px 0}.graph-empty h2{font-size:15px}.list-meta{align-items:flex-start;flex-direction:column}.list-meta>div{width:100%;justify-content:space-between}.list-meta .text-btn{font-size:10px}.timeline{margin-top:20px}.timeline-item{gap:10px;padding:19px 0 19px 18px;flex-wrap:wrap}.timeline-date{font-size:9px;width:100%}.timeline-item>div{min-width:0}.timeline-item h3{font-size:14px}.timeline-item>svg{width:15px;margin-right:5px}.year-label{font-size:23px}.settings-panel{display:block;padding:22px;margin:15px 0}.settings-panel select,.settings-panel>.btn,.settings-panel .button-stack{margin-top:16px}.settings-panel>.node-icon{display:none}.settings-panel .button-stack{display:flex;flex-wrap:wrap}.settings-panel .btn{font-size:11px;padding:12px 14px}.demo-banner{padding:8px 20px;align-items:flex-start;flex-direction:column;gap:0}.demo-banner button{font-size:10px;min-height:32px}#modal.open{padding:0;align-items:flex-end}.modal{width:100%;border-radius:20px 20px 0 0;max-height:93dvh;padding:24px 21px max(27px,env(safe-area-inset-bottom));border-bottom:0}.modal.wide{width:100%}.modal-head h2{font-size:20px}.modal-head{margin-bottom:20px}.modal label{font-size:12px}.field-row{gap:10px}.modal input,.modal select,.modal textarea{font-size:16px}.form-actions{gap:8px}.form-actions .btn{font-size:12px;padding:12px 16px}.modal summary{font-size:12px}summary span{font-size:9px}.detail-tabs{gap:22px}.detail-tabs button{font-size:11px}.root-paths{grid-template-columns:1fr}.detail-actions{gap:8px}.detail-actions .btn{padding:12px 14px;font-size:11px}.detail-actions .text-btn{font-size:10px}#toast{bottom:calc(85px + env(safe-area-inset-bottom));left:50%;width:max-content;max-width:calc(100% - 32px);font-size:11px;padding:13px 17px}.modal-open #toast{bottom:30px}.empty{padding:30px 10px}.graph-node text{font-size:15px}}.tree-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin:0 0 16px}.tree-focus{font-size:10px;color:var(--muted);display:grid;gap:7px;max-width:70%;min-width:230px}.tree-focus select{font-size:12px;min-height:46px;width:100%}.tree-toolbar .btn{font-size:11px;min-height:46px}.graph-canvas.botanical{height:620px;margin:0;border-color:#dce4d2;background:radial-gradient(ellipse at 50% 100%,#dce7cb88,transparent 65%),var(--surface);border-radius:18px;isolation:isolate}.botanical #network{width:100%;height:100%;position:relative;z-index:1}.botanical .graph-hint{top:22px;left:23px;color:var(--accent);font-size:12px}.botanical .graph-hint span{color:var(--muted);font-size:9px;margin-left:9px}.tree-trunk path,.branch-wood{fill:none;stroke:var(--wood, #71855c);stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.tree-trunk .main-trunk{stroke:#687a53}.tree-trunk .root-limb{stroke:#87966a}.tree-trunk .ground-line{stroke:#c0cbb3;stroke-width:1}.trunk-label{font-size:13px;letter-spacing:4px;fill:var(--muted);font-weight:400}.branch-hit{fill:none;stroke:transparent;stroke-width:26px;cursor:pointer;pointer-events:stroke}.branch-hit:hover+.branch-wood,.branch-hit:focus+.branch-wood{stroke:#3f6740;filter:drop-shadow(0 0 3px #8eae75)}.branch-hit:focus{outline:none}.graph-node.leaf-node{fill:var(--green);background:none;cursor:pointer}.leaf-node .leaf-shape{fill:#edf2df;stroke:#b0c49a;stroke-width:1.4;transition:fill .15s,stroke .15s}.leaf-node .leaf-vein{fill:none;stroke:#a1b883;stroke-width:1.5;opacity:.65}.leaf-node.lavender .leaf-shape{fill:#eeedf4;stroke:#c6c2d6}.leaf-node.peach .leaf-shape{fill:#f5eee1;stroke:#d6c5a4}.leaf-node.sand .leaf-shape{fill:#f2efdc;stroke:#c7c6a1}.leaf-node text.leaf-kind{font-size:9px;fill:var(--muted);font-weight:400}.leaf-node text.leaf-name{font-size:14px;fill:var(--ink);font-weight:550}.leaf-state{fill:none;stroke:#9ab381;stroke-width:1.2}.leaf-state.current{fill:#7b995c;stroke:#7b995c}.leaf-node:hover .leaf-shape,.leaf-node:focus .leaf-shape{stroke:#557444;stroke-width:2.3;fill:#e4edcf}.leaf-node:focus{outline:none}.leaf-node.context-leaf{opacity:.5}.leaf-node.lit .leaf-shape{animation:leaf-grow 1.2s ease-out 2;stroke:#71964d;stroke-width:2.5}.branch.lit .branch-wood{animation:line-bloom 1.2s ease-out 2;stroke:#82a353}.tree-compass{position:absolute;bottom:23px;left:23px;display:grid;gap:4px;font-size:9px;line-height:1.8;color:var(--muted);pointer-events:none;z-index:2}.botanical .zoom-controls{z-index:3;right:18px;bottom:21px}.botanical .zoom-controls button:last-child{font-size:11px;width:49px;border-left:1px solid var(--line)}.tree-caption{display:flex;justify-content:space-between;gap:10px;margin:14px 2px 22px;font-size:10px;color:var(--muted)}.tree-search{margin-top:19px;border-top:1px solid var(--line);padding-top:8px}.tree-search summary{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--muted);min-height:44px;cursor:pointer}.tree-search summary svg{width:16px;height:16px}.tree-search .filters{margin:12px 0}.legacy-note{margin:14px 0;padding:10px 15px;background:var(--sand);border-radius:8px;color:var(--muted)}.legacy-note summary{font-size:11px;cursor:pointer;min-height:32px;padding:8px 0}.legacy-note p{font-size:11px;line-height:1.9}.root-shortcuts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:17px 0}.root-shortcuts>span{font-size:10px;color:var(--muted);margin-right:5px}.root-shortcuts button{border:1px solid var(--line);background:var(--surface);border-radius:20px;padding:10px 13px;font-size:11px;min-height:44px;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:root[data-theme=dark]{--wood: #8ea278}:root[data-theme=dark] .graph-canvas.botanical{background:radial-gradient(ellipse at 50% 100%,#42563688,transparent 65%),var(--surface);border-color:var(--line)}:root[data-theme=dark] .leaf-node .leaf-shape{fill:#354b2e;stroke:#6d8659}:root[data-theme=dark] .leaf-node.lavender .leaf-shape{fill:#443e53;stroke:#776d88}:root[data-theme=dark] .leaf-node.peach .leaf-shape{fill:#4c4431;stroke:#8e7c5b}:root[data-theme=dark] .leaf-node.sand .leaf-shape{fill:#454a2b;stroke:#7a8152}:root[data-theme=dark] .leaf-node:hover .leaf-shape,:root[data-theme=dark] .leaf-node:focus .leaf-shape{fill:#48613c;stroke:#b6cc9b}:root[data-theme=dark] .tree-trunk .main-trunk{stroke:#91a576}:root[data-theme=dark] .tree-trunk .root-limb{stroke:#819369}@keyframes leaf-grow{0%{filter:drop-shadow(0 0 0 #9cba76)}40%{filter:drop-shadow(0 0 12px #9cba76)}to{filter:drop-shadow(0 0 0 #9cba76)}}@media(max-width:760px){.tree-toolbar{gap:9px;margin-bottom:14px}.tree-focus{min-width:0;max-width:none;flex:1}.tree-focus select{font-size:12px;padding:12px 9px}.tree-toolbar .btn{padding:11px 12px;font-size:10px;gap:6px}.tree-toolbar .btn svg{width:16px}.graph-canvas.botanical{height:560px;margin:0 -6px;border-radius:15px}.botanical .graph-hint{top:17px;left:16px;font-size:11px}.botanical .graph-hint span{display:none}.tree-compass{left:14px;bottom:20px;font-size:8px}.botanical .zoom-controls{bottom:18px;right:12px}.botanical .zoom-controls button{width:36px;height:44px;font-size:20px}.botanical .zoom-controls span{min-width:30px;font-size:9px}.botanical .zoom-controls button:last-child{width:41px;font-size:10px}.tree-caption{font-size:9px;line-height:1.8;flex-direction:column;gap:2px;margin:11px 0 15px}.tree-search{margin-top:12px}.leaf-node text.leaf-name{font-size:14px}.root-shortcuts{gap:6px}.root-shortcuts>span{width:100%;margin-bottom:4px}.root-shortcuts button{font-size:10px;min-height:44px}.legacy-note{padding:8px 12px}}.state-description{font-size:11px!important;color:var(--muted);background:var(--green);border-radius:8px;padding:10px 12px;margin:6px 0 10px}.tag-picker{border:1px solid var(--line);border-radius:12px;padding:17px;margin:24px 0;min-width:0}.tag-picker legend{font-size:12px;font-weight:550;padding:0 6px}.tag-picker legend span{font-size:9px;color:var(--muted);margin-left:7px;font-weight:400}.selected-tags{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-height:37px}.tag-token{display:inline-flex;align-items:center;gap:9px;border:1px solid #aabe96;background:var(--green);border-radius:20px;padding:9px 12px;min-height:44px;font-size:12px;max-width:100%;overflow-wrap:anywhere}.tag-token span:last-child{font-size:17px;color:var(--muted)}.tag-placeholder{font-size:11px;color:var(--muted)}.tag-picker .tag-count{font-size:10px;color:var(--muted);margin:7px 0 0;min-height:0}.tag-picker .tag-search-label{margin-top:17px;font-size:11px}.tag-picker .tag-search-label input{font-size:14px;padding:11px;min-height:44px}.tag-choices{display:flex;gap:7px;flex-wrap:wrap;margin:11px 0 7px;max-height:184px;overflow:auto;overscroll-behavior:contain}.tag-choice{border:1px solid var(--line);border-radius:18px;padding:8px 12px;display:inline-flex;align-items:center;gap:5px;min-height:44px;font-size:12px;max-width:100%;text-align:left;overflow-wrap:anywhere;background:var(--surface)}.tag-choice.chosen{background:var(--green);border-color:#aabe96;color:var(--accent)}.tag-choice>span{font-size:12px}.tag-picker .new-tag-label{margin:18px 0 8px;font-size:11px}.tag-add-row{display:flex;align-items:stretch;gap:8px}.tag-add-row input{min-width:0;width:100%;flex:1;font-size:14px;padding:12px}.tag-add-row .btn{font-size:11px;padding:10px 14px;min-height:46px}.tag-error{color:#b14e3f;font-size:11px!important;margin-top:8px}.tag-picker .fine{font-size:10px}.tag-picker #tag-list-note:empty,.tag-picker #tag-error:empty,.tag-picker #tag-count:empty{display:none}@media(max-width:760px){.tag-picker{padding:14px;margin:22px 0}.tag-picker .tag-search-label input,.tag-add-row input{font-size:16px}.tag-choices{max-height:190px}.tag-token,.tag-choice{font-size:12px;min-height:44px}.tag-add-row{gap:7px}.tag-add-row .btn{padding:10px 12px}.state-description{font-size:11px!important}}:root{--bg: #f6f3ec;--surface: #fffdf8;--ink: #303b40;--muted: #687477;--line: #d8d5cb;--accent: #356d68;--green: #eaf0e8;--hero: #eeeae0}:root[data-theme=dark]{--bg: #20262a;--surface: #292f33;--ink: #ece9df;--muted: #b6bdbb;--line: #50585b;--accent: #a6d0c6;--green: #344540;--hero: #303a3b}body{background-image:repeating-linear-gradient(0deg,transparent 0,transparent 31px,#88888808 32px)}.record-card,.settings-panel,.discovery,.hero{border-radius:5px 9px 5px 7px;box-shadow:1px 2px #4444440b}.hero-art{opacity:.38;filter:grayscale(1)}.graph-canvas.sketch{background-color:var(--surface);background-image:repeating-linear-gradient(0deg,transparent 0,transparent 35px,#7777770c 36px);border:1px solid var(--line);border-radius:5px;height:620px}.sketch .tree-trunk{display:none}.sketch .branch-wood{stroke:var(--muted);stroke-width:2px;stroke-linecap:round;fill:none}.sketch .leaf-shape{stroke:var(--muted);stroke-width:1.5px;fill:var(--surface)}.sketch .leaf-vein{display:none}.sketch .leaf-node:hover .leaf-shape,.sketch .leaf-node:focus .leaf-shape{stroke:var(--accent);stroke-width:3px}.sketch .leaf-kind,.sketch .leaf-name{fill:var(--ink);font-family:inherit}.sketch .leaf-name{font-size:16px;font-weight:600}.sketch .lit .leaf-shape{fill:var(--green);stroke:var(--accent)}.sketch .lit .branch-wood{stroke:var(--accent);stroke-width:3px}.overview-zoom .leaf-kind,.overview-zoom .leaf-state{visibility:hidden}.sketch .zoom-controls{bottom:18px;right:14px}.sketch .zoom-controls button{min-width:44px;min-height:44px}.tree-toolbar{flex-wrap:wrap}.tree-toolbar .btn{min-height:44px}.search-results{margin:12px 0;border:1px solid var(--line);border-radius:5px;max-height:300px;overflow:auto}.search-results>div{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line);padding:5px 10px}.search-results button{min-height:44px;text-align:left;overflow-wrap:anywhere}.search-results>div>button:first-child{flex:1;min-width:0}.search-results .text-btn{flex-shrink:0}.draft-note{background:var(--green);padding:12px 18px;border:1px solid var(--line);margin:0 0 18px}#toast{display:flex;align-items:center;justify-content:center;gap:12px;max-width:calc(100vw - 24px)}#toast button{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:4px;min-height:44px;padding:8px 12px;white-space:nowrap}:root[data-plain=true] body,:root[data-plain=true] .graph-canvas.sketch{background-image:none}:root[data-plain=true] .hero-art{visibility:hidden}.detail-actions{flex-wrap:wrap}.modal h2,.modal h3,.record-card h3{overflow-wrap:anywhere}@media(max-width:760px){.graph-canvas.sketch{height:560px;margin:0 -4px}.sketch .graph-hint{font-size:12px;left:14px;top:16px}.sketch .graph-hint span{display:none}.tree-toolbar .btn{font-size:12px}.tree-toolbar .tree-focus{width:100%;max-width:100%;flex-basis:100%}.modal input,.modal select,.modal textarea{font-size:16px}.search-results .text-btn{font-size:12px}.sketch .leaf-name{font-size:16px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.sketch .zoom-controls button{font-size:20px;width:44px;height:44px;padding:0}.sketch .zoom-controls button:last-child{font-size:12px;white-space:nowrap}.saved-actions{padding:12px 16px;border:1px solid var(--line);background:var(--green);margin-bottom:18px;border-radius:5px}.saved-actions>div{display:flex;flex-wrap:wrap;gap:4px 18px;margin-top:6px}.saved-actions button{min-height:44px}.sketch .leaf-shape{paint-order:stroke fill;stroke-linejoin:round}.sketch .graph-node.lavender .leaf-shape,.sketch .graph-node.peach .leaf-shape,.sketch .graph-node.sand .leaf-shape{fill:var(--surface)}#toast.show{pointer-events:auto}.sketch .leaf-node text.leaf-name{font-size:18px}.sketch .selected-node .leaf-shape{stroke:var(--accent);stroke-width:3px;fill:var(--green)}[hidden]{display:none!important}button,a,summary{touch-action:manipulation}html{scrollbar-gutter:stable}.record-controls{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:18px 0;flex-wrap:wrap}.record-controls label{display:grid;gap:6px;font-size:13px}.record-controls select{min-height:44px;max-width:100%}.record-item{min-width:0;display:flex;flex-direction:column;border:1px solid var(--line);background:var(--surface);border-radius:7px}.record-item .record-card{border:0;box-shadow:none;width:100%;flex:1;min-width:0}.record-item>.text-btn{align-self:flex-end;min-height:44px;margin:0 14px 6px}.load-more{display:block;margin:24px auto}.filters{align-items:center}.unlinked-control{white-space:nowrap;font-size:13px;min-height:44px}.active-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0;overflow-wrap:anywhere}.filter-chip{padding:8px 12px;min-height:44px;border:1px solid var(--line);border-radius:20px;background:var(--green);max-width:100%;text-align:left;overflow-wrap:anywhere}.date-parts{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:10px;margin:12px 0}.date-parts label{min-width:0}.date-parts input,.date-parts select{width:100%;min-width:0}.duplicate-note:not(:empty),.edge-change-preview:not(:empty),#tag-change-preview:not(:empty){padding:12px;background:var(--green);border:1px solid var(--line);border-radius:5px;margin:12px 0;font-size:13px}.duplicate-note .text-btn{display:block;min-height:44px;text-align:left;overflow-wrap:anywhere}.saving-status{color:var(--accent);padding:8px 0;font-size:14px}.field-error{color:#ad392d;font-size:13px;line-height:1.7;margin-top:6px;grid-column:1/-1}:root[data-theme=dark] .field-error{color:#ffb5aa}[aria-invalid=true]{outline:2px solid #c35243;outline-offset:1px}.batch-rows{max-height:300px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);margin:12px 0}.batch-row{display:flex!important;align-items:start;gap:10px;padding:12px;margin:0!important;border-bottom:1px solid var(--line);min-height:52px}.batch-row input{width:20px;height:20px;flex-shrink:0;margin:3px 0}.batch-row span{overflow-wrap:anywhere;min-width:0}.batch-row small{display:block;color:var(--muted);font-size:12px}.image-capacity-list article{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:8px 0;flex-wrap:wrap}.image-capacity-list article>.text-btn:first-child{flex:1;min-width:120px;text-align:left;overflow-wrap:anywhere}.pager{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:18px;flex-wrap:wrap}.backup-size{margin-top:12px;font-size:13px;overflow-wrap:anywhere}.warning{color:#a33f2f}:root[data-theme=dark] .warning{color:#ffb5aa}#network{touch-action:pan-y pinch-zoom}.gestures-on #network{touch-action:none}.graph-mode{position:absolute;right:14px;top:45px;z-index:3;display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:calc(100% - 28px)}.graph-mode .btn{font-size:12px;min-height:44px;padding:8px 12px;background:var(--surface)}.graph-mode span{font-size:11px;color:var(--muted);background:var(--surface);padding:3px 6px}.modal-open #toast:has(button){visibility:hidden;pointer-events:none}.modal{overflow-x:hidden;overflow-wrap:anywhere;scrollbar-gutter:stable}.modal form{min-width:0}.modal input,.modal select,.modal textarea{max-width:100%}.form-actions,.detail-tabs{flex-wrap:wrap}#graph-limit:empty{display:none}@media(max-width:760px){input,select,textarea,.filters input,.filters select,.tree-focus select{font-size:16px!important;min-height:44px}.filters{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.filters .search{grid-column:1/-1;min-width:0}.filters select{min-width:0;width:100%}.filters .unlinked-control{grid-column:1/-1}.record-controls{align-items:stretch}.record-controls label{flex:1;min-width:170px}.graph-mode{left:14px;right:auto;top:45px}.graph-mode span{max-width:220px}.image-capacity-list article{gap:6px}.pager .btn{font-size:12px;padding:8px 10px;min-height:44px}.detail-actions .btn,.detail-tabs button{min-height:44px}.modal{max-height:calc(100dvh - 12px);padding-bottom:max(24px,env(safe-area-inset-bottom))}.record-controls .btn{font-size:13px;min-height:44px}#toast{bottom:calc(88px + env(safe-area-inset-bottom))}}:root{--bg: #faf5e6;--surface: #fffbee;--ink: #353831;--muted: #6c6d60;--line: #a39d88;--accent: #47523b;--green: #e5e8bf;--hero: #f2eddc;--pencil-light: #78766766;--hatch: #6f79402b;--paper: url(/paper.svg);color:var(--ink);background:var(--bg)}:root[data-theme=dark]{--bg: #252824;--surface: #2c3029;--ink: #f2edde;--muted: #c0c1af;--line: #9a9b84;--accent: #e4e6b9;--green: #4c563b;--hero: #34382f;--pencil-light: #c3c3aa5c;--hatch: #d6d7a323}body,.sidebar,.topbar,.mobile-nav,.modal{background-color:var(--bg);background-image:var(--paper);color:var(--ink)}body{line-height:1.6}h1{font-weight:750;font-size:28px;line-height:1.45;letter-spacing:-.045em}h2{font-size:18px;font-weight:700}h3{font-size:17px;font-weight:700}p{line-height:1.8}.eyebrow,.navcaption,.breadcrumb,.avatar{display:none}.sidebar{border-right:1px solid var(--line)}.brand{font-family:inherit;font-size:22px}.brand svg{color:var(--accent)}.topbar{border-bottom:1px solid var(--pencil-light)}.notebook-brand{display:inline-flex;align-items:center;gap:9px;font-size:19px;font-weight:700;padding:0;min-height:44px}.notebook-brand svg{width:29px;height:30px}.local-label{color:var(--muted)}.sidebar nav{margin-top:32px}.navitem,.mobile-nav .navitem{color:var(--muted);border-radius:18% 12% 24% 13%;position:relative}.navitem.active,.mobile-nav .navitem.active{color:var(--ink);background:repeating-linear-gradient(127deg,transparent 0 3px,var(--hatch) 3px 4px),var(--green)}.navitem.active:after{content:"";position:absolute;bottom:5px;left:20%;right:20%;height:2px;border-radius:40%;background:var(--accent);transform:rotate(-1.5deg)}.mobile-nav{border-top:1px solid var(--line);box-shadow:0 -2px 0 var(--pencil-light)}.mobile-nav .navitem svg{color:var(--ink);stroke-width:1.4}.btn,.filter-chip,.tag-choice,.tag-token,.root-shortcuts button,.theme-choice,.feeling-choices button,input:not([type=checkbox]):not([type=hidden]):not([type=radio]),select,textarea,.search{border:1px solid var(--line);border-radius:9px 12px 8px 11px/10px 8px 11px 9px;background-color:transparent;color:var(--ink)}.btn{position:relative;min-height:44px;font-size:14px;padding:10px 17px;font-weight:650;box-shadow:.7px 1.3px 0 var(--pencil-light)}.btn.primary,.btn.dark,.theme-choice[aria-pressed=true],.feeling-choices button[aria-pressed=true],.tag-choice.chosen,.tag-token{background:repeating-linear-gradient(128deg,transparent 0 3px,var(--hatch) 3px 4px),var(--green);color:var(--ink);border-color:var(--accent)}.btn.primary:after{content:"";position:absolute;inset:-3px 1px 1px -3px;border:1px solid var(--pencil-light);border-radius:12px 8px 13px 7px;pointer-events:none;transform:rotate(-.35deg)}.btn:hover,.record-card:hover{transform:none;box-shadow:1px 2px 0 var(--pencil-light)}.text-btn{color:var(--ink);font-size:13px;text-decoration-thickness:1px}.text-btn:hover{text-decoration:underline;text-underline-offset:4px}.page-heading{margin-bottom:22px}.page-heading .subtitle{font-size:14px;color:var(--muted);margin-top:8px;max-width:540px}main[data-screen=home] .page-heading h1{display:inline;background:linear-gradient(transparent 88%,var(--green) 88%,var(--green) 97%,transparent 97%)}main[data-screen=home] .page-heading{position:relative;padding-right:70px}main[data-screen=home] .page-heading:after{content:"";position:absolute;right:-4px;top:0;width:80px;height:95px;opacity:.38;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 100'%3E%3Cg fill='none' stroke='%236c7058' stroke-width='1'%3E%3Cpath d='M77 99Q42 62 22 4M58 72L15 54M42 47L58 17M65 80L73 45'/%3E%3Cpath d='M23 9Q2 7 9 23Q23 30 23 9ZM34 33Q9 23 14 38Q23 47 34 33ZM44 48Q61 34 58 17Q42 23 44 48ZM59 71Q78 66 73 45Q55 51 59 71ZM28 59Q9 41 2 52Q9 66 28 59Z'/%3E%3Cpath d='M22 10L11 21M34 33L17 36M44 47L55 22M59 71L70 51M26 58L6 53' stroke-opacity='.5'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}.stats.notebook-stats{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:4px 0 28px;padding:14px 0;border:1px solid var(--line);border-radius:10px 7px 11px 8px;background:transparent}.notebook-stats>div{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto;align-items:center;gap:12px;padding:0 24px;border:0}.notebook-stats>div+div{border-left:1px solid var(--pencil-light)}.notebook-stats strong{font-size:28px;font-weight:700;line-height:1.3}.notebook-stats span{font-size:13px;margin:0;color:var(--ink)}.section-title{margin:16px 0 12px}.section-title h2{display:flex;align-items:center;gap:8px}.section-title h2 span{display:none}.cards,.cards.collection{display:grid;grid-template-columns:1fr;gap:12px}.record-card,.record-item,.discovery,.settings-panel,.timeline-item,.influence,.edge-item,.event-list article{border-color:var(--line);background:transparent;border-radius:10px 7px 11px 8px/8px 11px 8px 12px;box-shadow:.7px 1.3px 0 var(--pencil-light)}.record-card{width:100%;padding:15px 17px;display:block;min-height:94px;position:relative}.record-card:after{content:"";position:absolute;inset:2px -2px -2px 1px;border:1px solid var(--pencil-light);border-radius:9px 13px 8px 12px;pointer-events:none;opacity:.65}.record-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.record-card h3{font-size:17px;white-space:normal;overflow-wrap:anywhere;line-height:1.5;margin:0}.record-title .state{flex-shrink:0;font-size:11px;padding:2px 7px;border:1px solid var(--pencil-light);border-radius:7px 9px 8px 5px;background:var(--green);color:var(--ink)}.record-card p{font-size:13px;min-height:0;color:var(--muted);margin:6px 0 8px;-webkit-line-clamp:2}.record-tags{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.record-tags .chip,.detail-meta .chip{font-size:11px;padding:1px 7px;background:transparent;border:1px solid var(--pencil-light);border-radius:8px 6px 9px 5px}.kind-label{font-size:11px;color:var(--muted)}.record-item{padding:0;border:1px solid var(--line)}.record-item .record-card{border:0;box-shadow:none;min-height:0}.record-item .record-card:after{display:none}.record-item>.text-btn{display:block;margin:-3px 10px 4px auto;min-height:36px;padding:6px 9px;font-size:12px}.discovery-grid{gap:14px}.discovery{padding:20px}.discovery h2{font-size:17px}.discovery p{font-size:13px;margin-top:9px}.discovery:before{display:none}.settings-panel{padding:23px 0;border:0;border-bottom:1px solid var(--pencil-light);box-shadow:none;border-radius:0;gap:18px}.settings-panel h2{font-size:18px}.settings-panel p{font-size:13px;color:var(--muted)}.theme-segments{display:flex;max-width:100%;border:1px solid var(--line);border-radius:9px 7px 11px 8px;overflow:hidden;flex-shrink:0}.theme-choice{min-height:44px;padding:7px 13px;font-size:13px;border:0;border-radius:0}.theme-choice+.theme-choice{border-left:1px solid var(--line)}.settings-panel .button-stack{gap:10px}.modal{border:1px solid var(--line);border-radius:14px 9px 12px 10px;box-shadow:2px 3px 0 var(--pencil-light),0 12px 50px #29291c24}.modal h2{font-size:23px;line-height:1.5}.modal-head{padding-bottom:14px;margin-bottom:15px;border-bottom:1px solid var(--pencil-light)}.modal label,.field-label{font-weight:650;font-size:14px}.modal input,.modal select,.modal textarea{font-size:16px;background-color:transparent}.modal form label{margin-bottom:13px}.modal form details{margin-top:15px}.modal details>summary{font-size:13px}.field-label small{color:var(--muted);font-size:12px;font-weight:400}.feeling-field{margin-bottom:12px}.state-select{display:none}.feeling-choices{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}.feeling-choices button{min-height:44px;padding:7px 12px;font-size:13px}.feeling-choices button[aria-pressed=true]:before{content:"✓ "}.detail-tabs{border-color:var(--pencil-light);gap:4px}.detail-tabs button{font-size:14px;color:var(--muted);border-radius:8px 9px 4px 7px}.detail-tabs button.active{color:var(--ink);background:repeating-linear-gradient(128deg,transparent 0 3px,var(--hatch) 3px 4px),var(--green);border-bottom:2px solid var(--accent)}.detail-memo{font-size:15px}.influence{padding:16px;margin:20px 0;background:transparent}.influence strong{font-size:28px}.event-list article{background:transparent;border-width:0 0 0 2px;border-radius:0;box-shadow:none;border-color:var(--accent)}.event-list article .eyebrow{display:block;font-size:12px;letter-spacing:0}.tag-picker{border:0;padding:0;background:transparent}.tag-token,.tag-choice{border-radius:9px 6px 10px 7px}.draft-note,.saved-actions,.demo-banner{background:var(--green);border:1px solid var(--pencil-light);border-radius:7px 9px 6px 10px}.demo-banner{margin:12px 24px 0;font-size:12px}.tree-toolbar{display:grid;grid-template-columns:1fr auto;align-items:end;gap:10px;margin-bottom:10px}.tree-toolbar .tree-focus{grid-column:1/-1;max-width:100%;width:100%;min-width:0;font-size:12px}.tree-toolbar #arrange-tree{grid-column:2;grid-row:2;font-size:12px}.tree-toolbar #add-edge{grid-column:1;grid-row:2;justify-self:start}.tree-toolbar #return-view{grid-column:1/-1}.tree-focus select{font-size:15px}.graph-canvas.sketch{height:var(--tree-height);margin:0;border:0;border-radius:0;background-color:transparent;background-image:none;overflow:hidden;box-shadow:none}.sketch #network{width:100%;height:100%;display:block}.sketch .graph-hint{top:4px;left:0;font-size:12px;color:var(--muted)}.sketch .graph-hint>svg,.sketch .graph-hint span{display:none}.graph-mode{top:29px;left:0;right:0;gap:10px}.graph-mode .btn{font-size:12px;padding:7px 10px;background-color:var(--bg)}.graph-mode span{padding:0;font-size:11px;background:transparent}.sketch .leaf-shape{fill:var(--surface);stroke:var(--ink);stroke-width:1.8;paint-order:fill stroke}.sketch .leaf-pencil-echo{fill:none;stroke:var(--ink);stroke-width:.8;opacity:.57;pointer-events:none}.sketch .leaf-pencil-shade{fill:url(#pencil-shade);color:var(--ink);opacity:.23;pointer-events:none}.sketch .selected-node .leaf-shape,.sketch .lit .leaf-shape,.sketch .root-node .leaf-shape{fill:var(--green);stroke:var(--ink);stroke-width:2.4}.sketch .leaf-node text.leaf-name{font-size:26px;font-weight:650;fill:var(--ink)}.sketch .leaf-node .fold-count{font-size:17px;fill:var(--muted)}.sketch .branch-wood{stroke:var(--ink);stroke-width:1.6;fill:none}.sketch .branch-pencil-echo{stroke:var(--ink);stroke-width:.8;opacity:.5;fill:none;pointer-events:none}.sketch .lit .branch-wood{stroke:var(--accent);stroke-width:2.8}.sketch .branch-hit{stroke-width:16}.tree-compass{display:none}.sketch .zoom-controls{left:50%;right:auto;bottom:6px;transform:translate(-50%);display:flex;border:1px solid var(--line);border-radius:9px 7px 11px 8px;background:var(--bg);box-shadow:1px 2px 0 var(--pencil-light);padding:2px;gap:0}.sketch .zoom-controls #zoom-label{font-size:12px;padding:0 4px;min-width:44px}.sketch .zoom-controls button{width:44px;min-width:44px;min-height:44px}.tree-caption{font-size:12px;margin-top:8px;padding-bottom:12px}.tree-caption>span:last-child{display:none}.tree-search{border-color:var(--pencil-light)}.tree-search summary{min-height:44px;font-size:13px}.root-shortcuts button{background:transparent;font-size:12px}.filters{gap:9px}.filters .search input{border:0;box-shadow:none}.search{border-color:var(--line)}.record-controls{gap:10px}.list-meta{font-size:12px}.timeline-year{color:var(--ink)}footer{font-size:11px;color:var(--muted)}:root[data-plain=true]{--paper: none;--hatch: transparent}:root[data-plain=true] main[data-screen=home] .page-heading:after,:root[data-plain=true] .record-card:after,:root[data-plain=true] .btn.primary:after,:root[data-plain=true] .icon-pencil-echo,:root[data-plain=true] .leaf-pencil-echo,:root[data-plain=true] .leaf-pencil-shade,:root[data-plain=true] .branch-pencil-echo{display:none}@media(min-width:1100px){main[data-screen=home] .cards,.cards.collection{grid-template-columns:1fr 1fr}}@media(max-width:760px){.topbar{height:58px;padding:0 16px}.top-actions{gap:4px}.top-actions .local-label{font-size:10px}.notebook-brand{font-size:19px}main{padding:22px 16px 26px}h1{font-size:25px}.page-heading{margin-bottom:18px}.page-heading>div{width:100%}.page-heading .subtitle{display:block;font-size:13px;line-height:1.8;max-width:100%}.page-heading>.btn{min-height:46px;font-size:14px;margin-top:6px}main[data-screen=home] .page-heading{padding-right:0;padding-top:6px}main[data-screen=home] .page-heading>div{padding-right:57px}main[data-screen=home] .page-heading .btn{width:100%;justify-content:center}main[data-screen=home] .page-heading:after{width:65px;height:85px;top:0}.stats.notebook-stats{margin:8px 0 23px;padding:12px 0}.notebook-stats>div{padding:0 14px;gap:8px}.notebook-stats strong{font-size:27px}.notebook-stats span{font-size:12px}.cards,.cards.collection{grid-template-columns:1fr;gap:11px}.record-card{padding:13px 14px}.record-card h3{font-size:17px}.record-card p{font-size:13px}.record-title .state{font-size:10px;max-width:105px}.discovery-grid{grid-template-columns:1fr;margin-top:22px}.discovery{padding:17px}.section-title h2{font-size:17px}.settings-panel{padding:20px 0;display:flex;flex-direction:column;align-items:stretch}.settings-panel .node-icon{display:none}.theme-segments{width:100%}.theme-choice{flex:1;font-size:12px;padding:8px 5px}.settings-panel .button-stack{width:100%}.settings-panel .button-stack .btn{width:100%;justify-content:center}.modal{width:100%;padding:22px 17px max(28px,env(safe-area-inset-bottom));border-radius:14px 10px 0 0;max-height:calc(100dvh - 10px)}.modal.wide{width:100%}.modal h2{font-size:22px}.modal .field-row{display:flex;flex-direction:column;gap:12px}.modal .field-row>label{margin-bottom:0}.form-actions{display:flex;flex-direction:column-reverse}.form-actions>.btn{width:100%}.detail-actions{gap:8px}.detail-actions>.btn{flex:1 1 40%;justify-content:center}.graph-mode{top:28px;flex-wrap:nowrap}.graph-mode span{font-size:10px;max-width:170px;line-height:1.5}.graph-mode .btn{flex-shrink:0}.tree-toolbar{grid-template-columns:1fr 1fr}.tree-toolbar .tree-focus{flex-basis:auto}.tree-toolbar .btn{font-size:12px;padding:8px 10px}main[data-screen=graph] .page-heading .subtitle{display:none}main[data-screen=graph] .page-heading>.btn{padding:7px 12px;min-height:44px;margin-top:0}.mobile-nav{height:calc(68px + env(safe-area-inset-bottom));padding:4px 10px max(4px,env(safe-area-inset-bottom))}.mobile-nav .navitem{padding:7px 2px;gap:3px;min-height:56px;font-size:11px}.mobile-nav .navitem svg{width:23px;height:23px}.mobile-nav .navitem.active:after{bottom:2px}body{padding-bottom:calc(72px + env(safe-area-inset-bottom))}.demo-banner{margin:8px 16px 0;padding:8px 10px}footer{padding-bottom:10px}}.record-card h3{position:static;left:auto;top:auto;max-width:none;flex:1}.record-title .state{position:static}.record-card,.record-item{border-color:#8b8878}:root[data-theme=dark] .record-card,:root[data-theme=dark] .record-item{border-color:var(--line)}.draft-note{padding:9px 12px;font-size:12px}.draft-note .text-btn{font-size:12px;padding:4px 7px;min-height:36px}.modal input,.modal select,.modal textarea{font-weight:400}.sketch .graph-node.root-node .leaf-shape{fill:var(--green)}.record-title .state{white-space:normal}@media(max-width:760px){main[data-screen=graph] .page-heading{display:flex;flex-wrap:nowrap;align-items:center;gap:8px}main[data-screen=graph] .page-heading>div{width:auto;flex:1}main[data-screen=graph] .page-heading h1{font-size:23px}main[data-screen=graph] .page-heading>.btn{flex-shrink:0;font-size:12px}.tree-toolbar .tree-focus{font-size:11px;gap:4px}}.collection-tools{margin:12px 0;border-bottom:1px solid var(--pencil-light)}.collection-tools>summary{min-height:44px;font-size:13px;padding:8px 0;cursor:pointer}.collection-tools .record-controls{margin:8px 0 14px}.detail-lineage{margin:20px 0}.detail-lineage h3{font-size:15px;margin-bottom:9px}.detail-lineage>div{display:flex;flex-wrap:wrap;align-items:center;gap:7px}.detail-lineage .btn{font-size:13px;padding:7px 10px;max-width:100%;overflow-wrap:anywhere}.influence summary{cursor:pointer;min-height:44px;display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:14px}.influence summary strong{font-size:20px}.influence>p{font-size:13px;color:var(--muted);margin-top:9px}@media(max-width:760px){.filters{grid-template-columns:repeat(3,minmax(0,1fr))!important}.filters select{padding-left:9px;padding-right:2px}main[data-screen=records] .page-heading{flex-wrap:nowrap;align-items:center}main[data-screen=records] .page-heading>div{width:auto;flex:1}main[data-screen=records] .page-heading h1{font-size:23px}main[data-screen=records] .page-heading .subtitle{display:none}main[data-screen=records] .page-heading>.btn{flex-shrink:0;font-size:12px;padding:7px 10px;margin:0;min-height:44px}.detail-actions>.btn{font-size:13px}}.detail-tabs{display:flex;flex-wrap:nowrap;gap:5px}.detail-tabs button{flex:1;min-width:0;min-height:44px;padding:8px 12px;font-size:14px;white-space:nowrap}.timeline-item .eyebrow{display:block;font-size:11px;letter-spacing:0;color:var(--muted)}main[data-screen=timeline] .filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}.record-details>summary{min-height:44px;padding:10px 0;color:var(--ink);border-block:1px solid var(--pencil-light);margin-bottom:16px;cursor:pointer}#toast{background:#383d31;color:#fffbee;border:1px solid #8b8878;border-radius:9px 12px 8px 11px}.sketch .graph-node rect.node-hitbox{fill:transparent;stroke:none;pointer-events:all}
