:root { --bg: #f5f5f7; --card: #fff; --text: #17171c; --muted: #6b6b75; --line: #e2e2e8; --accent: #0077e6; --ok: #2f9e44; --off: #c92a2a; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #121216; --card: #1c1c22; --text: #ececf1; --muted: #9a9aa6; --line: #2e2e36; --accent: #3da9ff; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 -apple-system, system-ui, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
header { display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: var(--card); flex-wrap: wrap; }
header nav { margin-left: auto; display: flex; gap: 16px; align-items: center; }
.mark { display: inline-flex; gap: 2px; align-items: center; background: linear-gradient(#34343c, #0e0e12); border-radius: 7px; padding: 6px; height: 26px; }
.mark i { width: 3px; border-radius: 2px; display: block; }
.mark i:nth-child(1) { height: 7px; background: #F76B15; } .mark i:nth-child(2) { height: 14px; background: #30A46C; }
.mark i:nth-child(3) { height: 10px; background: #D6409F; } .mark i:nth-child(4) { height: 6px; background: #0090FF; }
main { max-width: 980px; margin: 0 auto; padding: 24px 16px; }
a { color: var(--accent); text-decoration: none; }
h1 { font-size: 20px; margin: 0 0 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; max-width: 640px; }
.card.narrow { max-width: 360px; margin: 40px auto; }
label { display: block; margin: 0 0 14px; font-weight: 600; }
label small { font-weight: 400; color: var(--muted); }
input, textarea { display: block; width: 100%; margin-top: 5px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; }
input[type="radio"] { display: inline; width: auto; margin: 0 8px 0 0; }
label.row { display: flex; align-items: center; gap: 6px; font-weight: 400; margin: 6px 0; }
label.row input:not([type="radio"]) { display: inline; width: auto; margin: 0; }
input.short { width: 90px !important; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 14px; padding: 8px 14px; }
legend { font-weight: 600; padding: 0 4px; }
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; }
header .btn { padding: 6px 12px; }
.mono { font-family: ui-monospace, Menlo, monospace; }
textarea.mono { font-size: 12px; word-break: break-all; }
.error { background: rgba(201, 42, 42, .1); color: var(--off); border-radius: 8px; padding: 10px 14px; }
.search { display: flex; gap: 8px; margin-bottom: 14px; }
.search input { margin: 0; }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; }
td small, .muted { color: var(--muted); }
.tag { border-radius: 99px; padding: 2px 9px; font-size: 13px; }
.tag.ok { background: rgba(47, 158, 68, .14); color: var(--ok); }
.tag.off { background: rgba(201, 42, 42, .12); color: var(--off); }
@media (max-width: 640px) { th:nth-child(4), td:nth-child(4) { display: none; } }
