:root {
  color-scheme: light;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  color: #102e42;
  background: #f4f9fc;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.6;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 5vw;
  border-bottom: 1px solid #d9e5eb;
  background: white;
  gap: 20px;
}
a {
  color: #17628f;
  text-underline-offset: 4px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 22px;
  color: #102e42;
  text-decoration: none;
}
.brand img {
  margin-right: 8px;
}
main {
  width: min(460px, calc(100% - 32px));
  margin: 64px auto;
  padding: 32px;
  background: white;
  border: 1px solid #d9e5eb;
  border-top: 4px solid #16805b;
  border-radius: 8px;
  box-shadow: 0 12px 40px #102e4208;
}
main.wide {
  width: min(860px, calc(100% - 32px));
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 10px 0 24px;
  letter-spacing: -0.7px;
}
.eyebrow {
  font:
    12px ui-monospace,
    monospace;
  letter-spacing: 1px;
  color: #526c7b;
}
form,
label,
.providers {
  display: grid;
  gap: 10px;
}
form {
  gap: 20px;
  margin-bottom: 20px;
}
input,
select,
button {
  font: inherit;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #bdcfd9;
  border-radius: 5px;
  background: white;
  color: inherit;
  width: 100%;
}
button {
  cursor: pointer;
  font-weight: 600;
}
button:hover {
  background: #eef7fc;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.primary {
  background: #102e42;
  color: white;
  border-color: #102e42;
}
.primary:hover {
  background: #17628f;
}
:focus-visible {
  outline: 3px solid #17628f;
  outline-offset: 3px;
}
.divider {
  text-align: center;
  color: #526c7b;
  font-size: 14px;
  margin: 22px 0;
}
.muted {
  color: #526c7b;
  font-size: 14px;
}
#status:not(:empty) {
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #bddbd1;
  background: #eef8f2;
  overflow-wrap: anywhere;
}
#status.error {
  border-color: #dca4a4;
  background: #fff2f2;
}
.account-bar {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.account-bar button {
  width: auto;
  flex-shrink: 0;
}
#create-key {
  grid-template-columns: 1fr 160px auto;
  align-items: end;
  margin: 28px 0;
}
#new-key {
  background: #e8f5ed;
  border: 1px solid #9fcbb7;
  padding: 20px;
  margin: 24px 0;
}
#key-value {
  display: block;
  overflow-wrap: anywhere;
  padding: 12px 0;
  user-select: all;
}
#new-key button {
  width: auto;
  margin-right: 8px;
}
.key-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid #d9e5eb;
}
.key-row strong,
.key-row small {
  display: block;
  overflow-wrap: anywhere;
}
.key-row small {
  color: #526c7b;
  font-size: 14px;
}
.key-row button {
  width: auto;
  flex-shrink: 0;
}
footer {
  text-align: center;
  color: #526c7b;
  font-size: 14px;
  margin-bottom: 32px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  main {
    margin-top: 32px;
    padding: 24px;
  }
  header {
    align-items: start;
  }
  header > a:last-child {
    font-size: 14px;
  }
  #create-key {
    grid-template-columns: 1fr;
  }
  .key-row,
  .account-bar {
    align-items: start;
    flex-direction: column;
  }
}

.usage-section {
  margin-top: 32px;
}
#refresh-usage {
  width: fit-content;
}
