html {
  --app-header-height: 64px !important;
}
html:has(#wuproj-chrome.scrolled) {
  --app-header-height: 72px !important;
}
#root {
  padding-top: var(--app-header-height, 64px);
}
#root:has(iframe) {
  padding-top: 0;
}
#wuproj-chrome.header.site-header {
  z-index: 90;
}
html.wuproj-app #root iframe {
  z-index: 1 !important;
}
#root header.fixed,
#root header.sticky,
#root > div > header.sticky,
#root header.sticky.top-0 {
  display: none !important;
}
#wuproj-chrome.header.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  padding: 0;
  pointer-events: none;
  color: #171b27;
  font: 14px/1.4 Inter, "Segoe UI", sans-serif;
}
#wuproj-chrome * { box-sizing: border-box; }
#wuproj-chrome a { color: inherit; text-decoration: none; }
#wuproj-chrome button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
#wuproj-chrome .nav-shell {
  width: min(1280px, 100%);
  height: 64px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
  transition: height .5s, width .5s, margin-top .5s, padding .5s, border-radius .5s, background .5s;
}
#wuproj-chrome .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.35px;
  line-height: 20px;
  white-space: nowrap;
}
#wuproj-chrome .brand img { width: 28px; height: 28px; display: block; }
#wuproj-chrome .pro-chip {
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 600;
  color: #9a7209;
  border: 1px solid color-mix(in oklab, #9a7209 45%, transparent);
  border-radius: 4px;
  padding: 2px 6px;
}
#wuproj-chrome #navigation {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  color: #676767;
  font-size: 14px;
}
#wuproj-chrome #navigation > a {
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}
#wuproj-chrome #navigation > a:hover,
#wuproj-chrome #navigation > a[aria-current="page"] { color: #141414; }
#wuproj-chrome .nav-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid #e8e8eb;
}
#wuproj-chrome .shell-icon,
#wuproj-chrome .menu-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  padding: 8px;
}
#wuproj-chrome .shell-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
#wuproj-chrome .shell-icon:hover,
#wuproj-chrome .shell-icon[aria-expanded="true"] { background: #eceff4; }
#wuproj-chrome .moon-icon { display: none; }
#wuproj-chrome .menu-toggle { display: none; flex-direction: column; gap: 5px; }
#wuproj-chrome .menu-toggle span { display: block; width: 16px; height: 1.5px; background: currentColor; }
#wuproj-chrome.header.scrolled .nav-shell {
  width: min(832px, calc(100% - 24px));
  height: 48px;
  margin-top: 12px;
  padding: 0 6px 0 16px;
  border-radius: 16px;
  background: #ffffffdf;
  box-shadow: 0 2px 16px -6px #00000014, 0 0 0 0.5px #00000005;
  backdrop-filter: blur(24px);
}
#wuproj-chrome.header.scrolled #navigation > a { padding-inline: 10px; font-size: 13px; }
#wuproj-chrome.header.scrolled .nav-actions { margin-left: 4px; padding-left: 4px; }
#wuproj-chrome .shell-control { position: relative; }
#wuproj-chrome .shell-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  min-width: 160px;
  border: 1px solid #e3e6eb;
  background: #fff;
  color: #202631;
  box-shadow: 0 12px 35px #1e2d461c;
  border-radius: 12px;
  padding: 6px;
  z-index: 5;
}
#wuproj-chrome .shell-menu > a,
#wuproj-chrome .shell-menu > button,
#wuproj-chrome .notice-tabs button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 35px;
  padding: 8px 10px;
  border-radius: 7px;
  text-align: left;
  font-size: 12px;
}
#wuproj-chrome .shell-menu > a:hover,
#wuproj-chrome .shell-menu > button:hover,
#wuproj-chrome .notice-tabs button:hover { background: #f0f3f8; }
#wuproj-chrome .notice-menu { width: 320px; max-width: calc(100vw - 32px); padding: 0; }
#wuproj-chrome .notice-tabs { display: flex; padding: 8px; border-bottom: 1px solid #e7eaf0; }
#wuproj-chrome .notice-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  padding: 0 4px;
  border-radius: 10px;
  background: #fff0f1;
  color: #ce4656;
  font-size: 9px;
  line-height: 14px;
}
#wuproj-chrome #notice-content { padding: 8px 14px 12px; }
#wuproj-chrome .notice-empty,
#wuproj-chrome #notice-content p { margin: 0; font-size: 12px; line-height: 1.6; color: #6c7686; white-space: pre-wrap; }
#wuproj-chrome .account-caption { display: grid; padding: 8px 10px 10px; }
#wuproj-chrome .account-caption small { color: #8992a3; }
#wuproj-chrome .site-signin {
  display: inline-flex;
  align-items: center;
  height: 32px;
  margin-left: 9px;
  padding: 0 14px;
  border-radius: 16px;
  background: #38a9e6;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}
