/* Mobile vault workspace: one compact header, original actions kept under More. */
.sb-safe-secondary{display:contents}
.sb-safe-tools-toggle[hidden],.sb-safe-secondary[hidden]{display:none!important}
@media(max-width:820px){
 body[data-route=safe]:has(#view>.sb-safe-web-head) .topbar{display:none!important}
 body[data-route=safe]:has(#view>.sb-safe-web-head) #view{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:8px!important;align-content:start}
 body[data-route=safe]:has(#view>.sb-safe-web-head) #view>.sb-safe-web-head{margin:0!important;display:flex!important;align-items:center;min-width:0;min-height:44px}
 body[data-route=safe]:has(#view>.sb-safe-web-head) .sb-safe-web-head h1{font-size:20px;margin:0;line-height:1.2}
 body[data-route=safe]:has(#view>.sb-safe-web-head) .sb-safe-web-tools{display:flex;position:relative;margin:0;gap:6px;align-items:center;flex-wrap:nowrap}
 body[data-route=safe]:has(#view>.sb-safe-web-head) .sb-safe-web-tools>button{min-height:44px;padding:7px 10px!important;font-size:12px!important;white-space:nowrap}
 body[data-route=safe]:has(#view>.sb-safe-web-head) .sb-safe-web-tools>.sb-safe-secondary:not([hidden]){display:grid;position:absolute;top:50px;right:0;z-index:60;grid-template-columns:repeat(2,minmax(0,1fr));width:min(360px,calc(100vw - 16px));max-height:calc(100dvh - 150px);overflow:auto;gap:7px;padding:10px;border:1px solid var(--sb-edge,#d4dce5);border-radius:10px;background:var(--sb-surface,#fff);box-shadow:0 8px 28px #0003}
 body[data-route=safe]:has(#view>.sb-safe-web-head) .sb-safe-secondary button{min-height:48px;white-space:normal;font-size:12px!important}
 body[data-route=safe]:has(#view>.sb-safe-web-head) .sb-safe-mount,body[data-route=safe]:has(#view>.sb-safe-web-head) .sb-safe-link-context,body[data-route=safe]:has(#view>.sb-safe-web-head) .sb-safe-setup-hint{grid-column:1/-1;margin:0}
 body[data-route=safe]:has(#view>.sb-safe-web-head) .sb-safe-frame{border-radius:6px}
}
