:root { color-scheme: light dark; }
* { box-sizing: border-box; }
body {
  font: 15px/1.5 system-ui, Segoe UI, sans-serif;
  margin: 0; padding: 24px; max-width: 1000px; margin-inline: auto;
}
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 16px; margin-top: 28px; }
p { opacity: .85; }
hr { border: none; border-top: 1px solid #8883; margin: 8px 0; }

.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 12px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid #8886; background: #8881; font-family: ui-monospace, Consolas, monospace;
}

.card {
  border: 1px solid #8884; border-radius: 10px; padding: 16px; margin: 16px 0;
  display: flex; flex-direction: column; gap: 8px;
}
label { font-weight: 600; font-size: 13px; margin-top: 6px; }
input {
  padding: 8px 10px; border: 1px solid #8886; border-radius: 8px; font: inherit; width: 100%;
}
.row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
button {
  padding: 8px 14px; border: 1px solid #8886; border-radius: 8px; font: inherit;
  cursor: pointer; background: #8881;
}
button.primary { background: #2563eb; color: #fff; border-color: #2563eb; }
button:disabled { opacity: .5; cursor: not-allowed; }
.status { margin-top: 10px; font-size: 13px; opacity: .85; min-height: 18px; }
.hint { font-size: 12px; opacity: .6; }

.calls { display: flex; flex-direction: column; gap: 12px; }
.call { border: 1px solid #8884; border-radius: 10px; overflow: hidden; }
.call.ok { border-left: 4px solid #16a34a; }
.call.err { border-left: 4px solid #dc2626; }
.call-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: #8881; cursor: pointer; user-select: none;
}
.call-head::after { content: '▾'; margin-left: auto; opacity: .6; }
.call.collapsed .call-head::after { content: '▸'; }
.call.collapsed .call-body { display: none; }
.badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: #2563eb; color: #fff; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.call-name { font-weight: 600; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.status-pill { font-size: 12px; padding: 1px 8px; border-radius: 999px; font-family: ui-monospace, Consolas, monospace; }
.status-pill.ok { background: #16a34a22; color: #16a34a; }
.status-pill.err { background: #dc262622; color: #dc2626; }
.ms { font-size: 12px; opacity: .6; }

.call-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.block { display: flex; flex-direction: column; gap: 4px; }
.block-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .7; }
.sub { font-size: 11px; opacity: .55; margin-top: 4px; }
pre {
  margin: 0; padding: 10px; overflow: auto; font-size: 12px;
  white-space: pre-wrap; word-break: break-all;
  background: #8881; border-radius: 8px; font-family: ui-monospace, Consolas, monospace;
}
