:root { --dark:#2E2822; --gold:#BEA06E; --bg:#F5F2ED; --card:#fff; --muted:#6F675D; --line:#E4DDD2;
        --ok:#2E9E4F; --bad:#C8402F; --warn:#C9821A; --ink:#231F1B; }
* { box-sizing:border-box; }
body { margin:0; font:15px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif; background:var(--bg); color:var(--ink); }
header { background:var(--dark); color:#fff; padding:12px 20px; display:flex; align-items:center; gap:10px 20px; flex-wrap:wrap; }
header b { font-size:19px; letter-spacing:.5px; }
header b span { color:var(--gold); font-weight:600; }
header nav { margin-left:auto; display:flex; gap:10px 18px; flex-wrap:wrap; }
header a { color:#fff; text-decoration:none; opacity:.82; }
header a:hover { opacity:1; }
main { max-width:1100px; margin:0 auto; padding:20px 16px 48px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:16px 18px; margin-bottom:18px; }
h1 { font-size:20px; margin:0 0 12px; }
h2 { font-size:16px; margin:0 0 10px; }
table { width:100%; border-collapse:collapse; }
th, td { text-align:left; padding:8px 6px; border-bottom:1px solid var(--line); vertical-align:top; }
tr:last-child td { border-bottom:0; }
th { font-size:12px; text-transform:uppercase; letter-spacing:.4px; color:var(--muted); font-weight:600; }
.wrap { overflow-x:auto; }
.dot { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:6px; }
.on { background:var(--ok); } .off { background:#B9B1A6; }
.muted { color:var(--muted); font-size:13px; }
.msg { background:#F4ECDD; border:1px solid var(--gold); padding:10px 14px; border-radius:8px; margin-bottom:16px; }
.bad { color:var(--bad); }
.lcd { display:inline-block; font:13px/1.35 ui-monospace,Menlo,Consolas,monospace; background:var(--dark); color:#F3EBDD;
       border-radius:6px; padding:4px 8px; white-space:pre; min-width:17ch; }
input[type=text], input[type=password], select { padding:7px 10px; border:1px solid #C9C1B5; border-radius:8px; font:inherit; background:#fff; max-width:100%; }
button, .btn { background:var(--dark); color:#fff; border:0; border-radius:8px; padding:8px 14px; font:inherit; cursor:pointer; text-decoration:none; display:inline-block; }
button.gold { background:var(--gold); color:var(--ink); }
button.ghost { background:transparent; color:var(--bad); border:1px solid var(--line); padding:5px 10px; }
form.inline { display:inline; }
.row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.badge { display:inline-block; background:var(--gold); color:var(--ink); border-radius:999px; padding:1px 9px; font-size:13px; font-weight:600; }
iframe.panel { display:block; width:100%; height:calc(100vh - 150px); min-height:520px; border:1px solid var(--line); border-radius:12px; background:#fff; }
td a { color:inherit; }
