/* Moyo-inspired desktop reference layout.
   Public pages only: 1920px desktop canvas with a centered ~1000px content rail.
   Mobile rules remain owned by the existing mobile stylesheets. */
:root {
  --mg-pc-content-max: 1000px;
  --mg-pc-gutter: 24px;
  --mg-pc-header-height: 80px;
  --mg-pc-body-size: 14px;
  --mg-pc-body-leading: 1.58;
}

/* Keep the public home consistent with the mobile card treatment. A legacy
   React enhancement can mount an OTT PASS showcase at desktop widths and add
   .mg-has-showcase, which otherwise hides the vertical price-card rail. */
@media (min-width: 801px) {
  html body:not(.host-app):not(.ops-app) .home .lowest-price-board.mg-has-showcase .lowest-price-carousel {
    display: block !important;
  }

  html body:not(.host-app):not(.ops-app) .home .lowest-price-board > [data-mg-showcase] {
    display: none !important;
  }
}

@media (min-width: 801px) {
  body:not(.host-app) {
    font-size: var(--mg-pc-body-size);
    line-height: var(--mg-pc-body-leading);
  }

  body:not(.host-app) .site-head {
    height: var(--mg-pc-header-height);
  }

  body:not(.host-app) .site-head > .wrap,
  body:not(.host-app) .site-head .wrap,
  body:not(.host-app) .footer > .wrap,
  body:not(.host-app) .page-main > .wrap,
  body:not(.host-app) .ranking-page > .wrap,
  body:not(.host-app) .party-finder-hero .wrap,
  body:not(.host-app) .party-finder-layout,
  body:not(.host-app) .create-party-page > .wrap,
  body:not(.host-app) .detail-discovery .wrap,
  body:not(.host-app) .detail-layout,
  body:not(.host-app) .about-safe > .wrap,
  body:not(.host-app) .usage-page > .wrap,
  body:not(.host-app) .usage-guide-page > .wrap,
  body:not(.host-app) .protection-page > .wrap,
  body:not(.host-app) .policy-page > .sub-head > .wrap,
  body:not(.host-app) .policy-page > .wrap {
    width: min(var(--mg-pc-content-max), calc(100% - (var(--mg-pc-gutter) * 2)));
    margin-inline: auto;
  }

  body:not(.host-app) .home > .wrap {
    width: min(var(--mg-pc-content-max), calc(100% - (var(--mg-pc-gutter) * 2)));
  }

  body:not(.host-app) .home .pixel-cinema-hero {
    margin-top: 12px;
  }

  body:not(.host-app) .section-head h2,
  body:not(.host-app) .lowest-price-heading h2,
  body:not(.host-app) .home-live-ranking h2,
  body:not(.host-app) .home-refund-guarantee h2 {
    font-size: clamp(21px, 2vw, 28px);
    line-height: 1.2;
  }

  body:not(.host-app) .section-head p,
  body:not(.host-app) .lowest-price-heading p,
  body:not(.host-app) .home-refund-copy p,
  body:not(.host-app) .home-how-to p {
    font-size: 13px;
    line-height: 1.6;
  }

  body:not(.host-app) .party-finder-hero {
    padding-top: 30px;
    padding-bottom: 20px;
  }

  body:not(.host-app) .party-finder-hero .wrap > span {
    font-size: 21px;
  }

  body:not(.host-app) .party-finder-layout {
    padding-top: 26px;
    padding-bottom: 72px;
  }

  body:not(.host-app) .party-finder-page .party-results {
    gap: 20px 24px;
  }

  body:not(.host-app) .party-finder-page .party-results > .list-tools > b {
    font-size: 20px;
  }

  body:not(.host-app) .party-finder-page .party-search input,
  body:not(.host-app) .party-finder-page .list-tools-sort,
  body:not(.host-app) .party-finder-page .party-filter-panel,
  body:not(.host-app) .party-finder-page .party-filter-panel button,
  body:not(.host-app) .party-finder-page .party-filter-panel label {
    font-size: 13px;
  }

  body:not(.host-app) .create-party-hero {
    padding-top: 34px;
    padding-bottom: 20px;
  }

  body:not(.host-app) .create-party-hero span {
    font-size: 15px;
  }

  body:not(.host-app) .create-party-shell {
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
    gap: 24px;
  }

  body:not(.host-app) .create-step {
    padding: 22px;
    border-radius: 18px;
  }

  body:not(.host-app) .create-step h2 {
    font-size: 18px;
  }

  body:not(.host-app) .party-detail-page .detail-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
  }

  body:not(.host-app) .party-detail-page .product-info h2,
  body:not(.host-app) .party-detail-page .comment-box h2,
  body:not(.host-app) .party-detail-page .purchase > h2 {
    font-size: 21px;
  }

  body:not(.host-app) .party-detail-page .product-info > p,
  body:not(.host-app) .party-detail-page .comment-list article p,
  body:not(.host-app) .party-detail-page .purchase {
    font-size: 13px;
    line-height: 1.6;
  }

  body:not(.host-app) .ranking-hero h1,
  body:not(.host-app) .sub-head h1,
  body:not(.host-app) .detail-page-label {
    font-size: clamp(28px, 3vw, 34px);
    line-height: 1.2;
  }

  body:not(.host-app) .footer {
    font-size: 12px;
  }
}

