/* Shared chrome and wayfinding. Page tools retain their own control layouts. */
body[data-atlas] {
  /* Shared typography for page titles, sections and interface labels. */
  --atlas-display:clamp(1.4375rem,1.14rem + .85vw,1.875rem);
  --atlas-title:clamp(1.25rem,1.08rem + .65vw,1.625rem);
  --atlas-section:clamp(1rem,.95rem + .28vw,1.125rem);
  --atlas-label:.8125rem;
  --atlas-bg: #0c171f;
  --atlas-panel: #13242d;
  --atlas-line: #32444b;
  --atlas-ink: #f5f1e8;
  --atlas-muted: #b9c9cd;
  --atlas-mint: #a9e4ce;
  --atlas-gold: #f0cf8d;
  background-color: var(--atlas-bg);
}
body[data-atlas] > header.homepage-shared-header {
  background: #102129 !important; border-bottom-color:#35474c !important;
}
body[data-atlas] > header.homepage-shared-header .header-inner {
  max-width: 1320px !important; margin-inline:auto !important;
}
body[data-atlas] > header.homepage-shared-header .hq-brand {border-right-color:#35474c}
body[data-atlas] > header.homepage-shared-header .desktop-shortcuts a {color:#e3e7df}
body[data-atlas] > header.homepage-shared-header .desktop-shortcuts .hq-archive {display:none}
body[data-atlas] :is(.atlas-crumb,.atlas-directory,.atlas-hero,.atlas-topics,.atlas-menu) {box-sizing:border-box;font-family:system-ui,sans-serif}
body[data-atlas] .atlas-crumb {
  display:flex; align-items:center; flex-wrap:wrap; gap:9px; width:min(calc(100% - 36px),1200px);
  margin:0 auto; min-height:36px; padding:5px 0; color:var(--atlas-muted); font-size:12px;
}
body[data-atlas] .atlas-crumb i {color:#80908e;font-style:normal}
body[data-atlas] .atlas-crumb a {color:#c4d6d3;text-decoration:none;line-height:1.5;padding:3px 0}
body[data-atlas] .atlas-crumb a:hover {text-decoration:underline}
body[data-atlas] main > .atlas-crumb {width:auto;margin:0 0 10px;min-height:25px}
body[data-atlas] #main:has(.reader) > .atlas-crumb {max-width:50rem;margin-inline:auto}
body[data-atlas] .atlas-menu {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:8px}
body[data-atlas] .atlas-menu .atlas-topic {padding:8px 12px;min-height:38px}
body[data-atlas] .atlas-topic {
  display:flex;align-items:center;gap:12px;min-width:0;box-sizing:border-box;
  color:var(--atlas-ink);background:var(--atlas-panel);border:1px solid var(--atlas-line);border-radius:10px;text-decoration:none;
}
body[data-atlas] .atlas-topic b {color:var(--topic-color,var(--atlas-mint));font-weight:500;margin-left:auto}
body[data-atlas] .atlas-topic strong {display:block;font-size:var(--atlas-label);font-weight:600;line-height:1.3}
body[data-atlas] .atlas-topic small {display:block;font-size:12px;color:var(--atlas-muted);line-height:1.4;margin-top:2px}
.atlas-army {--topic-color:#ebc789}
.atlas-research {--topic-color:#93d7e3}
.atlas-supplies {--topic-color:#abcba0}
.atlas-field {--topic-color:#baaee3}
body[data-atlas] .atlas-topic:hover,body[data-atlas] .atlas-family li a:hover {border-color:var(--topic-color);background:#1a3039}
body[data-atlas] :is(.atlas-topic,.atlas-actions a,.atlas-actions button,.atlas-crumb a,.atlas-family a):focus-visible {outline:3px solid var(--atlas-gold);outline-offset:3px}

/* The original island illustration has clean space at left and its focal point at right. */
body[data-atlas].home-page #main-content {width:min(calc(100% - 48px),1240px);margin-inline:auto;padding-inline:0}
body[data-atlas].home-page .atlas-hero {
  position:relative;isolation:isolate;overflow:hidden;margin:0;border:1px solid #3a4b4f;
  background:#091521;border-radius:17px;display:flex;align-items:center;min-height:clamp(270px,25vw,345px);
}
.atlas-hero .atlas-island {
  position:absolute;z-index:-2;right:0;top:0;width:68%;height:100%;object-fit:cover;object-position:60% 42%;
  mask-image:linear-gradient(90deg,transparent,#000 20%);pointer-events:none;
}
body[data-atlas].home-page .atlas-hero::after {
  content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,#0a1722 5%,#0a1722e8 30%,transparent 68%);pointer-events:none;
}
.atlas-hero-copy {padding:clamp(26px,4.8vw,66px);max-width:57%;box-sizing:border-box}
body[data-atlas].home-page .atlas-hero-copy h1,body[data-atlas] .atlas-directory-head h1 {
  font-family:Georgia,"Times New Roman",serif;font-weight:500;letter-spacing:-.055em;color:var(--atlas-ink);
  line-height:1.01;font-size:var(--atlas-display);margin:0;text-wrap:balance;text-transform:none;
}
body[data-atlas].home-page .atlas-hero-copy p,body[data-atlas] .atlas-directory-head p {margin:6px 0 0;color:#ccdad9;font-size:.875rem;line-height:1.4;max-width:64ch}
.atlas-actions {display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:22px}
body[data-atlas].home-page .atlas-actions :is(a,button) {
  min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:9px 16px;
  border-radius:6px;font:650 14px/1.4 system-ui;text-decoration:none;letter-spacing:0;cursor:pointer;
}
body[data-atlas].home-page .atlas-actions a {background:#f0d397;border:1px solid #efdaa9;color:#22251f}
body[data-atlas].home-page .atlas-actions a::after {content:'→';font-size:18px}
body[data-atlas].home-page .atlas-actions button {background:#122832;color:#e4efeb;border:1px solid #52676a}
body[data-atlas].home-page .atlas-actions :is(a,button):hover {filter:brightness(1.12)}
body[data-atlas] .atlas-topics {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:8px 0 14px}
body[data-atlas] .atlas-topics .atlas-topic {position:relative;min-height:58px;padding:7px 10px;gap:8px}
.atlas-symbol {width:32px;height:34px;border-radius:7px;flex:0 0 auto;background-position:center;background-size:cover}
.atlas-army .atlas-symbol {background-image:url('/bond-portrait-101-v1.webp')}
.atlas-research .atlas-symbol {background-image:url('/art/upgrade-core-v270.webp');background-position:75% 50%;background-size:auto 120%}
.atlas-supplies .atlas-symbol {background-image:url('/account-item-art-v204/i8b24d96bc3a5e9eff7.webp');background-size:contain;background-repeat:no-repeat}
.atlas-field .atlas-symbol {background-image:url('/city-rewards-map.svg');background-size:contain;background-repeat:no-repeat}
body[data-atlas].home-page .home-directory .home-directory-head h2 {font-size:var(--atlas-section);letter-spacing:-.04em}
body[data-atlas].home-page .home-directory .home-group {background:var(--atlas-panel);border-color:var(--atlas-line);border-radius:12px}
body[data-atlas].home-page .home-directory .home-tool:hover {background-color:#20363e}
body[data-atlas].home-page .home-welcome {margin:26px 0}

/* A single directory for calculators, references and planners, grouped by task. */
body[data-atlas] main#tools {width:min(calc(100% - 44px),1200px);max-width:none;margin:0 auto 60px;padding:0}
.atlas-directory-head {padding:12px 0;border-bottom:1px solid var(--atlas-line)}
body[data-atlas] .atlas-directory-head h1 {font-size:var(--atlas-title);letter-spacing:-.035em;line-height:1.15}
.atlas-directory {display:grid;grid-template-columns:minmax(175px,215px) minmax(0,1fr);align-items:start;gap:clamp(16px,2.5vw,32px);padding-top:14px}
.atlas-rail {position:sticky;top:78px;display:grid;gap:5px}
body[data-atlas] .atlas-rail .atlas-topic {min-height:36px;padding:6px 10px}
.atlas-section {scroll-margin-top:84px;margin:0 0 22px}
body[data-atlas] .atlas-section h2 {display:flex;align-items:center;gap:10px;margin:0 0 8px;font:620 var(--atlas-section)/1.2 system-ui;letter-spacing:-.035em;color:var(--atlas-ink);scroll-margin-top:84px}
.atlas-section h2 i {height:20px;width:4px;border-radius:2px;background:var(--topic-color)}
.atlas-families {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.atlas-family {border:1px solid var(--atlas-line);border-radius:11px;background:var(--atlas-panel);overflow:hidden}
body[data-atlas] .atlas-family h3 {font:600 .875rem/1.35 system-ui;color:var(--topic-color);margin:0;padding:10px 12px 5px}
.atlas-family ul {list-style:none;padding:0 12px 5px;margin:0}
.atlas-family li {border-top:1px solid #2e4149;margin:0}
.atlas-family li a {display:block;position:relative;padding:6px 16px 6px 0;font-size:var(--atlas-label);line-height:1.45;color:var(--atlas-ink);text-decoration:none}
.atlas-family li a::after {content:'›';position:absolute;right:3px;top:10px;color:var(--topic-color)}
.atlas-family li a small {display:block;color:var(--atlas-muted);font-size:12px;line-height:1.5;margin-top:2px}
body[data-atlas] .archive-card {background:var(--atlas-panel);border-color:var(--atlas-line);border-radius:10px}
body[data-atlas] .archive-card .category {color:var(--atlas-gold);letter-spacing:.035em}
body[data-atlas] .reader>section {border-color:var(--atlas-line);scroll-margin-top:80px}
body[data-atlas] .reader p {line-height:1.65}
body[data-atlas] :is(.archive-intro,.reader) h1 {color:var(--atlas-ink);letter-spacing:-.04em;text-wrap:balance}
body[data-atlas] .reader h2 {color:var(--atlas-ink)}
body[data-atlas].hq-public :is(.game-heading,.page-heading) h1 {color:var(--atlas-ink);letter-spacing:-.035em}
body[data-atlas] :is(.results,.directory-grid) a:focus-visible {outline:3px solid var(--atlas-gold);outline-offset:2px}
@media(max-width:1040px) {
  body[data-atlas] .atlas-topics {grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-atlas] .atlas-topics .atlas-topic {min-height:74px}
}
@media(max-width:700px) {
  body[data-atlas].home-page #main-content,body[data-atlas] main#tools {width:calc(100% - 26px)}
  .atlas-directory {display:block;padding-top:14px}
  .atlas-rail {position:static;grid-template-columns:1fr 1fr;margin-bottom:24px}
  .atlas-families {gap:8px}
  body[data-atlas].home-page .atlas-hero {min-height:264px;border-radius:12px;align-items:flex-end}
  .atlas-hero-copy {padding:24px 20px;max-width:min(86%,430px)}
  body[data-atlas].home-page .atlas-hero-copy h1 {font-size:var(--atlas-display);max-width:14ch}
  body[data-atlas].home-page .atlas-hero-copy p {font-size:var(--atlas-label);max-width:36ch;margin-top:6px}
  .atlas-hero .atlas-island {width:88%;object-position:65% 26%}
  body[data-atlas].home-page .atlas-hero::after {background:linear-gradient(0deg,#081521 2%,#081521ba 44%,#08152118),linear-gradient(90deg,#081521d9,transparent 95%)}
  .atlas-actions {gap:7px;margin-top:16px}
  body[data-atlas].home-page .atlas-actions :is(a,button){font-size:13px;padding:8px 11px}
  body[data-atlas] .atlas-topics {gap:6px;margin:6px 0 12px}
  body[data-atlas] .atlas-topics .atlas-topic {min-height:44px;padding:6px 8px;align-items:center;gap:5px}
  .atlas-topics .atlas-symbol {display:none}
  body[data-atlas] .atlas-topics strong {font-size:var(--atlas-label)}
  body[data-atlas] .atlas-topics small {font-size:11px}
  body[data-atlas] .atlas-topics b {font-size:13px;padding-left:4px}
  body[data-atlas] .atlas-rail .atlas-topic strong {font-size:13px}
}
@media(max-width:510px) {.atlas-families {grid-template-columns:1fr}}

/* Legacy game themes also paint the hydrated h1. Keep the editorial title and
   CTA readable after those themes have attached their own classes. */
body[data-atlas].home-page #main-content .atlas-hero h1 {
  display:block!important;background:none!important;min-height:0!important;padding:0!important;margin:0!important;
  font:500 var(--atlas-display)/.99 Georgia,serif!important;letter-spacing:-.055em!important;
  color:#f5f1e8!important;max-width:12ch;text-shadow:none!important;
}
body[data-atlas].home-page #main-content .atlas-hero h1::before,
body[data-atlas].home-page #main-content .atlas-hero h1::after {content:none!important;display:none!important}
body[data-atlas].home-page #main-content .atlas-actions a {color:#22251f!important}
body[data-atlas].home-page #main-content .atlas-topic strong {color:#f2f3e9}
body[data-atlas].home-page .atlas-island {object-fit:contain;object-position:right center;width:65%;background:linear-gradient(90deg,transparent,#0a1520)}
body[data-atlas="army"] {--section-accent:#e8c88d}
body[data-atlas="research"] {--section-accent:#9acfdc}
body[data-atlas="supplies"] {--section-accent:#b3d0a8}
body[data-atlas="field"] {--section-accent:#c7bddc}
body[data-atlas] > .atlas-crumb {border-bottom:1px solid #263942}
body[data-atlas] > .atlas-crumb a:last-child {color:var(--section-accent,var(--atlas-mint))}
body[data-atlas] .atlas-end {
  display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid #35464c;
  margin:28px auto 0;width:min(calc(100% - 36px),1200px);padding:20px 0 26px;
  color:var(--atlas-muted);font:500 13px/1.5 system-ui,sans-serif;
}
body[data-atlas] .atlas-end div {display:flex;gap:4px 20px;flex-wrap:wrap}
body[data-atlas] .atlas-end a {color:#c9d8d5;text-decoration:none;padding:6px 0}
body[data-atlas] .atlas-end a:hover {color:white;text-decoration:underline}
body[data-atlas] .atlas-end .atlas-end-brand {display:flex;align-items:center;gap:8px;white-space:nowrap;color:#f5f1e8;font-weight:720}
body[data-atlas] .atlas-end img {width:28px;height:28px}
body[data-atlas]:is([data-atlas="army"],[data-atlas="research"],[data-atlas="supplies"],[data-atlas="field"]) > main :is(.page-heading,.gear-heading).game-heading {
  border:1px solid #354950!important;border-left:3px solid var(--section-accent)!important;
  background:linear-gradient(110deg,#1a2e37,#101e28 78%)!important;border-radius:10px!important;
  box-shadow:none!important;min-height:0!important;padding:clamp(10px,1.25vw,16px)!important;
}
body[data-atlas] > main :is(.page-heading,.gear-heading).game-heading::before {content:none!important}
body[data-atlas] > main :is(.page-heading,.gear-heading) h1.game-title::before {display:none!important}
body[data-atlas]:not([data-atlas="site"]) main:not(.cr-main) > h1,
body[data-atlas] > main :is(.page-heading,.gear-heading) h1.game-title {
  color:var(--atlas-ink)!important;font:640 var(--atlas-title)/1.17 system-ui,sans-serif!important;
  letter-spacing:-.04em!important;text-transform:none!important;
}
body[data-atlas] .archive-intro h1,body[data-atlas] .reader h1 {
  font:500 var(--atlas-title)/1.16 Georgia,serif;letter-spacing:-.045em
}
body[data-atlas] .archive-card {padding:10px 13px;transition:border-color .15s ease}
body[data-atlas] .archive-card:hover {border-color:var(--atlas-mint)}
body[data-atlas] .archive-list .archive-card h2 {font-size:.9375rem;letter-spacing:-.025em}
body[data-atlas] .reader > section > h2 {font-size:var(--atlas-section);letter-spacing:-.03em}
body[data-atlas] .reader > section {padding-block:clamp(12px,1.1vw,16px)}
@media(max-width:700px) {
  body[data-atlas].home-page #main-content .atlas-hero h1 {font-size:var(--atlas-display)!important;max-width:12ch}
  body[data-atlas].home-page .atlas-island {width:100%;object-fit:cover;object-position:62% 22%}
  body[data-atlas] .atlas-end {align-items:flex-start;flex-direction:column;gap:6px}
  body[data-atlas] .atlas-end div {gap:3px 13px}
}
body[data-atlas].home-page .atlas-island {width:auto;max-width:65%;object-fit:cover;mask-image:linear-gradient(90deg,transparent,#000 28%)}
body[data-atlas] > main :is(.page-heading,.gear-heading) h1.game-title {padding-left:0!important}
body[data-atlas] .atlas-plain {display:flex;justify-content:center;gap:16px;padding:10px;font:600 14px/1.4 system-ui}
body[data-atlas] .atlas-plain a {color:var(--atlas-mint)}
@media(max-width:700px) {body[data-atlas].home-page .atlas-island {width:100%;max-width:100%}}
@media(scripting:none) {
  body[data-atlas] :is(#site-menu,#hq-finder-toggle,.header-language,#home-tool-jump) {display:none!important}
}
body[data-atlas] .atlas-plain {flex-wrap:wrap}

/* Primary navigation stays visible at every width. The menu opens the extended directory. */
body[data-atlas] > header.homepage-shared-header[data-hq-masthead] {
  background:#102129!important;border-bottom:1px solid #385051!important;box-shadow:0 2px 12px #06121930;
}
body[data-atlas] > header.homepage-shared-header[data-hq-masthead] .header-inner {
  box-sizing:border-box!important;display:grid!important;grid-template-columns:auto minmax(0,1fr) auto auto auto!important;
  grid-template-areas:"brand links search language menu";align-items:center!important;
  max-width:1288px!important;min-height:50px!important;height:auto!important;
  --header-inset:24px;padding:0 var(--header-inset)!important;gap:0 8px!important;margin:auto!important;overflow:visible!important;
}
body[data-atlas] header[data-hq-masthead].homepage-shared-header .header-inner .hq-brand {
  grid-area:brand!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;
  gap:8px!important;width:auto!important;min-width:0!important;min-height:44px!important;
  padding:0!important;margin:0 13px 0 0!important;border:0!important;
}
body[data-atlas] header[data-hq-masthead].homepage-shared-header .hq-brand .companion-wordmark {
  display:block!important;font:630 .75rem/1.1 system-ui,sans-serif!important;letter-spacing:.045em!important;white-space:nowrap;color:#faf5ea!important;
}
body[data-atlas] header[data-hq-masthead].homepage-shared-header .hq-brand small {display:none!important}
body[data-atlas] header[data-hq-masthead].homepage-shared-header .hq-brand .companion-logo {width:25px!important;height:25px!important}
body[data-atlas] header[data-hq-masthead].homepage-shared-header .header-inner .desktop-shortcuts {
  grid-area:links!important;display:flex!important;justify-content:flex-start;align-items:center;flex-wrap:nowrap;gap:8px;
  width:auto!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;
}
body[data-atlas] header[data-hq-masthead].homepage-shared-header .desktop-shortcuts a[data-primary-route] {
  display:inline-flex!important;align-items:center;justify-content:center;position:relative;
  box-sizing:border-box;min-height:44px;min-width:44px;padding:6px 10px!important;margin:0!important;
  font:520 var(--atlas-label)/1.25 system-ui,sans-serif!important;letter-spacing:0!important;
  color:#c3d1d1!important;background:transparent!important;border:0!important;border-radius:5px!important;
  text-decoration:none!important;box-shadow:none!important;
}
body[data-atlas] header[data-hq-masthead].homepage-shared-header .desktop-shortcuts a[data-primary-route][aria-current] {color:#f2faf7!important}
body[data-atlas] header[data-hq-masthead].homepage-shared-header .desktop-shortcuts a[data-primary-route][aria-current]::after {
  content:"";position:absolute;inset-inline:0;bottom:4px;margin-inline:auto;
  width:1.5rem;max-width:50%;height:2px;background:#83d6bf;border-radius:1px;pointer-events:none;
}
@media (hover:hover) and (pointer:fine) {
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .desktop-shortcuts a[data-primary-route]:hover {color:#fff!important;background:#1c333b!important}
}
body[data-atlas] header[data-hq-masthead].homepage-shared-header .desktop-shortcuts a[data-primary-route]:focus-visible {outline:2px solid #aadfd3!important;outline-offset:-3px!important}
@media (forced-colors:active) {
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .desktop-shortcuts a[data-primary-route][aria-current]::after {background:none;border-block-end:2px solid LinkText}
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .desktop-shortcuts a[data-primary-route]:focus-visible {outline-color:Highlight!important}
}
body[data-atlas] header[data-hq-masthead].homepage-shared-header #hq-finder-toggle {grid-area:search!important;justify-self:end}
body[data-atlas] header[data-hq-masthead].homepage-shared-header :is(.tw-lang-header,.header-language) {grid-area:language!important;justify-self:end}
body[data-atlas] header[data-hq-masthead].homepage-shared-header .header-inner > #site-menu {
  grid-area:menu!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex-direction:row!important;gap:8px!important;width:auto!important;min-width:0!important;max-width:none!important;
  min-height:42px!important;height:auto!important;padding:9px 13px!important;border:1px solid #516668!important;
  border-radius:7px!important;background:#1e343b!important;color:#f2f6f3!important;box-shadow:none!important;
}
body[data-atlas] header[data-hq-masthead] #site-menu .hq-menu-icon {
  display:block;position:static;width:18px;height:18px;flex:0 0 18px;margin:0;transform:none;
}
body[data-atlas] header[data-hq-masthead] #site-menu::before,
body[data-atlas] header[data-hq-masthead] #site-menu::after {content:none!important;display:none!important}
.hq-menu-icon .hq-menu-close, #site-menu[aria-expanded="true"] .hq-menu-open {display:none}
#site-menu[aria-expanded="true"] .hq-menu-close {display:inline}
body[data-atlas] header[data-hq-masthead].homepage-shared-header #site-menu > span:not(#hq-menu-name) {display:none!important}
body[data-atlas] header[data-hq-masthead].homepage-shared-header #hq-menu-name {display:inline!important;font:520 var(--atlas-label)/1.25 system-ui!important;letter-spacing:0!important;color:inherit}
/* Homepage type is independent of article and calculator headings. */
body[data-atlas].home-page #main-content {
  --atlas-display:clamp(1.25rem,1.125rem + .42vw,1.5rem);
  --atlas-section:clamp(.9375rem,.9rem + .15vw,1rem);
  --atlas-label:.78125rem;
}
/* The two most-used destinations are themselves the links, including the artwork. */
body[data-atlas].home-page #main-content .atlas-hero h1 {
  font:580 var(--atlas-display)/1.16 system-ui,sans-serif!important;letter-spacing:-.035em!important;
  max-width:none;text-wrap:balance;
}
.atlas-hero-copy h1 span {display:inline;color:#f1d7a3}
body[data-atlas].home-page .atlas-hero {min-height:114px;border-radius:10px 10px 0 0;border-bottom:none}
body[data-atlas].home-page .atlas-hero-copy {padding:12px clamp(14px,1.6vw,20px)}
body[data-atlas].home-page .atlas-actions {margin-top:6px;column-gap:14px}
body[data-atlas].home-page #main-content .atlas-actions :is(a,button) {
  min-height:30px;padding:3px 0;background:none!important;border:0;border-radius:0;box-shadow:none;
  color:#c8e2db!important;font:520 var(--atlas-label)/1.4 system-ui,sans-serif;
}
body[data-atlas].home-page .atlas-actions a::after {content:none}
body[data-atlas].home-page .atlas-actions a {text-decoration:underline;text-underline-offset:3px}
body[data-atlas].home-page #main-content .hq-launches {
  display:grid;grid-template-columns:1fr 1fr;gap:0;border:1px solid #42585a;
  border-radius:0 0 10px 10px;overflow:hidden;margin:0 0 8px;padding:0;
}
body[data-atlas].home-page #main-content .hq-launch-wrap {display:block;min-width:0;margin:0}
body[data-atlas].home-page #main-content .hq-launch {
  display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;
  min-height:48px;box-sizing:border-box;padding:6px 12px;text-decoration:none;border:none;border-radius:0;
  background:#222e32;color:#f6f2e9;box-shadow:none;
}
body[data-atlas].home-page #main-content .hq-launch-radar {background:#173632;border-left:1px solid #42585a}
body[data-atlas].home-page #main-content .hq-launch:hover {filter:brightness(1.14)}
body[data-atlas].home-page #main-content .hq-launch:focus-visible {outline:3px solid var(--atlas-gold);outline-offset:-4px}
body[data-atlas].home-page #main-content .hq-launch-icon {position:static;display:grid;place-items:center;width:34px;height:32px;margin:0;color:#e6cd94;opacity:1}
body[data-atlas].home-page #main-content .hq-launch-icon :is(img,svg) {width:100%;height:auto;max-height:32px;object-fit:contain;filter:none}
body[data-atlas].home-page #main-content .hq-launch-copy {display:grid;gap:2px}
body[data-atlas].home-page #main-content .hq-launch-copy strong {font:560 .84375rem/1.25 system-ui;color:#fff7e7;letter-spacing:-.01em}
body[data-atlas].home-page #main-content .hq-launch-copy span {font:400 .75rem/1.4 system-ui;color:#c3d1ce}
body[data-atlas].home-page #main-content .hq-launch b {font:500 16px/1 system-ui;color:#ecd59f}
body[data-atlas].home-page #main-content .hq-launch-radar b {color:#a6e1cb}
body[data-atlas].home-page #main-content .hq-journal-row {display:block}
@media(max-width:950px) {
  body[data-atlas] > header.homepage-shared-header[data-hq-masthead] .header-inner,
  body[data-atlas] > header.homepage-shared-header[data-hq-masthead] .header-inner:has(#hq-finder-toggle) {
    grid-template-columns:minmax(0,1fr) auto auto auto!important;grid-template-areas:"brand search language menu" "links links links links";
    --header-inset:14px;padding:1px var(--header-inset) 0!important;gap:0 8px!important;min-height:0!important;
  }
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .header-inner .desktop-shortcuts {
    display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));width:100%!important;gap:2px;border-top:1px solid #314548!important;
  }
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .desktop-shortcuts a[data-primary-route] {
    min-height:44px;padding:4px 3px!important;text-align:center;font-size:.8125rem!important;white-space:normal!important;
  }
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .desktop-shortcuts a.hq-archive {display:none!important}
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .header-inner .hq-brand {margin:0!important}
}
@media(max-width:600px) {
  body[data-atlas] > header.homepage-shared-header[data-hq-masthead] .header-inner:has(#hq-finder-toggle) {--header-inset:10px;padding-inline:var(--header-inset)!important;gap:0 4px!important}
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .header-inner .hq-brand {gap:5px!important}
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .header-inner .hq-brand .companion-wordmark {font-size:.75rem!important;display:block!important}
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .hq-brand .companion-logo {width:25px!important;height:25px!important}
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .header-inner #site-menu {box-sizing:border-box!important;width:44px!important;min-width:44px!important;height:44px!important;padding:0!important;gap:0!important}
  body[data-atlas] header[data-hq-masthead].homepage-shared-header #hq-menu-name {position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .tw-lang-header {max-width:96px!important}
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .desktop-shortcuts a[data-primary-route] {font-size:.75rem!important}
  body[data-atlas].home-page #main-content .atlas-hero h1 {font-size:var(--atlas-display)!important;max-width:none}
  body[data-atlas].home-page .atlas-hero {min-height:104px}
  body[data-atlas].home-page .atlas-hero-copy {max-width:100%;padding:10px 12px 6px}
  body[data-atlas].home-page .atlas-hero-copy p {margin-top:8px}
  body[data-atlas].home-page .atlas-actions {margin-top:6px;column-gap:14px}
  body[data-atlas].home-page #main-content .hq-launches {grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-atlas].home-page #main-content .hq-launch {min-height:48px;padding:7px 8px;grid-template-columns:19px minmax(0,1fr);gap:6px}
  body[data-atlas].home-page #main-content .hq-launch-icon {width:19px;height:21px}
  body[data-atlas].home-page #main-content .hq-launch-radar {border-left:1px solid #42585a}
  body[data-atlas].home-page #main-content .hq-launch-copy span {font-size:12px}
}
/* Home search reuses the account elements; reset the placement from their older card layout. */
body[data-atlas].home-page #main-content .hq-launches > .hq-launch-wrap {grid-row:auto!important;grid-column:auto!important;align-self:stretch}
body[data-atlas].home-page #main-content .hq-launches .hq-launch {height:100%;width:100%}
body[data-atlas].home-page #main-content .hq-launch .hq-launch-icon {grid-area:1/1!important;align-self:center!important;justify-self:center!important;transform:none}
body[data-atlas].home-page #main-content .hq-launch .hq-launch-copy {grid-area:1/2!important;min-width:0;text-align:left;overflow-wrap:anywhere;hyphens:auto}
body[data-atlas].home-page #main-content .hq-launch b {grid-area:1/3!important;align-self:center}
@media(max-width:600px) {
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .header-inner .desktop-shortcuts {
    grid-template-columns:minmax(0,.74fr) minmax(0,.66fr) minmax(0,1.4fr) minmax(0,1.22fr);gap:0
  }
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .desktop-shortcuts a[data-primary-route] {overflow-wrap:anywhere;min-width:0}
}

body[data-atlas].city-rewards-page #main-content .cr-hero-copy h1[data-radar-copy="heading"] {font-size:var(--atlas-title)!important;line-height:1.18!important}
body[data-atlas].home-page #main-content .home-directory-head #directory-heading {font-size:var(--atlas-section);line-height:1.3}

/* The input and its search glyph share a grid cell. The clear button is a sibling of the label. */
body[data-atlas].hq-public.home-page #main-content .home-search {
  display:grid;grid-template: auto / minmax(0,1fr);align-items:center;position:relative;min-width:0;
}
body[data-atlas].hq-public.home-page #main-content .home-search::before,
body[data-atlas].hq-public.home-page #main-content .home-search::after {content:none;display:none}
body[data-atlas].hq-public.home-page #main-content .home-search > .hq-home-lens {
  grid-area:1/1;justify-self:start;z-index:1;pointer-events:none;display:block;width:18px;height:18px;
  margin:0;margin-inline-start:13px;color:#a9c0c7;align-self:center;
}
body[data-atlas].hq-public.home-page #main-content .home-search #home-search {
  grid-area:1/1;box-sizing:border-box;appearance:none;-webkit-appearance:none;width:100%;height:44px;
  min-height:44px;margin:0;padding:0 12px 0 41px;font:400 0.9375rem/1.35 system-ui,sans-serif;
}
body[data-atlas] #home-search::placeholder {font-weight:400;opacity:1;color:#a8bbc5}
body[data-atlas] #home-search::-webkit-search-decoration,
body[data-atlas] #home-search::-webkit-search-results-decoration {display:none}
body[data-atlas].hq-public.home-page #main-content .home-directory-head > .home-search-clear458a {
  box-sizing:border-box;height:44px;margin:0;font-weight:500;
}

/* Keep the three utility controls optically level in the masthead. */
body[data-atlas] header[data-hq-masthead].homepage-shared-header .header-inner :is(#hq-finder-toggle,.tw-lang-header,#site-menu) {
  --tw-language-control-height:34px;box-sizing:border-box;align-self:center;min-height:34px!important;height:34px!important;margin-block:0!important;
}
body[data-atlas] header[data-hq-masthead].homepage-shared-header .header-inner #site-menu {
  box-sizing:border-box;line-height:1;padding-block:0!important;
}
@media(max-width:600px) {
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .header-inner :is(#hq-finder-toggle,.tw-lang-header,#site-menu) {
    --tw-language-control-height:44px;min-height:44px!important;height:44px!important;
  }
  body[data-atlas].hq-public.home-page #main-content .home-search #home-search {font-size:1rem}
}
/* The dropdown and its controls share the field guide palette. */
body[data-atlas] header[data-hq-masthead].menu-open #nav[data-field-menu] {
  --atlas-label:.78125rem; --menu-surface:var(--atlas-panel); --menu-input:#0c1b23; --menu-raised:#20353e;
  --menu-selected:#254144; --menu-control-border:#52676c;
  color-scheme:dark;color:var(--atlas-ink);font:400 var(--atlas-label)/1.4 system-ui,sans-serif;
  position:absolute!important;inset:calc(100% + 6px) var(--header-inset) auto auto!important;
  box-sizing:border-box;width:min(464px,calc(100% - 2 * var(--header-inset)))!important;
  max-height:calc(100dvh - 118px)!important;overflow:auto!important;overscroll-behavior:contain;
  scrollbar-gutter:auto;scroll-padding-block-start:72px;scrollbar-width:thin;scrollbar-color:#536b73 var(--menu-surface);
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
  align-content:start;align-items:center;gap:8px!important;padding:10px!important;
  background:var(--menu-surface)!important;border:1px solid #3a5059!important;border-radius:9px!important;
  box-shadow:0 18px 50px #02080d80,0 4px 12px #02080d50!important;
}
body[data-atlas] header[data-hq-masthead].homepage-shared-header .header-inner > #site-menu[aria-expanded="true"] {
  color:var(--atlas-mint)!important;background:#254144!important;border-color:#668784!important;
}
#nav[data-field-menu] :is(a,button,input) {box-sizing:border-box}
#nav[data-field-menu] :is(a,button,input):focus-visible {outline:2px solid var(--atlas-gold)!important;outline-offset:-2px}
#nav[data-field-menu] .site-nav-search {
  grid-row:1;grid-column:1;display:flex!important;flex-direction:column;align-items:stretch;justify-content:start;
  position:relative!important;inset:auto!important;margin:0!important;padding:0!important;border:0!important;
  min-width:0;gap:0!important;background:transparent!important;box-shadow:none!important;
}
#nav[data-field-menu] .site-nav-search > label {
  position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap;
}
#nav[data-field-menu] .site-nav-search-field {position:relative;display:block;width:100%;min-width:0;margin:0;background:transparent!important;border:0!important;box-shadow:none!important}
#nav[data-field-menu] .site-nav-search-field::before {
  content:"";position:absolute;left:11px;top:50%;transform:translateY(-50%);
  width:17px;height:17px;pointer-events:none;z-index:1;background:center/contain no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a6bcbe' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.4 15.4 5.1 5.1'/%3E%3C/svg%3E");
}
#nav[data-field-menu] #site-tool-search {
  appearance:none;width:100%!important;min-width:0;height:36px!important;min-height:36px!important;
  border:1px solid var(--menu-control-border)!important;border-radius:7px!important;box-shadow:none!important;background:var(--menu-input)!important;
  padding:0 35px 0 36px!important;margin:0!important;font:400 var(--atlas-label)/1.4 system-ui,sans-serif!important;color:var(--atlas-ink)!important;
}
#nav[data-field-menu] #site-tool-search::-webkit-search-decoration,
#nav[data-field-menu] #site-tool-search::-webkit-search-cancel-button {display:none}
#nav[data-field-menu] #site-tool-search::placeholder {font-size:.8125rem;color:#a3b6bc;opacity:1;font-weight:400}
#nav[data-field-menu] .site-nav-clear:not([hidden]) {
  position:absolute;inset:0 1px 0 auto;align-self:center;width:38px!important;min-width:0!important;
  min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:6px;
  background:transparent!important;color:var(--atlas-mint)!important;font:500 21px/1 system-ui!important;
}
#nav[data-field-menu] .directory-views button:not([aria-pressed="true"]):hover,
#nav[data-field-menu] .directory-filters button:not([aria-pressed="true"]):hover,
#nav[data-field-menu] .site-nav-clear:not([hidden]):hover {background:var(--menu-raised)!important;color:var(--atlas-ink)!important}
#nav[data-field-menu] .site-nav-result-count {display:block;position:static!important;align-self:flex-start;text-align:start;color:var(--atlas-muted)!important;margin:6px 0 0 2px;font:500 12px/1.45 system-ui}
#nav[data-field-menu] .site-nav-result-count:empty {display:none}
#nav[data-field-menu] .directory-views:not([hidden]) {
  grid-row:1;grid-column:2;display:flex!important;align-items:center;gap:2px!important;
  margin:0!important;padding:3px!important;background:var(--menu-input)!important;border:1px solid var(--atlas-line)!important;border-radius:8px;
}
#nav[data-field-menu] .directory-views button[data-directory-view] {
  flex:1 1 auto!important;width:auto!important;white-space:normal;min-width:0!important;min-height:28px!important;
  padding:4px 8px!important;border:0!important;border-radius:5px!important;background:transparent!important;
  color:var(--atlas-muted)!important;box-shadow:none!important;font:520 .75rem/1.25 system-ui,sans-serif!important;letter-spacing:normal;text-transform:none;
}
#nav[data-field-menu] .directory-views button[aria-pressed="true"] {
  background:var(--menu-selected)!important;color:var(--atlas-mint)!important;box-shadow:inset 0 0 0 1px #557571!important;
}
#nav[data-field-menu]:has(.directory-views[hidden]) .site-nav-search {grid-column:1/-1}
#nav[data-field-menu] :is(.hq-menu-grid,.directory-filters,#site-nav-links,.quick-tools,.site-nav-empty) {grid-column:1/-1;min-width:0}
#nav[data-field-menu] .hq-menu-grid {order:2;display:grid;gap:7px}
#nav[data-field-menu]:has(.directory-views:not([hidden]) [data-directory-view="quick"][aria-pressed="true"]) .quick-tools,
#nav[data-field-menu]:has(.directory-views[hidden],[data-directory-view="all"][aria-pressed="true"]) .hq-menu-grid {display:none!important}
#nav[data-field-menu] .hq-menu-grid section {display:block;min-width:0;padding:0;margin:0;border:0;background:none}
#nav[data-field-menu] .hq-menu-grid h2,
#nav[data-field-menu] .site-nav-group h2 {
  display:block!important;background:none!important;color:var(--atlas-muted)!important;border:0!important;
  margin:0 0 5px!important;padding:0!important;font:560 .75rem/1.4 system-ui,sans-serif!important;
  letter-spacing:.022em!important;text-transform:none!important;
}
#nav[data-field-menu] .hq-short-list,
#nav[data-field-menu] .hq-menu-grid .atlas-menu {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px;margin:0;padding:0;
}
#nav[data-field-menu] .hq-short-list a,
#nav[data-field-menu] .atlas-menu .atlas-topic {
  display:flex;position:relative;align-items:center;min-width:0;min-height:34px;margin:0;
  padding:5px 7px;border:0;border-radius:6px;text-decoration:none;background:transparent;box-shadow:none;
  color:var(--atlas-ink)!important;text-align:start;font:500 var(--atlas-label)/1.35 system-ui,sans-serif!important;white-space:normal;overflow-wrap:anywhere;
}
#nav[data-field-menu] .hq-short-list a:has(small) {
  isolation:isolate;display:flex;flex-direction:column;align-items:start;justify-content:flex-end;gap:3px;
  overflow:hidden;min-height:56px;padding:10px 9px 7px!important;border:1px solid #3c5159;border-radius:9px;
  background:linear-gradient(0deg,#0c2029 0%,#0c2029ed 22%,#0c202940 82%),url('/account-command-v200.webp') right 44% / cover;
  color:#fffaf0!important;
}
#nav[data-field-menu] .hq-short-list a[data-menu-route="/reward-radar"] {
  background:linear-gradient(90deg,#123b3b 4%,#184744aa 58%,#22514d30),url('/city-rewards-map.svg') right -12px top 1px / auto 98% no-repeat,#22534d;
}
#nav[data-field-menu] .hq-short-list a:has(small) .hq-short-name {position:relative;font:570 .8125rem/1.25 system-ui,sans-serif;letter-spacing:-.01em}
#nav[data-field-menu] .hq-short-list small {position:relative;font:400 12px/1.35 system-ui;color:#e1ece6}
#nav[data-field-menu] .hq-short-list a:not(:has(small)) {gap:9px;padding-inline:4px}
#nav[data-field-menu] .hq-short-list a:not(:has(small))::before {
  content:"";display:block;width:25px;height:25px;flex:0 0 25px;border-radius:5px;
  background:var(--menu-raised) center/17px no-repeat;
}
#nav[data-field-menu] .hq-short-list a[data-menu-route="/zone-planner/"]::before {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aed2c6' stroke-width='1.65' stroke-linejoin='round'%3E%3Cpath d='m3 6 6-3 6 3 6-3v15l-6 3-6-3-6 3V6Zm6-3v15m6-12v15'/%3E%3C/svg%3E");
}
#nav[data-field-menu] .hq-short-list a[data-menu-route="/servers"]::before {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aed2c6' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='6' rx='2'/%3E%3Crect x='3' y='14' width='18' height='6' rx='2'/%3E%3Cpath d='M7 7h1m-1 10h1'/%3E%3C/svg%3E");
}
#nav[data-field-menu] .hq-menu-grid section + section {border-top:1px solid var(--atlas-line);padding-top:8px}
#nav[data-field-menu] .hq-menu-grid .atlas-menu {gap:0 10px}
#nav[data-field-menu] .atlas-menu .atlas-topic {gap:8px;padding-inline:4px}
#nav[data-field-menu] .atlas-menu .atlas-topic strong {font:500 var(--atlas-label)/1.35 system-ui,sans-serif;color:inherit}
#nav[data-field-menu] .atlas-menu .atlas-topic::before {
  content:"";width:7px;height:7px;border-radius:2px;background:var(--topic-color,var(--atlas-mint));flex:none;
}
#nav[data-field-menu] .atlas-menu .atlas-topic b {display:block;margin-inline-start:auto;color:#94aaa9;font-size:13px;font-weight:400}
#nav[data-field-menu] .hq-short-list a:not(:has(small)):is(:hover,:focus-visible),
#nav[data-field-menu] .atlas-menu a:is(:hover,:focus-visible) {background:var(--menu-raised)}
#nav[data-field-menu] .hq-short-list a:has(small):is(:hover,:focus-visible) {box-shadow:inset 0 0 0 2px #70bba6;filter:brightness(1.08)}
#nav[data-field-menu] .hq-short-list a[aria-current="page"] {box-shadow:inset 0 0 0 2px #6da592}
#nav[data-field-menu] .hq-short-list a:has(small):focus-visible {outline-color:#fff!important;outline-offset:-3px}
#nav[data-field-menu] .directory-filters:not([hidden]) {
  display:flex!important;order:2;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:4px!important;
  padding:0 0 12px!important;margin:0!important;border:0!important;border-bottom:1px solid var(--atlas-line)!important;
}
#nav[data-field-menu] .directory-filters button[data-directory-category] {
  min-height:32px!important;min-width:0!important;padding:4px 9px!important;margin:0;border-radius:6px!important;
  border:1px solid #455c64!important;background:transparent!important;color:var(--atlas-muted)!important;
  font:500 12px/1.35 system-ui,sans-serif!important;box-shadow:none!important;text-transform:none;
}
#nav[data-field-menu] .directory-filters button[aria-pressed="true"] {color:var(--atlas-mint)!important;background:var(--menu-selected)!important;border-color:#63867f!important}
#nav[data-field-menu] #site-nav-links:not([hidden]) {
  order:4;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;margin:0!important;padding:0!important;
}
#nav[data-field-menu] #site-nav-links .site-nav-group:not([hidden]) {
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;border:0!important;
  padding:0!important;margin:0!important;background:none!important;box-shadow:none!important;
}
#nav[data-field-menu] #site-nav-links .site-nav-group[hidden] {display:none!important}
#nav[data-field-menu] #site-nav-links .site-nav-group h2 {
  grid-column:1/-1;margin:0 0 3px!important;padding:6px 0!important;border-bottom:1px solid var(--atlas-line)!important;
}
#nav[data-field-menu] #site-nav-links .site-nav-group a:not([hidden]),#nav[data-field-menu] .quick-tools a:not([hidden]) {
  display:flex!important;align-items:center;justify-content:space-between;gap:8px;min-width:0;min-height:31px!important;
  box-sizing:border-box;margin:0!important;padding:6px 5px!important;white-space:normal!important;overflow-wrap:anywhere;
  font:450 var(--atlas-label)/1.35 system-ui,sans-serif!important;text-align:start;color:var(--atlas-ink)!important;text-decoration:none!important;
  background:transparent!important;border:0!important;border-radius:5px!important;box-shadow:none!important;
}
#nav[data-field-menu] #site-nav-links .site-nav-group a::after {color:#99afad!important;opacity:.85}
#nav[data-field-menu] #site-nav-links .site-nav-group a:is(:hover,:focus-visible,[aria-current="page"]),
#nav[data-field-menu] .quick-tools a:is(:hover,:focus-visible) {background:var(--menu-raised)!important;color:var(--atlas-mint)!important}
#nav[data-field-menu] .quick-tools:not([hidden]) {order:3}
#nav[data-field-menu] .quick-tools :is(strong,small,.quick-tool-icon) {color:var(--atlas-mint)!important}
#nav[data-field-menu] .site-nav-empty:not([hidden]) {
  order:4;padding:15px!important;margin:0!important;border-radius:8px;background:var(--menu-raised)!important;color:var(--atlas-ink)!important;
  font:400 14px/1.5 system-ui,sans-serif!important;
}
/* The early header can open before the legacy directory controls have mounted. */
#nav[data-field-menu]:not(.directory-ready) :is(#site-nav-links,.quick-tools) {display:none!important}
@media(max-width:650px) {
  body[data-atlas] header[data-hq-masthead].menu-open #nav[data-field-menu] {
    grid-template-columns:minmax(0,1fr)!important;gap:8px!important;padding:10px!important;scroll-padding-block-start:120px;
  }
  #nav[data-field-menu] .directory-views:not([hidden]) {grid-column:1;grid-row:2}
  #nav[data-field-menu] .directory-views button[data-directory-view] {min-height:44px!important}
  #nav[data-field-menu] #site-tool-search {font-size:16px!important;height:44px!important}
  #nav[data-field-menu] #site-nav-links .site-nav-group a:not([hidden]) {min-height:44px!important}
  #nav[data-field-menu] .directory-filters button[data-directory-category] {min-height:38px!important}
}
@media(max-width:450px) {
  #nav[data-field-menu] .hq-short-list {gap:5px 6px}
  #nav[data-field-menu] .hq-short-list a:has(small) {min-height:54px;justify-content:center;padding:7px 8px!important}
  #nav[data-field-menu] .hq-short-list a[data-menu-route="/account"] {
    background:linear-gradient(90deg,#102633f5,#102633cb 68%,#102633a3),url('/account-command-v200.webp') center / cover;
  }
  #nav[data-field-menu] .hq-short-list a[data-menu-route="/reward-radar"] {
    background:linear-gradient(90deg,#14302ff5,#14302fcb 68%,#14302fa3),url('/city-rewards-map.svg') right center / auto 90% no-repeat,#163831;
  }
  #nav[data-field-menu] .atlas-menu .atlas-topic {gap:6px}
  #nav[data-field-menu] .atlas-menu .atlas-topic b {display:none}
}
@media(max-width:360px) {
  #nav[data-field-menu] #site-nav-links .site-nav-group:not([hidden]) {grid-template-columns:minmax(0,1fr)}
}
/* A solid toolbar stays above the directory while the player scrolls. */
#nav[data-field-menu] .site-nav-search,
#nav[data-field-menu] .directory-views:not([hidden]) {
  position:sticky!important;top:0!important;z-index:2;
  box-shadow:0 -15px 0 3px var(--menu-surface),0 0 0 6px var(--menu-surface)!important;
}
#nav[data-field-menu] .site-nav-search {background:var(--menu-surface)!important}
@media(max-width:650px) {
  #nav[data-field-menu] .directory-views:not([hidden]) {top:50px!important;box-shadow:0 0 0 6px var(--menu-surface)!important}
}
@media(max-width:450px) {
  #nav[data-field-menu]:has(.directory-views[hidden]) #site-nav-links .site-nav-group:not([hidden]) {grid-template-columns:minmax(0,1fr)}
}

/* The field guide's compact scale also applies to headings owned by individual tools. */
body[data-atlas] main :is(.cr-hero-copy,.od-hero-copy,.tool-intro,.archive-intro,.reader,.guide-intro) h1,
body[data-atlas] #main h1.pickaxe-title {
  font-size:var(--atlas-title)!important;line-height:1.18!important;
}
body[data-atlas] main :is(.cr-heading,.account-welcome,.item-browse-heading) h2 {font-size:var(--atlas-section)!important}
body[data-atlas] main .reader :is(section h2,section h3) {line-height:1.3}
body[data-atlas] main .reader section h2 {font-size:var(--atlas-section)!important}
body[data-atlas] main .reader section h3 {font-size:.9375rem}
body[data-atlas] main .archive-intro p,
body[data-atlas] .archive-list .archive-card p {font-size:.875rem;line-height:1.45}
body[data-atlas] main .archive-intro > div {padding:12px 16px}
body[data-atlas] main .archive-intro > img {height:100%;min-height:0;max-height:136px;object-fit:cover}
body[data-atlas] main .tool-intro {padding-block:10px;margin-block-end:12px}
body[data-atlas] main#main-content .cr-hero,
body[data-atlas] main .od-hero {min-height:0!important;padding:12px 16px!important}
body[data-atlas] main#main-content .cr-tools {padding:10px 12px}
body[data-atlas] main#main-content .cr-workspace {margin-block-start:10px}
body[data-atlas] main#main-content .cr-hero .cr-map {max-width:34%}
body[data-atlas] main#main-content .account-heading #account-title {font-size:1.25rem!important}
body[data-atlas].account-app #main-content #account-welcome {padding:14px;margin-block-end:12px}
body[data-atlas] main#app .list-intro {padding:11px 13px}
body[data-atlas] main#app .list-intro h1 {font-size:1.375rem!important}
body[data-atlas] main#app .list-heading {padding:8px 12px 6px}
body[data-atlas].hq-public.home-page #main-content {padding-block-start:8px}
body[data-atlas].hq-public.home-page #main-content .home-popular {padding-block:2px;margin-block-end:8px}
body[data-atlas].hq-public.home-page #main-content .home-filter {margin-block-end:8px}
body[data-atlas].hq-public.home-page #main-content .home-group a.home-tool {min-height:56px;padding:7px 9px;gap:8px}
body[data-atlas].hq-public.home-page #main-content .home-tool .home-tool-art {width:30px;height:30px}
body[data-atlas].hq-public.home-page #main-content .home-search #home-search {font-size:.875rem}
body[data-atlas] .atlas-crumb {min-height:28px;padding-block:2px}
body[data-atlas] .atlas-family li a::after {top:50%;transform:translateY(-50%)}
@media(min-width:701px) {
  body[data-atlas].hq-public.home-page #main-content .home-search #home-search,
  body[data-atlas].hq-public.home-page #main-content .home-directory-head > .home-search-clear458a {
    min-height:36px;height:36px;
  }
  body[data-atlas] main#main {padding-block-start:14px}
}
@media(min-width:701px) and (max-width:1040px) {
  body[data-atlas] .atlas-topics .atlas-topic {min-height:50px;padding-block:6px}
}
@media(max-width:700px) {
  body[data-atlas].home-page .atlas-topics {gap:4px 6px;margin:6px 0 10px}
  body[data-atlas].home-page .atlas-topics .atlas-topic {min-height:44px;gap:5px}
  body[data-atlas].home-page .atlas-topics small {display:none}
  body[data-atlas].home-page #main-content .atlas-hero h1 {max-width:none!important}
  body[data-atlas].home-page .atlas-hero-copy p {margin-top:5px}
  body[data-atlas].hq-public.home-page #main-content .home-search #home-search {font-size:1rem}
  body[data-atlas] .atlas-rail .atlas-topic {min-height:44px}
  #nav[data-field-menu] .hq-menu-grid a {min-height:44px}
}

body[data-atlas] #main-content .home-next h2,
body[data-atlas].city-rewards-page #main-content .cr-heading #reward-title,
body[data-atlas] #main-content :is(.od-section-title,.od-source,.formation-card-heading) h2,
body[data-atlas] main :is(#htg-next-title,#pr339-levels,#duel-day-title) {
  font-size:var(--atlas-section)!important;line-height:1.28;
}
@media(max-width:700px) {
  body[data-atlas] .atlas-family li a {
    display:flex;flex-direction:column;justify-content:center;min-height:44px;box-sizing:border-box;
  }
}
@media(max-width:480px) {
  body[data-atlas].dedicated-tool main .related {display:flex;flex-wrap:wrap;gap:4px 10px}
  body[data-atlas].dedicated-tool main .related a {max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}
  body[data-atlas] #app .item-browse-heading {display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
  body[data-atlas] #app .item-browse-heading .item-sort {max-width:100%;min-width:0}
}

/* Keep search and the topic index close at hand on long directory pages. */
body[data-atlas] #tools [hidden] {display:none!important}
.atlas-directory-head {display:flex;align-items:center;justify-content:space-between;gap:16px}
.atlas-dir-search {flex:0 1 260px;min-width:180px}
.atlas-dir-input {display:flex;align-items:center;box-sizing:border-box;gap:8px;height:40px;padding-inline:12px 4px;background:#0d1d24;border:1px solid #475e66;border-radius:8px;color:#9fb9b7}
.atlas-dir-input:focus-within {outline:2px solid #9dd8c5;outline-offset:2px}
.atlas-dir-input :is(svg.hq-home-lens) {position:static;display:block;flex:none;width:16px;height:16px;margin:0;transform:none}
body[data-atlas] #tools .atlas-dir-input input {flex:1;min-width:0;width:auto;height:100%;padding:0;background:transparent;color:#edf4f1;font:inherit;font-size:14px;border:0;outline:0;box-shadow:none;appearance:none}
.atlas-dir-input input::-webkit-search-cancel-button {display:none}
.atlas-dir-input input::placeholder {color:#adbfbe;opacity:1}
body[data-atlas] #tools .atlas-dir-input button {flex:none;display:grid;place-items:center;width:36px;height:36px;padding:0;margin:0;border:0;border-radius:6px;background:transparent;color:#bdd4ce;font:20px/1 system-ui}
.atlas-dir-input button:focus-visible,.atlas-topic-picker summary:focus-visible {outline:2px solid #9dd8c5;outline-offset:-2px}
.atlas-dir-status {color:#b9ccc8;font:13px/1.45 system-ui}
.atlas-dir-status:not(:empty) {padding:6px 0 0}
.atlas-topic-picker {position:sticky;top:calc(var(--directory-header,0px) + 12px);min-width:0;margin:0;padding:0;border:0;background:transparent}
.atlas-topic-picker summary {cursor:pointer;font:600 13px/1.4 system-ui;color:#c5dbd5}
@media(min-width:701px) {.atlas-topic-picker[open] summary {display:none}}
.atlas-topic-picker .atlas-rail {position:static;margin:0}
body[data-atlas] .atlas-rail a[aria-current] {background:#1b3037;border-color:var(--topic-color);box-shadow:inset 3px 0 var(--topic-color)}
body[data-atlas] #tools :is(.atlas-section,.atlas-section h2) {scroll-margin-top:calc(var(--directory-header,0px) + 12px)}
body[data-atlas] main .archive-intro {position:relative;isolation:isolate;display:grid;grid-template-columns:1fr;overflow:hidden;border-color:#334951;background:#12242d}
body[data-atlas] main .archive-intro > img {pointer-events:none;position:absolute;inset:0 0 0 auto;z-index:-1;display:block;width:49%;height:100%;max-height:none;object-fit:cover;object-position:66% center;opacity:.7;mix-blend-mode:luminosity;filter:brightness(.74);mask-image:linear-gradient(to right,transparent,#000 45%)}
body[data-atlas] main .archive-intro > div {padding:14px 18px;width:58%;box-sizing:border-box}
body[data-atlas] main .archive-intro h1 {margin:0 0 5px}
body[data-atlas] main .archive-intro p {margin:0 0 5px}
body[data-atlas] main .archive-intro div>a {font-size:13px;line-height:1.45}
body[data-atlas] .atlas-filter-summary {display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:34px}
body[data-atlas] .atlas-filter-summary #result-count {margin:0;font-size:13px}
body[data-atlas] .atlas-filter-summary #clear {display:none;border:0;background:transparent;color:#a5dfce;padding:4px 2px;font:600 13px/1.4 system-ui;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
body[data-atlas] #main:has(#event-search:not(:placeholder-shown),#category option:checked:not([value="all"])) .atlas-filter-summary #clear {display:block}
@media(max-width:700px) {
  .atlas-directory-head {display:block}
  .atlas-dir-search {margin-top:10px}
  body[data-atlas] #tools .atlas-dir-input input {font-size:16px}
  .atlas-topic-picker {z-index:3;top:var(--directory-header,0px);margin:0 0 14px;border:1px solid #3a5058;border-radius:8px;background:#14252e;box-shadow:0 3px 8px #07101655}
  .atlas-topic-picker summary {display:flex;align-items:center;justify-content:space-between;min-height:42px;padding:0 12px;list-style:none;cursor:pointer;color:#dae8e3;font:600 13px/1.3 system-ui}
  .atlas-topic-picker summary::-webkit-details-marker {display:none}
  .atlas-topic-picker summary i {width:7px;height:7px;border:solid #a6c0ba;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:-3px 3px 0 0}
  .atlas-topic-picker[open] summary i {transform:rotate(225deg);margin-top:4px}
  .atlas-topic-picker .atlas-rail {padding:0 7px 7px}
  body[data-atlas] #tools :is(.atlas-section,.atlas-section h2) {scroll-margin-top:calc(var(--directory-header,0px) + 54px)}
  body[data-atlas] main .archive-intro > div {width:74%;padding:12px}
  body[data-atlas] main .archive-intro > img {width:40%;object-position:66% 50%;mask-image:linear-gradient(to right,transparent,#000 55%)}
}
@media(max-width:360px) {body[data-atlas] main .archive-intro > div {width:78%}}


/* The homepage uses short navigation rows and reserves larger type for the page title. */
body[data-atlas].home-page #main-content .atlas-hero-copy p {font-size:.8125rem;line-height:1.4}
body[data-atlas].home-page #main-content .atlas-actions :is(a,button) {font-size:.78125rem}
body[data-atlas].home-page #main-content .atlas-topics {
  gap:0;overflow:hidden;border:1px solid var(--atlas-line);border-radius:7px;background:#11212a;margin:7px 0 12px;
}
body[data-atlas].home-page #main-content .atlas-topics .atlas-topic {
  min-height:45px;gap:8px;padding:5px 10px;border:0;border-radius:0;background:transparent;
}
body[data-atlas].home-page #main-content .atlas-topics a+a {border-inline-start:1px solid var(--atlas-line)}
body[data-atlas].home-page #main-content .atlas-topics a:is(:hover,:focus-visible) {background:#1c3038}
body[data-atlas].home-page #main-content .atlas-topics a:focus-visible {outline-offset:-3px}
body[data-atlas].home-page #main-content .atlas-topics strong {font-size:.78125rem;font-weight:540}
body[data-atlas].home-page #main-content .atlas-topics small {font-size:.75rem;color:#b9c9cd}
body[data-atlas].home-page #main-content .atlas-topics .atlas-symbol {width:24px;height:24px;border-radius:5px}
body[data-atlas].home-page #main-content .atlas-topics b {display:none}
body[data-atlas].hq-public.home-page #main-content :is(.home-directory-head #directory-heading,.home-next h2) {font-weight:570;letter-spacing:-.02em}
body[data-atlas].hq-public.home-page #main-content .home-search #home-search::placeholder {font-size:.8125rem}
body[data-atlas].hq-public.home-page #main-content .home-search > .hq-home-lens {width:16px;height:16px;margin-inline-start:11px}
body[data-atlas].hq-public.home-page #main-content .home-search #home-search {padding-inline-start:34px}
body[data-atlas].hq-public.home-page #main-content .home-group-head h3 {font-size:.8125rem;font-weight:570;line-height:1.3}
body[data-atlas].hq-public.home-page #main-content .home-tool strong {font-size:.78125rem;font-weight:550;line-height:1.35}
body[data-atlas].hq-public.home-page #main-content .home-tool>.home-tool-art {width:24px;height:24px}
body[data-atlas].hq-public.home-page #main-content .home-tool > span:nth-child(2) > span {line-height:1.4}
body[data-atlas].hq-public.home-page #main-content .home-group a.home-tool {min-height:49px;padding:6px 8px;gap:6px}
body[data-atlas].hq-public.home-page #main-content .home-filter {column-gap:2px}
body[data-atlas].hq-public.home-page #main-content .home-filter button {padding-inline:6px}
/* The masthead owns both the elevated menu and the below-header backdrop.
   More-specific sticky header layouts retain their positioning. */
body > header.homepage-shared-header:where([data-hq-masthead].menu-open) {
  position:relative;z-index:40;
}
body[data-atlas] header[data-hq-masthead].menu-open > .hq-menu-scrim {
  display:block;position:absolute;inset:100% 0 auto;height:100vh;height:100dvh;background:#050d1390;pointer-events:auto;
}
#nav[data-field-menu] .hq-menu-grid > section:first-child h2 {
  position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;
}
/* A single two-position switch distinguishes the menu view from its links. */
#nav[data-field-menu] .directory-views:not([hidden]) {
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;
  gap:3px!important;padding:3px!important;border:1px solid #3c555c!important;
  border-radius:9px!important;background:#0d1d25!important;
}
#nav[data-field-menu] .directory-views button[data-directory-view] {
  display:flex;align-items:center;justify-content:center;box-sizing:border-box;
  min-height:32px!important;margin:0!important;padding:5px 9px!important;
  border:1px solid transparent!important;border-radius:6px!important;
  font:520 .78125rem/1.25 system-ui,sans-serif!important;
  color:#bdcdcf!important;background:transparent!important;box-shadow:none!important;
}
#nav[data-field-menu] .directory-views button[data-directory-view][aria-pressed="true"] {
  color:#edf9f5!important;background:#294748!important;border-color:#527b73!important;
  font-weight:650!important;
}
#nav[data-field-menu] .directory-views button[data-directory-view]:focus-visible {
  outline:2px solid #abe5d4!important;outline-offset:-3px!important;
}
@media (forced-colors:active) {
  #nav[data-field-menu] .directory-views button[data-directory-view][aria-pressed="true"] {
    border:2px solid Highlight!important;color:ButtonText!important;
  }
  #nav[data-field-menu] .directory-views button[data-directory-view]:focus-visible {
    outline:2px dashed ButtonText!important;
  }
}
#nav[data-field-menu] .hq-menu-grid section + section {padding-top:6px}
@media(min-width:701px) {
  body[data-atlas].home-page #main-content .atlas-island {width:clamp(300px,38%,520px);object-position:65% 51%}
}
@media(max-width:700px) {
  body[data-atlas].home-page #main-content .atlas-topics {grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-atlas].home-page #main-content .atlas-topics .atlas-topic {min-height:44px;padding:4px 8px;gap:7px}
  body[data-atlas].home-page #main-content .atlas-topics .atlas-topic:nth-child(odd) {border-inline-start:0}
  body[data-atlas].home-page #main-content .atlas-topics .atlas-topic:nth-child(n+3) {border-top:1px solid var(--atlas-line)}
  body[data-atlas].home-page #main-content .atlas-topics .atlas-symbol {display:block;width:5px;height:5px;border-radius:50%;background:var(--topic-color)}
  body[data-atlas].home-page #main-content .atlas-hero {align-items:center}
  body[data-atlas].hq-public.home-page #main-content .home-group-head {padding:7px 9px}
}
@media(max-width:600px) {
  body[data-atlas].home-page #main-content .hq-launch b {display:none}
  body[data-atlas].home-page #main-content .hq-launch-copy strong {font-size:.8125rem}
  body[data-atlas].home-page #main-content .hq-launch-copy span {font-size:.75rem;line-height:1.3}
}

body[data-atlas].home-page #main-content .hq-launch-icon svg {width:20px;height:20px;max-width:100%;color:#dfc994}
body[data-atlas].home-page #main-content .hq-launch-radar .hq-launch-icon svg {color:#a4ddc7}
@media(max-width:600px) {
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .header-inner #site-menu:not([aria-expanded="true"]),
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .header-inner .tw-lang-header:not([aria-expanded="true"]) {
    background:transparent!important;border-color:transparent!important;box-shadow:none!important;
  }
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .header-inner :is(#site-menu,.tw-lang-header):focus-visible {
    outline:2px solid var(--atlas-gold)!important;outline-offset:-3px;
  }
}

@media(max-width:374px) {
  body[data-atlas].home-page #main-content .hq-launch {grid-template-columns:minmax(0,1fr);padding-inline:9px}
  body[data-atlas].home-page #main-content .hq-launch .hq-launch-icon {display:none}
  body[data-atlas].home-page #main-content .hq-launch .hq-launch-copy {grid-area:1/1!important}
}

@media(max-width:374px) {
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .hq-brand .companion-logo {display:none!important}
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .header-inner .desktop-shortcuts {
    grid-template-columns:max-content max-content minmax(0,1fr) max-content;
  }
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .desktop-shortcuts a[data-primary-route] {padding-inline:6px!important}
  body[data-atlas].home-page #main-content .hq-launch {padding-inline:6px}
  body[data-atlas].home-page #main-content .hq-launch-copy strong {font-size:.78125rem}
  body[data-atlas].home-page #main-content .home-popular a > [aria-hidden="true"]:last-child {display:none!important}
  body[data-atlas] header[data-hq-masthead]:lang(de).homepage-shared-header .desktop-shortcuts a[data-primary-route] {padding-inline:2px!important}
  #nav[data-field-menu]:lang(de) .hq-short-list a:has(small) {
    grid-column:1/-1;display:grid;grid-template-columns:minmax(max-content,1.08fr) minmax(0,1fr);align-items:center;gap:8px;min-height:44px;
  }
  #nav[data-field-menu]:lang(de) .hq-short-list a:not(:has(small))::before {display:none}
}


body[data-atlas] .hq-menu-scrim {display:none}
body[data-atlas] header[data-hq-masthead].menu-open > .hq-menu-scrim {display:block}
body[data-atlas] .atlas-crumb-owner:not([hidden]) {display:inline-flex;align-items:center;gap:9px}
body[data-atlas] .atlas-crumb-owner[hidden] {display:none}
body[data-atlas].home-page #main-content .home-directory:has(#home-search:not(:placeholder-shown)) .home-popular,
body[data-atlas].home-page #main-content .home-directory:has(#home-search:not(:placeholder-shown)) #home-guides > p,
body[data-atlas].home-page #main-content #home-tools:not(:has(.home-group:not([hidden]),#home-guides:not([hidden]))) {display:none!important}
body[data-atlas].home-page #main-content .home-directory:has(#home-search:not(:placeholder-shown)) #home-guides {margin-block:5px 10px;padding-block:8px}
body[data-atlas].home-page #main-content .home-directory:has(#home-search:not(:placeholder-shown)) #home-guides h3 {margin-block:0 6px;font-size:.875rem;line-height:1.35}
body[data-atlas].home-page #main-content .home-empty:not([hidden]) {display:block;padding:13px 15px;margin:5px 0 10px;border:1px solid var(--atlas-line);border-radius:8px;background:var(--atlas-panel);color:var(--atlas-ink);text-align:start;box-shadow:none}
body[data-atlas].home-page #main-content .home-empty h3 {margin:0;color:var(--atlas-ink);font:600 .9375rem/1.35 system-ui}
body[data-atlas].home-page #main-content .home-empty p {margin:3px 0;color:var(--atlas-muted);font:400 .8125rem/1.45 system-ui}
body[data-atlas].home-page #main-content .home-empty #home-reset {display:inline-flex;align-items:center;padding:3px 0;min-height:32px;border:0;background:none;color:var(--atlas-mint);font:550 .8125rem/1.4 system-ui;text-decoration:underline;text-underline-offset:3px;box-shadow:none}
.home-directory .hq-query-controls {display:contents}
.home-directory .hq-query-category {display:none}
body[data-atlas].home-page #main-content {padding-bottom:4px}
body[data-atlas].home-page .atlas-end {margin-top:8px;padding-block:10px 16px}
@media(max-width:700px) {
  body[data-atlas].home-page #main-content .home-directory:has(#home-search:not(:placeholder-shown)):has(.hq-query-category) .home-filter {display:none}
  body[data-atlas].home-page #main-content .home-directory:has(#home-search:not(:placeholder-shown)) .hq-query-controls {display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;margin-block:5px}
  body[data-atlas].home-page #main-content .home-directory:has(#home-search:not(:placeholder-shown)) .hq-query-category {
    display:block;width:auto;max-width:100%;min-height:38px;padding:3px 7px;background:#142833;color:var(--atlas-ink);border:1px solid #475e66;border-radius:6px;font:400 .875rem/1.4 system-ui;color-scheme:dark
  }
  body[data-atlas].home-page #main-content .hq-query-controls #home-result-count {margin:0;min-height:0;color:var(--atlas-muted)}
}


body.hq-recovery {margin:0;background:#0c171f;color:#f5f1e8;font:400 .875rem/1.5 system-ui,sans-serif;min-height:100vh;color-scheme:dark}
.hq-recovery header {border-bottom:1px solid #32444b;background:#102129;padding-inline:max(14px,calc((100% - 1240px)/2))}
.hq-recovery header a {display:inline-flex;align-items:center;gap:7px;min-height:48px;color:#faf5ea;text-decoration:none;font:630 .75rem/1 system-ui;letter-spacing:.045em}
.hq-recovery main {box-sizing:border-box;max-width:37rem;margin:clamp(32px,9vh,78px) auto;padding:0 18px}
.hq-recovery .hq-status-code {color:#e8cb90;font:550 .8125rem/1.5 system-ui;font-variant-numeric:tabular-nums}
.hq-recovery h1 {margin:4px 0 6px;font:580 clamp(1.25rem,1.1rem + .5vw,1.5rem)/1.2 system-ui;letter-spacing:-.025em}
.hq-recovery p {margin:0;color:#c4d3d3}
.hq-recovery nav {display:flex;align-items:center;gap:4px 18px;flex-wrap:wrap;margin:16px 0 6px;padding-top:12px;border-top:1px solid #32444b}
.hq-recovery nav a,.hq-recovery button {display:inline-flex;align-items:center;min-height:36px;color:#b3e3d4;font:520 .8125rem/1.4 system-ui;text-underline-offset:3px}
.hq-recovery nav a.primary {padding:0 12px;border:1px solid #4f706d;border-radius:6px;background:#1a3537;text-decoration:none}
.hq-recovery button {padding:0;border:0;background:none;color:#c4d3d3;text-decoration:underline;cursor:pointer}
.hq-recovery [hidden] {display:none}
.hq-recovery :is(a,button):focus-visible {outline:2px solid #f0cf8d;outline-offset:2px}


body[data-atlas].hq-public.home-page .home-footer {
  box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:2px 18px;
  width:min(calc(100% - 48px),1240px);max-width:100%;margin:3px auto 0;padding:7px 0;
  border:0;border-top:1px solid var(--atlas-line);background:transparent;color:var(--atlas-muted);
  font:400 .75rem/1.45 system-ui,sans-serif;text-align:start
}
body[data-atlas].home-page .hq-policy-links {display:inline-flex;align-items:center;flex-wrap:wrap;gap:2px 16px}
body[data-atlas].home-page .hq-policy-links a {display:inline-flex;align-items:center;min-height:30px;color:var(--atlas-mint);font:500 .75rem/1.4 system-ui;text-underline-offset:3px}
body[data-atlas].hq-public.home-page #main-content .hq-journal-row .home-next {
  display:grid!important;grid-template-columns:32px minmax(0,1fr) auto!important;grid-template-areas:"icon copy action"!important;
  align-items:center;gap:4px 12px;min-height:0;padding:11px 14px
}
body[data-atlas].hq-public.home-page #main-content .hq-journal-row .home-next > .home-journal-art {
  grid-area:icon!important;position:static!important;align-self:center;justify-self:center;margin:0!important;width:32px!important;height:32px!important
}
body[data-atlas].hq-public.home-page #main-content .hq-journal-row .home-next > div {
  grid-area:copy!important;display:block!important;position:static!important;min-width:0
}
body[data-atlas].hq-public.home-page #main-content .hq-journal-row .home-next h2 {margin:0;font-size:.9375rem;line-height:1.35}
body[data-atlas].hq-public.home-page #main-content .hq-journal-row .home-next p {max-width:70ch;margin:3px 0 0;font-size:.8125rem;line-height:1.45}
body[data-atlas].hq-public.home-page #main-content .hq-journal-row .home-next a[data-copy="privacyLink"] {
  display:inline-flex;align-items:center;min-height:26px;background:none;border:0;padding:0;color:var(--atlas-mint);font:400 .75rem/1.4 system-ui;text-decoration:underline;text-underline-offset:3px
}
body[data-atlas].hq-public.home-page #main-content .hq-journal-row .home-next > a[data-copy="nextAction"] {
  grid-area:action!important;align-self:center;justify-self:start;width:fit-content;min-width:0;max-width:100%;min-height:38px;height:auto;
  padding:5px 10px;box-sizing:border-box;background:#243638;border:1px solid #4e6363;border-radius:6px;color:var(--atlas-ink);
  font:540 .8125rem/1.4 system-ui;text-align:start;white-space:normal
}
@media(max-width:700px) {
  body[data-atlas].hq-public.home-page .home-footer {width:calc(100% - 26px)}
  body[data-atlas].hq-public.home-page #main-content .hq-journal-row .home-next {
    grid-template-columns:24px minmax(0,1fr)!important;grid-template-areas:"icon copy" ". action"!important;
    align-items:start;gap:3px 9px;padding:10px 12px
  }
  body[data-atlas].hq-public.home-page #main-content .hq-journal-row .home-next > .home-journal-art {
    width:24px!important;height:26px!important;align-self:start
  }
}


/* Home navigation and directory */
body[data-atlas].hq-public.home-page #main-content {padding-block-start:clamp(14px,2vw,25px)}
body[data-atlas].hq-public.home-page #main-content .atlas-hero {min-height:132px}
body[data-atlas].hq-public.home-page #main-content .atlas-hero-copy {padding:15px clamp(16px,2vw,26px)}
body[data-atlas].hq-public.home-page #main-content .atlas-hero h1 {
  font:575 clamp(1.1875rem,1.05rem + .42vw,1.375rem)/1.22 system-ui,sans-serif!important;letter-spacing:-.025em!important
}
body[data-atlas].hq-public.home-page #main-content .atlas-hero h1 span {font:inherit}
body[data-atlas].hq-public.home-page #main-content .atlas-actions {column-gap:18px;row-gap:2px;margin-top:6px}
body[data-atlas].hq-public.home-page #main-content .hq-launches {margin-bottom:clamp(22px,2.4vw,32px)}
body[data-atlas].hq-public.home-page #main-content .hq-launch {padding-block:10px;min-height:56px}
body[data-atlas].hq-public.home-page #main-content .home-directory-head {margin-bottom:10px}
body[data-atlas].hq-public.home-page #main-content .home-directory-head #directory-heading {
  font:570 .9375rem/1.35 system-ui,sans-serif!important;letter-spacing:-.012em
}
body[data-atlas].hq-public.home-page #main-content #home-tools {gap:clamp(16px,2vw,23px)}
body[data-atlas].hq-public.home-page #main-content .home-group a.home-tool {min-height:58px;padding:9px 12px;gap:10px}
body[data-atlas].hq-public.home-page #main-content .home-group-head {padding:12px 15px}
body[data-atlas].hq-public.home-page #main-content .home-group nav > a {border-color:#31434a}
body[data-atlas].hq-public.home-page #main-content .home-filter {gap:4px 9px;margin:0 0 12px}
@media(max-width:700px) {
  body[data-atlas].hq-public.home-page #main-content .atlas-hero {min-height:118px}
  body[data-atlas].hq-public.home-page #main-content .atlas-hero-copy {width:100%;padding:14px 15px 8px}
  body[data-atlas].hq-public.home-page #main-content .atlas-hero-copy p {max-width:36ch}
  body[data-atlas].hq-public.home-page #main-content .home-directory:has(.hq-query-category) .home-filter {display:none}
  body[data-atlas].hq-public.home-page #main-content .home-directory .hq-query-controls {
    display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;margin:0 0 12px
  }
  body[data-atlas].hq-public.home-page #main-content .home-directory .hq-query-category,
  #nav[data-field-menu] select.hq-menu-category {
    box-sizing:border-box;width:auto;max-width:100%;height:44px;padding:4px 10px;border:1px solid #475e66;border-radius:6px;
    background:#142833;color:var(--atlas-ink);color-scheme:dark;font:450 .875rem/1.4 system-ui
  }
  body[data-atlas].hq-public.home-page #main-content .home-directory .hq-query-category {display:block}
  body[data-atlas].hq-public.home-page #main-content .home-group-head {padding:10px 13px}
}
@media(max-width:540px) {
  body[data-atlas].hq-public.home-page #main-content .home-group nav {grid-template-columns:minmax(0,1fr)!important}
  body[data-atlas].hq-public.home-page #main-content .home-group nav > a.home-tool {
    display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:10px;
    min-height:51px;padding:8px 12px;border:0;border-top:1px solid #30424a
  }
  body[data-atlas].hq-public.home-page #main-content .home-group .home-tool>span:nth-child(2) {
    display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:10px;align-items:center
  }
  body[data-atlas].hq-public.home-page #main-content .home-tool>span:nth-child(2)>span {margin:0;color:#bdcdd0}
}
@media(max-width:359px) {
  body[data-atlas].hq-public.home-page #main-content .home-group .home-tool>span:nth-child(2) {display:block}
  body[data-atlas].hq-public.home-page #main-content .home-tool>span:nth-child(2)>span {display:block;margin-top:2px}
}

/* Open menu */
body[data-atlas] header[data-hq-masthead].menu-open #nav[data-field-menu] {
  width:min(510px,calc(100% - 2 * var(--header-inset)))!important;padding:15px!important;gap:12px!important
}
#nav[data-field-menu] .hq-menu-grid {gap:13px}
#nav[data-field-menu] .hq-menu-grid section + section {padding-top:12px}
#nav[data-field-menu] .hq-short-list {gap:7px 12px}
#nav[data-field-menu] .hq-short-list a:has(small) {padding:10px 11px!important;min-height:59px}
#nav[data-field-menu] .hq-menu-grid .atlas-menu {gap:2px 12px}
#nav[data-field-menu] .hq-menu-grid .atlas-menu a {min-height:40px}
#nav[data-field-menu] .hq-menu-category {display:none}
@media(max-width:650px) {
  body[data-atlas] header[data-hq-masthead].menu-open #nav[data-field-menu] {padding:13px!important;gap:10px!important}
  #nav[data-field-menu] .directory-views:not([hidden]) {top:54px!important}
  #nav[data-field-menu] .directory-filters:has(+ .hq-menu-category) {display:none!important}
  #nav[data-field-menu] .directory-filters:not([hidden]) + .hq-menu-category {display:block;grid-column:1/-1;order:2;justify-self:start}
  #nav[data-field-menu] .hq-menu-grid .atlas-menu a {min-height:44px}
  #nav[data-field-menu] .hq-short-list {gap:7px 9px}
}
@media(max-width:360px) {
  #nav[data-field-menu]:lang(de) .hq-short-list a:has(small) {grid-template-columns:max-content minmax(0,1fr);gap:8px}
}

/* Player tools, My Account, and Reward Radar */
body[data-atlas] #tools .atlas-directory-head h1 {font:570 clamp(1.1875rem,1.07rem + .4vw,1.375rem)/1.28 system-ui,sans-serif!important}
body[data-atlas] #tools .atlas-section {margin-block-end:28px}
body[data-atlas] #tools .atlas-section h2 {font-size:1rem;font-weight:570;margin-bottom:12px}
body[data-atlas] #tools .atlas-families {gap:16px}
body[data-atlas] #tools .atlas-family h3 {padding:12px 13px 8px;font-size:.8125rem;font-weight:560}
body[data-atlas].account-app.account-hq.site-ui.site-refresh main#main-content {box-sizing:border-box;max-width:1168px;margin-inline:auto}
body[data-atlas].account-app.account-hq.site-ui.site-refresh main#main-content:has(> #dashboard[hidden]) {max-width:856px}
body[data-atlas].account-app #main-content:has(> #dashboard[hidden]) #import-panel {max-width:none}
body[data-atlas].account-app #main-content #import-panel {max-width:760px}
body[data-atlas].account-app #main-content .account-heading #account-title {font-size:1.1875rem!important;font-weight:590!important}
body[data-atlas].account-app #main-content #already-have-snapshot {color:#deeee9!important;background:#244542!important;border:1px solid #54736e!important}
body[data-atlas].account-app #main-content #already-have-snapshot:hover {background:#305450!important}
body[data-atlas].account-app #main-content #account-welcome {padding:clamp(15px,2vw,22px)}
body[data-atlas].account-app #main-content #account-welcome h2 {font-size:1rem!important;font-weight:570!important}
body[data-atlas].city-rewards-page #main-content .cr-hero-copy h1[data-radar-copy="heading"] {
  font:585 clamp(1.1875rem,1.07rem + .4vw,1.375rem)/1.25 system-ui,sans-serif!important;letter-spacing:-.025em
}
body[data-atlas].city-rewards-page #main-content .cr-heading #reward-title {font-size:.96875rem!important;font-weight:580}
body[data-atlas].city-rewards-page #main-content #cr-mask-title {font-size:.90625rem!important;font-weight:560!important;line-height:1.4}
body[data-atlas].city-rewards-page #main-content .cr-filters :is(input,select) {font-weight:400}
@media(max-width:700px) {
  body[data-atlas].city-rewards-page #main-content .cr-hero .cr-hero-copy {width:90%;max-width:38rem}
  body[data-atlas].city-rewards-page #main-content .cr-hero-copy p {max-width:41ch}
  body[data-atlas].city-rewards-page #main-content .cr-hero .cr-map {width:27%;opacity:.36}
  body[data-atlas].account-app .site-context {box-sizing:border-box;padding-inline:15px!important;scroll-padding-inline:15px}
  body[data-atlas].account-app #main-content .account-masthead-actions {row-gap:6px}
  body[data-atlas].account-app #main-content .account-masthead-actions :is(button,a) {font-size:.8125rem;min-height:44px}
}
@media(max-width:450px) {
  body[data-atlas].city-rewards-page #main-content .cr-tools {
    grid-template-columns:minmax(0,1fr);grid-template-areas:"heading" "filters" "refresh";gap:12px;padding:14px
  }
  body[data-atlas].city-rewards-page #main-content #refresh {justify-self:start}
}
@media(max-width:374px) {
  body[data-atlas].city-rewards-page #main-content .cr-filters {grid-template-columns:minmax(0,1fr)}
  body[data-atlas].account-app .site-context {display:flex!important;flex-wrap:wrap!important;gap:1px 9px;white-space:normal!important}
  body[data-atlas].account-app .site-context a {min-height:32px;align-content:center}
}



/* Event archive */
body[data-atlas] #main:has(.archive-intro) {padding-block-start:9px}
body[data-atlas] #main .archive-intro > div {width:72%;padding:15px 18px}
body[data-atlas] #main :is(.archive-intro,.reader) h1 {
  font:580 clamp(1.1875rem,1.08rem + .45vw,1.425rem)/1.25 system-ui,sans-serif!important;letter-spacing:-.026em!important
}
body[data-atlas] #main .archive-intro p {font-size:.84375rem;line-height:1.45;margin:4px 0}
body[data-atlas] #main .archive-intro details.start {margin:2px 0 0;padding:0;border:0;background:none}
body[data-atlas] #main .archive-intro details.start summary {
  width:fit-content;max-width:100%;min-height:32px;padding:5px 0;box-sizing:border-box;
  font:520 .8125rem/1.5 system-ui,sans-serif;color:var(--atlas-mint);cursor:pointer
}
body[data-atlas] #main .archive-intro details.start[open] {max-width:42rem;margin-top:5px}
body[data-atlas] #main .archive-intro:has(details[open]) > div {width:100%}
body[data-atlas] #main .archive-intro:has(details[open]) img {opacity:.17}
body[data-atlas] #main .archive-intro details ol {padding-inline-start:1.35rem;margin:4px 0 7px}
body[data-atlas] #main .archive-intro details li {padding:2px 0}
body[data-atlas] #main .archive-intro details a {display:inline-flex;align-items:center;min-height:30px;font-size:.8125rem}
body[data-atlas] #main form.filters {margin:16px 0 1px;gap:9px 16px}
body[data-atlas] #main form.filters label {display:grid;gap:4px;font:520 .8125rem/1.4 system-ui;color:var(--atlas-muted)}
body[data-atlas] #main form.filters :is(input,select) {box-sizing:border-box;margin:0;min-height:43px;font-weight:400;color-scheme:dark}
body[data-atlas] #main form.filters input::placeholder {font-weight:400;color:#a7bac4}
body[data-atlas] #main .atlas-filter-summary {min-height:32px}
body[data-atlas] #main a.archive-card[hidden] {display:none!important}
body[data-atlas] #main a.archive-card {padding:13px 15px;scroll-margin-block-start:95px}
body[data-atlas] #main a.archive-card .category {font:500 .75rem/1.35 system-ui,sans-serif;color:var(--atlas-gold)}
body[data-atlas] #main a.archive-card h2 {margin:4px 0;font:590 .9375rem/1.35 system-ui,sans-serif}
body[data-atlas] #main a.archive-card p {margin:0;font-size:.84375rem;line-height:1.5}
body[data-atlas] #main a.archive-card:focus-visible {outline:2px solid var(--atlas-mint);outline-offset:2px}
body[data-atlas] #main #empty:not([hidden]) {padding:14px 16px;background:var(--atlas-panel);border:1px solid var(--atlas-line);border-radius:8px;color:var(--atlas-ink);font-size:.875rem}
@media(max-width:700px) {
  body[data-atlas] #main .archive-intro > div {width:100%;padding:11px 13px}
  body[data-atlas] #main .archive-intro p {max-width:38ch}
  body[data-atlas] #main .archive-intro > img {width:31%;opacity:.32}
  body[data-atlas] #main form.filters {margin-top:13px;gap:8px}
  body[data-atlas] #main form.filters :is(input,select) {font-size:16px;min-height:44px}
  body[data-atlas] #main form.filters input::placeholder {font-size:.8125rem}
  body[data-atlas] #main a.archive-card {padding:11px 13px}
}
/* Localized guides */
body[data-atlas] #main .reader .hq-contents {
  margin:14px 0 17px;padding:0;background:var(--atlas-panel);border:1px solid var(--atlas-line);border-radius:8px;
  font:400 .84375rem/1.5 system-ui,sans-serif
}
body[data-atlas] #main .reader .hq-contents summary {
  display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin:0;padding:6px 13px;
  box-sizing:border-box;list-style:none;font:550 .84375rem/1.4 system-ui,sans-serif;color:var(--atlas-ink)
}
body[data-atlas] #main .reader .hq-contents summary::-webkit-details-marker {display:none}
body[data-atlas] #main .reader .hq-contents summary::after {
  content:"";width:7px;height:7px;border:solid var(--atlas-mint);border-width:0 1.5px 1.5px 0;
  margin-inline-end:2px;transform:translateY(-2px) rotate(45deg)
}
body[data-atlas] #main .reader .hq-contents[open] summary::after {transform:translateY(2px) rotate(225deg)}
body[data-atlas] #main .reader .hq-contents nav {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:0 19px;margin:0;padding:0 13px 7px}
body[data-atlas] #main .reader .hq-contents nav a {
  display:flex;align-items:center;min-width:0;min-height:39px;color:var(--atlas-mint);border-top:1px solid var(--atlas-line);
  text-decoration:none;line-height:1.4;padding:5px 0;box-sizing:border-box
}
body[data-atlas] #main .reader .hq-contents nav a:hover {text-decoration:underline}
body[data-atlas] #main .reader .hq-contents :focus-visible {outline:2px solid var(--atlas-mint);outline-offset:-2px;border-radius:3px}
body[data-atlas] #main .reader :is(section,details)[id] {scroll-margin-block-start:94px}
body[data-atlas] #main #guide-planner397 label {font:520 .8125rem/1.45 system-ui,sans-serif;color:var(--atlas-muted)}
body[data-atlas] #main #guide-planner397 input {font-weight:450}
body[data-atlas] #main #guide397-result {font:500 .875rem/1.55 system-ui,sans-serif;color:var(--atlas-ink)}
@media(max-width:700px) {
  body[data-atlas] #main .reader .hq-contents nav a {min-height:44px}
}



/* The homepage guide list shares a header with its archive link. */
body[data-atlas].hq-public.home-page #main-content #home-guides {
  margin-block:21px 16px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none
}
body[data-atlas].hq-public.home-page #main-content #home-guides .hq-guide-head {
  display:flex;align-items:center;justify-content:space-between;gap:8px 14px;flex-wrap:wrap;margin:0 0 4px
}
body[data-atlas].hq-public.home-page #main-content #home-guides-title {
  flex:1 1 12ch;margin:0;padding:0;font:570 .9375rem/1.35 system-ui,sans-serif;letter-spacing:-.015em;color:var(--atlas-ink)
}
body[data-atlas].hq-public.home-page #main-content .hq-guide-head .home-all-guides384 {
  display:inline-flex;align-items:center;gap:6px;min-height:40px;max-width:100%;margin:0;padding:0 2px;
  color:var(--atlas-mint);background:none;border:0;box-shadow:none;font:500 .8125rem/1.35 system-ui;text-decoration:none
}
body[data-atlas].hq-public.home-page #main-content .hq-guide-head .home-all-guides384::after {
  content:"";width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(-45deg)
}
body[data-atlas].hq-public.home-page #main-content #home-guides nav {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 24px;padding:0;margin:0
}
body[data-atlas].hq-public.home-page #main-content #home-guides nav a[data-guide]:not([hidden]) {
  display:grid;align-content:start;gap:3px;margin:0;padding:11px 2px 13px;min-height:44px;
  border:0;border-top:1px solid var(--atlas-line);border-radius:0;background:none;box-shadow:none;text-decoration:none
}
body[data-atlas].hq-public.home-page #main-content #home-guides nav a[data-guide] strong {
  color:var(--atlas-ink);margin:0;font:550 .84375rem/1.4 system-ui,sans-serif;letter-spacing:0
}
body[data-atlas].hq-public.home-page #main-content #home-guides nav a[data-guide] span {
  color:var(--atlas-muted);margin:0;font:400 .78125rem/1.45 system-ui,sans-serif
}
body[data-atlas].hq-public.home-page #main-content #home-guides a:is(:hover,:focus-visible) strong,
body[data-atlas].hq-public.home-page #main-content .hq-guide-head a:is(:hover,:focus-visible) {color:var(--atlas-mint);text-decoration:underline;text-underline-offset:3px}
body[data-atlas].hq-public.home-page #main-content #home-guides a:focus-visible {outline:2px solid var(--atlas-mint);outline-offset:2px;border-radius:3px}
@media(max-width:950px) {
  body[data-atlas].hq-public.home-page #main-content #home-guides nav {grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}
}
@media(max-width:700px) {
  body[data-atlas].hq-public.home-page #main-content .home-directory-head > div:first-child:has(.hq-query-category) {
    display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:2px 9px
  }
  body[data-atlas].hq-public.home-page #main-content .home-directory #directory-heading {margin:0;flex:1 1 9ch}
  body[data-atlas].hq-public.home-page #main-content .home-directory-head > div .hq-query-category {
    flex:0 1 auto;max-width:55%;margin:0;padding:3px 7px;color:var(--atlas-ink);font-weight:450
  }
  body[data-atlas].hq-public.home-page #main-content .home-directory-head .home-search {margin-block-start:5px}
  body[data-atlas].hq-public.home-page #main-content .home-directory .hq-query-controls:has(#home-result-count:empty) {display:none}
  body[data-atlas].hq-public.home-page #main-content .home-directory .hq-query-controls {margin-block:1px 7px}
  body[data-atlas].hq-public.home-page #main-content .atlas-actions {gap:0 13px;margin-top:2px}
  body[data-atlas].hq-public.home-page #main-content .atlas-actions :is(a,button) {min-height:44px}
  body[data-atlas].hq-public.home-page #main-content .atlas-hero-copy {padding-bottom:4px}
  body[data-atlas].hq-public.home-page #main-content .hq-launch {padding-block:9px}
  body[data-atlas].hq-public.home-page #main-content .hq-launch-copy {row-gap:3px}
  body[data-atlas].hq-public.home-page #main-content .hq-launch-copy span {line-height:1.35}
  body[data-atlas].hq-public.home-page #main-content .hq-guide-head .home-all-guides384 {min-height:44px}
}
@media(max-width:560px) {
  body[data-atlas].hq-public.home-page #main-content #home-guides nav {grid-template-columns:minmax(0,1fr)}
  body[data-atlas].hq-public.home-page #main-content #home-guides nav a[data-guide]:not([hidden]) {padding:10px 1px 11px}
}
@media(max-width:450px) {
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .header-inner .desktop-shortcuts {
    display:flex!important;align-items:stretch;gap:0
  }
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .desktop-shortcuts a[data-primary-route] {
    flex:1 1 auto;min-width:44px;padding-inline:3px!important
  }
  #nav[data-field-menu] .hq-short-list a:has(small) {align-items:start;justify-content:center;gap:3px;min-height:57px;padding:8px 9px!important}
  #nav[data-field-menu] .hq-short-list small {line-height:1.35;color:#d5e1de}
}
@media(max-width:374px) {
  #nav[data-field-menu]:lang(de) .hq-short-list a:has(small) {
    grid-column:1/-1;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
    min-height:50px;padding:6px 10px!important;gap:2px
  }
}
@media(max-width:650px), (pointer:coarse) and (orientation:landscape) and (max-height:540px) {
  #nav[data-field-menu]:has(.directory-filters:not([hidden])) .directory-views:not([hidden]) {
    position:static!important;box-shadow:none!important
  }
  #nav[data-field-menu] .directory-filters:has(+ .hq-menu-category) {display:none!important}
  #nav[data-field-menu] .directory-filters:not([hidden]) + select.hq-menu-category {
    display:block;grid-column:1/-1;order:2;position:sticky;top:53px;z-index:2;justify-self:stretch;
    box-sizing:border-box;width:100%;max-width:100%;height:44px;margin:0;padding:4px 10px;
    border:1px solid var(--menu-control-border);border-radius:6px;background:var(--menu-input);color:var(--atlas-ink);
    box-shadow:0 0 0 5px var(--menu-surface);font:450 .8125rem/1.4 system-ui;color-scheme:dark
  }
  #nav[data-field-menu] {scroll-padding-block-start:104px}
}
@media(pointer:coarse) and (orientation:landscape) and (max-height:540px) {
  body[data-atlas] header[data-hq-masthead].menu-open .header-inner .desktop-shortcuts {display:none!important}
  body[data-atlas] header[data-hq-masthead].menu-open #nav[data-field-menu] {
    width:min(625px,calc(100% - 2 * var(--header-inset)))!important;max-height:calc(100dvh - 60px)!important;
    grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto;gap:8px 12px!important;
    padding:9px 12px!important
  }
  #nav[data-field-menu] .site-nav-search {grid-area:1/1!important}
  #nav[data-field-menu]:has(.directory-views[hidden]) .site-nav-search {grid-column:1/-1!important}
  #nav[data-field-menu] .directory-views:not([hidden]) {grid-area:1/2!important;top:0!important}
  #nav[data-field-menu] #site-tool-search {font-size:16px!important;height:44px!important}
  #nav[data-field-menu] .directory-views button[data-directory-view],
  #nav[data-field-menu] #site-nav-links .site-nav-group a:not([hidden]) {min-height:44px!important}
  #nav[data-field-menu]:has(.directory-filters:not([hidden])) .directory-views:not([hidden]) {position:sticky!important;z-index:2;background:var(--menu-surface)!important}
  #nav[data-field-menu] .directory-filters:not([hidden]) + select.hq-menu-category {top:51px}
}


/* Native desktop controls keep their existing grid positions. On phones one
   opaque grid owns the pinned controls and the space between them. */
#nav[data-field-menu] .hq-menu-toolbar {display:contents}
@media(max-width:700px) {
  body[data-atlas].hq-public.home-page #main-content .home-directory-head > div .hq-query-category {
    background:transparent;border-color:transparent;color:var(--atlas-muted);
    padding-inline:4px;font-size:.8125rem
  }
  body[data-atlas].hq-public.home-page #main-content .home-directory-head > div .hq-query-category:is(:hover,:focus-visible) {
    color:var(--atlas-ink);border-color:var(--menu-control-border,#52676c)
  }
}
@media(max-width:650px), (pointer:coarse) and (orientation:landscape) and (max-height:540px) {
  body[data-atlas] header[data-hq-masthead].menu-open #nav[data-field-menu] {
    scroll-padding-block-start:var(--menu-toolbar-height,108px)
  }
  #nav[data-field-menu] .hq-menu-toolbar {
    grid-column:1/-1;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr);gap:9px;
    position:sticky;top:0;z-index:4;align-self:start;min-width:0;
    padding-bottom:2px;background:var(--menu-surface);border:0;
    box-shadow:0 -16px 0 12px var(--menu-surface)
  }
  #nav[data-field-menu] .hq-menu-toolbar .site-nav-search,
  #nav[data-field-menu] .hq-menu-toolbar .directory-views:not([hidden]),
  #nav[data-field-menu] .hq-menu-toolbar .directory-filters:not([hidden]) + select.hq-menu-category {
    position:static!important;inset:auto!important;box-shadow:none!important
  }
  #nav[data-field-menu] .hq-menu-toolbar .directory-views:not([hidden]) {grid-column:1;grid-row:2}
  #nav[data-field-menu] .hq-menu-toolbar .directory-views button[data-directory-view] {
    min-height:44px!important;padding:5px 6px!important;
  }
  #nav[data-field-menu] .hq-menu-toolbar .directory-views:not([hidden]) {background:#0d1d25!important}
  #nav[data-field-menu] .hq-menu-grid {row-gap:10px}
  #nav[data-field-menu] .hq-menu-grid section + section {padding-top:10px}

}
@media(pointer:coarse) and (orientation:landscape) and (max-height:540px) {
  #nav[data-field-menu] .hq-menu-toolbar {grid-template-columns:minmax(0,1fr) auto;column-gap:12px}
  #nav[data-field-menu] .hq-menu-toolbar .directory-views:not([hidden]) {grid-area:1/2!important}
}



/* Guide covers and archive entries share the same editorial artwork. */
body[data-atlas] #main .archive-intro,
body[data-atlas] #main .reader .hq-guide-cover {
  display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);align-items:stretch;
  margin:0;padding:0;border:1px solid var(--atlas-line);border-radius:9px;overflow:hidden;
  background:#12242d;color:var(--atlas-ink);box-shadow:none
}
body[data-atlas] #main .archive-intro > div,
body[data-atlas] #main .reader .hq-cover-copy {
  box-sizing:border-box;align-self:center;width:100%;min-width:0;padding:16px 18px
}
body[data-atlas] #main .archive-intro > img.hq-scene,
body[data-atlas] #main .hq-guide-cover > img.hq-scene {
  display:block;position:static;inset:auto;grid-area:1/2;align-self:stretch;z-index:auto;
  width:100%;height:100%;min-height:115px;max-height:185px;object-fit:cover;object-position:50% 48%;
  opacity:1;mask-image:none;filter:none;mix-blend-mode:normal;margin:0;border:0;border-radius:0
}
body[data-atlas] #main .archive-intro > img.hq-scene {object-position:57% 48%}
body[data-atlas] #main .reader .hq-guide-cover h1 {margin:0;padding:0}
body[data-atlas] #main .reader .hq-guide-cover p {margin:7px 0 0;font:400 .875rem/1.55 system-ui;color:var(--atlas-muted)}
body[data-atlas] #main .reader .hq-guide-cover .hq-lead-item {width:32px;height:32px;object-fit:contain;margin:4px 0 0}
body[data-atlas] #main .reader .hq-cover-copy > a {display:inline-flex;align-items:center;min-height:38px;font-size:.8125rem}
body[data-atlas] #main .archive-list {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 20px;align-items:stretch
}
body[data-atlas] #main a.archive-card {
  display:flex;gap:12px;align-items:flex-start;min-width:0;padding:14px 2px;
  background:none;border:0;border-top:1px solid var(--atlas-line);border-radius:0;box-shadow:none
}
body[data-atlas] #main a.archive-card .hq-archive-copy {min-width:0}
body[data-atlas] #main a.archive-card h2 {margin:3px 0 4px;font:600 .90625rem/1.4 system-ui;color:var(--atlas-ink);letter-spacing:-.012em}
body[data-atlas] #main a.archive-card p {font:400 .8125rem/1.5 system-ui;color:var(--atlas-muted)}
body[data-atlas] #main a.archive-card .category {font:500 .75rem/1.35 system-ui;color:var(--atlas-gold)}
body[data-atlas] #main a.archive-card:is(:hover,:focus-visible) h2 {color:var(--atlas-mint);text-decoration:underline;text-underline-offset:3px}
body[data-atlas] #main .archive-card .hq-guide-sprite {flex:0 0 auto;width:34px;height:34px;object-fit:contain;margin:3px 0 0}
body[data-atlas] #main a.hq-archive-feature {
  display:flex;flex-direction:column;gap:0;margin:0 0 13px;padding:0;
  border:1px solid var(--atlas-line);border-radius:8px;background:#142731;overflow:hidden
}
body[data-atlas] #main a.hq-archive-feature > img {
  display:block;width:100%;height:clamp(82px,8vw,116px);object-fit:cover;object-position:center 48%;margin:0
}
body[data-atlas] #main a.hq-archive-feature .hq-archive-copy {padding:10px 13px 12px}
body[data-atlas] #main a.hq-archive-feature h2 {font-size:.9375rem}
body[data-atlas] #main-content > .hq-legacy-cover {overflow:hidden;max-width:100%;margin:0 0 12px;border:1px solid var(--atlas-line);border-radius:8px}
body[data-atlas] #main-content > .hq-legacy-cover img {display:block;width:100%;height:clamp(78px,13vw,150px);object-fit:cover;object-position:50% 52%}
body[data-atlas].hq-public.home-page #main-content #home-guides nav a[data-guide]:has(.hq-guide-sprite):not([hidden]) {
  grid-template-columns:32px minmax(0,1fr);column-gap:10px
}
body[data-atlas].hq-public.home-page #main-content #home-guides .hq-guide-sprite {
  align-self:start;grid-area:1/1/3/2;width:32px;height:32px;object-fit:contain;margin:1px 0 0
}
/* Each bar accompanies the number in its original table cell. */
body[data-atlas] #main .reader table.hq-data-chart {
  width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;font-variant-numeric:tabular-nums
}
body[data-atlas] #main .reader .hq-data-chart :is(th,td) {
  min-width:0;width:auto;padding:9px 10px;text-align:start;vertical-align:middle;line-height:1.4;
  border:0;border-bottom:1px solid var(--atlas-line);overflow-wrap:anywhere
}
body[data-atlas] #main .reader .hq-data-chart thead th {font-size:.78125rem;color:var(--atlas-muted);background:#162c34}
body[data-atlas] #main .reader .hq-data-chart tbody th {font-weight:510}
body[data-atlas] #main .reader .hq-data-chart td {color:var(--atlas-ink);font-weight:540}
body[data-atlas] #main .reader .hq-data-chart td progress {
  display:block;width:100%;height:5px;margin:5px 0 0;appearance:none;border:0;border-radius:5px;
  color:#72c7b1;background:#2d454b;overflow:hidden;--bar-ink:#72c7b1
}
body[data-atlas] #main .reader .hq-data-chart td:nth-child(3) progress {--bar-ink:#e7b66e}
body[data-atlas] #main .reader .hq-data-chart progress::-webkit-progress-bar {background:#2d454b;border-radius:5px}
body[data-atlas] #main .reader .hq-data-chart progress::-webkit-progress-value {background:var(--bar-ink);border-radius:5px}
body[data-atlas] #main .reader .hq-data-chart progress::-moz-progress-bar {background:var(--bar-ink);border-radius:5px}
body[data-atlas] #main .reader #prices .hq-data-chart th:first-child {width:28%}
body[data-atlas] #main .reader .hq-guide-choices {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0 4px}
body[data-atlas] #main .reader .hq-guide-choices > div {border-top:2px solid #76bca9;padding:9px 0 4px}
body[data-atlas] #main .reader .hq-guide-choices > div:nth-child(2) {border-color:#dfb36c}
body[data-atlas] #main .reader .hq-guide-choices > div:nth-child(3) {border-color:#8fb1de}
body[data-atlas] #main .reader .hq-guide-choices h3 {margin:0;font:620 .875rem/1.4 system-ui}
body[data-atlas] #main .reader .hq-guide-choices p {margin:4px 0 0;font:400 .84375rem/1.5 system-ui}
@media(max-width:850px) {
  body[data-atlas] #main .archive-list {grid-template-columns:repeat(2,minmax(0,1fr));column-gap:15px}
  body[data-atlas] #main a.hq-archive-feature {flex-direction:row;align-items:stretch;margin-bottom:8px}
  body[data-atlas] #main a.hq-archive-feature > img {width:27%;height:auto;object-fit:cover;min-height:70px}
}
@media(max-width:600px) {
  body[data-atlas] #main .archive-intro,body[data-atlas] #main .reader .hq-guide-cover {grid-template-columns:minmax(0,1fr)}
  body[data-atlas] #main .archive-intro > div,body[data-atlas] #main .reader .hq-cover-copy {grid-area:2/1;padding:11px 13px 12px}
  body[data-atlas] #main .archive-intro > img.hq-scene,body[data-atlas] #main .hq-guide-cover > img.hq-scene {
    grid-area:1/1;width:100%;height:clamp(76px,23vw,112px);min-height:0;object-position:50% 48%
  }
  body[data-atlas] #main .archive-intro > img.hq-scene {height:clamp(64px,19vw,88px)}
  body[data-atlas] #main .archive-list {grid-template-columns:minmax(0,1fr)}
  body[data-atlas] #main a.hq-archive-feature {gap:0}
  body[data-atlas] #main a.hq-archive-feature > img {width:21%;min-width:60px;max-width:88px}
  body[data-atlas] #main a.hq-archive-feature .hq-archive-copy {padding:9px 11px}
  body[data-atlas] #main a.archive-card:not(.hq-archive-feature) {padding:12px 2px;gap:10px}
  body[data-atlas] #main .reader .hq-guide-cover p {font-size:.84375rem;line-height:1.5}
  body[data-atlas] #main .reader .hq-guide-choices {grid-template-columns:1fr;gap:0}
  body[data-atlas] #main .reader .hq-guide-choices > div {display:grid;grid-template-columns:minmax(65px,23%) 1fr;gap:9px;padding:9px 0;border-top-width:1px}
  body[data-atlas] #main .reader .hq-guide-choices p {margin:0}
  body[data-atlas] #main .reader .hq-data-chart :is(th,td) {padding:8px 7px}
}


/* Older interactive guides rebuild their opening section after navigation. */
body[data-atlas]:has(main[data-hq-legacy]) #site-context,
body[data-atlas] main[data-hq-legacy] #events-app > a.breadcrumb {display:none!important}
body[data-atlas] main[data-hq-legacy] > :is(.atlas-crumb,.hq-legacy-cover,.hq-guide-related) {
  width:min(100%,1180px);margin-inline:auto;box-sizing:border-box
}
body[data-atlas] main[data-hq-legacy] .hq-guide-related {
  display:flex;flex-wrap:wrap;align-items:center;gap:4px 18px;padding:10px 0 14px;margin-block:16px 0;
  border-top:1px solid var(--atlas-line);font:500 .8125rem/1.45 system-ui
}
body[data-atlas] main[data-hq-legacy] .hq-guide-related a {display:inline-flex;align-items:center;min-height:44px;color:var(--atlas-mint)}
body[data-atlas] #events-app .hq-legacy-heading {
  display:block!important;position:relative!important;isolation:isolate;box-sizing:border-box;
  min-width:0;min-height:125px;overflow:hidden;border-radius:8px;
  padding:15px calc(34% + 15px) 16px 15px!important;background:#12242d;color:var(--atlas-ink)
}
body[data-atlas] #events-app .hq-legacy-heading > .event485-art {display:none!important}
body[data-atlas] #events-app .hq-legacy-heading > .hq-legacy-cover {
  position:absolute;inset:0 0 0 auto;display:block;box-sizing:border-box;
  width:34%;height:100%;padding:0;margin:0;border:0;border-radius:0;overflow:hidden
}
body[data-atlas] #events-app .hq-legacy-heading .hq-legacy-cover img {display:block;width:100%;height:100%;object-fit:cover;object-position:center}
body[data-atlas] #events-app .hq-legacy-heading h1 {
  font:590 clamp(1.1875rem,1.09rem + .38vw,1.425rem)/1.25 system-ui!important;letter-spacing:-.025em!important;
  margin:0!important;padding:0!important;color:var(--atlas-ink)!important
}
body[data-atlas] #events-app .hq-legacy-heading .eyebrow {font:520 .75rem/1.35 system-ui;margin:0 0 3px}
body[data-atlas] #events-app .hq-legacy-heading :is(.lead,.ta-reader-subtitle) {font:400 .875rem/1.5 system-ui!important;color:var(--atlas-muted)!important;margin:6px 0 0}
@media(max-width:850px) {
  body[data-atlas] #main a.hq-archive-feature {align-items:center;gap:0}
  body[data-atlas] #main a.hq-archive-feature > img {
    flex:0 0 auto;width:76px;min-width:0;height:72px;min-height:0;margin-inline-start:8px;border-radius:5px
  }
}
@media(max-width:600px) {
  body[data-atlas] #events-app .hq-legacy-heading {min-height:0;padding:calc(clamp(76px,23vw,112px) + 11px) 12px 12px!important}
  body[data-atlas] #events-app .hq-legacy-heading > .hq-legacy-cover {inset:0 0 auto;width:100%;height:clamp(76px,23vw,112px)}
  body[data-atlas] #events-app .hq-legacy-heading :is(.lead,.ta-reader-subtitle) {font-size:.84375rem!important}
}

/* The illustrated title replaces the older strategy page's overlaid badge. */
body[data-atlas] #events-app .hq-legacy-heading > h1.game-title::before {content:none!important;display:none!important}


/* In-guide comparisons use visible source values and ordinary HTML reading order. */
body[data-atlas] #main .reader .hq-info {
  --info-edge:var(--atlas-line,#34484e);--info-track:#30484e;--info-mint:#8ad1bd;--info-gold:#edbd83;
  box-sizing:border-box;width:100%;max-width:100%;min-width:0;margin:16px 0 18px;padding:0;
  border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--atlas-ink);
  font:400 .84375rem/1.48 system-ui,sans-serif;scroll-margin-top:100px;font-variant-numeric:tabular-nums
}
body[data-atlas] #main .reader .hq-info-sr {
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0
}
body[data-atlas] #main .reader .hq-info figcaption {
  margin:0 0 8px;padding:0;color:var(--atlas-ink);font:600 .925rem/1.35 system-ui,sans-serif;letter-spacing:-.008em
}
body[data-atlas] #main .reader .hq-info-table {
  display:table;table-layout:fixed;border-collapse:separate;border-spacing:0;width:100%;min-width:0;max-width:none;
  margin:0;padding:0;border:1px solid var(--info-edge);border-radius:7px;overflow:hidden;
  background:#10222b;color:var(--atlas-ink);font:inherit
}
body[data-atlas] #main .reader .hq-info-table thead {display:table-header-group}
body[data-atlas] #main .reader .hq-info-table tbody {display:table-row-group}
body[data-atlas] #main .reader .hq-info-table tr {display:table-row;border:0;background:none}
body[data-atlas] #main .reader .hq-info-table :is(th,td) {
  position:static;display:table-cell;box-sizing:border-box;width:auto;min-width:0;padding:8px 10px;text-align:start;
  vertical-align:middle;border:0;border-bottom:1px solid var(--info-edge);background:transparent;
  color:var(--atlas-ink);font:450 .84375rem/1.4 system-ui;letter-spacing:normal;text-transform:none;overflow-wrap:break-word
}
body[data-atlas] #main .reader .hq-info-table thead th,body[data-atlas] #main .reader .hq-path-key {
  background:#192f38;color:#bfd4d4;font:540 .78125rem/1.4 system-ui,sans-serif
}
body[data-atlas] #main .reader .hq-info-table tbody tr:last-child > * {border-bottom:0}
body[data-atlas] #main .reader .hq-info-table td {font-weight:590}
body[data-atlas] #main .reader .hq-info-table :is(td,th)::before {content:none}
body[data-atlas] #main .reader .hq-tier-table tr > :first-child {width:28%;font-weight:530}
body[data-atlas] #main .reader .hq-tier-table tr > :not(:first-child) {text-align:center;padding-inline:2px}
body[data-atlas] #main .reader .hq-tier-table thead th:not(:first-child) {position:relative;isolation:isolate}
body[data-atlas] #main .reader .hq-tier-table thead th:not(:first-child)::before {
  content:"";position:absolute;top:50%;left:0;right:0;z-index:-1;border-top:1px solid #52736e
}
body[data-atlas] #main .reader .hq-tier-table thead th:nth-child(2)::before {left:50%}
body[data-atlas] #main .reader .hq-tier-table thead th:last-child::before {right:50%}
body[data-atlas] #main .reader .hq-tier-table thead span,body[data-atlas] #main .reader .hq-path-stop b {
  display:inline-grid;place-items:center;box-sizing:border-box;min-width:26px;height:26px;padding:0 4px;
  border:1px solid #548177;border-radius:50px;background:#193635;color:#b4e5d7;font:600 .8125rem/1 system-ui
}
body[data-atlas] #main .reader .hq-tier-table tbody td {font-weight:650}
body[data-atlas] #main .reader .hq-slot-table tr > :first-child {width:18%}
body[data-atlas] #main .reader .hq-slot-table progress {
  --bar-color:var(--info-mint);display:block;width:100%;height:5px;appearance:none;border:0;border-radius:4px;
  margin:5px 0 1px;background:var(--info-track);color:var(--bar-color);overflow:hidden
}
body[data-atlas] #main .reader .hq-slot-table td:last-child progress {--bar-color:var(--info-gold)}
body[data-atlas] #main .reader .hq-slot-table progress::-webkit-progress-bar {background:var(--info-track);border-radius:4px}
body[data-atlas] #main .reader .hq-slot-table progress::-webkit-progress-value {background:var(--bar-color);border-radius:4px}
body[data-atlas] #main .reader .hq-slot-table progress::-moz-progress-bar {background:var(--bar-color);border-radius:4px}
body[data-atlas] #main .reader .hq-milestones {max-width:45rem}
body[data-atlas] #main .reader .hq-milestones .hq-path-key,
body[data-atlas] #main .reader .hq-milestones ol > li {
  display:grid;grid-template-columns:5.75rem minmax(0,1fr);align-items:center;column-gap:8px
}
body[data-atlas] #main .reader .hq-path-key {padding:7px 9px 7px 0;border-radius:6px 6px 0 0}
body[data-atlas] #main .reader .hq-path-key > :first-child {text-align:center}
body[data-atlas] #main .reader .hq-milestones ol {display:block;margin:0;padding:0;list-style:none}
body[data-atlas] #main .reader .hq-milestones ol > li {
  position:relative;min-height:36px;margin:0;padding:6px 1px 6px 0;border-bottom:1px solid var(--info-edge);
  background:none;list-style:none;box-sizing:border-box
}
body[data-atlas] #main .reader .hq-milestones li::before {
  content:"";position:absolute;top:0;bottom:0;left:2.875rem;border-inline-start:1px solid #52736e
}
body[data-atlas] #main .reader .hq-milestones li:first-child::before {top:50%}
body[data-atlas] #main .reader .hq-milestones li:last-child::before {bottom:50%}
body[data-atlas] #main .reader .hq-path-stop {justify-self:center;position:relative;display:inline-flex}
body[data-atlas] #main .reader .hq-path-stop b {min-width:29px;height:24px}
body[data-atlas] #main .reader .hq-milestones li strong {display:block;font:580 .84375rem/1.42 system-ui;color:var(--atlas-ink)}
body[data-atlas] #main .reader .hq-milestones li p {margin:2px 0 0;color:var(--atlas-muted);font:400 .8125rem/1.45 system-ui}
body[data-atlas] #main .reader .hq-info .hq-roll-condition {margin:0 0 7px;color:var(--atlas-muted);font:450 .8125rem/1.4 system-ui}
body[data-atlas] #main .reader .hq-roll-table tr > :first-child {width:39%}
body[data-atlas] #main .reader .hq-roll-table tr > :not(:first-child) {text-align:center}
body[data-atlas] #main .reader .hq-roll-table tbody td {font-size:.9375rem;font-weight:620}
body[data-atlas] #main .reader .hq-dice {display:flex;align-items:center;justify-content:center;gap:3px;margin:0 0 3px}
body[data-atlas] #main .reader .hq-dice i {
  display:block;width:14px;height:14px;border-radius:3px;border:1px solid #7aafa2;background-color:#23423d;
  background-image:radial-gradient(circle at 29% 29%,#bcdfcf 1.15px,transparent 1.45px),radial-gradient(circle at 50% 50%,#bcdfcf 1.15px,transparent 1.45px),radial-gradient(circle at 71% 71%,#bcdfcf 1.15px,transparent 1.45px)
}
body[data-atlas] #main .reader .hq-info.hq-balances {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body[data-atlas] #main .reader .hq-currency {padding:10px 13px 11px;border:1px solid var(--info-edge);border-radius:7px;background:#12262e}
body[data-atlas] #main .reader .hq-currency > dt,
body[data-atlas] #main .reader .hq-deadlines dt {
  display:flex;gap:8px;align-items:center;margin:0;color:var(--atlas-ink);font:600 .875rem/1.4 system-ui
}
body[data-atlas] #main .reader .hq-currency > dt i {
  flex:none;width:15px;height:15px;box-sizing:border-box;border:3px double #e4bb81;border-radius:50%;background:#574732
}
body[data-atlas] #main .reader .hq-currency:nth-child(2) > dt i {border-color:#9cc7d7;background:#33505c}
body[data-atlas] #main .reader .hq-currency :is(dd,dl) {margin:0;padding:0}
body[data-atlas] #main .reader .hq-currency dl > div {margin-top:7px}
body[data-atlas] #main .reader .hq-currency dl dt {margin:0;color:var(--atlas-muted);font:500 .78125rem/1.4 system-ui}
body[data-atlas] #main .reader .hq-currency dl dd {font:450 .84375rem/1.45 system-ui}
body[data-atlas] #main .reader .hq-currency dl .hq-currency-outcome {padding-top:7px;border-top:1px solid var(--info-edge)}
body[data-atlas] #main .reader .hq-currency-outcome dd {color:var(--info-gold);font-weight:600}
body[data-atlas] #main .reader .hq-currency:nth-child(2) .hq-currency-outcome dd {color:var(--info-mint)}
body[data-atlas] #main .reader .hq-info.hq-deadlines {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body[data-atlas] #main .reader .hq-deadlines > div {min-width:0;padding:9px 0 1px;border-top:2px solid #668f91}
body[data-atlas] #main .reader .hq-deadlines dt i {position:relative;flex:none;width:14px;height:14px;box-sizing:border-box;border:1px solid #9fc1c4;border-radius:50%}
body[data-atlas] #main .reader .hq-deadlines dt i::after {content:"";position:absolute;left:5px;top:2px;width:4px;height:5px;border-left:1px solid #9fc1c4;border-bottom:1px solid #9fc1c4}
body[data-atlas] #main .reader .hq-deadlines dd {margin:5px 0 0;color:var(--atlas-muted);font:400 .8125rem/1.45 system-ui}
body[data-atlas] #main .reader .hq-deadlines dd strong {color:var(--atlas-ink);font-weight:580}
@media(max-width:650px) {
  body[data-atlas] #main .reader .hq-info.hq-deadlines {grid-template-columns:1fr;gap:0}
  body[data-atlas] #main .reader .hq-deadlines > div {border-top:1px solid var(--info-edge);padding:8px 0}
  body[data-atlas] #main .reader .hq-deadlines dd {margin:2px 0 0 22px}
}
@media(max-width:500px) {
  body[data-atlas] #main .reader .hq-info.hq-balances {grid-template-columns:1fr;gap:7px}
  body[data-atlas] #main .reader .hq-info-table :is(th,td) {padding:7px 6px}
  body[data-atlas] #main .reader .hq-tier-table tr > :first-child {width:33%}
}


body[data-atlas] #main .hq-deadlines [data-guide-target] {scroll-margin-block-start:94px}

/* TA2's event artwork, preparation stages and warzone rewards. */
body[data-atlas] #main .hq-guide-cover > .hq-scene-ta2 {object-position:52% 47%}
body[data-atlas] #main .reader .ta2-stages {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px;margin:15px 0 0;padding:0
}
body[data-atlas] #main .ta2-stage {
  position:relative;display:grid;grid-template-columns:56px minmax(0,1fr);grid-template-rows:auto 1fr;
  align-content:start;column-gap:11px;row-gap:4px;min-width:0;padding:13px 0 14px;border-top:1px solid var(--atlas-line);scroll-margin-block-start:94px
}
body[data-atlas] #main .ta2-stage dt,body[data-atlas] #main .ta2-stage dd {grid-column:2;min-width:0;padding:0;margin:0}
body[data-atlas] #main .ta2-stage dt {display:block;font:650 .915rem/1.28 system-ui;color:var(--atlas-ink)}
body[data-atlas] #main .ta2-stage dt img {
  position:absolute;left:0;top:14px;box-sizing:border-box;width:56px;height:56px;object-fit:cover;padding:0;
  border-radius:9px;border:1px solid #425c5c;background:radial-gradient(ellipse at 50% 72%,#385451,#1a2a31 76%)
}
body[data-atlas] #main .ta2-stage .ta2-day {
  display:block;color:#eac281;font:650 .74rem/1.4 system-ui;margin:0 0 2px;letter-spacing:.015em
}
body[data-atlas] #main .ta2-stage dd {font:400 .85rem/1.51 system-ui;color:var(--atlas-muted)}
body[data-atlas] #main .reader .ta2-bonus {
  --ta2-bar:#80c9b7;box-sizing:border-box;max-width:660px;margin:15px 0 16px;padding:13px 15px 10px;
  border:1px solid var(--atlas-line);border-radius:8px;background:#122127;color:var(--atlas-ink)
}
body[data-atlas] #main .ta2-bonus figcaption {margin:0 0 12px;padding:0;font:650 .87rem/1.4 system-ui;color:var(--atlas-ink)}
body[data-atlas] #main .ta2-bonus dl {display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:0;margin:0;padding:0}
body[data-atlas] #main .ta2-bonus dl>div {display:grid;grid-template-rows:68px auto;grid-template-columns:minmax(0,1fr);min-width:0;text-align:center}
body[data-atlas] #main .ta2-bonus dt {grid-row:2;grid-column:1;border-top:1px solid #4b676e;margin:0;padding:4px 0 0;color:#d0dddf;font:550 .78rem/1.3 system-ui}
body[data-atlas] #main .ta2-bonus dd {
  grid-area:1/1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:3px;height:100%;
  box-sizing:border-box;margin:0;padding:0;font:650 .8rem/1.3 system-ui;color:#dbf1ea;font-variant-numeric:tabular-nums
}
body[data-atlas] #main .ta2-bonus dd i {
  flex:none;width:clamp(9px,2.7vw,20px);max-width:55%;border-radius:3px 3px 0 0;background:var(--ta2-bar)
}
body[data-atlas] #main .ta2-bonus dl>div:first-child dd {--ta2-bar:#e5b66d;color:#f2d4a3}
body[data-atlas] #main .ta2-bonus .ta2-axis {text-align:center;margin:5px 0 0;font:450 .75rem/1.4 system-ui;color:var(--atlas-muted)}
@media(max-width:700px) {
  body[data-atlas] #main .reader .ta2-stages {grid-template-columns:minmax(0,1fr)}
  body[data-atlas] #main .ta2-stage {column-gap:10px;padding:11px 0 12px}
  body[data-atlas] #main .ta2-stage dt img {top:11px}
}
@media(max-width:420px) {
  body[data-atlas] #main .ta2-stage {grid-template-columns:45px minmax(0,1fr);column-gap:9px}
  body[data-atlas] #main .ta2-stage dt img {width:45px;height:45px;padding:0}
  body[data-atlas] #main .reader .ta2-bonus {padding:11px 7px 8px}
  body[data-atlas] #main .ta2-bonus figcaption {margin-left:3px}
}

body[data-atlas] #main .ta2-bonus i.ta2-bar-15 {height:48.0px}
body[data-atlas] #main .ta2-bonus i.ta2-bar-12 {height:38.4px}
body[data-atlas] #main .ta2-bonus i.ta2-bar-10 {height:32.0px}
body[data-atlas] #main .ta2-bonus i.ta2-bar-8 {height:25.6px}
body[data-atlas] #main .ta2-bonus i.ta2-bar-7 {height:22.4px}
body[data-atlas] #main .ta2-bonus i.ta2-bar-6 {height:19.2px}
body[data-atlas] #main .ta2-bonus i.ta2-bar-5 {height:16.0px}
body[data-atlas] #main .ta2-bonus i.ta2-bar-4 {height:12.8px}

/* Terra Aurorae editorial figures share the article's reading width. */
body[data-atlas] .ta1-figure {
  --ta1-rule: #3e6864;
  color:var(--atlas-ink); background:#142a30; box-sizing:border-box;
  width:100%;max-width:100%;min-width:0; margin:14px 0 18px;
  padding:15px 18px 16px;border:1px solid #355154;border-radius:9px;
  font:400 .84375rem/1.45 system-ui,sans-serif;text-align:start;
}
body[data-atlas] .ta1-figure figcaption {
  margin:0 0 10px;font:620 .91rem/1.35 system-ui,sans-serif;
  color:var(--atlas-ink);text-transform:none;letter-spacing:normal;
}
body[data-atlas] .ta1-figure ol {
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,112px),1fr));
  list-style:none;padding:0;margin:0;gap:9px 14px;
}
body[data-atlas] .ta1-figure li {
  display:flex;flex-direction:column;gap:4px;min-width:0;padding:8px 0 0;
  margin:0;border:0;border-top:2px solid var(--ta1-rule);border-radius:0;
  background:transparent;color:#d4e1df;overflow-wrap:anywhere;
}
body[data-atlas] .ta1-figure li b {font-size:.84rem;line-height:1.4;color:#a9e7d5;font-weight:650}
body[data-atlas] .ta1-figure li span {font-size:.81rem;line-height:1.45}
body[data-atlas] .ta1-figure a {color:#f0f5ed;text-decoration:underline;text-decoration-color:#658c80;text-underline-offset:.17em}
body[data-atlas] .ta1-figure a:hover,body[data-atlas] .ta1-figure a:focus-visible {color:#baf4db;text-decoration-color:currentColor}
body[data-atlas] .ta1-figure ol.ta1-marks {display:flex;gap:7px}
body[data-atlas] .ta1-figure .ta1-marks li {flex:1 1 0;align-items:center;font-variant-numeric:tabular-nums}
body[data-atlas] .ta1-figure .ta1-marks b {font-size:.94rem}
body[data-atlas] #main .archive-card .hq-ta1-thumb {
  width:64px;height:49px;flex:0 0 auto;object-fit:cover;align-self:flex-start;
  border-radius:5px;margin:3px 0 0;
}
@media(max-width:600px){
 body[data-atlas] .ta1-figure {padding:12px 13px;margin:12px 0 15px}
 body[data-atlas] .ta1-figure ol.ta1-steps {display:flex;flex-direction:column;gap:0}
 body[data-atlas] .ta1-figure .ta1-steps li {display:grid;grid-template-columns:minmax(0,30%) minmax(0,1fr);align-items:baseline;gap:11px;padding:7px 0;border:0;border-top:1px solid var(--ta1-rule)}
 body[data-atlas] .ta1-figure .ta1-steps li:last-child {padding-bottom:0}
 body[data-atlas] .ta1-figure figcaption {margin-bottom:7px}
 body[data-atlas] #main .archive-card .hq-ta1-thumb {width:48px;height:44px}
}

body[data-atlas] main:is([data-ta1-guide],[data-el-guide],[data-battle-guide]) #events-app .hq-legacy-heading h1 {
  min-height:0!important;line-height:1.22!important;
}
body[data-atlas] main:is([data-ta1-guide],[data-el-guide],[data-battle-guide]) #events-app .hq-legacy-heading>.eyebrow {
  padding:0!important;margin:0 0 4px!important;
}
body[data-atlas] main:is([data-ta1-guide],[data-el-guide],[data-battle-guide]) #events-app .hq-legacy-heading>:is(.lead,.ta-reader-subtitle) {
  margin:7px 0 0!important;
}
@media(max-width:600px) {
  body[data-atlas] main:is([data-ta1-guide],[data-el-guide],[data-battle-guide]) #events-app>.guide-hero {
    padding:0!important;gap:0!important;margin:5px 0 0!important;overflow:hidden;
  }
  body[data-atlas] main:is([data-ta1-guide],[data-el-guide],[data-battle-guide]) #events-app .guide-hero>.hq-legacy-heading {
    border-radius:0;padding-inline:14px!important;padding-bottom:14px!important;
  }
  body[data-atlas] main:is([data-ta1-guide],[data-el-guide],[data-battle-guide]) #events-app .guide-hero>.goal-box {
    margin:12px 14px 14px!important;min-width:0;
  }
  body[data-atlas] .ta1-figure .ta1-steps li:has(a) {padding-block:0;align-items:center}
  body[data-atlas] .ta1-figure .ta1-steps li a {display:flex;align-items:center;min-height:36px}
  body[data-atlas] .ta1-figure .ta1-compare li {
    grid-template-columns:minmax(0,1fr);gap:2px;padding-block:8px;
  }
  body[data-atlas] .ta1-figure .ta1-compare li b {overflow-wrap:normal;hyphens:auto}
  body[data-atlas] .ta1-figure .ta1-timeline li b {white-space:nowrap}
}
/* Compact translated controls on the map linked from TA guides. */
@media (max-width:400px){
  html[lang="de"] body.hq-battle .map-toolbar .tools>button[data-tool] {
    flex:0 0 auto!important;width:max-content!important;min-width:44px;padding-inline:4px;
  }
  html[lang="de"] body.hq-battle .map-toolbar .tools .more-map-tools>summary {
    display:grid!important;box-sizing:border-box;width:100%!important;grid-template-columns:auto auto;grid-template-rows:14px 15px;
    place-content:center;column-gap:2px;row-gap:2px;padding:2px 4px;min-width:44px;min-height:44px;
  }
  html[lang="de"] body.hq-battle .map-toolbar .tools .more-map-tools {position:static!important}
  html[lang="de"] body.hq-battle .map-toolbar .more-map-tools>.secondary-map-tools {
    inset:auto auto auto 0!important;top:calc(100% + 4px)!important;max-width:100%;box-sizing:border-box
  }
  html[lang="de"] body.hq-battle .map-toolbar .tools .more-map-tools>summary::before {
    grid-column:1/-1;justify-self:center;
  }
}

body[data-atlas] .ta1-figure .ta1-all-guides {
  display:inline-flex;gap:6px;align-items:center;min-height:36px;
  margin-top:6px;color:var(--atlas-mint);font-size:.8125rem;
}


/* Eternal Land's in-page reference and illustrated construction sequence. */
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) {--el-edge:#365358;--el-paper:#14282f;--el-accent:#b9dcd6}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) :is(.el-jumps,.el-figure) {box-sizing:border-box;min-width:0}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-jumps {display:flex;flex-wrap:wrap;align-items:center;gap:0 16px;padding:3px 0 5px;margin:0 0 12px;border:0;border-bottom:1px solid var(--el-edge)}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-jumps a,
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-map-link {
  display:inline-flex;align-items:center;gap:6px;min-height:36px;
  font:540 .8125rem/1.35 system-ui,sans-serif;color:var(--el-accent);
  text-decoration:underline;text-decoration-color:#597b7d;text-underline-offset:.2em;
}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-jumps a:focus-visible,
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-map-link:focus-visible {outline:2px solid var(--el-accent);outline-offset:2px}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-figure {
  display:block;width:100%;padding:15px 16px 14px;margin:0 0 18px;
  color:#e9f0ef;background:var(--el-paper);border:1px solid var(--el-edge);border-radius:9px;text-align:start;
}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-figure figcaption {margin:0 0 11px;color:#e9f0ef;font:620 .94rem/1.4 system-ui,sans-serif;letter-spacing:normal;text-transform:none}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-figure ol {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:0;padding:0;list-style:none}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-figure li {min-width:0;margin:0;padding:0;background:none;border:none;border-radius:0}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-route img {display:block;width:100%;height:auto;aspect-ratio:3.05;object-fit:cover;border-radius:4px}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-route li>div {padding:7px 0 0}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-figure li b {display:block;color:#cde4dc;font:630 .85rem/1.42 system-ui,sans-serif}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-figure li span,body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-figure p {display:block;margin:3px 0 0;color:#cedad9;font:400 .84rem/1.49 system-ui,sans-serif}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-map-link {margin:7px 0 -4px}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-rates {margin-top:12px}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-rates figcaption {margin-bottom:4px}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-rates table {border:0;border-collapse:collapse;table-layout:fixed;width:100%;min-width:0;margin:12px 0 0;color:#e6eeec}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-rates :is(th,td) {text-align:start;vertical-align:top;background:transparent;border:0;border-top:1px solid var(--el-edge);padding:8px 5px;font:400 .8125rem/1.45 system-ui,sans-serif;overflow-wrap:break-word;hyphens:auto}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-rates thead th {color:#acc4c1;font-weight:550}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-rates tbody td {color:#c9ebdc;font-weight:590}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-rates thead th:first-child {width:49%}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-rates tr>:first-child {padding-inline-start:0}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-reward li {border-top:2px solid #588580;padding-top:7px}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) :is(#el-route,#el-support,#el-settlement,#point-table-0){scroll-margin-top:84px}
@media(max-width:600px){
 body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-jumps {column-gap:13px;margin-bottom:10px}
 body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-figure {padding:12px;margin-bottom:14px}
 body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-figure ol {grid-template-columns:minmax(0,1fr);gap:0}
 body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-route li {display:grid;grid-template-columns:clamp(68px,22vw,98px) minmax(0,1fr);gap:10px;align-items:center;padding-block:8px;border-top:1px solid var(--el-edge)}
 body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-route img {width:100%;height:56px;aspect-ratio:auto}
 body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-route li:first-child {border-top:0;padding-top:0}
 body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-route li>div {padding:0}
 body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-reward li {border-top:1px solid var(--el-edge);padding:8px 0}
 body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-reward li:last-child {padding-bottom:0}
 body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-map-link {margin-top:0}
}


body[data-atlas] main:is([data-el-guide],[data-battle-guide]) #events-app>.guide-hero {width:100%;max-width:100%;box-sizing:border-box}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-more {padding:0;margin:0;border:0;background:transparent;box-shadow:none}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-more>summary {
  display:list-item;box-sizing:border-box;width:max-content;min-height:36px;padding:9px 0;margin:0;
  font:540 .8125rem/1.35 system-ui,sans-serif;color:var(--el-accent);cursor:pointer;list-style:disclosure-closed inside
}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-more[open] {flex-basis:100%}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-more[open]>summary {list-style-type:disclosure-open}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-more>div {display:flex;align-items:center;flex-wrap:wrap;gap:0 14px}
body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-rates {container-type:inline-size}
@container (max-width:340px) {
  body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-rates table {display:block}
  body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-rates thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-rates tbody {display:block}
  body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-rates tbody tr {display:block;padding:8px 0;border-top:1px solid var(--el-edge)}
  body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-rates tbody tr>:is(th,td) {display:block;width:auto;border:0;padding:0}
  body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-rates tbody td {margin-top:2px}
}
@media(max-width:600px) {
  body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-jumps {column-gap:clamp(6px,2vw,12px)}
}

body[data-atlas] main:is([data-el-guide],[data-battle-guide]) .el-figure:focus-visible {outline:2px solid var(--el-accent);outline-offset:2px}


/* The two battle guides use the same reading and focus controls as the other field guides. */
body[data-atlas] main[data-battle-guide] {
 --battle-accent:#acd9d0;--battle-dot:#82b9b1;
}
body[data-atlas] main[data-battle-guide="war-of-odinium"] {
 --battle-accent:#dbd0f3;--battle-dot:#b6a0d3;
}
body[data-atlas] main[data-battle-guide] .el-figure {scroll-margin-top:84px}
body[data-atlas] main[data-battle-guide] .el-figure ul {
 list-style:none;margin:0;padding:0;display:grid;gap:10px;
}
body[data-atlas] main[data-battle-guide] .battle-roster ul {grid-template-columns:1fr 1fr}
body[data-atlas] main[data-battle-guide] .battle-roster li {
 padding:9px 12px;border:1px solid #3b515b;border-radius:5px;background:#172c34
}
body[data-atlas] main[data-battle-guide] .battle-roster li b {color:var(--battle-accent);font-weight:610}
body[data-atlas] main[data-battle-guide] .battle-roster strong {font:650 1.2rem/1.1 system-ui;letter-spacing:-.035em}
body[data-atlas] main[data-battle-guide] .battle-roster li:last-child {
 grid-column:1/-1;display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;
 padding-block:7px;background:transparent;border:0;border-top:1px solid #3b515b;border-radius:0;
}
body[data-atlas] main[data-battle-guide] .battle-roster .roster-dots {
 display:grid;width:max-content;grid-template-columns:repeat(10,5px);gap:3px;margin:9px 0 7px
}
body[data-atlas] main[data-battle-guide] .roster-dots i {width:5px;height:5px;border-radius:50%;background:var(--battle-dot)}
body[data-atlas] main[data-battle-guide] .battle-roster li:nth-child(2) .roster-dots i {background:transparent;border:1px solid var(--battle-dot);box-sizing:border-box}
body[data-atlas] main[data-battle-guide] .battle-roles ul {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}
body[data-atlas] main[data-battle-guide] .battle-roles li {display:grid;grid-template-columns:clamp(62px,7vw,84px) minmax(0,1fr);gap:12px;align-items:center;border-top:1px solid var(--el-edge);padding-top:10px}
body[data-atlas] main[data-battle-guide] .battle-roles img {display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:5px}
body[data-atlas] main[data-battle-guide] .battle-matrix table {width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;border:0;margin:0}
body[data-atlas] main[data-battle-guide] .battle-matrix th,body[data-atlas] main[data-battle-guide] .battle-matrix td {
 padding:8px 5px;border:0;border-top:1px solid var(--el-edge);vertical-align:middle;text-align:start;
 font:450 .8125rem/1.44 system-ui,sans-serif;background:transparent;overflow-wrap:break-word;hyphens:auto
}
body[data-atlas] main[data-battle-guide] .battle-matrix thead th {font-weight:650;color:#d7dcdf}
body[data-atlas] main[data-battle-guide] .battle-matrix thead th:first-child {width:44%}
body[data-atlas] main[data-battle-guide] .battle-matrix tr>:first-child {padding-inline-start:0}
body[data-atlas] main[data-battle-guide] .battle-matrix td {color:var(--battle-accent);font-weight:590}
body[data-atlas] main[data-battle-guide] .battle-matrix tr:last-child td:nth-child(2) {color:#c4c9cc;font-weight:440}
body[data-atlas] main[data-battle-guide] .battle-claims dl {margin:0}
body[data-atlas] main[data-battle-guide] .battle-claims dl>div {
 display:grid;grid-template-columns:minmax(0,28%) minmax(0,1fr);align-items:baseline;gap:4px 16px;
 padding:9px 0;border-top:1px solid var(--el-edge);
}
body[data-atlas] main[data-battle-guide] .battle-claims dt {margin:0;color:var(--battle-accent);font:610 .85rem/1.45 system-ui}
body[data-atlas] main[data-battle-guide] .battle-claims dd {margin:0;font:400 .84rem/1.45 system-ui;color:#cedad9}
@media(max-width:600px) {
 body[data-atlas] main[data-battle-guide] .battle-roster li{padding:8px}
 body[data-atlas] main[data-battle-guide] .battle-roles ul{grid-template-columns:minmax(0,1fr);gap:0}
 body[data-atlas] main[data-battle-guide] .battle-roles li{grid-template-columns:60px minmax(0,1fr);gap:11px;padding-block:8px}
 body[data-atlas] main[data-battle-guide] .battle-roles li:first-child{padding-top:0;border-top:0}
 body[data-atlas] main[data-battle-guide] .battle-claims dl>div {display:block}
 body[data-atlas] main[data-battle-guide] .battle-claims dd {margin-top:2px}
}


body[data-atlas] main[data-battle-guide] .battle-matrix {container-type:inline-size}
body[data-atlas] main[data-battle-guide] .battle-matrix td small{display:none}
body[data-atlas] main[data-battle-guide] .battle-injuries{margin-block:12px 0}
body[data-atlas] main[data-battle-guide] .battle-injuries>p{margin-top:8px}
@container (max-width:325px) {
 body[data-atlas] main[data-battle-guide] .battle-matrix table,
 body[data-atlas] main[data-battle-guide] .battle-matrix tbody{display:block}
 body[data-atlas] main[data-battle-guide] .battle-matrix thead{position:absolute;height:1px;width:1px;clip-path:inset(50%);overflow:hidden}
 body[data-atlas] main[data-battle-guide] .battle-matrix tbody tr {display:grid;grid-template-columns:1fr 1fr;gap:4px 8px;padding-block:9px;border-top:1px solid var(--el-edge)}
 body[data-atlas] main[data-battle-guide] .battle-matrix tbody th {grid-column:1/-1;font-weight:610}
 body[data-atlas] main[data-battle-guide] .battle-matrix tbody :is(td,th){padding:0;border:0;min-width:0}
 body[data-atlas] main[data-battle-guide] .battle-matrix td small{display:block;font:480 .75rem/1.4 system-ui;color:#b4c3c3}
}


/* Capital Contest */
body[data-atlas] main[data-battle-guide="capital"] {
 --el-edge:#514953;--el-paper:#24232b;--el-accent:#e3c7a1;--battle-accent:#e3c7a1;
}
body[data-atlas] main[data-battle-guide] :is(.capital-timer ol,.capital-ground ul) {
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;list-style:none;padding:0;margin:0;
}
body[data-atlas] main[data-battle-guide] :is(.capital-timer,.capital-ground) li {
 display:block;min-width:0;padding:0;margin:0;border:0;background:transparent;
}
body[data-atlas] main[data-battle-guide] .capital-timer li {display:flex;flex-direction:column;justify-content:flex-end}
body[data-atlas] main[data-battle-guide] .capital-window {
 display:block;color:#ccc4c8;font:450 .82rem/1.4 system-ui,sans-serif;
}
body[data-atlas] main[data-battle-guide] .capital-timer strong {
 display:block;color:#f0d1ac;font:650 1rem/1.35 system-ui,sans-serif;
}
body[data-atlas] main[data-battle-guide] .capital-timer i {
 display:block;position:relative;width:100%;height:5px;margin-top:7px;border-radius:3px;background:#4e4750;overflow:hidden;
}
body[data-atlas] main[data-battle-guide] .capital-timer i::before {
 content:"";display:block;height:100%;width:100%;border-radius:inherit;background:#e1b78c;
}
body[data-atlas] main[data-battle-guide] .capital-timer li:nth-child(2) i::before {width:50%}
body[data-atlas] main[data-battle-guide] .capital-timer li:nth-child(3) i::before {width:16.667%}
body[data-atlas] main[data-battle-guide] .capital-timer>p {
 margin:13px 0 0;padding-top:9px;border-top:1px solid var(--el-edge);color:#d7d0d1;font:400 .83rem/1.5 system-ui,sans-serif;
}
body[data-atlas] main[data-battle-guide] .capital-ground img {
 display:block;width:100%;height:auto;aspect-ratio:3.1;object-fit:cover;border-radius:4px;margin-bottom:8px;
}
body[data-atlas] main[data-battle-guide] .capital-ground b {display:block;color:#efd3b0;font:610 .87rem/1.4 system-ui,sans-serif}
body[data-atlas] main[data-battle-guide] .capital-ground li span {display:block;color:#d8d1d0;font:400 .83rem/1.48 system-ui,sans-serif}
@media(max-width:600px){
 body[data-atlas] main[data-battle-guide] .capital-timer ol {grid-template-columns:1fr;gap:10px}
 body[data-atlas] main[data-battle-guide] .capital-timer li {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;align-items:baseline}
 body[data-atlas] main[data-battle-guide] .capital-timer strong {font-size:.86rem;text-align:end}
 body[data-atlas] main[data-battle-guide] .capital-timer i {grid-column:1/-1;align-self:end;margin:0}
 body[data-atlas] main[data-battle-guide] .capital-ground ul {grid-template-columns:1fr;gap:0}
 body[data-atlas] main[data-battle-guide] .capital-ground li {display:grid;grid-template-columns:clamp(56px,18vw,76px) minmax(0,1fr);align-items:start;gap:10px;padding-block:10px;border-top:1px solid var(--el-edge)}
 body[data-atlas] main[data-battle-guide] .capital-ground li:first-child {border-top:0;padding-top:0}
 body[data-atlas] main[data-battle-guide] .capital-ground li:last-child {padding-bottom:0}
 body[data-atlas] main[data-battle-guide] .capital-ground img {aspect-ratio:1.3;margin:1px 0 0}
}


/* Alliance Duel planner, shared by the server article and interactive day picker */
body[data-atlas] main[data-battle-guide="alliance-duel"] {--duel-ink:#e4efe9;--duel-muted:#bfd0ce;--duel-edge:#3b5356;--duel-accent:#edc58f}
body[data-atlas] #events-app #duel-day-plan {margin:0 0 18px;padding:0;border:0;background:transparent;box-shadow:none;scroll-margin-top:84px}
body[data-atlas] #events-app #duel-week {display:block;margin:10px 0 16px;padding:14px 16px 16px;background:#15282e;border:1px solid var(--duel-edge);border-radius:9px;scroll-margin-top:84px}
body[data-atlas] #events-app #duel-plan-title {margin:0;color:var(--duel-ink);font:630 .98rem/1.4 system-ui,sans-serif;letter-spacing:normal;text-transform:none}
body[data-atlas] #events-app #duel-day-basis {margin:3px 0 12px;color:var(--duel-muted);font:400 .84rem/1.46 system-ui,sans-serif}
body[data-atlas] #events-app #duel-week .duel-week-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0;margin:0}
body[data-atlas] #events-app #duel-week .duel-week-grid>:is(a,button) {
 display:grid;grid-template-columns:clamp(46px,5vw,66px) minmax(0,1fr);gap:10px;align-items:start;align-content:start;
 box-sizing:border-box;position:relative;min-width:0;min-height:0;width:100%;height:100%;margin:0;padding:9px;
 background:#172c32;border:1px solid #3b5153;border-radius:6px;text-align:start;text-decoration:none;
 color:var(--duel-ink);font:400 .83rem/1.4 system-ui,sans-serif;cursor:pointer;box-shadow:none;white-space:normal;
}
body[data-atlas] #events-app #duel-week .duel-week-grid>:is(button[aria-pressed=true],a[aria-current=true]) {border-color:#d1a97c;background:#253336}
body[data-atlas] #events-app #duel-week :is(button,a):focus-visible {outline:2px solid #f4dabb;outline-offset:2px}
body[data-atlas] #events-app #duel-week :is(button,a):hover {border-color:#a4b6ae}
body[data-atlas] #events-app #duel-week img {display:block;width:100%;aspect-ratio:1;height:auto;object-fit:cover;border-radius:4px}
body[data-atlas] #events-app #duel-week .duel-cell {display:block;min-width:0;font:inherit;text-transform:none;letter-spacing:normal}
body[data-atlas] #events-app #duel-week .duel-kicker {display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:1px 6px;color:#b5d8d2;font:600 .75rem/1.4 system-ui,sans-serif}
body[data-atlas] #events-app #duel-week .duel-win {color:var(--duel-accent);font-weight:520}
body[data-atlas] #events-app #duel-week strong {display:block;margin:2px 0;color:var(--duel-ink);font:650 .89rem/1.3 system-ui,sans-serif;overflow-wrap:break-word;hyphens:auto}
body[data-atlas] #events-app #duel-week .duel-cue {display:block;color:var(--duel-muted);font:400 .82rem/1.42 system-ui,sans-serif}
body[data-atlas] #events-app #duel-week .duel-selected-mark {display:none}
body[data-atlas] #events-app #duel-day-content {scroll-margin-top:84px;min-width:0}
body[data-atlas] #events-app #duel-day-content:focus-visible {outline:2px solid #e5be90;outline-offset:2px}
body[data-atlas] #events-app .duel-week-return {display:inline-flex;min-height:32px;align-items:center;color:#b9dad4;font:550 .8rem/1.35 system-ui,sans-serif;text-underline-offset:.18em}
body[data-atlas] #events-app .duel-plan-goal {font:400 .88rem/1.5 system-ui,sans-serif;margin:4px 0 12px}
body[data-atlas] [data-server-guide] .duel-recorded-table {width:100%;border-collapse:collapse;table-layout:fixed;font-size:.85rem}
body[data-atlas] [data-server-guide] .duel-recorded-table :is(th,td) {text-align:start;padding:7px;border-bottom:1px solid var(--duel-edge);overflow-wrap:anywhere}
body[data-atlas] [data-server-guide] .duel-recorded-table tr>:last-child {text-align:end;width:25%}
@media (max-width:900px) and (min-width:651px){body[data-atlas] #events-app #duel-week .duel-week-grid {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
 body[data-atlas] #events-app #duel-week {padding:12px;margin:8px 0 14px}
 body[data-atlas] #events-app #duel-week .duel-week-grid {grid-template-columns:minmax(0,1fr);gap:0}
 body[data-atlas] #events-app #duel-week .duel-week-grid>:is(a,button) {grid-template-columns:48px minmax(0,1fr);padding:9px 4px;gap:10px;border-radius:0;background:transparent;border-width:1px 0 0;align-items:center}
 body[data-atlas] #events-app #duel-week .duel-week-grid>:is(button[aria-pressed=true],a[aria-current=true]) {background:#273739;box-shadow:inset 2px 0 #d1a97c}
 body[data-atlas] #events-app #duel-week .duel-week-grid>:is(a,button) img {margin-inline-start:2px}
 body[data-atlas] #events-app #duel-week :is(.duel-cell,.duel-kicker) {min-width:0}
 body[data-atlas] #events-app #duel-day-content .duel-score-heading {flex-wrap:wrap;gap:4px 14px}
}

body[data-atlas] #events-app #duel-week .duel-week-grid strong::after {
 content:"";display:inline-block;width:.32em;height:.32em;margin-inline-start:.5em;vertical-align:.16em;
 border:solid #c5b393;border-width:1.5px 1.5px 0 0;transform:rotate(45deg)
}
body[data-atlas] #events-app #duel-week .duel-week-grid>:is(button[aria-pressed=true],a[aria-current=true]) strong::after {
 width:.36em;height:.65em;vertical-align:.05em;border-width:0 2px 2px 0;border-color:#f8d29d;
}
body[data-atlas] main[data-battle-guide="alliance-duel"] #events-app .reader-nav {
 display:flex;flex-wrap:wrap;align-items:center;gap:0 16px;padding:0 0 2px;margin:4px 0 6px;
 border:0;border-bottom:1px solid #3c5356;border-radius:0;background:none;
}
body[data-atlas] main[data-battle-guide="alliance-duel"] #events-app .reader-nav a {
 display:inline-flex;align-items:center;min-height:38px;min-width:0;padding:0;margin:0;background:transparent;
 border:0;border-radius:0;color:#c4dcd5;box-shadow:none;font:570 .82rem/1.35 system-ui,sans-serif;text-decoration:underline;text-underline-offset:.2em;
}
body[data-atlas] main[data-battle-guide="alliance-duel"] #events-app .reader-nav a:focus-visible {outline:2px solid #d7b98a;outline-offset:1px}
body[data-atlas] #events-app #duel-day-content .duel-main-tasks table {width:100%;max-width:100%;min-width:0;table-layout:fixed}
body[data-atlas] #events-app #duel-day-content .duel-main-tasks tr>:last-child {box-sizing:border-box;width:5.45rem;white-space:nowrap;word-break:normal;overflow-wrap:normal}
body[data-atlas] #events-app #duel-day-content .duel-score-heading {display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:6px 14px}
@media(max-width:650px){
 body[data-atlas] #events-app #duel-day-content .duel-score-heading {display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-start;gap:6px 16px}
 body[data-atlas] #events-app #duel-day-content .duel-score-heading>div {flex:0 0 100%}
}


/* Alliance Transport route */
body[data-atlas] main[data-battle-guide="alliance-transport"] {--el-paper:#1d2931;--el-edge:#48575c;--el-accent:#e9c799;--road:#a6855d}
body[data-atlas] #events-app .el-figure.transport-route {padding:15px 16px 18px}
body[data-atlas] #events-app .transport-route ol {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:0;margin:0;list-style:none}
body[data-atlas] #events-app .transport-route li {position:relative;min-width:0;margin:0;padding:0;border:0;background:none}
body[data-atlas] #events-app .transport-route .transport-step-head {display:flex;position:relative;align-items:center;gap:6px;min-height:24px;margin:0 0 9px}
body[data-atlas] #events-app .transport-route li:not(:last-child) .transport-step-head::before {content:"";position:absolute;top:50%;left:12px;right:-30px;border-top:1px solid var(--road)}
body[data-atlas] #events-app .transport-route .transport-number {
 display:grid;place-items:center;position:relative;box-sizing:border-box;width:24px;height:24px;margin:0;border:1px solid #d8b681;border-radius:50%;
 background:#354048;color:#ffdb9e;font:650 .79rem/1 system-ui,sans-serif;font-variant-numeric:tabular-nums;
}
body[data-atlas] #events-app .transport-route small {display:block;position:relative;width:fit-content;padding:0 6px 0 0;margin:0;
 color:#dfc6a4;background:var(--el-paper);font:550 .76rem/1.35 system-ui,sans-serif}
body[data-atlas] #events-app .transport-route .transport-step-body {display:grid;grid-template-columns:clamp(48px,5.8vw,72px) minmax(0,1fr);gap:10px;align-items:start}
body[data-atlas] #events-app .transport-route img {display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:5px}
body[data-atlas] #events-app .transport-route .transport-copy {min-width:0}
body[data-atlas] #events-app .transport-route .transport-copy b {display:block;color:#f5eee2;font:640 .9rem/1.34 system-ui,sans-serif;overflow-wrap:break-word;hyphens:auto}
body[data-atlas] #events-app .transport-route .transport-copy span {display:block;margin:3px 0 0;color:#d1d9d7;font:400 .84rem/1.45 system-ui,sans-serif}
body[data-atlas] main[data-battle-guide="alliance-transport"] :is(#rewards,#player-tips,#guide-start,#scoring,#prepare,#share,#guide-reference){scroll-margin-top:84px}
body[data-atlas] main[data-battle-guide="alliance-transport"] :is(#rewards,#player-tips,#guide-start,#scoring,#prepare,#share,#guide-reference):focus-visible{outline:2px solid var(--el-accent);outline-offset:2px}
@media(max-width:750px){
 body[data-atlas] #events-app .el-figure.transport-route {padding:13px 12px 14px}
 body[data-atlas] #events-app .transport-route ol {grid-template-columns:minmax(0,1fr);gap:0}
 body[data-atlas] #events-app .transport-route li {display:grid;grid-template-columns:24px clamp(44px,14vw,58px) minmax(0,1fr);grid-template-rows:auto 1fr;gap:2px 9px;padding:0 0 14px}
 body[data-atlas] #events-app .transport-route li:last-child {padding:0}
 body[data-atlas] #events-app .transport-route :is(.transport-step-head,.transport-step-body) {display:contents}
 body[data-atlas] #events-app .transport-route li:not(:last-child)::before {content:"";position:absolute;left:11.5px;top:22px;bottom:0;border-left:1px solid var(--road)}
 body[data-atlas] #events-app .transport-route li:not(:last-child) .transport-step-head::before {content:none}
 body[data-atlas] #events-app .transport-route .transport-number {grid-column:1;grid-row:1/3}
 body[data-atlas] #events-app .transport-route img {grid-column:2;grid-row:1/3}
 body[data-atlas] #events-app .transport-route small {grid-column:3;grid-row:1}
 body[data-atlas] #events-app .transport-route .transport-copy {grid-column:3;grid-row:2}
 body[data-atlas] #events-app .transport-route .transport-copy span {margin-top:2px}
}


/* Two independent Gem Gift offers */
body[data-atlas] main[data-battle-guide="gem-gift"] {--el-paper:#212831;--el-edge:#505561;--el-accent:#e9d1ba}
body[data-atlas] #events-app .el-figure.gem-chart {padding:15px 16px 14px}
body[data-atlas] #events-app .gem-chart .gem-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body[data-atlas] #events-app .gem-chart .gem-offer {
 display:grid;grid-template-columns:clamp(54px,7vw,76px) minmax(0,1fr);grid-template-rows:auto 1fr;align-items:start;gap:6px 12px;
 min-width:0;margin:0;padding:12px;background:#19272d;border:1px solid #45535b;border-top:3px solid var(--gem-color);border-radius:6px;box-shadow:none;
}
body[data-atlas] #events-app .gem-chart [data-gem-variant="spend"] {--gem-color:#97c7bf}
body[data-atlas] #events-app .gem-chart [data-gem-variant="buy"] {--gem-color:#e4a7b5}
body[data-atlas] #events-app .gem-chart .gem-offer[aria-current="true"] {border-color:var(--gem-color);background:#2a333b}
body[data-atlas] #events-app .gem-chart .gem-offer[aria-current="true"] h3::after {content:"";display:inline-block;width:.36em;height:.65em;vertical-align:.06em;margin-inline-start:.48em;border:solid var(--gem-color);border-width:0 2px 2px 0;transform:rotate(45deg)}
body[data-atlas] #events-app .gem-chart .gem-offer img {grid-row:1/3;display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:4px}
body[data-atlas] #events-app .gem-chart .gem-offer h3 {margin:0;padding:0;color:#f3eee7;font:650 .93rem/1.35 system-ui,sans-serif;text-transform:none;letter-spacing:normal;overflow-wrap:break-word}
body[data-atlas] #events-app .gem-chart .gem-offer dl {grid-column:2;display:grid;gap:8px;margin:0}
body[data-atlas] #events-app .gem-chart .gem-offer dt {margin:0;color:var(--gem-color);font:600 .76rem/1.35 system-ui,sans-serif}
body[data-atlas] #events-app .gem-chart .gem-offer dd {margin:1px 0 0;color:#d6dddc;font:400 .84rem/1.43 system-ui,sans-serif}
body[data-atlas] #events-app .gem-chart .gem-selector {display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px;margin:12px 0 0;padding:10px 0 0;border:0;border-top:1px solid var(--el-edge);border-radius:0;background:transparent}
body[data-atlas] #events-app .gem-chart .gem-selector :is(label,.gem-switch-label) {min-width:0;margin:0;color:#dce4e3;font:570 .84rem/1.4 system-ui,sans-serif}
body[data-atlas] #events-app .gem-chart .gem-selector select {
 display:block;box-sizing:border-box;width:auto;min-width:0;max-width:100%;min-height:38px;margin:0;padding:7px 10px;color:#f0ece5;
 border:1px solid #58616c;border-radius:5px;background-color:#18262e;font:500 .84rem/1.35 system-ui,sans-serif;color-scheme:dark;
}
body[data-atlas] #events-app .gem-chart .gem-selector select {padding-inline-end:28px}
body[data-atlas] #events-app .gem-chart #gem-choice-hint {flex-basis:100%;margin:3px 0 0;color:#cbd6d4;font:400 .84rem/1.45 system-ui,sans-serif}
body[data-atlas] #events-app .gem-chart #gem-choice-hint[hidden]{display:none}
body[data-atlas] main[data-battle-guide="gem-gift"] :is(#rewards,#player-tips,#guide-start,#scoring,#prepare,#share,#guide-reference) {scroll-margin-top:84px}
body[data-atlas] main[data-battle-guide="gem-gift"] :is(#rewards,#player-tips,#guide-start,#scoring,#prepare,#share,#guide-reference):focus-visible {outline:2px solid var(--el-accent);outline-offset:2px}
@media(max-width:700px){
 body[data-atlas] #events-app .el-figure.gem-chart {padding:13px 12px}
 body[data-atlas] #events-app .gem-chart .gem-pair {grid-template-columns:minmax(0,1fr);gap:8px}
 body[data-atlas] #events-app .gem-chart .gem-offer {grid-template-columns:48px minmax(0,1fr);grid-template-rows:auto auto;gap:6px 10px;padding:9px 10px;border-top-width:1px;border-inline-start:3px solid var(--gem-color)}
 body[data-atlas] #events-app .gem-chart .gem-offer img {grid-row:1/3}
 body[data-atlas] #events-app .gem-chart .gem-offer dl {gap:5px}
 body[data-atlas] #events-app .gem-chart .gem-selector {gap:5px 10px}
}


body[data-atlas] #events-app .gem-chart .gem-selector nav {display:flex;flex-wrap:wrap;gap:3px 12px}
body[data-atlas] #events-app .gem-chart .gem-selector a {display:inline-flex;min-height:36px;align-items:center;color:#d9d6cd;font:500 .83rem/1.35 system-ui,sans-serif;text-underline-offset:.2em}
body[data-atlas] #events-app .gem-chart .gem-selector a[aria-current="page"] {color:#f3cfbd;font-weight:650}
@media(max-width:480px){
 body[data-atlas] #events-app .gem-chart .gem-selector select {flex:1 0 100%;width:100%;min-height:42px}
}

/* Lucky Fortune's prize comparison and free-draw schedule */
body[data-atlas] main[data-battle-guide="lucky-fortune"] {--el-paper:#232932;--el-edge:#525961;--el-accent:#ead2aa}
body[data-atlas] #events-app .el-figure.fortune-prizes {padding:15px 17px 9px}
body[data-atlas] #events-app .fortune-prizes ul {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:0;padding:0;list-style:none}
body[data-atlas] #events-app .fortune-prize {display:grid;grid-template-columns:clamp(56px,7vw,84px) minmax(0,1fr);align-items:center;gap:12px;min-width:0;margin:0;padding:0;border:0;background:none}
body[data-atlas] #events-app .fortune-prize+.fortune-prize {border-inline-start:1px solid var(--el-edge);padding-inline-start:18px}
body[data-atlas] #events-app .fortune-prize img {display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:5px}
body[data-atlas] #events-app .fortune-prize h3 {margin:0;color:#f2d29b;font:640 .92rem/1.35 system-ui,sans-serif;overflow-wrap:break-word;hyphens:auto}
body[data-atlas] #events-app .fortune-prize+.fortune-prize h3 {color:#eab9ad}
body[data-atlas] #events-app .fortune-prize p {margin:4px 0 0;color:#d8dddb;font:400 .85rem/1.48 system-ui,sans-serif}
body[data-atlas] #events-app a.fortune-details {display:inline-flex;align-items:center;min-height:36px;gap:6px;margin:7px 0 -3px;color:var(--el-accent);font:550 .81rem/1.4 system-ui,sans-serif;text-decoration:underline;text-underline-offset:.2em}
body[data-atlas] #events-app a.fortune-details::after {content:"";display:block;width:.33em;height:.33em;border:solid currentColor;border-width:1px 1px 0 0;transform:rotate(45deg)}
body[data-atlas] #events-app .el-figure.fortune-timing {padding:15px 16px;margin-bottom:16px}
body[data-atlas] #events-app .fortune-timing ol {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;padding:0;margin:0;list-style:none}
body[data-atlas] #events-app .fortune-timing li {display:flex;position:relative;align-items:center;flex-direction:column;min-width:0;padding:0;margin:0;background:none;border:0}
body[data-atlas] #events-app .fortune-timing li:not(:last-child)::before {content:"";position:absolute;inset-inline-start:50%;width:100%;top:12px;height:1px;background:#b59869}
body[data-atlas] #events-app .fortune-timing .fortune-mark {display:grid;place-items:center;position:relative;width:25px;height:25px;box-sizing:border-box;margin:0;border:1px solid #d0ab72;border-radius:50%;background:#324046;color:#ffdaad;font:620 .78rem/1 system-ui,sans-serif}
body[data-atlas] #events-app .fortune-timing time {white-space:nowrap;margin-top:5px;color:#e4e4de;font:550 .81rem/1.4 system-ui,sans-serif;font-variant-numeric:tabular-nums;text-align:center}
body[data-atlas] #events-app .fortune-timing p {margin:11px 0 0;padding-top:8px;border-top:1px solid var(--el-edge);color:#d1d8d7;font:400 .84rem/1.48 system-ui,sans-serif}
body[data-atlas] main[data-battle-guide="lucky-fortune"] :is(#rewards,#player-tips,#guide-start,#scoring,#prepare,#share,#guide-reference){scroll-margin-top:84px}
body[data-atlas] main[data-battle-guide="lucky-fortune"] :is(#rewards,#player-tips,#guide-start,#scoring,#prepare,#share,#guide-reference,.fortune-details):focus-visible{outline:2px solid var(--el-accent);outline-offset:2px}
@media(max-width:650px){
 body[data-atlas] #events-app .el-figure.fortune-prizes {padding:13px 12px 8px}
 body[data-atlas] #events-app .fortune-prizes ul {grid-template-columns:minmax(0,1fr);gap:10px}
 body[data-atlas] #events-app .fortune-prize {grid-template-columns:clamp(46px,15vw,58px) minmax(0,1fr);gap:10px;align-items:start}
 body[data-atlas] #events-app .fortune-prize+.fortune-prize {border:0;border-top:1px solid var(--el-edge);padding:10px 0 0}
 body[data-atlas] #events-app .fortune-prize p {margin-top:2px}
 body[data-atlas] #events-app .el-figure.fortune-timing {padding:13px 11px}
}


body[data-atlas] #events-app #fortune-elapsed-unit {display:block;margin:6px 0 0;color:#bdc9ca;text-align:center;font:450 .78rem/1.4 system-ui,sans-serif}

/* The miniatures show where to read a line, independent of the event's symbols. */
body[data-atlas] #events-app .arms-patterns {padding:16px 18px}
body[data-atlas] #events-app .arms-patterns figcaption {margin:0 0 3px;font-size:1rem}
body[data-atlas] #events-app .arms-patterns > p {margin:0;color:#cdd7d6;font:400 .85rem/1.48 system-ui,sans-serif}
body[data-atlas] #events-app .arms-patterns ul {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:14px 0;padding:0}
body[data-atlas] #events-app .arms-patterns li {display:flex;flex-wrap:wrap;align-content:start;align-items:center;gap:8px 12px;min-width:0;margin:0;padding:0}
body[data-atlas] #events-app .arms-patterns li > div:last-child {min-width:0;flex:1 1 90px}
body[data-atlas] #events-app .arms-grid {
 --tile:#ddc491;--line:#241e18;
 position:relative;isolation:isolate;display:grid;grid-template:repeat(3,1fr)/repeat(3,1fr);box-sizing:border-box;
 flex:none;width:60px;height:60px;gap:3px;padding:4px;border:1px solid #4b6265;border-radius:7px;background:#14272d
}
body[data-atlas] #events-app .arms-row {--tile:#e0a88a}
body[data-atlas] #events-app .arms-grid i {display:block;box-sizing:border-box;border:1px solid #527077;border-radius:2px;background:#253e45}
body[data-atlas] #events-app .arms-grid .lit {background:var(--tile);border-color:var(--tile)}
body[data-atlas] #events-app .arms-grid::after {content:"";position:absolute;inset:50% auto auto 50%;width:60%;height:2px;border-radius:2px;background:var(--line);transform:translate(-50%,-50%)}
body[data-atlas] #events-app .arms-column::after {transform:translate(-50%,-50%) rotate(90deg)}
body[data-atlas] #events-app .arms-diagonal::after {width:84%;transform:translate(-50%,-50%) rotate(45deg)}
body[data-atlas] #events-app .arms-patterns h3 {margin:0;color:#f0dfbe;font:620 .9rem/1.35 system-ui,sans-serif;overflow-wrap:break-word;hyphens:auto}
body[data-atlas] #events-app .arms-patterns :is(li,.arms-payout) p {margin:3px 0 0;color:#d6dedc;font:400 .84rem/1.45 system-ui,sans-serif}
body[data-atlas] #events-app .arms-payout {display:grid;grid-template-columns:27px minmax(0,1fr);align-items:start;gap:9px;padding:11px 12px;background:#203632;border-left:2px solid #96beac;border-radius:3px}
body[data-atlas] #events-app .arms-check {display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:1px solid #7d9f90;color:#c6e4ce;font:650 .9rem/1 system-ui,sans-serif}
body[data-atlas] #events-app .arms-payout h3 {color:#d1e7d7}
body[data-atlas] #events-app .arms-patterns .arms-caption {margin:9px 0 0;font-size:.8rem;color:#bfcdce}
body[data-atlas] main[data-battle-guide="arms-operation"] :is(#rewards,#player-tips,#guide-start,#scoring,#prepare,#share,#guide-reference){scroll-margin-top:84px}
body[data-atlas] main[data-battle-guide="arms-operation"] :is(#rewards,#player-tips,#guide-start,#scoring,#prepare,#share,#guide-reference):focus-visible {outline:2px solid var(--el-accent);outline-offset:2px}
@media(max-width:650px){
 body[data-atlas] #events-app .arms-patterns {padding:14px}
 body[data-atlas] #events-app .arms-patterns ul {grid-template-columns:minmax(0,1fr);gap:8px;margin:12px 0}
 body[data-atlas] #events-app .arms-patterns li {display:grid;grid-template-columns:46px minmax(0,1fr);align-items:center;gap:10px}
 body[data-atlas] #events-app .arms-grid {width:46px;height:46px;gap:2px;padding:3px;border-radius:5px}
 body[data-atlas] #events-app .arms-patterns li p {margin-top:1px}
 body[data-atlas] #events-app .arms-patterns .arms-payout {padding:9px;gap:6px}
}


body[data-atlas] #events-app .el-figure.drill-rewards {padding:16px 18px 17px}
body[data-atlas] #events-app .drill-rewards figcaption {font-size:1rem;line-height:1.38;margin:0 0 14px}
body[data-atlas] #events-app .drill-rewards ol {
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:21px;list-style:none;margin:0;padding:0
}
body[data-atlas] #events-app .drill-rewards li {position:relative;display:block;min-width:0;margin:0;padding:0;background:none;border:0}
body[data-atlas] #events-app .drill-art {width:62px;position:relative}
body[data-atlas] #events-app .drill-art img {display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:8px}
body[data-atlas] #events-app .drill-rewards li:not(:last-child)::before {
 content:"";position:absolute;inset-inline-start:72px;inset-inline-end:-10px;top:31px;height:1px;background:#567373
}
body[data-atlas] #events-app .drill-rewards li:not(:last-child)::after {
 content:"";position:absolute;inset-inline-end:-10px;top:28px;width:6px;height:6px;
 border:solid #87a3a3;border-width:1px 1px 0 0;transform:rotate(45deg)
}
body[data-atlas] #events-app .drill-rewards h3 {margin:8px 0 0;color:#e4eae4;font:640 .92rem/1.35 system-ui,sans-serif;overflow-wrap:break-word;hyphens:auto}
body[data-atlas] #events-app .drill-rewards p {margin:3px 0 0;color:#d2dddd;font:400 .85rem/1.45 system-ui,sans-serif}
body[data-atlas] #events-app .drill-example {margin:15px 0 0;padding:12px 14px 13px;border:1px solid #395754;border-radius:7px;background:#18312f}
body[data-atlas] #events-app .drill-example h3 {margin:0 0 9px;color:#cfebe0;font-size:.89rem}
body[data-atlas] #events-app .drill-example dl {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:0}
body[data-atlas] #events-app .drill-example dl div {display:flex;flex-wrap:wrap-reverse;align-items:baseline;justify-content:flex-start;gap:0 6px;min-width:0}
body[data-atlas] #events-app .drill-example dl div+div {justify-content:flex-end;text-align:end}
body[data-atlas] #events-app .drill-example dt {margin:0;color:#cbdcd7;font:500 .8rem/1.4 system-ui,sans-serif}
body[data-atlas] #events-app .drill-example dd {margin:0;color:#f4f3df;font:680 1.03rem/1.35 system-ui,sans-serif;font-variant-numeric:tabular-nums}
body[data-atlas] #events-app .drill-meter {height:7px;overflow:hidden;margin:5px 0 7px;box-sizing:border-box;border:1px solid #64948a;border-radius:8px;background:repeating-linear-gradient(125deg,transparent 0 5px,#395950 5px 7px)}
body[data-atlas] #events-app .drill-meter i {display:block;width:66.6667%;height:100%;background:#95cfb8}
@media(max-width:650px) {
 body[data-atlas] #events-app .el-figure.drill-rewards {padding:14px 13px}
 body[data-atlas] #events-app .drill-rewards figcaption {margin-bottom:12px}
 body[data-atlas] #events-app .drill-rewards ol {grid-template-columns:minmax(0,1fr);gap:13px}
 body[data-atlas] #events-app .drill-rewards li {display:grid;grid-template-columns:50px minmax(0,1fr);align-items:center;gap:11px}
 body[data-atlas] #events-app .drill-art {width:50px;align-self:start}
 body[data-atlas] #events-app .drill-rewards li:not(:last-child)::before {inset:54px auto -8px 25px;width:1px;height:auto}
 body[data-atlas] #events-app .drill-rewards li:not(:last-child)::after {inset:auto auto -8px 23px;width:4px;height:4px;transform:rotate(135deg)}
 body[data-atlas] #events-app .drill-rewards li h3 {margin:0}
 body[data-atlas] #events-app .drill-example {margin-top:13px;padding:10px 11px}
 body[data-atlas] #events-app .drill-example dl div {display:block}
 body[data-atlas] #events-app .drill-example dd {margin-top:2px}
}
body[data-atlas] main[data-battle-guide="power-drill"] :is(#rewards,#player-tips,#guide-start,#scoring,#prepare,#share,#guide-reference){scroll-margin-top:84px}
body[data-atlas] main[data-battle-guide="power-drill"] :is(#rewards,#player-tips,#guide-start,#scoring,#prepare,#share,#guide-reference):focus-visible {outline:2px solid var(--el-accent);outline-offset:2px}


body[data-atlas] #events-app .el-figure.squad-route {padding:16px 18px 18px}
body[data-atlas] #events-app .squad-route figcaption {margin:0 0 13px;font-size:1rem}
body[data-atlas] #events-app .squad-route ol {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;list-style:none;margin:0;padding:0}
body[data-atlas] #events-app .squad-route li {display:block;min-width:0;padding:0;margin:0}
body[data-atlas] #events-app .squad-route img {display:block;width:100%;height:clamp(68px,7vw,98px);object-fit:cover;object-position:50% 46%;border-radius:5px}
body[data-atlas] #events-app .squad-route li:nth-child(2) img {object-position:50% 52%}
body[data-atlas] #events-app .squad-route li:nth-child(3) img {object-position:50% 61%}
body[data-atlas] #events-app .squad-route h3 {margin:8px 0 3px;color:#f0deba;font:620 .93rem/1.35 system-ui,sans-serif;overflow-wrap:break-word;hyphens:auto}
body[data-atlas] #events-app .squad-route p {margin:0;color:#d8dedf;font:400 .85rem/1.48 system-ui,sans-serif}
body[data-atlas] #events-app .squad-score {padding:15px 17px}
body[data-atlas] #events-app .squad-score figcaption {margin:0 0 7px;font-size:.97rem}
body[data-atlas] #events-app .squad-score :is(p,td,th,dd,dt) {font:400 .85rem/1.48 system-ui,sans-serif}
body[data-atlas] #events-app .squad-score p {margin:0;color:#d3dddd}
body[data-atlas] #events-app .squad-score table {margin:12px 0 10px;width:100%;border-collapse:collapse;border:0;table-layout:fixed;color:#dfe8e7;background:transparent}
body[data-atlas] #events-app .squad-score :is(th,td) {padding:7px 5px;border:0;border-bottom:1px solid #374a55;text-align:end;overflow-wrap:break-word;hyphens:auto}
body[data-atlas] #events-app .squad-score thead th {vertical-align:bottom;color:#d3e2ed;font-size:.79rem;font-weight:600}
body[data-atlas] #events-app .squad-score tr>:first-child {width:44%;padding-inline-start:0;text-align:start}
body[data-atlas] #events-app .squad-score tr>:last-child {padding-inline-end:0}
body[data-atlas] #events-app .squad-score tbody td {font-weight:600;font-variant-numeric:tabular-nums;color:#f1d5a1}
body[data-atlas] #events-app .squad-score h3 {margin:0 0 3px;font:620 .88rem/1.4 system-ui,sans-serif;color:#e3e7e8}
body[data-atlas] #events-app .squad-score .squad-example {padding:8px 0 0}
body[data-atlas] main[data-battle-guide="legendary-squad"] :is(#rewards,#player-tips,#guide-start,#scoring,#prepare,#share,#guide-reference,#point-table-0){scroll-margin-top:84px}
body[data-atlas] main[data-battle-guide="legendary-squad"] :is(#rewards,#player-tips,#guide-start,#scoring,#prepare,#share,#guide-reference):focus-visible {outline:2px solid var(--el-accent);outline-offset:2px}
@media(max-width:650px){
 body[data-atlas] #events-app .el-figure.squad-route {padding:13px}
 body[data-atlas] #events-app .squad-route ol {grid-template-columns:minmax(0,1fr);gap:11px}
 body[data-atlas] #events-app .squad-route li {display:grid;grid-template-columns:clamp(53px,15vw,68px) minmax(0,1fr);align-items:center;gap:11px}
 body[data-atlas] #events-app .squad-route li+li {border-top:1px solid #364a50;padding-top:11px}
 body[data-atlas] #events-app .squad-route img {height:auto;aspect-ratio:1;align-self:start}
 body[data-atlas] #events-app .squad-route h3 {margin:0 0 2px}
 body[data-atlas] #events-app .el-figure.squad-score {padding:13px 12px}
 body[data-atlas] #events-app .squad-score table tr>:first-child {width:42%}
}

body[data-atlas] #events-app .squad-score .squad-small-label {display:none}
body[data-atlas] #events-app .squad-score td b {font:inherit}
@media(max-width:440px){
 html:lang(de) body[data-atlas] #events-app .squad-score table {display:block}
 html:lang(de) body[data-atlas] #events-app .squad-score thead {position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%)}
 html:lang(de) body[data-atlas] #events-app .squad-score tbody {display:block}
 html:lang(de) body[data-atlas] #events-app .squad-score tbody tr {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px 12px;padding:8px 0;border-bottom:1px solid #374a55}
 html:lang(de) body[data-atlas] #events-app .squad-score tbody tr>* {width:auto;padding:0;border:0;text-align:start;overflow-wrap:normal;hyphens:manual}
 html:lang(de) body[data-atlas] #events-app .squad-score tbody th {grid-column:1/-1;color:#e4e9e8;font-weight:610}
 html:lang(de) body[data-atlas] #events-app .squad-score .squad-small-label {display:block;margin:0;color:#c9d6db;font:450 .79rem/1.4 system-ui,sans-serif}
}

body[data-atlas] #events-app :is(.el-figure.baking-flow,.el-figure.baking-reference) {padding:16px 18px}
body[data-atlas] #events-app :is(.baking-flow,.baking-reference) figcaption {font-size:1rem;line-height:1.38;margin:0 0 12px}
body[data-atlas] #events-app :is(.baking-flow,.baking-reference) h3 {
 margin:0;color:#f1dfc0;font:620 .91rem/1.38 system-ui,sans-serif;overflow-wrap:break-word;hyphens:auto
}
body[data-atlas] #events-app :is(.baking-flow,.baking-reference) p {margin:3px 0 0;color:#d2dddb;font:400 .845rem/1.48 system-ui,sans-serif}
body[data-atlas] #events-app .bake-convert {padding:11px 13px;background:#243838;border:1px solid #415655;border-radius:6px}
body[data-atlas] #events-app .bake-convert h3 {display:flex;flex-wrap:wrap;align-items:baseline;gap:0 8px;margin:0 0 6px;color:#f2dec3}
body[data-atlas] #events-app .bake-convert h3 span {display:inline;margin:0;color:inherit;font:inherit}
body[data-atlas] #events-app .bake-convert h3 span:last-child {color:#bde0ce}
body[data-atlas] #events-app .bake-convert h3 .bake-arrow {color:#e6bc8d}
body[data-atlas] #events-app .bake-convert p {margin:0}
body[data-atlas] #events-app .baking-flow ul {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;padding:0;margin:15px 0;list-style:none}
body[data-atlas] #events-app .baking-flow li {display:block;min-width:0;margin:0;padding:0;background:none;border:0}
body[data-atlas] #events-app .baking-flow li img {display:block;width:66px;height:66px;object-fit:cover;border-radius:7px;margin:0 0 7px}
body[data-atlas] #events-app .bake-example {margin:0;padding:11px 13px;border-left:2px solid #c69878;border-radius:3px;background:#2b3433}
body[data-atlas] #events-app .bake-tables {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
body[data-atlas] #events-app .bake-tables section {min-width:0;margin:0;padding:0;background:none;border:0}
body[data-atlas] #events-app .bake-tables section h3 {color:#c8e4d7}
body[data-atlas] #events-app .bake-tables table {width:100%;margin:10px 0 0;border-collapse:collapse;border:0;background:transparent}
body[data-atlas] #events-app .bake-tables :is(th,td) {padding:5px 4px;border:0;border-bottom:1px solid #3a5058;color:#dae3e2;font:450 .835rem/1.4 system-ui,sans-serif;text-align:end;vertical-align:bottom}
body[data-atlas] #events-app .bake-tables thead th {color:#bfd2d7;font-weight:600;font-size:.79rem}
body[data-atlas] #events-app .bake-tables tr>:first-child {padding-inline-start:0;text-align:start}
body[data-atlas] #events-app .bake-tables tr>:last-child {padding-inline-end:0}
body[data-atlas] #events-app .bake-tables tbody td {color:#f2dec1;font-weight:620;font-variant-numeric:tabular-nums}
body[data-atlas] main[data-battle-guide="baking-master"] :is(#rewards,#player-tips,#guide-start,#scoring,#prepare,#share,#guide-reference,[id^="point-table-"]){scroll-margin-top:84px}
body[data-atlas] main[data-battle-guide="baking-master"] :is(#rewards,#player-tips,#guide-start,#scoring,#prepare,#share,#guide-reference):focus-visible {outline:2px solid var(--el-accent);outline-offset:2px}
@media(max-width:650px){
 body[data-atlas] #events-app :is(.el-figure.baking-flow,.el-figure.baking-reference) {padding:13px}
 body[data-atlas] #events-app .bake-convert {padding:10px 11px}
 body[data-atlas] #events-app .baking-flow ul {grid-template-columns:minmax(0,1fr);gap:9px;margin:12px 0}
 body[data-atlas] #events-app .baking-flow li {display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:10px}
 body[data-atlas] #events-app .baking-flow li img {width:48px;height:48px;margin:0;align-self:start}
 body[data-atlas] #events-app .bake-example {padding:9px 11px}
 body[data-atlas] #events-app .bake-tables {grid-template-columns:minmax(0,1fr);gap:17px}
}


body[data-atlas] #events-app .bake-planner {display:inline-flex;align-items:center;min-height:35px;margin:6px 0 -3px;color:var(--el-accent);font:550 .82rem/1.4 system-ui,sans-serif;text-decoration:underline;text-underline-offset:.2em}
body[data-atlas] #vit-app .ar-baking .ar-odds span {background:#233d3d;color:#e1ece7;border:1px solid #516c66}
body[data-atlas] #vit-app .ar-baking .ar-odds span strong {color:#f5e3c5}
body[data-atlas] #vit-app .ar-baking .ar-odds span b {color:#b8ead3}
@media(max-width:520px) {
 body[data-atlas] #vit-app .ar-role-tabs {display:flex;flex-wrap:wrap;max-width:100%}
 body[data-atlas] #vit-app .ar-role-tabs button {flex:1 1 auto;min-width:0;max-width:100%;white-space:normal;overflow-wrap:break-word}
 body[data-atlas] #vit-app .ar-intro h1 {font-size:clamp(1.27rem,5.8vw,1.66rem);line-height:1.15;white-space:normal;overflow-wrap:break-word}
}
@media(max-width:520px){
 body[data-atlas] #vit-app .ar-force-label {display:grid;grid-template-columns:minmax(0,1fr)}
 body[data-atlas] #vit-app .ar-force-label select {width:100%;min-width:0;max-width:100%;box-sizing:border-box}
 body[data-atlas] #vit-app .ar-intro h1.game-title {display:block;overflow-wrap:anywhere}
 body[data-atlas] #vit-app .ar-intro h1.game-title > :first-child {vertical-align:middle}
}
@media(max-width:520px){
 body[data-atlas] #vit-app .ar-force-label {overflow:hidden}
 body[data-atlas] #vit-app .ar-force-label select:focus-visible {outline-offset:-3px}
}
@media(max-width:360px){
 html:lang(de) body[data-atlas] #vit-app .ar-intro h1.game-title {font-size:1.125rem!important}
}

/* Infinite Treasures and Dig Operation */
body[data-atlas] #main .dig-guide {min-width:0;color:var(--atlas-ink)}
body[data-atlas] #main .dig-guide > section {margin:28px 0 0;padding:0;border:0;background:none}
body[data-atlas] #main .dig-guide :is(section, th, td, h2)[id] {scroll-margin-top:74px}
body[data-atlas] #main .dig-guide section > h2 {margin:0 0 13px;color:var(--atlas-ink);line-height:1.3}
body[data-atlas] #main .dig-guide p {margin:0;font-size:.9rem;line-height:1.55}
body[data-atlas] #main .dig-guide .dig-steps {list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:0;margin:0}
body[data-atlas] #main .dig-guide .dig-steps li {position:relative;display:flex;flex-direction:column;gap:8px;min-width:0;padding:0;margin:0;font-size:inherit}
body[data-atlas] #main .dig-guide .dig-steps img {display:block;width:100%;height:auto;aspect-ratio:2.05;object-fit:cover;border-radius:6px}
body[data-atlas] #main .dig-guide .dig-steps h3 {margin:0 0 4px;line-height:1.32;color:var(--atlas-ink)}
body[data-atlas] #main .dig-guide .dig-steps p,body[data-atlas] #main .dig-guide .dig-tips li {color:var(--atlas-muted)}
body[data-atlas] #main .dig-guide .dig-table {display:table;width:100%;min-width:0;table-layout:fixed;margin:0;border-collapse:separate;border-spacing:0;background:#12242c;border:1px solid var(--atlas-line);border-radius:8px;overflow:hidden;font:inherit}
body[data-atlas] #main .dig-guide .dig-table :is(th,td) {width:auto;white-space:normal;border:0;padding:11px 14px;color:var(--atlas-ink);vertical-align:top;line-height:1.48;text-align:start}
body[data-atlas] #main .dig-guide .dig-table thead th {background:#203139;font-size:.9375rem}
body[data-atlas] #main .dig-guide .dig-table tbody th {font-size:.8125rem;font-weight:650;color:#c9d9dc;border-top:1px solid #3c5156;background:#1b2b32;padding-block:7px}
body[data-atlas] #main .dig-guide .dig-table td + td {border-inline-start:1px solid var(--atlas-line)}
body[data-atlas] #main .dig-guide .dig-table td {font-size:.875rem;color:#d5e0e0}
body[data-atlas] #main .dig-guide .dig-table td p {font-size:inherit}
body[data-atlas] #main .dig-guide .dig-frequency {display:block;color:#f7d397;font-size:1rem;font-weight:680;line-height:1.35;margin-bottom:5px}
body[data-atlas] #main .dig-guide .dig-edition {display:none}
body[data-atlas] #main .dig-guide .dig-download {display:inline-flex;align-items:center;min-height:44px;margin:3px 0 0;color:var(--atlas-mint);font-size:.832rem}
body[data-atlas] #main .dig-guide .dig-tips {margin:0;padding-inline-start:1.1rem}
body[data-atlas] #main .dig-guide .dig-tips li {margin:6px 0;font-size:.9rem;line-height:1.55}
body[data-atlas] #main .dig-guide footer {margin:22px 0 2px;padding:13px 0 0;border-top:1px solid var(--atlas-line)}
body[data-atlas] #main .dig-guide footer p {font-size:.8125rem;line-height:1.6;margin:3px 0}
body[data-atlas] #main .dig-guide :focus-visible {outline:2px solid var(--atlas-mint);outline-offset:2px}
@media (max-width:720px) {
 body[data-atlas] #main .dig-guide .dig-steps {grid-template-columns:1fr;gap:0}
 body[data-atlas] #main .dig-guide .dig-steps li {display:grid;grid-template-columns:clamp(54px,15vw,78px) minmax(0,1fr);align-items:start;gap:13px;padding:13px 0;border-top:1px solid var(--atlas-line)}
 body[data-atlas] #main .dig-guide .dig-steps li:last-child {padding-bottom:0}
 body[data-atlas] #main .dig-guide .dig-steps img {aspect-ratio:1;max-width:78px}
}
@media (max-width:550px) {
 body[data-atlas] #main .dig-guide .dig-table,body[data-atlas] #main .dig-guide .dig-table :is(tbody,tr,th,td) {box-sizing:border-box;display:block;width:100%;min-width:0}
 body[data-atlas] #main .dig-guide .dig-table thead {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
 body[data-atlas] #main .dig-guide .dig-table td {padding:11px 13px}
 body[data-atlas] #main .dig-guide .dig-table td + td {border-inline-start:0;border-top:1px solid #293e43}
 body[data-atlas] #main .dig-guide .dig-edition {display:block;margin-bottom:3px;font-size:.8125rem;font-weight:650;color:#a9e4ce}
 body[data-atlas] #main .dig-guide .dig-table td:nth-child(2) .dig-edition {color:#d4c3f0}
 body[data-atlas] #main .dig-guide .dig-frequency {margin-bottom:4px}
 body[data-atlas] #main .dig-guide > section {margin-top:23px}
 body[data-atlas] #main .dig-guide .dig-steps p {font-size:.875rem}
}
@media (max-width:355px) {
 body[data-atlas] #main .dig-guide .dig-steps li {grid-template-columns:48px minmax(0,1fr);gap:10px}
}

/* Cedar Bonfire Party reward guide */
body[data-atlas] #main .bonfire-guide {color:var(--atlas-ink);min-width:0}
body[data-atlas] #main .bonfire-guide > section {padding:0;margin:25px 0 0;border:0;background:none}
body[data-atlas] #main .bonfire-guide :is(section,h2)[id] {scroll-margin-top:74px}
body[data-atlas] #main .bonfire-guide section > h2 {margin:0 0 9px;line-height:1.32}
body[data-atlas] #main .bonfire-guide section p {margin:0;font-size:.9rem;line-height:1.55;color:var(--atlas-muted)}
body[data-atlas] #main .bonfire-guide section p + p {margin-top:8px}
body[data-atlas] #main .bonfire-guide .fire-flow {margin:12px 0 0;padding:0;border:0;background:transparent}
body[data-atlas] #main .bonfire-guide .fire-source {display:grid;grid-template-columns:76px minmax(0,1fr);gap:16px;align-items:center;padding:13px 16px;background:#1a2c31;border:1px solid #3b5558;border-radius:8px}
body[data-atlas] #main .bonfire-guide .fire-flow img {display:block;object-fit:cover;border:0;border-radius:6px;margin:0;width:100%;height:auto;aspect-ratio:1;max-width:76px}
body[data-atlas] #main .bonfire-guide .fire-flow h3 {margin:0 0 4px;color:var(--atlas-ink);font:650 .95rem/1.3 system-ui;overflow-wrap:break-word}
body[data-atlas] #main .bonfire-guide .fire-outcomes {--branch:#65817c;position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;list-style:none;margin:0;padding:24px 0 0}
body[data-atlas] #main .bonfire-guide .fire-outcomes::before,body[data-atlas] #main .bonfire-guide .fire-outcomes::after {content:"";position:absolute;pointer-events:none}
body[data-atlas] #main .bonfire-guide .fire-outcomes::before {top:0;left:50%;height:12px;border-left:1px solid var(--branch)}
body[data-atlas] #main .bonfire-guide .fire-outcomes::after {top:12px;left:calc(25% - 3.5px);right:calc(25% - 3.5px);height:11px;border:1px solid var(--branch);border-bottom:0;border-radius:4px 4px 0 0}
body[data-atlas] #main .bonfire-guide .fire-outcomes li {min-width:0;margin:0;padding:14px;border:1px solid #435052;border-radius:8px;background:#18272f}
body[data-atlas] #main .bonfire-guide .fire-outcomes li:last-child {background:#15272b;border-color:#344f4e}
body[data-atlas] #main .bonfire-guide .fire-outcome-head {display:flex;align-items:center;gap:11px;margin:0 0 9px}
body[data-atlas] #main .bonfire-guide .fire-outcome-head img {width:52px;flex:none}
body[data-atlas] #main .bonfire-guide .fire-outcome-head h3 {margin:0;color:#f3d29d}
body[data-atlas] #main .bonfire-guide .fire-outcomes li:last-child h3 {color:#b5e5cd}
body[data-atlas] #main .bonfire-guide .fire-critical {margin-top:10px;padding-top:8px;border-top:1px solid #405155;font-size:.84rem;line-height:1.5}
body[data-atlas] #main .bonfire-guide .fire-critical strong {display:block;color:#eac894;font-weight:620;margin-bottom:2px}
body[data-atlas] #main .bonfire-guide .fire-id {display:flex;align-items:center;gap:10px}
body[data-atlas] #main .bonfire-guide .fire-id img {width:48px;height:35px;object-fit:contain;flex:none;margin:0}
body[data-atlas] #main .bonfire-guide .fire-refs {display:flex;align-items:center;flex-wrap:wrap;gap:0 17px;margin:1px 0 0}
body[data-atlas] #main .bonfire-guide .fire-refs a {display:inline-flex;align-items:center;min-height:44px;color:var(--atlas-mint);font-size:.84rem;line-height:1.35;text-decoration:underline;text-underline-offset:3px}
body[data-atlas] #main .bonfire-guide footer {margin:20px 0 0;padding:13px 0 0;border-top:1px solid var(--atlas-line);font-size:.8125rem;line-height:1.7}
body[data-atlas] #main .bonfire-guide footer p {margin:0;font:inherit}
@media (max-width:590px) {
 body[data-atlas] #main .bonfire-guide .fire-source {grid-template-columns:58px minmax(0,1fr);gap:12px;padding:12px}
 body[data-atlas] #main .bonfire-guide .fire-outcomes {grid-template-columns:minmax(0,1fr);gap:10px;padding:11px 0 0 16px}
 body[data-atlas] #main .bonfire-guide .fire-outcomes::before {bottom:0;left:5px;top:0;height:auto}
 body[data-atlas] #main .bonfire-guide .fire-outcomes::after {display:none}
 body[data-atlas] #main .bonfire-guide .fire-outcomes li {position:relative;padding:12px}
 body[data-atlas] #main .bonfire-guide .fire-outcomes li::before {content:"";position:absolute;top:33px;left:-12px;width:11px;border-top:1px solid var(--branch)}
 body[data-atlas] #main .bonfire-guide .fire-outcomes li:last-child::after {content:"";position:absolute;top:34px;bottom:-2px;left:-13px;width:4px;background:var(--atlas-bg)}
 body[data-atlas] #main .bonfire-guide .fire-outcome-head img {width:43px}
 body[data-atlas] #main .bonfire-guide .fire-flow p,body[data-atlas] #main .bonfire-guide section p {font-size:.875rem}
 body[data-atlas] #main .bonfire-guide p.fire-critical {font-size:.8125rem}
}

/* Gacha decisions and the one-attempt budget */
body[data-atlas] #main .gacha-guide {min-width:0;color:var(--atlas-ink)}
body[data-atlas] #main .gacha-guide > section {margin:26px 0 0;padding:0;border:0;background:none}
body[data-atlas] #main .gacha-guide [id] {scroll-margin-top:74px}
body[data-atlas] #main .gacha-guide section > h2 {margin:0 0 10px;line-height:1.3}
body[data-atlas] #main .gacha-guide :is(section,details) p {margin:0;color:var(--atlas-muted);font-size:.9rem;line-height:1.55}
body[data-atlas] #main .gacha-guide h3 {margin:0 0 4px;color:var(--atlas-ink);font:650 .95rem/1.35 system-ui}
body[data-atlas] #main .gacha-guide .gc-start {padding:2px 0 10px;max-width:70ch}
body[data-atlas] #main .gacha-guide .gc-choices {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;list-style:none;padding:0;margin:7px 0 0}
body[data-atlas] #main .gacha-guide .gc-choices li {display:flex;flex-direction:column;min-width:0;padding:0;margin:0;background:#14252d;border:1px solid var(--atlas-line);border-radius:8px;overflow:hidden}
body[data-atlas] #main .gacha-guide .gc-choices img {display:block;width:100%;height:auto;aspect-ratio:2.35;object-fit:cover;margin:0;border-radius:0}
body[data-atlas] #main .gacha-guide .gc-choices li > div {padding:10px 12px 12px}
body[data-atlas] #main .gacha-guide .gc-choices li:nth-child(1) h3 {color:#b3e4ce}
body[data-atlas] #main .gacha-guide .gc-choices li:nth-child(2) h3 {color:#b6d7f2}
body[data-atlas] #main .gacha-guide .gc-choices li:nth-child(3) h3 {color:#f0d09d}
body[data-atlas] #main .gacha-guide .hq-data-chart {width:100%;margin:8px 0 9px}
body[data-atlas] #main .gacha-guide #prices .hq-data-chart th:first-child {width:32%}
body[data-atlas] #main .gacha-guide .gc-fields {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:10px 13px;margin:12px 0 8px}
body[data-atlas] #main .gacha-guide .gc-fields label {display:grid;gap:6px;margin:0;font:550 .825rem/1.4 system-ui;color:var(--atlas-ink)}
body[data-atlas] #main .gacha-guide .gc-fields input {box-sizing:border-box;display:block;width:100%;min-width:0;min-height:44px;margin:0;font:400 1rem/1.3 system-ui;background:#10232b;color:var(--atlas-ink);border:1px solid #53686e;border-radius:5px;padding:7px 10px}
body[data-atlas] #main .gacha-guide #guide397-result {display:block;padding:11px 12px;border:1px solid #3a5556;border-radius:5px;background:#172c30;color:#c7e8da;font-size:.875rem;line-height:1.5;margin:0 0 8px}
body[data-atlas] #main .gacha-guide .gc-example {margin:14px 0 2px;padding:3px 0 3px 13px;border-left:2px solid #ccaf79}
body[data-atlas] #main .gacha-guide .gc-rule + .gc-rule {margin-top:12px}
body[data-atlas] #main .gacha-guide > details:not(.hq-contents) {margin:12px 0 0;padding:0 12px;border:1px solid var(--atlas-line);border-radius:6px;background:#13252e}
body[data-atlas] #main .gacha-guide > details:not(.hq-contents) > summary {min-height:44px;box-sizing:border-box;padding:11px 0;font:620 .9rem/1.45 system-ui;cursor:pointer;color:var(--atlas-ink)}
body[data-atlas] #main .gacha-guide > details:not(.hq-contents)[open] {padding-bottom:10px}
body[data-atlas] #main .gacha-guide .event-check {display:flex;gap:8px;align-items:center;min-height:44px;margin:0;font-size:.875rem;line-height:1.45}
body[data-atlas] #main .gacha-guide .event-check input {width:17px;height:17px;flex:none;accent-color:var(--atlas-mint)}
body[data-atlas] #main .gacha-guide .gc-message {display:block;box-sizing:border-box;margin:8px 0 4px;padding:9px 10px;width:100%;min-width:0;color:var(--atlas-ink);background:#0f2028;border:1px solid var(--atlas-line);border-radius:5px;font:400 .9rem/1.5 system-ui;resize:vertical}
body[data-atlas] #main .gacha-guide .gc-actions {display:flex;flex-wrap:wrap;align-items:center;gap:3px 15px}
body[data-atlas] #main .gacha-guide .gc-actions button:not([hidden]) {padding:4px 10px;min-height:40px;border:1px solid #5e7b75;border-radius:5px;background:#203b38;color:#d0eedf;font-size:.84rem;cursor:pointer}
body[data-atlas] #main .gacha-guide .gc-actions a,body[data-atlas] #main .gacha-guide footer nav a {display:inline-flex;align-items:center;min-height:44px;color:var(--atlas-mint);font-size:.85rem}
body[data-atlas] #main .gacha-guide footer {margin:19px 0 0;padding:12px 0 0;border-top:1px solid var(--atlas-line)}
body[data-atlas] #main .gacha-guide footer nav {display:flex;flex-wrap:wrap;gap:0 15px}
body[data-atlas] #main .gacha-guide .gc-state:empty {display:none}
@media(max-width:650px){
 body[data-atlas] #main .gacha-guide .gc-choices {grid-template-columns:1fr;gap:8px}
 body[data-atlas] #main .gacha-guide .gc-choices li {display:grid;grid-template-columns:55px minmax(0,1fr);align-items:start;gap:11px;padding:11px}
 body[data-atlas] #main .gacha-guide .gc-choices img {aspect-ratio:1;border-radius:5px}
 body[data-atlas] #main .gacha-guide .gc-choices li > div {padding:0}
 body[data-atlas] #main .gacha-guide .gc-fields {grid-template-columns:1fr;gap:8px}
 body[data-atlas] #main .gacha-guide .gc-fields label {grid-template-columns:minmax(0,1fr) minmax(5.6rem,35%);align-items:center;gap:10px}
 body[data-atlas] #main .gacha-guide :is(section,details) p {font-size:.875rem}
 body[data-atlas] #main .gacha-guide > section {margin-top:22px}
}

/* Infinite Supply reader */
body[data-atlas] #main .supply-guide {min-width:0;color:var(--atlas-ink)}
body[data-atlas] #main .supply-guide > section {margin:26px 0 0;padding:0;border:0;background:none}
body[data-atlas] #main .supply-guide [id] {scroll-margin-top:74px}
body[data-atlas] #main .supply-guide section > h2 {margin:0 0 10px;line-height:1.3}
body[data-atlas] #main .supply-guide :is(section,details) p {font-size:.9rem;line-height:1.55;color:var(--atlas-muted);margin:0}
body[data-atlas] #main .supply-guide h3 {font:650 .94rem/1.38 system-ui;color:var(--atlas-ink);margin:0 0 3px}
body[data-atlas] #main .supply-flow {--supply-line:#637d7c;display:grid;grid-template-columns:minmax(0,.87fr) minmax(0,1.2fr);align-items:center;column-gap:32px}
body[data-atlas] #main .supply-flow .supply-tile {box-sizing:border-box;display:grid;grid-template-columns:60px minmax(0,1fr);align-items:center;gap:12px;position:relative;border:1px solid #3a5056;border-radius:7px;background:#152932;padding:12px;margin:0}
body[data-atlas] #main .supply-flow img {width:100%;height:auto;aspect-ratio:1;display:block;object-fit:cover;border-radius:4px;margin:0}
body[data-atlas] #main .supply-flow > .supply-tile {border-top:2px solid #caab71}
body[data-atlas] #main .supply-flow .supply-tile h3 {color:#f0dab1}
body[data-atlas] #main .supply-flow .supply-branches {padding:0;margin:0;display:grid;list-style:none;gap:10px;position:relative}
body[data-atlas] #main .supply-flow .supply-branches h3 {color:#c2e5d7}
body[data-atlas] #main .supply-flow > .supply-tile::after {content:"";position:absolute;left:100%;width:17px;top:50%;border-top:1px solid var(--supply-line)}
body[data-atlas] #main .supply-flow .supply-branches li::before {content:"";position:absolute;width:16px;right:100%;box-sizing:border-box;border-left:1px solid var(--supply-line)}
body[data-atlas] #main .supply-flow .supply-branches li:first-child::before {top:50%;bottom:-8px;border-top:1px solid var(--supply-line);border-radius:4px 0 0 0}
body[data-atlas] #main .supply-flow .supply-branches li:last-child::before {top:-8px;bottom:50%;border-bottom:1px solid var(--supply-line);border-radius:0 0 0 4px}
body[data-atlas] #main .supply-guide .supply-modes {margin:10px 0 8px}
body[data-atlas] #main .supply-guide .supply-mode {padding:9px 0;display:grid;grid-template-columns:minmax(95px,24%) 1fr;gap:12px;border-top:1px solid var(--atlas-line)}
body[data-atlas] #main .supply-guide .supply-bonuses {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:10px 0 0}
body[data-atlas] #main .supply-guide .supply-bonuses > div {padding:3px 0 3px 11px;border-left:2px solid #5c9188}
body[data-atlas] #main .supply-guide .supply-fields {border:0;padding:0;margin:12px 0 8px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;align-items:end;min-width:0}
body[data-atlas] #main .supply-guide .supply-field {display:grid;gap:5px;font:550 .85rem/1.45 system-ui;color:var(--atlas-ink);min-width:0;margin:0}
body[data-atlas] #main .supply-guide .supply-field input {box-sizing:border-box;width:100%;min-width:0;min-height:44px;color:var(--atlas-ink);background:#10232b;border:1px solid #586e73;border-radius:5px;font:400 1rem/1.35 system-ui;margin:0;padding:7px 10px}
body[data-atlas] #main .supply-guide #supply-result {display:block;padding:10px 12px;background:#192e31;border:1px solid #41605b;border-radius:6px;color:#c8ebdf;margin:0;font-size:.88rem;line-height:1.45}
body[data-atlas] #main .supply-guide .supply-fields[disabled],body[data-atlas] #main .supply-guide #supply-result[hidden] {display:none}
body[data-atlas] #main .supply-guide noscript p {margin-top:8px}
body[data-atlas] #main .supply-guide .supply-expiry {margin:9px 0 0;padding:0}
body[data-atlas] #main .supply-guide .supply-expiry > div {display:grid;grid-template-columns:minmax(105px,29%) 1fr;gap:10px;padding:10px 0;border-top:1px solid var(--atlas-line)}
body[data-atlas] #main .supply-guide .supply-expiry dt {font:600 .85rem/1.45 system-ui;color:var(--atlas-ink)}
body[data-atlas] #main .supply-guide .supply-expiry dd {font:400 .875rem/1.5 system-ui;color:var(--atlas-muted);margin:0}
html:lang(ko) body[data-atlas] #main .supply-guide {word-break:keep-all;overflow-wrap:break-word}
body[data-atlas] #main .supply-guide > details:not(.hq-contents),body[data-atlas] #main .supply-guide footer details {margin:10px 0 0;padding:0 12px;border:1px solid var(--atlas-line);border-radius:6px;background:#14262e}
body[data-atlas] #main .supply-guide details:not(.hq-contents) > summary {box-sizing:border-box;min-height:44px;padding:11px 0;font:620 .9rem/1.45 system-ui;color:var(--atlas-ink);cursor:pointer}
body[data-atlas] #main .supply-guide details:not(.hq-contents)[open] {padding-bottom:11px}
body[data-atlas] #main .supply-guide #unused-items + details {margin-top:22px}
body[data-atlas] #main .supply-guide details p + h3 {margin-top:13px}
body[data-atlas] #main .supply-guide .supply-check {margin:0;min-height:44px;display:flex;gap:9px;align-items:center;font-size:.875rem;line-height:1.45}
body[data-atlas] #main .supply-guide .supply-check input {width:17px;height:17px;flex:none;accent-color:var(--atlas-mint)}
body[data-atlas] #main .supply-guide .supply-message {box-sizing:border-box;display:block;width:100%;min-width:0;border:1px solid #52666b;border-radius:5px;color:var(--atlas-ink);background:#10232b;font:400 .9rem/1.48 system-ui;padding:8px 10px;margin:8px 0 4px;resize:vertical}
body[data-atlas] #main .supply-guide .supply-actions,body[data-atlas] #main .supply-guide footer nav {display:flex;flex-wrap:wrap;gap:2px 14px;align-items:center}
body[data-atlas] #main .supply-guide .supply-actions button:not([hidden]) {min-height:44px;border:1px solid #58756f;border-radius:5px;color:#d5ede3;background:#203c38;padding:5px 11px;cursor:pointer}
body[data-atlas] #main .supply-guide .supply-actions a,body[data-atlas] #main .supply-guide footer a {min-height:44px;display:inline-flex;align-items:center;color:var(--atlas-mint);font-size:.85rem}
body[data-atlas] #main .supply-guide footer {border-top:1px solid var(--atlas-line);margin:17px 0 0;padding-top:10px}
body[data-atlas] #main .supply-guide .supply-state:empty {display:none}
@media(max-width:650px){
 body[data-atlas] #main .supply-guide > section {margin-top:22px}
 body[data-atlas] #main .supply-guide :is(section,details) p {font-size:.875rem}
 body[data-atlas] #main .supply-flow {grid-template-columns:1fr;gap:9px}
 body[data-atlas] #main .supply-flow .supply-tile {grid-template-columns:49px minmax(0,1fr);align-items:start;gap:10px;padding:10px}
 body[data-atlas] #main .supply-flow .supply-branches {margin-left:17px;gap:8px}
 body[data-atlas] #main .supply-flow > .supply-tile::after {left:5px;top:100%;height:11px;width:0;border-top:0;border-left:1px solid var(--supply-line)}
 body[data-atlas] #main .supply-flow .supply-branches li:is(:first-child,:last-child)::before {top:-11px;bottom:50%;width:12px;border-radius:0;border-top:0;border-bottom:1px solid var(--supply-line)}
 body[data-atlas] #main .supply-flow .supply-branches li:first-child::after {content:"";position:absolute;left:-12px;top:50%;bottom:-11px;border-left:1px solid var(--supply-line)}
 body[data-atlas] #main .supply-guide .supply-bonuses,body[data-atlas] #main .supply-guide .supply-fields {grid-template-columns:1fr}
 body[data-atlas] #main .supply-guide .supply-field {grid-template-columns:minmax(0,1fr) minmax(78px,34%);align-items:center;gap:10px}
 body[data-atlas] #main .supply-guide .supply-expiry > div {grid-template-columns:1fr;gap:3px}
 body[data-atlas] #main .supply-guide .supply-mode {display:block}
}

/* Prose across the catalogue, tools and both event readers shares a measure.
   Root-relative sizes preserve the reader's preferred browser text size. */
body[data-atlas] {--atlas-body-copy:.8125rem;--atlas-copy-leading:1.48}
@media(max-width:700px){
 body[data-atlas] {--atlas-body-copy:.78125rem;--atlas-copy-leading:1.48}
}
body[data-atlas] main :where(p,dd):not(:where(header *,footer *,nav *,button *,[role="status"],.eyebrow,.kicker,.account-small,.hero-small,.cr-source,.cr-guide-note,.fine-print,.small,.help,[class$="-kicker"],[class$="-tag"],[class$="-note"],.total-note,.tree-gate,.tree-legend,.save-more-summary,.plan-empty p,.inset p,.income-details p,.level-range p,.formation-heading .intro,.empty p,small *)),
body[data-atlas] main :is(.hq-cover-copy,.hq-legacy-heading,.atlas-hero-copy,.archive-intro,.atlas-directory-head,.cr-hero-copy) p:not(.eyebrow),
body[data-atlas] main :is(.archive-card,.hq-journal-row,.hero-roster-intro) p,
body[data-atlas] main :is(article,.reader,.import-steps) :where(ul,ol) > li:not(:where(nav *,footer *)),
body[data-atlas] main :is(.archive-intro,.setup-steps,.import-steps) li,
body[data-atlas] #events-app .hq-legacy-heading :is(.lead,.ta-reader-subtitle),
body[data-atlas] #events-app .event-check span,
body[data-atlas] :is(dialog,[role="dialog"]) :where(p:not(.small),.facts-list dd,.item-after-note p),
body[data-atlas] main[data-hq-legacy] .el-figure li span,
body[data-atlas] main :is(.pack-availability-note,.store-summary .sub,.item-description,.account-intro),
body[data-atlas] main .reader :where(td,dd),
body[data-atlas] main .reader :where(#supply-result,#guide397-result,.event-check,.supply-check,.supply-message,.gc-message) {
 font-size:var(--atlas-body-copy)!important;
 line-height:var(--atlas-copy-leading)!important;
}

/* Wrap Hangul on word boundaries; long unbroken item names still fit a phone. */
html:lang(ko) body[data-atlas] :is(main,#nav,dialog,[role="dialog"]) :where(p,h1,h2,h3,li,dt,dd,span,small,label) {
 word-break:keep-all;
 overflow-wrap:anywhere;
}
@media(max-width:380px){
 html:lang(ja) body[data-atlas] #main .gacha-guide .gc-fields label {grid-template-columns:minmax(0,1fr) minmax(4.5rem,27%)}
}

/* The reader keeps schedules, rewards and branching decisions usable without scripting. */
body[data-atlas] #main .harvest-guide {
 --harvest-line:#435155; --harvest-gold:#f3c78b; --harvest-mint:#a5dfc8; --harvest-panel:#1b292d;
 min-width:0;
}
body[data-atlas] #main .harvest-guide .harvest-cover {display:block;width:100%;height:100%;min-height:0;object-fit:cover;object-position:53% 48%}
body[data-atlas] #main .harvest-guide>section {margin:1.55rem 0 0;scroll-margin-top:4.8rem}
body[data-atlas] #main .harvest-guide section>h2 {margin:0 0 .45rem}
body[data-atlas] #main .harvest-guide h3 {font-size:.94rem;line-height:1.35;margin:1.05rem 0 .35rem}
body[data-atlas] #main .harvest-guide p {margin:.35rem 0 .65rem;max-width:78ch}
body[data-atlas] #main .harvest-guide .harvest-year {font-size:.8em;font-weight:500;color:var(--atlas-muted);white-space:nowrap}
body[data-atlas] #main .harvest-guide table {width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;margin:.5rem 0 1rem}
body[data-atlas] #main .harvest-guide table :is(th,td) {padding:.43rem .55rem;text-align:start;border:0;border-bottom:1px solid var(--harvest-line);vertical-align:middle;background:none;overflow-wrap:anywhere}
body[data-atlas] #main .harvest-guide table thead th {font-size:.76rem;line-height:1.3;color:var(--harvest-mint);font-weight:600;background:var(--harvest-panel)}
body[data-atlas] #main .harvest-guide table tbody th {font-size:var(--atlas-body-copy);line-height:1.4;font-weight:550}
body[data-atlas] #main .harvest-guide :is(.harvest-times,.harvest-costs) {max-width:44rem;table-layout:fixed}
body[data-atlas] #main .harvest-guide .harvest-times th:first-child {width:32%}
body[data-atlas] #main .harvest-guide .harvest-times time :is(span,b) {white-space:nowrap}
body[data-atlas] #main .harvest-guide .harvest-times time b {font-weight:550}
body[data-atlas] #main .harvest-guide .harvest-costs th:first-child {width:16%}
body[data-atlas] #main .harvest-guide .harvest-costs :is(th,td):nth-child(n+2) {text-align:end}
body[data-atlas] #main .harvest-guide code {display:inline-block;color:var(--harvest-gold);background:#302a24;border:1px solid #62503d;padding:.16rem .48rem;border-radius:.28rem;font:600 .88rem/1.35 ui-monospace,monospace;user-select:all}
body[data-atlas] #main .harvest-guide .harvest-branches {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;margin:.8rem 0}
body[data-atlas] #main .harvest-guide .harvest-branches>div {background:var(--harvest-panel);border:1px solid var(--harvest-line);border-top:3px solid var(--harvest-mint);border-radius:6px;padding:.6rem .75rem}
body[data-atlas] #main .harvest-guide .harvest-branches>div:nth-child(2) {border-top-color:#b3c6ef}
body[data-atlas] #main .harvest-guide .harvest-branches>div:nth-child(3) {border-top-color:var(--harvest-gold)}
body[data-atlas] #main .harvest-guide .harvest-branches h3 {margin:0 0 .32rem}
body[data-atlas] #main .harvest-guide .harvest-branches p {margin:0}
body[data-atlas] #main .harvest-guide [hidden] {display:none!important}
body[data-atlas] #main .harvest-guide .harvest-estimate {background:var(--harvest-panel);border:1px solid var(--harvest-line);border-radius:.4rem;padding:.7rem .85rem;margin:.75rem 0;max-width:44rem}
body[data-atlas] #main .harvest-guide .harvest-inputs {display:grid;grid-template-columns:1fr 1fr;gap:.5rem .95rem}
body[data-atlas] #main .harvest-guide .harvest-inputs label {display:flex;align-items:center;justify-content:space-between;gap:.5rem;font-size:var(--atlas-body-copy);line-height:1.4}
body[data-atlas] #main .harvest-guide .harvest-inputs select {font:inherit;font-variant-numeric:tabular-nums;min-height:44px;min-width:4.1rem;max-width:100%;padding:.25em .45em;color:var(--atlas-ink);background:#111e23;border:1px solid #698080;border-radius:4px}
body[data-atlas] #main .harvest-guide .harvest-total {display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin:.65rem 0 0;padding-top:.6rem;border-top:1px solid var(--harvest-line);font-weight:600}
body[data-atlas] #main .harvest-guide .harvest-total output {color:var(--harvest-gold);font:700 1rem/1.4 system-ui;font-variant-numeric:tabular-nums}
body[data-atlas] #main .harvest-guide footer {border-top:1px solid var(--harvest-line);margin-top:1.25rem;padding-top:.7rem}
body[data-atlas] #main .harvest-guide footer nav {display:flex;align-items:center;flex-wrap:wrap;gap:.1rem 1.25rem}
body[data-atlas] #main .harvest-guide footer a {display:inline-flex;align-items:center;min-height:40px;color:var(--harvest-mint)}
body[data-atlas] #main .harvest-guide details summary {min-height:44px;box-sizing:border-box;align-content:center;cursor:pointer}
body[data-atlas] #main .harvest-guide details summary:focus-visible {outline:2px solid var(--harvest-mint);outline-offset:2px}
@media(max-width:600px){
 body[data-atlas] #main .harvest-guide .hq-guide-cover {overflow:hidden}
 body[data-atlas] #main .harvest-guide .harvest-cover {width:100%;aspect-ratio:2.85;height:auto;max-height:9.4rem}
 body[data-atlas] #main .harvest-guide .harvest-branches {grid-template-columns:1fr;gap:.42rem}
 body[data-atlas] #main .harvest-guide .harvest-branches>div {border-top:1px solid var(--harvest-line);border-inline-start:3px solid var(--harvest-mint)}
 body[data-atlas] #main .harvest-guide .harvest-branches>div:nth-child(2) {border-inline-start-color:#b3c6ef}
 body[data-atlas] #main .harvest-guide .harvest-branches>div:nth-child(3) {border-inline-start-color:var(--harvest-gold)}
 body[data-atlas] #main .harvest-guide .harvest-inputs {grid-template-columns:1fr}
 body[data-atlas] #main .harvest-guide table :is(td,th) {padding:.43rem .35rem}
}
@media(max-width:420px){body[data-atlas] #main .harvest-guide .harvest-times time b {display:block}}
body[data-atlas] #main .harvest-guide .harvest-tip {border-inline-start:2px solid var(--harvest-gold);padding:.33rem .7rem;margin:.85rem 0;background:#272922}
body[data-atlas] #main .harvest-guide .harvest-odds {margin:.4rem 0 0}
@media(max-width:480px){
 body[data-atlas] #main .harvest-guide .harvest-costs th:first-child{width:20%}
}
body[data-atlas] #main .harvest-guide .harvest-calendar-link {display:inline-flex;align-items:center;gap:.4rem;min-height:36px;color:var(--harvest-gold);font-size:.79rem;line-height:1.4;text-underline-offset:.18em}
body[data-atlas] #main .harvest-guide .harvest-calendar-link span {color:var(--atlas-muted);font-size:.95em}


.harvest-reference{margin-block:1.25rem;min-width:0}
.harvest-reference h3,.harvest-reference h4{margin-block:.8em .3em}
.harvest-reference details{border-block-end:1px solid currentColor;border-color:color-mix(in srgb,currentColor 21%,transparent);padding:0;margin:0}
.harvest-reference summary{cursor:pointer;padding:.85em .2em;line-height:1.42;font-weight:700;overflow-wrap:anywhere}
.harvest-reference summary:focus-visible,.harvest-reference a:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.harvest-reference details[open]>summary{padding-block-end:.35em}
.harvest-reference p.harvest-note{margin:.45em 0 .8em}
.harvest-reference .harvest-picker{list-style:disc;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(15em,100%),1fr));column-gap:1.35em;margin:.3em 0 .9em;padding-inline-start:1.55em}
.harvest-reference .harvest-picker>li{padding-block:.18em;padding-inline-end:.3em;overflow-wrap:anywhere;break-inside:avoid}
.harvest-reference .harvest-picker a,.harvest-reference .harvest-tbl a,.harvest-reference .harvest-feature a{text-underline-offset:.14em}
.harvest-reference .harvest-feature{margin-block:.5em .85em}
.harvest-reference .harvest-feature summary,.harvest-reference .harvest-feature h4{font-size:1em}
.harvest-reference .harvest-feature dl{margin:.25em 0 .8em}
.harvest-reference .harvest-feature dt{font-weight:700;margin-block-start:.45em}
.harvest-reference .harvest-feature dd{margin:0}
.harvest-reference .harvest-feature ul{padding-inline-start:1.4em;margin:.15em 0 .6em}
.harvest-reference .harvest-feature li{margin:0;padding-block:.07em}
.harvest-reference .harvest-tbl{display:table;table-layout:fixed;width:100%;min-width:0;border-collapse:collapse;margin:.35em 0 .8em;font-size:1em;line-height:1.45;white-space:normal}
.harvest-reference .harvest-tbl tr{display:table-row}
.harvest-reference .harvest-tbl th,.harvest-reference .harvest-tbl td{display:table-cell;vertical-align:top;text-align:start;padding:.44em .35em;overflow-wrap:anywhere;word-break:normal;white-space:normal}
.harvest-reference .harvest-tbl col:first-child{width:19%}
.harvest-reference .harvest-tbl col:nth-child(2){width:30%}
.harvest-reference .harvest-shop-tbl col:first-child{width:58%}
.harvest-reference .harvest-shop-tbl col:nth-child(2){width:22%}
.harvest-reference .harvest-tbl th{font-weight:700}
.harvest-reference .harvest-tbl ul{margin:0;padding:0;list-style:none}
.harvest-reference .harvest-tbl ul li{margin:0 0 .24em}
.harvest-reference .harvest-limit{display:block;margin-block-start:.25em}
.harvest-reference .harvest-chip{display:inline-block;width:.65em;height:.65em;box-sizing:border-box;border-radius:50%;border:1px solid currentColor;margin-inline-end:.28em;vertical-align:.01em}
.harvest-reference .harvest-chip-blue{background:#5594d1}.harvest-reference .harvest-chip-green{background:#6ba876}.harvest-reference .harvest-chip-purple{background:#a585bd}.harvest-reference .harvest-chip-orange{background:#e2a15e}.harvest-reference .harvest-chip-red{background:#d86e71}
@media(max-width:35em){.harvest-reference .harvest-picker{grid-template-columns:1fr}.harvest-reference .harvest-tbl th,.harvest-reference .harvest-tbl td{padding-inline:.23em}}


/* Archive guide sorting */
body[data-atlas] #main form.filters:has(#guide-sort) {
  grid-template-columns:minmax(12rem,2fr) repeat(2,minmax(0,1fr));
}
body[data-atlas] #main form.filters:has(#guide-sort) :is(label,input,select) {width:100%;min-width:0}
body[data-atlas] #main:has(#guide-sort option[value="title"]:checked) .atlas-filter-summary #clear {display:block}
@media(max-width:680px) {
  body[data-atlas] #main form.filters:has(#guide-sort) {grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-atlas] #main form.filters:has(#guide-sort) label:first-child {grid-column:1/-1}
}
@media(max-width:374px) {
  body[data-atlas] #main form.filters:has(#guide-sort) {grid-template-columns:minmax(0,1fr)}
}

/* A short cross-topic selection before the complete searchable tool families. */
body[data-atlas] #tools #tool-recommendations {margin:1rem 0 1.35rem;min-width:0}
body[data-atlas] #tools #tool-recommendations[hidden] {display:none!important}
body[data-atlas] #tools #tool-recommendations h2 {margin:0 0 .5rem;font-size:1rem;line-height:1.4;color:var(--atlas-ink)}
body[data-atlas] #tools .tool-picks {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 1rem}
body[data-atlas] #tools .tool-picks a {display:flex;flex-direction:column;justify-content:center;gap:.12rem;min-height:48px;box-sizing:border-box;border-top:1px solid var(--atlas-line);text-decoration:none;color:var(--atlas-ink);padding:.55rem .1rem}
body[data-atlas] #tools .tool-picks strong {font-size:.875rem;line-height:1.35;color:var(--atlas-mint)}
body[data-atlas] #tools .tool-picks span {font-size:var(--atlas-body-copy,.8125rem);color:var(--atlas-muted);line-height:1.45;overflow-wrap:anywhere}
body[data-atlas] #tools .tool-picks a:hover strong {text-decoration:underline;text-underline-offset:.2em}
body[data-atlas] #tools .tool-picks a:focus-visible {outline:2px solid var(--atlas-mint);outline-offset:2px}
@media(max-width:800px){body[data-atlas] #tools .tool-picks{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){body[data-atlas] #tools .tool-picks{grid-template-columns:minmax(0,1fr)}}

/* Keep the recommended player decisions visible before the complete topic groups. */
body[data-atlas].hq-public.home-page #main-content .hq-recommended-tools {
 grid-column:1/-1;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none
}
body[data-atlas].hq-public.home-page #main-content .hq-recommended-tools .hq-guide-head {
 display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;margin:0 0 4px
}
body[data-atlas].hq-public.home-page #main-content .hq-recommended-tools h3 {
 font:600 .9375rem/1.4 system-ui,sans-serif;color:var(--atlas-ink);margin:0
}
body[data-atlas].hq-public.home-page #main-content .hq-recommended-tools nav {
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 16px;padding:0
}
body[data-atlas].hq-public.home-page #main-content .hq-recommended-tools nav a[data-priority-tool] {
 display:block;min-width:0;min-height:44px;padding:10px 1px;border:0;border-top:1px solid var(--atlas-line);border-radius:0;
 text-decoration:none;background:transparent;box-shadow:none
}
body[data-atlas].hq-public.home-page #main-content .hq-recommended-tools nav a[data-priority-tool][hidden] {display:none!important}
body[data-atlas].hq-public.home-page #main-content .hq-tool-pick-copy,
body[data-atlas].hq-public.home-page #main-content .hq-tool-pick-copy :is(strong,span) {display:block;overflow-wrap:anywhere}
body[data-atlas].hq-public.home-page #main-content .hq-tool-pick-copy strong {color:var(--atlas-ink);font-size:.875rem;line-height:1.4}
body[data-atlas].hq-public.home-page #main-content .hq-tool-pick-copy span {color:var(--atlas-muted);font-size:var(--atlas-body-copy,.8125rem);line-height:1.45;margin-top:2px}
body[data-atlas].hq-public.home-page #main-content .hq-recommended-tools a:is(:hover,:focus-visible) strong {color:var(--atlas-mint);text-decoration:underline}
@media (max-width:800px) {body[data-atlas].hq-public.home-page #main-content .hq-recommended-tools nav {grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:500px) {body[data-atlas].hq-public.home-page #main-content .hq-recommended-tools nav {grid-template-columns:minmax(0,1fr)!important}}
/* Pair the six shortcuts in reading order, including on narrow German screens. */
#nav[data-field-menu] .hq-short-list a:not(:has(small)) {min-height:44px}
#nav[data-field-menu] .hq-short-list a:not(:has(small))::before {display:none}
@media(max-width:374px) {
 #nav[data-field-menu]:lang(de) .hq-short-list a:has(small) {
  grid-column:auto;align-items:flex-start;gap:2px;min-height:54px;padding:6px 4px!important
 }
 #nav[data-field-menu]:lang(de) .hq-short-list a:has(small) .hq-short-name {font-size:.75rem;hyphens:auto}
}

/* Quick destinations and the full index share one surface and toolbar. */
body[data-atlas] header[data-hq-masthead].menu-open #nav[data-field-menu] {
  --menu-surface:#101d25;--menu-input:#0c171f;--menu-raised:#203239;--menu-selected:#24423e;
  --menu-edge:#34464d;--menu-dim:#adbec2;
  width:min(540px,calc(100% - 2 * var(--header-inset)))!important;
  padding:16px!important;gap:15px!important;border-color:#3b4d53!important;border-radius:14px!important;
  box-shadow:0 16px 40px #02070c66,0 3px 9px #02070c44!important;
}
#nav[data-field-menu] .hq-menu-toolbar .directory-views:not([hidden]) {
  gap:2px!important;padding:3px!important;background:#101c23!important;border:1px solid #33474c!important;border-radius:9px!important
}
#nav[data-field-menu] .hq-menu-toolbar [data-directory-view] {gap:6px;white-space:normal}
#nav[data-field-menu] .hq-menu-toolbar [data-directory-view][aria-pressed="true"] {
  background:#294840!important;color:#effaf4!important;border-color:#47675d!important;
}
#nav[data-field-menu] .menu-link-count {
  display:inline-block;padding:.1em .4em;border-radius:4px;background:#26363d;color:#bdcaca;
  font:550 .6875rem/1.2 system-ui,sans-serif;font-variant-numeric:tabular-nums;
}
#nav[data-field-menu] [aria-pressed="true"] > .menu-link-count {color:#dcf5e8;background:#3a5c52}
#nav[data-field-menu] #site-tool-search {border-color:#384c53!important;border-radius:8px!important;background:#14252d!important}
#nav[data-field-menu] #site-tool-search::placeholder {color:#b8c7ca}
#nav[data-field-menu] .hq-menu-grid {gap:17px}
#nav[data-field-menu] .hq-menu-grid .menu-tool-grid {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#32454b;
  border:1px solid #32454b;border-radius:10px;overflow:hidden;
}
#nav[data-field-menu] .hq-menu-grid .menu-tool-grid > .menu-tool {
  box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;
  gap:0;min-width:0;min-height:76px;margin:0;padding:8px 12px!important;position:relative;
  border:0;border-radius:0;background:#192a32!important;box-shadow:none;color:#f0f4f0!important;
  overflow-wrap:break-word;word-break:normal;hyphens:auto;text-decoration:none;
}
#nav[data-field-menu] .hq-menu-grid .menu-tool::before {display:none!important}
#nav[data-field-menu] .hq-menu-grid .menu-tool .menu-tool-icon {
  display:block;position:static;flex:none;width:18px;height:18px;margin:0 0 5px;color:#9ad9bf;
}
#nav[data-field-menu] .hq-menu-grid .menu-tool .hq-short-name {
  font:610 .8125rem/1.28 system-ui,sans-serif;letter-spacing:-.01em;color:inherit
}
#nav[data-field-menu] .hq-menu-grid .menu-tool .menu-tool-note {
  color:#b3c4c7;font:400 .71875rem/1.3 system-ui,sans-serif;margin-top:2px
}
#nav[data-field-menu] .hq-menu-grid .menu-tool-grid > .menu-tool:is(:focus-visible,[aria-current="page"]) {
  background:#24413d!important;box-shadow:inset 3px 0 #8bd6b9;
}
#nav[data-field-menu] .hq-menu-grid .menu-topics {
  border:0!important;padding:0!important;margin:0;background:none;
}
#nav[data-field-menu] .hq-menu-grid .menu-topics h2,
#nav[data-field-menu] #site-nav-links .site-nav-group h2 {
  font:650 .75rem/1.35 system-ui,sans-serif!important;letter-spacing:.012em!important;
  margin:0 0 5px!important;padding:0!important;color:#c5d1d1!important;
}
#nav[data-field-menu] .menu-topics .atlas-menu {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
#nav[data-field-menu] .menu-topics .atlas-menu .atlas-topic {
  min-height:39px;padding:6px 2px;border-radius:4px;border:0;box-shadow:none;background:transparent;
  font:480 .8125rem/1.3 system-ui,sans-serif;color:#d6e0df!important;
}
#nav[data-field-menu] .menu-topics .atlas-menu .atlas-topic::before {border-radius:50%;width:5px;height:5px}
#nav[data-field-menu] #site-nav-links .site-nav-group h2 {border-bottom:1px solid var(--menu-edge)!important;padding-bottom:7px!important}
#nav[data-field-menu] #site-nav-links .site-nav-group a:not([hidden]) {
  min-height:35px!important;border-radius:5px!important;padding:6px 7px!important;color:#d5dfde!important
}
#nav[data-field-menu] #site-nav-links .site-nav-group a[aria-current="page"] {
  color:#e7faef!important;background:#213b37!important;box-shadow:inset 2px 0 #87d1b2!important
}
#nav[data-field-menu] .hq-menu-toolbar .directory-filters:has(+ select.hq-menu-category) {display:none!important}
#nav[data-field-menu] .hq-menu-toolbar .directory-filters:not([hidden]) + select.hq-menu-category {
  display:block;width:100%;min-height:38px;box-sizing:border-box;grid-column:1/-1;
  border:1px solid #394d52;border-radius:7px;padding:5px 9px;color:#d9e4e1;background:#14252d;color-scheme:dark;
  font:500 .8125rem/1.35 system-ui;
}
@media (hover:hover) and (pointer:fine) {
  #nav[data-field-menu] .hq-menu-grid .menu-tool-grid > .menu-tool:hover {background:#233b40!important}
  #nav[data-field-menu] .menu-topics .atlas-menu .atlas-topic:hover,
  #nav[data-field-menu] #site-nav-links .site-nav-group a:hover {background:#203239!important}
}
@media (max-width:650px) {
  body[data-atlas] header[data-hq-masthead].menu-open #nav[data-field-menu] {padding:12px!important;gap:12px!important}
  #nav[data-field-menu] .hq-menu-toolbar {gap:8px}
  #nav[data-field-menu] .hq-menu-grid .menu-tool-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  #nav[data-field-menu] .hq-menu-grid .menu-tool-grid > .menu-tool {min-height:70px;padding:7px 10px!important}
}
@media (max-width:650px), (pointer:coarse) {
  #nav[data-field-menu] .hq-menu-grid .menu-topics .atlas-topic,
  #nav[data-field-menu] #site-nav-links .site-nav-group a:not([hidden]),
  #nav[data-field-menu] .hq-menu-toolbar .directory-filters:not([hidden]) + select.hq-menu-category {min-height:44px!important}
}
@media (max-width:374px) {
  #nav[data-field-menu] .hq-menu-grid .menu-tool-grid > .menu-tool {padding-inline:8px!important}
  #nav[data-field-menu]:lang(de) .menu-tool .hq-short-name {font-size:.75rem}
}
@media (pointer:coarse) and (orientation:landscape) and (max-height:540px) {
  body[data-atlas] header[data-hq-masthead].menu-open #nav[data-field-menu] {width:min(625px,calc(100% - 2 * var(--header-inset)))!important}
}
#nav[data-field-menu] .site-nav-clear:not([hidden]) {width:44px!important;min-height:100%!important}
#nav[data-field-menu] #site-tool-search {padding-inline-end:46px!important}

/* Homepage directory. The native links and their visible order are shared by
   the default view and the filtered results. */
#main-content #home-directory {
  --directory-surface:#14242c;
  --directory-edge:#30434a;
  --directory-text:#edf3f1;
  --directory-muted:#b2c4c7;
  --directory-accent:#a1ddc9;
  box-sizing:border-box;display:block;min-width:0;color:var(--directory-text);
}
#main-content #home-directory .home-directory-head {
  display:grid;grid-template-columns:minmax(0,1fr) minmax(14rem,22rem) auto;
  grid-template-areas:"heading search topic";align-items:center;gap:8px 12px;margin:0 0 10px;padding:0;
}
#main-content #home-directory .home-directory-head > div:first-child {display:contents}
#main-content #home-directory #directory-heading {
  grid-area:heading;margin:0;padding:0;font:650 clamp(1.0625rem,1rem + .4vw,1.375rem)/1.2 system-ui,sans-serif!important;
  letter-spacing:-.022em;color:var(--directory-text);scroll-margin-top:116px
}
#main-content #home-directory .home-directory-head [data-copy="directoryNote"] {display:none}
#main-content #home-directory .home-directory-head .home-search {
  grid-area:search;position:relative;display:flex;align-items:center;width:100%;min-width:0;margin:0;padding:0;box-shadow:none;background:none
}
#main-content #home-directory .home-search .hq-home-lens {
  position:absolute;left:12px;top:50%;transform:translateY(-50%);margin:0;width:16px;height:16px;pointer-events:none;color:var(--directory-muted)
}
#main-content #home-directory .home-search #home-search {
  box-sizing:border-box;width:100%;min-width:0;height:44px;padding:0 46px 0 37px!important;
  border:1px solid #3a5057;border-radius:8px;background:#14252d;color:var(--directory-text);font:450 1rem/1.3 system-ui,sans-serif
}
#main-content #home-directory .home-search #home-search:placeholder-shown {padding-inline-end:10px!important}
#main-content #home-directory .home-search #home-search::placeholder {color:#b6c7c9;font-size:.8125rem}
#main-content #home-directory .home-directory-head .hq-query-category {
  grid-area:topic;display:block;box-sizing:border-box;width:auto;max-width:100%;height:44px;min-width:0;margin:0;
  padding:4px 8px;border:1px solid #384c53;border-radius:8px;background:#14252d;color:#d4e1e0;color-scheme:dark;
  font:500 .8125rem/1.3 system-ui,sans-serif
}
#main-content #home-directory:has(.hq-query-category) .home-filter {display:none!important}
#main-content #home-directory .hq-query-controls {display:block;margin:0 0 10px}
#main-content #home-directory .hq-query-controls:has(#home-result-count:empty) {display:none}
#main-content #home-directory #home-result-count {margin:0;color:var(--directory-muted);font:450 .78125rem/1.45 system-ui,sans-serif}
#main-content #home-directory #home-tools {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;grid-auto-rows:auto;gap:18px 22px;margin:0;padding:0
}
#main-content #home-directory .home-picks {
  display:grid;grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:20px 26px;min-width:0;
  padding:0 0 18px;border-bottom:1px solid var(--directory-edge);
}
#main-content #home-directory .home-picks:has(#home-recommended-tools[hidden]):has(#home-guides[hidden]) {display:none}
#main-content #home-directory .home-picks:has(>section[hidden]),
#main-content #home-directory:has(#home-search:not(:placeholder-shown)) .home-picks {grid-template-columns:minmax(0,1fr)}
#main-content #home-directory .home-picks > :is(#home-recommended-tools,#home-guides) {
  display:block;grid-column:auto;min-width:0;padding:0;margin:0;border:0;background:none;box-shadow:none;border-radius:0
}
#main-content #home-directory .home-picks > section[hidden],
#main-content #home-directory #home-tools > section[hidden],
#main-content #home-directory #home-tools a[hidden] {display:none!important}
#main-content #home-directory .home-picks .hq-guide-head {
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:0 8px;padding:0;margin:0 0 3px;border:0;background:none
}
#main-content #home-directory .home-picks .hq-guide-head h3 {
  margin:0;padding:0;color:var(--directory-text);
  font:620 .9375rem/1.35 system-ui,sans-serif!important;letter-spacing:-.012em;
}
#main-content #home-directory .home-picks .hq-guide-head .home-all-guides384 {
  box-sizing:border-box;display:inline-flex;align-items:center;gap:6px;min-height:44px;margin:0;padding:0 2px;
  color:var(--directory-accent);font:500 .78125rem/1.35 system-ui,sans-serif;
  text-decoration:none;background:none;border:0;box-shadow:none;
}
#main-content #home-directory #home-recommended-tools nav {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px;padding:0;margin:0
}
#main-content #home-directory #home-recommended-tools nav a[data-priority-tool]:not([hidden]) {
  box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:6px;
  min-width:0;min-height:80px;margin:0;padding:10px 12px;border:1px solid var(--directory-edge);
  background:var(--directory-surface);border-radius:9px;box-shadow:none;text-decoration:none;overflow-wrap:break-word;hyphens:auto
}
#main-content #home-directory .home-picks .home-pick-icon {
  display:block;flex:none;width:18px;height:18px;margin:0;color:var(--directory-accent);
}
#main-content #home-directory #home-recommended-tools .hq-tool-pick-copy {display:block;min-width:0}
#main-content #home-directory #home-recommended-tools .hq-tool-pick-copy strong,
#main-content #home-directory #home-guides nav a[data-guide] strong {
  display:block;margin:0;padding:0;color:var(--directory-text);font:610 .8125rem/1.32 system-ui,sans-serif;
  letter-spacing:0;overflow-wrap:break-word;hyphens:auto;
}
#main-content #home-directory #home-recommended-tools .hq-tool-pick-copy > span {
  display:block;margin:2px 0 0;color:var(--directory-muted);font:425 .75rem/1.38 system-ui,sans-serif;overflow-wrap:break-word
}
#main-content #home-directory #home-guides nav {display:grid;grid-template-columns:minmax(0,1fr);gap:0;margin:0;padding:0}
#main-content #home-directory #home-guides nav a[data-guide]:not([hidden]) {
  box-sizing:border-box;display:grid;align-content:center;align-items:center;column-gap:10px;row-gap:2px;min-width:0;
  grid-template-columns:minmax(0,1fr);min-height:49px;padding:5px 2px;margin:0;
  color:var(--directory-text);border:0;border-bottom:1px solid var(--directory-edge);border-radius:0;background:none;box-shadow:none
}
#main-content #home-directory #home-guides nav a[data-guide]:has(> img):not([hidden]) {grid-template-columns:68px minmax(0,1fr)}
#main-content #home-directory #home-guides .home-guide-thumb {
  grid-area:1/1/3/2;width:68px;height:40px;display:block;align-self:center;
  object-fit:cover;border:1px solid #37474d;border-radius:5px;box-sizing:border-box;background:#182b33
}
#main-content #home-directory #home-guides nav a[data-guide] > span {
  display:block;margin:0;color:var(--directory-muted);font:425 .78125rem/1.4 system-ui,sans-serif;overflow-wrap:break-word
}
#main-content #home-directory #home-guides nav a:has(>img) > :is(strong,span) {grid-column:2}
#main-content #home-directory #home-guides .hq-guide-sprite {justify-self:center;align-self:center;margin:0}
#main-content #home-directory #home-tools > section.home-group[data-group] {
  display:block;box-sizing:border-box;min-width:0;padding:0;margin:0;border:1px solid var(--directory-edge);
  background:#111f27;border-radius:10px;box-shadow:none;overflow:visible;
}
#main-content #home-directory #home-tools [data-group] .home-group-head {
  display:flex;flex-direction:row;align-items:center;justify-content:flex-start;text-align:start;gap:9px;min-width:0;margin:0;padding:12px 14px;background:transparent;border:0
}
#main-content #home-directory [data-group] .home-group-head h3 {
  margin:0;color:var(--directory-text);font:600 .875rem/1.35 system-ui,sans-serif;letter-spacing:0
}
#main-content #home-directory [data-group] .home-group-head p {display:none}
#main-content #home-directory [data-group] .home-group-icon {
  display:grid;place-items:center;width:24px;height:24px;flex:none;margin:0;padding:0;background:none;border:0;box-shadow:none;
}
#main-content #home-directory [data-group] .home-group-icon svg {width:21px;height:21px}
#main-content #home-directory #home-tools [data-group] nav {display:grid;grid-template-columns:minmax(0,1fr)!important;gap:0;padding:0 13px 3px}
#main-content #home-directory #home-tools [data-group] nav a.home-tool:not([hidden]) {
  box-sizing:border-box;display:grid;grid-template-columns:21px minmax(0,1fr);gap:9px;align-items:center;
  min-width:0;min-height:46px;padding:7px 1px;margin:0;border:0;border-top:1px solid #283b43;background:transparent;box-shadow:none;border-radius:0;
  text-decoration:none;color:var(--directory-text);
}
#main-content #home-directory #home-tools [data-group] .home-tool > .home-tool-art {
  display:grid;place-items:center;width:20px;height:20px;padding:0;margin:0;background:none;border:0;box-shadow:none
}
#main-content #home-directory #home-tools [data-group] .home-tool-art svg {width:18px;height:18px}
#main-content #home-directory #home-tools [data-group] .home-tool > span:nth-child(2) {display:block;min-width:0}
#main-content #home-directory #home-tools [data-group] .home-tool strong {
  display:block;color:var(--directory-text);font:550 .8125rem/1.35 system-ui,sans-serif;overflow-wrap:break-word
}
#main-content #home-directory #home-tools [data-group] .home-tool > span:nth-child(2) > span {
  display:block;margin:1px 0 0;color:var(--directory-muted);font:400 .75rem/1.38 system-ui,sans-serif;overflow-wrap:break-word
}
#main-content #home-directory #home-reset {min-height:44px;padding:6px 12px}
#main-content #home-directory :is(a,button,select,input):focus-visible {outline:2px solid #a4dfce!important;outline-offset:2px}
@media(hover:hover) and (pointer:fine) {
  #main-content #home-directory #home-recommended-tools nav a[data-priority-tool]:hover {background:#20363d;border-color:#4c6d6c}
  #main-content #home-directory #home-guides a:hover strong,
  #main-content #home-directory #home-tools [data-group] a:hover strong {color:var(--directory-accent);text-decoration:underline;text-underline-offset:3px}
}
@media (min-width:901px) {
  #main-content #home-directory .home-picks:has(>section[hidden]) #home-recommended-tools nav {grid-template-columns:repeat(3,minmax(0,1fr))!important}
  #main-content #home-directory:has(#home-search:not(:placeholder-shown)) #home-guides nav {grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
}
@media(max-width:900px) {
  #main-content #home-directory .home-picks {grid-template-columns:minmax(0,1fr);gap:14px}
  #main-content #home-directory #home-recommended-tools nav {grid-template-columns:repeat(3,minmax(0,1fr))!important}
  #main-content #home-directory #home-guides nav {grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}
}
@media(max-width:650px) {
  #main-content #home-directory .home-directory-head {grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"heading topic" "search search";gap:5px 10px;margin-bottom:7px}
  #main-content #home-directory .home-directory-head .hq-query-category {max-width:min(54vw,14rem)}
  #main-content #home-directory #home-tools {grid-template-columns:minmax(0,1fr);gap:15px}
  #main-content #home-directory .home-picks {gap:9px;padding-bottom:14px}
  #main-content #home-directory #home-recommended-tools nav {grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #main-content #home-directory #home-recommended-tools nav a[data-priority-tool]:not([hidden]) {min-height:72px;padding:8px 10px;gap:5px}
  #main-content #home-directory #home-guides nav {grid-template-columns:minmax(0,1fr)}
  #main-content #home-directory .home-picks .hq-guide-head h3 {font-size:.875rem!important}
  #main-content #home-directory #home-tools [data-group] .home-group-head {padding:11px 12px}
}
@media(scripting:none) {
  #main-content #home-directory :is(.home-search,.home-filter,.hq-query-controls) {display:none!important}
  body[data-atlas].hq-public.home-page #main-content .atlas-actions a#home-tool-jump {display:inline-flex!important}
}

#main-content #home-directory .home-search-label {
  position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap
}
#main-content #home-directory #home-search::-webkit-search-cancel-button {display:none}
#main-content #home-directory #home-search-clear:not([hidden]) {
  display:grid;place-items:center;position:absolute;inset:0 1px 0 auto;box-sizing:border-box;
  min-height:44px;width:44px;padding:0;margin:0;border:0;border-radius:7px;
  background:transparent;color:var(--directory-accent);cursor:pointer;
}
#main-content #home-directory #home-search-clear[hidden] {display:none}
#main-content #home-directory #home-search-clear:focus-visible {outline-offset:-3px}
@media(min-width:901px) {
  #main-content #home-directory .home-picks {
    align-items:stretch
  }
  #main-content #home-directory .home-picks #home-recommended-tools:not([hidden]) {display:flex;flex-direction:column}
  #main-content #home-directory #home-recommended-tools nav {flex:1;grid-auto-rows:1fr}
}
@media(max-width:374px) {
  #main-content #home-directory #home-recommended-tools nav a[data-priority-tool]:not([hidden]) {padding-inline:7px}
  #main-content #home-directory:lang(de) #home-recommended-tools .hq-tool-pick-copy strong {font-size:.78125rem;hyphens:manual}
}

@media(max-width:374px) {
  #main-content #home-directory .home-directory-head {column-gap:6px}
  #main-content #home-directory .home-directory-head .hq-query-category {field-sizing:content;min-width:5.5rem;padding-inline:6px}
}

/* The island, first-step actions and two personal tools form one homepage introduction. */
#main-content #home-intro {
  --intro-edge:#334850;--intro-ink:#f0f5f2;--intro-muted:#bfced0;--intro-mint:#a6dfcd;
  display:grid;grid-template-columns:minmax(0,1fr) minmax(215px,24%);gap:10px;align-items:stretch;
  margin:0 0 clamp(17px,2vw,25px);min-width:0;
}
#main-content #home-intro .atlas-hero {
  display:flex;align-items:center;min-width:0;min-height:160px;margin:0;padding:0;box-sizing:border-box;
  background:#0c1b24;border:1px solid var(--intro-edge);border-radius:12px;isolation:isolate;overflow:hidden;
}
#main-content #home-intro .atlas-hero::after {
  content:"";inset:0;z-index:-1;
  background:linear-gradient(90deg,#10222b 0%,#10212b 42%,#0e2029cc 59%,#0c1c2400 79%);
}
#main-content #home-intro .atlas-island {
  position:absolute;z-index:-2;inset:0 0 0 auto;width:48%!important;height:100%;max-width:none!important;margin:0;
  display:block;object-fit:cover;object-position:87% 48%;mask-image:none;opacity:1;filter:none;background:#0d1b25
}
#main-content #home-intro .atlas-hero-copy {
  position:relative;box-sizing:border-box;width:66%;max-width:none;margin:0;
  padding:clamp(15px,2vw,25px);text-align:start;
}
#main-content #home-intro .atlas-hero h1 {
  width:auto;max-width:none;margin:0!important;color:var(--intro-ink)!important;
  font:640 clamp(1.42rem,1.12rem + 1.04vw,1.95rem)/1.16 system-ui,sans-serif!important;
  letter-spacing:-.035em!important;text-wrap:balance
}
#main-content #home-intro .atlas-hero h1 span {color:inherit!important;font:inherit!important}
#main-content #home-intro .atlas-hero-copy p {
  max-width:45ch;margin:5px 0 0;padding:0;color:var(--intro-muted);
  font:420 .8125rem/1.45 system-ui,sans-serif;
}
#main-content #home-intro .atlas-actions {
  display:flex;flex-wrap:wrap;align-items:center;gap:2px 13px;margin:10px 0 0;padding:0;
}
#main-content #home-intro .atlas-actions a {
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:44px;margin:0;padding:5px 11px;border:1px solid #45685f;border-radius:7px;
  color:#eaf8ef!important;background:#233f39;text-decoration:none;font:600 .8125rem/1.25 system-ui,sans-serif!important;
  white-space:normal;text-align:start;box-shadow:none
}
#main-content #home-intro .atlas-actions #home-tool-jump {
  padding-inline:2px;color:#d1e3dd!important;background:transparent;border-color:transparent;font-weight:510!important;
}
#main-content #home-intro .atlas-actions a::after {content:none}
#main-content #home-intro .intro-action-icon {width:13px;height:13px;display:block;flex:none;color:var(--intro-mint)}
#main-content #home-intro .hq-launches {
  display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));gap:0;
  box-sizing:border-box;min-width:0;margin:0;padding:0;background:#15262e;
  border:1px solid var(--intro-edge);border-radius:12px;box-shadow:none;overflow:hidden
}
#main-content #home-intro .hq-launch-wrap {display:flex;min-width:0;margin:0;padding:0;background:none;border:0}
#main-content #home-intro .hq-launch-wrap + .hq-launch-wrap {border-block-start:1px solid var(--intro-edge)}
#main-content #home-intro .hq-launch {
  display:grid;grid-template-columns:28px minmax(0,1fr) 13px;grid-template-areas:"icon copy arrow";
  align-content:center;align-items:center;gap:0 9px;box-sizing:border-box;width:100%;min-width:0;min-height:56px;
  padding:9px clamp(10px,1.2vw,16px);margin:0;border:0;border-radius:0;text-decoration:none;background:transparent!important;box-shadow:none;
}
#main-content #home-intro .hq-launch .hq-launch-icon {
  display:grid;place-items:center;grid-area:icon!important;position:static;min-width:0;width:28px;height:28px;margin:0;
  color:var(--intro-mint);background:#203a39;border:0;border-radius:7px;box-shadow:none
}
#main-content #home-intro .hq-launch .hq-launch-icon svg {display:block;width:18px;height:18px;max-width:100%;color:inherit}
#main-content #home-intro .hq-launch .hq-launch-copy {display:grid;grid-area:copy!important;gap:2px;min-width:0}
#main-content #home-intro .hq-launch .hq-launch-copy strong {color:var(--intro-ink);font:610 .8125rem/1.32 system-ui,sans-serif;hyphens:auto;overflow-wrap:break-word}
#main-content #home-intro .hq-launch .hq-launch-copy > span {color:var(--intro-muted);font:400 .75rem/1.35 system-ui,sans-serif;overflow-wrap:break-word}
#main-content #home-intro .hq-launch .intro-chevron {display:block;grid-area:arrow;width:12px;height:12px;color:#96afac;justify-self:end}
#main-content #home-intro a:focus-visible {outline:2px solid #b7ebdc!important;outline-offset:-3px!important}
@media(hover:hover) and (pointer:fine) {
  #main-content #home-intro .hq-launch:hover {background:#1f353c!important}
  #main-content #home-intro .atlas-actions a:hover {background:#2e5046}
  #main-content #home-intro .atlas-actions #home-tool-jump:hover {text-decoration:underline;text-underline-offset:.22em}
}
@media(min-width:801px) {
  #main-content #home-intro .atlas-island {
    width:auto!important;max-width:46%!important;aspect-ratio:3/2;object-fit:contain;object-position:right center;
    mask-image:linear-gradient(to right,transparent,#000 34%);
  }
}
@media(max-width:800px) {
  #main-content #home-intro {grid-template-columns:minmax(0,1fr);gap:6px}
  #main-content #home-intro .hq-launches {grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto}
  #main-content #home-intro .hq-launch-wrap + .hq-launch-wrap {border-block-start:0;border-inline-start:1px solid var(--intro-edge)}
  #main-content #home-intro .atlas-hero {min-height:139px}
  #main-content #home-intro .atlas-hero-copy {width:68%;padding:13px 16px 12px}
}
@media(max-width:540px) {
  #main-content #home-intro {margin-bottom:14px}
  #main-content #home-intro .atlas-hero {min-height:0}
  #main-content #home-intro .atlas-hero-copy {width:100%;padding:13px 13px 9px}
  #main-content #home-intro .atlas-hero h1 {max-width:87%;font-size:clamp(1.23rem,1.05rem + .9vw,1.38rem)!important}
  #main-content #home-intro .atlas-hero-copy p {max-width:69%;font-size:.78125rem;line-height:1.4}
  #main-content #home-intro .atlas-island {width:45%!important;height:81%;object-fit:cover;object-position:94% 45%}
  #main-content #home-intro .atlas-hero::after {background:linear-gradient(90deg,#10222b 0%,#10222b 54%,#10222be0 62%,#10222b10 86%),linear-gradient(0deg,#10222b 14%,transparent 58%)}
  #main-content #home-intro .atlas-actions {margin-top:6px;gap:2px 10px}
  #main-content #home-intro .atlas-actions a {font-size:.78125rem!important;padding-inline:8px}
  #main-content #home-intro .atlas-actions #home-tool-jump {padding-inline:1px}
  #main-content #home-intro .hq-launch {grid-template-columns:19px minmax(0,1fr) 10px;column-gap:5px;padding:7px 9px}
  #main-content #home-intro .hq-launch .hq-launch-icon {width:19px;height:19px;background:none}
}
@media(max-width:405px) {
  #main-content #home-intro .hq-launch {
    grid-template-columns:minmax(0,1fr) 12px;grid-template-areas:"icon arrow" "copy copy";row-gap:3px;
    min-height:62px;padding:6px 10px 7px;align-content:start;align-items:center;
  }
  #main-content #home-intro .hq-launch .hq-launch-icon {width:16px;height:16px;justify-self:start!important}
  #main-content #home-intro .hq-launch .hq-launch-icon svg {width:16px;height:16px}
  #main-content #home-intro .hq-launch .hq-launch-copy {gap:1px}
}
@media(max-width:350px) {
  #main-content #home-intro .atlas-actions {column-gap:6px}
  #main-content #home-intro .atlas-actions a {column-gap:4px;padding-inline:6px}
  #main-content #home-intro .hq-launch {padding-inline:7px 4px}
}
@media(forced-colors:active) {
  #main-content #home-intro .atlas-hero::after {background:Canvas}
  #main-content #home-intro a:focus-visible {outline-color:Highlight!important}
}

/* Tools directory. The recommendations use the same icons and short labels as the homepage. */
body[data-atlas] main#tools[data-tools-directory] {
  --tools-text:#edf3f1;--tools-muted:#b5c6c8;--tools-mint:#a6d9c8;--tools-line:#334850;
  --tools-panel:#13242c;--tools-row:#293d45;
  width:min(1200px,calc(100% - 48px));min-width:0;margin-block:2px 48px;color:var(--tools-text);
}
body[data-atlas] #tools[data-tools-directory] .atlas-directory-head {
  display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,32%);align-items:center;gap:12px 28px;
  margin:0;padding:clamp(14px,1.7vw,22px);border:1px solid var(--tools-line);border-radius:12px;
  background:linear-gradient(110deg,#152a32,#10212a 65%,#102029);
}
body[data-atlas] #tools[data-tools-directory] .atlas-directory-head h1 {
  font:640 clamp(1.27rem,1.08rem + .9vw,1.8rem)/1.18 system-ui,sans-serif!important;
  letter-spacing:-.035em!important;color:var(--tools-text);margin:0;padding:0
}
body[data-atlas] #tools[data-tools-directory] .atlas-directory-head p {
  margin:4px 0 0;color:var(--tools-muted);text-wrap:balance;font:400 .8125rem/1.42 system-ui,sans-serif;
}
body[data-atlas] #tools[data-tools-directory] .atlas-dir-search {min-width:0;margin:0}
body[data-atlas] #tools[data-tools-directory] .atlas-dir-input {
  display:flex;gap:8px;min-height:46px;height:auto;padding:0 0 0 11px;
  border:1px solid #4a6369;background:#0d1d26;border-radius:8px;box-shadow:none;
}
body[data-atlas] #tools[data-tools-directory] .atlas-dir-input input {box-sizing:border-box;min-height:44px;padding:3px 0;font:400 .875rem/1.25 system-ui,sans-serif}
body[data-atlas] #tools[data-tools-directory] .atlas-dir-input:has(button[hidden]) {padding-inline-end:10px}
body[data-atlas] #tools[data-tools-directory] .atlas-dir-input .hq-home-lens {width:16px;height:16px;color:#a9c0bf}
body[data-atlas] #tools[data-tools-directory] .atlas-dir-input button {width:44px;height:44px;color:#c0d5cf;font-weight:400}
body[data-atlas] #tools[data-tools-directory] .atlas-dir-status {font:400 .78125rem/1.45 system-ui,sans-serif;color:var(--tools-muted)}
body[data-atlas] #tools[data-tools-directory] .atlas-directory {
  display:grid;grid-template-columns:clamp(180px,18vw,218px) minmax(0,1fr);align-items:start;
  gap:clamp(16px,2.2vw,28px);padding:0;margin:clamp(16px,2vw,24px) 0 0;
}
body[data-atlas] #tools[data-tools-directory] .tool-directory-body {min-width:0}
body[data-atlas] #tools[data-tools-directory] .atlas-topic-picker {
  min-width:0;margin:0;border:1px solid var(--tools-line);border-radius:9px;background:var(--tools-panel);box-shadow:none
}
body[data-atlas] #tools[data-tools-directory] .atlas-topic-picker summary {
  box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:7px 12px;min-height:44px;margin:0;list-style:none;cursor:pointer;
  font:620 .8125rem/1.3 system-ui,sans-serif;color:var(--tools-text);
}
body[data-atlas] #tools[data-tools-directory] .atlas-topic-picker summary::-webkit-details-marker {display:none}
body[data-atlas] #tools[data-tools-directory] .atlas-topic-picker summary i {
  width:7px;height:7px;flex:none;margin:-3px 2px 0 0;
  border:solid var(--tools-mint);border-width:0 1.5px 1.5px 0;transform:rotate(45deg)
}
body[data-atlas] #tools[data-tools-directory] .atlas-topic-picker[open] summary i {transform:rotate(225deg);margin-top:3px}
body[data-atlas] #tools[data-tools-directory] .atlas-topic-picker .atlas-rail {display:grid;grid-template-columns:minmax(0,1fr);gap:2px;padding:0 5px 5px;margin:0}
body[data-atlas] #tools[data-tools-directory] .atlas-rail .atlas-topic {
  display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:44px;padding:5px 8px;
  border:1px solid transparent;border-radius:5px;background:none;color:var(--tools-muted);
}
body[data-atlas] #tools[data-tools-directory] .atlas-rail .atlas-topic strong {font:510 .8125rem/1.35 system-ui,sans-serif;overflow-wrap:anywhere}
body[data-atlas] #tools[data-tools-directory] .atlas-rail .atlas-topic b {color:var(--tools-mint);font-weight:400;line-height:1}
body[data-atlas] #tools[data-tools-directory] .atlas-rail .atlas-topic[aria-current] {background:#223a3e;border-color:#3b5659;color:var(--tools-text);box-shadow:inset 2px 0 var(--tools-mint)}
body[data-atlas] #tools[data-tools-directory] #tool-recommendations {min-width:0;margin:0 0 clamp(18px,2vw,26px);padding:0}
body[data-atlas] #tools[data-tools-directory] #tool-recommendations h2,
body[data-atlas] #tools[data-tools-directory] .atlas-section h2 {
  color:var(--tools-text);font:630 1rem/1.32 system-ui,sans-serif;letter-spacing:-.016em;margin:0 0 8px;padding:0
}
body[data-atlas] #tools[data-tools-directory] .tool-picks {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px
}
body[data-atlas] #tools[data-tools-directory] .tool-picks a {
  display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;align-content:center;justify-content:normal;
  gap:9px;box-sizing:border-box;min-width:0;min-height:65px;padding:9px 11px;
  background:var(--tools-panel);border:1px solid var(--tools-line);border-radius:8px;color:var(--tools-text);text-decoration:none
}
body[data-atlas] #tools[data-tools-directory] .tool-picks .directory-pick-icon {display:block;width:20px;height:20px;color:var(--tools-mint)}
body[data-atlas] #tools[data-tools-directory] .tool-picks .directory-pick-copy {display:grid;gap:2px;min-width:0;font:inherit}
body[data-atlas] #tools[data-tools-directory] .tool-picks strong {color:var(--tools-text);font:620 .8125rem/1.32 system-ui,sans-serif;overflow-wrap:anywhere}
body[data-atlas] #tools[data-tools-directory] .tool-picks small {color:var(--tools-muted);font:400 .75rem/1.35 system-ui,sans-serif;overflow-wrap:anywhere}
body[data-atlas] #tools[data-tools-directory] .atlas-section {margin:0 0 clamp(20px,2.1vw,28px);padding:0}
body[data-atlas] #tools[data-tools-directory] .atlas-section h2 {gap:8px}
body[data-atlas] #tools[data-tools-directory] .atlas-section h2 i {width:3px;height:14px;flex:none;border-radius:2px}
body[data-atlas] #tools[data-tools-directory] .atlas-families {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start}
body[data-atlas] #tools[data-tools-directory] .atlas-family {min-width:0;background:#10212a;border:1px solid var(--tools-line);border-radius:9px}
body[data-atlas] #tools[data-tools-directory] .atlas-family h3 {
  padding:10px 12px 8px;margin:0;color:var(--tools-text);
  background:var(--tools-panel);font:620 .8125rem/1.35 system-ui,sans-serif;letter-spacing:0
}
body[data-atlas] #tools[data-tools-directory] .atlas-family ul {padding:0 12px;margin:0}
body[data-atlas] #tools[data-tools-directory] .atlas-family li {border-top:1px solid var(--tools-row)}
body[data-atlas] #tools[data-tools-directory] .atlas-family li a {
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;position:relative;box-sizing:border-box;
  min-height:44px;min-width:0;padding:7px 20px 7px 0;border:0;border-radius:0;
  color:var(--tools-text);background:none;text-decoration:none;font:490 .8125rem/1.4 system-ui,sans-serif;overflow-wrap:anywhere;
}
body[data-atlas] #tools[data-tools-directory] .atlas-family li a small {margin:0;color:var(--tools-muted);font:400 .75rem/1.4 system-ui,sans-serif}
body[data-atlas] #tools[data-tools-directory] .atlas-family li a::after {
  content:"";box-sizing:border-box;width:6px;height:6px;position:absolute;top:50%;right:3px;
  transform:translateY(-50%) rotate(-45deg);border:solid #95b5b1;border-width:0 1.5px 1.5px 0;
}
body[data-atlas] #tools[data-tools-directory] :is(.atlas-rail a,.tool-picks a,.atlas-family a,summary,button):focus-visible {
  outline:2px solid #aee6d4;outline-offset:-2px;
}
@media(hover:hover) and (pointer:fine) {
  body[data-atlas] #tools[data-tools-directory] .tool-picks a:hover {background:#1d343b;border-color:#527471}
  body[data-atlas] #tools[data-tools-directory] .tool-picks a:hover strong {text-decoration:none}
  body[data-atlas] #tools[data-tools-directory] .atlas-rail a:hover {background:#20343a}
  body[data-atlas] #tools[data-tools-directory] .atlas-family a:hover span {color:#baebda;text-decoration:underline;text-underline-offset:3px}
}
@media(max-width:900px) and (min-width:701px) {
  body[data-atlas] #tools[data-tools-directory] .tool-picks {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px) {
  body[data-atlas] main#tools[data-tools-directory] {width:calc(100% - 26px)}
  body[data-atlas] #tools[data-tools-directory] .atlas-directory-head {grid-template-columns:minmax(0,1fr);gap:10px;padding:13px}
  body[data-atlas] #tools[data-tools-directory] .atlas-dir-input input {font-size:1rem}
  body[data-atlas] #tools[data-tools-directory] .atlas-dir-input input::placeholder {font-size:.875rem}
  body[data-atlas] #tools[data-tools-directory] .atlas-directory {display:block;margin-top:8px}
  body[data-atlas] #tools[data-tools-directory] .atlas-topic-picker {margin:0 0 15px}
  body[data-atlas] #tools[data-tools-directory] .atlas-topic-picker .atlas-rail {grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-atlas] #tools[data-tools-directory] #tool-recommendations h2,
  body[data-atlas] #tools[data-tools-directory] .atlas-section h2 {font-size:.9375rem;margin-bottom:6px}
  body[data-atlas] #tools[data-tools-directory] .tool-picks {grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
}
@media(max-width:550px) {
  body[data-atlas] #tools[data-tools-directory] .atlas-families {grid-template-columns:minmax(0,1fr);gap:10px}
  body[data-atlas] #tools[data-tools-directory] .tool-picks a {
    grid-template-columns:minmax(0,1fr);align-content:start;justify-items:start;gap:4px;min-height:72px;padding:8px 10px;
  }
  body[data-atlas] #tools[data-tools-directory] .tool-picks .directory-pick-icon {width:17px;height:17px}
}
@media(max-width:355px) {
  body[data-atlas] #tools[data-tools-directory] .tool-picks a {padding-inline:6px}
}
@media(scripting:none) and (max-width:700px) {
  body[data-atlas] #tools[data-tools-directory] .atlas-topic-picker {position:static}
}

/* Shared navigation, catalogues and guide reading surfaces */
body[data-atlas] {
  --hq-ink:#edf3f1;--hq-copy:#bdcdd0;--hq-hint:#a8bcbe;
  --hq-mint:#a5deca;--hq-paper:#12252e;--hq-tint:#1a333a;
  --hq-rule:#30454d;--hq-soft-rule:#243940;--hq-focus:#ace7d2;
  --hq-gutter:clamp(24px,2.6vw,38px);--hq-section-gap:clamp(22px,2.5vw,34px);
}
body[data-atlas] .atlas-crumb {color:var(--hq-hint);column-gap:9px}
body[data-atlas] > .atlas-crumb {width:min(1200px,calc(100% - 2 * var(--hq-gutter)));border:0}
body[data-atlas] .atlas-crumb a {color:var(--hq-copy);text-underline-offset:3px}
body[data-atlas] .atlas-crumb i {color:#789195}

/* Use one visual language for the six shortcuts on the homepage, Tools and Quick Access. */
#main-content #home-directory #home-recommended-tools nav,
body[data-atlas] #tools[data-tools-directory] .tool-picks,
#nav[data-field-menu] .hq-menu-grid .menu-tool-grid {
  gap:0 clamp(12px,1.4vw,22px);padding:0;border:0;border-radius:0;background:none;box-shadow:none
}
#main-content #home-directory #home-recommended-tools nav a[data-priority-tool]:not([hidden]),
body[data-atlas] #tools[data-tools-directory] .tool-picks a,
#nav[data-field-menu] .hq-menu-grid .menu-tool-grid > .menu-tool {
  display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;align-content:center;justify-content:normal;
  column-gap:10px;row-gap:3px;padding:12px 4px!important;margin:0;
  min-height:74px;box-sizing:border-box;
  background:transparent!important;border:0;border-bottom:1px solid var(--hq-rule);border-radius:0;box-shadow:none;
}
#main-content #home-directory .home-picks .home-pick-icon,
body[data-atlas] #tools[data-tools-directory] .tool-picks .directory-pick-icon,
#nav[data-field-menu] .hq-menu-grid .menu-tool .menu-tool-icon {
  box-sizing:border-box;display:block;align-self:center;justify-self:start;
  width:30px;height:30px;min-width:0;margin:0;padding:6px;border-radius:8px;
  background:var(--hq-tint);color:var(--hq-mint);
}
#main-content #home-directory #home-recommended-tools .hq-tool-pick-copy,
body[data-atlas] #tools[data-tools-directory] .tool-picks .directory-pick-copy {display:grid;gap:3px;min-width:0}
#main-content #home-directory #home-recommended-tools .hq-tool-pick-copy strong,
body[data-atlas] #tools[data-tools-directory] .tool-picks strong {font-weight:620;line-height:1.35;color:var(--hq-ink)}
#main-content #home-directory #home-recommended-tools .hq-tool-pick-copy > span,
body[data-atlas] #tools[data-tools-directory] .tool-picks small {line-height:1.45;margin:0;color:var(--hq-copy)}
#nav[data-field-menu] .hq-menu-grid .menu-tool-grid > .menu-tool {grid-template-areas:"icon title" "icon note";align-content:center;justify-items:start;row-gap:2px}
#nav[data-field-menu] .hq-menu-grid .menu-tool .menu-tool-icon {grid-area:icon}
#nav[data-field-menu] .hq-menu-grid .menu-tool .hq-short-name {grid-area:title;align-self:end}
#nav[data-field-menu] .hq-menu-grid .menu-tool .menu-tool-note {grid-area:note;align-self:start;margin-top:0;color:var(--hq-copy);line-height:1.45}
#nav[data-field-menu] .hq-menu-grid .menu-tool-grid > .menu-tool[aria-current="page"] {background:var(--hq-tint)!important;box-shadow:inset 2px 0 var(--hq-mint)}
#nav[data-field-menu] .hq-menu-grid .menu-topics {margin-block-start:4px}
#main-content #home-directory .home-picks {column-gap:clamp(22px,3vw,46px);padding-bottom:19px}
#main-content #home-directory .home-picks .hq-guide-head {margin-bottom:7px}
#main-content #home-directory #home-guides nav a[data-guide]:not([hidden]) {min-height:54px;border-bottom-color:var(--hq-rule)}
#main-content #home-intro {margin-bottom:var(--hq-section-gap)}
#main-content #home-intro .atlas-hero,
#main-content #home-intro .hq-launches {border-color:var(--hq-soft-rule)}
#main-content #home-directory .home-directory-head {margin-bottom:13px}
@media(hover:hover) and (pointer:fine) {
  #main-content #home-directory #home-recommended-tools nav a[data-priority-tool]:not([hidden]):hover,
  body[data-atlas] #tools[data-tools-directory] .tool-picks a:hover,
  #nav[data-field-menu] .hq-menu-grid .menu-tool-grid > .menu-tool:hover {background:#192e35!important}
}

/* Player Tools. Separate sections with space and reserve the stronger surface for actions. */
body[data-atlas] main#tools[data-tools-directory] {
  width:min(1200px,calc(100% - 2 * var(--hq-gutter)));margin-block:4px 34px;
}
body[data-atlas] #tools[data-tools-directory] .atlas-directory-head {
  align-items:center;grid-template-columns:minmax(0,1fr) minmax(240px,34%);
  padding:clamp(12px,1.6vw,22px) 0 clamp(17px,1.8vw,24px);border:0;
  border-bottom:1px solid var(--hq-rule);border-radius:0;background:none;
}
body[data-atlas] #tools[data-tools-directory] .atlas-directory-head p {margin-top:6px}
body[data-atlas] #tools[data-tools-directory] .atlas-directory {column-gap:clamp(25px,3vw,45px);margin-top:var(--hq-section-gap)}
body[data-atlas] #tools[data-tools-directory] .atlas-topic-picker {border:0;border-radius:0;background:transparent}
body[data-atlas] #tools[data-tools-directory] .atlas-topic-picker summary {padding-inline:4px}
body[data-atlas] #tools[data-tools-directory] .atlas-topic-picker .atlas-rail {gap:3px;padding:2px 0 0}
body[data-atlas] #tools[data-tools-directory] .atlas-rail .atlas-topic {border-color:transparent;border-radius:4px;padding-inline:9px}
body[data-atlas] #tools[data-tools-directory] .atlas-rail .atlas-topic[aria-current] {border-color:transparent;background:#1a3237;box-shadow:inset 2px 0 var(--hq-mint)}
body[data-atlas] #tools[data-tools-directory] #tool-recommendations {margin-bottom:var(--hq-section-gap)}
body[data-atlas] #tools[data-tools-directory] #tool-recommendations h2,
body[data-atlas] #tools[data-tools-directory] .atlas-section h2 {
  font:635 clamp(1.0625rem,1rem + .35vw,1.3rem)/1.28 system-ui,sans-serif;
  margin:0 0 12px;letter-spacing:-.022em
}
body[data-atlas] #tools[data-tools-directory] .atlas-section {margin:0 0 var(--hq-section-gap)}
body[data-atlas] #tools[data-tools-directory] .atlas-section h2 {gap:9px;margin-bottom:15px}
body[data-atlas] #tools[data-tools-directory] .atlas-section h2 i {height:15px;width:3px}
body[data-atlas] #tools[data-tools-directory] .atlas-families {gap:20px clamp(18px,2.4vw,30px)}
body[data-atlas] #tools[data-tools-directory] .atlas-family {border:0;border-radius:0;background:transparent;overflow:visible}
body[data-atlas] #tools[data-tools-directory] .atlas-family h3 {
  margin:0;padding:9px 11px;background:var(--hq-paper);border-radius:5px;
  color:#cfe4df;font-weight:620;line-height:1.4
}
body[data-atlas] #tools[data-tools-directory] .atlas-family ul {padding:0 4px}
body[data-atlas] #tools[data-tools-directory] .atlas-family li {border:0;border-bottom:1px solid var(--hq-soft-rule)}
body[data-atlas] #tools[data-tools-directory] .atlas-family li a {min-height:46px;padding:9px 18px 9px 7px;gap:3px;line-height:1.45}
body[data-atlas] #tools[data-tools-directory] .atlas-family li a small {line-height:1.48}
body[data-atlas] #tools[data-tools-directory] .atlas-family li a::after {right:5px}

/* Illustrated guides. Keep the artwork and give the title its own unboxed space. */
body[data-atlas] #main .archive-intro,body[data-atlas] #main .reader .hq-guide-cover {
  border:0;border-radius:0;background:transparent;overflow:visible;align-items:center;gap:clamp(18px,2.8vw,38px)
}
body[data-atlas] #main .archive-intro > div,body[data-atlas] #main .reader .hq-cover-copy {padding:8px 0}
body[data-atlas] #main .archive-intro > img.hq-scene,
body[data-atlas] #main .hq-guide-cover > img.hq-scene {border-radius:8px}
body[data-atlas] #main .archive-intro h1,
body[data-atlas] #main .reader .hq-guide-cover h1 {
  font:640 clamp(1.3rem,1.08rem + .9vw,1.85rem)/1.2 system-ui,sans-serif!important;letter-spacing:-.03em;
}
body[data-atlas] #main .reader .hq-contents {margin-block:clamp(15px,2vw,23px);background:var(--hq-paper);border-color:var(--hq-rule)}
body[data-atlas] #main:has(.archive-intro) .filters {margin-block-start:clamp(16px,2.1vw,28px)}
body[data-atlas] #main .archive-list {gap:0 clamp(18px,2.2vw,30px)}
body[data-atlas] #main a.archive-card {border-color:var(--hq-rule)}
body[data-atlas] #main a.hq-archive-feature {padding-bottom:12px;margin-bottom:8px;background:transparent;border:0;border-bottom:1px solid var(--hq-rule);border-radius:0}
body[data-atlas] #main a.hq-archive-feature > img {border-radius:7px}
body[data-atlas] #main a.hq-archive-feature .hq-archive-copy {padding:10px 0 3px}
body[data-atlas] #main .hq-archive-copy p {line-height:1.52}
body[data-atlas] #main .archive-card .category {color:#c4cbb7}
body[data-atlas] #main-content[data-hq-legacy] > .hq-legacy-cover {border:0;border-radius:8px;margin-bottom:17px}
body[data-atlas].city-rewards-page #main-content .cr-hero,
body[data-atlas].account-app #main-content #account-welcome {border-color:var(--hq-rule);border-radius:9px}
body[data-atlas].account-app #main-content .account-masthead-actions {gap:7px 10px}
body[data-atlas].city-rewards-page #main-content .cr-hero {margin-bottom:18px}
body[data-atlas].account-app #main-content .account-heading #account-title,
body[data-atlas].city-rewards-page #main-content .cr-hero-copy h1[data-radar-copy="heading"] {
  font:640 clamp(1.3rem,1.08rem + .9vw,1.85rem)/1.2 system-ui,sans-serif!important;letter-spacing:-.028em
}

/* Footer links follow the same order as the primary navigation. */
body[data-atlas] .atlas-end[data-site-end] {
  box-sizing:border-box;display:grid;grid-template-columns:minmax(145px,.85fr) minmax(0,1.5fr) minmax(160px,.8fr);align-items:start;
  width:min(1200px,calc(100% - 2 * var(--hq-gutter)));gap:16px clamp(18px,2.5vw,34px);
  margin:var(--hq-section-gap) auto 0;padding:16px 0 24px;border:0;border-top:1px solid var(--hq-rule);
  border-radius:0;background:none;box-shadow:none;color:var(--hq-copy);
}
body[data-atlas] .atlas-end[data-site-end] .atlas-end-brand {min-height:44px;padding:0;gap:9px;justify-self:start;font:640 .875rem/1.3 system-ui,sans-serif}
body[data-atlas] .atlas-end[data-site-end] .atlas-end-brand img {width:24px;height:24px}
body[data-atlas] .atlas-end[data-site-end] .end-links {display:flex;gap:0 16px;align-items:center;flex-wrap:wrap}
body[data-atlas] .atlas-end[data-site-end] :is(.end-links a,.end-topics a,summary) {
  display:flex;align-items:center;box-sizing:border-box;min-height:44px;min-width:0;padding:5px 0;
  font:500 .8125rem/1.4 system-ui,sans-serif;color:var(--hq-copy);line-height:1.4;overflow-wrap:anywhere;
}
body[data-atlas] .atlas-end[data-site-end] .end-topics {min-width:0}
body[data-atlas] .atlas-end[data-site-end] summary {gap:12px;justify-content:space-between;cursor:pointer;list-style:none}
body[data-atlas] .atlas-end[data-site-end] summary::-webkit-details-marker {display:none}
body[data-atlas] .atlas-end[data-site-end] summary::after {content:"";width:7px;height:7px;border:solid var(--hq-mint);border-width:0 1.5px 1.5px 0;transform:translateY(-2px) rotate(45deg);flex:none;margin-inline-end:2px}
body[data-atlas] .atlas-end[data-site-end] details[open] summary::after {transform:translateY(2px) rotate(225deg)}
body[data-atlas] .atlas-end[data-site-end] .end-topics div {display:grid;gap:0}
body[data-atlas] .atlas-end[data-site-end] :focus-visible {outline:2px solid var(--hq-focus);outline-offset:-2px;border-radius:3px}

@media(min-width:701px) {
  body[data-atlas] #tools[data-tools-directory] .tool-picks strong,
  #main-content #home-directory #home-recommended-tools .hq-tool-pick-copy strong {font-size:.875rem}
}
@media(max-width:850px) {
  body[data-atlas] #main a.hq-archive-feature {flex-direction:row;align-items:flex-start;gap:12px;padding:12px 0;margin:0}
  body[data-atlas] #main a.hq-archive-feature > img {width:clamp(76px,21%,104px);height:auto;aspect-ratio:4/3;min-height:0;object-fit:cover}
  body[data-atlas] #main a.hq-archive-feature .hq-archive-copy {padding:0}
}
@media(max-width:700px) {
  body[data-atlas] {--hq-gutter:clamp(13px,4.2vw,20px);--hq-section-gap:24px}
  body[data-atlas] #tools[data-tools-directory] .atlas-directory-head {
    grid-template-columns:minmax(0,1fr);gap:13px;padding:7px 0 0;border:0;
  }
  body[data-atlas] #tools[data-tools-directory] .atlas-directory {margin-top:8px}
  body[data-atlas] #tools[data-tools-directory] .atlas-topic-picker {
    margin-bottom:19px;border:1px solid var(--hq-rule);border-radius:7px;background:#12242c;
  }
  body[data-atlas] #tools[data-tools-directory] .atlas-topic-picker summary {padding-inline:11px}
  body[data-atlas] #tools[data-tools-directory] .atlas-topic-picker .atlas-rail {padding:0 5px 5px}
  body[data-atlas] #tools[data-tools-directory] #tool-recommendations h2 {margin-bottom:8px}
  body[data-atlas] #tools[data-tools-directory] .atlas-section h2 {margin-bottom:13px}
  body[data-atlas] #tools[data-tools-directory] .atlas-families {row-gap:18px}
  #main-content #home-intro {margin-bottom:20px}
  #main-content #home-directory .home-picks {row-gap:16px}
  body[data-atlas] .atlas-end[data-site-end] {grid-template-columns:1fr;gap:4px;padding-top:12px}
  body[data-atlas] .atlas-end[data-site-end] .end-links,
  body[data-atlas] .atlas-end[data-site-end] .end-topics div {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
  body[data-atlas] .atlas-end[data-site-end] .end-topics {border-top:1px solid var(--hq-soft-rule);margin-top:4px}
}
@media(max-width:600px) {
  body[data-atlas] #main .archive-intro,body[data-atlas] #main .reader .hq-guide-cover {gap:13px}
  body[data-atlas] #main .archive-intro > div,body[data-atlas] #main .reader .hq-cover-copy {grid-area:1/1;padding:3px 0 0}
  body[data-atlas] #main .archive-intro > img.hq-scene,
  body[data-atlas] #main .hq-guide-cover > img.hq-scene {grid-area:2/1}
}
@media(max-width:550px) {
  #main-content #home-directory #home-recommended-tools nav a[data-priority-tool]:not([hidden]),
  body[data-atlas] #tools[data-tools-directory] .tool-picks a,
  #nav[data-field-menu] .hq-menu-grid .menu-tool-grid > .menu-tool {
    grid-template-columns:minmax(0,1fr);grid-template-areas:none;align-content:start;justify-items:start;row-gap:5px;
    min-height:80px;padding:9px 3px 11px!important;
  }
  #nav[data-field-menu] .hq-menu-grid .menu-tool-grid > .menu-tool {grid-template-areas:"icon" "title" "note";row-gap:3px}
  #main-content #home-directory .home-picks .home-pick-icon,
  body[data-atlas] #tools[data-tools-directory] .tool-picks .directory-pick-icon,
  #nav[data-field-menu] .hq-menu-grid .menu-tool .menu-tool-icon {width:25px;height:25px;padding:4px;border-radius:6px}
}
@media(forced-colors:active) {
  .atlas-end[data-site-end] summary::after {border-color:ButtonText}
}
#main-content #home-directory #home-recommended-tools .hq-tool-pick-copy :is(strong,span),
#nav[data-field-menu] .hq-menu-grid .menu-tool :is(.hq-short-name,.menu-tool-note),
#nav[data-field-menu] .hq-menu-toolbar .directory-views button[data-directory-view] {
  min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;hyphens:auto;
}
#nav[data-field-menu] .hq-menu-toolbar .directory-views button[data-directory-view] {height:auto!important}
#main-content #home-directory #home-recommended-tools .hq-tool-pick-copy {
  display:flex;flex-flow:column nowrap;align-items:flex-start;gap:3px;width:100%
}
#main-content #home-directory #home-recommended-tools nav,
body[data-atlas] #tools[data-tools-directory] .tool-picks,
#nav[data-field-menu] .hq-menu-grid .menu-tool-grid {container:tool-shortcuts / inline-size}
@container tool-shortcuts (max-width:16rem) {
  #main-content #home-directory #home-recommended-tools nav a[data-priority-tool]:not([hidden]),
  body[data-atlas] #tools[data-tools-directory] .tool-picks a,
  #nav[data-field-menu] .hq-menu-grid .menu-tool-grid > .menu-tool {
    grid-column:1/-1;grid-template-columns:26px minmax(0,1fr);align-items:center;align-content:center;
    row-gap:3px;column-gap:10px;min-height:60px;padding:10px 4px!important
  }
  #nav[data-field-menu] .hq-menu-grid .menu-tool-grid > .menu-tool {grid-template-areas:"icon title" "icon note"}
}
@media(max-width:600px) {
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .header-inner .hq-brand .companion-wordmark {
    white-space:normal;min-width:0;text-wrap:balance;overflow-wrap:anywhere
  }
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .header-inner .desktop-shortcuts {
    flex-wrap:wrap
  }
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .desktop-shortcuts a[data-primary-route] {
    flex:1 1 auto;max-width:100%;overflow-wrap:normal;hyphens:manual;white-space:normal
  }
}
@media(max-width:600px) {
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .header-inner {
    grid-template-rows:minmax(44px,auto) auto!important;max-height:none!important
  }
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .header-inner .hq-brand,
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .header-inner .desktop-shortcuts {
    height:auto!important;max-height:none!important
  }
}
#main-content #home-directory {container:home-catalogue / inline-size}
@container home-catalogue (max-width:18em) or (max-width:17rem) {
  #main-content #home-directory .home-directory-head {
    grid-template-columns:minmax(0,1fr);grid-template-areas:"heading" "topic" "search";gap:8px;
  }
  #main-content #home-directory .home-directory-head .hq-query-category {
    width:100%;max-width:100%;
  }
}

@media(max-width:700px) {
  body[data-atlas] #tools[data-tools-directory] :is(.atlas-section,.atlas-section h2) {
    scroll-margin-top:calc(var(--directory-header,0px) + var(--directory-picker-height,44px) + 10px);
  }
}

/* The global search shares the shortcut icons and typography used in the directory. */
#hq-finder[popover]:popover-open {
  --finder-paper:#10212a;--finder-rule:#30454d;--finder-ink:#edf3f1;--finder-muted:#b9c9cb;--finder-mint:#a5deca;
  inset:var(--finder-top,8px) max(12px,calc((100vw - 1220px)/2)) auto auto;
  box-sizing:border-box;width:min(30rem,calc(100% - 24px));max-height:calc(var(--finder-height,100dvh) - var(--finder-top,8px) - 8px);
  margin:0;padding:0;color:var(--finder-ink);background:var(--finder-paper);border:1px solid #425b62;
  border-radius:12px;box-shadow:0 12px 38px #020b12a8;overflow:auto;color-scheme:dark;
}
#hq-finder[popover]::backdrop {background:rgb(4 12 18 / .58)}
#hq-finder[popover] .hq-finder-inner {padding:0;min-width:0;container:finder / inline-size}
#hq-finder[popover] .hq-finder-field {
  display:flex;align-items:center;gap:10px;min-height:50px;padding:0 3px 0 14px;
  border:0;border-radius:0;background:#142a33;color:var(--finder-mint)
}
#hq-finder[popover] .hq-finder-field:focus-within {outline:0;box-shadow:inset 0 -2px 0 #77bca9}
#hq-finder[popover] #hq-finder-query {min-height:44px;font:450 1rem/1.4 system-ui,sans-serif;color:var(--finder-ink)}
#hq-finder[popover] #hq-finder-query::placeholder {color:#bfcecd;font-weight:400}
#hq-finder[popover] .hq-finder-dismiss {height:44px;width:44px;flex:none;color:var(--finder-muted)}
#hq-finder[popover] .hq-finder-dismiss svg {width:15px;height:15px}
#hq-finder[popover] .hq-finder-panel {
  box-sizing:border-box;padding:0 12px 6px;background:var(--finder-paper);border:0;border-radius:0;
  max-height:min(32rem,calc(var(--finder-height,100dvh) - var(--finder-top,8px) - 67px));overflow:auto;
  box-shadow:none;scrollbar-gutter:stable
}
#hq-finder[popover] .hq-finder-tools {
  display:grid;align-items:center;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"status filter";
  gap:4px 12px;padding:6px 1px 7px;border:0;border-bottom:1px solid var(--finder-rule);background:transparent;
}
#hq-finder[popover] .hq-finder-panel[data-filtered] .hq-finder-tools {
  grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"filter reset" "status status";padding-bottom:9px;
}
#hq-finder[popover] .hq-finder-tools select {
  grid-area:filter;box-sizing:border-box;justify-self:end;max-width:100%;width:auto;min-width:0;min-height:44px;
  height:auto;margin:0;padding:6px 7px;border:1px solid #3d555c;border-radius:6px;
  font:500 .8125rem/1.35 system-ui,sans-serif;color:#e0eae7;background:#152932;
}
#hq-finder[popover] .hq-finder-panel[data-filtered] .hq-finder-type {justify-self:start}
#hq-finder[popover] .hq-finder-count {
  grid-area:status;font:520 .8125rem/1.45 system-ui,sans-serif;color:var(--finder-muted);min-width:0;overflow-wrap:anywhere;
}
#hq-finder[popover] .hq-finder-reset,#hq-finder[popover] .hq-finder-family button,
#hq-finder[popover] .hq-finder-more {
  box-sizing:border-box;min-height:44px;margin:0;border:0;border-radius:4px;padding:6px;
  color:var(--finder-mint);background:transparent;font:580 .8125rem/1.35 system-ui,sans-serif;
}
#hq-finder[popover] .hq-finder-reset {grid-area:reset;justify-self:end;cursor:pointer}
#hq-finder[popover] .hq-finder-family {padding:3px 1px;gap:9px;background:var(--finder-paper);border-color:var(--finder-rule)}
#hq-finder[popover] [role=option] {
  box-sizing:border-box;min-height:46px;padding:8px 6px;gap:4px 12px;border:0;border-bottom:1px solid #273c44;
  background:transparent;color:var(--finder-ink);font:560 .875rem/1.4 system-ui,sans-serif
}
#hq-finder[popover] [role=option].finder-suggestion {
  display:grid;grid-template-columns:26px minmax(0,1fr) auto;gap:9px;align-items:center;
}
#hq-finder[popover] .finder-result-icon {
  box-sizing:border-box;display:block;width:26px;height:26px;margin:0;padding:5px;color:var(--finder-mint);background:#1c363b;border-radius:6px;
}
#hq-finder[popover] [role=option] .hq-finder-title {min-width:0}
#hq-finder[popover] [role=option] small {color:var(--finder-muted);font:450 .75rem/1.35 system-ui,sans-serif}
#hq-finder[popover] .hq-finder-variant {color:var(--finder-muted);font-size:.78125rem}
#hq-finder[popover] [role=option][aria-selected=true] {background:#203b3e;box-shadow:inset 2px 0 #a5deca}
#hq-finder[popover] :is(button,select,[role=option]):focus-visible {outline:2px solid var(--finder-mint);outline-offset:-2px}
@media(hover:hover) and (pointer:fine) {
  #hq-finder[popover] [role=option]:hover,#hq-finder[popover] .hq-finder-dismiss:hover {background:#1c343a}
  #hq-finder[popover] :is(.hq-finder-reset,.hq-finder-more,.hq-finder-family button):hover {text-decoration:underline;text-underline-offset:3px}
}
@media(max-width:650px) {
  #hq-finder[popover]:popover-open {inset-inline:8px;width:auto}
  #hq-finder[popover] #hq-finder-query {font-size:max(16px,1rem)}
  #hq-finder[popover] .hq-finder-tools select {font-size:max(16px,1rem)}
}
@container finder (max-width:19em) or (max-width:16rem) {
  #hq-finder[popover] .hq-finder-tools {grid-template-columns:minmax(0,1fr);grid-template-areas:"filter" "status"}
  #hq-finder[popover] .hq-finder-tools select {justify-self:start}
  #hq-finder[popover] .hq-finder-panel[data-filtered] .hq-finder-tools {grid-template-columns:minmax(0,1fr);grid-template-areas:"filter" "status" "reset"}
  #hq-finder[popover] .hq-finder-reset {justify-self:start}
  #hq-finder[popover] [role=option].finder-suggestion {grid-template-columns:26px minmax(0,1fr);gap:2px 9px}
  #hq-finder[popover] .finder-suggestion .finder-result-icon {grid-row:1/3}
  #hq-finder[popover] .finder-suggestion small {grid-column:2;text-align:start}
}
@media(forced-colors:active) {
  #hq-finder[popover] [aria-selected=true] {outline:2px solid Highlight;outline-offset:-2px}
}
#hq-finder[popover] #hq-finder-query::-webkit-search-cancel-button {display:none}
/* Long translated choices can wrap while the control keeps its native picker. */
#hq-finder[popover] .finder-kind {
  position:relative;grid-area:filter;display:grid;grid-template-columns:minmax(0,1fr) 7px;align-items:center;
  justify-self:end;gap:8px;box-sizing:border-box;min-width:0;max-width:100%;min-height:44px;
  padding:6px 10px;color:#e0eae7;background:#152932;border:1px solid #3d555c;border-radius:6px;
  font:500 .8125rem/1.35 system-ui,sans-serif;overflow-wrap:anywhere;hyphens:auto;
}
#hq-finder[popover] .finder-kind::after {
  content:"";width:6px;height:6px;box-sizing:border-box;border:solid currentColor;border-width:0 1.5px 1.5px 0;
  transform:translateY(-2px) rotate(45deg)
}
#hq-finder[popover] .finder-kind:focus-within {outline:2px solid var(--finder-mint);outline-offset:-2px}
#hq-finder[popover] .finder-kind select {
  position:absolute;inset:0;width:100%;height:100%;max-width:100%;min-width:0;padding:0;opacity:0;cursor:pointer
}
#hq-finder[popover] .hq-finder-panel[data-filtered] .finder-kind {justify-self:start}
@container finder (max-width:19em) or (max-width:16rem) {
  #hq-finder[popover] .finder-kind {justify-self:start}
  #hq-finder[popover] .hq-finder-family {display:grid;grid-template-columns:minmax(0,1fr);gap:2px;padding:4px 0}
  #hq-finder[popover] .hq-finder-family button {min-width:0;max-width:100%;justify-self:start;white-space:normal;overflow-wrap:anywhere}
  #hq-finder[popover] .hq-finder-family strong {padding:0 4px 7px;min-width:0}
  #hq-finder[popover] [role=option]:not(.finder-suggestion) {display:grid;grid-template-columns:minmax(0,1fr);gap:2px;justify-items:start}
  #hq-finder[popover] [role=option]:not(.finder-suggestion) small {text-align:start;white-space:normal}
}

/* The archive search and its result count use the same reading measure as the guide list. */
body[data-atlas] #main form#archive-search-panel.filters {
  display:grid;grid-template-columns:minmax(0,1fr);align-items:end;gap:0;
  margin:clamp(15px,2.1vw,26px) 0 0;padding:12px clamp(10px,1.6vw,20px) 0;
  border:1px solid var(--hq-rule,#354853);border-radius:9px;background:var(--hq-paper,#12222a)
}
body[data-atlas] #main #archive-search-panel :is(label,.archive-filter-options,#archive-filters) {min-width:0}
body[data-atlas] #main #archive-search-panel label {
  display:grid;align-content:start;gap:.32rem;margin:0;
  font:600 .8125rem/1.4 system-ui,sans-serif;color:var(--atlas-ink,#edf1ed);overflow-wrap:anywhere
}
body[data-atlas] #main #archive-search-panel .archive-query {grid-column:auto;padding:0 0 10px}
body[data-atlas] #main #archive-search-panel :is(input,select) {
  width:100%;min-width:0;max-width:100%;min-height:44px;height:auto;margin:0;
  padding:.47em .7em;border:1px solid #627780;border-radius:6px;
  background-color:#0d1b23;color:#eff3ef;font:400 1rem/1.45 system-ui,sans-serif
}
body[data-atlas] #main #archive-search-panel select {padding-inline-end:1.75em}
body[data-atlas] #main #archive-search-panel input::placeholder {color:#aebec4;font-size:1em}
body[data-atlas] #main #archive-search-panel :is(input,select,summary,button):focus-visible,
body[data-atlas] #main #archive-result-summary #clear:focus-visible {
  outline:2px solid var(--atlas-mint,#8adbc8);outline-offset:2px
}
body[data-atlas] #main #archive-filters {
  padding:0;margin:0;border:0;border-block-start:1px solid var(--hq-rule,#354853);
  border-radius:0;background:transparent;box-shadow:none
}
body[data-atlas] #main #archive-filter-toggle {
  position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2px .8em;
  min-height:44px;margin:0;padding:.42em 1.15em .42em 0;
  color:var(--atlas-ink,#edf1ed);font:600 .875rem/1.42 system-ui,sans-serif;
  cursor:pointer;list-style:none;overflow-wrap:anywhere
}
body[data-atlas] #main #archive-filter-toggle::-webkit-details-marker {display:none}
body[data-atlas] #main #archive-filter-toggle::after {
  content:"";width:.44em;height:.44em;box-sizing:border-box;
  border:solid var(--atlas-mint,#8adbc8);border-width:0 1.5px 1.5px 0;
  position:absolute;inset-inline-end:.2em;top:calc(50% - .22em);transform:translateY(-.12em) rotate(45deg)
}
body[data-atlas] #main #archive-filters[open] > #archive-filter-toggle::after {transform:translateY(.12em) rotate(225deg)}
body[data-atlas] #main #archive-filter-state:empty {display:none}
body[data-atlas] #main #archive-filter-state {min-width:0;max-width:100%;text-align:start;color:var(--atlas-mint,#8adbc8);font-size:.8125rem;font-weight:500}
body[data-atlas] #main .archive-filter-options {
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:10px 16px;padding:0 0 12px
}
body[data-atlas] #main #archive-filters .archive-filter-options > label {grid-column:auto}
body[data-atlas] #main #archive-search-panel .archive-apply {
  justify-self:start;min-height:44px;max-width:100%;margin:0 0 12px;
  padding:.44em 1em;font:600 .875rem/1.45 system-ui,sans-serif;overflow-wrap:anywhere
}
body[data-atlas] #main #archive-search-panel[data-archive-enhanced] .archive-apply,
body[data-atlas] #main #archive-search-panel[data-archive-inline] #archive-filter-toggle {display:none}
body[data-atlas] #main #archive-result-summary {
  display:flex;align-items:center;justify-content:space-between;gap:5px 14px;flex-wrap:wrap;
  min-height:44px;padding:4px 0;margin:0
}
body[data-atlas] #main #archive-result-summary #result-count {margin:0;font:550 .8125rem/1.45 system-ui,sans-serif;color:var(--atlas-muted,#bfcbcb)}
body[data-atlas] #main #archive-result-summary #clear:not([hidden]) {
  display:inline-flex;align-items:center;min-height:44px;padding:.25em .1em;
  color:var(--atlas-mint,#8adbc8);font:600 .8125rem/1.4 system-ui,sans-serif;text-underline-offset:.2em
}
body[data-atlas] #main #archive-result-summary #clear[hidden] {display:none!important}
body[data-atlas] #main #empty:not([hidden]) {margin:4px 0 24px;max-width:56ch;line-height:1.55}
@media (min-width:48em) {
  body[data-atlas] #main form#archive-search-panel.filters {
    grid-template-columns:minmax(0,1.05fr) minmax(0,1.4fr);align-items:start;gap:12px 18px;padding-block:15px
  }
  body[data-atlas] #main #archive-search-panel .archive-query {padding:0}
  body[data-atlas] #main #archive-search-panel #archive-filters {border:0}
  body[data-atlas] #main #archive-filter-toggle {min-height:44px}
  body[data-atlas] #main #archive-search-panel .archive-filter-options {padding:0}
  body[data-atlas] #main #archive-search-panel .archive-apply {margin:0}
}
@media (max-width:32em) {
  body[data-atlas] #main a.archive-card:is(.hq-archive-feature,.hq-archive-item) {
    display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto auto;
    align-items:start;align-content:start;gap:0 12px;overflow:visible
  }
  body[data-atlas] #main a.archive-card:is(.hq-archive-feature,.hq-archive-item) > img {
    grid-area:1/1/3/2;align-self:center;margin:0
  }
  body[data-atlas] #main a.archive-card.hq-archive-feature > img {width:clamp(58px,16vw,76px);min-width:0;aspect-ratio:4/3}
  body[data-atlas] #main a.archive-card:is(.hq-archive-feature,.hq-archive-item) .hq-archive-copy {display:contents}
  body[data-atlas] #main a.archive-card:is(.hq-archive-feature,.hq-archive-item) .category {grid-area:1/2;align-self:end}
  body[data-atlas] #main a.archive-card:is(.hq-archive-feature,.hq-archive-item) h2 {grid-area:2/2;align-self:start;overflow-wrap:anywhere}
  body[data-atlas] #main a.archive-card:is(.hq-archive-feature,.hq-archive-item) p {grid-area:3/1/4/-1;width:100%;margin:6px 0 0;overflow-wrap:anywhere}
}
/* Long localized guide titles and category words can exceed the track at enlarged text sizes. */
body[data-atlas] #main .archive-list .hq-archive-copy {min-width:0;max-width:100%}
body[data-atlas] #main .archive-list :is(.category,h2,p) {min-width:0;overflow-wrap:anywhere}

/* Keep shared header actions recognizable on pages with their own button themes. */
@media (min-width: 760px) {
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .header-inner button.tw-lang-header {
    color:#deebed!important; background:#172835!important; border:1px solid #35505c!important; box-shadow:none!important;
  }
  body[data-atlas] header[data-hq-masthead].homepage-shared-header .header-inner button.tw-lang-header:is(:hover,[aria-expanded="true"]) {
    background:#1d3540!important; border-color:#62948f!important;
  }
}
/* This first keyboard stop stays outside the reading layout. */
body[data-atlas] > a.hq-skip-action {
  position:fixed!important; z-index:2147483645!important; inset:8px auto auto 8px!important;
  padding:.6rem .9rem!important; max-width:calc(100vw - 16px); box-sizing:border-box;
  background:#152c36!important; color:#f1faf7!important; border:1px solid #89c6ba!important; border-radius:6px!important;
  font:600 .875rem/1.35 system-ui,sans-serif!important; text-decoration:none!important;
}
body[data-atlas] > a.hq-skip-action:not(:focus) {clip-path:inset(50%)!important; width:1px!important;height:1px!important;overflow:hidden!important;padding:0!important;white-space:nowrap!important;pointer-events:none}
body[data-atlas] > a.hq-skip-action:focus {clip:auto!important;clip-path:none!important;transform:none!important;opacity:1!important;width:auto!important;height:auto!important;outline:2px solid #a2dfd1!important;outline-offset:2px!important}
body[data-atlas].teams-page main #hero-team-host .ht-heading,
body[data-atlas].teams-page main #teams-overview {margin:0 0 1rem;padding:0}
body[data-atlas].teams-page main :is(.ht-heading,#teams-overview) h1 {margin:0 0 .35rem!important;font-size:clamp(1.325rem,1.09rem + .9vw,1.85rem)!important;letter-spacing:-.021em;line-height:1.16!important}
body[data-atlas].teams-page main :is(.ht-heading,#teams-overview) > p {margin:0!important;max-width:59ch;font-size:.875rem!important;line-height:1.48}
body[data-atlas].teams-page main .ht-filter-bar {display:flex;flex-wrap:wrap;align-items:start;gap:.8rem 1.5rem;margin:.85rem 0 .68rem;padding:.8rem 0;border-block:1px solid #2b414c}
body[data-atlas].teams-page #hero-team-host .ht-filter-bar :is(.ht-purpose,.ht-branch) {display:flex;align-items:center;align-content:flex-start;flex-wrap:wrap;gap:.375rem;margin:0!important;min-width:0;max-width:100%;padding:0}
body[data-atlas].teams-page #hero-team-host .ht-filter-bar [hidden] {display:none!important}
body[data-atlas].teams-page .ht-filter-bar .team-filter-label {flex:1 0 100%;font-size:.8125rem;font-weight:650;line-height:1.35;color:#dce9e7;overflow-wrap:anywhere}
body[data-atlas].teams-page main .ht-filter-bar button {font:inherit;font-size:.8125rem!important;line-height:1.25;min-height:2.45rem;height:auto;white-space:normal;overflow-wrap:anywhere;max-width:100%;padding:.4rem .72rem;border:1px solid #334a55;border-radius:6px;box-shadow:none}
body[data-atlas].teams-page main .ht-filter-bar button[aria-pressed="true"] {background:#23423f!important;color:#edf9f4!important;border-color:#77b4a7!important}
body[data-atlas].teams-page main .team-guides {padding:.75rem .9rem;background:#122630;border:1px solid #2b414c;border-radius:8px}
body[data-atlas].teams-page main .team-guides > summary {font-weight:650;color:#e0ece9;line-height:1.4}
body[data-atlas].teams-page main .team-guides ul {padding-inline-start:1.1rem}
body[data-atlas].teams-page main .team-guides li {overflow-wrap:anywhere}
@media(max-width:650px) {
  body[data-atlas].teams-page main .ht-filter-bar {display:grid;gap:.7rem;padding:.75rem 0}
  body[data-atlas].teams-page main .ht-filter-bar button {min-height:2.75rem}
}
body[data-atlas].dedicated-tool main:has(.tool-intro) {padding-block-start:clamp(.45rem,1.2vw,1rem)}
body[data-atlas].dedicated-tool main .tool-intro {padding-block:.3rem .6rem;margin:0 0 .7rem}
body[data-atlas].dedicated-tool main .tool-intro h1 {margin-block:0 .35rem;overflow-wrap:anywhere}
body[data-atlas].dedicated-tool main .tool-intro p {margin-block:0;max-width:64ch}

body[data-atlas] :where(main,#tool,#catalogue,#calculator):target {scroll-margin-block-start:4.1rem}
@media(max-width:750px){body[data-atlas] :where(main,#tool,#catalogue,#calculator):target {scroll-margin-block-start:6rem}}

/* Empty account welcome: make Import and Restore the first actions in reading order. */
body[data-atlas].account-app #main-content:has(#account-welcome:not([hidden])) #update-account {display:none!important}
body[data-atlas].account-app #main-content:has(#account-welcome:not([hidden])) .account-heading {
  display:block;min-width:0;
}
body[data-atlas].account-app #main-content:has(#account-welcome:not([hidden])) .account-masthead {padding-bottom:.8rem;margin-bottom:0}
body[data-atlas].account-app #main-content:has(#account-welcome:not([hidden])) .account-intro {display:none}
body[data-atlas].account-app #main-content:has(#account-welcome:not([hidden])) .account-masthead-actions {
  display:flex;flex-wrap:wrap;justify-content:flex-start;margin-top:.35rem;
}
body[data-atlas].account-app #main-content:has(#account-welcome:not([hidden])) .local-badge {
  display:block;margin:0;padding:0;border:0;background:none;color:#abccc2;font:500 .8125rem/1.5 system-ui,sans-serif;
}
body[data-atlas].account-app #main-content #account-welcome {
  background:#152b35;border:1px solid #38525b;padding:clamp(1rem,2.8vw,1.6rem);border-radius:.625rem;
}
body[data-atlas].account-app #main-content #account-welcome h2 {
  margin:0 0 .45rem;font:640 clamp(1.0625rem,.98rem + .4vw,1.3rem)/1.28 system-ui,sans-serif!important;
  letter-spacing:-.017em;overflow-wrap:anywhere;
}
body[data-atlas].account-app #main-content #account-welcome p {max-width:63ch;margin:.3rem 0 .8rem;line-height:1.5}
body[data-atlas].account-app #main-content #account-welcome .setup-actions {
  display:flex;align-items:stretch;flex-wrap:wrap;gap:.55rem;margin:0;
}
body[data-atlas].account-app #main-content #account-welcome .setup-actions button {
  min-width:0;min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.3;
}
body[data-atlas].account-app #main-content #already-have-snapshot {
  background:#acdfcb!important;border:1px solid #acdfcb!important;color:#112c29!important;
}
body[data-atlas].account-app #main-content #already-have-snapshot:hover {background:#c2eedc!important}
body[data-atlas].account-app #main-content #account-welcome .setup-small {margin:.75rem 0 0;color:#b3c4c9;font-size:.8125rem}
body[data-atlas].account-app #main-content .account-welcome-tools {
  display:flex;flex-wrap:wrap;align-items:center;gap:0 1.25rem;margin-top:.85rem;padding-top:.35rem;border-top:1px solid #38505a;
}
body[data-atlas].account-app #main-content .account-welcome-tools :is(#prepare-snapshot,#account-bond-link) {
  display:inline-flex;align-items:center;min-height:44px;max-width:100%;padding:.25rem 0;background:none!important;
  border:0!important;box-shadow:none;color:#c4e6da!important;font:550 .8125rem/1.45 system-ui,sans-serif;
  text-decoration:underline;text-underline-offset:.19em;white-space:normal;overflow-wrap:anywhere;text-align:start;
}
@media(max-width:600px) {
  body[data-atlas].account-app #main-content #account-welcome .setup-actions button {flex:1 1 8.25rem;width:auto;padding-inline:.625rem}
}
/* Radar's location finder and rankings are one column of work. The reference guide sits alongside. */
body[data-atlas].city-rewards-page #main-content .cr-tools-layout {
  grid-area:workspace;display:grid;grid-template-columns:minmax(0,1fr) minmax(14rem,24%);
  grid-template-areas:"locations guide" "stats guide";gap:1rem;align-items:start;align-content:start;min-width:0;
}
body[data-atlas].city-rewards-page #main-content .cr-workspace {grid-area:locations;display:block;min-width:0;margin:0}
body[data-atlas].city-rewards-page #main-content .cr-mask-guide {grid-area:guide;margin:0;min-width:0}
body[data-atlas].city-rewards-page #main-content .cr-stats {grid-area:stats;min-width:0;margin:0}
body[data-atlas].city-rewards-page #main-content .cr-hero {margin-bottom:1rem}
body[data-atlas].city-rewards-page #main-content .cr-hero .cr-hero-copy {max-width:41rem}
body[data-atlas].city-rewards-page #main-content .cr-hero-copy h1[data-radar-copy="heading"] {
  font:650 clamp(1.45rem,1.18rem + 1vw,1.96rem)/1.2 system-ui,sans-serif!important;letter-spacing:-.03em;
}
body[data-atlas].city-rewards-page #main-content .cr-tools {
  display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"heading" "filters";gap:.6rem;
  padding:clamp(.8rem,1.55vw,1.2rem) clamp(.875rem,1.9vw,1.4rem);
}
body[data-atlas].city-rewards-page #main-content .cr-heading {
  display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title refresh" "source refresh";
  align-items:center;column-gap:.75rem;
}
body[data-atlas].city-rewards-page #main-content .cr-heading #reward-title {grid-area:title;margin:0;overflow-wrap:anywhere;font-weight:650}
body[data-atlas].city-rewards-page #main-content .cr-heading .cr-source {
  grid-area:source;display:flex;flex-wrap:wrap;align-items:center;gap:0 .75rem;min-width:0;margin:0;
}
body[data-atlas].city-rewards-page #main-content .cr-source a {
  display:inline-flex;align-items:center;min-height:44px;white-space:normal;overflow-wrap:anywhere;
}
body[data-atlas].city-rewards-page #main-content #refresh {
  grid-area:refresh;align-self:start;justify-self:end;min-height:44px;max-width:100%;white-space:normal;
}
body[data-atlas].city-rewards-page #main-content .cr-filters {
  width:100%;grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr));align-items:end;gap:.5rem .75rem;
}
body[data-atlas].city-rewards-page #main-content .cr-filters :is(input,select) {min-height:44px}
body[data-atlas].city-rewards-page #main-content .cr-list-head {gap:0 .75rem}
body[data-atlas].city-rewards-page #main-content #sort-note {max-width:100%;white-space:normal;overflow-wrap:anywhere}
body[data-atlas].city-rewards-page #main-content :is(#reset-filters,.cr-periods button) {min-height:44px}
body[data-atlas].city-rewards-page #main-content .cr-periods {max-width:100%;flex-wrap:wrap}
body[data-atlas].city-rewards-page #main-content #cr-empty {padding:1rem;align-items:flex-start}
body[data-atlas].city-rewards-page #main-content #cr-empty > div {min-width:0;overflow-wrap:anywhere}
@media(max-width:860px) {
  body[data-atlas].city-rewards-page #main-content .cr-tools-layout {
    grid-template-columns:minmax(0,1fr);grid-template-areas:"locations" "stats" "guide";
  }
}
@media(max-width:700px) {
  body[data-atlas].city-rewards-page #main-content .cr-hero {min-height:0;padding:1rem;margin-bottom:.8rem}
  body[data-atlas].city-rewards-page #main-content .cr-hero .cr-hero-copy {width:100%}
  body[data-atlas].city-rewards-page #main-content .cr-hero .cr-map {display:none}
  body[data-atlas].city-rewards-page #main-content .cr-heading {grid-template-areas:"title refresh" "source source";row-gap:0}
  body[data-atlas].city-rewards-page #main-content .cr-tools {gap:.4rem;padding-block:.65rem .875rem}
  body[data-atlas].city-rewards-page #main-content .cr-heading #refresh span {
    position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;
  }
  body[data-atlas].city-rewards-page #main-content #refresh {width:44px;min-width:44px;padding:0}
}
@media(max-width:365px) {
  body[data-atlas].city-rewards-page #main-content .cr-filters {grid-template-columns:minmax(0,1fr)}
}
/* Preserve server names and numeric values when a large font narrows the rankings. */
body[data-atlas].city-rewards-page #main-content .cr-ranks {grid-template-columns:max-content minmax(0,max-content) minmax(0,1fr) max-content}
body[data-atlas].city-rewards-page #main-content .cr-rank-server {min-width:0;overflow-wrap:anywhere}
body[data-atlas].city-rewards-page #main-content .cr-tools-layout {container:radar-layout / inline-size}
@container radar-layout (max-width:58rem) {
  body[data-atlas].city-rewards-page #main-content .cr-stats:has(.cr-ranks:not([hidden])) {display:block}
  body[data-atlas].city-rewards-page #main-content .cr-stats:has(.cr-ranks:not([hidden])) .cr-stats-head {display:flex}
  body[data-atlas].city-rewards-page #main-content .cr-stats:has(.cr-ranks:not([hidden])) .cr-stat-label {margin:.5rem 0 0;text-align:start}
  body[data-atlas].city-rewards-page #main-content .cr-stats:has(.cr-ranks:not([hidden])) .cr-ranks {margin:.25rem 0}
}


/* Guide chapter navigation and reading measure. */
body[data-atlas] #main > .hq-reader-rail {display:none}
body[data-atlas] #main .reader .hq-guide-cover h1 {
  font-size:clamp(1.5rem,1.2rem + 1.1vw,2.12rem)!important;line-height:1.16!important
}
body[data-atlas] #main .reader .hq-guide-cover p,
body[data-atlas] #main .reader :where(section) > p:not([class]) {
  max-width:68ch;font-size:clamp(.925rem,.9rem + .09vw,1rem);line-height:1.62
}
body[data-atlas] #main .reader :where(section) > h2 {line-height:1.28;text-wrap:pretty}
body[data-atlas] #main .reader .hq-contents {
  background:#172c33;border:1px solid #3a555a;border-radius:7px
}
body[data-atlas] #main .reader .hq-contents summary {
  justify-content:start;gap:.6rem;padding:.65rem .8rem;color:#e4f2e9;font-size:.9rem;cursor:pointer
}
body[data-atlas] #main .reader .hq-contents summary::before {
  content:"";inline-size:.9rem;block-size:.65rem;flex:none;color:#a5d4c7;
  border-block:1.5px solid currentColor;background:linear-gradient(currentColor,currentColor) left center / 75% 1.5px no-repeat
}
body[data-atlas] #main .reader .hq-contents summary::after {margin-inline-start:auto;flex:none}
body[data-atlas] #main .reader .hq-contents nav a {font-size:.89rem;line-height:1.45;overflow-wrap:anywhere}
@media (min-width:64em) {
  body[data-atlas] main#main:has(> .hq-reader-rail) {
    display:grid;grid-template-columns:minmax(0,1fr) minmax(13.5rem,16rem);
    column-gap:clamp(2.1rem,4.2vw,4rem);align-items:start;max-width:73rem;margin-inline:auto
  }
  body[data-atlas] #main:has(> .hq-reader-rail) > .atlas-crumb {grid-column:1/-1;grid-row:1;margin-inline:0;max-width:none}
  body[data-atlas] #main:has(> .hq-reader-rail) > .reader {min-width:0;width:100%;max-width:none;grid-column:1;grid-row:2;margin:0}
  body[data-atlas] #main:has(> .hq-reader-rail) .reader .hq-contents {display:none}
  body[data-atlas] #main > .hq-reader-rail {
    display:block;grid-column:2;grid-row:2;padding-inline-start:1.1rem;border-inline-start:1px solid #3b5257;
    position:sticky;top:calc(var(--hq-reader-head,0px) + 1rem);margin-block-start:.5rem;
    max-height:calc(100vh - var(--hq-reader-head,0px) - 2rem);max-height:calc(100dvh - var(--hq-reader-head,0px) - 2rem);
    overflow:auto;scrollbar-width:thin;overscroll-behavior:auto
  }
  body[data-atlas] #main .hq-reader-rail strong {display:block;color:#eef3e9;font:670 .95rem/1.4 system-ui;margin:0 0 .5rem}
  body[data-atlas] #main .hq-reader-rail a {
    position:relative;display:flex;align-items:center;box-sizing:border-box;min-height:2.5rem;
    margin:0;padding:.5rem .45rem .5rem .7rem;border:0;border-block-end:1px solid #2e4348;
    font:500 .87rem/1.48 system-ui;color:#bad2ce;text-decoration:none;overflow-wrap:anywhere
  }
  body[data-atlas] #main .hq-reader-rail a[aria-current="location"] {color:#e1f6ea;background:#183037}
  body[data-atlas] #main .hq-reader-rail a[aria-current="location"]::before {
    content:"";position:absolute;inset-inline-start:0;inset-block:.59rem;width:3px;background:#8dd5be;border-radius:2px
  }
  body[data-atlas] #main .hq-reader-rail a:hover {color:#e7f6eb;text-decoration:underline;text-underline-offset:.2em}
  body[data-atlas] #main .hq-reader-rail a:focus-visible {outline:2px solid var(--atlas-mint);outline-offset:-2px}
}
@media (max-width:63.999em) and (min-height:36em) {
  html[data-reader-bar] body[data-atlas] #main .reader .hq-contents {
    position:sticky;z-index:3;top:var(--hq-reader-head,0px)
  }
  html[data-reader-bar] body[data-atlas] #main .reader .hq-contents nav {
    max-height:min(40vh,19rem);max-height:min(40dvh,19rem);overflow:auto;scrollbar-width:thin
  }
  html[data-reader-bar] body[data-atlas] #main .reader :is(section,details,figure)[id] {
    scroll-margin-block-start:calc(var(--hq-reader-head,0px) + var(--hq-reader-summary,48px) + 12px)
  }
}

/* Keep each interactive guide on a common reading axis, including its planner. */
@media (min-width:64em) {
  body[data-atlas] main#main-content[data-hq-legacy] {max-width:65rem!important;margin-inline:auto!important}
  body[data-atlas] main#main-content[data-hq-legacy] #events-app {width:100%;max-width:none;margin-inline:0}
  body[data-atlas] #main-content[data-hq-legacy] #events-app > .guide-hero {max-width:none}
}
body[data-atlas] #main-content[data-hq-legacy] #events-app .hq-legacy-heading h1 {
  font-size:clamp(1.5rem,1.2rem + 1.1vw,2.12rem)!important;line-height:1.16!important;min-height:0
}
body[data-atlas] #main-content[data-hq-legacy] #events-app .hq-legacy-heading .lead {
  max-width:68ch;font-size:.925rem!important;line-height:1.58!important
}
body[data-atlas] #main-content[data-hq-legacy] #events-app > .reader-nav:not(:has(.el-more)) {
  display:flex;flex-wrap:wrap;align-items:stretch;gap:0 .85rem;border-block:1px solid #354b51;
  background:none;margin:1rem 0 1.25rem;padding:0
}
body[data-atlas] #main-content[data-hq-legacy] #events-app > .reader-nav a {
  display:inline-flex;align-items:center;min-width:0;min-height:44px;max-width:100%;padding:.38rem .12rem;
  border:0;border-radius:0;background:none;color:#b2ddcf;font:550 .875rem/1.4 system-ui;
  text-align:start;text-decoration:underline;text-underline-offset:.22em;text-decoration-color:#5a7974;overflow-wrap:anywhere
}
@media (max-width:44em) {
  body[data-atlas] main#main-content[data-hq-legacy] #events-app > .guide-hero:has(.hq-legacy-heading) {
    margin-block-start:0;padding:0!important;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important
  }
  body[data-atlas] main#main-content[data-hq-legacy] #events-app .hq-legacy-heading {
    box-sizing:border-box;min-height:0;padding:4px 0 0!important;border:0!important;border-radius:0;
    background:transparent!important;box-shadow:none!important;overflow:visible
  }
  body[data-atlas] main#main-content[data-hq-legacy] #events-app .hq-legacy-heading h1 {padding:0!important;margin:0!important}
  body[data-atlas] main#main-content[data-hq-legacy] #events-app .hq-legacy-heading > .hq-legacy-cover {
    position:static;display:block;width:100%;height:clamp(4.75rem,24vw,9rem);
    margin:.8rem 0 0!important;border:0;border-radius:7px;overflow:hidden
  }
  body[data-atlas] main#main-content[data-hq-legacy] #events-app .goal-box {margin-block-start:.72rem}
  body[data-atlas] main#main-content[data-hq-legacy] #events-app > .reader-nav {margin:.73rem 0 1rem}
  body[data-atlas] main#main-content[data-hq-legacy] #events-app > .el-jumps :is(a,summary) {min-height:44px}
  /* The server-only guide keeps the same cover and a single title before it. */
  body[data-atlas] main#main-content[data-hq-legacy]:has(> #events-app > [data-server-guide]) {display:grid;grid-template-columns:minmax(0,1fr)}
  body[data-atlas] main#main-content[data-hq-legacy]:has(> #events-app > [data-server-guide]) :is(#events-app,[data-server-guide]) {display:contents}
  body[data-atlas] main#main-content[data-hq-legacy]:has(> #events-app > [data-server-guide]) > .atlas-crumb {order:-4}
  body[data-atlas] main#main-content[data-hq-legacy] #events-app > [data-server-guide] > h1 {order:-3;margin:.15rem 0 .4rem}
  body[data-atlas] main#main-content[data-hq-legacy] #events-app > [data-server-guide] > p:first-of-type {order:-2;margin:0 0 .75rem}
  body[data-atlas] main#main-content[data-hq-legacy]:has(> #events-app > [data-server-guide]) > .hq-legacy-cover {order:-1}
}

/* A source label or minimum card width must also fit enlarged text. */
body[data-atlas] #main .reader :is(#sources,.activities) a {overflow-wrap:anywhere}
body[data-atlas] #main .reader .roster-lanes {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr))
}
body[data-atlas] #main .reader .roster-lanes > * {min-width:0}
@media (max-width:35em) {
  body[data-atlas] #main-content[data-hq-legacy] #events-app :is(.reader-essentials,.event-explainer,.event-explainer > div) {grid-template-columns:minmax(0,1fr)}
  body[data-atlas] #main-content[data-hq-legacy] #events-app :is(.reader-steps > li > div,.reader-essentials > div,.event-explainer > div) {min-width:0;overflow-wrap:anywhere}
}
body[data-atlas] #main .reader :is(p,li,h2,h3,summary,label) {overflow-wrap:anywhere}
body[data-atlas] main#main-content[data-hq-legacy] #events-app :is(p,li,h2,h3,summary,label,dt,dd,.duel-cue,.duel-cell strong) {overflow-wrap:anywhere}

.home-empty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 14px;
}
.home-empty-actions #home-search-archive:not([hidden]) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--atlas-mint);
  font-size: .875rem;
  font-weight: 600;
  text-underline-offset: 3px;
}

/* Phone planner surfaces share one outside gutter. The fields retain their native edit size. */
@media (max-width: 700px) {
  body[data-atlas][data-dedicated-tool="vit"] main #tool {padding-inline:0;padding-block-start:0}
  body[data-atlas][data-dedicated-tool="vit"] #attack-planner .vit-main-controls {
    container:attack-fields / inline-size;padding:.875rem;gap:.8rem;
  }
  body[data-atlas][data-dedicated-tool="vit"] #attack-planner .vit-essential-fields {grid-template-columns:minmax(0,1fr);gap:.7rem .8rem}
  body[data-atlas][data-dedicated-tool="vit"] #attack-planner .vit-essential-fields label {
    min-width:0;align-content:start;gap:.33rem;overflow-wrap:anywhere;font-size:.8125rem;line-height:1.35
  }
  body[data-atlas][data-dedicated-tool="vit"] #attack-planner .vit-essential-fields :is(input,select) {
    min-height:44px;width:100%;min-width:0;max-width:100%;font-size:max(16px,1rem);line-height:1.25
  }
  body[data-atlas][data-dedicated-tool="vit"] #attack-settings {padding-block-start:.35rem}
  body[data-atlas][data-dedicated-tool="vit"] #attack-settings > summary {min-height:44px;gap:.65rem;padding-block:.55rem;line-height:1.38}
  body[data-atlas][data-dedicated-tool="vit"] #vit-plan-output {padding:.875rem}
  body[data-atlas][data-dedicated-tool="vit"] #vit-plan-output .vit-cost-strip {
    display:flex;align-items:center;flex-direction:row;flex-wrap:wrap;gap:.65rem .85rem;padding:.7rem .8rem;border-radius:8px
  }
  body[data-atlas][data-dedicated-tool="vit"] .vit-cost-strip > div {max-width:100%;min-width:0;flex:0 1 auto;overflow-wrap:anywhere}
  body[data-atlas][data-dedicated-tool="vit"] #vit-plan-output .vit-cost-strip strong {font-size:1.6rem;line-height:1.08;margin:.2rem 0 0}
  body[data-atlas][data-dedicated-tool="vit"] #vit-plan-output .vit-cost-strip p {flex:1 1 8rem;min-width:0;margin:0;padding:0;border:0;overflow-wrap:anywhere}
  body[data-atlas][data-dedicated-tool="vit"] #vit-plan-output .vit-rewards {margin-top:1rem}
  body[data-atlas][data-dedicated-tool="vit"] #vit-plan-output .vit-reward-head {
    flex-direction:row;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:.2rem .7rem
  }
  body[data-atlas][data-dedicated-tool="vit"] #vit-plan-output .vit-reward-head h3 {
    flex:0 1 auto;max-width:100%;margin:0;font-size:1.055rem;line-height:1.3;overflow-wrap:anywhere
  }
  body[data-atlas][data-dedicated-tool="vit"] #vit-plan-output .vit-reward-role {font-size:.75rem;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
  body[data-atlas][data-dedicated-tool="vit"] #vit-plan-output .vit-reward-table :is(th,td) {padding:.52rem .47rem}
  body[data-atlas][data-dedicated-tool="vit"] #vit-plan-output .vit-reward-table thead th {vertical-align:top}
  @container attack-fields (min-width:17.3rem) {
    body[data-atlas][data-dedicated-tool="vit"] #attack-planner .vit-essential-fields {
      grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:end
    }
    body[data-atlas][data-dedicated-tool="vit"] #attack-planner .vit-target-field {grid-column:1/-1}
    body[data-atlas][data-dedicated-tool="vit"] #attack-planner .vit-essential-fields:has(#level-label[hidden]) > label:last-child {grid-column:1/-1}
  }

  body[data-atlas].teams-page main .ht-card {padding:.875rem;min-width:0;overflow-wrap:anywhere}
  body[data-atlas].teams-page :is(.ht-card,#ht-detail) .ht-portraits > div {min-width:0;overflow-wrap:anywhere}
  body[data-atlas].teams-page :is(.ht-card,#ht-detail) .ht-portraits strong {font-size:.78rem;line-height:1.3}
  body[data-atlas].teams-page :is(.ht-card,#ht-detail) .ht-portraits small {font-size:.69rem;line-height:1.35}
  body[data-atlas].teams-page main .ht-card h2 {margin:.45rem 0 0;font-size:1.06rem!important;line-height:1.3}
  body[data-atlas].teams-page main .ht-card .ht-focus {margin:.15rem 0 0}
  body[data-atlas].teams-page main .ht-card .ht-portraits {margin:.85rem 0 .4rem}
  body[data-atlas].teams-page .ht-card .ht-portraits strong,
  body[data-atlas].teams-page .ht-detail-portraits strong {margin-top:.4rem}
  body[data-atlas].teams-page main .ht-card > p:last-of-type {margin:.45rem 0 .8rem}
  body[data-atlas].teams-page #hero-team-host :is(.ht-open,.ht-filter-bar button) {min-height:44px!important;height:auto!important}
  body[data-atlas].teams-page #ht-dialog[open] {container:team-sheet / inline-size;--tw-language-control-height:44px}
  body[data-atlas].teams-page #ht-dialog .ht-dialog-head {padding:.65rem .85rem 0}
  body[data-atlas].teams-page #ht-dialog .ht-title-row {gap:.3rem .55rem}
  body[data-atlas].teams-page #ht-dialog #ht-title {font-size:1.085rem!important;line-height:1.26;margin:.15rem 0 0}
  body[data-atlas].teams-page #ht-dialog :is(#ht-close,.tw-lang-toggle,.ht-detail-tabs button) {min-height:44px!important;height:auto!important}
  body[data-atlas].teams-page #ht-dialog .ht-detail-tabs {margin:.48rem 0 0;padding-bottom:.45rem}
  body[data-atlas].teams-page #ht-dialog #ht-detail {padding-inline:.85rem}
  body[data-atlas].teams-page #ht-dialog .ht-detail-portraits {margin:.8rem 0 .75rem;padding-bottom:.7rem}
  body[data-atlas].teams-page #ht-dialog .ht-summary {margin-block:.65rem .85rem}
  @container team-sheet (min-width:21rem) {
    body[data-atlas].teams-page #ht-dialog .ht-title-row {display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center}
    body[data-atlas].teams-page #ht-dialog .ht-title-row > div:first-child {min-width:0;overflow-wrap:anywhere}
    body[data-atlas].teams-page #ht-dialog #ht-close {margin:0}
  }

  body[data-atlas].account-app #main-content:has(#account-welcome:not([hidden])) .local-badge {text-align:start!important;white-space:normal}
  body[data-atlas].account-app #import-panel .import-alternatives label {min-width:0;overflow-wrap:anywhere}
  body[data-atlas].account-app #main-content #empty.account-empty {
    min-height:0;padding:.8rem .95rem;margin:.7rem 0 .45rem;border-radius:7px;
    line-height:1.48;text-align:start;background:#142630;overflow-wrap:anywhere
  }
  body[data-atlas].account-app #main-content #account-backup-health > details > summary {font-size:.8rem;min-height:44px}
  body[data-atlas].city-rewards-page #main-content .cr-hero-copy h1[data-radar-copy="heading"] {
    font-size:clamp(1.28rem,1.18rem + .45vw,1.45rem)!important;line-height:1.2
  }
  body[data-atlas].city-rewards-page #main-content .cr-tools-layout {row-gap:.8rem}
  body[data-atlas].city-rewards-page #main-content .cr-stats .cr-ranks {row-gap:.28rem}
}
body[data-atlas] header[data-hq-masthead].homepage-shared-header #hq-finder-toggle[aria-expanded="true"] {
  color:#d1f5e7!important;background:#203e42!important;box-shadow:inset 0 0 0 1px #78a99f
}

/* The six promoted links share the same mobile layout in each directory. */
@media (max-width: 550px) {
  @container tool-shortcuts (min-width: 16.01rem) {
    #main-content #home-directory #home-recommended-tools nav a[data-priority-tool]:not([hidden]),
    body[data-atlas] #tools[data-tools-directory] .tool-picks a,
    #nav[data-field-menu] .hq-menu-grid .menu-tool-grid > .menu-tool {
      grid-template-columns: 19px minmax(0, 1fr);
      grid-template-areas: "icon title" "note note";
      align-content: center;
      align-items: center;
      column-gap: 6px;
      row-gap: 3px;
      min-height: 58px;
      padding: 8px 2px!important;
    }
    #main-content #home-directory #home-recommended-tools .hq-tool-pick-copy,
    body[data-atlas] #tools[data-tools-directory] .tool-picks .directory-pick-copy {
      display: contents;
    }
    #main-content #home-directory .home-picks .home-pick-icon,
    body[data-atlas] #tools[data-tools-directory] .tool-picks .directory-pick-icon,
    #nav[data-field-menu] .hq-menu-grid .menu-tool .menu-tool-icon {
      grid-area: icon;
      width: 19px;
      height: 19px;
      padding: 2px;
      border-radius: 4px;
    }
    #main-content #home-directory #home-recommended-tools .hq-tool-pick-copy strong,
    body[data-atlas] #tools[data-tools-directory] .tool-picks strong,
    #nav[data-field-menu] .hq-menu-grid .menu-tool .hq-short-name {
      grid-area: title;
      align-self: center;
    }
    #main-content #home-directory #home-recommended-tools .hq-tool-pick-copy > span,
    body[data-atlas] #tools[data-tools-directory] .tool-picks small,
    #nav[data-field-menu] .hq-menu-grid .menu-tool .menu-tool-note {
      grid-area: note;
      margin: 0;
    }
  }
  #main-content #home-directory .home-picks .hq-guide-head {
    margin-block-end: 2px;
  }
}

/* Match the six tools to the six guide rows when the homepage shows both lists. */
@media (min-width: 951px) {
  #main-content #home-directory:has(#home-search:placeholder-shown) .home-picks:has(#home-guides:not([hidden])) #home-recommended-tools nav {
    grid-template-columns: minmax(0, 1fr)!important;
    grid-auto-rows: minmax(54px, auto);
  }
  #main-content #home-directory:has(#home-search:placeholder-shown) .home-picks:has(#home-guides:not([hidden])) #home-recommended-tools nav a[data-priority-tool]:not([hidden]) {
    min-height: 54px;
    padding: 5px 3px!important;
  }
}
/* Give enlarged text the full line when the illustration or a second tab no longer fits. */
@media (max-width: 550px) {
  #main-content #home-intro { container: home-introduction / inline-size; }
  #nav[data-field-menu] .hq-menu-toolbar { container: menu-controls / inline-size; }

  @container home-introduction (max-width: 15rem) {
    #main-content #home-intro .atlas-hero h1,
    #main-content #home-intro .atlas-hero-copy p { max-width: 100%; }
    #main-content #home-intro .atlas-island { opacity: .2; }
    #main-content #home-intro .hq-launches { grid-template-columns: minmax(0, 1fr); }
    #main-content #home-intro .hq-launch-wrap + .hq-launch-wrap {
      border-inline-start: 0;
      border-block-start: 1px solid var(--intro-edge);
    }
    #main-content #home-intro .hq-launch {
      grid-template-columns: 19px minmax(0, 1fr) 12px;
      grid-template-areas: "icon copy arrow";
      align-content: center;
      column-gap: 7px;
      padding: 8px;
    }
    #main-content #home-intro .hq-launch-copy :is(strong, span) {
      white-space: normal;
      overflow-wrap: anywhere;
    }
    #main-content #home-intro .atlas-hero::after {
      background: linear-gradient(90deg, #10222b 0%, #10222bdd 56%, #10222b45);
    }
  }
  @container menu-controls (max-width: 14rem) {
    #nav[data-field-menu] .hq-menu-toolbar .directory-views:not([hidden]) {
      grid-template-columns: minmax(0, 1fr);
    }
    #nav[data-field-menu] .hq-menu-toolbar .menu-link-count {
      white-space: nowrap;
      flex: none;
    }
  }
}


@media (max-width: 650px) {
  /* The absolute menu starts below its masthead; reserve its actual wrapped height. */
  body[data-atlas] header[data-hq-masthead].menu-open #nav[data-field-menu] {
    max-height: calc(100dvh - 100% - 14px)!important;
  }
}

#main-content #home-intro .hq-launch .hq-launch-copy {
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 801px) {
  #main-content #home-intro {
    grid-template-columns: minmax(0, 1fr) minmax(max(215px, 11.5rem), 24%);
  }
}

/* Phone reading rhythm for the guide archive, articles and Alliance Duel. */
@media (max-width: 40em) {
  body[data-atlas] #main .archive-intro,
  body[data-atlas] #main .reader .hq-guide-cover {
    row-gap: .625rem;
  }
  body[data-atlas] #main .reader .hq-guide-cover h1 {
    font-size: 1.375rem !important;
    line-height: 1.2 !important;
    text-wrap: pretty;
  }
  body[data-atlas] #main .archive-intro,
  body[data-atlas] #main .reader .hq-cover-copy {
    --atlas-body-copy: .84375rem;
    --atlas-copy-leading: 1.5;
  }
  body[data-atlas] #main .archive-intro details.start :is(summary, a) {
    min-height: 44px;
    box-sizing: border-box;
    align-content: center;
  }
  body[data-atlas] #main .reader .hq-contents {
    margin-block: .875rem 1.125rem;
  }
  body[data-atlas] #main .reader section + section {
    margin-block-start: 1.65rem;
  }
  body[data-atlas] #main .reader section > h2 {
    margin-block-end: .5rem;
  }
  body[data-atlas] #main .reader .gc-actions button {
    min-height: 44px;
  }

  body.hq-public[data-atlas][data-hq-page="event"] main#main-content[data-hq-legacy] #events-app .hq-legacy-heading > h1 {
    font-size: 1.3125rem !important;
    line-height: 1.2 !important;
  }

  /* Keep the four day-planner shortcuts together above the day list. */
  body.hq-public[data-atlas][data-hq-page="event"] main#main-content[data-hq-legacy] #events-app.duel-guide > .reader-nav {
    margin-block: .55rem .85rem;
    padding: 0;
    column-gap: .85rem;
    row-gap: 0;
    border: 0;
    border-block-end: 1px solid var(--hq-rule);
    background: transparent;
  }
  body.hq-public[data-atlas][data-hq-page="event"] main#main-content[data-hq-legacy] #events-app.duel-guide > .reader-nav a {
    flex: 0 1 auto;
    min-height: 44px;
    min-width: min(44px, 100%);
    box-sizing: border-box;
    padding: .4rem .125rem;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none;
    color: #b2ddcf;
    text-decoration: underline;
    text-underline-offset: .22em;
    text-decoration-color: #5a7974;
    font: 600 .8125rem/1.4 system-ui, sans-serif;
    overflow-wrap: anywhere;
  }
  body[data-atlas] #events-app #duel-week {
    padding: .7rem .65rem .25rem;
    margin-block: 0 1.25rem;
  }
  body[data-atlas] #events-app #duel-day-basis {
    --atlas-body-copy: .8125rem;
    --atlas-copy-leading: 1.5;
    margin-block: .25rem .55rem;
  }
  body[data-atlas] #events-app #duel-week .duel-week-grid > :is(button, a) {
    gap: .6rem;
    padding-block: .45rem;
  }
  body[data-atlas] #events-app #duel-day-content .duel-score-heading {
    margin-block-end: .65rem;
    row-gap: .15rem;
  }
  body[data-atlas] #events-app #duel-day-content .duel-week-return,
  body[data-atlas] #events-app .reader-reference-head .reader-expand,
  body[data-atlas] #events-app .duel-layout details > summary,
  body[data-atlas] #events-app .duel-rewards details > summary {
    min-height: 44px;
    box-sizing: border-box;
    align-content: center;
  }
  body[data-atlas] #events-app .duel-rewards :is(.duel-set-help, .duel-secondary-rewards) {
    padding: 0;
    background: transparent;
  }
  body[data-atlas] #events-app .duel-rewards :is(.duel-set-help, .duel-secondary-rewards) > summary {
    border: 0;
  }
  body[data-atlas] #events-app .duel-rewards :is(.duel-set-help, .duel-secondary-rewards)[open] > :not(summary) {
    margin-inline: .7rem;
  }

  /* The native disclosure already has a chevron; give its title the full row. */
  body.hq-public[data-atlas][data-hq-page="event"] main#main-content[data-hq-legacy] #events-app > .reader-section > summary {
    min-height: 48px;
    padding: .65rem 2.35rem .65rem .8rem;
    gap: 0;
    align-items: center;
  }
  body.hq-public[data-atlas][data-hq-page="event"] main#main-content[data-hq-legacy] #events-app > .reader-section .reader-section-label {
    min-width: 0;
  }
  body.hq-public[data-atlas][data-hq-page="event"] main#main-content[data-hq-legacy] #events-app > .reader-section > summary h2 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
  }
  body.hq-public[data-atlas][data-hq-page="event"] main#main-content[data-hq-legacy] #events-app > .reader-section > summary:has(.reader-chevron)::after {
    top: 50%;
    margin-top: -.25em;
  }
  body.hq-public[data-atlas][data-hq-page="event"] main#main-content[data-hq-legacy] #events-app > .reader-section .reader-chevron {
    display: none;
  }

  /* Relative sizes keep the task ledger and rewards readable at larger text settings. */
  body[data-atlas] #events-app #duel-day-content .duel-main-tasks :is(th, td) {
    font-size: .8125rem;
    line-height: 1.5;
  }
  body[data-atlas] #events-app #duel-day-content .duel-main-tasks th,
  body[data-atlas] #events-app #duel-day-content :is(.duel-rewards-toolbar label, .duel-chest-heading) {
    font-size: .75rem;
  }
  body[data-atlas] #events-app #duel-day-content :is(summary, .duel-chest, .duel-chest strong, .duel-share-link),
  body[data-atlas] #main-content[data-hq-legacy] #events-app .reader-reference-head .reader-expand {
    font-size: .8125rem;
    line-height: 1.45;
  }
  body[data-atlas] #events-app #duel-day-content .duel-chest small {
    font-size: .7rem;
    line-height: 1.4;
  }
  body[data-atlas] #events-app #duel-day-content .duel-chest-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(4.85rem, 28%)), 1fr));
  }
  body[data-atlas] #events-app #duel-day-content #duel-rewards-title {
    font-size: .9375rem;
  }
  body[data-atlas] #main-content[data-hq-legacy] #events-app.duel-guide .reader-start > h2 {
    font-size: 1.125rem;
  }
  body[data-atlas] #main-content[data-hq-legacy] #events-app.duel-guide .reader-reference-head h2 {
    font-size: 1.1875rem;
  }

  body[data-atlas] #events-app #duel-day-content .duel-score-heading .duel-share-link,
  body[data-atlas] #events-app #duel-day-content .duel-rewards-toolbar > div {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* The widest points value sets the numeric column and leaves the rest for the action. */
  body[data-atlas] #events-app #duel-day-content .duel-main-tasks table {
    table-layout: auto;
  }
  body[data-atlas] #events-app #duel-day-content .duel-main-tasks tr > :last-child {
    width: 1%;
  }
}

/* Catalogue titles, controls and result rows share a readable type scale. */
body.hero-library-page #main-content.hero-library > h1,
body:is([data-hq-page="components"],[data-hq-page="items"],[data-hq-page="equipment"],[data-hq-page="decorations"]) :is(#main-content,#hq-main-content) > .game-heading h1#title {
  display:block; min-width:0; max-width:100%; min-height:0; margin:0;
  font-size:clamp(1.5rem,1.25rem + .9vw,2rem)!important; line-height:1.18!important;
  overflow-wrap:anywhere;
}
body.hero-library-page #main-content.hero-library > .intro,
body:is([data-hq-page="components"],[data-hq-page="items"],[data-hq-page="equipment"],[data-hq-page="decorations"]) :is(#main-content,#hq-main-content) :is(#intro,#item-section-help,#section-intro) {
  max-width:min(66ch,100%); font-size:.9375rem!important; line-height:1.55!important;
  overflow-wrap:anywhere;
}
body:is([data-hq-page="items"],[data-hq-page="equipment"]) :is(#main-content,#hq-main-content) :is(.item-browse-heading,.gear-heading) > div {min-width:0; max-width:100%}
body.hero-library-page #library-controls label {grid-template-columns:minmax(0,1fr); overflow-wrap:anywhere}
body.hero-library-page #library-controls :is(select,input:not([type="checkbox"])) {
  min-width:0; max-width:100%; height:auto!important; min-height:44px; font-size:1rem;
}
body.hero-library-page #library-controls label:has(> select) {overflow:clip; overflow-clip-margin:5px}
body.hero-library-page #main-content #library-controls select {
  font-size:max(16px,.8125rem); font-weight:450; letter-spacing:-.01em; padding-inline:8px;
  overflow:hidden;
}
body.hero-library-page #library-controls .clear {font-size:.875rem; line-height:1.4}
body.hero-library-page #library-result .hero-card > span:nth-child(2) {min-width:0}
body.hero-library-page #library-result .hero-card strong {font-size:1rem; line-height:1.35}
body.hero-library-page #library-result .hero-card small {font-size:.8125rem; line-height:1.5}
body:is([data-hq-page="components"],[data-hq-page="equipment"],[data-hq-page="decorations"]) :is(#main-content,#hq-main-content) #app :is(.filters,.gear-filters) > label,
body:is([data-hq-page="components"],[data-hq-page="items"],[data-hq-page="equipment"],[data-hq-page="decorations"]) :is(#main-content,#hq-main-content) #app :is(#search-label,.results-meta #count,.gear-meta #count,.item-sort) {
  font-size:.8125rem; line-height:1.45;
}
body[data-hq-page="components"] #hq-main-content #results .open-item {font-size:.9375rem; line-height:1.35; overflow-wrap:anywhere}
body[data-hq-page="components"] #hq-main-content #results .component-range strong {font-size:1.0625rem; line-height:1.3}
body[data-hq-page="components"] :is(#main-content,#hq-main-content) #results .component-range > div > span {font-size:.75rem; white-space:normal}
body[data-hq-page="components"] :is(#main-content,#hq-main-content) #results .component-effect {font-size:.8125rem}
body[data-hq-page="components"] :is(#main-content,#hq-main-content) #results .component-levels {font-size:.8125rem; white-space:normal; overflow-wrap:anywhere}
@media(max-width:44em) {
  body:is([data-hq-page="components"],[data-hq-page="items"],[data-hq-page="equipment"],[data-hq-page="decorations"]) :is(#main-content,#hq-main-content) > .game-heading:is(.page-heading,.gear-heading) {
    padding:.875rem 1rem!important; gap:.4rem;
  }
  body:is([data-hq-page="components"],[data-hq-page="items"],[data-hq-page="equipment"],[data-hq-page="decorations"]) :is(#main-content,#hq-main-content) > .game-heading .game-title#title {min-height:0!important; margin:0!important}
  body[data-hq-page="equipment"] :is(#main-content,#hq-main-content) .gear-heading #intro {margin:.4rem 0 0}
  body.hero-library-page #library-controls,
  body[data-hq-page="equipment"] :is(#main-content,#hq-main-content) #app .gear-filters {
    grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr)); gap:.75rem;
  }
  body.hero-library-page #library-controls > :is(label:first-child,.check,.clear),
  body[data-hq-page="equipment"] :is(#main-content,#hq-main-content) #app .gear-filters > label:first-child {grid-column:1/-1}
  body.hero-library-page #library-controls .check input {flex:none}
  body[data-hq-page="equipment"] :is(#main-content,#hq-main-content) #app .gear-filters :is(label,select) {min-width:0; max-width:100%}
  body:is([data-hq-page="items"],[data-hq-page="equipment"]) :is(#main-content,#hq-main-content) #app :is(#item-sections,#gear-sections) {
    flex-wrap:wrap; height:auto; max-height:none; overflow:visible; gap:.25rem; padding-block:.25rem;
  }
  body:is([data-hq-page="items"],[data-hq-page="equipment"]) :is(#main-content,#hq-main-content) #app :is(#item-sections,#gear-sections) > button {
    max-width:100%; min-width:0; height:auto; white-space:normal; overflow-wrap:anywhere; text-align:start;
  }
  body[data-hq-page="items"] :is(#main-content,#hq-main-content) #app .item-mobile-purpose {flex-wrap:wrap; gap:.35rem .65rem}
  body[data-hq-page="items"] :is(#main-content,#hq-main-content) #app .item-mobile-purpose select {flex:1 1 10rem; min-width:0; max-width:100%}
  body:is([data-hq-page="components"],[data-hq-page="items"],[data-hq-page="equipment"],[data-hq-page="decorations"]) :is(#main-content,#hq-main-content) #app :is(.results-meta button,.gear-armies button,.gear-meta button,.item-save,.item-details-link,.ds-add,.chest-card-action) {
    min-height:44px; height:auto;
  }
  body[data-hq-page="components"] :is(#main-content,#hq-main-content) #app .results-meta {display:flex; flex-wrap:wrap; gap:.5rem .75rem; align-items:center}
  body[data-hq-page="components"] :is(#main-content,#hq-main-content) #app .results-meta #count {flex-basis:100%}
  body[data-hq-page="components"] :is(#main-content,#hq-main-content) #app .catalogue-view {max-width:100%; margin-inline-start:auto}
  body[data-hq-page="components"] :is(#main-content,#hq-main-content) #app.catalogue-compact #results .component-result {
    grid-template-columns: minmax(0,1fr); row-gap:.6rem;
  }
  body[data-hq-page="components"] :is(#main-content,#hq-main-content) #app.catalogue-compact #results .component-result > :is(.item-main,.result-copy,.meta-right) {
    grid-column:1; grid-row:auto; min-width:0; max-width:100%;
  }
  body[data-hq-page="components"] :is(#main-content,#hq-main-content) #app.catalogue-compact #results .component-range {max-width:18rem; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
  body[data-hq-page="components"] :is(#main-content,#hq-main-content) #app.catalogue-compact #results .meta-right {justify-self:start}
}

/* Keep the pass terms readable alongside a compact directory of related guides. */
@media (max-width:44em) {
  body[data-hq-page="packs"] #hq-main-content > .game-heading {
    flex-wrap:wrap; gap:.35rem 1rem; align-items:center; padding:.8rem .9rem!important;
  }
  body[data-hq-page="packs"] #hq-main-content > .game-heading h1#title {
    display:block; flex:1 1 auto; min-width:0; min-height:0!important; margin:0!important;
    font-size:clamp(1.5rem,1.25rem + .9vw,2rem)!important; line-height:1.18!important; overflow-wrap:anywhere;
  }
  body[data-hq-page="packs"] #hq-main-content > .game-heading #price-controls {max-width:100%; margin:0}
  body[data-hq-page="packs"] #hq-main-content > .decision-entry[data-guide-cards] {
    min-width:0; margin-block:.5rem .85rem!important; padding:0; background:transparent; box-shadow:none;
  }
  body[data-hq-page="packs"] #hq-main-content .decision-entry-heading {
    display:flex; align-items:baseline; gap:.5rem; margin:0;
  }
  body[data-hq-page="packs"] #hq-main-content .decision-entry-heading > svg,
  body[data-hq-page="packs"] #hq-main-content .decision-entry-links a > svg {display:none}
  body[data-hq-page="packs"] #hq-main-content .decision-entry-heading strong {
    font-size:.9375rem; line-height:1.36; overflow-wrap:anywhere;
  }
  body[data-hq-page="packs"] #hq-main-content .decision-entry > p {
    max-width:66ch; margin:.32rem 0 .4rem; font-size:.875rem!important; line-height:1.5!important; overflow-wrap:anywhere;
  }
  body[data-hq-page="packs"] #hq-main-content .decision-entry-links {
    display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr))!important;
    gap:0 .9rem!important; align-items:stretch;
  }
  body[data-hq-page="packs"] #hq-main-content .decision-entry-links > a {
    display:flex!important; align-items:center; justify-content:flex-start; min-width:0; min-height:44px!important; height:auto;
    padding:.27rem 0!important; border:0!important; border-block-start:1px solid #354b52!important; border-radius:0!important;
    background:transparent!important; box-shadow:none!important; text-align:start; color:#bcdfd2;
  }
  body[data-hq-page="packs"] #hq-main-content .decision-entry-links .decision-guide-name {
    display:block; min-width:0; font-size:.8125rem; line-height:1.38; font-weight:600; overflow-wrap:anywhere;
    text-decoration:underline; text-decoration-color:#658a81; text-underline-offset:.18em;
  }
  body[data-hq-page="packs"] #hq-main-content #pack-views {flex-wrap:wrap; gap:.25rem; height:auto; overflow:visible}
  body[data-hq-page="packs"] #hq-main-content #pack-views button {min-width:0; max-width:100%; min-height:44px; height:auto; white-space:normal; overflow-wrap:anywhere}
  body[data-hq-page="packs"] #hq-main-content #app :is(summary,#clear,#more,#all) {min-height:44px}
}

/* Keep catalogue details in the same place as the item and pack sheets. */
@media (max-width: 44em) {
  body:is([data-hq-page="components"], [data-hq-page="equipment"], [data-hq-page="stores"]) dialog:is(#detail, #gear-detail)[open] {
    container: catalogue-detail / inline-size;
    --tw-language-control-height: 44px;
    box-sizing: border-box;
    inset: auto 0 0;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - .5rem);
    border-radius: 16px 16px 0 0;
    border-block-end: 0;
    overscroll-behavior: contain;
  }
  body:is([data-hq-page="components"], [data-hq-page="equipment"], [data-hq-page="stores"]) dialog:is(#detail, #gear-detail)[open] .dialog-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: .3rem .6rem;
    padding: .7rem .85rem .55rem;
  }
  body:is([data-hq-page="components"], [data-hq-page="equipment"], [data-hq-page="stores"]) dialog:is(#detail, #gear-detail) #detail-art + div {
    min-width: 0;
    flex: 1 1 calc(100% - 66px);
  }
  body:is([data-hq-page="components"], [data-hq-page="equipment"], [data-hq-page="stores"]) dialog:is(#detail, #gear-detail) #detail-title {
    font-size: 1.0625rem !important;
    hyphens: auto;
    line-height: 1.24 !important;
    overflow-wrap: anywhere;
    text-wrap: pretty;
  }
  body:is([data-hq-page="components"], [data-hq-page="equipment"]) dialog:is(#detail, #gear-detail)[open] .dialog-head > :is(.compact-detail-actions, .gear-dialog-actions) {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: .25rem .45rem;
    min-width: 0;
    margin: 0;
  }
  body:is([data-hq-page="components"], [data-hq-page="equipment"], [data-hq-page="stores"]) dialog:is(#detail, #gear-detail)[open] .dialog-head :is(#close, .tw-lang-toggle, summary) {
    min-height: 44px !important;
    max-width: 100%;
    font-size: .8125rem !important;
    line-height: 1.3 !important;
  }
  body:is([data-hq-page="components"], [data-hq-page="equipment"], [data-hq-page="stores"]) dialog:is(#detail, #gear-detail)[open] .dialog-head #close {
    margin-inline-start: auto;
  }
  body[data-hq-page="components"] dialog#detail .compact-detail-more .compact-detail-menu {
    inset-inline: 0 auto;
    max-width: calc(100vw - 2rem);
  }
  body:is([data-hq-page="components"], [data-hq-page="equipment"], [data-hq-page="stores"]) dialog:is(#detail, #gear-detail)[open] #detail-body {
    padding-block-end: max(1rem, env(safe-area-inset-bottom));
  }
}
@media (max-height: 30em) {
  body:is([data-hq-page="components"], [data-hq-page="equipment"], [data-hq-page="stores"]) dialog:is(#detail, #gear-detail)[open] .dialog-head {position: static}
}
@media (max-width: 44em) {
  body:is([data-hq-page="components"], [data-hq-page="equipment"]) dialog:is(#detail, #gear-detail)[open] .dialog-head > :is(.compact-detail-actions, .gear-dialog-actions) {
    width: 100% !important;
    max-width: 100%;
    justify-self: stretch;
  }
  body:is([data-hq-page="components"], [data-hq-page="equipment"]) dialog:is(#detail, #gear-detail)[open] .dialog-head #close {
    margin-inline-start: auto !important;
  }
}
@container catalogue-detail (max-width: 19rem) {
  body:is([data-hq-page="components"], [data-hq-page="equipment"], [data-hq-page="stores"]) dialog:is(#detail, #gear-detail)[open] .dialog-head {
    position: static !important;
    padding-inline: 12px !important;
    column-gap: 8px !important;
  }
  body:is([data-hq-page="components"], [data-hq-page="equipment"]) dialog:is(#detail, #gear-detail)[open] .dialog-head > :is(.compact-detail-actions, .gear-dialog-actions) {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  body:is([data-hq-page="components"], [data-hq-page="equipment"], [data-hq-page="stores"]) dialog:is(#detail, #gear-detail)[open] .dialog-head #close {
    padding-inline: 8px;
    font-size: .75rem !important;
  }
}
body[data-hq-page="stores"] dialog#detail[open] #detail-title:focus-visible {
  outline: 0;
  border-inline-start: 2px solid #9ecfc1;
  padding-inline-start: .4rem;
}


/* Item details keep their native scroll container for saved positions and amount changes. */
body[data-hq-page="items"] dialog#detail[open],
body.site-ui dialog.site-reference[open] {
  --tw-language-control-height: 44px;
}
body[data-hq-page="items"] dialog#detail[open] {
  overscroll-behavior: contain;
}
body[data-hq-page="items"] #detail #detail-title,
body.site-ui dialog.site-reference[open] .site-reference-head h2 {
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
body[data-hq-page="items"] #detail #item-browse-context {
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .9rem;
}
body[data-hq-page="items"] #detail #item-browse-context > div {
  flex: 1 1 13rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
body[data-hq-page="items"] #detail #item-browse-context [data-save-item] {
  max-width: 100%;
  min-height: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
}
body[data-hq-page="items"] #detail #detail-body > .lead {
  font-size: 1rem !important;
  line-height: 1.55 !important;
}
body[data-hq-page="items"] #detail #pv-detail-entry > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
}
body[data-hq-page="items"] #detail .item-amount-picker button,
body[data-hq-page="items"] #detail .compact-detail-actions :is(button,summary),
body.site-ui dialog.site-reference[open] .site-reference-head button {
  min-height: 44px !important;
  height: auto;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 44em) {
  body[data-hq-page="items"] dialog#detail[open],
  body.site-ui dialog.site-reference[open] {
    width: 100vw;
    max-width: 100vw;
    max-height: calc(100dvh - .5rem);
    margin: 0 auto;
    inset: auto 0 0;
    border-radius: 16px 16px 0 0;
    border-block-end: 0;
    box-sizing: border-box;
  }
  body.site-ui dialog.site-reference[open] {
    height: calc(100dvh - .5rem);
  }
  body[data-hq-page="items"] dialog#detail[open] .dialog-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .6rem;
    padding: .7rem .85rem .55rem;
  }
  body[data-hq-page="items"] #detail .dialog-head > #detail-art + div {
    min-width: 0;
    flex: 1 1 calc(100% - 66px);
  }
  body[data-hq-page="items"] #detail #detail-title,
  body.site-ui dialog.site-reference[open] .site-reference-head h2 {
    font-size: 1.125rem !important;
    line-height: 1.24 !important;
  }
  body[data-hq-page="items"] #detail .dialog-head > .compact-detail-actions {
    flex: 1 1 auto;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: .25rem .45rem;
  }
  body[data-hq-page="items"] #detail .dialog-head .compact-detail-actions > #close {
    margin-inline-start: auto !important;
    min-height: 44px !important;
  }
  body[data-hq-page="items"] #detail .dialog-head .tw-lang-toggle {
    min-height: 44px !important;
  }
  body[data-hq-page="items"] #detail #detail-body {
    padding: .9rem .85rem max(.9rem, env(safe-area-inset-bottom));
  }
  body[data-hq-page="items"] #detail #detail-body > .item-tool-link {
    padding: 0;
    border: 0;
    background: transparent;
  }
  body[data-hq-page="items"] #detail #detail-body > .item-tool-link a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  body.site-ui dialog.site-reference[open] .site-reference-head {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .35rem .75rem;
    padding: .65rem .85rem;
  }
  body.site-ui dialog.site-reference[open] .site-reference-head > div:first-child {
    flex: 1 1 8rem;
  }
  body.site-ui dialog.site-reference[open] .site-reference-actions {
    flex-wrap: wrap;
    max-width: 100%;
    gap: .35rem;
  }
  body.site-ui dialog.site-reference[open] .site-reference-label {
    display: none;
  }
  body.site-ui dialog.site-reference[open] .site-reference-hint {
    padding: .45rem .85rem max(.45rem, env(safe-area-inset-bottom));
    font-size: .8125rem;
    line-height: 1.35;
  }
}
@media (max-height: 30em) {
  body[data-hq-page="items"] dialog#detail[open] .dialog-head {position: static}
  body.site-ui dialog.site-reference[open] .site-reference-hint {display: none}
}
/* Reward shortcuts and family titles must fit before an inline item reference opens. */
@media (max-width: 44em) {
  body[data-activity-page="rewards"] #vit-app .ar-target-shortcuts {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  }
  body[data-activity-page="rewards"] #vit-app .ar-overview .ar-comparison th {
    white-space: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  body[data-activity-page="rewards"] #vit-app .ar-target-shortcuts > a,
  body[data-activity-page="rewards"] #vit-app .ar-family > summary > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}


/* Pack browsing, comparison and reward details. */
body[data-hq-page="packs"] #hq-main-content #pack-views {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:fit-content; max-width:100%;
  gap:3px; padding:3px; border:1px solid #3d535b; border-radius:9px; background:#11212b;
}
body[data-hq-page="packs"] #hq-main-content #pack-views button {
  box-sizing:border-box; min-width:0; min-height:44px; height:auto; margin:0; padding:.45rem .7rem;
  border:1px solid transparent; border-radius:6px; white-space:normal; overflow-wrap:anywhere;
  line-height:1.3; text-align:center;
}
body[data-hq-page="packs"] #hq-main-content #pack-views button[aria-pressed="true"] {
  border-color:#6a9c8a; background:#264c42; color:#f0faf4;
}
body[data-hq-page="packs"] #app .results-meta {align-items:center; gap:.65rem; flex-wrap:wrap}
body[data-hq-page="packs"] #app #count {color:#c5d7d7; font-size:.8125rem; line-height:1.4}
body[data-hq-page="packs"] #app #results .pack-scan-card .open-pack,
body[data-hq-page="packs"] .pv-panel .pv-offer > a:first-child {
  display:inline-flex; align-items:center; max-width:100%; min-height:44px; height:auto;
  padding:0; font-size:1rem; line-height:1.38; text-align:start; white-space:normal; overflow-wrap:anywhere;
}
body[data-hq-page="packs"] #app #results .pack-action,
body[data-hq-page="packs"] .pv-panel :is(.pv-direct-actions a,.pv-targets button,summary),
body[data-hq-page="packs"] #app #pack-extra-filters button {
  min-height:44px; height:auto; box-sizing:border-box; white-space:normal; overflow-wrap:anywhere;
}
body[data-hq-page="packs"] #app #results .pack-scan-card :is(.pack-place,.tag,.chain-card-basis,.preview-label),
body[data-hq-page="packs"] #app #results .pack-scan-costs > :is(.pack-scan-start,.chain-card-total) {
  font-size:.75rem; line-height:1.4;
}
body[data-hq-page="packs"] #app #results .pack-scan-card :is(.open-pack,.pack-content-name,.chain-card-basis),
body[data-hq-page="packs"] .pv-panel .pv-contents-visible li > span {min-width:0; overflow-wrap:anywhere}
body[data-hq-page="packs"] #app #results .pack-visible-contents li,
body[data-hq-page="packs"] .pv-panel .pv-contents-visible li {
  font-size:.875rem; line-height:1.45;
}
body[data-hq-page="packs"] :is(#app .pack-visible-contents li,.pv-panel .pv-contents-visible li) strong {
  font-variant-numeric:tabular-nums; white-space:normal; overflow-wrap:anywhere;
}
body[data-hq-page="packs"] #app #results .pack-scan-card .pack-contents-note,
body[data-hq-page="packs"] .pv-panel .pv-offer :is(.pv-contents-visible > small,.pv-prerequisite,.pv-cost-difference) {
  font-size:.8125rem; line-height:1.45;
}
body[data-hq-page="packs"] #app #results :is(.open-pack,.pack-place) {hyphens:auto}
body[data-hq-page="packs"] .pv-panel .pv-target-view > :is(h2,h3) {
  margin-block:1rem .3rem; line-height:1.28; overflow-wrap:anywhere;
}
body[data-hq-page="packs"] .pv-panel .pv-target-view > h2 {font-size:clamp(1.2rem,1.05rem + .7vw,1.6rem)}
body[data-hq-page="packs"] .pv-panel .pv-target-view > .pv-note {max-width:70ch; line-height:1.48}
body[data-hq-page="packs"] .pv-panel .pv-target-view > label {max-width:42rem; margin-block:.8rem .4rem}
body[data-hq-page="packs"] .pv-panel .pv-offer .pv-stat :is(small,strong) {line-height:1.4; overflow-wrap:anywhere}
body[data-hq-page="packs"] .pv-panel .pv-offer .pv-stat small {font-size:.75rem; color:#bfd1d2}
body[data-hq-page="packs"] .pv-panel .pv-offer .pv-stat strong {font-size:.9375rem; font-variant-numeric:tabular-nums}
body[data-hq-page="packs"] dialog#detail .facts {gap:0; padding:0; background:transparent; box-shadow:none; overflow:hidden}
body[data-hq-page="packs"] dialog#detail .facts > div {
  min-width:0; padding:.65rem .8rem; border:0; border-radius:0; background:#162832; box-shadow:inset 0 -1px #334a52;
}
body[data-hq-page="packs"] dialog#detail .facts :is(small,strong) {display:block; line-height:1.38; overflow-wrap:anywhere}
body[data-hq-page="packs"] dialog#detail .facts small {margin-bottom:.2rem; font-size:.75rem; color:#bdcdd0}
body[data-hq-page="packs"] dialog#detail .facts strong {font-size:.9375rem; font-variant-numeric:tabular-nums}
body[data-hq-page="packs"] dialog#detail .dialog-head #detail-title {line-height:1.24; overflow-wrap:anywhere}
body[data-hq-page="packs"] dialog#detail #detail-body > .pack-location {padding:0; border:0; background:transparent; box-shadow:none}
body[data-hq-page="packs"] dialog#detail #detail-body > .pack-location > summary {
  min-height:44px; height:auto; padding:.7rem 2.1rem .7rem .8rem; overflow-wrap:anywhere;
}
body[data-hq-page="packs"] dialog#detail #detail-body :is(.pack-account-link a,summary),
body[data-hq-page="packs"] dialog#detail .dialog-head :is(.tw-lang-toggle,button,summary,select) {
  min-height:44px; height:auto; box-sizing:border-box;
}
@media (max-width:44em) {
  body[data-hq-page="packs"] #hq-main-content #pack-views {
    width:100%; grid-template-columns:repeat(auto-fit,minmax(min(100%,7rem),1fr));
  }
  body[data-hq-page="packs"] #hq-main-content #pack-views button {font-size:.875rem; padding:.4rem .3rem}
  body[data-hq-page="packs"] #app #results .pack-scan-card {
    min-width:0; gap:.5rem; padding:.75rem; border-radius:10px;
  }
  body[data-hq-page="packs"] #app #results .pack-scan-start,
  body[data-hq-page="packs"] #app #results .chain-card-total {min-width:0; overflow-wrap:anywhere}
  body[data-hq-page="packs"] #app #results .pack-scan-costs {
    grid-template-columns:repeat(auto-fit,minmax(min(100%,7.5rem),1fr)); align-items:start;
  }
  body[data-hq-page="packs"] #app #results .pack-scan-costs .pack-scan-terms {grid-column:1/-1}
  body[data-hq-page="packs"] .pv-panel .pv-offer .pv-stats {
    display:grid; grid-template-columns:minmax(0,1fr); align-items:stretch; gap:1px;
    border:1px solid #354d54; border-radius:7px; padding:0; overflow:hidden; background:#354d54;
  }
  body[data-hq-page="packs"] .pv-panel .pv-offer .pv-stat {
    display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:.15rem .75rem;
    min-width:0; margin:0; padding:.38rem .65rem; border:0; border-radius:0;
    text-align:start; background:#122630;
  }
  body[data-hq-page="packs"] .pv-panel .pv-offer .pv-stat:last-child {background:#19352f}
  body[data-hq-page="packs"] .pv-panel .pv-offer .pv-stat:last-child strong {color:#d5f1df}
  body[data-hq-page="packs"] .pv-panel .pv-offer .pv-stat strong {margin:0}
  body[data-hq-page="packs"] dialog#detail[open] {
    box-sizing:border-box; position:fixed; inset:auto 0 0; width:100%; max-width:100%; margin:0;
    max-height:94vh; max-height:94dvh; padding:0; border:1px solid #536a70; border-bottom:0;
    border-radius:14px 14px 0 0; overflow-y:auto; overscroll-behavior:contain; background:#12232e;
  }
  body[data-hq-page="packs"] dialog#detail::backdrop {background:rgba(4,12,17,.76)}
  body[data-hq-page="packs"] dialog#detail .dialog-head {
    flex-wrap:wrap; align-items:center; gap:.35rem .55rem; padding:.6rem .8rem;
    border-block-end:1px solid #3d545b; background:#172d39;
  }
  body[data-hq-page="packs"] dialog#detail .dialog-head > div:has(> #detail-title) {
    flex:1 1 calc(100% - 4.25rem); min-width:0; max-width:100%;
  }
  body[data-hq-page="packs"] dialog#detail .dialog-head #detail-title {font-size:1.125rem}
  body[data-hq-page="packs"] dialog#detail .dialog-head #detail-sub {font-size:.8125rem; overflow-wrap:anywhere}
  body[data-hq-page="packs"] dialog#detail .dialog-head #detail-price-controls {flex:0 1 auto; margin:0}
  body[data-hq-page="packs"] dialog#detail .dialog-head .compact-detail-actions {flex:1 1 auto; min-width:0; flex-wrap:wrap; margin:0}
  body[data-hq-page="packs"] dialog#detail #detail-body {padding:.85rem .8rem max(1rem,env(safe-area-inset-bottom))}
  body[data-hq-page="packs"] dialog#detail #detail-body > :first-child {margin-block-start:0}
  body[data-hq-page="packs"] dialog#detail #detail-body > .facts {display:flex; flex-wrap:wrap}
  body[data-hq-page="packs"] dialog#detail #detail-body > .facts > div {box-sizing:border-box; flex:1 1 8rem}
}
@media (max-width:24em),(max-height:32em) {
  body[data-hq-page="packs"] dialog#detail .dialog-head {position:relative; top:auto}
}
@media (max-width:44em) {
  body[data-hq-page="packs"] dialog#detail .monthly-price-options dl {
    display:grid; grid-template-columns:minmax(0,1fr); gap:.12rem; margin-inline:0;
  }
  body[data-hq-page="packs"] dialog#detail .monthly-price-options :is(dt,dd) {
    min-width:0; margin:0; text-align:start; white-space:normal; overflow-wrap:anywhere;
  }
  body[data-hq-page="packs"] dialog#detail .monthly-price-options dd + dt {margin-block-start:.5rem}
}


/* Mobile catalogue search. The query stays available while the results scroll. */
@media (max-width:650px), (pointer:coarse) and (max-height:500px) and (max-width:960px) {
  #hq-finder[popover]:popover-open {
    --finder-paper:#11232b;
    --finder-rule:#354a50;
    --finder-muted:#b6c8c9;
    --finder-mint:#a4dfc8;
    inset-inline:0;
    width:min(40rem,calc(100% - 16px));
    --finder-space:calc(var(--finder-height,100dvh) - var(--finder-top,8px) - max(6px,env(safe-area-inset-bottom)));
    max-height:var(--finder-space);
    margin-inline:auto;
    border:1px solid #465e62;
    border-radius:14px;
    box-shadow:0 10px 34px #020b128c;
    overflow:hidden;
  }
  #hq-finder[popover] .hq-finder-inner {
    display:flex;
    flex-direction:column;
    max-height:calc(var(--finder-space) - 2px);
  }
  #hq-finder[popover] .hq-finder-field {
    position:relative;
    flex:none;
    min-height:48px;
    padding:0 4px 0 12px;
    gap:9px;
    margin:8px 8px 0;
    border:1px solid #647f7c;
    border-radius:9px;
    background:#182f36;
  }
  #hq-finder[popover] .hq-finder-field:focus-within {
    border-color:#91cab7;
    box-shadow:0 0 0 1px #91cab72b;
  }
  #hq-finder[popover] #hq-finder-query,
  #hq-finder[popover] #hq-finder-query::placeholder {
    font-size:max(16px,1rem);
    line-height:1.35;
  }
  #hq-finder[popover] .hq-finder-field:has(#hq-finder-query:focus-visible) {
    outline:2px solid var(--finder-mint);
    outline-offset:-1px;
  }
  #hq-finder[popover] .hq-finder-dismiss {
    position:relative;
    border-radius:6px;
  }
  #hq-finder[popover] .hq-finder-dismiss::before {
    position:absolute;inset-block:11px;inset-inline-start:0;
    border-inline-start:1px solid #4c6265;
    content:"";
  }
  #hq-finder[popover] .hq-finder-panel {
    flex:0 1 auto;
    min-height:0;
    box-sizing:border-box;
    max-height:min(34rem,100dvh);
    padding:0 12px 6px;
    scrollbar-gutter:auto;
    scroll-padding-block:4px;
    overscroll-behavior:contain;
  }
  #hq-finder[popover] .hq-finder-tools,
  #hq-finder[popover] .hq-finder-panel[data-filtered] .hq-finder-tools {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:start;
    gap:0 8px;
    padding:5px 0;
    border-bottom:1px solid var(--finder-rule);
  }
  #hq-finder[popover] .hq-finder-count {
    order:-1;
    flex:1 1 5.5rem;
    padding-block:3px;
    color:#d6e2df;
    font-size:.8125rem;
    font-weight:600;
  }
  #hq-finder[popover] .finder-kind {
    gap:9px;
    padding:6px 10px;
    min-height:44px;
    border-radius:7px;
    border-color:#415960;
    background:#182c34;
    font-size:.8125rem;
  }
  #hq-finder[popover] .finder-kind select {
    /* Let the native picker cover the entire label, including its chevron. */
    grid-area:auto;
  }
  #hq-finder[popover] .hq-finder-title {
    hyphens:auto;
  }
  #hq-finder[popover] .hq-finder-reset {
    min-width:44px;
    border-radius:6px;
    padding:6px 5px;
  }
  #hq-finder[popover] [role=option] {
    display:grid;
    grid-template-columns:minmax(0,1fr) fit-content(40%);
    justify-items:start;
    align-items:center;
    gap:2px 10px;
    min-height:48px;
    padding:9px 4px;
    border-color:#2f4249;
    font:580 .9375rem/1.35 system-ui,sans-serif;
  }
  #hq-finder[popover] [role=option]:last-child {border-bottom-color:transparent}
  #hq-finder[popover] [role=option] small {
    justify-self:end;
    text-align:end;
    overflow-wrap:anywhere;
    white-space:normal;
    font-size:.75rem;
  }
  #hq-finder[popover] [role=option].finder-suggestion {
    grid-template-columns:30px minmax(0,1fr) fit-content(32%);
    gap:2px 10px;
    min-height:50px;
  }
  #hq-finder[popover] .finder-result-icon {
    grid-row:auto;
    width:30px;height:30px;
    padding:6px;
    border:1px solid #35504f;
    border-radius:7px;
    background:#1b363a;
  }
  #hq-finder[popover] [role=option].finder-suggestion small {
    grid-column:auto;
    text-align:end;
  }
  #hq-finder[popover] .hq-finder-group small,
  #hq-finder[popover] [role=option] .hq-finder-price {
    color:var(--finder-mint);
    font-weight:600;
  }
  #hq-finder[popover] .hq-finder-variant {
    grid-column:1/-1;
    color:var(--finder-muted);
    font-size:.78125rem;
    line-height:1.4;
  }
  #hq-finder[popover] .hq-finder-family {
    position:static;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:0 8px;
    padding:3px 0;
    border-color:var(--finder-rule);
  }
  #hq-finder[popover] .hq-finder-family strong {
    flex:1 1 7rem;
    order:-1;
    min-width:0;
    padding:5px 2px;
    font:650 1rem/1.35 system-ui,sans-serif;
  }
  #hq-finder[popover] .hq-finder-family button {
    max-width:100%;
    margin-inline-start:auto;
    padding:6px;
    text-align:start;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  #hq-finder[popover] .hq-finder-panel:has(.hq-finder-family:not([hidden])) {
    scroll-padding-block:4px;
  }
  #hq-finder[popover] .hq-finder-more:not([hidden]) {
    width:100%;
    margin:5px 0 1px;
    padding:8px 12px;
    border:1px solid #39564f;
    border-radius:7px;
    background:#193432;
  }
  #hq-finder[popover] .hq-finder-panel:has([role=listbox]:empty) .hq-finder-count {
    order:1;
    flex-basis:100%;
    padding:12px 3px 8px;
    border-top:1px solid var(--finder-rule);
    margin-top:4px;
    font:.9375rem/1.5 system-ui,sans-serif;
    color:var(--finder-ink);
  }
  #hq-finder[popover] .hq-finder-panel:has([role=listbox]:empty) .hq-finder-reset {margin-inline-start:auto}
  #hq-finder[popover] .hq-finder-panel:has([role=listbox]:empty) .hq-finder-tools {border-bottom:0}
  #hq-finder[popover] [role=option][aria-selected=true] {
    border-radius:5px;
    background:#233e40;
    box-shadow:inset 3px 0 var(--finder-mint);
  }
  @container finder (max-width:17rem) {
    #hq-finder[popover] .hq-finder-count {flex-basis:100%}
    #hq-finder[popover] .hq-finder-panel[data-filtered] .hq-finder-reset {margin-inline-start:auto}
    #hq-finder[popover] [role=option]:not(.finder-suggestion) {grid-template-columns:minmax(0,1fr)}
    #hq-finder[popover] [role=option] small {justify-self:start;text-align:start}
    #hq-finder[popover] [role=option].finder-suggestion {grid-template-columns:minmax(0,1fr)}
    #hq-finder[popover] .finder-suggestion .finder-result-icon {display:none}
    #hq-finder[popover] [role=option].finder-suggestion small {grid-column:1;text-align:start}
  }
}
@media (pointer:coarse) and (max-height:420px) and (max-width:960px) {
  #hq-finder[popover] .hq-finder-field {margin-top:4px;min-height:44px}
  #hq-finder[popover] .hq-finder-tools,
  #hq-finder[popover] .hq-finder-panel[data-filtered] .hq-finder-tools {padding-block:2px}
}


/* Selected pack chains put the specific pack and calculated cost first. */
main[data-chain-detail] #chain-context-bar {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:4px 12px; margin:0 0 .45rem;
}
main[data-chain-detail] #chain-context-bar #chain-return {
  display:inline-flex; align-items:center; width:fit-content; max-width:100%; min-height:44px;
  margin:0; padding:0 4px; border:0; background:none; box-shadow:none;
  color:#a5d9ce; font-size:.875rem; line-height:1.4; text-decoration:none;
}
main[data-chain-detail] #chain-context-bar #chain-return:hover {text-decoration:underline}
main[data-chain-detail] #chain-context-bar #price-controls {margin:0; flex-wrap:wrap; min-width:0}
main[data-chain-detail] .page-heading:has(.chain-identity-meta) {
  display:block; padding:.65rem 0 1rem; margin:0; border:0; background:none; box-shadow:none;
}
main[data-chain-detail] .page-heading #title {font-size:clamp(1.18rem, 1.02rem + .9vw, 1.7rem);line-height:1.25;overflow-wrap:anywhere}
main[data-chain-detail] .chain-identity-meta {margin:.3rem 0 0;color:#b8cbd0;font-size:.875rem;line-height:1.45}
main[data-chain-detail] #chain-layout {display:flex;flex-direction:column;gap:1rem;min-width:0}
main[data-chain-detail] #chain-work {margin:0;min-width:0}
main[data-chain-detail] #chain-work > .notice {
  margin:0 0 .6rem; padding:.35rem 0 .35rem .7rem; border:0; border-inline-start:2px solid #a58c58;
  background:transparent; line-height:1.4; font-size:.8125rem; color:#dfd1ad;
}
main[data-chain-detail] .planner {
  background:#142934; border:1px solid #37515a; border-radius:12px; padding:clamp(12px,1.6vw,20px); margin:0 0 1.1rem;
}
main[data-chain-detail] .planner > h2,main[data-chain-detail] #chain-offer-info > h2 {
  margin:0 0 .6rem; color:#eef4f3; font-size:1.0625rem; line-height:1.35; overflow-wrap:anywhere;
}
main[data-chain-detail] .planner #plan-output {
  display:grid; gap:.7rem; border:0; margin:0; padding:0; background:transparent; box-shadow:none; min-width:0;
}
main[data-chain-detail] #chain-plan-tally {min-width:0;border:0;border-block:1px solid #39525a;padding:.65rem 0 .75rem}
main[data-chain-detail] #chain-plan-tally > p {margin:.2rem 0;color:#d3e0e2;font-size:.9375rem;line-height:1.45;overflow-wrap:anywhere}
main[data-chain-detail] #chain-plan-tally > .chain-plan-range {font-size:.8125rem;color:#b8cbd0}
main[data-chain-detail] #chain-plan-tally .planner-total {margin:0;color:#edf9f1;font-size:clamp(1.35rem,1.17rem + .8vw,1.75rem);line-height:1.25;font-variant-numeric:tabular-nums}
main[data-chain-detail] #chain-plan-tally .chain-unit-cost {margin:.2rem 0 0;padding:0;border:0;background:transparent}
main[data-chain-detail] #chain-plan-tally .chain-unit-cost > summary {width:fit-content;max-width:100%;padding:.35rem 1.4rem .35rem 0;min-height:36px;align-content:center;color:#a6d9cc}
main[data-chain-detail] .planner-controls {margin:0;min-width:0}
main[data-chain-detail] #chain-plan-tools .chain-plan-actions {margin:0;padding:0;gap:.45rem;flex-wrap:wrap}
main[data-chain-detail] #chain-plan-tools button {min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
main[data-chain-detail] #chain-offer-info {min-width:0;display:grid;gap:.45rem;padding-block:.25rem .5rem;border-block-start:1px solid #304650}
main[data-chain-detail] #chain-offer-info > :is(.pack-account-link,.pack-location,.notice,details) {margin:0}
main[data-chain-detail] #chain-offer-info > h2 {margin:.6rem 0 .1rem}
main[data-chain-detail] #chain-browser {margin:0}
@media(min-width:55em) {
  main[data-chain-detail] .planner #plan-output {grid-template-columns:minmax(12rem,.85fr) minmax(0,1.5fr);align-items:start;column-gap:1.4rem}
  main[data-chain-detail] #chain-plan-tally {grid-column:1;grid-row:1 / span 3;border:0;border-inline-end:1px solid #39525a;padding:0 1.2rem 0 0}
  main[data-chain-detail] #plan-output > :is(.planner-controls,.chain-goal,#chain-plan-tools){grid-column:2}
}
@media(max-width:31em) {
  main[data-chain-detail] #chain-plan-tally .chain-unit-cost > summary {min-height:44px}
  main[data-chain-detail] .planner-controls {grid-template-columns:repeat(auto-fit,minmax(min(100%,7rem),1fr))}
  main[data-chain-detail] .planner-controls label {min-width:0;overflow-wrap:anywhere}
  main[data-chain-detail] :is(#chain-plan-tools,.planner-controls) :is(select,button) {max-width:100%}
}
main[data-chain-detail] #chain-work .planner #plan-output {
  background:transparent !important; border:0 !important; padding:0 !important; box-shadow:none !important;
}
main[data-chain-detail] #chain-plan-options {
  min-width:0; grid-column:auto; margin:0; padding:0; border:0; border-top:1px solid #34505b;
  border-radius:0; background:transparent;
}
main[data-chain-detail] #chain-plan-options > summary {
  box-sizing:border-box; min-height:44px; padding:.5rem 1.5rem .5rem 0; align-content:center;
  font-size:.875rem; line-height:1.35; color:#b0dace; overflow-wrap:anywhere;
}
main[data-chain-detail] #chain-price-detail:not(:empty) {
  margin-block:.65rem; border-block-start:1px solid #304852; padding-block-start:.65rem;
}
main[data-chain-detail] #chain-price-detail h3 {font-size:.875rem;line-height:1.4;margin:0 0 .2rem}
main[data-chain-detail] #chain-price-detail p {margin:.15rem 0}
main[data-chain-detail] #chain-context-bar #chain-return {font-weight:600}
@media(min-width:55em) {
  main[data-chain-detail] #plan-output > #chain-plan-options {grid-column:2}
}
main[data-chain-detail] #chain-overview > h2 {margin:.8rem 0 .35rem;font-size:1.0625rem;line-height:1.35}
main[data-chain-detail] #chain-plan-tally a[data-item] {
  color:#abe0d1; text-decoration:underline; text-decoration-color:#709f93; text-underline-offset:.18em;
}


/* Collection, filtering and supplementary guides follow the item search. */
body[data-hq-page="items"] #app.item-organized {
  --item-panel: var(--atlas-panel, #132732);
  --item-rule: var(--atlas-border, #36515b);
}
body[data-hq-page="items"] #app.item-organized > .item-search {
  display: block; margin: 0 0 .75rem; padding: 0; border: 0; background: transparent;
}
body[data-hq-page="items"] #app.item-organized .item-search > label:first-child {
  display: grid; gap: .35rem; max-width: none; width: 100%;
}
body[data-hq-page="items"] #app.item-organized .item-search #search-label {
  font-size: .9375rem; font-weight: 700; line-height: 1.4;
}
body[data-hq-page="items"] #app.item-organized .item-search #search {
  width: 100%; min-height: 46px; padding-inline: .8rem 2.8rem;
  font-size: 1rem !important; border-color: var(--item-rule);
}
body[data-hq-page="items"] #app .item-browse-controls {
  display: flex; align-items: flex-start; flex-wrap: wrap; gap: .45rem;
  margin: 0;
}
body[data-hq-page="items"] #app .item-browse-controls > details {
  margin: 0; padding: 0; min-width: 0; max-width: 100%; border: 1px solid var(--item-rule);
  border-radius: .5rem; background: var(--item-panel); box-sizing: border-box;
}
body[data-hq-page="items"] #app .item-browse-controls > details > summary,
body[data-hq-page="items"] #detail .item-related-tools > summary {
  display: flex; gap: .4rem; align-items: center; min-height: 44px; padding: .45rem .7rem;
  box-sizing: border-box; cursor: pointer; font-size: .875rem; line-height: 1.35;
  font-weight: 650; list-style: none; overflow-wrap: anywhere; white-space: normal;
}
body[data-hq-page="items"] #app .item-browse-controls > details > summary::-webkit-details-marker,
body[data-hq-page="items"] #detail .item-related-tools > summary::-webkit-details-marker {display:none}
body[data-hq-page="items"] #app .item-browse-controls > details > summary::after,
body[data-hq-page="items"] #detail .item-related-tools > summary::after {
  content: ''; display: inline-block; position: static; width: .45rem; height: .45rem; min-width:.45rem;
  margin-inline-start: auto; border: solid currentColor; border-width: 0 1.5px 1.5px 0; 
  transform: rotate(45deg); flex-shrink: 0;
}
body[data-hq-page="items"] #app .item-browse-controls > details[open] > summary::after,
body[data-hq-page="items"] #detail .item-related-tools[open] > summary::after {transform:rotate(225deg)}
body[data-hq-page="items"] #app .item-collections > summary strong {color:#aedacc; font-weight:700}
body[data-hq-page="items"] #app .item-browse-controls > details[open] {flex:1 0 100%; padding:0 .7rem .7rem}
body[data-hq-page="items"] #app .item-browse-controls > details[open] > summary {padding-inline:0}
body[data-hq-page="items"] #app .item-browse-controls > details :is(.item-browse-heading,.refresh-links,.decision-entry,.item-extra-fields,.results-meta) {margin:.35rem 0 0}
body[data-hq-page="items"] #app .item-extra-filters #item-extra-fields {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:.65rem;
}
body[data-hq-page="items"] #app .item-extra-filters :is(label,select,.catalogue-view) {
  max-width:100%; min-width:0; box-sizing:border-box;
}
body[data-hq-page="items"] #app .item-extra-filters .results-meta {
  display:flex; flex-wrap:wrap; gap:.55rem; align-items:center; justify-content:flex-start;
  font-size:.875rem;
}
body[data-hq-page="items"] #app .item-extra-filters .results-meta .catalogue-view {margin:0}
body[data-hq-page="items"] #app .item-results-summary {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.35rem .65rem;
  color:#bdcdd2; margin:.85rem 0 .4rem; font-size:.875rem; line-height:1.4;
}
body[data-hq-page="items"] #app .item-results-summary > #clear {min-height:44px}
body[data-hq-page="items"] #app .item-search-context:empty,
body[data-hq-page="items"] #app .item-active-filters:empty {display:none}
body[data-hq-page="items"] #detail .item-reading-intro {min-width:0; margin:0 0 .8rem}
body[data-hq-page="items"] #detail .item-reading-intro > .lead {
  margin:0; max-width:68ch; color:#eef4f3; font-size:1.0625rem!important; line-height:1.5!important;
}
body[data-hq-page="items"] #detail .item-reading-intro .item-amount-picker {margin:.7rem 0 0}
body[data-hq-page="items"] #detail #item-browse-context {
  background:transparent; border:0; border-top:1px solid #374e59; border-radius:0;
  padding:.55rem 0; margin:0 0 .4rem; gap:.35rem .7rem;
}
body[data-hq-page="items"] #detail #item-browse-context > div {flex-basis:12rem}
body[data-hq-page="items"] #detail #item-browse-context > div > span {font-size:.8125rem; color:#afc3cc}
body[data-hq-page="items"] #detail #item-browse-context > div > p {font-size:.9375rem; line-height:1.4}
body[data-hq-page="items"] #detail .item-related-tools {
  margin-top:.65rem; border-top:1px solid #374e59; color:#c7d7dc;
}
body[data-hq-page="items"] #detail .item-related-tools > summary {padding-inline:0}
body[data-hq-page="items"] #detail .item-related-tools > .item-tool-link {
  margin:0; padding:0; background:transparent; border:0;
}
body[data-hq-page="items"] #detail .item-related-tools :is(a,summary) {
  min-height:44px; max-width:100%; box-sizing:border-box; overflow-wrap:anywhere; white-space:normal;
}
body[data-hq-page="items"] #detail .item-related-tools .item-tool-link a {display:inline-flex;align-items:center}
@media(max-width:44em) {
  body[data-hq-page="items"] #app .item-browse-controls > details {flex: 1 1 auto}
  body[data-hq-page="items"] #app .item-browse-controls > details[open] {flex-basis:100%}
  body[data-hq-page="items"] #app .item-browse-guides .decision-entry-links {grid-template-columns:1fr}
  body .reader.item-detail > a[data-return-guide] {display:inline-flex;align-items:center;min-height:44px}
}

body[data-hq-page="items"] main #app.item-organized .item-search #search-label {
  position:static!important; width:auto!important; height:auto!important; clip:auto!important;
  overflow:visible!important; white-space:normal!important; font-size:.9375rem!important;
}
body[data-hq-page="items"] #app.item-organized #results .result .open-item {
  font-size:1rem!important; line-height:1.35!important; font-weight:700!important; min-height:44px;
  padding:.2rem 0!important; border:0!important; background:transparent!important;
  box-shadow:none!important; text-align:start; overflow-wrap:anywhere;
}
body[data-hq-page="items"] #app.item-organized #results .result .item-main .sub {
  font-size:.8125rem!important; line-height:1.4!important; margin-top:0!important;
}
body[data-hq-page="items"] #app.item-organized #results .result .brief {
  font-size:.875rem!important; line-height:1.45!important;
}
body[data-hq-page="items"] #app.item-organized #results .result .item-save {
  min-width:44px!important; min-height:44px!important;
}
body[data-hq-page="items"] #detail .item-related-tools > summary {padding-inline:.75rem}



/* Catalogue tools stay next to the title, while search and comparison lead the page. */
body[data-hq-page="packs"] #hq-main-content .page-heading:has(.pack-guide-options) {
  display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:.4rem 1rem;
}
body[data-hq-page="packs"] #hq-main-content .pack-guide-options {
  margin:0; padding:0; border:0; background:none; color:#dae7e6; min-width:0; max-width:100%;
}
body[data-hq-page="packs"] #hq-main-content .pack-guide-options[open] {flex:1 0 100%}
body[data-hq-page="packs"] #hq-main-content .pack-guide-options > summary {
  width:fit-content; max-width:100%; min-height:44px; padding:.5rem .65rem; box-sizing:border-box;
  font-size:.875rem; line-height:1.4; font-weight:600; white-space:normal; overflow-wrap:anywhere;
  border:1px solid #425e67; border-radius:6px; background:#172e38; cursor:pointer;
}
body[data-hq-page="packs"] #hq-main-content .pack-guide-options > summary::after {content:none}
body[data-hq-page="packs"] #hq-main-content .pack-options-summary > :last-child,
body[data-hq-page="packs"].pv-comparing #hq-main-content .pack-options-summary > :first-child {display:none}
body[data-hq-page="packs"].pv-comparing #hq-main-content .pack-options-summary > :last-child {display:inline}
body[data-hq-page="packs"] #hq-main-content .pack-guide-options #price-controls:not([hidden]) {
  display:flex; width:fit-content; max-width:100%; align-items:center; flex-wrap:wrap; gap:.6rem; margin:.65rem 0 0;
}
body[data-hq-page="packs"].pv-comparing #hq-main-content .pack-guide-options #price-controls {display:none}
body[data-hq-page="packs"] #hq-main-content .pack-guide-options .decision-entry {
  margin:.6rem 0 0; padding:.65rem 0 0; max-width:65rem; border:0; border-top:1px solid #35505a; border-radius:0;
  background:transparent; box-shadow:none;
}
body[data-hq-page="packs"] #hq-main-content .pack-guide-options .decision-entry-count {display:none}
body[data-hq-page="packs"] #hq-main-content #pack-views {margin-block:.65rem .35rem}
body[data-hq-page="packs"] #hq-main-content #notice.pack-availability-note {
  margin:.35rem 0 .85rem; line-height:1.45; font-size:.8125rem; color:#c2d2d3;
}
body[data-hq-page="packs"] #app #results .pack-scan-card .item-main:has(> .art-missing) {
  display:block;
}
body[data-hq-page="packs"] #app #results .pack-scan-card .item-main > .art-missing,
body[data-hq-page="packs"] .pv-panel .pv-offer :is(.pack-duplicate-link,.pack-empty-actions) {display:none!important}
body[data-hq-page="packs"] #app #results .pack-scan-card .open-pack,
body[data-hq-page="packs"] .pv-panel .pv-offer > a:first-child {
  font-size:1.0625rem; font-weight:720; line-height:1.36;
}
body[data-hq-page="packs"] #app #results .pack-scan-card .pack-action {
  background:transparent; border:0; border-top:1px solid #344e58; border-radius:0; box-shadow:none;
  color:#b4e2d3; justify-content:flex-start; text-align:start; font-size:.875rem; line-height:1.4;
}
body[data-hq-page="packs"] #app #results .pack-scan-card .preview-label {text-transform:none; letter-spacing:.015em; color:#c7d6d6}
body[data-hq-page="packs"] #app #results .pack-scan-start .price,
body[data-hq-page="packs"] #app #results .chain-card-total strong {font-size:1.0625rem}
body[data-hq-page="packs"] #detail .dialog-head:has(.compact-detail-menu #detail-price-controls) {
  display:flex; flex-wrap:wrap; gap:.4rem .65rem; align-items:center;
}
body[data-hq-page="packs"] #detail .dialog-head #detail-art:has(> .art-missing) {display:none}
body[data-hq-page="packs"] #detail .dialog-head:has(.compact-detail-menu #detail-price-controls) > div:has(> #detail-title) {
  flex:1 1 11rem; min-width:min(100%,9rem);
}
body[data-hq-page="packs"] #detail .dialog-head:has(.compact-detail-menu #detail-price-controls) .compact-detail-actions {
  margin-inline-start:auto; flex:0 1 auto; min-width:0; align-items:center; gap:.45rem;
}
body[data-hq-page="packs"] dialog#detail .dialog-head :is(#detail-title) {font-size:clamp(1.125rem,1.1rem + .4vw,1.5rem)}
body[data-hq-page="packs"] dialog#detail .compact-detail-menu {
  min-width:0; box-sizing:border-box; width:min(21rem,calc(100vw - 2.75rem)); max-width:calc(100vw - 2.75rem);
}
body[data-hq-page="packs"] dialog#detail .compact-detail-menu :is(.tw-lang-toggle, #detail-price-controls select) {min-height:44px; max-width:100%}
body[data-hq-page="packs"] dialog#detail .compact-detail-menu #detail-price-controls:not([hidden]) {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.35rem; width:100%;
}
body[data-hq-page="packs"] dialog#detail .compact-detail-menu #detail-price-controls > span {display:inline; font-size:.8125rem}
body[data-hq-page="packs"] dialog#detail #detail-body > .facts {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr)); margin:0 0 .6rem;
  padding:0; gap:1px; border:1px solid #35515a; border-radius:8px; background:#35515a;
}
body[data-hq-page="packs"] dialog#detail #detail-body > .facts > div {
  min-width:0; margin:0; padding:.5rem .7rem; border:0; border-radius:0; box-shadow:none; background:#182d38;
}
body[data-hq-page="packs"] dialog#detail #detail-body .facts > div:has(.pack-price) {background:#183b35}
body[data-hq-page="packs"] dialog#detail #detail-body .facts .pack-price {color:#d4f2e4; font-size:1.18rem}
body[data-hq-page="packs"] dialog#detail #detail-body > .pack-location {margin:.5rem 0 .8rem}
body[data-hq-page="packs"] dialog#detail .pack-account-link {margin-top:1rem; border-top:1px solid #3b535e}
body[data-hq-page="packs"] dialog#detail #detail-body :is(.pack-weekly-reference,.pack-discount-details) {
  min-width:0; margin:.6rem 0; padding:0; border:1px solid #3a555d; border-radius:7px; background:#162b35;
}
body[data-hq-page="packs"] dialog#detail #detail-body :is(.pack-weekly-reference,.pack-discount-details) > summary {
  min-height:44px; padding:.65rem .7rem; font-size:.9375rem; line-height:1.4; overflow-wrap:anywhere; cursor:pointer;
}
body[data-hq-page="packs"] dialog#detail #detail-body .pack-discount-details > :is(ol,p,.chain-links) {margin:.6rem .8rem}
body[data-hq-page="packs"] dialog#detail #detail-body .pack-weekly-reference .weekly-full-reference {
  padding:.3rem .65rem .75rem; border:0; background:transparent; margin:0;
}
body[data-hq-page="packs"] dialog#detail .pack-weekly-reference .weekly-full-reference > h3 {display:none}
body[data-hq-page="packs"] dialog#detail #weekly-content {min-width:0}
body[data-hq-page="packs"] dialog#detail #weekly-content > .level-picker {
  align-items:baseline; flex-wrap:wrap; gap:.4rem .7rem; padding:.55rem .7rem; margin:.7rem 0 .45rem;
  border-radius:7px; background:#183832; border:1px solid #3a6359;
}
body[data-hq-page="packs"] dialog#detail #weekly-content > .level-picker > :is(label,select,span) {
  min-width:0; max-width:100%; line-height:1.4; overflow-wrap:anywhere;
}
body[data-hq-page="packs"] dialog#detail #weekly-content > .level-picker :is(label,select) {font-size:.9375rem}
body[data-hq-page="packs"] dialog#detail #weekly-content > .two-col h3 {margin-top:0; font-size:1.08rem}
body[data-hq-page="packs"] dialog#detail .monthly-price-options > h3 {margin-top:0; font-size:1.15rem}
body[data-hq-page="packs"] dialog#detail #detail-body .monthly-price-options dl {
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:baseline; column-gap:.7rem; row-gap:.3rem;
}
body[data-hq-page="packs"] dialog#detail #detail-body .monthly-price-options dd {font-weight:700; font-variant-numeric:tabular-nums}
@media (max-width:44em) {
  body[data-hq-page="packs"] .pv-panel .pv-offer .pv-stat {
    display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,6.5rem),1fr)); gap:.12rem .55rem; align-items:baseline;
  }
  body[data-hq-page="packs"] .pv-panel .pv-offer .pv-stat :is(small,strong) {width:auto; margin:0}
  body[data-hq-page="packs"] .pv-panel .pv-offer .pv-stat strong {justify-self:end}
  body[data-hq-page="packs"] dialog#detail .dialog-head:has(.compact-detail-more[open]) {position:relative; display:flex}
  body[data-hq-page="packs"] dialog#detail .dialog-head:has(.compact-detail-more[open]) .compact-detail-actions {
    width:100%; display:flex; align-items:start; justify-content:flex-end; flex-wrap:wrap;
  }
  body[data-hq-page="packs"] dialog#detail .compact-detail-more[open] {flex:1 1 9rem; min-width:0}
  body[data-hq-page="packs"] dialog#detail .compact-detail-more[open] .compact-detail-menu {
    position:static; width:100%; max-width:100%; max-height:none; box-shadow:none; overflow:visible;
  }
  body[data-hq-page="packs"] dialog#detail .compact-detail-more[open] .compact-detail-menu .tw-lang-toggle {width:fit-content; min-width:0}
  body[data-hq-page="packs"] #app #pack-hidden-dates:not([hidden]) {
    display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.2rem .55rem;
    padding:.35rem .65rem; font-size:.8125rem; line-height:1.4;
  }
  body[data-hq-page="packs"] #app #pack-hidden-dates button {margin:0; min-height:44px; white-space:normal}
}
@media (max-width:23em) {
  body[data-hq-page="packs"] dialog#detail #detail-body .monthly-price-options dl {
    grid-template-columns:minmax(0,1fr);
  }
  body[data-hq-page="packs"] .pv-panel .pv-offer .pv-stat strong {justify-self:start}
}
body[data-hq-page="packs"] #hq-main-content .pack-guide-links {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap:.15rem .8rem;
  margin:.7rem 0 0; padding:0; border:0; box-shadow:none; background:transparent;
}
body[data-hq-page="packs"] #hq-main-content .pack-guide-links a {
  display:flex; align-items:center; min-width:0; min-height:44px; padding:.4rem 0; border-top:1px solid #36515a;
  font-size:.9375rem; line-height:1.4; text-decoration:underline; text-underline-offset:.2em; overflow-wrap:anywhere;
}
body[data-hq-page="packs"] dialog#detail .compact-detail-menu .tw-lang-toggle {
  min-height:44px!important; height:auto!important; font-size:.875rem!important; line-height:1.4!important;
}
body[data-hq-page="packs"] dialog#detail #detail-body > .facts {display:flex; flex-wrap:wrap}
body[data-hq-page="packs"] dialog#detail #detail-body > .facts > div {flex:1 1 8rem}

body[data-hq-page="packs"] dialog#detail .compact-detail-menu {--tw-language-control-height:max(44px,1.75rem)}
body[data-hq-page="packs"] #app #clear[hidden] {display:none!important}
body[data-hq-page="packs"] #app #clear.pack-all-sections:not([hidden]) {
  min-height:44px; padding:.35rem .15rem; background:none; border-color:transparent; box-shadow:none;
  color:#b6e1d3; text-underline-offset:.22em; text-decoration:underline;
}
body[data-hq-page="packs"] dialog#detail .dialog-head :is(.compact-detail-more > summary,#close) {
  font-size:.875rem!important; line-height:1.35!important; padding:.4rem .55rem!important;
  white-space:normal; overflow-wrap:anywhere;
}
body[data-hq-page="packs"] dialog#detail .compact-detail-more[open] .compact-detail-menu {
  display:flex; flex-direction:column; align-items:stretch; gap:.4rem;
}
body[data-hq-page="packs"] dialog#detail .compact-detail-more[open] .compact-detail-menu button[data-copy-page],
body[data-hq-page="packs"] dialog#detail .compact-detail-menu #detail-price-controls:not([hidden]) > span {
  font-size:.8125rem!important; line-height:1.4!important;
}
body[data-hq-page="packs"] dialog#detail .compact-detail-menu #detail-price-controls:not([hidden]) > span {display:inline!important}
body[data-hq-page="packs"] dialog#detail .compact-detail-menu #detail-price-controls select {font-size:max(16px,.9rem)}
@media (max-width:44em) {
  body[data-hq-page="packs"] dialog#detail .dialog-head:has(.compact-detail-more[open]) .compact-detail-actions {
    width:100%; justify-content:space-between; align-items:flex-start;
  }
  body[data-hq-page="packs"] dialog#detail .compact-detail-actions:has(.compact-detail-more[open]) #close {align-self:flex-start}
  body[data-hq-page="packs"] dialog#detail .compact-detail-more[open] {flex:1 1 7rem; margin-inline:0!important}
  body[data-hq-page="packs"] dialog#detail .compact-detail-more > summary {width:fit-content; max-width:100%}
}
body[data-hq-page="packs"] dialog#detail #custom-compare-panel .ht-chip-quick {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));
}
body[data-hq-page="packs"] dialog#detail #custom-compare-panel .ht-chip-quick strong span {
  white-space:normal; overflow-wrap:anywhere; font-size:.8125rem; line-height:1.4;
}


body[data-hq-page="stores"] #app .filters {padding:0;background:none;border:0;display:block;margin:.45rem 0}
body[data-hq-page="stores"] #app .filters > label:first-child {width:100%;margin:0}
body[data-hq-page="stores"] #store-mobile-label {margin:.1rem 0 .45rem;padding:0}
body[data-hq-page="stores"] #store-options {padding:0;border:1px solid #344c56;border-radius:8px;background:#142934;margin:0 0 .6rem;min-width:0}
body[data-hq-page="stores"] #store-options > summary {display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;position:relative;min-height:44px;padding:.35rem 2rem .35rem .75rem;box-sizing:border-box;font-size:.875rem;color:#e5efed;font-weight:600;cursor:pointer;list-style:none}
body[data-hq-page="stores"] #store-options > summary::-webkit-details-marker {display:none}
body[data-hq-page="stores"] #store-options > summary::after {content:"";position:absolute;inset-inline-end:.85rem;top:42%;width:.42rem;height:.42rem;border:solid #9db8b6;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
body[data-hq-page="stores"] #store-options[open] > summary::after {transform:rotate(225deg)}
body[data-hq-page="stores"] #store-options > :is(label,#store-guide,#notice) {margin:.35rem .75rem .7rem;width:auto;min-width:0}
body[data-hq-page="stores"] #store-options-active {color:#a4d6c8;font-size:.8125rem;font-weight:500}
body[data-hq-page="stores"] #app #results .store-result {margin:0;padding:0;min-width:0}
body[data-hq-page="stores"] #app #results .store-result > a.store-open {
 display:grid;grid-template-columns:minmax(0,1fr);gap:.45rem;position:relative;
 width:100%;height:100%;min-height:44px;box-sizing:border-box;text-align:start;
 padding:.7rem .85rem;border:0;border-radius:inherit;background:transparent;color:inherit;
 font-size:.875rem;line-height:1.45;white-space:normal;text-decoration:none;box-shadow:none;overflow-wrap:anywhere;
}
body[data-hq-page="stores"] #app #results .store-result > a.store-open::after {content:"";position:absolute;inset-inline-end:1rem;top:1.2rem;width:7px;height:7px;border:solid #91b6ac;border-width:0 1.5px 1.5px 0;transform:rotate(-45deg)}
body[data-hq-page="stores"] #app #results .store-open > .item-main {min-width:0;align-items:center;padding-inline-end:1.1rem;gap:.65rem}
body[data-hq-page="stores"] #app #results .store-open .store-card-name {font-size:1rem;line-height:1.35;color:#d9f3e9}
body[data-hq-page="stores"] #app #results .store-summary {display:grid;gap:.15rem;align-content:start;margin:0;padding:.4rem 0 0;border-block-start:1px solid #344b54}
body[data-hq-page="stores"] #app #results .store-summary .sub, body[data-hq-page="stores"] #app #results .store-open .item-main .sub {font-size:.8125rem;line-height:1.4;color:#b9cbd0}
body[data-hq-page="stores"] #app #results .store-summary .price {font-size:.9375rem;color:#a5d9c9;font-variant-numeric:tabular-nums}
body[data-hq-page="stores"] #app #results a.store-open:hover .store-card-name {text-decoration:underline;text-underline-offset:.16em}
body[data-hq-page="stores"] #app #results a.store-open:focus-visible {outline:2px solid #a6dec9;outline-offset:-3px}
body[data-hq-page="stores"] #app #results {row-gap:.6rem}
@media(min-width:49em){
 body[data-hq-page="stores"] #app #results .store-result > a.store-open {grid-template-columns:minmax(8rem,.95fr) minmax(0,1.2fr);align-items:center}
 body[data-hq-page="stores"] #app #results .store-open .store-summary {border:0;border-inline-start:1px solid #344b54;padding:0 1.2rem 0 .85rem}
}
body[data-hq-page="stores"] #app #results .store-result > a.store-open {font-weight:400}
body[data-hq-page="stores"] #app #results .store-card-name,
body[data-hq-page="stores"] #app #results .store-summary .price {font-weight:650}
body[data-hq-page="stores"] #app #results .store-open .item-main .sub,
body[data-hq-page="stores"] #app #results .store-summary .sub {font-weight:400}
body[data-hq-page="stores"] #app #results .store-result + .store-result {margin-block-start:.25rem}
body[data-hq-page="stores"] #app #results .store-card-name .store-pack-size {display:inline-block;font-size:.875em;color:#bfd0d3;font-variant-numeric:tabular-nums;font-weight:500}
body[data-hq-page="stores"] #app #results .store-result {display:block}
@media(min-width:49em){
 body[data-hq-page="stores"] #app #results {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,28rem),1fr));gap:.65rem;padding:0;border:0;background:transparent}
 body[data-hq-page="stores"] #app #results .store-result + .store-result {margin-block-start:0}
 body[data-hq-page="stores"] #app #results .store-result > a.store-open {grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}
 body[data-hq-page="stores"] #app #results .store-open .store-summary {padding-inline-end:1.6rem;text-align:start}
 body[data-hq-page="stores"] #app #results .empty {grid-column:1/-1}
}


body.appearance-catalogue #appearance-filters {display:block;margin:.8rem 0 .35rem;padding:0;background:transparent;border:0;box-shadow:none}
body.appearance-catalogue .app-search-row {display:flex;flex-wrap:wrap;align-items:end;gap:.4rem .55rem}
body.appearance-catalogue #appearance-filters .app-search-row label {flex:1 1 12rem}
body.appearance-catalogue #appearance-filters .app-search-row button {min-height:44px;padding:.45rem .9rem;font:inherit;font-size:.875rem;font-weight:600;border:1px solid #567a73;border-radius:7px;color:#e9f6ee;background:#23463d;cursor:pointer}
body.appearance-catalogue #appearance-filters :is(input[type="search"],select) {width:100%;max-width:100%;min-width:0;box-sizing:border-box;min-height:44px;font-size:max(16px,1rem)}
body.appearance-catalogue .app-filter-options {margin:.5rem 0;padding:0;background:#142934;border:1px solid #344c56;border-radius:8px}
body.appearance-catalogue .app-filter-options summary {padding:.5rem .75rem;box-sizing:border-box;min-height:44px;align-content:center;cursor:pointer;color:#e3edec;font-size:.875rem;font-weight:600}
body.appearance-catalogue .app-filter-options > div {display:flex;flex-wrap:wrap;align-items:end;gap:.25rem 1rem;padding:0 .75rem .7rem}
body.appearance-catalogue .app-filter-options > div > label {flex:1 1 13rem;min-width:0}
body.appearance-catalogue .app-filter-options .app-check {min-height:44px;align-items:center}
body.appearance-catalogue .app-result-actions {display:flex;flex-wrap:wrap;align-items:center;gap:.15rem .9rem;min-height:44px;margin:0 0 .45rem}
body.appearance-catalogue .app-result-actions :is(.app-count,.app-related) {margin:0;padding:0;border:0}
body.appearance-catalogue .app-result-actions .app-related {margin-inline-start:auto}
body.appearance-catalogue main :is(.app-related a,#appearance-reset,.app-back) {display:inline-flex;min-height:44px;align-items:center;max-width:100%;line-height:1.35;overflow-wrap:anywhere}
body.appearance-catalogue main .app-related a {font-size:.875rem;font-weight:600}
body.appearance-catalogue .appearance-card {gap:.65rem;padding:.65rem .75rem;align-items:center}
body.appearance-catalogue .appearance-card > div {min-width:0}
body.appearance-catalogue .appearance-card > div > strong {font-size:1rem;line-height:1.35}
body.appearance-catalogue .app-preview-bonus {display:block;color:#dce8e5;font-size:.8125rem;line-height:1.4;overflow-wrap:anywhere;margin-top:.32rem}
body.appearance-catalogue .app-preview-bonus > span {color:#a9bfca}
body.appearance-catalogue .app-preview-bonus b {font-variant-numeric:tabular-nums;color:#b3dfd0;white-space:normal}
body.appearance-catalogue main .app-bonuses section {min-width:0}
body.appearance-catalogue main .app-table {max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
@media(max-width:35em){body.appearance-catalogue .app-result-actions .app-related {margin-inline-start:0}body.appearance-catalogue main :is(.app-intro,.app-note){line-height:1.5}}


body[data-hq-page="items"] #detail [data-item-sources] .item-source-jumps {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; gap:.25rem .45rem;
  margin:.25rem 0 1rem; padding:0 0 .65rem; border:0; border-bottom:1px solid #39515d;
  background:transparent; box-shadow:none;
}
body[data-hq-page="items"] #detail .item-source-jumps > span {
  flex-basis:100%; color:#bed1d5; font-size:.8125rem; font-weight:650; line-height:1.4;
}
body[data-hq-page="items"] #detail .item-source-jumps button {
  display:inline-flex; align-items:center; min-width:0; max-width:100%; min-height:44px;
  padding:.3rem .7rem; border:1px solid #47616a; border-radius:.45rem;
  background:#18333e; color:#cbebe2; font:inherit; font-size:.875rem; font-weight:650;
  line-height:1.35; text-align:start; white-space:normal; overflow-wrap:anywhere;
}
body[data-hq-page="items"] #detail [data-item-sources] .chest-source-group > ul {
  display:grid; gap:0; margin:.2rem 0 .85rem; padding:0; list-style:none;
  border-block:1px solid #394f5a;
}
body[data-hq-page="items"] #detail [data-item-sources] .chest-source-group li {
  display:flex; flex-wrap:wrap; align-items:baseline; gap:0 .65rem; min-width:0; margin:0;
  padding:.12rem .1rem; border:0; border-radius:0; background:transparent; box-shadow:none;
}
body[data-hq-page="items"] #detail [data-item-sources] .chest-source-group li + li {
  border-top:1px solid #314953;
}
body[data-hq-page="items"] #detail [data-item-sources] .chest-source-group li a {
  display:inline-flex; align-items:center; min-height:44px; min-width:0; max-width:100%;
  flex:1 1 9rem; line-height:1.4; font-size:.9375rem; font-weight:650;
  white-space:normal; overflow-wrap:anywhere; text-underline-offset:.2em;
}
body[data-hq-page="items"] #detail [data-item-sources] .chest-source-group li .source-reward {
  display:block; flex:0 1 auto; min-width:0; max-width:100%; margin:0; padding:.25rem 0;
  line-height:1.4; font-size:.8125rem; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; color:#b8ced3;
}
body[data-hq-page="items"] #detail [data-item-sources] .gameplay-source-head > a {
  display:inline-flex; align-items:center; min-height:44px; overflow-wrap:anywhere;
}
body[data-hq-page="packs"] #detail #custom-choose-panel .custom-choice {
  min-width:0; border:1px solid #39505a; border-radius:.55rem; background:#132630;
}
body[data-hq-page="packs"] #detail #custom-choose-panel .custom-choice:has(input:checked) {
  border-color:#71bdab; background:#19372f; box-shadow:inset .22rem 0 #85d3b9;
}
body[data-hq-page="packs"] #detail #custom-choose-panel .custom-choice:has(input:focus-visible) {
  outline:2px solid #b1f1dc; outline-offset:2px;
}
body[data-hq-page="packs"] #detail #custom-choose-panel .custom-choice label {
  display:grid; grid-template-columns:auto auto minmax(0,1fr); align-items:start; min-height:44px;
  gap:.3rem .55rem; color:#edf5f4; line-height:1.35; font-size:.9375rem; font-weight:650;
  white-space:normal; overflow-wrap:anywhere;
}
body[data-hq-page="packs"] #detail #custom-choose-panel .custom-choice label input {
  margin:.18rem 0 0; accent-color:#96dbc3;
}
body[data-hq-page="packs"] #detail #custom-choose-panel .custom-choice .cc-choice-amounts {
  display:flex; flex-wrap:wrap; align-items:baseline; gap:.22rem .6rem;
  margin:.45rem 0 .2rem; font-size:.8125rem; font-weight:400; line-height:1.35;
}
body[data-hq-page="packs"] #detail #custom-choose-panel .custom-choice .cc-choice-amounts > span {
  display:inline-block; max-width:100%; padding:.12rem .35rem; border-radius:.25rem;
  background:#233c44; color:#d6e6e8; overflow-wrap:anywhere;
}
body[data-hq-page="packs"] #detail #custom-choose-panel .custom-choice .cc-choice-amounts > span + span {
  background:#244039; color:#d2ede2;
}
body[data-hq-page="packs"] #detail #custom-choose-panel .custom-choice label small:not(.cc-choice-amounts) {
  line-height:1.4; font-size:.8125rem; font-weight:400;
}
body[data-hq-page="packs"] #detail #custom-choose-panel .custom-choice-links :is(a,summary) {
  display:inline-flex; align-items:center; min-height:44px; min-width:0; max-width:100%;
  white-space:normal; overflow-wrap:anywhere; font-size:.875rem; line-height:1.4; text-underline-offset:.2em;
}
@media (max-width:44em) {
  body[data-hq-page="packs"] .pv-panel .pv-offer .pv-stat {
    display:flex; flex-flow:row wrap; justify-content:space-between; align-items:baseline; gap:.15rem .55rem;
  }
  body[data-hq-page="packs"] .pv-panel .pv-offer .pv-stat :is(small,strong) {
    display:block; flex:0 1 auto; width:auto; min-width:0; max-width:100%; overflow-wrap:anywhere;
  }
  body[data-hq-page="packs"] .pv-panel .pv-offer .pv-stat strong {
    font-variant-numeric:tabular-nums; text-align:start;
  }
}
body[data-hq-page="packs"] dialog#detail .dialog-head:has(#close) .compact-detail-more > summary {
  padding-inline-end:1.65rem!important;
}


/* Army catalogue browsing and recipe reading. */
body:is([data-hq-page="equipment"],[data-hq-page="components"]) main > .decision-entry {
  margin-block:1.5rem; max-width:100%;
}
body[data-hq-page="equipment"] :is(#main-content,#hq-main-content) #app .gear-filters {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));
  align-items:start; gap:.65rem 1rem; padding:.85rem;
}
body[data-hq-page="equipment"] :is(#main-content,#hq-main-content) #app .gear-filters > label:first-child {grid-column:auto}
body[data-hq-page="equipment"] #app #army-library-filters {
  min-width:0; margin:0; border:1px solid #466267; border-radius:.5rem; background:#10242c;
}
body[data-hq-page="equipment"] #army-library-filters:has(#slot-field[hidden]) {display:none}
body[data-hq-page="equipment"] #app #army-library-filters > summary {
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-content:center;
  min-height:44px; padding:.5rem .75rem; color:#e7f0ef; cursor:pointer;
}
body[data-hq-page="equipment"] #army-library-filters > summary::-webkit-details-marker {display:none}
body[data-hq-page="equipment"] #army-library-filters > summary::after {
  content:""; width:.55rem; height:.55rem; border-inline-end:2px solid #b3d4cd; border-block-end:2px solid #b3d4cd;
  transform:rotate(45deg); grid-column:2; grid-row:1/3; align-self:center; margin:.2rem;
}
body[data-hq-page="equipment"] #army-library-filters[open] > summary::after {transform:rotate(225deg)}
body[data-hq-page="equipment"] #army-library-filters summary strong {font-size:.9375rem; line-height:1.35}
body[data-hq-page="equipment"] #army-library-filters summary span {grid-column:1; font-size:.8125rem; line-height:1.45; color:#bfd0cb; overflow-wrap:anywhere}
body[data-hq-page="equipment"] #app .army-library-fields {
  border-block-start:1px solid #34505a; padding:.65rem .75rem .75rem; display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr)); gap:.65rem;
}
body[data-hq-page="equipment"] #app .army-library-fields > #army-filters {grid-column:1/-1; margin:0}
body[data-hq-page="equipment"] #app .army-library-fields > label {display:grid; gap:.25rem; font-size:.875rem; min-width:0}
body[data-hq-page="equipment"] #app .army-library-fields select {box-sizing:border-box; width:100%; max-width:100%; min-width:0; min-height:44px; font-size:1rem}
body[data-hq-page="equipment"] #app .gear-meta {
  display:flex; flex-wrap:wrap; gap:.4rem .75rem; align-items:center;
}
body[data-hq-page="equipment"] #app .gear-meta[hidden] {display:none}
body[data-hq-page="equipment"] #app .gear-meta #gear-set {
  min-width:0; max-width:100%; margin:0 0 0 auto; padding:0; background:transparent; border:0;
}
body[data-hq-page="equipment"] #app .gear-meta #gear-set[open] {width:100%; padding:.7rem; border:1px solid #466267; border-radius:.5rem; background:#10242c}
body[data-hq-page="equipment"] #app .gear-meta #gear-set > summary {
  display:list-item; list-style-position:inside; min-height:44px; padding:.65rem .25rem; color:#b9e5d7; font-size:.875rem; line-height:1.45;
}
body[data-hq-page="equipment"] #app #gear-set[hidden] {display:none}
body[data-hq-page="equipment"] #app #gear-grid .gear-card .scan-name {font-size:1rem; line-height:1.4; overflow-wrap:anywhere}
body[data-hq-page="equipment"] #app #gear-grid .gear-card :is(.gear-labels,.gear-stat,.scan-label) {font-size:.875rem; line-height:1.4}
body[data-hq-page="equipment"] #app #gear-grid .gear-card .gear-stat strong {font-size:.9375rem; font-variant-numeric:tabular-nums}
body[data-hq-page="equipment"] #app #gear-grid .gear-card .scan-action {font-size:.8125rem}
body[data-hq-page="equipment"] #gear-detail #gear-detail-body :is(.gear-detail-section > h3,#upgrade-pane h3) {font-size:1.125rem; line-height:1.35}
body[data-hq-page="equipment"] #gear-detail-body .gear-detail-section :is(.recipe-line,.gear-stat) {
  font-size:.9375rem; line-height:1.45; min-width:0; align-items:center; padding-block:.36rem;
}
body[data-hq-page="equipment"] #gear-detail-body .gear-detail-section .gear-stat strong {font-size:1rem; font-variant-numeric:tabular-nums}
body[data-hq-page="equipment"] #gear-detail-body .gear-detail-section .recipe-line small,
body[data-hq-page="equipment"] #gear-detail-body .gear-detail-section .gear-detail-note {font-size:.8125rem; line-height:1.45}
body[data-hq-page="equipment"] #gear-detail-body :is(.gear-quality-table,#compare-panel table) :is(td,th) {font-size:.875rem; line-height:1.45}
body[data-hq-page="equipment"] #gear-detail-body .gear-detail-section > #compare-panel {padding:0; margin:.65rem 0 0; border:0; border-block-start:1px solid #39535b; border-radius:0; background:transparent}
body[data-hq-page="equipment"] #gear-detail-body #compare-panel > summary {
  color:#b9e5d7; font-size:.9375rem; line-height:1.4; min-height:44px; padding:.6rem .15rem;
}
body[data-hq-page="equipment"] #gear-detail-body #compare-panel :is(select,label) {min-width:0; max-width:100%; overflow-wrap:anywhere}
body[data-hq-page="components"] #hq-main-content #app #results .component-result .open-item {font-size:1.0625rem; line-height:1.35}
body[data-hq-page="components"] #hq-main-content #app #results .component-result .component-effect {font-size:.875rem; line-height:1.45}
body[data-hq-page="components"] #detail #detail-body .dp-merge-result {
  margin:.7rem 0 .5rem; padding:.8rem .9rem; border-inline-start:.22rem solid #91d8b7; background:#163439;
}
body[data-hq-page="components"] #detail #detail-body .dp-merge-result :is(p,span) {font-size:.875rem; line-height:1.45}
body[data-hq-page="components"] #detail #detail-body .dp-merge-effect {font-size:1rem; line-height:1.5}
body[data-hq-page="components"] #detail #detail-body .dp-merge-result .dp-number {font-size:1.5rem; font-variant-numeric:tabular-nums}
body[data-hq-page="components"] #detail #detail-body .merge-level-note {font-size:.875rem; line-height:1.55; margin:.45rem 0 .7rem}
body[data-hq-page="components"] #detail #detail-body .cr-reference .cr-table :is(th,td) {font-size:.875rem; line-height:1.4}
body[data-hq-page="components"] #detail #detail-body .cr-reference .cr-table td button {
  min-height:44px; min-width:44px; max-width:100%; font-size:.9375rem; font-weight:650;
}
body[data-hq-page="components"] #detail #detail-body .cr-table :is(.merge-total,b) {font-variant-numeric:tabular-nums}
@media(max-width:44em) {
  body[data-hq-page="components"] :is(#main-content,#hq-main-content) #app #results {container:armyresults / inline-size}
  body[data-hq-page="components"] :is(#main-content,#hq-main-content) #app.catalogue-compact #results .component-result {
    padding:.7rem .8rem; row-gap:.45rem;
  }
  body[data-hq-page="components"] :is(#main-content,#hq-main-content) #app.catalogue-compact #results .component-range {
    max-width:none; gap:.35rem;
  }
  body[data-hq-page="components"] :is(#main-content,#hq-main-content) #app.catalogue-compact #results .component-range > div > span {font-size:.8125rem}
  body[data-hq-page="equipment"] :is(#main-content,#hq-main-content) #app .gear-filters {margin:.6rem 0; padding:.65rem}
  body[data-hq-page="equipment"] #app #gear-sections button {white-space:normal; overflow-wrap:anywhere}
  body[data-hq-page="equipment"] #app #gear-grid .gear-card .gear-stat {gap:.5rem}
}
@container armyresults (min-width:19rem) {
  body[data-hq-page="components"] :is(#main-content,#hq-main-content) #app.catalogue-compact #results .component-result {
    grid-template-columns:minmax(0,1fr) minmax(6rem,.67fr); align-items:center; column-gap:.8rem;
  }
  body[data-hq-page="components"] :is(#main-content,#hq-main-content) #app.catalogue-compact #results .component-result > .item-main {grid-column:1/-1; grid-row:1}
  body[data-hq-page="components"] :is(#main-content,#hq-main-content) #app.catalogue-compact #results .component-result > .result-copy {grid-column:1; grid-row:2}
  body[data-hq-page="components"] :is(#main-content,#hq-main-content) #app.catalogue-compact #results .component-result > .meta-right {grid-column:2; grid-row:2; justify-self:end}
}
body[data-hq-page="components"] #detail #detail-body {container:armymerge / inline-size}
body[data-hq-page="components"] #detail #detail-body .dp-merge-result {grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
body[data-hq-page="components"] #detail #detail-body .dp-merge-result > * {min-width:0; overflow-wrap:anywhere}
body[data-hq-page="equipment"] #app #gear-grid .gear-card {container:armypiece / inline-size}
body[data-hq-page="equipment"] #app #gear-grid .gear-card .gear-card-head {min-width:0; max-width:100%}
body[data-hq-page="equipment"] #app #gear-grid .gear-card .gear-card-head > :last-child {min-width:0}
@container armymerge (max-width:18rem) {
  body[data-hq-page="components"] #detail #detail-body .dp-merge-result {grid-template-columns:minmax(0,1fr); gap:.15rem; padding:.55rem}
  body[data-hq-page="components"] #detail #detail-body .dp-merge-result > :is(p,div,strong,span) {grid-area:auto; text-align:start; justify-self:start}
}
@container armypiece (max-width:19rem) {
  body[data-hq-page="equipment"] #app #gear-grid .gear-card .gear-scan-open {grid-template-columns:minmax(0,1fr); gap:.5rem}
  body[data-hq-page="equipment"] #app #gear-grid .gear-card .gear-scan-open > :is(.gear-card-head,.gear-scan-bonuses,.scan-action) {grid-area:auto; min-width:0; max-width:100%}
  body[data-hq-page="equipment"] #app #gear-grid .gear-card .scan-action {justify-self:start; white-space:normal; overflow-wrap:anywhere}
  body[data-hq-page="equipment"] #app #gear-grid .gear-card .gear-card-head {align-items:flex-start; padding:0}
  body[data-hq-page="equipment"] #app #gear-grid .gear-card .gear-stat {display:flex; flex-wrap:wrap; justify-content:space-between; gap:.1rem .5rem}
}
body[data-hq-page="components"] #app .results-meta #clear[hidden] {display:none!important}
/* When the detail header scrolls away, its tabs should scroll with it. */
@container catalogue-detail (max-width:19rem) {
  body[data-hq-page="equipment"] dialog#gear-detail[open] #gear-detail-body .detail-tabs {position:static!important}
}
@media (max-height:30em) {
  body[data-hq-page="equipment"] dialog#gear-detail[open] #gear-detail-body .detail-tabs {position:static!important}
}


/* Decorations library and the single-decoration planner. */
body:is([data-page="decorations"],[data-page="decor"]) #hq-main-content {
  --decor-line: #38515b;
  --decor-soft: #aac0c7;
  --decor-surface: #132731;
  --decor-ink: #ecf3f4;
  --decor-accent: #a7dfcf;
}
body:is([data-page="decorations"],[data-page="decor"]) #hq-main-content .decor-library-fold,
body[data-page="decorations"] #hq-main-content #app #decor-shortlist {
  min-width: 0; max-width: 100%; margin: 0; padding: 0;
  background: var(--decor-surface); border: 1px solid var(--decor-line); border-radius: .65rem;
  color: var(--decor-ink);
}
body:is([data-page="decorations"],[data-page="decor"]) #hq-main-content .decor-library-fold > summary,
body[data-page="decorations"] #hq-main-content #app #decor-shortlist > summary {
  display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .55rem; 
  padding: .65rem .85rem; min-height: 44px; line-height: 1.4; font-size: .9375rem;
  cursor: pointer; overflow-wrap: anywhere; list-style: none; font-weight: 650; color: var(--decor-ink);
}
body:is([data-page="decorations"],[data-page="decor"]) #hq-main-content .decor-library-fold > summary::-webkit-details-marker { display:none }
body:is([data-page="decorations"],[data-page="decor"]) #hq-main-content .decor-library-fold > summary::after {
  content: ''; display: block; box-sizing: border-box; flex: 0 0 .48rem; width: .48rem; height: .48rem;
  margin-inline-start: auto; border: solid var(--decor-soft); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
body:is([data-page="decorations"],[data-page="decor"]) #hq-main-content .decor-library-fold[open] > summary::after {transform: rotate(225deg)}
body:is([data-page="decorations"],[data-page="decor"]) #hq-main-content :is(summary,a,button,input):focus-visible {outline: 3px solid #c4e5f0; outline-offset: 2px}
body[data-page="decorations"] #hq-main-content #app > .filters {
  display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); align-items: end;
  gap: .75rem 1rem; padding: 1rem; margin: .85rem 0 .7rem;
  background: #112632; border: 1px solid var(--decor-line); border-radius: .8rem;
}
body[data-page="decorations"] #hq-main-content #app > .filters:has(#decor-library-filters[open]) {align-items:start}
body[data-page="decorations"] #hq-main-content #app .filters :is(label,#search-label) {
  min-width:0; max-width:100%; font-size:.9375rem; color:var(--decor-ink); line-height:1.45;
}
body[data-page="decorations"] #hq-main-content #app .filters label:not([hidden]) {display:grid;grid-template-columns:minmax(0,1fr);gap:.35rem}
body[data-page="decorations"] #hq-main-content #app .filters input:not([type="checkbox"]),
body[data-page="decor"] #hq-main-content #detail .decor-list-controls input {
  min-width:0; width:100%; max-width:100%; min-height:44px; height:auto; font-size:1rem!important; line-height:1.45;
}
body[data-page="decorations"] #hq-main-content #app .decor-library-fields {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr)); gap:.75rem; padding:.15rem .85rem .85rem;
}
body[data-page="decorations"] #hq-main-content .decor-library-selection {color:var(--decor-accent); font-size:.875rem; flex-basis:100%; order:1; font-weight:500}
body[data-page="decorations"] #hq-main-content .decor-library-selection:empty {display:none}
body[data-page="decorations"] #hq-main-content .decor-library-panels {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr)); gap:.45rem .75rem; align-items:start; margin:0 0 .75rem}
body[data-page="decorations"] #hq-main-content .decor-library-panels:has(details[open]) {grid-template-columns:minmax(0,1fr)}
body[data-page="decorations"] #hq-main-content .decor-library-panels .decor-related-tools {margin:.25rem .85rem .75rem;display:flex;flex-wrap:wrap;gap:.35rem .85rem;align-items:center}
body[data-page="decorations"] #hq-main-content .decor-library-panels .decor-related-tools strong {display:none}
body[data-page="decorations"] #hq-main-content .decor-library-panels .decor-related-tools a {font-size:1rem;min-height:44px;display:inline-flex;align-items:center;overflow-wrap:anywhere}
body[data-page="decorations"] #hq-main-content #decor-library-planning #decor-flow-guide {margin:.25rem .85rem .85rem}
body[data-page="decorations"] #hq-main-content :is(#decor-flow-guide,#decor-shortlist) :is(p,li,button,summary,.ds-help a) {font-size:.9375rem;line-height:1.5}
body[data-page="decorations"] #hq-main-content :is(#decor-flow-guide,#decor-shortlist) :is(label,.ds-card small) {font-size:.875rem;line-height:1.45}
body[data-page="decorations"] #hq-main-content #app .results-meta {display:flex;align-items:center;gap:.5rem 1rem;justify-content:space-between;flex-wrap:wrap;margin:.7rem 0}
body[data-page="decorations"] #hq-main-content #app .results-meta #count {font-size:.9375rem;color:var(--decor-soft)}
body[data-page="decorations"] #hq-main-content #app .decor-library-idle {display:none}
body[data-page="decorations"] #hq-main-content #app .results#results {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,21rem),1fr));gap:.75rem;align-items:stretch}
body[data-page="decorations"] #hq-main-content #app #results .scan-decor {
  display:flex;flex-direction:column;gap:.4rem;align-items:stretch;min-width:0;padding:.85rem 1rem;margin:0;
  border:1px solid var(--decor-line);border-radius:.75rem;background:#142834;box-shadow:none;
}
body[data-page="decorations"] #hq-main-content #app #results .decor-scan-open {display:grid;grid-template-columns:minmax(0,1fr);gap:.6rem;align-items:start;min-width:0;padding:0;text-decoration:none}
body[data-page="decorations"] #hq-main-content #app #results .decor-scan-open .item-main {align-items:center;display:flex;gap:.7rem;width:auto;min-width:0}
body[data-page="decorations"] #hq-main-content #app #results .item-main > :last-child {min-width:0}
body[data-page="decorations"] #hq-main-content #app #results .scan-name {font-size:1.125rem;line-height:1.27;overflow-wrap:anywhere;color:var(--decor-ink)}
body[data-page="decorations"] #hq-main-content #app #results :is(.decor-scan-meta,.scan-warning,.scan-more,.scan-label) {font-size:.875rem;line-height:1.4;overflow-wrap:anywhere}
body[data-page="decorations"] #hq-main-content #app #results .decor-scan-buffs {
  min-width:0;display:grid;gap:.15rem;padding:.45rem .7rem;border:none;border-inline-start:2px solid #639d92;
  background:#0f232e;border-radius:0 .35rem .35rem 0;font-size:1rem;line-height:1.45;
}
body[data-page="decorations"] #hq-main-content #app #results .decor-scan-effect {display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;min-width:0;color:var(--decor-ink);font-size:1rem;line-height:1.4;overflow-wrap:anywhere}
body[data-page="decorations"] #hq-main-content #app #results .decor-scan-effect strong {color:#c6f2df;white-space:normal}
body[data-page="decorations"] #hq-main-content #app #results .scan-action {
  justify-self:start;display:inline-flex;align-items:center;gap:.25rem;min-height:44px;
  padding:0;background:transparent;border:0;font-size:.9375rem;color:var(--decor-accent);
}
body[data-page="decorations"] #hq-main-content #app #results .ds-add {
  margin:.1rem 0 0;align-self:start;max-width:100%;font-size:.875rem;min-height:44px;line-height:1.35;white-space:normal;overflow-wrap:anywhere;
}
body[data-page="decorations"] #hq-main-content #app #results .empty {grid-column:1/-1;font-size:1rem}
body[data-page="decorations"] #hq-main-content #app #more-row button {min-height:44px;font-size:1rem;white-space:normal}
body[data-page="decor"] #hq-main-content #detail {
  margin-inline:auto;max-width:62rem;color:var(--decor-ink);border-radius:.85rem;
}
body[data-page="decor"] #hq-main-content #detail > .dialog-head {
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.65rem 1rem;padding:1rem 1.2rem;
}
body[data-page="decor"] #hq-main-content #detail > .dialog-head #detail-title {
  display:block;min-width:0;max-width:100%;margin:0;font-size:clamp(1.5rem,1.35rem + 1vw,2.15rem)!important;line-height:1.2!important;overflow-wrap:anywhere;
}
body[data-page="decor"] #hq-main-content #detail #detail-title::before {display:none!important}
body[data-page="decor"] #hq-main-content #detail #close {min-height:44px;display:inline-flex;align-items:center;font-size:.9375rem;line-height:1.4;overflow-wrap:anywhere}
body[data-page="decor"] #hq-main-content #detail #detail-body {min-width:0;padding:clamp(.85rem,2vw,1.5rem)}
body[data-page="decor"] #hq-main-content #detail #detail-body section.decor-reference {
  padding:0;margin:0 0 1rem;border:0;background:transparent;
}
body[data-page="decor"] #hq-main-content #detail .decor-reference p.lead {max-width:70ch;white-space:pre-line;font-size:1rem!important;line-height:1.55!important;color:var(--decor-ink);margin:.45rem 0 0;overflow-wrap:anywhere}
body[data-page="decor"] #hq-main-content #detail :is(.decor-reference .cr-heading,#upgrade-calculator > h3) {font-size:1.25rem;line-height:1.3;margin:.35rem 0 .6rem}
body[data-page="decor"] #hq-main-content #detail #decor-library-actions,
body[data-page="decor"] #hq-main-content #detail .decor-acquisition {margin:0 0 .55rem}
body[data-page="decor"] #hq-main-content #detail .decor-acquisition {border:1px solid var(--decor-line);border-radius:.65rem;background:var(--decor-surface);padding:.65rem .85rem}
body[data-page="decor"] #hq-main-content #detail .decor-acquisition > summary {display:flex;align-items:center;min-height:44px;font-size:.9375rem;line-height:1.4;margin:-.65rem -.85rem;padding:.65rem .85rem;overflow-wrap:anywhere}
body[data-page="decor"] #hq-main-content #detail .decor-acquisition[open] > summary {margin-bottom:.6rem}
body[data-page="decor"] #hq-main-content #detail .decor-acquisition :is(a,p,li) {font-size:1rem;line-height:1.5;overflow-wrap:anywhere}
body[data-page="decor"] #hq-main-content #detail #decor-library-actions :is(.dialog-actions,.ds-detail-actions) {display:flex;align-items:center;flex-wrap:wrap;gap:.45rem .8rem;margin:0;padding:.35rem .85rem .6rem;border:0;background:transparent}
body[data-page="decor"] #hq-main-content #detail #decor-library-actions :is(button,a) {font-size:.9375rem;line-height:1.4;max-width:100%;min-height:44px;display:inline-flex;align-items:center;white-space:normal;overflow-wrap:anywhere}
body[data-page="decor"] #hq-main-content #detail #upgrade-calculator {min-width:0;margin:1.4rem 0 0}
body[data-page="decor"] #hq-main-content #detail #upgrade-calculator .decor-list-controls {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));gap:.75rem;padding:.85rem;max-width:44rem}
body[data-page="decor"] #hq-main-content #detail #upgrade-calculator .decor-list-controls label {display:grid;grid-template-columns:minmax(0,1fr);min-width:0;max-width:100%;gap:.35rem;font-size:.9375rem;line-height:1.4;align-content:end;overflow-wrap:anywhere}
body[data-page="decor"] #hq-main-content #detail #upgrade-calculator :is(.small,.error,.tv340-table-help) {font-size:.9375rem;line-height:1.5;max-width:72ch;overflow-wrap:anywhere}
body[data-page="decor"] #hq-main-content #detail .decor-library-fold + .decor-library-fold {margin-top:.55rem}
body[data-page="decor"] #hq-main-content #detail #upgrade-calculator .decor-library-fold section {margin:0;padding:.25rem .75rem .75rem;border:0;background:transparent}
body[data-page="decor"] #hq-main-content #detail .tv340-scroll {max-width:100%;min-width:0;overscroll-behavior-inline:contain}
body[data-page="decor"] #hq-main-content #detail #upgrade-calculator table :is(th,td) {font-size:.9375rem!important;line-height:1.45!important;white-space:normal}
body[data-page="decor"] #hq-main-content #detail #upgrade-calculator .decor-level-table {table-layout:auto!important}
body[data-page="decor"] #hq-main-content #detail #upgrade-calculator .decor-level-table :is(th,td):first-child {min-width:6rem!important;width:auto!important}
body[data-page="decor"] #hq-main-content #detail .decor-library-sr {position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media (max-width:44em) {
  body[data-page="decorations"] #hq-main-content #app > .filters {grid-template-columns:minmax(0,1fr);gap:.65rem;padding:.8rem}
  body[data-page="decor"] #hq-main-content #detail > .dialog-head {grid-template-columns:auto minmax(0,1fr);gap:.35rem .7rem;padding:.8rem}
  body[data-page="decor"] #hq-main-content #detail #close {grid-column:1/-1;justify-self:start}
  body[data-page="decor"] #hq-main-content #detail #upgrade-calculator .decor-preview .tv340-table-help {display:none}
  body[data-page="decor"] #hq-main-content #detail #upgrade-calculator .decor-preview :is(.tv340-scroll,table,tbody) {display:block;min-width:0!important;width:100%!important;max-width:100%;max-height:none;overflow:visible}
  body[data-page="decor"] #hq-main-content #detail #upgrade-calculator .decor-preview thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  body[data-page="decor"] #hq-main-content #detail #upgrade-calculator .decor-preview tbody tr {display:grid;grid-template-columns:minmax(0,1fr);margin:0;border:0}
  body[data-page="decor"] #hq-main-content #detail #upgrade-calculator .decor-preview tbody :is(th,td) {display:block;position:static;width:auto!important;min-width:0;max-width:none;border:0;padding:.4rem .7rem;text-align:start;overflow-wrap:anywhere}
  body[data-page="decor"] #hq-main-content #detail #upgrade-calculator .decor-preview th[scope="row"] {color:#d7f6e9;background:#203e49}
  body[data-page="decor"] #hq-main-content #detail #upgrade-calculator .decor-preview th br {display:block}
  body[data-page="decor"] #hq-main-content #detail #upgrade-calculator .decor-preview td::before {content:attr(data-label);display:block;color:var(--decor-soft);font-size:.8125rem;font-weight:600;line-height:1.45}
  body[data-page="decor"] #hq-main-content #detail #upgrade-calculator .decor-preview .decor-row-cost {text-align:start}
}


body[data-page="decor"] #hq-main-content #detail #detail-title {padding-inline-start:0!important}
body[data-page="decorations"] #hq-main-content #app #results .decor-scan-open > :is(.item-main,.decor-scan-buffs,.scan-action) {grid-column:1 / -1!important;grid-row:auto!important}
body[data-page="decorations"] #hq-main-content #app #results .decor-scan-open > .item-main {width:100%}
body[data-page="decorations"] #hq-main-content #app #results .scan-action {max-width:100%;min-width:0;white-space:normal;flex-wrap:wrap;overflow-wrap:anywhere}
body[data-page="decorations"] #hq-main-content #app #results .decor-scan-buffs {grid-template-columns:minmax(0,1fr)}
body[data-page="decorations"] #hq-main-content #app #results .decor-scan-effect {flex-wrap:wrap}
@media(max-width:44em) {
  body[data-page="decor"] #hq-main-content #detail #upgrade-calculator .decor-preview :is(.tv340-scroll,table,tbody) {display:block!important}
  body[data-page="decor"] #hq-main-content #detail #upgrade-calculator .decor-preview table tbody tr {display:grid!important}
  body[data-page="decor"] #hq-main-content #detail #upgrade-calculator .decor-preview table tbody :is(th,td) {display:block!important;min-width:0!important;position:static!important}
}
body[data-page="decorations"] #hq-main-content #app #more-row:not([hidden]) {display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem}
body[data-page="decorations"] #hq-main-content #app #more-row button {max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}
body[data-page="decor"] #hq-main-content #detail :is(h2,h3,h4,#close) {overflow-wrap:anywhere;white-space:normal!important;max-width:100%}
@media(max-width:44em) {
  body[data-page="decor"] #hq-main-content #detail #upgrade-calculator .decor-preview thead {
    display:block!important;position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;
  }
}
@media(max-width:44em) {
  body[data-page="decor"] #hq-main-content #detail #upgrade-calculator .decor-preview tbody :is(th,td) {width:100%!important;max-width:100%!important;text-align:start!important}
  body[data-page="decor"] #hq-main-content #detail #upgrade-calculator .decor-preview tbody td::before {content:attr(data-label)!important;display:block!important;position:static!important;text-align:start}
  body[data-page="decor"] #hq-main-content #detail #upgrade-calculator .decor-preview .decor-row-cost {text-align:start!important}
}
body[data-page="decorations"] #hq-main-content #app #decor-shortlist :is(h2,h3,h4,p,summary,button,a,label) {
  min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;
}
body[data-page="decorations"] #hq-main-content #app #decor-shortlist .ds-help {display:flex;flex-wrap:wrap}
body[data-page="decorations"] #hq-main-content #app #decor-shortlist :is(.ds-help a,.ds-card a) {display:inline-block;white-space:normal!important;max-width:100%;overflow-wrap:anywhere}
body[data-page="decorations"] #hq-main-content #app #decor-shortlist h2 {font-size:1.15rem;line-height:1.35}


/* Standalone Wasteland item reference articles. */
body[data-atlas] main#main > article.reader.item-detail {
  container:fielditem / inline-size; min-width:0; max-width:50rem; color:#e4edea;
}
body[data-atlas] main#main > article.item-detail .item-intro {
  display:flex; align-items:center; gap:clamp(.65rem,2.2vw,1.25rem); margin:0;
  padding-block:.4rem .65rem; min-width:0;
}
body[data-atlas] main#main > article.item-detail .item-intro .game-icon {width:clamp(44px,10vw,68px); height:auto; flex:none}
body[data-atlas] main#main > article.item-detail .item-intro h1 {
  margin:0; min-width:0; font-size:clamp(1.5rem,1.2rem + 1.1vw,2.1rem); line-height:1.2; overflow-wrap:anywhere;
}
body[data-atlas] main#main > article.item-detail > p,
body[data-atlas] main#main > article.item-detail section > p {font-size:1rem; line-height:1.55; margin:.25rem 0 .8rem; max-width:65ch; overflow-wrap:anywhere}
body[data-atlas] main#main > article.item-detail section h2 {font-size:1.2rem; line-height:1.35; margin:.3rem 0 .6rem}
body[data-atlas] main#main > article.item-detail section .item-editorial-offer {
  padding:.7rem .85rem; margin:.5rem 0; border-inline-start:3px solid #81c2ad;
  border-radius:.25rem; background:#152830; max-width:65ch;
}
body[data-atlas] main#main > article.item-detail .item-editorial-offer h3 {font-size:1rem; line-height:1.4; margin:0 0 .3rem; overflow-wrap:anywhere}
body[data-atlas] main#main > article.item-detail .item-editorial-offer p {font-size:.9375rem; line-height:1.45; margin:.12rem 0; overflow-wrap:anywhere}
body[data-atlas] main#main > article.item-detail .related {display:flex; flex-wrap:wrap; align-items:center; gap:.25rem .8rem; min-width:0}
body[data-atlas] main#main > article.item-detail .related a {
  display:inline-flex; align-items:center; min-height:44px; max-width:100%; padding:.35rem .15rem; box-sizing:border-box;
  font-size:.9375rem; line-height:1.4; overflow-wrap:anywhere;
}
body[data-atlas] main#main > article.item-detail .related a[data-full-item] {
  padding:.5rem .8rem; border:1px solid #60978b; border-radius:.45rem; background:#18342f; color:#d9f7e9; font-weight:650;
}
body[data-atlas] main#main > article.item-detail .table-wrap td {font-size:.9375rem; line-height:1.45; font-variant-numeric:tabular-nums}
body[data-atlas] main#main > article.item-detail .table-wrap td a {display:inline-flex; align-items:center; min-height:44px; overflow-wrap:anywhere}
@container fielditem (max-width:20rem) {
  body[data-atlas] main#main > article.item-detail .table-wrap {overflow:visible; border:0; padding:0; background:none}
  body[data-atlas] main#main > article.item-detail .table-wrap table {display:block; width:100%; min-width:0; border:0; background:none}
  body[data-atlas] main#main > article.item-detail .table-wrap thead {position:absolute; overflow:hidden; width:1px; height:1px; clip-path:inset(50%); white-space:nowrap}
  body[data-atlas] main#main > article.item-detail .table-wrap tbody {display:grid; gap:.5rem}
  body[data-atlas] main#main > article.item-detail .table-wrap tbody tr {
    display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,7.5rem),1fr)); gap:.25rem .65rem;
    min-width:0; padding:.5rem .65rem; background:#14252d; border:1px solid #34505b; border-radius:.4rem;
  }
  body[data-atlas] main#main > article.item-detail .table-wrap td {
    display:block; min-width:0; width:auto; border:none; padding:.1rem 0; background:transparent; overflow-wrap:anywhere; white-space:normal;
  }
  body[data-atlas] main#main > article.item-detail .table-wrap td:first-child {grid-column:1/-1; font-weight:650}
  body[data-atlas] main#main > article.item-detail .table-wrap td .item-cell-label[hidden] {
    display:block!important; color:#b3c7c8; font-size:.8125rem; line-height:1.35; font-weight:500;
  }
  body[data-atlas] main#main > article.item-detail #contents tbody td:first-child .item-cell-label[hidden] {display:none!important}
}
/* Reader typography is otherwise fixed at 12.5px for narrow editorial pages. */
body[data-atlas] main#main > article.reader.item-detail > p,
body[data-atlas] main#main > article.reader.item-detail section > p {font-size:1rem!important; line-height:1.55!important}
body[data-atlas] main#main > article.reader.item-detail .item-editorial-offer p {font-size:.9375rem!important; line-height:1.45!important}
body[data-atlas] main#main > article.reader.item-detail section h2 {font-size:1.2rem!important; line-height:1.35!important}
body[data-atlas] main#main > article.reader.item-detail .item-editorial-offer h3 {font-size:1rem!important; line-height:1.4!important}


/* Keep the live report and its copy controls together at phone widths. */
body[data-atlas].city-rewards-page #main-content .cr-hero {padding:.85rem 1rem;min-height:0;margin-bottom:.65rem}
body[data-atlas].city-rewards-page #main-content .cr-hero-copy p {margin:.25rem 0 0;max-width:52ch}
body[data-atlas].city-rewards-page #main-content .cr-hero-copy h1[data-radar-copy="heading"] {font-size:clamp(1.2rem,1.1rem + .5vw,1.55rem);line-height:1.2}
body[data-atlas].city-rewards-page #main-content .cr-row {container:radar-row / inline-size;align-items:center;column-gap:.7rem;row-gap:.4rem}
body[data-atlas].city-rewards-page #main-content .cr-row .cr-reward {min-width:0}
body[data-atlas].city-rewards-page #main-content .cr-expiry {display:flex;align-items:baseline;justify-content:flex-end;gap:.2rem;font-variant-numeric:tabular-nums;line-height:1.35}
body[data-atlas].city-rewards-page #main-content .cr-values {display:grid;grid-template-columns:repeat(3,minmax(3.25rem,1fr)) minmax(4.7rem,auto);gap:.26rem;align-items:stretch;min-width:0}
body[data-atlas].city-rewards-page #main-content .cr-values :is(.cr-copy,.cr-manual-copy) {min-width:0;max-width:100%;width:100%;box-sizing:border-box;min-height:44px;overflow-wrap:anywhere}
body[data-atlas].city-rewards-page #main-content .cr-values .cr-copy:not(.cr-copy-all) {color:#deece9;border-color:transparent;background:#182f3a;padding:.3rem .4rem;display:flex;flex-flow:column;justify-content:center;align-items:flex-start;gap:.08rem}
body[data-atlas].city-rewards-page #main-content .cr-copy:not(.cr-copy-all) .cr-copy-mark {display:none}
body[data-atlas].city-rewards-page #main-content .cr-field {font-weight:500;line-height:1.22;white-space:normal;overflow-wrap:anywhere}
body[data-atlas].city-rewards-page #main-content .cr-digits {font-size:.9375rem;line-height:1.25;font-weight:650;font-variant-numeric:tabular-nums}
body[data-atlas].city-rewards-page #main-content .cr-copy-all {display:flex;flex-direction:row;align-items:center;justify-content:center;gap:.3rem;background:#1d3d36;border:1px solid #52796c;padding:.3rem .45rem;color:#d4f1e4}
body[data-atlas].city-rewards-page #main-content .cr-copy-all .cr-copy-mark {position:relative;inset:auto;flex:0 0 auto}
body[data-atlas].city-rewards-page #main-content .cr-copy-all .cr-field {color:inherit;font-weight:600;font-size:.8125rem}
body[data-atlas].city-rewards-page #main-content .cr-values .cr-copy:is(:hover,:focus-visible) {border-color:#90c8b6}
body[data-atlas].city-rewards-page #main-content .cr-values .cr-copy.copied {border-color:#9fd6b8;background:#214338}
body[data-atlas].city-rewards-page #main-content #mask-guide-jump {display:inline-flex;min-height:44px;align-items:center;text-underline-offset:.16rem;color:#b2ddcf}
body[data-atlas].city-rewards-page #main-content #mask-guide-jump[hidden] {display:none}
body[data-atlas].city-rewards-page #main-content #cr-mask-title {scroll-margin-top:6.3rem}
body[data-atlas].city-rewards-page #main-content .cr-mask-guide li {display:block;padding:0}
body[data-atlas].city-rewards-page #main-content .mask-item {display:flex;gap:.65rem;align-items:center;min-height:48px;padding:.25rem .12rem;text-decoration:none;line-height:1.35;color:inherit}
body[data-atlas].city-rewards-page #main-content .mask-item > span {flex:1;min-width:0}
body[data-atlas].city-rewards-page #main-content .mask-item strong {color:#c2e4d7}
body[data-atlas].city-rewards-page #main-content .mask-item::after {content:"";width:.38rem;height:.38rem;margin-inline-end:.4rem;flex:none;border:solid #a5c4b9;border-width:0 1.5px 1.5px 0;transform:rotate(-45deg)}
body[data-atlas].city-rewards-page #main-content .mask-item:is(:hover,:focus-visible) strong {text-decoration:underline;text-underline-offset:.15rem}
body[data-atlas].city-rewards-page #main-content .cr-mask-guide :is(p,li) {overflow-wrap:anywhere}
@media(max-width:44rem){
 body[data-atlas].city-rewards-page #main-content .cr-hero {padding:.64rem .8rem}
 body[data-atlas].city-rewards-page #main-content .cr-tools {padding:.65rem .75rem .58rem}
 body[data-atlas].city-rewards-page #main-content .cr-row {padding:.55rem .7rem;grid-template-columns:minmax(0,1fr) auto}
}
@container radar-row (max-width:18rem){
 body[data-atlas].city-rewards-page #main-content .cr-values {grid-template-columns:repeat(3,minmax(0,1fr))}
 body[data-atlas].city-rewards-page #main-content .cr-values > :last-child {grid-column:1/-1}
 body[data-atlas].city-rewards-page #main-content .cr-row .cr-expiry {max-width:9rem;white-space:normal}
}
@container radar-row (max-width:15rem){
 body[data-atlas].city-rewards-page #main-content .cr-row > .cr-reward {grid-column:1/-1;grid-row:1;min-width:0}
 body[data-atlas].city-rewards-page #main-content .cr-row > .cr-expiry {grid-column:1/-1;grid-row:2;justify-content:flex-start;max-width:100%;text-align:start}
 body[data-atlas].city-rewards-page #main-content .cr-row > .cr-values {grid-column:1/-1;grid-row:3;grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-atlas].city-rewards-page #main-content .cr-values > :first-child {grid-column:1/-1}
 body[data-atlas].city-rewards-page #main-content .cr-values .cr-copy:not(.cr-copy-all) {flex-flow:row wrap;justify-content:space-between;align-items:baseline;column-gap:.3rem}
}


/* Hero directory and reference sheets */
body.hero-library-page #main-content .hero-sr-only {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip-path:inset(50%); white-space:nowrap; border:0;
}
body.hero-library-page #main-content #library-controls.hero-search {
  display:block; margin:clamp(12px,.9rem,16px) 0 0; max-width:100%; padding:clamp(12px,2vw,18px);
}
body.hero-library-page #library-controls.hero-search > label {max-width:48rem}
body.hero-library-page #library-controls.hero-search input[type=search] {padding:.55em .75em}
body.hero-library-page .hero-options {
  display:flex; flex-wrap:wrap; align-items:start; gap:0 .9rem;
  border-top:1px solid var(--line); margin-top:.65rem; padding-top:.15rem;
}
body.hero-library-page .hero-options details {
  flex:0 1 auto; min-width:0; max-width:100%; padding:0; margin:0; border:0;
}
body.hero-library-page .hero-options details[open] {flex-basis:100%}
body.hero-library-page .hero-options summary {
  display:list-item; width:fit-content; max-width:100%; min-height:44px; padding:.65rem .13rem .55rem;
  color:var(--accent); font-size:.875rem; line-height:1.5; overflow-wrap:anywhere;
}
body.hero-library-page .hero-options summary::marker {font-size:.85em}
body.hero-library-page .hero-applied {color:var(--ink); font-weight:500}
body.hero-library-page .hero-applied:not(:empty)::before {content:' · '}
body.hero-library-page .hero-filter-fields {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr)); align-items:end;
  gap:.6rem 1rem; margin:0 0 .5rem; max-width:58rem;
}
body.hero-library-page #library-controls .hero-filter-fields label.check {
  min-height:44px; grid-column:auto; align-self:end; margin:0; line-height:1.45;
}
body.hero-library-page #hero-tools .related {
  display:flex; flex-wrap:wrap; gap:.25rem 1.2rem; border:0; margin:0 0 .5rem; padding:0;
}
body.hero-library-page #hero-tools .related a,
body.hero-library-page .hero-options .clear {font-size:.875rem; line-height:1.4; overflow-wrap:anywhere}
body.hero-library-page #library-controls .clear[hidden] {display:none!important}
body.hero-library-page .hero-options .clear {margin-inline-start:auto}
body.hero-library-page #library-result .result-count {margin:.85rem 0 .55rem}
body.hero-library-page #library-result .roster {grid-template-columns:repeat(auto-fill,minmax(min(100%,15.8rem),1fr));gap:.55rem}
body.hero-library-page #library-result .hero-card {
  align-items:center; gap:.7rem; padding:.6rem .75rem; min-height:75px; line-height:1.4;
}
body.hero-library-page #library-result .hero-card .card-ability {
  display:block; font-size:.875rem; color:var(--ink); font-weight:400; overflow-wrap:anywhere;
}
body.hero-library-page #library-result .hero-card .arrow {flex:none}
body.hero-library-page .hero-mechanics {min-width:0}
body.hero-library-page #main-content .identity {gap:.8rem; margin:.65rem 0 1rem; overflow-wrap:anywhere}
body.hero-library-page #main-content .identity > div {min-width:0}
body.hero-library-page #main-content .identity h1 {font-size:clamp(1.45rem,2.2vw,2rem)!important;line-height:1.18!important}
body.hero-library-page #main-content .hero-mechanics > h2,
body.hero-library-page #main-content .ability h2 {font-size:1.22rem!important;line-height:1.25!important;margin:0 0 .4rem}
body.hero-library-page #main-content .hero-mechanics > .hint {font-size:.9rem;line-height:1.5;margin:0 0 .7rem;overflow-wrap:anywhere}
body.hero-library-page #main-content .hero-mechanics .stats {margin:.55rem 0 1rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,5.7rem),1fr))}
body.hero-library-page #main-content .hero-mechanics .level-form {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,7.25rem),1fr))}
body.hero-library-page #main-content .versions {margin:0 0 1rem}
body.hero-library-page #main-content .ability {border-inline-start:2px solid var(--line);padding-inline-start:.85rem;margin:0;min-width:0}
body.hero-library-page #main-content .ability h3 {margin:.1rem 0 .4rem}
body.hero-library-page #main-content .profile-actions {display:flex; flex-wrap:wrap; gap:0 1rem; margin-top:.5rem}
body.hero-library-page #main-content .profile-actions a {
  display:inline-flex; align-items:center; min-width:0; min-height:44px; max-width:100%;
  margin:0; line-height:1.45; white-space:normal; overflow-wrap:anywhere;
}
body.hero-library-page #main-content #hero-bio {max-width:77ch; overflow-wrap:anywhere}
@media (min-width:52em) {
  body.hero-library-page #main-content .hero-mechanics {
    display:grid; grid-template-columns:minmax(16rem,.8fr) minmax(0,1.2fr);
    gap:0 2rem; align-items:start; align-content:start;
    grid-template-areas:"title ability" "note ability" "form ability" "stats ability" "tools tools";
  }
  body.hero-library-page .hero-mechanics > h2 {grid-area:title}
  body.hero-library-page .hero-mechanics .hint {grid-area:note}
  body.hero-library-page .hero-mechanics .level-form {grid-area:form}
  body.hero-library-page .hero-mechanics #library-result {display:contents}
  body.hero-library-page .hero-mechanics .stats {grid-area:stats}
  body.hero-library-page .hero-mechanics .ability {grid-area:ability}
  body.hero-library-page .hero-mechanics .profile-actions {grid-area:tools}
}
@media (max-width:35em) {
  body.hero-library-page .hero-filter-fields {grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr))}
  body.hero-library-page #library-controls .hero-filter-fields label.check {grid-column:1/-1}
}


body.hero-library-page #main-content .hero-portrait {
  position:relative; display:inline-grid; align-items:center; justify-items:center; flex:none; overflow:hidden;
  background:#203740; border-radius:7px; color:#aed8d6; font-weight:650;
}
body.hero-library-page #main-content .hero-head-portrait {width:76px;height:76px;font-size:1.25rem}
body.hero-library-page #main-content .hero-portrait .portrait-initial {margin:0;line-height:1.2;color:inherit}
body.hero-library-page #main-content .hero-portrait img {
  position:absolute; inset:0; height:100%; width:100%; object-fit:contain; border-radius:inherit;
}
body.hero-library-page #main-content[data-portraits] .hero-portrait:not(.portrait-ready) img {opacity:0}
body.hero-library-page #main-content .portrait-ready .portrait-initial {visibility:hidden}
body.hero-library-page #main-content .hero-mechanics :is(h2,h3) {overflow-wrap:anywhere}
body.hero-library-page #main-content #library-controls.level-form > label {grid-column:auto}
body.hero-library-page #main-content .hero-options summary {min-height:44px!important}
@media (min-width:52em) {
  body.hero-library-page #main-content #library-controls.hero-search {
    display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:start;column-gap:1.25rem;
  }
  body.hero-library-page #main-content .hero-search .hero-options {
    margin-top:1.6rem; padding:0; border:0;
  }
}


/* Enigma Beasts species cards and detail sheets */
body[data-page="beasts"] #app {container-type:inline-size}
body[data-page="beasts"] #section-intro:empty {display:none!important}
body[data-page="beasts"] #section-intro:empty + #beast-content {margin-block-start:.65rem}
body[data-page="beasts"] #app .beast-cards {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:.75rem}
body[data-page="beasts"] #app .beast-cards article {display:flex;min-width:0;margin:0;padding:0;overflow:hidden}
body[data-page="beasts"] #app .beast-species-link {
 display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 1fr;
 width:100%;height:100%;align-items:center;min-width:0;text-decoration:none;color:var(--atlas-ink);border-radius:inherit
}
body[data-page="beasts"] #app .beast-species-link:hover {background:#1b313b}
body[data-page="beasts"] #app .beast-species-link:focus-visible {outline:3px solid var(--atlas-mint);outline-offset:-3px}
body[data-page="beasts"] #app .beast-portrait {grid-column:1/-1;height:148px;min-width:0;overflow:hidden;place-content:center}
body[data-page="beasts"] #app .beast-caption {padding:.85rem .3rem .9rem 1rem;min-width:0;overflow-wrap:anywhere}
body[data-page="beasts"] #app .beast-caption h2 {margin:0;padding:0;font-size:1.125rem!important;line-height:1.25;color:var(--atlas-ink)}
body[data-page="beasts"] #app .beast-species-meta,
body[data-page="beasts"] #app .beast-caption p {font-size:.875rem!important;line-height:1.45;color:var(--atlas-muted)}
body[data-page="beasts"] #app .beast-species-meta {display:block;margin-top:.2rem}
body[data-page="beasts"] #app .beast-caption p {padding:0;margin:.45rem 0 0}
body[data-page="beasts"] #app .beast-caption strong {color:var(--atlas-ink)}
body[data-page="beasts"] #app .beast-open-arrow {align-self:center;color:var(--atlas-mint);font-size:1.15rem;padding-inline:.25rem .9rem}
body[data-page="beasts"] #main-content .decision-entry {margin-block:1rem;max-width:100%}
body[data-page="beasts"] #main-content .decision-entry-links a {max-width:none;width:fit-content;white-space:normal}
body[data-page="beasts"] #app #sections,
body[data-page="beasts"] #beast-detail .detail-tabs {display:flex!important;flex-wrap:wrap!important;justify-content:flex-start;gap:.3rem;overflow:visible!important}
body[data-page="beasts"] #app #sections .beast-tab,
body[data-page="beasts"] #beast-detail .detail-tabs button {flex:0 1 auto;min-width:0;max-width:100%;white-space:normal!important;overflow-wrap:anywhere;min-height:44px;height:auto;line-height:1.3}
body[data-page="beasts"] #app .species-filter-note {scroll-margin-top:6rem}
body[data-page="beasts"] #beast-detail-body {container-type:inline-size}
body[data-page="beasts"] #beast-detail .beast-field-link {display:inline-flex;align-items:center;color:var(--atlas-mint);font-size:.9375rem;line-height:1.4;min-height:44px;text-decoration:underline;text-underline-offset:.2em}
body[data-page="beasts"] #beast-detail .beast-attributes {margin-block:1rem 0;border:1px solid var(--atlas-line);border-radius:.5rem;padding:0 .8rem}
body[data-page="beasts"] #beast-detail .beast-attributes summary {display:list-item;padding:.65rem 0;min-height:44px;font-size:1rem;font-weight:650;cursor:pointer}
body[data-page="beasts"] #beast-detail .beast-attributes[open] {padding-bottom:.75rem}
body[data-page="beasts"] #beast-detail .beast-attributes h3 {margin:1rem 0 .3rem}
body[data-page="beasts"] #beast-detail .beast-attributes .trait-row {display:flex;flex-wrap:wrap;gap:.2rem .65rem;align-items:baseline}
body[data-page="beasts"] #beast-detail .beast-attributes .trait-row > span {flex:1 1 10rem}
body[data-page="beasts"] #beast-detail .beast-attributes .trait-row strong {min-width:0;white-space:normal;overflow-wrap:anywhere}
body[data-page="beasts"] #beast-detail :is(.formation-field,.formation-controls select,.beast-facts > div,.beast-forms > div,.field-slot > span) {min-width:0;max-width:100%;overflow-wrap:anywhere}
body[data-page="beasts"] #beast-detail .formation-controls {flex-wrap:wrap}
body[data-page="beasts"] #beast-detail .formation-controls button {height:auto;min-height:44px;white-space:normal;overflow-wrap:anywhere}

@container (max-width:40rem) {
 body[data-page="beasts"] #app .beast-cards {grid-template-columns:minmax(0,1fr);gap:.6rem}
 body[data-page="beasts"] #app .beast-species-link {grid-template-columns:clamp(56px,18cqi,80px) minmax(0,1fr) auto;grid-template-rows:auto}
 body[data-page="beasts"] #app .beast-portrait {position:relative;grid-column:auto;height:auto;min-height:76px;align-self:stretch;border:0;border-inline-end:1px solid var(--atlas-line)}
 body[data-page="beasts"] #app .beast-portrait > .trooper-art {position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%) scale(.43)}
 body[data-page="beasts"] #app .beast-caption {padding:.65rem .12rem .65rem .8rem}
 body[data-page="beasts"] #app .beast-caption h2 {font-size:1.0625rem!important}
 body[data-page="beasts"] #app .beast-open-arrow {padding-inline:0 .65rem}
}
@container (max-width:18.5rem) {
 body[data-page="beasts"] #beast-detail .beast-facts {display:flex;flex-wrap:wrap}
 body[data-page="beasts"] #beast-detail .beast-facts > div {flex:1 1 6.5rem;align-items:flex-start;text-align:left;border:0}
 body[data-page="beasts"] #beast-detail .beast-forms {grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
 body[data-page="beasts"] #beast-detail .beast-forms .trooper-art {max-width:100%}
 body[data-page="beasts"] #beast-detail .formation-controls {gap:.5rem}
}
@media (max-width:44em) {
 body[data-page="beasts"] #main-content .formation-heading {padding:.9rem 1rem!important;margin-bottom:.75rem}
 body[data-page="beasts"] #main-content .formation-heading .eyebrow {display:none!important}
 body[data-page="beasts"] #main-content #section-intro {margin:.5rem 0 .85rem;max-width:64ch}
 body[data-page="beasts"] #beast-detail .formation-dialog-head {display:flex!important;align-items:center;flex-wrap:wrap!important;justify-content:space-between;gap:.45rem}
 body[data-page="beasts"] #beast-detail .formation-dialog-head > div {min-width:0;max-width:100%}
 body[data-page="beasts"] #beast-detail :is(#detail-title,#detail-sub) {white-space:normal;overflow-wrap:anywhere}
 body[data-page="beasts"] #beast-detail .formation-dialog-head > div:first-child {flex:1 1 8.5rem!important}
 body[data-page="beasts"] #beast-detail .dialog-actions {flex:0 1 auto!important;flex-wrap:wrap}
 body[data-page="beasts"] #beast-detail .beast-attributes :is(p,h3,summary) {overflow-wrap:anywhere}
 body[data-page="beasts"] #beast-detail .beast-attributes {padding:0;border:0}
 body[data-page="beasts"] #beast-detail #detail-title {font-size:1.075rem!important;line-height:1.28!important}
 body[data-page="beasts"] #beast-detail .tw-lang-toggle {min-height:44px}
}

@container (max-width:12rem) {
 body[data-page="beasts"] #app .beast-species-link {grid-template-columns:minmax(0,1fr) 50px;gap:.12rem .25rem;padding:.55rem .55rem .65rem}
 body[data-page="beasts"] #app .beast-portrait {grid-column:2;grid-row:1;align-self:center;height:48px;min-height:0;border:0;border-radius:.2rem}
 body[data-page="beasts"] #app .beast-portrait > .trooper-art {transform:translate(-50%,-50%) scale(.32)}
 body[data-page="beasts"] #app .beast-caption {display:contents}
 body[data-page="beasts"] #app .beast-caption h2 {grid-column:1;grid-row:1}
 body[data-page="beasts"] #app .beast-species-meta,
 body[data-page="beasts"] #app .beast-caption p {grid-column:1/-1;overflow-wrap:anywhere}
 body[data-page="beasts"] #app .beast-open-arrow {display:none}
}


/* Heavy Trooper model and chip browsing. */
body[data-page="troopers"]:is([data-ht-section="troopers"],[data-ht-section="chips"]) #main-content .formation-heading #intro,
body[data-page="troopers"]:is([data-ht-section="troopers"],[data-ht-section="chips"]) #main-content .formation-heading #eyebrow {display:none}
body[data-page="troopers"]:is([data-ht-section="troopers"],[data-ht-section="chips"]) #main-content .formation-heading {
  display:flex; align-items:center; padding:.75rem 0!important; min-height:0!important;
}
body[data-page="troopers"]:is([data-ht-section="troopers"],[data-ht-section="chips"]) #main-content .formation-heading .hq-guide-subject {
  display:none!important;
}
body[data-page="troopers"]:is([data-ht-section="troopers"],[data-ht-section="chips"]) #main-content .formation-heading h1 {
  margin:0; padding:0; min-width:0; flex:1; overflow-wrap:anywhere;
}
body[data-page="troopers"] #trooper-content :is(.ht-catalogue-card,.ht-entry-heading,.ht-entry-identity,.ht-role,.ht-model-limits) {min-width:0}
body[data-page="troopers"] #trooper-content .ht-catalogue-card {display:flex; flex-direction:column; overflow:hidden; padding:0}
body[data-page="troopers"] #trooper-content .ht-catalogue-card[hidden]{display:none!important}
body[data-page="troopers"] #trooper-content .ht-entry-heading {
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:.7rem; position:relative;
  padding:.65rem .85rem; align-items:center; border:0; background:none;
}
body[data-page="troopers"] #trooper-content .ht-entry-heading .trooper-art {background:transparent; border-radius:0; box-shadow:none}
body[data-page="troopers"] #trooper-content .ht-entry-heading h2 {margin:0; line-height:1.25; overflow-wrap:anywhere}
body[data-page="troopers"] #trooper-content .ht-entry-link {color:#f2f7f8; text-decoration:none; font-weight:750}
body[data-page="troopers"] #trooper-content .ht-entry-link::after {
  content:""; position:absolute; inset:0; border-radius:6px;
}
body[data-page="troopers"] #trooper-content .ht-entry-link:focus-visible::after {outline:2px solid #a4ead7; outline-offset:-3px}
body[data-page="troopers"] #trooper-content .ht-entry-heading:hover .ht-entry-link {text-decoration:underline; text-underline-offset:3px}
body[data-page="troopers"] #trooper-content .ht-entry-arrow {color:#a6e7d5; font-size:1.4rem; line-height:1}
body[data-page="troopers"] #trooper-content .ht-entry-heading .formation-badge {
  display:block; width:auto; white-space:normal; height:auto; margin:.22rem 0 0; padding:0; text-transform:none;
  line-height:1.35; font-size:.79rem; overflow-wrap:anywhere; color:#abc0c9; background:none; border:0;
}
body[data-page="troopers"] #trooper-content .ht-role {padding:.25rem .85rem .6rem}
body[data-page="troopers"] #trooper-content .ht-role h3 {
  color:#ade5d9; margin:0 0 .2rem; font-size:1rem; line-height:1.35; padding:0; overflow-wrap:anywhere;
}
body[data-page="troopers"] #trooper-content :is(.ht-role p,.ht-model-limits p,.ht-family-effect) {
  padding:0; margin:0; color:#c2d2d9; font-size:.91rem; line-height:1.48; overflow-wrap:anywhere;
}
body[data-page="troopers"] #trooper-content .ht-family-effect {padding:0 .85rem .8rem!important; margin:0!important; min-height:0}
body[data-page="troopers"] #trooper-content .ht-model-limits {border:0; border-top:1px solid #354c57; border-radius:0; margin:auto .85rem 0; padding:0; background:none}
body[data-page="troopers"] #trooper-content :is(.ht-model-limits,.ht-catalogue-guides)>summary {
  min-height:44px; box-sizing:border-box; height:auto; padding:.5rem 0; display:list-item; align-content:center;
  border:0!important; background:transparent!important; box-shadow:none; cursor:pointer; color:#a8e6d3; font-weight:650; font-size:.85rem; line-height:1.4; white-space:normal; overflow-wrap:anywhere;
}
body[data-page="troopers"] #trooper-content .ht-model-limits p {padding:0 0 .7rem}
body[data-page="troopers"] #trooper-content .ht-catalogue-guides {margin:.15rem 0 .6rem; padding:0 .8rem; border:1px solid #354c57; border-radius:8px; background:transparent}
body[data-page="troopers"] #trooper-content .ht-catalogue-guides nav {margin:.15rem 0 .45rem}
body[data-page="troopers"] #trooper-content .ht-catalogue-guides :is(a,button) {min-height:44px; height:auto; white-space:normal}
body[data-page="troopers"] #trooper-content .ht-catalogue-guides button {margin:0 0 .6rem}
body[data-page="troopers"] #trooper-content .htd-browse-tools {
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:baseline; gap:.35rem .5rem; margin:0 0 .4rem;
}
body[data-page="troopers"] #trooper-content .htd-browse-tools label {grid-area:1/1; display:block; margin:0; font-weight:700; min-width:0}
body[data-page="troopers"] #trooper-content #htd-chip-count {grid-area:1/2; margin:0; font-size:.83rem; color:#afc6cd; white-space:normal; text-align:end}
body[data-page="troopers"] #trooper-content #htd-chip-search {grid-column:1/-1; min-width:0; width:100%; margin:0; height:auto; min-height:44px}
body[data-page="troopers"] #trooper-content .formation-cards {align-items:start}
body[data-page="troopers"] #trooper-content :is(.ht-catalogue-card,.ht-catalogue-guides) summary:focus-visible {outline:2px solid #a4ead7; outline-offset:-2px}
@media (max-width:700px) {
  body[data-page="troopers"] #main-content #sections {flex-wrap:wrap; overflow:visible; align-items:stretch}
  body[data-page="troopers"] #main-content #sections button {min-width:0; max-width:100%; min-height:44px; height:auto; white-space:normal; overflow-wrap:anywhere}
  body[data-page="troopers"] #main-content #section-intro {margin:.55rem 0 .75rem; font-size:.9rem; line-height:1.45}
  body[data-page="troopers"] #trooper-content .formation-cards {grid-template-columns:minmax(0,1fr)}
  body[data-page="troopers"] #trooper-detail[open] :is(.formation-dialog-head,.detail-tabs,.cg489-jumps) {box-sizing:border-box; max-width:100%; min-width:0}
  body[data-page="troopers"] #trooper-detail[open] .formation-dialog-head {display:flex; flex-wrap:wrap; align-items:center; gap:.4rem .75rem}
  body[data-page="troopers"] #trooper-detail[open] .formation-dialog-head>div:first-child {flex:1 1 10rem; min-width:min(100%,8rem)}
  body[data-page="troopers"] #trooper-detail[open] .dialog-actions {margin-inline-start:auto; flex-wrap:wrap; max-width:100%}
  body[data-page="troopers"] #trooper-detail[open] :is(.dialog-actions button,.detail-tabs button,.cg489-jumps button) {min-height:44px; height:auto; max-width:100%; white-space:normal; overflow-wrap:anywhere}
  body[data-page="troopers"] #trooper-detail[open] .detail-tabs,body[data-page="troopers"] #trooper-detail[open] .cg489-jumps {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,7.6rem),1fr));gap:.3rem;overflow:visible}
  body[data-page="troopers"] #trooper-detail[open] :is(.htx-activation-top,.htx-required-parts,.cg489-core-intro,.htd-main) {min-width:0; overflow-wrap:anywhere}
}



/* Reserve a full tap target for each utility on the narrowest phones. */
@media(max-width:350px){
 body[data-atlas] > header.homepage-shared-header[data-hq-masthead] .header-inner:has(#hq-finder-toggle){
  grid-template-columns:minmax(0,1fr) 44px 44px 44px!important;
 }
 body[data-atlas] header[data-hq-masthead].homepage-shared-header .header-inner .hq-brand .companion-wordmark{
  white-space:nowrap;text-wrap:nowrap;font-size:min(.75rem,18px)!important;
 }
 body[data-atlas] > header.homepage-shared-header[data-hq-masthead] .header-inner:has(#hq-finder-toggle) :is(#hq-finder-toggle,button.tw-lang-header){
  width:44px!important;min-width:44px!important;max-width:44px!important;min-height:44px;padding:0!important;justify-content:center;margin-inline:0!important;box-sizing:border-box!important;
 }
 body[data-atlas] header[data-hq-masthead] .header-inner #hq-finder-toggle svg,
 body[data-atlas] header[data-hq-masthead] .header-inner .tw-lang-header svg{
  display:block!important;position:static;flex:0 0 18px!important;width:18px!important;height:18px!important;max-width:none;
 }
 body[data-atlas] header[data-hq-masthead] .header-inner .tw-lang-header :is(.tw-lang-caption,i){display:none!important}
}
@layer tw-language-controls {
 @media(max-width:350px){
  header[data-hq-masthead] .header-inner button.tw-lang-header:not([hidden]){
   width:44px!important;min-width:44px!important;
  }
 }
}


/* Hero team filters and roster links */
body[data-atlas].teams-page main .ht-filter-bar {
 display:grid;grid-template-columns:repeat(2,minmax(0,12.5rem));gap:.85rem;
 align-items:end;margin:.85rem 0 .7rem;padding:0;border:0
}
body[data-atlas].teams-page .ht-filter-bar .ht-select-label {
 display:grid;min-width:0;gap:.28rem;color:#abbcc3;font-weight:550;font-size:.78rem;line-height:1.4
}
body[data-atlas].teams-page .ht-filter-bar select {
 display:block;width:100%;min-width:0;min-height:44px;padding:.45rem .48rem;
 font:inherit;font-size:.86rem;line-height:1.3;color:#eef4f4;background-color:#17262e;border:1px solid #41555f;border-radius:.4rem
}
body[data-atlas].teams-page main .ht-context {margin:.6rem 0 .85rem;color:#afbdc4;font-size:.82rem!important;line-height:1.4}
body[data-atlas].teams-page #ht-list {gap:.8rem;align-items:stretch}
body[data-atlas].teams-page main .ht-card {padding:0;background:#14232c;border:1px solid #34464f;border-radius:10px;overflow:visible;box-shadow:none}
body[data-atlas].teams-page .ht-card:focus-within {outline:2px solid #8bdbc6;outline-offset:2px}
body[data-atlas].teams-page .ht-card .ht-roster-link {
 display:block;height:100%;box-sizing:border-box;padding:1rem;text-decoration:none;color:#f0f5f6;border-radius:inherit
}
body[data-atlas].teams-page .ht-roster-link:focus-visible {outline:0}
@media (hover:hover){body[data-atlas].teams-page .ht-card:has(.ht-roster-link:hover){background:#192b34;border-color:#60857e}}
body[data-atlas].teams-page .ht-troop-name {display:block;color:#9cccc1;font-size:.75rem;font-weight:600;line-height:1.35}
body[data-atlas].teams-page main .ht-card .ht-roster-link h2 {display:flex;align-items:baseline;justify-content:space-between;gap:.65rem;margin:.23rem 0 0;line-height:1.28;font-size:1.04rem!important;color:#f2f5f6}
body[data-atlas].teams-page .ht-card-arrow {margin-inline-start:auto;color:#9cd0c3;font-weight:500;font-size:1rem}
body[data-atlas].teams-page main .ht-card .ht-focus {margin:.28rem 0 0;font-size:.82rem!important;line-height:1.45;color:#b4c5cc}
body[data-atlas].teams-page main .ht-card .ht-portraits {margin:.8rem 0 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem}
body[data-atlas].teams-page .ht-roster-link .ht-portraits > div {display:flex;flex-direction:column;align-items:flex-start;text-align:start;background:none;padding:0;border:0}
body[data-atlas].teams-page .ht-roster-link .ht-portrait {width:2.4rem;height:2.4rem;overflow:hidden;border-radius:.45rem}
body[data-atlas].teams-page .ht-roster-link .ht-portrait img {width:100%;height:100%;object-fit:contain}
body[data-atlas].teams-page .ht-roster-link .ht-portraits strong {font-size:.79rem;color:#e5eded;line-height:1.32;margin:.35rem 0 .06rem}
body[data-atlas].teams-page .ht-roster-link .ht-portraits small {font-size:.73rem;line-height:1.36;color:#afc0c7}
@media(max-width:600px){
 body[data-atlas].teams-page main .ht-filter-bar {grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));gap:.6rem}
 body[data-atlas].teams-page .ht-card .ht-roster-link {padding:.85rem}
}


/* Hero Awakening chooser and cost planner */
body.aw-page main#main-content {
  padding-block-start: clamp(.6rem, 1.6vw, 1.4rem);
}
.aw-page .aw-hub-ident { display: block; margin: 0 0 1.55rem; }
.aw-page .aw-hub-ident h1 { margin: 0 0 .55rem; }
.aw-page .aw-heroes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
  align-items: start; gap: 1.5rem; margin: 0 0 1.25rem;
}
.aw-page .aw-heroes section {
  min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none;
}
.aw-page .aw-heroes h2 {
  color: #e8f2ee; font-size: 1.05rem; line-height: 1.35; margin: 0 0 .6rem;
}
.aw-page .aw-heroes section > div {display: grid; gap: .45rem;}
.aw-page .aw-heroes a {
  min-height: 48px; min-width: 0; padding: .55rem .65rem; gap: .65rem;
  border: 1px solid #36535c; border-radius: 9px; background: #142b35; color: #e9f3ee;
}
.aw-page .aw-heroes a:target, .aw-page .aw-heroes a:hover, .aw-page .aw-heroes a:focus-visible { background: #1d3840; border-color: #8dcbb2; }
.aw-page .aw-heroes img {flex: 0 0 auto; width: 40px; height: 40px;}
.aw-page .aw-heroes strong {min-width: 0; overflow-wrap: anywhere; line-height: 1.3;}
.aw-page .aw-profile {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .85rem;
  margin: 0 0 1.15rem;
}
.aw-page .aw-profile img {width: 52px; height: 52px; border-radius: 9px;}
.aw-page .aw-profile .aw-heading {flex: 1 1 10rem; min-width: 0; overflow-wrap: anywhere;}
.aw-page .aw-profile .aw-heading p {margin: 0 0 .15rem;}
.aw-page .aw-choose, .aw-page .aw-tools a, .aw-page main > .aw-guide {
  display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .22em;
}
.aw-page .aw-tools {margin: 1rem 0 0; gap: .3rem 1.35rem;}
.aw-page #awakening-planner {
  overflow-wrap: anywhere;
  border: 1px solid #385058; border-radius: 12px; background: #102631;
  padding: clamp(.8rem, 2.5vw, 1.5rem);
}
.aw-page #awakening-planner .aw-tabs {
  display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-start;
  border: 0; border-bottom: 1px solid #39525b;
  padding: 0 0 .8rem; margin: 0 0 1rem;
}
.aw-page #awakening-planner .aw-tabs button,
.aw-page #awakening-planner :is(.aw-skill-tabs,.aw-wall-tabs) button {
  min-height: 44px; height: auto; min-width: 0; white-space: normal; line-height: 1.35;
}
.aw-page #awakening-planner button[aria-pressed="true"] {
  border-color: #93c9ad !important; color: #102a23 !important;
  background: #b6dec3 !important; box-shadow: none;
}
.aw-page #awakening-planner button[aria-pressed="true"] small {color: #28473a!important;}
.aw-page #awakening-planner :is(.aw-unlock,.aw-progress,.dp-disclosure,.aw-next) {
  color: #d6e6e5; background: transparent; border: 0; border-block: 1px solid #36505b;
  border-radius: 0; box-shadow: none; padding: 0; margin: .8rem 0;
}
.aw-page #awakening-planner .aw-unlock {border-block-start: 0; margin-top: -.55rem;}
.aw-page #awakening-planner :is(.aw-unlock,.aw-progress,.dp-disclosure,.aw-next) > summary {
  min-height: 44px; box-sizing: border-box; padding: .5rem .2rem;
  border: 0; border-radius: 0; box-shadow: none; background: transparent; color: #c5e2da;
  line-height: 1.4; white-space: normal; overflow-wrap: anywhere;
}
.aw-page #awakening-planner .aw-lead { margin-top: .5rem; }
.aw-page #awakening-planner .aw-control {align-items: center; margin: 1rem 0; gap: .45rem .8rem;}
.aw-page #awakening-planner .aw-control label {color: #f1f5ef;}
.aw-page #awakening-planner .aw-summary {
  padding: .85rem 1rem; border-color: #486a5b; border-inline-start: 3px solid #9ac8a4;
  background: #19342f; border-radius: 8px; margin: 1rem 0;
}
.aw-page #awakening-planner .aw-summary > span {font-size: 1rem; color: #ebf4e9;}
.aw-page #awakening-planner .aw-summary > div {gap: .1rem 1.35rem;}
.aw-page #awakening-planner .aw-summary .aw-item {min-height: 44px; line-height: 1.35; max-width: 100%;}
.aw-page #awakening-planner .aw-summary .aw-art {flex: 0 0 auto;}
.aw-page #awakening-planner .aw-summary .aw-item > span:last-child {min-width: 0; overflow-wrap: anywhere;}
.aw-page #awakening-planner .aw-summary .aw-item strong {font-size: 1.05rem; font-variant-numeric: tabular-nums; color: #f3faf1;}
.aw-page #awakening-planner .aw-note {line-height: 1.5;}
.aw-page #awakening-planner .aw-wall-key {gap: .5rem;}
.aw-page #awakening-planner .aw-wall-key p {padding: .65rem .8rem;}
.aw-page #awakening-planner .dp-disclosure .aw-note {margin: .45rem 0 .8rem;}
.aw-page #awakening-planner .aw-table-wrap {scrollbar-gutter: auto;}
.aw-page #awakening-planner :focus-visible, .aw-page .aw-heroes a:focus-visible {
  outline: 2px solid #a6d8be; outline-offset: 2px;
}
@media (max-width: 640px) {
  .aw-page .aw-heroes {grid-template-columns: 1fr; gap: 1rem;}
  .aw-page .aw-heroes section > div {
    grid-template-columns: repeat(auto-fit,minmax(min(100%,8.25rem),1fr));
  }
  .aw-page .aw-heroes a {gap: .4rem; padding: .4rem .5rem;}
  .aw-page .aw-heroes a span[aria-hidden] {font-size: .8rem;}
  .aw-page .aw-heroes img {width: 34px; height: 34px;}
  .aw-page .aw-profile {margin-bottom: .7rem;}
  .aw-page .aw-profile img {width: 44px; height: 44px;}
  .aw-page .aw-profile .aw-heading {flex-basis: 7.25rem;}
  .aw-page #awakening-planner .aw-tabs button {flex: 1 1 5.25rem; overflow-wrap: anywhere; padding: .35rem .45rem;}
  .aw-page #awakening-planner .aw-skill-tabs {
    grid-template-columns: repeat(auto-fit,minmax(min(100%,7.5rem),1fr)); gap: .4rem;
  }
  .aw-page #awakening-planner select {
    min-height: max(44px,1.9em)!important; height: auto!important; max-width: 100%; box-sizing: border-box;
  }
  .aw-page #awakening-planner .aw-summary {padding: .65rem .75rem;}
  .aw-page #awakening-planner .aw-summary > div {display: grid; align-items: start; gap: .05rem;}
}



/* Hero build planner: choose a hero, then work from inputs to bonuses. */
html[data-build-ready] body.hero-build-page #main-content > .build-library {display:none!important}
body.hero-build-page #hero-app {padding:0; min-width:0}
body.hero-build-page #hero-roster {padding:0; min-width:0}
body.hero-build-page #hero-roster .hero-page-title {display:block;padding:0;margin:0}
body.hero-build-page #hero-roster .hero-page-title h1,body.hero-build-page #hero-builder .hero-profile h1 {
  margin:0; font-size:clamp(1.6rem,3.3vw,2.3rem); line-height:1.12; overflow-wrap:anywhere; letter-spacing:-.025em
}
body.hero-build-page #hero-roster .hero-page-title p {margin:.45rem 0 .15rem; max-width:52ch;font-size:1rem;line-height:1.5;color:#c7d9df}
body.hero-build-page #hero-roster .build-related {display:flex; flex-wrap:wrap; gap:0 1.1rem; align-items:center; margin:0 0 .4rem;padding:0;border:0;background:none}
body.hero-build-page #hero-roster .build-related a {display:inline-flex;align-items:center;min-height:44px;color:#afd4d1;font-size:.875rem;line-height:1.4;text-decoration:underline;text-underline-offset:.22em}
body.hero-build-page #hero-roster .hero-filters {display:block; margin:0; padding:.85rem 0 0; background:none;border:0;border-top:1px solid #384c56}
body.hero-build-page #hero-roster .hero-filters label {display:grid; gap:.34rem; font-size:.9rem; line-height:1.4; color:#f1f4f4}
body.hero-build-page #hero-roster :is(input[type=search],select),body.hero-build-page #hero-builder .hero-config :is(select,input) {box-sizing:border-box;width:100%;max-width:100%;min-width:0;font-size:1rem;line-height:1.35;min-height:44px!important;height:auto!important;padding:.55em .65em}
body.hero-build-page #hero-roster .build-roster-tools {position:relative; margin:.15rem 0 .65rem; border-bottom:1px solid #384c56}
body.hero-build-page #hero-roster #hero-count {position:absolute;inset-inline-end:0;top:0;display:flex;align-items:center;justify-content:flex-end;min-height:44px;max-width:48%;color:#b2c5cc;line-height:1.4;font-size:.875rem;overflow-wrap:anywhere}
body.hero-build-page #hero-roster .build-filters {margin:0;padding:0;border:0;background:none}
body.hero-build-page #hero-roster .build-filters summary {display:list-item;width:fit-content;max-width:50%;min-height:44px;align-content:center;padding:.5rem 0;box-sizing:border-box;color:#b3ded3;cursor:pointer;line-height:1.35;font-size:.9rem;overflow-wrap:anywhere}
body.hero-build-page #hero-roster .build-filter-body {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));gap:.65rem 1rem;align-items:end;margin:.2rem 0 1rem;max-width:57rem}
body.hero-build-page #hero-roster .build-filter-body > label {display:grid;gap:.35rem;min-width:0;font-size:.9rem;font-weight:650}
body.hero-build-page #hero-roster .build-filter-body .hero-awakening-filter {display:flex;align-items:center;gap:.5rem;margin:0;min-height:44px;line-height:1.35}
body.hero-build-page #hero-roster #clear-hero {min-height:44px;justify-self:start;width:auto;margin:0}
body.hero-build-page #hero-roster #hero-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,15rem),1fr))!important;gap:.5rem;padding:0}
body.hero-build-page #hero-grid a.hero-card {display:grid!important;grid-template-columns:44px minmax(0,1fr) auto!important;align-items:center;gap:.65rem;min-width:0;min-height:4.8rem;height:auto; padding:.65rem .75rem!important;color:#edf4f4;background:#132934;border:1px solid #334b56;border-radius:.5rem;text-align:start;text-decoration:none;overflow-wrap:anywhere;box-shadow:none}
body.hero-build-page #hero-grid a.hero-card:hover,body.hero-build-page #hero-grid a.hero-card:focus-visible {border-color:#8fcaba;background:#18343e}
body.hero-build-page #hero-grid .hero-portrait {grid-area:auto; width:42px;height:42px;align-self:center}
body.hero-build-page #hero-grid .hero-scan-identity {display:grid;grid-area:auto;gap:.05rem;min-width:0;line-height:1.35}
body.hero-build-page #hero-grid .hero-scan-identity :is(strong,span,small) {display:block;overflow:visible;white-space:normal;text-overflow:clip}
body.hero-build-page #hero-grid .hero-scan-identity strong {font-size:1rem;line-height:1.35;color:#f0f6f7}
body.hero-build-page #hero-grid .hero-scan-identity span {font-size:.8rem;color:#b6c9ce}
body.hero-build-page #hero-grid .hero-scan-identity small {font-size:.85rem;color:#dce7e9;font-weight:500}
body.hero-build-page #hero-grid .build-open-arrow {color:#a8d6ce}
body.hero-build-page #hero-builder {min-width:0}
body.hero-build-page #hero-builder .hero-profile {display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.7rem;min-width:0;margin:.2rem 0 .5rem;padding:0}
body.hero-build-page #hero-builder .hero-profile > div {min-width:0}
body.hero-build-page #hero-builder .hero-eyebrow {font-size:.8rem;line-height:1.4;color:#afc8c9}
body.hero-build-page #hero-builder .hero-detail-actions {display:flex;flex-wrap:wrap;gap:.4rem;justify-content:flex-end}
body.hero-build-page #hero-builder .hero-detail-actions :is(a,button) {display:inline-flex;align-items:center;justify-content:center;min-height:44px;white-space:normal;font-size:.875rem;line-height:1.35;text-align:center}
body.hero-build-page #hero-builder .hero-build-top {position:relative;z-index:2;gap:.35rem .7rem;flex-wrap:wrap;align-items:center;margin:.25rem 0}
body.hero-build-page #hero-builder .hero-build-top :is(button,summary,a) {min-height:44px;line-height:1.35;white-space:normal}
body.hero-build-page #hero-builder #hero-setup-tools > summary {width:auto;min-width:0;max-width:100%;padding-inline:.7rem}
body.hero-build-page #hero-builder .hero-plan-status {margin:.25rem 0 .7rem;font-size:.8125rem;line-height:1.45}
body.hero-build-page #hero-builder .hero-config {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,5.8rem),1fr));align-items:end;gap:.5rem 1rem;margin:.5rem 0 1rem;padding:.8rem;border-color:#3e5964}
body.hero-build-page #hero-builder .hero-config label {font-size:.875rem;line-height:1.4;min-width:0}
body.hero-build-page #hero-builder :is(.hero-attributes,.hero-equipment,.hero-starting) {max-width:100%;min-width:0;box-sizing:border-box}
body.hero-build-page #hero-builder :is(.hero-attributes,.hero-equipment,.hero-starting) h2 {font-size:1.08rem;line-height:1.35}
body.hero-build-page #hero-attributes {padding:clamp(.7rem,1.4vw,1.1rem)}
body.hero-build-page #hero-attributes .hero-stat-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));gap:.45rem}
body.hero-build-page #hero-attributes .hero-stat-grid > div {display:grid;grid-template-columns:1fr;align-content:start;align-items:start;min-width:0;gap:.25rem;padding:.7rem}
body.hero-build-page #hero-attributes .hero-stat-grid > div > * {grid-area:auto;overflow-wrap:anywhere}
body.hero-build-page #hero-attributes .hero-stat-grid span {font-size:.84rem;line-height:1.35;color:#cadbdc}
body.hero-build-page #hero-attributes .hero-stat-grid strong {font-size:1.18rem;line-height:1.3;letter-spacing:-.025em;color:#eaf9f3}
body.hero-build-page #hero-attributes .hero-stat-grid small {font-size:.78rem;line-height:1.45}
body.hero-build-page #hero-attributes :is(#hero-conversion,#hero-power) {margin-top:.5rem;padding-top:0}
body.hero-build-page #hero-attributes :is(#hero-conversion,#hero-power) summary {min-height:44px;padding-block:.55em;font-size:.875rem;line-height:1.45}
body.hero-build-page #hero-builder #hero-starting {gap:.6rem 1rem;align-items:center}
body.hero-build-page #hero-builder :is(button,a,select,summary) {overflow-wrap:anywhere}
body.hero-build-page :where(#hero-builder,dialog) :where(label,p,small,summary,h2,h3) {overflow-wrap:anywhere}
@media(max-width:700px){
  body.hero-build-page #hero-builder .hero-profile {grid-template-columns:auto minmax(0,1fr);margin-top:0}
  body.hero-build-page #hero-builder .hero-detail-actions {grid-column:1/-1;justify-content:flex-start}
  body.hero-build-page #hero-builder #hero-starting {display:flex;flex-wrap:wrap;align-items:center}
  body.hero-build-page #hero-builder .hero-detail-menu {max-width:min(17.5rem,calc(100vw - 2.5rem));box-sizing:border-box}
  body.hero-build-page #hero-builder :is(.hero-config,.hero-version) select {max-width:100%;min-width:0}
}

/* The legacy planner fixes several controls in pixels; allow the reading size to follow the browser. */
body.hero-build-page #hero-roster .hero-page-title h1,body.hero-build-page #hero-builder .hero-profile h1 {font-size:clamp(1.55rem,3vw,2.25rem)!important;line-height:1.15!important}
body.hero-build-page #hero-roster .hero-page-title p {font-size:.96rem!important;line-height:1.5!important}
body.hero-build-page #hero-roster .build-filters > summary {display:flex;align-items:center;gap:.4em;border:0;border-radius:0;background:none;box-shadow:none}
body.hero-build-page #hero-roster .build-filters > summary::before {content:"";display:block;flex:none;width:.42em;height:.42em;border:solid currentColor;border-width:0 .1em .1em 0;transform:rotate(-45deg)}
body.hero-build-page #hero-roster .build-filters[open] > summary::before {transform:rotate(45deg)}
body.hero-build-page #hero-roster .build-filters > summary::after {display:none}
body.hero-build-page #hero-roster .build-filters summary::-webkit-details-marker {display:none}
body.hero-build-page #hero-builder .hero-config label,body.hero-build-page #hero-builder .hero-config label > :is(select,input) {font-size:.94rem!important}
body.hero-build-page #hero-builder :is(.hero-equipment,.hero-starting,.hero-attributes) h2 {font-size:1.1rem!important;line-height:1.35!important}
body.hero-build-page #hero-attributes .hero-stat-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr))!important}
body.hero-build-page #hero-attributes .hero-stat-grid > div strong {font-size:1.17rem!important;line-height:1.25!important}
body.hero-build-page #hero-attributes .hero-stat-grid > div small,body.hero-build-page #hero-attributes .hero-stat-grid > div span {line-height:1.4!important;font-size:.82rem!important}
body.hero-build-page #hero-builder .hero-profile {display:flex!important;flex-wrap:wrap;justify-content:flex-start}
body.hero-build-page #hero-builder .hero-profile > div:not(.hero-detail-actions) {flex:1 1 6rem}
body.hero-build-page #hero-builder .hero-profile .hero-detail-actions {flex:0 1 auto;max-width:100%;width:auto!important;margin:0!important;justify-content:start!important}
body.hero-build-page #hero-builder .hero-profile .hero-detail-actions > * {margin:0!important}
body.hero-build-page #hero-builder .hero-plan-status #hero-save-state {font-size:.82rem!important}
body.hero-build-page #hero-builder .hero-version,.hero-build-page #hero-builder #hero-starting > div {min-width:0;max-width:100%}
@media (max-width:700px){
  body.hero-build-page #hero-builder .hero-config {grid-template-columns:repeat(auto-fit,minmax(min(100%,5.8rem),1fr))!important;gap:.55rem}
  body.hero-build-page #hero-builder .hero-config label:has(#hero-step) {min-width:0}
  body.hero-build-page #hero-builder #hero-attributes .hero-march-stat {grid-template-columns:minmax(0,1fr) auto!important;align-items:center}
  body.hero-build-page #hero-builder #hero-attributes .hero-march-stat strong {grid-area:1/2/span 2}
  body.hero-build-page #skill-picker {overflow:auto;overscroll-behavior:contain}
  body.hero-build-page #skill-picker .hero-skill-groups {display:flex;flex-wrap:wrap;gap:.3rem;overflow:visible}
  body.hero-build-page #skill-picker .hero-skill-groups button {flex:0 1 auto;white-space:normal;max-width:100%;min-height:44px}
  body.hero-build-page #skill-picker .hero-picker-controls {flex:0 0 auto}
  body.hero-build-page #skill-picker #skill-pick-list {flex:1 0 auto;min-height:0;overflow:visible;max-height:none}
  body.hero-build-page #skill-picker .hero-choice-variants {grid-template-columns:repeat(auto-fit,minmax(min(100%,7.5rem),1fr))}
}
@media (max-width:700px){
  body.hero-build-page #hero-builder .hero-config {display:flex!important;flex-wrap:wrap}
  body.hero-build-page #hero-builder .hero-config label {flex:1 1 5.4rem}
  body.hero-build-page #hero-builder .hero-config label:last-child {flex:1.15 1 6.65rem}
}
@media (max-width:350px){
  html[lang="de"] body.hero-build-page #hero-roster .hero-page-title h1 {font-size:1.37rem!important;hyphens:auto}
}
@media (max-width:650px){
  body.hero-build-page dialog.hero-picker[open] > header {
    position:static!important;display:flex!important;flex-wrap:wrap;align-items:start;justify-content:space-between;
    gap:.35rem .6rem;flex:none;min-height:0!important;width:100%;margin:0!important;
    padding:0 0 .5rem!important;border:0;border-bottom:1px solid #38515d;background:none!important
  }
  body.hero-build-page dialog.hero-picker[open] > header > :is(h2,div) {
    flex:1 1 9em;max-width:100%;min-width:0;margin:0;font-size:1.05rem!important;line-height:1.3!important
  }
  body.hero-build-page dialog.hero-picker[open] > header h2 {margin:0;font-size:1.05rem!important;line-height:1.3!important;hyphens:auto}
  body.hero-build-page dialog.hero-picker[open] > header button {flex:0 1 auto;align-self:start;margin:0;min-height:44px;max-width:100%}
}

body.hero-build-page #hero-skill-bonuses .hero-bonuses > div {display:flex!important;flex-wrap:wrap;align-items:start;justify-content:space-between;gap:.2rem .7rem}
body.hero-build-page #hero-skill-bonuses .hero-bonuses dt {flex:1 1 7rem;min-width:0}
body.hero-build-page #hero-skill-bonuses .hero-bonuses dd {flex:0 1 auto;min-width:0;max-width:100%;margin:0}
body.hero-build-page #hero-skill-bonuses .hero-bonuses :is(dt,dd,small) {overflow-wrap:anywhere;white-space:normal!important}



/* Formation browsing, range estimates and the standalone talent planner. */
body[data-page="formations"] #main-content .formation-heading {
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;
  column-gap:1rem;row-gap:.35rem;padding-block:.85rem .65rem;margin-block:0 .45rem;
}
body[data-page="formations"] #main-content .formation-heading #eyebrow,
body[data-page="formations"] #main-content .fg-lead .fg-kicker,
body[data-page="formations"] #formation-detail .fvx-context .fvx-kicker {display:none}
body[data-page="formations"] #main-content .formation-heading :is(#title,#intro) {
  grid-column:1;min-width:0;max-width:68ch;margin:0;padding:0;overflow-wrap:anywhere;
}
body[data-page="formations"] #main-content .formation-heading .hq-guide-subject {
  grid-column:2;grid-row:1/span 2;position:static;float:none;align-self:center;margin:0;
  width:clamp(2.65rem,6vw,4rem);height:auto;object-fit:contain;
}
body[data-page="formations"] #main-content.has-formation-planner-link:not(.integrated-tool-selected) > :is(.integrated-tools,#guide-link) {display:none!important}
body[data-page="formations"] #main-content.has-formation-planner-link #sections {
  display:flex;flex-wrap:wrap;align-items:stretch;gap:.25rem;
  width:100%;max-width:100%;box-sizing:border-box;margin:.35rem 0 .65rem;padding:.25rem;
  overflow:visible;background:#102632;border:1px solid #345160;border-radius:.65rem;
}
body[data-page="formations"] #main-content #sections :is([data-section],.formation-planner-link) {
  display:inline-flex;align-items:center;justify-content:center;gap:.45rem;
  flex:0 1 auto;min-height:44px;height:auto;min-width:0;max-width:100%;box-sizing:border-box;
  margin:0;padding:.5rem .85rem;white-space:normal;overflow-wrap:anywhere;line-height:1.28;text-align:center;
}
body[data-page="formations"] #main-content #sections .formation-planner-link {
  margin-inline-start:auto;color:#aee8da;font-weight:700;text-decoration:underline;text-underline-offset:.2em;
}
body[data-page="formations"] #main-content #sections .formation-planner-link:focus-visible {outline:2px solid #b5f2df;outline-offset:-3px}
body[data-page="formations"] #main-content #section-intro {margin:.5rem 0 .85rem;max-width:76ch;overflow-wrap:anywhere}
body[data-page="formations"] #main-content .formation-card :is(h2,p,button,.formation-badge) {overflow-wrap:anywhere}
body[data-page="formations"] #main-content .formation-card button {min-height:44px;height:auto;white-space:normal}
body[data-page="formations"] #formation-detail .fc-calculator {border-inline-start:3px solid #7cd5bc}
body[data-page="formations"] #formation-detail .fc-calculator > summary {
  position:relative;display:block;min-height:44px;line-height:1.4;overflow-wrap:anywhere;
}
body[data-page="formations"] #formation-detail .formation-range-preview {
  display:flex;align-items:baseline;flex-wrap:wrap;gap:.2rem .7rem;margin-top:.25rem;
  color:#c0d3da;font-size:.875rem;font-weight:400;
}
body[data-page="formations"] #formation-detail .formation-range-values {font-weight:700;color:#a7e2d1}
body[data-page="formations"] #formation-detail .fc-calculator[open] .formation-range-preview {display:none}
body[data-page="formations"] #formation-detail :is(.formation-dialog-head,.dialog-actions,.fvx-context,.fc-calculator,.fc-calculator-body,.fp-range,.fp-result,.formation-upgrade,.formation-costs,.fvx-context > div) {
  min-width:0;max-width:100%;box-sizing:border-box;
}
body[data-page="formations"] #formation-detail .fvx-context > div {overflow-wrap:anywhere}
body[data-page="formations"] #formation-detail .fp-range {
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8.5rem),1fr));align-items:end;
}
body[data-page="formations"] #formation-detail .fp-range .game-range {grid-column:1/-1}
body[data-page="formations"] #formation-detail :is(.formation-cost,.formation-field,.formation-field select,.detail-tabs button) {
  min-width:0;max-width:100%;overflow-wrap:anywhere;box-sizing:border-box;
}
body[data-page="formations"] #formation-detail .formation-cost {min-height:44px}
body[data-page="formations"] #formation-detail .formation-cost > span {min-width:0;white-space:normal}
body[data-dedicated-tool="formation"] #talent-list .allocation .row {flex-wrap:wrap;gap:.55rem 1rem}
body[data-dedicated-tool="formation"] #talent-list .allocation .row > div:first-child {flex:1 1 11rem;min-width:0;overflow-wrap:anywhere}
body[data-dedicated-tool="formation"] #talent-list .stepper {align-items:center;flex:none;max-width:100%;flex-wrap:wrap}
body[data-dedicated-tool="formation"] #talent-list :is(.stepper output,.result .lead) {font-variant-numeric:tabular-nums}
body[data-dedicated-tool="formation"] #tool :is(.fields,.filters) {
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));min-width:0;align-items:start;
}
body[data-dedicated-tool="formation"] #tool :is(.field,.result,.filters > *,input,select,.allocation,.actions > button) {min-width:0;max-width:100%;box-sizing:border-box}
body[data-dedicated-tool="formation"] #tool :is(.result,.tool-extras summary,.allocation summary,.progress) {overflow-wrap:anywhere}
@media(max-width:720px) {
  body[data-page="formations"] #main-content #sections [data-section] {flex:1 1 auto;padding:.5rem .45rem}
  body[data-page="formations"] #main-content #sections .formation-planner-link {
    flex:1 0 100%;min-height:44px;margin:0;border-top:1px solid #345160;border-radius:0;
  }
  body[data-page="formations"] #main-content .fg-guide .fg-lead {padding:0 0 .75rem;margin-bottom:.7rem}
  body[data-page="formations"] #main-content .fg-guide .fg-jumps {display:flex;flex-wrap:wrap;gap:.3rem}
  body[data-page="formations"] #main-content .fg-guide .fg-jumps a {
    flex:1 1 8.5rem;min-width:0;min-height:44px;padding:.45rem .55rem;white-space:normal;overflow-wrap:anywhere;
  }
  body[data-page="formations"] #main-content .formation-card .formation-card-heading {padding:.65rem .8rem .2rem;gap:.65rem}
  body[data-page="formations"] #main-content .formation-card .formation-card-heading img {width:3.1rem;height:3.1rem;object-fit:contain}
  body[data-page="formations"] #main-content .formation-card > p {margin:0;padding:.35rem .8rem .65rem}
  body[data-page="formations"] #main-content .formation-card .formation-card-foot {gap:.45rem;padding:.35rem .65rem;flex-wrap:wrap}
  body[data-page="formations"] #formation-detail .formation-dialog-head {
    display:flex!important;align-items:center;justify-content:space-between;flex-wrap:wrap!important;gap:.35rem .6rem;
  }
  body[data-page="formations"] #formation-detail .formation-dialog-head > div:first-child {flex:1 1 7rem!important;min-width:0;overflow-wrap:anywhere}
  body[data-page="formations"] #formation-detail .formation-dialog-head .dialog-actions {
    flex:0 1 auto!important;width:auto;display:flex;flex-flow:row wrap;align-items:center;justify-content:flex-end;gap:.35rem;margin:0;
  }
  body[data-page="formations"] #formation-detail .dialog-actions :is(button,#close) {min-width:0;max-width:100%;min-height:44px;height:auto}
  body[data-page="formations"] #formation-detail .detail-tabs {display:flex;flex-wrap:wrap;align-items:stretch;gap:.3rem}
  body[data-page="formations"] #formation-detail .detail-tabs button {flex:1 1 5.5rem;height:auto;min-height:44px;white-space:normal}
  body[data-dedicated-tool="formation"] #tool .fields {grid-template-columns:repeat(auto-fit,minmax(min(100%,9.5rem),1fr))}
  body[data-dedicated-tool="formation"] #tool .filters {gap:.6rem}
}
@media(max-width:420px) {
  body[data-page="formations"] #main-content .formation-heading {column-gap:.55rem}
  body[data-page="formations"] #main-content #sections [data-section] {padding-inline:.3rem}
  body[data-dedicated-tool="formation"] #talent-list .allocation .row > div:first-child {flex-basis:10.75rem}
}

@media(max-width:560px) {
  body[data-page="formations"] #formation-content .fg-guide {overflow-wrap:anywhere}
  body[data-page="formations"] #formation-content .fg-guide .fgc-board-layout {
    grid-template-columns:minmax(0,1fr);min-width:0;
  }
  body[data-page="formations"] #formation-content .fg-guide :is(.fgc-board-layout > *,.fgc-board,.fgc-board img,.fj-notes,.fg-slot-example > *,.fg-item-link) {
    min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere;
  }
}


/* General Training catalogue */
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app {width:100%;max-width:66rem;box-sizing:border-box;margin-inline:auto;padding:1rem clamp(.85rem,3vw,2rem) 1.7rem}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app :is(.gt-intro,.gt-search,.gt-list-tools,.gt-group,.gt-card,.gt-all-costs) {min-width:0;overflow-wrap:anywhere}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-intro {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:.45rem 1.4rem;margin:0 0 1.15rem;padding:0}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-intro>div {flex:1 1 21rem;min-width:0}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-intro h1 {color:#f2f6f5;margin:0!important;font-size:clamp(1.36rem,1.13rem + .8vw,1.85rem)!important;letter-spacing:-.023em;line-height:1.17}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-intro p {margin:.38rem 0 0!important;max-width:65ch;font-size:.875rem!important;line-height:1.48;color:#becbd2}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-related {background:transparent;border:0;padding:0;margin:0;font-size:.81rem;max-width:100%}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-related summary {display:list-item;min-height:44px;align-content:center;padding:.35rem 0;box-sizing:border-box;color:#abd6cc;font:inherit;font-weight:600;cursor:pointer}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-related nav {display:grid;margin:0;gap:0;padding:.15rem .65rem;border-inline-start:2px solid #476860}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-related a {display:flex;align-items:center;min-height:44px;color:#bce5dc;font-size:.85rem;text-decoration:underline;text-underline-offset:.17em}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app #catalogue {padding:0;margin:0;border:0;background:transparent;box-shadow:none}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app [hidden] {display:none!important}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-search label {display:block;font-size:.82rem;font-weight:600;color:#d5e1e5;margin:0 0 .35rem}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-search>div {display:flex;gap:.45rem;align-items:stretch}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app #tree-search {min-width:0;flex:1 1 auto;min-height:44px;margin:0;box-sizing:border-box;background:#13252f;border:1px solid #405866;border-radius:.45rem;color:#edf5f5;font:inherit;font-size:1rem!important;font-weight:400;padding:.45rem .75rem}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #tree-search::-webkit-search-cancel-button {-webkit-appearance:none}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app #clear-search {height:auto;min-height:44px;margin:0;padding:.45rem .75rem;font-size:.83rem!important;color:#d9e8e6;background:#192e37;border:1px solid #405861;border-radius:.45rem}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-list-tools {display:flex;gap:.15rem 1rem;justify-content:space-between;align-items:center;flex-wrap:wrap;margin:.35rem 0 .7rem}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app #tree-stats {margin:0;padding:0;position:static;font-size:.8rem!important;color:#acbec6;font-weight:400;line-height:1.4}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-list-tools label {display:inline-flex;gap:.5rem;min-height:44px;align-items:center;line-height:1.35;font-size:.82rem;color:#d0e0e2;cursor:pointer}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app #gt-costs {appearance:auto;margin:0;width:1rem;height:1rem;min-height:0;accent-color:#89cdb7;flex:none}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app #tree-results {display:block;position:static;overflow:visible;max-width:100%;width:100%;min-height:0;height:auto;background:none;border:0;box-shadow:none;margin:0;padding:0}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-group {margin:0 0 1.35rem;padding:0;border:0;background:none}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-group h2 {color:#e7efef;font-size:1rem!important;line-height:1.35;letter-spacing:-.01em;margin:0 0 .55rem!important;padding:0}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem .75rem}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-card {position:static;display:flex;flex-direction:column;margin:0;padding:0;background:#13232d;border:1px solid #314650;border-radius:.55rem;box-shadow:none}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-tech-link {display:flex;align-items:center;gap:.8rem;box-sizing:border-box;flex:1 1 auto;min-width:0;min-height:54px;padding:.75rem .85rem;color:#edf4f4;text-decoration:none;border-radius:inherit}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-tech-link .tech-art {display:grid;place-items:center;flex:0 0 44px;box-sizing:border-box;width:44px;height:44px;min-width:0;margin:0;border:0;background:transparent;overflow:hidden}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-tech-link .tech-art>span {transform:scale(.89)}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-identity {display:grid;flex:1;min-width:0;gap:.1rem}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-identity strong {color:#eaf2f4;font-size:.94rem;font-weight:650;line-height:1.32}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-identity .gt-effect {color:#bdccd2;font-size:.83rem;line-height:1.4}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-identity small {color:#9fb8bb;font-size:.75rem;line-height:1.35}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-arrow {color:#a3cebf;font-size:1rem;line-height:1}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app :is(.gt-tech-link,.gt-related summary,#gt-costs,summary,button):focus-visible {outline:2px solid #a5dcce;outline-offset:2px}
@media(hover:hover){body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-tech-link:hover {background:#192e38}}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-card-costs {border-top:1px solid #30454f;margin:0 .8rem;padding:.4rem 0 .55rem}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-card-costs .tree-level-controls {display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:.5rem;margin:0;min-height:1.7rem}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-card-costs [data-card-step] {min-width:44px;min-height:44px;width:auto;height:auto;margin:0;color:#dbefea;background:#1a3039;border:1px solid #435f64;border-radius:.38rem;font-size:1rem}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-card-costs :is(.tree-card-level,.tree-cost-time,.tree-cost-chip) {font-size:.8rem;line-height:1.4;color:#c6d7dc}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-card-costs .tree-card-costs {padding:.25rem 0 0;margin:0;border:0;background:none}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-card-costs .tree-cost-grid {display:flex;flex-wrap:wrap;gap:.28rem .7rem}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-card-costs .tree-cost-chip {min-width:0;max-width:100%;white-space:normal}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-empty {font-size:.9rem;color:#ccd9de;padding:1rem 0}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-all-costs {display:block;margin:1.25rem 0 0;padding:.1rem 0;border:0;border-block-start:1px solid #354951;background:transparent;border-radius:0}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-all-costs summary {padding:.75rem 0;min-height:44px;box-sizing:border-box;font-size:.9rem;cursor:pointer;color:#d8e7e5}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-all-costs p {font-size:.83rem!important;line-height:1.45}
@media(max-width:620px){
 body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app {padding-top:.7rem}
 body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-intro {display:block;margin:0 0 .5rem}
 body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-grid {grid-template-columns:minmax(0,1fr)}
 body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-tech-link {padding:.65rem .75rem;gap:.62rem}
 body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-group {margin:0 0 1.15rem}
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-related summary {display:inline-flex;align-items:center;justify-content:flex-start;gap:.5em;width:auto!important;max-width:100%;padding:0 .2rem 0 0!important;background:none!important;border:0!important;box-shadow:none;text-decoration:underline;text-underline-offset:.17em}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-related summary::marker {content:''}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-related summary::after {position:static;margin:0 .15em;border-color:currentColor}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-related p.gt-requirements {margin:0 0 .5rem!important;max-width:48ch;color:#c3d2d7;font-size:.84rem!important}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app #clear-search {white-space:nowrap;flex:0 0 auto;width:max-content;max-width:100%;overflow-wrap:normal;word-break:normal}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-search>div {min-width:0}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-group {container-type:inline-size}
@container(max-width:18rem){
 body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-tech-link {display:grid;grid-template-columns:1fr;gap:.28rem;padding:.58rem clamp(10px,3vw,14px)}
 body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-tech-link .tech-art {width:32px;height:32px;justify-self:start}
 body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-tech-link .tech-art>span {transform:scale(.65)}
 body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-tech-link .gt-arrow {display:none}
}
@media(max-width:350px){
 body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app {padding-inline:13px}
 body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-intro h1 {font-size:1.3rem!important;hyphens:auto}
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #footer {color:#afc2cb}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #footer [data-copy-page] {color:#dfedeb!important;background:#1b303a!important;border:1px solid #49636a!important;min-height:44px;border-radius:.4rem;padding:.45rem .85rem}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #footer a {color:#b3ded3!important}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-search {container-type:inline-size}
@container(max-width:18rem){
 body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-search>div {flex-wrap:wrap}
 body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app #tree-search {flex:1 0 100%;width:100%}
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-card-costs .tree-base-time :is(b,small,span) {font-size:.78rem!important;line-height:1.4}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #app .gt-all-costs summary {padding:.65rem .8rem!important}


/* General Training · selected technology and saved upgrades */
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail {
  width: min(52rem, calc(100% - 1.5rem)) !important;
  max-width: 100% !important;
  color: #e8f1f3;
  background: #122633 !important;
  border: 1px solid #47616d !important;
  border-radius: 12px !important;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .dialog-head {
  align-items: center;
  gap: .65rem;
  padding: .8rem max(.85rem, 2.5%) !important;
  background: #122633 !important;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail #technology-icon {
  display: grid !important;
  place-items: center;
  width: 2.85rem; height: 2.85rem;
  flex: none;
  background: #203947;
  border: 1px solid #3d5864;
  border-radius: .55rem;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail #technology-icon .tech-art {
  display: grid !important; place-items: center;
  width: 46px; height: 46px;
  background: transparent; border: none;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .dialog-head > div {
  flex: 1 1 8rem !important; min-width: 0;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail #technology-title {
  font-size: clamp(1.1rem, 2.3vw, 1.45rem) !important; line-height: 1.18;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail #technology-meta {
  margin: .25rem 0 0 !important; line-height: 1.4;
  white-space: normal; overflow-wrap: anywhere;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail #technology-body {
  padding: .9rem max(.85rem, 2.5%) .35rem !important;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .tech-range {
  margin: 0 0 1rem !important; padding: 0 !important;
  border: 0 !important; background: transparent !important; box-shadow: none !important;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .tech-range-inputs {
  display: grid !important; gap: .5rem .75rem !important;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) !important;
  align-items: end;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .tech-range-inputs :is(label,select) {
  min-width: 0 !important; max-width: 100%; width: 100%; white-space: normal;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .tech-range-presets {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .tech-range-presets button {
  min-height: 44px; padding: .3rem .65rem !important;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .tech-effect-compare {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,8.4rem),1fr)) !important;
  margin: .9rem 0 1rem !important; gap: .5rem !important;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .tech-effect-compare > div {
  min-width: 0; padding: .6rem .75rem !important;
  background: #192f3c !important;
  border: 0 !important; border-inline-start: 3px solid #59727b !important;
  border-radius: .25rem !important;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .tech-effect-compare > div:last-child {
  background: #183934 !important; border-inline-start-color: #82d9c0 !important;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .tech-effect-compare p {
  margin: .22rem 0 0 !important; color: #ecf4f5; line-height: 1.45;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .tech-effect-compare span {
  color: #c8d9df; font-size: .8rem;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .tech-range-result h3 {
  margin: 0 0 .5rem !important; font-size: 1rem !important;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) :is(#technology-detail,#upgrade-plan) .planner-time-summary {
  display: grid !important; grid-template-columns: repeat(auto-fit,minmax(min(100%,8rem),1fr)) !important;
  align-items: start; gap: .6rem 1rem; min-width: 0; height: auto !important;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) :is(#technology-detail,#upgrade-plan) .planner-time-summary > div,
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) :is(#technology-detail,#upgrade-plan) .planner-time-summary > div :is(span,strong) {
  display: block !important; min-width: 0 !important; max-width: 100% !important;
  white-space: normal !important; overflow: visible !important; text-overflow: clip !important;
  overflow-wrap: anywhere; text-align: start !important;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) :is(#technology-detail,#upgrade-plan) .planner-time-summary > div {
  border: 0 !important; padding: 0 !important;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .tech-plan-actions {
  display:flex; gap:.45rem; flex-wrap:wrap; align-items:stretch; margin: .75rem 0 !important;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) :is(#technology-detail,#upgrade-plan) :is(button,summary) {
  min-height: 44px; white-space: normal;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail #tech-plan-notice:empty,
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) :is(#technology-detail,#upgrade-plan) .copy-status:empty {
  display:none;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .tech-class-gate {
  display:block !important; width:auto !important; min-width:0 !important; max-width:100% !important;
  white-space:normal !important; overflow-wrap:anywhere; overflow:visible !important; height:auto !important;
  margin: 1rem 0 !important; line-height: 1.5 !important;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .planner-level-details.pr339-reference {
  padding: 0 !important; overflow: visible;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .planner-level-details.pr339-reference > summary {
  display:list-item; cursor:pointer; padding:.65rem .8rem; font-weight:700; align-content:center;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .planner-level-details.pr339-reference > :is(p,div) {
  margin-inline: .75rem !important; max-width:calc(100% - 1.5rem) !important;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .planner-level-details .tv340-scroll {
  margin-bottom:.75rem;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .progression-dialog-language {
  box-sizing:border-box; width:100%; display:flex; flex-wrap:wrap; align-items:center;
  justify-content:space-between; gap:.4rem .8rem;
  padding:.7rem max(.85rem, 2.5%) !important; border-top:1px solid #38505d;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .gt-detail-copy {
  display:flex; align-items:center; flex-wrap:wrap; gap:.35rem;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #upgrade-plan:has(.gt-plan-heading) {
  scroll-margin-top: 6.5rem !important;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #upgrade-plan .gt-plan-heading {
  align-items:start; gap: .6rem 1.5rem; flex-wrap:wrap;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #upgrade-plan .gt-plan-heading > div {
  min-width:0; flex-wrap:wrap;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #upgrade-plan .plan-selected article {
  display:flex; flex-wrap:wrap; align-items:start;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #upgrade-plan .plan-selected article > div {
  flex:1 1 12rem; min-width:0;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #upgrade-plan .plan-selected article :is(button,span,small) {
  overflow-wrap:anywhere; white-space:normal;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #upgrade-plan .plan-wallet {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr)) !important;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #upgrade-plan .planner-cost-values.has-supplies {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,5rem),1fr)) !important;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) :is(#technology-detail,#upgrade-plan) .planner-exact-row :is(dd,dt) {
  min-width:0; overflow-wrap:anywhere; white-space:normal !important;
}
@media(min-width:56rem) {
  body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .tech-range-inputs:has(.tech-range-presets) {
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto !important;
  }
  body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .tech-range-presets {grid-column:auto}
}
@media(max-width:650px) {
  body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail {width:calc(100% - .8rem) !important}
  body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .planner-level-details .tv340-table-help {display:none !important}
  body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .planner-level-details .tv340-scroll {
    overflow:visible !important; height:auto !important; max-height:none !important;
  }
  body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .planner-level-details .tech-costs table {
    min-width:0 !important; width:100% !important; display:block !important;
  }
  body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .planner-level-details .tech-costs table thead {
    position:absolute !important; width:1px !important; height:1px !important; overflow:hidden !important;
    clip-path:inset(50%); white-space:nowrap; display:block !important;
  }
  body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .planner-level-details .tech-costs table tbody {
    display:grid !important; gap:.6rem; width:100%;
  }
  body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .planner-level-details .tech-costs table tr,
  body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .planner-level-details .tech-costs table tr > :is(th,td) {
    display:block !important; width:100% !important; height:auto !important; min-width:0 !important;
    max-width:100% !important; position:static !important; box-sizing:border-box; white-space:normal !important;
    text-align:start !important; overflow-wrap:anywhere;
  }
  body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .planner-level-details .tech-costs table tr > td::before {
    content:attr(data-label) !important; display:block !important; color:#b5cdd3;
    margin-bottom:.15rem; font-weight:650; font-size:.78rem;
  }
  body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .planner-level-details .tech-costs td div {white-space:normal !important}
  body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #upgrade-plan .gt-plan-heading {display:block}
  body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #upgrade-plan .gt-plan-heading > div:last-child {margin-top:.6rem}
}

body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #upgrade-plan .plan-save-status {
  display: block !important; box-sizing: border-box;
  min-width: 0 !important; max-width: 100% !important; width: auto !important;
  white-space: normal !important; overflow-wrap: anywhere; height: auto !important;
}
body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .gt-draft-note {
  margin: .8rem 0 .4rem; padding: .55rem .75rem;
  border-inline-start: 3px solid #e4b876; background: #342f29; color: #f2e5ce;
  font-size: .85rem; line-height: 1.5; overflow-wrap: anywhere;
}
@media(max-width:420px) {
  body:is([data-hq-page="general-training"],[data-hq-page="suppression"]) #technology-detail .dialog-head {
    position: static !important;
  }
}


/* Suppression research pairs and per-level cost previews */
body[data-hq-page="suppression"] #app .gt-effect b {color:#b5e2d8;font-weight:600;font-variant-numeric:tabular-nums}
body[data-hq-page="suppression"] #app .sr-preview-hint {margin:-.3rem 0 .85rem;padding:0;color:#b9c9d0;font-size:.82rem!important;line-height:1.45}
body[data-hq-page="suppression"] #app .sr-preview {margin:0 .75rem .6rem;padding:.55rem 0 0;border-block-start:1px solid #354954;display:flex;align-items:flex-start;flex-wrap:wrap;gap:.5rem 1rem}
body[data-hq-page="suppression"] #app .sr-preview label {display:grid;gap:.28rem;min-width:0;margin:0;color:#bfd0d6;font-size:.78rem;line-height:1.4}
body[data-hq-page="suppression"] #app .sr-preview select {font:inherit;font-size:1rem!important;color:#edf5f5;background:#192e39;border:1px solid #48626f;border-radius:.4rem;min-width:4.9rem;min-height:44px;padding:.2rem .5rem}
body[data-hq-page="suppression"] #app .sr-metrics {display:flex;flex:1 1 9rem;justify-content:flex-start;align-items:start;flex-wrap:wrap;gap:.45rem 1rem;margin:0;padding:0}
body[data-hq-page="suppression"] #app .sr-metrics>div {min-width:0;flex:1 1 5.3rem}
body[data-hq-page="suppression"] #app .sr-metrics dt {display:flex;gap:.27rem;align-items:center;line-height:1.4;color:#b5c7cf;font-size:.77rem;font-weight:450;margin:0 0 .18rem}
body[data-hq-page="suppression"] #app .sr-metrics dd {margin:0;color:#e3edef;font-size:.86rem;font-weight:600;line-height:1.4;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
body[data-hq-page="suppression"] #app .sr-metrics .tech-resource-icon {display:inline-grid;width:1rem;height:1rem;flex:none;align-items:center;justify-items:center;overflow:hidden}
body[data-hq-page="suppression"] #app .sr-metrics .tech-resource-icon>span {transform:scale(.74)}

/* Suppression research · navigating the complete 100-level reference */
body[data-hq-page="suppression"] #technology-detail .suppression-level-jump {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .6rem;
  padding-block: .3rem;
}
body[data-hq-page="suppression"] #technology-detail .suppression-level-jump label {
  color: #d7e4e9; white-space: normal;
}
body[data-hq-page="suppression"] #technology-detail .suppression-level-jump :is(select,button) {
  min-height: 44px; min-width: 44px; max-width: 100%; width: auto;
  padding-inline: .65rem; font-size: 1rem;
}
body[data-hq-page="suppression"] #technology-detail .suppression-csv a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: #a5dfd0; line-height: 1.4; overflow-wrap: anywhere;
}
body[data-hq-page="suppression"] #technology-detail #view-tech-plan[hidden] { display: none !important; }
body[data-hq-page="suppression"] #technology-detail .planner-level-details th[tabindex="-1"]:focus {
  outline: 2px solid #91dcce; outline-offset: -2px;
}
body[data-hq-page="suppression"] #technology-detail .progression-dialog-language {
  --tw-language-control-height: 44px;
}
body[data-hq-page="suppression"] #technology-detail #tech-plan-notice,
body[data-hq-page="suppression"] #upgrade-plan .gt-plan-heading :is(div,p,.sub) {
  box-sizing: border-box; min-width: 0; max-width: 100%;
  white-space: normal !important; overflow-wrap: anywhere;
}
@media (min-width: 651px) {
  body[data-hq-page="suppression"] #technology-detail #suppression-level-table {
    width: 100% !important; min-width: 0 !important; max-width: 100% !important;
    table-layout: fixed !important;
  }
  body[data-hq-page="suppression"] #technology-detail #suppression-level-table :is(th,td),
  body[data-hq-page="suppression"] #technology-detail #suppression-level-table td div {
    min-width: 0 !important; white-space: normal !important; overflow-wrap: anywhere;
  }
  body[data-hq-page="suppression"] #technology-detail #suppression-level-table thead th:nth-child(1) {width: 13% !important;}
  body[data-hq-page="suppression"] #technology-detail #suppression-level-table thead th:nth-child(2) {width: 26% !important;}
  body[data-hq-page="suppression"] #technology-detail #suppression-level-table thead th:nth-child(3) {width: 16% !important;}
  body[data-hq-page="suppression"] #technology-detail #suppression-level-table thead th:nth-child(4) {width: 45% !important;}
}
/* thanksgiving-reader-20261125 */
body[data-atlas] #main .harvest-guide .harvest-inputs select {width:auto;flex:0 0 auto}
body[data-atlas] #main .harvest-guide .harvest-inputs label>span {overflow-wrap:normal}
