:root {
  color-scheme: dark;
  --bg: #070604;
  --panel: rgba(18, 13, 9, 0.94);
  --panel-strong: #1d130d;
  --sand: #c99758;
  --sand-soft: #ead3a5;
  --spice: #d96f2d;
  --violet: #7d55b5;
  --green: #78c38d;
  --red: #c95b53;
  --muted: #8e765e;
  --line: rgba(211, 150, 84, 0.28);
  --line-faint: rgba(211, 150, 84, 0.12);
  --motion-sync: 620ms;
  --motion-sync-ease: cubic-bezier(0.65, 0, 0.35, 1);
  --table-head-height: 34px;
}

/* Final home-stat layout overrides. */
.home-market-panel {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 7px;
}

.home-stats-panel {
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(58px, auto) auto;
  gap: 0;
  padding: 0;
  border: 1px solid rgba(201, 151, 88, 0.32);
  background: rgba(8, 6, 4, 0.55);
}

.home-stats-title {
  grid-column: 1 / -1;
  grid-row: 1;
  padding: 6px 10px 4px;
  border-bottom: 1px solid rgba(201, 151, 88, 0.2);
  font-size: clamp(15px, 1.2vw, 20px);
}

.home-stat-heading {
  display: grid !important;
  min-width: 0;
  min-height: 28px;
  place-items: center;
  border-bottom: 1px solid rgba(201, 151, 88, 0.28);
  color: var(--sand-soft);
  font-size: clamp(10px, 0.8vw, 13px);
  font-weight: 900;
  text-transform: uppercase;
}

.home-stat-heading:nth-of-type(2) {
  border-left: 1px solid rgba(201, 151, 88, 0.28);
}

.home-stat-feature {
  display: flex !important;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: linear-gradient(90deg, rgba(125, 85, 181, 0.16), rgba(8, 6, 4, 0.18));
}

.home-stat-feature + .home-stat-feature {
  border-left: 1px solid rgba(201, 151, 88, 0.3);
  background: linear-gradient(90deg, rgba(8, 6, 4, 0.18), rgba(125, 85, 181, 0.08));
}

.home-stat-feature .solari-credit-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
}

.home-stat-feature strong {
  overflow: hidden;
  color: #f4ddb0;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-stat-cap {
  justify-content: center;
}

.home-stat-secondary-grid {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  border-top: 1px solid rgba(201, 151, 88, 0.22);
}

.home-stat-secondary-grid .home-stat-tile {
  min-width: 0;
  padding: 6px 10px;
  border-left: 1px solid rgba(201, 151, 88, 0.18);
}

.home-stat-secondary-grid .home-stat-tile:first-child {
  border-left: 0;
}

.home-control {
  grid-column: 1;
  grid-row: 2;
}

@media (max-width: 900px) {
  .home-stat-feature {
    padding: 8px 10px;
  }

  .home-stat-feature strong {
    font-size: clamp(20px, 6vw, 30px);
  }
}

@media (max-width: 520px) {
  .home-stat-feature {
    gap: 7px;
    padding-inline: 7px;
  }

  .home-stat-feature .solari-credit-icon {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }

  .home-stat-feature strong {
    font-size: clamp(17px, 5.8vw, 24px);
  }

  .home-stat-secondary-grid .home-stat-tile {
    padding-inline: 5px;
  }
}

/* Editorial staging pass: a quieter Communinet-style frame around the live exchange. */
.shell {
  width: min(1920px, calc(100vw - clamp(12px, 1.2vw, 28px)));
  padding-top: 0;
}

.site-masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 50px;
  align-items: center;
  border-bottom: 1px solid rgba(211, 150, 84, 0.34);
  color: #b99560;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-masthead-brand {
  display: inline-flex;
  width: max-content;
  height: 26px;
  align-items: center;
}

.site-masthead-brand img {
  width: auto;
  height: 100%;
  filter: sepia(0.16) saturate(1.08);
}

.site-masthead p {
  margin: 0;
}

.site-masthead-link {
  justify-self: end;
  color: #d1ad74;
  text-decoration: none;
}

.site-masthead-link:hover,
.site-masthead-link:focus-visible {
  color: #f2d59e;
  outline: none;
}

.banner {
  margin-top: 20px;
  border-color: rgba(211, 150, 84, 0.6);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.58);
}

.banner::before {
  inset: 12px;
  border-color: rgba(234, 211, 165, 0.24);
}

.exchange-frame {
  margin-top: 14px;
  border-color: rgba(211, 150, 84, 0.5);
  background:
    linear-gradient(180deg, rgba(45, 22, 13, 0.3), rgba(14, 9, 9, 0.92) 16rem),
    linear-gradient(90deg, rgba(79, 41, 17, 0.12), transparent 26%, transparent 74%, rgba(83, 42, 104, 0.12)),
    var(--panel);
}

.exchange-frame::before {
  inset: 10px;
  border-color: rgba(211, 150, 84, 0.22);
}

.market-item-picker {
  min-height: 58px;
  padding: 9px 14px;
  border-color: rgba(211, 150, 84, 0.5);
  background: linear-gradient(90deg, rgba(25, 13, 9, 0.98), rgba(42, 21, 41, 0.8), rgba(25, 13, 9, 0.98));
}

.console-head {
  padding-top: 11px;
}

.home-market-panel {
  border-color: rgba(211, 150, 84, 0.48);
  background: linear-gradient(100deg, rgba(36, 18, 11, 0.74), rgba(18, 11, 17, 0.84));
}

.home-stats-panel,
.home-price-hero {
  border-color: rgba(211, 150, 84, 0.34);
}

.ticker-band {
  margin-top: 2px;
  border-color: rgba(211, 150, 84, 0.5);
  background:
    linear-gradient(90deg, rgba(87, 44, 17, 0.16), transparent 8%, transparent 92%, rgba(87, 44, 17, 0.16)),
    #0b0706;
}

.ticker-ad-row {
  margin: 18px 0;
  border-color: rgba(211, 150, 84, 0.28);
  background: rgba(13, 8, 8, 0.42);
  box-shadow: none;
}

.board,
.summary-panel {
  border-color: rgba(211, 150, 84, 0.38);
}

.site-footer {
  margin-top: 26px;
  border-top-color: rgba(211, 150, 84, 0.38);
  color: #a99171;
}

@media (max-width: 760px) {
  .site-masthead {
    grid-template-columns: 1fr auto;
    min-height: 46px;
  }

  .site-masthead p {
    display: none;
  }

  .site-masthead-brand {
    height: 23px;
  }

  .banner {
    margin-top: 12px;
  }
}

body.tv-mode .site-masthead {
  display: none;
}

/* Global market instrument search. */
.market-item-picker {
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid rgba(201, 151, 88, 0.42);
  background: linear-gradient(90deg, rgba(21, 12, 8, 0.96), rgba(38, 19, 44, 0.82), rgba(21, 12, 8, 0.96));
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.32);
}

.market-item-label {
  display: block;
  grid-column: 1;
  grid-row: 2;
  padding-left: 2px;
  color: var(--sand-soft);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.market-item-search-wrap {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.item-icon-card {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  border: 1px solid rgba(201, 151, 88, 0.46);
  background: rgba(10, 6, 7, 0.82);
  vertical-align: middle;
}

.item-icon-card--picker {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}

.item-icon-card--compact {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border-radius: 2px;
}

.item-icon-card--plain {
  overflow: visible;
  border-color: transparent;
  background: transparent;
}

.item-icon-card--composed {
  border-color: rgba(219, 153, 255, 0.9);
  background:
    radial-gradient(circle at 68% 22%, rgba(238, 202, 255, 0.35), transparent 22%),
    linear-gradient(145deg, #7133a1 0%, #432064 48%, #1a0e31 100%);
  box-shadow:
    inset 0 0 0 1px rgba(249, 217, 255, 0.26),
    inset 0 -10px 17px rgba(25, 6, 54, 0.42),
    0 0 9px rgba(172, 88, 255, 0.34);
}

.item-icon-card__art {
  position: absolute;
  z-index: 1;
  inset: 8%;
  width: 84%;
  height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}

.item-icon-card--plain .item-icon-card__art {
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 5px rgba(234, 211, 165, 0.22));
}

.item-icon-card__art--fallback {
  display: grid;
  place-items: center;
  color: var(--gold-light);
  background: linear-gradient(135deg, rgba(92, 45, 128, 0.88), rgba(20, 10, 35, 0.95));
  border: 1px solid rgba(191, 132, 225, 0.62);
  font-family: var(--font-display);
  font-size: 0.8rem;
  line-height: 1;
}

.item-icon-card__quality-ring {
  position: absolute;
  z-index: 3;
  inset: 7%;
  width: 86%;
  height: 86%;
  object-fit: contain;
  opacity: 0.82;
  mix-blend-mode: screen;
  filter: sepia(0.26) saturate(2.2) hue-rotate(232deg) drop-shadow(0 0 3px rgba(226, 172, 255, 0.6));
}

/* Spice-Ex supplies one raw icon plus a quality mask keyed by quality_level. */
.item-icon-card__quality-mask {
  position: absolute;
  z-index: 4;
  inset: 9%;
  width: 82%;
  height: 82%;
  object-fit: contain;
  opacity: 0.9;
  mix-blend-mode: screen;
  filter: var(--quality-mask-filter);
  pointer-events: none;
}

.item-icon-card--grade-0 { --quality-mask-filter: brightness(1.2) saturate(0.2) drop-shadow(0 0 2px rgba(234, 236, 255, 0.65)); }
.item-icon-card--grade-1 { --quality-mask-filter: sepia(0.3) saturate(2.2) hue-rotate(72deg) drop-shadow(0 0 2px rgba(173, 255, 215, 0.7)); }
.item-icon-card--grade-2 { --quality-mask-filter: sepia(0.32) saturate(2.5) hue-rotate(166deg) drop-shadow(0 0 2px rgba(145, 221, 255, 0.72)); }
.item-icon-card--grade-3 { --quality-mask-filter: sepia(0.3) saturate(2.7) hue-rotate(232deg) drop-shadow(0 0 3px rgba(226, 172, 255, 0.78)); }
.item-icon-card--grade-4 { --quality-mask-filter: sepia(0.55) saturate(2.5) hue-rotate(345deg) drop-shadow(0 0 3px rgba(255, 208, 131, 0.78)); }
.item-icon-card--grade-5 { --quality-mask-filter: sepia(0.8) saturate(2.6) hue-rotate(8deg) drop-shadow(0 0 3px rgba(255, 232, 156, 0.85)); }

.item-icon-card__durability {
  position: absolute;
  z-index: 5;
  right: 5%;
  bottom: 4%;
  left: 5%;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 4px;
}

.item-icon-card__durability i {
  display: block;
  height: 100%;
  flex: 1;
  background: linear-gradient(90deg, #7df2ff 0 55%, #fff2b7 55% 76%, #ff3a42 76%);
  box-shadow: 0 0 4px rgba(130, 228, 255, 0.72);
}

.item-icon-card__durability b {
  display: none;
  color: #fff0c2;
  font-size: 7px;
  line-height: 1;
}

.item-icon-card--picker .item-icon-card__durability,
.item-icon-card--compact .item-icon-card__durability {
  display: none;
}

.market-item-search-wrap > .item-icon-card {
  align-self: center;
}

.market-item-icon-workflow,
.spice-ex-icon-viewport {
  position: relative;
  display: grid;
  overflow: hidden;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
}

.market-item-icon-workflow > .spice-ex-icon,
.spice-ex-icon-viewport > .spice-ex-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 136px;
  height: 136px;
  max-width: none;
  max-height: none;
  margin: -68px 0 0 -68px;
  transform: scale(0.309);
  transform-origin: center;
}

.market-item-search-wrap > .spice-ex-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.market-item-suggestion > .spice-ex-icon-viewport {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.market-item-suggestion > .spice-ex-icon-viewport > .spice-ex-icon {
  /* Crop into the useful center of the full artwork instead of shrinking its canvas. */
  transform: scale(0.39);
  transform-origin: center;
}

/* Search suggestions are thumbnails, not miniature detail cards. */
.market-item-suggestion .spice-ex-icon-blueprint,
.market-item-suggestion .spice-ex-icon-augmentation,
.market-item-suggestion .spice-ex-icon-crafted {
  box-shadow: none;
}

.market-item-suggestion .spice-ex-blueprint-glow,
.market-item-suggestion .spice-ex-tier-marker,
.market-item-suggestion .spice-ex-augment-grade-marker,
.market-item-suggestion .spice-ex-crafted-footer {
  display: none;
}

.market-item-suggestion .spice-ex-blueprint-source {
  width: 132%;
  height: 132%;
  max-width: none;
  max-height: none;
  filter: grayscale(1) sepia(1) saturate(4) hue-rotate(222deg) brightness(1.34) contrast(1.08);
}

.market-item-suggestion .spice-ex-augment-source {
  width: 112%;
  height: 112%;
  max-width: none;
  max-height: none;
  filter: none;
}

.spice-ex-icon-viewport--sheet {
  width: 204px;
  height: 204px;
  flex: 0 0 204px;
}

.spice-ex-icon-viewport--sheet > .spice-ex-icon {
  transform: none;
}

#market-item-search {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 34px;
  padding: 5px 10px;
  border: 1px solid rgba(201, 151, 88, 0.44);
  border-radius: 4px;
  outline: 0;
  background: rgba(7, 4, 3, 0.82);
  color: var(--sand-soft);
  font-size: 14px;
  font-weight: 800;
}

#market-item-grade {
  flex: 0 0 72px;
  height: 34px;
  padding: 5px 8px;
  border: 1px solid rgba(201, 151, 88, 0.62);
  border-radius: 4px;
  outline: 0;
  background: rgba(49, 27, 50, 0.94);
  color: var(--sand-soft);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

#market-item-grade:focus {
  border-color: rgba(184, 115, 255, 0.86);
  box-shadow: 0 0 0 2px rgba(125, 85, 181, 0.2), 0 0 15px rgba(125, 85, 181, 0.18);
}

.market-item-listing-flip {
  display: inline-flex;
  min-width: 0;
  align-items: center;
}

.market-item-listing-flip[hidden] {
  display: none;
}

.market-item-listing-flip .spice-ex-listing-flip {
  gap: 6px;
  font-size: 9px;
}

.market-item-listing-flip .spice-ex-listing-flip-toggle {
  width: 40px;
  height: 23px;
}

.market-item-listing-flip .spice-ex-listing-flip-knob {
  width: 15px;
  height: 15px;
}

.market-item-listing-flip .spice-ex-listing-flip-toggle.blueprint .spice-ex-listing-flip-knob {
  left: 22px;
}

#market-item-search:focus {
  border-color: rgba(184, 115, 255, 0.86);
  box-shadow: 0 0 0 2px rgba(125, 85, 181, 0.2), 0 0 15px rgba(125, 85, 181, 0.18);
}

