:root {
  color-scheme: dark;
  --bg: #0f1216;
  --bg-muted: #151a20;
  --card: #141922;
  --text: #e6edf3;
  --muted: #9fb0c0;
  --border: #233041;
  --accent: #28c76f;
  --accent-2: #1faa62;
  --danger: #ff5c7c;
  --warn: #ffb020;
  --info: #2ea3f2;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: rgba(10,12,16,.8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.brand { display: flex; gap: 10px; align-items: center; }
.brand .title { display: flex; flex-direction: column; line-height: 1.1; }
.brand .slug { color: var(--muted); font-size: 12px; }
.top-actions .link { margin-left: 12px; }

.container { max-width: 1080px; margin: 24px auto; padding: 0 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
.card h1, .card h2, .card h3 { margin: 0 0 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
@media (max-width: 900px) { .col-8, .col-6, .col-4 { grid-column: span 12; } }

.field { display: flex; flex-direction: column; gap: 6px; }
label { font-weight: 600; }
input[type="url"], select { background: var(--bg-muted); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.actions { display: flex; align-items: center; gap: 8px; }
.btn { background: transparent; border: 1px solid var(--border); color: var(--text); padding: 8px 12px; border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: #02130a; border-color: var(--accent-2); }
.btn.tiny { padding: 4px 8px; font-size: 12px; }

.alert { padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }
.alert.error { background: rgba(255,92,124,.08); border: 1px solid rgba(255,92,124,.4); }
.alert.info { background: rgba(46,163,242,.08); border: 1px solid rgba(46,163,242,.4); }

.kv { list-style: none; padding: 0; margin: 0; }
.kv li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.kv li span:first-child { color: var(--muted); width: 40%; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: var(--bg-muted); border: 1px solid var(--border); padding: 4px 8px; border-radius: 999px; }

.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.tag { background: var(--accent); color: #02130a; padding: 2px 6px; border-radius: 6px; font-size: 12px; margin-left: 8px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.truncate { max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scroll { max-height: 220px; overflow: auto; }

.accordion summary { cursor: pointer; color: var(--muted); }
.accordion pre { background: #0b0e12; border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.code { background: #0b0e12; border: 1px solid var(--border); border-radius: 8px; padding: 12px; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 8px; border-bottom: 1px solid var(--border); text-align: left; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.checklist .dot { width: 10px; height: 10px; border-radius: 999px; margin-top: 8px; }
.checklist li.pass .dot { background: var(--accent); }
.checklist li.warn .dot { background: var(--warn); }
.checklist li.fail .dot { background: var(--danger); }
.checklist .text { font-weight: 600; }

.footer { margin: 24px 0; text-align: center; color: var(--muted); }
