/* BoostPlus unified product shell. Scoped away from the frozen build surfaces. */
body.wow-surface {
  --wow-canvas: #f4f6f9;
  --wow-surface: #ffffff;
  --wow-surface-strong: #ffffff;
  --wow-ink: #1b2735;
  --wow-muted: #58697b;
  --wow-line: #dce3eb;
  --wow-graphite: #101820;
  --wow-graphite-soft: #17232d;
  --wow-red: #df263b;
  --wow-red-strong: #bd1428;
  --wow-cyan: #197884;
  --wow-gold: #8a6212;
  --wow-green: #177445;
  --wow-danger: #a9192a;
  --wow-shadow: 0 12px 32px rgba(28, 45, 67, 0.07);
  --wow-shadow-soft: 0 3px 12px rgba(28, 45, 67, 0.045);
  background-color: var(--wow-canvas);
  color: var(--wow-ink);
}

html[data-theme="dark"] body.wow-surface,
html[data-theme="system"][data-theme-auto-resolved="dark"] body.wow-surface {
  --wow-canvas: #0d141a;
  --wow-surface: #121c24;
  --wow-surface-strong: #17232d;
  --wow-ink: #f5f3ed;
  --wow-muted: #afbac1;
  --wow-line: #30404b;
  --wow-graphite: #080d12;
  --wow-graphite-soft: #111b23;
  --wow-cyan: #69d6df;
  --wow-gold: #f1c866;
  --wow-green: #62d792;
  --wow-shadow: 0 20px 54px rgba(0, 0, 0, 0.3);
  --wow-shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.22);
}

body.wow-surface::before {
  opacity: 0.46;
  background-size: 96px 96px;
}

body.wow-surface .topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: 82px;
  border-bottom: 1px solid color-mix(in srgb, var(--wow-line) 82%, transparent);
  background: color-mix(in srgb, var(--wow-surface) 94%, transparent);
  box-shadow: 0 10px 34px rgba(17, 26, 34, 0.06);
  backdrop-filter: blur(18px);
}

body.wow-surface .topbar-inner {
  width: min(1680px, calc(100% - 48px));
  min-height: 82px;
  gap: 30px;
}

body.wow-surface .brand {
  min-height: 52px;
  color: var(--wow-ink);
}

body.wow-surface .brand img {
  filter: drop-shadow(0 8px 14px rgba(223, 38, 59, 0.16));
}

body.wow-surface .brand strong {
  letter-spacing: -0.025em;
}

body.wow-surface .brand small,
body.wow-surface .footer-identity small {
  color: var(--wow-muted);
}

body.wow-surface .primary-nav {
  align-self: stretch;
  gap: 4px;
}

body.wow-surface .primary-nav a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 20px;
  border-bottom: 3px solid transparent;
  color: var(--wow-muted);
  font-weight: 800;
}

body.wow-surface .primary-nav a:hover,
body.wow-surface .primary-nav a:focus-visible,
body.wow-surface .primary-nav a.is-active {
  color: var(--wow-ink);
}

body.wow-surface .primary-nav a.is-active {
  border-bottom-color: var(--wow-red);
}

body.wow-surface .primary-nav a::after {
  content: none;
}

body.wow-surface .topbar-tools {
  gap: 10px;
}

body.wow-surface .cabinet-entry,
body.wow-surface .theme-switch,
body.wow-surface .density-switch {
  min-height: 48px;
  border-color: var(--wow-line);
  background: var(--wow-surface-strong);
  box-shadow: var(--wow-shadow-soft);
}

body.wow-surface .cabinet-entry {
  color: var(--wow-ink);
}

body.wow-surface .cabinet-entry.is-active,
body.wow-surface .cabinet-entry:hover {
  border-color: color-mix(in srgb, var(--wow-red) 48%, var(--wow-line));
  background: color-mix(in srgb, var(--wow-red) 8%, var(--wow-surface-strong));
}

body.wow-surface .theme-switch__option,
body.wow-surface .density-switch__option {
  min-width: 44px;
  min-height: 44px;
  color: var(--wow-muted);
}

body.wow-surface .theme-switch {
  grid-template-columns: repeat(3, 44px);
}

body.wow-surface .density-switch {
  grid-template-columns: repeat(2, 44px);
}

body.wow-surface .theme-switch::before,
body.wow-surface .density-switch::before {
  content: none;
}

