/* HBN standalone chrome: slim top bar + visually-hidden SSR intro (no fake desktop). */
.hbn-sa-bar{display:flex;align-items:center;gap:12px;box-sizing:border-box;width:100%;max-width:100vw;min-height:34px;padding:4px 10px;background:#14214f;color:#fff;font:600 13px/1.2 Arial,Helvetica,sans-serif;position:relative;z-index:50;overflow:hidden;flex:0 0 auto;grid-column:1/-1}
.hbn-sa-bar a{color:#fff;text-decoration:none}
.hbn-sa-brand{flex:0 0 auto;font-weight:800;letter-spacing:.04em;padding:2px 8px;border:1px solid rgba(255,255,255,.55);border-radius:3px}
.hbn-sa-links{display:flex;flex-wrap:nowrap;gap:2px;overflow-x:auto;scrollbar-width:none;min-width:0}
.hbn-sa-links::-webkit-scrollbar{display:none}
.hbn-sa-links a{padding:4px 9px;border-radius:3px;white-space:nowrap}
.hbn-sa-links a:hover,.hbn-sa-links a:focus-visible{background:rgba(255,255,255,.18)}
.hbn-sa-links a[aria-current="page"]{background:#fff;color:#14214f}
.hbn-sa-intro{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
/* Full-viewport apps (Earth TV): the bar is pinned to the TOP and the TV layout (topbar, picture, panels) starts BELOW it, so nothing is laid over the player. */
:root{--hbn-sa-nav-h:0px}
.hbn-sa-bar{height:var(--hbn-sa-nav-h)}
.hbn-sa-bar.hbn-sa-float{position:fixed;top:0;left:0;right:0;width:auto;max-width:100vw;z-index:100;opacity:1}
body.tv-mode:has(> .hbn-sa-bar.hbn-sa-float) .tv-topbar{top:var(--hbn-sa-nav-h)}
body.tv-mode:has(> .hbn-sa-bar.hbn-sa-float) .watch{inset:calc(var(--hbn-sa-nav-h) + 44px) 0 0 0}
body.tv-mode:has(> .hbn-sa-bar.hbn-sa-float) .tvb-info:not([hidden]){top:calc(var(--hbn-sa-nav-h) + 44px)}
body.tv-mode.tvb-info-open:has(> .hbn-sa-bar.hbn-sa-float) .watch{inset:calc(var(--hbn-sa-nav-h) + 176px) 0 0 0}
@media (max-width:760px){
  .hbn-sa-bar.hbn-sa-float{position:relative;top:auto;left:auto;right:auto}
  body.tv-mode:has(> .hbn-sa-bar.hbn-sa-float) .tv-topbar{top:auto}
  body.tv-mode:has(> .hbn-sa-bar.hbn-sa-float) .watch{inset:auto}
  body.tv-mode.tvb-info-open:has(> .hbn-sa-bar.hbn-sa-float) .watch{inset:auto}
  body.tv-mode:has(> .hbn-sa-bar.hbn-sa-float) .tvb-info:not([hidden]){top:auto}
}
/* SSR pages (news, games, shop thank-you) */
body.hbn-sa-page{margin:0;overflow-x:hidden}
.hbn-sa-main{box-sizing:border-box;max-width:1100px;margin:0 auto;padding:16px 16px 40px;overflow-wrap:anywhere}
.hbn-sa-h1{margin:6px 0 4px;font-size:28px;line-height:1.15}
.hbn-sa-lede{margin:0 0 16px;opacity:.85}
.hbn-sa-story{border-top:1px solid rgba(127,127,127,.35);padding:12px 0}
.hbn-sa-story.lead h2{font-size:24px;margin:4px 0 6px}
.hbn-sa-story h3{font-size:17px;margin:2px 0 4px}
.hbn-sa-cat{margin:0;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;opacity:.75}
.hbn-sa-dek{margin:0 0 6px}
.hbn-sa-when,.hbn-sa-src{margin:0;font-size:13px;opacity:.75}
.hbn-sa-cols{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:0 24px}
.hbn-sa-cols .hbn-sa-dek{display:none}
body[data-sa-mounted] .hbn-sa-ssr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%)}
body[data-sa-mounted] .hbn-sa-mount{display:block}
.hbn-sa-gamelist{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}
.hbn-sa-gamelist li{padding:8px 10px;border:1px solid rgba(127,127,127,.35);border-radius:6px}
.hbn-sa-gamelist span{display:block;font-size:13px;opacity:.8}
.hbn-sa-thanks{max-width:640px;text-align:left}
.hbn-sa-ref{font-size:16px}
.hbn-sa-btn{display:inline-block;margin:6px 8px 0 0;padding:8px 14px;border:2px solid currentColor;border-radius:4px;font-weight:700;text-decoration:none}
.hbn-sa-lines{list-style:none;padding:0;margin:8px 0;border-top:1px solid rgba(127,127,127,.35)}
.hbn-sa-lines li{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid rgba(127,127,127,.25)}
/* home (portal): one combined app grid under the logo; each app once; labels stay on one line (no mid-word wraps). */
body[data-sa-app="home"] .pt-top{flex-wrap:wrap;align-items:flex-start;gap:4px 0}
body[data-sa-app="home"] .pt-logo{flex:0 0 100%;width:100%;justify-content:center;padding:2px 0 6px}
.hbn-sa-apps{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:6px 8px;margin:0 auto 8px;max-width:1100px;padding:0 6px;width:100%;box-sizing:border-box}
.hbn-sa-apps .pt-ic{overflow-wrap:normal;word-break:normal;white-space:nowrap;width:auto;min-width:42px;flex:0 0 auto;padding:0 3px;box-sizing:border-box}
@media (max-width:640px){
  .hbn-sa-apps .pt-ic{width:auto;min-width:42px}
}
.hbn-sa-heads{margin:8px 0 0;padding-left:18px}
.hbn-sa-heads li{margin:3px 0}
#pt-lead .hbn-sa-story{border-top:0;padding-top:0}
/* Standalone Messenger (im.): IM's layout is a full-viewport app (position:fixed); keep the suite nav bar visible above it. */
body.im-sa{--sa-bar:0px}
body.im-sa .hbn-sa-bar{position:fixed;top:0;left:0;right:0;width:auto;height:var(--sa-bar);min-height:0;z-index:2147483000;overflow:hidden}
body.im-sa .im-desk[data-standalone="1"]{box-sizing:border-box;padding-top:var(--sa-bar)}

/* games (standalone page): full-width responsive card grid; the game stage gets a definite height under the bar. */
body[data-sa-app="games"]{display:block}
body[data-sa-app="games"] .hbn-sa-main{max-width:1200px;padding:16px 20px 40px}
body[data-sa-app="games"] .hbn-sa-mount{display:block;background:transparent}
body[data-sa-app="games"] #hbn-sa-mount .hbn-games-paper{height:auto;min-height:0;padding:6px 0 0}
body[data-sa-app="games"] #hbn-sa-mount .hbn-games-menu{overflow:visible;grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
body[data-sa-app="games"] #hbn-sa-mount:has(.hbn-games-stage:not([hidden])){height:calc(100vh - var(--hbn-sa-nav-h) - var(--hbn-sa-task-h,0px) - 48px);height:calc(100dvh - var(--hbn-sa-nav-h) - var(--hbn-sa-task-h,0px) - 48px);min-height:520px}
body[data-sa-app="games"] #hbn-sa-mount:has(.hbn-games-stage:not([hidden])) .hbn-games-paper{height:100%}
@media (max-width:760px){
  body[data-sa-app="games"] .hbn-sa-main{padding:10px 12px 28px}
  body[data-sa-app="games"] #hbn-sa-mount .hbn-games-menu{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
}
/* news (standalone page): a tall, properly proportioned lead photo with top-biased framing so faces and subjects are not cropped off. */
body[data-sa-app="news"] .hbn-app-news .hbn-n-lead .hbn-n-fig{max-width:960px}
body[data-sa-app="news"] .hbn-app-news .hbn-n-lead .hbn-n-photo{height:auto;aspect-ratio:16/9;max-height:min(540px,62vh);object-fit:cover;object-position:center 20%}
@media (max-width:430px){
  body[data-sa-app="news"] .hbn-app-news .hbn-n-lead .hbn-n-photo{height:auto;aspect-ratio:4/3;max-height:none;object-position:center 20%}
}
/* home (portal): the portal has its own 8px body margin; keep the nav bar flush with the top edge. */
body[data-sa-app="home"]{margin:0}
body[data-sa-app="home"]{padding-top:0}
body[data-sa-app="home"] .hbn-sa-bar{width:auto;max-width:none;margin:0 -8px 8px}
/* ===== MSWD-121: matching clean HBN top bar + slim bottom taskbar (same #14214f look as the existing bar; no gradients, no bevels). ===== */
:root{--hbn-sa-task-h:34px}
.hbn-sa-bar{gap:8px}
.hbn-sa-links{flex:1 1 auto}
.hbn-sa-start,.hbn-sa-theme,.hbn-sa-dd{font:inherit;color:#fff;cursor:pointer;-webkit-appearance:none;appearance:none;margin:0}
.hbn-sa-start{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px 0 8px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.55);border-radius:3px;font-weight:800;letter-spacing:.02em}
.hbn-sa-start img{display:block;width:16px;height:16px}
.hbn-sa-start:hover,.hbn-sa-start:focus-visible,.hbn-sa-start[aria-expanded="true"]{background:rgba(255,255,255,.22)}
.hbn-sa-dd{display:inline-flex;align-items:center;gap:4px;padding:4px 9px;border:0;border-radius:3px;background:transparent;white-space:nowrap;font-weight:600}
.hbn-sa-dd:hover,.hbn-sa-dd:focus-visible,.hbn-sa-dd[aria-expanded="true"]{background:rgba(255,255,255,.18)}
.hbn-sa-caret{font-size:10px;opacity:.85}
.hbn-sa-actions{flex:0 0 auto;display:flex;align-items:center;gap:6px;margin-left:auto}
.hbn-sa-signin{flex:0 0 auto;display:inline-flex;align-items:center;height:24px;padding:0 10px;background:transparent;border:1px solid rgba(255,255,255,.45);border-radius:12px;font-size:12px;font-weight:700;white-space:nowrap;color:#fff;text-decoration:none}
.hbn-sa-signin:hover,.hbn-sa-signin:focus-visible{background:rgba(255,255,255,.18)}
.hbn-sa-theme{flex:0 0 auto;margin-left:0;height:24px;padding:0 10px;background:transparent;border:1px solid rgba(255,255,255,.45);border-radius:12px;font-size:12px;font-weight:700;white-space:nowrap}
.hbn-sa-theme:hover,.hbn-sa-theme:focus-visible{background:rgba(255,255,255,.18)}
.hbn-sa-th-day{display:none}
html[data-theme="night"] .hbn-sa-th-night{display:none}
html[data-theme="night"] .hbn-sa-th-day{display:inline}
/* menus (Start, CreatorSuite): fixed panels outside the scrolling link strip so they are never clipped */
.hbn-sa-menu{position:fixed;z-index:2147483001;box-sizing:border-box;min-width:180px;max-width:calc(100vw - 8px);overflow-y:auto;padding:4px;background:#14214f;color:#fff;border:1px solid rgba(255,255,255,.28);border-radius:4px;box-shadow:0 8px 24px rgba(0,0,0,.35);font:600 13px/1.2 Arial,Helvetica,sans-serif}
.hbn-sa-menu[hidden]{display:none}
.hbn-sa-menu a{display:flex;align-items:center;gap:8px;padding:6px 10px;border-radius:3px;color:#fff;text-decoration:none;white-space:nowrap}
.hbn-sa-menu a:hover,.hbn-sa-menu a:focus-visible{background:rgba(255,255,255,.16);outline:0}
.hbn-sa-menu a[aria-current="page"]{background:#fff;color:#14214f}
.hbn-sa-menu img{flex:0 0 auto;display:block}
.hbn-sa-startmenu{width:240px}
.hbn-sa-launch{padding:8px 10px!important;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.35)}
.hbn-sa-launch span{display:flex;flex-direction:column;gap:2px}
.hbn-sa-launch b{font-size:14px;font-weight:800}
.hbn-sa-launch small{font-size:11px;font-weight:400;opacity:.8}
.hbn-sa-sep{height:1px;margin:4px 6px;background:rgba(255,255,255,.22)}
/* Creator Suite grouped dropdown: compact labeled sections, high contrast on navy in Day and Night. */
.hbn-sa-creator{min-width:196px;padding:2px 0 4px}
.hbn-sa-cg+.hbn-sa-cg{margin-top:2px;padding-top:2px;border-top:1px solid rgba(255,255,255,.28)}
.hbn-sa-ch{padding:5px 10px 1px;font:800 10px/1.2 Arial,Helvetica,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#ffd21f;text-shadow:0 1px 0 rgba(0,0,0,.45)}
.hbn-sa-creator a{padding:4px 10px 4px 12px}
@media (max-width:760px){
  .hbn-sa-creator a{padding:7px 10px 7px 12px}
  .hbn-sa-ch{padding:6px 10px 1px}
}

/* bottom taskbar */
.hbn-sa-task{position:fixed;left:0;right:0;bottom:0;z-index:2147483000;box-sizing:border-box;display:flex;align-items:center;gap:8px;height:var(--hbn-sa-task-h);padding:0 10px;padding-bottom:env(safe-area-inset-bottom,0px);background:#14214f;color:#fff;border-top:1px solid rgba(255,255,255,.22);font:600 13px/1.2 Arial,Helvetica,sans-serif;overflow:hidden}
.hbn-sa-mid{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:8px;overflow:hidden}
.hbn-sa-pill{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px 10px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3);border-radius:3px}
.hbn-sa-qls{display:flex;align-items:center;gap:2px;flex:0 0 auto}
.hbn-sa-ql{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:3px;color:#fff;text-decoration:none;white-space:nowrap}
.hbn-sa-ql:hover,.hbn-sa-ql:focus-visible{background:rgba(255,255,255,.18)}
.hbn-sa-ql img{display:block;width:16px;height:16px}
.hbn-sa-clock{flex:0 0 auto;padding:0 2px 0 10px;border-left:1px solid rgba(255,255,255,.22);font-variant-numeric:tabular-nums;white-space:nowrap}
body:has(> .hbn-sa-task){padding-bottom:var(--hbn-sa-task-h)!important}
/* the chrome keeps its own colors in Night mode too (page night styles must not recolor its links) */
.hbn-sa-bar a,.hbn-sa-task a,.hbn-sa-menu a,.hbn-sa-bar button,.hbn-sa-task button,.hbn-sa-signin{color:#fff!important;text-decoration:none!important}
.hbn-sa-ch{color:#ffd21f!important}
.hbn-sa-links a[aria-current="page"],.hbn-sa-menu a[aria-current="page"]{color:#14214f!important}
/* full-viewport apps: their fixed layouts end above the taskbar (Earth TV picture never under it; Messenger list/windows stay clear) */
body.tv-mode:has(> .hbn-sa-bar.hbn-sa-float) .watch{bottom:var(--hbn-sa-task-h)!important}
body.im-sa .im-desk[data-standalone="1"]{padding-bottom:var(--hbn-sa-task-h)}
/* coming-soon pages */
.hbn-sa-soon{padding-top:48px;padding-bottom:64px}
@media (max-width:760px){
  :root{--hbn-sa-task-h:40px}
  .hbn-sa-bar{gap:6px;padding:4px 6px}
  .hbn-sa-start{padding:0 8px 0 6px}
  .hbn-sa-theme,.hbn-sa-signin{padding:0 8px}
  .hbn-sa-actions{gap:4px}
  .hbn-sa-task{gap:4px;padding:0 6px;padding-bottom:env(safe-area-inset-bottom,0px)}
  .hbn-sa-task .hbn-sa-start{height:32px}
  .hbn-sa-ql{padding:6px 7px}
  .hbn-sa-ql span{display:none}
  .hbn-sa-ql span.hbn-sa-ql-keep{display:inline}
  .hbn-sa-ql:has(.hbn-sa-ql-keep) img{display:none}
  .hbn-sa-pill{padding:4px 8px;font-size:12px}
  .hbn-sa-menu a{padding:9px 10px}
  .hbn-sa-clock{padding-left:6px;font-size:12px}
}
@media (max-width:420px){ .hbn-sa-pill{max-width:96px} }

/* ===== MSWD-121 night contrast: color-only fixes for unreadable dark-on-dark text. Day is unchanged. ===== */
html[data-theme="night"] body[data-sa-app="games"] .hbn-games-mast,
html[data-theme="night"] body[data-sa-app="games"] .hbn-games-credit,
html[data-theme="night"] body[data-sa-app="games"] .hbn-sa-h1,
html[data-theme="night"] body[data-sa-app="games"] .hbn-sa-lede{color:#f1f5f9}
html[data-theme="night"] body[data-sa-app="games"] .hbn-games-credit a{color:#93c5fd}
/* Home portal: brighter muted text, links, and finance up/down (were #060/#a00 on charcoal). */
html[data-theme="night"] body.pt .pt-full,
html[data-theme="night"] body.pt .pt-sw,
html[data-theme="night"] body.pt .pt-meta,
html[data-theme="night"] body.pt .pt-empty,
html[data-theme="night"] body.pt .pt-foot,
html[data-theme="night"] body.pt .pt-stamp,
html[data-theme="night"] body.pt .pt-tick .pt-t,
html[data-theme="night"] body.pt .pt-lead figcaption,
html[data-theme="night"] body.pt .pt-lead .pt-meta,
html[data-theme="night"] body.pt .pt-latest .pt-meta,
html[data-theme="night"] body.pt .pt-secs .pt-meta,
html[data-theme="night"] body.pt .pt-rail .pt-src,
html[data-theme="night"] body.pt .pt-nh span{color:#cbd5e1}
html[data-theme="night"] body.pt a{color:#93c5fd}
html[data-theme="night"] body.pt a:visited{color:#c4b5fd}
html[data-theme="night"] body.pt .pt-ic{color:#bfdbfe}
html[data-theme="night"] body.pt .pt-up{color:#86efac}
html[data-theme="night"] body.pt .pt-dn{color:#fca5a5}
/* Coming-soon / leftover standalone page copy on a dark body. */
html[data-theme="night"] body.hbn-sa-page .hbn-sa-h1,
html[data-theme="night"] body.hbn-sa-page .hbn-sa-lede,
html[data-theme="night"] body.hbn-sa-page .hbn-sa-soon{color:#f1f5f9}
html[data-theme="night"] body.hbn-sa-page .hbn-sa-btn{color:#f1f5f9;border-color:#cbd5e1}

/* Hybrid bar v2: on the HBN Desktop (/) the top bar sits above the desk so maximized windows fill the gap above the taskbar. Icons stay as-is. */
body.dk-home main.ms-main > .hbn-sa-bar, main.ms-main > .hbn-sa-bar{position:absolute;top:0;left:0;right:0;width:auto;max-width:none;margin:0;z-index:2000002;flex:0 0 auto}
body.dk-home .dk-desk{inset:var(--hbn-sa-nav-h,34px) 0 0 0!important}
@media (max-width:699px){
  body.dk-home:has(.hbn-sa-bar) .dk-win.dk-appwin{top:var(--hbn-sa-nav-h,34px)!important;inset:var(--hbn-sa-nav-h,34px) 0 calc(48px + env(safe-area-inset-bottom,0px)) 0}
}

/* MSWD-138 (Dacota t1473u-t1477u): no top bar anywhere; the bottom Start menu is the website's menu bar (sections, Creator Suite, Sign In, Day/Night). */
.hbn-sa-bar{display:none!important}
.hbn-sa-startmenu .hbn-sa-ch-top{padding-top:6px;font-size:11px}
.hbn-sa-startmenu .hbn-sa-actions{display:flex;gap:6px;margin:2px 0 0;padding:6px 10px 4px}
.hbn-sa-startmenu .hbn-sa-actions .hbn-sa-signin,.hbn-sa-startmenu .hbn-sa-actions .hbn-sa-theme{padding:0 10px;border-radius:12px}