.market-item-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 39px;
  right: 0;
  overflow: hidden;
  border: 1px solid rgba(201, 151, 88, 0.56);
  background: #100907;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.52);
}

.market-item-suggestion {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 45px;
  padding: 6px 10px;
  border: 0;
  border-bottom: 1px solid rgba(201, 151, 88, 0.14);
  background: transparent;
  color: var(--sand-soft);
  cursor: pointer;
  text-align: left;
}

.market-item-suggestion:last-child {
  border-bottom: 0;
}

.market-item-suggestion:hover,
.market-item-suggestion:focus-visible {
  outline: 0;
  background: rgba(125, 85, 181, 0.22);
}

.market-item-suggestion img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.market-item-suggestion .item-icon-card {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}

.market-item-suggestion .item-icon-card__art,
.market-item-suggestion .item-icon-card__quality-ring {
  position: absolute;
  width: 84%;
  height: 84%;
  margin: 0;
}

.market-item-suggestion strong {
  display: block;
  font-size: 13px;
}

.market-item-suggestion small {
  color: var(--muted);
  font-size: 10px;
}

.market-item-no-results {
  padding: 13px 12px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 700px) {
  .market-item-picker {
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 9px;
    row-gap: 3px;
    min-height: 62px;
    padding: 8px 10px 7px;
  }

  .market-item-search-wrap {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
  }

  .market-item-search-wrap {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto auto;
    grid-template-rows: 34px 18px;
    align-items: center;
    column-gap: 9px;
    row-gap: 3px;
  }

  .market-item-search-wrap > .item-icon-card {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 42px;
    height: 55px;
    flex-basis: 42px;
  }

  .market-item-icon-workflow,
  .market-item-search-wrap > .spice-ex-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 42px;
    height: 55px;
    flex-basis: 42px;
  }

  .market-item-icon-workflow > .spice-ex-icon {
    transform: scale(0.309);
  }

  #market-item-search {
    grid-column: 2;
    grid-row: 1;
  }

  #market-item-grade {
    grid-column: 3;
    grid-row: 1;
  }

  .market-item-listing-flip {
    grid-column: 4;
    grid-row: 1;
  }

  .market-item-label {
    display: block;
    grid-column: 2 / 4;
    grid-row: 2;
    color: var(--muted);
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
  }

  #market-item-grade {
    flex-basis: 64px;
    padding-inline: 6px;
  }

  .market-item-suggestions {
    left: 39px;
  }
}

* {
  box-sizing: border-box;
  scrollbar-color: #c99758 #100905;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 13px;
  height: 13px;
}

::-webkit-scrollbar-track {
  border: 1px solid rgba(201, 151, 88, 0.16);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.48), rgba(53, 31, 15, 0.7), rgba(0, 0, 0, 0.48)),
    #090604;
}

::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 2px solid #090604;
  border-radius: 7px;
  background:
    linear-gradient(90deg, #5a3519 0%, #d6a65e 18%, #f0d090 38%, #8f5729 58%, #d5a259 78%, #402314 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 233, 176, 0.28),
    inset 0 0 10px rgba(56, 30, 10, 0.72),
    0 0 8px rgba(201, 151, 88, 0.18);
}

::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(90deg, #6d421f 0%, #ecc174 18%, #fff0b8 38%, #a86933 58%, #e2b166 78%, #4b2b17 100%);
}

::-webkit-scrollbar-corner {
  background: #090604;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Trebuchet MS", Inter, ui-sans-serif, system-ui, sans-serif;
  /* Dune-inspired dark sand backdrop. Fixed so content scrolls over it; the
     top black layer darkens the whole scene by ~40%. No grid lines or streaks. */
  background:
    linear-gradient(rgba(4, 3, 2, 0.4), rgba(4, 3, 2, 0.4)),
    radial-gradient(135% 95% at 50% -12%, rgba(198, 138, 74, 0.22), transparent 60%),
    radial-gradient(120% 80% at 50% 118%, rgba(96, 49, 19, 0.2), transparent 62%),
    linear-gradient(180deg, #18110b 0%, #0c0806 52%, #070504 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  color: #f3dec0;
}

/* Fixed cinematic vignette for depth — replaces the old diagonal streak. */
body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background: radial-gradient(120% 120% at 50% 32%, transparent 56%, rgba(0, 0, 0, 0.42) 100%);
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: calc(100vw - clamp(12px, 1.2vw, 28px));
  margin: 0 auto;
  padding: 10px 0 28px;
}

.banner {
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 426;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(201, 151, 88, 0.42);
  background: #080604;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.52);
}

.banner::before,
.banner::after,
.exchange-frame::after {
  position: absolute;
  content: "";
}

.banner::before {
  inset: 10px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(234, 211, 165, 0.18);
  box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.52);
}

.banner::after,
.exchange-frame::after {
  left: 50%;
  bottom: -6px;
  width: 17px;
  height: 17px;
  border: 2px solid #3d2116;
  background: linear-gradient(135deg, #21140d, #6d3da1 48%, #21140d 52%);
  box-shadow: 0 0 0 2px rgba(201, 151, 88, 0.45);
  transform: translateX(-50%) rotate(45deg);
  z-index: 4;
}

.banner::after {
  display: none;
}

.ticker-collapse-toggle {
  position: relative;
  z-index: 8;
  display: grid;
  width: 29px;
  height: 29px;
  margin: -14.5px auto -14.5px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  overflow: visible;
}

.ticker-collapse-toggle::before {
  content: none;
}

.jewel-canvas {
  position: absolute;
  inset: -9px;
  z-index: 1;
  width: calc(100% + 18px);
  height: calc(100% + 18px);
  pointer-events: none;
}

.ticker-collapse-toggle:hover,
.ticker-collapse-toggle:focus-visible {
  outline: none;
  filter: drop-shadow(0 0 10px rgba(164, 85, 255, 0.48));
}

body.ticker-collapsed .ticker-collapse-toggle::before {
  content: none;
}

body.ticker-collapsed .ticker-collapse-toggle::after {
  content: none;
}

@keyframes chevron-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 2px rgba(201, 151, 88, 0.42),
      0 0 12px rgba(125, 85, 181, 0.2),
      0 0 0 rgba(234, 211, 165, 0);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(234, 211, 165, 0.58),
      0 0 20px rgba(125, 85, 181, 0.52),
      0 0 18px rgba(234, 211, 165, 0.18);
  }
}

@keyframes jewel-inner-glow {
  0%,
  100% {
    opacity: 0.78;
    box-shadow:
      inset 0 0 6px rgba(235, 205, 255, 0.24),
      inset 0 0 10px rgba(125, 85, 181, 0.34),
      0 0 7px rgba(125, 85, 181, 0.2);
  }
  50% {
    opacity: 1;
    box-shadow:
      inset 0 0 8px rgba(244, 223, 255, 0.48),
      inset 0 0 15px rgba(150, 89, 214, 0.54),
      0 0 12px rgba(150, 89, 214, 0.36);
  }
}

.banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.58));
}

.banner-disclaimer {
  position: absolute;
  left: 50%;
  bottom: clamp(10px, 1.25vw, 18px);
  z-index: 5;
  max-width: min(78%, 820px);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(244, 221, 176, 0.82);
  font-size: clamp(9px, 0.7vw, 12px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 1px 2px #000, 0 0 8px rgba(201, 151, 88, 0.2);
  transform: translateX(-50%);
}

.banner .banner-view-toggle {
  position: absolute;
  right: clamp(14px, 2vw, 26px);
  bottom: clamp(34px, 4vw, 56px);
  z-index: 5;
}

.banner .banner-donate-button {
  position: absolute;
  right: clamp(14px, 2vw, 26px);
  bottom: calc(clamp(34px, 4vw, 56px) + 46px);
  z-index: 5;
  display: block;
  width: 172px;
  aspect-ratio: 3.35;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

@keyframes paypal-glass-shimmer {
  0%,
  72%,
  100% {
    transform: translateX(-180%) skewX(-18deg);
    opacity: 0;
  }
  78% {
    opacity: 0.08;
  }
  88% {
    opacity: 0.34;
  }
  96% {
    transform: translateX(360%) skewX(-18deg);
    opacity: 0;
  }
}

.banner .banner-donate-button::after {
  position: absolute;
  top: -35%;
  left: 0;
  width: 28%;
  height: 170%;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08) 30%,
    rgba(255, 255, 255, 0.58) 50%,
    rgba(255, 255, 255, 0.08) 70%,
    transparent
  );
  filter: blur(2px);
  pointer-events: none;
  transform: translateX(-180%) skewX(-18deg);
  animation: paypal-glass-shimmer 30s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .banner .banner-donate-button::after {
    animation: none;
    opacity: 0;
  }
}

/* Compact two-column home market summary. */
.home-market-panel {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 7px;
}

.home-stats-panel {
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(58px, auto) auto;
  gap: 0;
  padding: 0;
  border: 1px solid rgba(201, 151, 88, 0.32);
  background: rgba(8, 6, 4, 0.55);
}

.home-stats-title {
  grid-column: 1 / -1;
  grid-row: 1;
  padding: 6px 10px 4px;
  border-bottom: 1px solid rgba(201, 151, 88, 0.2);
  font-size: clamp(15px, 1.2vw, 20px);
}

.home-stat-heading {
  display: grid;
  min-width: 0;
  min-height: 28px;
  place-items: center;
  border-bottom: 1px solid rgba(201, 151, 88, 0.28);
  color: var(--sand-soft);
  font-size: clamp(10px, 0.8vw, 13px);
  font-weight: 900;
  text-transform: uppercase;
}

.home-stat-heading:nth-of-type(2) {
  border-left: 1px solid rgba(201, 151, 88, 0.28);
}

.home-stat-feature {
  display: flex !important;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: linear-gradient(90deg, rgba(125, 85, 181, 0.16), rgba(8, 6, 4, 0.18));
}

.home-stat-feature + .home-stat-feature {
  border-left: 1px solid rgba(201, 151, 88, 0.3);
  background: linear-gradient(90deg, rgba(8, 6, 4, 0.18), rgba(125, 85, 181, 0.08));
}

.home-stat-feature .solari-credit-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
}

.home-stat-feature strong {
  overflow: hidden;
  color: #f4ddb0;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-stat-cap {
  justify-content: center;
}

.home-stat-secondary-grid {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  border-top: 1px solid rgba(201, 151, 88, 0.22);
}

.home-stat-secondary-grid .home-stat-tile {
  min-width: 0;
  padding: 6px 10px;
  border-left: 1px solid rgba(201, 151, 88, 0.18);
}

.home-stat-secondary-grid .home-stat-tile:first-child {
  border-left: 0;
}

.home-control {
  grid-column: 1;
  grid-row: 2;
}

@media (max-width: 900px) {
  .home-stat-feature {
    padding: 8px 10px;
  }

  .home-stat-feature strong {
    font-size: clamp(20px, 6vw, 30px);
  }

  .home-stat-secondary-grid .home-stat-tile {
    padding-inline: 7px;
  }
}

@media (max-width: 520px) {
  .home-stat-feature {
    gap: 7px;
    padding-inline: 7px;
  }

  .home-stat-feature .solari-credit-icon {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }

  .home-stat-feature strong {
    font-size: clamp(17px, 5.8vw, 24px);
  }

  .home-stat-secondary-grid .home-stat-tile {
    padding-inline: 5px;
  }
}

.banner .banner-donate-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
}

.banner .banner-donate-button:hover,
.banner .banner-donate-button:focus-visible {
  border: 0;
  box-shadow: none;
  outline: none;
}

.exchange-frame {
  position: relative;
  margin: 8px 0 0;
  padding: 18px 22px 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(217, 111, 45, 0.08), transparent 18%, transparent 82%, rgba(125, 85, 181, 0.08)),
    var(--panel);
  box-shadow:
    inset 0 0 0 1px rgba(234, 211, 165, 0.08),
    inset 0 0 72px rgba(0, 0, 0, 0.72),
    0 24px 64px rgba(0, 0, 0, 0.48);
}

.exchange-frame::before {
  position: absolute;
  inset: 8px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(201, 151, 88, 0.18);
  background:
    linear-gradient(135deg, var(--line) 0 1px, transparent 1px 22px) left top / 88px 88px no-repeat,
    linear-gradient(225deg, var(--line) 0 1px, transparent 1px 22px) right top / 88px 88px no-repeat,
    linear-gradient(45deg, var(--line) 0 1px, transparent 1px 22px) left bottom / 88px 88px no-repeat,
    linear-gradient(315deg, var(--line) 0 1px, transparent 1px 22px) right bottom / 88px 88px no-repeat;
}

.exchange-frame::after {
  display: none;
}

.console-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(12px, 1vw, 22px);
  max-height: 156px;
  padding: 2px 0 12px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-faint);
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height var(--motion-sync) var(--motion-sync-ease),
    opacity var(--motion-sync) var(--motion-sync-ease),
    padding var(--motion-sync) var(--motion-sync-ease),
    border-color var(--motion-sync) var(--motion-sync-ease),
    transform var(--motion-sync) var(--motion-sync-ease);
}

.console-head > div:first-child {
  display: none;
}

.console-head h1 {
  display: none;
}

.tv-wordmark {
  display: none;
}

.eyebrow,
.label {
  display: block;
  margin: 0 0 6px;
  color: var(--sand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1;
  letter-spacing: 0;
  color: var(--sand-soft);
  text-shadow: 0 2px 0 #24160e, 0 0 20px rgba(217, 111, 45, 0.24);
}

.market-clock {
  display: none;
  position: relative;
  gap: 4px;
  justify-items: end;
  color: var(--muted);
}

.market-clock::after {
  display: none;
}

.market-clock span {
  color: var(--sand);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.market-clock strong {
  color: var(--sand-soft);
  font-size: 21px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(217, 111, 45, 0.34);
}

.home-control {
  display: grid;
  grid-template-rows: 30px;
  gap: 0;
  min-width: 0;
  min-height: 0;
  align-content: stretch;
  padding: 0;
}

.home-action-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.32fr) 30px minmax(180px, 1fr) minmax(132px, auto);
  align-items: stretch;
  gap: 5px;
  min-width: 0;
}