body.wow-surface .theme-switch__option[aria-pressed="true"],
body.wow-surface .density-switch__option[aria-pressed="true"] {
  color: var(--wow-ink);
  background: color-mix(in srgb, var(--wow-red) 10%, var(--wow-surface-strong));
}

body.wow-surface .page-shell {
  width: min(1680px, calc(100% - 48px));
}

body.wow-surface .button,
body.wow-surface button,
body.wow-surface input,
body.wow-surface select,
body.wow-surface textarea,
body.wow-surface summary,
body.wow-surface [role="button"] {
  font: inherit;
}

body.wow-surface .button,
body.wow-surface button:not(.theme-switch__option):not(.density-switch__option) {
  min-height: 44px;
}

body.wow-surface input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.wow-surface select {
  min-height: 46px;
}

body.wow-surface input,
body.wow-surface select,
body.wow-surface textarea {
  border-color: var(--wow-line);
  background: var(--wow-surface-strong);
  color: var(--wow-ink);
}

body.wow-surface input::placeholder,
body.wow-surface textarea::placeholder {
  color: var(--wow-muted);
  opacity: 1;
}

body.wow-surface .button.primary {
  border-color: var(--wow-red);
  background: var(--wow-red);
  color: #fff;
  box-shadow: 0 12px 28px rgba(223, 38, 59, 0.2);
}

body.wow-surface .button.primary:hover {
  border-color: var(--wow-red-strong);
  background: var(--wow-red-strong);
}

body.wow-surface .button.secondary {
  border-color: var(--wow-line);
  background: var(--wow-surface-strong);
  color: var(--wow-ink);
}

body.wow-surface .eyebrow,
body.wow-surface .empty-kicker {
  color: var(--wow-cyan);
}

body.wow-surface .notice.success {
  border-color: color-mix(in srgb, var(--wow-green) 44%, var(--wow-line));
  color: var(--wow-green);
}

body.wow-surface .notice.error,
body.wow-surface [role="alert"] {
  color: var(--wow-danger);
}

body.wow-surface :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--wow-cyan) 72%, #fff);
  outline-offset: 3px;
}

body.wow-surface .auth-layout,
body.wow-surface .legal-page,
body.wow-surface .support-page:not(.support-page--owner):not(.support-page--thread) {
  margin-top: 34px;
}

body.wow-surface .auth-panel,
body.wow-surface .auth-copy,
body.wow-surface .legal-body,
body.wow-surface .legal-hero {
  border-color: var(--wow-line);
  box-shadow: var(--wow-shadow);
}

body.wow-surface .auth-layout .auth-copy,
body.wow-surface .auth-layout .auth-panel-head {
  --wow-auth-text: var(--wow-ink);
  --wow-auth-muted: var(--wow-muted);
  --wow-auth-cyan: var(--wow-cyan);
  --wow-auth-red: var(--wow-danger);
  --wow-auth-line: var(--wow-line);
  --wow-auth-raised: var(--surface-soft);
  background: var(--wow-surface);
  color: var(--wow-auth-text);
}

body.wow-surface .auth-layout .auth-copy h1,
body.wow-surface .auth-layout .auth-context-card strong,
body.wow-surface .auth-layout .auth-benefits strong {
  color: var(--wow-auth-text);
}

body.wow-surface .auth-layout .auth-copy p,
body.wow-surface .auth-layout .auth-copy .auth-signal,
body.wow-surface .auth-layout .auth-context-card span,
body.wow-surface .auth-layout .auth-capabilities > span,
body.wow-surface .auth-layout .auth-benefits span,
body.wow-surface .auth-layout .auth-panel-head span {
  color: var(--wow-auth-muted);
}

body.wow-surface .auth-layout .auth-copy > .eyebrow {
  color: var(--wow-auth-cyan);
}

body.wow-surface .auth-layout .auth-copy .auth-signal b,
body.wow-surface .auth-layout .auth-capabilities b,
body.wow-surface .auth-layout .auth-benefits b {
  color: var(--wow-auth-red);
}

body.wow-surface .auth-layout .auth-context-card {
  background: var(--wow-auth-raised);
}

body.wow-surface .auth-layout .auth-copy .auth-signal,
body.wow-surface .auth-layout .auth-context-card,
body.wow-surface .auth-layout .auth-capabilities,
body.wow-surface .auth-layout .auth-capabilities > span,
body.wow-surface .auth-layout .auth-benefits,
body.wow-surface .auth-layout .auth-benefits li {
  border-color: var(--wow-auth-line);
}

