/* One search card, with the same actions and permission checks as the inventory. */
body.workbench-design .wb-filter-result-bar{display:none!important}
html body.workbench-design .app-layout .account-list-workspace>.inventory-search-card{
 display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:18px 20px;width:100%;max-width:none;box-sizing:border-box;padding:22px 24px!important;margin:8px 0 16px;border:1px solid #17435a;border-radius:16px;background:#0a121f;box-shadow:none;
}
.inventory-search-heading{grid-column:1;grid-row:1;align-self:center;min-width:0}
html body.workbench-design .inventory-search-heading>.account-search-title{display:flex;align-items:center;gap:10px;margin:0;color:#f3f6fc;font:750 20px/1.4 'Be Vietnam Pro',system-ui;letter-spacing:-.4px}
.inventory-search-heading>.account-search-title::before{content:'🔍';font-size:18px}
.inventory-search-heading>p{margin:3px 0 0;color:#94a9c2;font:400 13px/1.6 'Be Vietnam Pro',system-ui}
.inventory-search-actions{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:9px;min-width:0}
.inventory-search-more{display:contents}
.inventory-search-more>summary,.inventory-rank-short{display:none}
html body.workbench-design .inventory-search-actions #admin-account-tools{display:flex;align-items:center;gap:9px;width:auto;margin:0;padding:0;border:0}
html body.workbench-design .inventory-search-actions :is(.btn,.wb-top-add){min-height:38px;height:auto;margin:0;padding:9px 14px;border:1px solid #2a3a4e;border-radius:12px;background:#1a2738;color:#d4dfed;box-shadow:none;font:650 12px/1.4 'Be Vietnam Pro',system-ui;white-space:nowrap}
html body.workbench-design .inventory-search-actions>.wb-top-add{background:linear-gradient(105deg,#03b5cd,#2465ef);border:0;color:#fff;min-width:128px;box-shadow:0 4px 14px #0077ff20}
html body.workbench-design .inventory-search-actions #aat-trash{padding:9px 14px!important;background:#1a2738!important;border:1px solid #2a3a4e!important}
.inventory-search-actions .trash-retention{display:none}
html body.workbench-design .inventory-search-card .account-search-box{display:contents}
html body.workbench-design .inventory-search-card .search-bar-inner{grid-column:1/-1;grid-row:2;box-sizing:border-box;min-height:44px;height:44px;padding:0 14px;background:#081522;border:1px solid #124354;border-radius:12px;box-shadow:none}
html body.workbench-design .inventory-search-card .search-bar-input{height:42px;font-size:14px;color:#dce8f7}
html body.workbench-design .inventory-list-ranks{grid-column:1/-1;grid-row:3;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px;width:100%;margin:0;padding:0;border:0;background:none;border-radius:0}
html body.workbench-design .inventory-list-ranks>button{flex:0 0 auto;min-height:34px;padding:7px 12px;border:1px solid #2b3b50;border-radius:9px;background:#1a2738;color:#c6d1e0;font:650 12px/1.4 'Be Vietnam Pro',system-ui;box-shadow:none;white-space:nowrap}
html body.workbench-design .inventory-list-ranks>button[aria-pressed=true]{background:#05adc7;color:#fff;border-color:#05adc7;box-shadow:0 3px 12px #00b9d01a}
html body.workbench-design .inventory-list-ranks>button[data-rank-value=banned]{color:#ff929f;background:#241b27;border-color:#542c41}
html body.workbench-design .inventory-list-ranks>button[data-rank-value=banned][aria-pressed=true]{background:#8d2b47;border-color:#ce456d;color:#fff}
html body.workbench-design .inventory-search-card .account-search-modes{grid-column:1/-1;grid-row:4;border:0;padding:0;gap:16px}
html body.workbench-design .inventory-search-card .account-search-hint{grid-column:1/-1;grid-row:5;margin:0}
html body.workbench-design .inventory-search-card>.dashboard-search-actions{grid-column:1/-1;grid-row:6;justify-self:end;margin:0}
html body.workbench-design .inventory-search-card [hidden]{display:none!important}
@media(max-width:760px){
 html body.workbench-design .app-layout .account-list-workspace>.inventory-search-card{grid-template-columns:minmax(0,1fr);padding:16px!important;gap:12px;border-radius:13px}
 .inventory-search-heading>p{display:none}
 .inventory-search-actions{grid-column:1;grid-row:2;justify-content:flex-start!important;flex-wrap:wrap;gap:8px;width:100%}
 .inventory-search-more{display:block;position:relative;order:2}
 .inventory-search-more>summary{display:flex;align-items:center;justify-content:center;min-height:42px;box-sizing:border-box;padding:10px 13px;border:1px solid #304459;border-radius:9px;background:#142337;color:#cad9e9;font:600 12px/1.4 'Be Vietnam Pro',system-ui;list-style:none;cursor:pointer}
 .inventory-search-more>summary::-webkit-details-marker{display:none}
 html body.workbench-design .inventory-search-more:not([open])>#admin-account-tools{display:none!important}
 html body.workbench-design .inventory-search-more[open]>#admin-account-tools{position:absolute;top:calc(100% + 8px);left:0;z-index:100;display:flex;flex-direction:column;align-items:stretch;gap:7px;width:180px;padding:9px;background:#102034;border:1px solid #38516c;border-radius:12px;box-shadow:0 12px 28px #0006}
 html body.workbench-design .inventory-search-actions :is(.btn,.wb-top-add),html body.workbench-design .inventory-search-actions #aat-trash{min-width:0;padding:9px!important;font-size:11px}
 html body.workbench-design .inventory-search-actions>.wb-top-add{order:1;width:auto!important;min-width:116px;min-height:42px;flex:0 0 auto!important;overflow:visible;font-size:12px}
 html body.workbench-design .inventory-search-card .search-bar-inner{grid-row:4;min-height:48px;height:48px}
 html body.workbench-design .inventory-search-card .search-bar-input{height:46px;font-size:16px}
 html body.workbench-design .inventory-list-ranks{grid-row:5;gap:7px;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:2px 0 6px;scrollbar-width:thin;scrollbar-color:#35516c transparent}
 html body.workbench-design .inventory-search-card .account-search-modes{grid-row:3;flex-wrap:nowrap;gap:4px;padding:4px;border:1px solid #273d52;background:#0c1a2a;border-radius:10px;box-sizing:border-box}
 html body.workbench-design .inventory-search-card .account-search-modes button{flex:1 1 0;min-width:0;min-height:40px;padding:8px 5px;border:0;border-radius:7px;font-size:11px;white-space:normal;color:#a5b8cf}
 html body.workbench-design .inventory-search-card .account-search-modes button[aria-pressed=true]{background:#173a55;color:#69dcf4;box-shadow:none}
 .inventory-search-card .account-search-label{display:none!important}
 html body.workbench-design .inventory-search-card .account-search-hint{grid-row:6;font-size:11px;line-height:1.5}
 html body.workbench-design .inventory-search-card>.dashboard-search-actions{grid-row:7}
 html body.workbench-design .inventory-list-ranks>button{min-height:40px;padding:9px 12px;gap:5px}
 .inventory-rank-full{display:none}.inventory-rank-short{display:inline}
}
html body.filter-mode .app-layout .account-list-workspace>.inventory-search-card,
html body:has(#storage-tab-unban[aria-pressed=true]) .app-layout .account-list-workspace>.inventory-search-card{display:flex!important;padding:0!important;border:0;background:none}
html body.filter-mode .inventory-search-heading,
html body:has(#storage-tab-unban[aria-pressed=true]) .inventory-search-heading{display:none!important}

/* Search opens on demand; warehouse ranks belong immediately above the list. */
html body.workbench-design .app-layout .account-list-workspace>.inventory-search-card{padding:14px 18px!important;gap:12px 18px}
.inventory-search-toggle{grid-column:1;grid-row:1;display:inline-flex;align-items:center;justify-self:start;gap:9px;min-height:44px;padding:9px 12px;border:1px solid #2c465e;border-radius:10px;background:#112337;color:#edf6ff;font:650 14px/1.4 'Be Vietnam Pro',system-ui;cursor:pointer}
.inventory-search-chevron{margin-left:7px;transition:transform .15s ease}
.inventory-search-toggle[aria-expanded=true] .inventory-search-chevron{transform:rotate(180deg)}
.inventory-search-toggle small{color:#67d8ee;font-size:10px}
html body.workbench-design .inventory-search-fields{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr);gap:10px;min-width:0}
html body.workbench-design .inventory-search-fields .account-search-modes{grid-row:1;gap:8px;border:0;margin:0}
html body.workbench-design .inventory-search-fields .search-bar-inner{grid-row:2}
html body.workbench-design .inventory-search-fields .account-search-hint{grid-row:3}
html body.workbench-design .inventory-list-ranks{grid-column:auto;grid-row:auto;box-sizing:border-box;max-width:100%;margin:12px 0 10px;padding:8px;border:1px solid #263c53;border-radius:10px;background:#0d1a29}
html body.workbench-design .inventory-list-ranks[hidden]{display:none!important}
@media(max-width:760px){
 html body.workbench-design .app-layout .account-list-workspace>.inventory-search-card{padding:12px!important}
 html body.workbench-design .inventory-search-fields{grid-row:3}
 html body.workbench-design .inventory-search-fields .account-search-modes{padding:4px;border:1px solid #273d52;gap:4px}
 html body.workbench-design .inventory-list-ranks{flex-wrap:nowrap;overflow-x:auto;margin:12px 0 8px;padding:7px;gap:7px}
}
html body.filter-mode :is(.inventory-search-toggle,.inventory-search-fields),
html body:has(#storage-tab-unban[aria-pressed=true]) :is(.inventory-search-toggle,.inventory-search-fields){display:none!important}
@media(prefers-reduced-motion:reduce){.inventory-search-chevron{transition:none}}
