.account-scope-bar{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:0 0 28px;padding:15px 18px;border:1px solid var(--line);border-radius:9px;background:#fff}
.account-scope-control{display:flex;align-items:center;gap:13px;flex-wrap:wrap}.account-scope-control>span{font-size:11px;font-weight:600;color:var(--muted);letter-spacing:.02em}
.account-scope-control button{min-height:44px;border:1px solid #cbd5ce;border-radius:6px;background:#f4f7f3;padding:9px 13px;color:var(--ink);font-weight:600;font-size:12px;display:flex;align-items:center;gap:15px}
.account-scope-control svg{width:14px;height:14px}.account-scope-notice{flex:1;font-size:11px;line-height:1.6;color:#58695e;margin:0;min-width:160px}
.account-scope-reset{border:0;background:none;color:var(--green);font-size:12px;min-height:44px;text-decoration:underline;text-underline-offset:3px}
.account-scope-dialog{width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:26px;border:1px solid var(--line);border-radius:12px;color:var(--ink);background:#fff;overflow:auto}
.account-scope-dialog::backdrop{background:#182b2366}.account-scope-dialog h2{font-size:23px;margin:10px 0}.account-scope-dialog p{font-size:12px;line-height:1.7;color:#58695e}
.account-scope-dialog label{display:flex;align-items:center;gap:12px;min-height:48px;padding:10px 7px;font-size:14px;cursor:pointer}.account-scope-dialog label span{overflow-wrap:anywhere;min-width:0}
.account-scope-dialog input[type=checkbox]{width:19px;height:19px;flex:0 0 19px;accent-color:var(--green);margin:0}.account-scope-all{border-bottom:1px solid var(--line);font-weight:600}
.account-scope-list{max-height:45dvh;overflow:auto;margin:8px 0}.account-scope-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:18px}.account-scope-actions button{min-height:44px;padding:10px 17px;border-radius:6px;font-size:13px}
.account-scope-dialog button:disabled,.account-scope-bar button:disabled{opacity:.55;cursor:default}.account-scope-dialog [role=alert]{color:#9c3428;min-height:1.7em}.account-scope-export-options{display:grid;gap:12px;margin-top:18px}.account-scope-export-options button{min-height:48px;text-align:left;padding:12px;border:1px solid var(--line);border-radius:6px;background:#f5f7f3;color:var(--ink)}
.held-elsewhere{display:block;font-size:10px;color:#58695e;margin-top:4px}.scope-table-note{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
@media(max-width:600px){.account-scope-bar{gap:6px 12px;padding:12px;margin-bottom:22px}.account-scope-control{width:100%;justify-content:space-between;gap:8px}.account-scope-control button{max-width:100%;font-size:11px}.account-scope-notice{font-size:11px}.account-scope-dialog{padding:20px}.account-scope-actions button{flex:1}.account-scope-reset{font-size:11px}}
/* Compact global account picker; the export dialog retains its existing layout. */
.account-scope-bar{display:flex;align-items:center;margin:0;padding:0;flex-shrink:0}
header .header-right #account-scope-open{display:flex;align-items:center;gap:8px;min-height:36px;border:0;border-radius:2px;background:transparent;padding:6px 2px;color:var(--ink);font-size:12px;font-weight:500;white-space:nowrap}
#account-scope-open:hover{color:var(--green)}#account-scope-open svg{width:12px;height:12px;flex-shrink:0}
#account-scope-dialog{position:fixed;inset:auto;margin:0;width:280px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:17px;border-radius:5px;box-shadow:0 5px 18px #182b231c;overflow:auto}
#account-scope-dialog::backdrop{background:transparent;backdrop-filter:none}
#account-scope-dialog h2{font:600 13px var(--sans,Arial,sans-serif);margin:0 0 9px}
#account-scope-dialog label{min-height:40px;padding:8px 2px;font-size:13px;gap:10px}
#account-scope-dialog input[type=checkbox]{width:17px;height:17px;flex-basis:17px}
#account-scope-dialog .account-scope-list{margin:4px 0;max-height:40dvh}
#account-scope-dialog .account-scope-actions{border-top:1px solid var(--line);padding-top:12px;margin-top:8px;gap:8px;align-items:center}
#account-scope-dialog .account-scope-actions button{min-height:34px;padding:6px 9px;font-size:12px;flex:none}
#account-scope-dialog .account-scope-reset{margin-right:auto;background:transparent;border:0;color:var(--green)}
#account-scope-dialog #account-scope-feedback:empty{display:none}
#account-scope-dialog #account-scope-draft-count{margin:7px 0;font-size:11px}
#account-scope-dialog .account-scope-notice{min-width:0;font-size:12px;margin:6px 0 10px}
.scope-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:600px){header .header-right{gap:12px;flex-wrap:wrap;justify-content:flex-end}header .header-right #account-scope-open{font-size:11px;min-height:44px}#account-scope-dialog label{min-height:44px}header .header-right .session-link{font-size:11px}}
.account-scope-bar{border:0;border-radius:0;background:transparent}