.home-region-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.home-region-pills button {
  min-height: 25px;
  min-width: 42px;
  border: 1px solid rgba(201, 151, 88, 0.3);
  background: rgba(8, 6, 4, 0.72);
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  padding: 0 10px;
  text-transform: uppercase;
}

.home-region-pills button.active,
.home-region-pills button:hover {
  border-color: rgba(201, 151, 88, 0.58);
  background: rgba(125, 85, 181, 0.24);
  color: var(--sand-soft);
}

.home-icon-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(201, 151, 88, 0.38);
  background:
    linear-gradient(180deg, rgba(201, 151, 88, 0.16), rgba(48, 30, 12, 0.28)),
    #080604;
  color: var(--sand);
  box-shadow:
    inset 0 0 10px rgba(201, 151, 88, 0.12),
    0 0 8px rgba(201, 151, 88, 0.08);
}

.home-icon-label img {
  display: none;
}

.home-icon-label::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background:
    linear-gradient(180deg, #ffe6a8 0%, #d69b3f 52%, #8b5a1e 100%);
  mask: url("assets/TP_ICo.png") center / contain no-repeat;
  -webkit-mask: url("assets/TP_ICo.png") center / contain no-repeat;
  filter: drop-shadow(0 0 6px rgba(232, 185, 93, 0.38));
}

.home-control select {
  min-height: 30px;
  height: 30px;
  width: 100%;
  border: 1px solid rgba(201, 151, 88, 0.42);
  background: #080604;
  color: var(--sand-soft);
  padding: 0 10px;
  outline: none;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.35);
}

.home-control select:focus {
  border-color: var(--violet);
}

.contribute-button {
  min-height: 30px;
  height: 30px;
  align-self: stretch;
  border: 1px solid rgba(201, 151, 88, 0.32);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(125, 85, 181, 0.3), rgba(49, 25, 62, 0.34)),
    #0a0604;
  color: var(--sand-soft);
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
  padding: 0 7px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow:
    inset 0 0 0 1px rgba(234, 211, 165, 0.06),
    inset 0 0 14px rgba(0, 0, 0, 0.36);
}

.contribute-button:hover,
.contribute-button:focus-visible {
  border-color: rgba(201, 151, 88, 0.68);
  background:
    linear-gradient(180deg, rgba(125, 85, 181, 0.44), rgba(63, 34, 78, 0.5)),
    #100806;
  outline: none;
}

.home-stats-panel {
  display: grid;
  grid-template-columns: minmax(120px, 1.35fr) repeat(5, minmax(72px, 1fr));
  grid-template-rows: minmax(38px, auto);
  align-items: stretch;
  gap: 0;
  min-width: 0;
  min-height: 0;
  padding: 0;
}

.home-stats-title {
  display: grid;
  align-content: center;
  min-width: 0;
  overflow: hidden;
  padding: 4px 10px 4px 0;
  color: var(--sand-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 800;
  line-height: 0.95;
  text-overflow: ellipsis;
  text-shadow: 0 1px 0 #24160e, 0 0 16px rgba(201, 151, 88, 0.16);
  white-space: nowrap;
}

.home-stats-panel div {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
}

.home-price-hero {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  align-content: center !important;
  gap: 2px 10px !important;
  min-height: 82px;
  padding: 10px 14px;
  border: 1px solid rgba(201, 151, 88, 0.28);
  background:
    radial-gradient(circle at 18% 50%, rgba(201, 151, 88, 0.18), transparent 4.5rem),
    linear-gradient(90deg, rgba(125, 85, 181, 0.18), rgba(8, 6, 4, 0.34));
}

.solari-credit-icon {
  width: 40px;
  height: 40px;
  background: url("assets/solari-credit.png") center / contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(201, 151, 88, 0.24));
}

.home-price-hero strong {
  color: #f4ddb0;
  font-size: clamp(22px, 2.1vw, 34px);
  line-height: 0.95;
  text-shadow: 0 0 16px rgba(201, 151, 88, 0.18);
}

.home-price-hero div {
  display: contents;
}

.home-price-hero small {
  grid-column: 1 / -1;
  padding-left: 2px;
}

.home-stat-tile {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 4px 8px;
  border-left: 1px solid rgba(201, 151, 88, 0.18);
  background: rgba(0, 0, 0, 0.12);
}

.home-market-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.28fr);
  grid-template-rows: auto auto;
  gap: 7px 14px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid rgba(201, 151, 88, 0.42);
  background:
    linear-gradient(180deg, rgba(201, 151, 88, 0.05), transparent 40%),
    rgba(8, 6, 4, 0.7);
  box-shadow:
    inset 0 0 0 1px rgba(234, 211, 165, 0.05),
    inset 0 0 18px rgba(0, 0, 0, 0.36);
}

.home-stats-panel strong {
  color: var(--sand-soft);
  font-size: 12px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.home-stats-panel small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.view-toggle {
  display: flex;
  align-items: center;
  align-self: start;
  gap: 0;
  padding: 3px;
  min-height: 38px;
  border: 1px solid rgba(201, 151, 88, 0.34);
  border-radius: 8px;
  background: rgba(8, 6, 4, 0.82);
  box-shadow:
    inset 0 0 16px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(234, 211, 165, 0.04);
}

.console-view-toggle {
  display: none !important;
}

.view-toggle button {
  min-height: 30px;
  min-width: 82px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  padding: 0 12px;
  text-transform: uppercase;
}

.view-toggle button.active,
.view-toggle button:hover {
  border-color: rgba(201, 151, 88, 0.64);
  background:
    linear-gradient(180deg, rgba(125, 85, 181, 0.38), rgba(40, 23, 56, 0.5)),
    rgba(201, 151, 88, 0.08);
  color: var(--sand-soft);
  box-shadow: 0 0 14px rgba(125, 85, 181, 0.18);
}

.ticker-band {
  position: relative;
  display: block;
  align-items: stretch;
  min-height: 0;
  max-height: none;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(201, 151, 88, 0.38);
  background:
    linear-gradient(90deg, rgba(201, 151, 88, 0.08), transparent 4%, transparent 96%, rgba(201, 151, 88, 0.08)),
    #090604;
  box-shadow:
    inset 2px 0 0 rgba(234, 211, 165, 0.1),
    inset -2px 0 0 rgba(234, 211, 165, 0.1),
    inset 0 0 18px rgba(0, 0, 0, 0.38);
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height var(--motion-sync) var(--motion-sync-ease),
    min-height var(--motion-sync) var(--motion-sync-ease),
    opacity var(--motion-sync) var(--motion-sync-ease),
    border-color var(--motion-sync) var(--motion-sync-ease),
    transform var(--motion-sync) var(--motion-sync-ease);
}

.ticker-band::before,
.ticker-band::after {
  position: absolute;
  top: 0;
  z-index: 2;
  width: 48px;
  height: 100%;
  content: "";
  pointer-events: none;
}

.ticker-band::before {
  left: 0;
  border-left: 1px solid rgba(234, 211, 165, 0.42);
  background:
    linear-gradient(90deg, rgba(201, 151, 88, 0.28), rgba(201, 151, 88, 0.08) 18%, rgba(9, 6, 4, 0.68) 52%, transparent);
}

.ticker-band::after {
  right: 0;
  border-right: 1px solid rgba(234, 211, 165, 0.42);
  background:
    linear-gradient(270deg, rgba(201, 151, 88, 0.28), rgba(201, 151, 88, 0.08) 18%, rgba(9, 6, 4, 0.68) 52%, transparent);
}

.ticker-label {
  display: none;
}

.ticker-label::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 42%, rgba(0, 0, 0, 0.32)),
    radial-gradient(circle at 50% 52%, transparent 0 58%, rgba(0, 0, 0, 0.28) 82%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

.ticker-label img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.ticker-lanes {
  display: grid;
  min-width: 0;
  align-content: start;
}

.ticker-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  min-height: 34px;
  border-bottom: 1px solid rgba(201, 151, 88, 0.1);
}

.ticker-row:last-child {
  border-bottom: 0;
}

.ticker-row--all-market {
  display: block;
  min-height: 42px;
}

.ticker-row--all-market .ticker-track {
  min-height: 42px;
  animation-duration: 300s;
}

.ticker-ad-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
  min-height: 70px;
  margin: 14px 0;
  padding: 8px 14px;
  overflow: hidden;
  border: 1px solid rgba(201, 151, 88, 0.36);
  background:
    linear-gradient(90deg, rgba(201, 151, 88, 0.1), transparent 4%, transparent 96%, rgba(201, 151, 88, 0.1)),
    linear-gradient(90deg, rgba(125, 85, 181, 0.18), rgba(22, 13, 7, 0.92) 22%, rgba(201, 151, 88, 0.08)),
    #070403;
  box-shadow:
    inset 2px 0 0 rgba(234, 211, 165, 0.1),
    inset -2px 0 0 rgba(234, 211, 165, 0.1),
    inset 0 0 18px rgba(0, 0, 0, 0.34);
  color: #bda88b;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  transition: margin var(--motion-sync) var(--motion-sync-ease);
}

.ticker-ad-row::before,
.ticker-ad-row::after {
  position: absolute;
  top: 0;
  z-index: 1;
  width: 38px;
  height: 100%;
  content: "";
  pointer-events: none;
}

.ticker-ad-row::before {
  left: 0;
  border-left: 1px solid rgba(234, 211, 165, 0.42);
  background:
    linear-gradient(90deg, rgba(201, 151, 88, 0.24), rgba(201, 151, 88, 0.07) 22%, rgba(7, 4, 3, 0.54) 58%, transparent);
}

.ticker-ad-row::after {
  right: 0;
  border-right: 1px solid rgba(234, 211, 165, 0.42);
  background:
    linear-gradient(270deg, rgba(201, 151, 88, 0.24), rgba(201, 151, 88, 0.07) 22%, rgba(7, 4, 3, 0.54) 58%, transparent);
}

body.ticker-collapsed:not(.tv-mode) .console-head {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-14px);
}

body.ticker-collapsed:not(.tv-mode) .ticker-band {
  min-height: 0;
  max-height: 0;
  border-block-color: transparent;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-14px);
}

body.ticker-collapsed:not(.tv-mode) .ticker-ad-row {
  margin-top: 0;
}

body.ticker-collapsed:not(.tv-mode) .table-wrap {
  max-height: calc(100vh - 176px);
}

.mock-ad {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 10px 8px 28px;
  border: 1px solid rgba(234, 211, 165, 0.22);
  background:
    linear-gradient(135deg, rgba(234, 211, 165, 0.08), transparent 44%, rgba(125, 85, 181, 0.12)),
    rgba(13, 9, 6, 0.88);
}

.donation-ad {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 10px 8px 28px;
  border: 1px solid rgba(201, 151, 88, 0.42);
  background:
    linear-gradient(135deg, rgba(125, 85, 181, 0.2), transparent 46%, rgba(234, 211, 165, 0.1)),
    rgba(26, 13, 28, 0.9);
}

