/* Ultimate Poke Idle — Portal de Jornada v3
   Reforma editorial do launcher, conta e leilão. Preserva os contratos JS. */

#dashboard-screen {
  --upi-v3-ink: #17394d;
  --upi-v3-muted: #688797;
  --upi-v3-blue: #3fa8d7;
  --upi-v3-blue-deep: #176a7d;
  --upi-v3-mint: #43c88f;
  --upi-v3-gold: #f3c65d;
  --upi-v3-line: rgba(41, 119, 148, .14);
  --upi-v3-shadow: 0 20px 48px rgba(35, 103, 127, .1);
  background: #f4fbff;
  font-family: Aptos, "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

#dashboard-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(145deg, rgba(248,253,255,.93), rgba(239,250,255,.92) 48%, rgba(240,252,247,.94)),
    url('/assets/brand/ultimate-poke-idle/login-hero-eeveelutions.webp') center / cover no-repeat;
}

#dashboard-screen .app {
  z-index: 3;
  grid-template-columns: 268px minmax(0, 1fr);
  grid-template-rows: 88px minmax(0, 1fr);
}

#dashboard-screen .topbar { grid-column: 2 / 3; }
#dashboard-screen .content {
  grid-column: 2;
  position: relative;
  padding: 28px 32px 56px;
}
#dashboard-screen .content > section { width: min(100%, 1620px); margin-inline: auto; }

/* Pokémon caminhando como parte do wallpaper, atrás dos cartões. */
#dashboard-screen .upi-walkers { z-index: 1; }
#dashboard-screen .upi-walker {
  width: 64px;
  height: 64px;
  opacity: .3;
  background-size: 256px 256px;
  filter: saturate(.95) drop-shadow(0 8px 10px rgba(22, 91, 113, .22));
}
#dashboard-screen .walker-one { top: 12%; background-position: 0 -128px; }
#dashboard-screen .walker-two { top: 28%; background-position: 0 -64px; }
#dashboard-screen .walker-three { top: 44%; background-position: 0 -128px; }
#dashboard-screen .walker-four { top: 60%; background-position: 0 -64px; }
#dashboard-screen .walker-five {
  top: 76%;
  background-image: url('/assets/followers/charmander.png');
  background-position: 0 -128px;
  animation: upi-mon-right .68s steps(4) infinite, upi-walk-right 41s linear -18s infinite;
}
#dashboard-screen .walker-six {
  top: 88%;
  background-image: url('/assets/followers/jigglypuff.png');
  background-position: 0 -64px;
  animation: upi-mon-left .72s steps(4) infinite, upi-walk-left 46s linear -29s infinite;
}
#dashboard-screen .walker-seven {
  top: 37%;
  width: 56px;
  height: 56px;
  opacity: .16;
  background-size: 224px 224px;
  background-image: url('/assets/followers/mew.png');
  background-position: 0 -112px;
  animation: upi-mon-right-small .7s steps(4) infinite, upi-walk-right 53s linear -37s infinite;
}
#dashboard-screen .walker-eight {
  top: 68%;
  width: 58px;
  height: 58px;
  opacity: .18;
  background-size: 232px 232px;
  background-image: url('/assets/followers/togepi.png');
  background-position: 0 -58px;
  animation: upi-mon-left-tiny .72s steps(4) infinite, upi-walk-left 49s linear -8s infinite;
}
@keyframes upi-mon-right { to { background-position: -256px -128px; } }
@keyframes upi-mon-left { to { background-position: -256px -64px; } }
@keyframes upi-mon-right-small { to { background-position: -224px -112px; } }
@keyframes upi-mon-left-tiny { to { background-position: -232px -58px; } }

/* Primeira dobra: imagem principal + passaporte sempre visível. */
#dashboard-screen .upi-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(320px, .62fr);
  gap: 18px;
  align-items: stretch;
}
#dashboard-screen .upi-hero-grid .hero {
  min-height: 390px;
  margin: 0;
  padding: 34px 38px;
  border-radius: 32px;
}
#dashboard-screen .upi-hero-grid .hero .bg { background-position: center 58%; }
#dashboard-screen .upi-hero-kicker {
  margin-bottom: 8px;
  color: #92ead2;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .16em;
}
#dashboard-screen .upi-hero-grid .hero h1 { max-width: 540px; font-size: clamp(38px, 3.5vw, 58px); }
#dashboard-screen .upi-hero-grid .hero p { font-size: 15px; }
#dashboard-screen .upi-passport {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(61, 151, 176, .16);
  border-radius: 32px;
  background:
    radial-gradient(circle at 100% 0, rgba(87, 210, 173, .2), transparent 38%),
    linear-gradient(155deg, rgba(255,255,255,.97), rgba(233,249,246,.96));
  box-shadow: var(--upi-v3-shadow);
}
#dashboard-screen .upi-passport::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -66px;
  width: 190px;
  height: 190px;
  border: 34px solid rgba(61, 174, 177, .06);
  border-radius: 50%;
  pointer-events: none;
}
#dashboard-screen .upi-passport-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  margin: -7px -2px 9px;
  color: #7a99a7;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .14em;
}
#dashboard-screen .upi-passport-top img { width: 72px; height: 72px; object-fit: contain; animation: upi-bob 1.7s ease-in-out infinite alternate; }
#dashboard-screen .upi-passport .row1 { position: relative; z-index: 1; }
#dashboard-screen .upi-passport .av2 { width: 66px; height: 66px; border-radius: 20px; }
#dashboard-screen .av:has(.upi-trainer-avatar),
#dashboard-screen .av2:has(.upi-trainer-avatar) { position: relative; overflow: hidden; }
#dashboard-screen .av img.upi-trainer-avatar,
#dashboard-screen .av2 img.upi-trainer-avatar {
  position: absolute;
  inset: 0 auto auto 0;
  width: 400%;
  height: 400%;
  max-width: none;
  object-fit: fill;
  object-position: left top;
  image-rendering: pixelated;
}
#dashboard-screen .upi-passport .nm { font-size: 20px; }
#dashboard-screen .upi-passport .badges-row { position: relative; z-index: 1; margin-top: 18px; }
#dashboard-screen .upi-passport .pstats { position: relative; z-index: 1; }

/* Destinos ilustrados, sem aparência de tabela. */
#dashboard-screen .upi-journey-grid {
  display: grid;
  grid-template-columns: 1.1fr .82fr .82fr;
  grid-template-rows: repeat(3, minmax(152px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
#dashboard-screen .upi-journey-card {
  position: relative;
  min-width: 0;
  min-height: 152px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(47, 132, 158, .13);
  border-radius: 26px;
  color: var(--upi-v3-ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(37, 107, 132, .09);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
#dashboard-screen button.upi-journey-card { width: 100%; font: inherit; }
#dashboard-screen .upi-journey-card:hover,
#dashboard-screen .upi-journey-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(57, 177, 157, .42);
  box-shadow: 0 23px 44px rgba(37, 107, 132, .15);
  outline: none;
}
#dashboard-screen .upi-card-copy { position: relative; z-index: 2; width: min(72%, 340px); align-self: center; }
#dashboard-screen .upi-card-copy small,
#dashboard-screen .upi-card-copy b,
#dashboard-screen .upi-card-copy em,
#dashboard-screen .upi-card-copy i { display: block; }
#dashboard-screen .upi-card-copy small { color: #668e9f; font-size: 9.5px; font-weight: 850; letter-spacing: .13em; }
#dashboard-screen .upi-card-copy b { margin-top: 5px; color: #173d52; font-size: clamp(18px, 1.5vw, 25px); line-height: 1.08; }
#dashboard-screen .upi-card-copy em { margin-top: 7px; color: #6d8a99; font-size: 12px; font-style: normal; line-height: 1.35; }
#dashboard-screen .upi-card-copy i { margin-top: 15px; color: #218ead; font-size: 11px; font-style: normal; font-weight: 800; }
#dashboard-screen .upi-card-mons {
  position: absolute;
  z-index: 1;
  right: 3%;
  bottom: 3px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
#dashboard-screen .upi-card-mons img { width: clamp(88px, 8vw, 132px); height: clamp(88px, 8vw, 132px); object-fit: contain; filter: drop-shadow(0 12px 13px rgba(30, 94, 113, .22)); }
#dashboard-screen .journey-play {
  grid-row: 1 / 4;
  background: linear-gradient(145deg, rgba(231,249,255,.98), rgba(222,249,237,.96));
}
#dashboard-screen .journey-play::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 86% 25%, rgba(68, 182, 209, .24), transparent 29%), radial-gradient(circle at 74% 88%, rgba(72, 201, 143, .18), transparent 32%);
}
#dashboard-screen .journey-play .upi-card-copy { width: 58%; }
#dashboard-screen .journey-play .upi-card-mons { right: 0; bottom: 9px; }
#dashboard-screen .journey-play .upi-card-mons img { width: clamp(115px, 10vw, 164px); height: clamp(115px, 10vw, 164px); }
#dashboard-screen .journey-play .upi-card-mons img + img { margin-left: -48px; transform: translateY(-42px); }
#dashboard-screen .journey-auction { grid-column: 2 / 4; background: linear-gradient(140deg, #fff9e7, #eefaff 56%, #e7f9f1); }
#dashboard-screen .journey-auction::after { content: ""; position: absolute; right: 14%; top: -42px; width: 180px; height: 180px; border: 28px solid rgba(243,198,93,.12); border-radius: 50%; }
#dashboard-screen .journey-map { background: linear-gradient(135deg, rgba(230,249,255,.95), rgba(226,246,244,.96)); }
#dashboard-screen .journey-map::before { content: ""; position: absolute; inset: 0; opacity: .22; background: url('/assets/ui/world-map/world-overview-realistic.webp') center / cover; }
#dashboard-screen .journey-pack { background: linear-gradient(145deg, #fffaf0, #edfaff); }
#dashboard-screen .journey-clan { grid-column: 2 / 4; background: linear-gradient(140deg, #e9fbf3, #e9f7ff 54%, #fff8df); }
#dashboard-screen .journey-clan::after { content: ""; position: absolute; right: 8%; top: -54px; width: 210px; height: 210px; border: 30px solid rgba(61,190,146,.1); border-radius: 50%; }
#dashboard-screen .journey-clan .upi-card-mons img + img { margin-left: -42px; transform: translateY(-20px); }

#dashboard-screen .cur.diamonds::before { background-image: url('/assets/ui/currency/diamond-v1.webp'); }

