/* Species overview and move details are shared by both Pokédex entry points. */
.dx-unified {
  container: pokedex / inline-size;
  display: flex;
  flex-direction: column;
  --dxr-header: #203f62;
  --dxr-header-text: #f3f9ff;
  --dxr-header-control: #2c4e71;
  --dxr-inset: color-mix(in srgb, var(--dx-bg) 78%, var(--dx-card));
  --dxr-caught: #146548;
  --dxr-caught-bg: #def3e9;
  color: var(--dx-ink);
}
html[data-game-theme="dark"] .dx-unified {
  --dxr-header: #102739;
  --dxr-header-control: #1b3c52;
  --dxr-caught: #a6e8c1;
  --dxr-caught-bg: #23483b;
}
.dx-unified [hidden] { display: none !important; }
.dx-unified :is(.dxr-card, .dxr-profile, .dxr-inspector, .dxr-deck) { box-sizing: border-box; min-width: 0; }

#app #sidePanel .dx-unified .dxr-header {
  flex: none;
  background: linear-gradient(110deg, var(--dxr-header), color-mix(in srgb, var(--dxr-header) 79%, #3776a3));
  color: var(--dxr-header-text);
  border-bottom: 1px solid color-mix(in srgb, var(--dxr-header) 60%, #8cc4df);
  min-height: 52px;
  padding-inline: 12px 64px;
}
#app #sidePanel .dx-unified .dxr-header > [data-pokedex-back] {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--dxr-header-text);
  background: transparent;
  white-space: nowrap;
  font-size: 1.02rem;
}
.dx-unified .dxr-header > [data-pokedex-back] img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.dx-unified .dxr-header > nav {
  min-width: 0;
  gap: 5px;
}
#app #sidePanel .dx-unified .dxr-header > nav > button {
  background: var(--dxr-header-control);
  color: var(--dxr-header-text);
  border: 1px solid color-mix(in srgb, var(--dxr-header-control) 55%, #a7cbe0);
}
#app #sidePanel .dx-unified .dxr-header > nav > button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--dxr-header-control) 70%, #67bbff);
}

