.economy_section {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.economy_section h4 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 15px;
  margin: 18px 0 8px;
}

.economy_switch {
  margin-top: 10px;
}

.economy_note {
  font-size: 12px;
  margin-top: 6px;
}

.economy_fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: end;
}

.economy_field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink2);
}

.economy_field_wide {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.economy_field input,
.economy_select {
  width: 100%;
  min-width: 0;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  background: var(--surf2);
  color: var(--ink);
}

.economy_field_wide input {
  width: 130px;
  flex: none;
}

.economy_defaults {
  margin-top: 10px;
}

.economy_buttons {
  margin-top: 8px;
}

.economy_table_box {
  max-height: 300px;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surf);
}

.economy_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.economy_table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 10px;
  text-align: right;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink2);
  background: var(--surf2);
}

.economy_table th small {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.economy_table td {
  padding: 7px 10px;
  border-top: 1px solid var(--line);
  text-align: right;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}

.economy_table th:first-child,
.economy_table td:first-child {
  text-align: left;
}

.economy_table td b {
  display: block;
}

.economy_table td:first-child b {
  margin-bottom: 3px;
  line-height: 1.2;
}

.economy_table td small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink2);
}

.economy_table td.economy_column_active {
  background: rgba(155, 92, 255, 0.14);
}

.economy_table th.economy_column_active {
  background: #3b2b58;
  color: var(--ink);
}

.economy_peepee_card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.economy_peepee_thumb {
  flex: none;
  display: flex;
  justify-content: center;
  width: 78px;
}

.economy_peepee_thumb svg {
  width: auto;
  height: 96px;
}

.economy_peepee_info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  font-size: 13px;
}

.economy_peepee_info .price,
.economy_reference .price {
  font-size: 22px;
  font-variant-numeric: normal;
}

.economy_peepee_info .price svg,
.economy_reference .price svg {
  width: 20px;
  height: 20px;
}

.economy_select {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.economy_market_card {
  margin-top: 8px;
  padding: 12px;
}

.economy_reference {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.economy_chart {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 8px;
  touch-action: pan-y;
}

.economy_chart_grid {
  stroke: var(--line);
  stroke-width: 1;
}

.economy_chart_tick {
  fill: var(--ink2);
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.economy_chart_area {
  fill: #9b5cff;
  opacity: 0.1;
}

.economy_chart_line {
  fill: none;
  stroke: #9b5cff;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.economy_chart_last_halo {
  fill: #9b5cff;
  opacity: 0.28;
}

.economy_chart_last {
  fill: #9b5cff;
  stroke: var(--surf);
  stroke-width: 2;
}

.economy_chart_last_label {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 900;
  paint-order: stroke;
  stroke: var(--surf);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.economy_chart_cursor {
  stroke: var(--ink2);
  stroke-width: 1;
}

.economy_chart_cursor_dot {
  fill: var(--ink);
  stroke: var(--surf);
  stroke-width: 2;
}

.economy_chart_readout {
  min-height: 18px;
  font-size: 12px;
}

.economy_sales_list {
  max-height: 132px;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.economy_sale_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.economy_reference_tag {
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink);
  background: #3b2b58;
}

.economy_meter_rate {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.economy_meter_rate b {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
}
