/*
  wow-token-dashboard.css — WoW Token dashboard (/wow-token/ only).

  Flattened 2026-06-12 (FR-1, FRONTEND_REVIEW_2026-06-12). The 12 WGF_*_START/END
  patch layers were collapsed into this single sheet; the rendered result is the
  final cascade of the old file (the "clean launch" design). Colors consume the
  shared palette in /static/css/_tokens.css. Pre-flatten original:
  backups/frontend-fr-fixes-20260612/assets/wow-token-dashboard.css

  NOTE: this page deliberately INVERTS market colors — a price increase is red
  (tokens cost more gold) and a decrease is green. A visible legend on the page
  explains this. See FR-8 in the review doc before "fixing" it.
  Design tokens come from /static/css/_tokens.css, loaded via <link> in the page
  head BEFORE this sheet (FR-3: the render-blocking CSS import chain was removed).
*/

/* ---------------------------------------------------------------- page scope */

body.wgf-token-dashboard-page {
  background:
    radial-gradient(circle at top center, rgba(244, 196, 92, 0.08), transparent 34rem),
    linear-gradient(180deg, var(--wgf-bg-2), var(--wgf-bg));
  color: var(--wgf-text);
}

/* Atmospheric backdrop (docs/ui-ux/02-components.md sec.16): a committed first-party
   dungeon tile behind the page so the tracker sits in the game world instead of a flat
   colored void (owner review 2026-07-03, "no cool wow assets shown anywhere"). Fixed +
   a scrim legibility floor + top gold glow; darkness is the lever, blur hides the
   600x300 upscale. Data sits on the opaque plates above. Nothing animates.            */
body.wgf-token-dashboard-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(var(--wgf-gold-rgb),.12), transparent 55%),
    linear-gradient(180deg, rgba(10,9,7,.82) 0%, rgba(10,9,7,.72) 32%, rgba(9,8,6,.90) 100%),
    url("/assets/dungeon-tiles/skyreach.jpg") center 30%/cover no-repeat;
  filter: blur(2px) saturate(1.04);
}

body.wgf-token-dashboard-page,
body.wgf-token-dashboard-page * {
  box-sizing: border-box;
}

body.wgf-token-dashboard-page .wgf-shell-main {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: var(--space-3) clamp(12px, 3vw, 28px) 36px;
}

/* ------------------------------------------------------------ layout shells */

.wtd-tool-with-sidebar,
.wtd-seo-block,
.wtd-ad-wrap {
  width: min(100%, 1180px);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.wtd-tool-with-sidebar {
  display: block;
}

/* The desktop sidebar ad slot is retired; the column never renders. */
.wtd-sidebar-ad {
  display: none;
}

.wtd-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 0 var(--space-6);
  color: var(--wgf-gold);
}

.wtd-ad-wrap--top {
  margin-bottom: var(--space-3);
}

.wtd-ad-wrap .wgf-ad-slot {
  margin-bottom: 0;
}

.wtd-seo-block {
  padding-top: var(--space-2);
  padding-bottom: var(--space-6);
}

/* ------------------------------------------------------------- panel chrome */

.wtd-region-card,
.wtd-chart-panel,
.wtd-history-panel,
.wtd-related-links a,
body.wgf-token-dashboard-page .wgf-section {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.16)), var(--wgf-panel-1);
  border: 1px solid var(--wgf-border-neutral);
  border-radius: var(--radius-control);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255,255,255,.06);
}

/* ------------------------------------------------------------------- hero */

/* The hero composes as the client window (ig-38 container standard / .wgf-window):
   a metal frame with corner joinery around a title strip and a near-black WELL body.
   Owner 2026-07-03: no floating outlined gold-left panel; it must feel in-game. */
.wtd-token-tooltip {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 0;
  border: 2px solid var(--wgf-metal);
  border-radius: 4px;
  background:
    url(/assets/ui/ui-frame-metal-cornertopleft-2x.png) top left / 40px auto no-repeat,
    url(/assets/ui/ui-frame-metal-cornertopright-2x.png) top right / 40px auto no-repeat,
    url(/assets/ui/ui-frame-metal-cornerbottomleft-2x.png) bottom left / 26px auto no-repeat,
    url(/assets/ui/ui-frame-metal-cornerbottomright-2x.png) bottom right / 26px auto no-repeat,
    var(--wgf-well);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .65), 0 12px 34px rgba(0, 0, 0, .28);
  color: var(--wgf-text);
}

