:root {
  --bg: #14161a; --panel: #1c1f25; --line: #2b2f37; --ink: #e8eaed;
  --muted: #969ba5; --accent: #6ea8fe; --danger: #e0625e; --ok: #5ec6a8;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg); color: var(--ink); padding: 24px;
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1040px; margin: 0 auto; }
header.top { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
header.top h1 { font-size: 16px; font-weight: 600; }
header.top .sub { color: var(--muted); font-size: 12px; }
.crumb { color: var(--muted); font-size: 12px; margin-bottom: 14px; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 14px; }
.row { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.col { flex: 1 1 320px; min-width: 280px; }
.list { list-style: none; }
.list li { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: none; }
.list .nm { font-weight: 600; }
.list .meta { color: var(--muted); font-size: 12px; }
.pill { font-size: 11px; padding: 2px 8px; border-radius: 20px; border: 1px solid var(--line); color: var(--muted); }
.pill.off { color: var(--danger); border-color: var(--danger); }
.pill.on { color: var(--ok); border-color: var(--ok); }
label { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 4px; }
input[type=text], input[type=url], select, textarea {
  width: 100%; background: #0f1115; border: 1px solid var(--line); color: var(--ink);
  border-radius: 7px; padding: 8px 10px; font: inherit;
}
input[type=color] { width: 46px; height: 32px; padding: 2px; background: #0f1115; border: 1px solid var(--line); border-radius: 7px; vertical-align: middle; }
input[type=range] { width: 100%; accent-color: var(--accent); }
textarea { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; resize: vertical; }
.btn { display: inline-block; background: var(--accent); color: #06121f; border: none; border-radius: 7px;
  padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn.danger { background: transparent; border: 1px solid var(--danger); color: var(--danger); }
.inline { display: inline; }
.stage { width: 100%; aspect-ratio: 1200/630; background: #22252b; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.stage img { width: 100%; height: 100%; display: block; object-fit: contain; }
.hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
.keybox { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: #0f1115; border: 1px solid var(--line);
  border-radius: 7px; padding: 8px 10px; word-break: break-all; color: var(--ok); }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sliderrow { display: flex; align-items: center; gap: 10px; }
.sliderrow .px { font-variant-numeric: tabular-nums; color: var(--ink); min-width: 52px; text-align: right; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-top: 10px; }
fieldset legend { font-size: 11px; color: var(--muted); padding: 0 6px; }
