/* Navigation and data readability. Content responds to available space. */
:root {
  --sidebar-width: 224px;
}
.mobile-nav {
  display: none !important;
}
.site-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--line);
  z-index: 35;
  padding: 28px 14px 18px;
  overflow: auto;
  overscroll-behavior: contain;
}
.site-sidebar .brand {
  margin: 0 14px 34px;
  align-self: start;
  gap: 10px;
}
.site-sidebar .brand > svg {
  width: 25px;
  height: 27px;
}
.site-sidebar .brand > span:nth-child(2) {
  font-size: 29px;
}
.site-sidebar .brand .game-tag {
  display: inline-block;
  font-size: 16px;
}
.sidebar-pages {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  border-left: 2px solid transparent;
}
.sidebar-link > img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.sidebar-link > span {
  min-width: 0;
}
.sidebar-link:hover {
  background: var(--subtle);
  color: var(--text);
}
.sidebar-link.active {
  background: var(--accent-bg);
  color: var(--text);
  border-left-color: var(--accent);
}
.sidebar-account {
  margin-top: auto;
  padding-top: 24px;
}
.sidebar-account > .sidebar-link {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  border-radius: 0;
  min-height: 56px;
}
.sidebar-account > .sidebar-link.active {
  background: transparent;
  color: var(--accent);
  border-left-color: transparent;
}
.sidebar-auth {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 7px;
  margin: 16px 8px 0;
}
.sidebar-auth[hidden],
.sidebar-profile[hidden] {
  display: none;
}
.sidebar-signin,
.sidebar-create {
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 16px;
  text-align: center;
  line-height: 1.4;
}
.sidebar-create {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 500;
}
.sidebar-create:hover,
.sidebar-create[aria-current="page"] {
  background: var(--text);
  color: var(--bg);
}
.sidebar-signin:hover,
.sidebar-signin[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent);
}
.sidebar-profile {
  margin: 14px 14px 0;
  min-width: 0;
}
.sidebar-profile strong {
  font-size: 16px;
  font-weight: 500;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-profile > span {
  display: block;
  font-size: 16px;
  color: var(--muted);
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-storage {
  color: var(--faint);
  font-size: 16px;
  line-height: 1.7;
  margin: 12px 14px 20px;
}
.sidebar-shortcuts {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  color: var(--muted);
  padding: 0 14px;
  min-height: 30px;
}
.sidebar-shortcuts svg {
  width: 14px;
  height: 14px;
}
.topbar {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  padding: 0 32px;
  height: 70px;
  gap: 22px;
  justify-content: space-between;
}
.topbar > .brand {
  display: none;
}
.topbar .global-search {
  width: min(430px, 60%);
  max-width: 430px;
  margin: 0;
  justify-content: start;
}
.topbar .global-search > span:first-child {
  margin-left: 0;
}
.topbar .global-search kbd {
  margin-left: auto;
}
.header-actions {
  margin-left: auto;
}
.navigation-toggle {
  display: none;
}
.ticker {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  padding-inline: 32px;
}
.workspace {
  margin-left: var(--sidebar-width);
  margin-right: 0;
  max-width: none;
  width: calc(100% - var(--sidebar-width));
  padding: 30px 32px 0;
  min-width: 0;
  container: workspace / inline-size;
}
.workspace > div,
.workspace > section,
.workspace > footer {
  max-width: 1536px;
  margin-inline: auto;
}
.auth-page .workspace {
  max-width: none;
  padding: 42px 32px;
}
.auth-page #product-page {
  max-width: 1060px;
}
.market-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
}
.main-column,
.side-column {
  min-width: 0;
}
.side-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.side-column[hidden] {
  display: none;
}
.page-heading-actions {
  min-width: 0;
}
.page-heading h1 {
  overflow-wrap: normal;
  text-wrap: balance;
}
/* The original icon inherited a 5px left margin. A dedicated flex wrapper centers it. */
#refresh-button .feed-orbit {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  line-height: 0;
  box-sizing: border-box;
}
#refresh-button .feed-orbit > [data-icon] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
#refresh-button .feed-orbit svg {
  display: block;
  width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  transform-origin: 50% 50%;
}
#refresh-button.market-status {
  padding: 0;
}
/* Calculator amounts have their own full-width rows; units never sit over digits. */
.flip-inputs {
  grid-template-columns: minmax(0, 1fr);
  gap: 15px;
}
.flip-inputs > label {
  display: block;
  font-size: 16px;
  min-width: 0;
}
.flip-inputs .gp-control {
  margin-top: 8px;
}
.flip-inputs .gp-control input {
  font-size: 14px !important;
  letter-spacing: -0.25px;
}
.gp-control {
  min-width: 0;
}
.gp-control input {
  font-variant-numeric: tabular-nums;
}
.gp-unit-label {
  align-self: stretch;
  display: flex;
  align-items: center;
}
.gp-input-helper {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.flip-inputs .gp-input-helper {
  font-size: 16px !important;
  line-height: 1.6 !important;
}
.quantity-row {
  display: grid;
  grid-template-columns: minmax(60px, 1fr) 24px minmax(46px, 85px) 24px auto;
  gap: 6px;
}
.quantity-row input {
  width: 100%;
  min-width: 0;
  font-size: 16px;
}
.flip-breakdown > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  line-height: 1.6;
}
.flip-breakdown > div > span:last-child {
  font-size: 16px;
  white-space: nowrap;
}
.flip-result {
  display: block;
  padding-top: 17px;
}
.flip-result > span {
  display: block;
  font-size: 16px;
  margin-bottom: 12px;
}
.flip-result > div {
  text-align: left;
}
.flip-result strong {
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.8px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.flip-result #flip-roi {
  display: block;
  margin-top: 8px;
  font-size: 16px;
}
.gp-preview {
  flex-wrap: wrap;
}
.gp-preview strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.asset-price-line {
  flex-wrap: wrap;
  gap: 0;
  line-height: 1.15;
}
.asset-price {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.asset-price-line > .price-unit {
  flex-shrink: 0;
  margin-block: 6px;
}
.asset-performance {
  height: auto;
  min-height: 24px;
  flex-wrap: wrap;
  row-gap: 6px;
  line-height: 1.6;
}
.asset-stats > div {
  min-width: 0;
}
.asset-stats strong {
  overflow-wrap: anywhere;
}
/* A compact, in-game-inspired exact GP readout on hover or keyboard focus. */
.price-tip {
  display: none;
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 15px 17px;
  max-width: min(360px, calc(100vw - 24px));
  min-width: min(240px, calc(100vw - 24px));
  border: 1px solid var(--secondary);
  border-radius: 3px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 3px 8px #0003;
  z-index: 70;
  pointer-events: none;
  line-height: 1.5;
}
.price-tip.visible {
  display: block;
}
.price-tip::backdrop {
  background: transparent;
}
.price-tip-label {
  color: var(--muted);
  font:
    16px Geist,
    sans-serif;
  margin-bottom: 10px;
}
.price-tip-value {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}
.price-tip-value strong {
  font: 500 18px/1.45 var(--mono);
  overflow-wrap: anywhere;
  min-width: 0;
}
.price-tip-value > span {
  font:
    16px Geist,
    sans-serif;
  color: var(--muted);
}
.price-tip-denomination {
  font: 16px/1.5 var(--mono);
  margin: 8px 0 0 33px;
  color: var(--muted);
}
.price-tip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.price-tip-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
}
.price-tip-item strong {
  font:
    500 16px/1.5 Geist,
    sans-serif;
}
.price-tip-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  font:
    16px/1.5 Geist,
    sans-serif;
  margin-top: 11px;
}
.price-tip-meta > span {
  color: var(--muted);
}
.price-tip-meta strong {
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.price-tip p {
  font:
    16px/1.6 Geist,
    sans-serif;
  color: var(--muted);
  margin: 14px 0 0;
}
[data-gp-amount]:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}
/* Alternate list view for exact values and shared map controls. */
.map-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.map-view-tabs {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.map-view-tabs button {
  font-size: 16px;
  color: var(--muted);
  padding: 9px 3px;
  border-bottom: 2px solid transparent;
}
.map-view-tabs button[aria-pressed="true"] {
  border-bottom-color: var(--accent);
  color: var(--text);
}
.map-view-toolbar > span {
  font-size: 16px;
  color: var(--muted);
}
.market-map[hidden],
.map-item-list[hidden] {
  display: none;
}
.map-list-heading,
.map-list-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1.8fr) minmax(135px, 1fr) minmax(85px, 0.65fr)
    minmax(95px, 0.7fr);
  align-items: center;
  gap: 20px;
}
.map-list-heading {
  padding: 14px 12px;
  color: var(--muted);
  font-size: 16px;
  border-bottom: 1px solid var(--line);
}
.map-list-heading > span:not(:first-child) {
  text-align: right;
}
.map-list-row {
  padding: 15px 12px;
  border-bottom: 1px solid var(--soft-line);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.map-list-row:hover {
  background: var(--surface);
  color: var(--text);
}
.map-list-row > span:not(:first-child) {
  text-align: right;
  font-family: var(--mono);
  font-size: 16px;
}
.map-list-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.map-list-name img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.map-list-name strong {
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-list-row small {
  color: var(--muted);
  font:
    16px Geist,
    sans-serif;
}
.map-list-price {
  color: var(--secondary);
  white-space: nowrap;
}
/* A native dialog provides focus containment and Escape/outside dismissal on smaller screens. */
.navigation-dialog {
  padding: 0;
  margin: 0;
  height: 100dvh;
  max-height: 100dvh;
  width: min(310px, calc(100vw - 40px));
  max-width: none;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 0;
  overflow: auto;
}
.navigation-dialog::backdrop {
  background: #0008;
}
.navigation-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 18px 13px;
  font-size: 16px;
}
.drawer-navigation {
  padding: 0 14px 22px;
  min-height: calc(100dvh - 72px);
  display: flex;
  flex-direction: column;
}
.drawer-navigation .sidebar-pages {
  gap: 5px;
}
.drawer-navigation .sidebar-link {
  min-height: 47px;
  font-size: 16px;
}
.drawer-navigation .sidebar-account {
  margin-top: auto;
  padding-top: 24px;
}
@container workspace (max-width:1060px) {
  .market-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .side-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 8px;
  }
  .compare-prompt,
  .sidebar-note {
    display: none;
  }
  .flipper-layout,
  .account-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 24px;
  }
}
@container workspace (max-width:820px) {
  .flipper-layout,
  .account-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .flipper-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .flipper-sidebar > section:last-child {
    grid-column: 1/-1;
  }
  .market-summary strong {
    font-size: 27px;
  }
  .analytics-layout {
    gap: 26px;
  }
  .map-toolbar {
    flex-wrap: wrap;
  }
  .map-legend {
    margin-left: 0;
  }
  .asset-stats strong {
    font-size: 16px;
  }
  .asset-stats span {
    font-size: 16px;
  }
  .flipper-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .flipper-controls > .primary-button {
    grid-column: 1/-1;
    justify-self: start;
  }
}
@container workspace (max-width:600px) {
  .side-column {
    grid-template-columns: minmax(0, 1fr);
  }
  .watchlist-panel {
    display: none;
  }
  .flipper-sidebar {
    display: block;
  }
  .flipper-controls {
    grid-template-columns: minmax(0, 1fr);
  }
  .flipper-controls > .primary-button {
    width: 100%;
    justify-content: center;
  }
  .market-summary {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .market-summary > div {
    padding: 18px 0 !important;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .analytics-layout {
    grid-template-columns: 1fr;
  }
  .asset-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .page-heading-actions {
    max-width: none;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .flip-inputs {
    grid-template-columns: 1fr;
  }
  .asset-price {
    font-size: clamp(26px, 6cqw, 40px);
  }
}
@media (min-width: 1700px) {
  :root {
    --sidebar-width: 236px;
  }
  .workspace,
  .ticker,
  .topbar {
    padding-left: 42px;
    padding-right: 42px;
  }
  .market-map {
    height: 760px;
  }
}
@media (max-width: 1099px) {
  :root {
    --sidebar-width: 0px;
  }
  .site-sidebar {
    display: none;
  }
  .topbar {
    height: 66px;
    padding: 0 24px;
    gap: 17px;
    justify-content: start;
  }
  .navigation-toggle {
    display: flex;
    flex-shrink: 0;
  }
  .topbar > .brand {
    display: flex;
    gap: 9px;
  }
  .topbar > .brand > svg {
    display: none;
  }
  .topbar > .brand > span:nth-child(2) {
    font-size: 26px;
  }
  .topbar > .brand .game-tag {
    display: none;
  }
  .topbar .global-search {
    width: auto;
    flex: 1;
    max-width: 430px;
    margin-left: auto;
  }
  .ticker {
    padding-inline: 24px;
  }
  .workspace {
    padding: 26px 24px 0;
  }
  .auth-page .workspace {
    padding: 28px 24px;
  }
  .auth-page .topbar .global-search {
    display: flex;
  }
  .mobile-nav {
    display: none !important;
  }
  body {
    padding-bottom: 0;
  }
  .toast {
    bottom: 24px;
  }
  .compare-tray {
    bottom: 20px;
  }
  .navigation-dialog[open] {
    display: flex;
    flex-direction: column;
  }
  .drawer-navigation {
    flex: 1;
  }
  .header-actions #sound-button {
    display: none;
  }
}
@media (max-width: 700px) {
  .workspace {
    padding: 24px 18px 0;
  }
  .topbar {
    padding: 0 18px;
    gap: 12px;
  }
  .topbar .global-search {
    margin: 0 0 0 auto;
    min-width: 0;
    flex: 1;
    padding: 0 8px;
  }
  .topbar .global-search > span:nth-child(2),
  .topbar .global-search kbd {
    display: none;
  }
  .topbar .global-search > span:first-child {
    margin-left: auto;
  }
  .topbar > .brand > span:nth-child(2) {
    font-size: 27px;
  }
  .header-actions {
    gap: 4px;
    flex-shrink: 0;
  }
  .ticker {
    padding-inline: 18px;
  }
  .auth-page .workspace {
    padding: 20px 18px;
  }
  .auth-page .topbar .global-search {
    display: none;
  }
  .auth-page .topbar .header-actions {
    margin-left: auto;
  }
  .feed-sync {
    min-width: 140px;
  }
  #refresh-button .feed-orbit {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
  }
  #refresh-button .feed-orbit svg {
    width: 12px;
    height: 12px;
  }
  .feed-copy strong {
    font-size: 16px;
  }
  .feed-copy small {
    font-size: 16px;
  }
  .map-view-toolbar > span {
    font-size: 16px;
    max-width: 175px;
    text-align: right;
    line-height: 1.6;
  }
  .map-view-tabs button {
    font-size: 16px;
  }
  .market-map {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .map-tile {
    position: relative;
    inset: auto;
    width: auto;
    height: 155px;
    min-height: 155px;
  }
  .map-list-heading {
    display: none;
  }
  .map-list-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 16px 3px;
  }
  .map-list-name {
    gap: 9px;
  }
  .map-list-name strong {
    font-size: 16px;
  }
  .map-list-row > span:not(:first-child) {
    font-size: 16px;
  }
  .map-list-volume {
    grid-column: 1;
    grid-row: 2;
    margin-left: 37px;
    text-align: left !important;
    color: var(--muted);
  }
  .map-list-row > span:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
  .map-list-price {
    font-size: 16px !important;
  }
  .map-list-price small {
    display: none;
  }
  .price-tip-value strong {
    font-size: 16px;
  }
  .flip-result strong {
    font-size: 26px;
  }
  .price-tip {
    padding: 14px;
  }
}
@media (max-height: 760px) and (min-width: 1100px) {
  .site-sidebar {
    padding-top: 19px;
    padding-bottom: 12px;
  }
  .site-sidebar .brand {
    margin-bottom: 22px;
  }
  .sidebar-pages {
    gap: 1px;
  }
  .sidebar-link {
    min-height: 39px;
    padding-block: 6px;
  }
  .sidebar-account {
    padding-top: 18px;
  }
  .sidebar-auth {
    margin-top: 10px;
  }
  .sidebar-storage {
    margin-bottom: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .price-tip {
    animation: none;
  }
  .navigation-dialog {
    scroll-behavior: auto;
  }
}
/* All-value heatmap: every item keeps its sprite, price and quantity visible. */
.market-map {
  display: grid;
  height: auto;
  min-height: 0;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.market-map[hidden] {
  display: none;
}
.map-tile {
  container: none;
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  min-height: 208px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 17px;
  overflow: hidden;
}
.map-tile:hover {
  outline: none;
  filter: none;
  border-color: var(--secondary);
}
.map-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.map-tile-body {
  position: static;
  inset: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: start;
  gap: 13px;
  padding: 0;
  min-height: 174px;
  overflow: visible;
}
.map-tile-head {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 11px;
  width: 100%;
}
.map-tile-head img {
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}
.map-tile-head strong {
  display: block;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.map-tile-change {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 26px;
  line-height: 1.2;
  white-space: normal;
  overflow: visible;
  letter-spacing: -0.7px;
}
.map-tile-change small {
  font:
    16px Geist,
    sans-serif;
  letter-spacing: 0;
  color: var(--muted);
}
.map-tile-price,
.map-tile-volume {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  white-space: normal;
  overflow: visible;
  font: 16px/1.5 var(--mono);
}
.map-tile-price > small,
.map-tile-volume > small {
  font:
    16px/1.5 Geist,
    sans-serif;
  color: var(--muted);
  flex-shrink: 0;
}
.map-tile-price strong,
.map-tile-volume strong {
  min-width: 0;
  font-weight: 400;
  overflow-wrap: anywhere;
  text-align: right;
}
.map-tile-price strong > span {
  font:
    16px Geist,
    sans-serif;
  color: var(--muted);
  margin-left: 5px;
}
.map-activity-track {
  display: block;
  height: 2px;
  background: var(--line);
  margin-top: auto;
}
.map-activity-track i {
  display: block;
  height: 100%;
  background: var(--secondary);
  opacity: 0.7;
}
.map-tile-symbol {
  display: none !important;
}
/* The active page is marked by neutral contrast and an inset direction cue. */
.sidebar-link.active,
.sidebar-account > .sidebar-link.active {
  border-left-color: transparent;
  background: var(--surface-hover);
  color: var(--text);
  font-weight: 500;
}
.sidebar-link.active:after {
  content: "›";
  font:
    18px/1 Geist,
    sans-serif;
  margin-left: auto;
  color: var(--secondary);
}
.sidebar-link:not(.active) > img {
  opacity: 0.72;
}
.sidebar-link.active > img,
.sidebar-link:hover > img {
  opacity: 1;
}
.sidebar-link[hidden],
.avatar[hidden] {
  display: none !important;
}
.sidebar-signin[aria-current="page"] {
  color: var(--text);
  border-color: var(--secondary);
}
.sidebar-sound {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px;
  margin-bottom: 7px;
  font-size: 16px;
  color: var(--muted);
  min-height: 30px;
}
.sidebar-sound svg {
  width: 14px;
  height: 14px;
}
.sidebar-sound:hover {
  color: var(--text);
}
/* Price and denomination are distinct; the quote type lives above the amount. */
.asset-price-caption {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
  margin: 24px 0 9px;
}
.asset-price-line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 0;
}
.asset-price-line .hero-coin {
  align-self: center;
  margin-right: 0;
}
.asset-price-line .price-unit {
  margin: 0;
  font:
    16px/1 Geist,
    sans-serif;
  letter-spacing: 0.04em;
  color: var(--muted);
  flex: 0 0 auto;
}
.asset-price-line .asset-price {
  line-height: 1.12;
}
/* Five-minute opportunities use real net estimates and actual source windows. */
.ticker {
  height: 82px;
}
.ticker-label {
  display: flex;
  flex: 0 0 172px;
  width: 172px;
  height: auto;
  line-height: 1.5;
  padding-right: 15px;
  gap: 11px;
}
.ticker-label > span {
  font-size: 16px;
  color: var(--text);
}
.ticker-label small {
  display: block;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}
.ticker-items {
  min-width: 0;
  gap: 0;
  height: 100%;
  transition:
    opacity 0.18s var(--ease),
    transform 0.18s var(--ease);
}
.ticker-items.tape-changing {
  opacity: 0;
  transform: translateY(-6px);
}
.tape-quote {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 11px;
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
}
.tape-quote .tape-item-icon {
  display: flex;
  flex: 0 0 28px;
}
.tape-item-icon img {
  width: 28px;
  height: 28px;
}
.tape-item-name {
  max-width: none;
  min-width: 0;
  flex: 1;
  font-size: 16px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}
.tape-item-name > small {
  display: block;
  font-size: 16px;
  margin-top: 5px;
  color: var(--muted);
}
.tape-profit {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 6px;
  flex-shrink: 0;
}
.tape-profit strong {
  font: 16px/1.3 var(--mono);
  color: var(--accent);
}
.tape-profit strong small {
  font:
    16px Geist,
    sans-serif;
  color: var(--muted);
  margin-left: 3px;
}
.tape-profit > span {
  font-size: 16px;
  color: var(--muted);
}
.tape-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}
.tape-empty svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
/* Exchange feed: the small receipt animation runs only when data arrives. */
.feed-sync {
  padding: 0;
  min-width: 181px;
}
#refresh-button.market-status {
  gap: 11px;
  padding: 0;
  align-items: center;
}
.feed-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 34px;
  position: relative;
  flex-shrink: 0;
}
.feed-emblem > img {
  image-rendering: pixelated;
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.feed-signal {
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 4px;
  display: flex;
  gap: 2px;
  align-items: end;
  height: 7px;
}
.feed-signal i {
  display: block;
  flex: 1;
  height: 3px;
  background: var(--muted);
  transform-origin: bottom;
}
.feed-signal i:nth-child(2) {
  height: 5px;
}
.feed-signal i:nth-child(3) {
  height: 7px;
}
.feed-signal i:nth-child(4) {
  height: 4px;
}
.feed-copy strong {
  font-size: 16px;
  line-height: 1.4;
}
.feed-copy small {
  font-size: 16px;
  line-height: 1.4;
}
.feed-action {
  display: flex;
  margin-left: 8px;
  color: var(--muted);
}
#refresh-button .feed-action svg {
  display: block;
  width: 13px;
  height: 13px;
  margin: 0;
}
.sync-track {
  display: none;
}
.syncing .feed-signal i {
  background: var(--accent);
  animation: exchange-receipt 0.65s ease-in-out infinite alternate;
}
.sync-complete:not(.syncing) .feed-signal i {
  background: var(--accent);
  animation: exchange-receipt 0.5s ease-out 2 alternate;
}
.feed-signal i:nth-child(2) {
  animation-delay: 0.08s;
}
.feed-signal i:nth-child(3) {
  animation-delay: 0.16s;
}
.feed-signal i:nth-child(4) {
  animation-delay: 0.24s;
}
@keyframes exchange-receipt {
  from {
    transform: scaleY(0.5);
    opacity: 0.5;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}
/* Reporting windows state the interval, the two average prices, and the units. */
.block-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 17px 0 0;
  font-size: 16px;
  line-height: 1.6;
}
.block-legend > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.block-legend > span:before {
  content: "";
  width: 12px;
  height: 2px;
  background: currentColor;
}
.block-buy {
  color: var(--accent);
}
.block-sell {
  color: #d7ba83;
}
:root[data-theme="light"] .block-sell {
  color: #89651c;
}
.block-legend p {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.price-block-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}
.price-block {
  padding: 18px;
  min-width: 0;
}
.block-time {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
}
.block-time > span {
  color: var(--muted);
}
.block-prices {
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 18px 0 17px;
}
.block-prices > span {
  min-width: 0;
}
.block-prices small {
  font-size: 16px;
  line-height: 1.5;
  color: inherit;
}
.block-prices strong {
  display: block;
  line-height: 1.5;
  font-size: 14px;
  color: inherit !important;
  white-space: normal;
  overflow-wrap: anywhere;
}
.block-prices strong em {
  font:
    normal 16px Geist,
    sans-serif;
  color: var(--muted);
  margin-left: 3px;
}
.block-prices > span > span {
  display: block;
  font:
    16px/1.5 Geist,
    sans-serif;
  color: var(--muted);
  margin-top: 6px;
}
.block-volume-bar {
  background: #d7ba83;
  height: 3px;
  opacity: 0.8;
}
.block-volume-bar i {
  background: var(--accent);
}
.block-volume-text {
  align-items: center;
  font-size: 16px;
  line-height: 1.5;
  margin-top: 12px;
  gap: 12px;
}
.block-volume-text > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.block-volume-text svg {
  width: 11px;
  height: 11px;
}
.price-block:last-child {
  display: block;
}
@media (max-width: 1200px) {
  .tape-quote {
    padding-inline: 14px;
  }
  .ticker-label {
    width: 155px;
    flex-basis: 155px;
  }
  .ticker-source {
    display: none;
  }
}
@media (max-width: 700px) {
  .market-map {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 205px), 1fr));
    gap: 10px;
  }
  .map-tile {
    height: auto;
    min-height: 205px;
    padding: 17px;
  }
  .map-tile-head strong {
    font-size: 16px;
  }
  .map-tile-price,
  .map-tile-volume {
    font-size: 16px;
  }
  .map-tile-change {
    font-size: 27px;
  }
  .map-tile-body {
    min-height: 172px;
  }
  .asset-price-caption {
    font-size: 16px;
    margin-top: 20px;
  }
  .asset-price-line {
    column-gap: 11px;
    row-gap: 7px;
  }
  .asset-price-line .price-unit {
    font-size: 16px;
  }
  .asset-price-line .hero-coin .coin-sprite {
    width: 24px;
    height: 24px;
  }
  .ticker {
    height: 123px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0;
    align-content: center;
    padding-block: 10px;
  }
  .ticker-label {
    grid-column: 1;
    grid-row: 1;
    border: 0;
    flex: auto;
    width: auto;
    padding: 0;
    gap: 8px;
  }
  .ticker-label > span {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
  }
  .ticker-label small {
    font-size: 16px;
    margin: 0;
  }
  .ticker-label img {
    width: 19px;
    height: 19px;
  }
  .ticker-items {
    grid-column: 1;
    grid-row: 2;
    overflow: hidden;
    width: 100%;
    height: 70px;
  }
  .tape-controls {
    grid-column: 2;
    grid-row: 2;
    border: 0;
    margin-left: 10px;
  }
  .tape-controls #ticker-pause {
    display: flex;
  }
  .tape-controls {
    gap: 2px;
  }
  .tape-controls .icon-button {
    width: 25px;
    height: 30px;
  }
  .tape-quote {
    padding: 10px 0;
    border: 0;
    gap: 10px;
  }
  .tape-quote .tape-item-icon {
    display: flex !important;
    flex-basis: 27px;
  }
  .tape-item-name {
    font-size: 16px;
  }
  .tape-item-name > small {
    font-size: 16px;
  }
  .tape-profit strong {
    font-size: 16px;
  }
  .tape-profit > span {
    font-size: 16px;
  }
  .tape-empty {
    padding: 8px 0;
    font-size: 16px;
  }
  .feed-sync {
    min-width: 172px;
  }
  .feed-copy strong {
    font-size: 16px;
  }
  .feed-copy small {
    font-size: 16px;
  }
  .page-heading-actions > .text-button {
    font-size: 16px;
  }
  .block-time {
    font-size: 16px;
  }
  .block-prices strong {
    font-size: 16px;
  }
  .price-block-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  }
  .block-volume-text > span {
    display: flex;
  }
  .price-block:last-child {
    display: block;
  }
  .block-volume-text {
    font-size: 16px;
  }
  .block-legend {
    gap: 8px;
  }
  .block-legend > span {
    width: 100%;
  }
  .block-prices {
    gap: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .feed-signal i {
    animation: none !important;
  }
  .ticker-items {
    transition: none !important;
  }
}
:root[data-reduced-motion="true"] .feed-signal i {
  animation: none !important;
}
.feed-sync[data-connection="offline"] .feed-signal i {
  background: var(--muted);
  animation: none;
}