.dxr-layout {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(224px, .35fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  overflow: hidden;
}
.dxr-card, .dxr-profile, .dxr-evolution .pe-evolution {
  border: 1px solid var(--dx-line);
  border-radius: 13px;
  background: var(--dx-card);
  color: var(--dx-ink);
  box-shadow: 0 1px 2px #0c344913;
}
.dxr-profile {
  align-self: start;
  max-height: 100%;
  overflow: auto;
  background: linear-gradient(180deg, color-mix(in srgb, var(--dd-type) 11%, var(--dx-card)), var(--dx-card) 43%);
}
#app #sidePanel .dx-unified .dxr-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  align-content: start;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.dxr-main > :is(.dxr-moves, .dxr-evolution, .public-dex-note) { grid-column: 1 / -1; min-width: 0; }
.dxr-card { padding: 8px; }
.dxr-identity { padding: 12px 13px 11px; min-width: 0; }
.dxr-dexline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 7px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--dx-muted);
}
.dxr-dexline .dd-caught {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 5px;
  border-radius: 5px; background: var(--dx-card); line-height: 1.25;
}
#app #sidePanel .dx-unified .dxr-dexline .dd-caught.is-caught { background: var(--dxr-caught-bg); color: var(--dxr-caught); }
.dxr-dexline svg { width: 14px; height: 14px; }
#app #sidePanel .dx-unified .dxr-identity > h2 {
  color: var(--dx-ink);
  font-size: clamp(1.45rem, 2.25vw, 2.15rem);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 5px 0 8px;
  overflow-wrap: anywhere;
}
#app #sidePanel .dx-unified .dxr-identity > h2:focus { outline: none; }
.dxr-types, .dxr-types .pokemon-type-list { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; min-width: 0; }
.dxr-types .pokemon-type-badge { min-height: 25px; padding: 3px 6px; }
.dxr-types .pokemon-type-badge b { font-size: .78rem; }
.dxr-types .pc-info-button { flex-shrink: 0; }
#app #sidePanel .dx-unified .dxr-types .pc-info-button { width: 28px; min-height: 28px; padding: 3px; }
.dxr-types .pc-info-button > span { display: none; }
.dxr-physical {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin: 7px 0 0;
  color: var(--dx-muted);
  font-size: .76rem;
  font-weight: 700;
}
.dxr-physical div { display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.dxr-physical :is(dd, dt) { margin: 0; }
.dxr-physical svg { width: 14px; height: 14px; }
.dxr-stage, .dx-unified .pk-form-habitat {
  position: relative;
  border: 1px solid var(--dx-line);
  border-radius: 12px;
  isolation: isolate;
  overflow: hidden;
  background: color-mix(in srgb, var(--pk-habitat-tint) 18%, var(--dx-card));
}
.dxr-stage { height: clamp(144px, 27dvh, 245px); margin-inline: 8px; }
.dx-unified :is(.dxr-stage, .pk-form-habitat)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--pk-habitat) center 59% / cover no-repeat;
  opacity: .32;
  filter: saturate(.72);
}
html[data-game-theme="dark"] .dx-unified :is(.dxr-stage, .pk-form-habitat)::before { opacity: .25; }
.pk-form-habitat > :is(img, span) { position: relative; }
.dxr-stage::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, color-mix(in srgb, var(--dx-card) 45%, transparent), transparent 74%);
  pointer-events: none;
}
.dx-unified .dxr-portraits { position: absolute; width: 100%; height: 100%; inset: 0; z-index: 1; overflow: hidden; }
.dx-unified .dxr-portraits > [data-dex-art] { position: absolute; inset: 0; container-type: size; }
.dx-unified .dxr-portraits > [aria-hidden="true"] { visibility: hidden; }
.dxr-portrait {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: min(90cqw, 82cqh, 272px);
  height: auto;
  aspect-ratio: 1;
  transform: translateX(-50%);
  display: block;
  filter: drop-shadow(0 6px 6px #051f3855);
}
#app #sidePanel .dx-unified .dxr-portrait > img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
#app #sidePanel .dx-unified .dxr-stage .dxr-favorite {
  position: absolute; inset: 4px 4px auto auto; z-index: 2; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; font-size: 1.35rem; line-height: 1;
  color: var(--dx-ink); background: var(--dx-card); border: 1px solid var(--dx-line); border-radius: 10px;
}
#app #sidePanel .dx-unified .dxr-stage .dxr-favorite svg { width: 20px; height: 20px; color: currentColor; }
#app #sidePanel .dx-unified .dxr-stage .dxr-favorite[aria-pressed="true"] { color: #975c06 !important; background: #fff4c8 !important; }
#app #sidePanel .dx-unified .dxr-stage .dxr-favorite[aria-pressed="true"] svg { fill: #edbe50; }
.dxr-art-status:not(:empty) {
  position: absolute; z-index: 1; inset: auto 5px 5px;
  padding: 4px; border-radius: 4px; text-align: center;
  background: var(--dx-card); color: var(--dx-ink); font-size: .75rem;
}
.dxr-appearance { display: grid; gap: 4px; padding: 8px; }
.dxr-appearance [role="group"] { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
#app #sidePanel .dx-unified .dxr-appearance :is([data-pokedex-visual], .dxr-forms-button) {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 38px; min-width: 0; padding: 4px; background: var(--dxr-inset); border: 1px solid var(--dx-line);
  border-radius: 8px; color: var(--dx-ink); font: inherit; font-size: .78rem; font-weight: 730;
}
#app #sidePanel .dx-unified .dxr-appearance [data-pokedex-visual][aria-pressed="true"] { border-color: var(--dx-primary); color: var(--dx-primary); background: var(--dx-selected); }
.dxr-appearance .dxr-forms-button small { color: var(--dx-primary); font-size: .72rem; }
.dxr-appearance-support { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 0 4px; }
.dxr-appearance-support .pt-entry { min-width: 0; margin: 0; }
#app #sidePanel .dx-unified .dxr-appearance-support :is(.pc-info-button, .pt-entry > button) {
  display: inline-flex; align-items: center; gap: 4px; min-height: 33px; max-width: 100%; padding: 4px;
  border: 0; border-radius: 7px; background: transparent; color: var(--dx-primary); font-size: .73rem;
}
.dxr-appearance-support .pt-entry button :is(small, svg:last-child) { display: none; }
.dxr-appearance-support :is(button > svg, .dex-library-action > svg) { width: 15px; height: 15px; flex: 0 0 auto; }
.dxr-appearance-support .dex-library-action em { font-size: .71rem; font-style: normal; }
.dxr-shiny-unavailable { padding: 6px 2px; color: var(--dx-muted); }

