:root {
  color-scheme: light;
  --bg: #fafbf9;
  --ink: #1a211d;
  --muted: #56615b;
  --line: #dce0d9;
  --green: #d7fa76;
  --panel: #19231d;
  --mono: Consolas, "Courier New", monospace;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
select,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #719d2c;
  outline-offset: 3px;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button,
.btn {
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 15px;
  font-weight: 600;
  font-size: 14px;
  min-height: 40px;
}
button:hover:not(:disabled),
.btn:hover {
  border-color: #8d9c8e;
  background: #f2f5ef;
}
.primary {
  background: var(--green);
  border-color: #b8d85e;
}
.primary:hover:not(:disabled) {
  background: #caef65;
  border-color: #90ac4c;
}
.dark {
  background: #26352b;
  color: white;
  border-color: #26352b;
}
.dark:hover:not(:disabled) {
  background: #354c3d;
}
.icon {
  width: 17px;
  height: 17px;
  vertical-align: middle;
  flex: none;
}
.iconbtn {
  padding: 0;
  width: 36px;
  min-height: 34px;
}
.ic {
  display: inline-block;
  flex: none;
  width: 18px;
  height: 18px;
  background: currentColor;
  mask: var(--i) no-repeat center / contain;
}
.layers {
  --i: url(/icons/layers-3.svg);
}
.plug {
  --i: url(/icons/plug-zap.svg);
}
.wallet {
  --i: url(/icons/wallet.svg);
}
.terminal {
  --i: url(/icons/terminal.svg);
}
.side {
  position: fixed;
  inset: 0 auto 0 0;
  width: 216px;
  background: #f0f2ed;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 29px 16px;
  z-index: 2;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 730;
  align-self: flex-start;
  margin-left: 8px;
}
.brand img {
  width: 34px;
  height: 34px;
}
.side-label,
.eyebrow,
.minor {
  font: 600 10px/1.5 var(--mono);
  text-transform: uppercase;
  color: var(--muted);
}
.side-label {
  margin: 48px 8px 12px;
}
.side nav {
  display: grid;
  gap: 5px;
}
.side nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 560;
  border-radius: 5px;
}
.side nav a:hover {
  background: #e6eae2;
}
.side nav a.active {
  background: #dfe6d7;
  color: #21351e;
}
.side nav a.active:after {
  content: "";
  width: 5px;
  height: 5px;
  background: #557044;
  border-radius: 50%;
  margin-left: auto;
}
.side-bottom {
  margin-top: auto;
  border-top: 1px solid #d4d9d0;
  padding: 22px 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.provider-mark,
.family-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
}
.provider-mark {
  background: #e2e7dd;
  font:
    bold 22px Georgia,
    serif;
}
.side-bottom small,
.side-bottom a {
  display: block;
}
.side-bottom small {
  color: var(--muted);
  font-size: 11px;
}
.side-bottom a {
  margin-top: 2px;
  font: 600 13px var(--mono);
}
.shell {
  margin-left: 216px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
header {
  height: 62px;
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(20px, 4%, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}
.crumb,
.sync,
.toolrow,
.tools,
.titleline,
.family,
.pager,
.actions,
.tabs,
.banner-label,
.switches,
.pair,
.counter,
.linkrow {
  display: flex;
  align-items: center;
}
.crumb {
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.crumb b,
footer b {
  color: #9fa89f;
  font-weight: 400;
}
.crumb strong {
  font-weight: 550;
  color: var(--ink);
}
.sync {
  gap: 7px;
  font: 11px var(--mono);
  color: var(--muted);
}
.sync:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #91998c;
}
.sync.ok:before {
  background: #58802e;
}
.sync.err:before {
  background: #bd692e;
}
main,
footer {
  width: min(1230px, 100%);
  margin: 0 auto;
  padding: 32px clamp(20px, 4%, 64px);
}
main {
  flex: 1;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 2px 0 24px;
}
.eyebrow {
  color: #516248;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow:before {
  content: "";
  width: 16px;
  height: 2px;
  background: #859b5c;
}
h1 {
  font-size: 38px;
  line-height: 1.16;
  font-weight: 650;
  margin: 6px 0 7px;
}
h2 {
  font-size: 22px;
  font-weight: 620;
  line-height: 1.3;
}
h3 {
  font-size: 16px;
}
.sub,
.muted {
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}
.banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #28372d;
  border-radius: 7px;
  background: var(--panel);
  color: #f5f7f1;
  padding: 22px 28px;
  margin-bottom: 29px;
  min-height: 145px;
}
.banner-label {
  gap: 9px;
  font: 600 11px var(--mono);
  color: #c3d2bb;
}
.banner-label .ic {
  width: 15px;
  height: 15px;
  color: #cceb85;
}
.banner h2 {
  font-size: 21px;
  margin: 8px 0 13px;
}
.endpoint {
  display: flex;
  align-items: stretch;
  max-width: 490px;
  gap: 7px;
  width: 65%;
}
.address {
  background: #253129;
  border: 1px solid #475748;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  flex: 1;
  padding: 0 7px 0 12px;
}
.address code {
  font: 13px var(--mono);
  overflow-wrap: anywhere;
  color: #eeffe0;
}
.address button {
  width: 30px;
  min-height: 32px;
  padding: 6px;
  background: none;
  color: #cfddca;
  border: 0;
}
.address button:hover:not(:disabled) {
  background: #354438;
}
.address .icon {
  filter: invert(1);
}
.switches {
  padding: 3px;
  border: 1px solid #475748;
  gap: 2px;
  border-radius: 4px;
  flex: none;
}
.switches button {
  border: 0;
  background: none;
  color: #c7d4c4;
  font: 11px var(--mono);
  min-height: 27px;
  padding: 4px 9px;
}
.switches button.on {
  color: #20301d;
  background: #d7e6cd;
}
.titleline {
  gap: 10px;
}
.count {
  font: 11px var(--mono);
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.toolrow {
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 15px 0 12px;
}
.tabs {
  border: 1px solid var(--line);
  padding: 3px;
  gap: 2px;
  border-radius: 5px;
  background: #eef0eb;
}
.tabs button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 5px 13px;
  min-height: 30px;
  font-size: 12px;
}
.tabs button.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px #283c2c22;
}
.search {
  position: relative;
  display: flex;
  align-items: center;
}
.search img {
  position: absolute;
  left: 11px;
  width: 15px;
  opacity: 0.62;
}
.search input {
  height: 36px;
  padding: 6px 10px 6px 34px;
  width: 200px;
}
input,
select {
  border: 1px solid #cdd4cb;
  border-radius: 4px;
  padding: 9px 10px;
  color: var(--ink);
  background: white;
  max-width: 100%;
  min-width: 0;
}
.prices {
  font: 11px var(--mono);
  color: var(--muted);
}
.section-head,
.table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tablebox {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  overflow: hidden;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  background: #f1f3ef;
  font-size: 11px;
  font-weight: 600;
  color: #515c53;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid #e9ece6;
}
td.rate {
  font-family: var(--mono);
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.modelrow:hover {
  background: #f8faf5;
}
.family {
  gap: 11px;
}
.family-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid #caddce;
  background: #e3f0e6;
  color: #32604a;
}
.family-icon.cl {
  background: #f7e8df;
  border-color: #ecd5c7;
  color: #965a38;
}
.family-icon .ic {
  width: 21px;
  height: 21px;
}
.ai {
  --i: url(/icons/aperture.svg);
}
.cl .ic {
  --i: url(/icons/asterisk.svg);
}
.model-link {
  border: 0;
  background: none;
  display: block;
  min-height: 0;
  padding: 0;
  text-align: left;
  font: 600 13px/1.4 var(--mono);
  overflow-wrap: anywhere;
}
.model-link:hover:not(:disabled) {
  background: none;
  text-decoration: underline;
}
.family small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.chev {
  width: 28px;
  min-height: 28px;
  border: 0;
  background: none;
  padding: 4px;
}
.table-foot {
  margin-top: 12px;
  min-height: 33px;
  color: var(--muted);
  font-size: 12px;
}
.pager {
  gap: 8px;
}
.pager button {
  width: 29px;
  min-height: 28px;
  padding: 4px;
}
.pager span {
  font-family: var(--mono);
}
footer {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 11px var(--mono);
  color: var(--muted);
  padding-top: 18px;
  padding-bottom: 18px;
}
footer b {
  padding: 0 5px;
}
.empty {
  padding: 25px;
  color: var(--muted);
}
.panel {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.panel h2,
.panel h3 {
  margin-bottom: 12px;
}
.panel p + p {
  margin-top: 10px;
}
.actions,
.tools,
.linkrow {
  gap: 9px;
  flex-wrap: wrap;
}
.actions {
  margin-top: 15px;
}
.code-wrap {
  background: #1b271f;
  color: #e7f0de;
  border-radius: 5px;
  position: relative;
  margin: 14px 0;
}
.code-wrap .iconbtn {
  position: absolute;
  right: 8px;
  top: 8px;
  background: #e8efe0;
}
.code-wrap pre {
  padding: 19px 52px 19px 19px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 13px/1.6 var(--mono);
}
code,
.num {
  font-family: var(--mono);
}
dialog {
  width: min(580px, calc(100% - 28px));
  max-height: 88vh;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--bg);
}
dialog::backdrop {
  background: #13221977;
}
dialog h2 {
  font-size: 23px;
  overflow-wrap: anywhere;
}
dialog h3 {
  margin: 17px 0 9px;
}
.dialogtop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.dialogtop button {
  flex: none;
}
.pair {
  gap: 10px;
  justify-content: space-between;
  margin: 15px 0;
}
.pair label,
.field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}
.fine {
  margin-top: 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.key-out {
  font: 13px var(--mono);
  background: #edf3e5;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow-wrap: anywhere;
}
.balance {
  font: 600 34px var(--mono);
  margin: 10px 0;
}
.error {
  color: #a33d24;
  font-size: 13px;
  margin: 10px 0;
}
.history {
  display: grid;
  gap: 0;
}
.history > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.grouptable {
  width: 100%;
  font-size: 14px;
}
.grouptable th,
.grouptable td {
  padding: 8px 12px;
}
.grouptable td:last-child {
  font-family: var(--mono);
}
#notice:not(:empty) {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #1c3021;
  color: white;
  border-radius: 5px;
  z-index: 6;
  padding: 10px 16px;
  font-size: 13px;
}
.note-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.off {
  color: #865532;
}
.quicklink {
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.quicklink:hover {
  color: #507236;
}
@media (min-width: 1500px) {
  .side {
    width: 235px;
  }
  .shell {
    margin-left: 235px;
  }
  main {
    padding-top: 42px;
  }
}
@media (max-width: 1060px) {
  .side {
    width: 186px;
  }
  .shell {
    margin-left: 186px;
  }
  .side {
    padding-inline: 10px;
  }
  .endpoint {
    width: 70%;
  }
  .hide-narrow {
    display: none;
  }
  td,
  th {
    padding-inline: 10px;
  }
  .brand {
    font-size: 24px;
  }
}
@media (max-width: 760px) {
  .side {
    position: static;
    width: 100%;
    padding: 12px 16px 0;
    display: block;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    margin-left: 0;
    font-size: 23px;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .side-label,
  .side-bottom {
    display: none;
  }
  .side nav {
    display: flex;
    gap: 4px;
    margin-top: 10px;
  }
  .side nav a {
    padding: 8px 10px;
    font-size: 12px;
    gap: 6px;
    border-radius: 4px 4px 0 0;
  }
  .side nav a.active:after {
    content: none;
  }
  .side nav .ic {
    width: 15px;
    height: 15px;
  }
  .shell {
    margin-left: 0;
    min-height: calc(100vh - 95px);
  }
  header {
    height: 36px;
    padding: 0 16px;
  }
  .crumb {
    gap: 6px;
    font-size: 11px;
  }
  .crumb .ic {
    width: 13px;
  }
  .sync {
    font-size: 10px;
  }
  main {
    padding: 24px 16px;
  }
  .page-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
  }
  h1 {
    font-size: 31px;
  }
  .banner {
    padding: 17px 15px;
    min-height: 130px;
    margin-bottom: 22px;
  }
  .endpoint {
    width: min(76%, 460px);
  }
  .banner h2 {
    font-size: 19px;
  }
  .section-head h2 {
    font-size: 20px;
  }
  .price-unit {
    font-size: 10px;
  }
  .sub {
    font-size: 13px;
  }
  .toolrow {
    gap: 9px;
  }
  .search {
    flex: 1;
    min-width: 160px;
  }
  .search input {
    width: 100%;
  }
  .model-link {
    font-size: 12px;
  }
  .family {
    gap: 6px;
  }
  .family-icon {
    width: 27px;
    height: 27px;
  }
  .family-icon .ic {
    width: 16px;
    height: 16px;
  }
  .hide-mobile {
    display: none;
  }
  .rate {
    font-size: 12px;
  }
  td,
  th {
    padding: 9px 7px;
  }
  .endcell {
    padding: 0 4px 0 0;
  }
  .table-foot {
    align-items: flex-start;
  }
  .page-head .primary {
    font-size: 13px;
    min-height: 36px;
    padding: 8px 12px;
  }
  footer {
    padding-inline: 16px;
  }
  .pair {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .titleline {
    gap: 6px;
  }
}
@media (max-width: 480px) {
  .page-head {
    display: grid;
  }
  .endpoint {
    width: 100%;
  }
  .banner-label {
    font-size: 10px;
  }
  .banner h2 {
    font-size: 18px;
  }
  .prices {
    font-size: 10px;
  }
  .tabs button {
    padding-inline: 8px;
  }
  .section-head {
    align-items: flex-end;
  }
  .section-head .prices {
    max-width: 98px;
    text-align: right;
  }
  .search {
    min-width: 115px;
  }
  .table-foot .fine {
    margin: 0;
  }
  .last-rate {
    display: none;
  }
  .row-next {
    width: 22px;
  }
  .side nav a {
    padding-inline: 7px;
  }
  .balance {
    font-size: 27px;
  }
}
