:root {
  --bg: #f5f7fa;
  --panel: #fff;
  --line: #d8e0e8;
  --text: #17212b;
  --muted: #667789;
  --blue: #1f6feb;
  --green: #16833a;
  --yellow: #a36b00;
  --red: #c62828;
  --soft: #eef3f8;
  --shadow: 0 1px 2px rgba(18, 32, 48, .08);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font: 14px "Segoe UI", "Malgun Gothic", Arial, sans-serif; }
button, input, select { font: inherit; }
.top { background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.topin { max-width: 1440px; margin: 0 auto; padding: 14px 20px; display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 16px; align-items: center; }
.title { margin: 0; font-size: 18px; font-weight: 750; letter-spacing: 0; }
.sub { margin-top: 3px; color: var(--muted); font-size: 12px; }
.nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.nav a, .pill { min-height: 30px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); color: var(--muted); white-space: nowrap; font-size: 12px; text-decoration: none; }
.nav a.active { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.nav a:hover { border-color: var(--blue); }
.status { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot.ok { background: var(--green); }
.dot.bad { background: var(--red); }
main { max-width: 1440px; margin: 0 auto; padding: 18px 20px 28px; }
section, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.head { min-height: 54px; padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h2 { margin: 0; font-size: 15px; font-weight: 750; letter-spacing: 0; }
.tools { display: flex; align-items: center; gap: 8px; min-width: 0; }
.search, .select { min-height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: #fff; color: var(--text); outline: none; }
.search { width: 230px; }
.select { padding: 5px 8px; }
.search:focus, .select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 111, 235, .12); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.seg button { min-height: 32px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); padding: 5px 10px; cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button.active { background: var(--blue); color: #fff; }
.sort { border: 0; background: transparent; color: inherit; font: inherit; font-weight: 750; cursor: pointer; padding: 0; }
.sort.active { color: var(--blue); }
.sort::after { content: ""; display: inline-block; width: 0; height: 0; margin-left: 6px; vertical-align: middle; border-left: 4px solid transparent; border-right: 4px solid transparent; }
.sort.asc::after { border-bottom: 6px solid currentColor; }
.sort.desc::after { border-top: 6px solid currentColor; }
.wrap { overflow: auto; max-height: calc(100vh - 260px); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
th { position: sticky; top: 0; z-index: 1; background: #f8fafc; color: var(--muted); font-size: 12px; font-weight: 750; }
td { font-size: 13px; }
.mono { font-family: Consolas, "SFMono-Regular", monospace; }
.value { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 700; }
.badge.ok { border-color: rgba(22, 131, 58, .25); background: #eaf7ee; color: var(--green); }
.badge.warn { border-color: rgba(163, 107, 0, .25); background: #fff4d5; color: var(--yellow); }
.badge.bad { border-color: rgba(198, 40, 40, .25); background: #fdecec; color: var(--red); }
.empty { padding: 34px 14px; color: var(--muted); text-align: center; }
.ml { color: var(--muted); font-size: 12px; font-weight: 650; }
@media (max-width: 1100px) { .wrap { max-height: none; } }
@media (max-width: 720px) { .topin { grid-template-columns: 1fr; } .nav, .status { justify-content: flex-start; } main { padding: 14px 12px 22px; } .head { align-items: stretch; flex-direction: column; } .tools { flex-wrap: wrap; } .search { width: 100%; } }