/* Shared chrome. Load after page styles so all three tools use the same geometry. */
.site-header.unified-header{position:sticky;top:0;z-index:100;height:76px;padding:0 3%;gap:16px;flex:none;box-sizing:border-box;border-bottom:1px solid var(--tr-line,var(--sp-line,#e5e9ef));background:var(--tr-bg,var(--sp-bg,#f6f7fa))}
.site-header.unified-header .brand{display:flex;align-items:center;gap:12px;flex:none;margin:0;font-size:19px;line-height:1.2;color:var(--tr-text,var(--sp-text,#263647))}
.site-header.unified-header .brand-logo{width:62px;height:40px;object-fit:contain;flex:none;border-radius:7px}
.site-header.unified-header .brand small{display:block;margin-top:5px;font-size:7px;line-height:1.3;letter-spacing:1.2px}
.site-header.unified-header .header-right{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
/* Authentication gating takes precedence over all shared header layouts. */
body.auth-pending .site-header .header-right{display:none!important}
.site-header.unified-header .account-control{display:flex;align-items:center;justify-content:center;min-width:38px;height:38px;gap:0;margin:0;order:30}
.site-header.unified-header .app-navigation{margin:0;order:40}
.site-header.unified-header :is(.app-navigation-toggle,#display-button,#translator-settings,#fullscreen-button){display:inline-flex;align-items:center;justify-content:center;flex:none;width:38px;min-width:38px;height:38px;min-height:38px;margin:0;padding:0;box-sizing:border-box;border:1px solid var(--tr-line,var(--sp-line,#e5e9ef));border-radius:10px;background:var(--tr-panel,var(--sp-panel,#fff));color:var(--tr-text,var(--sp-text,#263647))}
.site-header.unified-header :is(#display-button,#translator-settings){order:20}
.site-header.unified-header #fullscreen-button{order:10}
.site-header.unified-header :is(.app-navigation-toggle,#display-button,#translator-settings) svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.app-navigation-panel .app-navigation-divider{height:0;border:0;border-top:1px solid var(--tr-line,var(--sp-line,#e5e9ef));margin:7px}
.translator-shell{height:calc(100dvh - 76px)}
.source-pane .pane-label{padding-right:26px}
.translator-footer{display:flex;flex:none;align-items:center;justify-content:flex-end;min-height:24px;font-size:10px}
.translator-footer .follow-button{font-size:10px;padding:0;border:0;background:none;color:var(--tr-accent)}
@media(max-width:720px){
  .site-header.unified-header{height:calc(64px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 14px 0;gap:10px}
  .site-header.unified-header .brand{font-size:15px;gap:8px}
  .site-header.unified-header .brand-logo{width:38px;height:28px}
  .site-header.unified-header .brand small{font-size:6px;letter-spacing:.7px;margin-top:4px}
  .site-header.unified-header .header-right{gap:6px}
  .site-header.unified-header :is(#fullscreen-button,#audience-count){display:none}
  .translator-shell,.speech-shell{height:calc(100dvh - 64px - env(safe-area-inset-top))}
  .source-pane .pane-label{padding-right:14px}
  .translator-footer{padding:4px 12px 8px;min-height:28px}
  .translator-footer .follow-button{font-size:9px}
}
@media(max-width:430px){.site-header.unified-header .brand>span{display:block}}

.selah-planned{max-width:760px;margin:32px auto;padding:0 20px;line-height:1.7}
.selah-planned section{padding:18px 0;border-bottom:1px solid #e5e9ef}
@media(max-width:430px){.site-header.unified-header .header-right{gap:4px}.site-header.unified-header .brand{font-size:16px}}

.app-navigation-panel a{display:flex;align-items:center;justify-content:space-between;gap:8px}
.navigation-status{font-size:10px;font-weight:400;color:var(--tr-muted,var(--sp-muted,#667485));white-space:nowrap}
.selah-planned section{scroll-margin-top:24px}

/* One content boundary for every menu. */
:root{--app-gutter:3%;--app-content-width:none;--app-panel-radius:20px}
main.app-workspace{width:100%;max-width:var(--app-content-width);margin:0 auto;padding-left:var(--app-gutter);padding-right:var(--app-gutter)}
main.app-workspace:not(.speech-shell){padding-top:26px;padding-bottom:32px}
.app-workspace h1{font-size:25px;font-weight:550;letter-spacing:-.8px;margin:7px 0 0}
.site-header.unified-header .app-settings{display:inline-flex;align-items:center;justify-content:center;order:20;width:38px;height:38px;padding:0;border:1px solid #e5e9ef;border-radius:10px;background:#fff;color:#263647}
.site-header.unified-header .app-settings svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:720px){:root{--app-gutter:14px;--app-panel-radius:14px}main.app-workspace:not(.speech-shell){padding-top:18px}.app-workspace h1{font-size:18px}}

.site-header.unified-header .brand .selah-mark{width:38px;height:38px;border-radius:12px}.site-header.unified-header .selah-brand{display:flex;flex-direction:column;white-space:nowrap}.site-header.unified-header .selah-brand small{display:block;font-size:8px;font-weight:500;letter-spacing:.5px;margin-top:5px;color:var(--sp-muted,#7d8796)}
@media(max-width:720px){.site-header.unified-header .brand .selah-mark{width:30px;height:30px}.site-header.unified-header .selah-brand small{font-size:6px;letter-spacing:.2px;margin-top:4px}}
@media(max-width:360px){.site-header.unified-header{gap:5px}.site-header.unified-header .brand{gap:5px;font-size:14px}.site-header.unified-header .brand .selah-mark{width:26px;height:26px}.site-header.unified-header #share-button{padding:7px;font-size:11px}.site-header.unified-header .ui-language-button [data-ui-locale-label],.site-header.unified-header .ui-language-chevron{display:none}}

.site-header.unified-header #share-button{display:inline-flex;align-items:center;justify-content:center;width:38px;min-width:38px;height:38px;min-height:38px;padding:0;flex:none;border-radius:10px}
