/* R323: shared identity geometry, right-aligned account commands, source slots. */
html:root[data-sw-density] .atlas-shell.atlas-shell.atlas-shell.atlas-shell .lg-app-header .lg-brand,
html:root[data-sw-density] .atlas-shell.atlas-shell.atlas-shell.atlas-shell .sw-brand{gap:6px!important}
html:root[data-sw-density] .atlas-shell.atlas-shell.atlas-shell.atlas-shell .lg-app-header .lg-brand img,
html:root[data-sw-density] .atlas-shell.atlas-shell.atlas-shell.atlas-shell .sw-brand>img{width:50px!important;height:50px!important;min-width:50px!important;object-fit:contain;flex-shrink:0}
.lg259 .lg-heading-actions .atlas-account-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;width:100%;margin-left:auto}
.lg259 .lg-heading-actions .atlas-account-actions .atlas-navigation,.lg259 .lg-heading-actions .atlas-account-actions #atlas-account-sync-actions,.lg259 .lg-heading-actions .atlas-account-actions #atlas-account-refresh-action{display:contents}
.lg259 .lg-heading-actions{justify-content:flex-end}
html:root[data-sw-density] .atlas-shell.atlas-shell.atlas-shell.atlas-shell.lg259 .lg-source-bar-track{display:inline-grid;grid-template-columns:repeat(5,28px);gap:8px!important;align-items:center}
html:root[data-sw-density] .atlas-shell.atlas-shell.atlas-shell.atlas-shell.lg259 :is(.lg-source-bar,.lg-source-bar-empty){box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex:none;width:28px!important;min-width:28px!important;height:32px;min-height:32px;padding:0!important;border:0;background:transparent;border-radius:4px}
html:root[data-sw-density] .atlas-shell.atlas-shell.atlas-shell.atlas-shell.lg259 :is(.lg-source-bar,.lg-source-bar-empty)>span{display:block;flex:none;width:28px!important;height:8px!important;border-radius:3px;background:#dce4e7}
html:root[data-sw-density] .atlas-shell.atlas-shell.atlas-shell.atlas-shell.lg259 .lg-confidence-five{gap:8px;flex-wrap:wrap}
html:root[data-sw-density] .atlas-shell.atlas-shell.atlas-shell.atlas-shell.lg259 .lg-confidence-five i{flex:0 0 28px;width:28px;height:8px}

.lg259 .lg-heading-actions .atlas-account-actions>span>button,.lg259 .lg-heading-actions .atlas-account-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px}
.lg259 .lg-heading-actions .atlas-account-actions button svg{width:18px;height:18px;flex:none}
html:root[data-sw-density] .atlas-shell.atlas-shell.atlas-shell.atlas-shell.lg259 .lg-account-heading{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:16px;width:100%}
html:root[data-sw-density] .atlas-shell.atlas-shell.atlas-shell.atlas-shell.lg259 .lg-account-heading>div:first-child{flex:1 1 280px;min-width:0}
html:root[data-sw-density] .atlas-shell.atlas-shell.atlas-shell.atlas-shell.lg259 .lg-heading-actions{display:grid;grid-template-columns:max-content max-content;align-items:center;justify-content:end;gap:8px 12px;max-width:100%;min-width:0;width:auto;flex:0 1 auto;margin-left:auto}
html:root[data-sw-density] .atlas-shell.atlas-shell.atlas-shell.atlas-shell.lg259 .lg-heading-actions>.atlas-saved-state{grid-column:1/-1;justify-self:end}
html:root[data-sw-density] .atlas-shell.atlas-shell.atlas-shell.atlas-shell.lg259 .lg-heading-actions .atlas-account-actions{grid-column:1/-1;min-width:0;width:auto!important;display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap}
html:root[data-sw-density] .atlas-shell.atlas-shell.atlas-shell.atlas-shell.lg259 .lg-heading-actions .atlas-account-actions button{box-sizing:border-box;flex:0 0 36px;width:36px!important;min-width:36px!important;max-width:36px;height:36px;min-height:36px;padding:8px!important;white-space:nowrap;overflow:hidden;font-size:0!important;line-height:1}
html:root[data-sw-density] .atlas-shell.atlas-shell.atlas-shell.atlas-shell.lg259 .lg-heading-actions .atlas-account-actions .atlas-navigation button{font-size:18px!important}
html:root[data-sw-density] .atlas-shell.atlas-shell.atlas-shell.atlas-shell.lg259 .lg-heading-actions .atlas-account-actions .atlas-policy-action>span{display:none}
@media(max-width:420px){html:root[data-sw-density] .atlas-shell.atlas-shell.atlas-shell.atlas-shell.lg259 .lg-heading-actions{width:100%;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}

/* R325: working workbook download remains labelled at every reading density. */
html:root[data-sw-density] .atlas-shell.atlas-shell.atlas-shell.atlas-shell.lg259 button.atlas-working-download{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto!important;min-width:0!important;max-width:100%;height:auto;min-height:36px;padding:8px 12px!important;font-size:14px!important;line-height:1.4;white-space:normal;overflow:visible;background:#087f9c!important;color:#fff!important;border:1px solid #087f9c!important}
html:root[data-sw-density] .atlas-shell.atlas-shell.atlas-shell.atlas-shell.lg259 button.atlas-working-download>span:not(.wizard-running-circle){position:static!important;width:auto!important;height:auto!important;clip:auto!important;overflow:visible!important;display:inline!important}
