/* Canonical Tracker shell adapter; /tcgn/theme.css is the tracked shared base. */
html[data-tcgn-v1] {
  --shell-canvas: var(--page);
  --shell-topbar: var(--page);
  --shell-sidebar: var(--page);
  --shell-elevated: #f4f4f4;
  --shell-search: #eeeeee;
  --shell-active-row: #eeeeee;
  --shell-right-rail: #f4f4f4;
  --shell-border: #e3e5e4;
  --shell-separator: #e3e5e4;
  --shell-text-primary: #171a19;
  --shell-text-navigation: #171a19;
  --shell-text-muted: #666b69;
  --brand: #ff7341;
  /* TCGE ribbon lightness + brand chroma reduction, retaining Tracker hue.
     Derivation: output/tcgt-v1-brand/colour-derivation.json. */
  --ribbon: #ffe8e0;
  --mint: var(--brand);
  --mint-hover: var(--brand);
  --brand-hover: var(--brand);
  --brand-pressed: var(--brand);
  --brand-on-dark: var(--brand);
  --wishlist: #FF3EA5;
  --price-blue: #4D7CFF;
  --progress: var(--brand);
  --font-sans: var(--font);
  --sidebar-width: 0px;
  --workspace-max: 1800px;
  --app-gutter: var(--gutter);
  --product-header-height: 124px;
  color-scheme: light;
  font-family: var(--font);
}
html[data-tcgn-v1][data-sidebar] {
  --sidebar-width: 0px;
}
html[data-tcgn-v1] body {
  font-family: var(--font);
  font-size: 15px;
}
html[data-tcgn-v1] .ambient-background {
  display: none;
}
html[data-tcgn-v1] .topbar {
  position: relative;
  top: auto;
  height: 88px;
  padding: 0 var(--gutter);
  gap: 48px;
  background: var(--page);
  z-index: 2;
}
html[data-tcgn-v1] .shell-brand {
  width: auto;
  padding: 0;
  gap: 0;
  min-height: 0;
}
html[data-tcgn-v1] .shell-wordmark {
  display: inline-flex;
  position: static;
  transform: none;
  margin: 0;
  align-items: center;
  font-size: 22.1px;
  line-height: 1.15;
  gap: 0;
}
.tcgn-stationary {
  width: 3.106em;
  height: 1.15em;
  display: block;
  flex-shrink: 0;
}
.tcgn-word-slot {
  width: 4.499em;
  height: 1.15em;
  display: block;
  overflow: hidden;
}
.tcgn-word-track {
  display: flex;
  flex-direction: column;
}
.tcgn-word-track > span {
  height: 1.15em;
  display: block;
  flex-shrink: 0;
}
.tcgn-word-track svg {
  width: 100%;
  height: 1.15em;
  display: block;
}
html[data-tcgn-v1] .tcgn-primary {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}
html[data-tcgn-v1] .tcgn-primary a {
  padding: 12px 0;
  white-space: nowrap;
}
html[data-tcgn-v1] .header-search {
  position: relative;
  inset: auto;
  transform: none;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
  height: auto;
}
html[data-tcgn-v1] .platform-search {
  position: static;
  transform: none;
  width: 180px;
  height: 36px;
  margin: 0;
  padding: 0 10px 0 18px;
  background: var(--search);
  border: 0;
}
html[data-tcgn-v1] .platform-search > .shell-icon {
  display: none;
}
html[data-tcgn-v1] .platform-search input {
  position: static;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
html[data-tcgn-v1] .platform-search > button {
  position: static;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 3px;
}
html[data-tcgn-v1] :is(.shell-control, .shell-account, .header-pro) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  padding: 6px;
  background: transparent;
  color: var(--text);
}
html[data-tcgn-v1] :is(.shell-control, .shell-account, .header-pro):hover {
  background: var(--search);
  text-decoration: none;
}
html[data-tcgn-v1] .shell-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}
html[data-tcgn-v1] .topbar-actions {
  position: static;
  transform: none;
  gap: 18px;
  margin: 0 0 0 -30px;
  padding: 0;
}
html[data-tcgn-v1] :is(.shell-account span, .header-pro span, .premium-status) {
  display: none;
}
html[data-tcgn-v1] .app-sidebar {
  display: none;
}
html[data-tcgn-v1] .app-layout {
  margin-left: 0;
  grid-template-columns: minmax(0, 1fr);
}
html[data-tcgn-v1] .app-workspace {
  width: 100%;
  margin: 0;
}
html[data-tcgn-v1] #main {
  max-width: 1800px;
  padding: 0 var(--gutter) 40px;
  margin: auto;
}
html[data-tcgn-v1] :is(.home-front, .home-front + .recent-activity) {
  width: 100%;
  padding-inline: 0;
}
html[data-tcgn-v1] .front-opening {
  padding: 70px 0 64px;
}
html[data-tcgn-v1] .front-intro h1 {
  font-size: 64px;
  line-height: 1.12;
  letter-spacing: -0.045em;
}
html[data-tcgn-v1] .page-heading {
  padding: 44px 0 36px;
  margin: 0;
}
html[data-tcgn-v1] .page-heading h1 {
  font-size: 56px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.035em;
}
html[data-tcgn-v1] :is(.button, .btn-primary, .button-primary) {
  border-radius: 100px;
  min-height: 46px;
  padding: 12px 26px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: none;
}
html[data-tcgn-v1] :is(.button.primary, .btn-primary, .button-primary) {
  background: var(--brand);
  color: var(--on-mint);
  border-color: var(--brand);
}
html[data-tcgn-v1]:not([data-tcgn-collection]):not([data-tcgn-wishlist]) :is(.card-art, .category-surface, .set-art, .insights-panel, .account-panel) {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: none;
}
html[data-tcgn-v1] .home-card-fan::before {
  background: none;
}
html[data-tcgn-v1] .set-placeholder {
  background: var(--surface);
  color: var(--muted);
}
html[data-tcgn-v1] .search-preview {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  width: 320px;
  transform: none;
  max-height: 480px;
}
html[data-tcgn-v1] .breadcrumb-bar {
  position: static;
  margin: 0 0 16px;
  padding-inline: 0;
}
/* Preserve the approved phone bottom navigation presentation and geometry. */
html[data-tcgn-v1] .mobile-bottom-nav {
  --brand: #d93900;
  --brand-pressed: #bd3100;
  --text: #edf1f3;
  --text-muted: #8ca2ac;
  --shell-canvas: #0d1113;
  --shell-active-row: #2b3236;
  --canvas: #0d1113;
  --nav-active: #2b3236;
  --border: #3d4142;
}
.tcgn-page-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: var(--brand);
  opacity: 1;
  transition: opacity 180ms ease-out;
}
.tcgn-page-loader[hidden] {
  display: none;
}
.tcgn-page-loader svg {
  width: 60px;
  height: 60px;
  overflow: hidden;
}
.tcgn-page-loader .meteor-clip {
  transform: translateY(194.444444px);
  transition: transform 120ms ease-out;
}
.tcgn-page-loader.is-fading {
  opacity: 0;
}
@media (min-width: 1600px) {
  html[data-tcgn-v1] {
    --gutter: 72px;
  }
}
@media (max-width: 1100px) {
  html[data-tcgn-v1] .topbar {
    gap: 32px;
  }
  html[data-tcgn-v1] .tcgn-primary {
    gap: 20px;
  }
  html[data-tcgn-v1] .header-search,
  html[data-tcgn-v1] .topbar-actions {
    gap: 8px;
  }
  html[data-tcgn-v1] .platform-search {
    width: 140px;
  }
  html[data-tcgn-v1] .topbar-actions {
    margin-left: -24px;
  }
}
@media (max-width: 900px) {
  html[data-tcgn-v1] {
    --product-header-height: 120px;
  }
}
@media (max-width: 800px) {
  html[data-tcgn-v1] {
    --product-header-height: 110px;
  }
  html[data-tcgn-v1] .topbar {
    display: flex;
    height: 78px;
    gap: 20px;
    padding: 0 var(--gutter);
    margin: 0;
  }
  html[data-tcgn-v1] .tcgn-primary {
    display: none;
  }
  html[data-tcgn-v1] .front-opening {
    padding: 52px 0;
  }
  html[data-tcgn-v1] .front-intro h1 {
    font-size: 48px;
  }
}
@media (max-width: 600px) {
  .tcgn-page-loader svg {
    width: 48px;
    height: 48px;
  }
}
@media (max-width: 480px) {
  html[data-tcgn-v1] {
    --product-header-height: 108px;
  }
  html[data-tcgn-v1] .topbar {
    height: 76px;
    gap: 12px;
  }
  html[data-tcgn-v1] .shell-wordmark {
    display: inline-flex;
    font-size: 17px;
  }
  html[data-tcgn-v1] .topbar-actions {
    gap: 2px;
  }
  html[data-tcgn-v1] :is(.shell-account, .header-pro, .header-scanner) {
    width: 32px;
    min-width: 32px;
    padding: 5px;
  }
  html[data-tcgn-v1] .header-pro {
    display: none;
  }
  html[data-tcgn-v1] .front-opening {
    padding: 44px 0 46px;
  }
  html[data-tcgn-v1] .front-intro h1 {
    font-size: 42px;
  }
  html[data-tcgn-v1] .page-heading h1 {
    font-size: 38px;
  }
  html[data-tcgn-v1] .button {
    padding: 12px 20px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tcgn-page-loader .meteor-clip {
    transition: none !important;
  }
  .tcgn-page-loader {
    transition-duration: 60ms;
  }
  .tcgn-page-loader:not(.meteor-complete) .meteor-clip {
    transform: translateY(194.444444px) !important;
  }
}
html[data-tcgn-v1] .header-search {
  width: auto;
}
html[data-tcgn-v1] .header-search > .platform-search {
  flex: 0 0 180px;
  width: 180px;
}
html[data-tcgn-v1] .header-search .platform-search input {
  padding: 0;
  text-align: left;
}
html[data-tcgn-v1] .header-search > .header-scanner {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  background: transparent;
}
html[data-tcgn-v1] .mobile-bottom-nav {
  --shell-text-primary: #edf1f3;
  --shell-text-muted: #8ca2ac;
  font-family: 'DM Sans', sans-serif;
}
@media (max-width: 1100px) {
  html[data-tcgn-v1] .header-search > .platform-search {
    flex-basis: 140px;
    width: 140px;
  }
}
html[data-tcgn-v1] .header-pro {
  color: var(--text);
}
html[data-tcgn-v1] .shell-brand {
  flex: 0 0 auto;
}
html[data-tcgn-v1] .topbar-actions {
  width: auto;
  flex: 0 0 auto;
}
html[data-tcgn-v1] .front-game {
  border-radius: var(--radius);
}
html[data-tcgn-v1] .front-game img[src*='one-piece'] {
  filter: brightness(0);
  opacity: 0.7;
}
html[data-tcgn-v1] .detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  padding: 40px 0 64px;
}
html[data-tcgn-v1] .detail > .detail-image {
  position: relative;
  top: auto;
  width: 100%;
  max-width: none;
  min-height: 500px;
  height: auto;
  padding: 48px;
  background: var(--surface);
  border-radius: var(--radius);
}
html[data-tcgn-v1] .detail-copy {
  width: auto;
  min-width: 0;
}
html[data-tcgn-v1] .detail-copy h1 {
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -0.035em;
}
html[data-tcgn-v1]
  :is(
    .set-card,
    .custom-set-tile,
    .collection-action,
    .account-card,
    .account-section,
    .card-market-values > div
  ) {
  border-radius: var(--radius);
  box-shadow: none;
}
html[data-tcgn-v1] :is(.account-header h1, .insights-heading h1, .activity-heading h1) {
  font-size: 56px;
  line-height: 1.12;
  letter-spacing: -0.035em;
}
html[data-tcgn-v1] .account-header {
  padding: 44px 0 36px;
}
@media (max-width: 800px) {
  html[data-tcgn-v1] .detail {
    gap: 32px;
  }
  html[data-tcgn-v1] .detail > .detail-image {
    min-height: 360px;
    padding: 24px;
  }
  html[data-tcgn-v1] .detail-copy h1 {
    font-size: 32px;
  }
}
@media (max-width: 480px) {
  html[data-tcgn-v1] #main .detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 24px;
  }
  html[data-tcgn-v1] .detail > .detail-image {
    min-height: 380px;
  }
  html[data-tcgn-v1] .detail-image .card-foreground > img {
    height: 320px;
    max-height: none;
  }
  html[data-tcgn-v1] :is(.account-header h1, .insights-heading h1, .activity-heading h1) {
    font-size: 38px;
  }
}
html[data-tcgn-v1] .front-catalogue-tile {
  border-radius: var(--radius);
}
html[data-tcgn-v1] .front-catalogue-tile[href='/one-piece/sets/'] img {
  filter: brightness(0);
  opacity: 0.7;
}
html[data-tcgn-v1] .account-shell {
  max-width: none;
}
html[data-tcgn-v1] .account-workspace {
  padding-top: 0;
}
html[data-tcgn-v1] .scan-stage {
  background: var(--page);
  color: var(--text);
  height: calc(100svh - var(--product-header-height) - var(--mobile-bottom-clearance, 0px));
}
html[data-tcgn-v1] :is(.scan-close, .scan-status, .scan-message, .scan-controls button) {
  color: var(--text);
}
html[data-tcgn-v1] .scan-close {
  background: var(--surface);
}
html[data-tcgn-v1] .insights-workspace {
  max-width: none;
}
html[data-tcgn-v1] .insights-page {
  padding: 44px 0 64px;
}
html[data-tcgn-v1] .insights-intro {
  margin-bottom: 36px;
}
html[data-tcgn-v1] .insights-intro h1 {
  font-size: 56px;
  line-height: 1.12;
  letter-spacing: -0.035em;
}
html[data-tcgn-v1] .insights-page .section-title h2 {
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -0.035em;
}
html[data-tcgn-v1] .insight-facts > div {
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
}
html[data-tcgn-v1] .front-intro h1 {
  font-weight: 700;
}
@media (max-width: 480px) {
  html[data-tcgn-v1] .insights-intro h1 {
    font-size: 38px;
  }
  html[data-tcgn-v1] .insights-page .section-title h2 {
    font-size: 27px;
  }
}
html[data-tcgn-v1] .mobile-bottom-nav .shell-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
html[data-tcgn-v1] .mobile-bottom-nav .mobile-nav-scanner .shell-icon {
  width: 28px;
  height: 28px;
  flex-basis: 20px;
}
@media (max-width: 380px) {
  html[data-tcgn-v1] .shell-wordmark {
    font-size: 15.3px;
  }
  html[data-tcgn-v1] .topbar {
    gap: 6px;
  }
}
html[data-tcgn-v1] .collection-set {
  border-radius: var(--radius);
  background: var(--surface);
}
html[data-tcgn-v1] .account-action {
  min-height: 46px;
  padding: 12px 26px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
html[data-tcgn-v1] .account-action:not(.secondary) {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-mint);
}
html[data-tcgn-v1] .account-action.secondary {
  background: var(--page);
  border-color: var(--text);
  color: var(--text);
}
@media (max-width: 480px) {
  html[data-tcgn-v1] .account-action {
    font-size: 12px;
    padding: 12px 20px;
  }
}
@media (max-width: 480px) {
  html[data-tcgn-v1] .header-search:focus-within {
    position: static;
  }
  html[data-tcgn-v1] .header-search .platform-search:focus-within {
    position: absolute;
    left: 20px;
    right: 20px;
    width: auto;
  }
  html[data-tcgn-v1] .header-search:focus-within .search-preview {
    left: 20px;
    right: 20px;
    top: calc(100% + 6px);
    width: auto;
  }
}
html[data-tcgn-v1] .custom-workspace {
  --progress: var(--set-accent, var(--brand));
}
html[data-tcgn-v1] .workspace-heading {
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--border);
}
html[data-tcgn-v1] .workspace-heading h1 {
  font-size: 56px;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0;
}
html[data-tcgn-v1] .custom-workspace .workspace-metrics {
  border: 0;
  background: transparent;
  padding: 24px 0;
  gap: 40px;
}
html[data-tcgn-v1] .custom-workspace .workspace-metrics > div {
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
}
html[data-tcgn-v1]:not([data-tcgn-collection]):not([data-tcgn-wishlist]) .card-grid:not(.compact-grid):not(.detailed-grid) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 800px) {
  html[data-tcgn-v1]:not([data-tcgn-collection]):not([data-tcgn-wishlist]) .card-grid:not(.compact-grid):not(.detailed-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }
}
@media (max-width: 480px) {
  html[data-tcgn-v1] .workspace-heading h1 {
    font-size: 38px;
  }
}
html[data-tcgn-v1]:not([data-tcgn-collection]):not([data-tcgn-wishlist])
  :is(
    .card-foreground,
    .card-foreground img,
    .front-single-art,
    .front-single-art img,
    .card-art,
    .card-art img
  ) {
  box-shadow: none;
}
html[data-tcgn-v1] [data-custom-workspace] {
  --progress: var(--set-accent, var(--brand));
}
html[data-tcgn-v1] [data-custom-workspace] .set-identity h1 {
  font-size: 56px;
  line-height: 1.12;
  letter-spacing: -0.035em;
}
html[data-tcgn-v1] [data-custom-workspace] .custom-progress {
  accent-color: var(--set-accent, var(--brand));
}
@media (max-width: 480px) {
  html[data-tcgn-v1] [data-custom-workspace] .set-identity h1 {
    font-size: 38px;
  }
}