.dxr-section-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  margin: 0 0 5px;
}
#app #sidePanel .dx-unified .dxr-section-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}
.dxr-section-head h3 svg, .dxr-evolution .pe-evolution > header h3 svg {
  box-sizing: content-box; width: 15px; height: 15px; padding: 3px; border-radius: 6px;
  flex: 0 0 auto; color: var(--dxr-block-accent, var(--dx-primary));
  background: color-mix(in srgb, var(--dxr-block-accent, var(--dx-primary)) 13%, var(--dx-card));
}
.dxr-move-head { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; }
.dxr-move-head > :is(h3, details) { grid-area: 1 / 1; }
.dxr-move-head > h3 { min-height: 26px; }
.dxr-glance {
  position: fixed; inset: auto; margin: 0; box-sizing: border-box;
  width: min(376px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  overflow: auto; overscroll-behavior: contain; padding: 12px;
  color: var(--dx-ink); background: var(--dx-card); border: 1px solid var(--dx-line); border-radius: 12px;
  box-shadow: 0 8px 26px #0a283947; font-size: .82rem; line-height: 1.35;
}
.dxr-glance header { display: grid; gap: 2px; }
.dxr-glance header b { font-size: 1.04rem; }
.dxr-glance small { color: var(--dx-muted); }
.dxr-glance p { margin: 7px 0; }
.dxr-glance dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; margin: 8px 0 0; }
.dxr-glance dl > div {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 5px;
  padding: 5px 6px; border-radius: 6px; background: var(--dxr-inset);
}
.dxr-glance dt { color: var(--dx-muted); }
.dxr-glance dd { margin: 0; font-weight: 750; text-align: end; }
.dxr-glance dl small { grid-column: 1 / -1; }
.dxr-training > summary {
  display: flex; align-items: center; gap: 6px; min-height: 26px; width: fit-content;
  max-width: 66%; margin-inline-start: auto; padding: 3px 4px; color: var(--dx-primary);
  font-size: .78rem; line-height: 1.2; font-weight: 730; cursor: pointer; list-style: none;
}
.dxr-training > summary svg { width: 15px; height: 15px; }
.dxr-training > summary::-webkit-details-marker { display: none; }
.dxr-training > summary::after {
  content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  margin: -4px 2px 0; transform: rotate(45deg);
}
.dxr-training[open] > summary::after { transform: rotate(225deg); margin-top: 3px; }
.dxr-training .dx-training-picker { margin: 3px 0 6px; font-size: .78rem; }
#app #sidePanel .dxr-readiness { margin: 0 0 5px; font-size: .75rem; }
.dxr-decks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
.dxr-deck { padding: 4px 5px; border: 1px solid var(--dx-line); border-radius: 9px; background: color-mix(in srgb,var(--dx-selected) 32%,var(--dxr-inset)); }
.dxr-deck[data-dx-deck="tm"] { background: color-mix(in srgb, var(--dx-ult-bg) 56%, var(--dxr-inset)); }
.dxr-deck:only-child { grid-column: 1 / -1; }
#app #sidePanel .dx-unified .dxr-deck h4 { margin: 0 0 4px; color: var(--dx-muted); font-size: .75rem; font-weight: 800; line-height: 1.25; }
.dxr-move-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px; }
.dxr-deck:only-child .dxr-move-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
#app #sidePanel .dx-unified .dxr-move {
  display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 40px; padding: 4px;
  color: var(--dx-ink); background: var(--dx-card); border: 1px solid var(--dx-line); border-radius: 8px;
  text-align: left; font: inherit; cursor: pointer;
}
.dxr-move > span { display: flex; flex-direction: column; justify-content: center; min-width: 0; gap: 1px; }
.dxr-move > span b { font-size: .82rem; line-height: 1.16; color: var(--dx-ink); overflow-wrap: anywhere; }
.dxr-move > span small { color: var(--dx-muted); font-size: .68rem; line-height: 1.15; }
#app #sidePanel .dx-unified .dxr-move.dx-ultimate { background: var(--dx-ult-bg); border-color: var(--dx-ult-line); }
.dxr-move.dx-ultimate > span small { color: var(--dx-ult); font-weight: 760; }
#app #sidePanel .dx-unified .dxr-move:is([data-dx-hovered], .is-active) {
  border-color: var(--dx-primary); box-shadow: inset 0 0 0 1px var(--dx-primary); background: var(--dx-selected);
}
.dxr-move-icon { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 6px; overflow: hidden; background: var(--dxr-inset); }
.dxr-move-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
#app #sidePanel .dx-unified .dxr-inspector {
  position: fixed; inset: 0; margin: auto; padding: 0;
  width: min(620px,calc(100vw - 28px)); max-height: min(76dvh,640px);
  border: 1px solid var(--dx-line); border-radius: 16px;
  background: var(--dx-card); color: var(--dx-ink); overflow: hidden;
  box-shadow: 0 12px 40px #081d3970;
}
.dxr-inspector[open] { display: flex; flex-direction: column; }
.dxr-inspector::backdrop { background: #091b366b; }
.dxr-inspector-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
  padding: 5px 10px 5px 13px; background: var(--dxr-inset); border-bottom: 1px solid var(--dx-line); font-weight: 750;
}
.dxr-inspector #pokedexSkillDetail { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.dx-unified .dxr-inspector-close {
  display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0; border: 1px solid var(--dx-line); border-radius: 8px;
  color: var(--dx-primary); background: var(--dxr-inset);
}
.dx-unified .dxr-inspector .dd-move-detail { margin: 0; border: 0; border-radius: 0; }
.dx-unified .dxr-inspector .dd-move-detail > header { flex-wrap: wrap; }
.dx-unified [data-dx-loadout] .dx-loadout { margin-bottom: 0; }

