/* V05: compact, independent library views; same visual system. */
.orbit-fallback{top:36.7%;height:23.6%}.orbit-card.energy{box-shadow:0 0 6px #b0efff,inset 0 0 13px #c3f3ff85,0 0 19px #258eff99,3px 5px 0 #347ebcaa,0 0 calc(23px * var(--glow)) #8edcff}.top{box-shadow:0 1px 0 #6bb8ff55,0 4px 20px #173a6522}.library{padding-block:clamp(1.15rem,2.2vh,2rem);scroll-margin-top:0;min-height:calc(100svh - 88px)}.library h2{font-size:clamp(2.8rem,7vh,5rem);margin:0 0 .8rem}.library form{margin-bottom:.65rem}.library .tabs{gap:.6rem}.library #status{margin:.65rem 0}.shelves{margin:.65rem 0 0;gap:12px;grid-template-columns:repeat(7,minmax(0,1fr))}.shelves .card{min-height:0;padding:clamp(.65rem,1.5vh,1rem);gap:.35rem}.shelves .card h3{font-size:clamp(1.15rem,1.6vw,1.65rem)}.shelves .card small,.shelves .metadata{font-size:.76rem}.category-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:0 0 .65rem}.back-acervo{display:inline-flex;align-items:center;min-height:40px;border:1px solid #7298b680;border-radius:12px;padding:.45rem .9rem;text-decoration:none;color:#ffb18c;background:#142b43;position:relative}.back-acervo:hover{border-color:#ff5000}.category-count{color:#9fcbff;font-size:.85rem}.shelf-group{margin:0 0 1.5rem}.shelf-title{font-size:clamp(2rem,5.3vh,3.5rem);margin:0 0 .75rem}.shelf-title small{font-size:.72rem}.category-seal{display:flex;justify-content:flex-end;align-items:center;gap:.9rem;border-top:1px solid #7298b64a;margin-top:1rem;padding-top:.65rem;color:#9dbbd6;font-size:.75rem}.category-seal img{width:200px;height:auto;max-width:45%}.grid{display:flex;flex-wrap:wrap;justify-content:center;gap:clamp(8px,1.3vw,18px);--cols:4;--gap:clamp(8px,1.3vw,18px)}.grid[data-count="3"],.grid[data-count="5"],.grid[data-count="6"]{--cols:3}.grid[data-count="4"]{--cols:2}.grid[data-count="1"]{--cols:1}.grid[data-count="2"]{--cols:2}.grid .reference{width:calc((100% - (var(--cols) - 1)*var(--gap))/var(--cols));max-width:420px;gap:0;border-radius:16px}.grid .preview{aspect-ratio:16/9;max-height:clamp(75px,19vh,175px);padding:.65rem .8rem;justify-content:space-between}.grid .preview:has(img){padding:0;display:block}.grid .preview img{width:100%;height:100%;object-fit:cover;display:block}.grid .card-body{padding:.55rem .8rem .65rem;gap:.2rem}.grid .card-body h3{font-size:clamp(1.25rem,2.8vh,1.85rem);line-height:1.15}.grid .card-body p{font-size:.78rem;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.grid .actions{padding-top:.25rem;gap:.4rem}.grid .actions a,.grid .actions button{min-height:34px;padding:.3rem .6rem;font-size:.8rem}.grid .actions .favorite{font-size:1.15rem;min-width:36px}.category-open .library{display:flex;flex-direction:column}.category-open #results{flex:1;display:flex;flex-direction:column}.category-open .shelf-group{flex:1;display:flex;flex-direction:column;margin:0;animation:enter-view .35s ease both}.category-open .category-seal{margin-top:auto;padding-top:.7rem}.category-open .grid{margin-bottom:1rem}.category-open footer{display:none}@keyframes enter-view{from{opacity:.15;transform:translateY(10px)}to{opacity:1;transform:none}}body:not(.library-ready) #results{display:block}body:not(.library-ready) .shelf-group{margin:2rem 0} @media(min-width:901px) and (max-height:780px){.category-open .grid .preview{max-height:16vh}.category-open .grid .card-body p{display:none}.category-open .grid .card-body{padding:.4rem .65rem}.category-open .shelf-title{margin-bottom:.5rem}.category-open .category-head{margin-bottom:.35rem}.category-open .category-seal{padding-top:.4rem}.category-open .grid{gap:10px;--gap:10px;margin-bottom:.6rem}}@media(max-width:900px){.shelves{grid-template-columns:repeat(3,minmax(0,1fr))}.library{min-height:0;padding-block:1.6rem}.grid,.grid[data-count]{--cols:2}.grid .preview{max-height:none}.grid .card-body p{display:block}.category-open .category-head{position:sticky;top:0;z-index:25;background:#142b43ee;padding:.4rem 0;backdrop-filter:blur(10px)}.category-open .category-seal{margin-top:1rem}.category-seal img{max-width:48%}.grid .reference{max-width:none}.grid .card-body h3{font-size:1.5rem}.grid .actions a,.grid .actions button{min-height:44px}.shelves .card h3{font-size:1.35rem}.grid .preview{padding:.5rem}.preview-index,.preview small{font-size:.63rem}}@media(max-width:350px){.grid,.grid[data-count]{--cols:1}.shelves{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(prefers-reduced-motion:reduce){.category-open .shelf-group{animation:none}}
.orbit-fallback{top:32.7%}@media(min-width:901px){.category-open .library{min-height:calc(100svh - 100px);padding-block:12px}.category-open .grid .preview{max-height:clamp(70px,calc((100svh - 510px)/2),175px)}.category-open .grid .card-body{padding:.4rem .7rem}.category-open .grid .card-body p{white-space:nowrap;display:block;text-overflow:ellipsis;overflow:hidden}.category-open .category-seal img{width:200px}.category-open .category-head{margin-bottom:.4rem}.category-open .grid{margin-bottom:.6rem;--gap:12px;gap:12px}.category-open .shelf-title{margin-bottom:.65rem}.category-open .category-seal{padding-top:.4rem}.category-open .grid[data-count="3"] .preview,.category-open .grid[data-count="1"] .preview,.category-open .grid[data-count="2"] .preview{max-height:220px}.category-open .grid[data-count="4"]{--cols:2}}