#wuproj-chrome .user-avatar {
  width: 24px;
  height: 24px;
  margin-left: 10px;
  border-radius: 50%;
  background: #365aeb;
  color: #fff;
  font-size: 11px;
  font-weight: 650;
}
html.dark #wuproj-chrome.header.site-header { color: #edf1f6; }
html.dark #wuproj-chrome .pro-chip { color: #f7c948; border-color: color-mix(in oklab, #f7c948 45%, transparent); }
html.dark #wuproj-chrome #navigation,
html.dark #wuproj-chrome #navigation > a { color: #aeb6c3; }
html.dark #wuproj-chrome #navigation > a:hover,
html.dark #wuproj-chrome #navigation > a[aria-current="page"],
html.dark #wuproj-chrome .shell-icon { color: #ecf0f5; }
html.dark #wuproj-chrome .nav-actions { border-color: #293442; }
html.dark #wuproj-chrome.header.scrolled .nav-shell {
  background: #151c25e8;
  box-shadow: 0 2px 16px -6px #0006;
}
html.dark #wuproj-chrome .shell-icon:hover,
html.dark #wuproj-chrome .shell-icon[aria-expanded="true"] { background: #253040; }
html.dark #wuproj-chrome .sun-icon { display: none; }
html.dark #wuproj-chrome .moon-icon { display: block; }
html.dark #wuproj-chrome .shell-menu,
html.dark #wuproj-chrome .notice-tabs { background: #19212c; border-color: #313c4b; color: #e8edf5; }
html.dark #wuproj-chrome .shell-menu > a:hover,
html.dark #wuproj-chrome .shell-menu > button:hover,
html.dark #wuproj-chrome .notice-tabs button:hover { background: #273345; }
html.dark #wuproj-chrome #notice-content p { color: #bbc5d2; }
.status-page {
  max-width: 720px;
  margin: 120px auto;
  padding: 0 24px 48px;
  color: #171b27;
  font: 16px/1.6 Inter, "Segoe UI", sans-serif;
}
html.dark .status-page { color: #f4f4f7; }
.status-page h1 { font-size: 40px; letter-spacing: -1px; margin: 8px 0 12px; }
.status-page .eyebrow { letter-spacing: 1.6px; font-size: 12px; color: #8b92a5; }
.status-actions { display: flex; gap: 16px; align-items: center; margin-top: 24px; }
.status-page .text-link { color: #365aeb; }
@media (max-width: 767px) {
  #wuproj-chrome #navigation {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 24px;
    flex-direction: column;
    align-items: stretch;
    background: #fffffff5;
  }
  html.dark #wuproj-chrome #navigation { background: #131a24fa; }
  #wuproj-chrome #navigation.open { display: flex; }
  #wuproj-chrome .desktop-tool,
  #wuproj-chrome .site-signin { display: none; }
  #wuproj-chrome .menu-toggle { display: inline-flex; }
  #wuproj-chrome .nav-actions { border: 0; margin: 0; padding: 0; }
}

/* Same finish as the home header (wuproj-theme.css), scoped to the shell. */
#wuproj-chrome #navigation .mobile-signin { display: none; }
#wuproj-chrome [hidden] { display: none !important; }
#wuproj-chrome .site-signin {
  border-radius: 999px;
  font-weight: 600;
  background: #dc2626;
}
#wuproj-chrome .site-signin:hover { background: #b91c1c; }
html.dark #wuproj-chrome.header.scrolled .nav-shell {
  background: #18191ff0;
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.7);
}
html.dark #wuproj-chrome #navigation > a:hover,
html.dark #wuproj-chrome #navigation > a[aria-current='page'] { color: #f4f4f7; }
html.dark #wuproj-chrome .shell-icon:hover,
html.dark #wuproj-chrome .shell-icon[aria-expanded='true'] { background: #25272f; }
html.dark #wuproj-chrome .shell-menu,
html.dark #wuproj-chrome .notice-tabs { background: #1e1f26; border-color: #363842; }
html.dark #wuproj-chrome .notice-tabs button[aria-pressed='true'] {
  background: color-mix(in oklab, #ef4444 22%, #1e1f26);
  color: #fecaca;
}

