.view-toggle{display:inline-flex;gap:0;margin:12px 0 0;border:1px solid #dbe3f5;border-radius:10px;overflow:hidden;background:#fff}
.view-toggle[hidden]{display:none}
html body .view-toggle button{margin:0;border:0!important;border-radius:0!important;box-shadow:none!important;width:auto;background:#fff!important;color:#18233b!important;font:inherit;font-weight:600;font-size:15px;min-height:40px;padding:0 16px;cursor:pointer}
html body .view-toggle button+button{border-left:1px solid #dbe3f5!important}
html body .view-toggle button[aria-pressed=true]{background:#2856ce!important;color:#fff!important}
html body .drop[data-view=pages] #queue,html body .drop[data-view=pages] .order-note,html body .drop[data-view=pages] #sort{display:none!important}
.pages-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:10px;list-style:none;margin:12px 0 0;padding:0;text-align:left}
.pages-grid[hidden]{display:none}
.pages-grid li{border:1px solid #dbe3f5;border-radius:12px;background:#fff;padding:8px;display:flex;flex-direction:column;gap:6px;min-width:0}
.pages-grid .page-thumb{height:124px;border-radius:8px;background:#edf2ff;display:grid;place-items:center;overflow:hidden}
.pages-grid .page-thumb img{max-width:100%;max-height:100%;display:block;background:#fff;box-shadow:0 1px 4px rgba(24,35,59,.2)}
.pages-grid .page-label{font-size:12px;line-height:1.3;color:#18233b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pages-grid .page-label b{display:block;font-size:13px}
.pages-grid .page-row{display:flex;gap:6px}
.pages-grid .page-row button{flex:1 1 0;margin:0;min-height:38px;padding:0;border:1px solid #dbe3f5;border-radius:10px;background:#fff;color:#18233b;font:inherit;font-size:18px;line-height:1;cursor:pointer}
.pages-grid .page-row button:disabled{opacity:.35;cursor:default}
.pages-empty{margin:12px 0 0;color:#18233b}
@media(max-width:700px){.pages-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.pages-grid li{padding:6px}.pages-grid .page-thumb{height:100px}.view-toggle{display:flex}.view-toggle button{flex:1 1 0!important}}