/* Equipe com o líder em destaque. */
#dashboard-screen .team-wrap { margin-top: 34px; }
#dashboard-screen .upi-section-kicker {
  display: block;
  margin-bottom: 4px;
  color: #72a0af;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .14em;
}
#dashboard-screen .team-wrap .section-h { align-items: flex-end; }
#dashboard-screen .team-wrap .section-h h3 { font-size: 22px; }
#dashboard-screen #dsh-teamcount { color: #7b98a5; font-size: 13px; font-weight: 650; }
#dashboard-screen .team { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 13px; }
#dashboard-screen .team .mon:first-child { grid-column: span 2; }
#dashboard-screen .team .mon:first-child .top { height: 124px; }
#dashboard-screen .team .mon:first-child .top img { max-height: 118px; }
#dashboard-screen .mon { background: rgba(255,255,255,.94); backdrop-filter: blur(10px); }

/* Conta refeita como um pequeno cenário + painel de dados. */
#dashboard-screen .upi-account-hub {
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(0, 1.18fr);
  gap: 16px;
  margin-top: 34px;
}
#dashboard-screen .upi-account-scene,
#dashboard-screen .upi-account-data {
  position: relative;
  min-width: 0;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--upi-v3-line);
  border-radius: 30px;
  box-shadow: var(--upi-v3-shadow);
}
#dashboard-screen .upi-account-scene {
  display: flex;
  align-items: flex-start;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(15, 93, 110, .9), rgba(29, 145, 130, .68)),
    url('/assets/brand/ultimate-poke-idle/shop-banner-eeveelutions.webp') center / cover;
  color: #fff;
}
#dashboard-screen .upi-account-scene::after { content: ""; position: absolute; inset: auto 0 0; height: 46%; background: linear-gradient(0deg, rgba(8,67,78,.5), transparent); }
#dashboard-screen .upi-account-copy { position: relative; z-index: 2; max-width: 330px; }
#dashboard-screen .upi-account-copy small { font-size: 9px; font-weight: 850; letter-spacing: .14em; color: #98f0d7; }
#dashboard-screen .upi-account-copy h3 { margin-top: 7px; font-size: clamp(25px, 2.4vw, 36px); line-height: 1.08; }
#dashboard-screen .upi-account-copy p { margin-top: 9px; color: #d9f2f2; font-size: 13px; line-height: 1.5; }
#dashboard-screen #dsh-account2 {
  margin-top: 20px;
  padding: 12px 17px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  color: #176a7d;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(5,54,68,.2);
}
#dashboard-screen .upi-account-pokemon { position: absolute; z-index: 1; right: -8px; bottom: -6px; display: flex; align-items: flex-end; }
#dashboard-screen .upi-account-pokemon img { width: 112px; height: 112px; object-fit: contain; filter: drop-shadow(0 10px 11px rgba(0,45,56,.3)); }
#dashboard-screen .upi-account-pokemon img:first-child { width: 82px; height: 82px; margin-right: -34px; }
#dashboard-screen .upi-account-pokemon img:last-child { width: 76px; height: 76px; margin-left: -35px; }
#dashboard-screen .upi-account-data { padding: 24px; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); }
#dashboard-screen .upi-account-data .section-h { margin-bottom: 14px; }
#dashboard-screen .upi-account-data .section-h h3 { font-size: 23px; }
#dashboard-screen .upi-account-stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
#dashboard-screen .upi-account-stats .act {
  min-height: 76px;
  padding: 11px 13px;
  border: 1px solid rgba(48,130,157,.11);
  border-radius: 18px;
  background: linear-gradient(145deg, #f9fdff, #f0faf7);
}
#dashboard-screen .upi-account-stats .act p span,
#dashboard-screen .upi-account-stats .act p b { display: block; }
#dashboard-screen .upi-account-stats .act p span { color: #7895a2; font-size: 10px; }
#dashboard-screen .upi-account-stats .act p b { margin-top: 2px; color: #244d61; font-size: 14px; }

/* Rankings e comunidade dentro do fluxo principal. */
#dashboard-screen .upi-community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  margin-top: 34px;
}
#dashboard-screen .upi-community-grid .block {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--upi-v3-line);
  border-radius: 28px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--upi-v3-shadow);
  backdrop-filter: blur(14px);
}
#dashboard-screen .upi-community-grid .head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 15px; }
#dashboard-screen .upi-community-grid .head h3 { margin: 0; color: #24495d; font-size: 17px; }
#dashboard-screen .upi-community-grid .head > img { width: 52px; height: 52px; object-fit: contain; image-rendering: pixelated; }
#dashboard-screen .upi-community-grid .rk { min-height: 46px; }
#dashboard-screen .upi-community-card .erow { min-height: 72px; }

/* --------------------------------------------------------------------------
   Login leve: ornamentos viram detalhes, não molduras inteiras.
   -------------------------------------------------------------------------- */
#auth-screen { font-family: Aptos, "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif; }
#auth-screen .ip-panel { width: min(92vw, 430px); }
#auth-screen .card {
  padding: 25px 26px 24px;
  border: 1px solid rgba(132, 225, 213, .3);
  border-radius: 28px;
  border-image: none;
  background: linear-gradient(155deg, rgba(13,76,91,.88), rgba(7,50,70,.91));
  box-shadow: 0 32px 76px rgba(3,41,55,.43), inset 0 1px 0 rgba(255,255,255,.16);
  backdrop-filter: blur(20px) saturate(1.12);
  filter: none;
  image-rendering: auto;
}
#auth-screen .hd { margin: 0 0 6px; }
#auth-screen .hd::before {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  background: url('/assets/brand/ultimate-poke-idle/portal-icons/trainer.png') center / contain no-repeat;
  filter: drop-shadow(0 6px 8px rgba(2,35,49,.24));
}
#auth-screen .hd h1 { color: #f3fdff; font-size: 19px; font-weight: 760; text-shadow: none; }
#auth-screen .hd2 { color: #bde1e7; margin: 0 0 17px 54px; }
#auth-screen .field {
  height: 54px;
  margin-bottom: 10px;
  border: 1px solid rgba(190,239,239,.23);
  border-radius: 16px;
  border-image: none;
  background: rgba(244,253,255,.09);
  image-rendering: auto;
}
#auth-screen .field:focus-within { border-color: #6de0c0; background: rgba(244,253,255,.14); filter: none; transform: none; box-shadow: 0 0 0 4px rgba(82,208,177,.12); }
#auth-screen .field input { padding: 0 46px 0 18px; font-size: 13.5px; }
#auth-screen .btn {
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  border-image: none;
  padding: 0 20px;
  image-rendering: auto;
  text-shadow: none;
}
#auth-screen .btn.enter { background: linear-gradient(135deg,#45a8db,#41c990); box-shadow: 0 14px 28px rgba(22,126,145,.28); }
#auth-screen .btn.create { border: 1px solid rgba(155,229,219,.3); background: rgba(255,255,255,.045); }
#auth-screen .btn.enter:hover,
#auth-screen .btn.create:hover { background-color: rgba(255,255,255,.1); filter: brightness(1.06); }
#auth-screen .lang {
  width: auto;
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(159,229,222,.3);
  border-radius: 15px;
  background: rgba(13,76,91,.72);
  image-rendering: auto;
  filter: none;
  backdrop-filter: blur(14px);
}