/* Local header/Browse checkpoint. Canonical heights/gutters stay unchanged. */
html[data-tcgn-v1] .tcgn-sticky-stack {
  position: sticky;
  top: 0;
  z-index: 40;
  isolation: isolate;
  background: var(--page);
}
html[data-tcgn-v1] .tcgn-sticky-stack .topbar {
  z-index: 2;
  border-bottom: 1px solid var(--border);
}
html[data-tcgn-v1] .sitestrip-actions {
  display: flex;
  align-items: stretch;
  gap: 24px;
}
html[data-tcgn-v1] .sitestrip-upgrade {
  font-size: 11px;
  font-weight: 500;
  padding: 0;
}
html[data-tcgn-v1] .sitestrip-upgrade:hover {
  background: transparent;
}
html[data-tcgn-v1] .tcgn-sticky-stack :is(a, button):is(:hover, :focus, :focus-visible) {
  text-decoration: none;
}
html[data-tcgn-v1] .tcgn-primary a::after {
  display: none;
}
html[data-tcgn-v1] .tcgn-primary :is(a, button) {
  color: var(--text);
  text-decoration: none;
  transition: color 120ms ease;
  border: 0;
  background: transparent;
}
/* One interaction owner for every equivalent product-navigation destination. */
html[data-tcgn-v1] .tcgn-primary :is(a, button):is(:hover, [aria-current='page'], .is-current) {
  color: var(--tcgn-product-accent, var(--brand));
}
html[data-tcgn-v1] #tcgn-browse-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 12px 0;
  font: inherit;
  white-space: nowrap;
  border-radius: 0;
}
#tcgn-browse-toggle svg {
  width: 13px;
  height: 13px;
}
html[data-tcgn-v1] :is(.header-pro, .header-scanner) {
  display: none;
}
html[data-tcgn-v1][data-review-meteor='orange'] .tcgn-stationary > path {
  fill: #ff7341;
}
html[data-tcgn-v1] .tcgn-browse-panel {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  padding: 28px var(--gutter) 32px;
  background: var(--page);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 20px #171a190b;
  animation: browse-enter 140ms ease-out;
  max-height: calc(100dvh - var(--product-header-height) - 80px);
  overflow: auto;
}
html[data-tcgn-v1] .tcgn-browse-panel[hidden] {
  display: none;
}
.browse-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.browse-intro .eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 6px;
}
.browse-intro h2 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0;
}
.browse-close {
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 8px;
  color: var(--text);
}
.browse-close svg {
  width: 20px;
  height: 20px;
}
.browse-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.browse-tiles a {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 138px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  text-decoration: none;
}
.browse-tiles a:hover {
  border-color: #aaaead;
  background: #eeeeee;
}
.browse-logo {
  height: 62px;
  display: grid;
  place-items: center;
}
.browse-logo img {
  width: 100%;
  max-width: 150px;
  height: 62px;
  object-fit: contain;
}
.one-piece-logo img {
  filter: brightness(0.12);
}
.browse-tiles strong,
.browse-tiles span:not(.browse-arrow) {
  display: block;
}
.browse-tiles strong {
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 5px;
}
.browse-tiles span:not(.browse-arrow) {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.browse-arrow {
  position: absolute;
  right: 16px;
  bottom: 13px;
  font-size: 18px;
}
html[data-tcgn-v1] :is(.tcgn-primary, .tcgn-browse-panel, .v1-set-page) :focus-visible {
  outline: 2px solid #a63a14;
  outline-offset: 4px;
}
@keyframes browse-enter {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 1100px) {
  .browse-tiles a {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }
  .browse-logo {
    justify-items: start;
  }
  .browse-tiles strong {
    font-size: 17px;
  }
}
@media (max-width: 800px) {
  html[data-tcgn-v1] .sitestrip-actions {
    gap: 18px;
  }
  html[data-tcgn-v1] .tcgn-browse-panel {
    padding: 20px var(--gutter) 24px;
  }
  .browse-intro {
    margin-bottom: 16px;
  }
  .browse-intro h2 {
    font-size: 20px;
  }
  .browse-tiles {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .browse-tiles a {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 86px;
    padding: 16px;
    gap: 18px;
    border-radius: 16px;
  }
  .browse-logo,
  .browse-logo img {
    height: 46px;
    max-width: 96px;
  }
  .browse-tiles strong {
    font-size: 16px;
  }
  .browse-arrow {
    right: 14px;
    bottom: 30px;
  }
}
@media (max-width: 480px) {
  html[data-tcgn-v1] .sitestrip-actions {
    gap: 16px;
  }
  .sitestrip-upgrade .sitestrip-icon {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tcgn-browse-panel {
    animation: none !important;
  }
  .tcgn-sticky-stack * {
    transition: none !important;
  }
}

/* ME04 only: dense set identity, factual progress and artwork-led card layouts. */
html[data-tcgn-v1] .v1-set-page {
  padding: 24px 0 40px;
}
html[data-tcgn-v1] .v1-set-page .catalogue-toolbar {
  gap: 12px;
  margin: 0;
}
html[data-tcgn-v1] .v1-set-page .toolbar-actions {
  gap: 8px;
}
html[data-tcgn-v1] .v1-set-page :is(.toolbar-trigger, .search-field) {
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}
html[data-tcgn-v1] .v1-set-page .toolbar-trigger {
  padding: 0 14px;
  font-size: 12px;
}
html[data-tcgn-v1] .v1-set-page .search-field input {
  height: 42px;
  font-size: 13px;
  background: transparent;
  border: 0;
}
html[data-tcgn-v1] .v1-set-page .toolbar-dialog {
  background: #fff;
  border: 2px solid #c6cac7;
  box-shadow: none;
  max-height: min(720px, calc(100dvh - 24px));
}
html[data-tcgn-v1] .v1-set-page .active-filter-chips {
  margin: 12px 0 0;
  gap: 8px;
}
html[data-tcgn-v1] .v1-set-page .active-filter-chips button {
  border-radius: 8px;
  background: #eee;
  font-size: 11px;
}
html[data-tcgn-v1] .v1-set-page .v1-set-empty {
  padding: 32px 20px;
  text-align: center;
  background: var(--surface);
  border-radius: 20px;
  margin: 12px 0 20px;
}
.v1-set-empty h2 {
  font-size: 20px;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}
.v1-set-empty p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}
@media (max-width: 480px) {
  html[data-tcgn-v1] .v1-set-page {
    padding-top: 18px;
  }
  html[data-tcgn-v1] .v1-set-page .catalogue-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }
  html[data-tcgn-v1] .v1-set-page #catalogue-search {
    width: 100%;
    flex: 0 0 100%;
  }
  html[data-tcgn-v1] .v1-set-page .toolbar-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }
  html[data-tcgn-v1] .v1-set-page .toolbar-trigger {
    flex: 1;
    justify-content: center;
    padding: 0 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .v1-set-page * {
    transition: none !important;
  }
}
html[data-tcgn-v1] .v1-set-page .active-filter-chips:empty {
  display: none;
}
html[data-tcgn-v1] .v1-set-page nav a:is(:hover, :focus, :focus-visible) {
  text-decoration: none;
}

