:root { color-scheme: light; --ink: #1c242b; --muted: #62707b; --line: #d4d9dd; --surface: #fff; --band: #f3f5f6; --accent: #d85d16; --accent-dark: #a8430c; --good: #1d7a4b; --bad: #b52828; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--band); color: var(--ink); font: 14px/1.45 "Segoe UI", Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
button { min-height: 32px; padding: 5px 12px; border: 1px solid #aeb7bd; border-radius: 4px; background: var(--surface); color: var(--ink); cursor: pointer; }
button:hover { border-color: var(--accent); color: var(--accent-dark); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #1b72b8; outline-offset: 1px; }
.topbar { min-height: 52px; padding: 8px 18px; background: #232b31; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { font-size: 20px; font-weight: 700; }
.brand span { margin-left: 8px; color: #c9d0d5; font-size: 13px; font-weight: 500; }
.connection { display: flex; align-items: center; gap: 10px; }
.connection label { display: flex; align-items: center; gap: 6px; color: #d7dde1; }
.connection input { width: 150px; }
.state { display: inline-flex; min-height: 28px; align-items: center; padding: 3px 9px; border-left: 3px solid var(--bad); background: #fff; color: var(--bad); }
.state.good { border-color: var(--good); color: var(--good); }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); background: var(--surface); padding-left: 16px; }
.tabs button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; min-width: 104px; }
.tabs button.active { border-bottom-color: var(--accent); color: var(--accent-dark); font-weight: 600; }
main { padding: 16px; }
.view { display: none; }
.view.active { display: block; }
h2 { margin: 0 0 10px; font-size: 16px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); border: 1px solid var(--line); background: var(--surface); margin-bottom: 16px; }
.metric { min-height: 78px; padding: 12px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; font-size: 24px; color: var(--accent-dark); }
.metric span { color: var(--muted); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.section-head h2 { margin: 0; }
.split { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr); gap: 12px; margin-bottom: 14px; }
.tool-panel { background: var(--surface); border: 1px solid var(--line); padding: 12px; }
.tool-panel label { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 8px; margin: 7px 0; }
input, select { width: 100%; min-height: 32px; padding: 5px 7px; border: 1px solid #adb7be; border-radius: 3px; background: #fff; color: var(--ink); }
textarea { width: 100%; resize: vertical; padding: 7px; border: 1px solid #adb7be; border-radius: 3px; background: #fff; color: var(--ink); font: 13px/1.4 Consolas, monospace; }
.api-tool { max-width: 920px; }
.api-line { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; }
.button-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
pre { min-height: 54px; max-height: 260px; overflow: auto; margin: 8px 0 0; padding: 10px; background: #20272c; color: #e7ecef; border-radius: 3px; font: 12px/1.4 Consolas, monospace; white-space: pre-wrap; }
.table-wrap { overflow: auto; border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; table-layout: auto; }
th, td { padding: 7px 9px; border-bottom: 1px solid #e3e6e8; text-align: left; white-space: nowrap; }
th { position: sticky; top: 0; z-index: 1; background: #e8ecee; color: #37444c; font-size: 12px; text-transform: uppercase; }
tbody tr:hover { background: #fff8f3; }
.message-table { max-height: 480px; }
.yes { color: var(--good); font-weight: 600; }
.no { color: var(--muted); }
.hint { color: var(--muted); max-width: 920px; }
@media (max-width: 760px) { .topbar { align-items: flex-start; flex-direction: column; } .connection { width: 100%; flex-wrap: wrap; } .tabs { overflow-x: auto; padding-left: 0; } .tabs button { min-width: 90px; } main { padding: 10px; } .metrics { grid-template-columns: repeat(2, minmax(120px, 1fr)); } .metric:nth-child(2) { border-right: 0; } .split { grid-template-columns: 1fr; } .tool-panel label { grid-template-columns: 1fr; gap: 2px; } }
