.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 20px;
}

.check-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px;
  margin: 0;
  font-weight: 600;
}

.check-card input {
  width: 18px;
  height: 18px;
}

.check-card:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.template-button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.template-button:hover { background: #f8fafc; }
.template-copy { flex: 1; min-width: 0; }
.template-copy b, .template-copy small { display: block; }
.template-copy small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 520px) {
  .check-grid { grid-template-columns: 1fr; }
}

.api-console { display:grid; grid-template-columns:minmax(320px,.8fr) minmax(420px,1.2fr); gap:18px; align-items:start; }
.operation-detail { text-align:left; display:flex; flex-direction:column; gap:3px; margin-top:4px; }
.operation-detail span,.operation-detail small { color:var(--muted); }
.risk-callout { padding:14px; margin:4px 0 18px; border:1px solid #f1cf8b; background:var(--warning-bg); color:#704100; border-radius:10px; }
.risk-callout>b,.risk-callout>span { display:block; }
.risk-callout>span { margin:3px 0 12px; font-size:12px; }
.risk-callout .check-card { margin:0; background:#fff; }
.json-result { min-height:180px; max-height:480px; overflow:auto; padding:16px; border-radius:10px; background:#101828; color:#d5e1f5; font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace; white-space:pre-wrap; overflow-wrap:anywhere; }
.health-stack { display:grid; gap:10px; }
.health-stack>div { display:flex; justify-content:space-between; gap:18px; padding:15px; border:1px solid var(--line); background:#fafbfc; border-radius:10px; }
.health-stack span { color:var(--muted); }
.health-stack b { text-align:right; }
@media (max-width: 900px) { .api-console { grid-template-columns:1fr; } }
@media (max-width: 520px) { .health-stack>div { display:block; } .health-stack b { display:block; text-align:left; margin-top:3px; } }
.icon-btn { display:grid; place-items:center; color:var(--ink); }
.workspace-switcher { margin:0; min-width:190px; gap:2px; color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.06em; }
.workspace-switcher select { height:34px; padding:0 30px 0 10px; color:var(--ink); font-size:12px; font-weight:700; text-transform:none; letter-spacing:0; }
@media (max-width:520px) { .workspace-switcher { min-width:0; max-width:145px; } .workspace-switcher select { max-width:145px; } }