/* Discord oficial: chamada visivel na tela inicial, sem competir com o login. */
#auth-screen .auth-discord-cta {
  position: relative;
  isolation: isolate;
  min-width: 252px;
  min-height: 54px;
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) 24px;
  align-items: center;
  gap: 11px;
  overflow: hidden;
  padding: 7px 11px 7px 9px;
  border: 1px solid rgba(193, 203, 255, .42);
  border-radius: 16px;
  color: #f7f8ff;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(88,101,242,.94), rgba(75,85,205,.88));
  box-shadow: 0 12px 28px rgba(42,54,164,.3), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
  animation: upi-discord-breathe 3.2s ease-in-out infinite;
}
#auth-screen .auth-discord-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -60% -35%;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.22) 49%, transparent 60%);
  transform: translateX(-48%);
  animation: upi-discord-shine 4.8s ease-in-out infinite;
}
#auth-screen .auth-discord-cta:hover {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(42,54,164,.42), 0 0 0 3px rgba(164,173,255,.12);
}
#auth-screen .auth-discord-cta:focus-visible {
  outline: 3px solid rgba(202, 240, 255, .88);
  outline-offset: 3px;
}
#auth-screen .auth-discord-orbit {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255,255,255,.13);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}
#auth-screen .auth-discord-orbit .abar-icon {
  width: 28px;
  height: 28px;
  margin: 0;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(26,31,103,.28));
}
#auth-screen .auth-discord-cta .abar-copy {
  display: grid;
  gap: 2px;
  line-height: 1.05;
}
#auth-screen .auth-discord-cta .abar-copy small {
  color: rgba(241,244,255,.72);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .13em;
}
#auth-screen .auth-discord-cta .abar-copy strong {
  color: #fff;
  font-size: 12px;
  letter-spacing: .055em;
}
#auth-screen .auth-discord-arrow {
  font-size: 20px;
  line-height: 1;
  text-align: center;
  transition: transform .18s ease;
}
#auth-screen .auth-discord-cta:hover .auth-discord-arrow { transform: translate(2px,-2px); }
@keyframes upi-discord-breathe {
  0%,100% { box-shadow: 0 12px 28px rgba(42,54,164,.3), inset 0 1px 0 rgba(255,255,255,.2); }
  50% { box-shadow: 0 15px 34px rgba(61,74,209,.44), 0 0 22px rgba(115,126,255,.2), inset 0 1px 0 rgba(255,255,255,.24); }
}
@keyframes upi-discord-shine {
  0%,68% { transform: translateX(-48%); opacity: 0; }
  76% { opacity: 1; }
  94%,100% { transform: translateX(48%); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Minha Conta clara e ampla.
   -------------------------------------------------------------------------- */
#ac-ov {
  padding: 22px;
  background: rgba(5,38,53,.7) !important;
  backdrop-filter: blur(16px) saturate(1.08) !important;
  font-family: Aptos, "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif !important;
}
#ac-ov .ac-card {
  display: flex;
  flex-direction: column;
  width: min(96vw, 960px) !important;
  height: min(92dvh, 980px);
  max-height: min(92dvh, 980px) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,.76) !important;
  border-radius: 30px !important;
  background: linear-gradient(145deg,#f8fdff,#eefaf6) !important;
  color: #17394d !important;
  box-shadow: 0 38px 110px rgba(0,22,35,.48), inset 0 1px 0 #fff !important;
}
#ac-ov .ac-hero { display: flex; flex: 0 0 auto; align-items: center; gap: 14px; padding: 20px 24px 16px; background: rgba(255,255,255,.78); border-bottom: 1px solid rgba(41,119,148,.12); }
#ac-ov .ac-hero > img { width: 56px; height: 56px; object-fit: contain; image-rendering: pixelated; }
#ac-ov .ac-hero-copy { min-width: 0; flex: 1; }
#ac-ov .ac-hero small { display: block; color: #7294a2; font-size: 9px; font-weight: 850; letter-spacing: .15em; }
#ac-ov h2 { margin: 3px 0 0 !important; color: #17394d !important; font-size: 24px !important; letter-spacing: -.02em; }
#ac-ov .ac-close {
  position: static !important;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid rgba(41,119,148,.13);
  border-radius: 15px;
  background: #fff url('/assets/brand/ultimate-poke-idle/portal-icons/close.svg') center / 34px no-repeat;
  color: transparent !important;
  font-size: 0 !important;
  image-rendering: pixelated;
  box-shadow: 0 7px 18px rgba(24,79,111,.08);
}
#ac-ov .ac-tabs { flex: 0 0 auto; margin: 0 !important; padding: 12px 24px; gap: 9px !important; background: rgba(255,255,255,.66); border-bottom: 1px solid rgba(41,119,148,.1); }
#ac-ov .ac-tabs button {
  min-height: 44px;
  border: 1px solid rgba(41,119,148,.13) !important;
  border-radius: 14px !important;
  background: rgba(238,248,251,.8) !important;
  color: #6b8799 !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
}
#ac-ov .ac-tabs button.on { border-color: rgba(54,171,157,.32) !important; background: linear-gradient(135deg,#e4f6ff,#e1f8ed) !important; color: #176a7d !important; box-shadow: 0 8px 18px rgba(37,117,139,.09); }
#ac-ov #ac-body {
  flex: 1 1 auto;
  min-height: 0 !important;
  max-height: none !important;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scroll-padding-bottom: 36px;
  padding: 22px 24px 40px;
  color: #688797 !important;
}
#ac-ov .ac-overview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 16px; }
#ac-ov .ac-row {
  min-height: 58px;
  padding: 11px 13px !important;
  border: 1px solid rgba(41,119,148,.1) !important;
  border-radius: 15px;
  background: rgba(255,255,255,.76);
  color: #718d9b !important;
}
#ac-ov .ac-row b { color: #234b60 !important; }
#ac-ov .ac-section-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
#ac-ov .ac-section {
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(41,119,148,.11);
  border-radius: 20px;
  background: rgba(255,255,255,.78);
}
#ac-ov .ac-security { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-top: 14px; }
#ac-ov .ac-security h3,#ac-ov .ac-security .ac-go,#ac-ov .ac-security .ac-msg { grid-column: 1 / -1; }
#ac-ov .ac-security input { margin-bottom: 0 !important; }
#ac-ov h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px !important; color: #21495e !important; font-size: 14px !important; }
#ac-ov h3 img { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; }
#ac-ov input {
  min-height: 50px;
  margin-bottom: 9px !important;
  border: 1px solid rgba(43,116,145,.18) !important;
  border-radius: 14px !important;
  background: #f8fcfd !important;
  color: #17394d !important;
  font-family: inherit !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
}
#ac-ov input:focus { border-color: #3fa8d7 !important; box-shadow: 0 0 0 4px rgba(63,168,215,.11); }
#ac-ov .ac-go {
  min-height: 49px;
  border-radius: 14px !important;
  background: linear-gradient(135deg,#43a7d8,#41c88f) !important;
  box-shadow: 0 10px 23px rgba(32,137,153,.18);
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}
#ac-ov .ac-badge.ok { background: #e2f8ec !important; color: #19784f !important; border-color: #72cfa5 !important; }
#ac-ov .ac-badge.no { background: #fff3ef !important; color: #b45543 !important; border-color: #f0a293 !important; }
#ac-ov #ac-resend { cursor: pointer; }
#ac-ov .ac-helper { color: #7893a1; font-size: 11px; line-height: 1.45; }
#ac-ov .ac-ref-link { cursor: pointer; word-break: break-all; color: #1e7890 !important; }
#ac-ov #ac-refdia { color: #1686a1 !important; font-size: 15px; }
#ac-ov table { overflow: hidden; border: 1px solid rgba(41,119,148,.11); border-radius: 17px; background: rgba(255,255,255,.82); }
#ac-ov th { color: #7392a0 !important; border-color: rgba(41,119,148,.12) !important; padding: 11px !important; }
#ac-ov td { color: #2d5365 !important; border-color: rgba(41,119,148,.09) !important; padding: 12px 11px !important; }
#ac-ov .ac-empty { padding: 46px 18px; text-align: center; border: 1px dashed rgba(41,119,148,.18); border-radius: 18px; background: rgba(255,255,255,.7); color: #7391a0; }
#ac-ov .ac-empty a { color: #16788f; font-weight: 800; }

/* Switch & Slider Styles for Game Settings */
#ac-ov .ac-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
  flex: 0 0 auto;
}
#ac-ov .ac-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0 !important;
}
#ac-ov .ac-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd8df;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 22px;
}
#ac-ov .ac-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,.15);
}
#ac-ov .ac-switch input:checked + .ac-slider {
  background: linear-gradient(135deg,#3fa8d7,#36ab9d) !important;
}
#ac-ov .ac-switch input:checked + .ac-slider:before {
  transform: translateX(22px);
}

/* --------------------------------------------------------------------------
   Leilão DOM do portal, usando a mesma API autoritativa do jogo.
   -------------------------------------------------------------------------- */
