*{box-sizing:border-box}body{background:var(--workspace-bg,#003f11);color:#1f2937;margin:0;font-family:Inter,system-ui,-apple-system,sans-serif;transition:background .35s,background-color .35s}.app-shell{background-color:var(--workspace-bg-color,#003f11);background-image:radial-gradient(circle at 15% 10%, #ffffff0f 0%, transparent 45%), radial-gradient(circle at 85% 90%, #00000052 0%, transparent 55%), var(--workspace-bg-image,none);min-height:100vh;padding:20px;transition:background .35s,background-color .35s}.top-toolbar{z-index:50;background:linear-gradient(#fffefb 0%,#faf4e6 100%);border:1px solid #e2d3b3;border-radius:14px;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:8px 10px;max-width:1440px;margin:0 auto 18px;padding:12px 16px;display:flex;position:relative;box-shadow:0 10px 24px #0000006b,inset 0 1px #ffffffe6}.toolbar-group{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.toolbar-divider{background:#dfd3ba;width:1px;height:22px;margin:0 3px}.char-bar{flex-wrap:wrap;gap:4px;display:flex}button,select{color:#291d04;cursor:pointer;background:#faf6ee;border:1px solid #d6cbb5;border-radius:7px;padding:6px 9px;font-family:inherit;font-size:13px;transition:background-color .15s,border-color .15s,transform .1s}button:hover:not(:disabled),select:hover{background:#efe6d2;border-color:#b59863}button:active:not(:disabled){transform:translateY(1px)}button:disabled{opacity:.45;cursor:not-allowed}button.active-toggle{color:#453000;background:#fde68a;border-color:#b45309;font-weight:700}.style-btn{min-width:32px;font-size:13px}.zoom-readout{color:#453000;text-align:center;min-width:42px;font-size:12px;font-weight:700}.color-picker-wrap{align-items:center;display:inline-flex;position:relative}.color-trigger-btn{color:#453000;background:#faf6ee;border:1px solid #d6cbb5;border-radius:7px;align-items:center;gap:6px;padding:5px 8px;font-size:12px;font-weight:700;display:inline-flex}.color-dot{border:1px solid #00000040;border-radius:3px;width:14px;height:14px;display:inline-block}.color-popover{z-index:60;background:#fffdf9;border:1px solid #d6cbb5;border-radius:10px;min-width:184px;margin-top:6px;padding:10px;position:absolute;top:110%;left:0;box-shadow:0 12px 26px #00000052}.color-popover-top{color:#291d04;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;font-size:12px;font-weight:600;display:flex}.color-popover-top input[type=color]{cursor:pointer;background:0 0;border:none;width:34px;height:24px;padding:0}.color-popover-label{color:#7c6642;text-transform:uppercase;letter-spacing:.05em;margin-bottom:6px;font-size:11px;font-weight:700}.swatch-grid{flex-wrap:wrap;gap:6px;display:flex}.mini-swatch{border:2px solid #fff;border-radius:50%;width:22px;height:22px;padding:0;box-shadow:0 0 0 1px #6b7280}.clear-color-btn{width:100%;margin-top:8px;padding:4px 6px;font-size:11px}.print-btn{color:#fff;background:#1d4ed8;border-color:#1d4ed8;font-weight:600}.print-btn:hover{background:#1e40af}.workspace{grid-template-columns:300px minmax(0,1fr);align-items:start;gap:22px;max-width:1440px;margin:0 auto;display:grid}.index-sidebar{border:1px solid #d9c9a8;border-left:8px solid var(--hardback-color,#6b1d2f);background:linear-gradient(#fffdf9 0%,#f6efe0 100%);border-radius:14px;min-width:0;padding:16px 14px;transition:border-left-color .35s;overflow:hidden;box-shadow:0 12px 26px #00000075,inset 0 1px #ffffffd9}.book-dropdown-bar{border-bottom:2px dashed #d6c5a5;flex-direction:column;gap:8px;margin-bottom:14px;padding-bottom:12px;display:flex}.book-select-full,.book-actions-select{width:100%;font-size:13px;font-weight:600}.last-updated-note{color:#6b532b;background:#fdf7ea;border:1px solid #e6d8ba;border-radius:6px;padding:5px 8px;font-size:11px;line-height:1.3}.bg-section-box{flex-direction:column;gap:6px;display:flex}.bg-picker-header{justify-content:space-between;align-items:center;gap:6px;display:flex}.mini-visibility-btn{padding:3px 9px;font-size:11px;font-weight:700}.bg-swatches-panel{flex-direction:column;gap:6px;padding-top:2px;display:flex}.bg-swatches-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px;display:flex}.bg-swatches{align-items:center;gap:5px;display:flex}.bg-swatch-btn{border:2px solid #fff;border-radius:50%;width:18px;height:18px;padding:0;box-shadow:0 0 0 1px #00000059}.bg-swatch-btn.active{box-shadow:0 0 0 2px #1f2937}.bg-color-input{cursor:pointer;background:0 0;border:none;width:28px;height:20px;padding:0}.bg-gradient-select,.bg-gradient-input{color:#291d04;background:#fffdf9;border:1px solid #d6cbb5;border-radius:6px;width:100%;padding:4px 6px;font-size:11px}.bg-default-actions{flex-wrap:wrap;gap:5px;display:flex}.cover-page-trigger{text-align:left;justify-content:space-between;align-items:center;width:100%;font-weight:600;display:flex}.cover-page-trigger.active{color:#fffdf9;background:#453000;border-color:#453000}.index-header{justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px;display:flex}.index-kicker{text-transform:uppercase;letter-spacing:.1em;color:#85580c;font-size:10px;font-weight:700;display:block}.index-header h2{color:#2e1f03;margin:2px 0 0;font-family:Lora,Georgia,serif;font-size:19px}.new-chapter-btn{color:#fff8e7;background:#453000;border-color:#453000;flex-shrink:0;padding:6px 10px;font-size:12px;font-weight:600}.new-chapter-btn:hover{background:#634500}.chapter-list{flex-direction:column;gap:7px;max-height:24vh;margin:0 0 14px;padding:0;list-style:none;display:flex;overflow:hidden auto}.chapter-item{align-items:stretch;gap:5px;min-width:0;display:flex}.chapter-select-btn{text-align:left;background:#fffdf9;border:1px solid #dfd3ba;border-radius:8px;flex:1;align-items:center;gap:8px;min-width:0;padding:7px 9px;display:flex}.chapter-badge{color:#453000;background:#efe3c8;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;width:22px;height:22px;font-size:11px;font-weight:700;display:inline-flex}.chapter-meta{flex-direction:column;flex:1;min-width:0;display:flex}.chapter-name{color:#291d04;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;overflow:hidden}.chapter-pages-count{color:#7c6642;font-size:11px}.chapter-item.active .chapter-select-btn{background:#453000;border-color:#453000}.chapter-item.active .chapter-badge{color:#291d04;background:#fbbf24}.chapter-item.active .chapter-name{color:#fffdf9}.chapter-item.active .chapter-pages-count{color:#f3dfb3}.delete-chapter-btn{color:#991b1b;background:#fffdf9;flex-shrink:0;padding:0 8px;font-size:12px}.library-shelf-section{border-top:2px dashed #d6c5a5;padding-top:12px}.library-shelf-header{justify-content:space-between;align-items:center;gap:6px;margin-bottom:8px;display:flex}.library-shelf-header h3{color:#2e1f03;margin:2px 0 0;font-family:Lora,Georgia,serif;font-size:16px}.library-shelf-actions{align-items:center;gap:5px;display:flex}.view-library-btn{color:#fde68a;background:#453000;border-color:#453000;padding:3px 9px;font-size:11px;font-weight:700}.view-library-btn:hover{background:#634500}.library-bookshelf{background:linear-gradient(#0f0702d9 0%,#2e18088c 35%,#180c04eb 100%),repeating-linear-gradient(90deg,#3b200b 0,#4a280e 16px,#321a08 32px);border:2px solid #261305;border-radius:8px 8px 5px 5px;flex-wrap:wrap;align-items:flex-end;gap:6px;min-height:136px;padding:14px 10px 0;display:flex;position:relative;box-shadow:inset 0 10px 18px #000000bf,inset 0 -8px 14px #0000008c,0 6px 14px #00000061}.library-bookshelf:after{content:"";background:repeating-linear-gradient(90deg,#ffe0b214 0 22px,#0000002e 22px 26px),linear-gradient(#9c612b 0%,#734217 48%,#4d2a0d 100%);border-top:2px solid #ffecc85c;border-bottom:3px solid #241204;border-radius:0 0 6px 6px;flex-basis:100%;height:16px;margin:3px -10px 0;box-shadow:0 5px 10px #00000080}.library-spine-card{color:#fff8e7;border:1px solid #fff4d647;border-left:4px solid #00000052;border-radius:3px 5px 2px 2px;flex-direction:column;justify-content:space-between;align-items:center;width:58px;height:106px;padding:5px 3px 6px;transition:transform .2s cubic-bezier(.22,1,.36,1);display:flex;position:relative;box-shadow:inset 4px 0 6px #ffffff24,inset -4px 0 7px #00000080,3px 4px 8px #0009}.library-spine-card:before{content:"";background:linear-gradient(90deg,#0000,#fde68ac7,#0000);border-radius:2px;flex-shrink:0;width:78%;height:2px}.library-spine-card:hover{transform:translateY(-8px)scale(1.04)}.library-spine-card.active-shelf-book{outline:2px solid #fbbf24;transform:translateY(-4px)}.library-spine-open{all:unset;cursor:pointer;text-align:center;word-break:break-word;color:#fff8e7;flex:1;justify-content:center;align-items:center;width:100%;padding:2px;font-size:10px;font-weight:700;line-height:1.15;display:flex;overflow:hidden}.library-page-view{color:#fff8e7;background:linear-gradient(#1b2432 0%,#111827 100%);border:1px solid #ffffff1a;border-radius:16px;width:100%;max-width:1020px;min-height:580px;margin:0 auto;padding:24px 26px 28px;box-shadow:0 18px 38px #00000094}.library-page-header{border-bottom:1px solid #fde68a33;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;padding-bottom:14px;display:flex}.library-page-header .index-kicker{color:#fbbf24}.library-recessed-shelf{perspective:1200px;transform-style:preserve-3d;background:linear-gradient(#080402a6 0%,#1c0f0659 50%,#080402c7 100%),repeating-linear-gradient(90deg,#2b1608 0,#341b0a 28px,#241206 56px);border:10px solid #2a1507;border-color:#1c0d04 #2a1507 #4a260e;border-radius:10px;padding:28px 26px 32px;position:relative;box-shadow:inset 0 14px 26px #000000d9,inset 0 -12px 20px #000000bf,0 16px 32px #0009}.library-page-grid{grid-template-columns:repeat(auto-fill,minmax(185px,1fr));align-items:end;gap:24px;display:grid}.library-shelf-slot{flex-direction:column;align-items:center;gap:10px;display:flex;position:relative}.library-graphic-cover{color:#fff8e7;cursor:pointer;border:1px solid #fde68a52;border-radius:5px 12px 12px 5px;flex-direction:column;justify-content:space-between;width:100%;height:215px;padding:14px 14px 14px 24px;transition:transform .28s cubic-bezier(.2,.9,.25,1.15),box-shadow .28s cubic-bezier(.2,.9,.25,1.15),filter .24s;display:flex;position:relative;overflow:hidden;transform:translate(0,0)scale(1);box-shadow:inset 10px 0 14px #00000080,0 8px 16px #0000008c}.library-shelf-slot:hover .library-graphic-cover,.library-graphic-cover:hover{filter:brightness(1.07);z-index:12;transform:translate3d(0,-14px,34px)scale(1.045);box-shadow:inset 10px 0 14px #00000073,0 24px 36px #000000c7,0 0 0 1px #fde68a8c}.library-graphic-spine-rib{z-index:2;background:#00000061;border-right:1px solid #fde68a59;width:14px;position:absolute;top:0;bottom:0;left:0}.library-cover-frame-overlay{z-index:3;pointer-events:none;flex-direction:column;flex:1;justify-content:space-between;width:100%;display:flex;position:relative}.library-cover-frame-overlay.design-classic-frame{border:1.5px solid #fde68ab3;border-radius:6px;padding:10px}.library-cover-frame-overlay.design-double-rule{border:2.5px double #fde68ac7;border-radius:4px;padding:10px}.library-cover-frame-overlay.design-modern-minimal{text-align:left;border-left:4px solid #fde68ae0;align-items:flex-start;padding:6px 4px 6px 10px}.library-cover-frame-overlay.design-corner-flourish{border:1.5px dashed #fde68abf;border-radius:16px 4px;padding:10px}.library-cover-frame-overlay.design-spine-band{border-top:8px solid #fde68ab8;border-bottom:8px solid #fde68ab8;padding:8px 6px}.library-cover-frame-overlay.design-stitched-leather{border:1.5px dashed #fde68ad1;border-radius:8px;padding:10px}.library-cover-frame-overlay.design-crest-medallion{background:radial-gradient(circle at 50% 45%,#fde68a29,#0000 70%);border:1.5px solid #fde68a99;border-radius:20px;padding:10px}.library-graphic-index-num{color:#fde68a;text-align:center;letter-spacing:.05em;font-size:13px;font-weight:700}.library-graphic-title{text-align:center;text-shadow:0 2px 5px #000000a6;-webkit-line-clamp:3;-webkit-box-orient:vertical;font-family:Lora,Georgia,serif;font-size:15px;font-weight:700;line-height:1.25;display:-webkit-box;overflow:hidden}.library-cover-frame-overlay.design-modern-minimal .library-graphic-title{text-align:left}.library-graphic-meta{color:#fde68aeb;text-align:center;font-size:11px;font-weight:600}.library-book-updated{color:#e5d6b8;text-align:center;font-size:11px;line-height:1.3}.library-hint-caption{color:#fca5a5;letter-spacing:.04em;text-align:center;font-size:11px}.library-context-menu{z-index:200;color:#291d04;background:#fffdf9;border:1px solid #d6cbb5;border-radius:9px;flex-direction:column;gap:3px;min-width:170px;padding:5px;display:flex;position:fixed;box-shadow:0 14px 28px #00000073}.library-context-item{text-align:left;background:0 0;border:none;border-radius:6px;width:100%;padding:7px 10px;font-size:12px;font-weight:600}.library-context-item:hover{background:#f5ebd6}.library-context-item.danger{color:#b91c1c}.library-context-item.danger:hover{background:#fee2e2}.library-recover-section{background:#0f172ab8;border:1px solid #fde68a38;border-radius:12px;margin-top:24px;padding:16px 18px}.library-recover-header{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.library-recover-header h3{color:#fde68a;margin:2px 0 0;font-family:Lora,Georgia,serif;font-size:16px}.library-recover-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;display:grid}.library-recover-card{background:#1e293b;border:1px solid #ffffff1f;border-radius:10px;flex-direction:column;gap:8px;padding:12px;display:flex}.library-recover-title{color:#fff8e7;font-family:Lora,Georgia,serif;font-size:14px;font-weight:700}.library-recover-meta{color:#cbd5e1;font-size:11px}.library-recover-actions{gap:6px;margin-top:auto;display:flex}.library-recover-delete-btn{color:#fecaca;background:#7f1d1d;border-color:#991b1b;font-weight:600}.library-recover-delete-btn:hover{background:#991b1b}.notebook-column{perspective:1800px;min-width:0;transform-style:preserve-3d;flex-direction:column;gap:8px;display:flex}.zoom-stage{transform-origin:top;transition:transform .2s}@keyframes naturalTurnForward{0%{opacity:.45;transform-origin:0;transform:rotateY(-58deg)skewY(2.2deg)scale(.985);box-shadow:24px 12px 34px #0000008c}55%{opacity:.92;transform-origin:0;transform:rotateY(-18deg)skewY(.8deg)scale(.995)}to{opacity:1;transform-origin:0;transform:rotateY(0)skewY(0)scale(1);box-shadow:0 12px 28px #0000007a}}@keyframes naturalTurnBackward{0%{opacity:.45;transform-origin:0;transform:rotateY(32deg)skewY(-1.5deg)scale(.985);box-shadow:-16px 12px 30px #00000085}to{opacity:1;transform-origin:0;transform:rotateY(0)skewY(0)scale(1);box-shadow:0 12px 28px #0000007a}}.page-turn-forward{backface-visibility:hidden;animation:.52s cubic-bezier(.2,.85,.25,1) naturalTurnForward}.page-turn-backward{backface-visibility:hidden;animation:.48s cubic-bezier(.2,.85,.25,1) naturalTurnBackward}.texture-moleskine{background-image:radial-gradient(#ffffff0a 1px,#0000 0),linear-gradient(90deg,#0000006b 0%,#0000001a 28px,#ffffff0d 34px,#00000038 100%);background-size:4px 4px,100% 100%}.texture-calfskin{background-image:radial-gradient(at 28% 22%,#fff6d62e 0%,#0000 55%),radial-gradient(#00000029 1px,#0000 0);background-size:100% 100%,9px 9px}.texture-leather{background-image:radial-gradient(#ffffff1f 1px,#0000 0),radial-gradient(#00000047 1.2px,#0000 0);background-position:0 0,5.5px 5.5px;background-size:11px 11px}.texture-saddle-leather{background-image:radial-gradient(circle at 75% 24%,#ffebbe2e 0%,#0000 50%),repeating-linear-gradient(140deg,#ffffff08 0 2px,#0000001f 2px 7px)}.texture-croc-leather{background-image:radial-gradient(circle at 25% 25%,#ffffff17 2px,#0000 5px),radial-gradient(circle at 75% 75%,#0000004d 2px,#0000 6px),linear-gradient(45deg,#00000026 25%,#0000 25%),linear-gradient(-45deg,#00000026 25%,#0000 25%);background-size:18px 18px,18px 18px,18px 18px,18px 18px}.texture-smooth{background-image:linear-gradient(90deg,#00000061 0%,#0000001a 26px,#ffffff12 32px,#0003 100%)}.texture-linen{background-image:repeating-linear-gradient(0deg,#ffffff12 0 1px,#0000 1px 4px),repeating-linear-gradient(90deg,#00000026 0 1px,#0000 1px 4px)}.texture-canvas{background-image:linear-gradient(45deg,#00000021 25%,#0000 25%),linear-gradient(-45deg,#ffffff12 25%,#0000 25%);background-size:8px 8px}.texture-tweed{background-image:repeating-linear-gradient(45deg,#ffffff12 0 2px,#0000 2px 6px),repeating-linear-gradient(-45deg,#0000002b 0 2px,#0000 2px 6px)}.texture-crosshatch{background-image:repeating-linear-gradient(0deg,#ffffff0d 0 1px,#0000 1px 6px),repeating-linear-gradient(90deg,#ffffff0d 0 1px,#0000 1px 6px),repeating-linear-gradient(45deg,#0000001f 0 1px,#0000 1px 8px)}.texture-suede{background-image:radial-gradient(#ffffff0f 1px,#0000 0),radial-gradient(#00000021 1px,#0000 0);background-position:0 0,2.5px 2.5px;background-size:5px 5px}.texture-marbled{background-image:radial-gradient(circle at 20% 25%,#ffffff24 0%,#0000 45%),radial-gradient(circle at 80% 70%,#00000040 0%,#0000 50%),repeating-linear-gradient(125deg,#ffffff0f 0 3px,#0000 3px 14px)}.cover-stage-layout{grid-template-columns:minmax(0,1fr) 236px;align-items:start;gap:18px;display:grid}.cover-side-panel{background:linear-gradient(#fffdf9 0%,#f6efe0 100%);border:1px solid #d9c9a8;border-radius:14px;flex-direction:column;gap:14px;padding:16px 14px;display:flex;box-shadow:0 12px 24px #0000006b}.cover-side-panel h3{color:#2e1f03;margin:2px 0 0;font-family:Lora,Georgia,serif;font-size:16px}.cover-side-field{color:#291d04;flex-direction:column;gap:6px;font-size:12px;font-weight:600;display:flex}.cover-side-color-row{justify-content:space-between;align-items:center;gap:8px;display:flex}.cover-side-color-row input[type=color]{cursor:pointer;background:0 0;border:none;width:34px;height:24px;padding:0}.hardback-cover-page{width:100%;max-width:var(--cover-w,740px);height:var(--cover-h,760px);min-height:var(--cover-h,760px);background-color:var(--hardback-color,#6b1d2f);color:#fff8e7;border-radius:6px 18px 18px 6px;flex-direction:column;justify-content:space-between;margin:0 auto;padding:44px 48px 44px 72px;transition:background-color .35s;display:flex;position:relative;overflow:hidden;box-shadow:inset 34px 0 24px -10px #0000009e,inset -8px 0 18px #00000059,inset 0 0 0 2px #fde68a38,0 22px 44px #0000009e}.hardback-cover-page:before{content:"";pointer-events:none;z-index:2;background:repeating-linear-gradient(#fde68a52 0 3px,#00000061 3px 7px,#0000 7px 118px);border-radius:3px;width:12px;position:absolute;top:38px;bottom:38px;left:16px}.cover-ornament-svg{color:#fde68ad6;filter:drop-shadow(0 1px 2px #00000073);pointer-events:none;width:240px;height:34px;margin:6px auto 12px;display:block}.design-modern-minimal .cover-ornament-svg{margin:6px 0 12px}.design-classic-frame .hardback-inner-frame{text-align:center;z-index:3;border:2px solid #fde68aad;border-radius:8px;flex-direction:column;flex:1;justify-content:space-between;align-items:center;padding:32px 34px;display:flex;position:relative;box-shadow:inset 0 0 0 6px #fde68a24}.design-double-rule .hardback-inner-frame{outline-offset:8px;text-align:center;z-index:3;border:3px double #fde68ac7;border-radius:4px;outline:1px solid #fde68a61;flex-direction:column;flex:1;justify-content:space-between;align-items:center;padding:32px 34px;display:flex;position:relative}.design-modern-minimal .hardback-inner-frame{text-align:left;z-index:3;border:none;border-left:5px solid #fde68ad9;border-radius:0;flex-direction:column;flex:1;justify-content:space-between;align-items:flex-start;padding:28px 30px;display:flex;position:relative}.design-modern-minimal .hardback-title-field,.design-modern-minimal .hardback-subtitle-field,.design-modern-minimal .hardback-author-field{text-align:left}.design-corner-flourish .hardback-inner-frame{text-align:center;z-index:3;border:1.5px dashed #fde68abf;border-radius:24px 6px;flex-direction:column;flex:1;justify-content:space-between;align-items:center;padding:32px 34px;display:flex;position:relative}.design-spine-band .hardback-inner-frame{text-align:center;z-index:3;border:12px solid #fde68ab8;border-left:1px solid #fde68a66;border-right:1px solid #fde68a66;border-radius:6px;flex-direction:column;flex:1;justify-content:space-between;align-items:center;padding:32px 34px;display:flex;position:relative}.design-stitched-leather .hardback-inner-frame{text-align:center;z-index:3;border:2px dashed #fde68acc;border-radius:12px;flex-direction:column;flex:1;justify-content:space-between;align-items:center;padding:32px 34px;display:flex;position:relative;box-shadow:inset 0 0 0 7px #0000002e}.design-crest-medallion .hardback-inner-frame{text-align:center;z-index:3;background:radial-gradient(circle at 50% 44%,#fde68a29 0%,#0000 65%);border:2px solid #fde68a8c;border-radius:34px;flex-direction:column;flex:1;justify-content:space-between;align-items:center;padding:32px 34px;display:flex;position:relative}.hardback-title-field{color:#fffbeb;text-align:center;text-shadow:0 2px 6px #00000073;background:0 0;border:none;border-bottom:1px solid #fde68a61;outline:none;width:100%;padding:10px 12px;font-family:Lora,Georgia,serif;font-size:36px;font-weight:700}.hardback-subtitle-field{color:#fff8e7e6;text-align:center;text-shadow:0 1px 4px #0006;background:0 0;border:none;outline:none;width:100%;padding:8px 12px;font-family:Lora,Georgia,serif;font-size:19px;font-style:italic}.hardback-author-field{color:#fde68af2;letter-spacing:.1em;text-transform:uppercase;text-align:center;background:0 0;border:none;outline:none;width:100%;padding:8px 12px;font-size:14px;font-weight:600}.hardback-open-btn{color:#291d04;background:#fde68a;border-color:#fde68a;padding:9px 18px;font-weight:700}.notebook-page{border-left:6px solid var(--hardback-color,#c53030);background:#fffdf9;border-radius:12px;flex-direction:column;width:100%;margin:0 auto;padding:18px 32px 14px;transition:border-left-color .35s;display:flex;position:relative;overflow:hidden;box-shadow:0 14px 30px #00000080,inset 0 1px #ffffffe6}.notebook-page.size-a4{max-width:780px;height:980px;min-height:980px}.notebook-page.size-a5{max-width:550px;height:740px;min-height:740px}.notebook-page.size-letter{max-width:780px;height:920px;min-height:920px}.open-book-spread-wrap{background:linear-gradient(#5c3a14 0%,#3b2309 100%);border-radius:14px;padding:12px 14px 16px;box-shadow:0 16px 36px #0000008c}.booklet-sheet-caption{text-transform:uppercase;letter-spacing:.08em;color:#fde68a;text-align:center;margin-bottom:10px;font-size:11px;font-weight:700}.open-book-spread{background:#fffdf9;border-radius:8px;grid-template-columns:1fr 1fr;display:grid;position:relative;overflow:hidden;box-shadow:inset 0 0 24px #00000024,0 10px 26px #00000073}.open-book-spread:after{content:"";pointer-events:none;z-index:9;background:linear-gradient(90deg,#0000 0%,#00000024 44%,#00000047 50%,#00000024 56%,#0000 100%);width:28px;position:absolute;top:0;bottom:0;left:50%;transform:translate(-50%)}.spread-leaf-left{box-shadow:none;border-left:none;border-radius:8px 0 0 8px;max-width:100%;height:700px;min-height:700px;padding:18px 28px 14px 20px}.spread-leaf-right{box-shadow:none;border-left:none;border-radius:0 8px 8px 0;max-width:100%;height:700px;min-height:700px;padding:18px 20px 14px 28px}.chapter-header-block{z-index:25;border-bottom:2px solid #e5dec9;flex-shrink:0;margin-bottom:8px;padding-bottom:6px;position:relative}.chapter-header-block.header-hidden{border:none!important;height:0!important;margin:0!important;padding:0!important;display:none!important}.chapter-hidden-strip{z-index:25;justify-content:flex-end;margin-bottom:4px;display:flex;position:relative}.chapter-style-bar{flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:8px;display:flex}.chapter-style-label{text-transform:uppercase;letter-spacing:.08em;color:#7c6642;margin-right:2px;font-size:11px;font-weight:700}.chapter-mini-select{padding:3px 6px;font-size:12px}.chapter-mini-color{color:#453000;background:#faf6ee;border:1px solid #d6cbb5;border-radius:6px;align-items:center;gap:4px;padding:2px 6px;font-size:11px;font-weight:600;display:inline-flex}.chapter-mini-color input[type=color]{cursor:pointer;background:0 0;border:none;width:22px;height:18px;padding:0}.chapter-mini-btn{min-width:26px;padding:3px 8px;font-size:12px}.chapter-title-input{background:0 0;border:none;outline:none;width:100%;padding:2px 0}.vocab-header-row{z-index:4;border-bottom:2px solid #d97706;flex-shrink:0;gap:10px;margin-bottom:6px;padding-bottom:5px;display:grid;position:relative}.vocab-header-row.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.vocab-header-row.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.vocab-col-heading-input{text-transform:uppercase;letter-spacing:.08em;color:#78350f;width:100%;box-shadow:none;background:0 0;border:none;border-radius:0;outline:none;padding:3px 2px;font-size:12px;font-weight:700}.vocab-col-heading-input:focus{background:#d9770612}.page-canvas-wrap{z-index:6;clip-path:inset(-90px 0 0);cursor:text;--rule-step:32px;--dot-step:var(--rule-step);flex:1 1 0;max-width:100%;min-height:0;position:relative;overflow:visible}.page-paper-bg{z-index:0;pointer-events:none;position:absolute;inset:0}.page-paper-bg.ruled{background-image:linear-gradient(to bottom, transparent calc(var(--rule-step) - 1px), #d8dde6 calc(var(--rule-step) - 1px), #d8dde6 var(--rule-step));background-size:100% var(--rule-step);-webkit-print-color-adjust:exact;print-color-adjust:exact;background-repeat:repeat-y}.page-paper-bg.dotted-squares{background-image:radial-gradient(circle,#94a3b8 1.35px,#0000 1.45px);background-size:var(--dot-step) var(--rule-step);background-position:0 calc(var(--rule-step) * .5);-webkit-print-color-adjust:exact;print-color-adjust:exact}.rich-editor{z-index:4;width:100%;max-width:100%;min-height:100%;line-height:var(--rule-step);overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;outline:none;font-size:18px;position:relative}.rich-editor p,.rich-editor div{min-height:var(--rule-step);max-width:100%;line-height:var(--rule-step);overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;margin:0}.rich-editor ul,.rich-editor ol{max-width:100%;line-height:var(--rule-step);margin:0;padding-left:24px}.rich-editor li{min-height:var(--rule-step);max-width:100%;line-height:var(--rule-step);overflow-wrap:break-word;word-wrap:break-word;word-break:break-word}.vocab-preface-wrap{z-index:4;background:#fef9ecc7;border:1px dashed #d6c5a5;border-radius:6px;justify-content:space-between;align-items:flex-start;gap:8px;max-width:100%;margin-bottom:6px;padding:4px 8px;display:flex;position:relative}.vocab-preface-editor{min-width:0;min-height:var(--rule-step);line-height:var(--rule-step);overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;outline:none;flex:1;font-size:16px}.vocab-preface-remove-btn{flex-shrink:0;padding:2px 7px;font-size:11px}.vocab-grid-sheet{z-index:4;flex-direction:column;justify-content:flex-start;align-self:flex-start;width:100%;min-height:0;margin:0;padding:0;display:flex;position:relative}.vocab-entry-row{flex:none}.vocab-preface-editor p,.vocab-preface-editor div{min-height:var(--rule-step);line-height:var(--rule-step);margin:0}.vocab-entry-row{min-height:var(--rule-step);line-height:var(--rule-step);border-bottom:1px solid #dce1ea;display:grid}.vocab-entry-row.no-vocab-lines{border-bottom:none}.vocab-entry-row.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.vocab-entry-row.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.vocab-cell{min-height:var(--rule-step);line-height:var(--rule-step);white-space:normal;overflow-wrap:anywhere;word-break:break-word;border-right:1px solid #b4530940;outline:none;padding:0 10px;font-size:17px}.vocab-cell.no-vocab-col-lines,.vocab-cell:last-child{border-right:none}.vocab-cell:focus{background:#fef3c740}.vocab-add-row-bar{align-items:center;gap:8px;margin-top:8px;display:flex}.vocab-add-row-btn{color:#78350f;background:#fef3c7;border-color:#d97706;padding:4px 10px;font-size:12px;font-weight:600}.page-canvas-wrap.drag-over{background-color:#fef3c740;border-radius:6px;outline:2px dashed #b45309}.planted-items-wrap{z-index:8;margin:4px 0 8px;display:block;position:relative}.planted-items-wrap:after{content:"";clear:both;display:table}.page-image-box.planted-inline,.page-shape-box.planted-inline{-webkit-user-select:none;user-select:none;border-radius:6px;margin-bottom:10px;position:relative;z-index:8!important;top:auto!important;left:auto!important}.page-image-box.planted-inline.wrap-left,.page-shape-box.planted-inline.wrap-left{float:left;clear:left;shape-outside:margin-box;margin-right:16px}.page-image-box.planted-inline.wrap-right,.page-shape-box.planted-inline.wrap-right{float:right;clear:right;shape-outside:margin-box;margin-left:16px}.page-image-box.floating-box,.page-shape-box.floating-box{-webkit-user-select:none;user-select:none;z-index:8;border-radius:6px;position:absolute}.page-image-box.pinned,.page-shape-box.pinned{z-index:7}.page-image-box.behind-text,.page-shape-box.behind-text{z-index:1!important}.page-image-box.behind-text img,.page-shape-box.behind-text .shape-svg-wrap{opacity:.78}.page-image-box img{cursor:move;pointer-events:auto;border-radius:6px;width:100%;height:auto;display:block;box-shadow:0 4px 12px #00000029}.page-image-box.planted-inline img{cursor:pointer}.page-image-box.pinned img{cursor:default;box-shadow:0 3px 10px #00000038}.page-image-box.selected img,.page-shape-box.selected .shape-svg-wrap{border-radius:4px;outline:2px solid #2563eb}.shape-svg-wrap{cursor:move;pointer-events:auto;justify-content:center;align-items:center;width:100%;height:100%;display:flex}.page-shape-box.planted-inline .shape-svg-wrap{cursor:pointer}.page-shape-box.pinned .shape-svg-wrap{cursor:default}.shape-mini-color{color:#f9fafb;align-items:center;gap:2px;font-size:10px;display:inline-flex}.shape-mini-color input[type=color]{cursor:pointer;background:0 0;border:none;width:18px;height:16px;padding:0}.pin-badge{color:#fde68a;pointer-events:none;background:#111827c7;border-radius:999px;padding:2px 6px;font-size:10px;font-weight:700;position:absolute;top:6px;right:6px}.floating-img-bar{z-index:45;white-space:nowrap;background:#1f2937;border-radius:6px;align-items:center;gap:4px;padding:3px 6px;display:none;position:absolute;top:-36px;left:0;box-shadow:0 4px 12px #00000059}.floating-img-bar.bar-below{top:auto;bottom:-36px}.page-image-box.selected .floating-img-bar,.page-image-box:hover .floating-img-bar,.page-shape-box.selected .floating-img-bar,.page-shape-box:hover .floating-img-bar{display:flex}.floating-img-bar button{color:#fff;background:#374151;border-color:#4b5563;padding:2px 6px;font-size:11px}.floating-img-bar button:hover{background:#4b5563}.floating-img-bar button.bar-active{color:#111827;background:#d97706;border-color:#fbbf24;font-weight:700}.floating-resize-handle{cursor:nwse-resize;z-index:16;background:#2563eb;border:2px solid #fff;border-radius:4px;width:15px;height:15px;display:none;position:absolute;bottom:-6px;right:-6px}.page-image-box.selected .floating-resize-handle,.page-image-box:hover .floating-resize-handle,.page-shape-box.selected .floating-resize-handle,.page-shape-box:hover .floating-resize-handle{display:block}.drawing-overlay-canvas{z-index:12;pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.drawing-overlay-canvas.drawing-active{pointer-events:auto}.drawing-overlay-canvas.mode-pen{cursor:crosshair}.drawing-overlay-canvas.mode-eraser{cursor:cell}.page-number-corner{color:#6b7280;text-align:right;flex-shrink:0;margin-top:6px;font-size:12px;font-weight:500}.page-number-left{text-align:left}.subtle-page-nav{color:#fffdf9e6;justify-content:center;align-items:center;gap:14px;padding:4px 8px;font-size:12px;display:flex}.subtle-nav-btn{color:#fffdf9f2;background:#fffdf929;border:1px solid #fffdf952;border-radius:6px;padding:5px 12px;font-size:12px}.subtle-nav-btn:hover:not(:disabled){background:#fffdf942;border-color:#fffdf980}.subtle-page-label{color:#fffdf9e0;font-size:12px}.no-screen-pad{display:none}@media (width<=1040px){.cover-stage-layout{grid-template-columns:1fr}}@media (width<=900px){.workspace,.open-book-spread{grid-template-columns:1fr}.open-book-spread:after{display:none}}@media print{body,.app-shell{background:#fff!important;min-height:auto!important;margin:0!important;padding:0!important}.workspace{max-width:100%!important;margin:0!important;display:block!important}.zoom-stage{transform:none!important}.no-print,.booklet-sheet-caption,.floating-img-bar,.floating-resize-handle,.pin-badge,.color-popover,.cover-side-panel,.vocab-add-row-bar,.vocab-preface-remove-btn{display:none!important}.no-screen-pad{display:grid!important}.page-image-box.selected img,.page-shape-box.selected .shape-svg-wrap{outline:none!important}.page-turn-forward,.page-turn-backward{animation:none!important;transform:none!important}.hardback-cover-page{box-shadow:none!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;border-radius:0!important}.notebook-page,.spread-leaf-left,.spread-leaf-right{break-inside:avoid;page-break-inside:avoid;box-sizing:border-box!important;box-shadow:none!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;border:none!important;border-radius:0!important;flex-direction:column!important;margin:0 auto!important;display:flex!important;overflow:hidden!important}.notebook-page:not(.spread-leaf-left):not(.spread-leaf-right){border-left:6px solid #0000!important;padding:18px 32px 14px!important}.notebook-page.size-a4{zoom:1.0177;width:780px!important;max-width:780px!important;height:980px!important;min-height:0!important}.notebook-page.size-a5{zoom:1.0164;width:550px!important;max-width:550px!important;height:740px!important;min-height:0!important}.notebook-page.size-letter{zoom:1.0462;width:780px!important;max-width:780px!important;height:920px!important;min-height:0!important}.spread-leaf-left,.spread-leaf-right{width:100%!important;max-width:100%!important;height:700px!important;min-height:0!important}.spread-leaf-left{padding:18px 28px 14px 20px!important}.spread-leaf-right{padding:18px 20px 14px 28px!important}.page-canvas-wrap{flex:auto!important;height:auto!important;min-height:0!important;position:relative!important;overflow:hidden!important}.page-paper-bg{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;width:100%!important;height:100%!important;position:absolute!important;inset:0!important}.page-paper-bg.ruled{background-image:linear-gradient(to bottom, transparent calc(var(--rule-step) / 2 - 1px), #d8dde6 calc(var(--rule-step) / 2 - 1px), #d8dde6 calc(var(--rule-step) / 2), transparent calc(var(--rule-step) / 2))!important;background-size:100% var(--rule-step)!important;background-position:0 calc(var(--rule-step) / 2)!important;clip-path:inset(1.5px 0 0)!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;background-repeat:repeat-y!important}.page-paper-bg.dotted-squares{background-image:radial-gradient(circle,#94a3b8 1.35px,#0000 1.45px)!important;background-size:var(--dot-step,32px) var(--rule-step,32px)!important;background-position:0 calc(var(--rule-step,32px) * .5)!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;background-repeat:repeat!important}.vocab-grid-sheet{height:auto!important;min-height:0!important}.page-number-corner{flex-shrink:0!important;margin-top:4px!important;line-height:1.2!important}.open-book-spread-wrap{box-shadow:none!important;background:#fff!important;border-radius:0!important;padding:0!important}.open-book-spread{width:297mm!important;height:209mm!important;box-shadow:none!important;border-radius:0!important;grid-template-columns:1fr 1fr!important;align-items:start!important;gap:0!important;display:grid!important}.open-book-spread:after{display:none!important}}.hardback-cover-page{--cover-foil:#fde68a}.hardback-cover-page:before{background:repeating-linear-gradient(to bottom, color-mix(in srgb, var(--cover-foil) 32%, transparent) 0px, color-mix(in srgb, var(--cover-foil) 32%, transparent) 3px, #00000061 3px, #00000061 7px, transparent 7px, transparent 118px)}.hardback-cover-page.cover-no-spine:before{display:none}.hardback-cover-page .cover-ornament-svg{color:var(--cover-foil)}.hardback-cover-page.design-classic-frame .hardback-inner-frame{border-color:color-mix(in srgb, var(--cover-foil) 68%, transparent);box-shadow:inset 0 0 0 6px color-mix(in srgb, var(--cover-foil) 14%, transparent)}.hardback-cover-page.design-double-rule .hardback-inner-frame{border-color:color-mix(in srgb, var(--cover-foil) 78%, transparent);outline-color:color-mix(in srgb, var(--cover-foil) 38%, transparent)}.hardback-cover-page.design-modern-minimal .hardback-inner-frame{border-left-color:color-mix(in srgb, var(--cover-foil) 85%, transparent)}.hardback-cover-page.design-corner-flourish .hardback-inner-frame{border-color:color-mix(in srgb, var(--cover-foil) 75%, transparent)}.hardback-cover-page.design-spine-band .hardback-inner-frame{border-color:color-mix(in srgb, var(--cover-foil) 40%, transparent);border-top-color:color-mix(in srgb, var(--cover-foil) 72%, transparent);border-bottom-color:color-mix(in srgb, var(--cover-foil) 72%, transparent)}.hardback-cover-page.design-stitched-leather .hardback-inner-frame{border-color:color-mix(in srgb, var(--cover-foil) 80%, transparent)}.hardback-cover-page.design-crest-medallion .hardback-inner-frame{border-color:color-mix(in srgb, var(--cover-foil) 55%, transparent);background:radial-gradient(circle at 50% 44%, color-mix(in srgb, var(--cover-foil) 16%, transparent) 0%, transparent 65%)}.hardback-cover-page.cover-no-frame .hardback-inner-frame{box-shadow:none!important;background-image:none!important;border-color:#0000!important;outline:none!important}.hardback-cover-page .hardback-title-field{border-bottom-color:color-mix(in srgb, var(--cover-foil) 38%, transparent)}.hardback-cover-page.cover-no-rule .hardback-title-field{border-bottom-color:#0000}.cover-fx-foil .hardback-title-field,.cover-fx-foil .hardback-subtitle-field,.cover-fx-foil .hardback-author-field,.cover-fx-foil .cover-emblem{text-shadow:0 1px #ffffff47,0 -1px #0006,0 2px 6px #00000073}.cover-fx-emboss .hardback-title-field,.cover-fx-emboss .hardback-subtitle-field,.cover-fx-emboss .hardback-author-field,.cover-fx-emboss .cover-emblem{text-shadow:0 -1px #ffffff6b,0 1px #0000008c,0 3px 4px #00000059}.cover-fx-deboss .hardback-title-field,.cover-fx-deboss .hardback-subtitle-field,.cover-fx-deboss .hardback-author-field,.cover-fx-deboss .cover-emblem{text-shadow:0 1px #ffffff38,0 -1px 1px #000000b3}.cover-fx-plain .hardback-title-field,.cover-fx-plain .hardback-subtitle-field,.cover-fx-plain .hardback-author-field,.cover-fx-plain .cover-emblem{text-shadow:none}.cover-title-block{width:100%}.cover-pos-middle .cover-title-block{margin-top:auto;margin-bottom:auto}.cover-pos-bottom .cover-title-block{margin-top:auto}.cover-emblem{text-align:center;color:var(--cover-foil);margin:4px 0 8px;line-height:1}.cover-title-block.plate-dark{border:1px solid color-mix(in srgb, var(--cover-foil) 55%, transparent);background:#00000047;border-radius:6px;padding:12px 14px;box-shadow:inset 0 0 0 4px #0000001f,0 2px 6px #00000059}.cover-title-block.plate-paper{background:linear-gradient(#f7efd9 0%,#eadcb8 100%);border:1px solid #b79b5e;border-radius:3px;padding:12px 14px;box-shadow:0 2px 6px #00000073,inset 0 0 14px #785a1e40}.cover-title-block.plate-brass{background:linear-gradient(135deg,#f5df9b 0%,#c9a13a 40%,#e7c868 60%,#8f6c1b 100%);border:2px solid #6d4f10;border-radius:4px;padding:12px 14px;box-shadow:0 3px 8px #00000080,inset 0 1px #ffffff80}.plate-paper input,.plate-brass input,.plate-paper .cover-emblem,.plate-brass .cover-emblem{color:#2b1b06!important;text-shadow:none!important}.plate-paper .cover-ornament-svg,.plate-brass .cover-ornament-svg{color:#7a5a12;filter:none}.plate-paper .hardback-title-field,.plate-brass .hardback-title-field{border-bottom-color:#3c280559}.cover-sheen{border-radius:inherit;pointer-events:none;z-index:5;position:absolute;inset:0}.cover-gloss-satin .cover-sheen{background:linear-gradient(115deg,#ffffff1a 0%,#fff0 40%,#ffffff0d 70%,#00000014 100%)}.cover-gloss-gloss .cover-sheen{background:linear-gradient(115deg,#ffffff4d 0%,#ffffff14 28%,#fff0 45%,#ffffff1f 62%,#0000002e 100%)}.cover-elastic{z-index:6;pointer-events:none;background-image:linear-gradient(90deg,#fff3,#00000047),repeating-linear-gradient(0deg,#0000002e 0 2px,#0000 2px 5px);width:14px;position:absolute;top:0;bottom:0;right:22px;box-shadow:-2px 0 4px #0006,2px 0 4px #0000004d}.cover-ribbon{z-index:6;pointer-events:none;clip-path:polygon(0 0,100% 0,100% 100%,50% 82%,0 100%);background-image:linear-gradient(90deg,#ffffff3d,#0000 40%,#00000047);width:16px;height:70px;position:absolute;bottom:0;right:96px}.cover-corner{z-index:6;pointer-events:none;width:54px;height:54px;position:absolute}.cover-corner.tl{clip-path:polygon(0 0,100% 0,0 100%);top:0;left:0}.cover-corner.tr{clip-path:polygon(0 0,100% 0,100% 100%);top:0;right:0}.cover-corner.bl{clip-path:polygon(0 0,0 100%,100% 100%);bottom:0;left:0}.cover-corner.br{clip-path:polygon(100% 0,100% 100%,0 100%);bottom:0;right:0}.cover-corners-brass .cover-corner{background:linear-gradient(135deg,#f7e3a1 0%,#c59a2d 45%,#7a5a12 100%)}.cover-corners-silver .cover-corner{background:linear-gradient(135deg,#f3f4f6 0%,#b6bcc6 45%,#6b7280 100%)}.cover-corners-copper .cover-corner{background:linear-gradient(135deg,#f4c19f 0%,#c0733c 45%,#7a3e18 100%)}.cover-side-panel{gap:10px;max-height:88vh;overflow-y:auto}.cover-fold{background:#fffdf9;border:1px solid #e2d3b3;border-radius:8px;flex-shrink:0}.cover-fold summary{cursor:pointer;color:#453000;padding:7px 10px;font-size:12px;font-weight:700;list-style:none}.cover-fold summary::-webkit-details-marker{display:none}.cover-fold summary:before{content:"▸ "}.cover-fold[open] summary:before{content:"▾ "}.cover-fold-body{flex-direction:column;gap:8px;padding:4px 10px 10px;display:flex}.cover-fold-body select{width:100%;min-width:0;font-size:12px}.cover-row{align-items:center;gap:6px;display:flex}.cover-row select{flex:1}.cover-row input[type=color]{cursor:pointer;background:0 0;border:none;width:34px;height:26px;padding:0}.cover-mini-label{color:#291d04;flex:1;font-size:12px;font-weight:600}.cover-check{color:#291d04;cursor:pointer;align-items:center;gap:6px;font-size:12px;font-weight:600;display:flex}.cover-emblem-input{color:#291d04;background:#fffdf9;border:1px solid #d6cbb5;border-radius:7px;width:100%;padding:5px 8px;font-size:12px}.cover-symbol-row{flex-wrap:wrap;gap:4px;display:flex}@media print{.cover-sheen,.cover-ribbon{-webkit-print-color-adjust:exact;print-color-adjust:exact}.spine-trash-btn,.cover-preset-grid{display:none!important}}.cover-preset-grid{grid-template-columns:1fr 1fr;gap:8px;display:grid}.cover-preset-card{border:1px solid #0006;border-left:6px solid #00000059;border-radius:3px 8px 8px 3px;flex-direction:column;justify-content:space-between;align-items:center;height:82px;padding:6px;display:flex;position:relative;box-shadow:inset 2px 0 4px #ffffff26,2px 3px 6px #0006}.cover-preset-title{text-shadow:0 1px 2px #00000080;margin-top:8px;font-size:22px;font-weight:700}.cover-preset-name{color:#fff8e7;text-shadow:0 1px 2px #000c;font-size:10px;font-weight:700}.hardback-cover-page{border-radius:4px 14px 14px 4px;box-shadow:inset 34px 0 24px -10px #0000009e,inset -8px 0 18px #00000059,inset 0 0 0 2px #ffffff14,inset 0 0 60px #00000040,6px 0 0 -1px #efe6cf,8px 0 0 -2px #cfc2a2,10px 0 0 -3px #efe6cf,0 26px 40px #0009}.hardback-cover-page:after{content:"";z-index:4;pointer-events:none;background:linear-gradient(90deg,#00000073,#ffffff1f 40%,#0000004d);width:10px;position:absolute;top:0;bottom:0;left:40px}.hardback-cover-page.texture-leather,.hardback-cover-page.texture-calfskin,.hardback-cover-page.texture-saddle-leather,.hardback-cover-page.texture-smooth,.hardback-cover-page.texture-suede,.hardback-cover-page.texture-croc-leather{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='4'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),radial-gradient(at 30% 20%,#ffffff29,#0000 60%);background-size:220px 220px,100% 100%}.library-bookshelf{background:linear-gradient(#1b0e05,#2e1a0b 60%,#1b0e05);border:6px solid #4a2a10;border-radius:6px;align-items:flex-end;gap:3px;padding:14px 10px 0;box-shadow:inset 0 0 30px #000000e6,0 8px 18px #00000080}.library-spine-card{background-blend-mode:multiply;background-image:linear-gradient(90deg,#00000073,#ffffff26 18%,#0000000d 50%,#00000073);border-radius:2px 3px 1px 1px;width:46px;height:118px}.library-spine-card:after{content:"";background:linear-gradient(90deg,#0000,#fde68acc,#0000);height:3px;position:absolute;bottom:12px;left:0;right:0}.library-spine-open{writing-mode:vertical-rl;letter-spacing:.06em;text-shadow:0 1px 2px #000000b3;font-family:Lora,serif;transform:rotate(180deg)}.spine-trash-btn{z-index:5;background:#fee2e2;border-color:#b91c1c;border-radius:50%;width:22px;height:22px;padding:0;font-size:12px;display:none;position:absolute;top:-9px;right:-9px}.library-spine-card:hover .spine-trash-btn,.library-spine-card:focus-within .spine-trash-btn{display:block}@media (hover:none){.spine-trash-btn{display:block}}.library-page-view{background:repeating-linear-gradient(90deg,#0000002e 0 2px,#0000 2px 120px),radial-gradient(at 50% 0,#ffbe5a38,#0000 60%),linear-gradient(#3a2212,#1d1008);border:10px solid #4a2a10}.library-recessed-shelf{background:linear-gradient(#170b04,#2a160a)}.library-shelf-slot:after{content:"";z-index:-1;background:linear-gradient(#8a5a2b,#4d2a0d);height:10px;position:absolute;bottom:22px;left:-14px;right:-14px;box-shadow:0 8px 10px #0009}.vocab-preface-wrap{background:0 0;border:none;border-radius:0;align-items:flex-start;margin-bottom:0;padding:0}.vocab-preface-editor{font-size:18px}.vocab-preface-remove-btn{opacity:0;transition:opacity .15s}.vocab-preface-wrap:hover .vocab-preface-remove-btn{opacity:1}.draw-tools{background:#efe4c8;border-radius:9px;gap:3px;padding:2px;display:inline-flex}.draw-tools button{background:0 0;border-color:#0000}.draw-tools button.active-toggle{background:#fde68a;border-color:#b45309}.draw-swatch{border:2px solid #fff;border-radius:50%;width:20px;height:20px;padding:0;box-shadow:0 0 0 1px #00000059}.draw-swatch.active{box-shadow:0 0 0 2px #1f2937}.drawing-overlay-canvas.mode-highlighter{cursor:crosshair}.drawing-overlay-canvas.mode-strokeEraser{cursor:cell}.planted-items-wrap{height:0;margin:0}.planted-items-wrap:after{content:none;display:none}.avoid-spacer{pointer-events:none;visibility:hidden}.page-image-box.scrap-item,.page-shape-box.scrap-item{touch-action:none;cursor:grab;z-index:8!important;position:absolute!important}.page-image-box.scrap-item:active,.page-shape-box.scrap-item:active{cursor:grabbing}.page-image-box.scrap-item img{cursor:inherit}.vocab-grid-sheet{display:block}.scrap-rot{transform-origin:50%;position:relative}.page-image-box.scrap-item.selected{outline:none}.rotate-handle{cursor:grab;z-index:17;background:#fff;border:2px solid #2563eb;border-radius:50%;width:14px;height:14px;margin-left:-7px;display:none;position:absolute;top:-32px;left:50%}.rotate-handle:after{content:"";background:#2563eb;width:2px;height:16px;position:absolute;top:100%;left:50%;transform:translate(-50%)}.scrap-item.selected .rotate-handle{display:block}.floating-img-bar{white-space:normal;flex-wrap:wrap;max-width:420px}.floating-img-bar .rot-angle{color:#f9fafb;align-items:center;gap:1px;font-size:11px;display:inline-flex}.floating-img-bar .rot-angle input{color:#fff;background:#374151;border:1px solid #4b5563;border-radius:4px;width:46px;padding:1px 3px;font-size:11px}.library-header-actions{flex-wrap:wrap;gap:8px;display:flex}.recycle-empty{color:#d6c3a1;text-align:center;padding:30px 0}.library-page-grid{flex-wrap:wrap;align-items:flex-end;gap:34px 38px;padding:26px 30px 0;display:flex}.library-shelf-slot{flex-direction:column;align-items:center;padding-bottom:26px;display:flex;position:relative}.library-shelf-slot:after{z-index:0;bottom:14px;left:-20px;right:-20px}.library-book-updated{color:#d6c3a1;white-space:nowrap;z-index:1;font-size:10px;position:absolute;bottom:-6px}.mini-cover-box{position:relative;overflow:visible}.mini-cover{transform-origin:0 0;pointer-events:none;margin:0;position:absolute;top:0;left:0;width:var(--cover-w,740px)!important;max-width:none!important;min-height:var(--cover-h,960px)!important;height:var(--cover-h,960px)!important}.mini-cover .mini-field{text-align:center;overflow-wrap:anywhere;background:0 0;border:none;width:100%;display:block}.book3d{z-index:2;perspective:900px;cursor:pointer;outline:none;position:relative}.book3d-inner{transform-style:preserve-3d;transform-origin:50% 100%;filter:drop-shadow(6px 8px 6px #0000008c);transition:transform .45s cubic-bezier(.2,.9,.3,1),filter .45s;position:relative}.book3d:hover .book3d-inner,.book3d:focus-visible .book3d-inner{filter:drop-shadow(18px 26px 14px #0009);transform:translateY(-22px)translateZ(46px)rotateY(-22deg)rotateX(3deg)}.book3d-pages{transform-origin:100%;background:repeating-linear-gradient(#fffaf0 0 2px,#e4d9bf 2px 3px);border-radius:1px;width:28px;position:absolute;top:3%;bottom:3%;right:0;transform:rotateY(90deg)}.book3d-trash{z-index:6;cursor:pointer;background:#fee2e2;border:1px solid #b91c1c;border-radius:50%;width:26px;height:26px;padding:0;display:none;position:absolute;top:-8px;right:-8px}.book3d:hover .book3d-trash{display:block}@media (hover:none){.book3d-trash{display:block}}.library-recover-delete-btn{white-space:nowrap}.library-spine-card{transform-origin:50% 100%;transition:transform .3s cubic-bezier(.2,.9,.3,1),box-shadow .3s}.library-spine-card:before{background:linear-gradient(90deg, transparent, var(--spine-foil,#fde68a), transparent);height:3px}.library-spine-card:after{background:linear-gradient(90deg, transparent, var(--spine-foil,#fde68a), transparent)}.library-spine-open{color:var(--spine-foil,#fff8e7)}.library-spine-card:hover{z-index:4;transform:translateY(-16px)rotate(-3deg);box-shadow:8px 12px 14px #000000a6}.library-spine-card.active-shelf-book{outline:none;box-shadow:0 0 0 2px #fbbf24,3px 4px 8px #0009}.library-shelf-actions{flex-wrap:wrap}.floating-img-bar.bar-below{width:max-content;max-width:360px;top:calc(100% + 12px);bottom:auto}.top-toolbar{align-items:stretch;gap:10px}.top-toolbar .toolbar-divider{display:none}.top-toolbar .toolbar-group{background:#fff9;border:1px solid #eadfc5;border-radius:10px;align-items:center;padding:17px 8px 7px;position:relative}.top-toolbar .toolbar-group:before{letter-spacing:.09em;text-transform:uppercase;color:#a08a5a;pointer-events:none;font-size:9px;font-weight:700;position:absolute;top:3px;left:9px}.tg-text{order:1}.tg-text:before{content:"Text"}.tg-insert{order:2}.tg-insert:before{content:"Insert & draw"}.tg-page{order:3}.tg-page:before{content:"Page"}.tg-view{order:4}.tg-view:before{content:"View & print"}.tg-chars{order:5}.tg-chars:before{content:"Special letters"}.tg-lang{order:6}.tg-lang:before{content:"Language"}.top-toolbar button,.top-toolbar select{min-height:30px;font-size:13px}.top-toolbar button:hover{filter:brightness(.96);transform:translateY(-1px)}.top-toolbar button:focus-visible,.top-toolbar select:focus-visible{outline-offset:1px;outline:2px solid #2563eb}.top-toolbar .active-toggle{box-shadow:inset 0 0 0 2px #d4a017}@media (width<=760px){.top-toolbar{position:static}.top-toolbar .toolbar-group{width:100%}}.top-toolbar{padding-right:64px}.top-toolbar .toolbar-group:before{pointer-events:none}.top-toolbar .toolbar-group:after{content:"▾";color:#a08a5a;pointer-events:none;font-size:11px;position:absolute;top:2px;right:8px}.top-toolbar .toolbar-group:hover:after{color:#6b5a33}.top-toolbar .toolbar-group.is-collapsed{opacity:.92;min-width:92px;padding-bottom:5px}.top-toolbar .toolbar-group.is-collapsed:after{content:"▸"}.top-toolbar .toolbar-group.is-collapsed>*{display:none!important}.top-toolbar .toolbar-group.is-collapsed:before{font-size:10px}.top-toolbar .toolbar-group{transition:none}.top-toolbar .toolbar-group:before{white-space:nowrap}.top-toolbar .toolbar-group.is-collapsed{min-width:0;padding:6px 26px 6px 10px}.top-toolbar .toolbar-group.is-collapsed:before{white-space:nowrap;font-size:10px;line-height:1.2;display:block;position:static}.top-toolbar .toolbar-group.is-collapsed:after{top:50%;transform:translateY(-50%)}.cover-side-head{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.cover-fold-btn{color:#5b4a22;cursor:pointer;background:#fbf5e6;border:1px solid #e0d2b0;border-radius:7px;padding:3px 10px;font-size:12px;font-weight:600}.cover-fold-btn:hover{background:#f4ead0}.img-label{z-index:4;cursor:grab;box-sizing:border-box;-webkit-user-select:none;user-select:none;background:#fffdf7;border:1.5px solid #1f2937;border-radius:7px;align-items:center;gap:2px;padding:2px 4px;display:flex;position:absolute;box-shadow:0 1px 4px #0000002e}.img-label input{color:#1f2937;cursor:text;-webkit-user-select:text;user-select:text;text-align:center;background:0 0;border:none;outline:none;flex:1;width:100%;min-width:0;padding:2px 3px;font:600 14px/1.3 Inter,system-ui,sans-serif}.img-label-x{color:#b91c1c;cursor:pointer;background:#fff;border:1px solid #b91c1c;border-radius:50%;width:18px;height:18px;padding:0;font-size:13px;line-height:1;display:none;position:absolute;top:-9px;right:-9px}.img-label:hover .img-label-x,.img-label:focus-within .img-label-x{display:block}.floating-img-bar select{min-height:26px;font-size:12px}.floating-img-bar.bar-above{width:max-content;max-width:360px;top:auto;bottom:calc(100% + 42px)}.top-toolbar .toolbar-group.is-collapsed{cursor:pointer}.ocr-backdrop{z-index:9000;background:#00000073;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.ocr-card{color:#2b2118;background:#fffdf7;border-radius:12px;width:min(560px,100%);max-height:90vh;padding:18px;overflow:auto;box-shadow:0 12px 40px #00000059}.ocr-card h3{margin:0 0 10px}.ocr-row{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:10px;display:flex}.ocr-actions{justify-content:flex-end;margin:12px 0 0}.ocr-preview{border-radius:6px;max-width:100%;max-height:150px;margin-bottom:8px}.ocr-text{box-sizing:border-box;width:100%;font:inherit;border:1px solid #c9b99a;border-radius:6px;padding:8px}.ocr-progress,.ocr-hint{margin:6px 0;font-size:14px}.ocr-error{color:#a12;margin:6px 0;font-size:14px}.ocr-go:not(:disabled){font-weight:700}.floating-img-bar .bar-grip{cursor:move;color:#d1d5db;-webkit-user-select:none;user-select:none;touch-action:none;align-self:center;padding:0 6px 0 2px;font-size:16px;line-height:1}.img-label.no-box{box-shadow:none;background:0 0;border-color:#0000!important}.img-label.no-box:hover,.img-label.lab-active{border-style:dashed;border-color:#9ca3af!important}.img-label.lab-active{z-index:30}.img-label-opts{color:#f9fafb;white-space:nowrap;cursor:default;background:#1f2937;border-radius:8px;align-items:center;gap:6px;padding:5px 7px;font-size:11px;display:flex;position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%);box-shadow:0 4px 14px #00000059}.img-label-opts label{align-items:center;gap:3px;display:inline-flex}.img-label-opts input[type=color]{cursor:pointer;text-align:left;background:0 0;border:1px solid #6b7280;border-radius:4px;flex:none;width:22px;min-width:0;height:20px;padding:0}.img-label-opts button{color:#f9fafb;cursor:pointer;background:#374151;border:1px solid #4b5563;border-radius:5px;padding:2px 6px;font-size:11px}.img-label-opts button.on{background:#2563eb;border-color:#2563eb}.img-label-grip{cursor:move;color:#6b7280;-webkit-user-select:none;user-select:none;touch-action:none;flex:none;padding:0 3px 0 1px;font-size:15px;line-height:1}.floating-img-bar{cursor:move}.floating-img-bar button,.floating-img-bar select,.floating-img-bar input,.floating-img-bar label{cursor:pointer}.floating-img-bar .bar-grip{color:#fff;padding:0 8px 0 4px;font-size:20px}.top-toolbar button.account-circle,button.account-circle{color:#fff;background:#3b2a00;border:2px solid #d4a017;border-radius:50%;width:38px;height:38px;min-height:38px;padding:0}.auth-page{background:radial-gradient(circle at 15% 10%,#ffffff12,#0000 45%),#003f11;place-items:center;min-height:100vh;padding:24px;display:grid}.auth-overlay{z-index:10000;background:#001406b8;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.auth-card{color:#1f2937;background:linear-gradient(#fffefb,#faf4e6);border:1px solid #eadfc5;border-radius:18px;flex-direction:column;gap:12px;width:min(420px,100%);padding:28px 26px 24px;font-family:Inter,system-ui,sans-serif;display:flex;position:relative;box-shadow:0 24px 60px #00000073}.auth-card h1{text-align:center;margin:0;font:700 22px/1.25 Lora,Georgia,serif}.auth-logo{text-align:center;font-size:38px}.auth-sub{text-align:center;color:#6b5b3a;margin:0 0 4px;font-size:14px}.auth-close{cursor:pointer;color:#6b5b3a;background:0 0;border:none;font-size:26px;position:absolute;top:10px;right:12px}.auth-tabs{background:#efe4c8;border-radius:10px;grid-template-columns:1fr 1fr;padding:3px;display:grid}.auth-tabs button{cursor:pointer;color:#6b5b3a;background:0 0;border:none;border-radius:8px;padding:9px;font-weight:600}.auth-tabs button.on{color:#3b2a00;background:#fff;box-shadow:0 1px 4px #00000026}.auth-field{flex-direction:column;gap:4px;font-size:13px;font-weight:600;display:flex}.auth-field input{background:#fff;border:1px solid #d9ccae;border-radius:9px;padding:11px 12px;font-size:16px}.auth-field input:focus{outline-offset:1px;outline:2px solid #2563eb}.auth-field small{color:#8a7a55;font-weight:400}.auth-check{align-items:flex-start;gap:8px;font-size:13px;display:flex}.auth-check input{width:18px;height:18px;margin-top:3px}.auth-msg{border-radius:9px;padding:10px 12px;font-size:14px}.auth-msg.error{color:#991b1b;background:#fee2e2}.auth-msg.ok{color:#166534;background:#dcfce7}.auth-primary{color:#fff;cursor:pointer;background:#3b2a00;border:none;border-radius:10px;padding:12px;font-size:16px;font-weight:700}.auth-primary:disabled{opacity:.6;cursor:wait}.auth-secondary{cursor:pointer;background:#fff;border:1px solid #cbb88a;border-radius:10px;width:100%;padding:11px;font-size:15px;font-weight:600}.auth-link{color:#1d4ed8;cursor:pointer;background:0 0;border:none;font-size:14px;text-decoration:underline}.auth-guest{color:#8a7a55;border-top:1px solid #eadfc5;flex-direction:column;align-items:center;gap:6px;padding-top:14px;display:flex}.auth-spinner{border:4px solid #ffffff40;border-top-color:#fff;border-radius:50%;width:36px;height:36px;animation:.8s linear infinite authspin}@keyframes authspin{to{transform:rotate(360deg)}}.account-wrap{position:relative}.account-btn{text-overflow:ellipsis;white-space:nowrap;max-width:240px;overflow:hidden}.account-menu{z-index:80;background:#fffefb;border:1px solid #eadfc5;border-radius:10px;flex-direction:column;gap:8px;min-width:230px;padding:10px;display:flex;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 10px 30px #00000040}.account-status{color:#166534;font-size:12px}.account-status.error{color:#991b1b}.account-status.saving{color:#6b5b3a}.account-menu button{text-align:left}.account-danger{color:#991b1b;border-color:#fca5a5}.account-confirm{flex-direction:column;gap:8px;max-width:280px;font-size:13px;display:flex}.account-confirm p{margin:0}.account-confirm input{border:1px solid #d9ccae;border-radius:8px;padding:8px}.legal-footer{color:#b7d3bd;flex-wrap:wrap;justify-content:center;gap:6px 18px;padding:14px 16px 22px;font:13px Inter,system-ui,sans-serif;display:flex}.legal-footer a{color:#e5f2e8;text-decoration:underline}.pw-wrap{display:block;position:relative}.pw-wrap input{width:100%;padding-right:44px}.pw-eye{cursor:pointer;box-shadow:none;background:0 0;border:0;align-items:center;margin:0;padding:0 10px;transition:none;display:flex;position:absolute;top:0;bottom:0;right:2px;transform:none!important}.pw-eye:hover,.pw-eye:active,.pw-eye:focus{box-shadow:none;background:0 0;transform:none!important}.pw-eye{color:#6b5a33}.account-circle{color:#fff;letter-spacing:.02em;cursor:pointer;background:#3b2a00;border:2px solid #d4a017;border-radius:50%;justify-content:center;align-items:center;width:38px;height:38px;padding:0;font:700 14px Inter,system-ui,sans-serif;display:inline-flex;min-height:38px!important;transform:none!important}.account-circle:hover{background:#4d3700}.account-who{border-bottom:1px solid #eadfc5;flex-direction:column;gap:2px;padding-bottom:8px;font-size:13px;display:flex}.account-who span{color:#8a7a55;word-break:break-all;font-size:12px}.account-slot{z-index:60;position:absolute;top:12px;right:14px}.account-login{white-space:nowrap;font-weight:600}
