.currency-exchange-page .currency-selects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  grid-column: 1/-1;
}

.currency-selects label {
  margin: 0;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 600;
}

.currency-selects select {
  display: block;
  width: 100%;
  margin-top: 5px;
  min-height: 40px;
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
}

.currency-step-title {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--color-primary);
  grid-column: 1/-1;
}

.currency-step-two {
  display: grid;
  gap: 14px;
  grid-column: 1/-1;
}

.currency-rate-status {
  grid-column: 1/-1;
  padding: 12px;
  background: var(--color-background);
  border-radius: 10px;
  color: var(--color-muted);
  font-size: 12px;
}

.currency-rate-status p {
  margin: 8px 0 0;
}

.currency-rate-status .simulator-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  text-align: center;
}

.currency-exchange-page .live-control-head input[type='number'] {
  width: 130px;
}

.currency-route {
  margin: 12px 0;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 650;
}

.currency-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--color-muted);
  font-size: 12px;
  margin-bottom: 12px;
}

.currency-legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.currency-legend i {
  display: inline-block;
  width: 12px;
  height: 3px;
  background: var(--color-primary);
}

.currency-legend .currency-gross-key {
  background: none;
  width: 18px;
  height: 0;
  border-top: 2px solid var(--color-muted);
}

.currency-exchange-page #grossLine {
  stroke-dasharray: none;
}

.currency-exchange-page .currency-chart-point {
  fill: var(--color-primary);
}

.currency-chart-caption {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 12px;
}

.currency-comparison {
  padding: 14px 0;
  border-radius: 10px;
  background: var(--color-background);
  color: var(--color-muted);
  font-size: 13px;
  white-space: pre-line;
}

.currency-exchange-page [aria-invalid='true']:not([type='range']) {
  border-color: #d94141;
}

.currency-conversion-cards {
  display: none;
}

.currency-exchange-page .simulator-save-actions {
  margin-top: 0;
}

@media (max-width: 768px) {
  .currency-exchange-page {
    background: var(--color-surface);
  }

  .currency-exchange-page > .site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }

  .currency-exchange-page .hero.category-hero[data-category] {
    min-height: 350px;
    margin: 0;
    padding: 78px 20px 170px;
    border: 0;
    background-color: var(--color-surface);
  }

  .currency-exchange-page .live-workspace,
  .currency-exchange-page .live-results {
    gap: 0;
  }

  .currency-exchange-page .simulator-panel {
    padding: 20px 16px;
  }

  .currency-exchange-page :is(select, .simulator-button) {
    min-height: 44px;
  }

  .currency-exchange-page .simulator-save-actions {
    display: grid;
    width: 100%;
  }

  .currency-exchange-page .live-controls {
    position: static;
    grid-template-columns: minmax(0, 1fr);
    max-height: none;
  }

  .currency-exchange-page .live-control-head {
    align-items: center;
    flex-direction: row;
  }

  .currency-exchange-page .live-control-head input[type='number'] {
    width: 116px;
    max-width: 46%;
  }

  .currency-step-two {
    grid-template-columns: minmax(0, 1fr);
  }

  .currency-exchange-page .currency-conversion-table {
    display: none;
  }

  .currency-conversion-cards {
    display: grid;
    gap: 12px;
  }

  .currency-conversion-card {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-surface);
  }

  .currency-conversion-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 8px;
    font-size: 16px;
  }

  .currency-conversion-step {
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--color-background);
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
  }

  .currency-conversion-values {
    margin: 0;
    font-variant-numeric: tabular-nums;
  }

  .currency-conversion-values > div {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    align-items: baseline;
    gap: 10px;
    padding-block: 7px;
    border-bottom: 1px solid var(--color-border);
  }

  .currency-conversion-values dt {
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.5;
  }

  .currency-conversion-values dd {
    min-width: 0;
    margin: 0;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .currency-conversion-values .currency-conversion-net {
    margin-top: 4px;
    padding: 10px 8px;
    border: 0;
    border-radius: 6px;
    background: var(--color-background);
  }

  .currency-conversion-net :is(dt, dd) {
    color: var(--color-primary);
    font-weight: 700;
  }
}