#dashboard-screen .pa-overlay {
  position: absolute;
  inset: 88px 0 0 244px;
  z-index: 40;
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: 24px 28px 30px;
  background:
    radial-gradient(circle at 88% 12%, rgba(70,203,150,.15), transparent 30%),
    linear-gradient(145deg,rgba(247,253,255,.97),rgba(239,250,255,.98) 54%,rgba(240,252,247,.97));
  color: #17394d;
  font-family: inherit;
}
#dashboard-screen .pa-dialog { width: min(100%, 1620px); min-width: 0; height: 100%; margin: 0 auto; display: grid; grid-template-rows: auto auto auto auto minmax(0,1fr) auto; overflow: hidden; border: 1px solid rgba(41,119,148,.13); border-radius: 30px; background: rgba(255,255,255,.9); box-shadow: 0 28px 70px rgba(28,91,114,.16); backdrop-filter: blur(16px); }
#dashboard-screen .pa-header { display: flex; align-items: center; gap: 15px; padding: 18px 22px; border-bottom: 1px solid rgba(41,119,148,.1); }
#dashboard-screen .pa-title-icon { width: 58px; height: 58px; object-fit: contain; image-rendering: pixelated; }
#dashboard-screen .pa-heading { min-width: 0; flex: 1; }
#dashboard-screen .pa-heading small { color: #74a0ad; font-size: 9px; font-weight: 850; letter-spacing: .15em; }
#dashboard-screen .pa-heading h2 { margin: 3px 0 0; color: #17394d; font-size: 27px; line-height: 1.05; }
#dashboard-screen .pa-wallet { display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 7px 13px 7px 8px; border: 1px solid rgba(41,119,148,.12); border-radius: 17px; background: #f6fbfd; }
#dashboard-screen .pa-wallet img { width: 37px; height: 37px; object-fit: contain; image-rendering: pixelated; }
#dashboard-screen .pa-wallet span,#dashboard-screen .pa-wallet strong { display: block; }
#dashboard-screen .pa-wallet span { color: #7895a2; font-size: 9px; }
#dashboard-screen .pa-wallet strong { color: #315769; font-size: 14px; }
#dashboard-screen .pa-close { width: 48px; height: 48px; border: 1px solid rgba(41,119,148,.12); border-radius: 16px; background: #fff url('/assets/brand/ultimate-poke-idle/portal-icons/close.svg') center / 35px no-repeat; color: transparent; font-size: 0; cursor: pointer; }
#dashboard-screen .pa-tabs { display: flex; gap: 8px; padding: 12px 22px; overflow-x: auto; border-bottom: 1px solid rgba(41,119,148,.09); }
#dashboard-screen .pa-tab { min-height: 42px; padding: 8px 14px; border: 1px solid rgba(41,119,148,.12); border-radius: 14px; background: #f5fafc; color: #6a8797; font-family: inherit; font-size: 12px; font-weight: 750; line-height: 1; white-space: nowrap; cursor: pointer; }
#dashboard-screen .pa-tab.is-active { background: linear-gradient(135deg,#e3f5ff,#e0f8ec); border-color: rgba(54,171,157,.32); color: #176a7d; }
#dashboard-screen .pa-toolbar { display: grid; grid-template-columns: minmax(170px,1fr) 150px 180px auto minmax(180px,auto); gap: 9px; padding: 13px 22px; border-bottom: 1px solid rgba(41,119,148,.09); align-items:center; }
#dashboard-screen .pa-toolbar input,#dashboard-screen .pa-toolbar select,#dashboard-screen .pa-toolbar button,#dashboard-screen .pa-sell-panel input { min-height: 44px; border: 1px solid rgba(41,119,148,.14); border-radius: 13px; background: #f8fcfd; color: #315769; font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1; padding: 0 12px; outline: none; }
#dashboard-screen .pa-toolbar input:focus,#dashboard-screen .pa-toolbar select:focus,#dashboard-screen .pa-sell-panel input:focus { border-color: #3fa8d7; box-shadow: 0 0 0 4px rgba(63,168,215,.1); }
#dashboard-screen .pa-toolbar button { width: 46px; padding: 0; background: #f8fcfd url('/assets/brand/ultimate-poke-idle/portal-icons/refresh.png') center / 31px no-repeat; color: transparent; font-size: 0; cursor: pointer; image-rendering: pixelated; transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
#dashboard-screen .pa-toolbar button:not(:disabled):hover { transform:translateY(-1px); border-color:#3fa8d7; box-shadow:0 7px 18px rgba(41,119,148,.13); }
#dashboard-screen .pa-toolbar button:disabled { opacity:.46; cursor:not-allowed; filter:grayscale(.35); }
#dashboard-screen .pa-refresh-status { justify-self:end; padding:7px 9px; border:1px solid rgba(41,119,148,.1); border-radius:999px; background:rgba(241,250,252,.9); color:#668b99; font-size:10px; font-weight:750; line-height:1.25; text-align:right; white-space:nowrap; }
#dashboard-screen .pa-refresh-status.is-cooldown { border-color:rgba(182,107,69,.18); background:#fff8f3; color:#b66b45; }
#dashboard-screen .pa-genetic-filters { display:grid; grid-template-columns:auto repeat(4,minmax(116px,1fr)) auto auto; gap:8px; align-items:end; padding:10px 22px 12px; border-bottom:1px solid rgba(41,119,148,.09); background:linear-gradient(90deg,rgba(235,249,247,.72),rgba(241,249,253,.7)); }
#dashboard-screen .pa-genetic-filters[hidden] { display:none!important; }
#dashboard-screen .pa-genetic-filters>span { align-self:center; color:#238174; font-size:10px; font-weight:900; letter-spacing:.09em; text-transform:uppercase; }
#dashboard-screen .pa-genetic-filters label { display:grid; gap:4px; color:#6b8794; font-size:9px; font-weight:800; }
#dashboard-screen .pa-genetic-filters input { width:100%; min-height:36px; padding:0 9px; border:1px solid rgba(41,119,148,.15); border-radius:10px; outline:0; color:#28576a; background:#fff; font:750 11px/1 inherit; }
#dashboard-screen .pa-genetic-filters input:focus { border-color:#3fa8d7; box-shadow:0 0 0 3px rgba(63,168,215,.1); }
#dashboard-screen .pa-genetic-filters button { min-height:36px; padding:0 11px; border:1px solid rgba(41,119,148,.14); border-radius:10px; color:#286d7b; background:#fff; font:850 10px/1 inherit; cursor:pointer; }
#dashboard-screen .pa-genetic-filters button:first-of-type { border:0; color:#fff; background:linear-gradient(135deg,#3d9dd0,#36bd8b); }
#dashboard-screen .pa-body { min-height: 0; overflow: auto; padding: 20px 22px; }
#dashboard-screen .pa-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
#dashboard-screen .pa-card { position: relative; min-width: 0; display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 12px; min-height: 172px; padding: 14px; border: 1px solid rgba(41,119,148,.11); border-radius: 22px; background: linear-gradient(145deg,#fff,#f1faf7); box-shadow: 0 12px 28px rgba(34,105,128,.07); }
#dashboard-screen .pa-card.is-shiny { background: linear-gradient(145deg,#fffbe9,#eff9ff); border-color: rgba(239,192,74,.38); }
#dashboard-screen .pa-card.is-expired { background: linear-gradient(145deg,#fff,#f4f7f8); border-style: dashed; }
#dashboard-screen .pa-media { position: relative; display: grid; place-items: center; min-height: 132px; border-radius: 17px; background: radial-gradient(circle,#e5f7f7,transparent 68%); }
#dashboard-screen .pa-media > img { max-width: 104px; max-height: 104px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 9px 9px rgba(32,92,110,.18)); }
#dashboard-screen .pa-shiny { position: absolute; left: 8px; top: 7px; color: #c38e14; font-size: 10px; font-weight: 850; }
#dashboard-screen .pa-expired { position: absolute; left: 8px; top: 7px; padding: 4px 7px; border-radius: 999px; background: #fff1ee; color: #a84d3f; font-size: 9px; font-weight: 850; letter-spacing: .08em; }
#dashboard-screen .pa-info { min-width: 0; display: flex; flex-direction: column; }
#dashboard-screen .pa-kind { color: #7c98a4; font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
#dashboard-screen .pa-name { margin-top: 3px; overflow: hidden; color: #224b60; font-size: 17px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
#dashboard-screen .pa-meta { margin-top: 3px; color: #6d8998; font-size: 11px; line-height: 1.35; }
#dashboard-screen .pa-pokemon-id { width:100%; min-width:0; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:6px; margin:7px 0 5px; padding:6px 8px; border:1px solid rgba(43,139,154,.16); border-radius:10px; background:#eff9fa; color:#295f70; font-family:inherit; text-align:left; cursor:pointer; }
#dashboard-screen .pa-pokemon-id span { color:#24887d; font-size:8px; font-weight:900; letter-spacing:.08em; }
#dashboard-screen .pa-pokemon-id code { min-width:0; overflow:hidden; color:#204e60; font:750 9px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace; text-overflow:ellipsis; white-space:nowrap; }
#dashboard-screen .pa-pokemon-id em { color:#4d8793; font-size:8px; font-style:normal; font-weight:800; }
#dashboard-screen .pa-pokemon-id:hover { border-color:#3ba99b; background:#e5f8f3; }
#dashboard-screen .pa-fee-badge { margin:5px 0; color:#4d8391; font-size:8px; font-weight:750; line-height:1.3; }
#dashboard-screen .pa-fee-badge.is-seller { color:#8b6c36; }
#dashboard-screen .pa-price { margin-top: auto; color: #1c7f75; font-size: 18px; font-weight: 850; }
#dashboard-screen .pa-actions { display: flex; flex-wrap:wrap; gap: 7px; margin-top: 9px; }
#dashboard-screen .pa-actions button { min-height: 38px; flex: 1; border: 1px solid rgba(41,119,148,.13); border-radius: 12px; background: #edf7fa; color: #397085; font-family: inherit; font-size: 11px; font-weight: 750; line-height: 1; cursor: pointer; }
#dashboard-screen .pa-actions .pa-primary { border: 0; background: linear-gradient(135deg,#42a7d8,#41c88f); color: #fff; }
#dashboard-screen .pa-actions .pa-danger { background: #fff1ee; color: #a84d3f; }
#dashboard-screen .pa-fav { position: absolute; right: 11px; top: 10px; width: 34px; height: 34px; border: 0; border-radius: 11px; background: rgba(255,255,255,.9); color: #92a6ae; font-size: 18px; cursor: pointer; }
#dashboard-screen .pa-fav.is-on { color: #ef7d75; }
#dashboard-screen .pa-empty,#dashboard-screen .pa-loading { min-height: 320px; display: grid; place-items: center; text-align: center; color: #7391a0; }
#dashboard-screen .pa-empty img { width: 90px; height: 90px; margin: 0 auto 10px; object-fit: contain; image-rendering: pixelated; }
#dashboard-screen .pa-pagination { min-height: 66px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 22px; border-top: 1px solid rgba(41,119,148,.1); color: #6c8997; font-size: 12px; }
#dashboard-screen .pa-pagination button { width: 42px; height: 42px; border: 1px solid rgba(41,119,148,.13); border-radius: 13px; background: #f6fbfd; color: #286d84; font-size: 17px; cursor: pointer; }
#dashboard-screen .pa-pagination button:disabled { opacity: .4; cursor: default; }
#dashboard-screen .pa-sell-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 16px; min-height: 100%; }
#dashboard-screen .pa-sell-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; align-content: start; }
#dashboard-screen .pa-sellable { min-width: 0; min-height: 165px; padding: 10px; border: 1px solid rgba(41,119,148,.11); border-radius: 18px; background: #f8fcfd; color: #315769; cursor: pointer; text-align: center; }
#dashboard-screen .pa-sellable.is-selected { border-color: #43c88f; background: #e8f9f1; box-shadow: 0 0 0 3px rgba(67,200,143,.12); }
#dashboard-screen .pa-sellable img { width: 82px; height: 82px; margin: 0 auto 5px; object-fit: contain; image-rendering: pixelated; }
#dashboard-screen .pa-sellable b,#dashboard-screen .pa-sellable small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#dashboard-screen .pa-sellable b { font-size: 12px; } #dashboard-screen .pa-sellable small { margin-top: 2px; color: #7694a2; font-size: 10px; }
#dashboard-screen .pa-sellable-id,#dashboard-screen .pa-history-id { display:block; margin-top:6px; overflow:hidden; color:#26796f; font:750 8px/1.25 ui-monospace,SFMono-Regular,Consolas,monospace; text-overflow:ellipsis; white-space:nowrap; }
#dashboard-screen .pa-sell-panel { align-self: start; padding: 19px; border: 1px solid rgba(41,119,148,.11); border-radius: 22px; background: linear-gradient(145deg,#fff,#eef9f5); }
#dashboard-screen .pa-sell-panel h3 { margin: 0 0 5px; font-size: 18px; } #dashboard-screen .pa-sell-panel p { margin: 0 0 15px; color: #6d8998; font-size: 11px; line-height: 1.4; }
#dashboard-screen .pa-sell-panel label { display: block; margin: 10px 0 5px; color: #648695; font-size: 10px; font-weight: 750; }
#dashboard-screen .pa-sell-panel input { width: 100%; }
#dashboard-screen .pa-selected-id { margin-top:8px; }
#dashboard-screen .pa-fee-preview { margin-top:13px; padding:12px; border:1px solid rgba(57,160,142,.2); border-radius:14px; background:linear-gradient(145deg,#f1fbf8,#eef8fc); }
#dashboard-screen .pa-fee-preview.is-invalid { border-color:rgba(198,91,73,.32); background:#fff7f4; }
#dashboard-screen .pa-fee-title { display:flex; align-items:center; justify-content:space-between; gap:8px; }
#dashboard-screen .pa-fee-title span { color:#527987; font-size:9px; font-weight:850; letter-spacing:.07em; text-transform:uppercase; }
#dashboard-screen .pa-fee-title b { padding:4px 7px; border-radius:999px; background:#dcf5ea; color:#207a67; font-size:9px; white-space:nowrap; }
#dashboard-screen .pa-fee-preview dl { display:grid; gap:5px; margin:9px 0; }
#dashboard-screen .pa-fee-preview dl>div { display:flex; align-items:center; justify-content:space-between; gap:9px; }
#dashboard-screen .pa-fee-preview dt { color:#6b8792; font-size:9px; }
#dashboard-screen .pa-fee-preview dd { margin:0; color:#2d5c6b; font-size:10px; font-weight:850; }
#dashboard-screen .pa-fee-preview .pa-fee-total { margin-top:2px; padding-top:6px; border-top:1px dashed rgba(42,128,142,.17); }
#dashboard-screen .pa-fee-preview .pa-fee-total dd { color:#17826e; font-size:12px; }
#dashboard-screen .pa-fee-preview p { margin:7px 0 0; color:#688590; font-size:8px; line-height:1.5; }
#dashboard-screen .pa-fee-warning { margin-top:8px; padding:7px 8px; border-radius:9px; background:#ffe7df; color:#a44d3d; font-size:9px; font-weight:800; line-height:1.35; }
#dashboard-screen .pa-publish { width: 100%; min-height: 48px; margin-top: 14px; border: 0; border-radius: 14px; background: linear-gradient(135deg,#42a7d8,#41c88f); color: #fff; font-family: inherit; font-size: 12px; font-weight: 800; line-height: 1; cursor: pointer; }
#dashboard-screen .pa-publish:disabled { background:#d9e5e8; color:#8199a2; cursor:not-allowed; }
#dashboard-screen .pa-history { display: flex; flex-direction: column; gap: 9px; }
#dashboard-screen .pa-history-row { display: grid; grid-template-columns: 58px minmax(0,1fr) auto auto; align-items: center; gap: 12px; min-height: 70px; padding: 9px 13px; border: 1px solid rgba(41,119,148,.1); border-radius: 17px; background: #f9fcfd; }
#dashboard-screen .pa-history-row img { width: 52px; height: 52px; object-fit: contain; image-rendering: pixelated; }
#dashboard-screen .pa-history-row b,#dashboard-screen .pa-history-row small { display: block; } #dashboard-screen .pa-history-row small { color: #7895a2; }
#dashboard-screen .pa-confirm { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 20px; background: rgba(8,49,64,.54); backdrop-filter: blur(8px); }
#dashboard-screen .pa-confirm-card { width: min(92%,430px); padding: 24px; border: 1px solid rgba(255,255,255,.7); border-radius: 24px; background: #fff; text-align: center; box-shadow: 0 25px 70px rgba(0,30,43,.3); }
#dashboard-screen .pa-confirm-card img { width: 68px; height: 68px; margin: 0 auto 8px; object-fit: contain; image-rendering: pixelated; }
#dashboard-screen .pa-confirm-card h3 { margin: 0; font-size: 20px; } #dashboard-screen .pa-confirm-card p { margin: 8px 0 18px; color: #6d8998; }
#dashboard-screen .pa-confirm-id { width:min(100%,360px); margin:0 auto 16px; }
#dashboard-screen .pa-confirm-actions { display: flex; gap: 9px; }
#dashboard-screen .pa-confirm-actions button { min-height: 46px; flex: 1; border: 1px solid rgba(41,119,148,.13); border-radius: 13px; background: #f2f8fa; color: #416b7d; font-family: inherit; font-size: 12px; font-weight: 750; line-height: 1; cursor: pointer; }
#dashboard-screen .pa-confirm-actions .pa-primary { border: 0; background: linear-gradient(135deg,#42a7d8,#41c88f); color: #fff; }
#dashboard-screen .pa-toast { position: absolute; left: 50%; bottom: 78px; z-index: 7; transform: translate(-50%,12px); max-width: min(88%,520px); padding: 11px 16px; border-radius: 14px; background: #173f52; color: #fff; font-size: 12px; font-weight: 650; opacity: 0; pointer-events: none; transition: .2s; box-shadow: 0 12px 30px rgba(0,40,54,.25); }
#dashboard-screen .pa-toast.is-show { opacity: 1; transform: translate(-50%,0); }
#dashboard-screen .pa-toast.is-error { background: #a8443e; }
#dashboard-screen .pa-details { position:absolute; inset:0; z-index:19; display:grid; place-items:center; padding:20px; background:rgba(8,49,64,.58); backdrop-filter:blur(8px); }
#dashboard-screen .pa-details-card { width:min(94%,680px); overflow:hidden; border:1px solid rgba(255,255,255,.72); border-radius:25px; background:#f9fdfd; box-shadow:0 28px 75px rgba(0,34,48,.36); }
#dashboard-screen .pa-details-card>header { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; padding:17px 20px; background:linear-gradient(115deg,#125b72,#18877a); color:#fff; }
#dashboard-screen .pa-details-card>header small { grid-column:1; color:#9cf0dc; font-size:8px; font-weight:900; letter-spacing:.13em; }
#dashboard-screen .pa-details-card>header h3 { grid-column:1; margin:0; font-size:21px; }
#dashboard-screen .pa-details-card>header button { grid-column:2; grid-row:1/3; padding:9px 12px; border:1px solid rgba(255,255,255,.25); border-radius:10px; background:rgba(0,35,48,.24); color:#fff; font:750 10px/1 inherit; cursor:pointer; }
#dashboard-screen .pa-details-body { display:grid; grid-template-columns:210px minmax(0,1fr); gap:18px; padding:20px; }
#dashboard-screen .pa-details-media { position:relative; min-height:210px; display:grid; place-items:center; border-radius:19px; background:radial-gradient(circle,#e0f8f3,#edf8fb 68%); }
#dashboard-screen .pa-details-media img { width:176px; height:176px; object-fit:contain; image-rendering:pixelated; filter:drop-shadow(0 12px 13px rgba(27,83,100,.2)); }
#dashboard-screen .pa-details-media span { position:absolute; left:10px; top:10px; padding:5px 8px; border-radius:999px; background:#fff4c7; color:#a3740d; font-size:9px; font-weight:900; }
#dashboard-screen .pa-details-data dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:13px 0; }
#dashboard-screen .pa-details-data dl>div { padding:10px; border:1px solid rgba(42,124,144,.11); border-radius:12px; background:#fff; }
#dashboard-screen .pa-details-data dt { color:#76919b; font-size:8px; font-weight:850; text-transform:uppercase; }
#dashboard-screen .pa-details-data dd { margin:4px 0 0; color:#28566a; font-size:12px; font-weight:800; }
#dashboard-screen .pa-details-data p { margin:0; padding:10px; border-radius:12px; background:#eaf8f4; color:#4c747c; font-size:9px; line-height:1.5; }
#dashboard-screen .pa-details-card>footer { display:flex; justify-content:flex-end; gap:8px; padding:13px 20px; border-top:1px solid rgba(41,119,148,.1); background:#fff; }
#dashboard-screen .pa-details-card>footer button { min-height:40px; padding:0 14px; border:1px solid rgba(41,119,148,.14); border-radius:11px; background:#f1f8fa; color:#376b7d; font:800 10px/1 inherit; cursor:pointer; }
#dashboard-screen .pa-details-card>footer .pa-primary { border:0; background:linear-gradient(135deg,#42a7d8,#41c88f); color:#fff; }
#dashboard-screen .pa-actions .pa-trade { border:1px solid rgba(42,139,154,.2); background:#ecfbf7; color:#227667; }
#dashboard-screen .pa-proposals { display:grid; gap:10px; padding:18px 22px; }
#dashboard-screen .pa-proposal { display:grid; grid-template-columns:58px minmax(0,1fr) auto; gap:13px; align-items:center; border:1px solid rgba(41,119,148,.12); border-radius:16px; background:#fff; padding:12px; box-shadow:0 5px 18px rgba(24,79,96,.06); }
#dashboard-screen .pa-proposal-icon { width:58px; height:58px; border-radius:14px; display:grid; place-items:center; background:#eaf8f7; }
#dashboard-screen .pa-proposal-icon img { width:50px; height:50px; object-fit:contain; image-rendering:pixelated; }
#dashboard-screen .pa-proposal small { display:block; color:#5b8c9d; font-size:9px; font-weight:850; letter-spacing:.08em; }
#dashboard-screen .pa-proposal b { display:block; margin-top:3px; color:#17485a; font-size:14px; }
#dashboard-screen .pa-proposal p { margin:4px 0; color:#668893; font-size:11px; }
#dashboard-screen .pa-proposal span { color:#2b9a7d; font-size:10px; font-weight:850; }
#dashboard-screen .pa-proposal-actions { display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
#dashboard-screen .pa-proposal-actions button { border:0; border-radius:10px; padding:8px 10px; font:700 10px/1 inherit; cursor:pointer; }
#dashboard-screen .pa-trade-overlay { position:absolute; inset:0; z-index:20; display:grid; place-items:center; padding:16px; background:rgba(10,45,58,.65); backdrop-filter:blur(7px); }
#dashboard-screen .pa-trade-dialog { width:min(790px,100%); max-height:min(760px,calc(100vh - 48px)); display:grid; grid-template-rows:auto minmax(0,1fr) auto; overflow:hidden; border:1px solid rgba(80,184,174,.34); border-radius:22px; background:#f7fcfd; box-shadow:0 30px 80px rgba(5,38,50,.36); }
#dashboard-screen .pa-trade-dialog>header { display:grid; grid-template-columns:58px 1fr auto; align-items:center; gap:11px; padding:14px 17px; background:linear-gradient(105deg,#0f556d,#147b77); color:#fff; }
#dashboard-screen .pa-trade-dialog>header img { width:56px; height:56px; object-fit:contain; image-rendering:pixelated; }
#dashboard-screen .pa-trade-dialog>header small { display:block; color:#a9f3de; font-size:9px; font-weight:900; letter-spacing:.12em; }
#dashboard-screen .pa-trade-dialog>header h3 { margin:3px 0 0; font-size:18px; }
#dashboard-screen .pa-trade-dialog>header button { border:1px solid rgba(255,255,255,.26); border-radius:10px; padding:8px 10px; background:rgba(0,30,44,.28); color:#fff; cursor:pointer; }
#dashboard-screen .pa-trade-scroll { overflow:auto; padding:15px 17px; }
#dashboard-screen .pa-trade-scroll h4 { margin:13px 0 8px; color:#255b6d; font-size:11px; letter-spacing:.05em; text-transform:uppercase; }
#dashboard-screen .pa-trade-scroll h4:first-child { margin-top:0; }
#dashboard-screen .pa-trade-modes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
#dashboard-screen .pa-trade-mode { display:grid; grid-template-columns:auto 1fr; column-gap:8px; border:1px solid rgba(42,125,146,.15); border-radius:13px; padding:10px; background:#fff; color:#315b69; cursor:pointer; }
#dashboard-screen .pa-trade-mode input { grid-row:1/3; align-self:center; accent-color:#32b68e; }
#dashboard-screen .pa-trade-mode span { font-size:12px; font-weight:800; }
#dashboard-screen .pa-trade-mode small { color:#78929a; font-size:9px; line-height:1.35; }
#dashboard-screen .pa-trade-assets { display:grid; grid-template-columns:repeat(auto-fill,minmax(105px,1fr)); gap:7px; }
#dashboard-screen .pa-trade-asset { min-width:0; border:1px solid rgba(43,123,145,.13); border-radius:13px; padding:8px; background:#fff; color:#315a68; cursor:pointer; }
#dashboard-screen .pa-trade-asset.is-selected { border-color:#31b68d; box-shadow:0 0 0 3px rgba(49,182,141,.12); background:#effcf8; }
#dashboard-screen .pa-trade-asset img { display:block; width:52px; height:52px; object-fit:contain; margin:auto; image-rendering:pixelated; }
#dashboard-screen .pa-trade-asset span,#dashboard-screen .pa-trade-asset small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#dashboard-screen .pa-trade-asset span { margin-top:3px; font-size:10px; font-weight:800; }
#dashboard-screen .pa-trade-asset small { color:#78939d; font-size:9px; }
#dashboard-screen .pa-trade-items { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:6px; }
#dashboard-screen .pa-trade-item { display:grid; grid-template-columns:36px 1fr 58px; gap:8px; align-items:center; border:1px solid rgba(43,123,145,.12); border-radius:11px; padding:7px; background:#fff; }
#dashboard-screen .pa-trade-item img { width:34px; height:34px; object-fit:contain; image-rendering:pixelated; }
#dashboard-screen .pa-trade-item span { min-width:0; color:#315a68; font-size:10px; font-weight:800; overflow:hidden; text-overflow:ellipsis; }
#dashboard-screen .pa-trade-item small { display:block; color:#8098a0; font-size:8px; }
#dashboard-screen .pa-trade-item input,#dashboard-screen .pa-trade-coins input { min-width:0; min-height:36px; width:100%; border:1px solid rgba(43,123,145,.16); border-radius:9px; background:#f7fbfc; padding:0 8px; }
#dashboard-screen .pa-trade-coins { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
#dashboard-screen .pa-trade-coins label { display:grid; gap:5px; color:#476b78; font-size:10px; font-weight:800; }
#dashboard-screen .pa-trade-note { color:#6c8790; font-size:9px; line-height:1.45; }
#dashboard-screen .pa-sell-trade-toggle { display:flex !important; align-items:center; gap:7px; margin-top:8px; color:#28705e !important; font-size:10px !important; font-weight:800; }
#dashboard-screen .pa-sell-trade-toggle input { width:16px !important; height:16px !important; min-height:0 !important; accent-color:#31b68d; }
#dashboard-screen .pa-trade-empty { grid-column:1/-1; color:#78939d; font-size:10px; padding:10px; }
#dashboard-screen .pa-trade-dialog>footer { display:flex; justify-content:flex-end; gap:8px; padding:12px 17px; border-top:1px solid rgba(43,123,145,.1); background:#fff; }
#dashboard-screen .pa-trade-dialog>footer button { border:0; border-radius:11px; padding:10px 14px; font:800 11px/1 inherit; cursor:pointer; }