.dxr-evolution .pe-evolution { margin: 0; padding: 8px; background: color-mix(in srgb, var(--dd-type) 8%, var(--dx-card)); }
#app #sidePanel .dx-unified .dxr-evolution .pe-evolution > header { margin-block-end: 5px; min-height: 26px; }
#app #sidePanel .dx-unified .dxr-evolution .pe-evolution > header h3 { font-size: 1rem; line-height: 1.2; }
#app #sidePanel .dx-unified .dxr-evolution .pe-evolution > header .pc-info-button { min-height: 28px; padding-block: 3px; }
.dxr-evolution .pe-form { min-width: 0; }
#app #sidePanel .dx-unified .dxr-evolution .pe-family:not(.is-branched) .pe-form-open { min-height: 44px; padding: 3px 6px; }
#app #sidePanel .dx-unified .dxr-evolution .pe-form-open b { overflow-wrap: anywhere; font-size: .8rem; }
#app #sidePanel .dx-unified .dxr-evolution .pe-family:not(.is-branched) .pe-form-art { width: 36px; height: 36px; flex-basis: 36px; }
#app #sidePanel .dx-unified .dxr-evolution .pe-form-copy { gap: 2px; line-height: 1.13; }
.dxr-evolution .pe-family:not(.is-branched) .pe-form-open[aria-current="true"] { background: var(--dx-selected); }
.dxr-evolution .pe-form:has(.pe-form-open[aria-current="true"]) { box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--dx-primary) 24%,transparent); }
#app #sidePanel .dx-unified .dxr-evolution .pe-form-status {
  color: var(--dx-muted); font-size: .73rem; font-weight: 600; line-height: 1.2;
}
#app #sidePanel .dx-unified .dxr-evolution .pe-form-status[data-caught="true"] { color: var(--dx-primary); }
#app #sidePanel .dx-unified .dxr-evolution .pe-family.is-branched .pe-form-open { height: auto; min-height: 44px; }
#app #sidePanel .dx-unified .dxr-evolution .pe-resource,
#app #sidePanel .dx-unified .dxr-evolution .pe-resource b { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.dxr-stats { --dxr-block-accent: var(--dx-ult); }
.dxr-stat-total { margin-inline-start: auto; color: var(--dx-muted); text-align: end; font-size: .72rem; line-height: 1.1; }
.dxr-stat-total b { color: var(--dx-ink); white-space: nowrap; }
#app #sidePanel .dx-unified .dxr-stats .dxr-section-head > button { min-height: 26px; min-width: 27px; padding: 3px; }
.dxr-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px 7px; margin: 0; }
.dxr-stat-grid > div {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 4px;
  padding: 2px 5px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--stat-color) 7%, var(--dxr-inset));
}
.dxr-stat-grid dt { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: .75rem; line-height: 1.1; }
.dxr-stat-grid dt svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--stat-color); }
.dxr-stat-grid dd { margin: 0; font-size: .85rem; font-weight: 790; line-height: 1.1; font-variant-numeric: tabular-nums; }
#app #sidePanel .dx-unified .dxr-stat-grid .dd-stat-meter { position: absolute; inset: auto 5px 4px; width: auto; height: 3px; }

