:root{--hand-font:"KaiTi","STKaiti","Kaiti SC","Segoe Print",cursive;--paper-sheet:#fbf5e7}
/* Each + opens the next line on the sheet; editing happens in that line. */
#inspector[data-object=checks] #check-form,#inspector[data-object=checks] #checks-empty{display:none!important}
#inspector[data-object=checks] .panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 20px;min-height:38px}
#check-add-line{border:1px solid #b8ad94;background:#fff9e9;color:#476068;border-radius:50%;width:37px;height:37px;padding:0;font-size:25px;line-height:1;box-shadow:0 2px 4px #57472312}
#check-add-line:hover{background:#e6eedf;transform:rotate(8deg)}#check-add-line:active{transform:scale(.93)}
#inspector[data-object=checks] .checklist{padding:0;overflow:auto;flex:1}
#inspector[data-object=checks] .check-row,#inspector[data-object=checks] .check-empty-line{display:flex;align-items:center;position:relative;min-height:58px;margin:0 0 5px;background:transparent!important;border:0;border-radius:5px;gap:5px}
#inspector[data-object=checks] .check-row.editing{background:#e8ddc62e!important;box-shadow:inset 3px 0 #59757d}
.check-line-number,.check-empty-line>span{font:10px ui-monospace,monospace;color:#b3a78e;flex:0 0 20px;text-align:center}
#inspector[data-object=checks] .check-toggle{flex:0 0 33px;width:33px;height:40px;padding:0;display:grid;place-items:center;background:none;border:0}
#inspector[data-object=checks] .checkmark{width:31px;height:31px;background:none!important;border:0!important;border-radius:0;color:#416f61;transform:rotate(-5deg)}
#inspector[data-object=checks] .checkmark svg{display:block;width:100%;height:100%;overflow:visible;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
#inspector[data-object=checks] .checkmark path{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset .62s ease-out}
#inspector[data-object=checks] .done .checkmark path{stroke-dashoffset:0}.ink-check-echo{stroke-width:1!important;opacity:.42}
#inspector[data-object=checks] .inking .ink-check-primary{animation:hand-check .66s ease-out both}#inspector[data-object=checks] .inking .ink-check-echo{animation:hand-check .48s .27s ease-out both}
@keyframes hand-check{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
#inspector[data-object=checks] .check-text{font-family:var(--hand-font);font-size:20px;font-weight:400;line-height:1.7;color:#414d50;flex:1;min-width:0;white-space:pre-wrap;text-align:left;border:0;background:transparent;padding:8px 2px;transition:color .5s;overflow-wrap:anywhere;text-decoration:none!important}
#inspector[data-object=checks] .check-text:after{display:none!important}#inspector[data-object=checks] .done .check-text{color:#8c988d}
#inspector[data-object=checks] .check-line-input{width:0;min-width:0;flex:1;font:20px/1.7 var(--hand-font);padding:8px 2px;border:0;background:transparent;color:#314e5c;outline:0;box-shadow:none}
.empty-checkmark{width:33px;flex-shrink:0}.new-line{animation:paper-line-in .55s ease-out both}@keyframes paper-line-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}
#inspector[data-object=checks] .mini-delete{opacity:0;flex-shrink:0}#inspector[data-object=checks] .check-row:hover .mini-delete,#inspector[data-object=checks] .check-row:focus-within .mini-delete{opacity:.65}
/* Tools live beside the book, leaving both pages free of buttons. */
#inspector[data-object=notes]{overflow:visible!important;padding:18px 8px 16px}
#inspector[data-object=notes] #record-content,#inspector[data-object=notes] #panel-notes{overflow:visible!important}
.notebook-rail{position:absolute;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;gap:9px;width:48px;z-index:30;padding:9px 0;background:#ede7d873;border:1px solid #c9bfab66;border-radius:10px;box-shadow:0 5px 15px #3c332510;backdrop-filter:blur(8px)}
.notebook-rail-left{right:calc(100% + 13px)}.notebook-rail-right{left:calc(100% + 13px)}
.notebook-rail button,.notebook-rail label{display:grid;place-items:center;position:relative;width:34px;min-height:34px;padding:4px;border:0;border-radius:6px;background:#fffaf1b8;color:#40565c;box-sizing:border-box;font:16px var(--hand-font);cursor:pointer}
.notebook-rail button:hover{background:#dbe7e0}.notebook-rail button[aria-pressed=true]{background:#375b64;color:#fffaf0}.notebook-rail button:disabled{opacity:.32}
.notebook-rail label{gap:2px;font:10px sans-serif;cursor:default}.notebook-rail input[type=color]{width:27px;height:24px;border:0;padding:0;background:none;cursor:pointer}.notebook-rail input[type=range]{writing-mode:vertical-lr;direction:rtl;width:18px;height:48px;accent-color:#466b76}
.notebook-rail output{font:10px ui-monospace,monospace;color:#887e69;white-space:nowrap}.rail-divider{height:1px;width:21px;background:#c1b59d7a;margin:2px 0}
#inspector[data-object=notes] #close-records{position:static!important;inset:auto!important;width:34px;height:34px;margin:0;font-size:17px;border:0;background:#fffaf1b8;color:#40565c;transform:none}
.notebook-spread{gap:0!important;perspective:1700px;transform-style:preserve-3d;isolation:isolate;touch-action:pan-y}
.notebook-write-page,.notebook-media-page{padding:12px 20px;position:relative;min-height:0;box-sizing:border-box}
.notebook-write-page{padding:12px 23px}.notebook-images{inset:20px 15px}.notebook-photo{max-height:100%;cursor:pointer}.notebook-photo.selected-photo{outline:1px dashed #7a9b97;outline-offset:4px}.notebook-photo button{display:none!important}
#inspector[data-object=notes] .notes{font-family:var(--hand-font);font-size:21px;line-height:1.85;letter-spacing:.03em;white-space:pre-wrap;overflow-wrap:anywhere;background:none!important;outline:none!important;border:0;box-shadow:none;padding:0 1px;height:100%;overflow-y:auto;caret-color:var(--writing-color,#354b60);text-align:left;color:#354b60;cursor:text}
.paper-editor:empty:before{content:attr(data-placeholder);color:#aa9f89;pointer-events:none}.paper-editor .crossed-ink{text-decoration-line:line-through;text-decoration-style:wavy;text-decoration-thickness:1.15px;opacity:.58;user-select:text;animation:cross-ink .5s ease-out}
@keyframes cross-ink{from{opacity:.85;text-decoration-color:transparent}to{opacity:.58;text-decoration-color:currentColor}}
.page-grip{position:absolute;top:0;bottom:0;width:18px;z-index:5;cursor:grab;touch-action:none}.page-grip.left{left:0}.page-grip.right{right:0}.page-grip:active{cursor:grabbing}.page-grip:after{content:"";position:absolute;bottom:0;width:16px;height:18px;opacity:.5;background:linear-gradient(135deg,transparent 45%,#bcb09444 48%,#fff9e9 58%)}.page-grip.left:after{transform:scaleX(-1)}
.turn-sheet{position:absolute;top:0;bottom:0;width:50%;transform-style:preserve-3d;z-index:22;pointer-events:none;will-change:transform}.turn-sheet.forward{left:50%;transform-origin:0 50%}.turn-sheet.backward{left:0;transform-origin:100% 50%}
.turn-face{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;backface-visibility:hidden;background:var(--page-surface);overflow:hidden!important;box-sizing:border-box;border-radius:0;transform:rotateY(0deg)}.turn-face:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#30230c88,transparent 60%);opacity:var(--fold-shadow,0);pointer-events:none}.turn-back{transform:rotateY(180deg)}.turn-face.notebook-media-page:after{background:linear-gradient(-90deg,#30230c88,transparent 60%)}
.turn-under{position:absolute!important;top:0;bottom:0;width:50%;z-index:20;pointer-events:none;background:var(--page-surface)}.turn-under.left{left:0}.turn-under.right{right:0}
/* The physical eject key is the player's close control. */
#inspector[data-object=videos] .player-knob{display:none}
#inspector[data-object=videos] #close-records{pointer-events:auto;position:absolute!important;right:12px!important;top:24px!important;bottom:auto!important;left:auto!important;width:38px;height:28px;border-radius:4px;border:1px solid #a7b9c1;background:linear-gradient(#d3dde1,#91a5b0);color:#283d48;font-size:19px;line-height:1;box-shadow:0 2px 0 #374d58, inset 0 1px #eef7fa}
#inspector[data-object=videos] #close-records:hover{background:linear-gradient(#ebf4f3,#a2bec4)}#inspector[data-object=videos] #close-records:active{transform:translateY(2px);box-shadow:none}
#inspector[data-object=videos] .player-disc{animation:none!important;will-change:transform;transition:none!important}
[data-theme=dark]{--paper-sheet:#e9e0cc}[data-theme=dark] #inspector[data-object=notes]{background:linear-gradient(90deg,#d3c7ac,#e9e0cc 46%,#aca18a 49.5%,#e9e0cc 51%,#eee5d3)}[data-theme=dark] .notebook-rail{background:#263c3cbb;border-color:#82908444}[data-theme=dark] .notebook-rail :is(button,label),[data-theme=dark] #inspector[data-object=notes] #close-records{background:#4a5e55;color:#e3e1cf}[data-theme=dark] .notebook-rail button[aria-pressed=true]{background:#a3bcb6;color:#22383b}[data-theme=dark] .paper-editor{background:#faf3e71a!important}[data-theme=dark] #inspector[data-object=checks] .check-text,[data-theme=dark] #inspector[data-object=checks] .check-line-input{color:#e0dfc9}[data-theme=dark] #inspector[data-object=checks] .checkmark{color:#9fc5ab}
@media(max-width:680px){.notebook-rail{width:32px;gap:5px;padding:5px 0}.notebook-rail-left{right:calc(100% + 8px)}.notebook-rail-right{left:calc(100% + 8px)}.notebook-rail button,.notebook-rail label,#inspector[data-object=notes] #close-records{width:28px;min-height:28px;height:28px;font-size:12px}.notebook-rail label{height:auto;font-size:9px}.notebook-rail input[type=range]{height:34px}.notebook-rail input[type=color]{width:23px;height:21px}.notebook-rail output{font-size:9px}#inspector[data-object=notes]{padding:9px 3px}.notebook-write-page{padding:4px 12px}.notebook-media-page{padding:5px}.notebook-images{inset:8px}.page-grip{width:10px}#inspector[data-object=notes] .notes{font-size:16px;line-height:1.7}#inspector[data-object=checks] .check-text,#inspector[data-object=checks] .check-line-input{font-size:18px}.check-line-number{flex-basis:16px}#inspector[data-object=checks] .mini-delete{opacity:.55}}
@media(prefers-reduced-motion:reduce){.inking path,.crossed-ink,.new-line{animation:none!important}.turn-sheet{will-change:auto}}
#inspector[data-object=checks] .checkmark path{stroke:currentColor;fill:none}

.notebook-ink{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:2}
#inspector[data-object=notes] .notes{min-height:0!important}
#inspector[data-object=videos] .player-display{right:64px}

[data-theme=dark] .notebook-empty{color:#897c62}
/* Direct handwriting and separated notebook tools. */
#inspector[data-object=checks] .check-toggle{width:46px;height:46px;flex-basis:46px;touch-action:none;user-select:none;cursor:crosshair}
#inspector[data-object=checks] .checkmark{width:36px;height:36px;transform:none;border:1px dashed #a3ad9c88!important;border-radius:5px}
#inspector[data-object=checks] .done .checkmark,#inspector[data-object=checks] .drawing-check .checkmark{border-color:transparent!important}
#inspector[data-object=checks] .drawing-check path{stroke-dashoffset:0;transition:none;animation:none!important}
.empty-checkmark{width:46px}.check-line-number{display:none}
#inspector:not([data-object=notes])>.notebook-rail{display:none}
#inspector>.notebook-rail-left{right:calc(100% + 20px);left:auto}
#inspector>.notebook-rail-right{left:calc(100% + 20px);right:auto}
#inspector[data-object=notes] .notes{--paper-line:38.85px;line-height:var(--paper-line);background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(var(--paper-line) - 1px),#869d9b33 calc(var(--paper-line) - 1px),#869d9b33 var(--paper-line))!important;background-attachment:local}
.page-grip{top:auto;bottom:0;height:54px;width:24px;user-select:none;-webkit-user-select:none;touch-action:none;z-index:8}
.page-grip:after{bottom:1px;width:23px;height:25px;opacity:.8}.page-grip:hover:after{filter:brightness(.92)}
.notebook-spread:has(.turn-sheet){user-select:none}
/* A disc is painted at its displayed dimensions instead of scaling a small cargo layer. */
.disc-flight{filter:none!important;backdrop-filter:none!important;will-change:auto!important}
.flight-disc,#inspector[data-object=videos] .player-disc{padding:0;border:1px solid #b9c6ca;border-radius:50%;background:repeating-radial-gradient(circle at center,transparent 0 2px,#ffffff24 2px 3px),conic-gradient(from 20deg,#e6eeed,#aec5d6,#eee8c9,#d4bfe1,#fbfcf4,#b1d0d6,#e6eeed);box-shadow:inset 0 0 0 3px #ffffff77,0 2px 3px #15242d33;filter:none!important}
.flight-disc{position:absolute;inset:0;width:100%;height:100%}
.flight-disc:after,#inspector[data-object=videos] .player-disc:after{content:"";position:absolute;inset:42%;border:3px solid #bbc8ca;border-radius:50%;background:#52656f;box-shadow:0 0 0 4px #ffffff66}
#inspector[data-object=videos] .player-fascia{display:grid;grid-template-columns:10px minmax(0,1fr) 38px;align-items:center;gap:12px;padding:15px 12px 8px}
#inspector[data-object=videos] .player-display{position:static;justify-self:end;max-width:100%;min-width:0;overflow:hidden;white-space:nowrap;font-size:10px;letter-spacing:.04em;padding:5px 8px}
#inspector[data-object=videos] #close-records{position:static!important;inset:auto!important;width:38px;height:28px;margin:0;grid-column:3}
#inspector[data-object=videos] .player-light{grid-column:1}
#inspector[data-disc-state=inserting] .player-light,#inspector[data-disc-state=reading] .player-light,#inspector[data-disc-state=ejecting] .player-light{background:#ebc675;animation:drive-pulse .7s infinite alternate}
@keyframes drive-pulse{to{opacity:.35}}
#inspector[data-disc-state=approaching] .player-light,#inspector[data-disc-state=empty] .player-light{background:#57676d;box-shadow:none}
#inspector[data-object=videos] .player-screen [hidden]{display:none!important}
#player-directory{position:absolute;inset:0;padding:14px;overflow:auto;background:radial-gradient(ellipse at top,#1e3944,#09131b 80%)}
#inspector[data-object=videos] #player-directory .videos{overflow:visible;display:flex;gap:6px}
#inspector[data-object=videos] #videos-empty{border:0;background:none;margin:0;padding:22px 6px;color:#a9c1c9;font-size:12px}
#player-directory-back{position:absolute;left:10px;top:8px;z-index:4;background:#183641df;border:1px solid #7597a577;border-radius:4px;color:#d5e6ea;font-size:10px;padding:5px 9px}
#inspector[data-disc-state=approaching] .video-actions,#inspector[data-disc-state=inserting] .video-actions,#inspector[data-disc-state=reading] .video-actions,#inspector[data-disc-state=ejecting] .video-actions{visibility:hidden}
#inspector[data-disc-state=approaching] .screen-hint:before{content:"—"}#inspector[data-disc-state=inserting] .screen-hint:before{content:"↓"}#inspector[data-disc-state=reading] .screen-hint:before{content:"◎"}#inspector[data-disc-state=ejecting] .screen-hint:before{content:"⏏"}
@media(max-width:680px){#inspector>.notebook-rail-left{right:calc(100% + 20px)}#inspector>.notebook-rail-right{left:calc(100% + 20px)}#inspector[data-object=notes] .notes{--paper-line:27.2px}.page-grip{width:18px;height:38px}.page-grip:after{width:17px;height:20px}#player-directory{padding:8px}#inspector[data-object=videos] .player-fascia{gap:6px;padding-inline:8px}.player-display{font-size:9px}#inspector[data-object=videos] #videos-empty{font-size:10px;padding:8px}}
@media(prefers-reduced-motion:reduce){.player-light{animation:none!important}}
.notebook-write-page{padding-right:28px}@media(max-width:680px){.notebook-write-page{padding-right:24px}}
/* Red pencil checks and a working metal clipboard clip. */
#inspector[data-object=checks] .checkmark,[data-theme=dark] #inspector[data-object=checks] .checkmark{color:#c3423d}
[data-theme=dark] #inspector[data-object=checks] .checkmark{color:#f17a6c}
#inspector[data-object=checks]:before{display:none}
#inspector[data-object=checks] #close-records{position:absolute;top:-4px;left:calc(50% - 48px);right:auto;width:96px;height:43px;padding:0;background:transparent;border:0;border-radius:4px;z-index:32;perspective:300px;transform:none;cursor:pointer}
#inspector[data-object=checks] #close-records:before{content:"";position:absolute;left:0;right:0;top:17px;height:24px;border:1px solid #788b92;border-radius:2px 2px 5px 5px;background:linear-gradient(#ecf3f4,#9baeb5 48%,#6b7e88 52%,#c5d1d4);box-shadow:0 3px 4px #3c392644;transform-origin:50% 100%;transition:transform .23s ease,filter .2s}
#inspector[data-object=checks] #close-records:after{content:"";position:absolute;left:29px;right:29px;top:2px;height:27px;border:3px solid #9cabb0;border-bottom-width:5px;border-radius:11px 11px 4px 4px;box-shadow:inset 0 1px #fff,0 -1px #e1e8e9;pointer-events:none}
#inspector[data-object=checks] #close-records:hover:before{transform:rotateX(-18deg);filter:brightness(1.08)}
#inspector[data-object=checks].object-closing #close-records:before{animation:clip-press .34s ease-in-out both}
#inspector[data-object=checks].object-closing #record-content{animation:stack-paper .32s ease-out both}
#inspector[data-object=checks] .board-flap{display:none!important}
@keyframes clip-press{0%{transform:rotateX(0)}45%{transform:rotateX(-38deg)}100%{transform:rotateX(0)}}
@keyframes stack-paper{from{transform:translateY(-2px)}to{transform:translateY(3px)}}
/* Whole outer margins turn a page; ink and photo editing stay inside those margins. */
.page-grip{top:0;bottom:0;height:auto;width:28px;background:transparent}
.page-grip:hover{background:linear-gradient(90deg,#b4a58416,transparent)}.page-grip.right:hover{background:linear-gradient(-90deg,#b4a58416,transparent)}
.notebook-write-page{padding-right:34px}
.notebook-images,.notebook-images.multiple{display:block;inset:24px 16px 20px 30px;overflow:visible;pointer-events:none}
.notebook-photo,.notebook-photo:nth-child(even){position:absolute;align-self:auto;height:auto;max-height:82%;padding:6px 6px 15px;min-width:0;transform:translate(-50%,-50%) rotate(var(--photo-angle,-2.5deg));transform-origin:center;touch-action:none;user-select:none;-webkit-user-select:none;pointer-events:auto;cursor:grab;transition:box-shadow .2s;z-index:1}
.notebook-photo img{width:100%;height:100%;max-height:100%;object-fit:cover;border-radius:1px;pointer-events:none;user-select:none}
.notebook-photo:before,.notebook-photo:after{content:"";position:absolute;width:40%;height:19px;left:30%;top:-9px;background:repeating-linear-gradient(90deg,#fff9db15 0 3px,#b2a57a12 3px 4px),#e5d9aaa3;box-shadow:0 1px 2px #55432919;border:1px solid #d8cfa04d;clip-path:polygon(2% 0,97% 3%,100% 19%,97% 35%,100% 58%,98% 77%,100% 100%,0 98%,3% 79%,0 59%,3% 37%,0 16%);transform:rotate(-4deg);pointer-events:none}
.notebook-photo:after{width:24%;height:15px;left:auto;right:-7%;top:auto;bottom:2px;transform:rotate(-42deg);opacity:.75}
.notebook-photo.selected-photo{z-index:4;outline:1px dashed #78968b;outline-offset:6px}
.notebook-photo.moving-photo{cursor:grabbing;box-shadow:0 12px 18px #30241033;z-index:5}
.notebook-media-page.drawing .notebook-photo{pointer-events:none}
.notebook-media-page.drawing .notebook-ink{z-index:6}
#notebook-photo-viewer{width:min(1000px,94vw);max-width:94vw;height:min(850px,90svh);max-height:90svh;padding:14px;border:1px solid #c9c5b9;background:#f1ecdf;color:#334950;overflow:hidden;z-index:2000}
#notebook-photo-viewer::backdrop{background:#17212cce;backdrop-filter:blur(8px)}
.photo-viewer-tools{height:42px;display:flex;align-items:center;gap:10px}.photo-viewer-tools button{width:34px;height:32px;border:1px solid #b6beb8;border-radius:6px;background:#fffaf0;color:#34555c}.photo-viewer-tools button:hover{background:#dce9e2}.photo-viewer-tools output{font:11px ui-monospace,monospace;min-width:38px;text-align:center}.photo-viewer-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.photo-viewer-stage{height:calc(100% - 46px);overflow:auto;padding:24px;background:#d6d3c855;border-radius:6px}.photo-viewer-stage img{display:block;margin:0 auto;height:auto;max-width:none;box-shadow:0 10px 40px #15293226}
[data-theme=dark] #notebook-photo-viewer{background:#253138;color:#e8ebdc}
/* Drive imports are menu options on its screen. */
#inspector[data-object=videos] #player-directory{display:flex;flex-direction:column;gap:14px;padding:20px}
#inspector[data-object=videos] #player-directory .video-actions{position:sticky;top:0;z-index:3;flex-shrink:0;display:flex;gap:10px;margin:0;padding:0 0 14px;border-bottom:1px solid #76929e40;background:#10232c}
#inspector[data-object=videos] #player-directory .video-actions button{flex:1;color:#c7e2e5;border:1px solid #5f879277;background:#193641;padding:11px 12px;font-size:12px;border-radius:6px}
#inspector[data-object=videos] #player-directory .video-actions button:hover{background:#244957;border-color:#8fbbc3}
#inspector[data-object=videos] #player-directory .videos{flex:none;overflow:visible}
#inspector[data-object=videos] #player-screen>#link-dialog{position:absolute;inset:0;margin:0;overflow:auto;z-index:8;background:#102934;border:0;border-radius:0;scroll-margin:0}
@media(max-width:680px){.page-grip{width:22px;height:auto;top:0;bottom:0}.notebook-write-page{padding-right:28px}.notebook-images,.notebook-images.multiple{inset:17px 7px 14px 23px}.notebook-photo{padding:3px 3px 8px}.notebook-photo:before{height:12px;top:-6px}.notebook-photo:after{height:10px}#inspector[data-object=videos] #player-directory{gap:9px;padding:10px}#inspector[data-object=videos] #player-directory .video-actions{gap:6px;padding-bottom:8px}#inspector[data-object=videos] #player-directory .video-actions button{font-size:10px;padding:8px 4px}.photo-viewer-tools{gap:5px}.photo-viewer-tools button{width:30px}.photo-viewer-stage{padding:12px}}
@media(prefers-reduced-motion:reduce){#inspector[data-object=checks].object-closing #close-records:before,#inspector[data-object=checks].object-closing #record-content{animation:none!important}}
#inspector[data-object=checks] .checkmark path{stroke:#c3423d!important}
[data-theme=dark] #inspector[data-object=checks] .checkmark path{stroke:#f17a6c!important}
/* The resting pages and their turning copies use the same paper and spine shading.
   Keep this on the sheets, not on the cover underneath the temporary layers. */
:root{--paper-left:linear-gradient(90deg,#eae1cc,#fbf5e7 82%,#e0d5bf 94%,#b7aa91);--paper-right:linear-gradient(90deg,#c4bba9,#fcf7e9 5%,#fffcf2)}
[data-theme=dark]{--paper-left:linear-gradient(90deg,#d3c7ac,#e9e0cc 82%,#cec3aa 94%,#9e9279);--paper-right:linear-gradient(90deg,#aca18a,#e9e0cc 5%,#eee5d3)}
#inspector[data-object=notes],[data-theme=dark] #inspector[data-object=notes]{background:var(--paper-sheet)}
.notebook-media-page{--page-surface:var(--paper-left);background:var(--page-surface);border-radius:0}
.notebook-write-page{--page-surface:var(--paper-right);background:var(--page-surface)}
/* Short cardboard creases bridge the wall to each lid's changing stack height.
   All four strips live in box space, so orbiting and opening keep the joints sealed. */
.flap-hinge{position:absolute;top:calc(-1 * var(--hinge-lift,0px) - .3px);height:calc(var(--hinge-lift,0px) + .6px);pointer-events:none;backface-visibility:visible;background:linear-gradient(var(--top),var(--front));border:0}
.hinge-front{left:0;width:160px;transform:translateZ(50.01px)}
.hinge-back{left:0;width:160px;transform:rotateY(180deg) translateZ(50.01px);background:linear-gradient(var(--top),#b59161)}
.hinge-left,.hinge-right{left:30px;width:100px}
.hinge-left{transform:rotateY(-90deg) translateZ(80.01px);background:linear-gradient(var(--top),#c6a477)}
.hinge-right{transform:rotateY(90deg) translateZ(80.01px);background:linear-gradient(var(--top),var(--side))}