/* Selected network tab connects to the existing product header. */
html[data-tcgn-v1][data-theme='dark'] .sitestrip {
  --strip-active: var(--page);
}
html[data-tcgn-v1] .sitestrip-network a[aria-current='page']::after {
  content: '';
  position: absolute;
  bottom: -1px;
  height: 1px;
  left: 0;
  right: 0;
  background: var(--page);
}
html[data-tcgn-v1] .sitestrip-network a[aria-current='page'] {
  position: relative;
}
@media (min-width: 701px) {
  html[data-tcgn-v1] .header-search {
    position: relative;
  }
  html[data-tcgn-v1] .header-search > .platform-search {
    flex-basis: auto;
    width: 180px;
    transition: width 200ms ease;
  }
  html[data-tcgn-v1]
    .header-search:has(.platform-search:focus-within, .platform-search input[aria-expanded='true'])
    > .platform-search {
    width: var(--header-search-active-width, 180px);
  }
  html[data-tcgn-v1] .header-search .search-preview {
    width: 100%;
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-tcgn-v1] .header-search > .platform-search {
    transition: none;
  }
}
html[data-tcgn-v1] .platform-search input:focus {
  outline: none;
  box-shadow: none;
}
@media (min-width: 701px) {
  html[data-tcgn-v1] .primary-header .topbar-actions {
    margin-left: 0;
  }
}

