#folio-links::before{transform:translate(-50%,-50%) rotate(var(--dial-phase,0rad))}#folio-nav{z-index:6}
.orbit-prefs{display:flex;gap:6px 18px;flex-wrap:wrap;border:0;border-top:1px solid var(--line);padding:9px 0 0;margin:16px 0 0}.orbit-prefs legend{color:var(--muted);padding:0 6px 0 0}.orbit-prefs label{min-height:40px;display:inline-flex;align-items:center;gap:5px}
#note-dispenser{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-width:44px;min-height:42px;padding:4px;background:transparent;color:var(--mist-dim);border:0;touch-action:none;user-select:none;cursor:grab}.dispenser-text{font:13px var(--serif)}#note-dispenser:hover{color:var(--bright-metal)}#note-dispenser:active{cursor:grabbing}
.paper-stack{display:block;position:relative;width:22px;height:25px;margin:2px 1px 0;background:#bdae91;transform:rotate(-9deg);border:1px solid #867a66;box-shadow:1px 2px 2px #07070a55}.paper-stack:before,.paper-stack i{content:'';position:absolute;inset:-3px 0 2px 1px;background:#cbbfa4;border:1px solid #a99a7d;transform:rotate(12deg)}.paper-stack i{inset:-4px -2px 3px 3px;background:url('../assets/desk-vellum.webp') center/100% 100% no-repeat;border:0;transform:rotate(6deg)}#note-dispenser[data-unsaved=true] .paper-stack:after{content:'';position:absolute;right:-3px;top:-3px;width:6px;height:6px;background:#cf895e;border-radius:50%}
#note-desk{position:fixed;inset:0;z-index:5;pointer-events:none;isolation:isolate}
.desk-note{--grain-turn:-.85deg;--grain-flip:1;--note-ink:#3c3021;--note-dim:#69573f;pointer-events:auto;position:absolute;isolation:isolate;display:flex;flex-direction:column;box-sizing:border-box;width:min(216px,calc(100vw - 16px));max-height:min(68dvh,460px);padding:9px 13px 12px;color-scheme:light;color:var(--note-ink);filter:drop-shadow(1px 4px 4px #100b0966);font:14px/1.5 'Kaiti SC',KaiTi,var(--serif)}
.desk-note:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('../assets/desk-vellum.webp') center/100% 100% no-repeat;transform:rotate(var(--grain-turn)) scaleX(var(--grain-flip))}.desk-note[data-cut="1"]{--grain-turn:1.1deg;--grain-flip:-1}.desk-note[data-cut="2"]{--grain-turn:-1.3deg;--grain-flip:-1}.desk-note[data-cut="3"]{--grain-turn:.55deg}.desk-note.paper-moving{filter:drop-shadow(2px 8px 7px #110e0b75)}
.desk-note button{min-height:0;background:none;color:var(--note-dim);border:0;border-radius:3px;padding:4px;font-size:12px;touch-action:manipulation}.desk-note button:hover,.desk-note button:focus-visible{background:#705c4014;color:#352a1f}.desk-note :focus-visible{outline:1px solid #775733;outline-offset:-1px}
.note-head{display:flex;align-items:center;gap:1px;flex:none;min-width:0}.note-head .paper-grip{flex:1;min-width:0;min-height:23px;display:flex;align-items:center;gap:6px;overflow:hidden;text-align:left;cursor:grab;touch-action:none;user-select:none}.paper-grip i{flex:none;width:4px;height:4px;background:#8f795e;border-radius:50%}.paper-grip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.desk-note[data-pinned=true] .paper-grip{cursor:default}.desk-note[data-pinned=true] .paper-grip i{background:#86554a;box-shadow:0 1px 1px #70503b88}.note-head .paper-icon{display:grid;place-items:center;width:24px;height:24px;padding:4px}.paper-icon svg{pointer-events:none;width:15px;height:15px;stroke:currentColor;fill:currentColor;stroke-width:1.3;stroke-linecap:round}
.paper-body{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-color:#a99472 #e5d8b9}.paper-text{display:block;width:100%;min-height:0;height:58px;border:0;border-radius:0;padding:4px;resize:none;background:transparent;color:var(--note-ink);font:16px/1.5 'Kaiti SC',KaiTi,var(--serif)}.paper-text:focus,.paper-text:focus-visible{outline:none;box-shadow:none}.desk-note textarea::placeholder,.desk-note input::placeholder{color:#73644f}
.desk-note .paper-summary{display:block;width:100%;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:1px 4px;font-size:12px;color:#65523c}.paper-summary:before{content:'↗';margin-right:4px}.paper-drawer{margin-top:4px;padding:6px 1px 1px;border-top:1px solid #b4a18799}.paper-menu,.paper-tools{display:flex;gap:2px 6px;flex-wrap:wrap}.desk-note .paper-menu button,.paper-drawer>button,.paper-tools button,.paper-options button{min-height:29px}.paper-menu button[aria-pressed=true]{text-decoration:underline;text-underline-offset:3px}.paper-rename{display:flex;gap:4px}.desk-note .paper-drawer input:not([type=checkbox]){display:block;min-width:0;min-height:29px;width:100%;padding:3px 5px;background:#fff8e92b;border:1px solid #aa9576;border-radius:2px;font-size:13px;color:var(--note-ink)}
.paper-options{display:grid;max-height:132px;overflow:auto;overscroll-behavior:contain;font-size:12px}.paper-options button{text-align:left;overflow-wrap:anywhere}.paper-refs{list-style:none;padding:0;margin:0 0 6px}.paper-refs li{display:flex;align-items:baseline;gap:3px}.paper-refs details{flex:1;min-width:0;border:0;padding:3px 0}.paper-refs summary{font:13px/1.5 var(--serif);color:#5b4531}.paper-refs p{margin:2px 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.paper-notice{font:12px/1.4 system-ui,sans-serif;color:#773629}.paper-notice>button{text-decoration:underline}
.desk-note[data-folded=true]{width:38px;height:26px;padding:0;box-shadow:none}.desk-note[data-folded=true]:before{display:none}.desk-note .paper-tab{display:grid;place-items:center;width:100%;height:100%;padding:0;cursor:grab;touch-action:none;transform:rotate(-5deg);color:#726047;background:none}.desk-note .paper-tab:hover{color:#584633;background:none}.paper-tab svg{width:32px;height:22px;fill:#d6c29b;stroke:currentColor;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.desk-note[data-unsaved=true] .paper-tab:after{content:'';position:absolute;width:5px;height:5px;top:3px;right:2px;border-radius:50%;background:#a15037}
@media(max-width:760px){.masthead{gap:3px}#note-dispenser{min-width:34px;min-height:40px}.dispenser-text{display:none}.paper-stack{width:17px;height:20px}}
@media(max-width:354px){.masthead{padding-inline:7px}.bookplate-lamp{display:none}#note-dispenser{min-width:30px}}
@media(pointer:coarse){.note-head .paper-icon{width:32px;height:32px}.desk-note[data-folded=true]{width:42px;height:36px}.paper-tab svg{width:32px;height:22px}.desk-note .paper-menu button,.paper-drawer>button,.paper-options button{min-height:36px}}

.desk-note:not([data-folded=true]){width:min(276px,calc(100vw - 12px));height:176px;max-height:none;padding-bottom:15px}
.paper-body{display:flex;flex-direction:column;flex:1;min-height:0}.paper-body>*{flex:none}.paper-body>.paper-text{flex:1 0 54px;min-height:54px;height:auto}
.desk-note .paper-corner{position:absolute;bottom:0;right:0;width:26px;height:26px;display:grid;place-items:center;padding:3px;border:none;background:transparent;color:#785f3b;cursor:nwse-resize;touch-action:none;user-select:none}
.paper-corner svg{pointer-events:none;width:16px;height:16px;fill:#c5ae86;stroke:currentColor;stroke-width:1;stroke-linejoin:round}.desk-note[data-folded=true] .paper-corner{display:none}.desk-note .paper-corner:hover,.desk-note .paper-corner:focus-visible{color:#51351c;background:transparent}
@media(pointer:coarse){.desk-note .paper-corner{width:32px;height:32px;place-items:end;padding:4px}}