@media (min-width: 801px) and (max-width: 1080px) {
  :root {
    --mg-pc-gutter: 20px;
  }

  body:not(.host-app) .party-detail-page .detail-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

/* Canonical public desktop chrome. The existing mobile bar remains active
   below 801px; host/admin shells are intentionally excluded. */
@media (min-width: 801px) {
  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) > #app {
    width: 100% !important;
    max-width: none !important;
    overflow-x: clip;
  }

  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .page-main,
  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .footer > .wrap,
  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .page-main > .wrap,
  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .home > .wrap {
    width: min(var(--mg-pc-content-max), calc(100% - (var(--mg-pc-gutter) * 2))) !important;
    max-width: var(--mg-pc-content-max) !important;
    margin-inline: auto !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app) .party-finder-layout,
  html body:not(.auth-page-open):not(.host-app):not(.ops-app) .create-party-shell,
  html body:not(.auth-page-open):not(.host-app):not(.ops-app) .detail-layout,
  html body:not(.auth-page-open):not(.host-app):not(.ops-app) .account-wrap,
  html body:not(.auth-page-open):not(.host-app):not(.ops-app) .usage-shell,
  html body:not(.auth-page-open):not(.host-app):not(.ops-app) .protection-layout,
  html body:not(.auth-page-open):not(.host-app):not(.ops-app) .checkout-v2-layout {
    width: min(var(--mg-pc-content-max), calc(100% - (var(--mg-pc-gutter) * 2))) !important;
    max-width: var(--mg-pc-content-max) !important;
    margin-inline: auto !important;
  }

  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head {
    width: 100% !important;
    margin: 0 !important;
  }

  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head:has(+ .home) {
    background: #fff !important;
  }

  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head > .wrap,
  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head > .head-row {
    width: min(var(--mg-pc-content-max), calc(100% - (var(--mg-pc-gutter) * 2))) !important;
    max-width: var(--mg-pc-content-max) !important;
    margin-inline: auto !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app) .site-head > .wrap.head-row {
    width: min(var(--mg-pc-content-max), calc(100% - (var(--mg-pc-gutter) * 2))) !important;
    max-width: var(--mg-pc-content-max) !important;
    margin-inline: auto !important;
  }

  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) {
    padding-bottom: 0 !important;
  }

  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .mobile-bottom-nav {
    display: none !important;
  }

  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head > .wrap,
  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .wrap {
    width: min(var(--mg-pc-content-max), calc(100% - (var(--mg-pc-gutter) * 2))) !important;
    padding-inline: 0 !important;
  }

  .site-head .head-row {
    min-height: var(--mg-pc-header-height);
    gap: 28px;
  }

  .site-head .main-nav {
    display: flex !important;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .site-head .main-nav > a {
    min-height: 40px;
    padding: 0 13px;
    border-radius: 10px;
    color: #445367;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
  }

  .site-head .main-nav > a.current,
  .site-head .main-nav > a:hover {
    background: #f1f7ff;
    color: #1265e8;
  }

  .site-head .main-nav .nav-beta {
    margin-left: 4px;
    padding: 2px 4px;
    border-radius: 4px;
    background: #e9f4ff;
    color: #318ce8;
    font-size: 8px;
    vertical-align: 2px;
  }

  .site-head .header-actions {
    flex: 0 0 auto;
    gap: 8px;
  }

  .site-head .header-actions #admin-link,
  .site-head .header-actions #account-link {
    min-width: auto !important;
    height: 40px !important;
    min-height: 40px !important;
    padding-inline: 13px !important;
    font-size: 12px !important;
  }
}

