/* Disclosure content must respect closed state even when older styles force a grid/flex. */
details:not([open]) > :not(summary){display:none!important}
summary{cursor:pointer;touch-action:manipulation;user-select:none}
summary:focus-visible{outline:2px solid var(--cyan,#6addec);outline-offset:4px;border-radius:6px}
details>summary::marker{color:var(--cyan,#6addec)}
/* Scan history: bounded rows, catalogue logos can never resize the sidebar. */
#recentScans{display:grid;gap:7px;padding:0;max-height:296px;overflow:auto;overscroll-behavior:contain}
#recentScans .home-071-recent-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto 10px;align-items:center;gap:9px;min-height:70px;max-height:84px;padding:9px;overflow:hidden;cursor:pointer;text-align:left;width:100%;color:var(--text)}
#recentScans .home-071-recent-thumb{display:block;width:36px!important;height:50px!important;max-width:36px;object-fit:contain;border-radius:5px}
#recentScans .home-071-recent-copy{min-width:0;overflow:hidden}
#recentScans .home-071-recent-copy>strong,#recentScans .home-071-recent-copy>small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#recentScans .home-071-recent-copy>strong{font-size:12px}
#recentScans .home-071-recent-copy>small{font-size:10px;margin-top:3px}
#recentScans .fx-recent-set-mark{display:block!important;width:auto!important;max-width:58px!important;height:15px!important;max-height:15px!important;object-fit:contain!important;object-position:left;margin:0 0 3px}
#recentScans .home-071-recent-meta{display:grid;gap:5px;justify-items:end;font-size:10px;min-width:0}
#recentScans .home-071-confidence{font-size:9px;padding:4px 6px;white-space:nowrap}
.fx9-recent-controls{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:7px;margin:8px 0}
.fx9-recent-controls button,.fx9-history-manage button{padding:7px 9px;min-height:34px;border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:8px;cursor:pointer;font-size:11px}
.fx9-history-manage{margin:8px 0;font-size:11px}.fx9-history-manage>div{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}
.fx9-admin-account{padding:18px;margin-bottom:18px;display:flex;flex-wrap:wrap;align-items:center;gap:10px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}
.fx9-admin-account>div{flex:1;min-width:190px}.fx9-admin-account strong,.fx9-admin-account small{display:block}.fx9-admin-account small{color:var(--muted);line-height:1.5;margin-top:6px}
#fx9AdminExportStatus{width:100%;font-size:12px;color:var(--cyan)}
.fx-assistant-message .fx-assistant-evidence{display:block;font-size:10px;color:var(--muted);margin:6px 0 0}
.fx-assistant-quick{max-height:340px;overflow:auto}
.fx8-album-files{scroll-margin-top:95px;scroll-margin-bottom:110px}
@media(max-width:620px){#recentScans .home-071-recent-row{grid-template-columns:36px minmax(0,1fr) auto;gap:7px}#recentScans .home-071-recent-arrow{display:none}.fx9-admin-account .btn{flex:1}.fx8-album-files .living-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:8px}.fx8-album-files .living-toolbar>.btn{font-size:12px;white-space:normal;margin:0}}