/* Title strip: raised warm-stone bar with the gold small-caps window title. */
.wtd-market-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-3) clamp(var(--space-3), 2.2vw, 24px);
  background: linear-gradient(var(--wgf-panel, var(--wgf-panel-1)), var(--wgf-plate-hi, var(--wgf-panel-1)));
  border-bottom: 1px solid var(--wgf-metal-soft);
}

.wtd-market-label {
  margin: 0 0 var(--space-1);
  color: var(--wgf-muted);
  font-family: var(--font-game);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.wtd-item-name {
  margin: 0;
  color: var(--wgf-gold);
  font-family: var(--font-game-display);
  font-size: clamp(17px, 1.7vw, 23px);
  font-weight: 700;
  font-variant: small-caps;
  line-height: 1.15;
  letter-spacing: .03em;
  text-shadow: var(--text-ink-outline);
}

.wtd-item-flavor {
  margin: var(--space-1) 0 0;
  color: var(--wgf-muted);
  font-family: var(--font-game);
  font-size: 12px;
}

/* Region switcher: no pill container. Each region IS the client red button
   (the .wgf-tab language: real 128-redbutton cap slices, yellow Friz). Active =
   the pressed red state; the rest are dimmed red buttons. */
.wtd-region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  min-width: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.wtd-region-tabs button {
  box-sizing: border-box;
  min-width: 48px;
  min-height: 30px;
  padding: 0 13px;
  border: 0;
  border-radius: 0;
  background:
    url(/assets/ui/128-redbutton-left-cap.png) left center / auto 100% no-repeat border-box,
    url(/assets/ui/128-redbutton-right-cap.png) right center / auto 100% no-repeat border-box,
    url(/assets/ui/_128-redbutton-center.png) left center / auto 100% repeat-x content-box;
  background-color: transparent;
  color: var(--wgf-gold-dim, #b58f3a);
  font-family: var(--font-game);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-shadow: var(--text-ink-outline);
  cursor: pointer;
  filter: brightness(.66) saturate(.9);
  transition: filter var(--motion-fast, .12s) var(--ease-standard, ease),
              color var(--motion-fast, .12s) var(--ease-standard, ease);
}

.wtd-region-tabs button:hover {
  filter: brightness(.9) saturate(1);
  color: var(--wgf-gold-bright);
}

.wtd-region-tabs button.is-active {
  background:
    url(/assets/ui/128-redbutton-left-cap-pressed.png) left center / auto 100% no-repeat border-box,
    url(/assets/ui/128-redbutton-right-cap-pressed.png) right center / auto 100% no-repeat border-box,
    url(/assets/ui/_128-redbutton-center-pressed.png) left center / auto 100% repeat-x content-box;
  background-color: transparent;
  color: var(--wgf-gold-bright);
  filter: none;
  transform: translateY(1px);
}

.wtd-tooltip-rule {
  display: none;
}

/* -------------------------------------------------------------- price block */

.wtd-token-price-row {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-2), 1.6vw, var(--space-3));
  width: 100%;
  margin: 0;
  padding: clamp(var(--space-3), 2.2vw, 24px) clamp(var(--space-3), 2.2vw, 24px) var(--space-3);
}

/* The real WoW Token item icon (epic quality), rendered ONCE on the left like the
   in-game token window. The price keeps its single trailing gold coin (the AH price
   idiom) - no generic coin flanking the number. */
.wtd-token-icon {
  flex-shrink: 0;
  display: inline-flex;
  width: 48px;
  height: 48px;
  border: 2px solid var(--q-epic);
  border-radius: 4px;
  background: var(--wgf-well);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .7), 0 2px 8px rgba(0, 0, 0, .6);
  overflow: hidden;
}

.wtd-token-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wtd-price-stack {
  display: block;
  min-width: 0;
}

.wtd-price-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  line-height: 1;
}

.wtd-price-main {
  display: inline-block;
  color: #ffffff;
  /* The in-game client face on the headline number (owner: "feels like the game
     client"); the wgf-price component keeps tabular-nums for aligned figures. */
  font-family: var(--font-game);
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 800;
  line-height: .95;
  overflow-wrap: anywhere;
}

.wtd-price-main .wgf-price {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .12em;
  font-family: var(--font-game);
  font-size: inherit;
  line-height: inherit;
}