/* The desktop home uses a clean white canvas and white navigation tabs. */
@media (min-width: 801px) {
  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .home.pixel-home {
    background: #fff !important;
    background-image: none !important;
  }

  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head:has(+ .home) .main-nav > a,
  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head:has(+ .home) .main-nav > a:hover,
  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head:has(+ .home) .main-nav > a:focus-visible {
    background: #fff !important;
  }

  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head:has(+ .home) .main-nav > a.current,
  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head:has(+ .home) .main-nav > a:hover,
  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head:has(+ .home) .main-nav > a:focus-visible {
    color: #1265e8 !important;
  }

  /* The home link is a normal tab, not a pixel-theme status indicator. The
     legacy theme puts a small blue square on every current nav item; with
     Home as the first item that square reads like a stray dot above it. */
  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .main-nav > a::before,
  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .main-nav > a::after {
    display: none !important;
    content: none !important;
    background: none !important;
    box-shadow: none !important;
    transform: none !important;
  }

  /* Keep the shared Home tab present on every public desktop route. */
  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .main-nav > a.nav-home {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 0 !important;
    width: auto !important;
    flex: 0 0 auto !important;
  }
}

/* Tall phones/tablets should not turn a party card into a full-width banner. */
@media (max-width: 800px) {
  body.page-list .party-finder-page .party-list {
    width: min(100%, 460px);
    margin-inline: auto;
  }

  body.page-list .party-finder-page .party-list .finder-list-card,
  body.page-list .party-finder-page .party-list .recruitment-card {
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
  }

  body.page-list .party-finder-page .party-list .party-list-skeleton,
  body.page-list .party-finder-page .party-empty {
    max-width: 460px;
    margin-inline: auto;
  }

  .home .lowest-price-board {
    --lowest-visible: 2;
    /* Double the inner card gutter while the carousel keeps its wall inset. */
    --lowest-gap: 16px;
  }

  .home .lowest-price-card {
    /* The carousel recalculates card width for the two-column mobile rail.
       Let the height follow the ratio too; a fixed 356px height made the
       card narrower than its portrait artwork and cover cropped both sides. */
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 5;
    padding: 9px;
    border-radius: 16px;
  }

  .home .lowest-price-logo {
    width: 60px;
    height: 60px;
    margin-top: 10px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .home .lowest-price-offer {
    min-height: 146px;
    margin-top: auto;
    margin-bottom: auto;
    padding-inline: 2px;
    justify-content: center;
  }
}

/* Desktop cards should use the measured rail width. The legacy PC skin
   supplied a fixed 228px basis, so the carousel could measure four cards but
   render oversized cards and clip the last one. */
@media (min-width: 801px) {
  html body:not(.host-app):not(.ops-app) .home .lowest-price-board {
    --lowest-visible: 4;
    --lowest-gap: 12px;
  }

  html body:not(.host-app):not(.ops-app) .home .lowest-price-card {
    flex: 0 0 var(--lowest-card-width, 228px);
    width: var(--lowest-card-width, 228px);
    height: auto;
    aspect-ratio: 3 / 5;
    box-sizing: border-box;
  }

  html body:not(.host-app):not(.ops-app) .home .lowest-price-card .lowest-price-logo img {
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: inherit;
  }
}

/* The card shadow spread into the inter-card gutter and made the white rail
   look gray. Keep the card-to-card space the same clean white as its wall. */
html body:not(.host-app):not(.ops-app) .home .lowest-price-card {
  box-shadow: none;
}

/* The admin dashboard is mounted inside the same app shell, but its host
   styles own the canvas. Keep this public-only stylesheet from changing the
   dashboard's typography or viewport behavior. */
@media (min-width: 801px) {
  body.mg-admin-bento {
    font-size: revert !important;
    line-height: revert !important;
    width: auto !important;
    max-width: none !important;
    margin: revert !important;
    padding-bottom: revert !important;
    overflow-x: visible !important;
  }

  body.mg-admin-bento > #app {
    width: auto !important;
    max-width: none !important;
    overflow-x: visible !important;
  }
}

/* Ranking page: keep the hero and the content surface on the same centered
   desktop rail. The legacy hero used a full-width .wrap while the ranking
   card used a narrower inner rail, which made the page look left-aligned. */
