/* Same paper, ink and Chinese type as the existing journal. */
.thread-workspace{--thread-sage:#e4e8dd;--thread-rust:#865843;max-width:1060px;margin:0 auto;padding-bottom:38px;font-family:var(--serif)}
.thread-workspace button,.thread-workspace input,.thread-record-detail,.thread-place-picker,[data-thread-form],.thread-menu-list{font-family:var(--serif)}
.thread-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:12px 0 22px}.thread-heading h1{font-size:38px;line-height:1.4;letter-spacing:.02em}.thread-kicker{font-size:11px;color:var(--muted);letter-spacing:.08em;margin:0 0 8px}.thread-primary{background:#34382d;color:#fffdf5;border:1px solid #34382d;border-radius:5px;padding:10px 19px;font-size:13px;white-space:nowrap;min-height:44px}.thread-primary:hover{background:#4a503f}.thread-primary:active{transform:scale(.98)}.thread-quiet{font-size:12px;padding:8px 10px;min-height:44px;color:var(--muted)}.thread-quiet:hover,.thread-quiet.active{color:var(--accent)}
.thread-tools{display:flex;align-items:center;gap:27px;padding-bottom:19px;font-size:13px;color:#716555}.thread-tools button,.thread-tools a{padding:0;min-height:34px;display:flex;align-items:center;gap:16px}.thread-tools span{color:#a49782}.thread-tools a:last-child{margin-left:auto}
.thread-tabs{display:flex;align-items:center;gap:28px;border-bottom:1px solid #d4cfc4;min-height:54px}.thread-tabs>a{font-size:17px;min-height:54px;display:flex;align-items:center;position:relative;white-space:nowrap}.thread-tabs>a[aria-current=page]{color:var(--accent)}.thread-tabs>a[aria-current=page]:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--accent)}.thread-tabs>.thread-all-draws{margin-left:auto;font-size:11px;color:var(--muted)}.thread-controls{display:flex;align-items:center;gap:20px;justify-content:space-between;margin:15px 0 20px}.thread-search{display:flex;align-items:center;gap:8px;color:#7a746b;max-width:290px;width:100%;border-bottom:1px solid #d4cfc4}.thread-search input{border:0;background:none;margin:0;padding:8px 0;font-size:12px;min-height:40px;outline-offset:1px}.thread-search>span{font-family:Georgia,serif;font-size:25px}.thread-controls>.thread-quiet{flex:none;border-bottom:1px solid #b5ac9a;border-radius:0;padding-inline:4px}
.thread-pool-layout{display:grid;grid-template-columns:minmax(0,1fr) 235px;gap:38px}.thread-filter{display:flex;align-items:center;gap:22px;margin-bottom:14px}.thread-filter button{font-size:12px;color:var(--muted);padding:0;min-height:34px}.thread-filter [aria-pressed=true]{color:var(--ink)}.thread-filter [aria-pressed=true]:before{content:'';width:5px;height:5px;display:inline-block;background:var(--accent);border-radius:50%;vertical-align:middle;margin-right:8px}.thread-filter span{font-family:Georgia,serif;padding-left:5px;color:var(--accent)}
.thread-fragments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.thread-fragment{display:flex;align-items:center;min-width:0;position:relative;border:1px solid #ded9ce;border-radius:5px;background:#f8f6f0;transition:background .18s,border-color .18s,transform .18s;min-height:105px}.thread-fragment:hover{border-color:#bcb49f}.thread-fragment.selected{border-color:#788467;background:#eef0e7}.thread-fragment-open{display:flex;align-items:center;gap:14px;text-align:left;min-width:0;width:100%;padding:14px 35px 14px 14px;min-height:100%;user-select:none}.thread-fragment-copy{display:flex;flex-direction:column;min-width:0;flex:1;gap:3px}.thread-fragment-copy>small{font-size:10px;color:#81776a;line-height:1.6;letter-spacing:.04em}.thread-fragment-copy>strong{font-size:14px;line-height:1.75;font-weight:500;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}.thread-brief{font-size:10px;color:var(--muted)}.thread-owner{font-size:9px;color:#8b816f;line-height:1.6;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:3px}
.thread-mini-card{width:35px;height:61px;object-fit:cover;border-radius:2px;flex:none;filter:saturate(.65);pointer-events:none}.thread-mini-card.reversed{transform:rotate(180deg)}.thread-paper-mark{width:35px;min-height:47px;border:1px solid #d9d0bd;border-radius:2px;display:grid;place-items:center;color:#988973;font-size:17px;flex:none;position:relative;background:#eeeadf}.thread-paper-mark:after{content:'';position:absolute;left:7px;right:7px;bottom:7px;height:1px;background:#d6cdbb}.thread-paper-mark.reflection{background:#e7ebdf;color:#68765d;border-color:#cbd4bf}.thread-hex{display:flex;flex-direction:column;justify-content:space-between;gap:4px;flex:none;width:35px;height:38px}.thread-hex i{display:flex;height:3px;gap:0}.thread-hex b{background:#75634e;flex:1}.thread-hex .broken{gap:7px}.thread-select{width:32px;min-height:38px;font:19px Georgia,serif;color:#a49a88;position:absolute;right:1px;top:3px;border-radius:3px}.thread-select:hover{color:var(--accent);background:#eae3d6}.selected .thread-select{color:#536045}.is-organizing .thread-select{background:#e8e9df;right:4px;top:5px;width:27px;min-height:28px;border:1px solid #c9cdbb;font-size:17px}.thread-reflection-dot{width:5px;height:5px;border-radius:50%;background:#a5b38f;position:absolute;right:12px;top:14px}.thread-more{display:block;margin:17px auto 0;color:#807464;font-size:12px;min-height:42px;border-bottom:1px solid #d2c9b6}.thread-empty{font-size:13px;color:var(--muted);padding:35px 10px;grid-column:1/-1;text-align:center}
.thread-small-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.thread-small-heading h2{font-size:14px}.thread-plus{font:22px Georgia,serif;min-height:34px;width:34px;color:#8c8069}.thread-targets{display:grid;gap:12px}.thread-event-target{background:#e8e9df;border:1px solid #d3d8c8;border-radius:5px;position:relative;min-width:0;transition:transform .18s,background .18s,border-color .18s}.thread-event-target>a{padding:18px;display:block;min-width:0}.thread-event-target small{font-size:10px;color:#778168}.thread-event-target h3{font-size:17px;line-height:1.65;margin-top:5px}.thread-event-target p{font-size:11px;line-height:1.8;color:#79796c;margin:8px 0 12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.thread-event-target a>span{font-size:10px;color:#7a816e;display:flex;justify-content:space-between;align-items:center}.thread-event-target b{font-size:18px;font-weight:400}.thread-target-apply{width:100%;border-top:1px solid #ced3c3;font-size:12px;color:#4c5d3c;background:#dde3d1;min-height:38px}.thread-new-target{min-height:63px;border:1px dashed #c7bfac;border-radius:5px;color:#8f8370;font-size:12px}.thread-new-target span{font-size:19px;display:inline-block;margin-right:8px}.thread-things{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.thread-things .thread-event-target{background:transparent;border-width:0 0 1px;border-radius:0}.thread-things .thread-event-target>a{padding:18px 4px 22px}.thread-things .thread-event-target h3{font-size:20px}
.thread-selection{position:sticky;bottom:20px;display:flex;align-items:center;justify-content:flex-end;gap:20px;padding:10px 14px;background:#f8f7f0;border:1px solid #c9c8b8;border-radius:5px;margin:20px 0 0;z-index:20;box-shadow:0 4px 18px #302b1710}.thread-selection>span{margin-right:auto;font-size:13px}.thread-undo{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#e5e9df;border-left:2px solid #7c8967;font-size:12px;line-height:1.8;padding:5px 15px;margin-top:15px}.thread-undo>span{min-width:0;overflow-wrap:anywhere}.thread-undo button{flex:none;color:#52623e;text-decoration:underline;text-underline-offset:4px}
.thread-back{display:inline-block;font-size:12px;color:#857865;padding:7px 0;min-height:36px}.thread-detail .thread-heading{margin:13px 0 5px;align-items:start}.thread-detail .thread-heading h1{font-size:32px}.thread-menu-button{font:26px Georgia,serif;min-height:44px;min-width:44px;color:var(--muted);padding:0}.thread-period{font-size:11px;color:#8b8273;margin:6px 0 18px}.thread-latest{display:flex;align-items:baseline;gap:15px;border-left:2px solid #a6b38d;background:#e7e9df;padding:10px 18px;margin:23px 0}.thread-latest>span{font-size:10px;flex:none;color:#6e7a5d}.thread-latest button{text-align:left;padding:0;font-size:13px;min-height:28px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.9}.thread-tab-actions{display:flex;align-items:center;gap:12px;margin-left:auto}.thread-tab-actions .thread-primary{min-height:36px;padding:6px 13px;font-size:12px}
.thread-timeline{max-width:830px;margin:20px auto}.thread-timeline .thread-fragment{border:0;border-radius:0;background:none;min-height:90px;padding:0 0 0 82px;margin:0}.thread-timeline .thread-fragment:before{content:'';position:absolute;left:65px;top:0;bottom:0;width:1px;background:#cfcbbb}.thread-timeline .thread-fragment:last-child:before{bottom:50%}.thread-timeline .thread-fragment:after{content:'';position:absolute;left:62px;top:43px;width:7px;height:7px;border-radius:50%;background:var(--desk);border:1px solid #a49881}.thread-timeline .thread-fragment.selected{background:#e8ecdf}.thread-date{position:absolute;top:30px;left:0;width:46px;font:16px/1.5 Georgia,var(--serif);color:#7d705c;text-align:right}.thread-date small{display:block;font:10px/1.6 var(--serif);color:#9a9284}.thread-timeline .thread-fragment-open{border-bottom:1px solid #ded9cd;padding:17px 42px 17px 10px;gap:18px}.thread-timeline .thread-fragment-copy>strong{-webkit-line-clamp:2;font-size:14px}.thread-timeline .thread-fragment-open>img{width:28px;height:48px}.thread-timeline .thread-paper-mark{width:28px;min-height:37px;font-size:14px}.thread-timeline .thread-hex{width:28px;height:31px;gap:3px}.thread-timeline .thread-select{top:27px}.thread-bottom-actions{display:flex;gap:26px;justify-content:center;border-top:1px solid #d4cfc4;padding-top:12px;font-size:12px;color:#8b7a63}.thread-bottom-actions button{padding-inline:0}
.thread-tree{padding:32px 0 16px}.thread-tree-root{display:flex;flex-direction:column;align-items:center;width:max-content;max-width:100%;margin:0 auto 35px;padding:14px 30px;border:1px solid #c4cbb6;background:#e4e8dc;border-radius:5px;position:relative}.thread-tree-root>span{font-size:18px}.thread-tree-root>small{font-size:10px;color:#7f886d;margin-top:2px}.thread-tree-root:after{content:'';height:35px;width:1px;position:absolute;bottom:-36px;left:50%;background:#bbc4ad}.thread-tree-branches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;border-top:1px solid #bbc4ad;padding-top:27px}.thread-tree-branch{min-width:0;position:relative;border:1px solid #d5d3c4;background:#f6f4ed;border-radius:5px}.thread-tree-branch:before,.thread-branch-add:before{content:'';position:absolute;top:-28px;left:50%;height:27px;width:1px;background:#bbc4ad}.thread-tree-branch>a{display:block;padding:18px;position:relative}.thread-tree-branch small{font-size:10px;color:#7e806d}.thread-tree-branch h3{font-size:18px;margin-top:6px}.thread-tree-branch p{font-size:12px;color:#8b8171;line-height:1.85;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:10px 0 17px}.thread-branch-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:#8b7d66}.thread-branch-footer b{font-weight:400}.thread-branch-dot{position:absolute;right:15px;top:23px;width:6px;height:6px;border-radius:50%;background:#b1b994}.thread-tree-branch>.thread-quiet{display:block;width:100%;border-top:1px solid #d5d3c4;color:#6a7953}.thread-branch-add{position:relative;min-height:90px;border:1px dashed #cbc5b5;border-radius:5px;font-size:13px;color:#93856e}.thread-branch-tray{padding-top:22px;border-top:1px solid #d4cfc4;margin-top:20px}.thread-branch-tray .thread-fragments{grid-template-columns:repeat(3,minmax(0,1fr))}.thread-branch-tray .thread-fragment{min-height:100px}
.thread-drop-hover{border-color:#6e8053!important;background:#dce4ce!important;outline:2px solid #9caa87;outline-offset:3px;transform:translateY(-3px)}.thread-drag-source{opacity:.35}.thread-dragging .thread-event-target,.thread-dragging .thread-tree-branch,.thread-dragging .thread-new-target{outline:1px dashed #adba95;outline-offset:3px}.thread-drag-ghost{position:fixed;left:0;top:0;max-width:190px;background:#faf8f0;border:1px solid #89966f;padding:14px 18px;border-radius:5px;pointer-events:none;z-index:200;font:13px/1.7 var(--serif);box-shadow:0 6px 18px #342e1912;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.just-received{animation:thread-receive .5s ease-out}@keyframes thread-receive{0%{transform:scale(.96)}65%{transform:scale(1.015)}100%{transform:scale(1)}}
[data-thread-form]{display:grid;gap:20px}[data-thread-form] label{font-size:13px}[data-thread-form] textarea{font:15px/1.9 var(--serif);width:100%;margin-top:0;min-height:130px}[data-thread-form] .thread-sr{font-size:0}[data-thread-form] .thread-primary{justify-self:end}[data-thread-form] blockquote{border-left:2px solid #a8b193;margin:0;padding:8px 17px;color:#7f806c;font-size:13px}.thread-form-context{font-size:13px;margin:0;color:#7c7e6c}.thread-record-detail{font-size:14px;line-height:1.9}.thread-record-detail h3{font-size:15px;margin:20px 0 8px}.thread-note-text{white-space:pre-wrap;font-size:17px;line-height:2.05;overflow-wrap:anywhere}.thread-original-text{font-size:13px;color:var(--muted);white-space:pre-wrap;margin-top:16px}.thread-card-preview{display:flex;justify-content:center;gap:20px;overflow:auto;margin:22px 0}.thread-card-preview figure{margin:0;flex:none;text-align:center}.thread-card-preview img{width:87px;max-height:150px;object-fit:contain;border-radius:3px}.thread-card-preview .reversed{transform:rotate(180deg)}.thread-card-preview figcaption{font-size:10px;color:#857960;margin-top:8px}.thread-hex-preview{display:flex;align-items:center;justify-content:center;gap:24px;margin:25px 0}.thread-hex-preview>.thread-hex{width:65px;height:57px}.thread-original-link{display:block;padding:13px 0;text-align:center;color:var(--accent);font-size:13px}.thread-record-links{border-top:1px solid var(--line);margin-top:20px;padding-top:13px;display:flex;flex-wrap:wrap;gap:12px;font-size:12px;color:var(--green)}.thread-dialog-actions{display:flex;align-items:center;gap:18px;margin-top:20px;flex-wrap:wrap}.thread-dialog-actions .thread-primary{margin-left:auto}.thread-place{display:flex;justify-content:space-between;align-items:center;text-align:left;gap:18px;width:100%;border-bottom:1px solid var(--line);padding:16px 4px;font-size:15px}.thread-place small{display:block;font-size:11px;color:var(--muted);margin-top:2px}.thread-place>b{color:#928268;font:22px Georgia,serif;font-weight:400}.thread-place-new{margin-top:12px;font-size:14px;min-height:48px;color:var(--accent)}.thread-keep{display:flex;align-items:center;gap:10px;font-size:12px!important;margin-top:15px;color:var(--muted)}.thread-keep input{flex:none;margin:0}.thread-menu-list{display:grid}.thread-menu-list button,.thread-menu-list a{display:block;width:100%;text-align:left;border-bottom:1px solid var(--line);padding:14px 3px;font-size:14px;min-height:48px;color:var(--ink)}
@media(max-width:1120px){.thread-pool-layout{grid-template-columns:minmax(0,1fr) 210px;gap:22px}.thread-fragments{grid-template-columns:1fr}.thread-things{grid-template-columns:repeat(2,minmax(0,1fr))}.thread-tree-branches{gap:12px}.thread-tree-branch>a{padding:14px}.thread-tree-branch h3{font-size:16px}.thread-branch-tray .thread-fragments{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){body.thread-page .workspace{padding-inline:20px}body.thread-page main{margin-top:12px}.thread-heading{margin:9px 0 12px}.thread-heading h1{font-size:32px}.thread-kicker{font-size:10px;margin-bottom:4px}.thread-heading>.thread-primary{padding:8px 13px;font-size:12px}.thread-tools{gap:22px;padding-bottom:8px;font-size:12px}.thread-tools span{display:none}.thread-tabs{gap:24px;min-height:47px}.thread-tabs>a{font-size:16px;min-height:47px}.thread-tabs>.thread-all-draws{font-size:10px}.thread-controls{margin:11px 0 15px;gap:24px}.thread-search{max-width:230px}.thread-search input{font-size:12px;min-height:38px}.thread-pool-layout{display:flex;flex-direction:column;gap:15px}.thread-destinations{order:-1}.thread-small-heading{margin-bottom:7px}.thread-small-heading h2{font-size:12px}.thread-small-heading .thread-plus{min-height:25px}.thread-targets{display:flex;overflow-x:auto;gap:10px;padding:3px 1px 8px;scroll-snap-type:x proximity;scrollbar-width:thin}.thread-targets .thread-event-target{min-width:185px;max-width:210px;flex-shrink:0;scroll-snap-align:start}.thread-event-target>a{padding:12px 14px}.thread-targets .thread-event-target h3{font-size:16px;margin-top:3px}.thread-targets .thread-event-target p{display:none}.thread-targets .thread-event-target a>span{margin-top:8px}.thread-targets .thread-event-target small{font-size:9px}.thread-new-target{min-width:113px;font-size:11px}.thread-new-target span{display:block;margin-right:0;font-size:20px}.thread-filter{margin-bottom:9px}.thread-fragments{grid-template-columns:1fr;gap:9px}.thread-fragment{min-height:88px}.thread-fragment-open{padding:12px 38px 12px 12px;gap:14px}.thread-fragment-copy>strong{font-size:14px;line-height:1.7}.thread-fragment-copy>small{font-size:10px}.thread-mini-card{width:29px;height:49px}.thread-paper-mark{width:29px;min-height:39px;font-size:15px}.thread-hex{width:29px;height:34px}.thread-select{width:38px;min-height:44px;top:0;right:0}.thread-owner{font-size:10px}.thread-things{grid-template-columns:1fr;gap:5px}.thread-things .thread-event-target h3{font-size:20px}.thread-things .thread-event-target p{font-size:12px}.thread-selection{bottom:79px;gap:14px;margin-top:14px;padding:8px 11px}.thread-selection>span{font-size:12px}.thread-selection .thread-primary{font-size:12px;padding:8px 15px}.thread-undo{font-size:11px;padding:5px 11px}.thread-detail .thread-heading h1{font-size:28px}.thread-detail .thread-heading{gap:10px;margin:9px 0 3px}.thread-period{margin-bottom:14px;font-size:11px}.thread-latest{padding:9px 13px;margin:18px 0 14px;gap:11px}.thread-latest button{font-size:12px}.thread-detail .thread-tabs{gap:22px}.thread-tab-actions{gap:3px}.thread-tab-actions .thread-quiet{font-size:11px;padding-inline:5px}.thread-tab-actions .thread-primary{font-size:11px;padding:6px 9px}.thread-timeline{margin:13px 0}.thread-timeline .thread-fragment{padding-left:50px;min-height:93px}.thread-timeline .thread-fragment:before{left:41px}.thread-timeline .thread-fragment:after{left:38px;top:41px}.thread-date{font-size:13px;left:0;width:29px;top:30px}.thread-date small{font-size:8px}.thread-timeline .thread-fragment-open{gap:12px;padding:15px 32px 15px 9px}.thread-timeline .thread-fragment-copy>strong{font-size:13px}.thread-timeline .thread-select{top:25px;width:31px}.thread-bottom-actions{gap:23px;font-size:11px}.thread-tree{padding-top:23px}.thread-tree-root{margin:0 0 26px 25px;padding:11px 19px;align-items:start}.thread-tree-root>span{font-size:16px}.thread-tree-root:after{left:18px;height:26px;bottom:-27px}.thread-tree-branches{grid-template-columns:1fr;margin-left:43px;border-top:0;border-left:1px solid #bbc4ad;padding:0 0 0 21px;gap:15px}.thread-tree-branch:before,.thread-branch-add:before{height:1px;width:21px;top:32px;left:-22px}.thread-tree-branch>a{padding:14px}.thread-tree-branch h3{font-size:17px;margin-top:3px}.thread-tree-branch p{font-size:11px;margin:6px 0 9px}.thread-branch-footer{font-size:10px}.thread-branch-add{min-height:63px;text-align:left;padding:14px;font-size:12px}.thread-branch-tray{padding-top:15px;margin-top:10px}.thread-branch-tray .thread-fragments{grid-template-columns:1fr}.thread-branch-tray .thread-fragment{min-height:88px}}
@media(max-width:360px){body.thread-page .workspace{padding-inline:15px}.thread-tabs{gap:17px}.thread-tabs>a{font-size:15px}.thread-tabs>.thread-all-draws{font-size:9px}.thread-detail .thread-tabs{gap:13px}.thread-tab-actions{gap:1px}.thread-tab-actions .thread-primary{padding-inline:7px}.thread-heading h1{font-size:29px}.thread-timeline .thread-fragment-copy>strong{font-size:12px}.thread-timeline .thread-fragment-open{gap:9px}.thread-timeline .thread-paper-mark,.thread-timeline .thread-fragment-open>img{width:24px}}
@media(prefers-reduced-motion:reduce){.thread-fragment,.thread-event-target,.just-received{animation:none!important;transition:none!important}}
body.thread-page main.fade-in{animation:none}
@media(max-width:700px){body.thread-page .topbar{min-height:39px}body.thread-page .prototype-note{min-height:24px}body.thread-page main{margin-top:8px}.thread-heading{margin:6px 0 9px}.thread-heading h1{font-size:29px}.thread-kicker{font-size:9px;margin-bottom:2px}.thread-tools{padding-bottom:3px}.thread-tools button,.thread-tools a{min-height:28px}.thread-tabs,.thread-tabs>a{min-height:42px}.thread-controls{margin:7px 0 10px}.thread-controls>.thread-quiet{min-height:35px}.thread-search input{min-height:35px}.thread-small-heading{margin-bottom:2px}.thread-targets .thread-event-target{min-width:168px}.thread-targets .thread-event-target>a{padding:10px 12px}.thread-targets .thread-event-target small{display:none}.thread-targets .thread-event-target h3{font-size:15px;margin:0}.thread-targets .thread-event-target a>span{margin-top:5px;font-size:9px}.thread-targets{scrollbar-width:none;padding-bottom:4px}.thread-targets::-webkit-scrollbar{display:none}.thread-pool-layout{gap:11px}.thread-filter{margin-bottom:5px}.thread-fragment{min-height:80px}.thread-fragment-open{padding-block:10px}.thread-owner{font-size:9px}.thread-tree-branch p{-webkit-line-clamp:2}}
.thread-tree-branches{align-items:start}.thread-expand{width:100%;border-top:1px solid #ddd8ca;text-align:left;font-size:11px;color:#8b7c65;padding:9px 18px;min-height:38px}.thread-expand:after{content:'＋';float:right}.thread-expand[aria-expanded=true]:after{content:'−'}.thread-expanded-records{padding:6px 10px 12px}.thread-expanded-records .thread-fragment{background:transparent;border:0;border-bottom:1px solid #ded9cd;border-radius:0;min-height:75px}.thread-expanded-records .thread-fragment-open{padding:10px 25px 10px 0;gap:10px}.thread-expanded-records .thread-fragment-copy>strong{font-size:12px}.thread-expanded-records .thread-fragment-copy>small{font-size:9px}.thread-expanded-records .thread-owner{display:none}.thread-expanded-records .thread-mini-card,.thread-expanded-records .thread-paper-mark{width:23px}.thread-expanded-records .thread-mini-card{height:39px}.thread-expanded-records .thread-paper-mark{min-height:33px;font-size:12px}.thread-expanded-records .thread-select{width:23px;font-size:17px}.thread-expanded-records>a{display:block;font-size:11px;text-align:center;color:var(--accent);padding:9px}
/* Bounded views keep a large collection readable without a growing canvas. */
.thread-branch-browser{margin:15px 0 0}.thread-branch-controls{display:flex;align-items:center;justify-content:space-between;gap:16px}.thread-branch-controls .thread-search{max-width:330px;flex:1;min-width:0}.thread-branch-controls>button{font-size:12px;white-space:nowrap}.thread-branch-filters{display:flex;gap:21px;margin-top:8px;border-bottom:1px solid var(--line)}.thread-branch-filters button{font:12px/1.6 var(--serif);min-height:37px;color:var(--muted);padding:6px 0;border-bottom:2px solid transparent}.thread-branch-filters button[aria-pressed=true]{color:var(--accent);border-color:var(--accent)}.thread-branch-filters small{font-size:10px;margin-left:5px;opacity:.7}.thread-tree-paged{padding:22px 0 5px}.thread-tree-paged .thread-tree-root{margin-bottom:27px;padding:10px 25px}.thread-tree-paged .thread-tree-root:after{height:27px;bottom:-28px}.thread-tree-paged .thread-tree-branches{grid-template-columns:repeat(var(--branch-columns),minmax(0,1fr))}.thread-tree-paged .thread-tree-branch h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.thread-tree-paged .thread-tree-branch>a:first-child{padding:13px 16px}.thread-tree-paged .thread-tree-branch p{margin:6px 0 9px;-webkit-line-clamp:1}.thread-child-link{font-size:11px!important;min-height:33px;padding:5px 16px!important;border-top:1px solid var(--line);color:var(--green)}.thread-branch-dot.closed{background:#bab3a6}.thread-pager{display:flex;align-items:center;justify-content:center;gap:30px;margin:12px 0 3px;min-height:42px;color:var(--muted);font-size:12px}.thread-pager button{min-height:42px;font:12px var(--serif);color:var(--accent);padding:7px 10px}.thread-pager button:disabled{opacity:.3}.thread-pager>span{text-align:center;font:13px/1.6 Georgia,var(--serif)}.thread-pager small{display:block;font:10px/1.6 var(--serif);color:var(--muted)}.thread-tray-fold{margin-top:12px;padding-top:0}.thread-tray-fold>summary{font:13px/1.8 var(--serif);cursor:pointer;min-height:44px;padding:13px 0;color:var(--muted)}.thread-tray-fold>summary span{font:12px Georgia,serif;margin-left:6px}.thread-tray-fold .thread-small-heading{margin-bottom:8px}.thread-tray-fold .thread-small-heading a{font-size:12px}.thread-things .thread-event-target h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.thread-things .thread-event-target p{-webkit-line-clamp:1}
@media(max-width:700px){.thread-branch-browser{margin-top:10px}.thread-branch-controls{gap:10px}.thread-branch-controls .thread-search{max-width:none}.thread-branch-controls .thread-search input{font-size:11px}.thread-branch-controls>button{font-size:11px;padding-inline:0}.thread-branch-filters{gap:25px;margin-top:2px}.thread-branch-filters button{font-size:11px;min-height:34px}.thread-tree-paged{padding-top:15px}.thread-tree-paged .thread-tree-root{margin-left:7px;margin-bottom:16px;padding:7px 14px}.thread-tree-paged .thread-tree-root>span{font-size:14px}.thread-tree-paged .thread-tree-root:after{height:16px;bottom:-17px;left:15px}.thread-tree-paged .thread-tree-branches{grid-template-columns:1fr;gap:10px;margin-left:22px;padding-left:17px}.thread-tree-paged .thread-tree-branch:before{left:-18px;width:17px;top:29px}.thread-tree-paged .thread-tree-branch>a:first-child{padding:9px 12px}.thread-tree-paged .thread-tree-branch>a>small{display:none}.thread-tree-paged .thread-tree-branch h3{font-size:15px;line-height:1.65;margin:0;padding-right:10px}.thread-tree-paged .thread-tree-branch p{font-size:10px;line-height:1.6;margin:3px 0 5px}.thread-tree-paged .thread-branch-dot{right:11px;top:17px;width:5px;height:5px}.thread-tree-paged .thread-branch-footer{font-size:9px}.thread-tree-paged .thread-expand{min-height:30px;font-size:10px;padding:5px 12px}.thread-child-link{min-height:29px;font-size:10px!important;padding:4px 12px!important}.thread-tree-paged .thread-pager{margin-top:5px;min-height:36px}.thread-tree-paged .thread-pager button{min-height:38px;font-size:11px}.thread-tray-fold{margin-top:6px}.thread-tray-fold>summary{padding:8px 0;min-height:38px;font-size:11px}.thread-detail .thread-period{margin-bottom:8px}}
@media(max-width:700px){.thread-tree-paged .thread-tree-branch p{display:none}.thread-tree-paged .thread-branch-footer{margin-top:5px}}
@media(max-width:700px){.thread-tree-paged .thread-tree-root{display:none}}
/* Search scopes stay within their own module. */
.thread-search-controls{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px 16px}.thread-search-controls .thread-search{max-width:420px;min-width:0}.thread-search-controls .thread-search input{width:100%;min-width:0}.thread-search-controls>.thread-quiet{grid-column:3;grid-row:1}.thread-date-trigger{color:var(--muted);font-size:12px;min-height:40px;padding:6px 10px;white-space:nowrap;border:1px solid var(--line);border-radius:5px}.thread-date-trigger.active{color:var(--accent);grid-column:1/-1;grid-row:2;justify-self:start;max-width:100%;white-space:normal;text-align:left}.thread-search-summary{display:flex;justify-content:space-between;align-items:center;margin:-8px 0 8px;font-size:12px;color:var(--muted)}.thread-search-summary button{min-height:36px;font-size:11px}.thread-destinations[hidden]{display:none}.thread-pool-layout:has(>.thread-destinations[hidden]){grid-template-columns:1fr}.thread-date-form{display:flex;flex-direction:column;gap:20px}.thread-date-presets{display:flex;gap:6px;flex-wrap:wrap}.thread-date-presets button{font-size:12px;min-height:40px;padding:7px 10px;border:1px solid var(--line);border-radius:5px}.thread-date-modes{display:flex;gap:26px;border-bottom:1px solid var(--line)}.thread-date-modes button{padding:9px 0;font-size:15px;border-bottom:2px solid transparent;min-height:42px;color:var(--muted)}.thread-date-modes button[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}.thread-date-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.thread-date-form label{min-width:0;font-size:13px;display:flex;flex-direction:column;gap:8px}.thread-date-form input{width:100%;min-width:0;max-width:100%;font-family:var(--serif);font-size:16px;box-sizing:border-box;min-height:46px}.thread-date-error{color:var(--accent);font-size:13px;margin:0}.thread-date-form>.thread-primary{align-self:flex-end}.thread-date-error[hidden]{display:none}
@media(max-width:700px){.thread-search-controls{gap:8px}.thread-search-controls .thread-search input{font-size:13px}.thread-date-trigger{font-size:12px}.thread-search-summary{margin:-3px 0 4px}.thread-date-fields{grid-template-columns:1fr;gap:14px}}
/* The default record screen is for reading; controls appear in context. */
.record-browser{max-width:920px}.record-browser .thread-heading{margin-bottom:10px}.record-list-menu{font-size:25px;color:var(--muted);min-width:44px;min-height:44px}.record-search-row{display:flex;gap:16px;margin:12px 0 6px}.record-search-row .thread-search{max-width:none;min-width:0;flex:1}.record-search-row .thread-search input{width:100%;min-width:0;font-size:14px}.record-control{font:13px var(--serif);white-space:nowrap;min-height:44px;color:var(--muted)}.record-control.active{color:var(--accent)}.record-active-filters{display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);border-bottom:1px solid var(--line)}.record-active-filters>span{min-width:0;overflow-wrap:anywhere}.record-active-filters>button{flex-shrink:0}.record-browser .thread-pool-layout{display:block}.record-browser .thread-fragments{display:flex;flex-direction:column;gap:0}.record-browser .thread-fragment{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;min-height:96px;box-shadow:none}.record-browser .thread-fragment-open{padding:16px 4px;gap:16px}.record-browser .thread-fragment-copy>strong{font-size:16px;line-height:1.7;-webkit-line-clamp:2}.record-browser .thread-mini-card{height:53px;width:32px;object-fit:contain}.record-browser .thread-paper-mark{border:0;background:none;font-size:17px}.record-browser .thread-brief{display:none}.record-row-menu{align-self:center;flex-shrink:0;font-size:19px;color:var(--muted);width:40px;min-height:44px;padding:0}.record-drop-dock{display:none!important}.thread-dragging .record-drop-dock{display:block!important;position:fixed;z-index:42;left:50%;bottom:170px;transform:translateX(-50%);width:min(600px,calc(100vw - 32px));padding:12px;background:var(--paper,#f5f1e8);border:1px solid var(--line);border-radius:5px}.record-drop-dock .thread-targets{display:flex;overflow:auto;gap:8px}.record-drop-dock .thread-event-target{flex:0 0 160px}.record-drop-dock .thread-event-target>a{padding:10px}.record-drop-dock .thread-event-target p,.record-drop-dock .thread-event-target small{display:none}.record-drop-dock h3{font-size:14px;margin:0}.record-drop-dock .thread-event-target span{font-size:10px;margin-top:3px}.record-drop-dock .thread-small-heading{margin:0 0 5px}.record-drop-dock h2{font-size:12px;margin:0}.record-drop-dock .thread-plus{min-height:30px;font-size:11px}.record-selection{position:fixed;bottom:64px;z-index:43;left:50%;transform:translateX(-50%);width:min(600px,calc(100vw - 32px));box-sizing:border-box;display:block;background:var(--paper,#f5f1e8);border:1px solid var(--line);padding:8px 14px;border-radius:5px}.record-selection>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.record-selection>div:first-child{font-size:12px}.record-selection>div:last-child{justify-content:flex-end}.record-selection button{min-height:38px;font-size:12px}.record-selection button:disabled{opacity:.35;cursor:default}.record-selection>div:first-child>span{margin-right:auto}.record-browser.record-selecting{padding-bottom:110px}.record-danger{background:#865843;color:#fffdf5;border:1px solid #865843;border-radius:5px;min-height:42px;padding:8px 18px;font:13px var(--serif)}.record-danger-text{color:#865843;font:12px var(--serif);min-height:44px}.record-confirm-actions{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:16px}.record-confirm-actions a{margin-right:auto;font-size:13px}.record-delete-confirm p{font-size:14px;line-height:1.9}.record-delete-confirm ul{margin:18px 0;padding-left:20px;font-size:13px;line-height:1.8;max-height:27dvh;overflow:auto}.record-delete-confirm li{margin:8px 0;overflow-wrap:anywhere}.record-trash-row{display:flex;align-items:center;gap:20px;padding:16px 0;border-bottom:1px solid var(--line)}.record-trash-row>div{flex:1;min-width:0}.record-trash-row small{color:var(--muted);font-size:11px}.record-trash-row p{font-size:15px;line-height:1.8;margin:6px 0;overflow-wrap:anywhere}.record-trash-detail h1{font-size:26px;font-weight:400;margin:30px 0 16px}.record-trash-detail p{font-size:15px;line-height:1.8;overflow-wrap:anywhere}.record-delete-undo{z-index:45}.record-filter-form fieldset{border:0;margin:0 0 24px;padding:0;display:flex;gap:12px;flex-wrap:wrap}.record-filter-form legend{font-size:13px;color:var(--muted);margin-bottom:12px}.record-filter-form label{display:flex;align-items:center;gap:5px;font-size:14px;border:1px solid var(--line);border-radius:5px;padding:10px 12px;cursor:pointer}.record-filter-form label:has(input:checked){border-color:var(--accent);background:#ede7dc}.record-filter-form input{width:auto;margin:0;accent-color:var(--accent)}.record-tool-lookup{font-size:13px}.workspace-ask{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:14px 0;gap:16px}.workspace-ask h2{font-size:17px;font-weight:400;margin:0}.workspace-ask>div{display:flex;gap:24px}.workspace-ask button{min-height:38px;font-size:14px}.record-pending:empty{display:none}
@media(min-width:701px){.record-selection{bottom:20px}.thread-dragging .record-drop-dock{bottom:127px}.record-browser .thread-fragment-copy>strong{font-size:17px}}
@media(max-width:700px){.record-browser .thread-heading h1{font-size:30px}.record-browser .thread-heading{margin:8px 0 6px}.record-browser .thread-tabs{min-height:43px}.record-browser .thread-fragment{min-height:100px}.record-browser .thread-fragment-open{padding:14px 2px;gap:12px}.record-search-row{gap:16px;margin:8px 0 2px}.record-browser .thread-owner{font-size:10px}.record-browser .thread-fragment-copy>small{font-size:11px}.record-browser .thread-hex{width:32px}.record-browser .thread-fragment-copy>strong{font-size:16px}.record-selection{bottom:64px}.record-filter-form label{font-size:14px}.record-selection .thread-quiet{padding-inline:5px}.record-browser .thread-select{opacity:1;min-width:40px}}

.record-browser .thread-select{position:static;align-self:center;flex:none;min-height:44px;width:40px;background:transparent;border:0;font-size:22px}.record-browser .thread-fragment.selected{background:#e8e9df70}.record-drop-dock h2{margin-bottom:8px}.record-drop-dock .thread-targets>button{flex:none;min-height:44px;max-width:220px;padding:9px 14px;border:1px solid #cbd1bf;border-radius:4px;background:#e8e9df;font:14px var(--serif);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.record-drop-dock .thread-targets>.thread-drop-hover{background:#d6ddc9;border-color:#778465;box-shadow:inset 0 0 0 1px #778465}

.record-delete-undo{position:fixed;bottom:82px;left:50%;transform:translateX(-50%);width:min(440px,calc(100vw - 32px));box-sizing:border-box;margin:0;z-index:45;box-shadow:0 3px 14px #302b1714}.record-delete-undo>span{margin-right:auto}.record-delete-undo [data-manage=dismiss]{text-decoration:none;min-width:30px;font-size:19px}@media(min-width:701px){.record-delete-undo{bottom:24px}}

/* Bounded destination browsing, with separate exits for dragging and selection. */
.record-selection .record-selection-close{font:26px/1 Georgia,serif;min-width:44px;min-height:44px;color:var(--muted);margin-right:-8px}
.record-drop-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.record-drop-head h2{margin:0}
.record-drop-head button{min-width:44px;min-height:44px;font:26px Georgia,serif;color:var(--muted)}
.record-drop-dock .thread-targets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:6px}
.record-drop-dock .thread-targets>button{max-width:none;min-width:0;width:100%;text-align:left;font-size:12px}
.record-drop-dock [data-drop-more]{background:transparent!important;border-style:dashed!important}
.record-drop-dock [data-drop-cancel].thread-drop-hover{background:#efe2db;color:var(--accent);border-radius:4px}
.record-browser:not(.record-selecting) .record-drop-dock{bottom:80px}
.place-browser{display:flex;flex-direction:column;gap:10px;min-width:0}
.place-search{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);min-width:0;color:var(--muted)}
.place-search input{width:100%;min-width:0;border:0;border-radius:0;background:transparent;min-height:44px;padding:8px 0;font:15px var(--serif)}
.place-location{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;color:var(--muted);font-size:12px}
.place-location>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.place-location button{min-height:40px;max-width:65%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--accent);padding-inline:0}
.place-results{max-height:min(330px,max(80px,calc(100dvh - 340px)));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.place-result{display:flex;align-items:stretch;border-bottom:1px solid var(--line);min-width:0;min-height:58px}
.place-choose{flex:1;min-width:0;text-align:left;padding:10px 4px;font-family:var(--serif)}
.place-choose strong{display:block;font-size:15px;font-weight:400;line-height:1.7;overflow-wrap:anywhere}
.place-choose small{display:block;font-size:10px;color:var(--muted);line-height:1.7;overflow-wrap:anywhere}
.place-choose small:empty{display:none}
.place-enter{flex:none;min-width:76px;padding:8px 0 8px 10px;font:11px var(--serif);color:var(--accent)}
.place-plus{display:grid;place-items:center;width:28px;flex:none;pointer-events:none;color:var(--muted)}
.place-browser-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:8px}
.place-browser-footer .thread-keep{margin:0;font-size:11px!important;gap:7px;min-height:40px}
.place-browser-footer .thread-place-new{font-size:12px;padding:8px 0;min-height:40px;border:0}
.place-browser .thread-pager{gap:18px;margin:6px 0 0}
#dialog:has(.place-browser) .dialog-head{position:sticky;top:0;background:var(--paper);z-index:2}
#dialog:has(.place-browser) .dialog-body{padding-top:10px}
@media(min-width:701px){.record-browser:not(.record-selecting) .record-drop-dock{bottom:22px}}
@media(max-width:700px){#dialog:has(.place-browser) .dialog-head{padding:16px 20px 0}#dialog:has(.place-browser) .dialog-body{padding:10px 20px 16px}.place-browser .thread-empty{padding:24px 4px}.record-drop-dock{padding:8px 10px!important}}

.thread-event-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:14px 0 12px}
.thread-event-actions>div{display:flex;gap:24px}
.thread-event-actions button{min-height:44px;font-size:14px}
.thread-event-actions>div button{color:var(--accent);padding-inline:0}
.thread-branch-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:4px 0}
.thread-branch-actions button{min-height:44px;font:13px var(--serif);padding-inline:0;color:var(--accent)}
.thread-branch-controls .thread-search{max-width:none}
.choice-compare-list{max-height:min(330px,max(90px,calc(100dvh - 350px)));overflow-y:auto;overscroll-behavior:contain}
.choice-compare-list label{display:flex;align-items:center;gap:12px;min-height:56px;padding:9px 0;border-bottom:1px solid var(--line);font:14px/1.7 var(--serif);cursor:pointer}
.choice-compare-list input{flex:none;width:18px;height:18px;accent-color:var(--accent)}
.choice-compare-list span{min-width:0;overflow-wrap:anywhere}
.choice-compare-list small{display:block;font-size:10px;color:var(--muted)}
.choice-compare-selected{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.choice-compare-selected:empty{display:none}
.choice-selected-chip{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#e8e9df;border:1px solid #cbd1bf;border-radius:4px;min-height:34px;padding:6px 9px;font:12px var(--serif)}
.choice-compare-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}
.choice-compare-footer>span{display:grid;gap:3px;font:13px var(--serif)}
.choice-compare-footer small{font-size:11px;color:var(--muted)}
.choice-compare-footer button:disabled{opacity:.4;cursor:default}
#choice-start-form>input{font:15px var(--serif);width:100%;min-width:0;min-height:44px}
#dialog:has(#choice-start-form) .dialog-head{position:sticky;top:0;background:var(--paper);z-index:2}
@media(max-width:700px){.thread-event-actions{margin:10px 0 8px}.thread-event-actions>div{gap:18px}.thread-event-actions button{font-size:13px}.thread-branch-actions{margin:0}.thread-branch-actions button{font-size:12px}.thread-detail .thread-tabs{gap:28px}}

.choice-compare-selected{max-height:82px;overflow:auto;overscroll-behavior:contain}
/* The current thing is the parent node on every screen size. */
.thread-hierarchy .thread-root-records{margin:14px 0 0;padding:0;border:1px solid #c4cbb6;border-radius:5px;background:#e9ebdf}
.thread-root-records>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 16px;align-items:center;list-style:none;padding:12px 16px;min-height:68px;color:var(--ink)}
.thread-root-records>summary::-webkit-details-marker{display:none}.thread-root-records>summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.thread-root-records>summary>strong{grid-column:1;font:17px/1.55 var(--serif);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.thread-root-records>summary>small{grid-column:1;font:11px/1.6 var(--serif);color:var(--muted)}
.thread-root-records>summary:after{content:'⌄';grid-column:2;grid-row:1/3;align-self:center;color:var(--muted)}.thread-root-records[open]>summary:after{transform:rotate(180deg)}
.thread-root-records[open]>summary{border-bottom:1px solid #d3d7c7}.thread-root-record-body{padding:6px 14px 12px;background:var(--paper,#f5f1e8)}
.thread-root-record-body .thread-small-heading{margin:0}.thread-root-record-body .thread-small-heading button{font:12px var(--serif);min-height:36px}.thread-root-record-body .thread-empty{font-size:13px}
.thread-root-record-body .thread-root-fragments{display:flex;flex-direction:column;gap:0}.thread-root-fragments .thread-fragment{border:0;border-bottom:1px solid var(--line);background:transparent;border-radius:0;min-height:78px}
.thread-root-fragments .thread-fragment-open{padding:10px 0;gap:12px}.thread-root-fragments .thread-fragment-copy>strong{font:14px/1.75 var(--serif);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.thread-root-fragments .thread-fragment-copy>small{font-size:10px}.thread-root-fragments .thread-owner,.thread-root-fragments .thread-brief{display:none}.thread-root-fragments .thread-mini-card{width:28px;height:47px}.thread-root-fragments .thread-paper-mark{width:28px;min-height:38px;font-size:14px}.thread-root-record-body .thread-pager{margin:4px 0 0}
.thread-children-group{margin-left:20px;padding:12px 0 0 18px;border-left:1px solid #bbc4ad}.thread-children-group>.thread-branch-browser{margin:0}.thread-children-group>.thread-tree-paged{padding:16px 0 5px}
@media(max-width:700px){.thread-root-records>summary{padding:10px 14px}.thread-root-records>summary>strong{font-size:16px}.thread-root-record-body{padding-inline:12px}.thread-children-group{margin-left:16px;padding-left:15px}.thread-children-group .thread-tree-branches{margin-left:0;padding-left:0;border-left:0}.thread-children-group .thread-tree-branch:before{left:-16px;width:15px}.thread-children-group .thread-branch-actions{gap:12px}.thread-root-fragments .record-row-menu{width:30px}.thread-root-record-body .thread-root-fragments .thread-fragment{min-height:78px}}
.thread-children-group>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:4px 0 8px;cursor:pointer;font:13px/1.6 var(--serif);color:var(--muted)}
.thread-children-group>summary::-webkit-details-marker{display:none}.thread-children-group>summary:after{content:'⌄';display:block}.thread-children-group[open]>summary:after{transform:rotate(180deg)}.thread-children-group>summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.thread-children-group:not([open]){padding-top:5px;padding-bottom:0}.thread-children-group:not([open])>summary{padding-block:6px}
.thread-drag-grip{display:grid;place-items:center;flex:0 0 24px;align-self:stretch;color:#a79b87;font:16px/1 Georgia,serif;letter-spacing:-5px;cursor:grab;user-select:none;touch-action:none}.thread-fragment:active .thread-drag-grip{cursor:grabbing}.thread-fragment-open{flex:1;min-width:0}.drop-link-summary{display:grid;gap:10px;border-bottom:1px solid var(--line);padding-bottom:12px}.drop-link-summary p{margin:0;font-size:13px;line-height:1.8;overflow-wrap:anywhere}.drop-link-summary strong{font-weight:400;color:var(--muted);font-size:11px}.drop-link-note,.drop-link-hint{display:block;margin:8px 0 0;color:var(--muted);font-size:12px;line-height:1.75}.drop-link-kind{margin-top:4px}.drop-link-attach{display:flex;align-items:flex-start;gap:8px;margin-top:8px;font-size:13px;line-height:1.7}.drop-link-attach input{flex:none;margin-top:5px}.drop-link-kind small{grid-column:1/-1}

/* Record search and selection controls stay close to the list. */
.record-tool-lookup-link{display:inline-flex;align-items:center;gap:6px;min-height:40px;color:var(--accent);font-size:12px;white-space:nowrap}
.record-tool-lookup-link small{font-size:10px;color:var(--muted)}
.record-menu-note{font-size:12px;line-height:1.8;color:var(--muted);margin:12px 0 2px}
.record-tool-lookup{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:18px;padding-top:15px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.record-tool-lookup span{width:100%;font-size:11px}
.record-tool-lookup a{color:var(--accent)}
.record-browser>.record-selection{position:static;left:auto;bottom:auto;transform:none;width:auto;max-width:none;margin:8px 0 14px;box-shadow:none}
.record-browser.record-selecting{padding-bottom:0}
@media(max-width:700px){.record-tool-lookup-link{font-size:11px;white-space:normal;line-height:1.5}.record-tool-lookup-link small{display:none}.record-tool-lookup{gap:10px}.record-tool-lookup a{font-size:12px}}
/* Daily review is a quiet card summary, separate from the movable record list. */
.record-daily-summary{margin:6px 0 24px;padding:20px 22px 18px;border:1px solid var(--line);border-radius:4px;background:var(--paper);min-width:0}
.record-daily-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.record-daily-head>div:first-child{min-width:0}
.record-daily-head h2{margin:0;font:22px/1.4 var(--serif);font-weight:400}
.record-daily-head p{margin:6px 0 0;color:var(--muted);font-size:11px;line-height:1.7}
.record-daily-period{display:flex;flex:none;gap:16px}
.record-daily-period button{min-height:40px;padding:0 0 5px;color:var(--muted);font:12px var(--serif);border-bottom:1px solid transparent}
.record-daily-period button.active{color:var(--accent);border-bottom-color:var(--accent)}
.record-daily-period button:focus-visible,.record-daily-cards:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.record-daily-caption{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;margin:22px 0 14px}
.record-daily-caption h3{margin:0;font:12px/1.7 var(--serif);color:var(--muted)}
.record-daily-caption>span{font-size:10px;color:var(--muted)}
.record-daily-cards{display:grid;grid-auto-flow:column;grid-auto-columns:96px;justify-content:start;gap:26px;min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent;padding:0 0 5px}
.record-daily-card{margin:0;min-width:0;text-align:center}
.record-daily-card img{display:block;width:100%;height:auto;aspect-ratio:300/514;object-fit:contain;border:1px solid #d8d2c5;border-radius:2px}
.record-daily-card figcaption{display:grid;gap:2px;margin-top:9px}
.record-daily-card strong{font:14px/1.6 var(--serif);font-weight:400;overflow-wrap:anywhere}
.record-daily-card figcaption>span{font-size:11px;line-height:1.6;color:var(--muted)}
.record-daily-empty{margin:22px 0 4px;color:var(--muted);font-size:12px;line-height:1.8}
@media(max-width:700px){.record-daily-summary{margin:3px 0 20px;padding:16px 15px 14px}.record-daily-head{gap:12px}.record-daily-head h2{font-size:21px}.record-daily-period{gap:14px}.record-daily-period button{font-size:11px;min-height:36px}.record-daily-caption{margin-top:18px;gap:3px 10px}.record-daily-cards{grid-auto-columns:82px;gap:14px}.record-daily-card strong{font-size:13px}}

/* Keep search and its independent filters readable on narrow screens. */
.record-search-row{flex-wrap:wrap;align-items:center;gap:8px 18px}
.record-search-row .thread-search{flex:1 1 260px}
.record-search-row .thread-search input{font-size:16px}
.record-control,.record-tool-lookup-link{font-size:14px;color:var(--muted);min-height:44px}
.record-tool-lookup-link{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.record-tool-lookup-link small{font-size:12px}
@media(max-width:700px){.record-search-row .thread-search{flex-basis:100%;margin:0}.record-search-row{gap:2px 20px}.record-search-row .record-tool-lookup-link{margin-left:auto}.record-search-row .record-tool-lookup-link small{display:none}}
