.fd-collection-controls,.fd-collection-pager{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 18px;background:#fff;border:1px solid #dfe5f3;border-radius:16px;margin:16px 0;color:#63748e;font-size:13px;box-shadow:0 8px 24px #28395606}
.fd-collection-controls>div,.fd-collection-pager>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.fd-collection-controls label,.fd-collection-pager label{display:flex;gap:8px;align-items:center}
.fd-collection-controls button,.fd-collection-pager button{border:1px solid #dfe5f3;border-radius:10px;padding:9px 13px;background:#fff;color:#33435d;cursor:pointer;font:inherit}
.fd-collection-controls button[aria-pressed=true]{background:linear-gradient(135deg,#7667ff,#575bfa);border-color:#7269ff;color:#fff;box-shadow:0 5px 12px #675aff30,inset 0 1px #ffffff40}
.fd-collection-controls select,.fd-collection-pager input{width:auto!important;max-width:100px;border:1px solid #dfe5f3;border-radius:8px;padding:8px;background:#f8f9ff;color:#33435d;font:inherit}
.fd-collection-pager button:disabled{opacity:.4;cursor:not-allowed}.fd-collection-controls :focus-visible,.fd-collection-pager :focus-visible{outline:2px solid #7162ff;outline-offset:2px}
#productGrid.fd-collection-list,#materialGrid.fd-collection-list{display:grid;grid-template-columns:1fr!important;gap:0;align-content:start;background:var(--fd-panel,#fff);border:1px solid var(--fd-line,#dfe5f3);border-radius:14px}
#productGrid.fd-collection-list>.catalog-card{display:grid;grid-template-columns:150px minmax(160px,1fr) minmax(150px,1fr) minmax(230px,auto);align-items:center;gap:20px;padding:12px;min-height:110px;overflow:visible}
#productGrid.fd-collection-list .catalog-card>h3,#productGrid.fd-collection-list .catalog-card>p{margin:0;min-height:0}#productGrid.fd-collection-list .catalog-meta{margin:0;flex-wrap:wrap;border:0;padding:0}#productGrid.fd-collection-list .fd-project-cover{width:150px;height:90px}
#materialGrid.fd-collection-list>.catalog-card{min-height:0;display:flex;align-items:center;gap:18px;text-align:left;padding:18px}#materialGrid.fd-collection-list h3{flex:1;min-width:160px;margin:0}#materialGrid.fd-collection-list p{display:none}#materialGrid.fd-collection-list .catalog-meta{margin:0;padding:0;border:0;gap:20px}
#customerList.fd-collection-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:16px;padding:16px}#customerList.fd-collection-cards .customer-row{display:flex;flex-direction:column;align-items:stretch;gap:18px;border:1px solid #dfe5f3;border-radius:18px;background:#fff;padding:20px;box-shadow:0 10px 25px #33415509}#customerList .customer-project-chip{border:1px solid #e1e4f3;border-radius:8px;text-align:left;color:#52627b;background:#f6f7fd}
@media(max-width:850px){#productGrid.fd-collection-list>.catalog-card{grid-template-columns:100px 1fr}#materialGrid.fd-collection-list>.catalog-card{flex-wrap:wrap}.fd-collection-controls,.fd-collection-pager{align-items:flex-start;flex-direction:column}}
/* Continuous rows, not a stack of floating cards. Do not stretch the rows
   when the collection is shorter than the viewport. */
:is(#productGrid,#materialGrid).fd-collection-list>.catalog-card{margin:0;border:0;border-bottom:1px solid var(--fd-line,#e6e9f3);border-radius:0;box-shadow:none!important;align-self:start}
:is(#productGrid,#materialGrid).fd-collection-list>.catalog-card:first-child{border-radius:14px 14px 0 0}
:is(#productGrid,#materialGrid).fd-collection-list>.catalog-card:last-child{border-bottom:0;border-radius:0 0 14px 14px}
:is(#productGrid,#materialGrid).fd-collection-list>.catalog-card:only-child{border-radius:14px}
#productGrid.fd-collection-list>.catalog-card{min-height:88px;padding:10px 16px;grid-template-columns:110px minmax(160px,1fr) minmax(150px,1fr) minmax(230px,auto)}
#productGrid.fd-collection-list .fd-project-cover{width:110px;height:66px;margin:0;border-radius:8px}
#productGrid.fd-collection-list .catalog-card>p{margin:0;min-height:0}
#materialGrid.fd-collection-list>.catalog-card{padding:14px 18px}
:is(#products,#materials,#customers).view.active{display:flex;flex-direction:column;min-height:calc(100dvh - 116px)}
:is(#products,#materials,#customers).view.active>*{flex-shrink:0}
#customers.view.active>.card:has(#customerList){display:flex;flex-direction:column;flex:1}
:is(#productGrid,#materialGrid,#customerList){align-content:start}
:is(#productGridPager,#materialGridPager,#customerListPager){margin-top:auto;margin-bottom:0;flex-shrink:0}
:is(#productGrid,#materialGrid,#customerList){margin-bottom:20px}
#customerList.fd-collection-list{gap:0;box-shadow:none}
@media(max-width:850px){#productGrid.fd-collection-list>.catalog-card{grid-template-columns:110px minmax(0,1fr)}}
/* One continuous collection surface, with a compact footer at its base. */
:is(#productGrid,#materialGrid,#customerList){flex:1;margin-bottom:0;background:var(--fd-panel,#fff);border:1px solid var(--fd-line,#dfe5f3);border-bottom:0;border-radius:14px 14px 0 0;padding-bottom:0}
:is(#productGrid,#materialGrid).fd-collection-list{border-bottom:0;border-radius:14px 14px 0 0}
:is(#productGrid,#materialGrid).fd-collection-list>.catalog-card:last-child{border-bottom:1px solid var(--fd-line,#e6e9f3);border-radius:0}
:is(#productGrid,#materialGrid).fd-collection-list>.catalog-card:only-child{border-radius:14px 14px 0 0}
#customerList.fd-collection-list>.customer-row:last-child{border-bottom:1px solid var(--fd-line,#e6e9f3)}
.fd-collection-pager{box-sizing:border-box;min-height:40px;padding:5px 14px;gap:8px;font-size:12px;border-radius:0 0 14px 14px;box-shadow:none;background:var(--fd-panel,#fff)}
:is(#productGridPager,#materialGridPager,#customerListPager){margin:0}
.fd-collection-pager>div{gap:6px}
.fd-collection-pager button,.fd-collection-pager input{box-sizing:border-box;height:28px;min-height:28px;padding:3px 8px;border-radius:6px;font-size:12px;line-height:20px}
.fd-collection-pager input{max-width:58px}
@media(max-width:850px){.fd-collection-pager{flex-direction:row;align-items:center;flex-wrap:wrap}}
/* Product actions form the header of the collection rather than separate panels. */
#materialsCollectionTools{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#materials #materialLearningPolicy{display:flex!important;align-items:center!important;margin:0!important;padding:0!important;border:0;box-shadow:none;gap:0!important;background:transparent}
#materialLearningPolicy label{font-size:12px;white-space:nowrap;display:flex;align-items:center;gap:5px}
#materialLearningPolicy input{height:auto;min-height:0;accent-color:#7868ff}
#materialLearningPolicy>[role=status]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#materialSearchForm{display:flex;gap:6px;margin:0}#materialSearchForm input{width:180px;height:34px;box-sizing:border-box;border:1px solid var(--fd-line,#dfe5f3);border-radius:8px;padding:6px 10px;background:var(--fd-panel,#fff);color:var(--fd-text,#34425c)}
.fd-collection-controls button[data-layout]{background:linear-gradient(135deg,#7868ff,#585bfa);border-color:#746aff;color:#fff;box-shadow:0 4px 10px #655bff25,inset 0 1px #ffffff45}
.customer-table-head{display:grid;grid-template-columns:minmax(220px,1.25fr) minmax(170px,.85fr) minmax(240px,1.25fr) 92px;padding:10px 16px;gap:12px;font-size:12px;color:#768098;background:var(--fd-soft,#f5f5fc);border-bottom:1px solid var(--fd-line,#dfe5f3)}
#customerList.fd-collection-cards>.customer-table-head{display:none}
.customer-project-picker{position:relative;font-size:12px;width:fit-content;max-width:100%;justify-self:start;align-self:start}
.customer-project-picker summary{display:inline-block;cursor:pointer;padding:7px 10px;border:1px solid #dfe2f3;border-radius:8px;color:#685bc1;background:#f7f5ff}
.customer-project-picker>div{position:absolute;z-index:20;top:calc(100% + 6px);left:0;width:min(340px,75vw);box-sizing:border-box;max-height:280px;overflow:auto;padding:8px;background:var(--fd-panel,#fff);border:1px solid var(--fd-line,#dfe5f3);border-radius:12px;box-shadow:0 12px 30px #24324b20}
.customer-project-picker .customer-project-chip{width:100%;margin:3px 0}
.customer-project-picker summary{transition:background .15s,border-color .15s,box-shadow .15s;list-style:none}
.customer-project-picker summary::-webkit-details-marker{display:none}
.customer-project-picker summary::after{content:'⌄';display:inline-block;margin-left:8px;transition:transform .15s}
.customer-project-picker[open] summary::after{transform:rotate(180deg)}
.customer-project-picker summary:hover{background:#eee8ff;border-color:#ad9cf4;box-shadow:0 3px 8px #7962dd1a}
.customer-project-picker[open]>summary{background:linear-gradient(135deg,#7868ff,#585bfa);color:#fff;border-color:#746aff;box-shadow:0 4px 12px #655bff30,inset 0 1px #ffffff45}
#customerList .customer-project-picker .customer-project-chip{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;transition:background .15s,border-color .15s,transform .1s}
#customerList .customer-project-picker .customer-project-chip:hover{background:#f0ebff;border-color:#b8a9f5;color:#5744b0}
.customer-project-picker summary:active,#customerList .customer-project-picker .customer-project-chip:active{transform:translateY(1px);background:#e4dcfc;box-shadow:inset 0 1px 3px #6655aa25}
.customer-project-picker summary:focus-visible,.customer-project-picker button:focus-visible{outline:2px solid #8874f4;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.customer-project-picker summary,.customer-project-picker summary::after,#customerList .customer-project-picker .customer-project-chip{transition:none}}
.customer-single-project{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
@media(max-width:640px){.customer-table-head{display:none}}
.product-status-counts{display:flex;gap:12px;white-space:nowrap;font-size:12px;color:#768098;margin-right:auto}.product-status-counts b{font-size:14px;color:#34425c;margin-left:4px}.product-status-counts span:first-child b{color:#218457}
#products .product-list-head:has(.product-status-counts) h1{margin-right:6px}
.fd-directory-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;min-height:62px;box-sizing:border-box;background:var(--fd-panel,#fff);border:1px solid var(--fd-line,#dfe5f3);border-radius:14px 14px 0 0}
.fd-directory-head h1{font-size:20px;line-height:1.3;margin:0 auto 0 0;white-space:nowrap}
.fd-directory-head .hero-actions{display:flex;align-items:center;gap:8px;margin:0}
.fd-directory-head .fd-collection-controls{margin:0;padding:0;border:0;box-shadow:none;background:transparent;font-size:12px;gap:8px}
.fd-directory-head .fd-collection-controls>span{display:none}
.fd-directory-head :is(button,select){min-height:34px;height:34px;padding:6px 10px;font-size:12px;border-radius:8px;box-sizing:border-box}
.fd-directory-head .page-quota{padding:5px 10px;min-width:120px;box-shadow:none}
.fd-directory-legacy{display:none!important}
.fd-compact-directory .customer-stats{display:flex;gap:12px;margin:0 auto 0 0}
.fd-compact-directory .customer-stats>.card{display:flex;align-items:center;gap:5px;border:0!important;padding:0;background:transparent!important;box-shadow:none!important;border-radius:0}
.fd-compact-directory .customer-stats strong{font-size:14px;margin:0}.fd-compact-directory .customer-stats span{font-size:11px}
.fd-compact-directory>.directory-toolbar,.fd-compact-directory>.section-head{margin:0;padding:8px 16px;background:var(--fd-panel,#fff);border:1px solid var(--fd-line,#dfe5f3);border-top:0}
#customers.fd-compact-directory>.card:has(#customerList){border-radius:0 0 14px 14px;box-shadow:none;border-top:0}
#customers.fd-compact-directory .card-head:has(#customerCount){display:none}
#materials.fd-compact-directory #materialGrid{border-radius:0;border-top:0}
#materials.fd-compact-directory #materialGrid.fd-collection-cards{padding:14px;grid-auto-rows:max-content}
.fd-directory-head #materialUploadStatus:empty{display:none}
#products .product-list-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px;min-height:62px;box-sizing:border-box;padding:12px 16px;background:var(--fd-panel,#fff);border:1px solid var(--fd-line,#dfe5f3);border-bottom:0;border-radius:14px 14px 0 0}
#products .product-list-head h1{margin:0 auto 0 0;font-size:20px;line-height:1.3;white-space:nowrap}
#productNameSearch{min-width:120px;width:clamp(130px,15vw,240px);height:34px;box-sizing:border-box;padding:6px 10px;border:1px solid var(--fd-line,#dfe5f3);border-radius:8px;background:var(--fd-bg,#f6f7fc);color:var(--fd-text,#24324b);font:inherit;font-size:12px}
#productCollectionTools{flex-shrink:0}
#productCollectionTools .fd-collection-controls{padding:0;margin:0;border:0;border-radius:0;box-shadow:none;gap:8px;background:transparent;font-size:12px}
#productCollectionTools .fd-collection-controls>span{display:none}
#productCollectionTools .fd-collection-controls>div{gap:6px;flex-wrap:nowrap}
#productCollectionTools :is(button,select){height:34px;box-sizing:border-box;padding:6px 9px;font-size:12px;border-radius:8px}
#products .product-list-head .page-quota{min-width:120px;padding:5px 10px;box-shadow:none;font-size:11px}
#products .product-list-head :is(.btn,.mini-btn){height:34px;min-height:34px;padding:6px 12px;white-space:nowrap;font-size:12px;border-radius:8px}
#products[data-read-state=error] #productsReadStatus button,#products[data-read-state=stale] #productsReadStatus button{color:#b45309;border-color:#e9bd82;background:#fff7e9}
#products #productGrid{border-radius:0;border-top:1px solid var(--fd-line,#dfe5f3)}
#products #productGrid.fd-collection-list>.catalog-card:first-child{border-radius:0}
#products #productGrid.fd-collection-cards{padding:14px;box-sizing:border-box}
@media(max-width:1100px){#products .product-list-head{flex-wrap:wrap}#products .product-list-head h1{margin-right:12px}#productNameSearch{flex:1}#productCollectionTools .fd-collection-controls{flex-direction:row;align-items:center}}
/* The surface fills the viewport; its content rows must not fill that space. */
#products #productGrid{grid-auto-rows:max-content;align-content:start}
#products #productGrid.fd-collection-cards>.catalog-card{align-self:start;height:auto;min-height:0}
/* Render the same 2:1 cover at a stable design size, then scale the entire
   composition uniformly. Font minimums and tags cannot crowd the thumbnail. */
#productGrid.fd-collection-list .fd-product-thumbnail{position:relative;width:110px;height:55px;min-width:110px;margin:0;overflow:hidden;border-radius:6px}
#productGrid.fd-collection-list .fd-product-thumbnail>.fd-project-cover{width:320px;height:160px;aspect-ratio:2/1;margin:0;border-radius:16px;transform:scale(.34375);transform-origin:top left}
#productGrid .fd-product-status{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;padding:5px 9px;border-radius:8px;font:600 12px/1.3 system-ui,sans-serif;border:1px solid #dce2ec;background:#f5f6fa;color:#6b7285}
#productGrid .fd-product-status.is-published{background:linear-gradient(135deg,#e1f7eb,#cbefdd);border-color:#8ed4ae;color:#19623e;box-shadow:0 3px 8px #26754b18,inset 0 1px #ffffffb3}
#productGrid.fd-collection-cards>.catalog-card>.fd-product-status{position:absolute;z-index:2;top:14px;right:14px;margin:0}
#productGrid.fd-collection-list .catalog-meta{gap:12px}
#productGrid .fd-product-group{grid-column:1/-1;display:flex;align-items:center;gap:10px;padding:10px 16px;background:var(--fd-soft,#f5f5fc);color:var(--fd-text,#35415a);font-size:13px;font-weight:650;border-bottom:1px solid var(--fd-line,#e3e6ef)}
#productGrid .fd-product-group>span{font-size:11px;font-weight:400;color:var(--fd-muted,#788398)}
#productGrid.fd-collection-list>.catalog-card{grid-template-columns:110px minmax(160px,1fr) minmax(150px,1fr) 330px}
#productGrid.fd-collection-list .catalog-meta{display:grid;grid-template-columns:78px 98px 138px;gap:8px;margin:0;justify-content:end}
#productGrid.fd-collection-list .fd-product-status{justify-self:start}
#productGrid.fd-collection-list .actions{display:grid;grid-template-columns:48px 48px 26px;gap:8px;align-items:center}
#productGrid.fd-collection-list .actions>[data-preview-blueprint]{grid-column:1;grid-row:1}
#productGrid.fd-collection-list .actions>[data-blueprint-id]{grid-column:2;grid-row:1}
#productGrid.fd-collection-list .actions>.fd-card-menu{grid-column:3;grid-row:1}
#productGrid.fd-collection-list .actions>.mini-btn{padding-inline:0;width:48px;box-sizing:border-box}
#productStatusFilter{height:34px;padding:6px 8px;border:1px solid var(--fd-line,#dfe5f3);border-radius:8px;background:var(--fd-panel,#fff);color:var(--fd-text,#34425c);font-size:12px}
#productGrid .actions{flex-wrap:wrap}
#productGrid .actions>button:disabled{opacity:.4;filter:grayscale(1);box-shadow:none!important;cursor:not-allowed}
#productGrid .actions>.success{color:#19623e;background:#e1f7eb;border-color:#8ed4ae}
#productGrid.fd-collection-list>.catalog-card{grid-template-columns:110px minmax(160px,1fr) minmax(150px,1fr) 386px}
#productGrid.fd-collection-list .catalog-meta{grid-template-columns:78px 98px 194px}
#productGrid.fd-collection-list .actions{grid-template-columns:48px 48px 48px 26px}
#productGrid.fd-collection-list .actions>[data-toggle-publish]{grid-column:3;grid-row:1}
#productGrid.fd-collection-list .actions>.fd-card-menu{grid-column:4}
@media(max-width:1000px){#productGrid.fd-collection-list>.catalog-card{grid-template-columns:110px minmax(0,1fr)}}
@media(max-width:1000px){#productGrid.fd-collection-list>.catalog-card{grid-template-columns:110px minmax(0,1fr)}#productGrid.fd-collection-list .catalog-meta{grid-column:1/-1;justify-self:end}}
/* Directory rows use available panel width, including with the AI drawer open. */
:is(#products,#materials,#customers){container-type:inline-size}
:is(.fd-directory-head,.product-list-head)>*{min-width:0;max-width:100%;box-sizing:border-box}
#productCollectionTools .fd-collection-controls>div{flex-wrap:wrap}
#materialsCollectionTools .fd-collection-controls{flex-direction:row;align-items:center}
#materialSearchForm{min-width:0;max-width:100%}
#materialSearchForm input{min-width:0;flex:1}
#materialSearchForm button,#createProductButton{flex-shrink:0;white-space:nowrap}
#products .product-list-head{display:grid;grid-template-columns:auto minmax(140px,1fr) auto auto auto auto;gap:8px}
#products .product-list-head h1{grid-column:1;grid-row:1;margin:0;font-size:20px}
.product-list-head .product-status-counts{grid-column:2/4;grid-row:1;justify-content:flex-end;margin:0;gap:10px}
#products .product-list-head .page-quota{grid-column:4;grid-row:1;min-width:0;width:auto}
#productsReadStatus{grid-column:5;grid-row:1;margin:0}
#productsReadStatus:empty{display:none}
#createProductButton{grid-column:6;grid-row:1;justify-self:end}
#productNameSearch{grid-column:1/3;grid-row:2;width:100%;min-width:0}
#productStatusFilter{grid-column:3;grid-row:2;width:auto;min-width:100px}
#productCollectionTools{grid-column:4/7;grid-row:2;justify-self:end}
#productCollectionTools .fd-collection-controls{flex-direction:row;align-items:center}
#products .product-list-head :is(button,select,input){box-sizing:border-box;height:34px;min-height:34px}
#customers .fd-directory-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:10px;padding:12px 16px}
#customers .fd-directory-head h1{grid-column:1;grid-row:1;margin:0}
#customers .customer-stats{grid-column:2;grid-row:1;gap:10px;margin:0;justify-content:flex-end;flex-wrap:wrap}
.fd-directory-capacity{display:flex;align-items:center;gap:8px;grid-column:3;grid-row:1}
#customers .fd-directory-head .hero-actions{grid-column:4;grid-row:1;gap:6px;display:flex;flex-wrap:wrap;margin:0;width:auto;justify-content:flex-end}
#customers .fd-directory-capacity .page-quota{min-width:0;padding:0;border:0;background:transparent;box-shadow:none;font-size:10px;display:flex;gap:4px;white-space:nowrap}
#customers .fd-directory-capacity .quota-track{display:none}
#customers .fd-directory-head>.directory-toolbar{grid-column:1/-1;display:flex;gap:8px;align-items:center;flex-wrap:wrap;border-top:1px solid var(--fd-line,#dfe5f3);padding:10px 0 0;margin:0}
#customers .directory-toolbar>div:first-child{display:flex;align-items:center;flex:1;gap:6px;flex-wrap:wrap;min-width:0}
#customers .directory-toolbar #customerSearch{width:160px;min-width:100px;flex:1}
#customers .directory-toolbar :is(input,select,button){height:32px;min-height:32px;padding:5px 8px;font-size:12px;box-sizing:border-box;margin:0;max-width:100%}
#customers .directory-toolbar select{width:auto;min-width:0}
#customersCollectionTools{flex:none;min-width:0;margin-left:auto}
#customersCollectionTools .fd-collection-controls{padding:0;margin:0;border:0;background:transparent;box-shadow:none;gap:6px;flex-direction:row;align-items:center}
#customersCollectionTools .fd-collection-controls>span{display:none}
#customersCollectionTools .fd-collection-controls>div{gap:6px}
#customers .fd-extra-filters{display:block;position:relative;flex-shrink:0}
#customers .fd-extra-filters>summary{display:block;list-style:none;cursor:pointer;white-space:nowrap;padding:6px 8px;border:1px solid var(--fd-line,#dfe5f3);border-radius:8px;font-size:12px;line-height:18px}
#customers .fd-extra-filters>summary::-webkit-details-marker{display:none}
#customers .fd-extra-filters>summary::after{content:'⌄';margin-left:5px}
#customers .fd-extra-filters:not([open])>div{display:none}
#customers .fd-extra-filters[open]>div{display:flex;flex-direction:column;gap:8px;position:absolute;top:calc(100% + 6px);right:0;z-index:30;width:180px;padding:12px;background:var(--fd-panel,#fff);border:1px solid var(--fd-line,#dfe5f3);border-radius:10px;box-shadow:0 10px 24px #24324b20}
@container(max-width:1100px){
  #customers .directory-toolbar{flex-wrap:nowrap!important;gap:6px}
  #customers .directory-toolbar>div:first-child{flex-wrap:nowrap;gap:5px}
  #customers .directory-toolbar :is(input,select,button){font-size:11px;padding-inline:6px}
  #customers .directory-toolbar #customerSearch{width:120px;min-width:70px}
  #customers .fd-extra-filters{display:block;position:relative;flex-shrink:0}
  #customers .fd-extra-filters>summary{display:block;list-style:none;cursor:pointer;white-space:nowrap;padding:6px 8px;border:1px solid var(--fd-line,#dfe5f3);border-radius:8px;font-size:11px;line-height:18px}
  #customers .fd-extra-filters>summary::-webkit-details-marker{display:none}
  #customers .fd-extra-filters>summary::after{content:'⌄';margin-left:5px}
  #customers .fd-extra-filters:not([open])>div{display:none}
  #customers .fd-extra-filters[open]>div{display:flex;flex-direction:column;gap:8px;position:absolute;top:calc(100% + 6px);right:0;z-index:30;width:180px;padding:12px;background:var(--fd-panel,#fff);border:1px solid var(--fd-line,#dfe5f3);border-radius:10px;box-shadow:0 10px 24px #24324b20}
}
@container(max-width:1100px){
  #customers .fd-directory-head{grid-template-columns:auto minmax(0,1fr)}
  #customers .customer-stats{grid-column:2;grid-row:1}
  #customers .fd-directory-capacity{grid-column:1;grid-row:2}
  #customers .fd-directory-head .hero-actions{grid-column:2;grid-row:2}
}
@container(max-width:760px){
  #products .product-list-head{grid-template-columns:auto minmax(60px,1fr) auto auto auto auto}
  .product-list-head .product-status-counts{grid-column:2/7;grid-row:1;flex-wrap:wrap}
  #productNameSearch{grid-column:1/4;grid-row:2}
  #productStatusFilter{grid-column:4/7;grid-row:2;width:100%}
  #productCollectionTools{grid-column:1/4;grid-row:3;justify-self:start}
  #products .product-list-head .page-quota{grid-column:4;grid-row:3}
  #productsReadStatus{grid-column:5;grid-row:3}
  #createProductButton{grid-column:6;grid-row:3}
}
@container(max-width:1200px){
  #materials .fd-directory-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;align-items:center}
  #materials .fd-directory-head h1{grid-column:1;margin:0}
  #materialSearchForm{grid-column:1;grid-row:2;width:100%}
  #materialsCollectionTools{grid-column:2;grid-row:2;justify-content:flex-start;gap:10px}
  #materials .fd-directory-head .hero-actions{grid-column:1/-1;flex-wrap:wrap;justify-content:flex-start;gap:8px}
  #materials .fd-directory-head .hero-actions .page-quota{flex:0 1 auto;width:auto;min-width:0}
  #materials .fd-directory-head .hero-actions{grid-column:2;grid-row:1;justify-content:flex-end}
}
@container(max-width:850px){
  #materialsCollectionTools{grid-column:1/-1;grid-row:3}
  #materialSearchForm{grid-column:1/-1;grid-row:2}
  #materials .fd-directory-head .hero-actions{grid-column:2;grid-row:1;justify-content:flex-end}
}
@container(max-width:520px){
  #materials .fd-directory-head h1{grid-column:1/-1;grid-row:1}
  #materials .fd-directory-head .hero-actions{grid-column:1/-1;grid-row:2;justify-content:flex-start}
  #materialSearchForm{grid-row:3}
  #materialsCollectionTools{grid-row:4}
  #products .product-list-head{grid-template-columns:minmax(0,1fr) auto auto}
  #products .product-list-head h1{grid-column:1;grid-row:1}
  .product-list-head .product-status-counts{grid-column:1/-1;grid-row:2;justify-content:flex-start}
  #productNameSearch{grid-column:1/3;grid-row:3}
  #productStatusFilter{grid-column:3;grid-row:3}
  #productCollectionTools{grid-column:1/3;grid-row:4}
  #productsReadStatus{grid-column:3;grid-row:4}
  #products .product-list-head .page-quota{grid-column:1/3;grid-row:5;justify-self:start}
  #createProductButton{grid-column:3;grid-row:5}
  #customers .customer-stats{grid-column:1/-1;grid-row:2;justify-content:flex-start;gap:8px}
  #customers .fd-directory-capacity{grid-column:1/-1;grid-row:3}
  #customers .fd-directory-head .hero-actions{grid-column:1/-1;grid-row:4;justify-content:flex-start}
  #customers .directory-toolbar>div:first-child{flex-basis:100%}
  #customers .directory-toolbar{flex-wrap:wrap!important}
  #customers .directory-toolbar>div:first-child{flex-wrap:wrap}
  #materialLearningPolicy label{white-space:normal}
}
