:root {
  --bg: #f3f5fb;
  --panel: #ffffff;
  --ink: #172034;
  --muted: #647084;
  --line: #d8deea;
  --primary: #df2f35;
  --primary-dark: #a91821;
  --accent: #ffcb05;
  --accent-blue: #2f6db5;
  --danger: #a91821;
  --focus: #fff1a8;
  --shadow: 0 16px 34px rgba(23, 32, 52, .14);
  --shell: #191f2d;
  --shell-line: #0b0f18;
  --grass: #41a85f;
  --water: #2d8fd5;
}

.pokedex-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border: 2px solid #111827;
  background: linear-gradient(135deg, #e82f3a 0 48%, #111827 48% 52%, #fff 52% 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.pokedex-hero h2 {
  font-size: 44px;
  line-height: .95;
}
.pokedex-hero p:last-child {
  max-width: 560px;
  color: #fff;
  font-weight: 800;
}
.pokedex-hero .button {
  background: #fff;
  color: #111827;
}
.pokedex-import-results {
  border-left: 5px solid var(--danger);
}
.pokedex-import-results h3 {
  margin: 0 0 8px;
  color: var(--danger);
}
.pokedex-import-results ul {
  margin: 0;
  padding-left: 20px;
  color: #54151a;
}
.pokedex-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.pokedex-summary-block {
  display: grid;
  gap: 12px;
}
.pokedex-accordion {
  display: grid;
  gap: 14px;
}
.pokedex-accordion > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}
.pokedex-accordion > summary::-webkit-details-marker {
  display: none;
}
.pokedex-accordion > summary h3,
.pokedex-accordion > summary p {
  margin: 0;
}
.pokedex-accordion > summary svg {
  flex: 0 0 auto;
  transition: transform .18s ease;
}
.pokedex-accordion[open] > summary svg {
  transform: rotate(180deg);
}
.pokedex-summary-accordion {
  border-top: 4px solid var(--shell);
}
.pokedex-summary-card,
.pokedex-card,
.pokedex-admin-card {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 32, 52, .08);
}
.pokedex-summary-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-top: 5px solid var(--accent);
}
.pokedex-summary-card span {
  font-size: 30px;
  font-weight: 950;
  color: var(--primary-dark);
}
.pokedex-summary-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.pokedex-summary-actions button {
  min-height: 44px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #f8fafc;
  color: var(--ink);
  box-shadow: none;
  display: grid;
  gap: 1px;
}
.pokedex-summary-actions button:not(:disabled):hover,
.pokedex-summary-actions button:not(:disabled):focus {
  border-color: var(--accent-blue);
  color: var(--ink);
}
.pokedex-summary-actions button:disabled {
  opacity: .45;
  cursor: default;
}
.pokedex-summary-actions b {
  font-size: 17px;
}
.pokedex-summary-actions small {
  font-size: 10px;
  text-transform: uppercase;
}
.pokedex-summary-total {
  border-top-color: #111827;
  background: linear-gradient(180deg, #fff 0%, #fff7d6 100%);
}
@media (min-width: 821px) {
  .pokedex-summary-accordion > summary {
    display: none;
  }
}
.pokedex-category-settings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pokedex-category-toggle {
  display: grid;
  gap: 5px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #f8fafc;
  font-weight: 850;
}
.pokedex-category-toggle label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.pokedex-category-total-toggle {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}
.pokedex-searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pokedex-searchbar input {
  width: min(280px, 100%);
}
.pokedex-searchbar select {
  width: 180px;
}
.pokedex-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.pokedex-card {
  display: grid;
  gap: 10px;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
}
.pokedex-card-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 28px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 8px 12px;
  border: 0;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 0;
  box-shadow: none;
}
.pokedex-card-head:hover,
.pokedex-card-head:focus {
  background: #f8fafc;
  color: inherit;
}
.pokedex-card-head img,
.pokedex-sprite-placeholder {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #f8fafc;
}
.pokedex-card-head small {
  justify-self: end;
  font-weight: 950;
  white-space: nowrap;
}
.pokedex-fraction.none {
  color: #b91c1c;
}
.pokedex-fraction.partial {
  color: #1d4ed8;
}
.pokedex-fraction.complete {
  color: #15803d;
}
.pokedex-card-head i {
  justify-self: end;
  transition: transform .18s ease;
}
.pokedex-card.expanded .pokedex-card-head i {
  transform: rotate(180deg);
}
.pokedex-card-head strong {
  display: block;
  font-size: 17px;
}
.pokedex-card-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.pokedex-state-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}
.pokedex-guide {
  border: 1px solid #d6deea;
  background: #fbfdff;
  padding: 10px 12px;
}
.pokedex-guide summary {
  cursor: pointer;
  font-weight: 950;
}
.pokedex-guide div {
  display: grid;
  gap: 6px;
  padding-top: 8px;
}
.pokedex-guide p {
  margin: 0;
  color: #334155;
  font-size: 13px;
}
.pokedex-state-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}
.pokedex-admin-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}
.pokedex-admin-url {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 850;
  color: #273247;
}
.pokedex-admin-url input {
  width: 100%;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}
.pokedex-state-actions .button {
  min-height: 34px;
  padding: 6px 10px;
}
.pokedex-admin-actions .button {
  min-height: 34px;
  padding: 6px 10px;
}
.pokedex-state-grid[hidden] {
  display: none;
}
.pokedex-state {
  display: grid;
  gap: 5px;
  min-height: 108px;
  padding: 8px;
  border: 1px solid #d6deea;
  background: #fbfdff;
}
.pokedex-state > span,
.pokedex-admin-category > strong {
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  color: #273247;
}
.pokedex-state label,
.pokedex-admin-category label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.pokedex-state input[type="checkbox"],
.pokedex-category-toggle input,
.pokedex-admin-category input[type="checkbox"] {
  width: auto;
  min-height: auto;
}
.pokedex-detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  max-height: min(68vh, 720px);
  overflow: auto;
  padding-right: 4px;
}
.pokedex-detail-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-height: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  font-weight: inherit;
}
.pokedex-detail-row:hover {
  border-color: #111827;
  background: #fff;
  box-shadow: none;
  transform: none;
}
.pokedex-detail-row.saving {
  outline: 3px solid var(--focus);
}
.pokedex-detail-pokemon-button {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
  font-weight: inherit;
}
.pokedex-detail-pokemon-button:hover,
.pokedex-detail-pokemon-button:focus {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  transform: none;
}
.pokedex-detail-row img,
.pokedex-detail-row .pokedex-sprite-placeholder {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.pokedex-detail-row strong {
  display: block;
  font-size: 14px;
}
.pokedex-detail-row span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.pokedex-detail-caught {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 850;
}
.pokedex-detail-caught input {
  width: auto;
  min-height: auto;
}
.pokedex-state.locked {
  opacity: .62;
  background: #f1f5f9;
}
.pokedex-admin-list {
  display: grid;
  gap: 16px;
}
.pokedex-admin-card {
  padding: 0;
  overflow: hidden;
}
.pokedex-admin-row-head {
  grid-template-columns: 48px minmax(170px, 1fr) minmax(220px, 1.6fr) 28px;
}
.pokedex-availability-chip-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}
.pokedex-availability-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 22px;
  padding: 2px 6px;
  border: 1px solid #cbd5e1;
  background: #eef2f7;
  color: #647084;
  font-size: 11px;
  font-weight: 950;
}
.pokedex-availability-chip.eligible {
  border-color: #2f6db5;
  background: #e7f1ff;
  color: #174a82;
}
.pokedex-availability-chip.included {
  box-shadow: inset 0 -3px 0 var(--accent);
}
.pokedex-admin-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}
.pokedex-admin-category-grid[hidden] {
  display: none;
}
.pokedex-admin-category {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #f8fafc;
}
.pokedex-admin-category textarea {
  min-height: 58px;
}
.pokedex-state.saving,
.pokedex-admin-category.saving {
  outline: 3px solid var(--focus);
}