@media (max-width: 1320px) {
  #dashboard-screen .app { grid-template-columns: 250px minmax(0,1fr); }
  #dashboard-screen .pa-overlay { left: 226px; }
  #dashboard-screen .content { padding-inline: 22px; }
  #dashboard-screen .upi-hero-grid { grid-template-columns: minmax(0,1.4fr) minmax(300px,.6fr); }
  #dashboard-screen .upi-journey-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  #dashboard-screen .journey-play { grid-row: auto; }
  #dashboard-screen .journey-auction { grid-column: auto; }
  #dashboard-screen .journey-clan { grid-column: 1 / 3; }
  #dashboard-screen .journey-play .upi-card-copy { width: 64%; }
  #dashboard-screen .pa-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 1040px) {
  #dashboard-screen .upi-hero-grid { grid-template-columns: 1fr; }
  #dashboard-screen .upi-passport { min-height: 300px; }
  #dashboard-screen .upi-account-hub { grid-template-columns: 1fr; }
  #dashboard-screen .upi-account-scene { min-height: 300px; }
  #dashboard-screen .upi-community-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #dashboard-screen .upi-community-card { grid-column: 1 / 3; }
  #dashboard-screen .team { grid-template-columns: repeat(4,minmax(0,1fr)); }
  #dashboard-screen .team .mon:first-child { grid-column: span 2; }
  #dashboard-screen .pa-toolbar { grid-template-columns: minmax(160px,1fr) 140px 160px auto; }
  #dashboard-screen .pa-refresh-status { grid-column:1/-1; justify-self:start; text-align:left; }
  #dashboard-screen .pa-sell-layout { grid-template-columns: 1fr; }
  #dashboard-screen .pa-sell-panel { order: -1; }
}

