:root {
  color-scheme: light dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fb;
  color: #17202a;
}

body {
  margin: 0;
}

button {
  border: 1px solid #b7c1d1;
  border-radius: 6px;
  background: #fff;
  color: #17202a;
  cursor: pointer;
  font: inherit;
  padding: 8px 12px;
}

button:hover {
  border-color: #61738f;
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px;
}

.topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

h1, h2, p {
  margin: 0;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 18px;
}

#status {
  color: #526173;
  margin-top: 6px;
}

.actions {
  display: flex;
  gap: 10px;
}

.panel {
  background: #fff;
  border: 1px solid #d7deea;
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 18px;
}

.panel-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.warning {
  border-color: #e2b34d;
  background: #fff7df;
}

.customer-list,
.token-list {
  display: grid;
  gap: 10px;
}

.row {
  border: 1px solid #e2e7f0;
  border-radius: 6px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.row-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.muted {
  color: #66758a;
  font-size: 13px;
}

.url {
  background: #f4f6fa;
  border-radius: 6px;
  overflow-wrap: anywhere;
  padding: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

@media (prefers-color-scheme: dark) {
  :root {
    background: #111821;
    color: #e7edf6;
  }

  button,
  .panel {
    background: #172231;
    color: #e7edf6;
  }

  button {
    border-color: #405168;
  }

  #status,
  .muted {
    color: #9bacbf;
  }

  .panel,
  .row {
    border-color: #2f3d50;
  }

  .url {
    background: #111821;
  }

  .warning {
    color: #f8e1a1;
    background: #2b2412;
    border-color: #7a6223;
  }
}