.wtd-price-main .wgf-price__seg {
  font-size: inherit;
}

.wtd-price-main .wgf-num {
  color: inherit;
}

/* Movement delta = plain colored text, not a pill. */
.wtd-price-change {
  display: inline-flex;
  align-items: center;
  align-self: center;
  width: fit-content;
  padding: 0;
  margin: 0;
  transform: translateY(.12em);
  background: none;
  border: 0;
  color: var(--wgf-muted);
  font-family: var(--font-game);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* Inverted on purpose: up = costs more gold = red (see header note). */
.wtd-price-change.up {
  color: var(--wgf-down);
}

.wtd-price-change.down {
  color: var(--wgf-up);
}

.wtd-price-change.neutral {
  color: var(--wgf-muted);
}

/* Freshness line: legible in-game text on the near-black well body, NOT a pill
   (owner 2026-07-03). Sits inside the window body, obeys the legibility contract. */
.wtd-price-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-3);
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 clamp(var(--space-3), 2.2vw, 24px) clamp(var(--space-3), 2.2vw, 24px);
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--wgf-muted);
  font-family: var(--font-game);
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: normal;
}

.wtd-price-meta span {
  min-width: 0;
  padding: 0;
  background: none;
  border: 0;
  font-size: 12px;
}

.wtd-price-meta b {
  margin: 0 0 0 var(--space-1);
  color: var(--wgf-text);
}

.wtd-price-meta time {
  color: var(--wgf-text);
  font-weight: 700;
}

.wtd-status-value {
  border: 0;
  padding: 0;
  background: none;
}

.wtd-price-meta b.wtd-status-value {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-game);
  font-size: 12px;
  letter-spacing: .02em;
}

/* ---------------------------------------------------------- section headers */

.wtd-section-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: end;
  margin-bottom: 12px;
}

.wtd-section-head h2 {
  margin: 0;
  font-family: var(--font-game-display);
  font-variant: small-caps;
  letter-spacing: .02em;
  font-size: 22px;
}

.wtd-section-head p {
  margin: 0;
  color: var(--wgf-muted);
  font-size: 12px;
}

.wtd-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.wtd-panel-head h2,
.wtd-history-head h2 {
  margin: 0;
  font-family: var(--font-game-display);
  font-variant: small-caps;
  letter-spacing: .02em;
  font-size: 25px;
}

.wtd-section-head h2,
.wtd-panel-head h2,
.wtd-history-head h2,
body.wgf-token-dashboard-page .wgf-section h2 {
  text-shadow: none;
}

.wtd-panel-head p,
.wtd-history-head p {
  margin: var(--space-1) 0 0;
  color: var(--wgf-muted);
  font-size: 12px;
  line-height: 1.5;
}

.wtd-chart-note {
  margin-top: var(--space-2);
  color: var(--wgf-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* ------------------------------------------------------------ region cards */

.wtd-region-compare {
  margin-bottom: var(--space-5);
}

.wtd-region-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.wtd-region-card {
  text-align: left;
  padding: 12px;
  color: var(--wgf-gold);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}

.wtd-region-card:hover {
  transform: translateY(-2px);
}

.wtd-region-label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--wgf-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 10px;
  font-weight: 900;
}

.wtd-region-card strong {
  display: block;
  color: var(--wgf-text);
  font-family: var(--font-mono);
  font-size: 22px;
  line-height: 1;
}

.wtd-region-card small {
  display: block;
  margin-top: var(--space-1);
  color: var(--wgf-neutral-text);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* Inverted market colors (see header note). */
.wtd-region-card small.up,
.wtd-history-panel td.up {
  color: var(--wgf-down);
}

.wtd-region-card small.down,
.wtd-history-panel td.down {
  color: var(--wgf-up);
}

.wtd-region-card small.neutral,
.wtd-history-panel td.neutral {
  color: var(--wgf-neutral-text);
}

.wtd-spark {
  display: block;
  height: 26px;
  margin-top: var(--space-2);
}

.wtd-spark svg {
  width: 100%;
  height: 26px;
  display: block;
}

.wtd-spark svg polyline {
  stroke: var(--wgf-gold-primary);
}

/* -------------------------------------------------------------- stat grid */

.wtd-stat-grid,
.wtd-chart-panel {
  margin-bottom: var(--space-5);
}

.wtd-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

/* High/low cards re-cut onto the near-black inset WELL (.wgf-well), not the
   floating outlined panel (owner 2026-07-03). */
.wtd-stat-grid article {
  padding: var(--space-3);
  border: 1px solid var(--wgf-well-edge);
  border-radius: 4px;
  background: var(--wgf-well);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(0, 0, 0, .6);
}

/* Period header: 24H / 7D / 30D */
.wtd-period-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--wgf-gold-primary);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--wgf-border-neutral-soft);
}