.donation-embed {
  display: grid;
  min-width: 110px;
  min-height: 34px;
  place-items: center;
  color: var(--sand-soft);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.donation-embed > div {
  display: grid;
  place-items: center;
}

.donation-embed form {
  margin: 0 !important;
}

.donation-embed input[type="submit"] {
  min-width: 100px !important;
  height: 30px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(234, 211, 165, 0.68) !important;
  border-radius: 4px !important;
  background: linear-gradient(180deg, #f6d87b, #c28a2c) !important;
  box-shadow: 0 0 12px rgba(216, 166, 77, 0.24);
  color: #1a0d05 !important;
  font-size: 10px !important;
}

.spice-donate-button {
  display: inline-grid;
  min-width: 100px;
  height: 30px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid rgba(234, 211, 165, 0.68);
  border-radius: 4px;
  background: linear-gradient(180deg, #f6d87b, #c28a2c);
  box-shadow: 0 0 12px rgba(216, 166, 77, 0.24);
  color: #1a0d05;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.spice-donate-button:hover,
.spice-donate-button:focus-visible {
  background: linear-gradient(180deg, #ffe7a0, #d39a32);
  color: #1a0d05;
}

.spice-donate-button.spice-donate-image {
  width: 112px;
  min-width: 112px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background-color: transparent;
  background-image: url("assets/paypal-donate-button.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 124px 124px;
  box-shadow: none;
}

.spice-donate-button.spice-donate-image:hover,
.spice-donate-button.spice-donate-image:focus-visible {
  background-color: transparent;
  background-image: url("assets/paypal-donate-button.png");
  box-shadow: 0 0 12px rgba(48, 105, 205, 0.4);
}

.donation-embed img {
  max-width: 90px;
  max-height: 18px;
}

.real-ad-shell {
  position: relative;
  z-index: 2;
  min-height: 70px;
  padding: 16px 12px 8px;
  border: 1px solid rgba(234, 211, 165, 0.22);
  background:
    linear-gradient(135deg, rgba(234, 211, 165, 0.06), transparent 46%, rgba(125, 85, 181, 0.1)),
    rgba(13, 9, 6, 0.78);
}

.real-ad-shell.image-ad {
  min-height: 74px;
}

.real-ad-shell.text-only {
  min-height: 58px;
  padding-block: 16px 6px;
  background:
    linear-gradient(90deg, rgba(201, 151, 88, 0.1), rgba(13, 9, 6, 0.84) 24%, rgba(125, 85, 181, 0.08)),
    rgba(10, 7, 5, 0.88);
}

.real-ad-shell.single {
  grid-column: 1 / -1;
}

.real-ad-shell .adsbygoogle {
  min-height: 54px;
}

.real-ad-shell.ad-unfilled .adsbygoogle {
  display: none !important;
}

.real-ad-shell.ad-unfilled::after {
  display: grid;
  min-height: 54px;
  place-items: center;
  color: rgba(216, 166, 77, 0.68);
  content: "Advertisement space";
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

/* Keep empty AdSense slots invisible without shifting a filled slot out of place. */
.real-ad-shell.ad-unfilled {
  visibility: hidden;
  min-height: 0;
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.real-ad-shell.ad-unfilled .adsbygoogle,
.real-ad-shell.ad-unfilled::after {
  display: none !important;
}

.ticker-ad-row.ad-all-unfilled {
  display: none;
}

/* Do not show a framed placeholder while AdSense is deciding whether to fill. */
.ticker-ad-row {
  display: grid;
  min-height: 86px;
  margin: 14px 0;
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.ticker-ad-row.ad-all-unfilled,
.ticker-ad-row:empty {
  display: grid;
  min-height: 86px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.ticker-ad-row::before,
.ticker-ad-row::after {
  display: none;
}

.real-ad-shell {
  visibility: hidden;
  min-height: 0;
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.real-ad-shell.ad-filled {
  visibility: visible;
  min-height: 70px;
  padding: 16px 12px 8px;
  border-color: rgba(234, 211, 165, 0.22);
  background: linear-gradient(135deg, rgba(13, 8, 7, 0.9), rgba(39, 19, 31, 0.72));
  box-shadow: inset 0 0 0 1px rgba(109, 73, 40, 0.18);
}

.real-ad-shell.ad-filled.image-ad {
  min-height: 74px;
}

.real-ad-shell.ad-filled.text-only {
  min-height: 58px;
  padding-block: 16px 6px;
}

.real-ad-shell.text-only .adsbygoogle {
  min-height: 42px;
}

.ad-label {
  position: absolute;
  top: 5px;
  left: 6px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.ad-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(201, 151, 88, 0.34);
  background: linear-gradient(180deg, rgba(201, 151, 88, 0.28), rgba(88, 48, 28, 0.42));
  color: var(--sand-soft);
  font-size: 12px;
  font-weight: 900;
}

.ad-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ad-copy strong {
  overflow: hidden;
  color: var(--sand-soft);
  font-size: 12px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.ad-copy em {
  overflow: hidden;
  color: #a98f72;
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-ad b {
  display: inline-grid;
  min-width: 44px;
  min-height: 26px;
  place-items: center;
  border: 1px solid rgba(201, 151, 88, 0.34);
  color: var(--sand-soft);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(125, 85, 181, 0.2);
}

.ticker-region {
  z-index: 3;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(201, 151, 88, 0.16);
  background: rgba(12, 8, 5, 0.74);
  color: var(--sand);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.ticker-viewport {
  overflow: hidden;
  min-width: 0;
  contain: paint;
}

.ticker-track {
  display: flex;
  width: max-content;
  min-height: 32px;
  align-items: center;
  animation: crawl 180s linear infinite;
}

.ticker-loop {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: max-content;
}

.ticker-row:nth-child(2n) .ticker-track {
  animation-duration: 210s;
}

.ticker-row.region-na-east .ticker-track,
.ticker-row.region-na .ticker-track,
.ticker-row.region-na-west .ticker-track,
.ticker-row.region-north-america .ticker-track {
  animation-duration: 360s;
}

.ticker-row.region-eu-ams .ticker-track,
.ticker-row.region-eu-par .ticker-track,
.ticker-row.region-europe .ticker-track {
  animation-duration: 381.818s;
}

.ticker-row.region-as .ticker-track {
  animation-duration: 112.5s;
}

.ticker-row.region-oc .ticker-track,
.ticker-row.region-sa .ticker-track,
.ticker-row.region-rest .ticker-track {
  animation-duration: 75s;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  white-space: nowrap;
  color: #bda07c;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  border-right: 1px solid rgba(201, 151, 88, 0.12);
}

.symbol {
  color: var(--sand);
  font-weight: 900;
}

.ticker-item .server-full {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}

.symbol::before {
  content: none;
}

.solari-icon {
  display: inline-block;
  width: 1.18em;
  height: 1.18em;
  margin-left: 1px;
  margin-right: -3px;
  vertical-align: -0.2em;
  background: url("assets/solari-coin.png") center / contain no-repeat;
}

.ticker-price {
  color: #d8bea0;
}

td .solari-icon {
  margin-right: 0.34em;
}

.up {
  color: var(--green);
}

.down {
  color: var(--red);
}

@keyframes crawl {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes crawl-up {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

@keyframes crawl-down {
  from {
    transform: translateY(-50%);
  }
  to {
    transform: translateY(0);
  }
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.summary-panel,
.board {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(11, 8, 6, 0.78);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.44);
}

.summary-panel {
  display: none;
  gap: 15px;
  align-content: start;
  padding: 16px;
}

.price-line {
  color: var(--sand-soft);
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price-line small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.price-line.small {
  font-size: 20px;
}

.manifest-panel {
  display: grid;
  gap: 4px;
  padding-top: 2px;
}

.manifest-panel strong {
  color: var(--sand-soft);
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
}

.manifest-panel span:not(.label) {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.manifest-fresh strong {
  color: var(--green);
}

.manifest-aging strong {
  color: var(--sand);
}

.manifest-stale strong,
.data-stale #market-status {
  color: var(--red);
}

.support-actions {
  display: flex;
  gap: 8px;
}

.support-actions a {
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(201, 151, 88, 0.28);
  color: var(--sand-soft);
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  background: rgba(8, 6, 4, 0.72);
}

.support-actions a:hover {
  border-color: rgba(201, 151, 88, 0.62);
  background: rgba(125, 85, 181, 0.22);
}

label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 32px;
  border: 1px solid rgba(201, 151, 88, 0.22);
  background: #080604;
  color: var(--sand-soft);
  padding: 0 34px 0 11px;
  outline: none;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.35);
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  appearance: none;
  display: none;
}

input:focus {
  border-color: var(--violet);
}

.glyph-chart {
  position: relative;
  min-height: 94px;
  margin-top: 4px;
  border-top: 1px solid var(--line-faint);
  opacity: 0.65;
  overflow: hidden;
}

.glyph-chart::before {
  position: absolute;
  left: 4px;
  bottom: 12px;
  width: 64px;
  height: 64px;
  content: "";
  border: 1px solid rgba(201, 151, 88, 0.38);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49%, rgba(201, 151, 88, 0.35) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(201, 151, 88, 0.35) 50%, transparent 51%);
}

.glyph-chart::after {
  position: absolute;
  right: 2px;
  bottom: 26px;
  width: 98px;
  height: 42px;
  content: "";
  background:
    linear-gradient(152deg, transparent 0 11%, rgba(201, 151, 88, 0.42) 12% 14%, transparent 15% 31%, rgba(201, 151, 88, 0.42) 32% 34%, transparent 35% 52%, rgba(201, 151, 88, 0.42) 53% 55%, transparent 56%),
    linear-gradient(0deg, transparent 0 48%, rgba(125, 85, 181, 0.42) 49% 51%, transparent 52%);
}

.glyph-chart span {
  position: absolute;
  bottom: 7px;
  width: 1px;
  height: 72px;
  background: rgba(201, 151, 88, 0.16);
}

.glyph-chart span:nth-child(1) {
  left: 25%;
}

.glyph-chart span:nth-child(2) {
  left: 48%;
}

.glyph-chart span:nth-child(3) {
  left: 66%;
}

.glyph-chart span:nth-child(4) {
  left: 84%;
}

.board {
  overflow: hidden;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border-bottom: 1px solid var(--line-faint);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tabs button {
  min-width: 42px;
  min-height: 30px;
  border: 1px solid rgba(201, 151, 88, 0.22);
  background: rgba(10, 7, 5, 0.72);
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  text-transform: uppercase;
}

.tabs button.active,
.tabs button:hover {
  border-color: rgba(201, 151, 88, 0.72);
  background: linear-gradient(180deg, rgba(141, 77, 38, 0.5), rgba(42, 24, 15, 0.5));
  color: var(--sand-soft);
}

.chart-metric-select {
  min-width: 144px;
  min-height: 30px;
  margin-left: auto;
  border: 1px solid rgba(201, 151, 88, 0.3);
  background: #0a0705;
  color: var(--sand-soft);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 0 28px 0 10px;
}

.chart-metric-select:focus {
  border-color: var(--violet);
  outline: 0;
  box-shadow: 0 0 0 1px rgba(125, 85, 181, 0.24);
}

.search-wrap {
  position: relative;
  width: min(360px, 42%);
}

.search-wrap::after {
  position: absolute;
  right: 9px;
  top: 50%;
  width: 14px;
  height: 14px;
  content: "";
  border: 1px solid rgba(201, 151, 88, 0.38);
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 5px;
  top: 50%;
  display: grid;
  width: 22px;
  height: 22px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
}

.search-wrap.has-query .search-clear {
  opacity: 1;
  pointer-events: auto;
}

.search-clear::before,
.search-clear::after {
  position: absolute;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: var(--sand-soft);
  content: "";
  box-shadow: 0 0 5px rgba(201, 151, 88, 0.24);
}

.search-clear::before {
  transform: rotate(45deg);
}

.search-clear::after {
  transform: rotate(-45deg);
}

.search-clear:hover::before,
.search-clear:hover::after,
.search-clear:focus-visible::before,
.search-clear:focus-visible::after {
  background: #fff0b8;
}

.search-clear:focus-visible {
  outline: 1px solid rgba(201, 151, 88, 0.52);
  outline-offset: 1px;
}

.table-wrap {
  position: relative;
  overflow: auto;
  width: 100%;
  max-width: 100%;
  max-height: calc(100vh - 282px);
  background: #090604;
}

@media (min-width: 1500px) {
  .banner {
    aspect-ratio: 4 / 1;
  }

  .exchange-frame {
    padding: clamp(16px, 1.1vw, 24px) clamp(18px, 1.35vw, 30px) clamp(18px, 1.4vw, 32px);
  }

  .console-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-stats-panel {
    grid-template-columns: minmax(150px, 1.4fr) repeat(5, minmax(86px, 1fr));
  }
}

@media (min-width: 1900px) and (min-aspect-ratio: 16 / 10) {
  .banner {
    aspect-ratio: 4.65 / 1;
  }

  .ticker-band {
    min-height: 0;
    max-height: none;
  }

  .console-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-stats-panel {
    grid-template-columns: minmax(180px, 1.5fr) repeat(5, minmax(98px, 1fr));
  }

  .table-wrap {
    max-height: calc(100vh - 34vw);
  }
}

table {
  width: 100%;
  min-width: 790px;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  height: var(--table-head-height);
  padding: 0 13px;
  border-bottom: 1px solid rgba(201, 151, 88, 0.1);
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

th {
  position: sticky;
  top: -1px;
  z-index: 12;
  background:
    linear-gradient(180deg, #17100c 0%, #120c08 76%, #090604 100%);
  color: var(--sand);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow:
    0 -10px 0 #090604,
    inset 0 -1px 0 rgba(201, 151, 88, 0.28),
    0 4px 0 #090604,
    0 8px 10px rgba(0, 0, 0, 0.45);
}

th button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-transform: inherit;
}

th button::after {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(201, 151, 88, 0.45);
  content: "";
  opacity: 0.52;
}

th button.active {
  color: var(--sand-soft);
}

th button.active::after {
  border-top-color: var(--violet);
  opacity: 1;
}

th button.active[data-dir="asc"]::after {
  transform: rotate(180deg);
}

th button:hover {
  color: var(--sand-soft);
}

td {
  color: #bda88b;
}

tbody tr:hover {
  background: rgba(217, 111, 45, 0.08);
}

tbody tr[data-server] {
  cursor: pointer;
}

tbody tr[data-server]:focus-visible {
  outline: 1px solid rgba(201, 151, 88, 0.72);
  outline-offset: -2px;
}

/* Bars are keyboard-focusable buttons (WCAG 2.1.1). The browser draws its own focus ring on a focused SVG
   element even for a mouse click, which read as a stray white box around the clicked bar — so the ring is
   suppressed on plain :focus and drawn in site gold only for keyboard focus (:focus-visible). Clicking a bar
   must not select the chart's labels either. */
.barhit:focus:not(:focus-visible) {
  outline: none;
}

.barhit:focus-visible {
  /* !important on purpose: a keyboard-focused SVG rect kept computing outline-style:none from an
     unidentified higher-priority declaration even though this rule matched (its outline-offset applied);
     the important flag is the only form that reliably paints the indicator. Scoped to the keyboard ring. */
  outline: 2px solid #ffd98a !important;
  outline-offset: 2px;
}

#economy-chart svg {
  -webkit-user-select: none;
  user-select: none;
}

tbody tr.selected-row {
  background:
    linear-gradient(90deg, rgba(125, 85, 181, 0.2), rgba(201, 151, 88, 0.08) 46%, rgba(125, 85, 181, 0.1)),
    rgba(18, 11, 24, 0.56);
}

tbody tr.search-match {
  background:
    linear-gradient(90deg, rgba(125, 85, 181, 0.18), rgba(125, 85, 181, 0.04) 46%, transparent),
    rgba(18, 11, 24, 0.42);
  box-shadow: inset 3px 0 0 rgba(169, 113, 224, 0.72), inset 0 0 18px rgba(125, 85, 181, 0.14);
}

tbody tr.search-match:hover {
  background:
    linear-gradient(90deg, rgba(125, 85, 181, 0.24), rgba(125, 85, 181, 0.08) 50%, rgba(217, 111, 45, 0.06)),
    rgba(18, 11, 24, 0.5);
}

tbody tr.home-row {
  background:
    linear-gradient(90deg, rgba(201, 151, 88, 0.16), rgba(125, 85, 181, 0.08) 42%, transparent),
    rgba(18, 12, 7, 0.56);
  box-shadow: inset 3px 0 0 rgba(201, 151, 88, 0.78), inset 0 -1px 0 rgba(201, 151, 88, 0.18);
}

tbody tr.home-row td {
  position: sticky;
  top: calc(var(--table-head-height) - 1px);
  z-index: 11;
  background:
    linear-gradient(90deg, rgba(201, 151, 88, 0.22), rgba(125, 85, 181, 0.12) 42%, rgba(18, 12, 7, 0.98)),
    #130c08;
  border-bottom-color: transparent;
  box-shadow:
    inset 3px 0 0 rgba(201, 151, 88, 0.78),
    inset 0 -1px 0 rgba(201, 151, 88, 0.22),
    0 3px 0 #090604,
    0 9px 12px rgba(0, 0, 0, 0.42);
}

tbody tr.home-row + tr td {
  border-top: 8px solid #090604;
}

.chart-row td {
  position: relative;
  z-index: 1;
  height: auto;
  padding: 0 12px 14px;
  border-bottom: 1px solid rgba(201, 151, 88, 0.2);
  background:
    linear-gradient(90deg, rgba(55, 28, 75, 0.38), rgba(8, 5, 12, 0.98) 28%, rgba(31, 15, 45, 0.94)),
    #0b0610;
  overflow: hidden;
  transition:
    padding var(--motion-sync) var(--motion-sync-ease),
    border-color var(--motion-sync) var(--motion-sync-ease);
}

.chart-card {
  display: grid;
  grid-template-columns: 107px minmax(0, 1fr);
  grid-template-areas:
    "icon meta"
    "icon controls"
    "chart chart";
  grid-template-rows: 48px minmax(59px, max-content) minmax(0, 1fr);
  overflow: hidden;
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
  border: 1px solid rgba(201, 151, 88, 0.42);
  background:
    linear-gradient(180deg, rgba(125, 85, 181, 0.16), rgba(10, 5, 15, 0.9)),
    #100818;
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, 0.48),
    0 18px 34px rgba(0, 0, 0, 0.24);
  transition:
    max-height var(--motion-sync) var(--motion-sync-ease),
    opacity var(--motion-sync) var(--motion-sync-ease),
    transform var(--motion-sync) var(--motion-sync-ease),
    border-color var(--motion-sync) var(--motion-sync-ease);
}

.chart-detail-icon {
  grid-area: icon;
  display: grid;
  min-width: 0;
  min-height: 107px;
  place-items: center;
  padding: 0;
  border-right: 1px solid rgba(201, 151, 88, 0.22);
  background:
    radial-gradient(circle at 50% 38%, rgba(149, 83, 207, 0.22), transparent 50%),
    rgba(8, 4, 13, 0.62);
}

.chart-detail-icon > .item-icon-card {
  width: 107px;
  height: 107px;
  flex-basis: 107px;
  border-width: 1px;
}

.chart-detail-icon > .spice-ex-icon-viewport--sheet {
  width: 107px;
  height: 107px;
  flex-basis: 107px;
}

.chart-detail-icon .item-icon-card__art {
  inset: 8%;
  width: 84%;
  height: 84%;
}

.chart-detail-icon .item-icon-card__quality-mask,
.chart-detail-icon .item-icon-card__quality-ring {
  inset: 8%;
  width: 84%;
  height: 84%;
}

.chart-detail-main {
  display: contents;
  min-width: 0;
}

.chart-row.opening .chart-card {
  animation: chart-open var(--motion-sync) var(--motion-sync-ease) both;
}

.chart-row.closing td {
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
}

.chart-row.closing .chart-card {
  border-color: transparent;
  animation: chart-close var(--motion-sync) var(--motion-sync-ease) both;
}

.chart-meta {
  grid-area: meta;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(201, 151, 88, 0.22);
  color: #bda88b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.chart-meta strong {
  color: var(--sand-soft);
  font-size: 13px;
}

.chart-item-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sand-soft);
}

.chart-item-label > img {
  width: 34px;
  height: 24px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 7px rgba(164, 85, 255, 0.28))
    drop-shadow(0 1px 0 rgba(201, 151, 88, 0.18));
}

.chart-item-label .item-icon-card {
  width: 30px;
  height: 24px;
  flex-basis: 30px;
}

.chart-contribute {
  min-height: 26px;
  white-space: nowrap;
}

.chart-controls {
  grid-area: controls;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(232px, 0.34fr);
  align-items: stretch;
  border-bottom: 1px solid rgba(201, 151, 88, 0.16);
  background: rgba(5, 3, 8, 0.42);
  min-height: 59px;
}

.chart-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(164px, 1fr));
  gap: 10px;
  padding: 6px 14px;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(125, 85, 181, 0.1), rgba(8, 5, 12, 0.42)),
    transparent;
}

.chart-compare label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.chart-compare span {
  color: var(--sand);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.chart-compare select {
  width: 100%;
  min-height: 30px;
  border: 1px solid rgba(201, 151, 88, 0.28);
  background: #080604;
  color: var(--sand-soft);
  padding: 0 8px;
  outline: none;
}

.chart-compare-field {
  display: flex;
  gap: 5px;
}

.chart-compare-field select {
  min-width: 0;
  flex: 1;
}

.chart-compare-add,
.chart-compare-remove {
  display: grid;
  place-items: center;
  min-height: 30px;
  border: 1px solid rgba(201, 151, 88, 0.34);
  border-radius: 3px;
  background: rgba(20, 11, 29, 0.86);
  color: var(--sand-soft);
  font: inherit;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.chart-compare-add {
  align-self: end;
  margin-bottom: 0;
  width: 30px;
  font-size: 20px;
}

.chart-compare-remove {
  width: 30px;
  flex: 0 0 30px;
  font-size: 15px;
}

.chart-compare-add:hover,
.chart-compare-add:focus-visible,
.chart-compare-remove:hover,
.chart-compare-remove:focus-visible {
  border-color: var(--violet);
  color: #fff1cd;
  background: rgba(80, 43, 108, 0.8);
}

.chart-compare select:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 1px rgba(125, 85, 181, 0.24);
}

.chart-compare select option {
  background: #171319;
  color: #ead3a5;
  font-weight: 700;
}

.chart-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: center;
  padding: 6px 14px 6px 12px;
  border-left: 1px solid rgba(201, 151, 88, 0.16);
}

.chart-range label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.chart-range span {
  color: var(--sand);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.chart-range input[type="date"] {
  width: 100%;
  min-height: 30px;
  border: 1px solid rgba(201, 151, 88, 0.32);
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(201, 151, 88, 0.08), transparent 42%),
    #080604;
  color: var(--sand-soft);
  padding: 0 6px;
  font: inherit;
  font-size: 11px;
  color-scheme: dark;
  accent-color: var(--violet);
}

.chart-range input[type="date"]:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 1px rgba(125, 85, 181, 0.24), inset 0 0 10px rgba(125, 85, 181, 0.1);
  outline: none;
}

.server-chart {
  grid-area: chart;
  width: 100%;
  height: clamp(260px, 22vw, 390px);
  background: linear-gradient(135deg, rgba(67, 34, 94, 0.5), rgba(20, 9, 33, 0.78));
}

.server-chart .scatterlayer .trace:first-child .js-line {
  filter: drop-shadow(0 0 8px rgba(164, 85, 255, 0.7)) drop-shadow(0 0 18px rgba(164, 85, 255, 0.34));
  animation: chart-line-glow 2.8s ease-in-out infinite;
}

.server-chart .scatterlayer .trace:nth-child(3) .js-line {
  stroke-dasharray: 34 150;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(231, 198, 255, 0.72));
  animation: chart-line-energy 2.2s linear infinite;
}

@keyframes chart-line-glow {
  0%,
  100% {
    opacity: 0.42;
  }
  50% {
    opacity: 0.76;
  }
}

@keyframes chart-line-energy {
  from {
    stroke-dashoffset: 184;
    opacity: 0.22;
  }
  35% {
    opacity: 0.82;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 0.22;
  }
}

/* Front-page median line: breathing glow halo (3rd trace) + a bright pulse that
   sweeps left to right (5th trace). Mirrors the original server-chart effect. */
.economy-chart .scatterlayer .trace:nth-child(3) .js-line {
  filter: drop-shadow(0 0 8px rgba(164, 85, 255, 0.7)) drop-shadow(0 0 18px rgba(164, 85, 255, 0.34));
  animation: chart-line-glow 2.8s ease-in-out infinite;
}
.economy-chart .scatterlayer .trace:nth-child(5) .js-line {
  stroke-dasharray: 34 150;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(231, 198, 255, 0.72));
  animation: chart-line-energy 2.2s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .economy-chart .scatterlayer .trace:nth-child(3) .js-line,
  .economy-chart .scatterlayer .trace:nth-child(5) .js-line {
    animation: none;
  }
}

.chart-fallback {
  display: grid;
  height: 100%;
  min-height: 220px;
  place-items: center;
  color: #bda88b;
  font-size: 12px;
  text-align: center;
}

@keyframes chart-open {
  from {
    max-height: 0;
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    max-height: 520px;
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chart-close {
  from {
    max-height: var(--chart-close-height, 520px);
    opacity: 1;
    transform: translateY(0);
  }
  to {
    max-height: 0;
    opacity: 0;
    transform: translateY(-12px);
  }
}

.server-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d5bd95;
  font-weight: 900;
  line-height: 1;
}

.verified-diamond {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  transform: rotate(45deg);
  border: 1px solid rgba(246, 209, 135, 0.82);
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 229, 255, 0.95) 0 12%, transparent 20%),
    linear-gradient(135deg, #edbaff 0%, #9f48ff 42%, #40105f 100%);
  box-shadow:
    0 0 6px rgba(175, 80, 255, 0.78),
    inset 0 0 4px rgba(255, 232, 255, 0.55);
}

.muted {
  color: #735f4d;
  font-size: 11px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 38px 0;
  color: rgba(189, 168, 139, 0.72);
  font-size: 11px;
  line-height: 1.4;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-footer a.donate-link {
  color: #f2d59b;
}

.site-footer a.donate-link:hover {
  color: #ffe3ad;
}

.site-footer a,
.site-footer button,
.back-link {
  border: 0;
  background: transparent;
  color: var(--sand);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer button:hover,
.back-link:hover {
  color: var(--sand-soft);
}

.consent-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 36;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  width: min(680px, calc(100vw - 36px));
  padding: 16px;
  border: 1px solid rgba(201, 151, 88, 0.42);
  background:
    linear-gradient(90deg, rgba(125, 85, 181, 0.12), transparent 48%, rgba(217, 111, 45, 0.1)),
    #090604;
  box-shadow:
    inset 0 0 28px rgba(0, 0, 0, 0.46),
    0 20px 54px rgba(0, 0, 0, 0.55);
}

.consent-banner[hidden],
.adblock-notice[hidden] {
  display: none;
}

.consent-banner strong,
.adblock-notice strong {
  color: var(--sand-soft);
  font-size: 14px;
  text-transform: uppercase;
}

.consent-banner p,
.adblock-notice p {
  margin: 5px 0 0;
  color: #bda88b;
  font-size: 12px;
  line-height: 1.45;
}

.consent-actions,
.adblock-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.consent-actions button,
.adblock-actions button {
  min-height: 32px;
  border: 1px solid rgba(201, 151, 88, 0.28);
  background: rgba(8, 6, 4, 0.72);
  color: var(--sand-soft);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  padding: 0 12px;
  text-transform: uppercase;
}

.consent-actions button:hover,
.adblock-actions button:hover {
  border-color: rgba(201, 151, 88, 0.62);
  background: rgba(125, 85, 181, 0.22);
}

.adblock-notice {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 21;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  width: min(560px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(201, 151, 88, 0.42);
  background:
    linear-gradient(90deg, rgba(201, 151, 88, 0.12), transparent 45%, rgba(125, 85, 181, 0.12)),
    #090604;
  box-shadow:
    inset 0 0 28px rgba(0, 0, 0, 0.46),
    0 20px 54px rgba(0, 0, 0, 0.55);
}

body.modal-open {
  overflow: hidden;
}

.data-modal[hidden] {
  display: none;
}

.data-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
}

.data-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(125, 85, 181, 0.18), transparent 34rem),
    rgba(3, 2, 1, 0.76);
  backdrop-filter: blur(3px);
}

.data-modal__panel {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  padding: 18px;
  border: 1px solid rgba(201, 151, 88, 0.48);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(125, 85, 181, 0.16), transparent 38%, rgba(201, 151, 88, 0.08)),
    linear-gradient(180deg, #160d1f, #090604 72%);
  box-shadow:
    inset 0 0 0 1px rgba(234, 211, 165, 0.08),
    inset 0 0 42px rgba(0, 0, 0, 0.5),
    0 30px 80px rgba(0, 0, 0, 0.68);
}

.data-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201, 151, 88, 0.22);
}

.data-modal__head span,
.data-modal label span {
  color: var(--sand);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.data-modal__head strong {
  display: block;
  margin-top: 3px;
  color: var(--sand-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
}

.modal-close {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(201, 151, 88, 0.28);
  border-radius: 4px;
  background: rgba(8, 6, 4, 0.66);
  cursor: pointer;
}

.modal-close::before,
.modal-close::after {
  position: absolute;
  left: 8px;
  top: 13px;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--sand-soft);
  content: "";
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

.data-modal label {
  display: grid;
  gap: 6px;
}

.data-modal input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(201, 151, 88, 0.3);
  border-radius: 4px;
  background: #070604;
  color: var(--sand-soft);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  outline: none;
  padding: 0 12px;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.42);
}

.data-modal input:focus {
  border-color: var(--violet);
  box-shadow:
    inset 0 0 16px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(125, 85, 181, 0.34);
}

.data-modal input[readonly] {
  color: #d8bd91;
  background: rgba(8, 6, 4, 0.72);
}

.data-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.data-modal__message {
  min-height: 18px;
  margin: 0;
  color: #bda88b;
  font-size: 12px;
  line-height: 1.45;
}

.contribution-guide {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(201, 151, 88, 0.28);
  background:
    linear-gradient(135deg, rgba(125, 85, 181, 0.12), transparent 48%),
    rgba(8, 5, 4, 0.72);
}

.contribution-guide strong {
  color: var(--sand-soft);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contribution-guide ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 21px;
  color: var(--sand-muted);
  font-size: 11px;
  line-height: 1.4;
}

.contribution-guide li::marker {
  color: var(--sand);
  font-weight: 900;
}

.contribution-guide b {
  color: var(--sand-soft);
  font-weight: 800;
}

.data-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 2px;
}

.data-modal__actions button {
  min-height: 34px;
  border: 1px solid rgba(201, 151, 88, 0.3);
  border-radius: 4px;
  background: rgba(8, 6, 4, 0.72);
  color: var(--sand-soft);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  padding: 0 12px;
  text-transform: uppercase;
}

.data-modal__actions button[type="submit"] {
  background:
    linear-gradient(180deg, rgba(125, 85, 181, 0.4), rgba(72, 41, 91, 0.48)),
    #0a0604;
}

.data-modal__actions button:hover,
.modal-close:hover {
  border-color: rgba(201, 151, 88, 0.68);
}

.legal-shell {
  width: min(920px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

.back-link {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 12px;
  text-transform: uppercase;
}

.legal-card {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(217, 111, 45, 0.08), transparent 18%, transparent 82%, rgba(125, 85, 181, 0.08)),
    var(--panel);
  box-shadow:
    inset 0 0 0 1px rgba(234, 211, 165, 0.08),
    inset 0 0 72px rgba(0, 0, 0, 0.56),
    0 24px 64px rgba(0, 0, 0, 0.38);
}

.legal-card h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 5vw, 56px);
}