@media (max-width: 760px) {
  #dashboard-screen .content { padding: 14px 12px 34px; }
  #dashboard-screen .content > section { width: 100%; }
  #dashboard-screen .upi-hero-grid .hero { min-height: 430px; padding: 22px; border-radius: 25px; }
  #dashboard-screen .upi-hero-grid .hero h1 { font-size: 34px; }
  #dashboard-screen .upi-passport { min-height: 0; padding: 19px; border-radius: 24px; }
  #dashboard-screen .upi-journey-grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 10px; }
  #dashboard-screen .journey-clan { grid-column: auto; }
  #dashboard-screen .upi-journey-card { min-height: 160px; border-radius: 22px; }
  #dashboard-screen .journey-play .upi-card-copy { width: 62%; }
  #dashboard-screen .team { grid-template-columns: repeat(3,minmax(0,1fr)); }
  #dashboard-screen .team .mon:first-child { grid-column: span 2; }
  #dashboard-screen .upi-account-scene,#dashboard-screen .upi-account-data { min-height: 300px; border-radius: 24px; }
  #dashboard-screen .upi-account-stats { grid-template-columns: 1fr; }
  #dashboard-screen .upi-community-grid { grid-template-columns: 1fr; }
  #dashboard-screen .upi-community-card { grid-column: auto; }
  #dashboard-screen .walker-five,#dashboard-screen .walker-six,#dashboard-screen .walker-seven,#dashboard-screen .walker-eight { display: none; }
  #dashboard-screen .upi-walker { opacity: .12; }
  #dashboard-screen .pa-overlay { position: fixed; inset: 72px 0 0; padding: 0; }
  #dashboard-screen .pa-dialog { border: 0; border-radius: 0; }
  #dashboard-screen .pa-header { padding: 11px 12px; }
  #dashboard-screen .pa-title-icon { width: 45px; height: 45px; }
  #dashboard-screen .pa-heading h2 { font-size: 21px; }
  #dashboard-screen .pa-wallet { display: none; }
  #dashboard-screen .pa-tabs { padding: 9px 11px; }
  #dashboard-screen .pa-toolbar { grid-template-columns: minmax(0,1fr) 115px auto; padding: 10px 11px; }
  #dashboard-screen .pa-refresh-status { grid-column:1/-1; justify-self:start; }
  #dashboard-screen .pa-proposal { grid-template-columns:48px 1fr; }
  #dashboard-screen .pa-proposal-actions { grid-column:1/-1; justify-content:flex-start; }
  #dashboard-screen .pa-trade-modes,#dashboard-screen .pa-trade-coins { grid-template-columns:1fr; }
  #dashboard-screen .pa-toolbar select[name="sort"] { display: none; }
  #dashboard-screen .pa-body { padding: 12px; }
  #dashboard-screen .pa-grid { grid-template-columns: 1fr; }
  #dashboard-screen .pa-card { grid-template-columns: 92px minmax(0,1fr); min-height: 150px; }
  #dashboard-screen .pa-media { min-height: 112px; }
  #dashboard-screen .pa-media > img { max-width: 86px; max-height: 86px; }
  #dashboard-screen .pa-sell-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #dashboard-screen .pa-details { padding:10px; }
  #dashboard-screen .pa-details-body { grid-template-columns:1fr; max-height:calc(100dvh - 250px); overflow:auto; padding:14px; }
  #dashboard-screen .pa-details-media { min-height:150px; }
  #dashboard-screen .pa-details-media img { width:132px; height:132px; }
  #dashboard-screen .pa-details-data dl { grid-template-columns:1fr 1fr; }
  #dashboard-screen .pa-details-card>footer { padding:11px 14px; }
  #dashboard-screen .pa-history-row { grid-template-columns: 50px minmax(0,1fr) auto; }
  #dashboard-screen .pa-history-row > :last-child { display: none; }
  #ac-ov { padding: 0; }
  #ac-ov .ac-card { width: 100% !important; height: 100dvh; max-height: 100dvh !important; min-height: 100dvh; border: 0 !important; border-radius: 0 !important; }
  #ac-ov #ac-body { max-height: none !important; padding: 15px 15px calc(28px + env(safe-area-inset-bottom)); }
  #ac-ov .ac-hero { padding: 14px 15px 12px; }
  #ac-ov .ac-tabs { padding: 9px 15px; }
  #ac-ov .ac-overview,#ac-ov .ac-section-grid { grid-template-columns: 1fr; }
  #ac-ov .ac-security { grid-template-columns: 1fr; }
  #ac-ov .ac-security h3,#ac-ov .ac-security .ac-go,#ac-ov .ac-security .ac-msg { grid-column: auto; }
}

@media (max-width: 430px) {
  #dashboard-screen .team { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #dashboard-screen .upi-account-pokemon img { width: 92px; height: 92px; }
  #dashboard-screen .upi-account-pokemon img:first-child,#dashboard-screen .upi-account-pokemon img:last-child { display: none; }
  #auth-screen .card { padding: 21px 20px; border-radius: 24px; }
  #auth-screen .hd2 { margin-left: 0; }
  #auth-screen .abar { gap: 6px; }
  #auth-screen .abar .auth-discord-cta {
    width: min(94vw, 390px);
    min-width: 0;
    min-height: 48px;
    height: 48px;
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  #dashboard-screen .upi-journey-card,
  #dashboard-screen .wm-region-card { transition: none !important; }
  #auth-screen .auth-discord-cta,
  #auth-screen .auth-discord-cta::before { animation: none !important; }
}

/* Leilão: genética autoritativa do Pokémon, sem interferir no bloco de taxas. */
#dashboard-screen .pa-genetics {
  display: grid;
  gap: 7px;
  margin-top: 8px;
  padding: 9px;
  border: 1px solid rgba(75, 151, 175, .18);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(235, 249, 251, .86), rgba(247, 252, 250, .95));
}

#dashboard-screen .pa-genetics > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
}

#dashboard-screen .pa-genetics > header span {
  color: #438097;
  font-size: 7px;
  font-weight: 950;
  letter-spacing: .1em;
}

#dashboard-screen .pa-genetics > header b {
  color: #1c6e73;
  font-size: 9px;
  white-space: nowrap;
}

#dashboard-screen .pa-iv-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 3px;
}

#dashboard-screen .pa-iv-stat {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 5px 2px;
  border: 1px solid rgba(82, 149, 170, .13);
  border-radius: 7px;
  background: rgba(255,255,255,.72);
}

#dashboard-screen .pa-iv-stat small {
  overflow: hidden;
  width: 100%;
  color: #76919d;
  font-size: 6px;
  font-weight: 850;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#dashboard-screen .pa-iv-stat b { color: #214d60; font-size: 10px; }

#dashboard-screen .pa-score-strip { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; }
#dashboard-screen .pa-score-strip span { min-width:0; padding:5px 4px; border-radius:7px; background:rgba(218,242,239,.72); text-align:center; }
#dashboard-screen .pa-score-strip small,#dashboard-screen .pa-score-strip b { display:block; }
#dashboard-screen .pa-score-strip small { color:#718d98; font-size:6px; font-weight:850; }
#dashboard-screen .pa-score-strip b { margin-top:1px; color:#167568; font-size:9px; }