/* High / Low side-by-side within each period group */
.wtd-pair {
  display: flex;
  gap: var(--space-3);
}

.wtd-pair-item {
  flex: 1;
  min-width: 0;
}

.wtd-pair-item > span {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--wgf-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 9px;
  font-weight: 900;
}

.wtd-stat-grid strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: var(--wgf-text);
  font-family: var(--font-mono);
  font-size: 17px;
  line-height: 1.1;
}

/* ------------------------------------------------------------- chart panel */

.wtd-chart-panel {
  padding: var(--space-4);
}

/* Range selector: same red-button kit-tab language as the region switcher, no
   pill container. */
.wtd-range-buttons {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.wtd-range-buttons button {
  box-sizing: border-box;
  min-height: 30px;
  padding: 0 13px;
  border: 0;
  border-radius: 0;
  background:
    url(/assets/ui/128-redbutton-left-cap.png) left center / auto 100% no-repeat border-box,
    url(/assets/ui/128-redbutton-right-cap.png) right center / auto 100% no-repeat border-box,
    url(/assets/ui/_128-redbutton-center.png) left center / auto 100% repeat-x content-box;
  background-color: transparent;
  color: var(--wgf-gold-dim, #b58f3a);
  font-family: var(--font-game);
  font-size: 11px;
  font-weight: 700;
  text-shadow: var(--text-ink-outline);
  cursor: pointer;
  filter: brightness(.66) saturate(.9);
  transition: filter var(--motion-fast, .12s) var(--ease-standard, ease),
              color var(--motion-fast, .12s) var(--ease-standard, ease);
}

.wtd-range-buttons button:hover {
  filter: brightness(.9) saturate(1);
  color: var(--wgf-gold-bright);
}

.wtd-range-buttons button.is-active {
  background:
    url(/assets/ui/128-redbutton-left-cap-pressed.png) left center / auto 100% no-repeat border-box,
    url(/assets/ui/128-redbutton-right-cap-pressed.png) right center / auto 100% no-repeat border-box,
    url(/assets/ui/_128-redbutton-center-pressed.png) left center / auto 100% repeat-x content-box;
  background-color: transparent;
  color: var(--wgf-gold-bright);
  filter: none;
  transform: translateY(1px);
}

.wtd-chart-wrap {
  position: relative;
  height: 380px;
}

#wtdChart {
  display: block;
  width: 100%;
  height: 380px;
  border-radius: var(--radius-control);
  background:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    var(--wgf-bg-base);
  border: 1px solid var(--wgf-border-neutral-soft);
}

/* ---------------------------------------------------------- history table */

.wtd-history-panel {
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.wtd-history-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) 20px;
  border-bottom: 1px solid var(--wgf-gold-shadow);
  background: radial-gradient(circle at 15% 0%, rgba(var(--wgf-gold-rgb), .08), transparent 32%), rgba(0, 0, 0, .12);
}

.wtd-history-legend {
  margin-top: var(--space-1);
  font-size: 12px;
}

.wtd-table-wrap {
  overflow-x: auto;
}

.wtd-history-scroll {
  max-height: min(320px, 42vh);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(var(--wgf-gold-rgb), .45) rgba(0, 0, 0, .35);
  scrollbar-width: thin;
}

.wtd-history-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.wtd-history-scroll::-webkit-scrollbar-thumb {
  border-radius: var(--radius-pill);
  background: rgba(var(--wgf-gold-rgb), .42);
}

.wtd-history-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.wtd-history-panel table {
  width: 100%;
  border-collapse: collapse;
}

.wtd-history-panel th {
  padding: var(--space-2) var(--space-3);
  text-align: left;
  color: var(--wgf-muted);
  background: rgba(0, 0, 0, .18);
  border-bottom: 1px solid var(--wgf-border-neutral-soft);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 9px;
}

.wtd-history-panel th.is-time,
.wtd-history-panel td:first-child {
  width: 170px;
  text-align: right;
}