.dxr-fold > summary {
  display: flex; align-items: center; gap: 5px; justify-content: space-between; list-style: none; cursor: pointer;
  padding: 4px 5px; min-height: 29px; color: var(--dx-ink); font-size: .78rem;
}
.dxr-fold > summary::-webkit-details-marker { display: none; }
.dxr-fold > summary::after {
  content: ""; flex: none; width: 7px; height: 7px; border-right: 1.5px solid var(--dx-primary);
  border-bottom: 1.5px solid var(--dx-primary); margin: -3px 3px 0 4px; transform: rotate(45deg);
}
.dxr-fold[open] > summary::after { margin-top: 4px; transform: rotate(225deg); }
.dxr-fold > summary > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.dxr-fold > summary svg { width: 16px; height: 16px; color: var(--dx-primary); }
.dxr-context { display: grid; gap: 6px; min-width: 0; }
.dxr-sizes { padding: 2px 7px; }
.dxr-fold-content { min-width: 0; }
#app #sidePanel .dx-unified .dxr-fold-content .pc-biology { margin: 0; padding: 5px 2px 2px; border: 0; background: transparent; }
.dx-unified .dxr-habitats {
  max-height: none;
  padding: 0;
  overflow: visible;
}
.dx-unified .dxr-habitat-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 6px;
}
.dx-unified :is(.dxr-habitat-filters > button, .dxr-habitat-link, .dxr-habitat-more, .dxr-habitats .public-dex-enter) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  padding: 4px 6px;
  border: 1px solid var(--dx-line);
  border-radius: 9px;
  background: var(--dxr-inset);
  color: var(--dx-ink);
  font: inherit;
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.dx-unified .dxr-habitat-filters > button[aria-pressed="true"] {
  border-color: var(--dx-primary);
  background: var(--dx-selected);
}
.dx-unified .dxr-habitat-filters > button {
  padding-inline: 3px;
  white-space: nowrap;
}
.dx-unified :is(.dxr-habitat-filters > button, .dxr-habitat-link, .dxr-habitat-meta) svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  color: var(--dx-primary);
}
.dxr-habitat-list { display: grid; gap: 5px; }
.dx-unified .dxr-habitat-more {
  width: 100%;
  margin-block-start: 5px;
  color: var(--dx-primary);
}
.dxr-habitat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 7px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--dx-line);
  border-radius: 10px;
  background: var(--dxr-inset);
}
.dxr-habitat-main { min-width: 0; }
.dxr-habitat-main > b {
  display: block;
  font-size: .81rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.dxr-habitat-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 7px;
  margin-top: 3px;
  font-size: .72rem;
  color: var(--dx-muted);
}
.dxr-habitat-meta > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--dx-ink);
}
.dxr-habitat-row :is(.dxr-habitat-chance, .dxr-habitat-help, .dxr-habitat-window) { grid-column: 1 / -1; }
.dxr-habitat-window {
  margin: 0;
  color: var(--dx-primary);
  font-size: .73rem;
  font-weight: 700;
  line-height: 1.25;
}
.dxr-habitat-chance {
  margin: 0;
  color: var(--dx-muted);
  font-size: .73rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.dxr-habitat-chance strong { color: var(--dx-ink); }
.dxr-habitat-help {
  color: var(--dx-muted);
  font-size: .73rem;
}
.dxr-habitat-help > summary { min-height: 36px; padding-block: 8px; cursor: pointer; }
.dxr-habitat-help ul { margin: 0 0 5px; padding-inline-start: 16px; }
.dx-unified :is(.dxr-habitat-filters > button, .dxr-habitat-link, .dxr-habitat-more, .dxr-habitat-help > summary):focus-visible {
  outline: 2px solid var(--dx-primary);
  outline-offset: -2px;
}
.dxr-places { --dxr-block-accent: var(--ui-danger, #b93c5b); background: color-mix(in srgb, var(--dx-card) 88%, var(--dx-bg)); }
.dxr-places .dxr-section-head { justify-content: space-between; }
.dxr-places .dxr-section-head small { color: var(--dx-muted); font-size: .72rem; text-align: end; }
#app #sidePanel .dx-unified .dxr-places .dxr-habitats .pc-note { margin: 0; font-size: .75rem; line-height: 1.4; }
#app #sidePanel .dx-unified .dxr-places .dxr-starter-note {
  padding: 6px 7px; border-inline-start: 2px solid var(--dx-primary); border-radius: 5px; background: var(--dxr-inset);
}
.dxr-places .dxr-habitat-filters { margin-bottom: 4px; }
#app #sidePanel .dx-unified .dxr-places :is(.dxr-habitat-filters > button, .dxr-habitat-link, .dxr-habitat-more, .pc-parents > button) { min-height: 27px; }
.dxr-places .dxr-habitat-more { margin-top: 3px; }
.dxr-places .dxr-habitat-row { padding: 5px 7px; border-inline-start: 2px solid var(--dx-primary); }
#app #sidePanel .dx-unified .dxr-habitat-link { background: var(--dx-selected); color: var(--dx-primary); }
.dxr-places .dxr-habitat-help > summary { min-height: 24px; padding-block: 4px; }
.dxr-places .dxr-habitats > h4 { margin: 5px 0 3px; font-size: .75rem; }
.dxr-places .wild-behavior-dossier {
  margin: 4px 0 0;
  padding: 2px 2px 0;
  border: 0;
  border-top: 1px solid var(--dx-line);
  border-radius: 0;
  font-size: .75rem;
  color: var(--dx-muted);
}
.dxr-places .wild-behavior-dossier > summary { min-height: 25px; padding-block: 4px; }
.dx-unified .public-dex-note { color: var(--dx-muted); padding: 0 4px 6px; }
.dx-unified :is(.dxr-fold > summary, .dxr-training > summary, .dxr-move, .dxr-inspector-close, .dxr-appearance button, .wild-behavior-dossier > summary):focus-visible {
  outline: 2px solid var(--dx-primary);
  outline-offset: -2px;
}

@container pokedex (max-width: 735px) {
  .dxr-layout { grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto; padding: 7px; gap: 8px; overflow-y: auto; overscroll-behavior: contain; }
  .dxr-profile { max-height: none; overflow: hidden; }
  #app #sidePanel .dx-unified .dxr-main { grid-template-columns: minmax(0,1fr); overflow: visible; }
  .dxr-specimen { display: grid; align-items: stretch; grid-template-columns: minmax(0,1fr) minmax(112px,43%); }
  .dxr-identity { align-content: center; padding: 7px 5px 7px 9px; }
  #app #sidePanel .dx-unified .dxr-identity > h2 { font-size: clamp(1.28rem, 5.2vw, 1.65rem); margin: 4px 0 5px; }
  .dxr-dexline { justify-content: flex-start; font-size: .65rem; }
  .dxr-physical { gap: 4px 6px; margin-top: 4px; font-size: .72rem; }
  .dxr-stage { margin: 5px 5px 0 0; min-height: 134px; height: auto; }
  .dxr-portrait { width: min(90cqw, 83cqh); }
  .dxr-appearance { padding: 6px; }
  .dxr-section-head { min-height: 28px; }
  .dxr-decks { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .dxr-deck:only-child .dxr-move-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dxr-stat-grid { gap: 4px 6px; }
  .dxr-stat-grid > div { padding-block: 5px 10px; }
  .dxr-stat-grid dt { font-size: .8rem; }
  .dxr-stat-grid dd { font-size: .91rem; }
  #app #sidePanel .dx-unified .dxr-evolution .pe-family { grid-template-columns: minmax(0,1fr); gap: 5px; }
  #app #sidePanel .dx-unified .dxr-evolution .pe-form { display: flex; align-items: stretch; }
  #app #sidePanel .dx-unified .dxr-evolution .pe-family .pe-form .pe-form-open {
    display: flex; align-items: center; gap: 8px; flex: 1 1 0; width: auto; min-width: 0;
    height: auto; min-height: 56px; padding: 6px 8px; text-align: start;
  }
  #app #sidePanel .dx-unified .dxr-evolution .pe-form .pe-form-open .pe-form-art {
    width: 36px; height: 36px; flex: 0 0 36px;
  }
  .dxr-evolution .pe-form-open .pe-direction { display: none; }
  #app #sidePanel .dx-unified .dxr-evolution .pe-form-name {
    font-size: .86rem; line-height: 1.2; overflow-wrap: normal; word-break: normal;
  }
  #app #sidePanel .dx-unified .dxr-evolution .pe-form-open small { font-size: .73rem; line-height: 1.2; }
  #app #sidePanel .dx-unified .dxr-evolution .pe-requirements-link {
    position: static; flex: 0 1 auto; width: auto; max-width: 42%; min-height: 44px; height: auto;
    display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 4px; padding: 4px 7px;
    border: 0; border-inline-start: 1px solid var(--dx-line); font-size: .73rem;
  }
  .dxr-evolution .pe-resource { flex: 0 0 auto; }
  .dxr-evolution .pe-requirements-link > svg:last-child { width: 13px; height: 13px; }
  #app #sidePanel .dx-unified .dxr-evolution .pe-root { height: auto; flex-wrap: wrap; }
  #app #sidePanel .dx-unified .dxr-evolution .pe-root button { min-height: 44px; }
}

