﻿:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #f5f6f8;
  color: #1f2937;
}
body {
  margin: 0;
  background: #f5f6f8;
}
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}
.header {
  margin-bottom: 16px;
}
.panel {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}
.hidden {
  display: none;
}
.stack {
  display: grid;
  gap: 12px;
}
label {
  display: grid;
  gap: 6px;
}
input, textarea, select, button {
  font: inherit;
}
input, textarea, select {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}
button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}
button.secondary {
  background: #475569;
}
button.warn {
  background: #b91c1c;
}
button.ghost {
  background: #e2e8f0;
  color: #0f172a;
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.kv {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
code, .mono-list {
  font-family: Consolas, Menlo, monospace;
}
.toolbar, .tabs, .card-header, .inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.toolbar {
  justify-content: space-between;
  margin-bottom: 12px;
}
.tabs {
  margin-bottom: 16px;
}
.tabs button.active {
  background: #1d4ed8;
}
.tab-content {
  display: grid;
  gap: 16px;
}
.card, .table-wrap, .note {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
  background: #fafafa;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 10px 8px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
}
.note {
  color: #475569;
}
.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
textarea {
  min-height: 88px;
}
.mono-list {
  list-style: decimal;
  padding-left: 20px;
}
.dialog-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
}
.dialog {
  width: min(420px, calc(100vw - 32px));
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: grid;
  gap: 12px;
}
pre {
  white-space: pre-wrap;
  margin: 0;
}