@media (min-width: 801px) {
  html body:not(.host-app):not(.ops-app) .ranking-page .ranking-hero > .wrap {
    width: min(var(--mg-pc-content-max), calc(100% - (var(--mg-pc-gutter) * 2))) !important;
    max-width: var(--mg-pc-content-max) !important;
    margin-inline: auto !important;
  }

  html body:not(.host-app):not(.ops-app) .ranking-page .ranking-hero {
    padding-top: 54px;
    padding-bottom: 58px;
  }

  html body:not(.host-app):not(.ops-app) .ranking-page .ranking-search {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  html body:not(.host-app):not(.ops-app) .ranking-page .ranking-full {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin-inline: 0;
    padding: 34px 38px 24px;
  }

  html body:not(.host-app):not(.ops-app) .ranking-page .ranking-disclosure {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin-inline: 0;
  }
}

/* Public list/create alignment: keep the public header identical on every
   route, give the list hero the create-page canvas, and use a readable
   single-column result rail on desktop. */
@media (min-width: 801px) {
  body.page-list:not(:has(.host-app)):not(:has(.ops-app)) .site-head {
    height: 88px !important;
    position: sticky;
    top: 0;
    z-index: 80;
    background: #f8fbff !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  body.page-list:not(:has(.host-app)):not(:has(.ops-app)) .site-head .main-nav {
    display: flex !important;
    align-items: center;
  }

  body.page-list .party-finder-page {
    background:
      radial-gradient(circle at 8% 7%, rgba(51, 156, 255, .09), transparent 25rem),
      linear-gradient(180deg, #f8fbff 0, #fff 430px) !important;
  }

  body.page-list .party-finder-page .party-finder-hero {
    border-bottom: 0 !important;
    background: transparent !important;
  }

  body.page-list .party-finder-page .party-finder-hero .wrap > span {
    font-family: "Luckiest Guy", sans-serif !important;
    font-weight: 400 !important;
    letter-spacing: .045em;
  }

  body.page-list .party-finder-page .party-list,
  body.page-list .party-finder-page .party-list-loading {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }

  /* The list link is intentionally compact; the oversized legacy min-width
     made the home header feel like a call-to-action banner. */
  body:not(:has(.host-app)):not(:has(.ops-app)) .site-head .main-nav > a.nav-party {
    min-width: 0 !important;
    width: auto !important;
    flex: 0 0 auto !important;
    gap: 4px !important;
    padding-inline: 13px !important;
    background: transparent !important;
    color: #445367 !important;
    box-shadow: none !important;
  }

  body:not(:has(.host-app)):not(:has(.ops-app)) .site-head .main-nav > a.nav-party:hover,
  body:not(:has(.host-app)):not(:has(.ops-app)) .site-head .main-nav > a.nav-party:focus-visible {
    background: #fff4c7 !important;
    color: #1a1c1f !important;
  }

  /* The party-finder link should keep the same steady click behavior as the
     other desktop navigation items. */
  body:not(:has(.host-app)):not(:has(.ops-app)) .site-head .main-nav > a.nav-party,
  body:not(:has(.host-app)):not(:has(.ops-app)) .site-head .main-nav > a.nav-party:hover,
  body:not(:has(.host-app)):not(:has(.ops-app)) .site-head .main-nav > a.nav-party:active,
  body:not(:has(.host-app)):not(:has(.ops-app)) .site-head .main-nav > a.nav-party:focus {
    transform: none !important;
    -webkit-transform: none !important;
    box-shadow: none !important;
    transition: none !important;
  }

  body:not(:has(.host-app)):not(:has(.ops-app)) .create-party-page .create-party-hero .wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }

  body:not(:has(.host-app)):not(:has(.ops-app)) .create-party-page .create-party-hero span {
    font-size: 21px;
    text-align: left;
  }
}

/* Final public desktop header contract.  Every public route renders the
   same header markup, so its rail, height, surface and control rhythm should
   remain identical while only the active nav color changes.  This block is
   intentionally last so legacy route skins cannot widen or recolor one page.
 */
@media (min-width: 801px) {
  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head {
    position: sticky !important;
    z-index: 1000 !important;
    top: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 88px !important;
    min-height: 88px !important;
    margin: 0 !important;
    background: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head > .wrap.head-row {
    box-sizing: border-box !important;
    display: flex !important;
    width: min(var(--mg-pc-content-max), calc(100% - (var(--mg-pc-gutter) * 2))) !important;
    max-width: var(--mg-pc-content-max) !important;
    height: 88px !important;
    min-height: 88px !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    gap: 28px !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .brand.mogoo-brand {
    display: inline-flex !important;
    flex: 0 0 148px !important;
    width: 148px !important;
    min-width: 148px !important;
    max-width: 148px !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .mogoo-type-logo {
    display: block !important;
    width: 148px !important;
    height: auto !important;
    max-width: none !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .main-nav {
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    height: 40px !important;
    margin: 0 !important;
    gap: 8px !important;
    font-size: 13px !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .main-nav > a {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 13px !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    transform: none !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .header-actions {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    gap: 8px !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .header-actions #admin-link,
  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .header-actions #account-link {
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    transform: none !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .header-actions #account-link {
    min-width: 118px !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .header-actions #admin-link {
    min-width: 96px !important;
  }
}

/* One desktop interaction contract.  Route skins used to give Home and the
   finder different hover, active and current states (including the old pixel
   dot and yellow party tab).  Keep the active route readable, but make every
   state transition and surface consistent wherever the header is rendered. */
@media (min-width: 801px) {
  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .main-nav > a {
    color: #445367 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transition: background-color .16s ease, color .16s ease, transform .16s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .main-nav > a.current {
    color: #1265e8 !important;
    background: #f1f7ff !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .main-nav > a:hover,
  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .main-nav > a:focus-visible {
    color: #1a1c1f !important;
    background: #fff4c7 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .main-nav > a:active {
    color: #1a1c1f !important;
    background: #ffe49a !important;
    box-shadow: none !important;
    transform: translateY(1px) scale(.98) !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .main-nav > a::before,
  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .main-nav > a::after {
    display: none !important;
    content: none !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .header-actions #admin-link,
  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .header-actions #account-link {
    border: 1px solid transparent !important;
    box-shadow: none !important;
    transition: background-color .16s ease, color .16s ease, transform .16s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .header-actions #admin-link {
    background: #edf7ff !important;
    color: #167edb !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .header-actions #admin-link:hover,
  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .header-actions #admin-link:focus-visible {
    background: #dff0ff !important;
    color: #1265e8 !important;
    transform: none !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .header-actions #account-link {
    background: #339cff !important;
    color: #fff !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .header-actions #account-link:hover,
  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .header-actions #account-link:focus-visible {
    background: #218ff0 !important;
    color: #fff !important;
    transform: none !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .header-actions #admin-link:active,
  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .header-actions #account-link:active {
    transform: translateY(1px) scale(.98) !important;
  }
}

/* Home's legacy selector includes :has(+ .home) and therefore has higher
   specificity than the generic interaction contract above. Reassert the
   same states there so Home cannot keep a separate white/current treatment. */
@media (min-width: 801px) {
  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head:has(+ .home) .main-nav > a {
    color: #445367 !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: background-color .16s ease, color .16s ease, transform .16s ease !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head:has(+ .home) .main-nav > a.current {
    color: #1265e8 !important;
    background: #f1f7ff !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head:has(+ .home) .main-nav > a:hover,
  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head:has(+ .home) .main-nav > a:focus-visible {
    color: #1a1c1f !important;
    background: #fff4c7 !important;
    transform: none !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head:has(+ .home) .main-nav > a:active {
    color: #1a1c1f !important;
    background: #ffe49a !important;
    transform: translateY(1px) scale(.98) !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head:has(+ .home) .main-nav > a::before,
  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head:has(+ .home) .main-nav > a::after {
    display: none !important;
    content: none !important;
  }
}

/* Match the auth-root guard used by the original Home selector so this final
   neutral state also wins its higher-specificity background declaration. */
@media (min-width: 801px) {
  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head:has(+ .home) .main-nav > a {
    color: #445367 !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: background-color .16s ease, color .16s ease, transform .16s ease !important;
  }

  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head:has(+ .home) .main-nav > a.current {
    color: #1265e8 !important;
    background: #f1f7ff !important;
  }

  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head:has(+ .home) .main-nav > a:hover,
  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head:has(+ .home) .main-nav > a:focus-visible {
    color: #1a1c1f !important;
    background: #fff4c7 !important;
    transform: none !important;
  }

  html:not(.auth-root-open) body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head:has(+ .home) .main-nav > a:active {
    color: #1a1c1f !important;
    background: #ffe49a !important;
    transform: translateY(1px) scale(.98) !important;
  }
}

/* The desktop shell starts at 801px, so the shared rail needs a compact
   rhythm until the full 1000px content width is available. */
@media (min-width: 801px) and (max-width: 1000px) {
  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head > .wrap.head-row {
    gap: 12px !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .brand.mogoo-brand {
    flex-basis: 120px !important;
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .mogoo-type-logo {
    width: 120px !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .main-nav {
    gap: 1px !important;
  }

  html body:not(.auth-page-open):not(.host-app):not(.ops-app):not(:has(.host-app)):not(:has(.ops-app)) .site-head .main-nav > a {
    padding-inline: 6px !important;
    font-size: 11.5px !important;
  }

}
