:root {
  color-scheme: light;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #182a25;
  background: #f5f6f3;
  font-synthesis: none;
  --muted: #57645d;
  --divider: #dfe6de;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: clamp(1rem, 5vw, 4rem);
}

main {
  width: min(100%, 43rem);
  min-width: 0;
  margin: 0 auto;
}

#providers { display: grid; gap: 1.5rem; }

.provider {
  background: #fff;
  border: 1px solid #d7dfd6;
  border-radius: 1.15rem;
  box-shadow: 0 10px 36px -24px rgb(24 42 37 / 28%);
  overflow: hidden;
}

.summary, .details { padding-inline: clamp(1.4rem, 6vw, 3.5rem); }

.summary {
  padding-top: clamp(2rem, 6vw, 3.25rem);
  padding-bottom: clamp(1.75rem, 5vw, 2.75rem);
}

h2 {
  margin: 0 0 clamp(1.75rem, 5vw, 2.5rem);
  font-size: clamp(1.12rem, 3vw, 1.375rem);
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.balance-label, dt, #status, #refresh-hint { color: var(--muted); }
.balance-label { margin: 0 0 .5rem; font-size: 1rem; }

.balance {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .1rem .75rem;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.amount {
  color: #174c3d;
  font-size: clamp(2.65rem, 10vw, 5.25rem);
  font-weight: 550;
  line-height: 1.1;
  letter-spacing: -.06em;
  overflow-wrap: anywhere;
}

.currency { color: var(--muted); font-size: .86rem; font-weight: 600; }

.details {
  border-top: 1px solid var(--divider);
  background: #fafbf8;
  padding-block: 1.35rem;
}

dl { margin: 0; }

.limit {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
}

.limit + .limit { margin-top: .8rem; }
dt, dd { font-size: .94rem; line-height: 1.5; }
dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.enforcement { font-size: .85rem; color: var(--muted); font-weight: 400; }

.updated {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .35rem 1.25rem;
  flex-wrap: wrap;
  font-size: .95rem;
  line-height: 1.5;
}
dl + .updated { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--divider); }
.updated time { font-weight: 600; font-variant-numeric: tabular-nums; }

#refresh-bar:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  margin-top: 1rem;
}
#refresh-hint, #status { margin: 0; font-size: .875rem; line-height: 1.5; }
#status:not(:empty) { margin-top: .7rem; }
#refresh {
  border: 1px solid #a8bcb0;
  border-radius: .65rem;
  min-height: 2.75rem;
  padding: .5rem 1rem;
  background: #fff;
  color: #174c3d;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
}
#refresh:hover { background: #edf3ed; }
#refresh:focus-visible { outline: 3px solid #246c55; outline-offset: 3px; }
#refresh[aria-disabled="true"] { background: #edf3ed; cursor: progress; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
