:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#35394a;background:#fff9f2;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;font-optical-sizing:auto;font-weight:400;--ink:#35394a;--muted:#838695;--peach:#fff0dc;--pink:#ffe8ee;--blue:#eaf2ff;--line:#eee4d9;--accent:#f0a34d}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input{font:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.55;cursor:wait}.loading{min-height:100vh;display:grid;place-items:center;color:var(--muted)}.setup-screen{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px 18px;background:radial-gradient(ellipse at top,#fff0dc 0,transparent 48%),#fff9f2}.brand-mark{width:72px;height:72px;display:grid;place-items:center;border-radius:24px;background:#ffe8b4;color:#e79b3e;font-size:43px;box-shadow:0 8px 24px #e9c99b44}.eyebrow{font-size:11px;letter-spacing:.15em;font-weight:800;color:#c18a4b;margin:0 0 8px}.setup-screen>.eyebrow{margin-top:24px}.setup-screen h1{font-size:clamp(28px,5vw,42px);margin:0;text-align:center;letter-spacing:-.04em}.subtitle{color:var(--muted);margin:12px 0 24px}.setup-card{width:min(100%,430px);background:#fff;border:1px solid var(--line);border-radius:24px;padding:26px;box-shadow:0 12px 45px #9d7c4d12}.setup-card h2{margin:0 0 8px}.setup-card p{color:var(--muted);font-size:14px;line-height:1.65;margin:0 0 22px}.setup-card label{display:block;font-size:13px;font-weight:700;margin:14px 0}.setup-card input,.create-controls>input,.parent-gate input{display:block;width:100%;border:1px solid #e6e0d9;background:#fffdfb;border-radius:12px;padding:13px 14px;margin-top:7px;outline:none}.setup-card input:focus,.create-controls>input:focus,.parent-gate input:focus{border-color:#e9b56d;box-shadow:0 0 0 3px #f7d8a344}.primary,.secondary,.quiet,.parent-gate button{border-radius:12px;padding:11px 15px;font-weight:700}.primary{width:100%;background:#f0ad5c;color:#513b24;margin-top:6px}.local-note{font-size:12px;color:var(--muted);margin-top:24px}.local-note span{color:#6eb59a;margin-right:6px}.app-shell{max-width:1200px;margin:0 auto;padding:0 24px 20px}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:12px}.brand{display:flex;align-items:center;gap:11px}.mini-mark{width:42px;height:42px;border-radius:15px;background:#ffe8b4;color:#e79b3e;display:grid;place-items:center;font-size:26px}.brand strong{display:block;font-size:17px}.brand small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.top-actions{display:flex;align-items:center;gap:10px}.offline-pill{background:#e8f5ee;color:#39765a;border-radius:999px;padding:7px 10px;font-size:12px;white-space:nowrap}.offline-pill span{display:inline-block;width:6px;height:6px;border-radius:50%;background:#53ac7e;margin:0 6px 1px 0}.quiet{background:transparent;color:#626578}.quiet:hover{background:#f5eee6}.parent-gate{margin:15px 0 0 auto;max-width:360px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;font-size:12px;color:var(--muted)}.parent-gate div{display:flex;gap:6px;align-items:center}.parent-gate input{width:145px;margin:0;padding:8px 10px;font-size:13px}.parent-gate button{background:#e8efff;color:#486ca9;padding:9px 12px}.parent-gate .error{width:100%;text-align:right}.welcome{display:flex;align-items:center;justify-content:space-between;margin:32px 0 26px;padding:28px 34px;border-radius:26px;background:linear-gradient(115deg,#fff0dc,#fff4e9 60%,#ffe9ee);overflow:hidden}.welcome h1{font-size:clamp(26px,4vw,38px);letter-spacing:-.045em;margin:0 0 9px}.welcome p:not(.eyebrow){margin:0;color:#77798a;font-size:14px}.sun-art{font-size:62px;filter:drop-shadow(0 7px 8px #d9a34b30);padding:0 12px}.import-panel{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.import-panel h2,.section-heading h2,.workspace-heading h2{font-size:19px;margin:0 0 6px}.import-panel p,.section-heading p{font-size:13px;color:var(--muted);margin:0}.create-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.create-controls>input{width:190px;margin:0;padding:10px 12px;font-size:13px}.file-button,.secondary{display:inline-flex;align-items:center;justify-content:center;background:#f9e8d3;color:#79532d;border-radius:12px;padding:11px 14px;font-size:13px;font-weight:700;white-space:nowrap}.file-button input{display:none}.secondary{background:#edf2ff;color:#526a9b}.message{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#edf7f0;color:#42775c;border-radius:12px;padding:11px 14px;margin:14px 0;font-size:13px}.message button{background:transparent;color:inherit;font-size:20px}.library{margin:26px 0 32px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.empty-state{min-height:210px;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#fffdf9;border:1px dashed #e7d9c8;border-radius:22px;text-align:center;padding:25px}.empty-illustration{font-size:35px;background:#f9ebd9;border-radius:20px;padding:12px 18px;margin-bottom:10px}.empty-state h3{font-size:16px;margin:0 0 7px}.empty-state p,.empty-page p{font-size:13px;color:var(--muted);margin:0;line-height:1.7}.workbook-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px}.workbook-card{display:flex;flex-direction:column;text-align:left;gap:9px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;min-height:150px;color:var(--ink);transition:transform .15s,border-color .15s}.workbook-card:hover{transform:translateY(-2px)}.workbook-card.active{border-color:#e9b56d;box-shadow:0 0 0 2px #f7d8a344}.book-cover{height:auto;min-height:150px;aspect-ratio:3/4;border-radius:12px;background:linear-gradient(135deg,#e9f1ff,#f7eafa);display:grid;place-items:center;overflow:hidden;padding:6px;font-size:30px;color:#6f86bd}.workbook-card:nth-child(3n+2) .book-cover{background:linear-gradient(135deg,#e5f4e9,#fff1db);color:#72a589}.workbook-card:nth-child(3n) .book-cover{background:linear-gradient(135deg,#ffe6ec,#fff0d8);color:#d38ba3}.workbook-card strong{font-size:14px;overflow-wrap:anywhere}.workbook-card span{font-size:11px;color:var(--muted)}.workspace{border:1px solid var(--line);border-radius:22px;background:#fff;padding:20px;margin-bottom:25px}.workspace-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.workspace-heading h2{margin:0}.workspace-actions{display:flex;align-items:center;gap:8px}.page-tabs{display:flex;gap:8px;overflow-x:auto;padding:16px 0}.page-tab{white-space:nowrap;padding:8px 12px;border-radius:999px;background:#f6f2ed;color:#6f7080;font-size:12px}.page-tab.selected{background:#e8efff;color:#4c6ba4}.paper-stage{position:relative;min-height:300px;background:#f4f1ec;border-radius:14px;padding:16px;display:flex;align-items:center;justify-content:center;overflow:auto}.ink-canvas{display:block;max-width:100%;background:#fff;box-shadow:0 3px 15px #3d34200e;touch-action:none;cursor:crosshair}.toolbar-dot{position:absolute;top:14px;left:14px;width:28px;height:28px;border-radius:50%;background:#5a5c68aa;color:#fff;font-size:24px;line-height:16px;display:grid;place-items:center;opacity:.55;z-index:3;touch-action:manipulation}.floating-toolbar{position:absolute;top:12px;left:52px;right:12px;z-index:4;display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:10px;background:#fffdf8f2;border:1px solid #eadfd0;border-radius:15px;box-shadow:0 8px 24px #483d2b1a;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.toolbar-label{font-size:11px;color:var(--muted);font-weight:800}.tool{display:inline-flex;align-items:center;gap:6px;padding:8px 9px;border-radius:10px;background:#f7f3ed;color:#55586b;font-size:11px}.tool.selected{background:#e8efff;outline:1px solid #c8d8fb}.pen-dot{width:9px;height:9px;border-radius:50%}.color-wheel{font-size:17px;color:#de7f9f}.hint{font-size:11px;color:var(--muted);margin:12px 2px 0}.empty-page{padding:48px 15px;text-align:center;background:#fdfbf8;border-radius:12px}.app-footer{display:flex;justify-content:space-between;gap:12px;color:#9b9aa4;font-size:11px;padding:14px 2px}.error{color:#c65353!important;font-size:12px}.workspace-actions .secondary{padding:9px 12px}@media(max-width:760px){.app-shell{padding:0 14px 15px}.topbar{height:66px}.brand small{display:none}.brand strong{font-size:14px}.mini-mark{width:36px;height:36px}.offline-pill{font-size:0;padding:9px}.offline-pill span{margin:0}.top-actions{gap:2px}.top-actions .quiet{font-size:12px;padding:8px}.parent-gate{justify-content:flex-start}.parent-gate .error{text-align:left}.welcome{padding:22px 20px;margin:22px 0}.sun-art{font-size:43px;padding:0}.import-panel{align-items:stretch;flex-direction:column;padding:18px}.create-controls{justify-content:stretch}.create-controls>input{width:100%}.file-button,.create-controls .secondary{flex:1}.workspace{padding:12px}.workspace-heading{align-items:flex-start}.workspace-heading h2{font-size:16px}.workspace-actions{gap:2px}.workspace-actions button{font-size:11px;padding:8px}.paper-stage{padding:6px;min-height:240px}.floating-toolbar{left:10px;top:48px;right:10px}.app-footer{font-size:10px}.workbook-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(orientation:portrait)and (max-width:760px){.welcome h1{font-size:25px}.welcome p:not(.eyebrow){max-width:240px;line-height:1.5}}.color-picker{display:flex;flex-direction:column;gap:5px;padding:8px;background:#fff;border:1px solid #eadfd0;border-radius:12px;box-shadow:0 5px 16px #483d2b18}.color-row{display:flex;gap:5px}.swatch{width:22px;height:22px;min-width:22px;border-radius:5px;border:1px solid #00000012;padding:0}.swatch:focus-visible{outline:2px solid #555;outline-offset:2px}.app-shell.focus-mode{max-width:none;width:100%;height:100dvh;padding:0;margin:0;overflow:hidden;background:#fff}.app-shell.focus-mode>:not(.workspace){display:none!important}.app-shell.focus-mode .workspace{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;margin:0;padding:0;border:0;border-radius:0;background:#fff;display:flex;flex-direction:column;overflow:hidden}.app-shell.focus-mode .workspace-heading,.app-shell.focus-mode .page-tabs,.app-shell.focus-mode .hint{display:none!important}.app-shell.focus-mode .paper-stage{position:relative;flex:1;min-height:0;width:100%;height:100%;padding:0;margin:0;border-radius:0;background:#fff;overflow:auto;display:flex;align-items:center;justify-content:center;overscroll-behavior:contain}.app-shell.focus-mode .ink-canvas{max-width:none;max-height:none;flex:none;box-shadow:none}.app-shell.focus-mode .toolbar-dot{position:fixed;top:calc(env(safe-area-inset-top,0px) + 8px);left:8px;z-index:100;opacity:.35}.app-shell.focus-mode .floating-toolbar{position:fixed;top:calc(env(safe-area-inset-top,0px) + 44px);left:8px;right:8px;z-index:101;max-height:calc(100dvh - 60px);overflow:auto;box-shadow:0 8px 28px #0003}@media(max-width:760px){.app-shell.focus-mode .workspace{padding:0}.app-shell.focus-mode .paper-stage{padding:0;min-height:0}.app-shell.focus-mode .floating-toolbar{left:8px;right:8px}}.hidden-file-input{display:none!important}.staged-panel{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px;margin:-10px 0 26px}.staged-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.staged-heading h2{font-size:20px;margin:0 0 5px}.staged-heading p{font-size:14px;color:var(--muted);margin:0}.staged-list{display:flex;flex-direction:column;gap:9px}.staged-row{display:flex;align-items:center;gap:13px;padding:12px;border:1px solid #eee5da;border-radius:14px;background:#fffdfa;min-width:0}.drag-handle{flex:0 0 42px;width:42px;height:46px;border-radius:10px;background:#f4eee5;color:#716858;font-size:23px;touch-action:none;cursor:grab}.drag-handle:active{cursor:grabbing}.staged-file-icon{flex:0 0 48px;height:48px;display:grid;place-items:center;border-radius:10px;background:#edf2ff;color:#536fa7;font-size:12px;font-weight:800}.staged-file-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}.staged-file-info strong{font-size:16px;line-height:1.4;overflow-wrap:anywhere}.staged-file-info span{font-size:13px;color:var(--muted)}.remove-staged{flex:0 0 46px;width:46px;height:46px;border-radius:12px;background:#fff0f0;color:#c34f55;font-size:34px;line-height:1}.staged-continue{margin-top:15px;max-width:240px;min-height:46px}.modal-backdrop,.progress-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:grid;place-items:center;padding:20px;background:#20212ac9;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.name-dialog{width:min(100%,460px);padding:26px;border-radius:22px;background:#fff;box-shadow:0 20px 80px #0004}.name-dialog h2{font-size:24px;margin:0 0 8px}.name-dialog>p{font-size:15px;color:var(--muted);margin:0 0 22px}.name-dialog label{display:block;font-size:15px;font-weight:700}.name-dialog input{display:block;width:100%;margin-top:8px;padding:14px;border:1px solid #e5dacf;border-radius:12px;font-size:17px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.dialog-actions .primary{width:auto;min-width:130px;margin:0}.progress-overlay{z-index:1200;background:#1c202bef;cursor:progress}.progress-card{width:min(100%,430px);padding:30px 26px;border-radius:24px;background:#fff;text-align:center;box-shadow:0 20px 80px #0004}.progress-card h2{font-size:23px;margin:18px 0 8px}.progress-card p{font-size:14px;color:var(--muted);overflow-wrap:anywhere}.progress-card>strong{display:block;font-size:22px;margin:12px 0}.progress-card small{display:block;color:var(--muted);font-size:13px;line-height:1.6}.progress-spinner{width:42px;height:42px;margin:0 auto;border:4px solid #f5e7d7;border-top-color:#eaa451;border-radius:50%;animation:star-spin .8s linear infinite}@keyframes star-spin{to{transform:rotate(360deg)}}.progress-track{height:10px;background:#f1ece6;border-radius:999px;overflow:hidden;margin-top:20px}.progress-track span{display:block;height:100%;background:linear-gradient(90deg,#f0ad5c,#e88ca3);border-radius:inherit;transition:width .2s}.reader-shell{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;background:#f1f0ee;color:var(--ink);overflow:hidden}.reader-sidebar{width:190px;flex:0 0 190px;height:100%;display:flex;flex-direction:column;background:#fff;border-right:1px solid #e4e0dc;overflow:hidden}.reader-sidebar-head{padding:15px 12px 12px;border-bottom:1px solid #eee8e1;display:flex;flex-direction:column;gap:8px}.reader-sidebar-head .quiet{align-self:flex-start;padding:6px 4px}.reader-sidebar-head strong{font-size:14px;overflow-wrap:anywhere}.reader-sidebar-head span{font-size:12px;color:var(--muted)}.thumbnail-list{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:12px}.thumbnail-item{position:relative;display:flex;flex-direction:column;gap:5px;align-items:stretch;padding:7px;border:2px solid transparent;border-radius:12px;background:#faf8f5;color:var(--ink);text-align:center}.thumbnail-item.selected{border-color:#e9b56d;background:#fff6e8}.thumbnail-item img{display:block;width:100%;max-height:150px;object-fit:contain;background:#fff;box-shadow:0 2px 8px #0001}.thumbnail-number{position:absolute;left:10px;top:10px;z-index:1;min-width:23px;padding:3px 5px;border-radius:6px;background:#34394bbd;color:#fff;font-size:11px}.thumbnail-item small{font-size:12px;color:#6f7180}.thumbnail-placeholder{height:90px;display:grid;place-items:center;font-size:11px;color:var(--muted)}.reader-main{min-width:0;flex:1;display:flex;flex-direction:column;height:100%}.reader-topbar{min-height:58px;display:flex;align-items:center;gap:10px;padding:8px 18px;background:#fff;border-bottom:1px solid #e4e0dc}.reader-topbar>div{flex:1;min-width:0;font-size:14px;overflow-wrap:anywhere}.reader-topbar>div span{color:var(--muted)}.reader-topbar .secondary{padding:9px 12px}.reader-topbar .quiet{white-space:nowrap}.reader-scroll{flex:1;min-height:0;overflow:auto;padding:22px clamp(12px,4vw,58px) 48px;overscroll-behavior:contain;scroll-behavior:smooth}.reader-page-card{width:min(100%,1050px);margin:0 auto 26px;padding:14px;background:#fff;border:1px solid #e1ddd7;border-radius:10px;box-shadow:0 3px 14px #322c220d}.reader-page-label{display:flex;gap:12px;align-items:center;margin-bottom:10px;padding-bottom:9px;border-bottom:1px solid #f0ece7;font-size:13px;font-weight:800;color:#646778}.reader-page-label span{font-weight:400;color:#9394a0;overflow-wrap:anywhere}.reader-page-card img{display:block;width:100%;height:auto;object-fit:contain;background:#fff}.reader-page-loading{min-height:300px;display:grid;place-items:center;color:var(--muted)}@media(max-width:760px){.staged-panel{padding:14px}.staged-row{gap:8px;padding:8px}.drag-handle{flex-basis:36px;width:36px;height:44px}.staged-file-icon{flex-basis:40px;height:42px;font-size:10px}.staged-file-info strong{font-size:15px}.remove-staged{flex-basis:44px;width:44px;height:44px;font-size:32px}.reader-sidebar{width:112px;flex-basis:112px}.reader-sidebar-head{padding:9px 7px}.reader-sidebar-head strong{font-size:12px}.thumbnail-list{padding:7px;gap:8px}.thumbnail-item{padding:4px}.thumbnail-item img{max-height:100px}.reader-topbar{padding:7px 9px;gap:5px;flex-wrap:wrap}.reader-topbar>div{flex-basis:100%;padding-bottom:2px}.reader-topbar .secondary,.reader-topbar .quiet{font-size:11px;padding:8px}.reader-scroll{padding:12px 8px 30px}.reader-page-card{padding:7px;margin-bottom:14px}.reader-page-label{font-size:11px;gap:5px}.dialog-actions{gap:6px}.dialog-actions button{font-size:13px;padding:10px}.progress-card{padding:25px 18px}}.toolbar-dot{width:38px;height:38px;border-radius:14px;background:#ffe8b4;color:#e79b3e;font-size:25px;line-height:1;opacity:.92;box-shadow:0 3px 12px #7a5c3022}.app-shell.focus-mode .toolbar-dot{top:calc(env(safe-area-inset-top,0px) + 8px);left:8px}.floating-toolbar{align-items:flex-start}.tool-popover-anchor{position:relative;display:inline-flex}.tool-popover{position:absolute;top:calc(100% + 8px);left:0;z-index:120;min-width:max-content;max-width:min(90vw,320px)}.tool-popover-anchor[data-popover-align=right]>.tool-popover{left:auto;right:0}.tool-popover-anchor[data-popover-vertical=above]>.tool-popover{top:auto;bottom:calc(100% + 8px)}.tool-popover-anchor>.tool-popover{max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px);overflow-y:auto;overscroll-behavior:contain}.color-picker.tool-popover{padding:9px}.color-picker.tool-popover .swatch{width:25px;height:25px;min-width:25px}.size-popover{width:220px;padding:12px;background:#fff;border:1px solid #eadfd0;border-radius:13px;box-shadow:0 8px 24px #483d2b24}.popover-title{display:block;font-size:12px;font-weight:800;color:#55586b;margin-bottom:10px}.brush-preview-stage{height:62px;border-radius:10px;background:linear-gradient(45deg,#f5f2ed 25%,transparent 25%,transparent 75%,#f5f2ed 75%),linear-gradient(45deg,#f5f2ed 25%,#fff 25%,#fff 75%,#f5f2ed 75%);background-position:0 0,6px 6px;background-size:12px 12px;display:grid;place-items:center;margin-bottom:10px}.brush-preview{display:block;max-width:48px;max-height:48px;border-radius:50%;border:1px solid #7778;transition:width .04s,height .04s}.size-slider{display:block;width:100%;margin:8px 0;accent-color:#e9a451;touch-action:pan-y}.slider-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:11px}.eraser-size-options{display:flex;align-items:center;justify-content:space-between;gap:5px}.eraser-size-option{width:34px;height:38px;display:grid;place-items:center;border:1px solid transparent;border-radius:8px;background:#f7f3ed;padding:3px}.eraser-size-option.selected{border:1px solid transparent;background:#fff2dc;box-shadow:none;position:relative}.eraser-size-option.selected:after{content:"";position:absolute;left:9px;right:9px;bottom:2px;height:3px;border-radius:3px;background:#d9943e}.eraser-size-dot{display:block;border-radius:50%;background:#a4a5aa;border:1px solid #777}@media(max-width:760px){.app-shell.focus-mode .floating-toolbar{max-height:calc(100dvh - 60px);overflow:visible;flex-wrap:wrap}.tool-popover{max-width:calc(100vw - 36px)}.size-popover{width:min(220px,calc(100vw - 40px))}}.app-shell.focus-mode .floating-toolbar{gap:10px;padding:14px;border-radius:20px}.app-shell.focus-mode .toolbar-label{font-size:17px;line-height:1.4;padding:8px 5px;color:#7665b5}.app-shell.focus-mode .tool{font-size:17px;line-height:1.35;min-height:50px;padding:10px 15px;gap:9px;border-radius:14px;font-weight:700;color:#45445a;background:#f7f2ff;border:1px solid #e7ddff;touch-action:manipulation}.app-shell.focus-mode .tool.selected{background:#e8e0ff;border:2px solid #a18be9;outline:0;box-shadow:0 2px #d6c8ff}.app-shell.focus-mode .tool-emoji{display:inline-grid;place-items:center;min-width:26px;font-size:25px;line-height:1}.app-shell.focus-mode .pen-dot{width:13px;height:13px;flex:none;border:1px solid #0001}.app-shell.focus-mode .color-wheel{font-size:24px}.app-shell.focus-mode .tool-popover{border-radius:16px;box-shadow:0 10px 28px #483d2b30}.app-shell.focus-mode .popover-title{font-size:16px}.app-shell.focus-mode .slider-labels{font-size:14px}.app-shell.focus-mode .eraser-size-option{width:40px;height:44px}.app-shell.focus-mode .color-picker.tool-popover{gap:7px;padding:12px}.app-shell.focus-mode .color-picker.tool-popover .swatch{width:30px;height:30px;min-width:30px;border-radius:7px}.app-shell.focus-mode .toolbar-dot{width:44px;height:44px;font-size:29px;opacity:.85;border-radius:16px;box-shadow:0 3px 12px #7a5c3022}@media(max-width:900px){.app-shell.focus-mode .floating-toolbar{gap:8px;padding:12px}.app-shell.focus-mode .tool{font-size:16px;min-height:48px;padding:9px 12px}.app-shell.focus-mode .tool-emoji{font-size:23px}}.update-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 17px;border-radius:14px;background:linear-gradient(135deg,#e85d75,#cf315d);color:#fff;font-weight:900;font-size:14px;letter-spacing:.02em;box-shadow:0 5px 16px #cf315d45;border:2px solid #fff1f4;white-space:nowrap;animation:update-pulse 1.8s ease-in-out infinite}.update-button:disabled{opacity:.75;animation:none}.update-button:hover{transform:translateY(-1px);box-shadow:0 7px 20px #cf315d55}@keyframes update-pulse{0%,to{box-shadow:0 5px 16px #cf315d35}50%{box-shadow:0 6px 22px #cf315d75}}@media(prefers-reduced-motion:reduce){.update-button{animation:none}}@media(max-width:560px){.topbar{gap:6px}.top-actions{gap:5px}.update-button{font-size:12px;min-height:40px;padding:8px 10px}.brand strong{font-size:15px}.brand small{font-size:10px}}.pin-field-label{display:block;font-size:13px;font-weight:800;margin:16px 0!important;color:#56576a}.pin-digit-group{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:10px}.pin-digit{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block!important;flex:0 1 58px;width:58px!important;min-width:0;height:76px;padding:0!important;margin:0!important;border:1.5px solid #e5d7c8!important;border-radius:13px!important;background:#fffdfb!important;color:#35394a;text-align:center;font-size:34px!important;font-weight:800;line-height:1;box-shadow:0 3px #f1e8de;outline:none}.pin-digit:focus{border-color:#e9a451!important;box-shadow:0 0 0 4px #f7d8a344,0 3px #f1e8de!important}.pin-digit-group .pin-digit::selection{background:#f5d9a8}.parent-pin-digits{gap:5px;margin-top:0}.parent-pin-digits .pin-digit{flex:0 1 34px;width:34px!important;height:42px;font-size:22px!important;border-radius:8px!important;box-shadow:none;padding:0!important}.parent-pin-digits .pin-digit:focus{box-shadow:0 0 0 2px #f7d8a344!important}@media(max-width:380px){.setup-card{padding:21px 16px}.pin-digit-group{gap:8px}.pin-digit{flex-basis:54px;width:54px!important;height:70px;font-size:31px!important}}.pin-entry-block{margin:10px 0 18px}.pin-entry-block .pin-digit-group{margin-top:0;gap:8px}.pin-entry-block .pin-digit{flex-basis:49px;width:49px!important;height:64px;font-size:29px!important;border-radius:11px!important}.pin-confirm-block{margin-top:27px}.pin-confirm-heading{text-align:center;font-size:18px;font-weight:800;letter-spacing:.03em;color:#56576a;margin:0 0 15px}@media(max-width:380px){.pin-entry-block .pin-digit-group{gap:7px}.pin-entry-block .pin-digit{flex-basis:46px;width:46px!important;height:60px;font-size:27px!important}}.sticker-library-panel{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px;margin:0 0 26px}.sticker-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:12px}.sticker-library-item{display:flex;flex-direction:column;align-items:center;gap:7px;padding:10px;border:1px solid #eee5da;border-radius:14px;min-width:0}.sticker-library-item img{width:76px;height:76px;object-fit:contain;background:repeating-conic-gradient(#f7f4ef,#f7f4ef 25%,#fff 0%,#fff 50%) 50%/16px 16px}.sticker-library-item span{max-width:100%;font-size:12px;overflow-wrap:anywhere;text-align:center}.sticker-library-item .remove-staged{width:36px;height:36px;flex-basis:36px;font-size:26px}.sticker-library-empty{font-size:13px;color:var(--muted)}.sticker-picker{min-width:0;position:absolute;top:calc(100% + 8px);left:0;z-index:10000;width:min(340px,calc(100vw - 36px));max-height:55dvh;overflow:auto;padding:13px;background:#fff;border:1px solid #eadfd0;border-radius:16px;box-shadow:0 10px 28px #483d2b30}.sticker-picker>strong{display:block;font-size:13px;margin-bottom:10px}.sticker-picker>p{font-size:12px;color:var(--muted);white-space:normal}.sticker-picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.sticker-choice{min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px;border:2px solid transparent;border-radius:10px;background:#faf7f1}.sticker-choice.selected{border-color:#e9b56d;background:#fff4df}.sticker-choice img{width:64px;height:64px;object-fit:contain;background:repeating-conic-gradient(#f7f4ef,#f7f4ef 25%,#fff 0%,#fff 50%) 50%/12px 12px}.sticker-choice span{max-width:100%;font-size:11px;overflow-wrap:anywhere;text-align:center}.staged-order-controls,.thumbnail-order-controls{display:flex;flex-direction:column;gap:4px;flex:none}.staged-order-controls button,.thumbnail-order-controls button{width:36px;height:30px;border-radius:8px;background:#f2eee7;color:#514d48;font-size:18px;font-weight:800}.staged-order-controls button:disabled,.thumbnail-order-controls button:disabled{opacity:.3}.thumbnail-item{padding:7px}.thumbnail-select{position:relative;display:flex;flex-direction:column;gap:5px;align-items:stretch;width:100%;padding:0;background:transparent;color:inherit;text-align:center}.thumbnail-order-controls{flex-direction:row;justify-content:center;margin-top:5px}.thumbnail-order-controls button{width:32px;height:28px}.preview-single-page{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;overflow:hidden;touch-action:pan-y}.submitted-preview-image{display:block;max-width:100%;max-height:calc(100% - 95px);width:auto;height:auto;object-fit:contain;flex:1;min-height:0;background:#fff;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.preview-page-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding-top:12px}.preview-page-nav span{font-size:12px;color:var(--muted);text-align:center}.app-shell.focus-mode .floating-toolbar{overflow:visible;max-height:none}.app-shell.focus-mode .tool-popover{z-index:10000}@media(max-width:760px){.sticker-library-panel{padding:14px}.sticker-picker{max-height:50dvh}.preview-page-nav button{font-size:12px;padding:9px}.preview-page-nav span{max-width:90px}.staged-order-controls button{width:30px;height:28px}}.reader-topbar .preview-answer-button{width:auto;flex:none;margin:0;white-space:nowrap}.workbook-preview-pane{width:100%;display:flex;flex-direction:column;align-items:center;gap:12px;touch-action:pan-y;overscroll-behavior:contain}.workbook-preview-caption{align-self:flex-start;color:var(--muted);font-size:12px;font-weight:700}.workbook-preview-image{display:block;width:auto;height:auto;max-width:100%;max-height:min(72vh,900px);object-fit:contain;background:#fff;box-shadow:0 3px 18px #3d342014;border-radius:4px;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;pointer-events:none}.workbook-preview-loading{display:grid;place-items:center;min-height:320px;color:var(--muted)}.workbook-preview-nav{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}.workbook-preview-nav span{font-size:12px;color:var(--muted)}.workspace-actions .preview-answer-button{width:auto;margin:0;white-space:nowrap}.app-shell.focus-mode .cancel-answer-backdrop{display:grid!important;z-index:2000}.cancel-answer-dialog p{line-height:1.7}.cancel-answer-dialog .cancel-confirm-button{background:#c84c4c;color:#fff;border-radius:12px;padding:11px 15px;font-weight:800}.cancel-answer-dialog .cancel-confirm-button:disabled{opacity:.6}.tool.cancel-answer{background:#fff0f0;color:#9d3f3f;border:1px solid #f0c8c8}.app-shell.focus-mode .tool.cancel-answer{background:#fff0f0;color:#9d3f3f;border-color:#f0c8c8}@media(max-width:760px){.workbook-preview-image{max-height:65vh}.workbook-preview-nav{gap:6px}.workbook-preview-nav button{font-size:12px;padding:9px}.cancel-answer-dialog{padding:21px}.cancel-answer-dialog .dialog-actions{flex-wrap:wrap}.cancel-answer-dialog .dialog-actions button{flex:1;white-space:normal}}.staged-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}.staged-row{display:grid;grid-template-columns:76px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;border:1px solid #eee5da;border-radius:14px;background:#fffdfa;min-width:0;cursor:grab;touch-action:pan-y}.staged-row:active{cursor:grabbing}.staged-row.dragging{opacity:.45;border-color:#9e8ce4;background:#f4efff}.staged-thumbnail{position:relative;width:76px;height:94px;display:grid;place-items:center;overflow:hidden;border-radius:9px;background:#f2f0ed;border:1px solid #e9e4dd}.staged-thumbnail img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}.staged-type-badge{position:absolute;bottom:3px;left:3px;right:3px;padding:3px 4px;border-radius:5px;background:#222b;color:#fff;font-size:9px;font-weight:800;text-align:center}.staged-file-info{min-width:0;display:flex;flex-direction:column;gap:5px}.staged-file-info strong{font-size:13px;line-height:1.35;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.staged-file-info span,.staged-file-info small{font-size:11px;color:var(--muted)}.staged-card-actions{display:flex;flex-direction:column;align-items:center;gap:3px}.staged-order-button{width:28px;height:26px;border-radius:7px;background:#edf2ff;color:#526a9b;font-weight:800}.staged-order-button:disabled{opacity:.3}.pen-size-options{display:flex;align-items:stretch;justify-content:space-between;gap:8px}.pen-size-option{min-width:52px;min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border-radius:10px;background:#f8f5ef;color:#5b5b68}.pen-size-option.selected{background:#e8e0ff;box-shadow:inset 0 0 0 2px #a18be9}.pen-size-dot{display:block;flex:none;border-radius:50%;max-width:28px;max-height:28px}.pen-size-option small,.eraser-size-option small{font-size:10px;color:#6f7080}.eraser-size-option{min-width:48px;min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:10px;background:#f8f5ef}.eraser-size-option.selected{background:#e8e0ff;box-shadow:inset 0 0 0 2px #a18be9}.eraser-size-dot{display:block;flex:none;border-radius:50%;background:#8d8d98;max-width:28px;max-height:28px}@media(min-width:900px){.staged-list{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(min-width:1180px){.staged-list{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:620px){.staged-list{grid-template-columns:1fr}.staged-row{grid-template-columns:70px minmax(0,1fr) auto}.staged-thumbnail{width:70px;height:88px}}@media(max-width:760px){.app-shell.focus-mode .pen-size-option,.app-shell.focus-mode .eraser-size-option{min-width:44px}}.sticker-library-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.sticker-library-summary{margin-top:14px;color:#747487;font-size:13px}.sticker-modal-backdrop{z-index:1200}.sticker-manage-modal{width:min(760px,calc(100vw - 28px));max-height:min(88dvh,900px);overflow:auto;background:#fffdf9;border:1px solid #eee6da;border-radius:22px;padding:clamp(18px,3vw,28px);box-shadow:0 24px 80px #201a3330}.sticker-modal-heading,.sticker-gallery-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.sticker-modal-heading h2,.sticker-gallery-header h2{margin:0;color:#302d43}.sticker-modal-heading p,.sticker-gallery-header p{margin:7px 0 0;color:#777487;font-size:13px;line-height:1.55}.sticker-modal-close{font-size:24px;min-width:40px;min-height:40px}.sticker-choose-files{margin:18px 0 14px}.sticker-candidate-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:10px}.sticker-candidate-item{position:relative;aspect-ratio:1;min-width:0;border:1px solid #eee7df;border-radius:12px;background-color:#faf8f4;background-image:linear-gradient(45deg,#f0ede8 25%,transparent 25%),linear-gradient(-45deg,#f0ede8 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f0ede8 75%),linear-gradient(-45deg,transparent 75%,#f0ede8 75%);background-size:14px 14px;background-position:0 0,0 7px,7px -7px,-7px 0;overflow:hidden}.sticker-candidate-item img{width:100%;height:100%;object-fit:contain;padding:7px;display:block}.sticker-candidate-remove,.sticker-gallery-remove{position:absolute;right:5px;top:5px;width:27px;height:27px;min-width:27px;min-height:27px;border-radius:50%;background:#fff;color:#7a4352;box-shadow:0 2px 9px #0002;font-size:19px;line-height:1}.sticker-candidates-empty,.sticker-gallery-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:180px;color:#858194;background:#faf8f4;border:1px dashed #ded7ce;border-radius:14px}.sticker-manage-modal .dialog-actions{position:sticky;bottom:-1px;background:#fffdf9;padding-top:14px;margin-top:18px}.sticker-gallery-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1300;background:#fbf9f5;display:flex;flex-direction:column;padding:calc(env(safe-area-inset-top) + 18px) clamp(14px,3vw,32px) calc(env(safe-area-inset-bottom) + 18px);overflow:hidden}.sticker-gallery-header{flex:none;align-items:center;padding-bottom:16px;border-bottom:1px solid #e8e1d8}.sticker-gallery-grid{flex:1;min-height:0;overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(105px,1fr));align-content:start;gap:12px;padding:18px 2px;overscroll-behavior:contain}.sticker-gallery-item{position:relative;aspect-ratio:1;min-width:0;border:1px solid #e8e1d8;border-radius:14px;overflow:hidden;background-color:#fff;background-image:linear-gradient(45deg,#f0ede8 25%,transparent 25%),linear-gradient(-45deg,#f0ede8 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f0ede8 75%),linear-gradient(-45deg,transparent 75%,#f0ede8 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}.sticker-gallery-item img{width:100%;height:100%;display:block;object-fit:contain;padding:8px}.sticker-gallery-remove{opacity:.96}@media(max-width:520px){.sticker-library-actions{width:100%}.sticker-library-actions button{flex:1}.sticker-candidate-grid{grid-template-columns:repeat(auto-fill,minmax(74px,1fr));gap:8px}.sticker-gallery-grid{grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:9px}.sticker-manage-modal{border-radius:18px}}.mode-switch-button{white-space:nowrap}.mode-switch-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1500;display:flex;align-items:center;justify-content:center;padding:calc(env(safe-area-inset-top) + 18px) 18px calc(env(safe-area-inset-bottom) + 18px);background:#211d32a8;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.mode-switch-modal{width:min(430px,100%);background:#fffdf9;border:1px solid #eee5da;border-radius:24px;padding:28px 24px;box-shadow:0 24px 80px #16102245;text-align:center}.mode-switch-symbol{width:52px;height:52px;display:grid;place-items:center;margin:0 auto 14px;border-radius:17px;background:#f0eaff;color:#7961c4;font-size:28px}.mode-switch-modal h2{margin:0;color:#302d43;font-size:22px}.mode-switch-modal>p{margin:12px 0 22px;color:#777487;line-height:1.65;font-size:14px}.mode-switch-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:16px}.mode-switch-actions button{flex:1;min-width:130px}.mode-parent-pin{justify-content:center;gap:10px;margin:18px auto 4px}.mode-parent-pin .pin-digit{width:54px;height:62px;font-size:25px;border-radius:12px}.mode-switch-error{min-height:22px;margin-top:7px;color:#b34b60;font-size:13px}.student-new-workbook{margin-top:14px}.schema-update-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:5000;display:flex;align-items:center;justify-content:center;overflow:auto;padding:calc(env(safe-area-inset-top,0px) + 18px) 16px calc(env(safe-area-inset-bottom,0px) + 18px);background:#1b1b29ed;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.schema-update-modal{width:min(720px,100%);max-height:100%;overflow:auto;padding:clamp(20px,4vw,36px);border-radius:24px;background:#fffdf9;color:#302d43;box-shadow:0 24px 90px #0006}.schema-update-icon{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 12px;border-radius:18px;background:#fff0d5;font-size:28px}.schema-update-modal>.eyebrow{text-align:center;margin:0 0 8px;color:#9b6a29;font-size:11px;letter-spacing:.14em;font-weight:900}.schema-update-modal h2{text-align:center;margin:0 0 12px;font-size:clamp(22px,4vw,30px);line-height:1.3}.schema-update-lead{text-align:center;font-size:15px;line-height:1.75;color:#656174;margin:0 auto 22px;max-width:580px}.schema-update-section,.schema-update-warning{padding:16px 18px;border-radius:15px;margin:12px 0;background:#f5f2ff;border:1px solid #e8e0ff}.schema-update-warning{background:#fff2ed;border-color:#f5c9bd}.schema-update-section h3,.schema-update-warning h3{font-size:15px;margin:0 0 9px}.schema-update-section ul,.schema-update-warning ul{padding-left:22px;margin:0;display:flex;flex-direction:column;gap:7px;font-size:14px;line-height:1.6}.schema-update-final-warning{font-size:13px;font-weight:800;line-height:1.65;color:#a33f35;margin:16px 0}.schema-update-actions{display:flex;gap:10px;justify-content:stretch;margin-top:20px}.schema-update-actions button{flex:1;min-height:50px;border-radius:13px;font-size:14px;font-weight:900;padding:12px}.schema-update-confirm{background:#b53d42;color:#fff;box-shadow:0 4px 12px #b53d4233}.schema-update-confirm:disabled,.schema-update-actions button:disabled{opacity:.6}@media(max-width:560px){.schema-update-backdrop{align-items:stretch;padding:calc(env(safe-area-inset-top,0px) + 8px) 8px calc(env(safe-area-inset-bottom,0px) + 8px)}.schema-update-modal{margin:auto 0;padding:20px 16px;border-radius:20px}.schema-update-lead{font-size:14px}.schema-update-section,.schema-update-warning{padding:13px}.schema-update-actions{flex-direction:column-reverse}.schema-update-actions button{width:100%;flex:none}}.creation-preview-backdrop,.workbook-preview-backdrop{z-index:1100}.creation-preview-modal,.workbook-preview-modal{width:min(1120px,100%);max-height:92dvh;overflow:auto;background:#fff;border-radius:22px;padding:22px;box-shadow:0 20px 80px #0004}.creation-preview-header,.workbook-preview-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.creation-preview-header h2,.workbook-preview-modal-header h2{margin:0 0 7px;font-size:clamp(20px,3vw,28px)}.creation-preview-header p:not(.eyebrow),.workbook-preview-modal-header p:not(.eyebrow){color:var(--muted);font-size:13px;line-height:1.6;margin:0}.creation-done-button{background:#ed8b2f;color:#fff;border-radius:13px;padding:13px 24px;font-weight:900;font-size:16px;box-shadow:0 5px #c66d1c;white-space:nowrap}.creation-preview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.creation-preview-item{min-width:0;padding:10px;border:1px solid var(--line);border-radius:14px;background:#fffdf9;display:flex;flex-direction:column;gap:8px}.creation-preview-thumb{height:180px;position:relative;background:#f3f1ee;border-radius:9px;overflow:hidden}.creation-preview-thumb img{width:100%;height:100%;object-fit:contain;background:#fff}.creation-preview-number{position:absolute;top:7px;left:7px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#ed8b2f;color:#fff;font-weight:900}.creation-preview-pages{position:absolute;bottom:5px;left:5px;right:5px;text-align:center;background:#222b;color:#fff;border-radius:6px;padding:4px;font-size:10px}.creation-preview-item>strong{font-size:12px;overflow-wrap:anywhere}.creation-order-actions{display:flex;align-items:center;gap:5px;margin-top:auto}.creation-order-actions button:not(.remove-staged){flex:1;background:#edf2ff;color:#526a9b;border-radius:8px;padding:8px 5px;font-size:12px;font-weight:700}.creation-order-actions button:disabled{opacity:.35}.creation-preview-footer,.workbook-preview-modal-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:15px;margin-top:15px;border-top:1px solid var(--line)}.workbook-menu-modal{position:relative;width:min(420px,100%);padding:26px;border-radius:22px;background:#fff;box-shadow:0 20px 80px #0004}.modal-close{position:absolute;right:12px;top:10px;width:38px;height:38px;border-radius:50%;background:#f5f1eb;font-size:26px;color:#666}.workbook-menu-actions{display:flex;flex-direction:column;gap:9px;margin-top:20px}.workbook-menu-actions button{width:100%;margin:0;min-height:45px}.danger-action{background:#c83f48;color:#fff;border-radius:12px;padding:11px 15px;font-weight:800}.delete-workbook-dialog h2{color:#b8323b}.book-cover{overflow:hidden}.book-cover img{width:100%;height:100%;object-fit:contain;background:#fff}.workbook-preview-modal{overflow:hidden;display:flex;flex-direction:column}.workbook-preview-modal-body{display:grid;grid-template-columns:180px minmax(0,1fr);gap:16px;min-height:0;flex:1}.workbook-preview-thumbnails{overflow:auto;max-height:62dvh;display:flex;flex-direction:column;gap:12px;padding-right:5px}.workbook-preview-thumb-wrap{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11px;color:var(--muted)}.workbook-preview-thumb{width:100%;height:160px;border:2px solid transparent;border-radius:9px;background:#f4f1ed;padding:4px;overflow:hidden}.workbook-preview-thumb.selected{border-color:#ed8b2f}.workbook-preview-thumb img{width:100%;height:100%;object-fit:contain;background:#fff}.page-lock-icon{position:absolute;top:50px;left:50%;transform:translate(-50%);font-size:24px;background:#ffffffb8;border-radius:50%;padding:5px;pointer-events:none}.workbook-preview-main{min-height:260px;max-height:65dvh;display:grid;place-items:center;overflow:auto;background:#f4f1ec;border-radius:14px;padding:12px}.workbook-preview-main-image{max-width:100%;max-height:62dvh;object-fit:contain;background:#fff}.workbook-preview-modal-footer{font-size:12px;color:var(--muted)}@media(max-width:650px){.creation-preview-modal,.workbook-preview-modal{padding:14px;border-radius:16px}.creation-preview-header{gap:8px}.creation-preview-header .creation-done-button{padding:11px 14px;font-size:14px}.creation-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.creation-preview-thumb{height:150px}.workbook-menu-modal{padding:22px}.workbook-preview-modal-body{grid-template-columns:105px minmax(0,1fr);gap:8px}.workbook-preview-thumb{height:115px}.page-lock-icon{top:28px;font-size:19px}.workbook-preview-main{min-height:220px;padding:6px}.workbook-preview-main-image{max-height:58dvh}.workbook-preview-thumbnails{max-height:60dvh}}.workbook-card-wrap{position:relative;min-width:0}.workbook-card-wrap .workbook-card{height:100%}.book-cover img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;object-position:center;background:#fff}.book-cover-placeholder{font-size:30px;color:#8d79c8}.workbook-action-menu{position:absolute;left:8px;right:8px;top:calc(100% - 8px);z-index:80;display:flex;flex-direction:column;gap:5px;padding:12px;background:#fffdf9;border:1px solid #e8dfd4;border-radius:15px;box-shadow:0 12px 32px #30271e2b}.workbook-action-menu>strong{font-size:13px;padding:3px 7px 8px;overflow-wrap:anywhere}.workbook-action-menu button{width:100%;min-height:42px;text-align:left;padding:10px 12px;border-radius:10px;background:#f7f3ed;color:#454052;font-weight:700}.workbook-action-menu button:hover{background:#eee7ff}.workbook-action-menu .menu-danger{background:#fff0f0;color:#b42d3d}.creation-preview-overlay,.workbook-preview-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1400;background:#fbf9f5;display:flex;flex-direction:column;padding:calc(env(safe-area-inset-top,0px) + 12px) clamp(10px,2.5vw,26px) calc(env(safe-area-inset-bottom,0px) + 12px);overflow:hidden}.creation-preview-topbar,.workbook-preview-topbar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:4px 2px 14px;border-bottom:1px solid #e8e1d8}.creation-preview-topbar h2,.workbook-preview-topbar h2{margin:0;font-size:clamp(18px,2.6vw,26px);color:#302d43}.creation-preview-topbar p,.workbook-preview-topbar p{margin:6px 0 0;color:#747487;font-size:13px;line-height:1.5}.creation-preview-topbar .eyebrow{font-size:10px;font-weight:900;letter-spacing:.12em;margin:0 0 4px}.finish-order-button{flex:none;min-width:104px;min-height:50px;padding:12px 20px;border-radius:15px;background:linear-gradient(135deg,#7a56df,#5a3bc2);color:#fff;font-size:18px;font-weight:900;box-shadow:0 5px 16px #5a3bc244}.finish-order-button:disabled{opacity:.55}.creation-preview-body,.workbook-preview-modal-body{display:flex;flex:1;min-height:0;gap:16px;padding-top:14px}.creation-preview-sidebar,.workbook-preview-modal-sidebar{width:clamp(118px,19vw,220px);flex:none;min-height:0;overflow:auto;padding:10px;background:#f3efe8;border-radius:15px;overscroll-behavior:contain}.creation-preview-sidebar>strong,.workbook-preview-modal-sidebar>strong{display:block;font-size:13px;margin:2px 3px 10px;color:#5e586e}.creation-preview-thumbs{display:flex;flex-direction:column;gap:9px}.creation-thumb,.workbook-preview-modal-thumb{position:relative;display:flex;flex-direction:column;gap:4px;padding:7px;background:#fff;border:1px solid #e6dfd6;border-radius:10px}.creation-thumb.active{border:2px solid #8b75d4;padding:6px;background:#f7f3ff}.creation-thumb-image,.workbook-preview-modal-thumb>button{width:100%;display:flex;flex-direction:column;gap:4px;padding:0;background:transparent;color:#5b586b;text-align:center}.creation-thumb-image img,.workbook-preview-modal-thumb img{display:block;width:100%;height:105px;object-fit:contain;background:#fff}.creation-thumb-image span,.workbook-preview-modal-thumb span{font-size:11px;font-weight:700}.creation-preview-main,.workbook-preview-modal-main{display:flex;flex:1;min-width:0;min-height:0;flex-direction:column;align-items:center;justify-content:center;gap:10px;overflow:hidden}.creation-preview-page-image{display:block;max-width:100%;max-height:calc(100% - 100px);width:auto;height:auto;object-fit:contain;background:#fff;box-shadow:0 3px 18px #3d342014}.workbook-preview-modal-main .workbook-preview-image{max-height:calc(100% - 70px);width:auto;flex:1;min-height:0}.workbook-preview-modal-thumb{margin-bottom:9px}.workbook-preview-modal-thumb .thumbnail-order-controls{margin-top:3px}.preview-order-lock{display:grid;place-items:center;min-height:28px;color:#554b67;font-size:18px;opacity:.55}.delete-workbook-dialog .dialog-actions .delete-permanent-button{background:#bd3446;color:#fff;font-weight:900;border-radius:12px;padding:11px 15px}.delete-workbook-dialog p{line-height:1.7}@media(max-width:760px){.creation-preview-topbar,.workbook-preview-topbar{align-items:flex-start;gap:8px;padding-bottom:10px}.creation-preview-topbar p,.workbook-preview-topbar p{font-size:11px}.finish-order-button{min-width:84px;min-height:44px;padding:10px 12px;font-size:16px}.creation-preview-body,.workbook-preview-modal-body{gap:8px;padding-top:9px}.creation-preview-sidebar,.workbook-preview-modal-sidebar{width:104px;padding:6px}.creation-thumb,.workbook-preview-modal-thumb{padding:4px}.creation-thumb.active{padding:3px}.creation-thumb-image img,.workbook-preview-modal-thumb img{height:82px}.creation-preview-page-image{max-height:calc(100% - 112px)}.creation-preview-main .workbook-preview-nav,.workbook-preview-modal-main .workbook-preview-nav{gap:4px}.creation-preview-main .workbook-preview-nav button,.workbook-preview-modal-main .workbook-preview-nav button{font-size:11px;padding:8px 6px}.creation-preview-main .workbook-preview-nav span,.workbook-preview-modal-main .workbook-preview-nav span{font-size:10px}}.app-shell.focus-mode,.app-shell.focus-mode *,.app-shell.focus-mode img,.app-shell.focus-mode canvas{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;-webkit-tap-highlight-color:transparent}.app-shell.focus-mode .paper-stage,.app-shell.focus-mode .ink-canvas{touch-action:none;overscroll-behavior:contain}.app-shell.focus-mode img{-webkit-user-drag:none;user-drag:none;pointer-events:none}.workbook-menu-actions button,.workspace-actions button,.dialog-actions button{display:inline-flex;align-items:center;justify-content:flex-start;gap:9px;text-align:left;transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}.workbook-menu-actions button{min-height:48px;padding:12px 16px;border:1px solid #f0e4d7;border-radius:15px;box-shadow:0 3px #eadbca;font-size:14px}.workbook-menu-actions button:hover,.workspace-actions button:hover,.dialog-actions button:hover{transform:translateY(-1px);filter:saturate(1.06);box-shadow:0 5px 12px #b89a7820}.workbook-menu-actions .primary{background:linear-gradient(135deg,#ffd68d,#ffc1c9);border-color:#f4c5a0;color:#704b39}.workbook-menu-actions .secondary{background:linear-gradient(135deg,#fffaf1,#f0f3ff);color:#5b6489}.workbook-menu-actions .danger-action,.dialog-actions .danger-action,.dialog-actions .delete-permanent-button{background:linear-gradient(135deg,#fff0f1,#ffe0e5);color:#a84354;border-color:#f4c9d0;box-shadow:0 3px #f0d0d5}.workspace-actions button{border-radius:13px;padding:10px 13px;box-shadow:0 2px #e9e0d6}@media(max-width:760px){.workbook-menu-actions button{min-height:46px;padding:11px 14px;font-size:13px}.workspace-actions{flex-wrap:wrap;justify-content:flex-end}.workspace-actions button{gap:6px}}.pencil-hover-preview{position:fixed;z-index:10000;width:18px;height:18px;box-sizing:border-box;border:1.5px solid #303036;border-radius:50%;background:#ffffff38;box-shadow:0 0 0 1px #ffffffb8,0 1px 4px #14182033;transform:translate(-50%,-50%);pointer-events:none;-webkit-user-select:none;user-select:none}.star-box-score{display:flex;align-items:center;gap:10px;min-width:142px;padding:10px 14px;border:1px solid #f1d59c;border-radius:17px;background:linear-gradient(135deg,#fff5d9,#ffe8ef);color:#775126;box-shadow:0 4px 12px #dca84c18;text-align:left}.star-box-score:hover{transform:translateY(-1px);box-shadow:0 7px 18px #dca84c2a}.star-box-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:13px;background:#fff9e8;font-size:25px;box-shadow:inset 0 0 0 1px #f3dfad}.star-box-score>span:nth-child(2){display:flex;flex-direction:column;gap:1px}.star-box-score strong{font-size:21px;line-height:1.1;color:#8c5a12}.star-box-score small{font-size:11px;color:#9a7850;font-weight:800}.star-box-chevron{margin-left:auto;font-size:25px;color:#c18a4b}.star-shop-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2600;display:grid;place-items:center;padding:calc(env(safe-area-inset-top,0px) + 18px) 16px calc(env(safe-area-inset-bottom,0px) + 18px);background:#242035a8;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.star-shop-modal{width:min(560px,100%);max-height:min(86dvh,760px);overflow:auto;padding:clamp(20px,4vw,30px);border:1px solid #f0e2ce;border-radius:25px;background:#fffdf9;box-shadow:0 24px 90px #17132245}.star-shop-header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding-bottom:18px;border-bottom:1px solid #eee5da}.star-shop-header .eyebrow{margin-bottom:5px}.star-shop-header h2{margin:0;color:#393047;font-size:clamp(22px,4vw,29px)}.star-shop-header p:last-child{margin:8px 0 0;color:#777487;font-size:14px}.star-shop-header p strong{color:#a66a12;font-size:17px}.star-shop-close{width:40px;height:40px;border-radius:50%;background:#f6f0e8;font-size:25px}.star-shop-empty{min-height:280px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px 14px 18px}.star-shop-empty-icon{display:grid;place-items:center;width:76px;height:76px;margin-bottom:15px;border-radius:25px;background:linear-gradient(135deg,#fff0ce,#ffe8f1);font-size:38px}.star-shop-empty h3{margin:0 0 9px;color:#51445f;font-size:20px}.star-shop-empty p{max-width:360px;margin:0;color:#817b8d;font-size:14px;line-height:1.7}.star-shop-empty>span{margin-top:17px;color:#bd8a43;font-size:12px;font-weight:800}.star-award-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:4000;display:grid;place-items:center;padding:20px;background:#211b35bf;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);overflow:hidden}.star-award-message{position:relative;width:min(390px,100%);min-height:390px;padding:32px 22px 25px;border:1px solid #f4d9a3;border-radius:30px;background:radial-gradient(ellipse at 50% 20%,#fff5cc 0,#fffdf8 48%,#fff0f2);box-shadow:0 25px 90px #100b2455;text-align:center;overflow:hidden}.star-award-sparkles{display:block;color:#e8ac39;font-size:19px;letter-spacing:.1em;animation:star-sparkle-pulse 1s ease-in-out infinite alternate}.star-award-message h2{margin:12px 0 7px;color:#63457d;font-size:25px;line-height:1.3}.star-award-message>p{margin:0;color:#81758e;font-size:14px;overflow-wrap:anywhere}.star-award-star{position:absolute;z-index:2;left:calc(50% - 32px);top:128px;display:grid;place-items:center;width:64px;height:64px;font-size:58px;filter:drop-shadow(0 5px 6px #e7a62d66);animation:star-fly-into-box 2.4s cubic-bezier(.22,.72,.22,1) forwards;pointer-events:none}.star-award-box{position:absolute;left:calc(50% - 48px);bottom:57px;width:96px;height:83px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;border:2px solid #e8b46b;border-radius:17px;background:linear-gradient(135deg,#ffe7a7,#ffc8d5);box-shadow:0 7px #d99c58;font-size:37px}.star-award-box span{font-size:11px;font-weight:900;color:#8b5a32}.star-award-message>small{position:absolute;left:0;right:0;bottom:22px;color:#9c743b;font-size:13px;font-weight:900}@keyframes star-fly-into-box{0%{transform:translate(0) scale(.65) rotate(-20deg);opacity:0}12%{transform:translate(0) scale(1.18) rotate(12deg);opacity:1}38%{transform:translate(-30px,-12px) scale(1) rotate(-12deg);opacity:1}66%{transform:translate(35px,25px) scale(.88) rotate(18deg);opacity:1}88%{transform:translate(4px,120px) scale(.5) rotate(180deg);opacity:1}to{transform:translateY(142px) scale(.05) rotate(320deg);opacity:0}}@keyframes star-sparkle-pulse{0%{opacity:.65;transform:scale(.96)}to{opacity:1;transform:scale(1.04)}}@media(max-width:560px){.section-heading{align-items:center;gap:10px}.section-heading>div{min-width:0}.star-box-score{min-width:112px;gap:7px;padding:8px 9px;border-radius:14px}.star-box-icon{width:31px;height:31px;font-size:21px;border-radius:10px}.star-box-score strong{font-size:19px}.star-box-chevron{font-size:22px}.star-shop-modal{border-radius:20px}.star-award-message{min-height:365px;padding:27px 16px}.star-award-message h2{font-size:22px}}@media(prefers-reduced-motion:reduce){.star-award-star{animation-duration:.1ms;animation-iteration-count:1}.star-award-sparkles{animation:none}}.cta-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:11px 15px;font-size:13px;font-weight:750;line-height:1.25;white-space:nowrap}.cta-button>svg{display:block;flex:0 0 auto;width:18px;height:18px}.file-button.cta-button,.primary.cta-button{background:#f0ad5c;color:#513b24;border:1px solid #e9a14c;box-shadow:0 2px #d88f39}.file-button.cta-button:hover,.primary.cta-button:hover{background:#f5b96f;transform:translateY(-1px)}.secondary.cta-button{background:#edf2ff;color:#526a9b;border:1px solid #dce5fb}.secondary.cta-button:hover{background:#e3ebff}.sticker-library-actions{gap:8px}.sticker-library-actions .primary{width:auto;margin-top:0}.sticker-library-actions .cta-button{min-width:138px}.sticker-choose-files{width:auto!important;margin:0}.workbook-action-menu .cta-button{justify-content:flex-start;gap:11px;min-height:44px;padding:11px 13px;white-space:normal}.workbook-action-menu .cta-button>svg{width:18px;height:18px;flex:0 0 18px}.workbook-menu-actions .cta-button{justify-content:flex-start;gap:12px;text-align:left;padding-inline:16px}.workbook-menu-actions .cta-button>svg{width:19px;height:19px;flex:0 0 19px}.staged-continue{width:auto;min-width:170px}.dialog-actions .cta-button{width:auto}@media(max-width:760px){.cta-button{min-height:44px;padding:10px 12px;gap:9px;font-size:13px}.sticker-library-actions{width:auto;justify-content:flex-end}.sticker-library-actions .cta-button{min-width:0}}@media(max-width:520px){.sticker-library-actions{width:100%;justify-content:stretch}.sticker-library-actions .cta-button{flex:1}}.workspace-actions .cta-button{width:auto;margin-top:0}.workspace-actions .cta-button>svg{flex:0 0 auto}.cta-button{gap:0}.cta-button>svg{display:none}.file-button.cta-button,.primary.cta-button{background:linear-gradient(135deg,#ffdf75,#ffc83d);color:#5a3b08;border:1px solid #efb92d;box-shadow:0 2px #d99e17}.file-button.cta-button:hover,.primary.cta-button:hover{background:linear-gradient(135deg,#ffe895,#ffd45b)}.modal-close,.star-shop-close,.sticker-modal-close{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:1;text-align:center;vertical-align:middle;flex:0 0 auto}.modal-close{font-size:25px}.star-shop-close,.sticker-modal-close{font-size:24px}.app-shell .cta-button,.app-shell button.primary,.app-shell button.secondary,.app-shell button.tertiary,.app-shell .file-button{display:inline-flex;align-items:center;justify-content:center;gap:0;min-height:44px;padding:11px 15px;border-radius:12px;font-size:13px;font-weight:750;line-height:1.25;box-shadow:0 3px 0 var(--button-shadow, #d99e17);transition:background-color .15s ease,transform .15s ease,box-shadow .15s ease}.app-shell .primary.cta-button,.app-shell .primary:not(.quiet){background:linear-gradient(135deg,#ffe783,#ffc52e);color:#543806;border:1px solid #e9b629;--button-shadow:#d59a12}.app-shell .primary.cta-button:hover{background:linear-gradient(135deg,#ffed9e,#ffd454);transform:translateY(-1px)}.app-shell .file-button.cta-button,.app-shell .secondary.cta-button,.app-shell .sticker-add-button{background:linear-gradient(135deg,#e0efff,#b8d6ff);color:#23466f;border:1px solid #91b9e8;--button-shadow:#7da2d2}.app-shell .file-button.cta-button:hover,.app-shell .secondary.cta-button:hover,.app-shell .sticker-add-button:hover{background:linear-gradient(135deg,#edf5ff,#c9e0ff);transform:translateY(-1px)}.app-shell .tertiary.cta-button{background:#d8d8dc;color:#454653;border:1px solid #c2c2c8;--button-shadow:#a6a6ad}.app-shell .tertiary.cta-button:hover:not(:disabled){background:#ccccd2;transform:translateY(-1px)}.app-shell .cta-button:disabled,.app-shell button.primary:disabled,.app-shell button.secondary:disabled,.app-shell button.tertiary:disabled,.app-shell .file-button:disabled{opacity:.58;cursor:not-allowed;transform:none;box-shadow:0 3px 0 var(--button-shadow, #a6a6ad)}.import-panel .create-controls{gap:10px}.import-panel .create-controls>button{min-width:148px}.sticker-library-panel .staged-heading{display:flex;flex-direction:column;align-items:stretch;gap:12px}.sticker-library-panel .staged-heading>div:first-child{width:100%}.sticker-library-panel .sticker-library-actions{width:100%;justify-content:flex-start;gap:10px}.sticker-library-panel .sticker-library-actions .cta-button{min-width:138px}.modal-close,.star-shop-close,.sticker-modal-close{display:inline-grid;place-items:center;text-align:center;line-height:1;padding:0}.modal-close,.star-shop-close,.sticker-modal-close{width:40px;height:40px;min-width:40px;min-height:40px;flex:0 0 40px;padding:0;line-height:1}.modal-close>span,.star-shop-close>span,.sticker-modal-close>span{display:block;line-height:1;transform:translateY(-1px)}@media(max-width:760px){.app-shell .cta-button,.app-shell button.primary,.app-shell button.secondary,.app-shell button.tertiary,.app-shell .file-button{padding:10px 12px;min-height:44px}.import-panel .create-controls>button{min-width:0;flex:1}.sticker-library-panel .sticker-library-actions{justify-content:stretch}.sticker-library-panel .sticker-library-actions .cta-button{flex:1;min-width:0}}.app-shell.focus-mode .answer-page-navigation{position:fixed;left:calc(env(safe-area-inset-left,0px) + 14px);right:calc(env(safe-area-inset-right,0px) + 14px);bottom:calc(env(safe-area-inset-bottom,0px) + 14px);z-index:110;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.app-shell.focus-mode .answer-page-nav-button{display:grid;place-items:center;width:56px;height:56px;min-width:56px;min-height:56px;padding:0;border:1px solid #d8dff0;border-radius:50%;background:#ffffffed;color:#5367a1;box-shadow:0 4px 16px #242c4828;pointer-events:auto;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:background-color .15s ease,transform .15s ease,opacity .15s ease}.app-shell.focus-mode .answer-page-nav-button svg{display:block;width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}.app-shell.focus-mode .answer-page-nav-button:not(:disabled):active{transform:scale(.94);background:#eaf0ff}.app-shell.focus-mode .answer-page-nav-button:disabled{opacity:.3;cursor:not-allowed;box-shadow:0 3px 10px #242c4812}@media(max-width:760px){.app-shell.focus-mode .answer-page-navigation{left:calc(env(safe-area-inset-left,0px) + 12px);right:calc(env(safe-area-inset-right,0px) + 12px);bottom:calc(env(safe-area-inset-bottom,0px) + 12px)}.app-shell.focus-mode .answer-page-nav-button{width:52px;height:52px;min-width:52px;min-height:52px}.app-shell.focus-mode .answer-page-nav-button svg{width:28px;height:28px}}.eraser-live-preview{position:absolute;z-index:2;transform:translate(-50%,-50%);border:1.5px solid #d95783;background:#e86b9a29;border-radius:50%;box-shadow:0 1px 5px #702f4938,inset 0 0 3px #ffffffa6;pointer-events:none;will-change:left,top;width:24px;height:24px}@media(min-width:761px){.import-panel .create-controls{flex-wrap:nowrap;gap:10px;flex:none}.import-panel .create-controls>button.file-button,.import-panel .create-controls>button.primary,.import-panel .create-controls>button.tertiary{flex:0 0 auto;min-width:112px}}@media(max-width:760px){.import-panel{flex-direction:column;align-items:stretch;gap:14px}.import-panel .create-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:8px;align-items:stretch}.import-panel .create-controls>button.file-button,.import-panel .create-controls>button.primary,.import-panel .create-controls>button.tertiary{width:100%;min-width:0;min-height:46px;padding:9px 5px;white-space:normal;text-align:center;line-height:1.25}}.app-shell .cta-button>svg,.app-shell .workbook-menu-actions button>svg,.app-shell .workbook-action-menu button>svg{display:block;width:17px;height:17px;flex:0 0 17px}.app-shell .sticker-library-actions .cta-button{gap:9px}.app-shell .workbook-menu-actions .cta-button,.app-shell .workbook-action-menu .cta-button{justify-content:flex-start;gap:10px;text-align:left}.app-shell .workbook-menu-actions .secondary.cta-button,.app-shell .workbook-action-menu .secondary.cta-button,.app-shell .workspace-actions .secondary.cta-button{background:linear-gradient(135deg,#cfe4ff,#9fc7fa);color:#173f70;border:1px solid #78a9e7;--button-shadow:#6794cd}.app-shell .workbook-menu-actions .secondary.cta-button:hover,.app-shell .workbook-action-menu .secondary.cta-button:hover,.app-shell .workspace-actions .secondary.cta-button:hover{background:linear-gradient(135deg,#deedff,#b4d4ff)}.app-shell .secondary.cta-button,.app-shell .file-button.cta-button,.app-shell .sticker-add-button,.app-shell .workbook-menu-actions .secondary.cta-button,.app-shell .workbook-action-menu .secondary.cta-button,.app-shell .workspace-actions .secondary.cta-button,.app-shell .dialog-actions .secondary.cta-button{background:linear-gradient(135deg,#ffe0d6,#ffb8a5);color:#793b32;border:1px solid #f29a83;--button-shadow:#dc806b}.app-shell .secondary.cta-button:hover,.app-shell .file-button.cta-button:hover,.app-shell .sticker-add-button:hover,.app-shell .workbook-menu-actions .secondary.cta-button:hover,.app-shell .workbook-action-menu .secondary.cta-button:hover,.app-shell .workspace-actions .secondary.cta-button:hover,.app-shell .dialog-actions .secondary.cta-button:hover{background:linear-gradient(135deg,#ffebe3,#ffc8b8)}.import-panel .create-controls{display:flex;flex-wrap:nowrap;align-items:stretch;gap:10px}.import-panel .create-controls>button.file-button,.import-panel .create-controls>button.primary,.import-panel .create-controls>button.tertiary{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:1 1 0;min-width:112px;height:48px;min-height:48px;max-height:48px;margin:0;padding:8px 12px;line-height:1.2;white-space:normal;text-align:center}@media(max-width:760px){.import-panel .create-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;width:100%;gap:8px}.import-panel .create-controls>button.file-button,.import-panel .create-controls>button.primary,.import-panel .create-controls>button.tertiary{width:100%;min-width:0;height:52px;min-height:52px;max-height:52px;padding:6px 4px;font-size:12px;overflow-wrap:anywhere}}.app-shell .secondary.cta-button,.app-shell .file-button.cta-button,.app-shell .sticker-add-button,.app-shell .workbook-menu-actions .secondary.cta-button,.app-shell .workbook-action-menu .secondary.cta-button,.app-shell .workspace-actions .secondary.cta-button,.app-shell .dialog-actions .secondary.cta-button{background:linear-gradient(135deg,#e0f2cf,#b8dda0);color:#31572d;border:1px solid #91c47b;--button-shadow:#7fae68}.app-shell .secondary.cta-button:hover,.app-shell .file-button.cta-button:hover,.app-shell .sticker-add-button:hover,.app-shell .workbook-menu-actions .secondary.cta-button:hover,.app-shell .workbook-action-menu .secondary.cta-button:hover,.app-shell .workspace-actions .secondary.cta-button:hover,.app-shell .dialog-actions .secondary.cta-button:hover{background:linear-gradient(135deg,#edf8e3,#c9e7b7)}.import-panel .create-controls>button.file-button,.import-panel .create-controls>button.primary,.import-panel .create-controls>button.tertiary{padding:11px 15px}@media(max-width:760px){.import-panel .create-controls>button.file-button,.import-panel .create-controls>button.primary,.import-panel .create-controls>button.tertiary{padding:10px 12px;font-size:13px}}.app-shell .file-button.cta-button,.app-shell .secondary.cta-button,.app-shell .sticker-add-button,.app-shell .workbook-menu-actions .secondary.cta-button,.app-shell .workbook-action-menu .secondary.cta-button,.app-shell .workspace-actions .secondary.cta-button,.app-shell .dialog-actions .secondary.cta-button{background:linear-gradient(135deg,#f9dccb,#f3b99d);color:#704333;border:1px solid #E8A889;--button-shadow:#D79A7C}.app-shell .file-button.cta-button:hover,.app-shell .secondary.cta-button:hover,.app-shell .sticker-add-button:hover,.app-shell .workbook-menu-actions .secondary.cta-button:hover,.app-shell .workbook-action-menu .secondary.cta-button:hover,.app-shell .workspace-actions .secondary.cta-button:hover,.app-shell .dialog-actions .secondary.cta-button:hover{background:linear-gradient(135deg,#fce8dc,#f7c9b2);transform:translateY(-1px)}.app-shell .tertiary.cta-button{background:linear-gradient(135deg,#f0e9e1,#e4dad0);color:#5a5048;border:1px solid #D5C8BB;--button-shadow:#C4B5A6}.app-shell .tertiary.cta-button:hover:not(:disabled){background:linear-gradient(135deg,#f7f1eb,#ede3d9);transform:translateY(-1px)}.app-shell .file-button.cta-button:disabled,.app-shell .secondary.cta-button:disabled,.app-shell .sticker-add-button:disabled,.app-shell .tertiary.cta-button:disabled{opacity:.58;cursor:not-allowed;transform:none}.app-shell .danger-action,.app-shell .menu-danger,.app-shell .delete-permanent-button,.app-shell .cancel-confirm-button,.app-shell .tool.cancel-answer,.app-shell .dialog-actions .quiet,.app-shell .cancel-answer-dialog .dialog-actions .quiet,.app-shell .delete-workbook-dialog .dialog-actions .quiet,.app-shell .sticker-manage-modal .dialog-actions .quiet{background:linear-gradient(135deg,#d94a55,#b9253b);color:#fff;border:1px solid #A91F34;--button-shadow:#921B2D;box-shadow:0 3px 0 var(--button-shadow)}.app-shell .danger-action:hover,.app-shell .menu-danger:hover,.app-shell .delete-permanent-button:hover,.app-shell .cancel-confirm-button:hover:not(:disabled),.app-shell .tool.cancel-answer:hover,.app-shell .dialog-actions .quiet:hover{background:linear-gradient(135deg,#e45a64,#c72d43);color:#fff;transform:translateY(-1px)}.app-shell .danger-action:disabled,.app-shell .menu-danger:disabled,.app-shell .delete-permanent-button:disabled,.app-shell .cancel-confirm-button:disabled,.app-shell .dialog-actions .quiet:disabled{opacity:.55;cursor:not-allowed;transform:none}.creation-preview-main .workbook-preview-nav{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:10px;width:100%}.creation-preview-main .workbook-preview-nav span{grid-column:3;grid-row:1;justify-self:end;align-self:end;text-align:right;white-space:nowrap}.creation-preview-main .workbook-preview-nav button:first-child{grid-column:1;grid-row:1}.creation-preview-main .workbook-preview-nav button:last-child{grid-column:2;grid-row:1}@media(max-width:760px){.creation-preview-main .workbook-preview-nav{grid-template-columns:1fr 1fr;row-gap:8px}.creation-preview-main .workbook-preview-nav span{grid-column:1 / -1;grid-row:2;justify-self:end;white-space:normal}.creation-preview-main .workbook-preview-nav button:first-child{grid-column:1;grid-row:1}.creation-preview-main .workbook-preview-nav button:last-child{grid-column:2;grid-row:1}}.creation-preview-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.cancel-order-button{box-sizing:border-box;width:104px;min-width:104px;height:50px;min-height:50px;padding:12px 20px;border:1px solid #d9d9de;border-radius:15px;background:#f1f1f3;color:#62636b;font-size:18px;font-weight:800;box-shadow:none}.cancel-order-button:hover{background:#e7e7eb;color:#4c4d55}.creation-preview-actions .finish-order-button{box-sizing:border-box;width:104px;min-width:104px;height:50px;min-height:50px;padding:12px}.return-preview-button{min-height:44px;padding:10px 15px;border:1px solid #d9d9de;border-radius:12px;background:#f1f1f3;color:#62636b;font-weight:700;box-shadow:none}.return-preview-button:hover:not(:disabled){background:#e7e7eb;color:#4c4d55}.sticker-choose-files{margin-block:12px!important}.sticker-candidates-empty{min-height:0;padding:14px 12px;gap:0}@media(max-width:760px){.creation-preview-actions{gap:6px}.cancel-order-button,.creation-preview-actions .finish-order-button{width:84px;min-width:84px;height:44px;min-height:44px;padding:9px 10px;font-size:16px}}.creation-preview-main .workbook-preview-nav{grid-template-columns:auto auto;justify-content:space-between}@media(max-width:760px){.creation-preview-main .workbook-preview-nav{grid-template-columns:1fr 1fr}.creation-preview-main .workbook-preview-nav button:first-child{grid-column:1;grid-row:1}.creation-preview-main .workbook-preview-nav button:last-child{grid-column:2;grid-row:1}}.sticker-gallery-grid{margin:18px 4px;padding:16px;border:1px dashed #d8cbbd;border-radius:18px;gap:14px}.sticker-gallery-item{display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:8px;border:1px solid #e8e1d8;border-radius:14px;background:#fff}.sticker-gallery-edit{display:flex;flex:1;min-height:0;width:100%;flex-direction:column;align-items:center;gap:7px;padding:4px;border:0;background:transparent;color:#51495d;cursor:pointer}.sticker-gallery-edit img{width:100%;height:auto;aspect-ratio:1;object-fit:contain;padding:5px}.sticker-gallery-edit span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.sticker-gallery-item-actions{display:flex;justify-content:center;align-items:center;gap:5px}.sticker-order-button{width:30px;height:30px;border:1px solid #e7ded4;border-radius:8px;background:#faf8f4;color:#51495d}.sticker-order-button:disabled{opacity:.3}.sticker-edit-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1450;display:flex;align-items:center;justify-content:center;padding:calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 16px);background:#211d32b8;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}.sticker-edit-modal{width:min(620px,100%);max-height:100%;overflow:auto;background:#fffdf9;border:1px solid #e8e1d8;border-radius:22px;padding:20px;box-shadow:0 20px 70px #211d3240}.sticker-edit-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:14px;border-bottom:1px solid #e8e1d8}.sticker-edit-header h2{margin:0;font-size:20px}.sticker-edit-header p{margin:5px 0 0;color:#81788c;font-size:13px}.sticker-edit-preview{display:flex;align-items:center;justify-content:center;min-height:220px;max-height:52vh;margin:18px 0;padding:18px;border:1px solid #e5ddd2;border-radius:14px;overflow:hidden;background-color:#fff;background-image:linear-gradient(45deg,#f0ede8 25%,transparent 25%),linear-gradient(-45deg,#f0ede8 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f0ede8 75%),linear-gradient(-45deg,transparent 75%,#f0ede8 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}.sticker-edit-preview img{display:block;max-width:100%;max-height:48vh;object-fit:contain}.sticker-edit-hint{font-size:13px;line-height:1.55;color:#81788c}.sticker-edit-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:9px;margin-top:18px}@media(max-width:520px){.sticker-gallery-grid{margin:14px 0;padding:10px;gap:9px}.sticker-gallery-item{padding:5px}.sticker-gallery-item-actions{gap:3px}.sticker-order-button{width:28px;height:28px}.sticker-edit-modal{padding:15px;border-radius:18px}.sticker-edit-actions>*{flex:1}}.cancel-answer-dialog .tertiary-cta{background:#f1f1f3;color:#62636b;border:1px solid #d9d9de;border-radius:12px;padding:11px 15px;font-weight:700;box-shadow:none}.cancel-answer-dialog .tertiary-cta:hover:not(:disabled){background:#e7e7eb;color:#4c4d55}.cancel-answer-dialog .tertiary-cta:disabled{opacity:.55}.app-shell .delete-workbook-dialog .dialog-actions .tertiary-cta,.app-shell .delete-workbook-dialog .dialog-actions .tertiary-cta:hover:not(:disabled){background:#f1f1f3;color:#62636b;border:1px solid #d9d9de;box-shadow:none}.app-shell .delete-workbook-dialog .dialog-actions .tertiary-cta:hover:not(:disabled){background:#e7e7eb;color:#4c4d55;transform:none}.delete-workbook-dialog .dialog-actions{display:flex;gap:12px}.delete-workbook-dialog .dialog-actions button{box-sizing:border-box;flex:1 1 0;min-width:96px;min-height:44px;padding:11px 18px;white-space:nowrap}