.wtd-history-panel td {
  padding: var(--space-2) var(--space-3);
  color: var(--wgf-gold);
  border-bottom: 1px solid var(--wgf-border-neutral-soft);
  font-family: var(--font-mono);
  font-size: 12px;
}

.wtd-history-panel td.price {
  color: var(--wgf-text);
  font-weight: 900;
}

.wtd-history-panel tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, .025);
}

.wtd-history-panel tbody tr {
  transition: background .12s ease, transform .12s ease;
}

.wtd-history-panel tbody tr:hover {
  background: rgba(var(--wgf-gold-rgb), .08);
  transform: scale(1.003);
}

.wtd-history-panel td.empty {
  color: var(--wgf-neutral-text);
  text-align: center;
  padding: 28px var(--space-3);
  font-family: inherit;
}

.wtd-history-panel td.empty strong {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--wgf-gold-bright);
  font-family: var(--font-ui);
  font-size: 18px;
}

.wtd-history-panel td.empty span {
  color: var(--wgf-muted);
  line-height: 1.55;
}

.wtd-sort {
  all: unset;
  cursor: pointer;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.wtd-sort::after {
  content: "↕";
  opacity: .35;
  font-size: 10px;
}

.wtd-sort.is-active.asc::after {
  content: "↑";
  opacity: .85;
}

.wtd-sort.is-active.desc::after {
  content: "↓";
  opacity: .85;
}

/* --------------------------------------------------- SEO block / related */

.wtd-seo-block .wgf-section {
  margin-top: 20px;
}

.wtd-seo-block .wgf-section:first-child {
  margin-top: 0;
}

body.wgf-token-dashboard-page .wgf-section p,
.wtd-related-links a span {
  color: var(--wgf-muted);
}

.wtd-related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: var(--space-3);
}

.wtd-related-links a {
  display: block;
  padding: var(--space-3) var(--space-3);
  color: var(--wgf-gold-bright);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
}

.wtd-related-links a span {
  display: block;
  margin-top: var(--space-1);
  font-weight: 500;
  font-size: 12px;
}

.wtd-faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wtd-faq-list li {
  border-top: 1px solid rgba(var(--wgf-gold-rgb), .25);
  padding: var(--space-3) 0;
}

.wtd-faq-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.wtd-faq-list h3 {
  margin: 0 0 var(--space-2);
  font-size: 16px;
  color: var(--wgf-gold-bright);
  font-weight: 800;
}

.wtd-faq-list p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

/* ------------------------------------------------------------- breakpoints */

@media (max-width: 980px) {
  .wtd-region-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wtd-region-tabs {
    margin-top: var(--space-3);
  }

  .wtd-chart-wrap,
  #wtdChart {
    height: 330px;
  }
}

@media (max-width: 900px) {
  .wtd-market-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .wtd-region-tabs {
    width: 100%;
  }
}

@media (max-width: 640px) {
  body.wgf-token-dashboard-page .wgf-shell-main {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }

  .wtd-section-head,
  .wtd-panel-head,
  .wtd-history-head {
    display: block;
  }

  .wtd-region-tabs {
    margin-top: var(--space-3);
  }

  .wtd-range-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-top: var(--space-3);
  }

  .wtd-region-tabs button,
  .wtd-range-buttons button {
    min-width: 0;
    padding-left: var(--space-1);
    padding-right: var(--space-1);
  }

  .wtd-price-line .wtd-price-change {
    flex-basis: 100%;
    margin-top: var(--space-2);
    transform: none;
  }

  .wtd-region-grid {
    grid-template-columns: 1fr;
  }

  .wtd-chart-panel {
    padding: var(--space-3);
  }

  .wtd-chart-wrap,
  #wtdChart {
    height: 300px;
  }

  .wtd-history-panel th.is-time,
  .wtd-history-panel td:first-child {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .wtd-token-tooltip {
    padding: 12px;
  }

  .wtd-price-main {
    font-size: clamp(38px, 13vw, 54px);
  }

  .wtd-price-main .wgf-price {
    gap: .08em;
  }

  .wtd-price-line {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .wtd-price-change {
    width: fit-content;
  }

  .wtd-price-meta {
    margin-left: 0;
    white-space: normal;
  }
}

@media (max-width: 430px) {
  .wtd-stat-grid {
    grid-template-columns: 1fr;
  }

  .wtd-chart-wrap,
  #wtdChart {
    height: 280px;
  }
}