#dashboard-screen .pa-genetics > p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 6px;
  margin: 0;
  color: #718c98;
  font-size: 7px;
}

#dashboard-screen .pa-genetics > p strong { color: #325d6e; font-size: 8px; }
#dashboard-screen .pa-genetics > p em { margin-left: auto; color: #a27244; font-size: 6px; font-style: normal; }

#dashboard-screen .pa-details-genetics {
  margin: 4px 0 0;
  padding: 12px;
  border-radius: 15px;
}

#dashboard-screen .pa-details-genetics > header span { font-size: 8px; }
#dashboard-screen .pa-details-genetics > header b { font-size: 11px; }
#dashboard-screen .pa-details-genetics .pa-iv-stat { padding: 8px 3px; }
#dashboard-screen .pa-details-genetics .pa-iv-stat small { font-size: 7px; }
#dashboard-screen .pa-details-genetics .pa-iv-stat b { font-size: 13px; }
#dashboard-screen .pa-details-genetics > p,
#dashboard-screen .pa-details-genetics > p strong { font-size: 9px; }

@media (max-width: 1040px) {
  #dashboard-screen .pa-genetic-filters { grid-template-columns:auto repeat(2,minmax(120px,1fr)) auto auto; }
  #dashboard-screen .pa-genetic-filters label:nth-of-type(n+3) { grid-row:2; }
}

@media (max-width: 760px) {
  #dashboard-screen .pa-genetic-filters { grid-template-columns:repeat(2,minmax(0,1fr)); padding:9px 11px; }
  #dashboard-screen .pa-genetic-filters>span { grid-column:1/-1; }
  #dashboard-screen .pa-genetic-filters label:nth-of-type(n) { grid-row:auto; }
}

@media (max-width: 430px) {
  #dashboard-screen .pa-iv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #dashboard-screen .pa-card-genetics .pa-iv-stat:nth-child(n+4) { margin-top: 1px; }
}

/* Leilão v10: lista densa e responsiva. Cada anúncio mantém genética, detalhes e ações,
   mas ocupa uma única linha para reduzir rolagem e repaints desnecessários. */
#dashboard-screen .pa-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#dashboard-screen .pa-listing-row {
  min-height: 112px;
  display: grid;
  grid-template-columns: 88px minmax(170px,.9fr) minmax(330px,1.45fr) minmax(210px,.72fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 17px;
  content-visibility: auto;
  contain-intrinsic-size: 112px;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

#dashboard-screen .pa-listing-row:hover {
  z-index: 1;
  border-color: rgba(51,166,160,.3);
  box-shadow: 0 10px 26px rgba(34,105,128,.11);
  transform: translateY(-1px);
}

#dashboard-screen .pa-listing-row.is-simple {
  grid-template-columns: 88px minmax(210px,1fr) minmax(130px,.45fr) minmax(210px,.72fr);
}

#dashboard-screen .pa-listing-row .pa-media {
  width: 88px;
  min-height: 88px;
  border-radius: 14px;
}

#dashboard-screen .pa-listing-row .pa-media > img { max-width:78px; max-height:78px; }
#dashboard-screen .pa-summary,#dashboard-screen .pa-specs,#dashboard-screen .pa-commerce { min-width:0; }
#dashboard-screen .pa-summary { padding-right:3px; }
#dashboard-screen .pa-summary .pa-pokemon-id { margin-bottom:0; }
#dashboard-screen .pa-listing-row .pa-name { font-size:16px; }
#dashboard-screen .pa-listing-row .pa-meta { font-size:10px; }
#dashboard-screen .pa-iv-badge {
  display:inline-flex;
  align-items:baseline;
  gap:5px;
  width:max-content;
  margin:5px 0 2px;
  padding:5px 8px;
  border:1px solid rgba(54,190,143,.34);
  border-radius:999px;
  background:linear-gradient(135deg,#e4fbf1,#e8f6ff);
  color:#145f55;
  box-shadow:0 4px 12px rgba(25,123,102,.09);
}
#dashboard-screen .pa-iv-badge small { font-size:8px; font-weight:950; letter-spacing:.08em; }
#dashboard-screen .pa-iv-badge b { font-size:15px; }
#dashboard-screen .pa-iv-badge em { color:#5b7f88; font-size:8px; font-style:normal; font-weight:800; }
#dashboard-screen .pa-iv-badge.is-unknown { color:#788d95; background:#f1f6f7; }
#dashboard-screen .pa-pokemon-classification { display:flex; flex-wrap:wrap; gap:5px; margin:7px 0; }
#dashboard-screen .pa-pokemon-classification>span { display:inline-flex; min-height:22px; align-items:center; padding:4px 7px; border:1px solid #9db5bd; border-radius:999px; background:#f4f8f9; color:#42626d; font-size:8px; font-weight:900; letter-spacing:.025em; text-transform:uppercase; }
#dashboard-screen .pa-pokemon-classification>.is-common { border-color:#8499a1; color:#526c75; }
#dashboard-screen .pa-pokemon-classification>.is-uncommon { border-color:#53a87d; color:#26704d; background:#eaf8f0; }
#dashboard-screen .pa-pokemon-classification>.is-rare { border-color:#559aca; color:#2d6d99; background:#eaf5fc; }
#dashboard-screen .pa-pokemon-classification>.is-epic { border-color:#9c6ac2; color:#714392; background:#f6edfc; }
#dashboard-screen .pa-pokemon-classification>.is-legendary { border-color:#c69b2c; color:#7e6011; background:#fff8df; }
#dashboard-screen .pa-pokemon-classification>.is-mythic { border-color:#cf6fa4; color:#97446f; background:#fff0f8; }
#dashboard-screen .pa-pokemon-classification>.is-perfect { border-color:#35aeba; color:#176e77; background:linear-gradient(110deg,#e8fbff,#fff8d9); }
#dashboard-screen .pa-pokemon-classification>.is-unknown { border-style:dashed; color:#788d95; }
#dashboard-screen .pa-pokemon-classification.is-compact { margin:4px 0; gap:3px; }
#dashboard-screen .pa-pokemon-classification.is-compact>span { min-height:19px; padding:3px 5px; font-size:7px; }
#dashboard-screen .pa-listing-row .pa-card-genetics { margin:0; padding:7px 8px; gap:5px; }
#dashboard-screen .pa-listing-row .pa-card-genetics > p { display:none; }
#dashboard-screen .pa-listing-row .pa-simple-note {
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 10px;
  border-radius:999px;
  background:#edf9f5;
  color:#548178;
  font-size:9px;
  font-weight:800;
}
#dashboard-screen .pa-commerce { display:flex; flex-direction:column; justify-content:center; align-self:stretch; }
#dashboard-screen .pa-commerce .pa-price { margin-top:0; font-size:19px; }
#dashboard-screen .pa-commerce .pa-actions { margin-top:6px; }
#dashboard-screen .pa-commerce .pa-actions button { min-height:34px; padding:0 8px; font-size:9px; }
#dashboard-screen .pa-listing-row .pa-fav { right:8px; top:7px; width:28px; height:28px; border-radius:9px; font-size:15px; }
#dashboard-screen .pa-actions .pa-details-button { border-color:rgba(62,145,184,.34); background:#eaf6ff; color:#1f6687; font-weight:900; }

#dashboard-screen .pa-card-facts {
  display:grid;
  gap:7px;
  padding:9px;
  border:1px solid rgba(99,91,190,.16);
  border-radius:12px;
  background:linear-gradient(135deg,rgba(242,238,255,.86),rgba(235,249,255,.9));
}
#dashboard-screen .pa-card-facts>header { display:flex; justify-content:space-between; gap:8px; color:#615590; font-size:8px; font-weight:900; letter-spacing:.06em; }
#dashboard-screen .pa-card-facts>div { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; }
#dashboard-screen .pa-card-facts>div>span { min-width:0; padding:6px 4px; border-radius:8px; background:rgba(255,255,255,.75); text-align:center; }
#dashboard-screen .pa-card-facts small,#dashboard-screen .pa-card-facts b { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#dashboard-screen .pa-card-facts small { color:#7b7892; font-size:6px; }
#dashboard-screen .pa-card-facts b { margin-top:2px; color:#40386c; font-size:10px; }
#dashboard-screen .pa-listing-row.is-tcg-card .pa-media>img { width:66px; height:88px; max-width:66px; max-height:88px; border-radius:7px; image-rendering:auto; }

#dashboard-screen .pa-details-card { width:min(96%,920px); max-height:92dvh; }
#dashboard-screen .pa-details-body { max-height:calc(92dvh - 132px); overflow-y:auto; }
#dashboard-screen .pa-complete-details { margin-top:10px; padding:12px; border:1px solid rgba(42,124,144,.12); border-radius:15px; background:#f3fafb; }
#dashboard-screen .pa-complete-details h4,#dashboard-screen .pa-complete-details h5 { margin:0 0 8px; color:#285f73; font-size:9px; letter-spacing:.08em; }
#dashboard-screen .pa-complete-details h5 { margin-top:11px; color:#688893; font-size:8px; }
#dashboard-screen .pa-complete-details dl { margin:0; }
#dashboard-screen .pa-complete-details dl>div.is-wide { grid-column:1/-1; }
#dashboard-screen .pa-detail-stat-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:5px; }
#dashboard-screen .pa-detail-stat-grid>span { min-width:0; padding:7px 3px; border-radius:8px; background:#fff; text-align:center; }
#dashboard-screen .pa-detail-stat-grid small,#dashboard-screen .pa-detail-stat-grid b { display:block; }
#dashboard-screen .pa-detail-stat-grid small { color:#76919b; font-size:6px; }
#dashboard-screen .pa-detail-stat-grid b { margin-top:2px; color:#28566a; font-size:11px; }
#dashboard-screen .is-card-detail .pa-details-media img { width:190px; height:auto; max-height:270px; border-radius:10px; image-rendering:auto; }
#dashboard-screen .pa-details-card-facts { margin-bottom:10px; }

@media (max-width: 1180px) {
  #dashboard-screen .pa-listing-row,
  #dashboard-screen .pa-listing-row.is-simple {
    grid-template-columns:82px minmax(175px,.8fr) minmax(290px,1.2fr) minmax(190px,.65fr);
  }
  #dashboard-screen .pa-listing-row .pa-media { width:82px; min-height:82px; }
  #dashboard-screen .pa-listing-row .pa-media > img { max-width:72px; max-height:72px; }
}

