:root {
  --bg: #050611;
  --bg-soft: #120f26;
  --panel: rgba(11, 10, 31, 0.9);
  --panel-2: rgba(15, 14, 38, 0.96);
  --line: rgba(153, 173, 255, 0.16);
  --line-strong: rgba(177, 160, 255, 0.34);
  --glow: rgba(135, 106, 255, 0.24);
  --text: #e9f7ff;
  --muted: #9ca8cb;
  --cyan: #8ca8ff;
  --cyan-bright: #d7c6ff;
  --blue: #556cff;
  --red: #ff6d90;
  --green: #4edaa2;
  --shadow: 0 22px 60px rgba(2, 3, 14, 0.58);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Rajdhani", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 16%, rgba(120, 88, 255, 0.24), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(76, 127, 255, 0.18), transparent 22%),
    radial-gradient(circle at 52% 74%, rgba(255, 110, 176, 0.12), transparent 24%),
    radial-gradient(circle at 22% 88%, rgba(69, 180, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #070815, #090616 42%, #03040c 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 14%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.4px),
    radial-gradient(circle at 16% 48%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.5px),
    radial-gradient(circle at 27% 31%, rgba(214, 226, 255, 0.58) 0 1px, transparent 1.5px),
    radial-gradient(circle at 42% 18%, rgba(255, 255, 255, 0.62) 0 1px, transparent 1.5px),
    radial-gradient(circle at 57% 24%, rgba(216, 226, 255, 0.4) 0 1px, transparent 1.5px),
    radial-gradient(circle at 66% 62%, rgba(255, 255, 255, 0.4) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 34%, rgba(255, 255, 255, 0.66) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.52) 0 1px, transparent 1.5px),
    radial-gradient(circle at 84% 78%, rgba(222, 230, 255, 0.42) 0 1px, transparent 1.5px),
    radial-gradient(circle at 26% 78%, rgba(255, 255, 255, 0.44) 0 1px, transparent 1.5px);
  opacity: 0.78;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 32%, rgba(110, 76, 230, 0.14), transparent 38%),
    radial-gradient(ellipse at 72% 28%, rgba(84, 116, 255, 0.12), transparent 34%),
    radial-gradient(ellipse at 52% 84%, rgba(255, 104, 170, 0.08), transparent 28%);
  mix-blend-mode: screen;
  opacity: 0.9;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    opacity 160ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.app-shell {
  width: min(1600px, calc(100% - 24px));
  margin: 0 auto;
  padding: 14px 0 24px;
}

.topbar,
.panel,
.metric-card,
.dex-entry,
.subcard,
.select-shell select,
.search-stack input {
  background:
    radial-gradient(circle at top right, rgba(132, 100, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(24, 18, 52, 0.94), rgba(8, 8, 22, 0.97)),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 18px;
}

.current-scan-shell {
  position: sticky;
  top: 12px;
  z-index: 18;
  margin-top: 12px;
}

.current-scan-ribbon {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 84% 12%, rgba(105, 118, 255, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(28, 22, 60, 0.95), rgba(9, 10, 26, 0.98)),
    var(--panel);
  border: 1px solid rgba(180, 165, 255, 0.18);
  box-shadow: var(--shadow);
}

.current-scan-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 0;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: 0;
}

.current-scan-ribbon.is-empty {
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  align-items: flex-start;
  gap: 10px;
  border-style: dashed;
  background:
    radial-gradient(circle at 84% 16%, rgba(128, 96, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(20, 18, 44, 0.92), rgba(8, 9, 22, 0.96)),
    var(--panel);
}

.current-scan-ribbon.is-empty .current-scan-main {
  grid-template-columns: minmax(0, 1fr);
  align-items: flex-start;
}

.current-scan-ribbon.is-empty .current-scan-copy {
  width: min(100%, 520px);
  max-width: 520px;
}

.current-scan-ribbon.is-empty .current-scan-meta {
  max-width: 52ch;
  line-height: 1.45;
}

.current-scan-ribbon.is-empty .current-scan-types {
  display: none;
}

.current-scan-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.current-scan-copy strong {
  font-size: 1.15rem;
}

.current-scan-meta {
  color: var(--muted);
  font-family: "Oxanium", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

.current-scan-types {
  justify-content: flex-end;
}

.current-scan-clear {
  align-self: stretch;
  min-width: 88px;
  padding: 0 16px;
  border-radius: 14px;
  color: #ffd6df;
  background: rgba(255, 82, 122, 0.16);
  border: 1px solid rgba(255, 102, 145, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 198, 214, 0.08);
}

.current-scan-clear:not(.hidden) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.current-scan-clear:hover,
.current-scan-clear:focus-visible {
  color: #fff1f5;
  background: rgba(255, 82, 122, 0.24);
  border-color: rgba(255, 126, 163, 0.4);
}

.current-scan-ribbon.is-empty .current-scan-clear {
  display: none;
}

.current-scan-sprite {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: pixelated;
  border-radius: 16px;
  background: rgba(89, 200, 255, 0.08);
  border: 1px solid rgba(89, 200, 255, 0.14);
  padding: 6px;
}

.current-scan-sprite.is-hidden {
  display: none;
}

.brand-lockup {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.sensor-cluster {
  display: grid;
  grid-template-columns: 52px 14px 14px;
  grid-template-rows: repeat(2, 14px);
  gap: 6px;
  padding: 6px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.16));
  border: 1px solid rgba(89, 200, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.sensor-main,
.sensor-dot {
  display: block;
  border-radius: 999px;
}

.sensor-main {
  grid-row: 1 / span 2;
  width: 52px;
  height: 52px;
  background:
    radial-gradient(circle at 35% 35%, #ffc7d2, #ff6a7d 36%, #c11539 68%, #540012);
  border: 3px solid #d9f5ff;
  box-shadow:
    0 0 0 5px rgba(95, 217, 255, 0.12),
    0 0 28px rgba(255, 78, 104, 0.28);
}

.sensor-dot {
  width: 14px;
  height: 14px;
  box-shadow: 0 0 14px currentColor;
}

.sensor-blue {
  color: #8be5ff;
  background: radial-gradient(circle at 35% 35%, #dbfaff, #69d4ff 55%, #134ea8);
}

.sensor-gold {
  color: #ffd776;
  background: radial-gradient(circle at 35% 35%, #fff4cb, #ffcb52 55%, #a16010);
}

.sensor-green {
  color: #89ffb6;
  background: radial-gradient(circle at 35% 35%, #dbffe6, #65e88f 55%, #0c824c);
}

.ghost-button,
.nav-tab,
.bank-button,
.primary-action,
.secondary-action,
.form-chip,
.toolbar-pill,
.type-chip,
.matchup-chip,
.dex-tag {
  font-family: "Oxanium", sans-serif;
  letter-spacing: 0.06em;
}

.brand-block h1,
.section-label,
.subcard-heading h3,
.entry-number,
.entry-status,
.results-summary,
.toolbar-pill,
.meta-label {
  font-family: "Oxanium", sans-serif;
}

.brand-block h1 {
  font-size: 1.7rem;
  letter-spacing: 0.08em;
}

.brand-block h1 span {
  color: var(--cyan);
}

.brand-block p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-tab,
.ghost-button,
.bank-button,
.primary-action,
.secondary-action,
.form-chip,
.toolbar-pill {
  border-radius: var(--radius-sm);
}

.nav-tab,
.ghost-button,
.bank-button,
.form-chip {
  padding: 10px 14px;
  color: var(--text);
  background: rgba(89, 200, 255, 0.06);
  border: 1px solid transparent;
}

.nav-tab.active,
.bank-button.active,
.form-chip.active {
  color: var(--text);
  background: linear-gradient(180deg, rgba(89, 200, 255, 0.24), rgba(47, 120, 255, 0.16));
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1px rgba(89, 200, 255, 0.18), 0 0 24px rgba(80, 194, 255, 0.16);
}

.ghost-button {
  color: var(--cyan-bright);
  justify-self: end;
}

.system-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.system-chip {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--cyan-bright);
  background: rgba(89, 200, 255, 0.07);
  border: 1px solid rgba(89, 200, 255, 0.14);
  font-family: "Oxanium", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-chip.online {
  color: #ffd7df;
  background: rgba(255, 78, 104, 0.12);
  border-color: rgba(255, 78, 104, 0.22);
}

.workspace-shell.app-view,
.systems-grid.app-view {
  display: none;
}

.workspace-shell.app-view.active,
.systems-grid.app-view.active {
  display: grid;
}

.workspace-shell {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.dashboard-sidebar.app-rail {
  display: none;
}

.app-rail .dashboard-sidecard:first-of-type {
  margin-top: auto;
}

body[data-active-view="landing"] .dashboard-sidebar.app-rail {
  display: none;
}

.landing-shell {
  width: min(1248px, 100%);
  margin-inline: auto;
}

body:not([data-active-view="landing"]) {
  --app-rail-width: 224px;
}

body:not([data-active-view="landing"]) .app-shell {
  display: grid;
  grid-template-columns: var(--app-rail-width) minmax(0, 1fr);
  grid-template-areas:
    "topbar topbar"
    "rail ribbon"
    "rail main";
  column-gap: 16px;
  row-gap: 16px;
  align-items: start;
}

body:not([data-active-view="landing"]) .topbar {
  grid-area: topbar;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

body:not([data-active-view="landing"]) .nav-tabs {
  display: none;
}

body:not([data-active-view="landing"]) .dashboard-sidebar.app-rail {
  grid-area: rail;
  display: grid;
  position: sticky;
  top: 14px;
  align-self: start;
  align-content: start;
  gap: 7px;
  max-height: calc(100vh - 28px);
  margin-top: 0;
  overflow: auto;
  padding: 12px 12px 18px;
}

body:not([data-active-view="landing"]) .app-rail::before {
  background:
    radial-gradient(circle at 24% 74%, rgba(154, 103, 255, 0.24), transparent 34%),
    radial-gradient(circle at 68% 86%, rgba(86, 120, 255, 0.16), transparent 26%),
    linear-gradient(180deg, transparent 0%, rgba(16, 12, 48, 0.08) 28%, rgba(31, 20, 86, 0.52) 58%, rgba(8, 8, 27, 0.98) 100%);
  opacity: 0.94;
}

body:not([data-active-view="landing"]) .current-scan-shell {
  grid-area: ribbon;
  margin-top: 0;
}

body:not([data-active-view="landing"]) .workspace-shell,
body:not([data-active-view="landing"]) .systems-grid {
  grid-area: main;
  margin-top: 0;
}

body[data-active-view="landing"] {
  --dashboard-sidebar-width: 224px;
  --dashboard-shell-gap: 10px;
  --landing-sidebar-lift: 82px;
  --landing-scan-gap: 8px;
}

body[data-active-view="landing"] .app-shell {
  width: min(1288px, calc(100% - 18px));
  padding: 10px 0 18px;
}

body[data-active-view="landing"] .topbar {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 0 4px 2px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-active-view="landing"] .brand-lockup {
  display: none;
}

body[data-active-view="landing"] .nav-tabs,
body[data-active-view="landing"] .system-strip {
  display: none;
}

body[data-active-view="landing"] .brand-block h1 {
  font-size: 1.45rem;
}

body[data-active-view="landing"] .brand-block p {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: none;
}

body[data-active-view="landing"] #session-button {
  justify-self: end;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(14, 31, 64, 0.96), rgba(7, 14, 31, 0.98)),
    var(--panel);
  border: 1px solid rgba(89, 200, 255, 0.14);
  color: var(--text);
}

body[data-active-view="landing"] .current-scan-shell {
  top: 8px;
  margin-top: 8px;
  width: min(1248px, 100%);
  margin-inline: auto;
  padding-left: calc(var(--dashboard-sidebar-width) + var(--landing-scan-gap));
  box-sizing: border-box;
}

body[data-active-view="landing"] .current-scan-ribbon {
  gap: 8px;
  padding: 8px 10px;
  border-radius: 18px;
}

body[data-active-view="landing"] .current-scan-main {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
}

body[data-active-view="landing"] .current-scan-sprite {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  padding: 3px;
}

body[data-active-view="landing"] .current-scan-copy strong {
  font-size: 0.94rem;
}

body[data-active-view="landing"] .current-scan-meta {
  font-size: 0.64rem;
}

body[data-active-view="landing"] .workspace-shell {
  margin-top: 8px;
}

body[data-active-view="landing"] .landing-shell .panel:not(.dashboard-sidebar) {
  min-height: 0;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: var(--dashboard-sidebar-width) minmax(0, 1fr);
  gap: var(--dashboard-shell-gap);
  align-items: stretch;
}

.dashboard-sidebar {
  position: sticky;
  top: 8px;
  display: grid;
  gap: 7px;
  align-content: start;
  align-self: stretch;
  min-height: calc(100vh - 16px);
  margin-top: calc(-1 * var(--landing-sidebar-lift));
  padding: 12px 12px 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 10%, rgba(132, 98, 255, 0.28), transparent 26%),
    radial-gradient(circle at 80% 12%, rgba(88, 116, 255, 0.18), transparent 22%),
    radial-gradient(circle at 42% 68%, rgba(255, 118, 174, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(16, 14, 44, 0.985), rgba(7, 8, 23, 0.995));
  overflow: hidden;
}

.dashboard-sidebar::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 280px;
  background:
    radial-gradient(circle at 24% 74%, rgba(154, 103, 255, 0.24), transparent 34%),
    radial-gradient(circle at 68% 86%, rgba(86, 120, 255, 0.16), transparent 26%),
    linear-gradient(180deg, transparent 0%, rgba(16, 12, 48, 0.08) 28%, rgba(31, 20, 86, 0.52) 58%, rgba(8, 8, 27, 0.98) 100%),
    url("https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/94.png") left 8px bottom 8px / 134px auto no-repeat;
  pointer-events: none;
  opacity: 0.96;
}

.dashboard-sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24px 38px, rgba(255, 255, 255, 0.45) 0 1.4px, transparent 1.6px),
    radial-gradient(circle at 76% 10%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1.2px),
    radial-gradient(circle at 60% 24%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.2px),
    radial-gradient(circle at 82% 42%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.2px);
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0.7;
}

.dashboard-sidebar > * {
  position: relative;
  z-index: 1;
}

.dashboard-sidebar-brand {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 2px 2px 1px;
}

.dashboard-sidebar-sensors {
  transform: scale(0.72);
  transform-origin: left center;
}

.dashboard-sidebar-copy {
  display: grid;
  gap: 2px;
}

.dashboard-sidebar-copy strong {
  font-family: "Oxanium", sans-serif;
  font-size: 1.08rem;
  line-height: 1;
}

.dashboard-sidebar-copy span,
.dashboard-sidebar-copy p {
  color: rgba(225, 238, 255, 0.76);
  font-size: 0.74rem;
  line-height: 1.35;
}

.dashboard-sidebar-copy p strong {
  color: var(--text);
  font-size: 0.96rem;
}

.dashboard-sidebar-nav {
  display: grid;
  gap: 5px;
}

.dashboard-nav-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 13px;
  color: var(--text);
  background: rgba(143, 119, 255, 0.05);
  border: 1px solid rgba(170, 155, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  text-align: left;
}

.dashboard-nav-item.active {
  background:
    radial-gradient(circle at 18% 18%, rgba(206, 191, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(122, 88, 255, 0.38), rgba(69, 84, 212, 0.26)),
    rgba(143, 119, 255, 0.08);
  border-color: rgba(181, 166, 255, 0.46);
  box-shadow:
    0 0 0 1px rgba(193, 179, 255, 0.1),
    0 12px 24px rgba(38, 33, 96, 0.28);
}

.dashboard-nav-item--placeholder {
  color: rgba(233, 247, 255, 0.82);
}

.dashboard-nav-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 9px;
  background: rgba(137, 114, 255, 0.1);
  border: 1px solid rgba(176, 162, 255, 0.12);
  font-family: "Oxanium", sans-serif;
  font-size: 0.9rem;
  line-height: 1;
}

.dashboard-sidecard:first-of-type {
  margin-top: auto;
}

.dashboard-sidecard {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 15px;
  background:
    radial-gradient(circle at top right, rgba(118, 88, 255, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(22, 18, 52, 0.84), rgba(8, 10, 27, 0.94));
  border: 1px solid rgba(183, 167, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.dashboard-side-label {
  color: var(--cyan-bright);
  font-family: "Oxanium", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-sidecard strong {
  font-size: 0.96rem;
}

.dashboard-sidecard p {
  color: rgba(225, 238, 255, 0.74);
  line-height: 1.4;
  font-size: 0.78rem;
}

.dashboard-side-button {
  justify-self: start;
}

.dashboard-side-stats {
  grid-template-columns: 1fr;
  gap: 8px;
}

.dashboard-side-stat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid rgba(146, 188, 255, 0.12);
  border-radius: 0;
  background: transparent;
}

.dashboard-side-stat:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.dashboard-side-stat span {
  color: rgba(225, 238, 255, 0.72);
  font-family: "Oxanium", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-side-stat strong {
  font-size: 0.86rem;
}

.dashboard-main {
  display: grid;
  gap: 8px;
}

.dashboard-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 120px minmax(170px, 0.62fr);
  gap: 10px;
  align-items: center;
  min-height: 0;
  padding: 12px 14px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 48% 34%, rgba(126, 88, 255, 0.28), transparent 34%),
    radial-gradient(circle at 14% 10%, rgba(252, 118, 188, 0.1), transparent 22%),
    radial-gradient(circle at 80% 12%, rgba(89, 112, 255, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(24, 18, 58, 0.97), rgba(9, 10, 28, 0.99));
}

.dashboard-hero-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 72%;
  background:
    linear-gradient(180deg, transparent 0 32%, rgba(10, 11, 34, 0.16) 60%, rgba(10, 11, 34, 0.34) 100%),
    radial-gradient(circle at 10% 24%, rgba(255, 216, 118, 0.4) 0 2px, transparent 2.5px),
    radial-gradient(circle at 16% 18%, rgba(255, 216, 118, 0.24) 0 1.4px, transparent 1.8px),
    linear-gradient(180deg, transparent 0, rgba(62, 76, 140, 0.22) 38%, rgba(18, 27, 60, 0.38) 100%);
  clip-path: polygon(0 54%, 8% 46%, 16% 58%, 28% 38%, 40% 60%, 53% 42%, 64% 63%, 78% 40%, 90% 58%, 100% 46%, 100% 100%, 0 100%);
  pointer-events: none;
}

.dashboard-hero-card > * {
  position: relative;
  z-index: 1;
}

.dashboard-hero-emblem {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at 32% 28%, rgba(112, 210, 255, 0.9), rgba(63, 111, 255, 0.7) 38%, rgba(101, 66, 255, 0.78) 74%, rgba(19, 24, 72, 0.95));
  box-shadow:
    0 16px 26px rgba(31, 62, 145, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.dashboard-hero-emblem::before,
.dashboard-hero-emblem::after {
  content: "";
  position: absolute;
  background: #0a1231;
}

.dashboard-hero-emblem::before {
  width: 34px;
  height: 5px;
  border-radius: 999px;
}

.dashboard-hero-emblem::after {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px #0a1231;
}

.dashboard-hero-emblem-core {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #4dc3ff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.dashboard-hero-copy {
  display: grid;
  gap: 4px;
}

.dashboard-hero-art {
  align-self: end;
  display: grid;
  place-items: end center;
}

.dashboard-hero-art img {
  width: min(100%, 108px);
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.34));
}

.dashboard-hero-quote {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(11, 20, 44, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard-hero-quote strong {
  font-family: "Oxanium", sans-serif;
  font-size: 0.82rem;
}

.dashboard-hero-quote p {
  color: rgba(233, 247, 255, 0.82);
  line-height: 1.34;
  font-size: 0.76rem;
}

.landing-welcome {
  font-size: clamp(1.72rem, 2vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: none;
}

.landing-summary {
  max-width: 58ch;
  color: rgba(233, 247, 255, 0.78);
  font-size: 0.76rem;
  line-height: 1.34;
}

.dashboard-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.dashboard-metric-card {
  position: relative;
  min-height: 84px;
  display: grid;
  gap: 2px;
  align-content: start;
  padding: 12px 14px;
  border-radius: 15px;
  overflow: hidden;
}

.dashboard-metric-card::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 14px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.02),
    0 8px 18px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
}

.dashboard-metric-card--pokedex::before {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 214, 166, 0.96), rgba(255, 145, 77, 0.9) 40%, rgba(209, 94, 28, 0.94) 76%);
}

.dashboard-metric-card--coverage::before {
  background:
    radial-gradient(circle at 32% 28%, rgba(178, 255, 208, 0.95), rgba(71, 224, 133, 0.9) 40%, rgba(22, 148, 86, 0.94) 76%);
}

.dashboard-metric-card--shiny::before {
  background:
    conic-gradient(from -30deg, rgba(255, 245, 176, 0.96), rgba(255, 178, 89, 0.9), rgba(255, 227, 98, 0.98), rgba(255, 245, 176, 0.96));
}

.dashboard-metric-card--boxes::before {
  background:
    radial-gradient(circle at 32% 28%, rgba(223, 195, 255, 0.96), rgba(164, 112, 255, 0.9) 40%, rgba(87, 42, 182, 0.96) 76%);
}

.dashboard-metric-card span {
  color: rgba(225, 238, 255, 0.72);
  font-size: 0.68rem;
}

.dashboard-metric-card strong {
  font-size: 1.28rem;
  line-height: 1.04;
}

.dashboard-metric-note {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.24;
}

.dashboard-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(320px, 0.92fr);
  gap: 8px;
  align-items: start;
}

.dashboard-home-main,
.dashboard-home-side {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: start;
}

.dashboard-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 8px;
  align-items: stretch;
}

.dashboard-feature-card {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: 12px;
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(131, 96, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(20, 16, 47, 0.95), rgba(7, 9, 24, 0.98));
  border: 1px solid rgba(173, 157, 255, 0.12);
  box-shadow: 0 16px 32px rgba(3, 8, 22, 0.34);
}

.dashboard-card-catches {
  min-height: 0;
}

.dashboard-card-completion {
  height: 100%;
  align-content: start;
}

.dashboard-feature-card--wide {
  grid-column: span 2;
}

.dashboard-feature-card--full {
  grid-column: 1 / -1;
}

.dashboard-feature-card--split {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: start;
}

.dashboard-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.dashboard-card-head h3 {
  font-family: "Oxanium", sans-serif;
  font-size: 0.92rem;
}

.dashboard-card-head--compact h3 {
  font-size: 0.82rem;
}

.dashboard-card-subtext {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.28;
  font-size: 0.72rem;
}

.dashboard-link-button {
  align-self: center;
}

.dashboard-suggested-board {
  padding: 0;
  border: 0;
  background: transparent;
}

.dashboard-suggested-board--mini .suggested-board-grid {
  margin-top: 0;
}

.dashboard-recent-list {
  display: grid;
  gap: 7px;
}

.dashboard-recent-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(134, 114, 255, 0.05);
  border: 1px solid rgba(174, 160, 255, 0.08);
  text-align: left;
  color: var(--text);
}

.dashboard-recent-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  image-rendering: pixelated;
}

.dashboard-recent-meta {
  display: grid;
  gap: 2px;
}

.dashboard-recent-meta strong {
  font-size: 0.84rem;
}

.dashboard-recent-meta span {
  color: var(--muted);
  font-size: 0.7rem;
}

.dashboard-recent-stamp {
  color: var(--muted);
  font-family: "Oxanium", sans-serif;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-completion-shell {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.dashboard-completion-ring {
  --completion-angle: 0deg;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    conic-gradient(from -90deg, #834dff 0deg, #2f78ff var(--completion-angle), rgba(255, 255, 255, 0.08) var(--completion-angle), rgba(255, 255, 255, 0.08) 360deg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.dashboard-completion-ring > div {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  gap: 3px;
  background:
    radial-gradient(circle at top, rgba(158, 134, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(12, 12, 36, 0.98), rgba(5, 8, 22, 0.98));
  text-align: center;
}

.dashboard-completion-ring strong {
  font-family: "Oxanium", sans-serif;
  font-size: 1.24rem;
}

.dashboard-completion-ring span {
  color: var(--muted);
  font-size: 0.64rem;
}

.dashboard-breakdown-list,
.dashboard-task-list,
.dashboard-journey-grid,
.dashboard-suggestion-grid,
.dashboard-smart-grid,
.dashboard-event-list {
  display: grid;
  gap: 7px;
}

.dashboard-breakdown-item,
.dashboard-task-item,
.dashboard-suggestion-card,
.dashboard-smart-card,
.dashboard-event-item,
.dashboard-journey-card {
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(134, 114, 255, 0.05);
  border: 1px solid rgba(173, 160, 255, 0.08);
}

.dashboard-breakdown-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.dashboard-breakdown-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
}

.dashboard-breakdown-copy strong {
  display: block;
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.15;
}

.dashboard-breakdown-item span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.2;
}

.dashboard-breakdown-percent {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 0.82rem;
}

.dashboard-event-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.dashboard-event-item strong,
.dashboard-suggestion-card strong,
.dashboard-smart-card strong,
.dashboard-journey-card strong {
  display: block;
  font-size: 0.84rem;
}

.dashboard-event-item p,
.dashboard-suggestion-card p,
.dashboard-smart-card p,
.dashboard-journey-card p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.3;
  font-size: 0.72rem;
}

.dashboard-event-item span,
.dashboard-task-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(117, 92, 255, 0.18);
  border: 1px solid rgba(138, 130, 255, 0.26);
  color: #ece4ff;
  font-family: "Oxanium", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-task-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.dashboard-task-copy strong {
  display: block;
  font-size: 0.82rem;
}

.dashboard-task-copy p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.28;
  font-size: 0.7rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dashboard-journey-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-journey-card {
  display: grid;
  gap: 6px;
}

.dashboard-journey-progress {
  display: grid;
  gap: 6px;
}

.dashboard-journey-progress span {
  color: var(--muted);
  font-size: 0.68rem;
}

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

.dashboard-suggestion-card small,
.dashboard-smart-card small {
  display: inline-block;
  margin-top: 4px;
  color: var(--cyan-bright);
  font-family: "Oxanium", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-mini-shiny {
  display: grid;
  gap: 8px;
}

.dashboard-mini-shiny .suggested-board-actions {
  margin-top: 8px;
}

.dashboard-card-suggestion .dashboard-suggestion-grid {
  gap: 6px;
}

.dashboard-card-suggestion .dashboard-suggestion-card {
  padding: 8px 9px;
}

.dashboard-card-suggestion .dashboard-suggestion-card p,
.dashboard-card-suggestion .dashboard-suggestion-card small {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dashboard-card-suggestion .dashboard-suggestion-card p {
  -webkit-line-clamp: 2;
}

.dashboard-card-suggestion .dashboard-suggestion-card small {
  -webkit-line-clamp: 3;
}

.dashboard-card-suggestion .dashboard-mini-shiny .suggested-board {
  padding: 8px;
}

.dashboard-card-suggestion .dashboard-mini-shiny .suggested-board-grid--shiny {
  gap: 6px;
}

.dashboard-card-suggestion .dashboard-mini-shiny .suggested-hunt-pod {
  width: min(100%, 74px);
}

.dashboard-card-suggestion .dashboard-mini-shiny .suggested-board-actions {
  margin-top: 6px;
}

.dashboard-card-suggestion .dashboard-mini-shiny .suggested-board-selection strong {
  font-size: 0.78rem;
}

.dashboard-smart-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-smart-card {
  display: grid;
  gap: 6px;
}

.dashboard-smart-card button {
  justify-self: start;
}

.dashboard-empty {
  color: var(--muted);
}

.landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 16px;
  align-items: start;
}

.landing-hero-panel,
.landing-hunt-panel {
  display: grid;
  gap: 18px;
}

.landing-hero-panel {
  align-content: start;
  min-height: 100%;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(96, 122, 255, 0.18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255, 102, 180, 0.12), transparent 24%),
    radial-gradient(circle at 28% 24%, rgba(154, 108, 255, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(18, 16, 46, 0.95), rgba(7, 8, 22, 0.98)),
    var(--panel);
}

.landing-welcome {
  font-family: "Oxanium", sans-serif;
  font-size: clamp(1.95rem, 3vw, 2.8rem);
  line-height: 0.95;
}

.landing-summary {
  max-width: 56ch;
  color: rgba(233, 247, 255, 0.78);
  font-size: 0.84rem;
  line-height: 1.38;
}

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

.landing-metric-grid .metric-card strong {
  font-size: 1.45rem;
}

.landing-hunt-panel .subcard-heading {
  align-items: center;
}

.landing-hunt-stack {
  display: grid;
  gap: 14px;
}

.suggested-board {
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(176, 160, 255, 0.14);
  background:
    radial-gradient(circle at top right, rgba(126, 94, 255, 0.1), transparent 24%),
    radial-gradient(circle at 12% 18%, rgba(255, 108, 178, 0.06), transparent 22%),
    linear-gradient(180deg, rgba(18, 18, 48, 0.93), rgba(8, 10, 24, 0.98));
}

.suggested-board--living {
  box-shadow: inset 0 0 0 1px rgba(118, 218, 255, 0.04);
}

.suggested-board--shiny {
  background:
    radial-gradient(circle at top right, rgba(255, 214, 120, 0.12), transparent 22%),
    radial-gradient(circle at 16% 16%, rgba(167, 134, 255, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(23, 20, 48, 0.93), rgba(9, 10, 23, 0.98));
}

.suggested-board-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.suggested-board-note {
  display: inline-block;
  margin-top: 6px;
  color: var(--muted);
  font-family: "Oxanium", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.suggested-board-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

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

.suggested-hunt-tile {
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
}

.suggested-hunt-pod {
  position: relative;
  width: min(100%, 88px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(20, 19, 52, 0.98), rgba(9, 12, 30, 0.98));
  border: 1px solid rgba(174, 160, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 32px rgba(2, 7, 20, 0.28);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.suggested-board--shiny .suggested-hunt-pod {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 251, 219, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(23, 20, 52, 0.98), rgba(10, 12, 28, 0.98));
}

.suggested-hunt-tile:hover .suggested-hunt-pod,
.suggested-hunt-tile:focus-visible .suggested-hunt-pod,
.suggested-hunt-tile.is-selected .suggested-hunt-pod {
  border-color: rgba(197, 187, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 2px rgba(134, 114, 255, 0.14),
    0 18px 34px rgba(16, 13, 40, 0.34);
  transform: translateY(-2px) scale(1.02);
}

.suggested-board--shiny .suggested-hunt-tile:hover .suggested-hunt-pod,
.suggested-board--shiny .suggested-hunt-tile:focus-visible .suggested-hunt-pod,
.suggested-board--shiny .suggested-hunt-tile.is-selected .suggested-hunt-pod {
  border-color: rgba(255, 220, 125, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 2px rgba(255, 220, 125, 0.12),
    0 18px 34px rgba(19, 14, 32, 0.34);
}

.suggested-hunt-sprite {
  width: 76%;
  height: 76%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.24));
}

.suggested-hunt-badge {
  position: absolute;
  inset: 8px auto auto 8px;
  min-width: 46px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(7, 19, 41, 0.9);
  border: 1px solid rgba(124, 225, 255, 0.28);
  color: rgba(227, 250, 255, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 16px rgba(5, 10, 24, 0.24);
  font-family: "Oxanium", sans-serif;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  z-index: 1;
}

.suggested-entry-gender-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(18, 77, 98, 0.34);
  border: 1px solid rgba(124, 225, 255, 0.22);
  color: rgba(231, 251, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-family: "Oxanium", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: middle;
}

.suggested-hunt-dex {
  position: absolute;
  inset: auto 8px 8px auto;
  min-width: 42px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(4, 14, 32, 0.82);
  border: 1px solid rgba(178, 161, 255, 0.18);
  color: rgba(233, 247, 255, 0.82);
  font-family: "Oxanium", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-align: center;
}

.suggested-board-actions {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.suggested-board-selection {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.suggested-board-selection span {
  color: var(--muted);
  font-family: "Oxanium", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.suggested-board-selection strong {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
}

.suggested-board-button-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.archive-workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.scan-detail-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.scan-detail-panel .screen-frame {
  min-height: 320px;
}

.scan-detail-panel .screen-frame img {
  width: min(72%, 360px);
  height: min(72%, 360px);
}

.archive-stack {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  gap: 16px;
  align-items: start;
}

.panel {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 18px;
  min-height: calc(100vh - 110px);
  min-width: 0;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: calc(var(--radius-xl) - 8px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.control-panel,
.results-panel {
  overflow: hidden;
}

.control-panel {
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 28px);
  overflow: auto;
}

.detail-panel {
  background:
    linear-gradient(180deg, rgba(255, 92, 122, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(13, 26, 52, 0.92), rgba(5, 10, 24, 0.96)),
    var(--panel);
}

.panel-section + .panel-section {
  margin-top: 18px;
}

.section-label {
  color: var(--cyan-bright);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-stack {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.search-stack input,
.select-shell select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text);
}

.search-stack input::placeholder {
  color: rgba(144, 171, 197, 0.72);
}

.search-stack input:focus,
.select-shell select:focus {
  outline: 2px solid rgba(102, 205, 255, 0.36);
  outline-offset: 2px;
}

.action-row,
.button-bank,
.toolbar-row,
.identity-strip,
.type-row,
.chip-row,
.form-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 116px;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  padding: 12px 14px;
  color: white;
}

.primary-action {
  background: linear-gradient(180deg, #2d89ff, #225ad0);
  box-shadow: 0 10px 24px rgba(45, 137, 255, 0.28);
}

.primary-action.compact {
  min-height: 42px;
  min-width: 158px;
}

.primary-action.caught {
  background: linear-gradient(180deg, #48d5a0, #1d9b71);
  box-shadow: 0 10px 24px rgba(72, 213, 160, 0.22);
}

.secondary-action {
  background: linear-gradient(180deg, #ff6c7d, #d73f58);
  box-shadow: 0 10px 24px rgba(215, 63, 88, 0.24);
}

.status-text,
.results-summary,
.entry-status,
.meta-label,
.matchup-label {
  color: var(--muted);
}

.status-text {
  margin-top: 10px;
}

.button-bank {
  margin-top: 10px;
}

.button-bank.compact .bank-button {
  flex: 1 1 calc(50% - 10px);
}

.bank-button {
  flex: 1 1 calc(33.333% - 10px);
  min-height: 42px;
  border: 1px solid rgba(89, 200, 255, 0.08);
}

.select-shell {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.select-shell span {
  color: var(--muted);
  font-size: 0.92rem;
}

.panel-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(89, 200, 255, 0.12);
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-footer p + p {
  margin-top: 6px;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.signal-card {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(89, 200, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(21, 38, 72, 0.74), rgba(9, 16, 34, 0.92));
}

.signal-card span {
  display: block;
  color: var(--muted);
  font-family: "Oxanium", sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signal-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
}

.results-header {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  align-items: start;
}

.results-header h2 {
  margin-top: 8px;
  font-family: "Oxanium", sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.3rem);
  line-height: 0.9;
}

.results-summary {
  margin-top: 8px;
  line-height: 1.45;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
}

.metric-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.9rem;
  line-height: 1;
  word-break: break-word;
}

.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  gap: 12px;
}

.toolbar-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.archive-view-toggle {
  flex: 0 0 auto;
}

.toolbar-pill {
  padding: 8px 12px;
  color: var(--cyan-bright);
  background: rgba(89, 200, 255, 0.06);
  border: 1px solid rgba(89, 200, 255, 0.12);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.result-list {
  margin-top: 16px;
  min-height: 420px;
  height: calc(100vh - 312px);
  overflow: auto;
  padding-right: 6px;
}

.result-list.is-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 12px;
  align-content: start;
  padding-right: 0;
}

.result-list::-webkit-scrollbar,
.form-bank::-webkit-scrollbar {
  width: 10px;
}

.result-list::-webkit-scrollbar-thumb,
.form-bank::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(89, 200, 255, 0.18);
}

.result-tail {
  margin: 8px 0 18px;
  padding: 12px 14px;
  border: 1px dashed rgba(89, 200, 255, 0.14);
  border-radius: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.result-list.is-grid .result-tail,
.result-list.is-grid .no-signal {
  grid-column: 1 / -1;
}

.dex-entry {
  --entry-accent: rgba(89, 200, 255, 0.2);
  --entry-accent-strong: #8ddfff;
  --entry-accent-surface: rgba(89, 200, 255, 0.08);
  --entry-accent-border: rgba(89, 200, 255, 0.18);
  --entry-toggle-width: 64px;
  position: relative;
  display: grid;
  grid-template-columns: var(--entry-toggle-width) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  padding: 0;
  border-radius: 18px;
  margin-bottom: 10px;
  overflow: hidden;
}

.dex-entry.count-mode {
  --entry-toggle-width: 104px;
}

.dex-entry.selected {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1px rgba(89, 200, 255, 0.18), var(--shadow);
}

.dex-entry.caught {
  border-color: rgba(78, 218, 162, 0.42);
  background:
    linear-gradient(90deg, rgba(78, 218, 162, 0.2), transparent 22%),
    linear-gradient(180deg, rgba(15, 44, 49, 0.94), rgba(5, 18, 22, 0.98)),
    var(--panel);
  box-shadow:
    inset 0 0 0 1px rgba(78, 218, 162, 0.14),
    0 14px 32px rgba(6, 18, 24, 0.28);
}

.dex-entry.is-form {
  border-color: var(--entry-accent-border);
  background:
    linear-gradient(90deg, var(--entry-accent-surface), transparent 18%),
    linear-gradient(180deg, rgba(13, 26, 52, 0.92), rgba(5, 10, 24, 0.96)),
    var(--panel);
}

.dex-entry.is-form.caught {
  border-color: color-mix(in srgb, var(--entry-accent-border) 42%, rgba(78, 218, 162, 0.58));
  background:
    linear-gradient(90deg, rgba(78, 218, 162, 0.18), transparent 20%),
    linear-gradient(90deg, var(--entry-accent-surface), transparent 42%),
    linear-gradient(180deg, rgba(14, 39, 48, 0.94), rgba(5, 18, 22, 0.98)),
    var(--panel);
}

.dex-entry.is-form[data-accent="form"] {
  --entry-accent: rgba(89, 200, 255, 0.24);
  --entry-accent-strong: #91deff;
  --entry-accent-surface: rgba(89, 200, 255, 0.12);
  --entry-accent-border: rgba(89, 200, 255, 0.24);
}

.dex-entry.is-form[data-accent="gmax"] {
  --entry-accent: rgba(255, 86, 86, 0.28);
  --entry-accent-strong: #ff7b7b;
  --entry-accent-surface: rgba(255, 86, 86, 0.14);
  --entry-accent-border: rgba(255, 86, 86, 0.26);
}

.dex-entry.is-form[data-accent="mega"] {
  --entry-accent: rgba(255, 168, 84, 0.28);
  --entry-accent-strong: #ffb869;
  --entry-accent-surface: rgba(255, 168, 84, 0.14);
  --entry-accent-border: rgba(255, 168, 84, 0.26);
}

.dex-entry.is-form[data-accent="regional"] {
  --entry-accent: rgba(78, 218, 162, 0.28);
  --entry-accent-strong: #70f0bf;
  --entry-accent-surface: rgba(78, 218, 162, 0.14);
  --entry-accent-border: rgba(78, 218, 162, 0.24);
}

.dex-entry.is-form[data-accent="special"] {
  --entry-accent: rgba(173, 120, 255, 0.28);
  --entry-accent-strong: #c39bff;
  --entry-accent-surface: rgba(173, 120, 255, 0.14);
  --entry-accent-border: rgba(173, 120, 255, 0.24);
}

.dex-entry.is-form[data-accent="appearance"] {
  --entry-accent: rgba(255, 208, 112, 0.28);
  --entry-accent-strong: #ffe08a;
  --entry-accent-surface: rgba(255, 208, 112, 0.14);
  --entry-accent-border: rgba(255, 208, 112, 0.24);
}

.dex-entry.is-form[data-accent="gender"] {
  --entry-accent: rgba(255, 129, 200, 0.28);
  --entry-accent-strong: #ffaddb;
  --entry-accent-surface: rgba(255, 129, 200, 0.14);
  --entry-accent-border: rgba(255, 129, 200, 0.24);
}

.entry-toggle {
  position: relative;
  display: block;
  align-self: stretch;
  cursor: pointer;
  min-height: 100%;
}

.entry-toggle.count-mode {
  padding: 8px;
  cursor: default;
}

.entry-checkbox {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.entry-toggle-bar {
  --pokeball-center-fill: rgb(45 61 124);
  min-height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
  border-radius: 18px 0 0 18px;
  border: 1px solid rgba(89, 200, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(55, 73, 143, 0.92), rgba(34, 45, 109, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 24px rgba(8, 13, 32, 0.16);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.dex-entry.is-form .entry-toggle-bar {
  --pokeball-center-fill: rgb(36 50 102);
  border-color: color-mix(in srgb, var(--entry-accent-border) 60%, rgba(89, 200, 255, 0.14));
  background:
    linear-gradient(180deg, rgba(42, 58, 118, 0.94), rgba(26, 35, 88, 0.98));
}

.check-core {
  position: relative;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  color: rgba(232, 243, 255, 0.88);
  transition:
    color 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.check-core::before {
  content: "";
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 3px solid currentColor;
  border-radius: 999px;
  background:
    linear-gradient(currentColor, currentColor) left center / calc(50% - 4px) 3px no-repeat,
    linear-gradient(currentColor, currentColor) right center / calc(50% - 4px) 3px no-repeat;
  opacity: 1;
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.check-core::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  box-sizing: border-box;
  border: 3px solid currentColor;
  border-radius: 999px;
  background: var(--pokeball-center-fill);
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.entry-checkbox:checked + .entry-toggle-bar {
  --pokeball-center-fill: rgb(37 205 108);
  border-color: rgba(78, 218, 162, 0.62);
  background: linear-gradient(180deg, #31d772, #1fc96b);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 26px rgba(31, 201, 107, 0.22);
  transform: translateX(-1px);
}

.entry-checkbox:checked + .entry-toggle-bar .check-core {
  color: rgba(255, 255, 255, 0.96);
  opacity: 1;
  transform: scale(1.02);
}

.entry-checkbox:checked + .entry-toggle-bar .check-core::before,
.entry-checkbox:checked + .entry-toggle-bar .check-core::after {
  opacity: 1;
}

.entry-checkbox:checked + .entry-toggle-bar .check-core::after {
  transform: translate(-50%, -50%) scale(1);
}

.caught-count-stepper {
  display: inline-grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(89, 200, 255, 0.14);
  background: linear-gradient(180deg, rgba(25, 45, 89, 0.94), rgba(14, 25, 55, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.caught-count-stepper.is-active {
  border-color: rgba(78, 218, 162, 0.34);
  background: linear-gradient(180deg, rgba(24, 73, 66, 0.96), rgba(11, 42, 38, 0.98));
}

.caught-count-stepper--list {
  min-height: 100%;
}

.caught-count-button {
  min-width: 0;
  min-height: 32px;
  padding: 0;
  border: 1px solid rgba(89, 200, 255, 0.16);
  border-radius: 10px;
  background: rgba(7, 17, 38, 0.4);
  color: #eef6ff;
  font-family: "Oxanium", sans-serif;
  font-size: 1rem;
  line-height: 1;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.caught-count-button:hover,
.caught-count-button:focus-visible {
  border-color: rgba(118, 221, 255, 0.34);
  background: rgba(41, 86, 178, 0.32);
}

.caught-count-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.caught-count-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: #f4fbff;
  font-family: "Oxanium", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dex-entry-button {
  min-width: 0;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px 12px 16px;
  color: inherit;
  text-align: left;
  background: transparent;
}

.entry-visual {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.entry-sprite-frame {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(89, 200, 255, 0.14);
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.12), transparent 52%),
    rgba(89, 200, 255, 0.06);
}

.dex-entry.is-form .entry-sprite-frame {
  border-color: var(--entry-accent-border);
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.12), transparent 52%),
    var(--entry-accent-surface);
}

.dex-entry.caught .entry-sprite-frame {
  border-color: rgba(78, 218, 162, 0.38);
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.16), transparent 52%),
    linear-gradient(180deg, rgba(78, 218, 162, 0.18), rgba(78, 218, 162, 0.08));
  box-shadow:
    inset 0 0 0 1px rgba(78, 218, 162, 0.14),
    0 12px 24px rgba(16, 61, 49, 0.18);
}

.entry-sprite {
  width: 52px;
  height: 52px;
  object-fit: contain;
  image-rendering: pixelated;
}

.entry-sprite.is-missing {
  opacity: 0;
}

.entry-number {
  color: var(--cyan-bright);
  font-size: 0.76rem;
}

.dex-entry.is-form .entry-number {
  color: var(--entry-accent-strong);
}

.entry-copy {
  min-width: 0;
  display: grid;
}

.entry-name {
  font-size: 1.08rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dex-entry.caught .entry-name {
  color: #e8fff5;
}

.entry-status {
  margin-top: 2px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dex-entry.caught .entry-status {
  color: #86efc4;
}

.dex-entry.caught .entry-status::before {
  content: "✓ ";
}

.archive-grid-card {
  --entry-accent-surface: rgba(89, 200, 255, 0.08);
  --entry-accent-border: rgba(89, 200, 255, 0.18);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  min-height: 196px;
  min-width: 0;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(89, 200, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(14, 28, 54, 0.92), rgba(7, 13, 28, 0.98)),
    var(--panel);
  box-shadow: 0 14px 28px rgba(6, 14, 28, 0.22);
  overflow: hidden;
}

.archive-grid-card.selected {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1px rgba(89, 200, 255, 0.16), 0 16px 30px rgba(6, 14, 28, 0.26);
}

.archive-grid-card.caught {
  border-color: rgba(78, 218, 162, 0.42);
  background:
    linear-gradient(180deg, rgba(17, 52, 52, 0.94), rgba(6, 18, 23, 0.99)),
    var(--panel);
}

.archive-grid-card.count-mode {
  display: grid;
  align-content: stretch;
}

.archive-grid-card.is-form {
  border-color: var(--entry-accent-border);
  background:
    linear-gradient(180deg, rgba(12, 25, 48, 0.94), rgba(5, 11, 24, 0.99)),
    var(--panel);
  box-shadow: inset 0 0 0 1px var(--entry-accent-surface), 0 14px 28px rgba(6, 14, 28, 0.22);
}

.archive-grid-card.is-form[data-accent="form"] {
  --entry-accent-surface: rgba(89, 200, 255, 0.12);
  --entry-accent-border: rgba(89, 200, 255, 0.24);
}

.archive-grid-card.is-form[data-accent="gmax"] {
  --entry-accent-surface: rgba(255, 86, 86, 0.14);
  --entry-accent-border: rgba(255, 86, 86, 0.26);
}

.archive-grid-card.is-form[data-accent="mega"] {
  --entry-accent-surface: rgba(255, 168, 84, 0.14);
  --entry-accent-border: rgba(255, 168, 84, 0.26);
}

.archive-grid-card.is-form[data-accent="regional"] {
  --entry-accent-surface: rgba(78, 218, 162, 0.14);
  --entry-accent-border: rgba(78, 218, 162, 0.24);
}

.archive-grid-card.is-form[data-accent="special"] {
  --entry-accent-surface: rgba(173, 120, 255, 0.14);
  --entry-accent-border: rgba(173, 120, 255, 0.24);
}

.archive-grid-card.is-form[data-accent="appearance"] {
  --entry-accent-surface: rgba(255, 208, 112, 0.14);
  --entry-accent-border: rgba(255, 208, 112, 0.24);
}

.archive-grid-card.is-form[data-accent="gender"] {
  --entry-accent-surface: rgba(255, 129, 200, 0.14);
  --entry-accent-border: rgba(255, 129, 200, 0.24);
}

.archive-grid-card.is-form.caught {
  border-color: rgba(78, 218, 162, 0.42);
  background:
    linear-gradient(180deg, rgba(17, 58, 49, 0.95), rgba(7, 24, 22, 0.99)),
    var(--panel);
  box-shadow:
    inset 0 0 0 1px rgba(78, 218, 162, 0.14),
    0 14px 28px rgba(6, 14, 28, 0.22);
}

.archive-grid-card.is-form.caught .archive-grid-number {
  color: #9fecc9;
}

.archive-grid-card.is-form.caught .archive-grid-name {
  color: #effff6;
}

.archive-grid-open {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  min-height: 0;
  padding: 14px 12px 10px;
  border: 0;
  background: transparent;
  text-align: center;
}

.archive-grid-number {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-grid-sprite {
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.archive-grid-name {
  display: -webkit-box;
  font-family: "Oxanium", sans-serif;
  font-size: 0.94rem;
  line-height: 1.2;
  color: var(--text);
  width: 100%;
  min-height: 2.5em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.archive-grid-catch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% + 2px);
  max-width: none;
  min-height: 46px;
  min-width: 0;
  margin: auto -1px -1px;
  padding: 0 12px;
  border-radius: 0 0 18px 18px;
  border-top: 1px solid rgba(89, 200, 255, 0.14);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: linear-gradient(180deg, rgba(25, 45, 89, 0.96), rgba(14, 25, 55, 0.99));
  box-sizing: border-box;
  color: #dbe8ff;
  font-family: "Oxanium", sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.archive-grid-catch-btn.caught {
  border-top-color: rgba(128, 255, 208, 0.18);
  background: linear-gradient(180deg, rgba(33, 214, 115, 0.98), rgba(21, 187, 97, 0.98));
  color: #f5fffb;
}

.archive-grid-catch-btn:hover,
.archive-grid-catch-btn:focus-visible {
  background: linear-gradient(180deg, rgba(31, 56, 104, 0.98), rgba(19, 34, 70, 0.99));
}

.archive-grid-catch-btn.caught:hover,
.archive-grid-catch-btn.caught:focus-visible {
  background: linear-gradient(180deg, rgba(44, 228, 128, 0.98), rgba(23, 194, 103, 0.98));
}

.archive-grid-catch-btn:disabled {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(65, 74, 92, 0.94), rgba(45, 53, 67, 0.98));
  color: rgba(236, 242, 255, 0.52);
}

.caught-count-stepper--grid {
  width: calc(100% + 2px);
  margin: auto -1px -1px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-top: 1px solid rgba(89, 200, 255, 0.14);
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(25, 45, 89, 0.96), rgba(14, 25, 55, 0.99));
}

.caught-count-stepper--grid.is-active {
  border-top-color: rgba(78, 218, 162, 0.18);
  background: linear-gradient(180deg, rgba(34, 81, 77, 0.98), rgba(20, 61, 56, 0.98));
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.tag-chip,
.type-chip,
.matchup-chip,
.dex-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.tag-chip {
  color: var(--cyan-bright);
  background: rgba(89, 200, 255, 0.08);
  border: 1px solid rgba(89, 200, 255, 0.1);
}

.dex-entry.caught .tag-chip {
  border-color: rgba(78, 218, 162, 0.2);
  background: rgba(78, 218, 162, 0.1);
}

.tag-chip--form {
  color: #91deff;
  background: rgba(89, 200, 255, 0.1);
  border-color: rgba(89, 200, 255, 0.2);
}

.tag-chip--gmax {
  color: #ff8a8a;
  background: rgba(255, 86, 86, 0.12);
  border-color: rgba(255, 86, 86, 0.22);
}

.tag-chip--mega {
  color: #ffbe76;
  background: rgba(255, 168, 84, 0.12);
  border-color: rgba(255, 168, 84, 0.22);
}

.tag-chip--regional {
  color: #79efc1;
  background: rgba(78, 218, 162, 0.12);
  border-color: rgba(78, 218, 162, 0.22);
}

.tag-chip--special {
  color: #ceb0ff;
  background: rgba(173, 120, 255, 0.12);
  border-color: rgba(173, 120, 255, 0.22);
}

.tag-chip--appearance {
  color: #ffe299;
  background: rgba(255, 208, 112, 0.12);
  border-color: rgba(255, 208, 112, 0.22);
}

.tag-chip--gender {
  color: #ffbbdf;
  background: rgba(255, 129, 200, 0.12);
  border-color: rgba(255, 129, 200, 0.22);
}

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.detail-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.detail-counter-shell {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.detail-counter-label {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.caught-count-stepper--scan {
  min-width: 170px;
}

.detail-ghost {
  min-height: 42px;
}

.detail-ghost.active {
  color: #ffd776;
  border-color: rgba(255, 215, 118, 0.26);
  background: rgba(255, 215, 118, 0.1);
}

.detail-clear-button {
  color: #ffb3c7;
  border-color: rgba(255, 102, 145, 0.22);
  background: rgba(255, 102, 145, 0.08);
}

.detail-clear-button:hover,
.detail-clear-button:focus-visible {
  color: #ffe5ec;
  border-color: rgba(255, 134, 168, 0.34);
  background: rgba(255, 102, 145, 0.14);
}

.detail-head h2,
.subcard-heading h3 {
  font-family: "Oxanium", sans-serif;
}

.detail-head h2 {
  margin-top: 8px;
  font-size: 2rem;
}

.empty-state {
  margin-top: 18px;
  padding: 26px;
  border-radius: 18px;
  border: 1px dashed rgba(89, 200, 255, 0.18);
  color: var(--muted);
  text-align: center;
}

.hidden,
[hidden] {
  display: none !important;
}

.detail-content {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.detail-content.hidden {
  display: none;
}

.screen-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 250px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.88), transparent 44%),
    linear-gradient(180deg, rgba(89, 200, 255, 0.3), rgba(8, 17, 39, 0.1)),
    #dff7ff;
  border: 1px solid rgba(124, 228, 255, 0.3);
  box-shadow: inset 0 0 32px rgba(47, 120, 255, 0.08);
}

.screen-visual-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(10, 18, 40, 0.7);
  border: 1px solid rgba(164, 120, 255, 0.18);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.screen-visual-button {
  appearance: none;
  border: 0;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  color: rgba(238, 244, 255, 0.72);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.screen-visual-button:hover,
.screen-visual-button:focus-visible {
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.08);
}

.screen-visual-button.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(130, 92, 255, 0.95), rgba(63, 146, 255, 0.88));
  box-shadow: 0 10px 20px rgba(74, 104, 255, 0.22);
}

.screen-frame.is-home-mode {
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.78), transparent 44%),
    linear-gradient(180deg, rgba(123, 164, 255, 0.2), rgba(12, 20, 42, 0.08)),
    #edf3ff;
}

.screen-frame.is-home-mode img {
  width: min(82%, 332px);
  height: min(82%, 332px);
}

.screen-frame img {
  width: min(78%, 300px);
  height: min(78%, 300px);
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.18));
}

.identity-strip {
  align-items: center;
}

.detail-link-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-tab-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-tab {
  min-height: 42px;
}

.detail-link-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.detail-link-button.active {
  color: #ffd776;
  border-color: rgba(255, 215, 118, 0.28);
  background: rgba(255, 215, 118, 0.1);
}

.dex-tag {
  color: var(--cyan-bright);
  background: rgba(89, 200, 255, 0.08);
}

.type-row,
.chip-row,
.form-bank {
  gap: 8px;
}

.type-chip,
.matchup-chip {
  color: white;
}

.flavor-text {
  color: rgba(233, 247, 255, 0.84);
  font-size: 1.03rem;
  line-height: 1.45;
}

.pokedex-entry-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.pokedex-entry-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(89, 200, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(18, 34, 66, 0.76), rgba(8, 15, 31, 0.94));
}

.pokedex-entry-source {
  display: block;
  color: var(--cyan-bright);
  font-family: "Oxanium", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pokedex-entry-text {
  margin-top: 10px;
  color: rgba(233, 247, 255, 0.84);
  line-height: 1.5;
}

.detail-pane {
  display: none;
  gap: 16px;
}

.detail-pane.active {
  display: grid;
}

.meta-grid,
.detail-grid {
  display: grid;
  gap: 12px;
}

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

.meta-grid div,
.subcard {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(89, 200, 255, 0.14);
  background: rgba(10, 21, 44, 0.8);
}

.meta-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.08rem;
}

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

.subcard-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.subcard-heading span {
  color: var(--muted);
}

.stats-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.stat-row {
  display: grid;
  grid-template-columns: 84px 1fr 40px;
  gap: 10px;
  align-items: center;
}

.stat-row strong {
  font-size: 0.92rem;
}

.stat-bar {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(144, 171, 197, 0.16);
}

.stat-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #8be5ff, #2f78ff 56%, #ff4e68);
}

.matchup-stack {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.matchup-label {
  margin-bottom: 7px;
  font-size: 0.9rem;
}

.availability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
  align-items: start;
}

.availability-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(89, 200, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(17, 31, 60, 0.88), rgba(8, 16, 34, 0.98));
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.availability-card.available {
  border-color: rgba(91, 231, 171, 0.34);
  box-shadow: inset 0 0 0 1px rgba(91, 231, 171, 0.08);
}

.availability-card.active {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(11, 17, 35, 0.24);
}

.availability-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.availability-card-head strong {
  font-family: "Oxanium", sans-serif;
  font-size: 1.04rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.availability-card-name,
.availability-card-note {
  color: rgba(233, 247, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.4;
}

.availability-card-note {
  color: rgba(233, 247, 255, 0.56);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.availability-segment-row {
  display: grid;
  gap: 10px;
}

.availability-segment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(89, 200, 255, 0.12);
  background: rgba(13, 24, 48, 0.82);
}

.availability-segment.main {
  border-color: rgba(89, 200, 255, 0.18);
}

.availability-segment.dlc {
  border-color: rgba(255, 192, 98, 0.18);
}

.availability-segment.available.main {
  background: rgba(25, 55, 88, 0.75);
  box-shadow: inset 0 0 0 1px rgba(89, 200, 255, 0.14);
}

.availability-segment.available.dlc {
  background: rgba(72, 45, 11, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 192, 98, 0.16);
}

.availability-segment.unavailable {
  opacity: 0.7;
}

.availability-segment.syncing {
  opacity: 0.86;
}

.availability-segment-copy {
  display: grid;
  gap: 2px;
}

.availability-segment-copy strong {
  font-size: 0.88rem;
  line-height: 1.2;
}

.availability-segment-copy span {
  color: rgba(233, 247, 255, 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.availability-segment-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(97, 116, 140, 0.22);
  color: rgba(233, 247, 255, 0.82);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.availability-segment.available .availability-segment-state {
  background: rgba(91, 231, 171, 0.18);
  color: #8ff3c1;
}

.availability-segment.dlc.available .availability-segment-state {
  background: rgba(255, 205, 111, 0.16);
  color: #ffd27f;
}

.availability-segment.unavailable .availability-segment-state {
  background: rgba(255, 93, 120, 0.14);
  color: #ff9bac;
}

.availability-segment.syncing .availability-segment-state {
  background: rgba(89, 200, 255, 0.16);
  color: #8de5ff;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(97, 116, 140, 0.22);
  color: rgba(233, 247, 255, 0.82);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.availability-badge.available {
  background: rgba(91, 231, 171, 0.18);
  color: #8ff3c1;
}

.availability-badge.unavailable {
  background: rgba(255, 93, 120, 0.14);
  color: #ff9bac;
}

.availability-badge.syncing {
  background: rgba(89, 200, 255, 0.16);
  color: #8de5ff;
}

.availability-badge.owned {
  background: rgba(255, 205, 111, 0.14);
  color: #ffd27f;
}

.availability-badge.version-exclusive {
  background: rgba(168, 127, 255, 0.16);
  color: #d6c0ff;
}

.availability-badge.version-exclusive.version-violet {
  background: rgba(138, 102, 255, 0.2);
  color: #dcc7ff;
}

.availability-badge.version-exclusive.version-scarlet {
  background: rgba(255, 100, 100, 0.18);
  color: #ffcbc4;
}

.availability-badge.version-exclusive.version-shield {
  background: rgba(255, 78, 90, 0.18);
  color: #ffc2ca;
}

.availability-badge.version-exclusive.version-sword {
  background: rgba(91, 180, 255, 0.18);
  color: #bfe7ff;
}

.availability-badge.version-exclusive.version-brilliant-diamond {
  background: rgba(116, 166, 255, 0.18);
  color: #cde0ff;
}

.availability-badge.version-exclusive.version-shining-pearl {
  background: rgba(255, 160, 214, 0.18);
  color: #ffd4eb;
}

.availability-badge.version-exclusive.version-lets-go-pikachu {
  background: rgba(255, 211, 74, 0.2);
  color: #fff0ac;
}

.availability-badge.version-exclusive.version-lets-go-eevee {
  background: rgba(183, 133, 94, 0.22);
  color: #f7d9b8;
}

.availability-badge.version-exclusive.multi-version-exclusive {
  background: linear-gradient(135deg, rgba(120, 155, 255, 0.2), rgba(214, 192, 255, 0.18));
  color: #dce5ff;
}

.availability-card-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.availability-footnote {
  margin-top: 14px;
  color: rgba(233, 247, 255, 0.6);
  line-height: 1.45;
}

.form-bank {
  margin-top: 16px;
  max-height: 230px;
  overflow: auto;
  padding-right: 4px;
}

.form-chip {
  align-items: center;
  padding: 10px 12px;
  color: var(--text);
}

.form-chip.caught {
  border-color: rgba(78, 218, 162, 0.3);
}

.form-copy {
  display: grid;
  justify-items: start;
  gap: 2px;
}

.form-copy strong {
  font-size: 0.96rem;
}

.form-note {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.evolution-list,
.location-list,
.collection-list,
.shiny-checklist,
.game-checklist-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.location-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(89, 200, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(18, 34, 66, 0.82), rgba(8, 15, 31, 0.97));
}

.location-card-head,
.location-map-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.location-card-head strong,
.location-map-meta strong {
  font-family: "Oxanium", sans-serif;
  letter-spacing: 0.06em;
}

.location-card-status,
.location-map-status {
  color: var(--muted);
  font-family: "Oxanium", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: right;
}

.location-map-shell {
  --map-accent: rgba(89, 200, 255, 0.9);
  position: relative;
  overflow: hidden;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(89, 200, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(11, 20, 43, 0.96), rgba(6, 11, 25, 0.99));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 10px 30px rgba(3, 10, 22, 0.24);
}

.location-map-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 14%, color-mix(in srgb, var(--map-accent) 18%, transparent), transparent 26%),
    linear-gradient(135deg, color-mix(in srgb, var(--map-accent) 10%, transparent), transparent 52%);
  opacity: 0.7;
}

.location-map-shell::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--map-accent) 70%, transparent), transparent 82%);
  opacity: 0.8;
}

.location-map-shell--lgpe {
  --map-accent: rgba(116, 227, 137, 0.95);
}

.location-map-shell--swsh {
  --map-accent: rgba(84, 216, 255, 0.95);
}

.location-map-shell--bdsp {
  --map-accent: rgba(255, 205, 107, 0.95);
}

.location-map-shell--pla {
  --map-accent: rgba(255, 160, 102, 0.95);
}

.location-map-shell--sv {
  --map-accent: rgba(255, 108, 125, 0.95);
}

.location-map-shell--lza {
  --map-accent: rgba(124, 231, 255, 0.96);
}

.location-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.location-map-toolbar strong {
  font-family: "Oxanium", sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.location-map-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(53, 60, 96, 0.72);
  color: rgba(244, 248, 255, 0.94);
  font-size: 0.86rem;
  line-height: 1.2;
}

.location-surface-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.location-surface-tab {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(49, 56, 95, 0.42);
  color: rgba(243, 247, 255, 0.9);
  font-family: "Oxanium", sans-serif;
  font-size: 0.92rem;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.location-surface-tab.active {
  border-color: color-mix(in srgb, var(--map-accent) 72%, transparent);
  background: color-mix(in srgb, var(--map-accent) 18%, rgba(49, 56, 95, 0.6));
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--map-accent) 20%, transparent);
}

.location-surface-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 20, 39, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.location-map-stage-wrap {
  position: relative;
}

.location-map-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--map-aspect, 5 / 4);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(circle at 18% 18%, rgba(118, 196, 255, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(29, 45, 75, 0.88), rgba(12, 20, 38, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 0 80px rgba(0, 0, 0, 0.18);
}

.location-map-stage::before,
.location-map-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.location-map-stage::before {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 7, 16, 0.04), rgba(3, 7, 16, 0.34)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 34%);
}

.location-map-stage::after {
  z-index: 1;
  background:
    radial-gradient(circle at 82% 18%, rgba(94, 192, 255, 0.14), transparent 28%),
    radial-gradient(circle at 16% 84%, rgba(255, 208, 117, 0.08), transparent 26%);
  opacity: 0.92;
}

.location-map-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  filter: saturate(1.02) contrast(1.02) brightness(0.96);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  transform-origin: center center;
  transform: scale(var(--map-zoom, 1));
  transition: transform 180ms ease;
}

.location-map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  transform: scale(var(--map-zoom, 1));
  transition: transform 180ms ease;
  z-index: 2;
}

.location-map-controls {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  gap: 10px;
  z-index: 2;
}

.location-map-control {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(55, 63, 109, 0.88);
  color: rgba(246, 249, 255, 0.96);
  font-family: "Oxanium", sans-serif;
  font-size: 1.2rem;
  box-shadow: 0 10px 24px rgba(4, 9, 24, 0.24);
}

.location-map-control--reset {
  background: rgba(77, 27, 48, 0.92);
}

.location-map-zone rect,
.location-map-zone circle {
  fill: color-mix(in srgb, var(--map-accent) 50%, rgba(255, 214, 82, 0.72));
  stroke: rgba(255, 248, 214, 0.96);
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
  transition: fill 160ms ease, stroke 160ms ease, transform 160ms ease;
}

.location-map-zone text {
  fill: rgba(9, 16, 28, 0.92);
  font-family: "Oxanium", sans-serif;
  font-size: 4.25px;
  font-weight: 800;
  letter-spacing: 0.2px;
  paint-order: stroke fill;
  stroke: rgba(255, 250, 228, 0.82);
  stroke-width: 0.48px;
}

.location-map-zone.is-active rect,
.location-map-zone.is-active circle {
  filter:
    drop-shadow(0 0 14px color-mix(in srgb, var(--map-accent) 45%, transparent))
    drop-shadow(0 0 4px rgba(255, 248, 214, 0.42));
}

.location-map-surface-note {
  margin: 10px 0 0;
  color: rgba(234, 242, 255, 0.72);
  line-height: 1.45;
}

.location-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

.location-map-chip {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--map-accent) 45%, transparent);
  background: color-mix(in srgb, var(--map-accent) 16%, rgba(255, 255, 255, 0.03));
  color: rgba(233, 241, 255, 0.94);
  font-family: "Oxanium", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.location-map-chip--muted {
  border-color: rgba(195, 215, 255, 0.18);
  background: rgba(195, 215, 255, 0.08);
  color: var(--muted);
}

.location-card p {
  margin-top: 0;
}

.location-card p {
  margin-top: 0;
}

.no-signal {
  padding: 30px 20px;
  border-radius: 18px;
  border: 1px dashed rgba(89, 200, 255, 0.18);
  text-align: center;
}

.no-signal strong {
  display: block;
  font-family: "Oxanium", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.no-signal p {
  margin-top: 10px;
  color: var(--muted);
}

.systems-grid {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.system-panel {
  min-height: auto;
}

.collection-panel-shell,
.tracker-panel-shell,
.vault-panel-shell,
.home-panel-shell {
  grid-column: 1 / -1;
  scroll-margin-top: 150px;
}

.suggestion-panel-shell,
.modules-panel-shell {
  grid-column: 1 / -1;
}

.system-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.system-title {
  margin-top: 8px;
  font-family: "Oxanium", sans-serif;
  font-size: 1.65rem;
}

.system-summary {
  margin-top: 16px;
}

.tracker-grid,
.progress-stack,
.collection-grid,
.target-board,
.vault-grid,
.home-grid,
.suggestion-stack,
.module-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

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

.progress-stack > .progress-card,
.collection-card--generation-board,
.collection-card--game-checklists,
.generation-breakdown-entry,
.game-checklist-grid .checklist-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.progress-stack > .progress-card > *,
.collection-card--generation-board > *,
.collection-card--game-checklists > *,
.generation-breakdown-entry > *,
.game-checklist-grid .checklist-card > * {
  position: relative;
  z-index: 1;
}

.progress-stack > .progress-card::before,
.collection-card--generation-board::before,
.collection-card--game-checklists::before,
.generation-breakdown-entry::before,
.game-checklist-grid .checklist-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.collection-grid,
.home-grid,
.target-board,
.vault-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.vault-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

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

.progress-card,
.tracker-card,
.suggestion-card,
.checklist-card,
.module-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(89, 200, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(18, 34, 66, 0.86), rgba(8, 15, 31, 0.96));
}

.progress-card {
  padding: 14px 16px;
}

.progress-stack > .progress-card {
  background:
    linear-gradient(180deg, rgba(18, 34, 66, 0.9), rgba(8, 15, 31, 0.98));
}

.progress-stack > .progress-card::before {
  background:
    radial-gradient(circle at 16% 18%, var(--progress-glow, rgba(89, 200, 255, 0.18)) 0 18%, transparent 52%),
    linear-gradient(135deg, var(--progress-tint, rgba(89, 200, 255, 0.1)), transparent 56%);
  opacity: 1;
}

.progress-stack > .progress-card::after {
  content: none;
}

.progress-card--main-dex {
  --progress-glow: rgba(90, 224, 255, 0.22);
  --progress-tint: rgba(65, 125, 255, 0.12);
  --progress-emblem:
    radial-gradient(circle at 32% 34%, rgba(170, 241, 255, 0.7), transparent 34%),
    linear-gradient(180deg, rgba(58, 94, 205, 0.24), rgba(12, 25, 54, 0));
}

.progress-card--shiny-dex {
  --progress-glow: rgba(255, 222, 110, 0.24);
  --progress-tint: rgba(255, 155, 90, 0.12);
  --progress-emblem:
    conic-gradient(from 0deg, rgba(255, 228, 128, 0.8), rgba(255, 154, 122, 0.35), rgba(255, 228, 128, 0.8)),
    radial-gradient(circle at center, transparent 0 42%, rgba(255, 248, 214, 0.15) 43% 46%, transparent 47%);
}

.progress-card--owned-coverage {
  --progress-glow: rgba(150, 255, 186, 0.22);
  --progress-tint: rgba(74, 198, 140, 0.12);
  --progress-emblem:
    linear-gradient(135deg, rgba(145, 255, 198, 0.32), rgba(32, 80, 58, 0.04)),
    radial-gradient(circle at 70% 28%, rgba(226, 255, 210, 0.7), transparent 24%);
}

.archive-progress-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  grid-column: 1 / -1;
}

.archive-progress-card {
  margin-top: 0;
}

.generation-breakdown-card {
  margin-top: 16px;
  background:
    linear-gradient(180deg, rgba(16, 30, 57, 0.92), rgba(8, 15, 31, 0.98));
}

.collection-card--generation-board::before {
  background:
    radial-gradient(circle at 12% 0%, rgba(121, 192, 255, 0.2), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(255, 212, 117, 0.18), transparent 24%),
    linear-gradient(120deg, rgba(89, 200, 255, 0.08), transparent 42%);
}

.generation-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.generation-breakdown-entry {
  --generation-flare: rgba(89, 200, 255, 0.2);
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(89, 200, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(24, 41, 78, 0.88), rgba(8, 15, 31, 0.98));
}

.generation-breakdown-entry::before {
  background:
    radial-gradient(circle at 84% 20%, var(--generation-flare) 0 16%, transparent 48%),
    linear-gradient(145deg, color-mix(in srgb, var(--generation-flare) 50%, transparent), transparent 54%);
}

.generation-breakdown-entry::after {
  content: none;
}

.generation-breakdown-entry--gen-1 {
  --generation-flare: rgba(255, 108, 108, 0.24);
}

.generation-breakdown-entry--gen-2 {
  --generation-flare: rgba(255, 215, 104, 0.24);
}

.generation-breakdown-entry--gen-3 {
  --generation-flare: rgba(76, 231, 180, 0.22);
}

.generation-breakdown-entry--gen-4 {
  --generation-flare: rgba(144, 135, 255, 0.22);
}

.generation-breakdown-entry--gen-5 {
  --generation-flare: rgba(112, 207, 255, 0.22);
}

.generation-breakdown-entry--gen-6 {
  --generation-flare: rgba(255, 137, 214, 0.22);
}

.generation-breakdown-entry--gen-7 {
  --generation-flare: rgba(255, 164, 112, 0.22);
}

.generation-breakdown-entry--gen-8 {
  --generation-flare: rgba(193, 173, 255, 0.22);
}

.generation-breakdown-entry--gen-9 {
  --generation-flare: rgba(125, 255, 187, 0.22);
}

.generation-breakdown-head,
.generation-breakdown-stat {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.generation-breakdown-head strong,
.generation-breakdown-stat strong {
  font-family: "Oxanium", sans-serif;
}

.generation-breakdown-head span,
.generation-breakdown-stat span {
  color: var(--muted);
  font-size: 0.8rem;
}

.generation-breakdown-stat {
  margin-top: 12px;
}

.generation-breakdown-stat--shiny {
  margin-top: 10px;
}

.generation-progress-bar {
  height: 10px;
  margin-top: 8px;
}

.generation-progress-bar--shiny span,
.generation-progress-fill--shiny {
  background: linear-gradient(90deg, #8ef3c1, #2fd4aa 52%, #ffe07a);
}

.collection-card--game-checklists {
  background:
    linear-gradient(180deg, rgba(17, 31, 59, 0.92), rgba(8, 15, 31, 0.98));
}

.collection-card--game-checklists::before {
  background:
    radial-gradient(circle at 10% 10%, rgba(110, 202, 255, 0.18), transparent 28%),
    radial-gradient(circle at 92% 16%, rgba(255, 144, 118, 0.14), transparent 24%),
    linear-gradient(135deg, rgba(93, 149, 255, 0.08), transparent 48%);
}

.collection-card--duplicate-board {
  margin-top: 16px;
  background:
    linear-gradient(180deg, rgba(16, 31, 58, 0.92), rgba(8, 15, 31, 0.98));
}

.duplicate-filter-bank {
  margin-top: 14px;
}

.game-checklist-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.game-checklist-grid .checklist-card {
  --checklist-accent: #7cb7ff;
  display: grid;
  align-content: start;
  --checklist-flare: rgba(124, 183, 255, 0.2);
  min-height: 220px;
  border-color: color-mix(in srgb, var(--checklist-accent) 22%, rgba(89, 200, 255, 0.12));
  background:
    linear-gradient(180deg, rgba(19, 35, 67, 0.92), rgba(9, 16, 33, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.01),
    0 16px 28px rgba(6, 14, 28, 0.16);
}

.game-checklist-grid .checklist-card::before {
  background:
    radial-gradient(circle at 86% 10%, color-mix(in srgb, var(--checklist-flare) 72%, transparent) 0 14%, transparent 38%),
    linear-gradient(145deg, color-mix(in srgb, var(--checklist-accent) 14%, transparent), transparent 54%);
}

.game-checklist-grid .checklist-card::after {
  content: none;
}

.game-checklist-grid .checklist-card .checklist-progress {
  margin-top: 14px;
  border-color: color-mix(in srgb, var(--checklist-accent) 28%, rgba(255, 255, 255, 0.08));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--checklist-accent) 13%, rgba(17, 30, 56, 0.9)), rgba(7, 13, 26, 0.94));
}

.game-checklist-grid .checklist-card .ghost-button {
  justify-self: start;
}

.game-checklist-grid .checklist-card .checklist-progress .progress-bar span {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--checklist-accent) 44%, #ffffff),
    var(--checklist-accent)
  );
}

.game-checklist-grid .checklist-card--lgpe {
  --checklist-accent: #ffd45c;
  --checklist-flare: rgba(255, 212, 92, 0.2);
}

.game-checklist-grid .checklist-card--swsh {
  --checklist-accent: #ff6f8a;
  --checklist-flare: rgba(255, 111, 138, 0.2);
}

.game-checklist-grid .checklist-card--bdsp {
  --checklist-accent: #8bb6ff;
  --checklist-flare: rgba(139, 182, 255, 0.2);
}

.game-checklist-grid .checklist-card--pla {
  --checklist-accent: #b7d27a;
  --checklist-flare: rgba(183, 210, 122, 0.18);
}

.game-checklist-grid .checklist-card--sv {
  --checklist-accent: #c18dff;
  --checklist-flare: rgba(193, 141, 255, 0.2);
}

.game-checklist-grid .checklist-card--lza {
  --checklist-accent: #74efb0;
  --checklist-flare: rgba(116, 239, 176, 0.18);
}

.progress-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.progress-head span {
  color: var(--muted);
  font-size: 0.82rem;
}

.progress-bar {
  position: relative;
  height: 12px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(144, 171, 197, 0.14);
}

.progress-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #8be5ff, #2f78ff 56%, #ff4e68);
}

.tracker-card.active {
  border-color: rgba(89, 200, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(89, 200, 255, 0.12);
}

.tracker-card-head,
.tracker-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.tracker-card-head strong,
.module-card strong,
.suggestion-card strong {
  display: block;
  font-size: 1.08rem;
}

.tracker-card-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.tracker-focus-button,
.suggestion-button {
  padding: 9px 12px;
}

.tracker-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tracker-version-shell {
  margin-top: 14px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(89, 200, 255, 0.12);
  background: rgba(89, 200, 255, 0.05);
}

.tracker-version-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.tracker-version-head strong {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tracker-version-head span {
  color: var(--muted);
  font-size: 0.78rem;
}

.tracker-version-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tracker-version-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(89, 200, 255, 0.12);
  background: rgba(6, 14, 29, 0.52);
  color: var(--text);
  font-family: "Oxanium", sans-serif;
  font-size: 0.82rem;
}

.tracker-version-toggle.active {
  border-color: rgba(89, 200, 255, 0.34);
  background: rgba(47, 120, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(89, 200, 255, 0.1);
}

.tracker-version-toggle input {
  accent-color: var(--cyan);
}

.tracker-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(89, 200, 255, 0.12);
  background: rgba(89, 200, 255, 0.05);
  color: var(--muted);
  font-family: "Oxanium", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tracker-toggle input {
  accent-color: var(--cyan);
}

.archive-feature-toggle {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(89, 200, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(17, 30, 58, 0.9), rgba(8, 16, 34, 0.98));
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 30px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.archive-feature-toggle:hover {
  border-color: rgba(126, 201, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(23, 39, 73, 0.94), rgba(10, 19, 39, 0.99));
  transform: translateY(-1px);
}

.archive-feature-toggle:focus-within {
  border-color: rgba(126, 201, 255, 0.34);
  box-shadow:
    0 0 0 1px rgba(126, 201, 255, 0.16),
    0 18px 30px rgba(0, 0, 0, 0.22);
}

.archive-feature-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.archive-feature-toggle-switch {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(89, 200, 255, 0.16);
  background: rgba(7, 17, 38, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.archive-feature-toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(221, 232, 255, 0.98), rgba(167, 182, 220, 0.98));
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.26);
  transition: transform 160ms ease, background 160ms ease;
}

.archive-feature-toggle-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.archive-feature-toggle-title {
  color: #eef5ff;
  font-family: "Oxanium", sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.archive-feature-toggle-note {
  color: rgba(202, 216, 245, 0.72);
  font-size: 0.8rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-transform: none;
}

.archive-feature-toggle input:checked + .archive-feature-toggle-switch {
  border-color: rgba(116, 245, 198, 0.32);
  background: linear-gradient(180deg, rgba(39, 181, 132, 0.92), rgba(22, 121, 88, 0.98));
  box-shadow: inset 0 0 0 1px rgba(183, 255, 227, 0.12);
}

.archive-feature-toggle input:checked + .archive-feature-toggle-switch::after {
  transform: translateX(20px);
  background: linear-gradient(180deg, rgba(247, 255, 251, 0.98), rgba(224, 255, 241, 0.98));
}

.archive-feature-toggle input:checked ~ .archive-feature-toggle-copy .archive-feature-toggle-title {
  color: #f3fff9;
}

.archive-feature-toggle input:checked ~ .archive-feature-toggle-copy .archive-feature-toggle-note {
  color: rgba(221, 255, 241, 0.78);
}

.archive-owned-game-filter {
  margin-top: 12px;
}

.archive-duplicate-filter {
  margin-top: 12px;
}

.archive-owned-game-filter.disabled {
  opacity: 0.58;
}

.archive-owned-game-note {
  margin-top: 0;
}

.archive-duplicate-filter.disabled {
  opacity: 0.58;
}

.archive-duplicate-note {
  margin-top: 0;
}

.archive-feature-toggle.disabled {
  cursor: default;
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.archive-feature-toggle.disabled:hover {
  border-color: rgba(89, 200, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(17, 30, 58, 0.9), rgba(8, 16, 34, 0.98));
}

.archive-feature-toggle.disabled .archive-feature-toggle-title {
  color: rgba(228, 237, 255, 0.7);
}

.archive-feature-toggle.disabled .archive-feature-toggle-note {
  color: rgba(176, 190, 220, 0.64);
}

.tracker-progress-shell,
.suggestion-card p {
  margin-top: 14px;
}

.collection-list {
  margin-top: 14px;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.collection-list::-webkit-scrollbar,
.shiny-checklist::-webkit-scrollbar {
  width: 10px;
}

.collection-list::-webkit-scrollbar-thumb,
.shiny-checklist::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(89, 200, 255, 0.18);
}

.collection-item {
  width: 100%;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  color: var(--text);
  text-align: left;
  background: rgba(89, 200, 255, 0.05);
  border: 1px solid rgba(89, 200, 255, 0.12);
}

.collection-item.empty {
  grid-template-columns: minmax(0, 1fr);
  cursor: default;
}

.collection-item-art {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.14), transparent 56%),
    rgba(89, 200, 255, 0.06);
  border: 1px solid rgba(89, 200, 255, 0.12);
}

.collection-item-sprite {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: pixelated;
}

.collection-item-sprite.is-missing {
  opacity: 0;
}

.collection-item-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.collection-item-copy strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1rem;
}

.collection-item-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.collection-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 2;
}

.vault-manager-item {
  display: grid;
  gap: 10px;
}

.vault-manager-actions,
.vault-picker-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.manager-action-button {
  flex: 0 0 auto;
}

.collection-empty {
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(89, 200, 255, 0.16);
}

.compact-heading {
  align-items: center;
}

.shiny-checklist {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(89, 200, 255, 0.12);
  max-height: 560px;
  overflow: auto;
}

.shiny-check-summary {
  padding: 0 4px 8px;
}

.shiny-check-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.shiny-check-row input {
  margin-top: 14px;
  accent-color: var(--cyan);
}

.tracker-progress-top span {
  color: var(--muted);
}

.tracker-progress-top strong {
  font-family: "Oxanium", sans-serif;
}

.tracker-progress-shell input[type="range"] {
  width: 100%;
  margin-top: 10px;
}

.journey-shell {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.journey-select-shell {
  display: grid;
  gap: 16px;
}

.journey-intro-card,
.journey-select-card,
.journey-detail-hero,
.journey-inline-card,
.journey-section-card,
.journey-column {
  border-radius: 24px;
  border: 1px solid rgba(157, 135, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(20, 27, 60, 0.94), rgba(10, 14, 33, 0.98)),
    var(--panel);
  box-shadow:
    0 18px 36px rgba(6, 8, 20, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.journey-intro-card {
  padding: 22px 24px;
  background:
    radial-gradient(circle at top right, rgba(128, 92, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(22, 28, 62, 0.96), rgba(10, 14, 33, 0.98)),
    var(--panel);
}

.journey-intro-card strong {
  display: block;
  font-family: "Oxanium", sans-serif;
  font-size: 1.18rem;
}

.journey-intro-card p {
  margin-top: 8px;
  max-width: 72ch;
  color: var(--muted);
  line-height: 1.55;
}

.journey-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.journey-select-card {
  width: 100%;
  display: grid;
  gap: 14px;
  padding: 18px 18px 16px;
  color: var(--text);
  text-align: left;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.journey-select-card:hover,
.journey-select-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(123, 191, 255, 0.26);
  box-shadow:
    0 22px 34px rgba(8, 10, 30, 0.24),
    inset 0 0 0 1px rgba(123, 191, 255, 0.08);
}

.journey-select-top,
.journey-select-meta,
.journey-section-head,
.journey-inline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.journey-select-top strong,
.journey-detail-copy strong,
.journey-section-head strong {
  display: block;
  font-family: "Oxanium", sans-serif;
}

.journey-select-top strong {
  font-size: 1rem;
}

.journey-select-top span,
.journey-detail-copy span,
.journey-card-copy,
.journey-card-meta,
.journey-inline-note,
.journey-select-focus span {
  color: var(--muted);
  line-height: 1.45;
}

.journey-select-top > div,
.journey-detail-copy {
  min-width: 0;
}

.journey-select-top > div span,
.journey-detail-copy span {
  display: block;
  margin-top: 5px;
}

.journey-select-badge,
.journey-detail-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(139, 213, 255, 0.18);
  background: rgba(76, 126, 255, 0.12);
  color: #dff2ff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-select-meta {
  align-items: center;
  padding-top: 2px;
  color: #d7e7ff;
  font-size: 0.86rem;
}

.journey-select-meta span:last-child {
  color: var(--muted);
}

.journey-select-focus {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(127, 96, 255, 0.08);
  border: 1px solid rgba(157, 135, 255, 0.12);
}

.journey-select-focus small,
.journey-focus-label,
.journey-meta-field > span,
.journey-inline-head strong {
  color: #b8cbef;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-select-focus strong,
.journey-focus-card strong {
  font-size: 1rem;
}

.journey-detail-shell {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.journey-detail-hero,
.journey-meta-grid,
.journey-sections-grid {
  grid-column: 1 / -1;
}

.journey-detail-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background:
    radial-gradient(circle at top right, rgba(136, 86, 255, 0.2), transparent 26%),
    radial-gradient(circle at bottom left, rgba(74, 198, 255, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(20, 28, 67, 0.96), rgba(10, 14, 33, 0.98)),
    var(--panel);
}

.journey-back-button {
  min-width: 54px;
  min-height: 54px;
  padding: 0;
  border-radius: 18px;
  border-color: rgba(255, 99, 136, 0.28);
  background: linear-gradient(180deg, rgba(84, 18, 46, 0.95), rgba(45, 9, 25, 0.96));
  color: #ffd9e3;
  font-family: "Oxanium", sans-serif;
  font-size: 1.45rem;
  line-height: 1;
}

.journey-back-button:hover,
.journey-back-button:focus-visible {
  border-color: rgba(255, 132, 164, 0.44);
  background: linear-gradient(180deg, rgba(104, 22, 54, 0.95), rgba(58, 12, 31, 0.96));
}

.journey-detail-copy strong {
  font-size: 1.42rem;
}

.journey-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.journey-meta-field {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(123, 191, 255, 0.12);
  background: rgba(10, 15, 36, 0.72);
}

.journey-inline-card {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
}

.journey-inline-note,
.journey-card-copy,
.journey-card-meta {
  margin: 0;
}

.journey-version-card {
  grid-column: span 7;
}

.journey-focus-card {
  grid-column: span 5;
  display: grid;
  gap: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(96, 181, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(18, 33, 68, 0.94), rgba(10, 14, 33, 0.98)),
    var(--panel);
}

.journey-focus-card strong {
  font-family: "Oxanium", sans-serif;
  font-size: 1.14rem;
}

.journey-sections-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.journey-section-card {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.journey-section-head {
  align-items: center;
}

.journey-section-head span,
.journey-card-meta {
  font-size: 0.83rem;
}

.journey-section-card--story,
.journey-section-card--pokedex,
.journey-section-card--postgame,
.journey-section-card--dlc {
  grid-column: span 4;
}

.journey-section-card--columns,
.journey-section-card--exclusives,
.journey-section-card--legendary {
  grid-column: span 8;
}

.journey-columns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.journey-column {
  display: grid;
  gap: 12px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(18, 24, 52, 0.94), rgba(10, 14, 33, 0.98)),
    var(--panel);
}

.journey-column strong {
  font-size: 0.94rem;
  color: #f1f6ff;
}

.journey-checklist {
  display: grid;
  gap: 10px;
}

.journey-checklist--compact {
  gap: 8px;
}

.journey-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(123, 191, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  line-height: 1.35;
}

.journey-check input {
  margin-top: 2px;
  accent-color: #7fc7ff;
}

.journey-check.checked {
  border-color: rgba(118, 229, 172, 0.18);
  background: linear-gradient(180deg, rgba(23, 66, 53, 0.5), rgba(10, 20, 25, 0.7));
}

.journey-collection-list {
  margin-top: 0;
  max-height: 420px;
}

.shiny-hub-shell {
  display: grid;
  gap: 16px;
}

.shiny-hub-head {
  align-items: center;
}

.shiny-hub-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shiny-summary-card {
  min-height: 124px;
}

.shiny-game-select-card,
.shiny-odds-card,
.shiny-method-card,
.shiny-suggestions-card,
.shiny-search-card,
.shiny-locked-card,
.shiny-tracker-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(177, 146, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(23, 20, 54, 0.96), rgba(9, 11, 28, 0.98)),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.shiny-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.shiny-game-button {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(145, 188, 255, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 24, 50, 0.96), rgba(11, 14, 31, 0.98));
  color: var(--text);
  text-align: left;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.shiny-game-button strong {
  font-size: 0.96rem;
  line-height: 1.3;
}

.shiny-game-button span {
  color: var(--muted);
  font-size: 0.84rem;
}

.shiny-game-button:hover {
  transform: translateY(-1px);
  border-color: rgba(158, 206, 255, 0.28);
}

.shiny-game-button.active {
  border-color: rgba(117, 222, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(117, 222, 255, 0.18);
  background: linear-gradient(180deg, rgba(28, 39, 87, 0.98), rgba(15, 19, 47, 0.98));
}

.shiny-game-button-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.shiny-hub-empty-state {
  min-height: 150px;
}

.shiny-hub-content {
  display: grid;
  gap: 16px;
}

.shiny-hub-core-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px;
}

.shiny-hub-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.shiny-odds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.shiny-odds-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.shiny-odds-signal {
  min-height: 86px;
}

.shiny-odds-signal strong {
  font-size: 1.02rem;
}

.shiny-odds-option {
  display: grid;
  gap: 8px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(145, 188, 255, 0.14);
  background: rgba(255, 255, 255, 0.025);
  color: #eaf1ff;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.shiny-odds-option:hover {
  transform: translateY(-1px);
  border-color: rgba(142, 108, 255, 0.34);
  background: rgba(120, 88, 255, 0.08);
}

.shiny-odds-option.active {
  border-color: rgba(128, 208, 255, 0.52);
  background: linear-gradient(180deg, rgba(69, 58, 150, 0.48), rgba(29, 22, 74, 0.82));
  box-shadow: 0 12px 28px rgba(30, 18, 74, 0.32);
}

.shiny-odds-option-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.shiny-odds-option-head strong {
  font-size: 0.98rem;
  color: #f5f8ff;
}

.shiny-odds-option-value {
  flex-shrink: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #8fd4ff;
}

.shiny-odds-option .results-summary {
  margin: 0;
}

.shiny-method-body {
  display: grid;
  gap: 10px;
}

.shiny-method-title {
  font-size: 1.08rem;
  color: #f3f7ff;
}

.shiny-method-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.shiny-hub-suggested-board {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(145, 188, 255, 0.12);
  border-radius: 20px;
  padding: 14px;
}

.shiny-search-results,
.shiny-locked-results {
  max-height: 420px;
  overflow: auto;
}

.shiny-tracker-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shiny-tracker-shell {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  gap: 12px;
  align-items: stretch;
}

.shiny-tracker-step-btn {
  min-height: 156px;
  border-radius: 20px;
  font-size: 2rem;
  line-height: 1;
}

.shiny-tracker-target-card {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 156px;
  padding: 18px 14px;
  border-radius: 22px;
  border: 1px solid rgba(145, 188, 255, 0.12);
  background: linear-gradient(180deg, rgba(14, 18, 43, 0.98), rgba(8, 10, 24, 1));
  text-align: center;
}

.shiny-tracker-target-card strong {
  font-size: 1rem;
  color: #f5f8ff;
}

.shiny-tracker-target-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.shiny-tracker-sprite {
  width: 96px;
  height: 96px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.35));
}

.shiny-tracker-adjust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.shiny-tracker-actions {
  justify-content: flex-end;
}

@media (max-width: 1160px) {
  .shiny-hub-summary-grid,
  .shiny-hub-core-grid,
  .shiny-hub-main-grid,
  .shiny-odds-grid,
  .shiny-tracker-adjust-grid,
  .shiny-tracker-signal-grid {
    grid-template-columns: 1fr;
  }

  .shiny-tracker-shell {
    grid-template-columns: 1fr;
  }

  .shiny-tracker-step-btn {
    min-height: 72px;
  }

  .journey-select-grid,
  .journey-meta-grid {
    grid-template-columns: 1fr;
  }

  .journey-version-card,
  .journey-focus-card,
  .journey-section-card--story,
  .journey-section-card--pokedex,
  .journey-section-card--postgame,
  .journey-section-card--dlc,
  .journey-section-card--columns,
  .journey-section-card--legendary,
  .journey-section-card--exclusives {
    grid-column: 1 / -1;
  }
}

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

  .shiny-summary-card,
  .shiny-game-select-card,
  .shiny-odds-card,
  .shiny-method-card,
  .shiny-suggestions-card,
  .shiny-search-card,
  .shiny-locked-card,
  .shiny-tracker-card {
    padding: 14px;
  }

  .journey-detail-hero {
    grid-template-columns: auto 1fr;
  }

  .journey-detail-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .journey-columns-grid {
    grid-template-columns: 1fr;
  }
}

.exp-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.compact-field input:not([type="range"]),
.tracker-card input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(13, 26, 52, 0.92), rgba(5, 10, 24, 0.96)),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.compact-field input:focus,
.tracker-card input[type="text"]:focus {
  outline: 2px solid rgba(102, 205, 255, 0.36);
  outline-offset: 2px;
}

.exp-range-field span strong {
  color: var(--cyan-bright);
  font-family: "Oxanium", sans-serif;
  font-size: 1rem;
}

.exp-range-field input[type="range"] {
  width: 100%;
  margin: 2px 0 0;
  accent-color: var(--cyan);
}

.exp-range-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.exp-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.exp-quick-actions .ghost-button {
  justify-self: auto;
}

.exp-metric-grid {
  margin-top: 16px;
}

.exp-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.hunt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.hunt-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(89, 200, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(18, 34, 66, 0.86), rgba(8, 15, 31, 0.96));
}

.hunt-card.active {
  border-color: rgba(89, 200, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(89, 200, 255, 0.12);
}

.hunt-card.unavailable {
  border-color: rgba(255, 93, 120, 0.14);
  background:
    linear-gradient(180deg, rgba(36, 22, 34, 0.8), rgba(18, 10, 22, 0.94));
}

.hunt-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.hunt-card-head strong {
  font-size: 1.08rem;
}

.hunt-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(97, 116, 140, 0.22);
  color: rgba(233, 247, 255, 0.82);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hunt-badge.available {
  background: rgba(91, 231, 171, 0.16);
  color: #8ff3c1;
}

.hunt-badge.unavailable {
  background: rgba(255, 93, 120, 0.14);
  color: #ff9bac;
}

.hunt-badge.general {
  background: rgba(89, 200, 255, 0.16);
  color: #8de5ff;
}

.hunt-badge.logged {
  background: rgba(255, 215, 118, 0.16);
  color: #ffd776;
}

.hunt-method {
  font-size: 1.14rem;
  line-height: 1.2;
}

.hunt-detail,
.hunt-note {
  color: rgba(233, 247, 255, 0.74);
  line-height: 1.45;
}

.hunt-note {
  color: rgba(233, 247, 255, 0.56);
  font-size: 0.92rem;
}

.hunt-tags,
.hunt-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vault-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}

.vault-inline--single-action {
  grid-template-columns: minmax(0, 1fr);
}

.account-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.account-auth-grid input,
.vault-inline input,
.trainer-notebook {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(13, 26, 52, 0.92), rgba(5, 10, 24, 0.96)),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.vault-inline input:focus,
.account-auth-grid input:focus,
.trainer-notebook:focus {
  outline: 2px solid rgba(102, 205, 255, 0.36);
  outline-offset: 2px;
}

.account-button-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.account-button-bank > * {
  flex: 1 1 148px;
}

.vault-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(3, 8, 20, 0.76);
  backdrop-filter: blur(14px);
}

.vault-picker-dialog {
  width: min(760px, 100%);
  max-height: min(84vh, 920px);
  display: grid;
  gap: 14px;
  padding: 20px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(89, 200, 255, 0.18);
  background:
    radial-gradient(circle at top left, rgba(89, 200, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(18, 34, 66, 0.96), rgba(6, 12, 28, 0.98));
  box-shadow:
    0 28px 70px rgba(4, 10, 24, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.vault-picker-list {
  max-height: 420px;
  overflow: auto;
}

.vault-picker-choice {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.vault-picker-choice .collection-item {
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.vault-picker-choice:hover .collection-item,
.vault-picker-choice:focus-visible .collection-item {
  border-color: rgba(89, 200, 255, 0.32);
  background: rgba(89, 200, 255, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(4, 12, 24, 0.22);
}

.provider-button {
  position: relative;
  padding-left: 42px;
}

.provider-button::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 70% 30%, #4285f4 0 30%, transparent 31%),
    radial-gradient(circle at 32% 30%, #ea4335 0 30%, transparent 31%),
    radial-gradient(circle at 68% 70%, #34a853 0 30%, transparent 31%),
    radial-gradient(circle at 32% 70%, #fbbc05 0 30%, transparent 31%),
    #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.provider-button-google {
  border-color: rgba(66, 133, 244, 0.24);
}

.account-auto-sync-button {
  border-color: rgba(89, 200, 255, 0.2);
}

.account-auto-sync-button.active {
  color: #8ff3c1;
  border-color: rgba(93, 238, 176, 0.3);
  background: rgba(93, 238, 176, 0.12);
  box-shadow: inset 0 0 0 1px rgba(143, 243, 193, 0.06);
}

.account-detail {
  margin-top: 14px;
}

.account-detail.is-error {
  color: #ff9bac;
}

.account-detail.is-success {
  color: #8ff3c1;
}

.account-detail.is-warn {
  color: #ffd776;
}

.trainer-notebook {
  margin-top: 14px;
  min-height: 220px;
  resize: vertical;
}

.vault-wide {
  grid-column: 1 / -1;
}

.box-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
  margin-top: 14px;
  max-height: 232px;
  overflow: auto;
  padding-right: 4px;
}

.box-tab.active {
  color: var(--text);
  background: linear-gradient(180deg, rgba(89, 200, 255, 0.24), rgba(47, 120, 255, 0.16));
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1px rgba(89, 200, 255, 0.18), 0 0 24px rgba(80, 194, 255, 0.16);
}

.home-wide {
  grid-column: 1 / -1;
}

.home-template-card {
  width: min(1280px, 100%);
  margin-inline: auto;
}

.home-template-card .box-tabs,
.home-template-card #home-box-summary,
.home-template-card .home-box-grid {
  width: min(1140px, 100%);
  margin-inline: auto;
}

.home-template-card .home-box-grid {
  margin-top: 16px;
}

.home-excluded-head {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.home-excluded-head span {
  color: var(--muted);
  font-size: 0.82rem;
}

.home-box-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(118, 176, 255, 0.22);
  background:
    radial-gradient(circle at 14% 18%, rgba(124, 179, 255, 0.14), transparent 22%),
    radial-gradient(circle at 85% 22%, rgba(141, 255, 231, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(28, 50, 88, 0.92), rgba(13, 23, 46, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -18px 40px rgba(4, 8, 22, 0.28),
    0 26px 46px rgba(3, 7, 20, 0.28);
  overflow: hidden;
}

.home-box-grid::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  border: 1px solid rgba(180, 219, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 16%, transparent 84%, rgba(255, 255, 255, 0.02));
  pointer-events: none;
}

.home-box-grid > * {
  position: relative;
  z-index: 1;
}

.home-slot {
  min-height: 168px;
  display: grid;
  grid-template-rows: auto minmax(64px, 1fr) auto auto auto;
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding: 10px 10px 12px;
  border-radius: 18px;
  color: var(--text);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(24, 37, 66, 0.96), rgba(9, 16, 33, 0.98));
  border: 1px solid rgba(144, 190, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 20px rgba(3, 8, 20, 0.18);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease,
    background 160ms ease;
}

.home-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 28%);
  pointer-events: none;
}

.home-slot:hover {
  transform: translateY(-2px);
  border-color: rgba(120, 196, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 30px rgba(6, 13, 28, 0.28);
}

.home-slot.active {
  border-color: rgba(255, 196, 120, 0.52);
  box-shadow:
    0 0 0 1px rgba(255, 196, 120, 0.22),
    0 20px 36px rgba(94, 48, 12, 0.24);
}

.home-slot.caught {
  border-color: rgba(102, 193, 255, 0.36);
  background:
    linear-gradient(180deg, rgba(26, 58, 110, 0.96), rgba(10, 22, 44, 0.99));
}

.home-slot.boxed {
  border-color: rgba(255, 148, 148, 0.46);
  background:
    linear-gradient(180deg, rgba(108, 34, 58, 0.94), rgba(31, 15, 30, 0.99));
  box-shadow:
    0 0 0 1px rgba(255, 148, 148, 0.14),
    0 18px 34px rgba(82, 14, 24, 0.28);
}

.home-slot.missing {
  border-color: rgba(173, 187, 233, 0.16);
}

.home-slot.is-empty {
  cursor: default;
  opacity: 0.88;
  border-style: solid;
  background:
    linear-gradient(180deg, rgba(15, 24, 46, 0.88), rgba(8, 12, 28, 0.96));
}

.home-slot.is-empty:hover {
  transform: none;
  border-color: rgba(144, 190, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 20px rgba(3, 8, 20, 0.18);
}

.home-slot-number {
  justify-self: start;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: rgba(221, 238, 255, 0.82);
  font-family: "Oxanium", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  background: rgba(160, 202, 255, 0.08);
  border: 1px solid rgba(160, 202, 255, 0.12);
}

.home-slot-artwell {
  width: min(100%, 84px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 22px;
  border: 1px solid rgba(163, 202, 255, 0.12);
  background:
    radial-gradient(circle at 50% 30%, rgba(146, 204, 255, 0.14), transparent 54%),
    linear-gradient(180deg, rgba(8, 14, 30, 0.9), rgba(15, 24, 48, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-slot-artwell.is-empty {
  border-style: dashed;
  background:
    linear-gradient(180deg, rgba(7, 12, 26, 0.9), rgba(10, 16, 33, 0.94));
}

.home-slot-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px dashed rgba(169, 198, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(95, 142, 214, 0.12), rgba(26, 44, 80, 0.08));
}

.home-slot-sprite {
  width: 56px;
  height: 56px;
  object-fit: contain;
  image-rendering: pixelated;
}

.home-slot-sprite.is-missing {
  opacity: 0;
}

.home-slot-meta {
  width: 100%;
  display: grid;
  gap: 3px;
}

.home-slot-label {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.16;
  text-align: center;
}

.home-slot-dex,
.home-slot-variant,
.home-slot-status {
  font-size: 0.67rem;
  line-height: 1.18;
}

.home-slot-dex {
  color: rgba(205, 222, 255, 0.6);
  font-family: "Oxanium", sans-serif;
  letter-spacing: 0.06em;
}

.home-slot-variant {
  color: rgba(233, 247, 255, 0.8);
}

.home-slot-status {
  min-width: 74px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(89, 200, 255, 0.14);
  background: rgba(89, 200, 255, 0.07);
  color: rgba(233, 247, 255, 0.88);
}

.home-slot.boxed .home-slot-status {
  border-color: rgba(255, 132, 132, 0.28);
  background: rgba(255, 106, 106, 0.16);
  color: #ffe7e7;
}

.home-slot.caught .home-slot-status {
  border-color: rgba(115, 197, 255, 0.28);
  background: rgba(62, 147, 255, 0.14);
}

.home-slot.missing .home-slot-status {
  border-color: rgba(177, 194, 236, 0.2);
  background: rgba(151, 170, 218, 0.08);
  color: rgba(232, 240, 255, 0.78);
}

.home-slot.is-empty .home-slot-status {
  color: rgba(233, 247, 255, 0.72);
  border-color: rgba(169, 198, 255, 0.16);
  background: rgba(102, 129, 194, 0.1);
}

.checklist-progress,
.checklist-action {
  margin-top: 14px;
}

.checklist-action {
  justify-self: start;
}

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

.suggestion-card {
  display: grid;
  align-content: start;
}

.suggestion-card strong {
  margin-top: 8px;
  line-height: 1.1;
}

#suggest-catch-name {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-button {
  margin-top: 16px;
  justify-self: start;
}

.tool-shell-summary {
  max-width: 760px;
}

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

.module-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: "Oxanium", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-status.live {
  color: #9cffcf;
  background: rgba(78, 218, 162, 0.12);
}

.module-status.queued {
  color: #8be5ff;
  background: rgba(89, 200, 255, 0.12);
}

.module-status.roadmap {
  color: #ffd776;
  background: rgba(255, 215, 118, 0.12);
}

.module-card strong {
  margin-top: 12px;
}

.module-card p {
  margin-top: 10px;
}

.module-grid.is-toolbox {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 16px;
  align-items: start;
}

.tool-showcase-card,
.tool-station-card--wide {
  grid-column: 1 / -1;
}

.tool-showcase-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(129, 188, 255, 0.18);
  background:
    radial-gradient(circle at 84% 18%, rgba(121, 208, 255, 0.18), transparent 22%),
    radial-gradient(circle at 12% 80%, rgba(255, 164, 112, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(20, 35, 72, 0.96), rgba(7, 13, 30, 0.99));
  box-shadow:
    0 24px 48px rgba(3, 9, 24, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tool-showcase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(111, 160, 255, 0.1), transparent 44%),
    radial-gradient(circle at 58% 100%, rgba(95, 238, 176, 0.1), transparent 24%);
  pointer-events: none;
}

.tool-showcase-card > * {
  position: relative;
  z-index: 1;
}

.tool-showcase-copy {
  display: grid;
  align-content: start;
  gap: 12px;
}

.tool-showcase-copy strong {
  margin-top: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.tool-showcase-copy .results-summary {
  margin-top: 0;
  max-width: 58ch;
  color: rgba(227, 242, 255, 0.82);
  font-size: 0.96rem;
  line-height: 1.6;
}

.tool-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tool-showcase-stat {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(129, 188, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(10, 20, 44, 0.88), rgba(5, 11, 25, 0.95));
}

.tool-showcase-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(121, 208, 255, 0.12);
  border: 1px solid rgba(121, 208, 255, 0.18);
  color: rgba(230, 248, 255, 0.88);
  font-family: "Oxanium", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-showcase-stat strong {
  margin-top: 0;
  font-size: 1.7rem;
  line-height: 1;
}

.tool-showcase-stat p {
  margin-top: 0;
  color: rgba(215, 231, 255, 0.72);
  line-height: 1.45;
}

.tool-station-card {
  --tool-accent: rgba(121, 208, 255, 0.82);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(110, 184, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(16, 29, 60, 0.95), rgba(6, 12, 28, 0.99));
  box-shadow:
    0 22px 44px rgba(4, 10, 24, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tool-station-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--tool-accent) 26%, transparent) 0 14%, transparent 36%),
    linear-gradient(135deg, color-mix(in srgb, var(--tool-accent) 10%, transparent), transparent 56%);
  pointer-events: none;
}

.tool-station-card > * {
  position: relative;
  z-index: 1;
}

.tool-station-card--lza {
  --tool-accent: rgba(255, 189, 102, 0.92);
}

.tool-station-card--pla {
  --tool-accent: rgba(255, 213, 122, 0.88);
}

.tool-station-card--sv {
  --tool-accent: rgba(255, 116, 154, 0.88);
}

.tool-station-card--supply {
  --tool-accent: rgba(120, 236, 209, 0.9);
}

.tool-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tool-card-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.tool-card-orb {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  border: 1px solid color-mix(in srgb, var(--tool-accent) 42%, rgba(255, 255, 255, 0.1));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--tool-accent) 28%, rgba(18, 28, 56, 0.94)), rgba(7, 15, 34, 0.98));
  color: rgba(247, 251, 255, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(4, 10, 24, 0.2);
  font-family: "Oxanium", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tool-card-copy {
  min-width: 0;
}

.tool-card-copy .module-status {
  margin-bottom: 8px;
}

.tool-card-head strong {
  margin-top: 0;
  display: block;
  font-size: 1.42rem;
  line-height: 1;
}

.tool-preset-grid,
.tool-stat-grid,
.tool-slot-grid,
.tool-detail-grid,
.tool-field-grid {
  display: grid;
  gap: 12px;
}

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

.tool-preset-button {
  min-height: 120px;
  display: grid;
  justify-items: flex-start;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(120, 198, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(12, 24, 48, 0.84), rgba(5, 11, 25, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.tool-preset-button:hover,
.tool-preset-button:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--tool-accent) 42%, rgba(120, 198, 255, 0.24));
  background:
    linear-gradient(180deg, rgba(19, 35, 66, 0.9), rgba(8, 16, 34, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 14px 28px rgba(4, 10, 24, 0.22);
}

.tool-preset-button span {
  font-family: "Oxanium", sans-serif;
  font-size: 1rem;
  line-height: 1.05;
}

.tool-preset-button small {
  color: rgba(217, 240, 255, 0.72);
  line-height: 1.4;
}

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

.tool-station-card--wide .tool-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tool-stat-chip {
  min-width: 0;
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 86px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(95, 179, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(10, 20, 44, 0.78), rgba(4, 10, 24, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tool-stat-chip-label {
  color: rgba(201, 221, 247, 0.68);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tool-stat-chip-value {
  margin-top: 0;
  font-size: 1.22rem;
  line-height: 1.05;
}

.tool-slot-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.tool-input-shell {
  min-width: 0;
}

.tool-note-band {
  margin-top: 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(111, 186, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(10, 19, 42, 0.78), rgba(5, 11, 25, 0.92));
  color: rgba(225, 240, 255, 0.82);
  line-height: 1.55;
}

.tool-detail-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(111, 186, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(12, 23, 49, 0.76), rgba(5, 11, 25, 0.92));
}

.tool-detail-card strong {
  display: block;
  margin-top: 8px;
  line-height: 1.15;
}

.tool-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-table-shell {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(111, 186, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(8, 17, 38, 0.82), rgba(4, 9, 21, 0.96));
  overflow-x: auto;
}

.tool-table {
  display: grid;
  gap: 10px;
  min-width: 560px;
}

.tool-table-head,
.tool-table-row {
  display: grid;
  gap: 10px;
  align-items: center;
  grid-template-columns: minmax(0, 1.6fr) 88px 88px 110px 88px;
}

.tool-table-head {
  color: rgba(217, 240, 255, 0.7);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tool-table-row {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(89, 200, 255, 0.08);
  background: rgba(14, 26, 54, 0.62);
}

.tool-table-row--supply,
.tool-table-head--supply {
  grid-template-columns: minmax(0, 1.8fr) 110px 88px 88px auto;
}

.tool-table-label,
.tool-table-value {
  min-width: 0;
}

.tool-table-label {
  font-weight: 600;
}

.tool-table-input {
  width: 100%;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid rgba(89, 200, 255, 0.14);
  background: rgba(3, 10, 24, 0.9);
  color: var(--text-primary);
  padding: 10px 12px;
  font: inherit;
}

.tool-inline-button {
  justify-self: end;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1380px) {
  .archive-stack {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
}

@media (max-width: 1240px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  body:not([data-active-view="landing"]) {
    --app-rail-width: 206px;
  }

  .dashboard-shell {
    grid-template-columns: 196px minmax(0, 1fr);
  }

  body[data-active-view="landing"] {
    --dashboard-sidebar-width: 214px;
    --landing-sidebar-lift: 76px;
  }

  .dashboard-hero-card {
    grid-template-columns: 82px minmax(0, 1fr) 150px;
  }

  .dashboard-hero-quote {
    grid-column: 1 / -1;
  }

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

  .dashboard-home-main,
  .dashboard-home-side,
  .dashboard-progress-row {
    grid-column: 1 / -1;
  }

  .dashboard-home-grid,
  .dashboard-home-main,
  .dashboard-home-side,
  .dashboard-progress-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-feature-card--wide,
  .dashboard-feature-card--full {
    grid-column: span 2;
  }

  .dashboard-feature-card--split {
    grid-template-columns: 1fr;
  }

  .dashboard-smart-grid,
  .dashboard-journey-grid,
  .dashboard-suggestion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-tabs {
    grid-column: 1 / -1;
    order: 4;
  }

  .archive-stack {
    grid-template-columns: 1fr;
  }

  .systems-grid,
  .landing-grid,
  .progress-stack,
  .collection-grid,
  .game-checklist-grid,
  .tracker-grid,
  .target-board,
  .hunt-grid,
  .vault-grid,
  .home-grid,
  .exp-insight-grid,
  .suggestion-stack,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .results-panel,
  .detail-panel {
    min-height: auto;
  }

  .result-list {
    height: auto;
    max-height: 52vh;
  }

  .toolbar-row {
    flex-direction: column;
    align-items: stretch;
  }

  .archive-view-toggle {
    justify-content: stretch;
  }

  .archive-view-toggle > * {
    flex: 1 1 0;
  }

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

  .archive-progress-grid {
    grid-template-columns: 1fr;
  }

  .generation-breakdown-grid {
    grid-template-columns: 1fr;
  }

  .tracker-version-grid {
    grid-template-columns: 1fr;
  }

  .tool-preset-grid,
  .tool-stat-grid,
  .tool-slot-grid,
  .tool-detail-grid,
  .tool-field-grid {
    grid-template-columns: 1fr;
  }

  .tool-showcase-card,
  .tool-showcase-grid {
    grid-template-columns: 1fr;
  }

  .tool-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .tool-table-head,
  .tool-table-row,
  .tool-table-head--supply,
  .tool-table-row--supply {
    grid-template-columns: 1fr;
  }

  .tool-inline-button {
    justify-self: start;
  }
}

@media (max-width: 1180px) {
  .home-box-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body:not([data-active-view="landing"]) .app-shell {
    display: block;
  }

  body:not([data-active-view="landing"]) .dashboard-sidebar.app-rail {
    display: none;
  }

  body:not([data-active-view="landing"]) .nav-tabs {
    display: flex;
  }

  body:not([data-active-view="landing"]) .current-scan-shell,
  body:not([data-active-view="landing"]) .workspace-shell,
  body:not([data-active-view="landing"]) .systems-grid {
    grid-column: auto;
  }

  body[data-active-view="landing"] .current-scan-shell {
    width: 100%;
    margin-inline: 0;
    padding-left: 0;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    min-height: auto;
    margin-top: 0;
  }

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

  .dashboard-sidecard:first-of-type {
    margin-top: 0;
  }

  .dashboard-hero-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .dashboard-hero-art {
    grid-column: 1 / -1;
    order: 2;
  }

  .dashboard-hero-quote {
    grid-column: 1 / -1;
  }

  .dashboard-metric-grid,
  .dashboard-home-grid,
  .dashboard-home-main,
  .dashboard-home-side,
  .dashboard-progress-row,
  .dashboard-smart-grid,
  .dashboard-journey-grid,
  .dashboard-suggestion-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-feature-card--wide,
  .dashboard-feature-card--full {
    grid-column: 1 / -1;
  }

  .dashboard-completion-shell {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .current-scan-ribbon {
    grid-template-columns: 1fr;
  }

  .current-scan-main {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .current-scan-types {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .system-strip {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .nav-tabs {
    order: 3;
  }

  .archive-workspace {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .landing-metric-grid {
    grid-template-columns: 1fr;
  }

  .suggested-board-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .results-header,
  .detail-grid,
  .meta-grid {
    grid-template-columns: 1fr;
  }

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

  .exp-form-grid {
    grid-template-columns: 1fr;
  }

  .home-box-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .availability-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .dashboard-sidebar-nav,
  .dashboard-side-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-card-head,
  .dashboard-event-item {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-nav-item {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .dashboard-recent-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .dashboard-recent-stamp {
    grid-column: 2;
    justify-self: start;
  }

  .dashboard-completion-ring {
    width: 152px;
    height: 152px;
  }

  .dashboard-completion-ring > div {
    width: 112px;
    height: 112px;
  }

  .dashboard-hero-card {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-emblem {
    width: 74px;
    height: 74px;
  }

  .dashboard-metric-card {
    padding-left: 64px;
  }

  .archive-workspace {
    grid-template-columns: 1fr;
  }

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

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

  .suggested-board-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .suggested-board-button-bank {
    justify-content: stretch;
  }

  .suggested-board-button-bank > * {
    flex: 1 1 100%;
  }

  .control-panel {
    position: static;
    max-height: none;
  }

  .panel {
    min-height: auto;
  }

  .result-list {
    height: auto;
    max-height: 60vh;
  }

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

  .vault-inline {
    grid-template-columns: 1fr;
  }

  .vault-manager-actions,
  .vault-picker-action-row {
    justify-content: stretch;
  }

  .vault-manager-actions > *,
  .vault-picker-action-row > * {
    flex: 1 1 100%;
  }

  .vault-picker-overlay {
    padding: 12px;
  }

  .vault-picker-dialog {
    padding: 16px;
    max-height: 88vh;
  }

  .home-excluded-head {
    justify-content: flex-start;
  }

  .account-auth-grid {
    grid-template-columns: 1fr;
  }

  .location-map-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .location-surface-tabs {
    grid-template-columns: 1fr;
  }

  .tool-action-row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 620px) {
  .app-shell {
    width: min(100% - 12px, 100%);
  }

  .topbar,
  .panel {
    padding: 14px;
  }

  .current-scan-ribbon {
    grid-template-columns: 1fr;
    justify-items: flex-start;
    padding: 14px;
  }

  .current-scan-main {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .current-scan-clear {
    min-width: 0;
    min-height: 44px;
    width: 100%;
  }

  .current-scan-sprite {
    width: 52px;
    height: 52px;
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .ghost-button {
    justify-self: stretch;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .sensor-cluster {
    grid-template-columns: 44px 12px 12px;
    grid-template-rows: repeat(2, 12px);
  }

  .sensor-main {
    width: 44px;
    height: 44px;
  }

  .action-row {
    grid-template-columns: 1fr;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .bank-button {
    flex-basis: calc(50% - 10px);
  }

  .button-bank.compact .bank-button {
    flex-basis: calc(50% - 10px);
  }

  .detail-tab,
  .detail-link-button {
    flex: 1 1 calc(50% - 10px);
  }

  .result-list.is-grid {
    grid-template-columns: 1fr;
  }

  .dex-entry-button {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .entry-tags {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 76px;
  }

  .detail-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-actions {
    width: 100%;
    justify-items: stretch;
  }

  .screen-visual-toggle {
    top: 12px;
    right: 12px;
    left: 12px;
    justify-content: center;
  }

  .detail-link-bank {
    flex-direction: column;
  }

  .detail-link-button {
    width: 100%;
  }

  .collection-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .collection-item-art {
    width: 48px;
    height: 48px;
  }

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

  .location-map-shell {
    padding: 12px;
  }

  .location-map-controls {
    top: 12px;
    right: 12px;
  }

  .location-map-control {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
}
