:root {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #142b3d;
  background: #f3f6f8;
  --surface: #fff;
  --line: #d9e2e8;
  --muted: #617584;
  --blue: #084763;
  --turquoise: #00b5ce;
  --ink: #142b3d;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  padding: 12px 20px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  min-height: 44px;
}
button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
button.danger {
  background: #8e2840;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:hover:not(:disabled),
.button:hover {
  filter: brightness(1.12);
}
a {
  color: var(--blue);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  overflow-wrap: anywhere;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
h2 {
  font-size: 28px;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 18px;
}
p {
  line-height: 1.6;
}
.muted,
small {
  color: var(--muted);
}
.brand {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.brand strong {
  color: var(--turquoise);
  padding-left: 8px;
}
.login {
  max-width: 650px;
  margin: 10vh auto;
  padding: 36px;
}
.login .brand {
  margin-bottom: 70px;
}
.login > p:not(.brand) {
  max-width: 460px;
  color: var(--muted);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  margin: 18px 0;
}
.card h3 {
  margin-bottom: 12px;
}
.stack {
  display: grid;
  gap: 16px;
}
form {
  display: grid;
  gap: 16px;
  max-width: 650px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 13px;
  border-radius: 10px;
  min-height: 46px;
  font-size: 16px;
}
textarea {
  min-height: 100px;
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #00b5ce66;
  outline-offset: 2px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.row > * {
  margin-bottom: 0;
}
.row.push {
  justify-content: space-between;
}
.badge {
  display: inline-flex;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #00b5ce1a;
  color: var(--ink);
  font-weight: 600;
}
.badge.pending {
  background: #e7af3320;
}
.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  min-width: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
aside .brand {
  margin: 0;
}
nav {
  min-width: 0;
  display: grid;
  gap: 5px;
}
nav button,
nav a {
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  justify-content: flex-start;
  font-weight: 500;
}
nav button.active,
nav a.active {
  background: #00b5ce15;
  color: var(--ink);
}
.account {
  margin-top: auto;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.workspace {
  min-width: 0;
  padding: 32px clamp(20px, 4vw, 64px);
  max-width: 1400px;
  width: 100%;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 44px;
}
.topbar select {
  max-width: 360px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.grid .card {
  margin: 0;
}
.metric {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th {
  text-align: left;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
td .row button {
  padding: 8px 12px;
  font-size: 13px;
}
code,
pre {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}
pre {
  white-space: pre-wrap;
  background: #00b5ce0c;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.secret {
  background: #e7af3315;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkbox input {
  width: 20px;
  min-height: 20px;
}
.banner {
  border-left: 4px solid var(--turquoise);
  padding: 18px;
  background: var(--surface);
  border-radius: 0 12px 12px 0;
  margin: 18px 0;
}
.loading {
  opacity: 0.65;
}
.empty {
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
}
#notice {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--surface);
  box-shadow: 0 6px 30px #0002;
  display: none;
  z-index: 10;
}
#notice.visible {
  display: block;
}
#notice.error {
  background: #8e2840;
  color: #fff;
}
@media (max-width: 760px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px;
  }
  .account {
    margin-top: 0;
  }
  .account button {
    padding: 8px 12px;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 4px;
  }
  nav button,
  nav a {
    white-space: nowrap;
  }
  aside > select {
    max-width: 100%;
  }
  .workspace {
    padding: 24px 18px;
  }
  .topbar {
    margin-bottom: 26px;
  }
  .login {
    margin: 3vh auto;
    padding: 26px;
  }
  .login .brand {
    margin-bottom: 44px;
  }
  .card {
    padding: 20px;
  }
  .topbar select {
    max-width: 100%;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #121a20;
    --line: #2a3944;
    --muted: #a0b1bf;
    --ink: #e8f0f5;
    background: #080e12;
    color: var(--ink);
    color-scheme: dark;
  }
  a {
    color: var(--turquoise);
  }
}

nav a {
  padding: 12px 20px;
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
