:root { font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
body { margin: 0; background: #f7f7f9; color: #222; }
header { padding: 16px 20px; background: #18181b; color: #fff; }
header h1 { margin: 0; font-size: 18px; font-weight: 600; }
main { display: grid; grid-template-columns: 320px 1fr; gap: 16px; padding: 16px; }
section { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
section h2 { padding: 12px 14px; margin: 0; font-size: 15px; border-bottom: 1px solid #f1f5f9; background:#fafafa; border-radius: 12px 12px 0 0; }
.content { padding: 12px 14px; }
.row { display: flex; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; }
.btn { cursor: pointer; border: 1px solid #e5e7eb; background: #fafafa; padding: 8px 10px; border-radius: 8px; font-size: 13px; }
.btn.primary { background: #111827; color: #fff; border-color: #111827; }
.btn.warn { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
.btn.ghost { background: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
input, select, textarea { border:1px solid #e5e7eb; border-radius:8px; padding:8px 10px; font-size:13px; width:100%; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align:left; font-size:13px; padding: 6px 8px; border-bottom: 1px dashed #e5e7eb; }
tfoot td { border-top: 1px solid #e5e7eb; }
.muted { color:#6b7280; }
.tag { display:inline-flex; align-items:center; gap:6px; border:1px solid #e5e7eb; padding:2px 6px; border-radius:999px; font-size:12px; background:#fafafa; }
.pill { display:inline-block; padding:2px 8px; border-radius:999px; background:#eef2ff; color:#3730a3; font-size:12px; }
.cluster { display: flex; flex-wrap: wrap; gap: 6px; }
.grid2 { display:grid; grid-template-columns: 1fr 1fr; gap:8px; }
.grid3 { display:grid; grid-template-columns: repeat(3,1fr); gap:8px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mb8 { margin-bottom: 8px; }
.right { text-align:right; }
.danger { color:#b91c1c; }
.success { color:#065f46; }
.card { border:1px solid #e5e7eb; border-radius:10px; padding:8px; }
.list { max-height: 260px; overflow: auto; border:1px solid #eef2f7; border-radius:10px; }
.small { font-size:12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
