/* One visual rhythm for the material chooser, across all media kinds. */
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer{
 width:calc(100vw - 48px)!important;max-width:calc(100vw - 48px)!important;
 height:calc(100dvh - 48px)!important;max-height:calc(100dvh - 48px)!important;
 border-color:var(--studio-strong-line)!important;border-radius:18px!important;
}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer>.drawer-head{padding:18px 24px!important;min-height:72px!important;flex-basis:72px!important;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer>.drawer-head strong{font-size:21px!important;letter-spacing:-.02em;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer>.drawer-body{padding:20px 24px 0!important;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-shell{gap:14px;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-source-tabs{padding:5px!important;border:1px solid var(--studio-line)!important;border-radius:12px!important;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-source-tabs button{height:38px!important;min-height:38px!important;border-radius:8px!important;min-width:112px;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-toolbar{gap:8px;grid-template-columns:minmax(240px,1fr) 160px 160px 88px;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer :is(.asset-picker-toolbar,.asset-picker-extra-filters) :is(input,select,button){height:40px!important;border-radius:9px!important;font-size:12px!important;min-width:0;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-extra-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 0 2px;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-extra-filters[hidden]{display:none!important;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer #assetPickerFiltersToggle.active{color:var(--studio-accent);border-color:var(--studio-accent);}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer #assetPickerFiltersToggle{white-space:nowrap!important;padding-inline:8px!important;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-model{display:flex!important;align-items:center;flex-wrap:wrap;gap:6px 12px;padding:0 2px 2px!important;min-height:26px;background:transparent!important;border:0!important;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-model span{white-space:normal!important;color:var(--studio-muted)!important;font-size:12px!important;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-model b{margin-left:auto!important;color:var(--studio-sub)!important;font-size:12px!important;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-grid{
 display:grid!important;grid-template-columns:repeat(auto-fill,minmax(300px,1fr))!important;grid-auto-rows:164px!important;
 gap:14px!important;align-items:stretch!important;align-content:start!important;padding:2px 5px 16px 2px!important;
}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-card{
 --material-accent:var(--studio-accent);position:relative;display:grid!important;grid-column:auto!important;
 grid-template-columns:96px minmax(0,1fr)!important;grid-template-rows:96px 32px!important;
 gap:10px 14px!important;height:164px!important;min-height:164px!important;max-height:164px!important;padding:12px!important;
 border:1px solid var(--studio-line)!important;border-radius:14px!important;background:var(--studio-surface)!important;
 overflow:hidden!important;cursor:pointer;transition:border-color .16s,background-color .16s!important;
}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-card[data-media-kind=video]{--material-accent:#7bbdae;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-card[data-media-kind=audio]{--material-accent:#baa2e8;}
html[data-zq-theme=light] body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-card[data-media-kind=video]{--material-accent:#287a69;}
html[data-zq-theme=light] body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-card[data-media-kind=audio]{--material-accent:#7853b3;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-card:not(.disabled):hover{border-color:var(--studio-strong-line)!important;background:var(--studio-soft)!important;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-card.selected{border-color:var(--studio-accent)!important;box-shadow:0 0 0 1px var(--studio-accent)!important;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-media{grid-column:1;grid-row:1;width:96px!important;height:96px!important;border-radius:9px!important;background:var(--studio-bg)!important;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-media :is(img,video){background:var(--studio-bg)!important;object-fit:contain!important;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-media>span{left:6px;bottom:6px;max-width:92px;font-size:9px!important;padding:2px 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-copy{grid-column:2;grid-row:1;display:flex!important;flex-direction:column!important;padding:1px 0 0!important;gap:7px!important;min-width:0;overflow:hidden;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-title-row{padding-right:26px!important;min-height:21px;flex-shrink:0;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-title-row strong{font-size:14px!important;line-height:21px;font-weight:600!important;color:var(--studio-text)!important;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-copy .asset-picker-meta{display:flex;align-items:center;gap:7px;font-size:11px!important;line-height:20px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--studio-muted)!important;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-kind{padding:0 5px;border-radius:4px;font-size:10px;color:var(--material-accent)!important;border:1px solid color-mix(in srgb,var(--material-accent) 25%,transparent);background:color-mix(in srgb,var(--material-accent) 8%,transparent);flex-shrink:0;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-voice-link{display:block!important;min-width:0;padding:0!important;background:transparent!important;border:0!important;font-size:11px!important;color:var(--studio-muted)!important;line-height:18px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-copy p{font-size:11px!important;line-height:18px!important;min-height:18px!important;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--studio-muted)!important;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-copy p[hidden]{display:none!important;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-copy p.bad{color:var(--refine-danger)!important;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-card-actions{grid-column:1/-1;grid-row:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:4px;border-top:1px solid var(--studio-line);min-width:0;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-card-actions select{width:min(160px,52%);height:28px!important;padding:0 8px!important;font-size:11px!important;border-radius:6px!important;background:var(--studio-soft)!important;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-usage-label{font-size:11px;line-height:28px;color:var(--studio-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-detail{display:inline-flex!important;align-items:center;gap:7px;height:28px!important;min-height:28px!important;padding:0 4px!important;border:0!important;background:transparent!important;font-size:11px!important;color:var(--studio-sub)!important;flex-shrink:0;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-detail:hover{color:var(--studio-accent)!important;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer :is(.asset-picker-check,.asset-picker-favorite){top:9px!important;width:26px!important;height:26px!important;min-height:26px!important;border-radius:8px!important;z-index:2;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-check{left:9px!important;border-color:var(--studio-strong-line)!important;box-shadow:0 1px 4px #0002;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-favorite{right:9px!important;background:transparent!important;border:0!important;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-audio-mark{color:var(--material-accent)!important;gap:8px;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-audio-mark span{font-size:32px!important;opacity:.5;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-audio-mark small{display:none!important;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-audio-toggle{position:absolute!important;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;border:1px solid var(--studio-strong-line)!important;border-radius:50%!important;background:var(--studio-surface)!important;color:var(--material-accent)!important;font-size:14px;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-audio-toggle[aria-pressed=true]{background:var(--studio-soft)!important;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer audio[hidden]{display:none!important;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-active-project,
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-library-empty{grid-column:1/-1!important;}
html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-footer{margin:0 -24px!important;padding:16px 24px!important;}
@media(max-width:1150px){
 html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-toolbar{grid-template-columns:minmax(160px,1fr) 130px 130px 76px!important;}
}
@media(max-width:700px){
 html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer{width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;height:calc(100dvh - 20px)!important;max-height:calc(100dvh - 20px)!important;border-radius:14px!important;}
 html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer>.drawer-head{min-height:58px!important;flex-basis:58px!important;padding:12px 14px!important;}
 html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer>.drawer-head strong{font-size:18px!important;}
 html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer>.drawer-body{padding:12px 14px 0!important;}
 html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-shell{gap:10px;}
 html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-toolbar{grid-template-columns:repeat(2,minmax(0,1fr)) 66px!important;gap:6px;}
 html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-toolbar input{grid-column:1/-1!important;}
 html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-toolbar :is(input,select,button){height:34px!important;}
 html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-extra-filters{grid-template-columns:1fr;}
 html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-source-tabs button{min-width:80px!important;padding-inline:8px!important;min-height:32px!important;height:32px!important;}
 html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-model{gap:3px 8px;}
 html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-model span{font-size:10px!important;}
 html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-model b{margin-left:0!important;width:100%;font-size:11px!important;}
 html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-grid{grid-template-columns:minmax(0,1fr)!important;gap:10px!important;}
 html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-card{grid-template-columns:88px minmax(0,1fr)!important;padding:12px!important;gap:10px 12px!important;}
 html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-media{width:88px!important;height:96px!important;}
 html body.reference-ui-shell[data-studio-ui] #detailDrawer.asset-picker-drawer .asset-picker-footer{margin:0 -14px!important;padding:12px 14px!important;}
}