.legal-card h2 {
  margin: 28px 0 8px;
  color: var(--sand-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.1;
}

.legal-card p {
  margin: 0;
  color: #c9b79f;
  font-size: 15px;
  line-height: 1.65;
}

.legal-updated {
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 800;
  text-transform: uppercase;
}

body.tv-mode {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(21, 46, 82, 0.42), transparent 42rem),
    linear-gradient(180deg, #03070c, #060402);
}

body.tv-mode .shell {
  display: grid;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  place-items: stretch;
}

body.tv-mode .banner,
body.tv-mode .market-item-picker,
body.tv-mode .economy-dashboard,
body.tv-mode .dashboard,
body.tv-mode .ticker-ad-row,
body.tv-mode .site-footer {
  display: none;
}

body.tv-mode .ticker-collapse-toggle {
  display: none;
}

body.tv-mode .exchange-frame {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: clamp(14px, 1.5vw, 28px);
  overflow: hidden;
  border-color: rgba(201, 151, 88, 0.42);
  background:
    linear-gradient(90deg, rgba(8, 34, 68, 0.78), rgba(5, 15, 28, 0.94) 22%, rgba(8, 6, 4, 0.96) 70%, rgba(46, 23, 62, 0.52)),
    repeating-linear-gradient(0deg, rgba(96, 158, 224, 0.05) 0 1px, transparent 1px 13.4vh),
    #03070c;
  box-shadow:
    inset 0 0 0 1px rgba(234, 211, 165, 0.12),
    inset 0 0 90px rgba(0, 0, 0, 0.76);
}

body.tv-mode .exchange-frame::after {
  display: none;
}

body.tv-mode .console-head {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(10px, 1vw, 18px);
  min-height: 0;
  max-height: none;
  padding-block: clamp(7px, 0.6vw, 10px);
  border-bottom: 1px solid rgba(201, 151, 88, 0.16);
}

body.tv-mode .console-head > div:first-child {
  display: block;
}

body.tv-mode .console-head h1 {
  display: none;
}

body.tv-mode .market-clock {
  display: none;
}

body.tv-mode .console-view-toggle {
  display: flex !important;
}

body.tv-mode .eyebrow {
  display: none;
}

body.tv-mode .tv-wordmark {
  display: block;
  width: auto;
  height: clamp(23px, 1.65vw, 32px);
  max-width: clamp(170px, 19vw, 360px);
  object-fit: contain;
  filter: none;
  transform: none;
}

body.tv-mode .console-head > div:first-child {
  position: relative;
}

body.tv-mode .console-head > div:first-child::after {
  content: none;
}

body.tv-mode h1 {
  font-size: clamp(30px, 3.2vw, 62px);
}

body.tv-mode .market-clock span {
  font-size: clamp(9px, 0.7vw, 13px);
}

body.tv-mode .market-clock strong {
  font-size: clamp(20px, 2vw, 38px);
}

body.tv-mode .view-toggle button {
  min-height: clamp(23px, 1.65vw, 32px);
  min-width: clamp(62px, 5.2vw, 74px);
  font-size: clamp(8px, 0.62vw, 11px);
  padding: 0 clamp(8px, 0.8vw, 14px);
}

body.tv-mode .home-market-panel,
body.tv-mode .home-control,
body.tv-mode .home-stats-panel {
  display: none;
}

body.tv-mode .ticker-band {
  display: flex;
  min-height: 0;
  max-height: none;
  height: 100%;
  margin: 0;
  border: 1px solid rgba(201, 151, 88, 0.22);
  background:
    linear-gradient(90deg, rgba(9, 39, 78, 0.55), rgba(5, 13, 25, 0.9)),
    #05090f;
}

body.tv-mode .ticker-band::before,
body.tv-mode .ticker-band::after,
body.tv-mode .ticker-label {
  display: none;
}

body.tv-mode .ticker-ad-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 16px);
  min-height: clamp(58px, 5vw, 86px);
  margin: clamp(8px, 0.9vw, 14px) 0 0;
  padding: clamp(6px, 0.8vw, 12px) clamp(12px, 1.4vw, 24px);
  border-block: 1px solid rgba(96, 158, 224, 0.2);
  background:
    linear-gradient(90deg, rgba(125, 85, 181, 0.18), rgba(5, 13, 25, 0.96) 26%, rgba(201, 151, 88, 0.1)),
    #05090f;
  font-family: Consolas, "Courier New", monospace;
}

