:root {
  --bg: #0f1115; --panel: #171a21; --border: #262b36; --text: #e6e8ec;
  --muted: #8a90a0; --accent: #5b8def; --ok: #3ec98d; --warn: #e2b23a; --err: #e2543a;
  font-family: -apple-system, Segoe UI, Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--text); margin: 0; padding: 24px; }
a { color: var(--accent); }
.wrap { max-width: 960px; margin: 0 auto; }
h1 { font-size: 20px; margin-bottom: 4px; }
.sub { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 18px; margin-bottom: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 14px; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; margin-top: 12px; }
input[type=text], input[type=password], input[type=url], select, textarea {
  width: 100%; background: #0d0f14; border: 1px solid var(--border); color: var(--text);
  padding: 8px 10px; border-radius: 6px; font-size: 14px;
}
button, .btn {
  background: var(--accent); color: #0d0f14; border: none; padding: 8px 14px;
  border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 13px; text-decoration: none; display: inline-block;
}
button.secondary, .btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
button.danger { background: var(--err); color: #fff; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge.text { background: #2a3550; color: #9db4ff; }
.badge.image { background: #3a2a50; color: #d29bff; }
.badge.ok { background: #103a2a; color: var(--ok); }
.badge.err { background: #3a1a15; color: var(--err); }
.badge.warn { background: #3a3015; color: var(--warn); }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.muted { color: var(--muted); }
.err-box { background: #2a1512; border: 1px solid #4a231d; color: #ff9a8a; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; }
.ok-box { background: #0f2a20; border: 1px solid #1d4a37; color: #8affca; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
td, th { padding: 8px; border-bottom: 1px solid var(--border); text-align: left; }
.top-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.model-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.model-row { display: flex; gap: 6px; align-items: center; }
.model-row input { flex: 1; }
.small { font-size: 12px; padding: 4px 8px; }
#test-result { margin-top: 10px; font-size: 13px; }
