:root {
  color-scheme: light;
  font: 15px/1.55 "Instrument Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  color: #17283b;
  background: #f3f6f8;
  --muted: #536678;
  --line: #dbe4ea;
  --brand: #126b60;
  --brand-dark: #0b554c;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--brand-dark); }
button, input { font: inherit; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #c5d4dc;
  border-radius: 8px;
  color: #1e4753;
  background: #fff;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover { background: #edf5f4; border-color: #9fbdb8; }
.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
button:disabled { opacity: .55; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
input {
  min-width: 0;
  width: 100%;
  border: 1px solid #bfcfd8;
  border-radius: 8px;
  background: #fff;
  color: #182a3d;
  min-height: 42px;
  padding: 8px 11px;
}
.topbar { background: #102c35; color: #edf7f3; }
.topbar-inner {
  max-width: 1180px;
  min-height: 64px;
  margin: 0 auto;
  padding: 10px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.brand { font-size: 16px; font-weight: 750; white-space: nowrap; }
.nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.nav a { color: #edf7f3; font-size: 14px; text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.page { max-width: 1180px; margin: 0 auto; padding: 28px 26px 48px; }
.buyer-page { max-width: 810px; }
.page-intro { margin: 0 0 22px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(27px, 4vw, 36px); line-height: 1.25; letter-spacing: -.035em; }
h2 { font-size: 20px; line-height: 1.35; }
h3 { font-size: 16px; }
.muted, .section-heading p { color: var(--muted); }
.page-intro p, .section-heading p { margin-top: 7px; }
.card {
  margin-bottom: 17px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  scroll-margin-top: 18px;
}
.section-heading { margin-bottom: 14px; }
.link-grid, .two-columns { display: grid; gap: 14px; }
.link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-columns { grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); align-items: start; }
.link-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fbfb;
}
.link-item p { color: var(--muted); font-size: 14px; }
.link-item .actions { margin-top: auto; padding-top: 3px; }
.link-value { overflow-wrap: anywhere; font-family: ui-monospace, "IBM Plex Mono", monospace; color: #214653; font-size: 13px; }
.actions, .form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.form { align-items: end; }
.field { display: grid; flex: 1 1 160px; min-width: 0; gap: 5px; font-size: 14px; font-weight: 600; }
.field.small { flex: 0 1 100px; }
.callout {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #cddfd9;
  border-radius: 8px;
  color: #194c40;
  background: #eff8f4;
}
.callout[data-error] { color: #942534; background: #fff3f3; border-color: #e6bdc4; }
.feedback:empty, #topup-error:empty { display: none; }
.feedback { margin: 0 0 14px; }
.result-card {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #bdddd3;
  border-radius: 9px;
  background: #f0f8f5;
}
output { display: block; margin: 5px 0 10px; font-weight: 750; overflow-wrap: anywhere; }
.result-card .muted { font-size: 14px; margin-top: 8px; }
.summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0 0 14px; }
.summary div { border: 1px solid var(--line); padding: 9px 11px; border-radius: 8px; }
.summary dt { font-size: 13px; color: var(--muted); }
.summary dd { margin: 2px 0 0; font-size: 22px; font-weight: 700; }
.model-state { overflow-wrap: anywhere; margin-bottom: 9px; color: var(--muted); font-size: 13px; }
.search { margin-bottom: 11px; }
.search .field { flex: 0 1 250px; }
.scroll { overflow: auto; }
table { width: 100%; min-width: 660px; border-collapse: collapse; }
th, td { padding: 9px; border-bottom: 1px solid #e4ebee; text-align: left; }
th { color: #365260; font-size: 13px; }
td:first-child { max-width: 165px; overflow-wrap: anywhere; }
.table-actions button, .link-item button, .link-item .button { min-height: 35px; padding: 6px 10px; font-size: 13px; }
dialog { width: min(520px, calc(100% - 28px)); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
dialog::backdrop { background: #10253088; }
dialog .form { margin-top: 12px; }
.copy-field { width: 100%; min-height: 90px; margin: 12px 0; padding: 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; resize: vertical; }
.instructions { margin: 0; padding-left: 23px; display: grid; gap: 16px; }
.instructions h3 { margin-bottom: 5px; }
.instructions p { color: var(--muted); margin-bottom: 7px; }

@media (max-width: 850px) {
  .two-columns { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 700px) {
  .topbar-inner, .page { padding-left: 14px; padding-right: 14px; }
  .link-grid { grid-template-columns: 1fr; }
  .topbar-inner { align-items: flex-start; }
  .nav { justify-content: flex-end; gap: 8px 12px; }
  .card { padding: 15px; }
}
