.ml-root.ml-polished{padding-top:14px;--mlrf-control:var(--workspace-soft,#f4f4f4)}
.ml-root.ml-polished .ml-nav.mlp-use-nav{margin-bottom:10px;padding:10px 14px;min-height:62px;border-radius:12px}
.ml-root.ml-polished .mlp-inline-tabs{padding:3px;gap:2px;background:var(--ml-soft);border-radius:9px}
.ml-root.ml-polished .mlp-use-nav .mlp-inline-tabs button{border-radius:7px;background:transparent;min-height:32px;padding:7px 15px}
.ml-root.ml-polished .mlp-use-nav .mlp-inline-tabs button.active{background:var(--mlp-bg);box-shadow:0 1px 3px #0000000c;font-weight:550}
.ml-root.ml-polished .mlp-filter-panel.mlrf-panel{padding:10px 18px 0;margin:0 0 10px;border-radius:12px}
.mlrf-row{display:flex;gap:12px;align-items:flex-start;position:relative;padding:8px 0;font-size:12px;min-height:40px;flex-wrap:wrap}
.mlrf-label{font-size:12px;color:var(--ml-muted);white-space:nowrap;min-width:60px;line-height:30px}
.mlrf-row-tools{display:flex;align-items:center;gap:8px;min-height:30px;flex:none}
.mlrf-text{border:0;background:none;color:var(--ml-muted);padding:5px 1px;font:inherit;font-size:11px;cursor:pointer;white-space:nowrap;border-radius:4px}
.mlrf-text:hover{color:var(--ml-text)}
.mlrf-values{display:flex;gap:6px;flex:1;align-items:flex-start;flex-wrap:wrap;min-width:120px;max-height:70px;overflow:hidden;padding:1px}
.mlrf-values.expanded{max-height:none;overflow:visible}
.mlrf-choice{border:1px solid transparent;border-radius:7px;padding:6px 10px;line-height:16px;font-size:12px;color:var(--ml-text);background:transparent;cursor:pointer;max-width:100%;overflow-wrap:anywhere}
.mlrf-choice:hover{background:var(--ml-soft)}
.mlrf-choice.active{background:var(--ml-soft);font-weight:550;border-color:var(--ml-line)}
.mlrf-row-search{width:100%;padding-left:84px}
.mlrf-row-search input{height:32px;max-width:300px;width:100%;font-size:12px;border:1px solid var(--ml-line);border-radius:7px;padding:6px 10px;background:var(--mlp-bg);color:var(--ml-text)}
.mlrf-no-options{color:var(--ml-muted);font-size:11px;padding:7px 3px}
.mlrf-tag-group{position:relative;font-size:12px;border-radius:7px}
.mlrf-tag-group summary{list-style:none;cursor:pointer;padding:6px 9px;line-height:16px;border:1px solid transparent;display:flex;gap:8px;align-items:center;border-radius:7px;white-space:nowrap}
.mlrf-tag-group summary::-webkit-details-marker,.mlrf-quick summary::-webkit-details-marker{display:none}
.mlrf-tag-group[open]>summary,.mlrf-tag-group summary:hover{background:var(--ml-soft);border-color:var(--ml-line)}
.mlrf-tag-group b{font-size:10px;min-width:16px;text-align:center;border-radius:4px;background:var(--workspace-accent,#292929);color:var(--workspace-accent-text,#fff)}
.mlrf-tag-group[open]{z-index:36}
.mlrf-values:has(.mlrf-tag-group[open]){overflow:visible}
.mlrf-tag-popover{position:absolute;top:calc(100% + 5px);left:0;z-index:36;width:242px;max-width:72vw;max-height:310px;overflow:auto;background:var(--mlp-bg);border:1px solid var(--ml-line);border-radius:10px;box-shadow:0 8px 28px #00000012;padding:10px;display:grid;gap:5px}
.mlrf-tag-popover input[type=search]{height:32px;width:100%;border:1px solid var(--ml-line);border-radius:6px;background:var(--ml-soft);color:inherit;padding:6px 8px;font-size:12px}
.mlrf-tag-popover label{display:flex;align-items:center;gap:8px;min-height:30px;padding:4px 7px;cursor:pointer;border-radius:5px;font-size:12px}
.mlrf-tag-popover label:hover{background:var(--ml-soft)}
.mlrf-presence{display:flex;gap:2px;border-radius:7px;padding:2px;background:var(--ml-soft);margin-right:4px}
.mlrf-presence button{border:0;background:transparent;color:var(--ml-muted);font-size:11px;border-radius:5px;padding:5px 8px;cursor:pointer;white-space:nowrap}
.mlrf-presence button.active{background:var(--mlp-bg);color:var(--ml-text);box-shadow:0 1px 3px #00000008}
.mlrf-filter-footer{border-top:1px solid var(--ml-line);margin-top:6px;padding:10px 0;display:flex;justify-content:flex-end;align-items:center;gap:16px;font-size:11px;color:var(--ml-muted);flex-wrap:wrap}
.mlrf-filter-footer select{border:0;background:var(--ml-soft);padding:6px 8px;border-radius:6px;font-size:11px;color:var(--ml-text);max-width:160px}
.mlrf-advanced{padding:11px 16px;margin:0 0 10px;position:relative;z-index:20}
.mlrf-advanced-line{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.mlrf-quick{position:relative;font-size:12px}
.mlrf-quick>summary{display:flex;gap:8px;align-items:center;cursor:pointer;border-radius:7px;padding:8px 10px;line-height:16px;background:var(--ml-soft);list-style:none;color:var(--ml-text);border:1px solid transparent}
.mlrf-quick>summary.active,.mlrf-quick[open]>summary{border-color:var(--ml-text)}
.mlrf-quick-menu{position:absolute;z-index:35;top:calc(100% + 7px);left:0;min-width:190px;max-width:calc(100vw - 35px);max-height:310px;overflow:auto;background:var(--mlp-bg);color:var(--ml-text);border:1px solid var(--ml-line);box-shadow:0 6px 25px #00000012;border-radius:10px;padding:6px}
.mlrf-quick-menu>button{display:flex;justify-content:space-between;gap:10px;align-items:center;background:transparent;color:inherit;border:0;text-align:left;width:100%;padding:9px 10px;font-size:12px;cursor:pointer;border-radius:6px;white-space:nowrap}
.mlrf-quick-menu>button:hover,.mlrf-quick-menu>button[aria-pressed=true]{background:var(--ml-soft)}
.mlrf-quick-menu button:disabled{color:var(--ml-muted);cursor:default;opacity:.65}
.mlrf-unavailable{font-size:11px;color:var(--ml-muted);line-height:1.7;margin:4px 7px 8px;max-width:300px}
.mlrf-unavailable-option{display:flex;gap:9px;align-items:center;padding:8px 7px;white-space:nowrap;font-size:11px}
.mlrf-unavailable-option>span{flex:1}.mlrf-unavailable-option button{border:0;background:none;font-size:10px;padding:2px}
.mlrf-interaction-groups{padding:4px 8px}.mlrf-interaction-groups summary{padding:8px;cursor:pointer}.mlrf-interaction-groups button{display:block;background:none;border:0;padding:7px 16px;font-size:11px}
.mlrf-relation{margin-left:auto;display:flex;border:1px solid var(--ml-line);border-radius:7px;overflow:hidden;height:33px;min-width:190px}
.mlrf-relation input,.mlrf-relation select,.mlrf-relation button{background:var(--mlp-bg);border:0;color:var(--ml-text);font-size:11px;padding:6px 8px;min-width:0}.mlrf-relation input{width:100px;border-left:1px solid var(--ml-line)}.mlrf-relation button{cursor:pointer}
.mlrf-selected{border-top:1px solid var(--ml-line);display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:10px;padding-top:10px;font-size:11px;color:var(--ml-muted)}
.mlrf-selected>button:not(.mlrf-text){border:0;background:var(--ml-soft);color:var(--ml-text);border-radius:5px;font-size:11px;padding:5px 7px;cursor:pointer;max-width:350px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mlrf-selected>button span{color:var(--ml-muted);padding-left:4px}
.mlrf-more{display:grid;grid-template-columns:150px 1fr;gap:24px;max-height:62vh;min-height:350px;overflow:hidden}
.mlrf-more>nav{display:flex;flex-direction:column;gap:6px;border-right:1px solid var(--ml-line);padding-right:15px}.mlrf-more nav a{display:block;padding:10px 12px;color:inherit;border-radius:6px;text-decoration:none;font-size:12px}.mlrf-more nav a:hover{background:var(--ml-soft)}
.mlrf-more-fields{overflow:auto;scroll-behavior:smooth;padding-right:10px}.mlrf-more-fields section{padding-bottom:22px;scroll-margin-top:10px}.mlrf-more-fields h4{font-size:14px;margin:5px 0 17px}.mlrf-more-fields .ml-field{font-size:12px;margin-bottom:14px;gap:8px}.mlrf-more-fields select[multiple]{height:85px}
.mlrf-range{display:grid;grid-template-columns:110px 1fr;align-items:center;gap:14px;font-size:12px;margin-bottom:14px}.mlrf-range>div{display:flex;gap:9px;align-items:center;min-width:0}.mlrf-range input{width:0;flex:1;min-width:50px;height:34px;padding:6px 9px;border:1px solid var(--ml-line);background:var(--mlp-bg);color:inherit;border-radius:6px;font-size:12px}
.ml-root.ml-polished .mlp-toolbar{margin:0 0 10px;padding:11px 16px;border-radius:11px;gap:12px;flex-wrap:wrap}
.mlrf-people{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:11px}.mlrf-people select,.mlrf-people input{font-size:11px;color:var(--ml-text);background:var(--mlp-bg);border:1px solid var(--ml-line);border-radius:6px;height:31px;padding:4px 7px;max-width:140px}
.mlrf-display{display:flex;align-items:center;gap:13px;margin-left:auto;flex-wrap:wrap}.mlrf-display .mlp-display-tabs{margin:0}.mlrf-view-options{display:flex;gap:9px;font-size:11px;align-items:center;flex-wrap:wrap}.mlrf-view-options button{font-size:11px;border:1px solid var(--ml-line);border-radius:6px;background:var(--mlp-bg);color:var(--ml-text);padding:6px 9px;cursor:pointer}.mlrf-view-options button[aria-pressed=true]{background:var(--ml-soft);border-color:var(--ml-text)}
.mlrf-show-titles .mlp-card-title{-webkit-line-clamp:unset;display:block}.mlp-grid.mlrf-list{grid-template-columns:1fr}.mlrf-list .mlp-card{display:grid;grid-template-columns:100px 1fr;min-height:150px}.mlrf-list .mlp-cover{height:150px;aspect-ratio:auto}.mlrf-list .mlp-card-body{padding:17px}.mlrf-list .mlp-card-hover{inset:8px 4px auto}.mlrf-list .mlp-card-hover .ml-btn{font-size:9px}.mlrf-list .mlp-cover-tags{display:none}
.mlrf-container-tools{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:12px 0;font-size:12px}.mlrf-container-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:16px}.mlrf-container{border:1px solid var(--ml-line);background:var(--mlp-bg);border-radius:12px;padding:0;overflow:hidden}.mlrf-container>button{border:0;background:var(--ml-soft);color:var(--ml-text);width:100%;height:145px;cursor:pointer;display:grid;place-items:center}.mlrf-folder-symbol{font-size:55px;color:var(--ml-muted)}.mlrf-container>div{padding:14px}.mlrf-container h4{font-size:13px;margin:0 0 8px;overflow-wrap:anywhere}.mlrf-container p{font-size:11px;color:var(--ml-muted)}.mlrf-container-actions{display:flex;gap:7px;flex-wrap:wrap}.mlrf-container-actions button{border:0;border-radius:5px;background:var(--ml-soft);color:var(--ml-text);font-size:11px;padding:5px 7px;cursor:pointer}
[data-ref-name][hidden],[data-tag-name][hidden]{display:none!important}
@media(max-width:1200px){.mlrf-row{gap:8px}.mlrf-row-tools{gap:6px}.mlrf-advanced-line{gap:6px}.mlrf-quick>summary{padding:7px 8px;font-size:11px}.mlrf-people{width:100%}.mlrf-display{margin-left:0;justify-content:space-between;width:100%}}
@media(max-width:760px){.ml-root.ml-polished{padding-top:10px}.ml-root.ml-polished .mlp-filter-panel.mlrf-panel{padding:8px 11px 0}.mlrf-label{min-width:52px;font-size:11px}.mlrf-row-tools{gap:7px}.mlrf-values{flex-basis:100%;padding-left:0;max-height:68px}.mlrf-row{padding:6px 0}.mlrf-row>.mlrf-text{margin-left:auto}.mlrf-row-search{padding-left:0}.mlrf-choice{padding:5px 8px;font-size:11px}.mlrf-filter-footer{gap:10px}.mlrf-advanced{padding:10px}.mlrf-quick>summary{font-size:11px;padding:6px 8px}.mlrf-relation{margin-left:0;width:100%}.mlrf-relation input{flex:1}.mlrf-quick:nth-of-type(n+5) .mlrf-quick-menu{left:auto;right:0}.mlrf-more{grid-template-columns:1fr;gap:10px}.mlrf-more>nav{flex-direction:row;border:0;overflow:auto;padding:0;flex:none}.mlrf-more nav a{white-space:nowrap;font-size:11px;padding:6px}.mlrf-range{grid-template-columns:1fr;gap:5px}.mlrf-more-fields{padding-right:4px}.mlrf-display{gap:9px}.mlrf-people input{max-width:130px}.mlrf-view-options{gap:8px}.mlrf-container-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mlrf-container>button{height:110px}}

/* One quiet toolbar surface, with secondary controls separated by a fine rule. */
.mlrf-bottom-toolbar{display:flex;align-items:center;flex-wrap:wrap;width:100%;gap:10px;border-top:1px solid var(--ml-line);padding-top:10px;margin-top:1px}.mlrf-bottom-toolbar>.ml-row{width:100%}

/* Video preview follows the library switch; enabled initially. */
.mlrf-preview-toggle{display:inline-flex;align-items:center;gap:8px;position:relative;cursor:pointer;white-space:nowrap;font-size:11px;color:var(--ml-text);user-select:none}
.mlrf-preview-toggle input{position:absolute;inset:auto 0 auto auto;width:44px;height:24px;margin:0;opacity:0;cursor:pointer;z-index:1}
.mlrf-preview-track{display:inline-block;position:relative;width:44px;height:24px;border-radius:999px;background:var(--ml-line);transition:background .15s ease;flex:none}
.mlrf-preview-track:before{content:'关';position:absolute;right:8px;top:0;font-size:10px;line-height:24px;color:var(--ml-muted)}
.mlrf-preview-track:after{content:'';position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:var(--mlp-bg);box-shadow:0 1px 2px #0002;transition:transform .15s ease}
.mlrf-preview-toggle input:checked+.mlrf-preview-track{background:var(--ml-text)}
.mlrf-preview-toggle input:checked+.mlrf-preview-track:before{content:'开';left:8px;right:auto;color:var(--mlp-bg)}
.mlrf-preview-toggle input:checked+.mlrf-preview-track:after{transform:translateX(20px)}
.mlrf-preview-toggle input:focus-visible+.mlrf-preview-track{outline:2px solid var(--ml-text);outline-offset:3px}
@media(prefers-reduced-motion:reduce){.mlrf-preview-track,.mlrf-preview-track:after{transition:none}}

/* Unified library filters: the search stays above one complete filter surface. */
.ml-root.ml-polished .ml-nav.mlp-use-nav{gap:18px;padding:10px 14px;min-height:60px;flex-wrap:wrap}
.ml-root.ml-polished .mlp-use-nav>.mlp-inline-tabs{width:auto;flex:0 0 auto;justify-content:flex-start}
.ml-root.ml-polished .mlp-use-nav>.mlp-search{flex:1 1 650px;min-width:0;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.ml-root.ml-polished .mlp-use-nav .mlp-search>input{flex:1 1 180px;min-width:100px;max-width:290px;height:34px;padding:7px 11px;border:1px solid var(--ml-line);background:var(--mlp-bg);border-radius:8px;font-size:12px;line-height:18px}
.ml-root.ml-polished .mlp-use-nav .mlp-search>input[name=sku]{display:block;flex:0 1 180px;max-width:190px}
.ml-root.ml-polished .mlp-use-nav .mlp-search>.mlrf-relation{margin-left:0;flex:0 1 244px;min-width:200px;max-width:280px;height:34px;align-items:stretch;border:1px solid var(--ml-line);border-radius:8px;background:var(--mlp-bg);overflow:hidden}
.ml-root.ml-polished .mlp-use-nav .mlrf-relation select{flex:0 0 96px;width:96px;max-width:96px;height:32px;border:0;border-radius:0;padding:0 8px;background:transparent;font-size:12px;color:var(--ml-muted)}
.ml-root.ml-polished .mlp-use-nav .mlrf-relation input{flex:1 1 auto;width:0;min-width:0;max-width:none;height:32px;margin:0;padding:6px 10px;border:0;border-left:1px solid var(--ml-line);border-radius:0;background:transparent;font-size:12px;line-height:18px}
.ml-root.ml-polished .mlp-use-nav .mlp-search>button{flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:34px;line-height:18px;padding:7px 13px;border-radius:8px;border-bottom-width:1px}
.ml-root.ml-polished .mlp-use-nav .mlp-search>button.ml-btn-ghost{border:1px solid transparent;color:var(--ml-muted)}
.ml-root.ml-polished .mlp-use-nav .mlp-search>button.ml-btn-ghost:hover{color:var(--ml-text);background:var(--ml-soft);border-color:var(--ml-line)}
.ml-root.ml-polished .mlp-use-nav .mlp-search>input::placeholder,.ml-root.ml-polished .mlp-use-nav .mlrf-relation input::placeholder{color:var(--ml-muted);opacity:1}
.ml-root.ml-polished .mlp-use-nav .mlrf-relation:focus-within{border-color:var(--ml-text);box-shadow:0 0 0 2px color-mix(in srgb,var(--ml-text) 8%,transparent)}
.ml-root.ml-polished .mlp-use-nav .mlrf-relation input:focus,.ml-root.ml-polished .mlp-use-nav .mlrf-relation select:focus{outline:0;box-shadow:none}

.ml-root.ml-polished .ml-panel.mlrf-advanced{flex:none;min-width:0;margin:0 0 10px;padding:13px 16px 14px;border-radius:12px;background:var(--mlp-bg);box-shadow:0 2px 5px #00000002}
.ml-root.ml-polished .mlrf-advanced-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;min-height:26px}
.ml-root.ml-polished .mlrf-advanced-title{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-size:12px;line-height:20px;font-weight:600;color:var(--ml-text)}
.ml-root.ml-polished .mlrf-advanced-title>svg{width:15px;height:15px;flex:none;color:var(--ml-muted)}
.ml-root.ml-polished .mlrf-advanced-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.ml-root.ml-polished .mlrf-advanced-actions .mlrf-text{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:28px;border:1px solid transparent;border-radius:7px;padding:4px 9px;font-size:11px;line-height:18px;color:var(--ml-muted)}
.ml-root.ml-polished .mlrf-advanced-actions .mlrf-text:last-child{border-color:var(--ml-line);color:var(--ml-text);background:var(--mlp-bg)}
.ml-root.ml-polished .mlrf-advanced-actions .mlrf-text:hover{background:var(--ml-soft);color:var(--ml-text);border-color:var(--ml-line)}
.ml-root.ml-polished .mlrf-advanced>.mlrf-advanced-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}
.ml-root.ml-polished .mlrf-advanced-line>.mlrf-quick{max-width:100%;font-size:12px}
.ml-root.ml-polished .mlrf-advanced .mlrf-quick>summary{min-height:34px;gap:9px;line-height:18px;padding:7px 10px;border:1px solid var(--ml-line);border-radius:8px;background:var(--mlp-bg);color:var(--ml-muted);font-size:12px;transition:border-color .15s,background .15s,color .15s}
.ml-root.ml-polished .mlrf-advanced .mlrf-quick>summary:hover{background:var(--ml-soft);color:var(--ml-text);border-color:color-mix(in srgb,var(--ml-text) 24%,var(--ml-line))}
.ml-root.ml-polished .mlrf-advanced .mlrf-quick>summary.active,.ml-root.ml-polished .mlrf-advanced .mlrf-quick[open]>summary{color:var(--ml-text);background:var(--ml-soft);border-color:color-mix(in srgb,var(--ml-text) 42%,var(--ml-line))}
.ml-root.ml-polished .mlrf-advanced .mlrf-quick-menu{border-radius:10px;border-color:var(--ml-line);box-shadow:0 8px 28px #00000012;padding:6px}
.ml-root.ml-polished .mlrf-advanced .mlrf-quick-menu>button{min-height:34px;border-radius:6px}
.ml-root.ml-polished .mlrf-advanced-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 18px;min-width:0;margin-top:12px;padding-top:12px;border-top:1px solid var(--ml-line);font-size:12px;color:var(--ml-muted)}
.ml-root.ml-polished .mlrf-scope-tools{display:flex;align-items:center;flex:1 1 640px;flex-wrap:wrap;gap:10px 14px;min-width:0;max-width:100%}
.ml-root.ml-polished .mlrf-selection-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-height:34px;min-width:0;max-width:100%;font-size:11px;line-height:18px}
.ml-root.ml-polished .mlrf-selection-tools>label,.ml-root.ml-polished .mlrf-display-tools .mlrf-view-options>label{display:inline-flex;align-items:center;gap:6px;min-height:32px;white-space:nowrap;cursor:pointer;color:var(--ml-muted)}
.ml-root.ml-polished .mlrf-selection-tools input[type=checkbox],.ml-root.ml-polished .mlrf-display-tools .mlrf-view-options input[type=checkbox]{width:14px;height:14px;margin:0;border-radius:4px;accent-color:var(--ml-text)}
.ml-root.ml-polished .mlrf-selection-tools>.ml-muted{font-size:11px;white-space:nowrap}
.ml-root.ml-polished .mlrf-scope-tools .mlot-people{display:flex;align-items:center;flex:0 1 auto;flex-wrap:wrap;gap:7px;width:auto;max-width:100%;min-width:0;order:initial;color:var(--ml-text);font-size:12px}
.ml-root.ml-polished .mlrf-scope-tools .mlot-people>select{height:34px;min-width:88px;max-width:130px;padding:0 9px;border:1px solid var(--ml-line);border-radius:8px;background:var(--mlp-bg);color:var(--ml-text);font-size:12px;line-height:18px}
.ml-root.ml-polished .mlrf-scope-tools .mlot-people>select:disabled{opacity:.5;cursor:not-allowed}
.ml-root.ml-polished .mlrf-scope-tools .mlot-date-control{display:flex;align-items:stretch;min-width:0;max-width:100%;height:34px;border:1px solid var(--ml-line);border-radius:8px;background:var(--mlp-bg);color:var(--ml-text);overflow:hidden}
.ml-root.ml-polished .mlrf-scope-tools .mlot-date-control>select{flex:0 0 86px;width:86px;max-width:86px;height:32px;padding:0 8px;border:0;border-radius:0;background:transparent;color:var(--ml-muted);font-size:11px}
.ml-root.ml-polished .mlrf-scope-tools .mlot-date-control>button{flex:1 1 auto;min-width:0;gap:8px;min-height:32px;height:32px;padding:0 9px;border-left-color:var(--ml-line);white-space:nowrap;font-size:11px}
.ml-root.ml-polished .mlrf-scope-tools .mlot-date-control>button>span:first-child,.ml-root.ml-polished .mlrf-scope-tools .mlot-date-control>button>span:nth-child(3){min-width:60px}
.ml-root.ml-polished .mlrf-scope-tools .mlot-date-control:focus-within{outline:2px solid color-mix(in srgb,var(--ml-text) 15%,transparent);outline-offset:1px;border-color:var(--ml-text)}
.ml-root.ml-polished .mlrf-scope-tools .mlot-date-control select:focus{outline:0}
.ml-root.ml-polished .mlrf-display-tools{display:flex;align-items:center;justify-content:flex-end;flex:0 1 auto;flex-wrap:wrap;gap:10px 12px;margin-left:auto;min-width:0;max-width:100%}
.ml-root.ml-polished .mlrf-display-tools>.mlrf-display{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0;width:auto;min-width:0;max-width:100%;order:initial}
.ml-root.ml-polished .mlrf-display-tools .mlrf-view-options{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:11px}
.ml-root.ml-polished .mlrf-display-tools .mlrf-view-options>label{margin-right:5px}
.ml-root.ml-polished .mlrf-display-tools .mlrf-view-options>button{display:inline-flex;align-items:center;justify-content:center;min-height:34px;min-width:32px;padding:6px 9px;border:1px solid var(--ml-line);border-radius:8px;background:var(--mlp-bg);color:var(--ml-muted);font-size:11px;line-height:20px;white-space:nowrap}
.ml-root.ml-polished .mlrf-display-tools .mlrf-view-options>button:hover{background:var(--ml-soft);color:var(--ml-text)}
.ml-root.ml-polished .mlrf-display-tools .mlrf-view-options>button[aria-pressed=true]{background:var(--ml-soft);color:var(--ml-text);border-color:color-mix(in srgb,var(--ml-text) 32%,var(--ml-line))}
.ml-root.ml-polished .mlrf-display-tools>.mlp-display-tabs{display:flex;align-items:center;flex:none;gap:2px;margin:0;padding:3px;border:1px solid var(--ml-line);border-radius:9px;background:var(--ml-soft)}
.ml-root.ml-polished .mlrf-display-tools>.mlp-display-tabs>button{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:4px 10px;border:0;border-radius:6px;background:transparent;color:var(--ml-muted);font-size:11px;line-height:18px;white-space:nowrap}
.ml-root.ml-polished .mlrf-display-tools>.mlp-display-tabs>button:hover{color:var(--ml-text)}
.ml-root.ml-polished .mlrf-display-tools>.mlp-display-tabs>button.active{background:var(--mlp-bg);color:var(--ml-text);font-weight:550;box-shadow:0 1px 3px #0000000a}
.ml-root.ml-polished .mlrf-display-tools .mlrf-preview-toggle{font-size:11px;gap:6px;min-height:34px;color:var(--ml-muted)}
.ml-root.ml-polished .mlrf-display-tools .mlrf-preview-track{height:22px;width:40px}
.ml-root.ml-polished .mlrf-display-tools .mlrf-preview-track:before{line-height:22px;right:7px}
.ml-root.ml-polished .mlrf-display-tools .mlrf-preview-track:after{height:16px;width:16px}
.ml-root.ml-polished .mlrf-display-tools .mlrf-preview-toggle input{width:40px;height:22px}
.ml-root.ml-polished .mlrf-display-tools .mlrf-preview-toggle input:checked+.mlrf-preview-track:before{left:7px}
.ml-root.ml-polished .mlrf-display-tools .mlrf-preview-toggle input:checked+.mlrf-preview-track:after{transform:translateX(18px)}
.ml-root.ml-polished .mlrf-advanced>.mlrf-selected{padding-top:11px;margin-top:12px;gap:7px;min-width:0}
.ml-root.ml-polished .mlrf-advanced>.mlrf-selected>button:not(.mlrf-text){border:1px solid var(--ml-line);border-radius:6px;padding:4px 8px;max-width:min(350px,100%);background:var(--ml-soft)}
.ml-root.ml-polished .mlrf-advanced>.mlrf-selected>button:not(.mlrf-text):hover{border-color:var(--ml-muted)}
.ml-root.ml-polished .mlrf-advanced :is(button,summary,select):focus-visible,.ml-root.ml-polished .mlp-use-nav .mlp-search>:is(input,button):focus-visible{outline:2px solid color-mix(in srgb,var(--ml-text) 45%,transparent);outline-offset:2px}

@media(max-width:1400px){
  .ml-root.ml-polished .ml-nav.mlp-use-nav{gap:10px 16px}
  .ml-root.ml-polished .mlp-use-nav>.mlp-search{flex-basis:620px}
  .ml-root.ml-polished .mlp-use-nav .mlp-search>.mlrf-relation{flex-basis:220px}
  .ml-root.ml-polished .mlp-use-nav .mlp-search>input[name=sku]{flex-basis:150px;max-width:170px}
  .ml-root.ml-polished .mlrf-display-tools{justify-content:flex-start;margin-left:0}
}
@media(max-width:1000px){
  .ml-root.ml-polished .mlp-use-nav>.mlp-search{flex-basis:100%;justify-content:flex-start}
  .ml-root.ml-polished .mlp-use-nav .mlp-search>input{max-width:none}
  .ml-root.ml-polished .mlp-use-nav .mlp-search>input[name=sku]{flex:1 1 140px;max-width:none}
  .ml-root.ml-polished .mlrf-scope-tools{flex-basis:100%;gap:10px}
  .ml-root.ml-polished .mlrf-advanced-tools{gap:10px;padding-top:10px;margin-top:10px}
}
@media(max-width:760px){
  .ml-root.ml-polished .ml-nav.mlp-use-nav{padding:9px;gap:10px}
  .ml-root.ml-polished .mlp-use-nav>.mlp-inline-tabs{max-width:100%;flex-wrap:wrap;gap:2px}
  .ml-root.ml-polished .mlp-use-nav .mlp-inline-tabs>button{min-height:32px;padding:7px 12px;font-size:12px}
  .ml-root.ml-polished .mlp-use-nav>.mlp-search{gap:7px;width:100%;flex-wrap:wrap}
  .ml-root.ml-polished .mlp-use-nav .mlp-search>.mlrf-relation{flex:1 1 100%;width:100%;min-width:0;max-width:none}
  .ml-root.ml-polished .mlp-use-nav .mlp-search>input{flex:1 1 170px;min-width:0}
  .ml-root.ml-polished .mlp-use-nav .mlp-search>input[name=sku]{display:block;flex:1 1 130px;min-width:0;max-width:none}
  .ml-root.ml-polished .ml-panel.mlrf-advanced{padding:11px;border-radius:11px}
  .ml-root.ml-polished .mlrf-advanced-head{gap:8px;margin-bottom:9px}
  .ml-root.ml-polished .mlrf-advanced-actions{gap:2px}
  .ml-root.ml-polished .mlrf-advanced-actions .mlrf-text{padding:4px 7px}
  .ml-root.ml-polished .mlrf-advanced>.mlrf-advanced-line{gap:6px}
  .ml-root.ml-polished .mlrf-advanced .mlrf-quick>summary{min-height:32px;padding:6px 9px;gap:6px;font-size:11px}
  .ml-root.ml-polished .mlrf-scope-tools{gap:9px;flex-basis:100%}
  .ml-root.ml-polished .mlrf-selection-tools{gap:10px;min-height:30px}
  .ml-root.ml-polished .mlrf-scope-tools .mlot-people{flex:1 1 100%;width:100%;gap:6px}
  .ml-root.ml-polished .mlrf-scope-tools .mlot-people>select{flex:1 1 84px;max-width:none;min-width:0;font-size:11px}
  .ml-root.ml-polished .mlrf-scope-tools .mlot-date-control{flex:1 1 290px;width:100%}
  .ml-root.ml-polished .mlrf-scope-tools .mlot-date-control>button{justify-content:space-between}
  .ml-root.ml-polished .mlrf-scope-tools .mlot-date-control>button>span:first-child,.ml-root.ml-polished .mlrf-scope-tools .mlot-date-control>button>span:nth-child(3){min-width:0}
  .ml-root.ml-polished .mlrf-display-tools{width:100%;justify-content:space-between;gap:8px}
  .ml-root.ml-polished .mlrf-display-tools>.mlrf-display{gap:9px;justify-content:flex-start;width:auto;max-width:100%}
  .ml-root.ml-polished .mlrf-display-tools .mlrf-view-options{gap:5px}
}
@media(prefers-reduced-motion:reduce){.ml-root.ml-polished .mlrf-advanced .mlrf-quick>summary{transition:none}}

/* Every control stays directly available in one continuous toolbar. */
.ml-root.ml-polished .ml-panel.mlrf-advanced{display:block;position:relative;padding:9px 12px}
.ml-root.ml-polished .mlrf-main-row{display:flex;align-items:center;flex-wrap:nowrap;gap:6px;min-width:0;min-height:32px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--ml-line) transparent}
.ml-root.ml-polished .mlrf-main-row>.mlrf-advanced-head,.ml-root.ml-polished .mlrf-main-row>.mlrf-advanced-tools,.ml-root.ml-polished .mlrf-scope-tools{display:contents}
.ml-root.ml-polished .mlrf-selection-tools{order:1;flex:none;flex-wrap:nowrap;gap:8px;min-height:30px;padding:0;border:0}
.ml-root.ml-polished .mlrf-selection-tools>label{min-height:30px;gap:5px}
.ml-root.ml-polished .mlrf-selection-tools input[type=checkbox],.ml-root.ml-polished .mlrf-display-tools .mlrf-view-options input[type=checkbox]{width:13px;height:13px}
.ml-root.ml-polished .mlrf-scope-tools .mlot-people{order:2;flex:none;flex-wrap:nowrap;gap:4px;max-width:none;padding-right:6px;border-right:1px solid var(--ml-line)}
.ml-root.ml-polished .mlrf-scope-tools .mlot-people>select{height:30px;min-width:0;width:84px;max-width:84px;padding:0 5px;border-radius:6px;font-size:11px;flex:none}
.ml-root.ml-polished .mlrf-scope-tools .mlot-people>select[data-mlot-team]{width:76px;max-width:76px}
.ml-root.ml-polished .mlrf-scope-tools .mlot-date-control{height:30px;flex:none;width:auto;max-width:none;border-radius:6px}
.ml-root.ml-polished .mlrf-scope-tools .mlot-date-control>select{height:28px;width:72px;max-width:72px;flex-basis:72px;padding:0 5px;font-size:11px}
.ml-root.ml-polished .mlrf-scope-tools .mlot-date-control>button{height:28px;min-height:28px;padding:0 6px;gap:5px}
.ml-root.ml-polished .mlrf-scope-tools .mlot-date-control>button>span:first-child,.ml-root.ml-polished .mlrf-scope-tools .mlot-date-control>button>span:nth-child(3){min-width:50px}
.ml-root.ml-polished .mlrf-main-row>.mlrf-advanced-line{display:flex;order:0;flex:0 0 auto;align-items:center;justify-content:flex-start;gap:2px;flex-wrap:nowrap;min-width:max-content;margin:0;padding:0 6px 0 0;border-right:1px solid var(--ml-line)}
.ml-root.ml-polished .mlrf-main-row .mlrf-quick{flex:none}
.ml-root.ml-polished .mlrf-main-row .mlrf-quick>summary{min-height:30px;padding:5px 6px;gap:4px;font-size:11px;border-radius:6px;background:transparent;border-color:transparent}
.ml-root.ml-polished .mlrf-main-row .mlrf-quick>summary>svg{flex:none;opacity:.65}
.ml-root.ml-polished .mlrf-main-row .mlrf-quick>summary.active{background:transparent}
.ml-root.ml-polished .mlrf-main-row .mlrf-quick>summary:hover,.ml-root.ml-polished .mlrf-main-row .mlrf-quick[open]>summary{background:var(--mlp-bg);border-color:var(--ml-line)}
.ml-root.ml-polished .mlrf-main-row .mlrf-quick-menu{position:fixed;top:0;left:0;z-index:65;width:260px;max-width:calc(100vw - 24px);max-height:min(420px,calc(100vh - 24px));overflow:auto}
.ml-root.ml-polished .mlrf-display-tools{order:3;flex:none;flex-wrap:nowrap;gap:6px;margin-left:0;width:auto;max-width:none;justify-content:flex-end}
.ml-root.ml-polished .mlrf-display-tools>.mlrf-display{flex-wrap:nowrap;gap:7px;width:auto;max-width:none}
.ml-root.ml-polished .mlrf-display-tools .mlrf-view-options{flex-wrap:nowrap;gap:3px}
.ml-root.ml-polished .mlrf-display-tools .mlrf-view-options>label{min-height:30px;gap:5px;margin-right:3px}
.ml-root.ml-polished .mlrf-display-tools .mlrf-view-options>button{min-height:30px;min-width:28px;padding:4px 6px;border-radius:6px}
.ml-root.ml-polished .mlrf-display-tools>.mlp-display-tabs{padding:2px;border-radius:7px}
.ml-root.ml-polished .mlrf-display-tools>.mlp-display-tabs>button{min-height:24px;padding:3px 7px;border-radius:5px}
.ml-root.ml-polished .mlrf-display-tools .mlrf-preview-toggle{min-height:30px;gap:5px}
.ml-root.ml-polished .mlrf-display-tools .mlrf-preview-track{width:34px;height:20px}
.ml-root.ml-polished .mlrf-display-tools .mlrf-preview-track:before{line-height:20px;right:5px}
.ml-root.ml-polished .mlrf-display-tools .mlrf-preview-track:after{width:14px;height:14px}
.ml-root.ml-polished .mlrf-display-tools .mlrf-preview-toggle input{width:34px;height:20px}
.ml-root.ml-polished .mlrf-display-tools .mlrf-preview-toggle input:checked+.mlrf-preview-track:before{left:5px}
.ml-root.ml-polished .mlrf-display-tools .mlrf-preview-toggle input:checked+.mlrf-preview-track:after{transform:translateX(14px)}
.ml-root.ml-polished .mlrf-advanced-head>.mlrf-advanced-actions{order:4;flex:none;flex-wrap:nowrap;gap:0;margin:0;padding-left:6px;border-left:1px solid var(--ml-line)}
.ml-root.ml-polished .mlrf-advanced-actions .mlrf-text{padding:4px 6px;min-height:28px;border-radius:6px;white-space:nowrap}
.ml-root.ml-polished .mlrf-advanced>.mlrf-selected{margin-top:9px;padding-top:9px}
.ml-root.ml-polished .mlrf-advanced-tools>.mlrf-container-path{order:0;flex:none;display:flex;gap:5px;white-space:nowrap}
.ml-root.ml-polished .mlrf-advanced:has(.mlrf-quick[open],[data-mlot-date-popover]:not([hidden])){z-index:60}

/* Selection belongs to the content surface; display switches belong to filters. */
.ml-root.ml-polished .mlp-content-panel{background:var(--mlp-bg);border:1px solid var(--ml-line);border-radius:12px;min-height:290px;padding:12px 16px 16px}
.ml-root.ml-polished .mlrf-content-scope{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-height:28px;margin-bottom:10px;font-size:11px;color:var(--ml-muted)}
.ml-root.ml-polished [data-ml-results]>.ml-empty{border:0;background:transparent;min-height:220px;margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.ml-root.ml-polished [data-ml-results]>.mlp-grid{margin-bottom:0}
.ml-root.ml-polished .mlrf-footer-display{display:flex;align-items:center;gap:16px;flex:none}
.ml-root.ml-polished .mlrf-filter-footer .ml-inline-check,.lc-page .mlrf-filter-footer .ml-inline-check{display:inline-flex;align-items:center;gap:7px;line-height:20px;min-height:24px;margin:0;white-space:nowrap}
.ml-root.ml-polished .mlrf-filter-footer .ml-inline-check input[type=checkbox],.lc-page .mlrf-filter-footer .ml-inline-check input[type=checkbox],.ml-root.ml-polished .mlrf-content-scope input[type=checkbox]{display:block;width:14px;height:14px;min-width:14px;min-height:14px;flex:0 0 14px;margin:0;vertical-align:middle;position:static;transform:none}
.ml-root.ml-polished .mlrf-main-row .mlrf-advanced-actions{display:flex;align-items:center;margin-left:auto;gap:3px}
.ml-root.ml-polished .mlrf-main-row .mlrf-toolbar-end{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:3px;padding-left:6px;margin-left:3px;border-left:1px solid var(--ml-line)}
.ml-root.ml-polished .mlrf-main-row>.mlrf-advanced-line{border-right:0}
.ml-root.ml-polished .mlrf-toolbar-end>button{height:30px;min-width:28px;padding:4px 6px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center}
.ml-root.ml-polished .mlrf-content-scope .ml-inline-check{display:inline-flex;align-items:center;gap:6px;line-height:20px;white-space:nowrap;margin:0}
.lc-page .mlrf-filter-footer .ml-inline-check input[type=checkbox]{padding:0!important;border-radius:3px;box-sizing:border-box;align-self:center}
@media(max-width:760px){.ml-root.ml-polished .mlp-content-panel{padding:10px}.ml-root.ml-polished .mlrf-footer-display{gap:10px}.ml-root.ml-polished .mlrf-content-scope{gap:10px}}
