/* The notebook is intentionally separate from learning and the star shop. */
.notebook-entry{display:flex;align-items:center;justify-content:center;gap:12px;min-height:52px;width:100%;padding:12px 18px;margin:12px 0 20px;border:1px solid #d2bedf;border-radius:18px;color:#554078;background:#fcf5ff;box-shadow:0 3px 0 #e9def1;font-size:1rem;font-weight:750}
.notebook-entry>span:first-child{font-size:1.7rem;line-height:1}
#sticker-modal{padding:14px;overflow-y:auto;align-items:flex-start;background:rgba(39,37,66,.55)}
.notebook-shell{box-sizing:border-box;background:#faf8f4;color:#3d3a52;width:min(100%,1020px);margin:auto;border-radius:24px;padding:24px;box-shadow:0 16px 60px #25223d40}
.notebook-shell *{box-sizing:border-box}.notebook-shell [hidden]{display:none!important}
.notebook-header{position:sticky;top:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px;padding:0;border:0;max-width:none;min-height:0;background:#faf8f4}
.notebook-header h2{font-size:1.55rem;line-height:1.2;margin:4px 0;color:#40335d}.notebook-eyebrow{margin:0;color:#715787;font-weight:700;font-size:.85rem}
.notebook-shell button,.notebook-shell select{font:inherit;min-height:46px;min-width:46px;max-width:100%;border:1px solid #c7bcd1;border-radius:12px;background:#fff;color:#443354;padding:10px 14px;box-shadow:none;line-height:1.3}
.notebook-shell button{cursor:pointer;font-weight:650}.notebook-shell button:hover:not(:disabled){background:#f5edff;border-color:#8768aa}.notebook-shell button:disabled{opacity:.5;cursor:default}.notebook-shell :focus-visible{outline:3px solid #255cac;outline-offset:3px}
.notebook-layout{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:26px;align-items:start}.notebook-workspace{min-width:0}.notebook-tray{background:#eee8f4;border-radius:20px;padding:20px;min-width:0}.notebook-tray h3{font-size:1.1rem;margin:0 0 10px}.notebook-tray p{font-size:.88rem;line-height:1.55;margin:8px 0 16px}
.notebook-pages{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.notebook-pages label{flex:1;min-width:95px}.notebook-pages select{width:100%;font-weight:700}.notebook-pages #sticker-add-page{flex-basis:100%;background:#f4edf9;font-size:.88rem}.notebook-instruction{min-height:44px;font-size:.9rem;line-height:1.45;margin:15px 0 12px}
.notebook-paper{position:relative;isolation:isolate;width:100%;max-width:440px;aspect-ratio:4/5;margin:0 auto;border:1px solid #d5c9b8;border-radius:6px 20px 20px 6px;background-color:#fffef9;background-image:radial-gradient(#dacfc0 1px,transparent 1px);background-size:20px 20px;box-shadow:4px 5px 0 #e8dece,7px 8px 0 #d7ccbc;overflow:hidden;touch-action:pan-y}
.notebook-paper:before{content:'';position:absolute;inset:0 auto 0 6%;width:1px;background:#ecd2ce;pointer-events:none}.notebook-empty{position:absolute;inset:40% 0 auto;text-align:center;font-size:4rem;color:#d5c7db;pointer-events:none}
.notebook-shell .notebook-sticker{position:absolute;transform:translate(-50%,-50%);width:20%;height:16%;min-width:44px;min-height:44px;padding:2px;border:2px solid transparent;border-radius:14px;background:transparent;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;z-index:1}
.notebook-shell .notebook-sticker:hover{background:transparent}.notebook-shell .notebook-sticker[aria-pressed=true]{border-color:#6e4a99;background:#ebe0f680;z-index:2}.notebook-sticker :is(svg,img){width:100%;height:100%;display:block;object-fit:contain;pointer-events:none;filter:drop-shadow(0 2px 1px #3a29462a)}
.notebook-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.notebook-actions button{flex:1}.notebook-selection{margin-top:16px}.notebook-selection label{display:block;font-size:.85rem;margin-bottom:6px}.notebook-selection select{width:100%}.notebook-move-tools{display:grid;gap:10px;margin-top:12px}.notebook-arrows{display:flex;justify-content:center;gap:8px}.notebook-arrows button{font-size:1.25rem}.notebook-transfer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}.notebook-transfer label{grid-column:1/-1;font-size:.85rem}.notebook-transfer select{width:100%}#sticker-remove{font-size:.85rem}#sticker-undo{margin-top:12px;width:100%;font-size:.85rem}
.notebook-collection{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.notebook-shell .notebook-design{padding:5px 3px;background:#fff;border:2px solid transparent;display:flex;flex-direction:column;align-items:center;gap:4px}.notebook-design :is(svg,img){width:100%;height:auto;max-width:88px;aspect-ratio:1;display:block;object-fit:contain;pointer-events:none}.notebook-design span{font-size:.76rem;line-height:1.2;overflow-wrap:anywhere}.notebook-shell .notebook-design[aria-pressed=true]{border-color:#684490;background:#fff8d9}
.notebook-status{min-height:1.5em;margin:18px 0 6px;font-size:.9rem;font-weight:700}.notebook-footnote{font-size:.78rem;color:#666070;margin:5px 0;line-height:1.5}.notebook-error{border:2px solid #97692b;border-radius:12px;background:#fff3dc;color:#67420e;padding:12px;line-height:1.5}#sticker-save-retry{margin-bottom:10px}
html[dir=rtl] .notebook-paper{border-radius:20px 6px 6px 20px}html[dir=rtl] .notebook-paper:before{left:auto;right:6%}html[dir=rtl] #sticker-prev,html[dir=rtl] #sticker-next{transform:scaleX(-1)}
@media(max-width:660px){#sticker-modal{padding:8px;padding-bottom:max(8px,env(safe-area-inset-bottom))}.notebook-shell{padding:16px;border-radius:18px}.notebook-header{align-items:flex-start;gap:8px;margin-bottom:16px}.notebook-header h2{font-size:1.22rem}.notebook-header button{padding:9px 12px;flex:none}.notebook-layout{grid-template-columns:minmax(0,1fr);gap:22px}.notebook-tray{padding:16px}.notebook-collection{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.notebook-pages{gap:6px}.notebook-instruction{min-height:0}.notebook-collection .notebook-design{padding:3px 1px}.notebook-design span{font-size:.7rem}}
@media(max-width:359px){.notebook-shell{padding:12px}.notebook-header h2{font-size:1.1rem}.notebook-collection{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.notebook-shell *{scroll-behavior:auto}}

.notebook-themes{display:flex;gap:8px;margin:12px 0;flex-wrap:wrap}.notebook-themes button{flex:1;min-width:100px;font-size:.85rem}.notebook-themes button[aria-pressed=true]{background:#594376;color:#fff;border-color:#594376}
