:root { --bg:#f5f6f8; --fg:#1f2430; --muted:#7a8190; --line:#e2e5ea; --ok:#2e9e5b; --warn:#e0a100; --err:#d64545; --accent:#2f6fed; }
* { box-sizing: border-box; }
body { margin:0; font:14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; background:var(--bg); color:var(--fg); }
header { display:flex; align-items:center; gap:24px; padding:10px 24px; background:#fff; border-bottom:1px solid var(--line); }
header nav { display:flex; gap:4px; flex:1; }
header nav a, .tabs a { padding:6px 12px; border-radius:6px; color:var(--fg); text-decoration:none; }
header nav a.on, .tabs a.on { background:var(--accent); color:#fff; }
main { padding:20px 24px; max-width:1400px; margin:0 auto; }
h1 { font-size:20px; margin:0; } h2 { font-size:16px; margin:28px 0 8px; } h1 small { color:var(--muted); font-weight:400; }
.toolbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; gap:12px; flex-wrap:wrap; }
.tabs { display:flex; gap:4px; background:#fff; border:1px solid var(--line); border-radius:8px; padding:3px; }
.cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(190px, 1fr)); gap:12px; margin-bottom:20px; }
.card { background:#fff; border:1px solid var(--line); border-radius:10px; padding:14px 16px; }
.card .num { display:block; font-size:28px; font-weight:600; }
.card.ok .num { color:var(--ok); } .card.warn .num { color:var(--warn); } .card.err .num { color:var(--err); }
table { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); border-radius:10px; overflow:hidden; }
th, td { padding:8px 12px; text-align:left; border-bottom:1px solid var(--line); vertical-align:top; }
th { background:#fafbfc; font-weight:600; color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.03em; }
tr:last-child td { border-bottom:0; }
td.bar { width:30%; white-space:nowrap; font-size:0; } .seg { display:inline-block; height:12px; background:#c9ced8; } .seg.ok { background:var(--ok); } .seg.warn { background:var(--warn); }
.nowrap { white-space:nowrap; } .muted, small { color:var(--muted); }
.tag { display:inline-block; padding:1px 8px; border-radius:10px; background:#e8eaef; font-size:12px; }
.tag.ok { background:#dff3e8; color:#1d7a43; } .tag.warn { background:#fdf0cc; color:#8a6500; } .tag.err { background:#fbe0e0; color:#a52929; }
.badge { background:var(--warn); color:#fff; border-radius:10px; padding:0 7px; font-size:12px; }
.flash { padding:10px 14px; border-radius:8px; } .flash.ok { background:#dff3e8; color:#1d7a43; } .flash.err { background:#fbe0e0; color:#a52929; }
input, select, button { font:inherit; padding:6px 10px; border:1px solid var(--line); border-radius:6px; background:#fff; }
button { background:var(--accent); color:#fff; border-color:var(--accent); cursor:pointer; }
button.secondary { background:#fff; color:var(--fg); border-color:var(--line); } button.link { background:none; border:0; color:var(--muted); }
form.inline { display:flex; gap:6px; margin-bottom:6px; } form.inline input { width:170px; } .filters { display:flex; gap:6px; }
audio { height:32px; width:220px; } .pager { display:flex; gap:16px; justify-content:center; margin:16px 0; }
a { color:var(--accent); }
body.login { display:grid; place-items:center; min-height:100vh; }
body.login .card { width:320px; display:flex; flex-direction:column; gap:12px; } body.login label { display:flex; flex-direction:column; gap:4px; }
.tabs.kinds { display:inline-flex; margin-bottom:14px; }
.msg { max-width:420px; white-space:pre-wrap; word-break:break-word; }