@container pokedex (max-width: 355px) {
  .dxr-stage { min-height: 122px; }
  #app #sidePanel .dx-unified .dxr-move { gap: 4px; }
  .dx-unified .dxr-habitat-filters > button svg { display: none; }
}

@container pokedex (min-width: 356px) and (max-width: 560px) {
  #app #sidePanel .dx-unified .dxr-evolution .pe-family:not(.is-branched):has(.pe-form:nth-child(2)) {
    grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  }
  #app #sidePanel .dx-unified .dxr-evolution .pe-family:not(.is-branched):has(.pe-form:nth-child(2)) .pe-form { flex-direction: column; }
  #app #sidePanel .dx-unified .dxr-evolution .pe-family:not(.is-branched):has(.pe-form:nth-child(2)) .pe-form-open {
    flex: 0 0 auto; flex-direction: column; justify-content: center; gap: 3px; min-height: 84px; padding: 4px 2px; text-align: center;
  }
  #app #sidePanel .dx-unified .dxr-evolution .pe-family:not(.is-branched):has(.pe-form:nth-child(2)) .pe-form-open .pe-form-art {
    width: 29px; height: 29px; flex: 0 0 29px;
  }
  #app #sidePanel .dx-unified .dxr-evolution .pe-family:not(.is-branched):has(.pe-form:nth-child(2)) .pe-requirements-link {
    width: 100%; max-width: none; border: 0; border-top: 1px solid var(--dx-line);
  }
}

