body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  margin: 0;
  background: #0b0d12;
  color: #e6e8ef;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid #1e2430;
  background: #0f1320;
}

h1,
h2 {
  margin: 0;
}

main {
  padding: 22px;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  border: 1px solid #1e2430;
  background: #0f1320;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #b7c0d6;
}

input {
  border: 1px solid #1e2430;
  background: #0b0d12;
  color: #e6e8ef;
  padding: 10px 12px;
  border-radius: 10px;
}

select {
  border: 1px solid #1e2430;
  background: #0b0d12;
  color: #e6e8ef;
  padding: 10px 12px;
  border-radius: 10px;
}

button {
  border: 1px solid #2a3550;
  background: #1a2450;
  color: #e6e8ef;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}

button.secondary {
  background: transparent;
}

.msg {
  margin-top: 10px;
  font-size: 13px;
  color: #b7c0d6;
  white-space: pre-wrap;
}

.hidden {
  display: none;
}

.cardHeader {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.row.wrap {
  flex-wrap: wrap;
}

label.inline {
  gap: 4px;
  font-size: 12px;
}

.tableWrap {
  overflow-x: auto;
}

.nowrap {
  white-space: nowrap;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid #1e2430;
  background: #0b0d12;
  color: #cdd6f4;
}

.muted {
  color: #b7c0d6;
}

.badge {
  display: inline-block;
  border: 1px solid #2a3550;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.02em;
}

.badge.info {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  color: #cfe3ff;
}

.badge.warn {
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.35);
  color: #ffe9b0;
}

.badge.error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #ffd0d0;
}

.logDetails summary {
  cursor: pointer;
  color: #cdd6f4;
}

.logDetails pre {
  margin-top: 8px;
  border: 1px solid #1e2430;
  border-radius: 10px;
  padding: 10px 12px;
  background: #0b0d12;
  overflow-x: auto;
}

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

th,
td {
  border-bottom: 1px solid #1e2430;
  padding: 8px;
  font-size: 12px;
  text-align: left;
  vertical-align: top;
}

tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

pre {
  margin: 0;
  white-space: pre-wrap;
  font-size: 12px;
  color: #cdd6f4;
}
