.currency-intro { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-bottom: 40px; }
.currency-intro h1 { margin-top: 22px; }
.currency-intro .lede { font-size: 15px; }
.currency-base { position: relative; flex: 0 0 255px; padding: 26px 28px; overflow: hidden; border: 1px solid #d8e1d2; border-radius: var(--radius); background: #edf1e7; }
.currency-base > span { display: block; color: #52654e; font-size: 11px; }
.currency-base strong { display: block; margin: 8px 0 4px; font: 56px/1.1 var(--serif); letter-spacing: -.04em; color: var(--green); }
.currency-base strong span { font: 17px var(--sans); letter-spacing: 0; }
.currency-base svg { position: absolute; width: 122px; right: -26px; top: 32px; stroke: #698365; stroke-width: .7; opacity: .22; }
.currency-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 27px; }
.currency-filters > div:first-child { flex: 1 1 220px; }
.currency-filters label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; }
.currency-filters input { width: 100%; }
.currency-filters select { min-width: 220px; }
.currency-filters .button { min-height: 49px; }
.currency-filters .text-action { min-height: 49px; padding-inline: 6px; }
.currency-status { display: flex; justify-content: space-between; gap: 12px 30px; flex-wrap: wrap; padding: 0 0 20px; font-size: 11px; color: var(--muted); }
.currency-status p { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.currency-status time { color: var(--ink); }
.currency-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #527052; margin-right: 3px; }
.currency-status-dot.is-stale { background: #99642d; }
.currency-majors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; margin-bottom: 42px; }
.currency-major { padding: 24px 27px; border-right: 1px solid var(--line); }
.currency-major:last-child { border-right: 0; }
.currency-major:first-child { background: #eaf0e4; }
.currency-major > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.currency-pair { font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.currency-pair span { color: #788777; margin: 0 6px; }
.currency-major p { font-size: 11px; margin-top: 5px; }
.currency-major strong { display: block; margin: 24px 0 2px; font: 42px/1.2 var(--serif); letter-spacing: -.02em; color: var(--green); font-variant-numeric: lining-nums tabular-nums; }
.currency-unit { font-size: 10px; color: var(--muted); }
.currency-list-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.currency-list-heading h2 { margin-top: 9px; }
.currency-list-heading > p { font-size: 12px; }
.currency-table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.currency-table { width: 100%; border-collapse: collapse; }
.currency-table thead { background: #edf1e9; }
.currency-table th, .currency-table td { padding: 18px 26px; text-align: left; }
.currency-table thead th { font-size: 11px; font-weight: 600; color: #586651; }
.currency-table tr > :last-child { text-align: right; }
.currency-table tbody tr { border-top: 1px solid #e8ece5; }
.currency-table tbody tr:hover { background: #f6f8f2; }
.currency-table tbody th { font-weight: 400; }
.currency-code { display: inline-block; width: 45px; font-size: 12px; font-weight: 700; color: var(--green); }
.currency-name { margin-left: 16px; font-size: 13px; }
.currency-region-column { font-size: 11px; color: var(--muted); }
.currency-table .currency-quote { font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; }
.currency-quote span { display: inline-block; width: 35px; margin-left: 14px; font-size: 10px; color: var(--muted); letter-spacing: 0; }
.currency-source { max-width: 820px; margin-top: 25px; font-size: 11px; line-height: 1.9; }
.currency-source a { color: var(--green); text-decoration: underline; }
#currency-base-static > span { font-size: 11px; color: #52654e; }
#currency-amount-control { position: relative; }
#currency-amount-control label { display: block; }
#currency-amount { width: 100%; padding: 7px 0; margin: 3px 0 5px; border: 0; border-bottom: 1px solid #aebbab; border-radius: 0; background: transparent; color: var(--green); font: 40px/1.2 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
#currency-amount { appearance: textfield; -moz-appearance: textfield; }
#currency-amount::-webkit-inner-spin-button, #currency-amount::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#currency-amount-note, #currency-amount-error { font-size: 10px; line-height: 1.7; }
#currency-amount-error { color: #87422d; margin-top: 5px; }
.currency-view-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin: -5px 0 23px; }
.currency-view-controls > p { font-size: 10px; }
.currency-segments { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; }
.currency-segments button { min-height: 38px; padding: 8px 15px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 11px; }
.currency-segments button[aria-pressed='true'] { background: var(--green); color: #fff; }
#currency-saved-count { margin-left: 6px; opacity: .85; }
.currency-refresh-info { display: flex; align-items: center; gap: 15px; }
.currency-refresh-button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--green); font-size: 10px; }
.currency-refresh-button span { font-size: 18px; }
.currency-refresh-button[aria-busy='true'] span { animation: currency-spin 1.2s linear infinite; }
.currency-status { align-items: center; }
.currency-identity { display: flex; align-items: center; }
.currency-save { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; margin: -4px 13px -4px -9px; padding: 8px; border: 0; border-radius: 6px; background: transparent; color: #758570; }
.currency-save svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.currency-save:hover { background: var(--wash); color: var(--green); }
.currency-save[aria-pressed='true'] { color: var(--green); }
.currency-save[aria-pressed='true'] svg { fill: #dce6d5; }
.currency-quote b { font-weight: 400; }
.currency-major strong { overflow-wrap: anywhere; }
.currency-quote { overflow-wrap: anywhere; }
.currency-table .currency-quote { white-space: normal; }
.currency-value-changed { animation: currency-highlight 1.2s ease-out; }
@keyframes currency-highlight { from { background: #dce8d5; } to { background: transparent; } }
@keyframes currency-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .currency-value-changed, .currency-refresh-button[aria-busy='true'] span { animation: none; }
}
.currency-empty { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 48px 28px; text-align: center; }
.currency-empty p { margin: 16px auto 24px; max-width: 480px; }
.currency-no-results { padding: 36px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.currency-no-results p { margin-top: 10px; }
.currency-warning, .currency-connection { padding: 14px 18px; margin-bottom: 20px; border-radius: 8px; background: #f4eddf; color: #745229; font-size: 12px; }
@media (max-width: 1000px) {
  .currency-intro { gap: 25px; }
  .currency-intro h1 { max-width: 450px; }
  .currency-base { flex-basis: 215px; padding: 24px; }
  .currency-major { padding: 22px; }
  .currency-major strong { font-size: 36px; }
}
@media (max-width: 700px) {
  .currency-intro { display: block; }
  .currency-intro h1 { max-width: none; }
  .currency-base { margin-top: 26px; padding: 17px 22px; }
  .currency-base strong { font-size: 42px; }
  .currency-base svg { top: -5px; right: 20px; }
  .currency-filters { gap: 12px; }
  .currency-filters > div { width: 100%; }
  .currency-filters select { width: 100%; }
  .currency-majors { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 32px; }
  .currency-major:nth-child(2) { border-right: 0; }
  .currency-major:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .currency-major strong { margin-top: 16px; }
  .currency-list-heading { align-items: start; flex-direction: column; gap: 10px; }
  .currency-table th, .currency-table td { padding: 16px 18px; }
  .currency-region-column { display: none; }
  .currency-code { display: block; width: auto; }
  .currency-identity { display: grid; grid-template-columns: auto 1fr; column-gap: 9px; }
  .currency-save { grid-column: 1; grid-row: 1 / 3; margin: 0; width: 36px; }
  .currency-identity .currency-code, .currency-identity .currency-name { grid-column: 2; }
  .currency-identity:has(.currency-save[hidden]) { display: block; }
  .currency-name { display: block; margin: 3px 0 0; font-size: 11px; }
  .currency-quote span { display: block; width: auto; margin: 2px 0 0; }
  .currency-table { table-layout: fixed; }
  .currency-table th:first-child { width: 59%; }
  .currency-table .currency-quote { font-size: 15px; }
  .currency-refresh-info { width: 100%; justify-content: space-between; }
}
@media (max-width: 380px) {
  .currency-major { padding: 18px; }
  .currency-major strong { font-size: 32px; }
  .currency-table th, .currency-table td { padding: 14px; }
}