body.wow-surface .auth-layout .text-link,
body.wow-surface .auth-layout .auth-legal a {
  color: var(--wow-cyan);
  text-decoration-color: currentColor;
}

body.wow-surface .auth-layout .auth-links a,
body.wow-surface .auth-layout .auth-form > .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

body.wow-surface .auth-layout .auth-form label > span:first-child {
  color: var(--wow-ink);
}

body.wow-surface .auth-layout .auth-form label small,
body.wow-surface .auth-layout .auth-form > p:not(.notice),
body.wow-surface .auth-layout .auth-form .form-hint {
  color: var(--wow-muted);
}

body.wow-surface .auth-layout input::placeholder {
  color: var(--wow-muted);
  opacity: 1;
}

body.wow-surface .auth-layout .password-toggle {
  right: 1px;
  min-width: 44px;
  min-height: 44px;
  background: var(--wow-surface-strong);
  color: var(--wow-ink);
}

body.wow-surface .auth-layout .password-toggle:hover {
  color: var(--wow-cyan);
}

html[data-theme="dark"] body.wow-surface .auth-layout,
html[data-theme="system"][data-theme-auto-resolved="dark"] body.wow-surface .auth-layout {
  --wow-danger: #ff9ba5;
}

body.wow-surface .auth-panel,
body.wow-surface .legal-body {
  background: var(--wow-surface);
}

body.wow-surface .site-footer {
  margin-top: 64px;
  border-top-color: var(--wow-line);
  color: var(--wow-muted);
}

body.wow-surface .footer-inner {
  width: min(1680px, calc(100% - 48px));
}

body.wow-surface .footer-main nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 900px) {
  body.wow-surface .topbar {
    min-height: 76px;
  }

  body.wow-surface .topbar-inner,
  body.wow-surface .page-shell,
  body.wow-surface .footer-inner {
    width: min(100% - 24px, 1680px);
  }

  body.wow-surface .topbar-inner {
    min-height: 76px;
    gap: 10px;
  }

  body.wow-surface .primary-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body.wow-surface .primary-nav::-webkit-scrollbar {
    display: none;
  }

  body.wow-surface .primary-nav a {
    flex: 0 0 auto;
    min-height: 44px;
    padding-inline: 14px;
  }

  body.wow-surface .cabinet-entry__copy small {
    display: none;
  }

  body.wow-surface .density-switch {
    display: none;
  }

  body.wow-surface .auth-layout {
    min-height: 0;
    margin-top: 16px;
    padding: 0 0 32px;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  body.wow-surface .auth-layout .auth-copy {
    min-height: 0;
    padding: 22px;
  }

  body.wow-surface .auth-layout .auth-copy > .eyebrow {
    margin-top: 0;
  }

  body.wow-surface .auth-layout .auth-copy h1 {
    margin: 10px 0 12px;
    font-size: clamp(36px, 10vw, 44px);
    line-height: 1.02;
  }

  body.wow-surface .auth-layout .auth-copy > p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
  }

  body.wow-surface .auth-layout .auth-copy .auth-signal,
  body.wow-surface .auth-layout .auth-copy .auth-context-card,
  body.wow-surface .auth-layout .auth-copy .auth-capabilities,
  body.wow-surface .auth-layout .auth-copy .auth-benefits {
    display: none;
  }

  body.wow-surface .auth-layout .auth-panel {
    min-width: 0;
    width: 100%;
    margin: 0;
    align-self: stretch;
    border: 1px solid var(--wow-line);
  }

  body.wow-surface .auth-layout .auth-panel-head {
    padding: 18px 22px;
  }

  body.wow-surface .auth-layout .auth-form {
    gap: 16px;
    padding: 22px;
  }
}

@media (max-width: 560px) {
  body.wow-surface .topbar-inner,
  body.wow-surface .page-shell,
  body.wow-surface .footer-inner {
    width: min(100% - 20px, 1680px);
  }

  body.wow-surface .brand span small {
    display: none;
  }

  body.wow-surface .brand img {
    width: 34px;
    height: 34px;
  }

  body.wow-surface .cabinet-entry {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  body.wow-surface .cabinet-entry__copy {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  body.wow-surface .theme-switch__option {
    min-width: 44px;
  }

  body.wow-surface .footer-main,
  body.wow-surface .footer-company {
    align-items: flex-start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.wow-surface *,
  body.wow-surface *::before,
  body.wow-surface *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
