/* Only Social's existing shell surfaces; React-owned content cards keep their styles. */
html.light .guth-shell>.guth-social-topbar{background:#fffdf7;border-color:#d1d4c5}
html.light .guth-shell>.guth-rail{background:#eeeee5;border-color:#d1d4c5}
html.dark .guth-shell>.guth-social-topbar{background:#1b201a;border-color:#333b2f}
html.dark .guth-shell>.guth-rail{background:#161a15;border-color:#333b2f}
.guth-social-topbar [data-social-bridge-links]{display:flex;align-items:center;gap:2px;min-width:0}
.guth-social-topbar [data-social-bridge-links] :is(a,button){display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 9px;border:0;border-radius:8px;background:transparent;color:var(--nb-muted);font:500 13px/1.3 Inter,system-ui,sans-serif;text-decoration:none;white-space:nowrap;cursor:pointer}
.guth-social-topbar [data-social-bridge-links] :is(a,button):hover{background:var(--nb-surface);color:var(--nb-fg)}
.guth-social-topbar [data-social-bridge-links] :is(a,button):focus-visible{outline:2px solid var(--nb-accent);outline-offset:2px}
.guth-rail>[data-social-bridge-info]{display:grid;gap:1px;flex:none;margin-top:auto;padding:12px 12px 4px;border-top:1px solid var(--nb-border-subtle)}
.guth-rail>[data-social-bridge-info]+guth-workspace-utilities{margin-top:0}
[data-social-bridge-info] .social-bridge-label{padding:2px 10px;color:var(--nb-muted);font:600 11px/1.4 Inter,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase}
[data-social-bridge-info] a{display:block;min-height:36px;padding:8px 10px;border-radius:8px;color:var(--nb-muted);font:500 13px/1.4 Inter,system-ui,sans-serif;text-decoration:none}
[data-social-bridge-info] a:hover{background:var(--nb-surface);color:var(--nb-fg)}
[data-social-bridge-info] a:focus-visible{outline:2px solid var(--nb-accent);outline-offset:1px}
.guth-mobile-more-panel [data-social-bridge-info]{display:grid;gap:1px;margin:8px 0;padding:10px 4px;border-top:1px solid var(--nb-border-subtle)}
@media(max-width:767px){.guth-rail>[data-social-bridge-info]{display:none}.guth-social-topbar [data-social-bridge-links] :is(a,button){padding-inline:6px;font-size:12px}}

:root[data-guth-shell="app"].light{--guth-rail-surface:#eeeee5;--guth-rail-line:#d8ddcf;--guth-rail-text:#233127;--guth-rail-muted:#64715e;--guth-rail-active:#e3e8dd}
:root[data-guth-shell="app"] .guth-social-topbar{height:64px;min-height:64px;background:#1b201a!important;border-color:#333b2f!important;font:500 13px/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
:root[data-guth-shell="app"].light .guth-social-topbar{background:#f5f4ed!important;border-color:#d1d4c5!important}
:root[data-guth-shell="app"] .guth-social-topbar>[class*="ml-auto"]{gap:3px}
:root[data-guth-shell="app"] .guth-social-topbar [data-social-bridge-links]{order:0;gap:7px}
:root[data-guth-shell="app"] .guth-social-topbar [data-social-bridge-links]>:is(a,button),:root[data-guth-shell="app"] .guth-social-topbar [data-social-shell-docs]{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;height:40px;min-height:40px;padding:0 13px;border:1px solid #333b2f;border-radius:9px;color:#f0ecdf;font:inherit;text-decoration:none}
:root[data-guth-shell="app"] .guth-social-topbar [data-social-shell-docs]{order:1;margin-left:4px}
:root[data-guth-shell="app"] .guth-social-topbar [data-social-shell-settings]{order:2}
:root[data-guth-shell="app"] .guth-social-topbar [data-social-shell-theme]{order:3}
:root[data-guth-shell="app"] .guth-social-topbar :is([data-social-shell-settings],[data-social-shell-theme]){box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-height:40px;padding:0;border:0;border-radius:9px;background:transparent;color:#b7b8aa;text-decoration:none}
:root[data-guth-shell="app"] .guth-social-topbar :is([data-social-shell-settings],[data-social-shell-theme]) svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
:root[data-guth-shell="app"] .guth-social-topbar guth-workspace-identity[segment="account"]{order:4;margin-left:5px;padding-left:10px;border-left:1px solid #333b2f}
:root[data-guth-shell="app"].light .guth-social-topbar :is([data-social-shell-docs],[data-social-bridge-links]>a,[data-social-bridge-links]>button,guth-workspace-identity[segment="account"]){border-color:#d1d4c5;color:#233127}
:root[data-guth-shell="app"].light .guth-social-topbar :is([data-social-shell-settings],[data-social-shell-theme]){color:#596457}
:root[data-guth-shell="app"] .guth-rail>[data-social-bridge-info]{margin-top:auto;padding-top:12px;border-top:1px solid var(--guth-rail-line)}
:root[data-guth-shell="app"] .guth-rail>[data-social-bridge-info]>a{font-size:13px!important;color:var(--guth-rail-muted)!important}
@media(min-width:768px){:root[data-guth-shell="app"] .guth-shell{grid-template-rows:64px minmax(0,1fr)!important}}
@media(max-width:767px){:root[data-guth-shell="app"] .guth-social-topbar{height:auto;min-height:64px;flex-wrap:wrap;padding-block:8px}:root[data-guth-shell="app"] .guth-social-topbar>.guth-social-search{order:6;flex:1 0 100%;max-width:none}:root[data-guth-shell="app"] .guth-social-topbar [data-social-bridge-links]>:is(a,button),:root[data-guth-shell="app"] .guth-social-topbar [data-social-shell-docs]{padding-inline:8px}}
/* The shared rail grid must not override Social's native mobile tabs/More menu. */
@media(max-width:767px){
 :root[data-guth-shell="app"] .guth-shell>aside.guth-rail.guth-unified-rail{align-items:center;gap:8px}
 :root[data-guth-shell="app"] .guth-shell>aside.guth-rail.guth-unified-rail>nav[aria-label="Social sections"].guth-rail-group{display:flex;flex:1 1 auto;min-width:0;flex-direction:row;align-items:center;gap:4px;overflow-x:auto;margin:0;padding:0;border-top:0}
 :root[data-guth-shell="app"] .guth-shell>aside.guth-rail.guth-unified-rail>nav[aria-label="Social sections"].guth-rail-group>a{width:auto;flex:none;white-space:nowrap}
 :root[data-guth-shell="app"] .guth-shell>aside.guth-rail.guth-unified-rail>nav[aria-label="Social overview"]{display:none}
 :root[data-guth-shell="app"] .guth-shell>aside.guth-rail.guth-unified-rail>.guth-mobile-more{flex:none}
}
