/* LumaTube wordmarks and aligned discovery navigation. */
.brand .brand-name{min-width:0;white-space:nowrap;line-height:1.2}
.brand .brand-mark{flex:none;width:30px;height:32px;margin:0;color:#fff;border-radius:9px;display:grid;place-items:center}
.brand .brand-mark img{width:100%;height:100%;display:block;object-fit:contain}
.sidebar .brand-mark,.studio-shell .studio-brand .brand-mark{background:transparent;box-shadow:none;border-radius:0}
body:not(.sidebar-compact) .sidebar .brand{font-size:21px;letter-spacing:-.8px;gap:8px;margin:0 2px 24px;min-width:0;justify-content:flex-start}
.sidebar-compact .sidebar .brand-name,.sidebar-compact .sidebar .kids-wordmark{display:none}
.sidebar-compact.kids-account .brand::after{content:none}
.sidebar-compact.kids-account .brand>.brand-mark{display:grid}
.sidebar .kids-wordmark{font-size:10px;letter-spacing:.2px;align-self:flex-end;margin-bottom:3px;color:var(--muted)}
.page-footer .footer-brand{font-size:19px;font-weight:750;letter-spacing:-.6px}
.setup-brand{font-size:clamp(27px,5vw,36px);letter-spacing:-1.2px;line-height:1.2}
.studio-shell .studio-topbar .studio-brand{font-size:22px;gap:8px;letter-spacing:-.8px;margin:0;min-width:0}
.studio-shell .studio-brand .brand-mark{margin:0}
.studio-shell .studio-wordmark{font-size:12px;letter-spacing:0;margin:0;color:var(--studio-muted)}
.studio-shell .studio-brand-group{min-width:0}
.discovery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);margin-bottom:26px;min-width:0}
.discovery-toolbar .discovery-tabs{flex:1;min-width:0;gap:24px;margin:0;border:0;align-self:stretch;align-items:center}
.discovery-toolbar .discovery-tabs>a{display:flex;align-items:center;min-height:52px;padding:14px 0;font-size:13px;white-space:nowrap}
.discovery-tools{display:flex;align-items:center;gap:8px;flex-shrink:0;padding:6px 0}
.discovery-tool{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:8px 12px;border:1px solid var(--line);border-radius:9px;font-size:12px;font-weight:600;line-height:1.25;white-space:nowrap;color:var(--text);background:var(--white);transition:background .16s ease,border-color .16s ease}
.discovery-tool svg{width:15px;height:15px;flex:none}
.discovery-tool:hover{background:var(--paper);border-color:var(--accent)}
.discovery-tool:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:980px){
 .sidebar .brand>.brand-name,.sidebar .brand>.kids-wordmark{display:none}
 body:not(.sidebar-compact) .sidebar .brand{justify-content:center;margin:0 auto 24px}
 .sidebar.open .brand>.brand-name,.sidebar.open .brand>.kids-wordmark{display:inline}
 body:not(.sidebar-compact) .sidebar.open .brand{justify-content:flex-start;margin:0 2px 24px}
}
@media(max-width:720px){
 .discovery-toolbar{flex-wrap:wrap;gap:0;margin-bottom:22px}
 .discovery-toolbar .discovery-tabs{flex:1 0 100%;gap:24px}
 .discovery-toolbar .discovery-tabs>a{min-height:46px;padding:12px 0}
 .discovery-tools{width:100%;justify-content:space-between;padding:4px 0 12px}
 .discovery-tool{min-height:36px;padding:8px 11px;font-size:12px}
 .studio-shell .studio-topbar .studio-brand{font-size:19px;gap:6px}
 .studio-shell .studio-brand .brand-mark{width:25px;height:27px}
 .studio-shell .studio-brand .studio-wordmark{display:none}
 .studio-shell .studio-view-site{font-size:0;width:32px;min-height:32px;padding:0}
 .studio-shell .studio-view-site::after{content:'↗';font-size:19px}
}
@media(prefers-reduced-motion:reduce){.discovery-tool{transition:none}}

.setup-brand{display:inline-flex;align-items:center;gap:12px}.setup-brand img{flex:none}

/* Keep the brand visible when phone navigation moves off canvas. */
.mobile-site-brand{display:none;align-items:center;gap:8px;min-width:0;color:var(--text);font-size:19px;font-weight:750;letter-spacing:-.65px;line-height:1.15}
.mobile-site-brand img{flex:none;width:30px;height:30px;border-radius:9px}.mobile-site-brand>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-site-brand small{font-size:11px;letter-spacing:0;color:var(--muted)}
.kids-site-brand{display:inline-flex}
@media(max-width:540px){
 .workspace>.topbar{height:auto;min-height:112px;display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:10px 8px;padding:10px 14px 12px;align-items:center}
 .workspace>.topbar>.mobile-menu{grid-column:1;grid-row:1;width:32px;min-width:32px;padding:6px}
 .workspace>.topbar>.mobile-site-brand{display:inline-flex;grid-column:2;grid-row:1;gap:7px;font-size:18px}
 .workspace>.topbar>.top-actions{grid-column:3;grid-row:1;justify-content:flex-end;gap:5px}
 .workspace>.topbar>.search{grid-column:1/-1;grid-row:2;width:100%;min-width:0;max-width:none;min-height:40px;margin:0}
 .workspace>.topbar>.search input::placeholder{color:var(--muted)}
 .kids-account .workspace>.topbar{grid-template-columns:minmax(0,1fr) auto auto}
 .kids-account .workspace>.topbar>.kids-site-brand{grid-column:1}
 .kids-account .workspace>.topbar>.pwa-install-button{grid-column:2;grid-row:1}
 .kids-account .workspace>.topbar>#theme-toggle{grid-column:3;grid-row:1}
 .kids-account .workspace>.topbar>.button{display:none}
}
/* Identity settings stay compact beside the independently sized worker panel. */
#site-identity{align-self:start;display:flex;flex-direction:column;gap:14px;scroll-margin-top:100px}
#site-identity>h2{margin:0 0 4px}#site-identity>label,#site-identity .form-columns>label{display:flex;flex-direction:column;gap:7px;margin:0}
#site-identity .form-columns{align-items:start;gap:14px;margin:0}#site-identity input:not([type=checkbox]){min-height:44px;padding:11px 12px}
#site-identity textarea{min-height:76px;max-height:160px;padding:11px 12px}#site-identity small{font-size:11px;line-height:1.6}
#site-identity>.muted{margin:0;font-size:12px;line-height:1.6}#site-identity>.check{flex-direction:row;align-items:center;gap:9px}
#site-identity .check input{width:16px;height:16px;min-height:16px;flex:none;margin:0}#site-identity>button{margin-top:4px;min-height:44px}
@media(max-width:540px){#site-identity{scroll-margin-top:150px}}