body.tv-mode .mock-ad {
  min-height: clamp(44px, 3.8vw, 64px);
  grid-template-columns: clamp(28px, 2.6vw, 42px) minmax(0, 1fr) auto;
  background:
    linear-gradient(135deg, rgba(220, 236, 255, 0.08), rgba(8, 32, 60, 0.72)),
    rgba(3, 9, 18, 0.82);
}

body.tv-mode .ad-label {
  color: #a9c9ec;
  font-size: clamp(8px, 0.7vw, 12px);
}

body.tv-mode .ad-mark {
  width: clamp(28px, 2.6vw, 42px);
  height: clamp(28px, 2.6vw, 42px);
}

body.tv-mode .ad-copy strong {
  color: var(--sand-soft);
  font-size: clamp(10px, 0.9vw, 16px);
}

body.tv-mode .ad-copy em {
  color: #dcecff;
  font-size: clamp(9px, 0.75vw, 13px);
}

body.tv-mode .mock-ad b {
  min-height: clamp(24px, 2vw, 34px);
  min-width: clamp(38px, 3.5vw, 56px);
  font-size: clamp(8px, 0.7vw, 12px);
}

body.tv-mode .ticker-lanes {
  display: grid;
  grid-template-rows: repeat(6, minmax(0, 1fr));
  width: 100%;
}

body.tv-mode .ticker-row--market {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(150px, 0.7fr);
  align-items: center;
  gap: clamp(14px, 2vw, 38px);
  padding: 0 clamp(28px, 4vw, 76px);
}

body.tv-mode .ticker-market-name,
body.tv-mode .ticker-market-price,
body.tv-mode .ticker-market-change {
  min-width: 0;
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(26px, 2.6vw, 50px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

body.tv-mode .ticker-market-name {
  overflow: hidden;
  color: var(--sand-soft);
  text-overflow: ellipsis;
}

body.tv-mode .ticker-market-price { display: inline-flex; align-items: center; gap: 0.32em; color: #dcecff; }
body.tv-mode .ticker-market-price .solari-icon { width: 0.92em; height: 0.92em; margin: 0; }
body.tv-mode .ticker-market-change { text-align: right; }

body.tv-mode .ticker-row {
  grid-template-columns: clamp(84px, 6vw, 128px) minmax(0, 1fr);
  min-height: 0;
  border-bottom: 1px solid rgba(96, 158, 224, 0.16);
  background: linear-gradient(180deg, rgba(28, 79, 132, 0.42), rgba(7, 24, 47, 0.72));
}

body.tv-mode .ticker-row:nth-child(2n) {
  background: linear-gradient(180deg, rgba(13, 53, 99, 0.5), rgba(4, 18, 38, 0.76));
}

body.tv-mode .ticker-region {
  border-right: 1px solid rgba(201, 151, 88, 0.24);
  background: rgba(4, 4, 5, 0.78);
  color: var(--sand-soft);
  font-size: clamp(18px, 2vw, 34px);
}

body.tv-mode .ticker-viewport {
  height: 100%;
}

body.tv-mode .ticker-track {
  height: 100%;
  min-height: 0;
  animation-duration: 260s;
}

body.tv-mode .ticker-loop {
  height: 100%;
}

body.tv-mode .ticker-row:nth-child(2n) .ticker-track {
  animation-duration: 300s;
}

body.tv-mode .ticker-row.region-na-east .ticker-track,
body.tv-mode .ticker-row.region-na .ticker-track,
body.tv-mode .ticker-row.region-na-west .ticker-track,
body.tv-mode .ticker-row.region-north-america .ticker-track {
  animation-duration: 520s;
}

body.tv-mode .ticker-row.region-eu-ams .ticker-track,
body.tv-mode .ticker-row.region-eu-par .ticker-track,
body.tv-mode .ticker-row.region-europe .ticker-track {
  animation-duration: 545.455s;
}

body.tv-mode .ticker-row.region-as .ticker-track {
  animation-duration: 162.5s;
}

body.tv-mode .ticker-row.region-oceania .ticker-track,
body.tv-mode .ticker-row.region-south-america .ticker-track {
  animation-duration: 108.333s;
}

body.tv-mode .ticker-row.region-oc .ticker-track,
body.tv-mode .ticker-row.region-sa .ticker-track,
body.tv-mode .ticker-row.region-rest .ticker-track {
  animation-duration: 108.333s;
}

body.tv-mode .ticker-item {
  gap: clamp(10px, 1vw, 20px);
  padding: 0 clamp(26px, 3vw, 62px);
  color: #dcecff;
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(24px, 2.5vw, 48px);
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 0 10px rgba(115, 190, 255, 0.22);
  border-right: 1px solid rgba(96, 158, 224, 0.16);
}

body.tv-mode .ticker-item .server-full {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}

body.tv-mode .symbol {
  color: var(--sand-soft);
}

body.tv-mode .symbol::before {
  content: none;
}

body.tv-mode .solari-icon {
  width: 1.05em;
  height: 1.05em;
  margin-left: 0.02em;
  margin-right: -0.14em;
}

body.tv-mode .ticker-price {
  color: #dcecff;
}

body.tv-mode .up {
  color: #35f060;
  text-shadow: 0 0 12px rgba(53, 240, 96, 0.26);
}

body.tv-mode .down {
  color: #ff3333;
  text-shadow: 0 0 12px rgba(255, 51, 51, 0.24);
}

@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .shell {
    width: min(100% - 18px, 1260px);
    max-width: 100%;
    padding-top: 8px;
    overflow-x: hidden;
  }

  .banner {
    width: 100%;
    height: clamp(112px, 31vw, 168px);
  }

  .banner img {
    object-fit: cover;
    object-position: top left;
  }

  .banner-disclaimer {
    bottom: 7px;
    max-width: calc(100% - 32px);
    padding: 0;
    font-size: clamp(8px, 2.1vw, 10px);
  }

  .banner .banner-donate-button {
    right: 10px;
    bottom: 34px;
    width: min(132px, 38vw);
  }

  .exchange-frame {
    margin: 6px 0 0;
    padding: 10px 10px 16px;
  }

  .console-head,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .console-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 0 10px 10px;
    max-height: none;
    max-width: 100%;
    overflow: visible;
  }

  .console-head h1 {
    font-size: clamp(30px, 8vw, 38px);
  }

  .view-toggle button {
    flex: 1;
  }

  .view-toggle {
    display: none;
  }

  .home-control {
    grid-template-rows: auto;
    min-width: 0;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .home-market-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 7px;
    padding: 8px;
  }

  .home-action-row {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    grid-auto-rows: 34px;
    gap: 7px;
  }

  .home-action-row #home-region,
  .home-action-row .contribute-button {
    grid-column: 1 / -1;
  }

  .home-action-row #home-server {
    grid-column: 2;
  }

  .home-icon-label {
    width: 34px;
    height: 34px;
  }

  .home-region-pills {
    justify-content: flex-start;
  }

  .contribute-button {
    width: 100%;
  }

  .home-stats-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto;
    gap: 5px;
    padding: 7px;
    overflow: visible;
  }

  .home-price-hero {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 56px;
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 7px 8px;
  }

  .home-stats-title {
    grid-column: 1 / -1;
  }

  .home-stats-panel strong {
    font-size: clamp(10px, 2.9vw, 13px);
    overflow-wrap: anywhere;
  }

  .home-stats-panel small {
    font-size: 8px;
  }

  .market-clock {
    justify-items: start;
  }

  .ticker-band {
    width: 100%;
    max-width: 100%;
    display: block;
    min-height: 0;
    max-height: none;
    height: min(68vh, 760px);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(201, 151, 88, 0.38);
    border-inline-color: rgba(234, 211, 165, 0.46);
  }

  .ticker-band::before {
    width: 22px;
  }

  .ticker-band::after {
    width: 38px;
  }

  .ticker-label {
    display: none;
  }

  .ticker-lanes {
    display: flex;
    grid-template-columns: none;
    grid-auto-rows: auto;
    height: auto;
    min-height: 0;
    max-width: 100%;
  }

  .ticker-ad-row {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    min-height: 0;
    grid-auto-rows: minmax(54px, auto);
    gap: 2px;
    padding: 8px;
  }

  .mock-ad {
    width: 100%;
  }

  .ticker-ad-row .mock-ad:nth-child(n + 3),
  .ticker-ad-row .real-ad-shell:nth-child(n + 3) {
    display: none;
  }

  .ticker-row {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 34px minmax(0, 1fr);
    min-height: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border-right: 1px solid rgba(201, 151, 88, 0.12);
    border-bottom: 1px solid rgba(201, 151, 88, 0.14);
    background:
      linear-gradient(180deg, rgba(20, 12, 7, 0.9), rgba(5, 3, 2, 0.84)),
      rgba(8, 4, 2, 0.74);
  }

  .ticker-region {
    position: relative;
    color: var(--sand-soft);
    font-size: clamp(14px, 4.6vw, 20px);
    border-right: 0;
    border-bottom: 1px solid rgba(201, 151, 88, 0.22);
    background: rgba(12, 7, 4, 0.86);
  }

  .ticker-region::before,
  .ticker-region::after {
    position: absolute;
    top: 50%;
    color: rgba(234, 211, 165, 0.74);
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    text-shadow: 0 0 9px rgba(201, 151, 88, 0.38);
    transform: translateY(-52%);
    pointer-events: none;
    content: "";
  }

  .ticker-region::before {
    left: 15px;
    content: "‹";
  }

  .ticker-region::after {
    right: 15px;
    content: "›";
  }

  .ticker-row--carousel-clone .ticker-region::before,
  .ticker-row--carousel-clone .ticker-region::after {
    opacity: 0;
  }

  .ticker-viewport {
    height: 100%;
    overflow: hidden;
    min-height: calc(44px * 14);
  }

  .ticker-track {
    display: block;
    width: 100%;
    min-height: 0;
    animation-name: crawl-down;
    animation-duration: 46s;
  }

  .ticker-loop {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    width: 100%;
  }

  .ticker-item {
    display: grid;
    grid-template-columns: 1em auto auto;
    justify-content: center;
    justify-items: center;
    align-items: center;
    width: 100%;
    gap: 6px;
    min-height: 44px;
    padding: 4px 14px;
    text-align: center;
    font-size: clamp(10px, 3.2vw, 13px);
    font-weight: 800;
    border-right: 0;
    border-bottom: 1px solid rgba(201, 151, 88, 0.1);
  }

  .ticker-item:nth-child(2n + 1) {
    border-right: 1px solid rgba(201, 151, 88, 0.1);
  }

  .ticker-item .server-full {
    grid-column: 1 / -1;
    max-width: none;
    min-width: 0;
    width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.05;
    text-align: center;
  }

  .solari-icon {
    width: 1.02em;
    height: 1.02em;
    margin: 0;
  }

  .ticker-price {
    justify-self: start;
  }

  .ticker-item .up,
  .ticker-item .down {
    justify-self: start;
  }

  .ticker-row:nth-child(2n) .ticker-track {
    animation-duration: 54s;
  }

  .ticker-row.region-na-east .ticker-track,
  .ticker-row.region-na .ticker-track,
  .ticker-row.region-na-west .ticker-track,
  .ticker-row.region-north-america .ticker-track {
    animation-duration: 72s;
  }

  .ticker-row.region-eu-ams .ticker-track,
  .ticker-row.region-eu-par .ticker-track,
  .ticker-row.region-europe .ticker-track {
    animation-duration: 76s;
  }

  .ticker-row.region-as .ticker-track {
    animation-duration: 40s;
  }

  .ticker-row.region-oc .ticker-track,
  .ticker-row.region-sa .ticker-track,
  .ticker-row.region-rest .ticker-track {
    animation-duration: 34s;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .search-wrap {
    width: 100%;
  }

  .chart-metric-select {
    width: 100%;
    margin-left: 0;
  }

  .table-wrap {
    max-height: none;
  }

  .chart-meta {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: flex-start;
    align-content: center;
    gap: 4px;
    padding: 8px 10px;
    white-space: normal;
  }

  .chart-card {
    display: block;
    position: relative;
  }

  .chart-detail-icon {
    position: absolute;
    z-index: 1;
    width: 92px;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    transform: translate(10px, 8px);
  }

  .chart-detail-icon > .item-icon-card {
    width: 92px;
    height: 92px;
    flex-basis: 92px;
  }

  .chart-detail-icon > .spice-ex-icon-viewport--sheet {
    width: 92px;
    height: 92px;
    flex-basis: 92px;
  }

  .chart-detail-icon > .spice-ex-icon-viewport--sheet > .spice-ex-icon {
    transform: scale(0.676470588);
  }

  .chart-meta > * {
    grid-column: 2;
  }

  .chart-detail-main {
    min-width: 0;
  }

  .chart-item-label > img {
    width: 30px;
    height: 21px;
  }

  .chart-item-label .item-icon-card {
    width: 27px;
    height: 21px;
    flex-basis: 27px;
  }

  .chart-contribute {
    width: 100%;
  }

  .chart-compare {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding-inline: 8px;
  }

  .chart-controls {
    grid-template-columns: 1fr;
  }

  .chart-range {
    border-top: 1px solid rgba(201, 151, 88, 0.16);
    border-left: 0;
    padding: 8px;
  }

  .server-chart {
    height: 260px;
  }

  .site-footer {
    flex-direction: column;
    gap: 4px;
    padding-inline: 4px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .consent-banner,
  .adblock-notice {
    grid-template-columns: 1fr;
    right: 9px;
    left: 9px;
    width: calc(100vw - 18px);
  }

  .consent-banner {
    bottom: 9px;
  }

  .adblock-notice {
    bottom: 144px;
  }

  .consent-actions,
  .adblock-actions {
    justify-content: flex-end;
  }

  .data-modal {
    padding: 10px;
  }

  .data-modal__panel {
    padding: 14px;
  }

  .data-modal__grid {
    grid-template-columns: 1fr;
  }

  .data-modal__actions {
    flex-direction: column-reverse;
  }

  .data-modal__actions button {
    width: 100%;
  }

  body.tv-mode {
    overflow: hidden;
  }

  body.tv-mode .shell {
    width: 100vw;
    height: 100vh;
    padding: 0;
  }

  body.tv-mode .exchange-frame {
    width: 100vw;
    height: 100vh;
    padding: 8px;
  }

  body.tv-mode .console-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 0 0 8px;
  }

  body.tv-mode .home-market-panel,
  body.tv-mode .home-control,
  body.tv-mode .home-stats-panel,
  body.tv-mode .market-clock,
  body.tv-mode .eyebrow {
    display: none;
  }

  body.tv-mode h1 {
    font-size: clamp(22px, 7vw, 32px);
    line-height: 1;
  }

  body.tv-mode .view-toggle {
    justify-self: stretch;
  }

  body.tv-mode .view-toggle button {
    min-height: 30px;
    padding: 0 9px;
    font-size: 10px;
  }

  body.tv-mode .ticker-band {
    display: block;
    height: auto;
    min-height: 0;
    margin: 0;
    background:
      linear-gradient(90deg, rgba(9, 39, 78, 0.55), rgba(5, 13, 25, 0.9)),
      #05090f;
  }

  body.tv-mode .ticker-label {
    display: none;
  }

  body.tv-mode .ticker-lanes {
    height: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, minmax(0, 1fr));
  }

  body.tv-mode .ticker-row {
    grid-template-columns: 1fr;
    grid-template-rows: 40px minmax(0, 1fr);
    min-height: 0;
  }

  body.tv-mode .ticker-region {
    font-size: clamp(18px, 5vw, 28px);
  }

  body.tv-mode .ticker-track {
    display: block;
    width: 100%;
    min-height: 0;
    animation-name: crawl-down;
    animation-duration: 46s;
  }

  body.tv-mode .ticker-loop {
    display: grid;
    width: 100%;
    min-width: 0;
  }

  body.tv-mode .ticker-item {
    display: grid;
    grid-template-columns: 1em auto auto;
    justify-content: start;
    justify-items: start;
    align-items: center;
    width: 100%;
    min-height: 70px;
    padding: 9px 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(201, 151, 88, 0.1);
    font-size: clamp(14px, 4vw, 18px);
  }

  body.tv-mode .ticker-row:nth-child(2n) .ticker-track {
    animation-duration: 54s;
  }

  body.tv-mode .ticker-row.region-na-east .ticker-track,
  body.tv-mode .ticker-row.region-na .ticker-track,
  body.tv-mode .ticker-row.region-na-west .ticker-track,
  body.tv-mode .ticker-row.region-north-america .ticker-track {
    animation-duration: 72s;
  }

  body.tv-mode .ticker-row.region-eu-ams .ticker-track,
  body.tv-mode .ticker-row.region-eu-par .ticker-track,
  body.tv-mode .ticker-row.region-europe .ticker-track {
    animation-duration: 76s;
  }

  body.tv-mode .ticker-row.region-as .ticker-track {
    animation-duration: 40s;
  }

  body.tv-mode .ticker-row.region-oceania .ticker-track,
  body.tv-mode .ticker-row.region-south-america .ticker-track {
    animation-duration: 34s;
  }

  body.tv-mode .ticker-row.region-oc .ticker-track,
  body.tv-mode .ticker-row.region-sa .ticker-track,
  body.tv-mode .ticker-row.region-rest .ticker-track {
    animation-duration: 34s;
  }
}

