* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172026;
  background: #f4f6f8;
}
button, input, select, textarea { font: inherit; }
.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px 1fr;
}
.side {
  background: #18232b;
  color: #e9f0f4;
  padding: 18px 14px;
}
.brand { font-size: 18px; font-weight: 700; margin-bottom: 18px; }
.nav { display: grid; gap: 6px; }
.nav button {
  width: 100%;
  height: 36px;
  border: 0;
  border-radius: 6px;
  color: #dce7ec;
  background: transparent;
  text-align: left;
  padding: 0 10px;
  cursor: pointer;
}
.nav button.active, .nav button:hover { background: #2a3a45; color: #fff; }
.main { padding: 20px; min-width: 0; }
.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}
.panel {
  background: #fff;
  border: 1px solid #dce4e8;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
label { display: grid; gap: 5px; font-size: 13px; color: #4d5c66; }
input, select, textarea {
  width: 100%;
  border: 1px solid #c8d3d9;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
}
textarea { min-height: 80px; resize: vertical; }
button.primary, .actions button {
  height: 36px;
  border: 1px solid #226b86;
  border-radius: 6px;
  background: #247fa3;
  color: #fff;
  padding: 0 12px;
  cursor: pointer;
}
button.secondary {
  height: 36px;
  border: 1px solid #b6c4cb;
  border-radius: 6px;
  background: #fff;
  color: #21313a;
  padding: 0 12px;
  cursor: pointer;
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { border-bottom: 1px solid #e4eaee; padding: 9px 8px; text-align: left; vertical-align: top; }
th { color: #53636d; background: #f8fafb; font-weight: 600; }
.status { color: #53636d; min-height: 22px; }
.error { color: #b42318; }
.ok { color: #067647; }
pre {
  max-height: 260px;
  overflow: auto;
  background: #101820;
  color: #d8e4ec;
  border-radius: 6px;
  padding: 12px;
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; }
}