@media (max-width: 760px), (pointer: coarse) and (max-height: 560px) {
  #app #sidePanel .dx-unified .dxr-header { min-height: 48px; padding-block: 4px; padding-inline-start: 7px; }
  #app #sidePanel[data-mobile-sheet="v1"] .dx-unified .dxr-header > [data-pokedex-back] { display: none !important; }
  #app #sidePanel[data-mobile-sheet="v1"] .dx-unified .dxr-header > nav { display: flex; width: 100%; }
  #app #sidePanel[data-mobile-sheet="v1"] .dx-unified .dxr-header [data-pc-open="search"] { margin-inline-end: auto; }
  #app #sidePanel[data-mobile-sheet="v1"] .dx-unified .dxr-header [data-pc-open="search"] > span { display: inline; }
  #app #sidePanel[data-mobile-sheet="v1"] .dx-unified .dex-search-hint { display: none; }
  .dxr-move-head:has(.dxr-training:not([hidden])) > h3 { min-height: 44px; }
  #app #sidePanel .dx-unified .dxr-appearance button,
  #app #sidePanel .dx-unified .dxr-appearance-support :is(.pc-info-button, .pt-entry > button),
  #app #sidePanel .dx-unified .dxr-stats .dxr-section-head > button,
  #app #sidePanel .dx-unified .dxr-evolution .pe-evolution > header .pc-info-button,
  #app #sidePanel .dx-unified .dxr-places :is(button, summary),
  .dx-unified :is(.dxr-fold > summary, .dxr-training > summary, .dxr-training select, .dxr-inspector [data-dex-rank], .dxr-inspector summary) { min-height: 44px; }
  #app #sidePanel .dx-unified .dxr-move { min-height: 49px; }
  .dx-unified .dxr-inspector-close { width: 44px; height: 44px; }
  #app #sidePanel .dx-unified .dxr-inspector {
    inset: auto max(6px,env(safe-area-inset-right,0px)) max(6px,env(safe-area-inset-bottom,0px)) max(6px,env(safe-area-inset-left,0px)) !important;
    width: auto; max-width: min(calc(100vw - 12px),620px); max-height: min(82dvh,630px);
    margin: 0 auto !important;
  }
}

@media (max-width: 369px) {
  #app #sidePanel .dx-unified .dxr-header > [data-pokedex-back] > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

@media (hover: none) {
  .dxr-glance { pointer-events: none; }
}

@media (pointer: coarse) {
  #app #sidePanel .dx-unified .dxr-move { min-height: 44px; }
  #app #sidePanel .dx-unified .dxr-inspector-close { width: 44px; height: 44px; }
}
