.pokemon-manager-shell {
  --font-ui: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --bg-0: #030c14;
  --bg-1: #071522;
  --bg-2: #0a1b2b;
  --bg-3: #0d263c;
  --panel: #071724;
  --panel-hi: #0c2235;
  --line: #24465f;
  --line-hi: #356b91;
  --line-soft: #163246;
  --text: #eef6fc;
  --muted: #91a9bb;
  --muted-2: #637c91;
  --blue: #2e80d1;
  --blue-2: #55aff8;
  --blue-3: #15538b;
  --blue-dark: #0e385f;
  --cyan: #70c7ff;
  --green: #85db52;
  --amber: #e2bd36;
  --orange: #f17a2d;
  --red: #d35454;
  --shadow: 0 30px 80px rgba(0, 0, 0, .52);
  --inner: inset 0 1px 0 rgba(255,255,255,.045), inset 0 -1px 0 rgba(0,0,0,.48);
}

@scope (.drawer-view[data-view="pokemon"]) {

:root {
  --bg-0: #030c14;
  --bg-1: #071522;
  --bg-2: #0a1b2b;
  --bg-3: #0d263c;
  --panel: #071724;
  --panel-hi: #0c2235;
  --line: #24465f;
  --line-hi: #356b91;
  --line-soft: #163246;
  --text: #eef6fc;
  --muted: #91a9bb;
  --muted-2: #637c91;
  --blue: #2e80d1;
  --blue-2: #55aff8;
  --blue-3: #15538b;
  --blue-dark: #0e385f;
  --cyan: #70c7ff;
  --green: #85db52;
  --amber: #e2bd36;
  --orange: #f17a2d;
  --red: #d35454;
  --shadow: 0 30px 80px rgba(0, 0, 0, .52);
  --inner: inset 0 1px 0 rgba(255,255,255,.045), inset 0 -1px 0 rgba(0,0,0,.48);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: "Barlow", Arial, sans-serif;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Barlow", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 22%, rgba(37,111,74,.22), transparent 28%),
    radial-gradient(circle at 84% 69%, rgba(30,103,155,.22), transparent 27%),
    linear-gradient(135deg, #11261e, #092132 48%, #13281f);
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .52;
}

body::after {
  background: rgba(0,8,13,.36);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.prototype-stage {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  padding: 15px;
}

.external-open-button {
  position: fixed;
  left: 22px;
  bottom: 22px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #356d96;
  border-radius: 4px;
  background: linear-gradient(180deg,#0b1d2c,#07141e);
  color: #d9edf9;
  box-shadow: var(--inner);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.external-open-button:hover {
  border-color: #60b4ef;
  background: #102b42;
  color: white;
}

/* =========================================================
   WINDOW / FRAME — same system as Hunts v11
   ========================================================= */

.pokemon-manager {
  width: min(1180px, calc(100vw - 24px));
  height: min(780px, calc(100vh - 24px));
  min-height: 660px;
  position: relative;
  display: grid;
  grid-template-rows: 84px minmax(0,1fr);
  overflow: hidden;
  border: 1px solid #38698a;
  border-radius: 10px;
  background:
    linear-gradient(90deg, transparent, rgba(81,167,231,.035) 50%, transparent),
    linear-gradient(180deg, #071724, #04111c);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(0,0,0,.75),
    inset 0 1px 0 rgba(149,208,249,.08);
}

.pokemon-manager::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: 20;
  pointer-events: none;
  border: 1px solid rgba(87,157,205,.14);
  border-radius: 7px;
  box-shadow: inset 0 0 32px rgba(0,0,0,.18);
}

.pokemon-manager::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 2px;
  z-index: 21;
  background: linear-gradient(90deg, transparent, #3a83b6 16%, #65b9ee 50%, #3a83b6 84%, transparent);
  opacity: .66;
}

.pokemon-manager.is-hidden {
  display: none;
}

.frame-corner {
  position: absolute;
  width: 25px;
  height: 25px;
  z-index: 22;
  pointer-events: none;
  opacity: .8;
}

.frame-corner::before,
.frame-corner::after {
  content: "";
  position: absolute;
  background: #4f91bb;
}

.frame-corner::before {
  width: 16px;
  height: 2px;
}

.frame-corner::after {
  width: 2px;
  height: 16px;
}

.frame-corner.tl { top:7px; left:7px; }
.frame-corner.tl::before,
.frame-corner.tl::after { top:0; left:0; }

.frame-corner.tr { top:7px; right:7px; transform:rotate(90deg); }
.frame-corner.tr::before,
.frame-corner.tr::after { top:0; left:0; }

.frame-corner.bl { bottom:7px; left:7px; transform:rotate(-90deg); }
.frame-corner.bl::before,
.frame-corner.bl::after { top:0; left:0; }

.frame-corner.br { bottom:7px; right:7px; transform:rotate(180deg); }
.frame-corner.br::before,
.frame-corner.br::after { top:0; left:0; }

/* =========================================================
   HEADER
   ========================================================= */

.manager-titlebar {
  height: 84px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid #28516e;
  background:
    linear-gradient(90deg, rgba(59,137,194,.12), transparent 36%),
    linear-gradient(180deg, #102c43, #0a2032 70%, #091d2d);
  box-shadow:
    inset 0 -1px 0 rgba(0,0,0,.65),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.brand-mark {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid #36719c;
  border-radius: 9px;
  background: linear-gradient(145deg, #123958, #0a2135 65%);
  box-shadow:
    inset 0 0 0 3px #071725,
    inset 0 0 0 4px rgba(95,170,221,.22),
    0 5px 16px rgba(0,0,0,.3);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: #6cb6e9;
  opacity: .42;
}

.brand-mark::before {
  width: 18px;
  height: 1px;
  left: -8px;
  top: 50%;
}

.brand-mark::after {
  width: 1px;
  height: 18px;
  top: -8px;
  left: 50%;
}

.brand-ring {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #4385b4;
  box-shadow: inset 0 0 0 4px rgba(3,15,24,.72);
  background: #0a2133;
}

.pokeball-mark {
  width: 34px;
  height: 34px;
  position: relative;
  border: 3px solid #07131e;
  border-radius: 50%;
  background:
    linear-gradient(#d94442 0 46%, #07131e 46% 55%, #e8eef2 55% 100%);
}

.pokeball-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%,-50%);
  border: 3px solid #07131e;
  border-radius: 50%;
  background: #edf5fa;
}

.header-copy {
  min-width: 0;
}

.eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #64aee0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  opacity: .82;
}

.header-copy h1 {
  margin: 0;
  color: var(--text);
  font-size: 27px;
  line-height: .95;
  font-weight: 900;
  letter-spacing: .05em;
  text-shadow: 0 2px 0 #06121b;
}

.header-copy p {
  margin: 7px 0 0;
  color: #bbccd8;
  font-size: 12px;
}

.header-actions {
  display: flex;
  gap: 7px;
  margin-left: auto;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #356d96;
  border-radius: 4px;
  background: linear-gradient(180deg,#0b1d2c,#07141e);
  color: #d9edf9;
  box-shadow: var(--inner);
  cursor: pointer;
}

.icon-button:hover {
  border-color: #a74e5e;
  background: #3b1720;
  color: #ffabb7;
}

.close-button {
  font-size: 23px;
  line-height: 1;
}

/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.manager-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 300px minmax(0,1fr);
}

.team-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  padding: 17px 15px 14px;
  border-right: 1px solid #1f4058;
  overflow: hidden;
  background: linear-gradient(180deg,#081c2b,#061621 70%);
}

.panel-heading {
  min-height: 58px;
  display: flex;
  align-items: center;
  margin-bottom: 11px;
  padding: 10px 11px;
  border: 1px solid rgba(49,82,104,.55);
  background: linear-gradient(180deg,rgba(12,31,46,.78),rgba(7,22,34,.72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  position: relative;
}

.panel-heading::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 9px;
  bottom: 9px;
  width: 2px;
  background: linear-gradient(#3c8ac2,transparent);
  opacity: .55;
}

.team-heading {
  justify-content: space-between;
  gap: 10px;
}

.section-label {
  display: block;
  margin-bottom: 4px;
  color: #75bdf0;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.team-heading strong {
  display: block;
  color: #d1dde5;
  font-size: 11px;
  font-weight: 700;
}

.mini-chip {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid #314b5f;
  border-radius: 3px;
  background: linear-gradient(180deg,#0d1d2a,#091620);
  color: #d1dde5;
  box-shadow: var(--inner);
  font-size: 10px;
  font-weight: 800;
}

.team-list {
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: #4c7897 transparent;
}

.team-list::-webkit-scrollbar,
.tab-content::-webkit-scrollbar {
  width: 8px;
}

.team-list::-webkit-scrollbar-thumb,
.tab-content::-webkit-scrollbar-thumb {
  background: #4c7897;
  border-radius: 8px;
}

/* =========================================================
   TEAM CARDS — Hunt row language
   ========================================================= */

.team-slot {
  min-height: 96px;
  display: grid;
  grid-template-columns: 56px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  position: relative;
  margin-bottom: 7px;
  padding: 8px 9px;
  border: 1px solid #27465b;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(11,31,46,.96), rgba(6,21,32,.96));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    0 1px 0 rgba(0,0,0,.18);
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}

.team-slot:hover {
  border-color: #3f6f91;
  background: #0d2233;
}

.team-slot.is-selected {
  border-color: #4a9dd7;
  background:
    linear-gradient(90deg,#123b5f,#0d2539 62%,#0a1c2a);
  box-shadow:
    inset 3px 0 0 #59b8f3,
    var(--inner),
    0 0 0 1px rgba(74,157,215,.7),
    0 0 18px rgba(20,91,141,.08);
}

.team-slot.is-selected::after {
  content: "SELECT";
  position: absolute;
  right: 4px;
  top: 4px;
  color: #477796;
  font-size: 6px;
  letter-spacing: .12em;
}

.team-slot.is-empty {
  grid-template-columns: 1fr;
  place-items: center;
  min-height: 70px;
  color: #688297;
  background: #071722;
  border-style: dashed;
  cursor: default;
}

.empty-slot-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.empty-slot-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid #31556d;
  background: #0a1e2d;
  color: #67b5e7;
  transform: rotate(45deg);
}

.empty-slot-icon::first-letter {
  transform: rotate(-45deg);
}

.sprite-box {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  position: relative;
  overflow: visible;
  border: 1px solid #31526a;
  border-radius: 3px;
  background: radial-gradient(circle at 50% 35%,#173650,#081722 70%);
  box-shadow:
    inset 0 0 0 2px #06131d,
    inset 0 1px 7px rgba(86,164,216,.12);
}

.sprite-box::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  height: 1px;
  background: linear-gradient(90deg,transparent,#467596,transparent);
}

.sprite-box.large {
  width: 82px;
  height: 82px;
}

.pokemon-sprite-img {
  width: 68px;
  height: 68px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 1px rgba(0,0,0,.3));
  transform: translateZ(0);
  user-select: none;
  pointer-events: none;
}

.sprite-box.large .pokemon-sprite-img {
  width: 104px;
  height: 104px;
}

.sprite-fire,
.sprite-water,
.sprite-ghost,
.sprite-flying,
.sprite-rock {
  background: radial-gradient(circle at 50% 35%,#173650,#081722 70%);
}

.team-slot-info {
  min-width: 0;
}

.team-slot-topline,
.team-slot-subline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.team-slot-name {
  overflow: hidden;
  color: #eaf4fa;
  font-size: 12.5px;
  line-height: 1.1;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-slot-level {
  color: #8ea4b4;
  font-size: 9px;
  font-weight: 650;
}

.team-slot-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8ea4b4;
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
}

.team-slot-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6d8596;
}

.team-slot-status.status-active::before { background: var(--green); }
.team-slot-status.status-training::before { background: var(--amber); }

.team-slot-boost {
  align-self: start;
  min-width: 32px;
  padding: 3px 5px;
  border: 1px solid #75642d;
  border-radius: 3px;
  background: #251f0b;
  color: #ffd755;
  font-size: 9px;
  font-weight: 900;
  text-align: center;
}

.team-types {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.hp-track {
  height: 5px;
  margin-top: 7px;
  overflow: hidden;
  border: 1px solid #213c4f;
  border-radius: 2px;
  background: #041018;
}

.hp-fill {
  width: var(--progress,0%);
  height: 100%;
  background: linear-gradient(90deg,#4cad65,#80da4f);
}

.team-quality {
  color: #688297;
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
}

.team-footer-note {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #203d53;
  color: #69869b;
  font-size: 9px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #66d17e;
  box-shadow: 0 0 10px rgba(102,209,126,.35);
}

/* =========================================================
   MAIN WORKSPACE
   ========================================================= */

.pokemon-workspace {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 132px 49px minmax(0,1fr);
  background: linear-gradient(180deg,#071a29,#051520);
}

.pokemon-summary {
  min-height: 132px;
  display: grid;
  grid-template-columns: 82px minmax(0,1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 19px;
  border-bottom: 1px solid #1f4058;
  background:
    linear-gradient(90deg, rgba(59,137,194,.07), transparent 43%),
    linear-gradient(180deg,#081c2b,#061621);
}

.summary-main {
  min-width: 0;
}

.summary-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-name-row h2 {
  margin: 0;
  color: #edf6fb;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .01em;
}

.gender {
  color: #66b7ed;
  font-size: 15px;
  font-weight: 900;
}

.summary-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 7px;
  color: #91a9bb;
  font-size: 10px;
  font-weight: 650;
}

.summary-types {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.summary-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #31536b;
  border-radius: 3px;
  background: linear-gradient(180deg,#0d1d2a,#091620);
  color: #d1dde5;
  box-shadow: var(--inner);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.tag.tier {
  border-color: #6f4b7d;
  color: #d28ee0;
}

.tag.ball {
  border-color: #3a6689;
  color: #82c7f4;
}

.tag.boost {
  border-color: #75642d;
  color: #ffd755;
}

.summary-side {
  min-width: 116px;
  display: grid;
  gap: 9px;
  justify-items: end;
  padding-left: 15px;
  border-left: 1px solid rgba(95,153,192,.27);
}

.summary-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d9edf9;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.summary-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #66d17e;
  box-shadow: 0 0 10px rgba(102,209,126,.35);
}

.summary-status.training .dot {
  background: var(--amber);
  box-shadow: 0 0 10px rgba(226,189,54,.25);
}

.summary-quality {
  color: #6f8da3;
  font-size: 8px;
  text-align: right;
  text-transform: uppercase;
}

.summary-quality strong {
  display: block;
  margin-top: 3px;
  color: #d9edf9;
  font-size: 14px;
  font-weight: 800;
}

/* =========================================================
   TYPES — same badge/icon treatment as Hunts v11
   ========================================================= */

.type-badge {
  width: max-content;
  min-height: 30px;
  padding: 5px 10px 5px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #49647a;
  border-radius: 4px;
  background: linear-gradient(180deg,#0c1c28,#07151e);
  color: #dcecf6;
  box-shadow:
    0 4px 10px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.035);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.type-badge.compact {
  min-height: 21px;
  padding: 2px 6px 2px 3px;
  gap: 4px;
  font-size: 7px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.type-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.32));
}

.type-icon.compact {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}

.type-badge.psychic { border-color:#784b76; }
.type-badge.rock { border-color:#75694c; }
.type-badge.normal { border-color:#65727b; }
.type-badge.electric { border-color:#8a7b35; }
.type-badge.poison { border-color:#6e4f7d; }
.type-badge.fire { border-color:#885239; }
.type-badge.bug { border-color:#61713d; }
.type-badge.water { border-color:#3e688a; }
.type-badge.grass { border-color:#4d7348; }
.type-badge.ghost { border-color:#495a8a; }
.type-badge.flying { border-color:#6577a1; }
.type-badge.ground { border-color:#83543b; }
.type-badge.fighting { border-color:#7a4d4c; }
.type-badge.ice { border-color:#4e7882; }
.type-badge.dragon { border-color:#5b4f8e; }
.type-badge.dark { border-color:#565b61; }
.type-badge.steel { border-color:#58727f; }
.type-badge.fairy { border-color:#7e596c; }

/* =========================================================
   TABS — v11 segmented-button language
   ========================================================= */

.manager-tabs {
  min-height: 49px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-bottom: 1px solid #1f4058;
  background: #071724;
}

.manager-tab {
  min-width: 116px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #314b5f;
  border-radius: 3px;
  background: linear-gradient(180deg,#0d1d2a,#091620);
  color: #d1dde5;
  box-shadow: var(--inner);
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.manager-tab:hover {
  background: #10283b;
  border-color: #467395;
}

.manager-tab.is-active {
  background: linear-gradient(180deg,#216ca9,#174c7a);
  border-color: #55a5df;
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 0 0 1px rgba(5,19,29,.7),
    0 3px 10px rgba(0,0,0,.18);
}

.category-tab-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  max-width: 16px;
  min-height: 16px;
  max-height: 16px;
  display: block;
  color: currentColor;
  fill: currentColor;
  opacity: .88;
}

.category-tab-label {
  line-height: 1;
}

/* =========================================================
   CONTENT
   ========================================================= */

.tab-content {
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px;
  scrollbar-width: thin;
  scrollbar-color: #4c7897 transparent;
  background: linear-gradient(180deg,#071a29,#051520);
}

.content-section {
  overflow: hidden;
  border: 1px solid rgba(49,82,104,.62);
  border-radius: 3px;
  background: linear-gradient(180deg,rgba(12,31,46,.88),rgba(7,22,34,.82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.section-header {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border-bottom: 1px solid #203d53;
  background: rgba(4,17,28,.28);
}

.section-header h3 {
  margin: 0;
  color: #75bcec;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-header span {
  color: #69869b;
  font-size: 9px;
}

.section-body {
  padding: 12px;
}

.details-layout {
  display: grid;
  grid-template-columns: minmax(0,1.28fr) minmax(260px,.72fr);
  gap: 12px;
}

/* =========================================================
   STATS
   ========================================================= */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  overflow: hidden;
  border: 1px solid #284c64;
  border-radius: 3px;
  background: rgba(5,17,26,.24);
}

.stat-cell {
  min-height: 82px;
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-right: 1px solid #284c64;
  border-bottom: 1px solid #284c64;
  background: rgba(5,17,26,.20);
}

.stat-cell:nth-child(3n) { border-right:0; }
.stat-cell:nth-last-child(-n+3) { border-bottom:0; }

.stat-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #67b5e7;
}

.stat-icon-svg {
  width: 22px;
  height: 22px;
  display: block;
  color: inherit;
  fill: currentColor;
}

.stat-copy small,
.info-row dt,
.metric-label {
  display: block;
  margin-bottom: 5px;
  color: #6f8ca0;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.stat-copy strong {
  display: block;
  color: #d8e8f2;
  font-size: 18px;
  line-height: 1;
  font-weight: 850;
}

/* =========================================================
   INFORMATION
   ========================================================= */

.info-table {
  margin: 0;
  overflow: hidden;
  border-top: 1px solid #284c64;
  border-bottom: 1px solid #284c64;
  background: rgba(5,17,26,.24);
}

.info-row {
  min-height: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-bottom: 1px solid #203d53;
}

.info-row:last-child { border-bottom:0; }

.info-row dt { margin:0; }

.info-row dd {
  margin: 0;
  color: #d4e3ec;
  font-size: 10px;
  font-weight: 750;
}

.info-row-types {
  min-height: 48px;
}

.info-types {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.exp-row {
  display: grid;
  gap: 6px;
}

.exp-block { margin-top: 11px; }
.metric-label.no-margin { margin:0; }
.metric-value-small { color:#d8e8f2; font-size:10px; }

.exp-track,
.boost-track {
  height: 8px;
  overflow: hidden;
  border: 1px solid #31536b;
  border-radius: 3px;
  background: #05121c;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.3);
}

.exp-fill {
  width: var(--progress,0%);
  height: 100%;
  background: linear-gradient(90deg,#216ca9,#55aff8);
}

/* =========================================================
   EVOLUTION
   ========================================================= */

.evolution-stage {
  display: grid;
  grid-template-columns: minmax(180px,1fr) 64px minmax(180px,1fr);
  gap: 12px;
  align-items: center;
}

.evolution-pokemon {
  min-height: 182px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid #31556d;
  border-radius: 3px;
  background:
    radial-gradient(circle at 50% 38%, rgba(68,133,178,.12), transparent 43%),
    #071621;
  box-shadow: var(--inner);
}

.evolution-pokemon h4 {
  margin: 9px 0 0;
  color: #d9edf9;
  font-size: 13px;
  font-weight: 850;
}

.evolution-arrow {
  display: grid;
  place-items: center;
  color: #70c7ff;
  font-size: 27px;
}

.requirements {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #284c64;
  border-radius: 3px;
}

.requirement-row {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 11px;
  border-bottom: 1px solid #203d53;
  background: rgba(5,17,26,.24);
}

.requirement-row:last-child { border-bottom:0; }

.requirement-main strong {
  display: block;
  color: #d4e3ec;
  font-size: 11px;
}

.requirement-main span {
  color: #6f8ca0;
  font-size: 9px;
}

.requirement-state {
  color: var(--green);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.requirement-state.pending { color: var(--amber); }

/* =========================================================
   BOOST
   ========================================================= */

.boost-top {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(230px,.8fr);
  gap: 12px;
}

.boost-progress-card,
.next-boost-card {
  padding: 13px;
  border: 1px solid #31556d;
  border-radius: 3px;
  background: #071621;
  box-shadow: var(--inner);
}

.boost-value {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 3px 0 10px;
}

.boost-value strong {
  color: #70c7ff;
  font-size: 27px;
  font-weight: 850;
}

.boost-value span {
  color: #6f8ca0;
  font-size: 10px;
}

.boost-fill {
  width: var(--progress,0%);
  height: 100%;
  background: linear-gradient(90deg,#216ca9,#55aff8);
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
  margin-top: 11px;
}

.bonus-cell {
  padding: 9px;
  border: 1px solid #29475d;
  border-radius: 3px;
  background: #081823;
}

.bonus-cell strong {
  display: block;
  margin-top: 4px;
  color: #d4e3ec;
  font-size: 11px;
}

.next-boost-card .boost-step {
  color: #70c7ff;
  font-size: 18px;
  font-weight: 850;
}

.next-boost-deltas { margin-top:10px; }

.delta-row {
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #203d53;
  color: #8ea4b4;
  font-size: 9px;
}

.delta-row:last-child { border-bottom:0; }
.delta-row strong { color:#d4e3ec; }

.stone-panel { margin-top:12px; }

.stone-row {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #31556d;
  border-radius: 3px;
  background: #071621;
  box-shadow: var(--inner);
}

.stone-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #75642d;
  border-radius: 3px;
  background: #251f0b;
  color: #ffd755;
}

.stone-copy strong {
  display: block;
  color: #d4e3ec;
  font-size: 10px;
}

.stone-copy span,
.discreet-note {
  color: #6f8ca0;
  font-size: 8px;
}

.stone-required {
  color: #ffd755;
  font-size: 9px;
  font-weight: 850;
}

/* =========================================================
   HELD
   ========================================================= */

.held-layout {
  display: grid;
  grid-template-columns: minmax(220px,.8fr) minmax(0,1.2fr);
  gap: 12px;
}

.current-held-card {
  min-height: 170px;
  padding: 12px;
  border: 1px solid #31556d;
  border-radius: 3px;
  background: #071621;
  box-shadow: var(--inner);
}

.item-emblem {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 11px;
  border: 1px solid #355d79;
  background: #071621;
  color: #86b9dc;
  font-size: 15px;
  font-weight: 900;
}

.current-held-card h4 {
  margin: 4px 0;
  color: #d9edf9;
  font-size: 14px;
}

.current-held-card p {
  margin: 0 0 12px;
  color: #6f8ca0;
  font-size: 9px;
}

.choice-list {
  display: grid;
  gap: 6px;
}

.choice-card {
  min-height: 56px;
  display: grid;
  grid-template-columns: 36px minmax(0,1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid #29475d;
  border-radius: 3px;
  background: #081823;
  color: #d2dde4;
  box-shadow: var(--inner);
  cursor: pointer;
}

.choice-card:hover {
  border-color: #3f6f91;
  background: #0d2233;
}

.choice-card.is-selected {
  background: linear-gradient(90deg,#184f7e,#113553);
  border-color: #3c86bc;
  box-shadow: inset 3px 0 0 #59b8f3,var(--inner);
}

.choice-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #355d79;
  background: #071621;
  color: #86b9dc;
  font-size: 9px;
  font-weight: 900;
}

.choice-main strong {
  display: block;
  font-size: 9px;
}

.choice-main span {
  color: #6d8698;
  font-size: 8px;
}

.choice-mark {
  color: #70c7ff;
  font-size: 8px;
  font-weight: 850;
}

/* =========================================================
   AURA
   ========================================================= */

.aura-current {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 11px;
  padding: 10px;
  border: 1px solid #31556d;
  border-radius: 3px;
  background: #071621;
  box-shadow: var(--inner);
}

.aura-current strong {
  display: block;
  color: #d9edf9;
  font-size: 10px;
}

.aura-current span {
  color: #6f8ca0;
  font-size: 8px;
}

.aura-preview {
  width: 44px;
  height: 44px;
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #355d79;
  border-radius: 50%;
  background: #071621;
}

.aura-preview::before,
.aura-preview::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid transparent;
}

.aura-none::before { border-color:#4a687d; }
.aura-gold::before { border-color:#e2bd36; }
.aura-stars::before {
  border-color:#b9d2e2;
  border-radius:3px;
  transform:rotate(45deg);
}
.aura-rainbow::before {
  border-top-color:#e16f75;
  border-right-color:#dfc34d;
  border-bottom-color:#77c889;
  border-left-color:#7499d5;
}
.aura-cosmos::before { border-color:#7769ae; }
.aura-cosmos::after {
  inset:14px;
  background:#8e7fc2;
  opacity:.35;
}

.aura-grid {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 6px;
}

.aura-card {
  min-height: 112px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid #29475d;
  border-radius: 3px;
  background: #081823;
  color: #d2dde4;
  box-shadow: var(--inner);
  cursor: pointer;
}

.aura-card:hover {
  border-color: #3f6f91;
  background: #0d2233;
}

.aura-card.is-selected {
  background: linear-gradient(180deg,#184f7e,#113553);
  border-color: #3c86bc;
}

.aura-card.is-equipped {
  box-shadow: inset 0 0 0 1px rgba(112,199,255,.28), var(--inner);
}

.aura-card strong {
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.aura-card span {
  color: #6d8698;
  font-size: 7px;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.action-line {
  display: flex;
  justify-content: flex-end;
  margin-top: 11px;
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}

.primary-button {
  border: 1px solid #55a5df;
  background: linear-gradient(180deg,#216ca9,#174c7a);
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 0 0 1px rgba(5,19,29,.7),
    0 3px 10px rgba(0,0,0,.18);
}

.primary-button:hover:not(:disabled) {
  border-color: #70c7ff;
  background: #236fae;
}

.primary-button:disabled {
  border-color: #29475d;
  background: #081823;
  color: #60788a;
  box-shadow: none;
  cursor: not-allowed;
}

.secondary-button {
  border: 1px solid #314b5f;
  background: linear-gradient(180deg,#0d1d2a,#091620);
  color: #d1dde5;
  box-shadow: var(--inner);
}

.danger-button {
  border: 1px solid #834651;
  background: #32151d;
  color: #ef8d9a;
}

/* Actions removed by previous request */
.pokemon-actions {
  display: none !important;
}

/* =========================================================
   TOAST
   ========================================================= */

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  max-width: 340px;
  padding: 10px 12px;
  border: 1px solid #356d96;
  border-radius: 4px;
  background: #0b1d2c;
  color: #d9edf9;
  box-shadow: 0 12px 28px rgba(0,0,0,.34);
  font-size: 9px;
}

.toast.is-success { border-color:#4d835d; }
.toast.is-warning { border-color:#826d31; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {
  .pokemon-manager {
    width: calc(100vw - 18px);
    height: calc(100vh - 18px);
    min-height: 600px;
  }

  .manager-body {
    grid-template-columns: 245px minmax(0,1fr);
  }

  .team-slot {
    grid-template-columns: 46px minmax(0,1fr);
  }

  .team-slot .sprite-box {
    width: 44px;
    height: 44px;
  }

  .team-slot .pokemon-sprite-img {
    width: 58px;
    height: 58px;
  }

  .team-slot-boost {
    display: none;
  }

  .details-layout,
  .boost-top,
  .held-layout {
    grid-template-columns: 1fr;
  }

  .aura-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .manager-tab {
    min-width: 92px;
  }
}

@media (max-width: 760px) {
  .prototype-stage {
    padding: 6px;
  }

  .pokemon-manager {
    width: calc(100vw - 12px);
    height: calc(100vh - 12px);
    min-height: 540px;
    grid-template-rows: 70px minmax(0,1fr);
  }

  .manager-titlebar {
    height: 70px;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
  }

  .brand-ring {
    width: 36px;
    height: 36px;
  }

  .pokeball-mark {
    width: 26px;
    height: 26px;
  }

  .header-copy h1 {
    font-size: 20px;
  }

  .header-copy p {
    display: none;
  }

  .manager-body {
    grid-template-columns: 188px minmax(0,1fr);
  }

  .team-panel {
    padding: 11px 9px;
  }

  .team-slot {
    grid-template-columns: 38px minmax(0,1fr);
    min-height: 82px;
    padding: 7px;
  }

  .team-slot .sprite-box {
    width: 38px;
    height: 38px;
  }

  .team-slot .pokemon-sprite-img {
    width: 50px;
    height: 50px;
  }

  .team-types .type-badge.compact span {
    display: none;
  }

  .team-types .type-badge.compact {
    padding-right: 3px;
  }

  .pokemon-workspace {
    grid-template-rows: 114px 48px minmax(0,1fr);
  }

  .pokemon-summary {
    grid-template-columns: 68px minmax(0,1fr);
    padding: 12px;
  }

  .pokemon-summary .sprite-box.large {
    width: 64px;
    height: 64px;
  }

  .pokemon-summary .sprite-box.large .pokemon-sprite-img {
    width: 82px;
    height: 82px;
  }

  .summary-side {
    display: none;
  }

  .manager-tabs {
    overflow-x: auto;
    padding-left: 10px;
    padding-right: 10px;
  }

  .manager-tab {
    min-width: 84px;
    flex: 0 0 84px;
  }

  .category-tab-icon {
    display: none;
  }

  .stat-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .stat-cell:nth-child(3n) {
    border-right: 1px solid #284c64;
  }

  .stat-cell:nth-child(2n) {
    border-right: 0;
  }

  .stat-cell:nth-last-child(-n+3) {
    border-bottom: 1px solid #284c64;
  }

  .stat-cell:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .evolution-stage {
    grid-template-columns: 1fr;
  }

  .evolution-arrow {
    transform: rotate(90deg);
  }

  .aura-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}


/* =========================================================
   V12 — REFINAMENTO DE PROPORÇÃO / HIERARQUIA
   Mantém integralmente a identidade Hunts v11.
   ========================================================= */

/* Janela e header mais econômicos */
.pokemon-manager {
  height: min(760px, calc(100vh - 24px));
  min-height: 640px;
  grid-template-rows: 70px minmax(0, 1fr);
}

.manager-titlebar {
  height: 70px;
  padding: 0 16px;
  gap: 12px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 8px;
}

.brand-ring {
  width: 39px;
  height: 39px;
}

.pokeball-mark {
  width: 29px;
  height: 29px;
}

.header-copy h1 {
  font-size: 23px;
  letter-spacing: .045em;
}

.header-copy p {
  margin-top: 5px;
  font-size: 10px;
}

.eyebrow {
  margin-bottom: 3px;
  font-size: 8px;
}

.icon-button {
  width: 35px;
  height: 35px;
}

/* Coluna da equipe: mais organizada e com o slot vazio sempre acessível */
.manager-body {
  grid-template-columns: 292px minmax(0, 1fr);
}

.team-panel {
  padding: 12px 12px 9px;
}

.panel-heading {
  min-height: 51px;
  margin-bottom: 8px;
  padding: 8px 10px;
}

.section-label {
  margin-bottom: 3px;
  font-size: 9px;
}

.team-heading strong {
  font-size: 10px;
}

.mini-chip {
  min-height: 27px;
  padding-inline: 8px;
  font-size: 9px;
}

.team-list {
  padding-right: 3px;
}

.team-list::-webkit-scrollbar,
.tab-content::-webkit-scrollbar {
  width: 5px;
}

.team-list::-webkit-scrollbar-thumb,
.tab-content::-webkit-scrollbar-thumb {
  background: #3e6681;
}

.team-slot {
  min-height: 86px;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 9px;
  margin-bottom: 6px;
  padding: 7px 8px;
}

.team-slot.is-selected {
  border-color: #3e789f;
  background: linear-gradient(90deg,#102f4a,#0c2539 62%,#0a1d2b);
  box-shadow:
    inset 2px 0 0 #55a9e2,
    var(--inner),
    0 0 0 1px rgba(74,157,215,.28);
}

.team-slot.is-selected::after {
  content: "";
  width: 5px;
  height: 5px;
  right: 6px;
  top: 6px;
  border-radius: 50%;
  background: #5bb5ed;
}

.team-slot.is-empty {
  min-height: 58px;
}

.sprite-box {
  width: 54px;
  height: 54px;
}

.pokemon-sprite-img {
  width: 68px;
  height: 68px;
}

.team-slot-topline {
  min-height: 18px;
}

.team-slot-name {
  font-size: 12px;
}

.team-slot-boost {
  position: static;
  align-self: auto;
  min-width: 30px;
  padding: 2px 5px;
  font-size: 8px;
}

.team-slot-boost.is-empty-boost {
  visibility: hidden;
}

.team-slot-subline {
  margin-top: 1px;
}

.team-slot-level {
  font-size: 8.5px;
}

.team-slot-status {
  font-size: 7.5px;
}

.team-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: 4px;
}

.team-types {
  min-width: 0;
  flex: 1 1 auto;
  margin-top: 0;
  flex-wrap: nowrap;
  gap: 3px;
}

.team-quality {
  flex: 0 0 auto;
  font-size: 7px;
}

.type-badge.compact {
  min-height: 19px;
  padding: 1px 5px 1px 2px;
  gap: 3px;
  font-size: 6.5px;
}

.type-icon.compact {
  width: 13px;
  height: 13px;
  flex-basis: 13px;
}

.hp-track {
  height: 4px;
  margin-top: 5px;
}

.team-footer-note {
  min-height: 31px;
  margin-top: 6px;
  padding-top: 6px;
  font-size: 8px;
}

/* Header do Pokémon: sprite mais importante e melhor uso do lado direito */
.pokemon-workspace {
  grid-template-rows: 116px 47px minmax(0, 1fr);
}

.pokemon-summary {
  min-height: 116px;
  grid-template-columns: 90px minmax(0, 1fr) 190px;
  gap: 17px;
  padding: 12px 18px;
}

.pokemon-summary .sprite-box.large {
  width: 88px;
  height: 88px;
}

.pokemon-summary .sprite-box.large .pokemon-sprite-img {
  width: 116px;
  height: 116px;
}

.summary-name-row h2 {
  font-size: 23px;
}

.summary-meta {
  margin-top: 6px;
}

.summary-tags {
  margin-top: 8px;
}

.tag {
  min-height: 23px;
  padding-inline: 7px;
}

.summary-side {
  min-width: 190px;
  grid-template-columns: minmax(82px, auto) minmax(82px, auto);
  align-items: center;
  justify-content: end;
  gap: 8px;
  padding-left: 14px;
}

.summary-status {
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(49,82,104,.62);
  border-radius: 3px;
  background: rgba(5,17,26,.20);
}

.summary-quality {
  min-width: 82px;
  padding: 7px 9px 6px;
  border: 1px solid rgba(49,82,104,.62);
  border-radius: 3px;
  background: rgba(5,17,26,.20);
}

/* Tabs: menos "botão azul preenchido", mais controle da Hunts */
.manager-tabs {
  min-height: 47px;
  padding: 7px 16px;
}

.manager-tab {
  min-width: 112px;
  min-height: 31px;
}

.manager-tab.is-active {
  background: linear-gradient(180deg,#153c5d,#102e48);
  border-color: #4380aa;
  color: #f4f9fc;
  box-shadow:
    inset 0 -2px 0 #55aff8,
    inset 0 1px 0 rgba(255,255,255,.06),
    0 0 0 1px rgba(5,19,29,.55);
}

/* Conteúdo: elimina os grandes vazios por stretch automático */
.tab-content {
  padding: 12px 14px;
}

.details-layout {
  align-items: start;
  gap: 11px;
}

.content-section {
  align-self: start;
}

.section-header {
  min-height: 39px;
}

.section-body {
  padding: 10px;
}

/* Stats mais fortes e compactos */
.stat-cell {
  min-height: 88px;
  grid-template-columns: 30px minmax(0,1fr);
  gap: 9px;
  padding: 12px;
}

.stat-icon,
.stat-icon-svg {
  width: 24px;
  height: 24px;
}

.stat-copy small {
  margin-bottom: 6px;
}

.stat-copy strong {
  font-size: 20px;
}

/* Painel de informações mais compacto */
.info-row {
  min-height: 37px;
}

.info-row-types {
  min-height: 43px;
}

.exp-block {
  margin-top: 9px;
}

/* Evita excesso de espaço no fim da aba */
.details-layout > .content-section:first-child,
.details-layout > .content-section:last-child {
  height: auto;
}

/* Responsivo acompanha as novas proporções */
@media (max-width: 980px) {
  .pokemon-manager {
    height: calc(100vh - 20px);
  }

  .manager-body {
    grid-template-columns: 224px minmax(0,1fr);
  }

  .team-slot {
    grid-template-columns: 44px minmax(0,1fr);
  }

  .team-slot .sprite-box {
    width: 42px;
    height: 42px;
  }

  .team-slot .pokemon-sprite-img {
    width: 55px;
    height: 55px;
  }

  .pokemon-summary {
    grid-template-columns: 78px minmax(0,1fr) 142px;
  }

  .pokemon-summary .sprite-box.large {
    width: 76px;
    height: 76px;
  }

  .pokemon-summary .sprite-box.large .pokemon-sprite-img {
    width: 98px;
    height: 98px;
  }

  .summary-side {
    min-width: 142px;
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (max-width: 760px) {
  .pokemon-manager {
    grid-template-rows: 62px minmax(0,1fr);
  }

  .manager-titlebar {
    height: 62px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .header-copy h1 {
    font-size: 18px;
  }

  .header-copy p {
    display: none;
  }

  .manager-body {
    grid-template-columns: 184px minmax(0,1fr);
  }

  .pokemon-workspace {
    grid-template-rows: 104px 46px minmax(0,1fr);
  }

  .pokemon-summary {
    grid-template-columns: 64px minmax(0,1fr);
  }

  .summary-side {
    display: none;
  }
}


/* =========================================================
   V13 — CLEAN HIERARCHY
   Menos badges, sprites centralizadas e tipografia revisada.
   ========================================================= */

:root {
  --font-ui: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after,
html,
body,
button,
input,
select,
textarea,
option {
  font-family: var(--font-ui) !important;
}

/* Tipografia: menos pesada e menos condensada */
.manager-titlebar h1 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .015em;
}

.header-copy p {
  font-size: 9.5px;
  letter-spacing: 0;
}

.eyebrow,
.section-label,
.section-header h3,
.metric-label,
.info-row dt {
  letter-spacing: .035em;
}

.summary-name-row h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0;
}

.team-slot-name {
  font-weight: 700;
}

.stat-copy strong {
  font-weight: 700;
}

/* ---------------------------------------------------------
   SPRITES
   O asset já foi normalizado; agora o quadro não deixa vazar.
   --------------------------------------------------------- */

.sprite-box,
.sprite-box.large {
  overflow: hidden;
  place-items: center;
}

.pokemon-sprite-img,
.sprite-box.large .pokemon-sprite-img,
.pokemon-summary .sprite-box.large .pokemon-sprite-img,
.team-slot .pokemon-sprite-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  padding: 3px;
  object-fit: contain;
  object-position: 50% 50%;
  transform: none !important;
  filter: drop-shadow(0 2px 1px rgba(0,0,0,.24));
}

.pokemon-summary .sprite-box.large .pokemon-sprite-img {
  padding: 4px;
}

/* ---------------------------------------------------------
   CABEÇALHO: badges apenas para TYPE.
   Tier / Ball / Boost viram uma linha simples de metadados.
   --------------------------------------------------------- */

.summary-secondary-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
  color: #8fa9bb;
  font-size: 9px;
  font-weight: 600;
}

.summary-meta-separator {
  color: #385d74;
}

.summary-tier-text {
  color: #bf78d3;
  font-weight: 700;
  text-transform: uppercase;
}

.summary-boost-text {
  color: #e1b84f;
  font-weight: 700;
}

/* antigo container de badges não é mais usado */
.summary-tags {
  display: none;
}

/* Status e qualidade deixam de parecer dois badges gigantes */
.summary-side {
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding-left: 18px;
}

.summary-status {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  justify-self: end;
}

.summary-quality {
  min-width: 76px;
  padding: 0;
  border: 0;
  background: transparent;
}

/* ---------------------------------------------------------
   CARD DA EQUIPE: Boost menos "badge".
   Types continuam como badges porque são informação visual.
   --------------------------------------------------------- */

.team-slot-boost {
  min-width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ddb343;
  font-size: 8px;
  font-weight: 700;
}

.team-slot-boost.is-empty-boost {
  display: none;
}

.team-meta-row {
  gap: 7px;
}

.team-quality {
  color: #718b9d;
  font-weight: 600;
}

/* Types continuam sendo o componente forte */
.type-badge {
  box-shadow: none;
}

/* ---------------------------------------------------------
   INFORMAÇÕES: TYPES removido, linhas ficam um pouco mais soltas.
   --------------------------------------------------------- */

.info-row {
  min-height: 40px;
}

.info-row-types,
.info-types {
  display: none !important;
}

/* ---------------------------------------------------------
   Stats: tipografia mais leve e legível com a nova fonte.
   --------------------------------------------------------- */

.stat-copy small {
  font-size: 8px;
  font-weight: 700;
}

.stat-copy strong {
  font-size: 19px;
}

/* ---------------------------------------------------------
   Tabs acompanham a nova tipografia.
   --------------------------------------------------------- */

.manager-tab {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .015em;
}

.category-tab-label {
  line-height: 1;
}

/* Menos uppercase pesado em microtextos */
.team-slot-status,
.team-quality,
.summary-quality,
.summary-status {
  letter-spacing: .01em;
}

@media (max-width: 980px) {
  .summary-side {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}


/* =========================================================
   V14 — TIERS + STONES
   Base visual preservada da V13.
   ========================================================= */

/* TIER COLORS */
.tier-common {
  color: #718b9d !important;
}

.tier-uncommon {
  color: #62c981 !important;
}

.tier-rare {
  color: #61aef0 !important;
}

.tier-epic {
  color: #b47ae8 !important;
}

.tier-legendary {
  color: #f0b83f !important;
}

/* A cor do tier vale tanto na equipe quanto no cabeçalho / informações. */
.team-quality,
.summary-tier-text,
.info-tier {
  transition: color 120ms ease;
}

/* Sem NA BALL: o Level continua no lugar sem criar um vazio visual estranho. */
.team-slot-subline {
  min-height: 13px;
}

.summary-status-placeholder {
  display: block;
  min-width: 1px;
  min-height: 1px;
}

/* =========================================================
   STONE SPRITESHEETS
   640×80 = 8 frames de 80×80.
   O sheet é reduzido para 320×40 e animado em 8 passos.
   ========================================================= */

.stone-sprite {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 320px 40px;
  image-rendering: pixelated;
  animation: stone-spritesheet-play 1.1s steps(8, end) infinite;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .28));
}

@keyframes stone-spritesheet-play {
  from {
    background-position: 0 0;
  }

  to {
    background-position: -320px 0;
  }
}

.requirement-row-stone {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
}

.stone-sprite-evolution {
  justify-self: center;
}

.stone-row {
  grid-template-columns: 46px minmax(0, 1fr) auto;
}

.stone-sprite-boost {
  justify-self: center;
}

/* Remove o antigo placeholder visual caso reste alguma regra anterior. */
.stone-icon {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .stone-sprite {
    animation: none;
    background-position: 0 0;
  }
}

.stone-ancient-stone { background-image: url("assets/stones/ancient-stone.png"); }
.stone-coccon-stone { background-image: url("assets/stones/coccon-stone.png"); }
.stone-crystal-stone { background-image: url("assets/stones/crystal-stone.png"); }
.stone-darkness-stone { background-image: url("assets/stones/darkness-stone.png"); }
.stone-earth-stone { background-image: url("assets/stones/earth-stone.png"); }
.stone-enigma-stone { background-image: url("assets/stones/enigma-stone.png"); }
.stone-feather-stone { background-image: url("assets/stones/feather-stone.png"); }
.stone-fire-stone { background-image: url("assets/stones/fire-stone.png"); }
.stone-heart-stone { background-image: url("assets/stones/heart-stone.png"); }
.stone-ice-stone { background-image: url("assets/stones/ice-stone.png"); }
.stone-leaf-stone { background-image: url("assets/stones/leaf-stone.png"); }
.stone-punch-stone { background-image: url("assets/stones/punch-stone.png"); }
.stone-rock-stone { background-image: url("assets/stones/rock-stone.png"); }
.stone-shiny-stone { background-image: url("assets/stones/shiny-stone.png"); }
.stone-thunder-stone { background-image: url("assets/stones/thunder-stone.png"); }
.stone-venom-stone { background-image: url("assets/stones/venom-stone.png"); }
.stone-water-stone { background-image: url("assets/stones/water-stone.png"); }


/* =========================================================
   V15 — EVOLUTION CTA
   Inspirado diretamente no CTA "IR PARA ESTA HUNT" da Hunts v11.
   ========================================================= */

.evolution-cta-wrap {
  margin-top: 13px;
}

.evolution-cta {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  padding: 0 14px;
  border: 1px solid #55a9e3;
  border-radius: 3px;
  background: linear-gradient(180deg, #2a78b7 0%, #1c5f96 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.13),
    inset 0 -3px 0 rgba(5,31,49,.35),
    0 4px 0 rgba(0,0,0,.18);
  color: #f4f9fc;
  cursor: pointer;
  transition:
    filter 130ms ease,
    transform 80ms ease,
    border-color 130ms ease;
}

.evolution-cta::before {
  content: "";
  position: absolute;
  left: -25%;
  top: 0;
  width: 20%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.11),
    transparent
  );
  transform: skewX(-20deg);
  transition: left .35s ease;
  pointer-events: none;
}

.evolution-cta:hover:not(:disabled)::before {
  left: 115%;
}

.evolution-cta:hover:not(:disabled) {
  filter: brightness(1.06);
  border-color: #68b7ed;
}

.evolution-cta:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.11),
    inset 0 -2px 0 rgba(5,31,49,.35),
    0 2px 0 rgba(0,0,0,.18);
}

.evolution-cta-copy {
  display: grid;
  gap: 3px;
  text-align: left;
  position: relative;
  z-index: 1;
}

.evolution-cta-copy small {
  color: #b7dcf2;
  font-size: 7px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .13em;
}

.evolution-cta-copy strong {
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .015em;
}

.evolution-cta-arrow {
  width: 34px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  position: relative;
  z-index: 1;
  border-left: 1px solid rgba(255,255,255,.18);
  color: #dff2ff;
  font-size: 17px;
  line-height: 1;
}

.evolution-cta:disabled {
  border-color: #354f61;
  background: linear-gradient(180deg, #263743 0%, #1b2b35 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    inset 0 -3px 0 rgba(0,0,0,.18);
  color: #718796;
  cursor: not-allowed;
}

.evolution-cta:disabled::before {
  display: none;
}

.evolution-cta:disabled .evolution-cta-copy small,
.evolution-cta:disabled .evolution-cta-copy strong,
.evolution-cta:disabled .evolution-cta-arrow {
  color: #718796;
}

.evolution-cta:disabled .evolution-cta-arrow {
  border-left-color: rgba(113,135,150,.18);
}


/* =========================================================
   V16 — BOOST CTA
   Mesma linguagem aprovada do botão de Evolução.
   ========================================================= */

.boost-cta-wrap {
  margin-top: 13px;
}

.boost-cta {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  padding: 0 14px;
  border: 1px solid #55a9e3;
  border-radius: 3px;
  background: linear-gradient(180deg, #2a78b7 0%, #1c5f96 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.13),
    inset 0 -3px 0 rgba(5,31,49,.35),
    0 4px 0 rgba(0,0,0,.18);
  color: #f4f9fc;
  cursor: pointer;
  transition:
    filter 130ms ease,
    transform 80ms ease,
    border-color 130ms ease;
}

.boost-cta::before {
  content: "";
  position: absolute;
  left: -25%;
  top: 0;
  width: 20%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.11),
    transparent
  );
  transform: skewX(-20deg);
  transition: left .35s ease;
  pointer-events: none;
}

.boost-cta:hover:not(:disabled)::before {
  left: 115%;
}

.boost-cta:hover:not(:disabled) {
  filter: brightness(1.06);
  border-color: #68b7ed;
}

.boost-cta:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.11),
    inset 0 -2px 0 rgba(5,31,49,.35),
    0 2px 0 rgba(0,0,0,.18);
}

.boost-cta-copy {
  display: grid;
  gap: 3px;
  text-align: left;
  position: relative;
  z-index: 1;
}

.boost-cta-copy small {
  color: #b7dcf2;
  font-size: 7px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .13em;
}

.boost-cta-copy strong {
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .015em;
}

.boost-cta-arrow {
  width: 34px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  position: relative;
  z-index: 1;
  border-left: 1px solid rgba(255,255,255,.18);
  color: #dff2ff;
  font-size: 17px;
  line-height: 1;
}

.boost-cta:disabled {
  border-color: #354f61;
  background: linear-gradient(180deg, #263743 0%, #1b2b35 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    inset 0 -3px 0 rgba(0,0,0,.18);
  color: #718796;
  cursor: not-allowed;
}

.boost-cta:disabled::before {
  display: none;
}

.boost-cta:disabled .boost-cta-copy small,
.boost-cta:disabled .boost-cta-copy strong,
.boost-cta:disabled .boost-cta-arrow {
  color: #718796;
}

.boost-cta:disabled .boost-cta-arrow {
  border-left-color: rgba(113,135,150,.18);
}


/* =========================================================
   V17 — BOOST ICON + COMBAT SHEET
   ========================================================= */

/* O SVG de BOOST tem mais espaço vazio interno que os demais.
   Mantemos a caixa idêntica e compensamos só o desenho visual. */
.manager-tab[data-tab="boost"] .category-tab-icon {
  transform: scale(1.20);
  transform-origin: center;
}

/* A grade antiga de seis cards deixa de ser usada. */
.stat-grid,
.stat-cell,
.stat-copy {
  all: unset;
}

/* Ficha de atributos: 2 colunas, 3 linhas cada.
   Mais próxima de uma tela de stats de jogo e menos de dashboard. */
.combat-sheet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #284d66;
  border-radius: 4px;
  background: #071824;
}

.combat-stat-column {
  min-width: 0;
}

.combat-stat-column + .combat-stat-column {
  border-left: 1px solid #284d66;
}

.combat-stat-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border-bottom: 1px solid #203f55;
  background: linear-gradient(
    180deg,
    rgba(13, 35, 52, .72),
    rgba(8, 25, 38, .72)
  );
}

.combat-stat-row:last-child {
  border-bottom: 0;
}

.combat-stat-row:hover {
  background: linear-gradient(
    180deg,
    rgba(16, 43, 64, .82),
    rgba(10, 30, 45, .82)
  );
}

.combat-stat-row .stat-icon {
  width: 21px;
  height: 21px;
  color: #64aee0;
  opacity: .92;
}

.combat-stat-row .stat-icon-svg {
  width: 21px;
  height: 21px;
  max-width: 21px;
  max-height: 21px;
}

.combat-stat-label {
  min-width: 0;
  color: #7f9caf;
  font-size: 8px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.combat-stat-value {
  color: #e1edf4;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  text-align: right;
}

/* O painel de atributos não precisa mais ser alto. */
.details-layout > .content-section:first-child .section-body {
  padding: 10px;
}

/* Mantém o painel visualmente equilibrado com Informações. */
.details-layout {
  align-items: start;
}

@media (max-width: 760px) {
  .combat-sheet {
    grid-template-columns: 1fr;
  }

  .combat-stat-column + .combat-stat-column {
    border-left: 0;
    border-top: 1px solid #284d66;
  }
}


/* =========================================================
   V18 — BOOST INFORMATION
   ========================================================= */

.boost-info-panel {
  margin-top: 11px;
  overflow: hidden;
  border: 1px solid #284d66;
  border-radius: 4px;
  background: #071824;
}

.boost-info-header {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  border-bottom: 1px solid #203f55;
  background: linear-gradient(
    180deg,
    rgba(15, 39, 57, .82),
    rgba(9, 27, 40, .82)
  );
}

.boost-info-header .metric-label {
  margin-bottom: 4px;
}

.boost-info-header strong {
  display: block;
  color: #d9e6ee;
  font-size: 10px;
  font-weight: 700;
}

.boost-info-state {
  min-width: 58px;
  padding: 4px 7px;
  border: 1px solid #38546a;
  border-radius: 3px;
  color: #71899a;
  font-size: 7px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .05em;
  text-align: center;
}

.boost-info-state.is-ready {
  border-color: #3d7c5a;
  color: #63ca84;
  background: rgba(26, 78, 48, .18);
}

.boost-info-state.is-locked {
  border-color: #6c5527;
  color: #d9aa45;
  background: rgba(78, 60, 24, .16);
}

.boost-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.boost-info-row {
  min-height: 39px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border-bottom: 1px solid #1d3a4f;
}

.boost-info-row:nth-child(odd) {
  border-right: 1px solid #1d3a4f;
}

.boost-info-row:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.boost-info-row span {
  color: #7c96a8;
  font-size: 8px;
  font-weight: 600;
}

.boost-info-row strong {
  color: #d7e4ec;
  font-size: 9px;
  font-weight: 700;
  text-align: right;
}

.boost-info-note {
  margin: 0;
  padding: 8px 11px;
  border-top: 1px solid #203f55;
  color: #6f8798;
  font-size: 8px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .boost-info-grid {
    grid-template-columns: 1fr;
  }

  .boost-info-row:nth-child(odd) {
    border-right: 0;
  }

  .boost-info-row:nth-last-child(-n + 2) {
    border-bottom: 1px solid #1d3a4f;
  }

  .boost-info-row:last-child {
    border-bottom: 0;
  }
}


/* =========================================================
   V23 — POWER ICON
   ========================================================= */

.summary-power-label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.summary-power-icon {
  width: 13px;
  height: 13px;
  display: inline-grid;
  place-items: center;
  color: #6f93aa;
  flex: 0 0 13px;
}

.summary-power-icon-svg {
  width: 13px;
  height: 13px;
  max-width: 13px;
  max-height: 13px;
  display: block;
  color: inherit;
  fill: currentColor;
}

.summary-power strong {
  margin-top: 3px;
}


/* =========================================================
   V24 — POWER READABILITY
   ========================================================= */

.summary-power {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.summary-power-label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 18px;
  color: #a9c4d6;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .045em;
  line-height: 1;
  text-transform: uppercase;
}

.summary-power-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-grid;
  place-items: center;
  color: #79b7df;
}

.summary-power-icon-svg {
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
  display: block;
  color: inherit;
  fill: currentColor;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.45));
}

.summary-power strong {
  margin-top: 1px;
  color: #f0f6fa;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .01em;
}


/* =========================================================
   V25 — NEW SPECIAL STAT ICONS
   ========================================================= */

/* O novo SP. ATK é uma silhueta preenchida; leve compensação óptica. */
.combat-stat-row:has(.combat-stat-label:nth-child(2)) {
  /* structure marker only; no layout change */
}

/* Mantém ambos no mesmo box visual dos outros atributos. */
.combat-stat-row .stat-icon {
  overflow: visible;
}

.combat-stat-row .stat-icon-svg {
  color: inherit;
  fill: currentColor;
}

/* O sparkle preenchido fica ligeiramente menor para equilibrar com espada/escudo. */
.combat-stat-row:has(.combat-stat-label) .stat-icon-svg {
  transform-origin: center;
}

}

/* Host integration: the shared drawer becomes a centered overlay only for Team. */
.game-drawer.pokemon-manager-expanded {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translateX(0) scale(.985);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.game-drawer.pokemon-manager-expanded.open {
  transform: translateX(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.game-drawer.pokemon-manager-expanded::before,
.game-drawer.pokemon-manager-expanded > .drawer-header { display:none; }
.game-drawer.pokemon-manager-expanded > .drawer-view[data-view="pokemon"] {
  display:none;
  width:100%;
  height:100%;
  padding:0;
  overflow:visible;
  align-items:center;
  justify-content:center;
}
.game-drawer.pokemon-manager-expanded > .drawer-view[data-view="pokemon"].active { display:flex; }
.drawer-backdrop.pokemon-manager-backdrop {
  background:rgba(1,7,12,.72);
  backdrop-filter:blur(2px);
}
.pokemon-manager-shell .manager-legacy-bindings { display:none !important; }
.drawer-view[data-view="pokemon"] .pokemon-manager-shell .pokemon-summary {
  border: 0 !important;
  border-bottom: 1px solid #1f4058 !important;
  border-radius: 0 !important;
  background:
    linear-gradient(90deg, rgba(59,137,194,.07), transparent 43%),
    linear-gradient(180deg,#081c2b,#061621) !important;
  box-shadow: none !important;
}
.pokemon-manager-shell .manager-held-visual,
.pokemon-manager-shell .manager-held-visual .animated-item-fallback,
.pokemon-manager-shell .manager-held-visual .animated-item-viewport { width:48px; height:48px; }
.pokemon-manager-shell .manager-aura-copy { display:grid; gap:3px; }
.pokemon-manager-shell .manager-aura-copy em { color:#6f8ca0; font-size:8px; font-style:normal; }
.pokemon-manager-shell { margin:0; }
.pokemon-manager-shell .manager-aura-section .section-body { min-height:0; overflow:auto; }
.pokemon-manager-shell .aura-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
.pokemon-manager-shell .aura-card { min-height:100px; }
.pokemon-manager-shell .aura-preview .premier-aura-swatch { width:28px; height:28px; flex-basis:28px; }
.pokemon-manager-shell .aura-preview .premier-aura-swatch.no-aura::after { margin-top:13px; }
.pokemon-manager-shell .manager-aura-status { min-height:14px; margin:8px 0 0; color:#6f8ca0; font-size:8px; }
.pokemon-manager-shell .manager-aura-status.is-error { color:#f39797; }
.pokemon-manager-shell .aura-confirm-wrap { margin-top:10px; }
.pokemon-manager-shell .aura-confirm-cta { width:100%; }
.pokemon-manager-shell .manager-held-layout {
  height:100%;
  min-height:0;
  grid-template-columns:minmax(210px,.72fr) minmax(0,1.28fr);
}
.pokemon-manager-shell .manager-held-layout > .content-section,
.pokemon-manager-shell .manager-held-inventory .section-body {
  min-height:0;
}
.pokemon-manager-shell .manager-held-inventory .section-body {
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  overflow:hidden;
}
.pokemon-manager-shell .manager-held-filters {
  display:flex;
  gap:5px;
  padding-bottom:7px;
  border-bottom:1px solid #1e3d51;
}
.pokemon-manager-shell .manager-held-filters button {
  min-height:25px;
  padding:4px 9px;
  border:1px solid #2a5068;
  border-radius:3px;
  background:#081923;
  color:#7896a9;
  font-family:var(--font-display);
  font-size:7px;
  font-weight:850;
  letter-spacing:.055em;
  cursor:pointer;
}
.pokemon-manager-shell .manager-held-filters button:hover { border-color:#477b9c; color:#b9d5e5; }
.pokemon-manager-shell .manager-held-filters button.is-active {
  border-color:#55a8d8;
  background:#123a56;
  color:#d9f1ff;
  box-shadow:inset 2px 0 0 #66c7f5,var(--inner);
}
.pokemon-manager-shell .manager-held-family-list {
  min-height:0;
  display:grid;
  align-content:start;
  gap:7px;
  padding:5px 4px 6px 1px;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:thin;
  scrollbar-color:#31556d #071621;
}
.pokemon-manager-shell .manager-held-family {
  position:relative;
  display:grid;
  grid-template-columns:118px minmax(0,1fr);
  gap:8px;
  align-items:center;
  padding:7px;
  border:1px solid #203f53;
  border-radius:3px;
  background:#071621;
  box-shadow:var(--inner);
}
.pokemon-manager-shell .manager-held-family:hover,
.pokemon-manager-shell .manager-held-family:focus-within {
  z-index:1;
  border-color:#315c77;
  background:#091b27;
  box-shadow:0 3px 12px rgba(0,0,0,.2),var(--inner);
}
.pokemon-manager-shell .manager-held-family.is-incompatible {
  border-color:#263d4b;
  background:#07141d;
  opacity:.68;
}
.pokemon-manager-shell .manager-held-family > header {
  min-width:0;
  display:grid;
  grid-template-columns:32px minmax(0,1fr);
  gap:7px;
  align-items:center;
}
.pokemon-manager-shell .manager-held-family-copy { min-width:0; }
.pokemon-manager-shell .manager-held-requirement {
  grid-column:1 / -1;
  justify-self:start;
  color:#d79a87;
  font-size:6px;
  letter-spacing:.065em;
}
.pokemon-manager-shell .manager-held-requirement.is-compatible { color:#6fbd91; }
.pokemon-manager-shell .manager-held-family-icon,
.pokemon-manager-shell .manager-held-family-icon .animated-item-fallback,
.pokemon-manager-shell .manager-held-family-icon .animated-item-viewport {
  width:32px;
  height:32px;
}
.pokemon-manager-shell .manager-held-family header span { min-width:0; }
.pokemon-manager-shell .manager-held-family header strong {
  display:block;
  overflow:hidden;
  color:#d8e8f1;
  font-family:var(--font-display);
  font-size:8px;
  letter-spacing:.035em;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pokemon-manager-shell .manager-held-family header small {
  display:block;
  margin-top:2px;
  color:#68869a;
  font-size:7px;
}
.pokemon-manager-shell .manager-held-tier-grid {
  display:grid;
  grid-template-columns:repeat(7,minmax(42px,1fr));
  gap:4px;
}
.pokemon-manager-shell .manager-held-tier-wrap {
  position:relative;
  min-width:0;
}
.pokemon-manager-shell .manager-held-tooltip {
  position:fixed;
  z-index:12;
  width:max-content;
  max-width:180px;
  padding:6px 7px;
  border:1px solid #315c77;
  border-radius:3px;
  background:#06131d;
  color:#b9d2e1;
  box-shadow:0 7px 18px rgba(0,0,0,.48),var(--inner);
  font-size:7px;
  line-height:1.35;
  pointer-events:none;
}
.pokemon-manager-shell .manager-held-tooltip.hidden { display:none; }
.pokemon-manager-shell .manager-held-tier-card {
  width:100%;
  min-height:46px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:1px;
  padding:3px 2px;
  border:1px solid #2a5068;
  border-radius:3px;
  background:#0a1b27;
  color:#bcd0dc;
  cursor:pointer;
  box-shadow:var(--inner);
}
.pokemon-manager-shell .manager-held-tier-card:not(:disabled):hover {
  border-color:#4b8ab0;
  background:#102a3d;
}
.pokemon-manager-shell .manager-held-tier-card.is-selected {
  border-color:#65c7ff;
  background:linear-gradient(180deg,#174f76,#10334d);
  box-shadow:inset 0 0 0 1px rgba(101,199,255,.22),0 0 10px rgba(53,163,224,.18);
}
.pokemon-manager-shell .manager-held-tier-card:disabled {
  opacity:.38;
  cursor:not-allowed;
}
.pokemon-manager-shell .manager-held-tier-card.is-empty { opacity:.34; }
.pokemon-manager-shell .manager-held-tier-card.has-stock:not(:disabled) {
  border-color:#3b6d88;
  background:#0c2230;
}
.pokemon-manager-shell .manager-held-tier-label { color:#d8edf8; font-size:8px; font-weight:900; }
.pokemon-manager-shell .manager-held-tier-effect { color:#78d59c; font-size:7px; font-weight:800; }
.pokemon-manager-shell .manager-held-tier-amount { color:#829dad; font-size:7px; }
.pokemon-manager-shell .manager-held-tier-card.has-stock .manager-held-tier-amount { color:#ffd470; font-size:8px; font-weight:900; }
.pokemon-manager-shell .manager-held-action-area {
  display:grid;
  gap:6px;
  padding-top:8px;
  border-top:1px solid #1e3d51;
}
.pokemon-manager-shell .manager-held-selection {
  min-height:45px;
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  gap:8px;
  align-items:center;
  padding:6px 8px;
  border:1px solid #31556d;
  border-radius:3px;
  background:#081923;
}
.pokemon-manager-shell .manager-held-selection.is-empty {
  grid-template-columns:1fr;
  place-items:center;
  color:#69879a;
  font-size:8px;
}
.pokemon-manager-shell .manager-held-selection .manager-held-visual,
.pokemon-manager-shell .manager-held-selection .manager-held-visual .animated-item-fallback,
.pokemon-manager-shell .manager-held-selection .manager-held-visual .animated-item-viewport { width:36px; height:36px; }
.pokemon-manager-shell .manager-held-selection span { display:grid; gap:2px; min-width:0; }
.pokemon-manager-shell .manager-held-selection small { color:#69bce9; font-size:6px; font-weight:850; letter-spacing:.08em; }
.pokemon-manager-shell .manager-held-selection strong { color:#dcebf4; font-size:9px; }
.pokemon-manager-shell .manager-held-selection b { color:#8fcbe9; font-size:7px; }
.pokemon-manager-shell .manager-held-selection em { color:#7895a8; font-size:7px; font-style:normal; }
.pokemon-manager-shell .manager-held-status { min-height:11px; margin:0; color:#6f8ca0; font-size:7px; }
.pokemon-manager-shell .manager-held-status.is-error { color:#f39797; }
.pokemon-manager-shell .manager-held-equip-cta { width:100%; }
.pokemon-manager-shell .manager-held-filter-empty {
  min-height:80px;
  display:grid;
  place-items:center;
  color:#68869a;
  font-size:8px;
}
.pokemon-manager-shell .manager-current-held-info {
  display:grid;
  justify-items:start;
}
.pokemon-manager-shell .manager-held-removal {
  display:grid;
  gap:5px;
  margin-top:14px;
  padding-top:11px;
  border-top:1px solid #29475d;
}
.pokemon-manager-shell .manager-held-removal strong {
  color:#e6c379;
  font-size:10px;
}
.pokemon-manager-shell .manager-held-remove-cta { width:100%; }
.pokemon-manager-shell .evolution-cta.danger-cta {
  border-color:#c65461;
  background:linear-gradient(180deg,#a93644 0%,#7c202d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -3px 0 rgba(52,4,12,.38),
    0 4px 0 rgba(0,0,0,.18);
}
.pokemon-manager-shell .evolution-cta.danger-cta:hover:not(:disabled) {
  border-color:#e16b77;
}
.pokemon-manager-shell .evolution-cta.danger-cta .evolution-cta-copy small { color:#f4bcc2; }
.pokemon-manager-shell .evolution-cta.danger-cta .evolution-cta-arrow {
  border-left-color:rgba(255,255,255,.2);
  color:#ffe4e7;
}
.pokemon-manager-shell .evolution-cta.danger-cta:disabled {
  border-color:#574047;
  background:linear-gradient(180deg,#40272d 0%,#302026 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    inset 0 -3px 0 rgba(0,0,0,.18);
}
.pokemon-manager-shell .evolution-cta.danger-cta:disabled .evolution-cta-copy small,
.pokemon-manager-shell .evolution-cta.danger-cta:disabled .evolution-cta-copy strong,
.pokemon-manager-shell .evolution-cta.danger-cta:disabled .evolution-cta-arrow { color:#846d73; }
.pokemon-manager-shell .manager-current-held-empty { display:grid; justify-items:start; }
.pokemon-manager-shell .boost-unavailable { opacity:.86; }
.pokemon-boost-level {
  margin-left:5px;
  color:#e1b84f;
  font-style:normal;
  font-weight:800;
  white-space:nowrap;
}
.manager-boost-stones {
  display:grid;
  gap:7px;
}
.manager-boost-stone {
  width:100%;
  color:inherit;
  font:inherit;
  text-align:left;
  cursor:pointer;
}
.manager-boost-stone:hover:not(:disabled),
.manager-boost-stone.is-selected {
  border-color:#55aff8;
  box-shadow:inset 0 0 0 1px rgba(85,175,248,.18),0 0 12px rgba(42,132,197,.12);
}
.manager-boost-stone:disabled { cursor:default; opacity:.68; }
.manager-boost-quantity {
  display:grid;
  gap:6px;
  margin-top:10px;
}
.manager-boost-presets {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;
}
.manager-boost-preset {
  min-height:38px;
  display:grid;
  place-content:center;
  gap:2px;
  border:1px solid #31556d;
  border-radius:3px;
  background:linear-gradient(180deg,#0d2231,#081722);
  color:#b9d8ec;
  font:800 10px/1 var(--font-ui);
  cursor:pointer;
}
.manager-boost-preset small {
  color:#6f8ca0;
  font-size:7px;
  font-weight:700;
}
.manager-boost-preset:hover:not(:disabled),
.manager-boost-preset.is-selected {
  border-color:#55aff8;
  color:#fff;
  box-shadow:inset 0 0 0 1px rgba(85,175,248,.18),0 0 10px rgba(42,132,197,.12);
}
.manager-boost-preset:disabled { cursor:not-allowed; opacity:.5; }
.stone-required { color:#9db3c2; font-size:9px; font-weight:700; }
.discreet-note.is-error { color:#e67b7b; }
.pokemon-manager-shell .pokemon-ui-sprite-frame > img.pokemon-sprite-img.pokemon-ui-sprite-centered {
  position:static !important;
  inset:auto !important;
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  margin:auto !important;
  object-fit:contain !important;
  object-position:center !important;
  transform:none !important;
}
.pokemon-manager-shell .manager-details-view {
  display:flex;
  flex-direction:column;
  min-height:100%;
}
.pokemon-manager-shell .manager-training-panel {
  display:grid;
  gap:8px;
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid #1d3c50;
}
.pokemon-manager-shell .manager-training-copy {
  display:grid;
  gap:3px;
}
.pokemon-manager-shell .manager-training-copy strong {
  color:#c9dce8;
  font-family:var(--font-display);
  font-size:10px;
  letter-spacing:.04em;
}
.pokemon-manager-shell .manager-training-copy span {
  color:#6f8ca0;
  font-size:8px;
  line-height:1.35;
}
.pokemon-manager-shell .training-cta:not(:disabled) {
  border-color:#d1a33a;
  background:linear-gradient(180deg,#b27b21 0%,#805314 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),inset 0 -3px 0 rgba(58,34,3,.38),0 4px 0 rgba(0,0,0,.18);
}
.pokemon-manager-shell .training-cta:not(:disabled) .evolution-cta-copy small {
  color:#f5dc9a;
}
.pokemon-manager-shell .training-cta:not(:disabled) .evolution-cta-arrow {
  color:#fff1c7;
}
.pokemon-manager-shell .evolution-max-state {
  min-height:330px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:10px;
  text-align:center;
}
.pokemon-manager-shell .evolution-max-state strong {
  color:#76d7ff;
  font-family:var(--font-display);
  font-size:16px;
  letter-spacing:.08em;
}
.pokemon-manager-shell .evolution-max-state p {
  margin:0;
  color:#7895a9;
  font-size:10px;
}
@media (max-width:760px), (max-width:900px) and (max-height:560px) {
  .game-drawer.pokemon-manager-expanded { padding:6px; }
  .pokemon-manager-shell { min-height:0; }
  .pokemon-manager-shell .aura-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .pokemon-manager-shell .manager-held-family { grid-template-columns:100px minmax(0,1fr); }
  .pokemon-manager-shell .manager-held-tier-grid { grid-template-columns:repeat(4,minmax(42px,1fr)); }
}

@media (max-width:560px) {
  .pokemon-manager-shell .aura-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pokemon-manager-shell .manager-held-layout { grid-template-columns:1fr; overflow:auto; }
}

/* Mobile pass: mantém o workspace íntegro e transforma a equipe em faixa horizontal. */
@media (max-width:760px), (max-width:900px) and (max-height:560px) {
  .game-drawer.pokemon-manager-expanded {
    width:100%;
    height:100dvh;
    max-height:100dvh;
    padding:
      max(6px,env(safe-area-inset-top))
      max(6px,env(safe-area-inset-right))
      max(6px,env(safe-area-inset-bottom))
      max(6px,env(safe-area-inset-left));
  }

  .pokemon-manager-shell {
    width:100%;
    height:100%;
    min-height:0;
    max-height:100%;
    grid-template-rows:58px minmax(0,1fr);
  }

  .pokemon-manager-shell .manager-titlebar {
    height:58px;
    min-height:58px;
    padding:0 10px;
  }

  .pokemon-manager-shell .manager-titlebar .brand-mark {
    width:42px;
    height:42px;
  }

  .pokemon-manager-shell .header-actions .icon-button {
    width:44px;
    height:44px;
  }

  .pokemon-manager-shell .manager-body {
    grid-template-columns:1fr;
    grid-template-rows:142px minmax(0,1fr);
    overflow:hidden;
  }

  .pokemon-manager-shell .team-panel {
    grid-template-rows:auto minmax(0,1fr);
    padding:6px 7px;
    overflow:hidden;
    border-right:0;
    border-bottom:1px solid #1f4058;
  }

  .pokemon-manager-shell .panel-heading {
    min-height:32px;
    margin-bottom:5px;
    padding:4px 8px;
  }

  .pokemon-manager-shell .team-list {
    min-width:0;
    display:flex;
    align-items:stretch;
    gap:6px;
    overflow-x:auto;
    overflow-y:hidden;
    padding:0 0 4px;
    scroll-snap-type:x proximity;
    overscroll-behavior-x:contain;
  }

  .pokemon-manager-shell .team-slot {
    min-width:0;
    min-height:82px;
    flex:0 0 150px;
    grid-template-columns:46px minmax(0,1fr);
    gap:7px;
    margin:0;
    padding:6px;
    scroll-snap-align:start;
  }

  .pokemon-manager-shell .team-slot.is-empty {
    min-height:82px;
    flex-basis:112px;
  }

  .pokemon-manager-shell .team-slot .sprite-box {
    width:44px;
    height:44px;
  }

  .pokemon-manager-shell .team-footer-note {
    display:none;
  }

  .pokemon-manager-shell .manager-body > .pokemon-workspace {
    grid-template-rows:98px 48px minmax(0,1fr);
    overflow:hidden;
  }

  .pokemon-manager-shell .pokemon-summary {
    min-height:98px;
    grid-template-columns:66px minmax(0,1fr);
    gap:10px;
    padding:9px 11px;
  }

  .pokemon-manager-shell .pokemon-summary .sprite-box.large {
    width:64px;
    height:64px;
  }

  .pokemon-manager-shell .summary-name-row h2 {
    max-width:100%;
    overflow:hidden;
    font-size:18px;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .pokemon-manager-shell .summary-secondary-meta {
    gap:5px;
    margin-top:5px;
    font-size:8px;
  }

  .pokemon-manager-shell .manager-tabs {
    min-width:0;
    min-height:48px;
    gap:5px;
    overflow-x:auto;
    overflow-y:hidden;
    padding:4px 7px;
    scrollbar-width:none;
    overscroll-behavior-x:contain;
  }

  .pokemon-manager-shell .manager-tabs::-webkit-scrollbar { display:none; }

  .pokemon-manager-shell .manager-tab {
    min-width:96px;
    min-height:40px;
    flex:0 0 96px;
  }

  .pokemon-manager-shell .tab-content {
    padding:9px;
    overscroll-behavior:contain;
  }

  .pokemon-manager-shell .manager-held-layout {
    height:auto;
    min-height:100%;
    grid-template-columns:1fr;
    overflow:visible;
  }

  .pokemon-manager-shell .manager-held-inventory .section-body {
    overflow:visible;
  }

  .pokemon-manager-shell .manager-held-family {
    grid-template-columns:1fr;
  }

  .pokemon-manager-shell .manager-held-tier-grid {
    grid-template-columns:repeat(4,minmax(44px,1fr));
  }

  .pokemon-manager-shell .manager-held-filters {
    overflow-x:auto;
    overscroll-behavior-x:contain;
  }

  .pokemon-manager-shell .manager-held-filters button,
  .pokemon-manager-shell .manager-held-tier-card,
  .pokemon-manager-shell .manager-boost-preset,
  .pokemon-manager-shell .aura-card button {
    min-height:44px;
  }

  .pokemon-manager-shell .manager-boost-presets {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:480px) {
  .pokemon-manager-shell .manager-body {
    grid-template-rows:132px minmax(0,1fr);
  }

  .pokemon-manager-shell .team-slot {
    flex-basis:142px;
  }

  .pokemon-manager-shell .aura-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:900px) and (max-height:560px) {
  .pokemon-manager-shell {
    grid-template-rows:52px minmax(0,1fr);
  }

  .pokemon-manager-shell .manager-titlebar {
    height:52px;
    min-height:52px;
  }

  .pokemon-manager-shell .manager-body {
    grid-template-rows:104px minmax(0,1fr);
  }

  .pokemon-manager-shell .panel-heading,
  .pokemon-manager-shell .team-footer-note {
    display:none;
  }
}

/* =========================================================
   Mobile V2 — composição vertical real e uma rolagem principal
   ========================================================= */
@media (max-width:768px), (max-width:900px) and (max-height:560px) {
  .drawer-backdrop.pokemon-manager-backdrop {
    z-index:89;
  }

  .game-drawer.pokemon-manager-expanded {
    z-index:90;
    box-sizing:border-box;
    width:100vw;
    height:100dvh;
    max-height:100dvh;
    padding:
      max(6px,env(safe-area-inset-top))
      max(6px,env(safe-area-inset-right))
      max(6px,env(safe-area-inset-bottom))
      max(6px,env(safe-area-inset-left));
    overflow:hidden;
  }

  .game-drawer.pokemon-manager-expanded > .drawer-view[data-view="pokemon"],
  .game-drawer.pokemon-manager-expanded > .drawer-view[data-view="pokemon"].active {
    min-width:0;
    min-height:0;
    overflow:hidden;
  }

  .game-drawer.pokemon-manager-expanded .pokemon-manager-shell {
    width:100%;
    height:100%;
    min-width:0;
    min-height:0;
    max-height:100%;
    grid-template-rows:auto minmax(0,1fr);
    overflow:hidden;
  }

  .game-drawer.pokemon-manager-expanded .manager-titlebar {
    position:sticky;
    inset-block-start:0;
    z-index:30;
    width:100%;
    height:auto;
    min-height:58px;
    display:flex;
    flex:0 0 auto;
    align-items:center;
    gap:8px;
    padding:6px 8px 6px 10px;
  }

  .game-drawer.pokemon-manager-expanded .manager-titlebar .header-copy {
    min-width:0;
    flex:1 1 auto;
  }

  .game-drawer.pokemon-manager-expanded .manager-titlebar .header-copy h1 {
    overflow:hidden;
    font-size:clamp(16px,5vw,21px);
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .game-drawer.pokemon-manager-expanded .manager-titlebar .header-copy p {
    display:none;
  }

  .game-drawer.pokemon-manager-expanded .manager-titlebar .header-actions {
    position:relative;
    z-index:31;
    min-width:44px;
    flex:0 0 44px;
    display:flex !important;
    margin-left:auto;
    visibility:visible;
  }

  .game-drawer.pokemon-manager-expanded .manager-titlebar .close-button {
    width:44px;
    height:44px;
    display:grid !important;
    place-items:center;
    flex:0 0 44px;
    visibility:visible;
    pointer-events:auto;
  }

  .game-drawer.pokemon-manager-expanded .manager-body {
    min-width:0;
    min-height:0;
    display:flex;
    flex-direction:column;
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
  }

  .game-drawer.pokemon-manager-expanded .team-panel {
    width:100%;
    min-width:0;
    min-height:136px;
    max-height:148px;
    flex:0 0 auto;
    display:grid;
    grid-template-rows:auto minmax(0,1fr);
    padding:6px 7px;
    overflow:hidden;
    border-right:0;
    border-bottom:1px solid #1f4058;
  }

  .game-drawer.pokemon-manager-expanded .team-list {
    width:100%;
    min-width:0;
    display:flex;
    align-items:stretch;
    gap:6px;
    overflow-x:auto;
    overflow-y:hidden;
    padding:0 0 4px;
    scroll-snap-type:x proximity;
    overscroll-behavior-x:contain;
  }

  .game-drawer.pokemon-manager-expanded .team-slot {
    min-width:0;
    min-height:82px;
    flex:0 0 150px;
    grid-template-columns:46px minmax(0,1fr);
    gap:7px;
    margin:0;
    padding:6px;
    scroll-snap-align:start;
  }

  .game-drawer.pokemon-manager-expanded .team-slot.is-empty {
    flex-basis:112px;
    min-height:82px;
  }

  .game-drawer.pokemon-manager-expanded .pokemon-workspace {
    width:100%;
    min-width:0;
    min-height:0;
    flex:0 0 auto;
    display:flex;
    flex-direction:column;
    overflow:visible;
  }

  .game-drawer.pokemon-manager-expanded .pokemon-summary {
    width:100%;
    min-width:0;
    min-height:0;
    display:grid;
    grid-template-columns:66px minmax(0,1fr);
    grid-template-rows:auto auto;
    gap:8px 10px;
    padding:9px 11px;
  }

  .game-drawer.pokemon-manager-expanded .summary-side {
    min-width:0;
    grid-column:1 / -1;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:7px;
    padding:0;
  }

  .game-drawer.pokemon-manager-expanded .summary-status,
  .game-drawer.pokemon-manager-expanded .summary-quality {
    min-width:0;
    width:100%;
  }

  .game-drawer.pokemon-manager-expanded .manager-tabs {
    width:100%;
    min-width:0;
    min-height:48px;
    flex:0 0 auto;
    display:flex;
    flex-wrap:nowrap;
    gap:5px;
    overflow-x:auto;
    overflow-y:hidden;
    padding:4px 7px;
    scrollbar-width:none;
    overscroll-behavior-x:contain;
  }

  .game-drawer.pokemon-manager-expanded .manager-tabs::-webkit-scrollbar {
    display:none;
  }

  .game-drawer.pokemon-manager-expanded .manager-tab {
    min-width:96px;
    min-height:44px;
    flex:0 0 96px;
    white-space:nowrap;
  }

  .game-drawer.pokemon-manager-expanded .tab-content {
    width:100%;
    min-width:0;
    min-height:0;
    flex:0 0 auto;
    padding:9px;
    overflow:visible;
  }

  .game-drawer.pokemon-manager-expanded .details-layout,
  .game-drawer.pokemon-manager-expanded .evolution-stage,
  .game-drawer.pokemon-manager-expanded .boost-top,
  .game-drawer.pokemon-manager-expanded .manager-held-layout {
    width:100%;
    min-width:0;
    height:auto;
    min-height:0;
    grid-template-columns:minmax(0,1fr);
    overflow:visible;
  }

  .game-drawer.pokemon-manager-expanded .details-layout {
    display:flex;
    flex-direction:column;
    align-items:stretch;
  }

  .game-drawer.pokemon-manager-expanded .details-layout > .content-section,
  .game-drawer.pokemon-manager-expanded .details-layout > .content-section:first-child .combat-sheet,
  .game-drawer.pokemon-manager-expanded .manager-training-panel {
    width:100%;
    min-width:0;
    box-sizing:border-box;
  }

  /* No mobile, Treinamento vem depois de Informações sem alterar o DOM desktop. */
  .game-drawer.pokemon-manager-expanded .details-layout > .content-section:first-child,
  .game-drawer.pokemon-manager-expanded .details-layout > .content-section:first-child > .section-body {
    display:contents;
  }

  .game-drawer.pokemon-manager-expanded .details-layout > .content-section:first-child > .section-header {
    order:1;
    border:1px solid #24465f;
    border-bottom:0;
    border-radius:3px 3px 0 0;
  }

  .game-drawer.pokemon-manager-expanded .details-layout > .content-section:first-child .combat-sheet {
    order:2;
    padding:10px;
    border:1px solid #24465f;
    border-top:0;
    border-radius:0 0 3px 3px;
    background:#071724;
  }

  .game-drawer.pokemon-manager-expanded .details-layout > .content-section:last-child {
    order:3;
  }

  .game-drawer.pokemon-manager-expanded .manager-training-panel {
    order:4;
    margin:0;
    padding:11px;
    border:1px solid #24465f;
    border-radius:3px;
    background:#071724;
  }

  .game-drawer.pokemon-manager-expanded .manager-held-inventory .section-body,
  .game-drawer.pokemon-manager-expanded .manager-aura-section .section-body,
  .game-drawer.pokemon-manager-expanded .manager-held-family-list {
    min-height:0;
    overflow:visible;
  }

  .game-drawer.pokemon-manager-expanded .manager-held-family {
    grid-template-columns:minmax(0,1fr);
  }

  .game-drawer.pokemon-manager-expanded .manager-held-tier-grid {
    grid-template-columns:repeat(4,minmax(44px,1fr));
  }

  .game-drawer.pokemon-manager-expanded .manager-held-filters,
  .game-drawer.pokemon-manager-expanded .manager-boost-stones,
  .game-drawer.pokemon-manager-expanded .manager-boost-quantity,
  .game-drawer.pokemon-manager-expanded .aura-confirm-wrap {
    width:100%;
    min-width:0;
  }

  .game-drawer.pokemon-manager-expanded .manager-held-filters {
    overflow-x:auto;
    overflow-y:hidden;
  }

  .game-drawer.pokemon-manager-expanded .manager-boost-presets {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .game-drawer.pokemon-manager-expanded .aura-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .game-drawer.pokemon-manager-expanded .pokemon-actions:not(:empty) {
    width:100%;
    min-width:0;
    position:sticky;
    inset-block-end:0;
    z-index:12;
  }
}

@media (max-width:480px) {
  .game-drawer.pokemon-manager-expanded .manager-titlebar .brand-mark {
    width:38px;
    height:38px;
    flex-basis:38px;
  }

  .game-drawer.pokemon-manager-expanded .team-slot {
    flex-basis:142px;
  }
}