@media (max-width: 920px) {
  #dashboard-screen .pa-listing-row,
  #dashboard-screen .pa-listing-row.is-simple {
    grid-template-columns:78px minmax(0,1fr) minmax(220px,.95fr);
  }
  #dashboard-screen .pa-listing-row .pa-specs { grid-column:3; }
  #dashboard-screen .pa-listing-row .pa-commerce { grid-column:2 / 4; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; }
  #dashboard-screen .pa-listing-row .pa-commerce .pa-fee-badge { grid-column:1; margin:0; }
  #dashboard-screen .pa-listing-row .pa-commerce .pa-price { grid-column:1; }
  #dashboard-screen .pa-listing-row .pa-commerce .pa-actions { grid-column:2; grid-row:1 / 3; min-width:180px; margin:0; }
}

@media (max-width: 640px) {
  #dashboard-screen .pa-listing-row,
  #dashboard-screen .pa-listing-row.is-simple {
    grid-template-columns:68px minmax(0,1fr);
    gap:8px 10px;
    padding:9px;
  }
  #dashboard-screen .pa-listing-row .pa-media { width:68px; min-height:68px; }
  #dashboard-screen .pa-listing-row .pa-media > img { max-width:62px; max-height:62px; }
  #dashboard-screen .pa-listing-row .pa-summary { grid-column:2; }
  #dashboard-screen .pa-listing-row .pa-specs { grid-column:1 / -1; }
  #dashboard-screen .pa-listing-row .pa-commerce { grid-column:1 / -1; grid-template-columns:minmax(0,1fr); }
  #dashboard-screen .pa-listing-row .pa-commerce .pa-actions { grid-column:1; grid-row:auto; min-width:0; }
#dashboard-screen .pa-listing-row .pa-commerce .pa-price { font-size:17px; }
#dashboard-screen .pa-card-facts>div,#dashboard-screen .pa-detail-stat-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

/* Mercado global: busca avançada compartilhada pela versão antes do jogo. */
#dashboard-screen .pa-toolbar {
  grid-template-columns:minmax(180px,1fr) 170px 155px auto 46px minmax(150px,auto);
}
#dashboard-screen .pa-toolbar .pa-advanced-toggle {
  width:auto;
  min-width:132px;
  padding:0 14px;
  border-color:rgba(44,145,145,.2);
  background:linear-gradient(135deg,#eef9f7,#edf6fc);
  color:#24766f;
  font-size:10px;
  font-weight:850;
  white-space:nowrap;
}
#dashboard-screen .pa-toolbar .pa-advanced-toggle.is-active {
  border-color:#35ad93;
  background:linear-gradient(135deg,#2e99c9,#35b98c);
  color:#fff;
  box-shadow:0 7px 18px rgba(37,145,139,.18);
}
#dashboard-screen .pa-advanced-filters:not([hidden]) {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:9px 14px;
  max-height:320px;
  overflow:auto;
  padding:13px 22px 15px;
  background:linear-gradient(110deg,rgba(235,249,247,.94),rgba(241,249,253,.94));
}
#dashboard-screen .pa-advanced-heading {
  grid-column:1;
  display:flex;
  align-items:center;
  gap:9px;
}
#dashboard-screen .pa-advanced-heading span { color:#217d72;font-size:11px;font-weight:950;letter-spacing:.09em; }
#dashboard-screen .pa-advanced-heading small { color:#76939d;font-size:8px;font-weight:700; }
#dashboard-screen .pa-advanced-common { grid-column:1;display:grid;grid-template-columns:repeat(2,minmax(110px,1fr));gap:7px; }
#dashboard-screen .pa-advanced-mon { grid-column:1;display:grid;grid-template-columns:repeat(6,minmax(105px,1fr));gap:7px; }
#dashboard-screen .pa-advanced-mon[hidden],#dashboard-screen .pa-advanced-items[hidden] { display:none!important; }
#dashboard-screen .pa-advanced-items { grid-column:1;display:flex;align-items:end;gap:14px;padding:8px 0; }
#dashboard-screen .pa-advanced-items label { width:min(280px,100%); }
#dashboard-screen .pa-advanced-items p { margin:0 0 8px;color:#668890;font-size:9px; }
#dashboard-screen .pa-advanced-filters label { display:grid;gap:4px;min-width:0;color:#557b87;font-size:8px;font-weight:850; }
#dashboard-screen .pa-advanced-filters input,#dashboard-screen .pa-advanced-filters select {
  min-width:0;width:100%;min-height:34px;padding:0 8px;border:1px solid rgba(41,119,148,.16);border-radius:9px;background:#fff;color:#28576a;font:750 9px/1 inherit;outline:0;
}
#dashboard-screen .pa-advanced-filters input:focus,#dashboard-screen .pa-advanced-filters select:focus { border-color:#3fa8d7;box-shadow:0 0 0 3px rgba(63,168,215,.1); }
#dashboard-screen .pa-iv-range span { display:grid;grid-template-columns:1fr 1fr;gap:4px; }
#dashboard-screen .pa-advanced-actions { grid-column:2;grid-row:1 / span 3;display:flex;flex-direction:column;justify-content:flex-end;gap:7px;min-width:110px; }
#dashboard-screen .pa-advanced-actions button { min-height:37px;padding:0 11px;border:1px solid rgba(41,119,148,.15);border-radius:10px;background:#fff;color:#39717d;font:850 9px/1 inherit;cursor:pointer; }
#dashboard-screen .pa-advanced-actions button:last-child { border:0;background:linear-gradient(135deg,#3d9dd0,#36bd8b);color:#fff; }

@media (max-width:1100px) {
  #dashboard-screen .pa-toolbar { grid-template-columns:minmax(160px,1fr) 145px 145px auto 46px; }
  #dashboard-screen .pa-refresh-status { grid-column:1/-1; }
  #dashboard-screen .pa-advanced-mon { grid-template-columns:repeat(4,minmax(100px,1fr)); }
}
@media (max-width:760px) {
  #dashboard-screen .pa-toolbar { grid-template-columns:minmax(0,1fr) 116px 46px; }
  #dashboard-screen .pa-toolbar #pa-sort { display:none; }
  #dashboard-screen .pa-toolbar .pa-advanced-toggle { grid-column:1/3;width:100%; }
  #dashboard-screen .pa-advanced-filters:not([hidden]) { max-height:52vh;grid-template-columns:1fr;padding:10px 11px; }
  #dashboard-screen .pa-advanced-mon { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #dashboard-screen .pa-advanced-actions { grid-column:1;grid-row:auto;flex-direction:row; }
  #dashboard-screen .pa-advanced-actions button { flex:1; }
}

/* Dashboard: quadro editável de atualizações. */
#dashboard-screen .upi-updates-toggle img {
  width:24px;
  height:24px;
  display:block;
}
#dashboard-screen .upi-updates-toggle { position:relative; }
#dashboard-screen .upi-updates-badge {
  position:absolute;
  right:-4px;
  top:-5px;
  min-width:17px;
  height:17px;
  display:grid;
  place-items:center;
  padding:0 4px;
  border:2px solid #f7fbfc;
  border-radius:999px;
  background:#ef645b;
  color:#fff;
  font-size:8px;
  font-weight:900;
}
#dashboard-screen .upi-updates-panel {
  position:fixed;
  z-index:13500;
  top:78px;
  right:18px;
  width:min(390px,calc(100vw - 24px));
  max-height:min(560px,calc(100dvh - 96px));
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  overflow:hidden;
  padding:15px;
  border:1px solid rgba(54,155,161,.25);
  border-radius:20px;
  background:rgba(248,253,253,.98);
  box-shadow:0 24px 70px rgba(14,57,72,.28);
  backdrop-filter:blur(18px);
}
#dashboard-screen .upi-updates-panel[hidden] { display:none; }
#dashboard-screen .upi-updates-head { position:relative; z-index:1; display:flex; align-items:center; gap:10px; margin-bottom:10px; padding-bottom:9px; border-bottom:1px solid rgba(42,122,145,.1); background:rgba(248,253,253,.98); }
#dashboard-screen .upi-updates-head img { width:42px; height:42px; object-fit:contain; image-rendering:pixelated; }
#dashboard-screen .upi-updates-head div { min-width:0; flex:1; }
#dashboard-screen .upi-updates-head small { display:block; color:#379181; font-size:8px; font-weight:900; letter-spacing:.12em; }
#dashboard-screen .upi-updates-head h3 { margin:2px 0 0; color:#173f52; font-size:18px; }
#dashboard-screen .upi-updates-close { width:34px; height:34px; border:1px solid rgba(42,122,145,.15); border-radius:10px; background:#fff; color:#456d7b; cursor:pointer; }
#dashboard-screen .upi-updates-list { min-height:0; display:grid; align-content:start; gap:7px; overflow-y:auto; padding:1px 4px 8px 1px; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#43bcb1 rgba(42,122,145,.08); }
#dashboard-screen .upi-updates-list::-webkit-scrollbar{width:6px}#dashboard-screen .upi-updates-list::-webkit-scrollbar-thumb{border-radius:8px;background:#43bcb1}
#dashboard-screen .upi-update-row { display:grid; grid-template-columns:38px minmax(0,1fr); gap:9px; padding:9px; border:1px solid rgba(42,122,145,.1); border-radius:14px; background:#fff; }
#dashboard-screen .upi-update-row > img { width:38px; height:38px; object-fit:contain; image-rendering:pixelated; }
#dashboard-screen .upi-update-row header { display:flex; align-items:center; gap:6px; }
#dashboard-screen .upi-update-row b { min-width:0; flex:1; overflow:hidden; color:#28566a; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
#dashboard-screen .upi-update-row .upi-update-date { flex:none; color:#7b989f; font-size:7px; font-weight:900; letter-spacing:.04em; }
#dashboard-screen .upi-update-row em { flex:none; padding:3px 6px; border-radius:999px; background:#e5f8f1; color:#238173; font-size:7px; font-style:normal; font-weight:900; }
#dashboard-screen .upi-update-row p { margin:3px 0 0; color:#698791; font-size:9px; line-height:1.4; }
#dashboard-screen .upi-updates-empty { padding:16px; border-radius:13px; background:#edf7f8; color:#67838e; font-size:10px; text-align:center; }
#dashboard-screen .upi-updates-foot { position:relative; z-index:1; margin:9px 2px 0; padding-top:8px; border-top:1px solid rgba(42,122,145,.1); background:rgba(248,253,253,.98); color:#78939b; font-size:8px; line-height:1.45; }

@media(max-width:760px){
  #dashboard-screen .upi-updates-panel { top:70px; right:8px; }
}
