body.atlas-app-v2 {
  background: #fbfaf8;
  --bg: #fbfaf8;
  --screen: #ffffff;
  --screen-dark: rgba(91, 73, 45, 0.08);
  --panel: #ffffff;
  --line: var(--atlas-line, #e6ded4);
  --yellow: #f7f8fa;
  --shadow: rgba(91, 73, 45, 0.08);
  color: var(--atlas-text, #171923);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.atlas-app-v2 .dex-panel,
body.atlas-app-v2 .pokemon-card,
body.atlas-app-v2 .stage-card,
body.atlas-app-v2 .chain-stage,
body.atlas-app-v2 .resource-catalog-card,
body.atlas-app-v2 .starter-team-card,
body.atlas-app-v2 .starter-group,
body.atlas-app-v2 .starter-team-hm,
body.atlas-app-v2 .team-member a,
body.atlas-app-v2 .team-member__missing,
body.atlas-app-v2 .starter-team-details,
body.atlas-app-v2 .side-objective,
body.atlas-app-v2 .side-objective-timeline > h2,
body.atlas-app-v2 .side-quest-hero,
body.atlas-app-v2 .side-objective-link,
body.atlas-app-v2 .answer-card,
body.atlas-app-v2 .moveset-stage,
body.atlas-app-v2 .moveset-build,
body.atlas-app-v2 .reason-list li,
body.atlas-app-v2 .evolution-requirements,
body.atlas-app-v2 .route-ratings div {
  border: 1px solid var(--atlas-line, #e6ded4);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--atlas-shadow, 0 10px 24px rgba(91, 73, 45, 0.04));
  color: var(--atlas-text, #171923);
  text-shadow: none;
}

body.atlas-app-v2 .acquisition-card,
body.atlas-app-v2 .moveset-move,
body.atlas-app-v2 .moveset-empty-note,
body.atlas-app-v2 .move-rating-legend span,
body.atlas-app-v2 .starter-team-timing,
body.atlas-app-v2 .guide-box {
  border: 1px solid var(--atlas-line, #e6ded4) !important;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none !important;
  text-shadow: none;
}

body.atlas-app-v2 .table-wrap,
body.atlas-app-v2 .tab-button,
body.atlas-app-v2 .learnset-sort,
body.atlas-app-v2 .learnset-sort__mark,
body.atlas-app-v2 .stat-row,
body.atlas-app-v2 .side-quest-controls input,
body.atlas-app-v2 .resource-search input,
body.atlas-app-v2 .resource-code,
body.atlas-app-v2 .resource-meta div,
body.atlas-app-v2 .resource-source-list li,
body.atlas-app-v2 .companion-location-picker select,
body.atlas-app-v2 .progress-numbers input,
body.atlas-app-v2 .side-objective__category,
body.atlas-app-v2 .side-objective__marker,
body.atlas-app-v2 .side-status-button,
body.atlas-app-v2 .answer-card__label,
body.atlas-app-v2 .multiplier {
  border-width: 1px !important;
  border-color: var(--atlas-line, #e6ded4) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body.atlas-app-v2 .tab-button,
body.atlas-app-v2 .learnset-sort,
body.atlas-app-v2 .stat-row,
body.atlas-app-v2 .side-quest-controls input,
body.atlas-app-v2 .resource-search input,
body.atlas-app-v2 .resource-code,
body.atlas-app-v2 .companion-location-picker select,
body.atlas-app-v2 .progress-numbers input,
body.atlas-app-v2 .side-status-button {
  border-radius: 9px;
  background: #fff;
  color: var(--atlas-text, #171923);
}

body.atlas-app-v2 .tab-button[aria-selected="true"],
body.atlas-app-v2 .learnset-table th.is-sorted .learnset-sort {
  border-color: #c9dfc5 !important;
  background: #edf8e9;
  color: #217232;
}

body.atlas-app-v2 .table-wrap {
  overflow-x: visible;
  border-radius: 12px;
  background: #fff;
}

body.atlas-app-v2 table {
  min-width: 0;
  color: var(--atlas-text, #171923);
}

body.atlas-app-v2 main.dex-shell > :not(#atlas-shell) {
  min-width: 0;
  max-width: 100%;
}

body.atlas-app-v2 th {
  background: #f7f8fa;
  color: #5f6875;
  text-shadow: none;
}

body.atlas-app-v2 td {
  color: #35404d;
}

body.atlas-app-v2 th,
body.atlas-app-v2 td {
  border-bottom: 1px solid #edf0f2;
}

body.atlas-app-v2 .resource-code,
body.atlas-app-v2 .side-objective__category,
body.atlas-app-v2 .answer-card__label {
  background: #f7f8fa;
  color: #35404d;
}

body.atlas-app-v2 .side-objective__marker {
  background: #fff;
  color: #35404d;
}

body.atlas-app-v2 .side-objective.is-done .side-objective__marker {
  border-color: #c9dfc5 !important;
  background: #edf8e9;
  color: #217232;
}

body.atlas-app-v2 .side-objective.is-skipped .side-objective__marker {
  background: #f7f8fa;
  color: #7d8592;
}

body.atlas-app-v2 .moveset-move,
body.atlas-app-v2 .moveset-empty-note {
  overflow-wrap: anywhere;
}

body.atlas-app-v2 .move-rating-legend span,
body.atlas-app-v2 .starter-team-timing {
  color: #5f6875;
  font-weight: 650;
}

body.atlas-app-v2 .dex-panel {
  margin-top: 18px;
  padding: 18px;
}

body.atlas-app-v2 .dex-section {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin-top: 24px;
}

body.atlas-app-v2 .dex-section-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

body.atlas-app-v2 .dex-section-heading h2 {
  margin: 0;
  color: #171923;
  font-size: 24px;
  font-weight: 760;
  line-height: 1.16;
}

body.atlas-app-v2 .dex-count {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid #dce9d7;
  border-radius: 999px;
  background: #edf8e9;
  color: #217232;
  font-size: 12px;
  font-weight: 720;
  line-height: 1;
}

body.atlas-app-v2 .dex-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 12px;
  align-items: end;
  min-width: 0;
}

body.atlas-app-v2 .pokemon-card,
body.atlas-app-v2 .stage-card,
body.atlas-app-v2 .resource-catalog-card,
body.atlas-app-v2 .starter-team-card,
body.atlas-app-v2 .team-member a,
body.atlas-app-v2 .team-member__missing,
body.atlas-app-v2 .side-objective,
body.atlas-app-v2 .side-objective-link {
  min-width: 0;
  overflow: hidden;
  padding: 14px;
}

body.atlas-app-v2 .pokemon-card:hover,
body.atlas-app-v2 .resource-catalog-card:hover,
body.atlas-app-v2 .starter-team-card:hover,
body.atlas-app-v2 .team-member a:hover,
body.atlas-app-v2 .side-objective-link:hover {
  border-color: #d7dce2;
  box-shadow: 0 12px 28px rgba(70, 56, 35, 0.06);
  transform: translateY(-1px);
}

body.atlas-app-v2 .pokemon-card h3,
body.atlas-app-v2 .stage-card h3,
body.atlas-app-v2 .resource-catalog-card h3,
body.atlas-app-v2 .starter-team-card h3,
body.atlas-app-v2 .team-member strong,
body.atlas-app-v2 .side-objective__body h3 {
  color: #171923;
  font-size: 18px;
  font-weight: 720;
  line-height: 1.16;
}

body.atlas-app-v2 .pokemon-card a,
body.atlas-app-v2 .stage-card a,
body.atlas-app-v2 .resource-catalog-card a,
body.atlas-app-v2 .team-member a,
body.atlas-app-v2 .side-objective-link {
  color: inherit;
  text-decoration: none;
}

body.atlas-app-v2 .card-text,
body.atlas-app-v2 .stage-role,
body.atlas-app-v2 .guide-text,
body.atlas-app-v2 .source-box p,
body.atlas-app-v2 .resource-meta dd,
body.atlas-app-v2 .detail-row,
body.atlas-app-v2 .starter-team-card__head p,
body.atlas-app-v2 .starter-team-notes li,
body.atlas-app-v2 .starter-team-hm p,
body.atlas-app-v2 .starter-team-hm dd,
body.atlas-app-v2 .side-objective .guide-text,
body.atlas-app-v2 .side-objective__location,
body.atlas-app-v2 .side-objective__facts dd {
  color: #68707d;
  font-weight: 500;
}

body.atlas-app-v2 .dex-controls label,
body.atlas-app-v2 .dex-toggle,
body.atlas-app-v2 .companion-location-picker,
body.atlas-app-v2 .progress-numbers label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #747c88;
  font-size: 12px;
  font-weight: 650;
  text-transform: none;
}

body.atlas-app-v2 .dex-controls input,
body.atlas-app-v2 .dex-controls select,
body.atlas-app-v2 .dex-toggle,
body.atlas-app-v2 .companion-location-picker select,
body.atlas-app-v2 .progress-numbers input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid #dfe3e8;
  border-radius: 9px;
  background: #fff;
  color: #171923;
  box-shadow: 0 1px 2px rgba(70, 56, 35, 0.03);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

body.atlas-app-v2 .dex-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  cursor: pointer;
}

body.atlas-app-v2 .dex-toggle input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: #2f9d41;
}

body.atlas-app-v2 .dex-back,
body.atlas-app-v2 .dex-button,
body.atlas-app-v2 .mini-button,
body.atlas-app-v2 .icon-button,
body.atlas-app-v2 .dex-links a,
body.atlas-app-v2 .answer-card__action,
body.atlas-app-v2 .companion-feedback__buttons button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #d9e1d6;
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
  color: #235e2e;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: none;
  transition: background 160ms cubic-bezier(0.25, 1, 0.5, 1), border-color 160ms cubic-bezier(0.25, 1, 0.5, 1), transform 160ms cubic-bezier(0.25, 1, 0.5, 1);
}

body.atlas-app-v2 .dex-button:not([disabled]):not(.button--quiet) {
  border-color: #2f9d41;
  background: #2f9d41;
  color: #fff;
}

body.atlas-app-v2[data-page="companion"] .dex-button,
body.atlas-app-v2[data-page="starter-teams"] .dex-button {
  border-color: #d9e1d6;
  background: #fff;
  color: #235e2e;
}

body.atlas-app-v2[data-page="companion"] .answer-panel-heading .dex-button,
body.atlas-app-v2[data-page="companion"] .companion-actions .dex-button:first-child {
  border-color: #2f9d41;
  background: #2f9d41;
  color: #fff;
}

body.atlas-app-v2 .dex-back:hover,
body.atlas-app-v2 .dex-button:hover,
body.atlas-app-v2 .mini-button:hover,
body.atlas-app-v2 .icon-button:hover,
body.atlas-app-v2 .dex-links a:hover,
body.atlas-app-v2 .answer-card__action:hover,
body.atlas-app-v2 .companion-feedback__buttons button:hover {
  border-color: #c9dfc5;
  background: #edf8e9;
  box-shadow: none;
  color: #217232;
  transform: translateY(-1px);
}

body.atlas-app-v2 .catalog-view-toggle,
body.atlas-app-v2 .lang-switch {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 2px;
  padding: 2px;
  border: 1px solid #dde1e6;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

body.atlas-app-v2 .catalog-view-toggle button,
body.atlas-app-v2 .lang-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5e6672;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  text-shadow: none;
}

body.atlas-app-v2 .catalog-view-toggle button[aria-pressed="true"],
body.atlas-app-v2 .lang-switch button[aria-pressed="true"] {
  background: #edf8e9;
  color: #217232;
}

body.atlas-app-v2 .type-pill,
body.atlas-app-v2 .type-filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 7px;
  border: 0;
  box-shadow: none;
  text-shadow: none;
}

body.atlas-app-v2 .pokemon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 14px;
  min-width: 0;
}

body.atlas-app-v2 .pokemon-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

body.atlas-app-v2 .resource-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
  align-items: start;
  min-width: 0;
}

body.atlas-app-v2 .resource-page {
  display: grid;
  gap: 18px;
  min-width: 0;
}

body.atlas-app-v2 .resource-page__heading,
body.atlas-app-v2 .panel-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0;
}

body.atlas-app-v2 .resource-page__heading > div,
body.atlas-app-v2 .panel-heading > div {
  min-width: 0;
}

body.atlas-app-v2 .resource-page__heading h2,
body.atlas-app-v2 .panel-heading h2 {
  margin: 0;
}

body.atlas-app-v2 .resource-search {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #747c88;
  font-size: 12px;
  font-weight: 650;
  text-transform: none;
}

body.atlas-app-v2 .resource-search input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid #dfe3e8;
  border-radius: 9px;
  background: #fff;
  color: #171923;
  box-shadow: 0 1px 2px rgba(70, 56, 35, 0.03);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

body.atlas-app-v2 .resource-catalog--items {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

body.atlas-app-v2 .resource-catalog-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

body.atlas-app-v2 .resource-catalog-card:target {
  border-color: #c9dfc5 !important;
  background: #fbfdf9;
  box-shadow: 0 0 0 3px rgba(49, 138, 62, 0.1);
}

body.atlas-app-v2 .resource-catalog-card__top {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.atlas-app-v2 .resource-code {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
}

body.atlas-app-v2 .resource-meta {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
}

body.atlas-app-v2 .resource-meta div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid #edf0f2;
}

body.atlas-app-v2 .resource-meta dt {
  color: #7d8592;
  font-size: 11px;
  font-weight: 680;
  line-height: 1.2;
  text-transform: none;
}

body.atlas-app-v2 .resource-meta dd {
  min-width: 0;
  margin: 0;
  color: #35404d;
  font-size: 13px;
  font-weight: 560;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

body.atlas-app-v2 .resource-source-list {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.atlas-app-v2 .resource-source-list li {
  display: grid;
  grid-template-columns: minmax(64px, max-content) minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  align-items: baseline;
}

body.atlas-app-v2 .resource-source-list strong {
  color: #5f6875;
  font-size: 12px;
  font-weight: 700;
}

body.atlas-app-v2 .resource-source-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.atlas-app-v2 .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--atlas-line, #e6ded4);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(70, 56, 35, 0.04);
}

body.atlas-app-v2 table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  color: #171923;
  font-size: 13px;
}

body.atlas-app-v2 th,
body.atlas-app-v2 td {
  border-bottom: 1px solid #edf0f2;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

body.atlas-app-v2 th {
  background: #f7f8fa;
  color: #68707d;
  font-size: 11px;
  font-weight: 720;
  text-transform: none;
}

body.atlas-app-v2 .learnset-table table {
  table-layout: fixed;
}

body.atlas-app-v2 .learnset-sort {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: inherit;
  text-shadow: none;
}

body.atlas-app-v2 .learnset-sort:hover,
body.atlas-app-v2 .learnset-sort:focus-visible,
body.atlas-app-v2 .learnset-table th.is-sorted .learnset-sort {
  border-color: #dfe3e8;
  background: #fff;
  outline: 0;
}

body.atlas-app-v2 .stat-row,
body.atlas-app-v2 .learnset-card {
  border: 1px solid #edf0f2;
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
}

body.atlas-app-v2 .stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

body.atlas-app-v2 .stage-card {
  display: grid;
  grid-template-columns: minmax(78px, 96px) minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
  min-height: 0;
}

body.atlas-app-v2 .stage-card img {
  grid-row: 1 / span 5;
  align-self: start;
  width: 88px;
  height: 88px;
}

body.atlas-app-v2 .stage-card h3,
body.atlas-app-v2 .stage-card .card-meta,
body.atlas-app-v2 .stage-card .stage-role,
body.atlas-app-v2 .stage-card .stat-grid {
  grid-column: 2;
  min-width: 0;
  margin: 0;
}

body.atlas-app-v2 .stage-card .stage-facts {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #edf0f2;
}

body.atlas-app-v2 .evolution-chain {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 12px;
  align-items: stretch;
  min-width: 0;
}

body.atlas-app-v2 .evolution-chain:not(.evolution-chain--branching) {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

body.atlas-app-v2 .chain-stage {
  display: grid;
  grid-template-rows: auto 112px auto auto auto;
  justify-items: center;
  align-content: start;
  gap: 8px;
  min-width: 0;
  min-height: 236px;
  padding: 14px;
  overflow: hidden;
  color: #171923;
  text-align: center;
  text-decoration: none;
}

body.atlas-app-v2 .chain-stage img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

body.atlas-app-v2 .chain-stage h3 {
  margin: 0;
  color: #171923;
  font-size: 18px;
  font-weight: 740;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

body.atlas-app-v2 .chain-stage .type-row {
  justify-content: center;
}

body.atlas-app-v2 .chain-number,
body.atlas-app-v2 .chain-from,
body.atlas-app-v2 .evo-label {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  border: 1px solid #e1e5ea;
  border-radius: 999px;
  background: #f7f8fa;
  color: #68707d;
  box-shadow: none;
  text-shadow: none;
}

body.atlas-app-v2 .chain-number {
  min-height: 26px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 720;
}

body.atlas-app-v2 .chain-from {
  min-height: 26px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.15;
  white-space: normal;
}

body.atlas-app-v2 .evo-label {
  align-self: center;
  justify-self: center;
  min-height: 30px;
  padding: 5px 9px;
  color: #4f5966;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.15;
  text-align: center;
}

body.atlas-app-v2 .advice-summary,
body.atlas-app-v2 .moveset-grid,
body.atlas-app-v2 .guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  align-items: start;
  min-width: 0;
}

body.atlas-app-v2 .guide-grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

body.atlas-app-v2 .moveset-stage,
body.atlas-app-v2 .moveset-build,
body.atlas-app-v2 .guide-box {
  display: grid;
  gap: 10px;
  min-width: 0;
}

body.atlas-app-v2 .moveset-stage__head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

body.atlas-app-v2 .moveset-stage__head img {
  width: 72px;
  height: 72px;
  max-width: 72px;
  object-fit: contain;
}

body.atlas-app-v2 .moveset-stage__head h3 {
  min-width: 0;
  margin: 0;
  color: #171923;
  font-size: 17px;
  font-weight: 740;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

body.atlas-app-v2 .moveset-builds,
body.atlas-app-v2 .moveset-build ul,
body.atlas-app-v2 .reason-list,
body.atlas-app-v2 .evolution-requirements ul {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.atlas-app-v2 .moveset-build h4,
body.atlas-app-v2 .guide-box h3 {
  margin: 0;
  color: #171923;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.18;
}

body.atlas-app-v2 .moveset-move {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 8px;
  align-items: center;
  min-width: 0;
  min-height: 36px;
  padding: 8px;
}

body.atlas-app-v2 .move-name,
body.atlas-app-v2 .move-facts,
body.atlas-app-v2 .move-source-detail,
body.atlas-app-v2 .guide-box li,
body.atlas-app-v2 .source-box p {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.atlas-app-v2 .move-name {
  color: #171923;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.15;
}

body.atlas-app-v2 .move-facts,
body.atlas-app-v2 .move-source-detail,
body.atlas-app-v2 .guide-box li span {
  color: #68707d;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.35;
}

body.atlas-app-v2 .move-facts,
body.atlas-app-v2 .move-tags,
body.atlas-app-v2 .move-source-detail {
  grid-column: 1 / -1;
}

body.atlas-app-v2 .move-tags,
body.atlas-app-v2 .move-rating-legend,
body.atlas-app-v2 .learnset-active,
body.atlas-app-v2 .learnset-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

body.atlas-app-v2 .move-tags span,
body.atlas-app-v2 .move-rating-legend span,
body.atlas-app-v2 .learnset-active span,
body.atlas-app-v2 .learnset-card__facts span,
body.atlas-app-v2 .pill,
body.atlas-app-v2 .status-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid #dfe3e8;
  border-radius: 999px;
  background: #f7f8fa;
  color: #4f5966;
  font-size: 11px;
  font-weight: 680;
  line-height: 1.1;
  text-shadow: none;
  overflow-wrap: anywhere;
}

body.atlas-app-v2 .learnset-active {
  justify-content: flex-end;
  color: #68707d;
  font-size: 13px;
}

body.atlas-app-v2 .learnset-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 8px;
  min-width: 0;
  margin: 10px 0;
}

body.atlas-app-v2 .learnset-filters label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #68707d;
  font-size: 11px;
  font-weight: 680;
  line-height: 1.2;
  text-transform: none;
}

body.atlas-app-v2 .learnset-filters select {
  min-width: 0;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #dfe3e8;
  border-radius: 9px;
  background: #fff;
  color: #171923;
  font: inherit;
  font-size: 13px;
}

body.atlas-app-v2 .learnset-cards {
  display: none;
}

body.atlas-app-v2 .learnset-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
}

body.atlas-app-v2 .learnset-card header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

body.atlas-app-v2 .learnset-card header strong,
body.atlas-app-v2 .learnset-card p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

body.atlas-app-v2 .learnset-card header strong {
  color: #171923;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.15;
}

body.atlas-app-v2 .learnset-card p {
  color: #68707d;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.35;
}

body.atlas-app-v2 .learnset-type-class {
  display: grid;
  gap: 5px;
  min-width: 0;
}

body.atlas-app-v2 .learnset-type-class > span:not(.type-pill) {
  color: #68707d;
  font-size: 12px;
  font-weight: 620;
  overflow-wrap: anywhere;
}

body.atlas-app-v2 .acquisition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  min-width: 0;
}

body.atlas-app-v2 .acquisition-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
}

body.atlas-app-v2 .acquisition-card header {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

body.atlas-app-v2 .acquisition-card img {
  width: 54px;
  height: 54px;
  max-width: 54px;
  object-fit: contain;
}

body.atlas-app-v2 .acquisition-card h3 {
  min-width: 0;
  margin: 0;
  color: #171923;
  font-size: 16px;
  font-weight: 720;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

body.atlas-app-v2 .acquisition-card ul {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.atlas-app-v2 .acquisition-card li {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: #171923;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

body.atlas-app-v2 .acquisition-card li span {
  color: #68707d;
  font-weight: 560;
}

body.atlas-app-v2 .comparison-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed;
}

body.atlas-app-v2 .comparison-table th,
body.atlas-app-v2 .comparison-table td {
  min-width: 0;
  padding: 7px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.atlas-app-v2 .guide-box ul,
body.atlas-app-v2 .guide-facts {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.atlas-app-v2 .guide-facts li {
  display: grid;
  grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
  gap: 6px;
  min-width: 0;
  align-items: baseline;
}

body.atlas-app-v2 .guide-facts li > span:first-child {
  color: #68707d;
  font-size: 12px;
  font-weight: 680;
}

body.atlas-app-v2 .guide-facts li > strong {
  min-width: 0;
  color: #171923;
  font-size: 13px;
  font-weight: 680;
  overflow-wrap: anywhere;
}

body.atlas-app-v2 .resource-link,
body.atlas-app-v2 .resource-link--missing {
  min-width: 0;
  color: #217232;
  font-weight: 680;
  text-decoration: none;
  overflow-wrap: anywhere;
}

body.atlas-app-v2 .resource-link:hover,
body.atlas-app-v2 .resource-link:focus-visible {
  color: #175426;
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: 0;
}

body.atlas-app-v2 .resource-link--missing {
  color: #8a7282;
}

body.atlas-app-v2 .starter-team-page,
body.atlas-app-v2 .side-quests-page {
  display: grid;
  gap: 18px;
  min-width: 0;
}

body.atlas-app-v2 .starter-team-intro {
  display: grid;
  gap: 14px;
}

body.atlas-app-v2 .starter-team-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.atlas-app-v2 .starter-team-legend span,
body.atlas-app-v2 .starter-team-phase,
body.atlas-app-v2 .starter-team-timing {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid #dce9d7;
  border-radius: 999px;
  background: #edf8e9;
  color: #217232;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.1;
}

body.atlas-app-v2 .starter-team-timing {
  border-color: #dfe3e8;
  background: #f7f8fa;
  color: #5f6875;
}

body.atlas-app-v2 .starter-group {
  display: grid;
  gap: 12px;
  min-width: 0;
}

body.atlas-app-v2 .starter-group__heading {
  margin: 0;
}

body.atlas-app-v2 .starter-group__summary {
  max-width: 72ch;
  margin: 0;
  color: #68707d;
  font-size: 15px;
  font-weight: 520;
  line-height: 1.45;
}

body.atlas-app-v2 .starter-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 14px;
  align-items: start;
  min-width: 0;
}

body.atlas-app-v2 .starter-team-card__head {
  display: grid;
  gap: 8px;
}

body.atlas-app-v2 .starter-team-card__head h3 {
  margin: 0;
}

body.atlas-app-v2 .starter-team-page .dex-panel,
body.atlas-app-v2 .side-quests-page .dex-panel {
  min-width: 0;
  margin-top: 0;
}

body.atlas-app-v2 .side-quests-page *,
body.atlas-app-v2 .type-chart-panel *,
body.atlas-app-v2 .starter-team-page * {
  min-width: 0;
}

body.atlas-app-v2 .side-quest-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 16px;
  align-items: center;
  overflow: hidden;
}

body.atlas-app-v2 .side-quest-stats {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(96px, 1fr);
  gap: 10px;
  align-items: center;
  max-width: 100%;
  margin-top: 12px;
  color: #252b36;
  font-size: 14px;
  font-weight: 720;
}

body.atlas-app-v2 .side-quest-stats progress {
  width: 100%;
  height: 10px;
  accent-color: #2f9d41;
}

body.atlas-app-v2 .side-quest-controls,
body.atlas-app-v2 .side-quest-filter-row {
  min-width: 0;
}

body.atlas-app-v2 .side-quest-filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

body.atlas-app-v2 .side-quest-filter-row .dex-button {
  width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.atlas-app-v2 .companion-current {
  display: grid;
  gap: 6px;
  max-width: 100%;
  padding: 14px;
  border: 1px solid var(--atlas-line, #e6ded4);
  border-radius: 12px;
  background: #fbfdf9;
  box-shadow: none;
  overflow-wrap: anywhere;
}

body.atlas-app-v2 .companion-current span {
  color: #7d8592;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.2;
  text-transform: none;
}

body.atlas-app-v2 .companion-current strong {
  min-width: 0;
  color: #171923;
  font-size: 18px;
  font-weight: 760;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

body.atlas-app-v2 .companion-location-nav,
body.atlas-app-v2 .companion-actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

body.atlas-app-v2 .companion-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

body.atlas-app-v2 .companion-main,
body.atlas-app-v2 .companion-side {
  min-width: 0;
  align-self: start;
}

body.atlas-app-v2 .companion-side {
  display: grid;
  gap: 18px;
}

body.atlas-app-v2 .answer-panel-heading {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.atlas-app-v2 .answer-panel-heading h2 {
  margin: 0;
}

body.atlas-app-v2 .answer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  min-width: 0;
}

body.atlas-app-v2 .answer-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 0;
}

body.atlas-app-v2 .type-chart-panel {
  overflow: hidden;
}

body.atlas-app-v2 .type-chart-wrap {
  width: 100%;
  max-width: 100%;
}

body.atlas-app-v2 .type-chart-cards {
  display: none;
}

body.atlas-app-v2 .type-chart-direction {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 15px;
  line-height: 1.25;
}

body.atlas-app-v2 .type-chart-direction > span:not(.type-chart-direction__arrow) {
  white-space: nowrap;
}

body.atlas-app-v2 .type-chart-direction__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #eef7ec;
  color: #2d7f3a;
  font-size: 14px;
  font-weight: 780;
}

body.atlas-app-v2 .type-chart-panel * {
  text-shadow: none !important;
}

body.atlas-app-v2 .type-chart-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--atlas-line, #e6ded4);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbf8 100%);
  box-shadow: none;
  text-shadow: none;
}

body.atlas-app-v2 .type-chart-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding-bottom: 9px;
  border-bottom: 1px solid #edf0f2;
}

body.atlas-app-v2 .type-chart-card__eyebrow {
  color: #747d8a;
  font-size: 11px;
  font-weight: 720;
  line-height: 1;
}

body.atlas-app-v2 .type-chart-card h3 {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 720;
}

body.atlas-app-v2 .type-chart-card__body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

body.atlas-app-v2 .type-chart-matchup {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
  padding: 9px;
  border: 1px solid #edf0f2;
  border-radius: 10px;
  background: #f8fafb;
}

body.atlas-app-v2 .type-chart-matchup--strong {
  background: #f4fbf4;
  border-color: #dcefdc;
}

body.atlas-app-v2 .type-chart-matchup--soft {
  background: #fff9ed;
  border-color: #f0e4cf;
}

body.atlas-app-v2 .type-chart-matchup--immune {
  background: #f7f8fa;
}

body.atlas-app-v2 .type-chart-matchup__label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #5f6875;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

body.atlas-app-v2 .type-chart-matchup__factor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(23, 25, 35, 0.08);
  color: #252b36;
  font-size: 11px;
  font-weight: 780;
}

body.atlas-app-v2 .type-matchup-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  min-width: 0;
}

body.atlas-app-v2 .type-matchup-empty {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #edf0f2;
  color: #9aa3af;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.1;
}

body.atlas-app-v2 .type-chart-card .type-pill,
body.atlas-app-v2 .type-chart .type-pill,
body.atlas-app-v2 .type-chart-card .type-mini,
body.atlas-app-v2 .multiplier {
  border: 0 !important;
  box-shadow: none;
  text-shadow: none !important;
}

body.atlas-app-v2 .type-chart-card .type-pill {
  width: auto;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.1;
}

body.atlas-app-v2 .type-chart-card .type-mini {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

body.atlas-app-v2 .type-normal { background: #fffdf4; color: #1b1b1b; }
body.atlas-app-v2 .type-fire { background: #ff772f; color: #fff; }
body.atlas-app-v2 .type-water { background: #3e9cff; color: #fff; }
body.atlas-app-v2 .type-electric { background: #ffd22f; color: #473b00; }
body.atlas-app-v2 .type-grass { background: #67be68; color: #fff; }
body.atlas-app-v2 .type-ice { background: #39bed0; color: #fff; }
body.atlas-app-v2 .type-fighting { background: #cc4b6d; color: #fff; }
body.atlas-app-v2 .type-poison { background: #a875e8; color: #fff; }
body.atlas-app-v2 .type-ground { background: #d98155; color: #fff; }
body.atlas-app-v2 .type-flying { background: #6b8ee8; color: #fff; }
body.atlas-app-v2 .type-psychic { background: #ff4f8f; color: #fff; }
body.atlas-app-v2 .type-bug { background: #8ebf30; color: #fff; }
body.atlas-app-v2 .type-rock { background: #b7a070; color: #fff; }
body.atlas-app-v2 .type-ghost { background: #5867b1; color: #fff; }
body.atlas-app-v2 .type-dragon { background: #2c72cf; color: #fff; }
body.atlas-app-v2 .type-dark { background: #5a5465; color: #fff; }
body.atlas-app-v2 .type-steel { background: #6794a6; color: #fff; }

body.atlas-app-v2 .multiplier {
  border-radius: 6px;
}

body.atlas-app-v2[data-page="line"] .atlas-page-intro h1 {
  max-width: 980px;
  overflow-wrap: anywhere;
}

body.atlas-app-v2 .type-filter-pills,
body.atlas-app-v2 .catalog-list-head,
body.atlas-app-v2 .catalog-list-row,
body.atlas-app-v2 .type-floating-tooltip,
body.atlas-app-v2 .resource-empty,
body.atlas-app-v2 .side-status-button,
body.atlas-app-v2 .progress-check,
body.atlas-app-v2 .badge-token,
body.atlas-app-v2 .companion-debug-panel pre {
  border: 1px solid var(--atlas-line, #e6ded4);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  text-shadow: none;
}

body.atlas-app-v2 .type-filter-pills {
  grid-column: 1 / -1;
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
}

body.atlas-app-v2 .catalog-list-head {
  background: #f7f8fa;
  color: #67717f;
  font-weight: 700;
}

body.atlas-app-v2 .catalog-list-row:hover,
body.atlas-app-v2 .catalog-list-row:focus-visible {
  border-color: #d2e6d0;
  background: #fbfdf9;
  transform: none;
}

body.atlas-app-v2 .type-filter-pill,
body.atlas-app-v2 .type-filter-pill--all {
  box-shadow: none;
  text-shadow: none;
}

body.atlas-app-v2 .type-filter-pill--all {
  background: #f7f8fa;
  color: #252b36;
}

body.atlas-app-v2 .type-filter-pill[aria-pressed="true"] {
  border-color: #b9dcb7;
  box-shadow: 0 0 0 3px rgba(49, 138, 62, 0.11);
}

body.atlas-app-v2 .type-floating-tooltip {
  max-width: min(360px, calc(100vw - 32px));
  color: #252b36;
}

body.atlas-app-v2 .resource-empty,
body.atlas-app-v2 .companion-debug-panel pre {
  color: #5f6875;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

body.atlas-app-v2 .side-status-button.is-active,
body.atlas-app-v2 .side-quest-filter-row .dex-button.is-active {
  border-color: #c9dfc5;
  background: #edf8e9;
  color: #217232;
}

body.atlas-app-v2 .side-status-button--skip.is-active {
  border-color: #ead0c6;
  background: #fff2ec;
  color: #a14f2b;
}

body.atlas-app-v2 .progress-check input:checked {
  border-color: #2c9a44;
  background: #2c9a44;
}

body.atlas-app-v2 .badge-token:has(input:checked) {
  border-color: #c9dfc5;
  background: #f5fbf2;
  box-shadow: none;
}

body.atlas-app-v2 .starter-team-intro {
  display: grid;
  gap: 16px;
}

body.atlas-app-v2 .starter-team-intro .guide-text {
  max-width: 68ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.46;
}

body.atlas-app-v2 .starter-team-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.atlas-app-v2 .starter-team-legend span,
body.atlas-app-v2 .starter-team-phase {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #dce9d7;
  border-radius: 999px;
  background: #edf8e9;
  color: #217232;
  font-size: 12px;
  font-weight: 740;
  line-height: 1;
}

body.atlas-app-v2 .starter-team-card__head {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: start;
}

body.atlas-app-v2 .starter-team-card__head h3,
body.atlas-app-v2 .starter-team-card__head p {
  grid-column: 1 / -1;
}

body.atlas-app-v2 .starter-team-card__head p {
  margin: 0;
}

body.atlas-app-v2 .starter-team-timing {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  white-space: nowrap;
}

body.atlas-app-v2 .team-member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.atlas-app-v2 .team-member a,
body.atlas-app-v2 .team-member__missing {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 70px;
  padding: 9px;
}

body.atlas-app-v2 .team-member img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

body.atlas-app-v2 .team-member strong {
  display: block;
  margin: 0 0 5px;
  font-size: 14px;
  line-height: 1.12;
}

body.atlas-app-v2 .team-member .type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

body.atlas-app-v2 .team-member .type-pill {
  min-width: 0;
  min-height: 20px;
  padding: 3px 6px;
  font-size: 10px;
  line-height: 1;
}

body.atlas-app-v2 .starter-team-details {
  display: grid;
  padding: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}

body.atlas-app-v2 .starter-team-details summary {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: #35404d;
  cursor: pointer;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.15;
  list-style: none;
}

body.atlas-app-v2 .starter-team-details summary::-webkit-details-marker {
  display: none;
}

body.atlas-app-v2 .starter-team-details summary::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid #98a1ad;
  border-bottom: 2px solid #98a1ad;
  transform: rotate(-45deg);
  transition: transform 160ms cubic-bezier(0.25, 1, 0.5, 1);
}

body.atlas-app-v2 .starter-team-details[open] summary {
  border-bottom: 1px solid #edf0f2;
}

body.atlas-app-v2 .starter-team-details[open] summary::before {
  transform: rotate(45deg);
}

body.atlas-app-v2 .starter-team-details > div {
  padding: 12px;
}

body.atlas-app-v2 .starter-team-hm {
  display: grid;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.atlas-app-v2 .starter-team-hm dl,
body.atlas-app-v2 .starter-team-notes ul {
  display: grid;
  gap: 8px;
  margin: 0;
}

body.atlas-app-v2 .starter-team-hm dl > div,
body.atlas-app-v2 .gym-counter {
  display: grid;
  gap: 5px;
  padding: 9px;
  border: 1px solid #edf0f2;
  border-radius: 9px;
  background: #fbfaf8;
}

body.atlas-app-v2 .starter-team-hm dt,
body.atlas-app-v2 .starter-team-hm dd {
  margin: 0;
}

body.atlas-app-v2 .starter-team-hm dt {
  color: #171923;
  font-size: 12px;
  font-weight: 720;
}

body.atlas-app-v2 .starter-team-hm dd {
  display: grid;
  gap: 3px;
  color: #68707d;
  font-size: 12px;
}

body.atlas-app-v2 .starter-team-notes ul {
  padding-left: 18px;
}

body.atlas-app-v2 .gym-prep-list,
body.atlas-app-v2 .gym-prep-body,
body.atlas-app-v2 .gym-counter-list {
  display: grid;
  gap: 8px;
}

body.atlas-app-v2 .gym-counter-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.atlas-app-v2 .gym-prep-details summary {
  justify-content: space-between;
  min-height: 44px;
}

body.atlas-app-v2 .gym-prep-details summary span,
body.atlas-app-v2 .gym-prep-details summary em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.atlas-app-v2 .gym-prep-details summary em {
  color: #68707d;
  font-style: normal;
  font-weight: 620;
  white-space: nowrap;
}

body.atlas-app-v2 .gym-prep-body p,
body.atlas-app-v2 .gym-prep-body h3,
body.atlas-app-v2 .gym-counter dl,
body.atlas-app-v2 .gym-counter dt,
body.atlas-app-v2 .gym-counter dd {
  margin: 0;
}

body.atlas-app-v2 .gym-counter dl {
  display: grid;
  gap: 6px;
}

body.atlas-app-v2 .gym-counter dt,
body.atlas-app-v2 .gym-counter dd {
  font-size: 12px;
}

body.atlas-app-v2 .gym-counter dt {
  color: #7d8592;
  font-weight: 680;
}

body.atlas-app-v2 .gym-counter dd {
  color: #35404d;
  line-height: 1.35;
}

body.atlas-app-v2 .companion-page {
  display: grid;
  gap: 18px;
}

body.atlas-app-v2 .companion-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

body.atlas-app-v2 .companion-hero__copy {
  align-self: center;
}

body.atlas-app-v2 .companion-hero__copy h1 {
  margin: 0 0 8px;
  color: #171923;
  font-size: 28px;
  font-weight: 780;
  line-height: 1.08;
}

body.atlas-app-v2 .companion-hero .guide-text {
  margin: 0;
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.45;
}

body.atlas-app-v2 .companion-location-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e6ded4;
  border-radius: 12px;
  background: #fbfaf8;
}

body.atlas-app-v2 .companion-location-picker {
  max-width: none;
}

body.atlas-app-v2 .answer-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

body.atlas-app-v2 .answer-card {
  gap: 9px;
  padding: 12px;
}

body.atlas-app-v2 .answer-card p {
  margin: 0;
  color: #35404d;
  font-size: 13px;
  font-weight: 560;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

body.atlas-app-v2 .answer-card__action {
  width: fit-content;
  min-height: 32px;
}

body.atlas-app-v2 .guide-box {
  padding: 14px;
}

body.atlas-app-v2 .guide-box h3,
body.atlas-app-v2 .companion-side h2 {
  margin: 0 0 10px;
  color: #171923;
  font-size: 16px;
  line-height: 1.2;
}

body.atlas-app-v2[data-page="companion"] .companion-location-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.atlas-app-v2[data-page="companion"] .companion-location-nav .dex-button,
body.atlas-app-v2[data-page="companion"] .answer-panel-heading .dex-button,
body.atlas-app-v2[data-page="companion"] .answer-card__action {
  border-color: #d9e1d6 !important;
  background: #fff !important;
  color: #235e2e !important;
}

body.atlas-app-v2[data-page="companion"] .companion-location-nav a[href="/account/"] {
  grid-column: 1 / -1;
  order: 3;
}

body.atlas-app-v2[data-page="companion"] .companion-location-nav [data-companion-location-jump]:last-child {
  order: 2;
}

body.atlas-app-v2[data-page="companion"] .companion-location-nav .dex-button {
  justify-content: center;
  min-height: 38px;
}

body.atlas-app-v2[data-page="companion"] .companion-location-nav a[href="/account/"] {
  justify-self: start;
  width: auto;
  min-width: 132px;
}

body.atlas-app-v2[data-page="companion"] .companion-current {
  align-content: end;
}

body.atlas-app-v2[data-page="companion"] .companion-answer-panel {
  background: #fff;
}

body.atlas-app-v2[data-page="companion"] .answer-card__label {
  min-height: 22px;
  border-radius: 999px;
}

/* Companion workspace checkpoint: denser app-like page template. */
body.atlas-app-v2[data-page="companion"] {
  background:
    linear-gradient(180deg, #f8fafb 0, #f5f7f8 360px, #f7f8fa 100%);
}

body.atlas-app-v2[data-page="companion"] main.dex-shell > :not(#atlas-shell) {
  width: min(100%, 1510px);
}

body.atlas-app-v2[data-page="companion"] .companion-page {
  gap: 16px;
}

body.atlas-app-v2[data-page="companion"] .companion-hero {
  grid-template-columns: minmax(0, 1fr) minmax(310px, 390px) minmax(170px, 220px);
  gap: 14px;
  align-items: stretch;
  padding: 16px;
  border-color: #e1e7dd;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(246, 253, 244, 0.96), rgba(255, 255, 255, 0.94) 52%, rgba(250, 252, 255, 0.96));
  box-shadow: 0 14px 34px rgba(70, 56, 35, 0.045);
}

body.atlas-app-v2[data-page="companion"] .companion-hero__copy {
  display: grid;
  align-self: center;
  gap: 6px;
}

body.atlas-app-v2[data-page="companion"] .companion-hero__copy h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
}

body.atlas-app-v2[data-page="companion"] .companion-hero .guide-text {
  max-width: 76ch;
  color: #606a77;
  font-size: 14px;
  line-height: 1.45;
}

body.atlas-app-v2[data-page="companion"] .companion-location-card,
body.atlas-app-v2[data-page="companion"] .companion-current {
  border-color: #dfe6de;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

body.atlas-app-v2[data-page="companion"] .companion-current {
  align-content: center;
  padding: 12px;
}

body.atlas-app-v2[data-page="companion"] .companion-current strong {
  font-size: 17px;
}

body.atlas-app-v2[data-page="companion"] .companion-answer-panel {
  padding: 16px;
  border-color: #dfe6de;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.93);
}

body.atlas-app-v2[data-page="companion"] .answer-panel-heading {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf0f2;
}

body.atlas-app-v2[data-page="companion"] .answer-panel-heading .dex-kicker {
  margin-bottom: 2px;
}

body.atlas-app-v2[data-page="companion"] .answer-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

body.atlas-app-v2[data-page="companion"] .answer-card {
  position: relative;
  min-height: 118px;
  padding: 12px;
  border-color: #e2e7ec;
  border-radius: 13px;
  background: #fbfcfd;
  overflow: hidden;
}

body.atlas-app-v2[data-page="companion"] .answer-card::before {
  content: "";
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: #9aa6b2;
}

body.atlas-app-v2[data-page="companion"] .answer-card--next::before { background: #2f9d41; }
body.atlas-app-v2[data-page="companion"] .answer-card--do::before { background: #4f8dd6; }
body.atlas-app-v2[data-page="companion"] .answer-card--catch::before { background: #8b70d6; }
body.atlas-app-v2[data-page="companion"] .answer-card--resource::before { background: #c19a4a; }
body.atlas-app-v2[data-page="companion"] .answer-card--warning::before { background: #d77b35; }

body.atlas-app-v2[data-page="companion"] .answer-card__label {
  min-height: 0;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  color: #66717f;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
}

body.atlas-app-v2[data-page="companion"] .answer-card p {
  color: #252b36;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.42;
}

body.atlas-app-v2[data-page="companion"] .answer-card__action {
  margin-top: auto;
}

body.atlas-app-v2[data-page="companion"] .companion-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 318px);
  gap: 18px;
}

body.atlas-app-v2[data-page="companion"] .companion-main {
  padding: 18px;
  border-radius: 16px;
}

body.atlas-app-v2[data-page="companion"] .companion-main > .guide-text {
  max-width: 100ch;
  margin: 4px 0 16px;
  color: #626c79;
  font-size: 14px;
  line-height: 1.48;
}

body.atlas-app-v2[data-page="companion"] .companion-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px 16px;
  align-items: start;
}

body.atlas-app-v2[data-page="companion"] .companion-grid > .guide-box {
  grid-column: span 6;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
}

body.atlas-app-v2[data-page="companion"] .companion-grid > .guide-box:first-child,
body.atlas-app-v2[data-page="companion"] .companion-grid > .guide-box--wide {
  grid-column: 1 / -1;
}

body.atlas-app-v2[data-page="companion"] .guide-box h3,
body.atlas-app-v2[data-page="companion"] .companion-side h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf0f2;
  color: #171923;
  font-size: 15px;
  font-weight: 740;
}

body.atlas-app-v2[data-page="companion"] .companion-encounter-section {
  gap: 8px;
}

body.atlas-app-v2[data-page="companion"] .companion-encounter-section + .companion-encounter-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf0f2;
}

body.atlas-app-v2[data-page="companion"] .companion-encounter-section h4 {
  margin: 0;
  color: #4a5565;
  font-size: 13px;
  font-weight: 730;
  line-height: 1.2;
}

body.atlas-app-v2[data-page="companion"] .companion-encounters {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 8px;
}

body.atlas-app-v2[data-page="companion"] .companion-encounter {
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid #e1e6eb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
}

body.atlas-app-v2[data-page="companion"] .companion-encounter:hover,
body.atlas-app-v2[data-page="companion"] .companion-encounter:focus-visible {
  border-color: #cfd8e3;
  background: #fbfdff;
  outline: 2px solid rgba(49, 138, 62, 0.14);
  outline-offset: 1px;
}

body.atlas-app-v2[data-page="companion"] .companion-encounter > span:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

body.atlas-app-v2[data-page="companion"] .companion-encounter__meta {
  color: #717b89;
  font-size: 12px;
  font-weight: 540;
  white-space: normal;
}

body.atlas-app-v2[data-page="companion"] .companion-checklist,
body.atlas-app-v2[data-page="companion"] .oak-notes,
body.atlas-app-v2[data-page="companion"] .companion-return-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.atlas-app-v2[data-page="companion"] .companion-checklist li,
body.atlas-app-v2[data-page="companion"] .oak-notes li,
body.atlas-app-v2[data-page="companion"] .companion-return-panel li,
body.atlas-app-v2[data-page="companion"] .guide-box li {
  color: #384454;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.42;
}

body.atlas-app-v2[data-page="companion"] .companion-side {
  position: sticky;
  top: 90px;
  gap: 14px;
}

body.atlas-app-v2[data-page="companion"] .oak-panel,
body.atlas-app-v2[data-page="companion"] .companion-return-panel,
body.atlas-app-v2[data-page="companion"] .companion-account-panel {
  padding: 16px;
  border-color: #e1e6eb;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: none;
}

body.atlas-app-v2[data-page="companion"] .oak-panel {
  background: #fffdf8;
}

body.atlas-app-v2[data-page="companion"] .companion-profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

body.atlas-app-v2[data-page="companion"] .companion-profile-facts div {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 0;
  padding: 8px 9px;
  border: 1px solid #e2e7ec;
  border-radius: 10px;
  background: #f8fafb;
}

body.atlas-app-v2[data-page="companion"] .companion-profile-facts div:first-child,
body.atlas-app-v2[data-page="companion"] .companion-profile-facts div:nth-child(4) {
  grid-column: 1 / -1;
}

body.atlas-app-v2[data-page="companion"] .companion-profile-facts dt {
  color: #738092;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.1;
}

body.atlas-app-v2[data-page="companion"] .companion-profile-facts dd {
  min-width: 0;
  margin: 0;
  color: #242d3a;
  font-size: 13px;
  font-weight: 710;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

body.atlas-app-v2[data-page="companion"] .side-objective-list--compact {
  display: grid;
  gap: 8px;
}

body.atlas-app-v2[data-page="companion"] .side-objective-link {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 11px;
}

body.atlas-app-v2[data-page="companion"] .side-objective-link strong,
body.atlas-app-v2[data-page="companion"] .side-objective-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  body.atlas-app-v2[data-page="catalog"] .dex-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px;
  }

  body.atlas-app-v2[data-page="catalog"] .dex-controls label:first-child,
  body.atlas-app-v2[data-page="catalog"] .type-filter-pills {
    grid-column: 1 / -1 !important;
  }

  body.atlas-app-v2[data-page="catalog"] .dex-controls input,
  body.atlas-app-v2[data-page="catalog"] .dex-controls select,
  body.atlas-app-v2[data-page="catalog"] .dex-toggle {
    min-height: 40px;
    font-size: 14px;
  }

  body.atlas-app-v2[data-page="catalog"] .dex-toggle {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 1180px) {
  body.atlas-app-v2[data-page="companion"] .companion-hero,
  body.atlas-app-v2[data-page="companion"] .companion-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  body.atlas-app-v2[data-page="companion"] .answer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.atlas-app-v2[data-page="companion"] .companion-side {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.atlas-app-v2[data-page="companion"] .companion-account-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  body.atlas-app-v2[data-page="companion"] .companion-hero,
  body.atlas-app-v2[data-page="companion"] .companion-answer-panel,
  body.atlas-app-v2[data-page="companion"] .companion-main,
  body.atlas-app-v2[data-page="companion"] .oak-panel,
  body.atlas-app-v2[data-page="companion"] .companion-return-panel,
  body.atlas-app-v2[data-page="companion"] .companion-account-panel {
    padding: 14px;
    border-radius: 14px;
  }

  body.atlas-app-v2[data-page="companion"] .companion-page {
    gap: 12px;
  }

  body.atlas-app-v2[data-page="companion"] .companion-hero {
    gap: 10px;
  }

  body.atlas-app-v2[data-page="companion"] .companion-hero__copy h1 {
    font-size: 21px;
  }

  body.atlas-app-v2[data-page="companion"] .companion-hero .guide-text {
    display: none;
  }

  body.atlas-app-v2[data-page="companion"] .companion-location-card {
    padding: 10px;
  }

  body.atlas-app-v2[data-page="companion"] .companion-current {
    display: none;
  }

  body.atlas-app-v2[data-page="companion"] .answer-panel-heading {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  body.atlas-app-v2[data-page="companion"] .answer-grid,
  body.atlas-app-v2[data-page="companion"] .companion-side,
  body.atlas-app-v2[data-page="companion"] .companion-profile-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  body.atlas-app-v2[data-page="companion"] .answer-card {
    min-height: 0;
  }

  body.atlas-app-v2[data-page="companion"] .companion-grid > .guide-box {
    grid-column: 1 / -1;
  }

  body.atlas-app-v2[data-page="companion"] .companion-profile-facts div,
  body.atlas-app-v2[data-page="companion"] .companion-profile-facts div:first-child,
  body.atlas-app-v2[data-page="companion"] .companion-profile-facts div:nth-child(4) {
    grid-column: auto;
  }
}

/* v2 production polish: fixes screens that were still reading as legacy tables/forms. */
body.atlas-app-v2 .resource-page,
body.atlas-app-v2 .starter-team-page,
body.atlas-app-v2 .side-quests-page,
body.atlas-app-v2 .companion-page {
  gap: 20px;
}

body.atlas-app-v2 .resource-page__heading .guide-text,
body.atlas-app-v2 .starter-team-intro .guide-text,
body.atlas-app-v2 .side-quest-hero .guide-text,
body.atlas-app-v2 .companion-hero .guide-text {
  max-width: 72ch;
}

body.atlas-app-v2 .resource-catalog {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 292px), 1fr));
  gap: 14px;
  align-items: start;
}

body.atlas-app-v2 .resource-catalog--items {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

body.atlas-app-v2 .resource-catalog-card {
  gap: 12px;
  min-height: 0;
  align-self: start;
  padding: 16px;
  border-color: #e5ddd2;
  background: #fff;
}

body.atlas-app-v2 .resource-catalog-card__top {
  align-items: flex-start;
  min-height: 28px;
}

body.atlas-app-v2 .resource-catalog-card__top .resource-link {
  color: #7a838f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
}

body.atlas-app-v2 .resource-catalog-card h3 {
  margin: 0;
  min-width: 0;
  color: #111827;
  font-size: 17px;
  font-weight: 760;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

body.atlas-app-v2 .resource-meta {
  gap: 0;
}

body.atlas-app-v2 .resource-meta div {
  display: grid;
  grid-template-columns: minmax(72px, 0.38fr) minmax(0, 1fr);
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #edf0f2;
}

body.atlas-app-v2 .resource-meta dt {
  color: #7c8490;
  font-size: 11px;
  line-height: 1.2;
}

body.atlas-app-v2 .resource-meta dd {
  color: #303947;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.32;
  overflow-wrap: break-word;
}

body.atlas-app-v2 .resource-source-list li {
  grid-template-columns: minmax(56px, max-content) minmax(0, 1fr);
  gap: 6px;
}

body.atlas-app-v2 .resource-card-tags {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
}

body.atlas-app-v2 .resource-tag {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #e1e6ec;
  border-radius: 999px;
  background: #f7f8fa;
  color: #4c5665;
  font-size: 11px;
  font-weight: 720;
  line-height: 1;
}

body.atlas-app-v2 .resource-card-notes {
  display: grid;
  gap: 10px;
  min-width: 0;
}

body.atlas-app-v2 .resource-card-note {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.atlas-app-v2 .resource-card-note span {
  color: #7c8490;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.2;
}

body.atlas-app-v2 .resource-card-note p {
  display: -webkit-box;
  margin: 0;
  color: #303947;
  font-size: 13px;
  font-weight: 520;
  line-height: 1.35;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

body.atlas-app-v2 .resource-details {
  min-width: 0;
  padding-top: 2px;
}

body.atlas-app-v2 .resource-details summary {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  cursor: pointer;
  color: #2d6f37;
  font-size: 12px;
  font-weight: 720;
}

body.atlas-app-v2 .resource-details[open] summary {
  margin-bottom: 8px;
}

body.atlas-app-v2 .resource-details p {
  margin: 8px 0 0;
  color: #596372;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body.atlas-app-v2 .resource-details .resource-source-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.atlas-app-v2 .resource-details .resource-source-list li {
  display: grid;
  grid-template-columns: minmax(82px, 0.34fr) minmax(0, 1fr);
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid #edf0f2 !important;
  background: transparent;
}

body.atlas-app-v2 .resource-details .resource-source-list span {
  color: #7c8490;
  font-size: 11px;
  font-weight: 700;
}

body.atlas-app-v2 .resource-details .resource-source-list strong {
  min-width: 0;
  color: #303947;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

body.atlas-app-v2 .catalog-list-head,
body.atlas-app-v2 .catalog-list-row {
  display: grid;
  grid-template-columns: 64px minmax(220px, 1.35fr) minmax(118px, 0.62fr) minmax(136px, 0.72fr) minmax(220px, 1.25fr) minmax(150px, 0.8fr);
  gap: 10px;
  align-items: center;
  min-width: 920px;
  padding: 8px 12px;
  text-decoration: none;
}

body.atlas-app-v2 .catalog-list-row {
  color: #1f2937;
  font-size: 13px;
  line-height: 1.18;
}

body.atlas-app-v2 .catalog-list-row span {
  min-width: 0;
}

body.atlas-app-v2 .catalog-list-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 760;
}

body.atlas-app-v2 .catalog-list-row .type-row {
  gap: 5px;
}

body.atlas-app-v2 .pokemon-list {
  overflow-x: auto;
  padding-bottom: 4px;
}

body.atlas-app-v2 .side-objective-list {
  display: grid;
  gap: 10px;
}

body.atlas-app-v2 .side-objective {
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-color: #e5ddd2;
  background: #fff;
}

body.atlas-app-v2 .side-objective.is-done {
  border-color: #d7e8d1;
  background: #fff;
}

body.atlas-app-v2 .side-objective__marker {
  width: 26px;
  height: 26px;
  border-radius: 9px;
}

body.atlas-app-v2 .side-objective__body header {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.atlas-app-v2 .side-objective__body h3 {
  flex: 1 1 260px;
  margin: 0;
  font-size: 18px;
  line-height: 1.22;
}

body.atlas-app-v2 .side-objective__location,
body.atlas-app-v2 .side-objective .guide-text {
  max-width: 78ch;
  margin: 7px 0 0;
}

body.atlas-app-v2 .side-objective__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  margin: 10px 0 0;
}

body.atlas-app-v2 .side-objective__facts div {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border-radius: 9px;
  background: #fbfaf8;
}

body.atlas-app-v2 .side-objective__facts dt,
body.atlas-app-v2 .side-objective__facts dd {
  margin: 0;
}

body.atlas-app-v2 .side-objective__facts dt {
  color: #7c8490;
  font-size: 11px;
  font-weight: 720;
}

body.atlas-app-v2 .side-objective__facts dd {
  color: #303947;
  font-size: 13px;
  line-height: 1.35;
}

body.atlas-app-v2 .side-objective__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

body.atlas-app-v2 .starter-group {
  padding: 18px;
  border-color: #e5ddd2;
  background: #fff;
}

body.atlas-app-v2 .starter-team-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 14px;
}

body.atlas-app-v2 .starter-team-card {
  display: grid;
  gap: 12px;
  min-height: 0;
  padding: 14px;
  border-color: #e5ddd2;
}

body.atlas-app-v2 .starter-team-card__head h3 {
  font-size: 18px;
  line-height: 1.18;
}

body.atlas-app-v2 .starter-team-card__head p {
  color: #5f6875;
  font-size: 13px;
  line-height: 1.4;
}

body.atlas-app-v2 .team-member-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.atlas-app-v2 .starter-team-details {
  border: 1px solid #e5e9ee;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

body.atlas-app-v2 .starter-team-details summary {
  border: 0;
  border-radius: 0;
}

body.atlas-app-v2 .starter-team-details > div {
  padding: 12px;
  border-top: 1px solid #edf0f2;
}

body.atlas-app-v2 .gym-prep-body {
  display: grid;
  gap: 12px;
}

body.atlas-app-v2 .gym-counter-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

body.atlas-app-v2 .gym-counter {
  padding: 12px;
}

body.atlas-app-v2 .companion-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 16px;
}

body.atlas-app-v2 .companion-encounters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 8px;
}

body.atlas-app-v2 .companion-encounter {
  display: grid;
  gap: 4px;
  min-height: 0;
  padding: 10px;
  color: #1f2937;
  text-decoration: none;
}

body.atlas-app-v2 .companion-encounter > span:first-child {
  font-size: 14px;
  line-height: 1.2;
}

body.atlas-app-v2 .companion-encounter__meta {
  font-size: 12px;
  line-height: 1.3;
}

body.atlas-app-v2 .guide-box a.resource-link,
body.atlas-app-v2 .companion-main a.resource-link {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid #dfe3e8;
  border-radius: 999px;
  background: #f7f8fa;
  color: #234b72;
  font-size: 12px;
  line-height: 1.15;
  text-decoration: none;
}

body.atlas-app-v2 .guide-box li {
  line-height: 1.45;
}

body.atlas-app-v2 .events-hero,
body.atlas-app-v2 .guide-hero {
  overflow: hidden;
}

@media (max-width: 760px) {
  body.atlas-app-v2 .atlas-page-intro {
    align-items: flex-start;
    padding: 16px;
    border-radius: 13px;
  }

  body.atlas-app-v2 .atlas-page-intro h1 {
    font-size: 26px;
  }

  body.atlas-app-v2 .atlas-page-intro__text {
    font-size: 13px;
    line-height: 1.38;
  }

  body.atlas-app-v2 .dex-section {
    margin-top: 18px;
  }

  body.atlas-app-v2 .dex-section-heading h2 {
    font-size: 22px;
  }

  body.atlas-app-v2[data-page="line"] .atlas-page-intro {
    align-items: flex-start;
  }

  body.atlas-app-v2[data-page="line"] .atlas-page-intro h1 {
    font-size: 22px;
    line-height: 1.08;
  }

  body.atlas-app-v2[data-page="line"] .atlas-page-intro__text {
    font-size: 13px;
    line-height: 1.38;
  }

  body.atlas-app-v2 .dex-panel {
    margin-top: 12px;
    padding: 14px;
  }

  body.atlas-app-v2 .resource-catalog,
  body.atlas-app-v2 .resource-catalog--items,
  body.atlas-app-v2 .pokemon-grid,
  body.atlas-app-v2 .starter-team-grid,
  body.atlas-app-v2 .companion-encounters {
    grid-template-columns: minmax(0, 1fr);
  }

  body.atlas-app-v2 .resource-meta div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  body.atlas-app-v2 .resource-catalog-card {
    padding: 13px;
  }

  body.atlas-app-v2 .catalog-list-head {
    display: none;
  }

  body.atlas-app-v2 .catalog-list-row {
    min-width: 0;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 6px 10px;
    align-items: center;
  }

  body.atlas-app-v2 .catalog-list-row > span:nth-child(n + 3) {
    grid-column: 2;
  }

  body.atlas-app-v2 .catalog-list-row .type-row,
  body.atlas-app-v2 .catalog-list-row .status-badge {
    justify-self: start;
  }

  body.atlas-app-v2 .dex-controls {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body.atlas-app-v2 .type-filter-pills {
    padding: 8px;
  }

  body.atlas-app-v2 .stage-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.atlas-app-v2 .stage-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  body.atlas-app-v2 .stage-card img {
    width: 72px;
    height: 72px;
  }

  body.atlas-app-v2 .evolution-chain,
  body.atlas-app-v2 .evolution-chain:not(.evolution-chain--branching) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.atlas-app-v2 .chain-stage {
    min-height: 0;
    grid-template-rows: auto 96px auto auto auto;
  }

  body.atlas-app-v2 .chain-stage img {
    width: 96px;
    height: 96px;
  }

  body.atlas-app-v2 .evo-label {
    width: 100%;
  }

  body.atlas-app-v2 .side-quest-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.atlas-app-v2 .side-quest-hero .companion-current {
    width: 100%;
    justify-self: stretch;
  }

  body.atlas-app-v2 .side-quest-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.atlas-app-v2 .side-objective {
    grid-template-columns: minmax(0, 1fr);
  }

  body.atlas-app-v2 .side-objective__marker {
    display: none;
  }

  body.atlas-app-v2 .side-objective__body h3 {
    flex-basis: 100%;
    font-size: 17px;
  }

  body.atlas-app-v2 .side-objective__facts {
    grid-template-columns: minmax(0, 1fr);
  }

  body.atlas-app-v2 .companion-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  body.atlas-app-v2 .companion-hero,
  body.atlas-app-v2 .starter-team-intro {
    padding: 14px;
  }

  body.atlas-app-v2 .companion-hero .guide-text,
  body.atlas-app-v2 .starter-team-intro .guide-text {
    font-size: 14px;
    line-height: 1.4;
  }

  body.atlas-app-v2 .companion-hero__copy h1 {
    font-size: 22px;
  }

  body.atlas-app-v2 .companion-layout,
  body.atlas-app-v2 .answer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.atlas-app-v2 .companion-location-nav .dex-button,
  body.atlas-app-v2 .companion-actions .dex-button {
    flex: 1 1 136px;
    min-width: 0;
    white-space: normal;
    line-height: 1.15;
  }

  body.atlas-app-v2[data-page="companion"] .companion-location-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.atlas-app-v2[data-page="companion"] .companion-location-nav a[href="/account/"] {
    grid-column: auto;
    order: 1;
    width: 100%;
    min-width: 0;
  }

  body.atlas-app-v2[data-page="companion"] .companion-location-nav [data-companion-location-jump]:last-child {
    order: 2;
  }

  body.atlas-app-v2[data-page="companion"] .companion-location-nav .dex-button {
    min-height: 36px;
  }

  body.atlas-app-v2 .answer-card {
    min-height: 0;
  }

  body.atlas-app-v2 .starter-team-page {
    gap: 14px;
  }

  body.atlas-app-v2 .starter-team-legend {
    gap: 6px;
  }

  body.atlas-app-v2 .starter-team-legend span,
  body.atlas-app-v2 .starter-team-phase {
    min-height: 24px;
    padding: 0 9px;
    font-size: 11px;
  }

  body.atlas-app-v2 .starter-group {
    padding: 14px;
  }

  body.atlas-app-v2 .starter-group__heading h2 {
    font-size: 22px;
    line-height: 1.08;
  }

  body.atlas-app-v2 .starter-team-grid,
  body.atlas-app-v2 .team-member-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.atlas-app-v2 .starter-team-card__head {
    grid-template-columns: minmax(0, 1fr);
  }

  body.atlas-app-v2 .starter-team-timing {
    white-space: normal;
    line-height: 1.15;
  }

  body.atlas-app-v2 .starter-team-details summary {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 12px;
  }

  body.atlas-app-v2 .gym-prep-details summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: start;
  }

  body.atlas-app-v2 .gym-prep-details summary em {
    grid-column: 2;
    white-space: normal;
  }

  body.atlas-app-v2 .type-chart-wrap {
    display: none;
  }

  body.atlas-app-v2 .type-chart-cards {
    display: grid;
    gap: 10px;
  }

  body.atlas-app-v2 .learnset-table .table-wrap {
    overflow-x: visible;
  }

  body.atlas-app-v2 .learnset-table table {
    min-width: 0;
  }
}

/* Design checkpoint: lightweight catalog surface. */
body.atlas-app-v2[data-page="catalog"] {
  background:
    linear-gradient(180deg, #f8fafb 0, #f5f7f9 280px, #f7f8fa 100%);
}

body.atlas-app-v2[data-page="catalog"] main.dex-shell > :not(#atlas-shell) {
  width: min(100%, 1520px);
}

body.atlas-app-v2[data-page="catalog"] .dex-panel,
body.atlas-app-v2[data-page="catalog"] .pokemon-card {
  border-color: #e4e8ee;
  border-radius: 16px;
  background: rgba(253, 254, 255, 0.94);
  box-shadow: 0 1px 0 rgba(19, 27, 38, 0.03), 0 18px 42px rgba(31, 42, 55, 0.055);
}

body.atlas-app-v2[data-page="catalog"] .dex-controls {
  position: sticky;
  top: 72px;
  z-index: 20;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  margin-top: 18px;
  padding: 14px;
  background: rgba(253, 254, 255, 0.92);
  backdrop-filter: blur(16px);
}

body.atlas-app-v2[data-page="catalog"] .dex-controls label:first-child {
  grid-column: span 2;
}

body.atlas-app-v2[data-page="catalog"] .dex-controls label,
body.atlas-app-v2[data-page="catalog"] .dex-toggle {
  color: #697587;
  font-size: 12px;
  font-weight: 680;
}

body.atlas-app-v2[data-page="catalog"] .dex-controls input,
body.atlas-app-v2[data-page="catalog"] .dex-controls select,
body.atlas-app-v2[data-page="catalog"] .dex-toggle {
  min-height: 42px;
  border-color: #dfe6ee;
  border-radius: 11px;
  background: #fbfcfd;
  color: #151a23;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

body.atlas-app-v2[data-page="catalog"] .dex-controls input:focus-visible,
body.atlas-app-v2[data-page="catalog"] .dex-controls select:focus-visible,
body.atlas-app-v2[data-page="catalog"] .dex-toggle:focus-within {
  outline: 2px solid rgba(35, 136, 74, 0.34);
  outline-offset: 2px;
}

body.atlas-app-v2[data-page="catalog"] .dex-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding-inline: 12px;
}

body.atlas-app-v2[data-page="catalog"] .dex-toggle input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: #23884a;
}

body.atlas-app-v2[data-page="catalog"] .type-filter-pills {
  grid-column: 1 / -1;
  gap: 6px;
  padding: 4px 2px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.atlas-app-v2[data-page="catalog"] .type-filter-pill {
  min-height: 30px;
  border-color: #dde5ee;
  border-radius: 999px;
  background: #f7f9fb;
  color: #435064;
  font-size: 12px;
  font-weight: 700;
}

body.atlas-app-v2[data-page="catalog"] .type-filter-pill[aria-pressed="true"] {
  border-color: rgba(35, 136, 74, 0.35);
  background: #e8f6ee;
  color: #1f6f40;
}

body.atlas-app-v2[data-page="catalog"] .dex-section {
  gap: 16px;
  margin-top: 22px;
}

body.atlas-app-v2[data-page="catalog"] .dex-section-heading {
  min-height: 42px;
}

body.atlas-app-v2[data-page="catalog"] .dex-section-heading h2 {
  color: #151a23;
  font-size: 28px;
  font-weight: 760;
  line-height: 1.08;
}

body.atlas-app-v2[data-page="catalog"] .dex-count {
  min-height: 28px;
  border-color: #d8e7de;
  background: #e8f6ee;
  color: #23884a;
  font-size: 12px;
}

body.atlas-app-v2[data-page="catalog"] .catalog-view-toggle {
  min-height: 36px;
  padding: 3px;
  border-color: #dfe6ee;
  border-radius: 12px;
  background: #eef2f5;
}

body.atlas-app-v2[data-page="catalog"] .catalog-view-toggle button {
  min-height: 30px;
  border-radius: 9px;
  color: #506074;
  font-size: 12px;
  font-weight: 740;
}

body.atlas-app-v2[data-page="catalog"] .catalog-view-toggle button[aria-pressed="true"] {
  background: #fbfcfd;
  color: #151a23;
  box-shadow: 0 1px 4px rgba(31, 42, 55, 0.1);
}

body.atlas-app-v2[data-page="catalog"] .pokemon-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 246px), 1fr));
  gap: 14px;
}

body.atlas-app-v2[data-page="catalog"] .pokemon-card {
  position: relative;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  min-height: 180px;
  padding: 14px;
  overflow: hidden;
  transition: border-color 160ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 160ms cubic-bezier(0.23, 1, 0.32, 1), transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

body.atlas-app-v2[data-page="catalog"] .pokemon-card::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 12px;
  width: 82px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f4f8fb, #edf3f7);
}

body.atlas-app-v2[data-page="catalog"] .pokemon-card:hover {
  border-color: #cfd7e2;
  box-shadow: 0 18px 36px rgba(31, 42, 55, 0.09);
}

body.atlas-app-v2[data-page="catalog"] .pokemon-card > a {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-self: start;
  min-height: 88px;
}

body.atlas-app-v2[data-page="catalog"] .catalog-sprite--card {
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(31, 42, 55, 0.12));
}

body.atlas-app-v2[data-page="catalog"] .pokemon-card > div {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

body.atlas-app-v2[data-page="catalog"] .pokemon-card h3 {
  color: #151a23;
  font-size: 17px;
  font-weight: 760;
  line-height: 1.14;
}

body.atlas-app-v2[data-page="catalog"] .pokemon-card h3 small {
  color: #7b8797;
  font-size: 12px;
  font-weight: 650;
}

body.atlas-app-v2[data-page="catalog"] .card-meta {
  gap: 5px;
}

body.atlas-app-v2[data-page="catalog"] .pill,
body.atlas-app-v2[data-page="catalog"] .status-badge {
  min-height: 23px;
  padding-inline: 7px;
  border-color: #dfe6ee;
  border-radius: 999px;
  background: #f6f8fa;
  color: #4d5a6b;
  font-size: 11px;
  font-weight: 720;
}

body.atlas-app-v2[data-page="catalog"] .type-row {
  gap: 5px;
}

body.atlas-app-v2[data-page="catalog"] .type-chip {
  min-height: 21px;
  padding-inline: 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 780;
}

body.atlas-app-v2[data-page="catalog"] .card-text {
  color: #697587;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.38;
}

body.atlas-app-v2[data-page="catalog"] .pokemon-list {
  gap: 9px;
}

body.atlas-app-v2[data-page="catalog"] .catalog-list-row {
  min-height: 58px;
  border-color: #e4e8ee;
  border-radius: 13px;
  background: rgba(253, 254, 255, 0.94);
}

@media (max-width: 1180px) {
  body.atlas-app-v2[data-page="catalog"] .dex-controls {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.atlas-app-v2[data-page="catalog"] .dex-controls label:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body.atlas-app-v2[data-page="catalog"] .dex-controls {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
    border-radius: 14px;
  }

  body.atlas-app-v2[data-page="catalog"] .dex-controls label:first-child {
    grid-column: auto;
  }

  body.atlas-app-v2[data-page="catalog"] .dex-section-heading h2 {
    font-size: 24px;
  }

  body.atlas-app-v2[data-page="catalog"] .catalog-view-toggle {
    width: 100%;
  }

  body.atlas-app-v2[data-page="catalog"] .catalog-view-toggle button {
    flex: 1 1 0;
  }

  body.atlas-app-v2[data-page="catalog"] .pokemon-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.atlas-app-v2[data-page="catalog"] .pokemon-card {
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 152px;
    padding: 12px;
  }

  body.atlas-app-v2[data-page="catalog"] .pokemon-card::before {
    width: 76px;
  }

  body.atlas-app-v2[data-page="catalog"] .catalog-sprite--card {
    width: 76px;
    height: 76px;
  }
}

/* Design checkpoint 2: visible first-viewport reset for the catalog page. */
body.atlas-app-v2[data-page="catalog"] {
  --atlas-bg: #f4f6f8;
  --atlas-line: #dde4ec;
  --atlas-text: #111827;
  --atlas-muted: #657286;
  --atlas-green: #23884a;
  --atlas-sidebar-width: 232px;
  background: #f4f6f8;
}

body.atlas-app-v2[data-page="catalog"] main.dex-shell {
  column-gap: 30px;
  padding-right: 34px;
}

body.atlas-app-v2[data-page="catalog"] main.dex-shell > :not(#atlas-shell) {
  width: min(100%, 1500px);
}

body.atlas-app-v2[data-page="catalog"] .atlas-sidebar {
  top: 60px;
  width: var(--atlas-sidebar-width);
  padding: 18px 14px;
  border-right: 0;
  background: #151b24;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

body.atlas-app-v2[data-page="catalog"] .atlas-nav-group {
  gap: 8px;
}

body.atlas-app-v2[data-page="catalog"] .atlas-nav-group summary,
body.atlas-app-v2[data-page="catalog"] .atlas-nav-section {
  color: #7f8b9d;
}

body.atlas-app-v2[data-page="catalog"] .atlas-nav-link {
  min-height: 38px;
  border-radius: 10px;
  color: #d6dde8;
  font-size: 13px;
  font-weight: 650;
}

body.atlas-app-v2[data-page="catalog"] .atlas-nav-link__icon,
body.atlas-app-v2[data-page="catalog"] .atlas-nav-link[data-icon]::before {
  color: #8793a5;
}

body.atlas-app-v2[data-page="catalog"] .atlas-nav-link:hover,
body.atlas-app-v2[data-page="catalog"] .atlas-nav-link:focus-visible,
body.atlas-app-v2[data-page="catalog"] .atlas-nav-link.is-active,
body.atlas-app-v2[data-page="catalog"] .atlas-nav-link[aria-current="page"] {
  background: rgba(53, 178, 104, 0.14);
  color: #f4fff7;
}

body.atlas-app-v2[data-page="catalog"] .atlas-nav-link:hover .atlas-nav-link__icon,
body.atlas-app-v2[data-page="catalog"] .atlas-nav-link:focus-visible .atlas-nav-link__icon,
body.atlas-app-v2[data-page="catalog"] .atlas-nav-link.is-active .atlas-nav-link__icon,
body.atlas-app-v2[data-page="catalog"] .atlas-nav-link[aria-current="page"] .atlas-nav-link__icon,
body.atlas-app-v2[data-page="catalog"] .atlas-nav-link[data-icon]:hover::before,
body.atlas-app-v2[data-page="catalog"] .atlas-nav-link[data-icon]:focus-visible::before,
body.atlas-app-v2[data-page="catalog"] .atlas-nav-link[data-icon].is-active::before,
body.atlas-app-v2[data-page="catalog"] .atlas-nav-link[data-icon][aria-current="page"]::before {
  color: #70d58b;
}

body.atlas-app-v2[data-page="catalog"] .atlas-version-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

body.atlas-app-v2[data-page="catalog"] .atlas-version-card strong {
  color: #f5f7fb;
}

body.atlas-app-v2[data-page="catalog"] .atlas-version-card__meta,
body.atlas-app-v2[data-page="catalog"] .atlas-version-card a {
  color: #a9b4c4;
}

body.atlas-app-v2[data-page="catalog"] .atlas-topbar {
  min-height: 62px;
  border-bottom-color: #dde4ec;
  background: rgba(248, 250, 252, 0.94);
}

body.atlas-app-v2[data-page="catalog"] .atlas-global-search,
body.atlas-app-v2[data-page="catalog"] .atlas-game-switcher,
body.atlas-app-v2[data-page="catalog"] .atlas-locale,
body.atlas-app-v2[data-page="catalog"] .atlas-profile-pill,
body.atlas-app-v2[data-page="catalog"] .atlas-nav-link--utility {
  border-color: #d8e0ea;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

body.atlas-app-v2[data-page="catalog"] .atlas-page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 28px;
  align-items: end;
  margin-top: 24px;
  padding: 0 0 22px;
  border: 0;
  border-bottom: 1px solid #dde4ec;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.atlas-app-v2[data-page="catalog"] .atlas-page-intro__eyebrow {
  margin-bottom: 9px;
  color: #23884a;
  font-size: 13px;
  font-weight: 760;
}

body.atlas-app-v2[data-page="catalog"] .atlas-page-intro h1 {
  color: #111827;
  font-size: 48px;
  font-weight: 780;
  line-height: 0.98;
  text-wrap: balance;
}

body.atlas-app-v2[data-page="catalog"] .atlas-page-intro__text {
  max-width: 66ch;
  color: #59687d;
  font-size: 15px;
  line-height: 1.5;
}

body.atlas-app-v2[data-page="catalog"] .dex-controls {
  position: static;
  grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #dde4ec;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(17, 24, 39, 0.07);
  backdrop-filter: none;
}

body.atlas-app-v2[data-page="catalog"] .dex-controls label:first-child {
  grid-column: auto;
}

body.atlas-app-v2[data-page="catalog"] .dex-controls input,
body.atlas-app-v2[data-page="catalog"] .dex-controls select,
body.atlas-app-v2[data-page="catalog"] .dex-toggle {
  min-height: 46px;
  border-color: #d8e0ea;
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: none;
}

body.atlas-app-v2[data-page="catalog"] .type-filter-pills {
  padding-top: 4px;
}

body.atlas-app-v2[data-page="catalog"] .type-filter-pill {
  min-height: 32px;
  border: 0;
  background: #f1f4f7;
}

body.atlas-app-v2[data-page="catalog"] .dex-section {
  margin-top: 26px;
}

body.atlas-app-v2[data-page="catalog"] .dex-section-heading {
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

body.atlas-app-v2[data-page="catalog"] .dex-section-heading h2 {
  font-size: 32px;
  font-weight: 780;
}

body.atlas-app-v2[data-page="catalog"] .pokemon-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 238px), 1fr));
  gap: 16px;
}

body.atlas-app-v2[data-page="catalog"] .pokemon-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-height: 224px;
  padding: 14px;
  border: 1px solid #dde4ec;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: none;
}

body.atlas-app-v2[data-page="catalog"] .pokemon-card::before {
  display: none;
}

body.atlas-app-v2[data-page="catalog"] .pokemon-card:hover {
  border-color: #c7d1de;
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.08);
  transform: translateY(-2px);
}

body.atlas-app-v2[data-page="catalog"] .pokemon-card > a {
  min-height: 96px;
  border-radius: 15px;
  background:
    radial-gradient(circle at 50% 42%, rgba(35, 136, 74, 0.12), transparent 44%),
    linear-gradient(180deg, #f7fafc, #edf3f7);
}

body.atlas-app-v2[data-page="catalog"] .catalog-sprite--card {
  width: 88px;
  height: 88px;
}

body.atlas-app-v2[data-page="catalog"] .pokemon-card > div {
  gap: 9px;
}

body.atlas-app-v2[data-page="catalog"] .pokemon-card h3 {
  order: 1;
  font-size: 18px;
}

body.atlas-app-v2[data-page="catalog"] .pokemon-card .card-meta {
  order: 2;
}

body.atlas-app-v2[data-page="catalog"] .pokemon-card .type-row {
  order: 3;
}

body.atlas-app-v2[data-page="catalog"] .pokemon-card .card-text {
  order: 4;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 1180px) {
  body.atlas-app-v2[data-page="catalog"] .dex-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.atlas-app-v2[data-page="catalog"] .dex-controls label:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body.atlas-app-v2[data-page="catalog"] main.dex-shell {
    padding-right: 16px;
    padding-left: 16px;
  }

  body.atlas-app-v2[data-page="catalog"] .atlas-page-intro {
    margin-top: 20px;
    padding-bottom: 18px;
  }

  body.atlas-app-v2[data-page="catalog"] .atlas-page-intro h1 {
    font-size: 38px;
  }

  body.atlas-app-v2[data-page="catalog"] .dex-controls {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }

  body.atlas-app-v2[data-page="catalog"] .pokemon-card {
    min-height: 0;
  }
}

/* Density pass 2026-08-22: long data pages must scan as tools, not poster cards. */
body.atlas-app-v2[data-page="catalog"] .pokemon-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 264px), 1fr));
  gap: 12px;
}

body.atlas-app-v2[data-page="catalog"] .pokemon-card {
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  min-height: 132px;
  padding: 12px;
  border-radius: 12px;
}

body.atlas-app-v2[data-page="catalog"] .pokemon-card > a {
  width: 74px;
  min-height: 78px;
  align-self: start;
  border-radius: 10px;
}

body.atlas-app-v2[data-page="catalog"] .catalog-sprite--card {
  width: 70px;
  height: 70px;
  filter: drop-shadow(0 6px 10px rgba(31, 42, 55, 0.1));
}

body.atlas-app-v2[data-page="catalog"] .pokemon-card > div {
  gap: 6px;
}

body.atlas-app-v2[data-page="catalog"] .pokemon-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.15;
}

body.atlas-app-v2[data-page="catalog"] .pokemon-card .card-meta {
  gap: 4px;
}

body.atlas-app-v2[data-page="catalog"] .pokemon-card .card-meta .pill:nth-child(2),
body.atlas-app-v2[data-page="catalog"] .pokemon-card .card-meta .status-badge:nth-child(3) {
  display: none;
}

body.atlas-app-v2[data-page="catalog"] .pokemon-card .pill,
body.atlas-app-v2[data-page="catalog"] .pokemon-card .status-badge {
  min-height: 20px;
  padding: 3px 6px;
  font-size: 10px;
}

body.atlas-app-v2[data-page="catalog"] .pokemon-card .type-chip {
  min-height: 19px;
  padding-inline: 6px;
  font-size: 9px;
}

body.atlas-app-v2[data-page="catalog"] .pokemon-card .card-text {
  margin: 0;
  color: #5d6a7d;
  font-size: 12px;
  line-height: 1.35;
}

body.atlas-app-v2[data-page="catalog"] .pokemon-card .card-text--line,
body.atlas-app-v2[data-page="catalog"] .pokemon-card .card-text--practical {
  display: none;
}

body.atlas-app-v2[data-page="catalog"] .pokemon-card .card-text--getting {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.atlas-app-v2 .resource-page {
  gap: 14px;
}

body.atlas-app-v2 .resource-page__heading {
  padding-bottom: 10px;
  border-bottom: 1px solid #e4e8ee;
}

body.atlas-app-v2 .resource-search {
  max-width: 520px;
}

body.atlas-app-v2 .resource-catalog,
body.atlas-app-v2 .resource-catalog--items {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 10px;
}

body.atlas-app-v2 .resource-catalog-card {
  gap: 9px;
  padding: 12px;
  border-color: #e3e8ee;
  border-radius: 12px;
  box-shadow: none;
}

body.atlas-app-v2 .resource-catalog-card h3 {
  font-size: 15px;
}

body.atlas-app-v2 .resource-card-tags {
  gap: 4px;
}

body.atlas-app-v2 .resource-tag,
body.atlas-app-v2 .resource-code {
  min-height: 20px;
  padding: 3px 6px;
  font-size: 10px;
}

body.atlas-app-v2 .resource-card-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

body.atlas-app-v2 .resource-card-note {
  padding-top: 6px;
  border-top: 1px solid #edf1f4;
}

body.atlas-app-v2 .resource-card-note span {
  display: block;
  margin-bottom: 2px;
  color: #7b8594;
  font-size: 10px;
  font-weight: 720;
}

body.atlas-app-v2 .resource-card-note p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #334155;
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

body.atlas-app-v2 .resource-details {
  display: none;
}

body.atlas-app-v2 .resource-catalog--items .resource-catalog-card {
  gap: 6px;
}

body.atlas-app-v2 .resource-catalog--items .resource-card-tags {
  max-height: 24px;
  overflow: hidden;
}

body.atlas-app-v2 .resource-catalog--items .resource-card-tags .resource-tag:nth-child(n + 3) {
  display: none;
}

body.atlas-app-v2 .resource-catalog--items .resource-card-note:nth-child(2) {
  display: none;
}

body.atlas-app-v2 .resource-catalog--items .resource-card-note {
  padding-top: 5px;
}

body.atlas-app-v2 .resource-catalog-card__top {
  min-height: 0;
}

body.atlas-app-v2 .resource-catalog-card h3 {
  line-height: 1.12;
}

body.atlas-app-v2 .side-objective-list {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 8px;
}

body.atlas-app-v2 .side-objective {
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-color: #e3e8ee;
  border-radius: 12px;
}

body.atlas-app-v2 .side-objective__marker {
  width: 22px;
  height: 22px;
  border-radius: 7px;
}

body.atlas-app-v2 .side-objective__body h3 {
  font-size: 16px;
}

body.atlas-app-v2 .side-objective__location,
body.atlas-app-v2 .side-objective .guide-text {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
}

body.atlas-app-v2 .side-objective__facts {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px;
  margin-top: 8px;
}

body.atlas-app-v2 .side-objective__facts div {
  padding: 7px 8px;
  border-radius: 8px;
}

body.atlas-app-v2 .starter-team-card {
  border-radius: 12px;
}

@media (max-width: 720px) {
  body.atlas-app-v2[data-page="catalog"] .pokemon-grid {
    gap: 10px;
  }

  body.atlas-app-v2[data-page="catalog"] .pokemon-card {
    grid-template-columns: 70px minmax(0, 1fr);
    min-height: 122px;
    padding: 10px;
  }

  body.atlas-app-v2[data-page="catalog"] .pokemon-card > a {
    width: 70px;
    min-height: 72px;
  }

  body.atlas-app-v2[data-page="catalog"] .catalog-sprite--card {
    width: 66px;
    height: 66px;
  }

  body.atlas-app-v2 .resource-catalog,
  body.atlas-app-v2 .resource-catalog--items {
    grid-template-columns: minmax(0, 1fr);
  }

  body.atlas-app-v2 .resource-card-notes {
    grid-template-columns: minmax(0, 1fr);
  }

  body.atlas-app-v2 .side-objective__facts {
    grid-template-columns: minmax(0, 1fr);
  }

  body.atlas-app-v2 .side-objective-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