/* Shared shell presentation bindings, also used by the Exchange adapter. */
html[data-tcgn-v1] .brand-stationary{width:3.106em;height:1.15em}
html[data-tcgn-v1] .word-slot{width:4.499em;flex-shrink:0}
html[data-tcgn-v1] .brand-mobile{display:none;color:var(--brand)}
html[data-tcgn-v1] .header-actions{margin-left:auto}
html[data-tcgn-v1] .primary-nav a::after{display:none}
@media(max-width:900px){html[data-tcgn-v1] .primary-nav{display:none}html[data-tcgn-v1] .primary-header .header-actions{flex:1}html[data-tcgn-v1] .header-actions .platform-search{flex:1;width:auto}}
@media(max-width:700px){html[data-tcgn-v1] .brand-stationary,html[data-tcgn-v1] .word-slot{display:none}html[data-tcgn-v1] .brand-mobile{display:block;width:28px;height:28px}}
/* TCGT product soft launch: suppress, never rewrite, the family strip. */
html[data-tcgn-launch='product-soft-launch'] {--product-header-height:88px}
html[data-tcgn-launch='product-soft-launch'] .sitestrip {display:none}
.tcgn-beta-badge {font-size:9px;letter-spacing:.08em;font-weight:700;line-height:16px;padding:0 5px;border-radius:999px;background:var(--surface-secondary);color:var(--muted);margin-left:4px;position:relative;top:4px}
/* Trim only unused Tracker slot space; keep canonical vector scale and paths. */
html[data-tcgn-launch='product-soft-launch'] .word-slot {width:3.46em}
html[data-tcgn-launch='product-soft-launch'] .word-track svg {width:4.499em}
html[data-tcgn-launch='product-soft-launch'] .shell-wordmark .word-track {animation:none;transition:none;transform:none}
html[data-tcgn-launch='product-soft-launch'] .brand-link {display:flex;align-items:center}
html[data-tcgn-launch='product-soft-launch'] .header-pro {display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--text);text-decoration:none;white-space:nowrap;padding:8px}
html[data-tcgn-launch='product-soft-launch'] .header-pro .shell-icon {width:18px;height:18px}
@media(max-width:700px){html[data-tcgn-launch='product-soft-launch'] .tcgn-beta-badge,html[data-tcgn-launch='product-soft-launch'] .header-pro {display:none}}
html[data-tcgn-launch='product-soft-launch'] .header-pro span {display:none}

/* Tracker Browse keeps the header accent in its mobile navigation equivalent. */
html[data-tcgn-launch='product-soft-launch'] .tcgn-floating-nav .mobile-nav-item[href='/browse'][aria-current='page'] {color:var(--brand)}
