/* 2026-10-17: compact library controls and top navigation. */
.ml-root.ml-polished .mlrf-preview-toggle{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:var(--ml-muted);position:relative;min-height:24px;cursor:pointer}
.ml-root.ml-polished .mlrf-preview-toggle input{position:absolute;opacity:0;width:26px;height:14px;margin:0;left:0;top:50%;transform:translateY(-50%)}
.ml-root.ml-polished .mlrf-preview-toggle .mlrf-preview-track{position:relative;display:inline-block;width:26px;height:14px;flex:0 0 26px;border-radius:10px;background:#c4c6c9}
.ml-root.ml-polished .mlrf-preview-toggle .mlrf-preview-track:before{content:none!important}
.ml-root.ml-polished .mlrf-preview-toggle .mlrf-preview-track:after{content:'';position:absolute;left:2px;top:2px;width:10px;height:10px;border-radius:50%;background:#fff;transition:transform .12s}
.ml-root.ml-polished .mlrf-preview-toggle input:checked+.mlrf-preview-track{background:var(--ml-text,#333)}
.ml-root.ml-polished .mlrf-preview-toggle input:checked+.mlrf-preview-track:after{transform:translateX(12px)}
.ml-root.ml-polished .mlrf-preview-toggle input:focus-visible+.mlrf-preview-track{outline:2px solid #6689c0;outline-offset:2px}
.ml-root.ml-polished .mlrf-main-row>.mlrf-advanced-head{display:flex;order:1;flex:none;margin:0;padding:0}
.ml-root.ml-polished .mlrf-main-row>.mlrf-advanced-head>.mlrf-advanced-actions{order:initial;margin:0;padding-left:8px;border-left:1px solid var(--ml-line)}
.ml-root.ml-polished .mlrf-scope-tools .mlot-people{order:3;margin-left:auto;padding-right:0;border-right:0;padding-left:10px;border-left:1px solid var(--ml-line)}
.ml-root.ml-polished .mlrf-display-tools{order:4}
.ml-root.ml-polished .mlrf-main-row>.mlrf-toolbar-end{order:5}
.ml-root.ml-polished .mlrf-content-scope{justify-content:flex-end}
.ml-root.ml-polished .mlrf-main-row{gap:5px}
.ml-root.ml-polished .mlrf-scope-tools .mlot-date-control>button{min-width:110px;gap:5px;padding:0 8px;color:var(--ml-muted);font-size:11px}
.ml-root.ml-polished .mlrf-scope-tools .mlot-date-control>button>span{min-width:0!important}
.ml-root.ml-polished .mlot-date-control{background:transparent;border-color:var(--ml-line)}
.ml-hover-select{display:inline-block;position:relative;flex:none;font-size:11px;min-width:72px;color:var(--ml-text,#333)}
.ml-hover-select>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:7px;cursor:pointer;min-height:29px;padding:0 8px;white-space:nowrap;border:1px solid var(--ml-line,#e6e6e6);border-radius:6px;background:var(--mlp-bg,#fff)}
.ml-hover-select>summary::-webkit-details-marker{display:none}.ml-hover-select>summary:after{content:'⌄';font-size:10px;color:var(--ml-muted,#999)}
.ml-hover-select>summary[aria-disabled=true]{opacity:.5;cursor:default}
.ml-hover-select-menu{position:fixed;z-index:1120;max-height:320px;overflow:auto;padding:5px;border:1px solid var(--ml-line,#e6e6e6);border-radius:8px;background:var(--mlp-bg,#fff);box-shadow:0 8px 24px #0002}
.ml-hover-select:not([open])>.ml-hover-select-menu{display:none}
.ml-hover-select-menu>button{display:block;border:0;width:100%;text-align:left;background:transparent;color:inherit;padding:8px 10px;font-size:12px;border-radius:4px;cursor:pointer}
.ml-hover-select-menu>button:hover,.ml-hover-select-menu>button[aria-pressed=true]{background:var(--ml-soft,#f3f3f3)}
.mlot-date-control>.ml-hover-select>summary{border:0;border-radius:6px 0 0 6px;min-height:28px;background:transparent;padding:0 6px}
.ml-root.ml-polished .mlot-people>select[hidden],.ml-root.ml-polished .mlot-date-control>select[hidden]{display:none!important}
.material-top-nav{display:flex;align-items:center;gap:4px;margin:0 auto 0 32px;min-width:0;font-size:12px}
.material-top-nav[hidden]{display:none}
.material-top-nav>details{position:relative}.material-top-nav summary{list-style:none;cursor:pointer;white-space:nowrap;padding:9px 13px;border-radius:7px;color:var(--muted,#777);font-weight:500;display:flex;gap:8px;align-items:center}
.material-top-nav summary::-webkit-details-marker{display:none}.material-top-nav summary:after{content:'⌄';font-size:10px;opacity:.6}
.material-top-nav summary:hover,.material-top-nav details[open]>summary,.material-top-nav details.is-current>summary{background:var(--panel-alt,#f4f4f4);color:var(--text,#292929)}
.material-top-menu{position:absolute;top:100%;left:0;min-width:148px;max-height:65vh;overflow:auto;background:var(--panel,#fff);border:1px solid var(--border,#e6e6e6);padding:6px;box-shadow:0 8px 28px #0002;border-radius:9px;z-index:1500}
.material-top-nav details:not([open])>.material-top-menu{display:none}.material-top-menu a{display:block;text-decoration:none;color:var(--text,#333);padding:9px 11px;white-space:nowrap;border-radius:5px;font-size:12px}
.material-top-menu a:hover,.material-top-menu a[aria-current=page]{background:var(--panel-alt,#f4f4f4);color:var(--text,#222)}
@media(max-width:1200px){.material-top-nav{margin-left:10px;gap:0}.material-top-nav summary{padding:8px;font-size:11px}}
@media(max-width:900px){.material-top-nav{overflow-x:auto}.material-top-menu{position:fixed;top:44px;left:auto}.material-top-nav summary{padding:7px 6px;font-size:10px}.topbar-right{margin-left:8px}}

/* 2.218: the complete scope/display group occupies the right edge. */
.ml-root.ml-polished .mlrf-main-row [data-recycle-organize]{order:1;flex:none;margin-left:auto}
.ml-root.ml-polished .mlrf-scope-tools .mlot-people{order:initial;margin-left:0;padding-left:0;border-left:0}
.ml-root.ml-polished .mlrf-main-row>.mlrf-advanced-head{order:2}
.ml-root.ml-polished .mlrf-main-row>.mlrf-toolbar-end{order:3;gap:7px;margin-left:0;border-left:0;padding-left:0}
.ml-root.ml-polished .mlrf-layout-switch{display:inline-flex;align-items:center;gap:2px;padding:2px;border:1px solid var(--ml-line);border-radius:7px;flex:none}
.ml-root.ml-polished .mlrf-layout-switch>button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:4px;background:transparent;color:var(--ml-muted);width:27px;min-width:27px;height:25px;padding:4px;cursor:pointer}
.ml-root.ml-polished .mlrf-layout-switch>button[aria-pressed=true]{background:var(--ml-soft);color:var(--ml-text)}
.ml-root.ml-polished .mlrf-toolbar-end>.mlp-display-tabs{display:inline-flex;align-items:center;flex:none;gap:2px;padding:2px;border:1px solid var(--ml-line);border-radius:7px;background:var(--ml-soft)}
.ml-root.ml-polished .mlrf-toolbar-end>.mlp-display-tabs>button{min-height:24px;height:24px;padding:3px 8px;line-height:18px;border:0;border-radius:5px;color:var(--ml-muted);background:transparent;font-size:11px;white-space:nowrap}
.ml-root.ml-polished .mlrf-toolbar-end>.mlp-display-tabs>button.active{background:var(--mlp-bg);color:var(--ml-text);box-shadow:0 1px 3px #0000000a}
.ml-root.ml-polished .mlrf-main-row .mlrf-selection-tools{order:1;margin-left:auto}
.ml-root.ml-polished .mlrf-main-row .mlrf-display-tools{order:3;margin-left:0}
