:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #0b0c10;
  color: #f4f1ea;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
main {
  max-width: 1080px;
  margin: 70px auto;
  padding: 24px;
}
h1 {
  font-size: 40px;
  letter-spacing: -1px;
}
h2 {
  margin-top: 48px;
}
.eyebrow {
  color: #d8b572;
  font-size: 13px;
  letter-spacing: 2px;
}
p {
  color: #b7b9c4;
  line-height: 1.7;
}
a {
  color: #e1bc72;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
#password-settings {
  margin-top: 28px;
  padding: 24px;
  background: #11131a;
  border: 1px solid #2b2e39;
  border-radius: 12px;
}
#password-settings h2 {
  margin-top: 0;
}
#password-notice {
  max-width: 600px;
}
#password-help {
  font-size: 14px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}
article {
  padding: 26px;
  background: #181a22;
  border: 1px solid #2b2e39;
  border-radius: 12px;
}
article span {
  display: block;
  color: #b7b9c4;
}
strong {
  display: block;
  font-size: 36px;
  margin-top: 12px;
}
label {
  display: block;
  max-width: 380px;
}
input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 14px;
  margin: 12px 0 20px;
  background: #181a22;
  color: white;
  border: 1px solid #5d6170;
  border-radius: 7px;
}
button {
  background: #d8b572;
  color: #111318;
  border: 0;
  padding: 12px 20px;
  border-radius: 7px;
  font-weight: 700;
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #f7d99c;
  outline-offset: 4px;
}
.table {
  overflow-x: auto;
  margin: 24px 0;
}
.billing-card {
  margin: 24px 0;
  padding: clamp(16px, 4vw, 28px);
  border: 1px solid #2b2e39;
  border-radius: 12px;
  background: #11131a;
}
.billing-card h2 { margin: 0 0 16px; }
.billing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  margin: 18px 0;
}
.billing-grid label, .billing-card .webhook-url { max-width: none; }
.billing-grid input { margin: 8px 0; }
.billing-grid small { color: #b7b9c4; }
.billing-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.billing-page [data-mode][aria-pressed="false"], .billing-card #pause {
  background: #252836;
  color: #f4f1ea;
}
.billing-card details { margin-top: 22px; }
.billing-card summary { cursor: pointer; }
.billing-card li { margin-top: 6px; overflow-wrap: anywhere; }
.billing-card #notice { min-height: 1.7em; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
td,
th {
  padding: 13px 12px;
  border-bottom: 1px solid #2b2e39;
}
th {
  color: #d8b572;
}
td:last-child {
  word-break: break-word;
}
@media (max-width: 650px) {
  main {
    margin: 20px auto;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 32px;
  }
}

.password-field {
  position: relative;
  max-width: 380px;
}
.password-field input {
  padding-right: 55px;
}
.password-eye {
  position: absolute;
  right: 4px;
  top: 4px;
  padding: 10px;
  background: transparent;
  color: #dfbc78;
  display: flex;
  align-items: center;
  justify-content: center;
}
.password-eye .eye-slash {
  display: none;
}
.password-eye[aria-pressed="true"] .eye-slash {
  display: block;
}
.section-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.filters {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  padding: 20px;
  background: #14161d;
  border: 1px solid #2b2e39;
  border-radius: 12px;
}
.filters label {
  font-size: 13px;
  color: #b7b9c4;
}
select {
  display: block;
  padding: 11px 14px;
  margin-top: 8px;
  background: #20232e;
  color: #f4f1ea;
  border: 1px solid #565c70;
  border-radius: 7px;
  font: inherit;
  max-width: 100%;
}
.secondary {
  background: #252936;
  color: #efe6d3;
  border: 1px solid #4d5263;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.service {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px;
  border: 1px solid #2b2e39;
  border-radius: 9px;
  background: #11131a;
}
.service span {
  font-size: 13px;
  color: #b7b9c4;
}
.service.healthy b {
  color: #a4d8ba;
}
.service.unavailable b {
  color: #eac17a;
}
.activity-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 160px;
  padding: 12px 0 30px;
  border-bottom: 1px solid #333846;
}
.activity-bar {
  position: relative;
  display: flex;
  flex: 1;
  align-items: end;
  justify-content: center;
  height: 100%;
  min-width: 10px;
}
.activity-bar > div {
  width: 100%;
  max-width: 58px;
  background: #d8b572;
  border-radius: 4px 4px 0 0;
  min-height: 2px;
}
.activity-bar:hover > div {
  background: #f8d99c;
}
.activity-bar small {
  position: absolute;
  bottom: -25px;
  color: #9fa4b6;
  font-size: 10px;
  white-space: nowrap;
}
.empty {
  text-align: center;
  color: #9fa4b6;
  padding: 26px;
}
td code {
  font:
    12px ui-monospace,
    monospace;
  white-space: normal;
  word-break: break-all;
  color: #c8cfdf;
}
td button {
  font-size: 12px;
  text-align: left;
  max-width: 270px;
  overflow-wrap: anywhere;
  padding: 8px 10px;
}
th {
  text-align: left;
  white-space: nowrap;
}
td {
  vertical-align: top;
  font-size: 13px;
}
section {
  scroll-margin-top: 20px;
}
@media (min-width: 1200px) {
  main:has(#metrics) {
    max-width: 1440px;
    margin-top: 30px;
  }
}
@media (max-width: 650px) {
  header {
    align-items: start;
    gap: 16px;
    flex-direction: column;
  }
  .activity-chart {
    gap: 3px;
  }
  .activity-bar:nth-child(even) small {
    display: none;
  }
  .filters button {
    width: 100%;
  }
}
