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

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #101218;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  border-bottom: 1px solid #2b303b;
  background: #151820;
}

header h1 {
  margin: 0;
  font-size: 24px;
}

header p {
  margin: 4px 0 0;
  color: #9da7b8;
}

.identity {
  color: #b9c4d5;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px;
}

.card {
  background: #181c25;
  border: 1px solid #2b303b;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 20px;
}

h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

p {
  color: #9da7b8;
}

.row,
.section-header,
.tabs {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.section-header {
  justify-content: space-between;
  margin-bottom: 14px;
}

input,
select,
button {
  border-radius: 8px;
  border: 1px solid #394151;
  padding: 10px 12px;
  font: inherit;
}

input,
select {
  background: #10141c;
  color: #eef2f7;
}

#api-key {
  flex: 1;
  min-width: 280px;
}

button {
  cursor: pointer;
  background: #e8edf5;
  color: #11151c;
  font-weight: 600;
}

button.secondary,
button.tab {
  background: #242a36;
  color: #dce3ed;
}

button.tab.active {
  background: #e8edf5;
  color: #11151c;
}

button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.message {
  min-height: 20px;
  margin-top: 10px;
  color: #aeb8c8;
}

.message.error { color: #ff9a9a; }
.message.success { color: #9fe0ad; }

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 11px 10px;
  border-bottom: 1px solid #2a303b;
  vertical-align: middle;
}

th {
  color: #9da7b8;
  font-size: 13px;
}

td {
  font-size: 14px;
}

.status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #2a303b;
}

.action-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.small {
  padding: 6px 9px;
  font-size: 12px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
