@font-face{font-family:Averia Libre;font-display:swap;font-style:normal;font-weight:300;src:url(/assets/AveriaLibre-Light-DTExOI2N.ttf) format("truetype")}@font-face{font-family:Averia Libre;font-display:swap;font-style:normal;font-weight:400;src:url(/assets/AveriaLibre-Regular-Bh0b5Miu.ttf) format("truetype")}@font-face{font-family:Averia Libre;font-display:swap;font-style:normal;font-weight:700;src:url(/assets/AveriaLibre-Bold-Cr3iAiwS.ttf) format("truetype")}:root{--accent: #461e60;--accent-dark: #2d123f;--accent-soft: #f0e7f5;--accent-muted: #e3d2eb;--ink: #201728;--ink-soft: #4e4059;color:#18211f;background:#f7f5ef;font-family:Averia Libre,Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{align-items:center;border:0;border-radius:8px;cursor:pointer;display:inline-flex;gap:.45rem;justify-content:center;min-height:40px;padding:.58rem .85rem}button:disabled{cursor:not-allowed;opacity:.6}input,select,textarea{background:#fffefb;border:1px solid #d8d2c2;border-radius:8px;color:#18211f;min-height:42px;outline:none;padding:.65rem .75rem;width:100%}textarea{min-height:82px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #461e6029}.app-shell{min-height:100vh}.auth-shell{align-items:center;background:#f7f5ef;display:grid;padding:1rem}.auth-panel{background:#fffdf7;border:1px solid #e2d9c9;border-radius:8px;display:grid;gap:1rem;margin:0 auto;max-width:420px;padding:1.25rem;width:min(100%,420px)}.auth-panel img{width:132px}.auth-panel h1,.auth-panel p{margin:0}.topbar{align-items:center;background:var(--accent);color:#fffdf7;display:flex;gap:1rem;justify-content:space-between;padding:1.25rem clamp(1rem,3vw,2rem);position:sticky;top:0;z-index:30}.topbar h1,.topbar p{margin:0}.topbar h1{font-size:clamp(1.55rem,2.4vw,2.3rem);font-weight:700;letter-spacing:0}.brand-mark{align-items:center;background:transparent;color:inherit;display:flex;gap:.85rem;justify-content:flex-start;min-width:0;padding:0;text-align:left}.brand-mark img{display:block;max-height:58px;object-fit:contain;width:clamp(82px,12vw,132px)}.brand-mark:hover img,.brand-mark:focus-visible img{filter:drop-shadow(0 0 10px rgba(255,253,247,.3))}.eyebrow{color:#ead8f2;font-size:.82rem;font-weight:700;text-transform:uppercase}.eyebrow.dark{color:#48655d}.topbar-actions{align-items:center;display:flex;gap:.6rem}.session-chip{border:1px solid rgba(255,255,255,.28);border-radius:8px;color:#fffdf7;font-size:.86rem;font-weight:700;max-width:220px;overflow:hidden;padding:.48rem .65rem;text-overflow:ellipsis;white-space:nowrap}.library-switcher{display:block;max-width:240px}.library-switcher select{background:#ffffff1f;border-color:#ffffff47;color:#fffdf7;font-size:.86rem;font-weight:700;min-height:40px;padding:.45rem .6rem}.library-switcher option{color:#201728}.icon-button{background:#ffffff1f;color:#fffdf7;width:42px}.tools-button{background:#fffdf7;color:var(--accent);font-weight:800;white-space:nowrap}.install-button{background:#0f766e;color:#fffdf7;font-weight:800;white-space:nowrap}.floating-add-button{background:#0f766e;border:2px solid #fffdf7;border-radius:999px;bottom:max(1.1rem,env(safe-area-inset-bottom));box-shadow:0 14px 34px #0f766e59;color:#fffdf7;height:64px;padding:0;position:fixed;right:max(1.1rem,env(safe-area-inset-right));width:64px;z-index:28}.floating-add-button:hover,.floating-add-button:focus-visible{background:#0b5f59;box-shadow:0 16px 38px #0f766e70}.global-menu-actions{display:grid;gap:.7rem;padding:1rem}.members-panel{border-top:1px solid #e2d9c9;display:grid;gap:.75rem;margin-top:.35rem;padding-top:.9rem}.members-panel h3,.members-panel p{margin:0}.member-list{display:grid;gap:.55rem}.member-row{align-items:center;background:#fffdf7;border:1px solid #e2d9c9;border-radius:8px;display:grid;gap:.5rem;grid-template-columns:minmax(0,1fr) 112px 38px;padding:.55rem}.member-row strong,.member-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-row small{color:#6e675b}.member-row button{min-height:36px;padding:0}.member-row select{min-height:36px;padding:.35rem}.side-panel.drawer-mode-menu>.drawer-section,.side-panel.drawer-mode-book>.classification-panel,.side-panel.drawer-mode-book>.label-panel,.side-panel.drawer-mode-book>.locations-panel,.side-panel.drawer-mode-classification>.scanner-panel,.side-panel.drawer-mode-classification>.book-entry-panel,.side-panel.drawer-mode-classification>.label-panel,.side-panel.drawer-mode-classification>.locations-panel,.side-panel.drawer-mode-labels>.scanner-panel,.side-panel.drawer-mode-labels>.book-entry-panel,.side-panel.drawer-mode-labels>.classification-panel,.side-panel.drawer-mode-labels>.locations-panel{display:none}.layout{display:block;padding:1.1rem}.flow-layout,.management-layout{padding:1.1rem}.flow-panel{margin:0 auto;max-width:1040px}.management-layout{margin:0 auto;max-width:1180px}.flow-panel{display:grid;gap:.9rem}.form-intro{background:#fffdf7;border:1px solid #e2d9c9;border-radius:8px;padding:1rem}.form-intro h2,.form-intro p{margin:0}.form-intro p{color:#5d584f;margin-top:.25rem}.management-intro{align-items:center;background:#fffdf7;border:1px solid #e2d9c9;border-radius:8px;display:flex;gap:1rem;justify-content:space-between;margin-bottom:.9rem;padding:1rem}.management-intro h2,.management-intro p{margin:0}.management-intro h2{color:var(--ink);font-size:1.2rem}.management-intro>p{color:#5d584f;max-width:520px}.flow-steps{background:#e6dfd0;border-radius:8px;display:grid;gap:3px;grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:1rem;padding:3px}.flow-steps button{background:transparent;color:var(--ink-soft);min-height:38px;padding:.45rem}.flow-steps .active{background:#fffefb;font-weight:800}.flow-card,.management-section{background:#fffdf7;border:1px solid #e2d9c9;border-radius:8px;display:grid;gap:.9rem;padding:1rem}.flow-card h2{margin:0}.method-grid{display:grid;gap:.7rem;grid-template-columns:repeat(4,minmax(0,1fr))}.method-grid button{background:#edf1ea;color:var(--ink-soft);min-height:74px}.method-grid .active{background:var(--accent);color:#fffdf7}.flow-tool{margin-top:.8rem}.management-grid{display:grid;align-items:start;gap:1rem;grid-template-columns:repeat(2,minmax(0,1fr))}.management-section summary{align-items:center;cursor:pointer;display:flex;font-weight:800;gap:.5rem;list-style:none;margin:-1rem -1rem 0;padding:1rem}.management-section summary svg{color:var(--accent);flex-shrink:0}.management-section summary::-webkit-details-marker{display:none}.management-section summary:after{background:var(--accent-soft);border-radius:999px;color:var(--accent);content:"+";display:inline-grid;font-size:1rem;height:26px;margin-left:auto;place-items:center;width:26px}.management-section[open] summary{border-bottom:1px solid #e7decd;margin-bottom:1rem}.management-section[open] summary:after{content:"-"}.catalog-panel{min-width:0}.toolbar{align-items:center;display:grid;gap:.7rem;grid-template-columns:minmax(260px,1fr) 170px 180px 190px 170px auto;margin-bottom:.8rem}.search-box{align-items:center;background:#fffefb;border:1px solid #d8d2c2;border-radius:8px;display:flex;gap:.5rem;padding-left:.75rem}.search-box input{border:0;box-shadow:none}.segmented{background:#e6dfd0;border-radius:8px;display:grid;grid-template-columns:repeat(2,42px);padding:3px}.segmented button{background:transparent;min-height:36px;padding:0}.segmented .active{background:#fffefb}.notice{border-radius:8px;margin:.7rem 0;padding:.75rem .9rem}.notice.success{background:#e4f4ec;color:#14533e}.notice.error{background:#fae6e1;color:#853120}.notice.warning{background:#fff8e4;color:#6e5a28}.inline-notice{border-radius:8px;display:grid;gap:.55rem;padding:.75rem .85rem}.inline-notice p{margin:0}.inline-notice.success{background:#e4f4ec;color:#14533e}.inline-notice.error{background:#fae6e1;color:#853120}.inline-notice.warning{background:#fff8e4;color:#6e5a28}.inline-notice button{justify-self:start}.duplicate-alert{background:#fff8e4;border:1px solid #e1bd63;border-radius:8px;display:grid;gap:.8rem;margin:.9rem 0;padding:1rem}.duplicate-alert h2,.duplicate-alert p{margin:0}.duplicate-alert h2{font-size:1rem}.duplicate-alert p,.duplicate-card span{color:#6e5a28}.duplicate-list{display:grid;gap:.7rem}.duplicate-card{background:#fffefb;border:1px solid #ead28d;border-radius:8px;display:grid;gap:.75rem;grid-template-columns:64px minmax(0,1fr);padding:.65rem}.cover.mini{border-radius:6px;min-height:88px;overflow:hidden}.duplicate-actions{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.6rem}.duplicate-actions button{min-height:34px;padding:.4rem .65rem}.catalog-heading{align-items:baseline;display:flex;gap:.7rem;justify-content:space-between;margin:1rem 0}.catalog-heading h2,.panel-section h2{margin:0}.catalog-heading h2{font-size:1.12rem}.catalog-heading span{color:#6e675b}.book-grid{display:grid;gap:.9rem;grid-template-columns:repeat(3,minmax(0,1fr))}.book-list{display:grid;gap:.75rem}.book-list .book-card{grid-template-columns:86px minmax(0,1fr)}.book-card{background:#fffefb;border:1px solid #dfd7c7;border-radius:8px;display:grid;grid-template-columns:92px minmax(0,1fr);min-height:175px;overflow:hidden}.cover{align-items:center;background:#dfe8df;color:#3e5d54;display:flex;justify-content:center;min-height:150px;position:relative}.cover img{height:100%;object-fit:cover;width:100%}.select-book{background:#ffffffe6;border-radius:6px;left:.4rem;padding:.25rem;position:absolute;top:.4rem;z-index:1}.select-book input{min-height:0;width:auto}.book-content{display:grid;gap:.55rem;min-width:0;padding:.8rem}.book-content h3{font-size:1rem;line-height:1.25;margin:0 0 .25rem;overflow-wrap:anywhere}.book-content p{color:#5d584f;margin:0;overflow-wrap:anywhere}.meta-line,.chips,.card-actions{display:flex;flex-wrap:wrap;gap:.4rem}.meta-line span{color:#6e675b;font-size:.82rem}.chips span{background:#eef3e9;border:1px solid #dbe5d5;border-radius:999px;color:#31483e;font-size:.78rem;padding:.18rem .55rem}.chips .label-chip{background:#fff8e4;border-color:#d9ad4f;color:#6d4d11;font-weight:800}.location{align-items:center;display:flex;gap:.35rem;font-size:.88rem}.loan{color:#8f5b19!important;font-weight:650}.tag-line{color:#48655d!important;font-size:.84rem}.card-actions{margin-top:auto}.card-actions button{background:#edf1ea;color:var(--ink-soft);min-height:34px;padding:.42rem .6rem}.card-actions .danger{background:#fae6e1;color:#853120;width:38px}.danger-soft{background:#fae6e1;color:#853120}.empty-state{align-items:center;border:1px dashed #cabfae;border-radius:8px;color:#6e675b;display:grid;gap:.6rem;justify-items:center;padding:3rem 1rem}.side-panel{background:#f7f5ef;border-left:1px solid #d8d2c2;bottom:0;box-shadow:-18px 0 50px #16302b33;display:flex;flex-direction:column;gap:1rem;max-width:min(92vw,430px);overflow-y:auto;padding:1rem;position:fixed;right:0;top:0;transform:translate(105%);transition:transform .18s ease;width:430px;z-index:50}.side-panel.open{transform:translate(0)}.drawer-overlay{background:#111c1973;border-radius:0;bottom:0;left:0;min-height:0;padding:0;position:fixed;right:0;top:0;z-index:40}.drawer-header{align-items:center;display:flex;justify-content:space-between;gap:1rem;padding:.2rem 0 .4rem}.drawer-header h2,.drawer-header p{margin:0}.drawer-header h2{font-size:1.15rem}.panel-section{background:#fffefb;border:1px solid #dfd7c7;border-radius:8px;padding:1rem}.panel-section.accent{border-color:#d0a550}.scanner-panel{background:#f9fbf7}.classification-panel{background:#fbfaf4}.panel-section h2{align-items:center;display:flex;font-size:1rem;gap:.45rem;margin-bottom:.8rem}.drawer-section{padding:0}.drawer-section summary{align-items:center;cursor:pointer;display:flex;font-weight:800;gap:.5rem;justify-content:space-between;list-style:none;padding:.9rem 1rem}.drawer-section summary::-webkit-details-marker{display:none}.drawer-section summary:after{color:#607068;content:"+";font-size:1.1rem;font-weight:800}.drawer-section[open] summary{border-bottom:1px solid #e7decd}.drawer-section[open] summary:after{content:"-"}.drawer-section>.stack-form,.drawer-section>form,.drawer-section>.shelf-list,.drawer-section>.section-list{padding:1rem}.drawer-section>form+form,.drawer-section>form+.shelf-list{padding-top:0}.stack-form{display:grid;gap:.65rem}.stack-form.compact{border-top:1px solid #eee6d8;margin-top:.8rem;padding-top:.8rem}.management-section .stack-form.compact{background:#faf7f0;border:1px solid #ebe1d1;border-radius:8px;margin-top:0;padding:.85rem}.scanner-frame{align-items:center;aspect-ratio:4 / 3;background:#172521;border-radius:8px;display:grid;justify-items:center;overflow:hidden;position:relative;width:100%}.scanner-frame video{height:100%;object-fit:cover;width:100%}.scanner-frame:after{border:2px solid rgba(246,213,139,.9);border-radius:8px;content:"";height:42%;left:10%;pointer-events:none;position:absolute;top:29%;width:80%}.scanner-placeholder{align-items:center;color:#f7f5ef;display:grid;gap:.4rem;justify-items:center;position:absolute}.helper-text{color:#5d584f;font-size:.88rem;margin:0}.isbn-lookup-row{display:grid;gap:.6rem;grid-template-columns:minmax(0,1fr) auto}.book-search-panel{border-top:1px solid #e2d9c9;display:grid;gap:.6rem;padding-top:.7rem}.external-results{display:grid;gap:.45rem}.external-results button{align-items:center;background:#fffefb;border:1px solid #e2d9c9;color:var(--ink-soft);display:grid;gap:.6rem;grid-template-columns:42px minmax(0,1fr);justify-items:start;min-height:62px;padding:.45rem;text-align:left}.external-results img{border-radius:4px;height:52px;object-fit:cover;width:36px}.external-results span{display:grid;gap:.15rem;min-width:0}.external-results strong,.external-results small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.external-results small{color:#6e675b}.tag-input{align-items:center;background:#fffefb;border:1px solid #d8d2c2;border-radius:8px;display:flex;gap:.45rem;padding-left:.7rem}.tag-input input{border:0;box-shadow:none}.two-cols{display:grid;gap:.6rem;grid-template-columns:repeat(2,minmax(0,1fr))}.checkbox-row{align-items:center;border:1px solid #d8d2c2;border-radius:8px;display:flex;gap:.55rem;min-height:42px;padding:.55rem .7rem}.checkbox-row input{min-height:0;width:auto}.form-field{display:grid;gap:.45rem}.form-field>span{color:#5d584f;font-size:.86rem;font-weight:800}.genre-checkbox-grid{display:grid;gap:.45rem;grid-template-columns:repeat(2,minmax(0,1fr));max-height:180px;overflow:auto}.genre-check{align-items:center;background:#fffefb;border:1px solid #e2d9c9;border-radius:8px;color:var(--ink-soft);display:flex;gap:.4rem;min-height:36px;padding:.35rem .45rem}.genre-check input{min-height:0;width:auto}.primary{background:var(--accent);color:#fffdf7;font-weight:700}.ghost{background:var(--accent-soft);color:var(--accent)}.shelf-list{display:grid;gap:.55rem;margin-top:.85rem}.genre-list{display:grid;gap:.5rem;padding:0 1rem 1rem}.management-section .genre-list,.management-section .shelf-list{margin-top:.85rem;max-height:430px;overflow:auto;padding:0}.genre-row{background:#fffefb;border:1px solid #e2d9c9;border-radius:8px;display:flex;gap:.45rem;justify-content:space-between;padding:.65rem}.genre-title,.genre-actions,.subgenre-pill{align-items:center;display:flex;gap:.4rem}.genre-title{min-width:0}.genre-title small{color:#6e675b;margin-left:auto}.genre-color{border-radius:999px;display:inline-block;height:14px;width:14px}.genre-actions button,.subgenre-pill button{min-height:26px;padding:.25rem}.management-section .genre-actions{flex-shrink:0}.subgenre-list{display:flex;flex-wrap:wrap;gap:.35rem}.subgenre-pill{background:var(--accent-soft);border-radius:999px;color:var(--accent);font-size:.78rem;padding:.15rem .35rem .15rem .55rem}.management-section .subgenre-pill{border-radius:8px;justify-content:space-between;min-height:36px;padding:.35rem .45rem .35rem .65rem}.ai-genre-suggestion{border:1px solid #d8d2c2;border-radius:8px;display:grid;gap:.45rem;padding:.75rem}.ai-genre-suggestion.alta{background:#eef8f3;border-color:#a9d7c1}.ai-genre-suggestion.media{background:#fff8df;border-color:#ead080}.ai-genre-suggestion.baja{background:#fff4ef;border-color:#efb89f}.ai-genre-suggestion div{align-items:center;display:flex;flex-wrap:wrap;gap:.45rem}.ai-genre-suggestion p,.ai-genre-suggestion small{color:#5d564b;margin:0}.classification-summary{display:flex;flex-wrap:wrap;gap:.4rem}.classification-summary span{background:#eef3e9;border:1px solid #dbe5d5;border-radius:999px;color:#31483e;font-size:.78rem;padding:.18rem .55rem}.inline-label-tools{background:#f7f5ef;border:1px solid #e2d9c9;border-radius:8px;display:grid;gap:.6rem;padding:.75rem}.suggestion-badge{background:var(--accent);border-radius:999px;color:#fffdf7;font-size:.72rem;font-weight:700;padding:.18rem .5rem;text-transform:uppercase}.shelf-row{background:#fffefb;border:1px solid #e2d9c9;border-radius:8px;display:grid;gap:.15rem;padding:.7rem}.shelf-row-header{align-items:center;display:flex;justify-content:space-between;gap:.5rem}.shelf-row span{color:#6e675b;font-size:.86rem}.icon-menu{background:var(--accent-soft);color:var(--accent);min-height:34px;padding:0;width:34px}.shelf-actions,.section-row,.section-row div{align-items:center;display:flex;flex-wrap:wrap;gap:.4rem}.shelf-actions button,.section-row button{min-height:32px;padding:.35rem .55rem}.section-list{border-top:1px solid #e1d8c8;display:grid;gap:.35rem;margin-top:.5rem;padding-top:.5rem}.section-row{background:#fffefb;border:1px solid #e2d9c9;border-radius:8px;justify-content:space-between;padding:.6rem}.label-preview{align-items:center;aspect-ratio:3 / 4;background:#fff;border:1px solid #20251f;border-radius:3px;display:flex;font-family:Arial,sans-serif;font-weight:800;justify-content:center;line-height:1.25;min-height:120px;padding:.45rem;text-align:center;white-space:pre-wrap}.map-layout,.assistant-layout{display:grid;gap:1rem;padding:1.1rem}.map-layout{align-items:start;grid-template-columns:minmax(0,1fr) minmax(320px,390px)}.floorplan-panel,.assistant-summary{background:#fffdf7;border:1px solid #e2d9c9;border-radius:8px;padding:1rem}.floorplan-toolbar,.assistant-summary{align-items:center;display:flex;gap:1rem;justify-content:space-between}.floorplan-toolbar h2,.floorplan-toolbar p,.assistant-summary h2,.assistant-summary p{margin:0}.floorplan-svg{background:#f5efe2;border:1px solid #d6cbb8;border-radius:8px;display:block;margin-top:.85rem;touch-action:none;width:100%}.room-outline{fill:#fffaf0;stroke:#b7ab97;stroke-width:3}.room-line{stroke:#d7cbb9;stroke-dasharray:9 8;stroke-width:2}.room-label{fill:#756a5b;font-size:18px;font-weight:700}.shelf-block{cursor:grab}.shelf-block rect:first-child{fill:#3f6d62;filter:drop-shadow(0 8px 10px rgba(32,23,40,.16));stroke:#244d44;stroke-width:2}.shelf-block text{fill:#fffdf7;font-size:16px;font-weight:800;pointer-events:none}.shelf-block .shelf-small{fill:#dceddf;font-size:12px;font-weight:700}.shelf-block .occupancy-fill{fill:#f6d58b}.shelf-block.selected rect:first-child{fill:var(--accent);stroke:#2d123f}.shelf-block.highlighted rect:first-child{animation:shelfPulse .9s ease-in-out infinite;fill:#b45309;stroke:#7c2d12}@keyframes shelfPulse{0%,to{filter:drop-shadow(0 0 0 rgba(180,83,9,0))}50%{filter:drop-shadow(0 0 18px rgba(180,83,9,.72))}}.map-side,.shelf-book-panel,.section-books,.assistant-layout,.suggestion-list,.move-list{display:grid;gap:.8rem}.map-side{position:sticky;top:102px}.map-side-actions,.suggestion-actions{display:flex;flex-wrap:wrap;gap:.5rem}.section-books{border-top:1px solid #e6ddcd;padding-top:.75rem}.section-books button{background:#f7f5ef;border:1px solid #e2d9c9;color:var(--ink);display:grid;gap:.15rem;justify-items:start;min-height:48px;text-align:left}.section-books small{color:#6e675b}.mobile-shelf-map{display:none}.capacity-bar{background:#e6dfd0;border-radius:999px;display:block;height:8px;overflow:hidden;width:100%}.capacity-bar i{background:#3f6d62;display:block;height:100%}.bookshelf-layout{display:grid;gap:1rem;padding:1.1rem}.bookshelf-view-panel,.bookshelf-admin{background:#fffdf7;border:1px solid #e2d9c9;border-radius:8px;padding:1rem}.bookshelf-toolbar,.bookshelf-card-header,.bookshelf-admin-header{align-items:flex-start;display:flex;gap:1rem;justify-content:space-between}.bookshelf-toolbar h2,.bookshelf-toolbar p,.bookshelf-card-header h2,.bookshelf-card-header p,.bookshelf-admin-header h2{margin:0}.bookshelf-toolbar h2{color:var(--ink);font-size:1.35rem}.bookshelf-toolbar-actions{display:flex;flex-wrap:wrap;gap:.5rem}.bookshelf-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));margin-top:1rem}.bookshelf-card{background:#fffefb;border:1px solid #dfd7c7;border-radius:8px;cursor:pointer;display:grid;gap:.8rem;min-width:0;padding:.85rem;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}.bookshelf-card:hover{border-color:#b8a88f;transform:translateY(-2px)}.bookshelf-card.detail{cursor:default;padding:1rem}.bookshelf-card.detail:hover{transform:none}.bookshelf-card.highlighted{border-color:#237a57;box-shadow:0 0 0 3px #237a5724}.bookshelf-card-header h2{color:var(--ink);font-size:1.05rem;line-height:1.15}.bookshelf-card-header p{color:#6e675b;font-size:.86rem;margin-top:.15rem}.shelf-genre-chips{display:flex;flex-wrap:wrap;gap:.3rem;justify-content:flex-end}.shelf-genre-chips span,.spine-tooltip span{background:#fffefb;border:1px solid #d8d2c2;border-radius:999px;font-size:.72rem;font-weight:800;padding:.12rem .45rem}.shelf-furniture{background:linear-gradient(90deg,#7b5838,#9a7046 15%,#6b482e,#9a7046 85%,#7b5838);border:4px solid #5c3a24;border-radius:7px;display:grid;gap:.25rem;padding:.55rem .45rem .35rem}.bookshelf-card.detail .shelf-furniture{gap:.45rem;padding:.85rem .7rem .55rem}.furniture-section{background:#fffaf033;display:grid;gap:.2rem;min-width:0;padding-top:.2rem;position:relative}.section-label{align-items:baseline;color:#fffaf0;display:flex;gap:.45rem;justify-content:space-between;min-width:0;text-shadow:0 1px 1px rgba(51,30,18,.45)}.section-label strong,.section-label small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.section-label small{font-size:.72rem;opacity:.86}.wood-line{background:#3b2416;border-radius:999px;height:5px;order:3}.book-spine-row{align-items:end;display:flex;gap:2px;min-height:52px;overflow:visible;padding:.2rem .1rem 0}.bookshelf-card.detail .book-spine-row{gap:4px;min-height:78px;padding-top:.45rem}.book-spine{align-items:center;border:1px solid rgba(40,28,24,.28);border-radius:3px 3px 1px 1px;box-shadow:inset 2px 0 #ffffff2e,inset -2px 0 #00000024;color:#fffdf7;display:flex;flex:0 0 auto;justify-content:center;min-height:28px;min-width:10px;overflow:visible;padding:0;position:relative;text-shadow:0 1px 1px rgba(0,0,0,.32);transition:opacity .15s ease,transform .15s ease,filter .15s ease}.book-spine span:first-child{display:none}.book-spine.detail span:first-child{display:block;font-size:.66rem;line-height:1;max-height:calc(100% - 8px);overflow:hidden;padding:.25rem 0;text-overflow:ellipsis;white-space:nowrap;writing-mode:vertical-rl;transform:rotate(180deg)}.book-spine:hover,.book-spine.active{filter:saturate(1.12);transform:translateY(-8px);z-index:8}.book-spine.highlighted{animation:spinePulse .9s ease-in-out infinite;outline:2px solid #fff4b8;outline-offset:2px}.book-spine.dimmed{opacity:.25}@keyframes spinePulse{0%,to{box-shadow:inset 2px 0 #ffffff2e,inset -2px 0 #00000024,0 0 #237a5700}50%{box-shadow:inset 2px 0 #ffffff2e,inset -2px 0 #00000024,0 0 18px #237a57cc}}.spine-tooltip{background:#fffefb;border:1px solid #d8d2c2;border-radius:8px;bottom:calc(100% + 10px);box-shadow:0 16px 38px #20172838;color:var(--ink);display:grid;gap:.65rem;grid-template-columns:54px minmax(0,1fr);left:50%;min-width:260px;opacity:0;padding:.65rem;pointer-events:none;position:absolute;text-align:left;text-shadow:none;transform:translate(-50%,6px);transition:opacity .15s ease,transform .15s ease;visibility:hidden;z-index:20}.book-spine:hover .spine-tooltip,.book-spine.active .spine-tooltip,.book-spine:focus-visible .spine-tooltip{opacity:1;transform:translate(-50%);visibility:visible}.spine-tooltip strong,.spine-tooltip p,.spine-tooltip small,.spine-tooltip em{display:block;margin:0}.spine-tooltip strong{color:var(--ink);line-height:1.15}.spine-tooltip p,.spine-tooltip small{color:#5d584f}.spine-tooltip em{color:#48655d;font-style:normal;font-weight:800;margin-top:.25rem}.spine-tooltip span{display:inline-flex;margin-top:.35rem}.tooltip-cover{align-items:center;background:#edf1ea;border-radius:6px;color:var(--accent);display:flex;height:76px;justify-content:center;overflow:hidden;width:54px}.tooltip-cover img{height:100%;object-fit:cover;width:100%}.bookshelf-capacity{display:grid;gap:.3rem}.bookshelf-capacity span{background:#e6dfd0;border-radius:999px;display:block;height:9px;overflow:hidden;width:100%}.bookshelf-capacity i{display:block;height:100%}.bookshelf-capacity small{color:#6e675b;font-size:.78rem}.bookshelf-capacity.green i{background:#2f7d57}.bookshelf-capacity.yellow i{background:#d3a321}.bookshelf-capacity.orange i{background:#c46721}.bookshelf-capacity.red i{background:#a13728}.bookshelf-view-panel{background:transparent;border:0;padding:0}.bookshelf-toolbar{align-items:center;margin-bottom:1.1rem}.bookshelf-toolbar .eyebrow{display:none}.bookshelf-toolbar h2{font-size:clamp(1.45rem,2.2vw,2rem)}.bookshelf-toolbar-actions button{background:#fffefb;border:1px solid #cfc8bb;color:#201728;font-weight:700;min-height:48px;padding-inline:1.1rem}.bookshelf-toolbar-actions button.active{background:#f7f5ef;box-shadow:inset 0 0 0 1px #eee8dc}.bookshelf-toolbar-actions .icon-menu{border-color:transparent;box-shadow:0 6px 18px #20172814;min-width:44px;padding:0;width:44px}.bookshelf-search{margin-bottom:1.1rem}.bookshelf-search input{font-size:1.35rem;min-height:58px}.bookshelf-grid{align-items:start;gap:1.05rem;grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}.bookshelf-card{align-self:start;background:#fffefb;border-color:#ddd8ce;gap:.7rem;padding:.95rem}.bookshelf-card:hover{border-color:#bfb6a8;box-shadow:0 10px 24px #20172814}.bookshelf-card.detail{max-width:980px;width:100%}.bookshelf-card-header{align-items:start}.bookshelf-card-header h2{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:1.08rem;font-weight:800}.bookshelf-card-header p{display:none}.bookshelf-count{color:#3f3b35;font-size:.96rem;white-space:nowrap}.shelf-genre-chips{align-items:center;display:flex;justify-content:flex-start;margin-top:.45rem}.shelf-genre-chips span{align-items:center;border:0;display:inline-flex;font-size:.82rem;height:auto;line-height:1.1;max-height:none;min-height:0;padding:.12rem .55rem;transform:none;white-space:nowrap;width:auto;writing-mode:horizontal-tb}.shelf-furniture{background:transparent;border:0;gap:.55rem;padding:0}.bookshelf-card.detail .shelf-furniture{gap:.7rem;padding:0}.empty-shelf-visual{align-items:center;background:#f5f3ec;border:1px dashed #d8d2c2;border-radius:6px;color:#6e675b;display:flex;gap:.5rem;min-height:96px;padding:.9rem}.furniture-section{background:#f5f3ec;border-radius:6px;gap:.25rem;min-height:116px;padding:.55rem .55rem .35rem}.bookshelf-card.detail .furniture-section{min-height:146px;padding:.75rem .75rem .45rem}.section-label{color:#3c3933;justify-content:flex-start;text-shadow:none}.section-label strong{font-size:.92rem;font-weight:700}.section-label small{color:#706a60;margin-left:auto}.wood-line{background:#927652;height:5px;margin-top:-1px}.book-spine-row{gap:4px;min-height:72px;overflow-x:auto;overflow-y:visible;padding:.2rem 0 0}.bookshelf-card.detail .book-spine-row{gap:5px;min-height:92px}.book-spine{border:0;border-radius:4px 4px 0 0;box-shadow:inset 2px 0 #ffffff24,inset -2px 0 #00000029;min-height:36px}.book-spine span:first-child,.book-spine.detail span:first-child{display:block;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.68rem;font-weight:800;line-height:1;max-height:calc(100% - 8px);overflow:hidden;padding:.25rem 0;text-overflow:ellipsis;white-space:nowrap;writing-mode:vertical-rl;transform:rotate(180deg)}.book-spine.detail span:first-child{font-size:.76rem}.bookshelf-capacity{gap:.25rem}.bookshelf-capacity span{background:#f0eee6;height:7px}.bookshelf-capacity small{color:#3f3b35;font-size:.86rem}.bookshelf-legend{align-items:center;background:#f5f3ec;border-radius:8px;display:flex;flex-wrap:wrap;gap:.85rem;margin-top:1.4rem;padding:.9rem 1rem}.bookshelf-legend span{align-items:center;color:#3f3b35;display:inline-flex;gap:.38rem;font-size:.95rem}.bookshelf-legend i{border-radius:4px;display:inline-block;height:14px;width:14px}.bookshelf-admin{background:#fffefb;margin-top:.25rem}.bookshelf-admin summary{cursor:pointer;list-style:none}.bookshelf-admin:not([open]){background:transparent;border-color:transparent;padding:0}.bookshelf-admin:not([open]) summary h2{color:#6e675b;font-size:.92rem}.bookshelf-admin summary::-webkit-details-marker{display:none}.assistant-layout{margin:0 auto;max-width:1180px}.assistant-grid{align-items:start;display:grid;gap:1rem;grid-template-columns:minmax(0,1fr) minmax(320px,410px)}.suggestion-card{background:#fffefb;border:1px solid #dfd7c7;border-radius:8px;display:grid;gap:.8rem;padding:1rem}.suggestion-card.accepted{border-color:var(--accent);box-shadow:0 0 0 3px #461e601f}.suggestion-card h2,.suggestion-card p{margin:.35rem 0}.suggestion-card small{color:#6e675b}.confidence{border-radius:999px;color:#fffdf7;display:inline-flex;font-size:.74rem;font-weight:800;padding:.18rem .55rem;text-transform:uppercase}.confidence.alta{background:#166534}.confidence.media{background:#9a5d07}.confidence.baja{background:#8f3f2a}.movement-plan{position:sticky;top:102px}.move-row{align-items:center;background:#fffefb;border:1px solid #e2d9c9;border-radius:8px;display:grid;gap:.6rem;grid-template-columns:28px minmax(0,1fr) auto;padding:.65rem}.move-row>span{background:var(--accent-soft);border-radius:999px;color:var(--accent);display:grid;font-weight:800;height:26px;place-items:center;width:26px}.move-row strong,.move-row small{display:block;overflow-wrap:anywhere}.move-row small{color:#6e675b}.move-row.done{opacity:.62}@media(max-width:1120px){.toolbar{grid-template-columns:minmax(220px,1fr) minmax(150px,180px) minmax(140px,160px)}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.map-layout,.assistant-grid{grid-template-columns:1fr}.map-side,.movement-plan{position:static}}@media(max-width:760px){.topbar{padding:1rem}.topbar h1{font-size:1.25rem}.brand-mark{gap:.6rem}.brand-mark img{max-height:42px;width:64px}.session-chip,.library-switcher{display:none}.tools-button,.install-button{min-width:42px;padding:0;width:42px}.tools-button svg,.install-button svg{margin:0}.tools-button,.install-button{font-size:0}.floating-add-button{height:58px;width:58px}.layout,.flow-layout,.management-layout,.map-layout,.bookshelf-layout,.assistant-layout{padding:.75rem}.management-intro{align-items:flex-start;display:grid}.flow-steps,.method-grid,.management-grid,.toolbar{grid-template-columns:1fr}.segmented{justify-self:start}.book-grid,.book-list{grid-template-columns:1fr}.book-card,.book-list .book-card{grid-template-columns:82px minmax(0,1fr)}.two-cols,.genre-checkbox-grid{grid-template-columns:1fr}.floorplan-svg{display:none}.mobile-shelf-map{display:grid;gap:.55rem;margin-top:.85rem}.mobile-shelf-map button{background:#fffefb;border:1px solid #e2d9c9;color:var(--ink);display:grid;gap:.4rem;justify-items:stretch;text-align:left}.mobile-shelf-map button.active{border-color:var(--accent);box-shadow:0 0 0 3px #461e601f}.mobile-shelf-map span:first-child{display:grid;gap:.1rem}.mobile-shelf-map small{color:#6e675b}.floorplan-toolbar,.bookshelf-toolbar,.bookshelf-card-header,.bookshelf-admin-header,.assistant-summary{align-items:stretch;display:grid}.bookshelf-grid{grid-template-columns:1fr}.bookshelf-toolbar-actions,.shelf-genre-chips{justify-content:flex-start}.book-spine{max-height:40px}.book-spine.detail{max-height:70px}.spine-tooltip{left:0;min-width:min(280px,calc(100vw - 2rem));transform:translateY(6px)}.book-spine:hover .spine-tooltip,.book-spine.active .spine-tooltip,.book-spine:focus-visible .spine-tooltip{transform:translate(0)}.move-row{grid-template-columns:28px minmax(0,1fr)}.move-row button{grid-column:1 / -1}}