.ticker-items .tape-quote > .tape-profit {
  display: flex;
}
.market-map .map-tile {
  display: flex;
}
.market-map .map-tile-body {
  flex: 1;
}
.market-map .map-tile-body > * {
  flex-shrink: 0;
}
/* Grand Exchange tape: profit label, value, denomination and return stay separate. */
.ticker-label {
  flex-basis: 186px;
  width: 186px;
  min-width: 0;
}
.ticker-label > span {
  font-size: 16px;
  white-space: nowrap;
}
.tape-profit {
  display: grid !important;
  grid-template-columns: auto;
  gap: 5px;
  align-content: center;
  justify-items: end;
}
.ticker-items .tape-profit > .tape-profit-label {
  display: block;
  font:
    16px/1.4 Geist,
    sans-serif;
  color: var(--muted);
}
.ticker-items .tape-profit > .tape-profit-value {
  display: flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}
.tape-profit-value strong {
  display: inline;
  font: 16px/1.5 var(--mono);
  color: var(--accent);
}
.tape-profit-value > small {
  font:
    16px Geist,
    sans-serif;
  color: var(--muted);
}
.tape-profit-value > em {
  font: normal 16px/1.5 var(--mono);
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 8px;
  margin-left: 2px;
}
/* The selected page uses the familiar outlined inventory-slot treatment. */
.sidebar-link > .nav-sprite {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  opacity: 0.75;
}
.nav-sprite > img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  image-rendering: pixelated;
}
.sidebar-compare-sprite {
  position: relative;
  display: block;
  width: 26px;
  height: 26px;
}
.sidebar-compare-sprite img {
  position: absolute;
  top: 5px;
  width: 16px;
  height: 16px;
  object-fit: contain;
  image-rendering: pixelated;
}
.sidebar-compare-sprite img:first-child {
  left: -1px;
}
.sidebar-compare-sprite img:last-child {
  right: -1px;
}
.sidebar-link.active,
.sidebar-account > .sidebar-link.active {
  background: transparent;
  border-color: transparent;
  color: var(--text);
}
.sidebar-link.active:after {
  content: none;
}
.sidebar-link.active > .nav-sprite,
.sidebar-link:hover > .nav-sprite {
  opacity: 1;
}
.sidebar-link.active > span:not(.nav-sprite) {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
}
.nav-selection-corners {
  display: none;
  position: absolute;
  inset: -4px;
  pointer-events: none;
  color: var(--secondary);
}
.sidebar-link.active .nav-selection-corners {
  display: block;
  animation: nav-slot-appear 0.16s ease-out;
}
.nav-selection-corners i {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
}
.nav-selection-corners i:nth-child(1) {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
}
.nav-selection-corners i:nth-child(2) {
  top: 0;
  right: 0;
  border-left: 0;
  border-bottom: 0;
}
.nav-selection-corners i:nth-child(3) {
  bottom: 0;
  left: 0;
  border-right: 0;
  border-top: 0;
}
.nav-selection-corners i:nth-child(4) {
  bottom: 0;
  right: 0;
  border-left: 0;
  border-top: 0;
}
@keyframes nav-slot-appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* Market entry shows the whole exchange, with no item selected by default. */
.market-overview {
  border-bottom: 1px solid var(--line);
  padding: 0 0 27px;
  margin-bottom: 30px;
}
.overview-loading {
  min-height: 250px;
  padding: 30px 0;
  color: var(--muted);
  font-size: 16px;
}
.overview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.overview-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.overview-heading img {
  image-rendering: pixelated;
  object-fit: contain;
}
.overview-heading h2 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.3px;
  margin: 0;
}
.overview-heading .secondary-button {
  font-size: 16px;
  padding: 9px 12px;
}
.overview-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 35px;
}
.overview-value-label {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}
.overview-value {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.overview-value > .coin-sprite {
  align-self: center;
}
.overview-value > strong {
  font-size: 37px;
  font-weight: 500;
  letter-spacing: -1.3px;
  color: var(--accent);
  line-height: 1.2;
}
.overview-value > span {
  font-size: 16px;
  color: var(--muted);
}
.overview-totals {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.overview-totals > div {
  min-width: 0;
}
.overview-totals strong {
  display: block;
  font-size: 20px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
.overview-totals span {
  display: block;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 5px;
}
.overview-direction {
  margin-top: 27px;
}
.overview-direction-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 16px;
}
.overview-direction-heading > a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 16px;
}
.overview-direction-heading svg {
  width: 12px;
  height: 12px;
}
.overview-breadth {
  display: flex;
  gap: 3px;
  height: 4px;
  margin-top: 14px;
}
.overview-breadth i {
  display: block;
  height: 100%;
  background: var(--accent);
  min-width: 0;
}
.overview-breadth i:nth-child(2) {
  background: var(--red);
}
.overview-breadth i:nth-child(3) {
  background: var(--line);
}
.overview-direction-values {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 11px;
  flex-wrap: wrap;
}
.overview-direction-values > button {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 16px;
  padding: 0;
  color: var(--muted);
}
.overview-direction-values strong {
  font-weight: 500;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.overview-direction-values > button:first-child strong {
  color: var(--accent);
}
.overview-direction-values > button:nth-child(2) strong {
  color: var(--red);
}
.overview-direction-values > span {
  font-size: 16px;
  color: var(--muted);
}
.overview-direction-values > span strong {
  font-size: 16px;
  font-weight: 400;
}
.overview-leaders-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.overview-leaders-heading h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
}
.overview-leaders-heading .text-button {
  font-size: 16px;
  gap: 5px;
}
.overview-leader {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--soft-line);
}
.overview-leader > img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.overview-leader > span {
  display: block;
  min-width: 0;
  flex: 1;
}
.overview-leader strong {
  display: block;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.overview-leader small {
  display: block;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 5px;
}
.overview-leader > .overview-leader-price {
  flex: 0 0 auto;
  text-align: right;
}
.overview-leader-price strong {
  font-family: var(--mono);
  font-size: 16px;
}
.overview-no-activity {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}
.overview-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 24px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}
.overview-footer > a {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.overview-footer svg {
  width: 12px;
  height: 12px;
}
.page-market .side-column {
  align-self: start;
}
.page-market .compare-prompt,
.page-market .sidebar-note {
  display: none;
}
/* A custom PNG tool, including a safe editable filename. */
#capture-page {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 35px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  font-size: 16px;
}
#capture-page:hover {
  border-color: var(--secondary);
  color: var(--text);
}
#capture-page svg {
  width: 14px;
  height: 14px;
}
.capture-name-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin-top: 19px;
}
.capture-name-row > label {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}
.capture-name-row > span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  padding-right: 12px;
}
.capture-name-row input {
  min-width: 0;
  width: 100%;
  padding: 11px 12px;
  border: 0 !important;
  background: transparent;
  color: var(--text);
  font: 16px var(--mono);
  margin: 0;
}
.capture-name-row small {
  font: 16px var(--mono);
  color: var(--muted);
}
@container workspace (max-width:760px) {
  .overview-body {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .overview-leaders {
    padding-top: 22px;
    border-top: 1px solid var(--soft-line);
  }
  .overview-leaders-heading {
    margin-bottom: 0;
  }
  .overview-leader {
    padding: 15px 0;
  }
  .overview-value > strong {
    font-size: 35px;
  }
}
@media (max-width: 700px) {
  .ticker {
    height: 112px;
  }
  .ticker-label > span {
    display: block;
    font-size: 16px;
  }
  .tape-profit-value > em {
    display: none;
  }
  .tape-profit-value {
    gap: 7px !important;
  }
  .ticker-items .tape-profit > .tape-profit-label {
    font-size: 16px;
  }
  .tape-profit-value strong {
    font-size: 16px;
  }
  .overview-heading {
    gap: 12px;
    margin-bottom: 23px;
  }
  .overview-heading h2 {
    font-size: 15px;
  }
  .overview-heading img {
    width: 24px;
    height: 24px;
  }
  .overview-heading > div {
    gap: 9px;
  }
  .overview-heading .secondary-button {
    font-size: 16px;
    padding: 9px 10px;
  }
  .overview-footer {
    flex-wrap: wrap;
    gap: 10px;
  }
  .overview-body {
    gap: 24px;
  }
  .overview-direction-values {
    gap: 12px;
  }
  .overview-totals {
    gap: 32px;
  }
  .overview-value > strong {
    font-size: 36px;
  }
  .capture-name-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  #capture-page {
    font-size: 16px;
    padding: 9px 10px;
  }
  .page-heading-actions > #capture-page {
    order: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar-link.active .nav-selection-corners {
    animation: none;
  }
}
:root[data-reduced-motion="true"] .sidebar-link.active .nav-selection-corners {
  animation: none;
}

