html, body {
  margin: 0;
  padding: 0;
  background: #0b1020;
  color: #e8ebf5;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

* { box-sizing: border-box; }

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

a { color: #9ad1ff; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 28px 18px; }
.header { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.muted { color: #aab2d6; }
.small { font-size: 12px; }
.back { color: #e8ebf5; }
.nav a {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 16px;
  margin: 14px 0;
}

h1 { font-size: 22px; margin: 0; }
h2 { font-size: 16px; margin: 0 0 10px 0; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}
.grid > label { min-width: 0; }
.span2 { grid-column: span 2; }
.label { font-size: 12px; color: #c8cff0; margin-bottom: 6px; }
input, select, button {
  width: 100%;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: #e8ebf5;
}
input, select, button { min-width: 0; }
label { display: block; }
button {
  cursor: pointer;
  background: #2f6fed;
  border-color: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}
button:disabled { opacity: 0.5; cursor: not-allowed; }
.secondary {
  background: rgba(255, 255, 255, 0.06);
}
.actions { display: flex; justify-content: flex-end; }
.row { display:flex; align-items:center; justify-content:space-between; gap: 12px; }
.btn-link {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e8ebf5;
}
.btn-link:hover { text-decoration: none; }

.modal.hidden { display: none; }
.modal { position: fixed; inset: 0; display: grid; place-items: center; z-index: 50; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.65); }
.modal-card {
  position: relative;
  width: min(720px, calc(100vw - 26px));
  max-height: calc(100vh - 26px);
  overflow: auto;
  background: #0f1630;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px;
}
.icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 22px;
  line-height: 38px;
}

.sep { border: none; border-top: 1px solid rgba(255,255,255,0.10); margin: 14px 0; }
.editor {
  width: 100%;
  min-height: 420px;
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.35);
  color: #e8ebf5;
  white-space: pre;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.4;
}

.check { display: flex; align-items: center; gap: 10px; }
.check input { width: 18px; height: 18px; }
.check span { color: #c8cff0; font-size: 13px; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); vertical-align: top; }
.table th { font-size: 12px; color: #c8cff0; text-align: left; }

.pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.pill.ok { background: rgba(67, 207, 124, 0.16); }
.pill.bad { background: rgba(255, 107, 107, 0.16); }
.pill.running { background: rgba(255, 209, 102, 0.16); }

.banner {
  padding: 10px 12px;
  border-radius: 10px;
  margin: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.banner.warn { background: rgba(255, 209, 102, 0.12); }

.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; }
.k { color: #c8cff0; font-size: 12px; }
.v { font-size: 13px; }

.log {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  overflow: auto;
  max-height: 420px;
  white-space: pre-wrap;
}

.progress-wrap { margin-top: 10px; margin-bottom: 12px; }
.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2f6fed, #43cf7c);
  width: 0%;
}