@media (max-width: 820px) {
  .pokedex-hero {
    align-items: flex-start;
    flex-direction: column;
    background: linear-gradient(160deg, #e82f3a 0 52%, #111827 52% 56%, #fff 56% 100%);
  }
  .pokedex-summary-grid,
  .pokedex-grid,
  .pokedex-admin-category-grid {
    grid-template-columns: 1fr;
  }
  .pokedex-state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pokedex-card-head {
    grid-template-columns: 44px minmax(0, 1fr) auto 24px;
    gap: 8px;
  }
  .pokedex-admin-row-head {
    grid-template-columns: 44px minmax(0, 1fr) 24px;
  }
  .pokedex-admin-row-head .pokedex-availability-chip-strip {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .pokedex-card-head img,
  .pokedex-sprite-placeholder {
    width: 44px;
    height: 44px;
  }
  .pokedex-searchbar {
    justify-content: stretch;
  }
  .pokedex-searchbar input,
  .pokedex-searchbar select {
    width: 100%;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 203, 5, .22), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(47, 109, 181, .18), transparent 30%),
    linear-gradient(180deg, #fff 0, var(--bg) 44%, #eef3fb 100%);
  color: var(--ink);
  font-family: "Outfit", "Segoe UI Rounded", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}
h1, h2, h3 {
  font-family: "Barlow Condensed", "Outfit", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
.inline-link { color: var(--primary-dark); text-decoration: underline; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(13, 18, 29, .1);
}
.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 4px 0;
  color: var(--shell);
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
  text-transform: uppercase;
}
.brand::before {
  content: "";
  width: 30px;
  height: 42px;
  background: center / contain no-repeat url("/images/pogo-companion-logo.png?v=20260526-6");
  flex: 0 0 30px;
}
.brand::after {
  content: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.nav-links > a {
  padding: 10px 12px;
  border-radius: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}
.nav-links > a:hover, .nav-links > a.active {
  background: var(--accent);
  color: var(--shell);
}
.nav-category {
  position: relative;
}
.nav-category-button {
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 0;
  border-color: transparent;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}
.nav-category-button:hover,
.nav-category.open .nav-category-button {
  background: var(--accent);
  color: var(--shell);
}
.nav-category-button svg {
  width: 15px;
  height: 15px;
}
.nav-category-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 35;
  display: none;
  width: min(320px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.nav-category.open .nav-category-menu {
  display: grid;
  gap: 4px;
}
.nav-category-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 0;
  color: var(--ink);
}
.nav-category-menu a:hover {
  background: #fff5b9;
}
.nav-category-menu strong {
  font-size: 14px;
}
.nav-menu-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-menu-program {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.program-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}
.program-select-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.program-picker select {
  width: min(220px, 28vw);
  min-height: 36px;
  padding: 7px 34px 7px 10px;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 0;
}
.nav-menu-program select {
  width: min(220px, 28vw);
  min-height: 38px;
  padding: 7px 34px 7px 10px;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 0;
}
.user-actions { display: none; }
.nav-toggle { display: none; margin-left: auto; }
.page {
  flex: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 88px;
}
.page:has(.landing-page) {
  width: 100%;
  margin: 0;
}
.auth-page {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(223,47,53,.14) 0 22%, transparent 22% 100%),
    linear-gradient(315deg, rgba(47,109,181,.14) 0 20%, transparent 20% 100%),
    linear-gradient(180deg, rgba(255,255,255,.74), rgba(255,255,255,.38));
  border-radius: 18px;
}
.auth-panel, .surface {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.auth-panel {
  width: min(420px, 100%);
  padding: 28px;
  border-top: 8px solid var(--primary);
}
.auth-warning {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e0b600;
  border-radius: 8px;
  background: #fff7c8;
  color: #4d3900;
  font-weight: 800;
}
h1, h2, h3 { margin: 0; letter-spacing: 0; font-weight: 900; }
h1 { font-size: 30px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
.muted { color: var(--muted); }
.stack { display: grid; gap: 16px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > .stack { align-self: start; }
.field { display: grid; gap: 6px; }
label { font-size: 13px; color: #33414f; font-weight: 650; }
input, textarea, select {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 2px solid #c6ced7;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 86px; resize: vertical; }
.code-textarea {
  min-height: 360px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre;
}
.html-editor-shell {
  display: grid;
  gap: 14px;
}
input:focus, textarea:focus, select:focus {
  outline: 3px solid var(--focus);
  border-color: var(--primary);
}
.readonly-value {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 9px 0;
  color: var(--ink);
  font-weight: 650;
}
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 2px solid var(--shell-line);
  border-radius: 999px;
  background: linear-gradient(180deg, #f64c50, var(--primary));
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  box-shadow: 0 3px 0 var(--shell-line), 0 10px 18px rgba(169,24,33,.18);
}
.button:hover, button:hover { background: linear-gradient(180deg, #e83b42, var(--primary-dark)); transform: translateY(-1px); }
.button.secondary, button.secondary {
  background: #fff;
  color: var(--primary-dark);
  border-color: var(--shell-line);
  box-shadow: 0 3px 0 var(--shell-line), 0 8px 15px rgba(23,32,52,.1);
}
.button.danger, button.danger { background: var(--danger); border-color: var(--danger); }
.icon-button {
  width: 38px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: inherit;
  box-shadow: none;
}
.icon-button:hover { background: rgba(0,0,0,.08); }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline-copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.share-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}
.share-copy-row input {
  min-width: 0;
}
.input-button-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}
.input-button-group input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.input-button-group button {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.truncate-link {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preserve-lines {
  white-space: pre-line;
}
.stack.compact { gap: 6px; }
.app-wait {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .68);
  backdrop-filter: blur(3px);
}
.app-wait.visible { display: flex; }
.app-wait-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 2px solid var(--shell-line);
  background: #fff;
  box-shadow: 0 14px 34px rgba(16,19,27,.2);
}
.app-wait-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(16,19,27,.18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: app-spin .75s linear infinite;
}
.inline-loading {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}
@keyframes app-spin {
  to { transform: rotate(360deg); }
}
.landing-page {
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(16,19,27,.05) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(180deg, #f7f9fd 0%, #fff 35%, #eef3fb 100%);
  color: var(--shell);
}
.landing-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  align-items: center;
  gap: clamp(22px, 4vw, 64px);
  padding: clamp(34px, 6vw, 84px) clamp(18px, 6vw, 92px);
  isolation: isolate;
  background:
    linear-gradient(124deg, #df2f35 0 54%, #10131b 54% 57%, #ffffff 57% 100%);
}
.landing-hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 3px solid rgba(16, 19, 27, .9);
  border-radius: 16px;
  pointer-events: none;
  z-index: -1;
}
.landing-hero-copy {
  grid-column: 1;
  grid-row: 1;
  max-width: 720px;
  color: #fff;
  text-shadow: 0 2px 3px rgba(0,0,0,.22);
}
.landing-mark {
  width: 76px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(0,0,0,.24));
  margin-bottom: 10px;
}
.landing-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(255,255,255,.18);
}
.landing-hero h1,
.landing-section h2,
.landing-final h2 {
  margin: 0;
  font-weight: 900;
  line-height: .9;
  text-transform: uppercase;
}
.landing-hero h1 {
  max-width: 680px;
  margin-top: 18px;
  font-size: clamp(2.7rem, 6.2vw, 6.4rem);
  line-height: .96;
}
.landing-hero p {
  max-width: 600px;
  margin: 22px 0 0;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.55;
}
.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.landing-primary,
.landing-secondary {
  min-height: 48px;
  border: 2px solid var(--shell-line);
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 7px 0 rgba(11, 15, 24, .95);
}
.landing-primary {
  background: var(--accent);
  color: var(--shell);
}
.landing-secondary {
  background: #fff;
  color: var(--shell);
}
.landing-primary:hover,
.landing-secondary:hover {
  transform: translateY(-2px);
}
.landing-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.landing-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 2px solid rgba(255,255,255,.74);
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,.28);
}
.landing-proof strong {
  font-size: 1.28rem;
  color: var(--accent);
  text-shadow: 0 1px 0 rgba(0,0,0,.45);
}
.landing-hero-scene {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  min-height: 620px;
  perspective: 1300px;
}
.landing-phone {
  position: absolute;
  border: 4px solid #10131b;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 30px 60px rgba(16, 19, 27, .28);
}
.landing-phone-main {
  right: 8%;
  top: 28px;
  width: min(360px, 82vw);
  min-height: 585px;
  padding: 22px;
  transform: rotateY(-16deg) rotateZ(4deg);
  animation: landing-float 5.5s ease-in-out infinite;
}
.landing-phone-top {
  width: 88px;
  height: 12px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: #10131b;
}
.landing-screen-title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 18px;
  background: #df2f35;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
}
.landing-mini-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin: 18px 0;
}
.landing-mini-board span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid #10131b;
  border-radius: 8px;
  background: #f1f4fa;
  font-size: .62rem;
  font-weight: 900;
  color: var(--shell);
}
.landing-mini-board .hit {
  background: #ffcb05;
}
.landing-mini-board .free {
  background: #2f6db5;
  color: #fff;
}
.landing-score-row {
  display: grid;
  grid-template-columns: 1fr 48px 48px;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 10px;
  border: 1px solid #d8deea;
  border-radius: 14px;
  background: #f8fafc;
}
.landing-score-row span {
  display: grid;
  place-items: center;
  min-height: 32px;
  border-radius: 999px;
  background: #fff;
  font-weight: 900;
}
.landing-phone-side {
  left: 0;
  bottom: 42px;
  width: 230px;
  min-height: 290px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  transform: rotateY(20deg) rotateZ(-7deg);
  animation: landing-float 6.4s ease-in-out infinite reverse;
}
.landing-phone-side img {
  width: 92px;
  height: 120px;
  object-fit: contain;
}
.landing-phone-side strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
}
.landing-phone-side span {
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}
.landing-radar-card {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: 246px;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 3px solid #10131b;
  border-radius: 18px;
  background: var(--accent);
  color: var(--shell);
  box-shadow: 0 18px 34px rgba(16, 19, 27, .24);
  transform: rotateZ(5deg);
}
.landing-radar-card svg {
  width: 30px;
  height: 30px;
}
.landing-radar-card strong {
  font-size: 1.1rem;
}
.landing-radar-card span {
  font-weight: 700;
}
.landing-feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: #10131b;
  border-top: 4px solid #10131b;
  border-bottom: 4px solid #10131b;
}
.landing-feature-strip article {
  min-height: 240px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: clamp(18px, 3vw, 34px);
  background: #fff;
}
.landing-feature-strip svg {
  width: 38px;
  height: 38px;
  color: var(--primary-dark);
}
.landing-feature-strip strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
}
.landing-feature-strip span {
  color: var(--muted);
  line-height: 1.45;
}
.landing-section {
  padding: clamp(46px, 8vw, 110px) clamp(18px, 6vw, 92px);
}
.landing-showcase-band {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(360px, 1.15fr);
  align-items: center;
  gap: clamp(24px, 5vw, 78px);
  background: #10131b;
  color: #fff;
}
.landing-showcase-band h2,
.landing-flow h2,
.landing-final h2 {
  margin-top: 14px;
  font-size: clamp(2.6rem, 6vw, 6rem);
}
.landing-showcase-band p,
.landing-final p {
  max-width: 620px;
  font-size: 1.12rem;
  line-height: 1.65;
}
.landing-showcase-band p {
  color: rgba(255,255,255,.86);
}
.landing-showcase-preview {
  min-height: 430px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 14px;
}
.landing-showcase-preview div {
  position: relative;
  min-height: 360px;
  border: 4px solid #fff;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #df2f35 0 34%, #10131b 34% 37%, #fff 37% 100%);
  box-shadow: 0 22px 38px rgba(0,0,0,.28);
  overflow: hidden;
}
.landing-showcase-preview div::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 26%;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%);
  border: 6px solid #10131b;
  border-radius: 50%;
  background: #fff;
}
.landing-showcase-preview div:nth-child(2) {
  min-height: 420px;
  transform: translateY(-18px);
}
.landing-showcase-preview div:nth-child(3) {
  transform: translateY(22px);
}
.landing-showcase-preview span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffcb05;
  color: #10131b;
  font-weight: 900;
}
.landing-flow {
  background: #f7f9fd;
}
.landing-flow > .landing-kicker {
  color: var(--primary-dark);
  background: #fff;
}
.landing-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.landing-flow-grid article {
  min-height: 270px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: 22px;
  border: 2px solid #10131b;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 0 #10131b;
}
.landing-flow-grid span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #df2f35;
  color: #fff;
  font-weight: 900;
}
.landing-flow-grid strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
}
.landing-flow-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.landing-final {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(52px, 8vw, 110px) 18px;
  text-align: center;
  background:
    linear-gradient(180deg, #df2f35 0 42%, #10131b 42% 46%, #fff 46% 100%);
  color: #fff;
}
.landing-final img {
  width: 92px;
  height: 126px;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(0,0,0,.28));
}
.landing-final p {
  margin: 0;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 3px rgba(0,0,0,.28);
}
.landing-final small {
  margin-top: 22px;
  color: #3f4858;
  font-weight: 700;
}
.legal-link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 850;
}
.legal-link-row a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.landing-final .legal-link-row {
  color: #3f4858;
}
.legal-page {
  max-width: 960px;
  margin: 28px auto;
}
.legal-copy {
  display: grid;
  gap: 14px;
  line-height: 1.65;
}
.legal-copy h2 {
  margin: 10px 0 0;
  font-size: 20px;
}
.legal-copy p {
  margin: 0;
  color: #334155;
}
@keyframes landing-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
@media (max-width: 980px) {
  .landing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    background:
      linear-gradient(180deg, #df2f35 0 34%, #10131b 34% 37%, #ffffff 37% 100%);
  }
  .landing-hero-copy,
  .landing-hero-scene {
    grid-column: 1;
    grid-row: auto;
  }
  .landing-hero-copy {
    color: var(--shell);
    text-shadow: none;
  }
  .landing-hero-copy .landing-kicker {
    background: #fff;
  }
  .landing-hero p {
    color: #273142;
    font-weight: 760;
  }
  .landing-hero h1 {
    font-size: clamp(2.35rem, 11vw, 4.8rem);
    line-height: 1;
  }
  .landing-proof span {
    border-color: var(--shell-line);
    background: #fff;
    color: var(--shell);
    text-shadow: none;
    box-shadow: 0 4px 0 var(--shell-line);
  }
  .landing-proof strong {
    color: var(--primary-dark);
    text-shadow: none;
  }
  .landing-hero-scene {
    min-height: 560px;
  }
  .landing-phone-main {
    right: 50%;
    transform: translateX(50%) rotateZ(3deg);
  }
  .landing-phone-side {
    left: 4%;
  }
  .landing-radar-card {
    right: 4%;
  }
  .landing-feature-strip,
  .landing-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .landing-showcase-band {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .landing-hero {
    padding: 28px 16px 46px;
    background:
      linear-gradient(180deg, #df2f35 0 18%, #10131b 18% 20%, #ffffff 20% 100%);
  }
  .landing-hero::before {
    inset: 8px;
    border-radius: 12px;
  }
  .landing-hero p,
  .landing-showcase-band p,
  .landing-final p {
    font-size: 1rem;
  }
  .landing-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .landing-primary,
  .landing-secondary {
    width: 100%;
  }
  .landing-proof {
    display: grid;
    grid-template-columns: 1fr;
  }
  .landing-hero-scene {
    min-height: 470px;
  }
  .landing-phone-main {
    width: min(310px, 92vw);
    min-height: 490px;
    padding: 16px;
  }
  .landing-phone-side,
  .landing-radar-card {
    display: none;
  }
  .landing-score-row {
    grid-template-columns: 1fr 42px 42px;
    padding: 8px;
  }
  .landing-feature-strip,
  .landing-flow-grid,
  .landing-showcase-preview {
    grid-template-columns: 1fr;
  }
  .landing-feature-strip article {
    min-height: 190px;
  }
  .landing-showcase-preview {
    min-height: auto;
  }
  .landing-showcase-preview div,
  .landing-showcase-preview div:nth-child(2),
  .landing-showcase-preview div:nth-child(3) {
    min-height: 260px;
    transform: none;
  }
  .landing-flow-grid article {
    min-height: 210px;
  }
}
.surface { padding: 18px; }
.surface-subtle {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fbff;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.toolbar.compact {
  gap: 10px;
  margin-bottom: 0;
}
.toolbar.compact h3,
.toolbar.compact p {
  margin: 0;
}
.transaction-heading {
  margin-bottom: 4px;
}
.transaction-heading h2 {
  margin: 0;
  font-size: 1.35rem;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  margin-bottom: 4px;
}
.breadcrumbs a {
  color: var(--accent-blue);
  text-decoration: underline;
}
.breadcrumbs strong {
  color: var(--ink);
  font-weight: 650;
}
.breadcrumbs .future-step {
  color: #8a949f;
}
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.table-scroll .data-table {
  min-width: 860px;
}
.stack > .table-wrap { align-self: start; margin-top: 0; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #191f2d; font-size: 13px; color: #fff; }
tr:last-child td { border-bottom: 0; }
button:disabled,
.button:disabled {
  opacity: .52;
  cursor: not-allowed;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff0a5;
  color: #4f3600;
  font-size: 12px;
  font-weight: 700;
}
.mail-body {
  max-height: 240px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fa;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.results-page {
  display: grid;
  gap: 12px;
}
.results-message {
  display: grid;
  gap: 4px;
}
.results-message p {
  margin: 0;
}
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.results-search {
  position: relative;
  width: min(420px, 100%);
}
.results-search input {
  padding-right: 38px;
}
.results-search svg {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--muted);
}
.results-page-size {
  display: flex;
  align-items: center;
  gap: 8px;
}
.results-page-size select {
  width: 88px;
  min-height: 38px;
}
.results-table tbody tr[data-results-row] {
  cursor: pointer;
}
.results-table tbody tr[data-results-row]:hover {
  background: #f8fbfb;
}
.results-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.results-pager {
  margin-left: auto;
}
.mail-viewer {
  display: grid;
  grid-template-columns: minmax(280px, 350px) minmax(0, 1fr);
  min-height: min(720px, calc(100vh - 240px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.mail-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: #fbfcfd;
}
.mail-search {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  gap: 6px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.mail-search input {
  min-height: 38px;
}
.mail-search .icon-button {
  color: var(--primary-dark);
  border: 1px solid #a7b8bc;
  background: #fff;
}
.mail-search .icon-button:hover {
  background: #eef6f4;
}
.mail-history-header {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}
.mail-list {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  align-content: start;
}
.mail-list-item {
  width: 100%;
  display: grid;
  justify-items: stretch;
  gap: 4px;
  min-height: 92px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  text-align: left;
}
.mail-list-item:hover {
  background: #f5f8fa;
  color: var(--ink);
}
.mail-list-item.active {
  border-left-color: var(--primary);
  background: #eaf5f3;
}
.mail-list-subject {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
}
.mail-list-date,
.mail-list-to,
.mail-list-snippet {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.mail-list-snippet {
  color: #4b5965;
}
.mail-empty {
  padding: 14px;
}
.mail-preview {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.mail-preview-header {
  display: grid;
  gap: 10px;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--line);
}
.mail-preview-header h2 {
  font-size: 24px;
}
.mail-preview-date {
  color: var(--muted);
  font-size: 13px;
}
.mail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #2d3a45;
  font-size: 14px;
}
.mail-meta strong {
  color: var(--ink);
}
.mail-status {
  display: grid;
  gap: 10px;
  padding: 14px 26px;
  border-bottom: 1px solid var(--line);
  background: #fff7f5;
}
.mail-status pre,
.mail-content-body pre {
  margin: 0;
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mail-status pre {
  margin-top: 6px;
  color: #623329;
  font-size: 13px;
}
.mail-content-body {
  min-height: 0;
  flex: 1;
  overflow: auto;
  margin: 18px 26px 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
  line-height: 1.5;
}
.mail-placeholder {
  min-height: 320px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
}
.mail-placeholder svg {
  width: 34px;
  height: 34px;
  color: var(--muted);
}
.transaction-rail {
  position: fixed;
  left: -320px;
  top: 58px;
  bottom: 0;
  z-index: 30;
  width: 320px;
  transition: left .2s ease;
}
.transaction-rail.open { left: 0; }
.rail-tab {
  position: absolute;
  left: 320px;
  top: 112px;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 0 999px 999px 0;
}
.rail-panel {
  height: 100%;
  background: var(--panel);
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.help-rail {
  position: fixed;
  right: -460px;
  top: 58px;
  bottom: 0;
  z-index: 32;
  width: min(460px, 100vw);
  transition: right .2s ease;
}
.help-rail.open {
  right: 0;
}
.help-tab {
  position: absolute;
  right: 100%;
  top: 112px;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 6px 0 0 6px;
  border-color: var(--primary);
  background: linear-gradient(180deg, #f64c50, var(--primary));
  color: #fff;
}
.help-tab:hover {
  background: linear-gradient(180deg, #e83b42, var(--primary-dark));
}
.help-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.help-content {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 14px;
}
.help-list {
  display: grid;
  gap: 8px;
}
.help-option-select {
  display: grid;
  gap: 6px;
}
.help-option-select select {
  min-height: 38px;
  width: 100%;
}
.help-item,
.help-result {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  text-align: left;
}
.help-result strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.help-item:hover,
.help-result:hover {
  background: #f5f8fa;
  color: var(--ink);
}
.help-item.active,
.help-result.active {
  border-left-color: var(--primary);
  background: #eaf5f3;
}
.help-item span,
.help-result span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.help-tool-host,
.help-tool,
.help-details {
  display: grid;
  gap: 14px;
}
.help-transaction-search {
  width: 100%;
}
.help-results {
  display: none;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}
.help-results.open {
  display: grid;
}
.help-autocomplete {
  position: relative;
  z-index: 20;
  margin-top: -8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  box-shadow: var(--shadow);
}
.help-autocomplete .help-result,
.help-autocomplete button {
  border-radius: 0;
}
.help-detail-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.hundo-check-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hundo-check-sprite {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.hundo-cp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.hundo-cp-card {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: center;
}
.hundo-cp-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.hundo-cp-card strong {
  color: var(--shell);
  font-size: 32px;
  line-height: 1;
}
.hundo-cp-card.boosted strong {
  color: var(--primary-dark);
}
.hundo-cp-card small {
  color: var(--muted);
}
@media (max-width: 520px) {
  .hundo-cp-grid {
    grid-template-columns: 1fr;
  }
}
.detail-list {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 7px 10px;
  margin: 0;
}
.detail-list.compact {
  grid-template-columns: 94px minmax(0, 1fr);
  font-size: 13px;
}
.detail-list dt {
  color: var(--muted);
  font-weight: 700;
}
.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.help-step-list,
.help-program-list {
  display: grid;
  gap: 10px;
}
.help-step,
.help-program {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e4e8ed;
  border-radius: 8px;
  background: #fbfcfd;
}
.rail-header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}
.rail-list { padding: 10px; display: grid; gap: 8px; }
.rail-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}
.rail-resume {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.rail-hint {
  overflow: hidden;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rail-remove {
  width: 26px;
  height: 26px;
  min-height: 26px;
  color: var(--muted);
}
.transaction-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  display: none;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,.94);
  border-top: 1px solid var(--line);
}
.transaction-footer.visible { display: flex; }
.toast {
  position: fixed;
  right: 20px;
  top: 76px;
  z-index: 50;
  display: none;
  max-width: min(420px, calc(100% - 40px));
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--shell);
  color: #fff;
  box-shadow: var(--shadow);
}
.toast.visible { display: block; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 32, 42, .45);
}
.app-modal {
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.app-modal > .toolbar,
.modal-panel > .toolbar {
  display: flex;
  align-items: flex-start;
  flex-direction: row;
}
.app-modal > .toolbar > div,
.modal-panel > .toolbar > div {
  min-width: 0;
}
.app-modal > .toolbar .modal-close,
.modal-panel > .toolbar .modal-close {
  margin-left: auto;
  flex: 0 0 auto;
}
.modal-panel {
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.button.icon-only,
button.icon-only,
label.icon-only {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  justify-content: center;
}
.steps-list { display: grid; gap: 12px; }
.step-row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}
.managed-step {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}
.managed-step.saved {
  border-color: #8db6a8;
  background: #f5fbf8;
}
.pogo-pokemon-header {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.pogo-pokemon-art {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 8px;
  background: linear-gradient(180deg, #eef5ff, #fff);
  box-shadow: inset 0 0 0 1px rgba(23, 32, 52, .08);
}
.pogo-pokemon-art.placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
}
.pogo-feature-list {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.toolbar.compact {
  min-height: 0;
  padding: 0;
}
.pogo-feature-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) auto minmax(180px, 1fr) 38px;
  gap: 10px;
  align-items: end;
}
.pogo-event-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 2px solid var(--shell-line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0 54%, #f7f9fc 54% 100%);
}
.pogo-event-hero h2 { margin: 0 0 4px; }
.pogo-event-hero p { margin: 0; color: var(--muted); }
.pogo-event-times {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}
.pogo-view-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.pogo-view-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.pogo-view-card img,
.pogo-view-placeholder {
  width: 104px;
  height: 104px;
  object-fit: contain;
  border-radius: 8px;
  background: #eef5ff;
}
.pogo-view-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
}
.pogo-view-card h4 { margin: 0; }
.pogo-view-card-body { display: grid; gap: 6px; align-content: start; }
.pogo-methods { display: flex; flex-wrap: wrap; gap: 6px; }
.pogo-shiny { margin: 0; font-weight: 800; color: var(--primary-dark); }
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff7c8;
  color: var(--shell);
  font-size: .8rem;
  font-weight: 900;
}
.friend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.friend-row-edit {
  align-items: flex-start;
  flex-wrap: wrap;
}
.friend-main {
  flex: 2 1 440px;
  min-width: min(100%, 280px);
}
.friend-name-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.friend-vivillon-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid #d6dee8;
  border-radius: 999px;
  background: #f7f9fc;
  color: var(--shell);
  font-size: .78rem;
  font-weight: 800;
}
.friend-vivillon-tag svg {
  width: 13px;
  height: 13px;
  color: var(--primary-dark);
}
.friend-tools {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(145px, 1fr);
  gap: 8px;
  align-items: end;
  flex: 1 1 420px;
}
.friend-icon-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.friend-patterns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.friend-patterns span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid #d6dee8;
  border-radius: 999px;
  background: #f7f9fc;
  color: var(--shell);
  font-size: .82rem;
}
.friend-patterns svg {
  width: 14px;
  height: 14px;
  color: var(--primary-dark);
}
.friend-patterns strong {
  color: var(--muted);
  font-size: .74rem;
  text-transform: uppercase;
}
.friend-shared-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.friend-shared-items .button {
  min-height: 34px;
  padding: 7px 10px;
}
.friend-challenges {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.friend-challenges > strong {
  color: var(--shell);
  font-size: .9rem;
  text-transform: uppercase;
}
.friend-picker,
.bingo-card-list {
  display: grid;
  gap: 8px;
}
.bingo-card-select {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}
.scavenger-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.scavenger-pool {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}
.scavenger-pool-item {
  display: grid;
  grid-template-columns: auto 34px 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.scavenger-pool-item img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.scavenger-pool-item span {
  font-weight: 800;
}
.scavenger-item {
  min-height: 150px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: center;
}
.scavenger-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.scavenger-item.caught {
  border-color: var(--success);
  background: #effaf1;
}
.scavenger-item span {
  color: var(--muted);
  font-size: .82rem;
}
.bingo-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  max-width: 720px;
}
.bingo-square {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
  aspect-ratio: 1;
  min-width: 0;
  padding: 6px;
  border: 2px solid var(--shell-line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: 11px;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-align: center;
}
.bingo-square img,
.bingo-square > i {
  width: min(58%, 70px);
  height: min(58%, 70px);
  object-fit: contain;
}
.bingo-square span:not(.costume-dot) {
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bingo-square.free,
.bingo-square.marked {
  background: var(--accent);
}
.iv-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 24px;
  padding: 2px 4px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 11px;
}
.costume-dot {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 14px;
  height: 14px;
  border: 2px solid #111;
  border-radius: 50%;
}
.costume-black { background: #111; }
.costume-red { background: #df2f35; }
.costume-yellow { background: #f7d44a; }
.costume-blue { background: #2f6db5; }
.bingo-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
.bingo-progress-item {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.bingo-progress-item small { color: var(--muted); }
.bingo-progress-item.complete {
  border-color: var(--accent);
  background: #fff9d8;
}
.win-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: #fff9d8;
  color: var(--shell);
  font-weight: 800;
}
.win-banner i {
  color: #b88300;
}
.showcase-slot-grid,
.showcase-public-grid {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr) auto minmax(150px, 1fr) auto minmax(150px, 1fr) auto minmax(150px, 1fr);
  gap: 10px;
  align-items: center;
}
.showcase-slot,
.showcase-public-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.showcase-slot-media,
.showcase-public-card {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #101820;
}
.showcase-slot.is-uploading {
  pointer-events: none;
}
.showcase-wait {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  background: rgba(255,255,255,.78);
  color: var(--shell);
}
.spinner {
  width: 32px;
  height: 32px;
  border: 4px solid #d6dee7;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.showcase-slot-media img,
.showcase-public-card img {
  width: 100%;
  height: 100%;
  display: block;
}
.showcase-slot-media img {
  object-fit: contain;
}
.showcase-public-card img {
  object-fit: cover;
}
.showcase-empty {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.showcase-empty i {
  width: 44px;
  height: 44px;
}
.showcase-slot-body {
  display: grid;
  gap: 8px;
  padding: 10px;
}
.showcase-slot-body small {
  color: var(--muted);
}
.showcase-toolbar > div {
  min-width: 0;
}
.showcase-share-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
  max-width: min(100%, 720px);
}
.showcase-share-link {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.showcase-copy-link {
  width: 38px;
  height: 38px;
  padding: 0;
}
.showcase-swap-cell {
  display: grid;
  place-items: center;
  align-self: stretch;
}
.showcase-swap-button {
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(23, 32, 52, .14);
}
.showcase-upload-label {
  position: relative;
  overflow: hidden;
}
.showcase-upload-label input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.showcase-widget-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  height: 100%;
}
.showcase-widget {
  display: grid;
  gap: 8px;
}
.showcase-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.showcase-widget h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--shell);
}
.showcase-widget-strip .showcase-widget-image {
  min-width: 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--shell-line);
  background: #fff;
  cursor: zoom-in;
  box-shadow: 0 6px 12px rgba(23, 32, 52, .12);
}
.showcase-widget-strip img {
  width: 100%;
  height: 100%;
  min-height: 72px;
  object-fit: contain;
  display: block;
}
.progress-widget {
  display: grid;
  gap: 10px;
}
.mini-progress-list {
  display: grid;
  gap: 8px;
  position: relative;
}
.mini-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.mini-progress-row strong,
.mini-progress-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-progress-row span {
  min-width: 4.5rem;
  text-align: right;
  color: var(--muted);
  font-weight: 900;
}
.mini-progress-card {
  width: 100%;
  display: none;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 4px 10px rgba(23, 32, 52, .08);
}
.mini-progress-card.active {
  display: grid;
}
.mini-widget-pager-controls {
  position: absolute;
  top: -42px;
  right: 0;
  display: inline-flex;
  gap: 6px;
}
.mini-widget-pager-controls .icon-only {
  width: 30px;
  height: 30px;
  min-width: 30px;
}
.progress-widget .showcase-widget-head h3 {
  font-size: .95rem;
}
.mini-progress-card:hover {
  transform: translateY(-1px);
  background: #fff8c9;
}
.mini-progress-card strong,
.mini-progress-card span,
.mini-progress-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-progress-card span,
.mini-progress-card small {
  color: var(--muted);
}
.public-showcase-page {
  display: grid;
  gap: 22px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0 26px;
}
.public-showcase-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 190px;
  padding: 28px;
  border: 3px solid var(--shell-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(223,47,53,.98) 0 64%, #111 64% 68%, #fff 68% 100%),
    radial-gradient(circle at 82% 28%, rgba(255,203,5,.55), transparent 26%);
  box-shadow: 0 20px 42px rgba(23, 32, 52, .18);
}
.public-showcase-hero h1,
.public-showcase-hero p {
  margin: 0;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.public-showcase-hero h1 {
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: .96;
}
.public-showcase-hero p {
  max-width: 520px;
  margin-top: 8px;
  font-size: 1.08rem;
}
.public-cta {
  border: 2px solid var(--shell-line);
  background: var(--accent);
  color: var(--shell);
  box-shadow: 0 5px 0 var(--shell-line);
}
.public-cta:hover {
  transform: translateY(-1px);
}
.showcase-feature {
  display: grid;
  place-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.showcase-feature img {
  width: min(440px, 100%);
  max-height: 68vh;
  object-fit: contain;
  border-radius: 8px;
}
.showcase-public-card {
  padding: 0;
  cursor: zoom-in;
}
.showcase-carousel-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 600px;
  overflow: hidden;
  padding: 10px 0 62px;
}
.showcase-carousel-stage {
  position: relative;
  height: min(72vh, 570px);
  min-height: 530px;
  perspective: 1200px;
  display: grid;
  place-items: center;
}
.showcase-carousel {
  position: relative;
  width: min(240px, 54vw);
  height: min(555px, 70vh);
  min-height: 520px;
  transform-style: preserve-3d;
}
.showcase-carousel-arrow {
  width: 46px;
  height: 46px;
  min-width: 46px;
  padding: 0;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: var(--shell);
  box-shadow: 0 10px 24px rgba(23, 32, 52, .16);
  z-index: 8;
}
.showcase-carousel-pause {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 9;
  border: 2px solid var(--shell-line);
  background: #fff;
  color: var(--shell);
  box-shadow: 0 6px 0 rgba(16, 19, 27, .95);
}
.showcase-carousel-pause:hover {
  transform: translateX(-50%) translateY(-1px);
}
.showcase-case {
  display: grid;
  gap: 8px;
  position: absolute;
  inset: 0;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: var(--ring-opacity, 1);
  z-index: var(--ring-z, 1);
  transform:
    translate3d(var(--orbit-x, 0), var(--orbit-y, 0), var(--orbit-z, 0))
    scale(var(--orbit-scale, .72));
  transition: transform .65s cubic-bezier(.2,.8,.2,1), opacity .35s ease, filter .35s ease, box-shadow .35s ease;
  filter: saturate(.8) brightness(.82);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
.showcase-case.is-active {
  filter: saturate(1.08) brightness(1);
  filter: drop-shadow(0 26px 36px rgba(23, 32, 52, .28)) saturate(1.08) brightness(1);
}
.showcase-case::before {
  content: none;
}
.showcase-case-image {
  position: relative;
  aspect-ratio: 628 / 1360;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  cursor: zoom-in;
}
.showcase-case-image img {
  position: absolute;
  inset: 5.1% 9.1% 5.4% 9.7%;
  width: calc(100% - 18.8%);
  height: calc(100% - 10.5%);
  object-fit: contain;
  object-position: center center;
  display: block;
  border-radius: 6%;
  background: #05070b;
}
.showcase-case-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: center / 100% 100% no-repeat url("/images/showcase-display-case-frame.png?v=20260529-1");
  filter: drop-shadow(0 18px 22px rgba(16, 19, 27, .22));
}
.showcase-case footer {
  position: absolute;
  left: 50%;
  bottom: 5.3%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 30px;
  transform: translateX(-50%);
  color: var(--shell);
  pointer-events: none;
}
.showcase-case footer span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 11px;
  border: 2px solid var(--shell-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  font-weight: 900;
  color: var(--shell);
  box-shadow: 0 4px 0 var(--shell-line), 0 8px 14px rgba(23, 32, 52, .18);
}
.showcase-case footer strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.public-showcase-cta-band,
.public-cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.public-showcase-cta-band div {
  display: grid;
  gap: 3px;
}
.public-showcase-cta-band span {
  color: var(--muted);
}
.home-footer-actions {
  display: flex;
  justify-content: center;
  padding: 16px 0 4px;
}
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(11, 17, 24, .82);
}
.image-lightbox img {
  max-width: min(94vw, 720px);
  max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0,0,0,.45);
}
.image-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}
.scorecard-table-wrap {
  width: 100%;
  max-height: min(70vh, 760px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.scorecard-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  border: 0;
  background: #fff;
}
.scorecard-table th,
.scorecard-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}
.scorecard-table th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--shell);
  color: #fff;
  font-weight: 800;
}
.scorecard-play-table thead th:first-child,
.scorecard-play-table tbody td:first-child,
.scorecard-manage-table thead th:first-child,
.scorecard-manage-table tbody td:first-child {
  position: sticky;
  left: 0;
}
.scorecard-play-table thead th:first-child,
.scorecard-manage-table thead th:first-child {
  z-index: 7;
  width: 58px;
  min-width: 58px;
  max-width: 58px;
}
.scorecard-play-table tbody td:first-child,
.scorecard-manage-table tbody td:first-child {
  z-index: 4;
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
  text-align: center;
}
.scorecard-table td:nth-child(2) {
  text-align: left;
}
.scorecard-table tfoot th {
  position: sticky;
  bottom: 0;
  z-index: 6;
  background: #fff9d8;
  color: var(--shell);
  border-top: 2px solid var(--accent);
}
.scorecard-table tbody tr.saving td:first-child {
  background: #fffdf0;
}
.score-pokemon-cell > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.scorecard-table img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.score-image-cell {
  padding-inline: 8px;
}
.scorecard-table input[type="number"] {
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  text-align: center;
  padding-inline: 4px;
}
.scorecard-create-table,
.scorecard-manage-table {
  min-width: 760px;
}
.haul-simple-count {
  width: 70px;
  min-height: 36px;
  text-align: center;
  border-radius: 8px;
}
.score-counter {
  display: inline-grid;
  grid-template-columns: 30px 42px 30px;
  align-items: center;
  gap: 0;
  width: 102px;
  margin-inline: auto;
  border: 1px solid #b9c5d2;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(23, 32, 52, .08);
}
.score-counter button {
  width: 30px;
  min-width: 30px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #edf2f7;
  color: var(--shell);
  font-weight: 900;
  justify-content: center;
}
.score-counter button:hover {
  background: #dfe7f0;
}
.score-counter input {
  width: 42px !important;
  min-width: 42px;
  max-width: 42px;
  box-sizing: border-box;
  min-height: 34px;
  border: 0;
  border-left: 1px solid #d7dee8;
  border-right: 1px solid #d7dee8;
  border-radius: 0;
  padding: 0 4px;
  text-align: center;
  font-weight: 800;
  color: var(--shell);
}
.score-counter input::-webkit-outer-spin-button,
.score-counter input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.score-counter input[type="number"] {
  -moz-appearance: textfield;
}
.scorecard-play-table td:last-child,
.scorecard-play-table tfoot th:last-child {
  font-size: 1.05rem;
  color: var(--primary-dark);
}
.scorecard-play-table tbody tr.saving {
  background: #fffdf0;
}
.scorecard-grand-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff9d8;
  color: var(--shell);
  font-weight: 800;
}
.scorecard-grand-total span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: .78rem;
}
.scorecard-grand-total strong {
  color: var(--primary-dark);
  font-size: 1.45rem;
  line-height: 1;
}
.score-anything-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #fff9d8;
  color: var(--primary-dark);
  border: 1px solid var(--accent);
}
.haul-total-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.haul-total-strip div {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 92px;
  border: 2px solid var(--shell-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 0 var(--shell-line);
}
.haul-total-strip strong {
  font-size: 2rem;
  color: var(--primary-dark);
}
.haul-total-strip span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}
.haul-table {
  min-width: 980px;
}
.haul-table .score-counter {
  grid-template-columns: 28px 36px 28px;
  width: 92px;
}
.haul-table .score-counter button {
  width: 28px;
  min-width: 28px;
}
.haul-table .score-counter input {
  width: 36px;
  min-width: 36px;
}
.haul-pokemon-name {
  display: grid;
  gap: 2px;
}
.haul-pokemon-name .muted {
  margin-top: -2px;
}
.haul-stats-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.haul-stats-panel summary,
.haul-goal-panel summary {
  cursor: pointer;
  list-style: none;
}
.haul-stats-panel summary::-webkit-details-marker,
.haul-goal-panel summary::-webkit-details-marker {
  display: none;
}
.haul-stats-panel summary i,
.haul-goal-panel summary i {
  transition: transform .18s ease;
}
.haul-stats-panel:not([open]) summary i,
.haul-goal-panel:not([open]) summary i {
  transform: rotate(-90deg);
}
.haul-goal-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf0;
}
.haul-goal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.haul-goal-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #fff;
}
.haul-goal-card.complete {
  border-color: var(--success);
  background: #effaf1;
}
.haul-goal-card.saving {
  background: #fff8c9;
}
.haul-goal-head {
  display: grid;
  grid-template-columns: 48px 1fr 34px;
  gap: 8px;
  align-items: center;
}
.haul-goal-head img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.haul-goal-head strong,
.haul-goal-head span,
.haul-goal-card label {
  display: block;
}
.haul-goal-head span,
.haul-goal-card label {
  color: var(--muted);
  font-size: .8rem;
}
.haul-goal-card input[type="number"],
.haul-goal-card textarea {
  width: 100%;
  margin-top: 4px;
}
.haul-goal-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}
.haul-goal-fields label {
  display: grid;
  grid-template-rows: 2.25rem auto;
  align-items: end;
}
.haul-goal-fields label span {
  display: flex;
  align-items: end;
  min-height: 2.25rem;
}
.haul-goal-notes {
  grid-column: 1 / -1;
}
.haul-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.haul-stat-card {
  display: block;
  padding: 8px 10px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #fff;
}
.haul-stat-card strong,
.haul-stat-card span,
.haul-stat-card label {
  display: block;
}
.haul-stat-card strong {
  color: var(--shell);
  font-size: .92rem;
}
.haul-stat-card span,
.haul-stat-card label {
  color: var(--muted);
  font-size: .78rem;
}
.haul-stat-card input {
  width: 100%;
  margin-top: 3px;
  padding: 7px;
}
.haul-snapshot-summary {
  border: 2px solid var(--shell-line);
}
.haul-snapshot-summary h2 {
  margin: 0;
}
.haul-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.haul-snapshot-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #dfe7ef;
  background: #fff;
}
.haul-snapshot-card strong {
  color: var(--shell);
  font-size: .92rem;
}
.haul-snapshot-values {
  display: grid;
  grid-template-columns: 1fr 18px 1fr;
  align-items: center;
  gap: 6px;
  font-weight: 900;
}
.haul-snapshot-values span:last-child {
  text-align: right;
}
.haul-snapshot-values i {
  width: 16px;
  color: var(--shell-line);
}
.haul-snapshot-card small {
  color: var(--muted);
  font-weight: 800;
}
.haul-snapshot-card:not(.missing) small {
  color: var(--success);
}
.snapshot-panel {
  border-top: 2px solid var(--shell-line);
  padding-top: 16px;
}
.snapshot-stat-card {
  cursor: text;
}
.snapshot-stat-card input {
  grid-column: 2 / span 2;
}
.snapshot-previous-value {
  grid-column: 2 / span 2;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}