@media (max-width: 520px) {
  .shell {
    width: 100%;
    padding-inline: 6px;
  }

  .banner .banner-donate-button {
    width: min(116px, 34vw);
    bottom: 31px;
  }

  .exchange-frame {
    width: 100%;
    margin-inline: 0;
    padding-inline: 8px;
  }

  .console-head {
    padding-inline: 0;
  }

  .home-market-panel,
  .home-control,
  .home-stats-panel {
    width: 100%;
  }

  .home-stats-panel {
    grid-template-columns: 1fr 1fr;
    padding: 6px;
  }

  .home-price-hero {
    grid-column: 1 / -1;
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 52px;
    padding: 7px 8px;
  }

  .solari-credit-icon {
    width: 31px;
    height: 31px;
  }

  .home-stats-panel strong {
    font-size: 15px;
    overflow-wrap: normal;
  }

  .home-stats-panel small {
    font-size: 8px;
  }

  .ticker-band {
    min-height: 0;
    max-height: none;
    height: min(70vh, 720px);
  }

  .ticker-lanes {
    display: flex;
    grid-template-columns: none;
    grid-auto-rows: auto;
  }

  .ticker-row {
    min-height: 100%;
    height: 100%;
  }

  .ticker-ad-row {
    min-height: 0;
  }

  .ticker-region {
    font-size: clamp(13px, 5vw, 18px);
  }

  .ticker-item {
    min-height: 42px;
    padding: 4px 12px;
    font-size: clamp(9px, 3.35vw, 12px);
  }

  body.tv-mode .exchange-frame {
    grid-template-rows: auto minmax(0, 1fr);
  }

  body.tv-mode .ticker-band {
    display: block;
    min-height: 0;
  }

  body.tv-mode .ticker-label {
    display: none;
  }

  body.tv-mode .ticker-lanes {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(0, 1fr);
  }

  body.tv-mode .ticker-item {
    min-height: 66px;
    padding: 8px 9px;
    font-size: clamp(13px, 3.85vw, 17px);
  }

}

@media (min-width: 901px) {
  body:not(.tv-mode) .ticker-band {
    min-height: 198px;
  }

  body:not(.tv-mode) .ticker-row,
  body:not(.tv-mode) .ticker-track {
    min-height: 66px;
  }

  body:not(.tv-mode) .ticker-region {
    font-size: 15px;
  }

  body:not(.tv-mode) .ticker-item {
    gap: 12px;
    padding: 0 22px;
    font-size: 18px;
  }

  body:not(.tv-mode) .ticker-item .solari-icon {
    width: 1.18em;
    height: 1.18em;
  }
}

/* Restore the original right-side hero footprint with photo-inspired typography. */
.home-market-panel {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.28fr);
  grid-template-rows: auto auto;
  gap: 7px 14px;
}

.home-stats-panel {
  grid-column: auto;
  grid-row: auto;
  grid-template-columns: minmax(120px, 1.35fr) repeat(5, minmax(72px, 1fr));
  grid-template-rows: minmax(38px, auto);
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.home-stats-title {
  grid-column: auto;
  grid-row: auto;
  padding: 4px 10px 4px 0;
  border-bottom: 0;
  font-size: clamp(17px, 1.35vw, 22px);
}

.home-stat-heading {
  display: grid !important;
  min-width: 0;
  min-height: 28px;
  place-items: center;
  border-bottom: 1px solid rgba(201, 151, 88, 0.28);
  color: var(--sand-soft);
  font-size: clamp(10px, 0.8vw, 13px);
  font-weight: 900;
  text-transform: uppercase;
}

.home-stat-heading:nth-of-type(2) {
  border-left: 1px solid rgba(201, 151, 88, 0.28);
}

.home-stat-feature {
  display: flex !important;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: linear-gradient(90deg, rgba(125, 85, 181, 0.16), rgba(8, 6, 4, 0.18));
}

.home-stat-feature + .home-stat-feature {
  border-left: 1px solid rgba(201, 151, 88, 0.3);
  background: linear-gradient(90deg, rgba(8, 6, 4, 0.18), rgba(125, 85, 181, 0.08));
}

.home-stat-feature .solari-credit-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
}

.home-stat-feature strong {
  overflow: hidden;
  color: #f4ddb0;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-stat-cap {
  justify-content: center;
}

.home-stat-secondary-grid {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  border-top: 1px solid rgba(201, 151, 88, 0.22);
}

.home-stat-secondary-grid .home-stat-tile {
  min-width: 0;
  padding: 6px 10px;
  border-left: 1px solid rgba(201, 151, 88, 0.18);
}

.home-stat-secondary-grid .home-stat-tile:first-child {
  border-left: 0;
}

.home-control {
  grid-column: auto;
  grid-row: auto;
}

.home-price-hero {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  min-height: 82px;
  padding: 0;
  border: 1px solid rgba(201, 151, 88, 0.28);
  background:
    linear-gradient(90deg, rgba(125, 85, 181, 0.16), rgba(8, 6, 4, 0.34)),
    rgba(8, 6, 4, 0.78);
}

.home-hero-stat {
  display: grid !important;
  align-content: center;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  padding: 8px 12px;
  text-align: center;
}

.home-hero-stat + .home-hero-stat {
  border-left: 1px solid rgba(201, 151, 88, 0.38);
}

.home-hero-stat small {
  grid-column: auto;
  padding-left: 0;
  color: var(--sand-soft);
  font-size: clamp(9px, 0.68vw, 12px);
  font-weight: 900;
  text-transform: uppercase;
}

.home-hero-value {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
}

.home-hero-value .solari-credit-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
}

.home-hero-stat strong {
  overflow: hidden;
  color: #f4ddb0;
  font-size: clamp(18px, 1.6vw, 28px);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-hero-cap {
  justify-items: center;
}

@media (max-width: 900px) {
  .home-stat-feature {
    padding: 8px 10px;
  }

  .home-stat-feature strong {
    font-size: clamp(20px, 6vw, 30px);
  }

  .home-market-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }

  .home-stats-panel {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto;
    padding: 7px;
  }

  .home-control {
    grid-column: 1;
    grid-row: 2;
  }

  .home-price-hero {
    grid-column: 1;
    grid-row: 3;
    min-height: 56px;
  }
}

@media (max-width: 520px) {
  .home-stat-feature {
    gap: 7px;
    padding-inline: 7px;
  }

  .home-stat-feature .solari-credit-icon {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }

  .home-stat-feature strong {
    font-size: clamp(17px, 5.8vw, 24px);
  }

  .home-stat-secondary-grid .home-stat-tile {
    padding-inline: 5px;
  }
}

/* Keep the home controls intact on narrower desktop widths. */
@media (min-width: 901px) and (max-width: 1100px) {
  .home-market-panel {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.3fr);
    gap: 7px 10px;
  }

  .home-action-row {
    grid-template-columns: minmax(70px, 0.3fr) 28px minmax(120px, 1fr) minmax(112px, auto);
    gap: 4px;
  }

  .home-control select {
    padding-inline: 7px;
    font-size: 11px;
  }

  .contribute-button {
    padding-inline: 5px;
    font-size: 8px;
  }
}

/* Editorial skin must remain last: this stylesheet intentionally contains
   historical responsive overrides for the data console. */
.shell {
  width: min(1920px, calc(100vw - clamp(12px, 1.2vw, 28px)));
  padding-top: 0;
}

.site-masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 50px;
  align-items: center;
  border-bottom: 1px solid rgba(211, 150, 84, 0.34);
  color: #b99560;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-masthead-brand { display: inline-flex; width: max-content; height: 26px; align-items: center; }
