.craft-section{border:1px solid var(--border, #ded8cd);border-radius:14px;padding:14px;background:linear-gradient(135deg,#c8a9670a,transparent);display:grid;gap:12px}.craft-section p,.craft-hint{font-size:.8rem;line-height:1.5;color:var(--muted, #736e65);margin:0}.craft-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.craft-choice{border:1px solid #a8927038;background:var(--surface, #faf7f0);padding:10px 6px;border-radius:10px;color:inherit;cursor:pointer;display:grid;gap:5px;justify-items:center;font:inherit;font-size:.75rem}.craft-choice[aria-pressed=true]{border-color:#b79456;background:#c6a6681a;box-shadow:inset 0 0 0 1px #b7945640}.craft-choice svg{width:80px;height:51px}.craft-collections{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.craft-collections button{font:inherit;font-size:.73rem;border:1px solid #a8927040;border-radius:20px;padding:6px 10px;background:transparent;color:inherit;cursor:pointer}.craft-collections button[aria-pressed=true]{background:#bfa36526;border-color:#b19461}.shelf-power-switch{cursor:pointer}.shelf-power-switch:focus-visible>rect:first-of-type{stroke:#ffe1a2;stroke-width:2}.craft-plant-awake{transform-box:fill-box;transform-origin:50% 100%;animation:craft-leaves 7s ease-in-out infinite}.craft-candle-flame{transform-box:fill-box;transform-origin:50% 100%;animation:craft-flame 3.7s ease-in-out infinite}.craft-steam{animation:craft-steam 4.8s ease-in-out infinite}.craft-clock-hand{animation:craft-clock 60s steps(60,end) infinite}@keyframes craft-clock{to{transform:rotate(360deg)}}.craft-familiar{animation:craft-familiar 6s ease-in-out infinite}@keyframes craft-leaves{0%,to{transform:rotate(-1.4deg)}50%{transform:rotate(1.4deg)}}@keyframes craft-flame{0%,to{transform:scaleX(.9);opacity:.8}50%{transform:scale(1.1,.87);opacity:1}}@keyframes craft-steam{0%,to{opacity:.12;transform:translateY(1px)}50%{opacity:.5;transform:translateY(-8px)}}@keyframes craft-familiar{0%,70%,to{opacity:.1}80%,90%{opacity:.9}}@media(prefers-reduced-motion:reduce){.craft-plant-awake,.craft-candle-flame,.craft-steam,.craft-clock-hand,.craft-familiar{animation:none}}.library-atmosphere{margin:0 0 18px;--atmo-ink: #293c36;--atmo-muted: #747b70;color:var(--atmo-ink)}.atmo-bar{display:flex;gap:14px;align-items:center;padding:14px 17px;border:1px solid #d9dfd2;border-radius:13px;background:linear-gradient(115deg,#eef1e8,#faf6ed)}.atmo-orb{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border-radius:50%;color:#655f49;background:radial-gradient(circle at 35% 30%,#fff,var(--atmo-color));box-shadow:0 0 23px 2px color-mix(in srgb,var(--atmo-color),transparent 30%)}.atmo-current{flex:1;min-width:100px}.atmo-current strong{display:block;font:500 16px/1.3 Lora,Georgia,serif;margin-top:4px}.atmo-eyebrow{font-size:9px;letter-spacing:1.8px;color:#73806e;font-weight:600}.atmo-play,.atmo-open,.atmo-countdown{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:9px 13px;border-radius:8px;border:1px solid #ccd7c8;font:inherit;font-size:12px;cursor:pointer}.atmo-play{background:#354e43;color:#fffdf6;border-color:#354e43}.atmo-play:disabled{opacity:.5;cursor:default}.atmo-play.is-playing{background:#536b57}.atmo-open,.atmo-countdown{background:#ffffff80;color:var(--atmo-ink)}.atmo-open .is-open{transform:rotate(180deg)}.atmo-countdown{font-variant-numeric:tabular-nums}.atmo-panel{padding:26px;margin-top:10px;background:#faf9f4;border:1px solid #d9dfd2;border-radius:15px;box-shadow:0 12px 32px #273a2910}.atmo-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}.atmo-panel h4{margin:5px 0 0;font:500 25px/1.4 Lora,Georgia,serif}.atmo-tabs{display:flex;gap:8px;border-bottom:1px solid #dfe2d7;margin-bottom:22px}.atmo-tabs button{display:flex;align-items:center;justify-content:center;gap:7px;padding:12px 18px;background:none;border:0;border-bottom:2px solid transparent;color:var(--atmo-muted);font:inherit;font-size:13px;cursor:pointer}.atmo-tabs [aria-selected=true]{color:#2f5541;border-bottom-color:#4d7454}.atmo-intro,.atmo-section-heading p,.atmo-reading p{font-size:13px;line-height:1.7;color:var(--atmo-muted);margin:0 0 17px}.atmo-scenes{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.atmo-scene{display:flex;flex-direction:column;text-align:left;font:inherit;color:var(--atmo-ink);border-radius:10px;padding:7px;background:#fffdf8;border:1px solid #e2e4d9;cursor:pointer;transition:box-shadow .18s,transform .18s}.atmo-scene:hover{transform:translateY(-2px);box-shadow:0 8px 20px #273a2918}.atmo-scene[aria-pressed=true]{border-color:#617b54;box-shadow:0 0 0 1px #617b54}.atmo-scene-art{display:block;position:relative;overflow:hidden;width:100%;height:105px;border-radius:6px;background:radial-gradient(ellipse at 80% 20%,var(--scene-light),transparent 70%),linear-gradient(135deg,var(--scene-accent),#293a35)}.atmo-window{position:absolute;width:27%;height:68%;top:11%;left:9%;border:2px solid #e9dfc188;background:linear-gradient(150deg,var(--scene-light),#f9fff01c);box-shadow:22px 18px 34px var(--scene-light);transform:skewY(-4deg)}.atmo-window:before,.atmo-window:after{content:"";position:absolute;background:#faf5df55}.atmo-window:before{width:2px;height:100%;left:50%}.atmo-window:after{height:2px;width:100%;top:50%}.atmo-mini-shelf{position:absolute;left:47%;bottom:4px;width:54%;height:92px;filter:drop-shadow(2px 3px 3px #0003)}.atmo-scene-symbol{position:absolute;right:10px;top:8px;font-size:19px;color:#fff4d7c0}.atmo-scene-check{position:absolute;right:5px;bottom:5px;width:23px;height:23px;display:grid;place-items:center;background:#f5f7ea;color:#416442;border-radius:50%}.atmo-scene strong{font-size:12px;line-height:1.5;padding:10px 4px 4px}.atmo-scene>span:not(.atmo-scene-art){font-size:10px;line-height:1.6;color:var(--atmo-muted);padding:0 4px 10px;flex:1}.atmo-scene small{color:#8b8e79;font-size:9px;padding:0 4px 4px}.atmo-footnote{display:flex;gap:6px;align-items:flex-start;margin:17px 0 0;font-size:11px;color:#7b8176;line-height:1.7}.atmo-footnote svg{flex-shrink:0;margin-top:2px}.atmo-section-heading{display:flex;gap:20px;align-items:flex-start;justify-content:space-between}.atmo-panel h5{margin:0 0 9px;font:500 19px/1.5 Lora,Georgia,serif}.atmo-light-grid{display:grid;grid-template-columns:1fr 1fr;gap:36px}.atmo-label{font-size:12px}.atmo-palette{display:flex;flex-wrap:wrap;gap:8px;margin:13px 0}.atmo-palette button{border:1px solid #dde2d5;border-radius:7px;padding:8px;background:#fffdf8;font:inherit;font-size:10px;color:var(--atmo-muted);display:flex;align-items:center;gap:5px;cursor:pointer;min-height:40px}.atmo-palette button span{width:19px;height:19px;background:var(--swatch);border:1px solid #0001;border-radius:50%}.atmo-palette [aria-pressed=true]{border-color:#688368;color:#3e634b}.atmo-slider{display:block;margin:12px 0 22px}.atmo-slider>span{display:flex;justify-content:space-between;align-items:center;font-size:12px;gap:8px;margin-bottom:8px}.atmo-slider output{font-size:11px;color:#6e7e69;font-variant-numeric:tabular-nums}.atmo-slider input,.atmo-layer-range input{width:100%;accent-color:#5b785c;height:24px;cursor:pointer}.atmo-color{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;margin:8px 0 20px}.atmo-color input{width:54px;height:35px;border:1px solid #d2d9cb;padding:3px;border-radius:6px;background:transparent;cursor:pointer}.atmo-toggle{display:flex;align-items:center;gap:9px;font-size:12px;margin-bottom:17px;line-height:1.6}.atmo-toggle input{accent-color:#597756;width:16px;height:16px}.atmo-select{display:flex;flex-direction:column;gap:8px;font-size:12px;margin:12px 0 20px}.atmo-select select,.atmo-select input{border:1px solid #d3dacd;background:#fffdf8;color:#3e5141;border-radius:7px;padding:10px;font:inherit}.atmo-master{display:grid;grid-template-columns:1fr 1fr;gap:35px}.atmo-filters,.atmo-duration{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 18px}.atmo-filters button,.atmo-duration button{border:1px solid #dae0d1;background:#fffdf8;color:#6d7b66;padding:9px 12px;border-radius:20px;font:inherit;font-size:11px;min-height:36px;cursor:pointer}.atmo-filters [aria-pressed=true],.atmo-duration [aria-pressed=true]{background:#e4ebdc;border-color:#96ab8a;color:#385a3e}.atmo-sounds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.atmo-sound{display:grid;grid-template-columns:31px 1fr 30px;align-items:center;gap:10px;padding:13px;border:1px solid #e0e4d8;border-radius:10px;background:#fffdf8}.atmo-sound.is-active{background:#f1f4e9;border-color:#c0d0b5}.atmo-sound-glyph{font:26px/1 Georgia,serif;color:#8f9b80;text-align:center}.atmo-sound-title strong{font-size:12px;display:block}.atmo-sound-title small{font-size:9px;line-height:1.5;display:block;color:#808a78;margin-top:3px}.atmo-solo,.atmo-mute{border:0;background:none;color:#728168;padding:7px;cursor:pointer;display:grid;place-items:center;min-height:32px}.atmo-solo[aria-pressed=true]{background:#dce9cf;border-radius:6px;color:#2d5e33}.atmo-solo:disabled{opacity:.3}.atmo-layer-range{grid-column:1/3;display:flex;align-items:center;gap:8px}.atmo-layer-range output{font-size:10px;color:#718066;min-width:29px;text-align:right}.atmo-solo-notice{display:flex;align-items:center;gap:8px;margin-bottom:16px;background:#eaf0e1;padding:11px;border-radius:7px;font-size:12px}.atmo-solo-notice button{border:0;background:transparent;text-decoration:underline;color:#3d6540;font:inherit;cursor:pointer}.atmo-reading{display:grid;grid-template-columns:.8fr 1.2fr;gap:40px}.atmo-reading-art{min-height:280px;background:radial-gradient(ellipse at 40% 25%,#cddaab99,transparent 60%),linear-gradient(130deg,#e9ede0,#f0e9d7);border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;color:#7d9166}.atmo-reading-art>span{font-size:10px;letter-spacing:3px}.atmo-timer-active{display:flex;align-items:center;gap:18px}.atmo-timer-active>strong{font:500 30px Lora,Georgia,serif;font-variant-numeric:tabular-nums}.atmo-message{padding:10px 14px;font-size:12px;color:#79613d;background:#f6efde;border-radius:7px}.atmo-announcement:empty{display:none}.atmo-announcement{display:block;font-size:12px;color:#587252;margin:10px 0}.library-atmosphere button:focus-visible,.library-atmosphere input:focus-visible,.library-atmosphere select:focus-visible{outline:2px solid #527c57;outline-offset:3px}.library-light-motion .library-dust{animation:library-dust 24s ease-in-out infinite alternate}.library-light-motion .library-flame{animation:library-flame 5s ease-in-out infinite alternate}.library-light-motion .library-weather-rain{animation:library-rain 3s linear infinite}.library-light-motion .library-weather-snow{animation:library-snow 22s linear infinite}.library-light-motion .library-weather-leaves{animation:library-leaves 32s ease-in-out infinite alternate}.library-light-motion .library-weather-stars{animation:library-stars 9s ease-in-out infinite alternate}@keyframes library-dust{0%{transform:translate(0);opacity:.48}to{transform:translate(10px,-15px);opacity:.9}}@keyframes library-flame{0%{opacity:.7}to{opacity:1}}@keyframes library-rain{to{transform:translate(-9px,45px)}}@keyframes library-snow{to{transform:translate(18px,72px)}}@keyframes library-leaves{to{transform:translate(12px,26px) rotate(1deg)}}@keyframes library-stars{0%{opacity:.3}to{opacity:.8}}@media(max-width:1100px){.atmo-scenes{grid-template-columns:repeat(4,minmax(0,1fr))}.atmo-sounds{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.atmo-bar{flex-wrap:wrap;gap:10px;padding:13px}.atmo-orb{width:34px;height:34px}.atmo-current{flex-basis:calc(100% - 75px)}.atmo-eyebrow{font-size:8px}.atmo-play,.atmo-open{flex:1;min-height:44px}.atmo-countdown{order:3}.atmo-panel{padding:17px 12px}.atmo-panel h4{font-size:21px}.atmo-tabs{gap:0}.atmo-tabs button{flex:1;padding:12px 4px;font-size:11px;gap:4px}.atmo-scenes{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.atmo-scene-art{height:102px}.atmo-section-heading{flex-direction:column;gap:0}.atmo-light-grid,.atmo-master,.atmo-reading{grid-template-columns:1fr;gap:8px}.atmo-sounds{grid-template-columns:1fr}.atmo-sound{padding:15px}.atmo-solo,.atmo-mute{min-height:40px;min-width:40px}.atmo-reading-art{min-height:120px;gap:12px;margin-bottom:12px}.atmo-reading-art svg{height:30px}.atmo-solo-notice{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){.library-light-motion *{animation:none!important}.atmo-scene{transition:none}}@font-face{font-family:DM Sans;src:url(/fonts/dm-sans.ttf) format("truetype");font-weight:100 1000;font-display:swap}.studio-unplaced{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:18px 20px;border-top:1px solid #dde1cf;background:#f4f5e9;color:#78846a;font-size:12px}.studio-unplaced>div{width:100%;display:flex;flex-wrap:wrap;gap:12px}.studio-unplaced .text-button{font-size:10px}.studio-unplaced .button{margin-left:auto;font-size:11px;min-height:36px}.studio-tab-content>fieldset{border:0;padding:0;margin:0;min-width:0}.bookshelf-studio{border:1px solid #dbdfd1;border-radius:16px;background:#fbfaf5;overflow:hidden;min-width:0;box-shadow:0 12px 36px #39392b0b}.studio-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px 16px}.studio-topbar .eyebrow{font-size:8px;letter-spacing:1.8px;color:#909578}.studio-topbar h3{margin:7px 0 0;font:400 23px/1.3 var(--serif);color:#4c5845}.studio-mode{flex-shrink:0}.studio-mode button{display:inline-flex;align-items:center;gap:6px;min-height:38px}.studio-actions{display:flex;align-items:center;gap:4px;padding:8px 18px;border-block:1px solid #e5e5db;background:#f5f5ed;flex-wrap:wrap}.studio-actions .icon-button{width:34px;height:34px}.studio-actions .text-button{font-size:11px}.studio-save{display:inline-flex;align-items:center;gap:6px;color:#6d7c61;font-size:10px;margin-right:auto;min-width:100px}.studio-workspace{display:grid;grid-template-columns:minmax(0,1fr)}.is-designing .studio-workspace{grid-template-columns:minmax(0,1fr) 280px}.studio-stage{min-width:0;position:relative}.studio-viewport{overflow:auto;max-height:min(76dvh,980px);overscroll-behavior:contain;background:#ede6da;scrollbar-width:thin;scrollbar-color:#a99c81 #eee8db}.studio-scene-wrap{min-width:0}.studio-scene-wrap>.bookshelf-scene{display:block;width:100%;height:100%}.bookshelf-scene{display:block;max-width:100%;height:auto;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.scene-item{cursor:pointer;outline:none}.scene-item:focus-visible{outline:3px solid #e6c47d;outline-offset:4px}.is-designing .scene-item{cursor:grab;touch-action:none}svg.bookshelf-scene.is-designing{touch-action:none}.is-designing .scene-item:active{cursor:grabbing}.scene-item:hover>ellipse{opacity:.28}.book-in-hand-overlay{overflow:visible}.book-in-hand-stage{position:relative;width:100%;height:100%;perspective:1100px;pointer-events:none}.book-in-hand{position:absolute;left:25%;top:25%;width:var(--book-width);height:var(--book-height);padding:0;border:0;border-radius:2px;background:none;transform-style:preserve-3d;transform:translateY(var(--book-rise)) scale(var(--book-scale)) rotate(var(--book-tilt)) rotateY(var(--book-angle));transition:transform .22s cubic-bezier(.2,.7,.2,1);cursor:pointer;pointer-events:auto;outline-offset:8px}.book-in-hand-face{position:absolute;inset:0;display:block;width:var(--book-width);height:var(--book-height);backface-visibility:hidden;pointer-events:none}.book-in-hand-face svg{display:block;width:100%;height:100%}.book-in-hand-front{transform:translateZ(calc(var(--book-depth) / 2));box-shadow:14px 16px 28px #19171355}.book-in-hand-spine{width:var(--book-depth);transform:translate(-50%) rotateY(-90deg);box-shadow:10px 12px 24px #19171345}.book-in-hand-pages{width:var(--book-depth);left:var(--book-width);transform:translate(-50%) rotateY(90deg);background:repeating-linear-gradient(90deg,#eee5d4 0 1px,#d0c3ad 1px 2px);border-block:3px solid var(--book-color)}.book-in-hand-back{transform:rotateY(180deg) translateZ(calc(var(--book-depth) / 2));background:var(--book-color)}.studio-book-gesture{margin:14px 0}.studio-book-gesture p{font-size:10px;color:#727963;margin:8px 0 0}.studio-caption{display:flex;justify-content:space-between;gap:14px;padding:16px 20px;font-size:10px;line-height:1.7;color:#8c8b77;font-style:italic}.studio-caption>span:last-child{white-space:nowrap;font-style:normal}.studio-panel{border-left:1px solid #dedfd3;min-width:0;background:#f8f8f0}.studio-tabs{display:grid;grid-template-columns:repeat(4,1fr);position:sticky;top:0;z-index:1;border-bottom:1px solid #dfe1d2;background:#f5f5eb;padding:4px;gap:2px}.studio-tabs button{padding:12px 3px;border:0;background:transparent;font:inherit;font-size:10px;color:#80846f;border-radius:5px;cursor:pointer;min-height:40px}.studio-tabs button[aria-selected=true]{background:#e6ebd9;color:#465d3a;box-shadow:0 1px 2px #52573d14}.studio-tab-content{padding:18px;max-height:76dvh;overflow:auto;scrollbar-width:thin}.studio-panel-intro{font:italic 14px/1.7 var(--serif);color:#878c72;margin-bottom:18px}.studio-tab-content .field{font-size:11px;margin-bottom:15px}.studio-tab-content .field input:not([type=range]):not([type=color]),.studio-tab-content .field select{min-height:38px;font-size:12px;padding:9px}.studio-tab-content input[type=range]{width:100%;accent-color:#697b51;min-height:32px}.studio-tab-content input[type=color]{width:100%;height:35px;padding:3px;border:1px solid #d5dbc8;border-radius:6px;background:#fffef7}.studio-tab-content .button{font-size:11px;padding:10px 12px;min-height:38px;width:100%;margin-bottom:9px}.studio-tab-content .text-button{font-size:11px;min-height:36px}.studio-location{display:grid;grid-template-columns:1.15fr 1fr;gap:10px;border-bottom:1px solid #dedfd0;margin-bottom:16px}.studio-presets{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:25px}.studio-presets>button{background:#fffef8;border:1px solid #dce0d0;padding:5px 5px 10px;border-radius:8px;cursor:pointer;text-align:left;font:inherit;transition:border-color .15s}.studio-presets>button:hover{border-color:#879777}.studio-presets strong{display:block;font-size:10px;font-weight:500;margin:8px 4px 0;color:#58604e}.preset-art{display:block;height:84px;position:relative;overflow:hidden;border-radius:4px;border-inline:6px solid #92734f;border-top:8px solid #92734f;box-shadow:inset 0 3px 6px #0000002b}.preset-art:before,.preset-art:after{content:"";position:absolute;height:5px;width:100%;background:#92734f;box-shadow:0 3px 4px #00000020;top:40%}.preset-art:after{top:88%}.preset-art>span{position:absolute;bottom:60%;width:10px;height:22px;left:8px;background:#83906d;box-shadow:12px 0 #b38662,24px 0 #465c65;border-radius:1px}.preset-art>span:nth-child(2){bottom:11%;left:31px;height:25px;background:#b1a075;box-shadow:12px 0 #645667,24px 0 #97715b}.preset-art>span:nth-child(3){left:13px;bottom:11%;height:15px;transform:rotate(90deg)}.preset-art>svg{position:absolute;width:23px;height:37px;right:7px;top:2px}.preset-minimal{border-color:#e2e1d9}.preset-minimal:before,.preset-minimal:after{background:#d6d5ce}.preset-night{border-color:#414944}.preset-night:before,.preset-night:after{background:#414944;box-shadow:0 -3px 9px #f9cf776b}.preset-botanical{border-color:#c4ae80}.preset-fantasy:before,.preset-fantasy:after{box-shadow:0 -3px 9px #fae4b995}.studio-decor-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.studio-decor-grid button{display:flex;flex-direction:column;align-items:center;justify-content:end;border:1px solid #e0e2d4;border-radius:10px;background:linear-gradient(155deg,#fffefa,#f0ede5);min-height:126px;padding:8px 4px;cursor:pointer}.studio-decor-grid button:hover{background:#f0f2e3;border-color:#a4b08e}.studio-decor-grid svg{width:min(100%,74px);height:88px;margin-bottom:7px;filter:drop-shadow(0 4px 3px #4d41321a)}.studio-decor-grid span{font-size:10px;line-height:1.4;color:#777f67}.studio-decor-credits{display:inline-block;margin-top:16px;font-size:11px;color:#777f67;text-underline-offset:3px}.studio-checkbox{display:flex;align-items:center;gap:8px;font-size:12px;margin-bottom:18px;min-height:35px}.studio-checkbox input,.studio-inventory input{accent-color:#71875c;width:16px;height:16px;flex-shrink:0}.studio-button-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0 18px}.studio-inspector{margin-top:22px;padding-top:17px;border-top:1px solid #d9deca}.studio-inspector-title{display:flex;align-items:center;gap:9px;margin-bottom:12px}.studio-inspector-title strong{font:400 16px/1.4 var(--serif);color:#596348;overflow-wrap:anywhere;flex:1}.studio-move-controls{display:flex;gap:6px;margin-bottom:5px}.studio-move-controls .icon-button{border:1px solid #d9deca;background:#fffef8;width:43px;height:38px}.studio-remove{color:#986952;margin-top:12px}.studio-inventory{max-height:280px;overflow:auto;border-block:1px solid #dfe2d1;margin-bottom:14px}.studio-inventory-book{display:flex;align-items:center;gap:5px;border-bottom:1px solid #e6e8dc;padding:8px 0}.studio-inventory-book label{flex:1;display:flex;align-items:center;gap:8px;min-width:0;cursor:pointer}.studio-inventory-book label>span:last-child{font-size:10px;line-height:1.5;flex:1;min-width:0}.studio-inventory-book small{display:block;color:#969c83;font-size:8px}.inventory-spine{width:7px;height:28px;flex-shrink:0;border-radius:1px;box-shadow:inset 1px 0 #ffffff30}.studio-multi{display:flex;flex-direction:column;gap:7px;font-size:12px;margin-block:16px}.studio-results{display:flex;gap:10px;flex-direction:column;padding:18px;border-top:1px solid #e3e4d8;max-height:220px;overflow:auto;font-size:12px}.studio-export{border-top:1px solid #e1e3d5;font-size:11px;color:#7d846b;padding:16px 20px}.studio-export summary{display:flex;align-items:center;gap:8px;cursor:pointer;min-height:25px}.studio-export>div{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding-top:16px}.studio-export .field{font-size:10px;margin:0;flex:1;min-width:120px}.studio-export select{font-size:11px;padding:9px;min-height:38px}.studio-export .button{font-size:11px;min-height:38px}.studio-export-source{display:none}.studio-message,.studio-preview-bar{padding:15px 20px;background:#f1f3e5;color:#657651;font-size:12px;line-height:1.7;border-top:1px solid #dfe4ce}.studio-preview-bar .button{margin:10px 8px 0 0}.studio-empty{background:#fbfaf1;border-block:1px solid #dfdfd0;padding:24px;text-align:center;font:italic 16px/1.7 var(--serif);color:#8b9076}.studio-empty .button{margin-top:15px;font-style:normal}.studio-conflict{background:#fff5e4;padding:18px;color:#7f6548;font-size:12px;line-height:1.7}.studio-conflict .button{margin:10px 8px 0 0;font-size:11px}.studio-comparison{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.studio-comparison>div{min-width:0;max-height:350px;overflow:auto}.studio-preset-preview{max-height:350px;overflow:auto;border-radius:8px;margin-bottom:20px}.bookshelf-studio:fullscreen{overflow:auto;border:0;border-radius:0;background:#fbfaf5;padding:0 4vw}.bookshelf-studio:fullscreen .studio-viewport{max-height:80dvh}.batch-workspace{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:20px;margin:18px 0}.batch-source-image{width:100%;max-height:380px;object-fit:contain;background:#2e342b;border-radius:8px}.batch-slots{display:flex;flex-direction:column;gap:8px;max-height:480px;overflow:auto}.batch-slot{border:1px solid #d8dfcb;border-radius:8px;padding:8px;background:#fbfcf6}.batch-slot.active{border-color:#7e956c;box-shadow:0 0 0 1px #7e956c}.batch-slot-select{display:flex;gap:10px;align-items:center;padding:0;background:none;border:0;cursor:pointer;color:#627353;width:100%;text-align:left;font:inherit;font-size:10px}.batch-spine-preview{display:block;width:auto;height:88px;max-width:55px;object-fit:contain}.batch-slot p{font-size:10px;color:#a06146;margin-top:7px}.batch-book-options{max-height:150px;overflow:auto;display:flex;flex-direction:column;align-items:start;gap:7px;margin:12px 0 24px}.batch-book-options button{min-height:30px;font-size:11px}.batch-book-options button[aria-pressed=true]{color:#3e6a2e;font-weight:600}@media(min-width:1200px){.library-main:has(.bookshelf-studio){max-width:1480px}.library-layout:has(.bookshelf-studio){grid-template-columns:190px minmax(0,1fr);gap:32px}}@media(max-width:1050px){.is-designing .studio-workspace{grid-template-columns:minmax(0,1fr)}.studio-panel{border-left:0;border-top:1px solid #dedfd3}.studio-tab-content{max-height:48dvh}.studio-presets{grid-template-columns:repeat(3,1fr)}.studio-decor-grid{grid-template-columns:repeat(5,1fr)}.studio-viewport{max-height:62dvh}.studio-topbar{padding:18px 16px 14px}}@media(max-width:600px){.studio-topbar{flex-wrap:wrap;gap:12px}.studio-topbar h3{font-size:21px}.studio-topbar .eyebrow{font-size:7px}.studio-mode{width:100%;display:flex;justify-content:center}.studio-mode button{flex:1;justify-content:center}.studio-actions{padding:7px 9px;gap:1px}.studio-save{font-size:9px;min-width:110px}.studio-actions .icon-button{width:30px}.studio-caption{flex-direction:column;padding:12px 16px;gap:3px}.studio-tabs button{min-height:44px;font-size:11px}.studio-tab-content{padding:16px;max-height:47dvh}.studio-decor-grid{grid-template-columns:repeat(4,1fr)}.studio-presets{gap:8px}.preset-art{height:70px}.studio-presets strong{font-size:9px}.studio-comparison{grid-template-columns:1fr}.studio-conflict .button{width:100%}.batch-workspace{grid-template-columns:1fr;gap:12px}.batch-slots{flex-direction:row;max-height:180px}.batch-slot{min-width:135px;max-width:165px}.studio-export{padding:14px 16px}}@media(prefers-reduced-motion:reduce){.book-in-hand{transition:none}.studio-presets>button{transition:none}}@font-face{font-family:Lora;src:url(/fonts/lora.ttf) format("truetype");font-weight:400 700;font-display:swap}:root{font-family:DM Sans,sans-serif;color:#363c32;background:#f8f6f0;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--paper: #f8f6f0;--green: #526b50;--muted: #7b7d70;--line: #e5e6dc;--serif: "Lora", Georgia, serif}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button{cursor:pointer}button,a,input,select{-webkit-tap-highlight-color:transparent}button{color:inherit}button:disabled{cursor:wait;opacity:.6}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--green);outline-offset:4px}input,select{min-width:0}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--serif);font-weight:400}.muted{color:var(--muted);font-size:14px;line-height:1.8}.eyebrow{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:600;letter-spacing:1.8px;color:var(--green)}.brand{display:flex;align-items:center;gap:12px;font:500 21px var(--serif);white-space:nowrap}.brand-mark{display:grid;place-items:center;width:41px;height:41px;background:#e8ecdf;border-radius:12px;color:var(--green)}.brand-caption{display:block;font:400 9px DM Sans,sans-serif;color:#8b8b7c;letter-spacing:1px;margin-top:4px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:12px 20px;border-radius:8px;border:1px solid transparent;font-size:12px;font-weight:550;transition:background .18s,transform .18s}.primary{background:var(--green);color:#fff;box-shadow:0 3px 8px #526b5012}.primary:hover:not(:disabled){background:#41573f;transform:translateY(-1px)}.secondary{border-color:#d8ddcf;background:#fbfaf6;color:var(--green)}.secondary:hover:not(:disabled){background:#edf0e6}.full{width:100%}.icon-button{display:inline-grid;place-items:center;width:38px;height:38px;border:1px solid transparent;border-radius:8px;background:transparent;color:#767e6e}.icon-button:hover{background:#e9ecdf}.text-button{display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;color:var(--green);padding:8px 0;font-size:12px}.text-button:hover{text-decoration:underline}.field{display:block;font-size:12px;font-weight:550;margin-bottom:19px;line-height:1.7}.field input,.field select{display:block;width:100%;height:46px;padding:10px 13px;margin-top:7px;background:#fffefa;border:1px solid #dfe2d7;border-radius:7px;color:#363c32;font-size:13px;font-weight:400}.field input::placeholder{color:#999b8e}.optional{font-weight:400;color:var(--muted)}.feedback{padding:12px 14px;border-radius:7px;font-size:12px;line-height:1.7;margin:12px 0 18px}.error{color:#924b40;background:#f8eee9;border:1px solid #eeddcf}.success{color:#4e6a4d;background:#edf2e7;border:1px solid #dfe8d6}.segmented{display:flex;padding:4px;background:#eceee4;border-radius:8px;margin-bottom:25px;gap:4px}.segmented button{flex:1;border:0;border-radius:5px;padding:10px 8px;background:transparent;color:var(--muted);font-size:12px}.segmented button[aria-pressed=true]{background:#fffefa;color:#394d37;box-shadow:0 1px 4px #4c583010}.small-note{color:#878b7d;font-size:11px;line-height:1.7;margin-top:14px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.auth-page{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr}.auth-story{background:#eef0e5;padding:44px 12% 32px;display:flex;flex-direction:column}.auth-story .brand-mark{background:#e0e6d6}.auth-story-main{margin:auto 0;padding:65px 0 45px}.auth-story h1{font-size:clamp(32px,3.4vw,48px);line-height:1.32;letter-spacing:-.8px;margin:22px 0}.auth-story-main>p{font-size:14px;line-height:1.9;color:#7b8171}.auth-footnote{font-size:10px;color:#8c927e;letter-spacing:.3px}.auth-form-section{padding:70px 45px;display:grid;place-items:center}.auth-form-wrap{width:100%;max-width:360px}.auth-form-wrap h2{font-size:28px;line-height:1.4;letter-spacing:-.6px;margin:17px 0 10px}.auth-form-wrap>.muted{font-size:12px;margin-bottom:32px}.auth-form-wrap .button{margin-top:5px}.auth-privacy{display:flex;align-items:center;justify-content:center;gap:7px;font-size:10px;color:#96998b;margin-top:24px}.book-illustration{display:flex;align-items:end;gap:10px;position:relative;width:min(100%,350px);margin:65px auto 10px;padding:0 26px 17px;height:205px}.illustration-book{box-shadow:inset 5px 0 #ffffff15,inset 8px 0 #00000007,3px 4px 7px #56593b12;border-radius:3px 7px 4px 3px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#f8f6eb;text-align:center;font-family:var(--serif)}.book-one{width:86px;height:165px;background:#aab58b;transform:rotate(-10deg);transform-origin:bottom;font-size:17px;line-height:1.4}.book-two{width:105px;height:194px;background:#687e64;gap:19px;font-size:23px;line-height:1.25;z-index:1}.book-three{width:66px;height:150px;background:#c5a07e;margin-left:1px;font-size:16px}.book-three span{writing-mode:vertical-rl;letter-spacing:3px}.illustration-shelf{position:absolute;left:0;bottom:4px;width:100%;height:13px;background:#d6d6c2;box-shadow:0 9px 15px #676c3310;border-radius:3px}.opening{min-height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:30px}.opening p{font-size:12px;color:var(--muted)}.app-shell{max-width:1240px;margin:0 auto;padding:0 56px;min-height:100dvh;display:flex;flex-direction:column}.header{display:flex;align-items:center;justify-content:space-between;height:106px;border-bottom:1px solid var(--line)}.user-menu{display:flex;align-items:center;gap:12px}.user-email{max-width:230px;overflow:hidden;text-overflow:ellipsis;font-size:11px;color:#858979}.library-main{flex:1}.welcome{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:56px 0 50px}.welcome h1{font-size:clamp(28px,3vw,39px);line-height:1.35;letter-spacing:-1px;margin:14px 0 11px}.welcome .muted{font-size:12px}.welcome .button{flex-shrink:0;margin-top:22px}.mobile-break{display:none}.library-layout{display:grid;grid-template-columns:207px minmax(0,1fr);gap:42px;padding-bottom:60px}.shelf-heading{font-size:9px;color:#8e9282;margin:4px 0 16px 12px}.shelf-button{width:100%;display:flex;align-items:center;gap:11px;border:1px solid transparent;border-radius:8px;background:transparent;text-align:left;padding:13px 12px;font-size:12px;color:#707663;margin-bottom:5px}.shelf-button.active{background:#e9edde;color:#455e42;border-color:#e2e7d7;font-weight:550}.shelf-button:hover:not(.active){background:#eeefe6}.shelf-count{margin-left:auto;background:#fff6;border-radius:5px;min-width:23px;text-align:center;padding:3px 5px;font-size:10px}.reading-note{padding:25px 17px 22px;margin:32px 6px 0;border-top:1px solid var(--line);color:#899178}.reading-note>svg{color:#99a180}.reading-note p{font:400 17px/1.65 var(--serif);color:#737e60;margin-top:14px}.reading-note small{display:block;font-size:10px;line-height:1.8;margin-top:8px}.reading-note .text-button{margin-top:12px;font-size:10px}.collection-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}.collection-heading h2{font-size:23px;letter-spacing:-.3px}.collection-heading p{margin-top:7px;font-size:11px;color:#8b8d7e;line-height:1.6}.collection-count{font-size:10px;color:#89907c;background:#eff0e7;padding:5px 10px;border-radius:15px;white-space:nowrap}.collection-tools{display:flex;align-items:center;gap:14px;margin:26px 0 29px}.search-field{display:flex;align-items:center;gap:10px;height:40px;flex:1;min-width:0;padding:0 13px;border:1px solid #e4e6db;border-radius:7px;background:#fbfaf6;color:#959b88}.search-field input{width:100%;background:transparent;border:0;outline-offset:2px;font-size:12px;color:#4b5442}.search-field input::placeholder{color:#999d8e}.sort-field select{border:0;background:transparent;color:#818875;font-size:10px;padding:8px 20px 8px 4px;max-width:140px}.library-view-switch{display:flex;width:fit-content;margin-top:24px;padding:4px}.library-view-switch button{min-width:105px;padding:9px 17px}.bookshelf-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.bookshelf-toolbar p{color:#7b806d;font-size:12px;line-height:1.7;max-width:320px}.bookshelf-toolbar .button{font-size:11px;padding:10px 12px;flex-shrink:0}.shelf-feedback{min-height:26px;display:flex;align-items:center;gap:6px;color:#51624e;font-size:11px;margin:6px 0}.shelf-error{background:#f8eae2;color:#8a493d;padding:12px;border-radius:7px;font-size:12px;margin-bottom:16px}.shelf-error .text-button{margin-top:8px}.wooden-bookshelf{position:relative;border:12px solid #a47b50;border-top-width:16px;border-radius:6px 6px 3px 3px;background:#b18f69;box-shadow:0 15px 30px #56432a1a,0 2px 3px #4d352d2b,inset 0 0 0 1px #765536;overflow:hidden}.wooden-bookshelf:before{content:"";position:absolute;inset:0;pointer-events:none;z-index:2;box-shadow:inset 5px 0 10px #36231426,inset -5px 0 10px #36231426}.shelf-row{position:relative;padding:22px 16px 0;background:linear-gradient(180deg,#372a2038,transparent 24%,transparent 76%,#47322234),repeating-linear-gradient(90deg,#b590680a 0,#b590680a 3px,#67482e0b 4px,transparent 8px),linear-gradient(90deg,#bea07c,#c7ac88 50%,#baa07f)}.shelf-books{display:flex;align-items:flex-end;gap:4px;min-height:250px;position:relative;padding-bottom:1px}.shelf-book{flex-shrink:0;position:relative;display:flex;flex-direction:column;justify-content:flex-end}.spine-button{display:block;padding:0;background:none;border:0;border-radius:3px;position:relative;text-align:center}.spine-button:focus-visible{outline:3px solid #fdfbf3;outline-offset:3px;z-index:3}.book-spine{position:relative;display:block;flex-shrink:0;border-radius:3px 3px 1px 1px;background:var(--spine-color);color:var(--spine-ink);overflow:hidden;box-shadow:2px 0 3px #38291c4d,-1px 0 1px #ffffff40,0 -1px 1px #f9eeda66;transition:transform .18s ease,box-shadow .18s ease}.book-spine:after{content:"";position:absolute;inset:0;pointer-events:none;border:1px solid #00000016;border-radius:inherit;background:linear-gradient(90deg,#00000026,#ffffff16 12%,transparent 30%,#00000008 73%,#00000024),repeating-linear-gradient(0deg,transparent,transparent 2px,#ffffff03 3px)}.spine-button:hover .book-spine{transform:translateY(-6px);box-shadow:4px 7px 8px #38291c44}.book-spine img{width:100%;height:100%;display:block;object-fit:fill}.book-spine.has-photo{border-radius:0}.book-spine.has-photo:after{display:none}.spine-cap{position:absolute;left:6px;right:6px;top:12px;height:6px;border-top:1px solid currentColor;border-bottom:1px solid currentColor;opacity:.42}.spine-lettering{position:absolute;top:30px;bottom:32px;left:50%;transform:translate(-50%);writing-mode:vertical-rl;text-orientation:mixed;display:flex;gap:4px;justify-content:center;align-items:center;overflow:hidden;max-width:calc(100% - 8px)}.spine-lettering strong{font:500 12px/1.3 var(--serif);letter-spacing:.3px;overflow:hidden;max-height:100%;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 1px #0000000c}.spine-lettering small{font-size:7px;line-height:1.2;letter-spacing:.4px;opacity:.88;overflow:hidden;max-height:100%;text-overflow:ellipsis;white-space:nowrap}.spine-publisher{position:absolute;bottom:11px;left:0;right:0;font:500 9px/1 var(--serif);letter-spacing:1px;text-align:center;opacity:.8}.spine-pattern-1 .spine-cap{height:9px;border-top-width:2px}.spine-pattern-2 .spine-lettering strong{text-transform:uppercase;font-size:11px}.spine-pattern-3 .spine-cap{border-bottom:0;height:2px}.spine-pattern-3 .spine-publisher{border-top:1px solid #ffffff33;padding-top:5px;margin:0 6px}.shelf-plank{display:block;position:relative;height:19px;margin:0 -16px;z-index:1;border-top:2px solid #dec49e;border-bottom:2px solid #755135;background:repeating-linear-gradient(0deg,#9c704810 0,#dfb18425 2px,transparent 3px,transparent 6px),linear-gradient(90deg,#a0774e,#c69b68 42%,#b48a5b);box-shadow:0 9px 10px #4b321b35,0 -2px 4px #2c1b1326}.shelf-number{position:absolute;bottom:4px;right:9px;z-index:2;font-size:8px;letter-spacing:1px;color:#4e382c99}.shelf-empty{min-height:245px;width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;font:400 19px/1.5 var(--serif);color:#594434;text-align:center}.shelf-empty .button{font-size:12px;font-weight:500;background:#faf5e9}.spine-controls{position:relative;display:flex;flex-direction:column;align-items:center;margin-top:7px;margin-bottom:8px;gap:3px}.spine-controls button{display:flex;align-items:center;justify-content:center;border:1px solid #ffffff38;background:#fcf4e2de;color:#513e30;border-radius:4px;padding:0}.spine-grip{width:100%;height:28px;touch-action:none;cursor:grab}.spine-grip:active{cursor:grabbing}.spine-arrows{display:flex;width:100%;gap:2px}.spine-arrows button{min-width:0;flex:1;height:28px}.is-organizing .shelf-books{min-height:315px}.is-dragging .spine-button{opacity:.25}.drop-before:before,.shelf-drop-end{position:absolute;content:"";left:-3px;bottom:0;height:265px;width:3px;border-radius:2px;background:#faf3cd;box-shadow:0 0 5px #3b593b;z-index:4;pointer-events:none}.shelf-drop-end{position:relative;left:auto;align-self:flex-end;flex-shrink:0}.spine-drag-preview{position:fixed;z-index:50;pointer-events:none;transform:rotate(5deg);filter:drop-shadow(4px 10px 8px #211c1740)}.bookshelf-loading{padding:30px 0;font-size:13px;color:#78816d}.shelf-loading-wood{height:290px;margin-top:16px;border:12px solid #b59470;border-bottom-width:24px;background:#ceb99b;border-radius:4px;opacity:.6}.personalize-spine{margin-top:24px}.spine-editor{border-top:1px solid var(--line);margin-top:24px;padding-top:24px}.spine-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.spine-editor-heading h3{font:400 20px/1.4 var(--serif)}.spine-editor fieldset{border:0;padding:0;min-width:0}.spine-editor-layout{display:grid;grid-template-columns:130px minmax(0,1fr);gap:25px}.spine-editor-layout.has-photo{grid-template-columns:minmax(0,1fr)}.spine-photo-workspace{margin-bottom:24px;padding:16px;border:1px solid var(--line);border-radius:8px;background:#f1f1e8}.spine-photo-heading{margin-bottom:14px}.spine-photo-heading h4{margin:0 0 7px;font:400 19px/1.4 var(--serif);scroll-margin-top:16px}.spine-photo-heading p{font-size:12px;line-height:1.6;color:#748069}.spine-photo-layout{display:grid;grid-template-columns:minmax(0,1fr) 104px;align-items:start;gap:16px}.spine-photo-layout .spine-preview{grid-row:auto;top:12px;min-height:270px;padding:16px 12px}.spine-crop-stage{position:relative;height:340px;overflow:hidden;border-radius:5px;background:#30382f;color:#fff9ed;display:flex;align-items:center;justify-content:center;font-size:12px}.spine-crop-original,.spine-perspective-overlay{position:absolute;pointer-events:none}.spine-crop-editor{min-width:0}.spine-crop-stage.has-perspective{overflow:auto;display:block}.spine-photo-zoom{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:10px;color:#526b50;font-size:12px}.spine-photo-zoom .button{padding:4px 12px;min-width:36px;font-size:18px}.spine-crop-frame.is-perspective{border:0;box-shadow:none}.spine-detection-controls{padding:14px 0 0;font-size:12px;color:#526b50}.spine-detection-controls>p:first-child{margin:0 0 10px}.spine-detection-controls .button{padding:9px 12px;font-size:12px}.spine-detection-actions{display:flex;flex-wrap:wrap;gap:8px}.spine-detection-choices{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.spine-detection-choice{display:grid;justify-items:center;gap:6px;min-width:62px;padding:10px;border:1px solid #bfc7b4;border-radius:5px;background:#f8f7ee;color:#526b50;font-size:11px}.spine-detection-choice[aria-pressed=true]{outline:2px solid #526b50;outline-offset:1px}.spine-detection-choice canvas{width:20px;height:90px;display:block}.spine-edge-to-edge{font-size:10px;line-height:1.5;text-align:center;color:#634f3a}.spine-crop-frame{position:absolute;border:2px solid #fff9ed;box-shadow:0 0 0 1000px #151c19a6}.spine-crop-move{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:move;touch-action:none}.spine-crop-grid{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent 32.9%,#fff8e65c 33%,#fff8e65c 33.4%,transparent 33.5%,transparent 66.2%,#fff8e65c 66.3%,#fff8e65c 66.7%,transparent 66.8%),linear-gradient(0deg,transparent 32.9%,#fff8e65c 33%,#fff8e65c 33.4%,transparent 33.5%,transparent 66.2%,#fff8e65c 66.3%,#fff8e65c 66.7%,transparent 66.8%)}.spine-crop-handle{position:absolute;z-index:2;width:28px;height:28px;padding:0;border:0;background:transparent;touch-action:none;transform:translate(-50%,-50%)}.spine-crop-handle:after{content:"";position:absolute;inset:8px;border:2px solid #fff;border-radius:2px;background:#526b50;box-shadow:0 1px 4px #0008}.spine-crop-handle:focus-visible{outline:2px solid #ffe6a1;outline-offset:0}.spine-crop-move:focus-visible{outline:2px solid #ffe6a1;outline-offset:-4px}.crop-handle-nw{left:0;top:0;cursor:nwse-resize}.crop-handle-n{left:50%;top:0;cursor:ns-resize}.crop-handle-ne{left:100%;top:0;cursor:nesw-resize}.crop-handle-e{left:100%;top:50%;cursor:ew-resize}.crop-handle-se{left:100%;top:100%;cursor:nwse-resize}.crop-handle-s{left:50%;top:100%;cursor:ns-resize}.crop-handle-sw{left:0;top:100%;cursor:nesw-resize}.crop-handle-w{left:0;top:50%;cursor:ew-resize}.spine-photo-transform{display:flex;align-items:center;gap:18px;margin-top:16px}.spine-photo-transform .field{flex:1;margin:0;min-width:0}.spine-photo-transform .field span{font-size:11px;color:#7d836e}.spine-photo-transform input[type=range]{accent-color:#51624e;padding:0;height:24px}.spine-photo-transform .button{flex-shrink:0;padding:10px 12px;font-size:12px}.spine-crop-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:16px}.spine-crop-actions .button{font-size:12px;padding:10px 12px}.spine-crop-actions .text-button{font-size:11px}.spine-photo-summary{color:#526b50;padding:18px 0}.spine-photo-summary p{font-size:13px;line-height:1.7;margin:10px 0 16px}.spine-photo-summary .button{font-size:12px}.spine-camera{margin-left:8px}.spine-preview{position:sticky;top:12px;grid-row:1 / span 2;align-self:start;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;min-height:275px;padding:20px 12px;border-radius:5px;background:linear-gradient(#c1a27d,#d5bd9b);box-shadow:inset 0 -12px #a57d55}.spine-preview>span:last-child:not(.book-spine){color:#634f3a;font-size:10px}.photo-spine{display:block;border-radius:3px;box-shadow:3px 1px 5px #38291c4d}.spine-settings .field{margin-bottom:12px}.spine-settings .field>span{font-size:10px;color:#7d836e}.spine-settings input[type=color]{width:56px;height:32px;padding:3px;cursor:pointer}.spine-settings input[type=range],.spine-crop-controls input[type=range]{padding:0;height:24px;accent-color:#51624e}.spine-swatches{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 18px}.spine-swatches button{width:22px;height:22px;border:2px solid transparent;border-radius:50%}.spine-swatches button[aria-pressed=true]{outline:2px solid #51624e;outline-offset:2px}.spine-upload{position:relative;display:inline-flex;cursor:pointer;font-size:12px}.spine-upload input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.spine-upload:focus-within{outline:2px solid #51624e;outline-offset:3px}.spine-crop-controls{margin-top:16px;background:#f4f3eb;border-radius:7px;padding:16px}.spine-crop-controls summary{cursor:pointer;font-size:12px;color:#526b50}.spine-crop-controls[open] summary{margin-bottom:16px}.spine-crop-controls p{font-size:12px;color:#778068;margin-bottom:12px}.spine-editor-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}.spine-editor-actions .text-button{font-size:11px;text-align:left}.spine-save-status{min-height:20px;font-size:12px;color:#51624e;margin-top:10px}@media(max-width:600px){.bookshelf-toolbar{flex-direction:column;align-items:flex-start;gap:8px}.bookshelf-toolbar p{font-size:11px}.wooden-bookshelf{border-width:9px;border-top-width:12px}.spine-editor-layout{grid-template-columns:82px minmax(0,1fr);gap:16px}.spine-photo-workspace{padding:12px}.spine-photo-layout{grid-template-columns:minmax(0,1fr) 76px;gap:10px}.spine-photo-layout .spine-preview{padding:12px 6px}.spine-photo-heading h4{font-size:17px}.spine-photo-heading p{font-size:11px}.spine-crop-stage{height:320px}.spine-photo-transform{gap:12px}.spine-photo-transform .button{font-size:11px;padding:8px}.spine-camera{margin-left:0;margin-top:8px}.spine-preview{padding-left:8px;padding-right:8px}.spine-editor-actions{flex-wrap:wrap}.spine-upload{padding:10px;font-size:11px}}@media(prefers-reduced-motion:reduce){.book-spine{transition:none}}.book-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 23px}.book-card{display:block;text-align:left;background:transparent;padding:0;border:0;min-width:0;border-radius:7px}.book-cover-button,.book-title-button{display:block;width:100%;text-align:left;border:0;padding:0;background:transparent;color:inherit;font:inherit}.book-title-button{line-height:inherit}.book-cover-button:focus-visible,.book-title-button:focus-visible{outline:2px solid var(--green);outline-offset:4px;border-radius:3px}.rating-chip,.book-status{position:absolute;bottom:9px;display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:4px 7px;min-height:28px;width:66px;border:1px solid #ddd1ad;border-radius:5px;background:#fff8e4;color:#82611f;font-size:10px;line-height:1.4;box-shadow:0 1px 4px #363f1410}.rating-chip{right:9px}.rating-chip.unrated{background:#fffefa;border-color:#d8ddcf;color:var(--green)}.rating-chip:focus-visible{outline:2px solid var(--green);outline-offset:3px}@media(max-width:360px){.book-cover-wrap .rating-chip,.book-cover-wrap .book-status{width:58px;font-size:9px;padding:4px}.book-cover-wrap .rating-chip{right:6px}.book-cover-wrap .book-status{left:6px}}.auth-extra{margin-top:18px}.account-section{padding:22px 0;border-top:1px solid var(--border, #dce1cf)}.account-section h3{font-family:var(--serif);font-weight:400;font-size:22px;margin-bottom:14px}.account-section>p{font-size:12px;line-height:1.8;margin-bottom:16px}.account-email{margin-bottom:22px;overflow-wrap:anywhere}.account-fieldset{border:0;padding:0;margin:0;min-width:0}.account-danger h3{color:#9b5e47}.account-danger .button-row{flex-wrap:wrap}.recovery-page{min-height:100dvh;padding:36px 24px;max-width:620px;margin:auto}.recovery-panel{margin-top:64px}.recovery-panel h1{font-family:var(--serif);font-size:clamp(28px,5vw,38px);font-weight:400;margin:16px 0}.recovery-panel>p{margin-bottom:28px;overflow-wrap:anywhere}.book-status{pointer-events:none}.catalog-nav{margin-top:15px}.catalog-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:30px}.catalog-pagination span{font-size:12px;color:var(--muted)}.catalog-detail-actions{margin-top:24px}.catalog-loading{padding:40px 0;color:var(--muted);font-size:13px}.wish-action{margin-top:13px;padding:10px 12px;width:100%}.catalog-detail-actions .wish-action{width:auto}.book-cover-wrap{position:relative;padding:16px 19px 20px;background:#eeeee5;border-radius:8px;transition:background .2s}.book-card:hover .book-cover-wrap{background:#e8eadb}.cover{position:relative;aspect-ratio:2 / 3;overflow:hidden;border-radius:2px 4px 4px 2px;box-shadow:3px 5px 8px #3a412021;transition:transform .2s}.cover:after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 3px 0 #ffffff12,inset 6px 0 #00000005}.book-card:hover .cover{transform:translateY(-4px) rotate(-1deg)}.cover img{width:100%;height:100%;object-fit:cover;display:block}.cover-fallback{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:12%;color:#f8f4e9}.cover-fallback>svg{opacity:.65;flex-shrink:0}.cover-fallback>span:not(.cover-line){font:400 clamp(12px,1.2vw,18px)/1.45 var(--serif);margin:15px 0 12px;overflow:hidden;max-height:52%}.cover-fallback small{font-size:7px;line-height:1.5;opacity:.8;overflow:hidden;max-height:25px}.cover-line{height:1px;width:23px;background:currentColor;opacity:.4;margin-top:17px;flex-shrink:0}.cover-0{background:#71806a}.cover-1{background:#bd9777}.cover-2{background:#7e9090}.cover-3{background:#9c867c}.cover-4{background:#a2a274}.book-status{left:9px;border-color:transparent}.status-pending{background:#faf8eb;color:#8b7c55}.status-reading{background:#edf2e4;color:#5c774d}.status-read{background:#eeede9;color:#7d8173}.book-card h3{font-family:DM Sans,sans-serif;font-size:13px;font-weight:550;line-height:1.6;margin-top:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.book-card>p{font-size:11px;line-height:1.7;margin-top:4px;color:#767b6a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.empty-state{text-align:center;min-height:375px;padding:58px 25px;border:1px dashed #dce1cf;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#98a086;background:#f4f5ec99}.empty-icon{position:relative;width:70px;height:68px;border-radius:50%;background:#e9eedf;display:grid;place-items:center;margin-bottom:23px;color:#80936e}.empty-icon>svg:last-child{position:absolute;right:4px;top:10px;background:#e9eedf;transform:rotate(25deg)}.empty-state .eyebrow{font-size:8px;letter-spacing:1.4px}.empty-state h3{font-size:23px;margin:15px 0 11px;color:#636f55;line-height:1.45}.empty-state p{max-width:340px;font-size:11px;line-height:1.9;color:#8a917d;margin-bottom:25px}.empty-state .button{font-size:11px;min-height:40px}.footer{display:flex;align-items:center;gap:8px;border-top:1px solid var(--line);min-height:69px;font-size:9px;color:#969d89}.footer-brand{margin-left:auto;font:italic 13px var(--serif)}.skeleton-card>div{aspect-ratio:.68;border-radius:8px;background:#e8eadd;animation:breathe 1.5s ease-in-out infinite alternate}.skeleton-card>span,.skeleton-card>small{display:block;height:9px;width:80%;background:#e8eadd;border-radius:3px;margin-top:14px}.skeleton-card>small{width:60%;margin-top:10px}@keyframes breathe{to{opacity:.4}}.dialog{border:1px solid #e1e5d8;border-radius:14px;padding:0;width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 48px);overflow:auto;color:inherit;background:var(--paper);box-shadow:0 22px 80px #22291e2e}.dialog-wide{width:min(680px,calc(100% - 32px))}.dialog::backdrop{background:#2d39284f;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.dialog-body{padding:26px 30px 30px}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:8px}.dialog-heading h2{font-size:24px}.dialog-heading .icon-button{flex-shrink:0}.dialog-intro{font-size:12px;margin:0 0 24px}.scan-button{display:flex;align-items:center;gap:14px;padding:17px 15px;width:100%;background:#eff2e6;border:1px dashed #c9d4bc;border-radius:8px;text-align:left;margin-bottom:24px;color:var(--green)}.scan-button:hover{background:#e8eddd}.scan-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:8px;background:#e1e9d4;flex-shrink:0}.scan-button strong{display:block;font-size:12px;font-weight:550}.scan-button small{display:block;font-size:10px;color:#8b987c;margin-top:5px}.scan-button>svg{margin-left:auto;flex-shrink:0}.camera-view{aspect-ratio:4 / 3;background:#343d32;position:relative;border-radius:9px;overflow:hidden;margin-top:24px}.camera-view video{width:100%;height:100%;object-fit:cover}.scan-target{position:absolute;inset:30% 10%;border:2px solid #e0ead3;border-radius:10px;box-shadow:0 0 0 100px #00000025}.camera-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:10px;color:#eef0e4;font-size:12px;background:#343d32}.scanner-hint{font-size:11px;line-height:1.8;color:var(--muted);margin:17px 0 21px}.book-details{display:grid;grid-template-columns:165px minmax(0,1fr);gap:28px;margin-top:26px;align-items:start}.cover-large .cover-fallback>span:not(.cover-line){font-size:20px}.cover-large .cover-fallback small{font-size:9px}.book-details h3{font-size:25px;line-height:1.4;margin-bottom:8px}.book-details-content>.muted{font-size:12px;margin-bottom:23px}.metadata{margin:22px 0 0;font-size:11px}.metadata>div{display:flex;align-items:baseline;gap:16px;padding:9px 0;border-bottom:1px solid var(--line)}.metadata dt{color:#929785;min-width:70px}.metadata dd{margin:0;line-height:1.5;overflow-wrap:anywhere}.details-footer{border-top:1px solid var(--line);margin-top:26px;padding-top:17px}.personal-details{border-top:1px solid var(--line);margin-top:24px;padding-top:24px}.personal-details h4{font:500 19px/1.5 var(--serif);margin:0 0 6px}.personal-details>.muted{font-size:12px;line-height:1.7;margin-bottom:20px}.loan-toggle{display:flex;align-items:center;gap:10px;min-height:44px;margin-bottom:12px;font-size:13px;color:var(--green)}.loan-toggle input{width:18px;height:18px;accent-color:var(--green)}.personal-rating{border:0;margin:18px 0;padding:0;min-width:0}.personal-rating legend{font-size:12px;font-weight:550;margin-bottom:8px}.rating-options{display:flex;gap:4px}.rating-option{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid transparent;border-radius:8px;color:#8b8d7e;cursor:pointer;position:relative}.rating-option.filled{color:#9a752d}.rating-input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}.rating-option>svg,.rating-option>span{pointer-events:none}.rating-option:has(input:checked){background:#f3edda;border-color:#dacc9f}.rating-option:has(input:focus-visible){outline:2px solid var(--green);outline-offset:2px}.personal-rating:disabled .rating-option{cursor:default;opacity:.6}.rating-caption{display:flex;align-items:center;gap:20px;min-height:35px;font-size:12px;color:var(--muted)}.field textarea{display:block;width:100%;min-height:120px;margin-top:7px;padding:12px 13px;border:1px solid #dfe2d7;border-radius:7px;background:#fffefa;color:#363c32;font:400 13px/1.7 DM Sans,sans-serif;resize:vertical}.loan-badge{display:flex;align-items:center;gap:5px;margin-top:8px;font-size:11px;line-height:1.6;overflow-wrap:anywhere}.loan-badge{color:var(--green)}.loan-badge svg{flex-shrink:0}.remove{color:#9b8071;font-size:11px}.remove-confirm p{font-size:12px;margin-bottom:16px}.button-row{display:flex;gap:10px;flex-wrap:wrap}.danger{color:#945445;background:#f3e6de}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%);z-index:10;padding:13px 22px;border-radius:9px;background:#465e44;color:#f7f8ef;box-shadow:0 6px 22px #293d2726;font-size:12px;line-height:1.6;text-align:center;max-width:calc(100% - 32px);width:max-content}.shelves,.collection{min-width:0}@media(min-width:1400px){.auth-story{padding-left:18%;padding-right:16%}}@media(max-width:1050px){.app-shell{padding:0 32px}.library-layout{grid-template-columns:180px minmax(0,1fr);gap:28px}.book-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:27px 19px}.book-cover-wrap{padding:16px 20px 20px}}@media(max-width:760px){.auth-page{grid-template-columns:1fr}.auth-story{padding:25px 28px 30px}.auth-story-main{padding:38px 0 8px}.auth-story h1{font-size:32px}.auth-story-main>p{font-size:12px}.auth-footnote,.book-illustration{display:none}.auth-form-section{padding:40px 28px 50px}.auth-form-wrap{max-width:430px}.auth-form-wrap h2{font-size:26px}.app-shell{padding:0 24px}.header{height:88px}.brand{font-size:19px}.brand-caption{font-size:8px}.brand-mark{width:37px;height:37px}.user-email{display:none}.welcome{padding:36px 0 30px;align-items:start;flex-direction:column;gap:19px}.welcome h1{font-size:33px}.welcome .button{margin:0}.welcome .muted{font-size:11px}.library-layout{grid-template-columns:1fr;gap:29px}.shelf-heading,.reading-note{display:none}.shelves nav{display:flex;gap:5px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}.shelf-button{white-space:nowrap;min-width:max-content;width:auto;margin:0;gap:7px;padding:10px;font-size:10px}.shelf-button>svg{width:15px}.shelf-count{min-width:18px;font-size:9px}.collection-tools{margin:22px 0 24px;gap:8px}.book-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:27px 18px}.cover-fallback>span:not(.cover-line){font-size:16px}.empty-state{min-height:330px;padding:36px 22px}.footer{min-height:60px}}@media(max-width:480px){.app-shell{padding:0 20px}.welcome h1{font-size:31px}.mobile-break{display:block}.eyebrow{font-size:9px}.collection-heading h2{font-size:22px}.collection-heading p{font-size:10px}.collection-count{font-size:9px}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 19px}.book-cover-wrap{padding:17px 22px 20px}.book-card h3{font-size:11px}.book-card>p{font-size:9px}.sort-field select{max-width:109px;font-size:9px;padding-right:10px}.search-field{padding:0 10px;gap:7px}.search-field input{font-size:10px}.empty-state h3{font-size:21px}.empty-state p{font-size:10px}.dialog-body{padding:20px}.dialog-heading h2{font-size:21px}.book-details{grid-template-columns:100px minmax(0,1fr);gap:17px}.book-details h3{font-size:21px}.book-details .cover-fallback>span:not(.cover-line){font-size:13px}.metadata>div{gap:8px;flex-wrap:wrap}.metadata dt{min-width:60px}.metadata{font-size:10px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(max-width:760px){.library-layout{grid-template-columns:minmax(0,1fr)}.field input,.field select{font-size:16px}.shelf-button{font-size:11px}}@media(max-width:480px){.book-card h3{font-size:12px}.book-card>p{font-size:10px}.search-field input{font-size:16px}.search-field input::placeholder{font-size:11px}}.metadata-editor{margin-top:24px}.book-editor-navigation{display:flex;align-items:stretch;flex-wrap:wrap;gap:12px;margin:20px 0 24px}.book-editor-navigation .button{margin:0}.book-photo-inputs{display:flex;flex-wrap:wrap;align-items:stretch;gap:12px}.book-photo-inputs .spine-upload{margin:0}.photo-cover{display:block;width:144px;height:auto;border-radius:4px 9px 9px 4px;box-shadow:2px 4px 8px #2d251933}.cover-editor .spine-photo-layout{grid-template-columns:minmax(0,1fr) 176px}.cover-editor .spine-preview{background:#eee8d8;box-shadow:none}.cover-editor .spine-preview .cover{width:144px}@media(min-width:541px){.cover-editor .spine-editor-layout:not(.has-photo){grid-template-columns:160px minmax(0,1fr)}}@media(max-width:540px){.cover-editor .spine-photo-layout,.cover-editor .spine-editor-layout:not(.has-photo){grid-template-columns:minmax(0,1fr)}.cover-editor .spine-preview{position:static;flex-direction:row;min-height:0}.cover-editor .spine-preview .cover,.cover-editor .photo-cover{width:96px}}.metadata-editor fieldset{border:0;padding:0;margin:0;min-width:0}.metadata-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.author-editor-row{display:flex;align-items:center;gap:12px}.author-editor-row input{min-width:0;flex:1}@media(max-width:540px){.metadata-editor-grid{grid-template-columns:1fr}}