.snapshot-action-row {
  justify-content: flex-end;
  margin-top: 4px;
}
.snapshot-dex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.snapshot-dex-card {
  border: 2px solid var(--shell-line);
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 4px;
}
.snapshot-dex-card strong,
.snapshot-dex-card span {
  color: var(--shell);
  font-weight: 900;
}
.snapshot-dex-card span {
  font-size: 1.35rem;
}
.snapshot-previous-total {
  margin-top: 3px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}
.pokedex-excel-panel {
  display: grid;
  gap: 14px;
}
.pokedex-excel-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.pokedex-excel-steps article {
  border: 2px solid var(--shell-line);
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 6px;
}
.pokedex-excel-steps strong {
  color: var(--shell);
  font-weight: 900;
}
.pokedex-excel-steps p {
  margin: 0;
  color: var(--muted);
}
.pokedex-excel-steps code {
  color: var(--shell);
  font-weight: 900;
}
.inline-input-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.punishment-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.punishment-wheel-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  position: relative;
}
.punishment-wheel-panel::before {
  content: "";
  position: absolute;
  top: 76px;
  width: min(340px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 12px 0 var(--shell-line), 0 20px 28px rgba(23, 32, 52, .18);
  pointer-events: none;
}
.wheel-pointer {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid var(--primary);
  filter: drop-shadow(0 2px 0 var(--shell-line));
  z-index: 2;
}
.punishment-wheel {
  width: min(340px, 78vw);
  aspect-ratio: 1;
  border: 8px solid var(--shell);
  border-radius: 50%;
  background: conic-gradient(#e53b3b 0 90deg, #2f80ed 90deg 180deg, #ffd84d 180deg 270deg, #18a058 270deg 360deg);
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.45), 0 0 0 1px rgba(0,0,0,.08);
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 5.6s cubic-bezier(.08, .82, .12, 1);
  will-change: transform;
}
.punishment-wheel.spinning {
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.38), 0 0 38px rgba(229, 59, 59, .28);
}
.punishment-wheel::after {
  content: "";
  width: 62px;
  aspect-ratio: 1;
  border: 8px solid var(--shell);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 42%, var(--shell) 43% 55%, #fff 56% 100%);
  position: absolute;
}
.punishment-result {
  width: 100%;
  min-height: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--shell-line);
  border-radius: 8px;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 900;
  text-align: center;
}
.punishment-list {
  display: grid;
  gap: 8px;
}
.punishment-list-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.punishment-list-item.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(229, 59, 59, .14);
}
.punishment-swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--shell);
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.punishment-dramatic {
  color: var(--shell);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.responsive-list {
  display: grid;
  gap: 10px;
}
.list-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.list-card strong,
.list-card span {
  display: block;
}
.list-card span,
.list-card small {
  color: var(--muted);
}
.game-rules-panel {
  border-left: 4px solid var(--accent);
}
.game-rules-panel strong {
  color: var(--shell);
}
.game-rules-panel p {
  margin: 4px 0 0;
  white-space: pre-wrap;
}
.bingo-board.disabled .bingo-square {
  opacity: .7;
}
@media (max-width: 640px) {
  .surface .surface,
  .surface .surface-subtle,
  .surface-subtle .surface,
  .surface-subtle .surface-subtle {
    margin-left: -18px;
    margin-right: -18px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .button-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .button-row .icon-only,
  .modal-footer .icon-only {
    width: 100%;
  }
  .button-row > :only-child {
    grid-column: 1 / -1;
  }
  .button-row button,
  .button-row .button,
  .button-row a,
  .button-row label {
    min-width: 0;
    width: 100%;
  }
  .button-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .haul-goal-grid {
    grid-template-columns: 1fr;
  }
  .haul-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .haul-snapshot-grid {
    grid-template-columns: 1fr;
  }
  #openSnapshot {
    margin-bottom: 6px;
  }
  .haul-goal-fields,
  .punishment-layout,
  .list-card,
  .inline-input-action {
    grid-template-columns: 1fr;
  }
  .showcase-slot-grid,
  .showcase-public-grid {
    grid-template-columns: 1fr;
  }
  .showcase-swap-cell {
    min-height: 38px;
  }
  .showcase-carousel-shell {
    grid-template-columns: 1fr;
    min-height: 520px;
    padding-bottom: 68px;
  }
  .showcase-carousel-arrow {
    position: absolute;
    top: 50%;
    display: inline-flex;
  }
  .showcase-carousel-arrow:first-child {
    left: 4px;
  }
  .showcase-carousel-arrow:nth-of-type(2) {
    right: 4px;
  }
  .showcase-carousel-stage {
    min-height: 455px;
    height: 455px;
  }
  .showcase-carousel {
    width: min(190px, 58vw);
    height: 430px;
    min-height: 430px;
  }
  .showcase-case {
    transform:
      translate3d(calc(var(--orbit-x, 0) * .72), var(--orbit-y, 0), var(--orbit-z, 0))
      scale(var(--orbit-scale, .72));
  }
  .public-showcase-hero,
  .public-showcase-cta-band,
  .public-cta-band {
    align-items: stretch;
    flex-direction: column;
  }
  .friend-tools { grid-template-columns: 1fr; }
  .bingo-board {
    gap: 4px;
    width: 100%;
    max-width: none;
  }
  .bingo-square {
    padding: 3px;
    font-size: clamp(8px, 2.35vw, 10px);
    border-width: 1px;
  }
  .bingo-square img,
  .bingo-square > i {
    width: 48%;
    height: 48%;
  }
  .scorecard-table {
    min-width: 820px;
  }
  .scorecard-table th,
  .scorecard-table td {
    padding: 7px 6px;
    text-align: center;
  }
  .scorecard-play-table thead th:first-child,
  .scorecard-play-table tbody td:first-child {
    width: 46px;
    min-width: 46px;
    max-width: 46px;
  }
  .scorecard-table img,
  .score-anything-icon {
    width: 34px;
    height: 34px;
  }
  .score-counter {
    grid-template-columns: 28px 38px 28px;
    width: 94px;
    margin-inline: auto;
  }
  .score-counter button,
  .score-counter input {
    min-height: 30px;
  }
  .score-counter button {
    width: 28px;
    min-width: 28px;
  }
  .score-counter input {
    width: 38px !important;
    min-width: 38px;
    max-width: 38px;
  }
  .score-counter input {
    width: 48px;
    min-width: 48px;
  }
  .haul-table {
    min-width: 920px;
  }
  .haul-table .score-counter {
    grid-template-columns: 26px 34px 26px;
    width: 86px;
  }
  .haul-table .score-counter button {
    width: 26px;
    min-width: 26px;
  }
  .haul-table .score-counter input {
    width: 34px;
    min-width: 34px;
  }
  .iv-badge {
    min-width: 18px;
    font-size: 9px;
    top: 3px;
    right: 3px;
  }
  .costume-dot {
    width: 10px;
    height: 10px;
    left: 3px;
    top: 3px;
  }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .haul-goal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.program-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}
.home-board {
  display: grid;
  gap: 22px;
}
.home-widgets {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}
.home-widget {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  border-left: 7px solid var(--primary);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.home-widget h3,
.home-widget p {
  margin: 0;
}
.home-widget p {
  font-size: 24px;
  font-weight: 750;
}
.transaction-browser {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.transaction-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: #fbfcff;
}
.transaction-tab {
  min-height: 46px;
  padding: 8px 14px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  white-space: nowrap;
  font-weight: 850;
  box-shadow: none;
}
.transaction-tabs .button,
.transaction-tabs button,
.transaction-tab-panel .transaction-launch {
  border-radius: 0;
}
.transaction-tab:hover,
.transaction-tab.active {
  background: #fff8c9;
  color: var(--primary-dark);
}
.transaction-tab small {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 0;
  background: var(--accent);
  color: var(--shell);
  font-size: 12px;
}
.transaction-tab-panel {
  padding: 14px;
}
.notification-home {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.notification-search {
  width: min(360px, 100%);
}
.notifications-list {
  display: grid;
  gap: 8px;
}
.notification-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid #e4e8ed;
  border-radius: 8px;
  background: #fbfcfd;
}
.notification-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
}
.notification-icon svg {
  width: 22px;
  height: 22px;
}
.notification-body {
  display: grid;
  gap: 6px;
}
.collapsed-notifications {
  display: none;
  gap: 8px;
  padding-top: 6px;
}
.collapsed-notifications.visible {
  display: grid;
}
.sub-notification {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
  border-left: 4px solid var(--primary);
  background: #fff;
}
.transaction-search {
  width: min(420px, 100%);
  display: grid;
  grid-template-columns: 38px minmax(160px, 1fr) 38px;
  align-items: center;
  gap: 6px;
}
.transaction-search input {
  min-height: 38px;
}
.transaction-search .search-refresh {
  color: var(--primary-dark);
  border: 1px solid #a7b8bc;
  background: #fff;
}
.transaction-search .search-refresh:hover {
  background: #fff5b9;
}
.search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--muted);
}
.transaction-category {
  display: grid;
  gap: 12px;
}
.transaction-category h2 {
  padding-bottom: 8px;
  border-bottom: 2px solid #cdd6dc;
}
.transaction-button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
.transaction-launch {
  width: 100%;
  min-height: 92px;
  display: grid;
  align-content: start;
  align-items: start;
  justify-content: stretch;
  justify-items: start;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 7px solid var(--primary);
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 20px rgba(23, 32, 42, .08);
}
.transaction-launch strong,
.transaction-launch span {
  display: block;
  width: 100%;
  text-align: left;
}
.transaction-launch:hover {
  background: #fffdf0;
  border-color: var(--accent);
  border-left-color: var(--accent-blue);
}
.transaction-launch span {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.35;
}
.program-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}
.program-access-list {
  display: grid;
  gap: 10px;
}
.dashboard-tile-list {
  display: grid;
  gap: 12px;
}
.dashboard-tile-editor {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}
.dynamic-dashboard {
  display: grid;
  gap: 16px;
}
.dashboard-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.dashboard-tile {
  min-height: 150px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #166a64;
  color: #fff;
}
.dashboard-tile.size-medium { grid-column: span 2; }
.dashboard-tile.size-large,
.dashboard-tile.size-extralarge { grid-column: span 3; }
.dashboard-tile a,
.dashboard-tile button {
  color: inherit;
}
.dashboard-tile-title {
  font-size: 17px;
  font-weight: 750;
}
.dashboard-tile-content {
  min-width: 0;
  overflow-wrap: anywhere;
}
.dashboard-tile-footer {
  display: flex;
  justify-content: flex-end;
}
.tile-teal { background: var(--water); }
.tile-emerald { background: var(--grass); }
.tile-steel { background: #3e4a5d; }
.tile-royal { background: var(--accent-blue); }
.tile-slate { background: var(--shell); }
.tile-amber { background: #b88300; }
.tile-coral { background: var(--primary); }
.tile-plum { background: #6d4bb8; }
.tile-forest { background: #2f7c45; }
.tile-crimson { background: var(--primary-dark); }
.program-access {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.program-access.selected {
  border-color: #9db3b6;
}
.program-access-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
}
.program-access-header input,
.program-role-row input {
  width: auto;
  min-height: auto;
}
.program-access-header span,
.program-role-row span {
  display: grid;
  gap: 2px;
}
.program-access-header small,
.program-role-row small {
  color: var(--muted);
  font-weight: 500;
}
.program-role-panel {
  display: none;
  gap: 8px;
  padding: 0 12px 12px 34px;
  border-top: 1px solid var(--line);
}
.program-role-panel.visible {
  display: grid;
}
.program-role-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #e4e8ed;
  border-radius: 6px;
  background: #fbfcfd;
}
.check-row { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.check-row input { width: auto; min-height: auto; }
.privacy-toggle {
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--shell);
  font-weight: 800;
}
.demo-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.dashboard-card {
  color: #fff;
  border-radius: 8px;
  padding: 16px;
  min-height: 190px;
}
.dashboard-card label,
.dashboard-card h3 {
  color: #fff;
}
.dashboard-card input {
  background: rgba(255,255,255,.94);
  color: #162029;
}
.performance-picker {
  display: grid;
  gap: 8px;
}
.performance-option {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 6px;
  background: rgba(255,255,255,.12);
}
.circus-dynamic-dashboard .tile-container {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.dashboard-display-tile {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 190px;
  border-radius: 8px;
  padding: 16px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(18, 28, 38, .12);
}
.dashboard-display-tile.size-small,
.dashboard-display-tile.size-medium { grid-column: span 3; }
.dashboard-display-tile.size-large { grid-column: span 6; }
.dashboard-display-tile.size-extralarge { grid-column: span 12; }
.dashboard-display-tile[data-background="tile-teal"] { background: var(--water); }
.dashboard-display-tile[data-background="tile-amber"] { background: #b88300; }
.dashboard-display-tile[data-background="tile-emerald"] { background: var(--grass); }
.dashboard-display-tile[data-background="tile-steel"] { background: #4f6674; }
.dashboard-display-tile[data-background="tile-royal"] { background: var(--accent-blue); }
.dashboard-display-tile[data-background="tile-slate"] { background: var(--shell); }
.dashboard-display-tile .tile-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}
.dashboard-display-tile .tile-content {
  display: grid;
  align-content: start;
  gap: 8px;
  margin-top: 12px;
}
.dashboard-display-tile .tile-Row {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
  gap: 10px;
}
.dashboard-display-tile .tile-label {
  opacity: .8;
}
.dashboard-display-tile .tile-value,
.dashboard-display-tile .tile-value-mult {
  font-weight: 700;
}
.dashboard-display-tile .tile-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
.dashboard-display-tile .tile-open {
  color: #fff;
  background: rgba(255,255,255,.16);
}
.modal-performance-picker .performance-option {
  color: var(--text);
  background: #fbfcfd;
  border-color: #d9e0e6;
}
.training-json-editor {
  min-height: 620px;
}
.training-preview {
  border: 1px solid var(--line);
  background: #fbfcfd;
}
.knowledge-page {
  max-width: 1180px;
}
.knowledge-panel {
  display: grid;
  gap: 12px;
}
.knowledge-panel h3 {
  margin: 0;
}
.knowledge-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 24px;
}
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.knowledge-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}
.knowledge-card h4,
.knowledge-card p,
.knowledge-card ul {
  margin: 0;
}
.knowledge-card ul {
  display: grid;
  gap: 5px;
  padding-left: 18px;
}

@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; padding: 10px 14px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-links {
    display: none;
    width: 100%;
    order: 3;
    flex: 0 0 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links > a,
  .nav-links button,
  .nav-links .button,
  .nav-signout {
    border-radius: 0;
  }
  .nav-category-menu {
    position: static;
    width: 100%;
    margin-top: 4px;
    box-shadow: none;
  }
  .nav-category-button {
    width: 100%;
    justify-content: space-between;
  }
  .nav-menu-actions {
    width: 100%;
    margin-left: 0;
    align-items: stretch;
    flex-direction: column;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .nav-menu-program {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }
  .nav-menu-program select,
  .nav-signout { width: 100%; }
  .program-picker { display: none; }
  .user-actions { margin-left: 0; }
  .help-rail {
    top: 0;
    width: 100vw;
    right: -100vw;
  }
  .toolbar { align-items: stretch; flex-direction: column; }
  .results-toolbar,
  .results-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .results-search {
    width: 100%;
  }
  .results-pager {
    margin-left: 0;
  }
  .transaction-search { width: 100%; }
  .transaction-tab {
    flex: 0 0 auto;
  }
  .mail-viewer {
    grid-template-columns: 1fr;
  }
  .mail-sidebar {
    max-height: 360px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .mail-preview-header,
  .mail-status {
    padding-left: 14px;
    padding-right: 14px;
  }
  .mail-content-body {
    margin: 14px;
  }
  .home-widget {
    grid-column: 1 / -1 !important;
  }
  .pokedex-excel-steps {
    grid-template-columns: 1fr;
  }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .demo-dashboard-grid { grid-template-columns: 1fr; }
  .circus-dynamic-dashboard .tile-container { grid-template-columns: 1fr; }
  .dashboard-display-tile.size-small,
  .dashboard-display-tile.size-medium,
  .dashboard-display-tile.size-large { grid-column: span 1; }
  .knowledge-grid { grid-template-columns: 1fr; }
  .step-row { grid-template-columns: 1fr; }
}