.site-masthead-brand img { width: auto; height: 100%; filter: sepia(0.16) saturate(1.08); }
.site-masthead p { margin: 0; }
.site-masthead-link { justify-self: end; display: inline-flex; align-items: center; gap: 7px; color: #d1ad74; text-decoration: none; }
.site-masthead-link i { color: #9ba5ff; font-size: 14px; }
.site-masthead-link:hover, .site-masthead-link:focus-visible { color: #f2d59e; outline: none; }

.banner { margin-top: 20px; border-color: rgba(211, 150, 84, 0.6); box-shadow: 0 22px 60px rgba(0, 0, 0, 0.58); }
.banner::before { inset: 12px; border-color: rgba(234, 211, 165, 0.24); }

.exchange-frame {
  margin-top: 14px;
  border-color: rgba(211, 150, 84, 0.5);
  background:
    linear-gradient(180deg, rgba(45, 22, 13, 0.3), rgba(14, 9, 9, 0.92) 16rem),
    linear-gradient(90deg, rgba(79, 41, 17, 0.12), transparent 26%, transparent 74%, rgba(83, 42, 104, 0.12)),
    var(--panel);
}
.exchange-frame::before { inset: 10px; border-color: rgba(211, 150, 84, 0.22); }
.market-item-picker { min-height: 58px; padding: 9px 14px; border-color: rgba(211, 150, 84, 0.5); background: linear-gradient(90deg, rgba(25, 13, 9, 0.98), rgba(42, 21, 41, 0.8), rgba(25, 13, 9, 0.98)); }
.console-head { padding-top: 11px; }
.home-market-panel { border-color: rgba(211, 150, 84, 0.48); background: linear-gradient(100deg, rgba(36, 18, 11, 0.74), rgba(18, 11, 17, 0.84)); }
.home-stats-panel, .home-price-hero { border-color: rgba(211, 150, 84, 0.34); }
.ticker-band { margin-top: 2px; border-color: rgba(211, 150, 84, 0.5); background: linear-gradient(90deg, rgba(87, 44, 17, 0.16), transparent 8%, transparent 92%, rgba(87, 44, 17, 0.16)), #0b0706; }
.ticker-ad-row { margin: 18px 0; border-color: rgba(211, 150, 84, 0.28); background: rgba(13, 8, 8, 0.42); box-shadow: none; }
.board, .summary-panel { border-color: rgba(211, 150, 84, 0.38); }
.site-footer { margin-top: 26px; border-top-color: rgba(211, 150, 84, 0.38); color: #a99171; }

@media (max-width: 760px) {
  .site-masthead { grid-template-columns: 1fr auto; min-height: 46px; }
  .site-masthead p { display: none; }
  .site-masthead-brand { height: 23px; }
  .banner { margin-top: 12px; }
}

body.tv-mode .site-masthead { display: none; }

/* The banner owns Spice-Ex branding; the masthead deliberately stays text-only. */
.site-masthead {
  display: flex;
  justify-content: space-between;
}

/* Economy home: the server exchange remains available without owning the first view. */
.economy-dashboard {
  margin: 14px 0 18px;
  border: 1px solid rgba(184, 133, 54, 0.66);
  background:
    linear-gradient(104deg, rgba(55, 22, 79, 0.44), rgba(15, 9, 13, 0.92) 41%, rgba(33, 18, 45, 0.62)),
    #100b0d;
  box-shadow: inset 0 0 0 4px rgba(14, 8, 10, 0.72), 0 0 24px rgba(132, 72, 179, 0.13);
}

/* Header holds the item identity (icon + title) and the market metrics; the chart
   legend and date range now live under the chart in .economy-controls. */
.economy-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 20px;
  min-height: 88px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(184, 133, 54, 0.45);
  background: linear-gradient(90deg, rgba(84, 39, 113, 0.32), transparent 56%);
}
.economy-heading-title { grid-column: 1; display: flex; align-items: center; gap: 14px; min-width: 0; }
.economy-title-icon { flex: 0 0 auto; width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55)); }
.economy-title-text { min-width: 0; }
.economy-heading .economy-item-metrics { grid-column: 2; }
/* Legend + date range sit beneath the chart, divided from it by a hairline. */
.economy-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(184, 133, 54, 0.22);
}
.economy-heading .eyebrow { margin: 0 0 4px; color: #c99a50; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.economy-heading h1 { margin: 0; color: #f2d59b; font-family: Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: 0; font-size: clamp(1.45rem, 2.2vw, 2.2rem); }
.economy-heading p:not(.eyebrow) { margin: 4px 0 0; color: #b7a389; font-size: 0.92rem; }
.economy-item-metrics { display: grid; grid-template-columns: repeat(2, minmax(132px, auto)); gap: 0; border: 1px solid rgba(184, 133, 54, 0.35); }
.economy-item-metrics > div { display: grid; align-content: center; gap: 4px; min-height: 52px; padding: 7px 16px; border-left: 1px solid rgba(184, 133, 54, 0.28); }
.economy-item-metrics > div:first-child { border-left: 0; }
.economy-item-metrics > div > span { color: #c99a50; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.economy-item-metrics strong { display: inline-flex; align-items: center; gap: 6px; color: #f2d59b; font-size: 0.92rem; font-weight: 700; white-space: nowrap; }
.economy-item-metrics strong .solari-icon { flex: 0 0 auto; margin: 0; }
.economy-item-metrics strong .metric-ico { flex: 0 0 auto; width: 1.05em; height: 1.05em; }
.economy-chart-panel,
.economy-coverage-panel { padding: 18px 22px; }
.economy-chart-panel { border-bottom: 1px solid rgba(184, 133, 54, 0.38); }
.economy-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; color: #bda88b; font-size: 0.75rem; }
.economy-legend span { display: inline-flex; align-items: center; gap: 6px; }
.economy-legend i { width: 18px; height: 3px; display: inline-block; }
.economy-legend-low { background: #9e6c4e; }
.economy-legend-average { background: #bb7cff; box-shadow: 0 0 8px rgba(187, 124, 255, 0.8); }
.economy-legend-high { background: #d8a75d; }
.economy-chart-range { display: flex; align-items: end; gap: 8px; margin-left: auto; }
.economy-chart-range label { display: grid; gap: 4px; color: #c99a50; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.economy-chart-range input { min-width: 135px; height: 34px; border: 1px solid #725224; border-radius: 3px; background: #0d0909; color: #efd59f; padding: 0 8px; font: inherit; font-size: 0.78rem; }
.economy-chart { position: relative; width: 100%; min-height: 410px; margin-top: 0; border: 1px solid rgba(178, 128, 52, 0.37); background: #11091a; }
/* Trends legend: overlaid in the chart's reserved bottom band (see padB in showTrends) so it never
   adds flow height -- keeps bars/trends the same total height and the date controls below from moving. */
.trend-legend { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3px 14px; padding: 0 18px; margin: 0; }
.trend-legend .tl-item { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; padding: 1px 3px; cursor: pointer; color: #cdb998; font: 700 11px/1.05 Rajdhani, Arial, sans-serif; letter-spacing: 0.02em; text-transform: uppercase; transition: color 0.15s ease, opacity 0.15s ease; }
.trend-legend .tl-item:hover { color: #ffe9bf; }
.trend-legend .tl-item.dim { opacity: 0.28; }
.trend-legend .tl-sw { width: 11px; height: 11px; border-radius: 2px; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45); }
@media (max-width: 640px) { .trend-legend { position: static; margin-top: 6px; } }
.economy-disclosure { margin: 12px 2px 0; color: #a99a87; font-size: 0.78rem; line-height: 1.45; }
.economy-coverage-note { color: #c99a50; font-size: 0.78rem; white-space: nowrap; }
.economy-table-wrap { margin-top: 14px; overflow-x: auto; border: 1px solid rgba(178, 128, 52, 0.37); overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; }
.economy-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.economy-table th,
.economy-table td { padding: 11px 13px; border-bottom: 1px solid rgba(178, 128, 52, 0.2); text-align: right; color: #d6c1a0; font-size: 0.84rem; }
.economy-table th { background: rgba(21, 12, 20, 0.94); color: #c99a50; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }
.economy-table th:first-child,
.economy-table td:first-child { text-align: left; }
.economy-table tbody tr:nth-child(odd) { background: rgba(79, 38, 92, 0.11); }
.economy-table tbody tr:hover { background: rgba(124, 69, 146, 0.24); }
.economy-empty { text-align: center !important; color: #a99a87 !important; }

body:not(.tv-mode) .ticker-collapse-toggle { display: none; }
body:not(.tv-mode) .console-head,
body:not(.tv-mode) .ticker-band,
body:not(.tv-mode) .ticker-ad-row,
body:not(.tv-mode) .dashboard { display: none; }

@media (max-width: 700px) {
  .economy-dashboard { margin-top: 10px; }
  .economy-heading { grid-template-columns: 1fr; align-items: stretch; min-height: 0; padding: 16px; gap: 12px; }
  .economy-title-icon { width: 42px; height: 42px; }
  .economy-heading .economy-item-metrics { grid-column: 1; }
  .economy-item-metrics { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .economy-item-metrics > div { min-width: 0; padding-inline: 8px; }
  .economy-item-metrics strong { font-size: 0.76rem; overflow: hidden; text-overflow: ellipsis; }
  .economy-controls { flex-direction: column; align-items: stretch; padding-top: 12px; }
  .economy-chart-panel,
  .economy-coverage-panel { padding: 15px; }
  .economy-legend { justify-content: flex-start; }
  .economy-chart-range { width: 100%; margin-left: 0; }
  .economy-chart-range label { flex: 1 1 0; }
  .economy-chart-range input { width: 100%; min-width: 0; }
  .economy-chart { min-height: 0; height: auto; aspect-ratio: 1 / 1; }
  .economy-coverage-note { white-space: normal; }
  .economy-table-wrap { position: relative; max-width: 100%; scrollbar-color: #b9803f #160b14; }
  .economy-table th:first-child,
  .economy-table td:first-child { position: sticky; left: 0; z-index: 2; min-width: 152px; box-shadow: 8px 0 14px rgba(8, 4, 8, 0.45); }
  .economy-table th:first-child { z-index: 3; background: #160c14; }
  .economy-table tbody tr:nth-child(odd) td:first-child { background: #1d1120; }
  .economy-table tbody tr:nth-child(even) td:first-child { background: #130b10; }
}

/* Chart-only front page. Keep this final so historical console overrides cannot win.
   Width matches the shared site frame (.masthead-inner / .bot-page). */
body.economy-only .shell {
  width: min(1440px, calc(100vw - clamp(12px, 1.2vw, 28px)));
}

body.economy-only .banner {
  margin-top: 0;
}

body.economy-only .banner::after,
body.economy-only .exchange-frame::after,
body.economy-only .ticker-collapse-toggle {
  display: none !important;
}

body.economy-only .economy-only-frame {
  padding: 18px 22px 22px;
}

body.economy-only .economy-dashboard {
  margin: 0;
  border: 1px solid rgba(184, 133, 54, 0.42);
  background: rgba(10, 7, 9, 0.9);
}

body.economy-only .economy-chart-panel {
  border-bottom: 0;
}

body.economy-only .economy-chart {
  min-height: clamp(430px, 52vw, 760px);
}

/* Two gold frames: the outer exchange-frame, and the dashboard frame that wraps the header
   AND the chart together. Keep the dashboard's gold border, drop only its dark inset ring,
   and remove the chart's own inner border so there's no redundant third line. */
body.economy-only .economy-dashboard { box-shadow: none; }
body.economy-only .economy-chart { border: 0; background: rgba(17, 9, 26, 0.3); }

/* Contact form */
.contact-form { display: grid; gap: 16px; margin-top: 24px; max-width: 640px; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; }
.contact-form label > span { color: #c99a50; font: 700 0.68rem Rajdhani, Arial, sans-serif; letter-spacing: 0.07em; text-transform: uppercase; }
.contact-form input, .contact-form textarea { border: 1px solid #725224; border-radius: 4px; background: #0d0909; color: #efd59f; padding: 10px 12px; font: inherit; font-size: 0.92rem; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #e6c483; box-shadow: 0 0 0 2px rgba(222, 177, 97, 0.18); }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
#cf-submit { border: 1px solid #e6c483; border-radius: 999px; background: linear-gradient(180deg, #f4d99f, #d7a95c 60%, #b0842f); color: #2a1a08; font: 800 12px Rajdhani, Arial, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; padding: 11px 22px; cursor: pointer; }
#cf-submit:disabled { opacity: 0.6; cursor: default; }
.contact-status { margin: 0; font-size: 0.9rem; color: #b7a389; }
.contact-status.is-ok { color: #7fd18f; }
.contact-status.is-error { color: #e08a7a; }
@media (max-width: 640px) { .contact-row { grid-template-columns: 1fr; } }

@media (max-width: 700px) {
  body.economy-only .economy-only-frame {
    padding: 10px;
  }

  body.economy-only .economy-dashboard {
    margin: 0;
  }

  body.economy-only .economy-chart {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }
}

/* Unified top nav bar: full-width, fixed height, identical across pages so it never
   shifts when navigating. Inner width mirrors .shell exactly. Shared with spice-bot.html. */
.masthead {
  width: 100%;
  border-bottom: 1px solid rgba(211, 150, 84, 0.5);
  background: #080606;
}
.masthead-inner {
  /* Shared site frame width — keep in sync with .bot-page and body.economy-only .shell. */
  width: min(1440px, calc(100vw - clamp(12px, 1.2vw, 28px)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 52px;
}
.masthead-brand { display: inline-flex; width: max-content; height: 29px; align-items: center; }
.masthead-brand img { height: 100%; width: auto; filter: sepia(0.18) saturate(1.1); }
.masthead-tagline {
  justify-self: center;
  margin: 0;
  color: #b79662;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.masthead-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.masthead-nav a { display: inline-flex; align-items: center; gap: 7px; color: #b79662; text-decoration: none; transition: color 0.15s ease; }
.masthead-nav a:hover, .masthead-nav a:focus-visible { color: #f1ce8d; outline: none; }
.masthead-nav a.is-active { color: #f0d29a; }
.nav-discord-icon { flex: 0 0 auto; width: 15px; height: 15px; }

body.tv-mode .masthead { display: none; }

@media (max-width: 760px) {
  .masthead-inner { grid-template-columns: 1fr auto; min-height: 47px; }
  .masthead-brand { height: 24px; }
  .masthead-tagline { display: none; }
  .masthead-nav { gap: 16px; }
}
