/* Canonical Polywinkle header styles only; arcade/game surfaces stay independent. */
.site-header{--site-paper:#f4f1e9;--site-ink:#1c2929;--site-line:#d8d8cd;--site-muted:#59645e;--site-gold:#e5b44b;--site-white:#fffdf8;--site-hover:#ece9de;position:relative;z-index:40;font:14px/1.5 "Segoe UI",Arial,sans-serif}
.site-header,.site-header *{box-sizing:border-box}.site-header .header-row{margin-inline:auto}.site-header .brand img{display:block;max-width:none;object-fit:contain}.site-header a{color:inherit;text-decoration:none}.site-header button{font:inherit}.site-header [hidden],.site-menu-overlay[hidden]{display:none!important}
.site-menu-overlay{--site-backdrop:#102020e8}
html[data-theme-mode=dark] .site-header .brand img{filter:brightness(0) invert(1)}
.site-header{position:relative;z-index:30}
.site-header .header-row{position:relative;max-width:1020px}
.site-menu-overlay{position:fixed;inset:0;z-index:29;background:rgb(0 0 0 / 48%)}
.site-menu-overlay[hidden]{display:none}
.catalog-open .cookie-request{z-index:28}
.catalog-trigger[aria-expanded=true]{color:var(--site-ink);text-decoration:underline;text-underline-offset:6px}
.catalog-menu{position:absolute;top:100%;left:0;right:0;padding:28px 30px 32px;border:1px solid var(--site-line);border-top:3px solid var(--site-gold);border-radius:0 0 16px 16px;background:var(--site-white);color:var(--site-ink);box-shadow:0 24px 45px #14252526;max-height:calc(100dvh - 120px);overflow:auto;font:15px/1.5 "Segoe UI",Arial,sans-serif}
.catalog-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--site-line)}
.catalog-heading>strong{font-size:24px}
.catalog-heading>a{font-size:13px;color:var(--site-muted);text-decoration:none}
.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px}
.catalog-grid h2{font:600 12px/1.5 "Segoe UI",Arial,sans-serif;letter-spacing:1px;text-transform:uppercase;color:var(--site-muted);margin:0 0 12px}
@media(min-width:801px){#catalog-products .catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
#catalog-products .catalog-item>span{min-width:0;overflow-wrap:anywhere}}
.catalog-menu .catalog-item img{padding:5px;border:1px solid var(--site-line);border-radius:7px;background:color-mix(in srgb,var(--site-white) 94%,var(--site-ink) 6%)}
.catalog-menu .catalog-item:is([href="/corporate/"],[href="/corporate/manager/"],[data-corporate-menu]){align-items:flex-start}
.catalog-item{display:flex;align-items:center;gap:14px;text-decoration:none;color:var(--site-ink);padding:16px 12px;border-radius:8px;margin:0 -12px 4px}
.catalog-item:hover,.catalog-item:focus-visible{background:var(--site-hover)}
.catalog-item img{flex:none;width:44px;height:44px;object-fit:contain}
.catalog-item strong,.catalog-item small{display:block}
.catalog-item strong{font-weight:600;font-size:17px}
.catalog-item small{font-size:13px;color:var(--site-muted);margin-top:3px}
@media(max-width:800px){.catalog-menu{top:100%;padding:20px;max-height:calc(100dvh - 230px)}
.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}}
@media(max-width:480px){.catalog-grid{grid-template-columns:1fr}
.catalog-heading{padding-bottom:12px;margin-bottom:12px}
.catalog-grid h2{margin-bottom:4px}
.catalog-item{padding:10px 12px}}
.site-header{background:var(--site-paper);color:var(--site-ink);border-bottom:1px solid var(--site-line)}
.site-header .header-row{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:88px;padding:12px 0}
.site-header .brand{display:flex;align-items:center;flex-shrink:0;width:205px;height:58px;overflow:hidden}
.site-header .brand img{width:205px;height:auto;max-width:none;filter:brightness(.15)}
.site-header .nav{display:flex;align-items:center;flex-wrap:wrap;gap:23px;padding:0;min-height:0;border:0;font:14px/1.5 "Segoe UI",Arial,sans-serif}
.site-header .nav a{color:inherit;text-decoration:none}
.site-header .nav a:hover{text-decoration:underline;text-underline-offset:5px}
.site-header .nav a[aria-current=page]{font-weight:700;text-decoration:underline;text-decoration-color:var(--site-gold);text-decoration-thickness:3px;text-underline-offset:8px}
.site-header .nav .nav-cta{border:1px solid var(--site-line);padding:9px 14px;border-radius:6px}
.site-header .menu-toggle{display:none;color:var(--site-ink);background:transparent;border:1px solid var(--site-line);padding:8px 12px;border-radius:6px;font:14px "Segoe UI",Arial,sans-serif}
.site-identity{position:relative;padding:0;z-index:30;min-width:0;max-width:100%;font:inherit}
.site-identity-trigger{display:inline-flex;align-items:center;gap:10px;border:0;background:transparent;color:var(--site-ink);font:inherit;padding:2px 0;min-height:36px;max-width:100%;text-align:left;cursor:pointer}
.site-identity-name{max-width:180px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.site-header .nav .site-identity{margin-left:auto}
.site-identity-avatar{display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--site-line);border-radius:50%;overflow:hidden;background:var(--site-white);flex-shrink:0}
.site-identity-avatar img{width:100%;height:100%;object-fit:cover}
#site-identity-menu{position:absolute;top:calc(100% + 6px);right:0;left:auto;width:230px;max-width:calc(100vw - 40px);box-sizing:border-box;padding:6px;background:var(--site-white);color:var(--site-ink);border:1px solid var(--site-line);border-radius:8px;box-shadow:0 8px 24px color-mix(in srgb,var(--site-ink) 12%,transparent);font:11px/1.5 PolywinkleAccount,Montserrat,sans-serif}
#site-identity-menu a,#site-identity-menu button{display:block;width:100%;box-sizing:border-box;text-align:left;padding:9px 12px;border:0;border-radius:4px;background:transparent;color:var(--site-ink);font:inherit;text-decoration:none;white-space:normal;cursor:pointer}
#site-identity-menu a:hover,#site-identity-menu button:hover{background:var(--site-paper)}
#site-identity-menu .identity-menu-heading{margin:0;padding:8px 12px 4px;color:var(--site-ink);font:600 10px/1.5 PolywinkleAccount,Montserrat,sans-serif;opacity:.65}
#site-identity-menu .identity-menu-divider{margin:6px 6px;border:0;border-top:1px solid var(--site-line)}
#site-identity-menu [data-identity-apps] a{display:flex;align-items:center;gap:9px}
#site-identity-menu [data-identity-apps] :is(img,.well-logo){width:18px!important;height:18px!important;object-fit:contain;flex:0 0 18px}
@media(max-width:1050px){.site-header .nav{gap:14px}
.site-header .brand,.site-header .brand img{width:175px}
.site-header .header-row{gap:16px}}
@media(max-width:800px){.site-header .header-row{flex-wrap:wrap}
.site-header .brand,.site-header .brand img{width:205px}
.site-header .menu-toggle{display:block}
.site-header .nav{width:100%;padding:15px 0 5px;justify-content:flex-start;gap:18px}
.site-js .site-header .nav:not(.open){display:none}}
.site-header .shell{width:min(1180px,calc(100% - 56px))!important;max-width:none!important}
@media(max-width:800px){.site-header .shell{width:calc(100% - 32px)!important}}
.site-header .header-row{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:20px}
.site-header .brand{grid-column:1;grid-row:1;margin:0;justify-self:start}
.site-header .nav{grid-column:2;grid-row:1;display:flex!important;justify-content:center;min-width:0}
.site-header .menu-toggle{display:none!important}
.site-header .site-identity,.site-header .site-account-link{grid-column:3;grid-row:1;justify-self:end;margin:0;min-width:0}
.site-header .site-account-link{color:var(--site-ink);font:inherit;text-decoration:none;padding:8px 0}
@media(max-width:800px){.site-header .shell{width:calc(100% - 24px)!important}
.site-header .header-row{grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:0;padding-top:10px;padding-bottom:8px}
.site-header .brand,.site-header .brand img{width:164px!important;max-width:100%;height:auto}
.site-header .site-identity,.site-header .site-account-link{grid-column:2;grid-row:1;max-width:calc(100vw - 200px)}
.site-header .site-identity-trigger{gap:6px;width:100%;justify-content:flex-end}
.site-header .site-identity-name{max-width:120px}
.site-header .nav,.site-js .site-header .nav:not(.open){display:flex!important;grid-column:1/-1;grid-row:2;width:100%;padding:12px 0 0;gap:clamp(14px,4vw,24px);justify-content:space-between;flex-wrap:nowrap}
.site-header .nav>a{font-size:13px;padding:4px 0;white-space:nowrap}}
@media(min-width:801px) and (max-width:1050px){.site-header .header-row{gap:14px}
.site-header .site-identity-name{max-width:110px}
.site-header .nav{gap:14px}}
.site-header .brand,.site-header .brand img{width:225.5px}
.site-header .brand{height:63.8px}
.site-header .site-account-link,.site-header .site-identity-trigger,#site-identity-menu{font:14px/1.5 "Segoe UI",Arial,sans-serif}
.site-header .site-identity-avatar{width:25.6px;height:25.6px;font-size:11px}
@media(min-width:801px) and (max-width:1050px){.site-header .brand,.site-header .brand img{width:192.5px}}
@media(max-width:800px){.site-header .header-row{grid-template-columns:180.4px minmax(0,1fr)}
.site-header .brand,.site-header .brand img{width:180.4px!important;height:auto}
.site-header .site-identity,.site-header .site-account-link{max-width:100%}
.site-header .site-account-link,.site-header .site-identity-trigger,#site-identity-menu{font-size:13px}
.site-header .site-identity-name{min-width:0;flex:1}}
.site-header .site-identity-name{text-align:right}
@media(max-width:800px){.site-header .nav,.site-header .nav>a,.site-header .site-account-link,.site-header .site-identity-trigger,#site-identity-menu,.site-header .site-identity-avatar{font-size:10px}}
.site-header .brand{transform:translateX(-8px);height:70.18px}
.site-header .brand,.site-header .brand img{width:248.05px}
@media(min-width:801px) and (max-width:1050px){.site-header .brand,.site-header .brand img{width:211.75px}}
@media(max-width:800px){.site-header .header-row{grid-template-columns:198.44px minmax(0,1fr)}
.site-header .brand,.site-header .brand img{width:198.44px!important;height:auto}}
#site-identity-menu{max-height:calc(100dvh - 110px);overflow-y:auto;overscroll-behavior:contain}
#site-identity-menu [data-identity-account]>a,#site-identity-menu [data-identity-account]>button,#site-identity-menu .account-products-menu a{display:flex;align-items:center;gap:9px}
#site-identity-menu .account-menu-icon{display:block;width:16px;height:16px;flex:0 0 16px}
#site-identity-menu .account-products-menu{margin:3px 6px 6px;padding:4px;border-left:2px solid var(--site-gold);background:var(--site-paper);border-radius:4px}
#site-identity-menu .account-products-menu[hidden]{display:none}
#site-identity-menu .account-products-menu h3{font:600 10px/1.5 "Segoe UI",Arial,sans-serif;margin:8px 8px 3px;color:var(--site-muted)}
#site-identity-menu .account-products-menu a{padding:7px 8px}
#site-identity-menu .account-products-menu img{display:block;width:18px;height:18px;object-fit:contain;flex:0 0 18px}
#site-identity-menu [aria-controls^=account-][aria-expanded]::after{content:'';margin-left:auto;width:5px;height:5px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg)}
#site-identity-menu [aria-controls^=account-][aria-expanded][aria-expanded=true]::after{transform:rotate(225deg)}
#site-identity-menu .account-products-menu :is(img,svg){width:18px!important;height:18px!important;object-fit:contain;flex:0 0 18px!important}
#site-identity-menu .account-products-menu{margin-left:6px}
.site-header{width:100%;margin:0;padding:0}.site-header .brand{display:flex;align-items:center;flex:none;line-height:0}.site-header .brand img{height:auto}.site-header .nav{position:static;background:transparent;border:0;box-shadow:none;margin:0}.site-header .site-identity-trigger{border-radius:0;box-shadow:none;font-weight:400}.site-header .catalog-item svg{width:44px;height:44px;flex:none}

#site-identity-menu .account-products-menu>a:not(:first-child){padding-left:16px}


/* Keep the arcade palette while sharing the main site's header geometry. */
.site-header{--site-paper:#0b0e13;--site-white:#141a23;--site-ink:#f3f4f6;--site-muted:#929aaa;--site-line:#ffffff1c;--site-gold:#d8ff80;--site-hover:#293137;color-scheme:dark}
.site-header .brand img{filter:brightness(0) invert(1)}
.site-header .catalog-menu,#site-identity-menu{box-shadow:0 16px 45px #0009}
.site-header .site-identity-trigger:focus-visible,.site-header a:focus-visible{outline:2px solid #d8ff80;outline-offset:3px}

/* Games uses just the brand/account row; catalogs remain available in the account menu. */
.site-header #main-navigation{display:none!important}
@media(max-width:800px){.site-header .header-row{min-height:0}}

/* Match the main account menu: plain foldouts without a separate panel or side bar. */
#site-identity-menu .account-products-menu{background:transparent;border-left:0}


/* AgentConnect retains its workspace and settings layout below the shared header. */
#polywinkle-header{display:block;flex-shrink:0;min-height:0;padding:0;background:#0b0e13;border-bottom:1px solid #ffffff1c}.site-header .header-row{width:calc(100% - 24px)}.site-header .brand img{height:auto}.fullscreen-config #polywinkle-header{position:sticky;top:0;z-index:50}.fullscreen-config .view-controls{position:relative;top:auto}.site-header .site-identity-avatar img{width:100%;height:100%;object-fit:cover}.site-header .site-identity-trigger{background:transparent;min-height:0}.site-header .site-account-link{color:var(--site-ink)}