/* App pages use the home palette. The bundle's .dark tokens are the old blue shell. */
html.wuproj-app.dark {
  --background: #101115;
  --foreground: #f4f4f7;
  --card: #1e1f26;
  --card-foreground: #f4f4f7;
  --popover: #18191f;
  --popover-foreground: #f4f4f7;
  --primary: #ef4444;
  --primary-foreground: #ffffff;
  --secondary: #25272f;
  --secondary-foreground: #f4f4f7;
  --muted: #1c1d24;
  --muted-foreground: #a2a2ad;
  --accent: #3a2224;
  --accent-foreground: #f4f4f7;
  --border: #363842;
  --input: #363842;
  --ring: #ef4444;
  --sidebar: #18191f;
  --sidebar-foreground: #f4f4f7;
  --sidebar-primary: #ef4444;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #3a2224;
  --sidebar-accent-foreground: #f4f4f7;
  --sidebar-border: #363842;
  --sidebar-ring: #ef4444;
  --chart-1: #ef4444;
  --chart-2: #f7c948;
  --overview-accent-1: #ef4444;
  --overview-accent-2: #f7c948;
  --overview-accent-3: #a2a2ad;
}
html.wuproj-app:not(.dark) {
  --background: #eef0f4;
  --foreground: #12131a;
  --card: #ffffff;
  --card-foreground: #12131a;
  --popover: #ffffff;
  --popover-foreground: #12131a;
  --primary: #dc2626;
  --primary-foreground: #ffffff;
  --secondary: #e6e8ee;
  --secondary-foreground: #12131a;
  --muted: #e6e8ee;
  --muted-foreground: #5c6070;
  --accent: #f8e8e8;
  --accent-foreground: #12131a;
  --border: #d5d8e0;
  --input: #d5d8e0;
  --ring: #dc2626;
  --sidebar: #f7f8fb;
  --sidebar-foreground: #12131a;
  --sidebar-primary: #dc2626;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #f8e8e8;
  --sidebar-accent-foreground: #12131a;
  --sidebar-border: #d5d8e0;
  --sidebar-ring: #dc2626;
}
html.wuproj-app.dark body,
html.wuproj-app.dark #root {
  background: #101115;
  color: #f4f4f7;
}

/* Pro | Play switch in brand chrome */
#wuproj-chrome .portal-switch {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 2px;
  margin-inline: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 600;
}
#wuproj-chrome .portal-switch__btn {
  padding: 2px 10px;
  border-radius: 6px;
  color: #a2a2ad;
  text-decoration: none !important;
}
#wuproj-chrome .portal-switch__btn:hover { color: #f4f4f7; }
#wuproj-chrome .portal-switch__btn--current {
  background: #1c1d24;
  color: #f4f4f7;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
html:not(.dark) #wuproj-chrome .portal-switch {
  border-color: #d5d8e0;
  background: #eef0f4;
}
html:not(.dark) #wuproj-chrome .portal-switch__btn { color: #5c6070; }
html:not(.dark) #wuproj-chrome .portal-switch__btn:hover { color: #12131a; }
html:not(.dark) #wuproj-chrome .portal-switch__btn--current {
  background: #fff;
  color: #12131a;
}

/* Auth: Play OAuth row (same providers as Play login) */
.wuproj-play-oauth {
  margin: 12px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wuproj-oauth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1a1b22;
  color: #f4f4f7 !important;
  font-weight: 600;
  text-decoration: none !important;
}
.wuproj-oauth:hover { background: #24262f; }
.wuproj-oauth--tg {
  background: #229ed9;
  border-color: transparent;
  color: #fff !important;
}
.wuproj-oauth--tg:hover { background: #1b8ec4; }
.wuproj-oauth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.wuproj-oauth-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: #9a9aab;
  text-align: center;
}
html:not(.dark) .wuproj-oauth {
  background: #fff;
  border-color: #d5d8e0;
  color: #12131a !important;
}
html:not(.dark) .wuproj-oauth:hover { background: #f3f4f7; }

/* Permanently suppress "03 / MEET WUPROJ PLAY" if stale HTML reappears */
#wuproj-chat,
section.chat-showcase {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
[data-hide-meet-play] {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Auth: chrome header already brands the page — hide AuthLayout chip */
body:has(#wuproj-chrome) #root a[href="/"]:has(h1),
body:has(#wuproj-chrome) #root a.absolute.top-4[href="/"],
body:has(#wuproj-chrome) #root a.absolute[href="/"] {
  display: none !important;
}
