/* Scroll library: same menu geometry as Equipment, same shared belt as Inventory. */
.scrolls-panel{gap:8px}
.scrolls-panel .scrolls-details{flex:0 0 148px;height:148px;min-height:148px;max-height:148px;padding:11px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.scrolls-detail-head{display:flex;gap:10px;align-items:center}
.scrolls-detail-icon{width:44px;height:44px;min-width:44px;display:grid;place-items:center;border:1px solid #354a40;border-radius:10px;background:#101b16;font-size:30px}
.scrolls-detail-head h3{margin:0;font-size:14px}
.scrolls-detail-head small{display:block;margin-top:3px;color:#91a49b;font-size:10px}
.scrolls-details p{margin:8px 0 0;color:#b6c8be;font-size:11px;line-height:1.4}
.scrolls-details .item-flavor{color:#95aa9d;font-style:italic}
.scrolls-actions{flex:0 0 auto}
.scrolls-actions button{min-height:34px!important}
.scrolls-browser{flex:1 1 auto;min-height:110px;max-height:none;grid-template-columns:48px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.scrolls-browser .scrolls-family-filters{grid-column:1;grid-row:1}
.scrolls-browser .scrolls-library{grid-column:2;grid-row:1}
.scrolls-library-head{justify-content:flex-end;align-items:center;min-height:34px;margin-bottom:3px}
.scrolls-sort-controls{display:flex;align-items:center;justify-content:flex-end;gap:5px;min-width:0;max-width:100%}
.scrolls-sort-controls button{min-height:28px!important;min-width:53px!important;padding:3px 7px!important;background:#162720!important;border:1px solid #344b40!important;border-radius:8px!important;font-size:10px!important;font-weight:700!important;line-height:1.1!important}
.scrolls-sort-controls button.active{background:#244236!important;border-color:#83cf9f!important;color:#eff8f3!important;outline:1px solid #83cf9f}
.scrolls-sort-controls button:focus-visible{outline:2px solid #9df0c9;outline-offset:2px}
.scrolls-browser .scrolls-grid{grid-template-columns:repeat(auto-fill,minmax(54px,1fr));grid-auto-rows:58px;gap:5px;align-content:start}
.scrolls-browser .scrolls-cell{min-width:0;padding:3px}
.scrolls-browser .scrolls-cell .cell-icon{font-size:26px}
.scrolls-browser .scrolls-family-filters{scrollbar-width:thin;overscroll-behavior:contain}
.scrolls-family-filter{display:grid!important;place-items:center!important;flex:0 0 42px;min-width:42px!important}
.scrolls-family-filter>span{font-family:var(--icon-font)!important;font-size:20px;line-height:1;letter-spacing:normal!important}
.scrolls-family-filter:disabled{opacity:.38}
.scrolls-belt-hint{font-size:9px;color:#90a89b}
.scrolls-message{min-height:15px;margin:0;font-size:10px;color:#a8d8b8}
.scrolls-panel .belt-slot{cursor:pointer}
.scrolls-panel .belt-slot:focus-visible{outline:2px solid #9df0c9}
@media(max-width:430px){
  .scrolls-panel{padding:14px;gap:7px}
  .scrolls-panel .scrolls-details{flex-basis:134px;height:134px;min-height:134px;max-height:134px;padding:9px}
  .scrolls-detail-icon{width:40px;height:40px;min-width:40px;font-size:26px}
  .scrolls-detail-head h3{font-size:12px}
  .scrolls-details p{font-size:10px}
  .scrolls-browser{flex:1 1 auto;min-height:95px;max-height:none;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:34px minmax(0,1fr)}
  .scrolls-browser .scrolls-family-filters{grid-column:1/3;grid-row:1;flex-direction:row;overflow-x:auto;overflow-y:hidden;gap:4px}
  .scrolls-browser .scrolls-library{grid-column:1/3;grid-row:2}
  .scrolls-sort-controls{width:100%}
  .scrolls-sort-controls button{flex:1;min-width:43px!important;min-height:30px!important;padding:3px 5px!important;font-size:9px!important}
  .scrolls-browser .scrolls-family-filter{flex:0 0 34px;min-height:32px!important;height:32px!important;width:34px!important;min-width:34px!important}
  .scrolls-family-filter>span{font-size:18px}
  .scrolls-browser .scrolls-grid{grid-template-columns:repeat(auto-fill,minmax(48px,1fr));grid-auto-rows:52px}
  .scrolls-browser .scrolls-cell .cell-icon{font-size:24px}
  .scrolls-belt-hint{font-size:8px}
}

