:root {
  --bg: #f6f7f9; --panel: #fff; --text: #1c2430; --muted: #5d6b7c; --line: #dfe3e8;
  --accent: #1f5fbf; --accent-2: #e8f0fc; --ok: #1d7a46; --ok-bg: #e6f4ec; --warn: #8a5a00; --warn-bg: #fff4dc;
  --err: #b42318; --err-bg: #fdecea; --info-bg: #eef2f7;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.45; }
a { color: var(--accent); }
.top { display: flex; gap: 24px; align-items: center; padding: 12px 24px; background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { font-weight: 700; text-decoration: none; color: var(--text); }
.brand span { font-weight: 400; color: var(--muted); }
nav { display: flex; gap: 16px; }
nav a { text-decoration: none; }
#who { margin-left: auto; color: var(--muted); font-size: 14px; display: flex; gap: 12px; align-items: center; }
main { max-width: 1180px; margin: 24px auto; padding: 0 16px; }
h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 17px; margin: 24px 0 8px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; margin-bottom: 14px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input, select, textarea { font: inherit; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; width: 100%; background: #fff; }
textarea { min-height: 70px; }
button, .btn { font: inherit; padding: 7px 14px; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
button.secondary, .btn.secondary { background: #fff; color: var(--accent); }
button.danger { background: #fff; color: var(--err); border-color: var(--err); }
button:disabled { opacity: .5; cursor: not-allowed; }
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--info-bg); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.err { background: var(--err-bg); color: var(--err); }
.notice { padding: 10px 12px; border-radius: 6px; margin: 10px 0; background: var(--info-bg); }
.notice.warn { background: var(--warn-bg); }
.notice.err { background: var(--err-bg); color: var(--err); }
.notice.ok { background: var(--ok-bg); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
code, .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.desc-preview { font-family: ui-monospace, Menlo, monospace; background: var(--info-bg); padding: 8px; border-radius: 6px; word-break: break-word; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { padding: 4px 0 4px 22px; position: relative; }
.steps li::before { content: "○"; position: absolute; left: 0; color: var(--muted); }
.steps li.done::before { content: "●"; color: var(--ok); }
.steps li.open::before { content: "○"; color: var(--warn); }
.remote-wrap { background: #222; border-radius: 8px; padding: 8px; }
#remote { width: 100%; height: auto; display: block; background: #333; cursor: default; outline: none; border-radius: 4px; }
#remote:focus { box-shadow: 0 0 0 3px #6aa0ff; }
.shots img { max-width: 100%; border: 1px solid var(--line); border-radius: 6px; }
.events { max-height: 300px; overflow: auto; font-size: 13px; }
.kv { display: grid; grid-template-columns: 220px 1fr; gap: 4px 12px; font-size: 14px; }
.kv div:nth-child(odd) { color: var(--muted); }
@media (max-width: 700px) { .kv { grid-template-columns: 1fr; } }