.overview-leader-price strong {
  display: flex;
  align-items: baseline;
  justify-content: end;
  gap: 6px;
}
.overview-leader-price strong em {
  font:
    normal 16px Geist,
    sans-serif;
  color: var(--muted);
}
.sidebar-account > .sidebar-link.active {
  border-top-color: var(--line);
}
@container workspace (max-width:1060px) {
  .page-market .side-column {
    display: none;
  }
}
/* The numeric face comes from RuneLite's RuneScape font resources. */
@font-face {
  font-family: "RuneMarket RuneScape";
  src: url("/assets/runescape.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RuneMarket RuneScape";
  src: url("/assets/runescape_bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --numbers: "RuneMarket RuneScape", "Geist Mono", monospace;
}
.asset-price,
.overview-value > strong,
.market-summary strong,
.pinned-values strong,
.block-detail-values strong,
.flip-result strong {
  font-family: var(--numbers);
  font-weight: 400;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.asset-price {
  font-size: 48px;
  line-height: 1.2;
}
.overview-value > strong {
  font-size: 42px;
}
.market-table td.number {
  font-family: var(--numbers);
  font-size: 18px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.market-table td.number > strong {
  font: inherit;
}
.market-table .cell-subline {
  font-family: Geist, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.gp-control input {
  font-family: var(--numbers) !important;
  font-size: 18px !important;
  line-height: 24px !important;
  padding: 8px 0 !important;
  height: 42px !important;
  letter-spacing: 0 !important;
}
.gp-input-helper {
  font-family: var(--numbers);
  font-size: 16px !important;
  line-height: 1.2 !important;
  min-height: 19px;
}
.price-tip-value strong,
.gp-preview strong {
  font-family: var(--numbers);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0;
}
.price-tip-denomination {
  font-family: var(--numbers);
  font-size: 17px;
}
.flip-breakdown > div > span:last-child,
.map-list-row > span:not(:first-child),
.activity-volume strong,
.activity-change,
.watchlist-values strong {
  font-family: var(--numbers);
  font-size: 18px;
  letter-spacing: 0;
}
.flip-result strong {
  font-size: 32px;
}
.flip-result #flip-roi {
  font-family: var(--numbers);
  font-size: 17px;
}
.quantity-row input,
.pinned-values strong,
.block-prices strong {
  font-family: var(--numbers);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 0;
}
.map-tile-price strong,
.map-tile-volume strong,
.map-tile-change,
.tape-profit-value strong,
.overview-leader-price strong,
.overview-totals strong,
.overview-direction-values strong {
  font-family: var(--numbers);
  font-weight: 400;
  letter-spacing: 0;
}
.tape-profit-value strong {
  font-size: 20px;
  line-height: 1;
}
.tape-profit-value > em {
  font-family: var(--numbers);
  font-size: 16px;
}
.overview-leader-price strong {
  font-size: 18px;
}
.overview-totals strong {
  font-size: 27px;
}
.overview-direction-values strong {
  font-size: 20px;
}
.signal-score {
  font-family: var(--numbers);
  font-size: 18px;
}
.chart-container svg text {
  font-family: var(--numbers);
  font-size: 15px;
}
/* Bounded mosaic restores the activity-map composition without overlapping cards. */
.market-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 232px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg);
  padding: 3px;
}
.market-map .map-tile {
  min-height: 0;
  height: auto;
  padding: 16px;
  border: 0;
  border-radius: 1px;
  grid-column: span 1;
  grid-row: span 1;
}
.market-map .map-tile-body {
  min-height: 0;
  gap: 8px;
  justify-content: center;
}
.market-map .map-tile-body > * {
  flex-shrink: 0;
}
.market-map .map-tile-head {
  min-height: 34px;
  gap: 9px;
}
.market-map .map-tile-head img {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
}
.market-map .map-tile-head strong {
  font-size: 16px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.market-map .map-tile-change {
  font-size: 26px;
  line-height: 1.05;
  gap: 7px;
}
.market-map .map-tile-price,
.market-map .map-tile-volume {
  display: grid;
  gap: 3px;
  justify-content: start;
  line-height: 1.15;
}
.market-map .map-tile-price strong,
.market-map .map-tile-volume strong {
  text-align: left;
}
.market-map .map-tile-price strong,
.market-map .map-tile-volume strong {
  font-size: 21px;
  line-height: 1.15;
}
.market-map .map-activity-track {
  margin-top: 6px;
  height: 2px;
}
.market-map .map-tile[data-map-size="lead"] {
  grid-column: span 2;
  grid-row: span 2;
}
.market-map .map-tile[data-map-size="wide"] {
  grid-column: span 2;
}
.market-map .map-tile[data-map-size="lead"] .map-tile-body {
  gap: 16px;
  justify-content: center;
}
.market-map .map-tile[data-map-size="lead"] .map-tile-head strong {
  font-size: 15px;
}
.market-map .map-tile[data-map-size="lead"] .map-tile-head img {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}
.market-map .map-tile[data-map-size="lead"] .map-tile-change {
  font-size: 40px;
}
.market-map .map-tile[data-map-size="lead"] .map-tile-price strong,
.market-map .map-tile[data-map-size="lead"] .map-tile-volume strong {
  font-size: 26px;
}
@container workspace (min-width:1000px) {
  .market-map {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@container workspace (min-width:1280px) {
  .market-map {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@container workspace (max-width:760px) {
  .market-map {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@container workspace (max-width:620px) {
  .market-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .market-map .map-tile[data-map-size="lead"] {
    grid-row: span 1;
  }
  .market-map .map-tile[data-map-size="wide"] {
    grid-column: span 1;
  }
  .market-map .map-tile[data-map-size="lead"] .map-tile-body {
    gap: 8px;
  }
  .market-map .map-tile[data-map-size="lead"] .map-tile-change {
    font-size: 30px;
  }
  .market-map .map-tile[data-map-size="lead"] .map-tile-price strong,
  .market-map .map-tile[data-map-size="lead"] .map-tile-volume strong {
    font-size: 21px;
  }
}
@container workspace (max-width:420px) {
  .market-map {
    grid-template-columns: minmax(0, 1fr);
  }
  .market-map .map-tile[data-map-size="lead"] {
    grid-column: span 1;
  }
  .market-map .map-tile-head strong {
    font-size: 16px;
  }
}
/* Profile identity opens the account menu; there is no separate sidebar account row. */
button.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 10px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  text-align: left;
  color: var(--text);
  background: transparent;
}
button.sidebar-profile[hidden] {
  display: none;
}
.sidebar-profile > img {
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  object-fit: contain;
  image-rendering: pixelated;
}
.sidebar-profile > .profile-copy {
  min-width: 0;
  flex: 1;
}
.sidebar-profile .profile-copy strong {
  display: block;
  font:
    500 16px/1.5 Geist,
    sans-serif;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.sidebar-profile .profile-copy small {
  display: block;
  font:
    16px/1.5 Geist,
    sans-serif;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin-top: 4px;
}
.sidebar-profile > [data-icon] {
  display: flex;
  flex: 0 0 12px;
}
.sidebar-profile > [data-icon] svg {
  width: 12px;
  height: 12px;
}
.sidebar-profile:hover,
.sidebar-profile[aria-expanded="true"] {
  border-color: var(--secondary);
  background: var(--subtle);
}
.sidebar-profile.profile-page {
  border-color: var(--secondary);
}
.profile-menu .link-menu [aria-current="page"] {
  color: var(--accent);
}
.profile-menu [data-menu-action="profile-signout"] {
  border-top: 1px solid var(--line);
  margin-top: 5px;
  border-radius: 0;
  color: var(--red);
}
/* Trade-window ticket: exact source prices with connected context and volume. */
.trade-window-dialog {
  width: min(780px, calc(100vw - 32px));
  max-width: 780px;
}
.trade-window-dialog .dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
}
.trade-ticket {
  padding: 0;
}
.ticket-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.ticket-item > img {
  width: 37px;
  height: 37px;
  object-fit: contain;
  image-rendering: pixelated;
}
.ticket-item strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}
.ticket-item span {
  display: block;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 5px;
}
.ticket-period {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 23px 0;
}
.ticket-period > div > span {
  color: var(--muted);
  font-size: 16px;
}
.ticket-period h3 {
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.4px;
  margin: 8px 0 0;
  line-height: 1.5;
}
.ticket-period h3 > span {
  color: var(--muted);
  font-size: 16px;
  margin-inline: 5px;
}
.ticket-nav {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}
.ticket-nav .icon-button {
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.ticket-quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  border-block: 1px solid var(--line);
  padding: 24px 0;
}
.ticket-quotes > section {
  min-width: 0;
}
.ticket-quotes > section > span {
  font-size: 16px;
  line-height: 1.6;
}
.ticket-buy {
  color: var(--accent);
}
.ticket-sell {
  color: #d7ba83;
}
:root[data-theme="light"] .ticket-sell {
  color: #89651c;
}
.ticket-quotes section > div {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  margin-top: 13px;
}
.ticket-quotes strong {
  font: 400 31px/1.2 var(--numbers);
  overflow-wrap: anywhere;
  min-width: 0;
}
.ticket-quotes small {
  font-size: 16px;
  color: var(--muted);
}
.ticket-quotes p {
  font-family: var(--numbers);
  font-size: 20px;
  color: var(--muted);
  margin: 12px 0 0;
  line-height: 1.4;
}
.ticket-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 23px 0;
}
.ticket-facts span {
  display: block;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 9px;
}
.ticket-facts strong {
  font: 400 24px/1.3 var(--numbers);
  overflow-wrap: anywhere;
}
.ticket-facts small {
  font:
    16px Geist,
    sans-serif;
  color: var(--muted);
  margin-left: 4px;
}
.ticket-flow > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}
.ticket-flow strong {
  color: var(--text);
  font: 18px var(--numbers);
  margin-left: 7px;
}
.ticket-flow-bar {
  height: 5px;
  background: #d7ba83;
  margin-top: 11px;
}
.ticket-flow.empty .ticket-flow-bar {
  background: var(--line);
}
.ticket-flow-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.ticket-nearby {
  margin: 29px 0 25px;
}
.ticket-nearby > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.ticket-nearby h4 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}
.ticket-nearby > div:first-child > span {
  font-size: 16px;
  color: var(--muted);
}
.ticket-volume-strip {
  display: flex;
  gap: 7px;
  margin-top: 17px;
}
.ticket-volume-strip button {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 9px 4px 7px;
  border: 1px solid transparent;
  border-radius: 3px;
}
.ticket-volume-strip button:hover {
  background: var(--subtle);
}
.ticket-volume-strip button.selected {
  border-color: var(--secondary);
  background: var(--subtle);
}
.ticket-bar-track {
  display: flex;
  align-items: end;
  justify-content: center;
  height: 48px;
  width: 100%;
  background: var(--bg);
}
.ticket-bar-track i {
  display: block;
  width: 55%;
  max-width: 32px;
  background: var(--secondary);
  min-height: 0;
}
.ticket-volume-strip .selected .ticket-bar-track i {
  background: var(--accent);
}
.ticket-volume-strip strong {
  display: block;
  font: 20px/1.3 var(--numbers);
  margin-top: 9px;
  color: var(--text);
}
.ticket-volume-strip small {
  font-size: 16px;
  color: var(--muted);
  display: block;
  line-height: 1.5;
  white-space: nowrap;
}
.ticket-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-top: 21px;
}
.ticket-actions .secondary-button,
.ticket-actions .text-button {
  font-size: 16px;
}
.ticket-note {
  font-size: 16px !important;
  line-height: 1.8;
  color: var(--muted);
  margin: 20px 0 0 !important;
}
@media (max-width: 700px) {
  .asset-price {
    font-size: 34px;
  }
  .overview-value > strong {
    font-size: 38px;
  }
  .market-table td.number {
    font-size: 17px;
  }
  .gp-control input {
    font-size: 18px !important;
  }
  .block-prices strong {
    font-size: 22px;
  }
  .ticket-quotes {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ticket-quotes strong {
    font-size: 30px;
  }
  .ticket-facts {
    gap: 18px;
  }
  .ticket-period h3 {
    font-size: 16px;
  }
  .ticket-period h3 > span {
    margin-inline: 2px;
  }
  .ticket-nav {
    gap: 5px;
  }
  .ticket-nav .icon-button {
    width: 27px;
    height: 29px;
  }
  .ticket-volume-strip {
    gap: 3px;
  }
  .ticket-volume-strip small {
    font-size: 16px;
  }
  .ticket-volume-strip strong {
    font-size: 18px;
  }
  .ticket-volume-strip button {
    padding: 7px 2px;
  }
  .ticket-flow > div:first-child {
    font-size: 16px;
  }
  .ticket-flow strong {
    display: block;
    margin: 4px 0 0;
    font-size: 19px;
  }
  .ticket-quotes p {
    font-size: 20px;
  }
  .ticket-actions .secondary-button,
  .ticket-actions .text-button {
    font-size: 16px;
  }
}
