:root {
  --bg: #f4f7f7;
  --card: #ffffff;
  --text: #132226;
  --muted: #4a5a60;
  --line: #d4dde0;
  --accent: #0a6a73;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #edf4f4 0%, #f7fafb 100%);
  padding: 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  align-items: end;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  border-radius: 999px;
  border: 1px solid #9ab3b8;
  color: #2e5960;
  font-size: 11px;
  font-weight: 700;
  cursor: help;
  position: relative;
  background: #f4fbfc;
}

.hint:hover::after,
.hint:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  left: 22px;
  top: -2px;
  z-index: 20;
  width: 240px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #b8d2d6;
  background: #f9feff;
  color: #0f2f34;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
  box-shadow: 0 6px 14px rgba(20, 44, 48, 0.12);
}

input, button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
}

button {
  cursor: pointer;
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.button-danger {
  background: #a91c1c;
  border-color: #a91c1c;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  padding: 8px;
}

.muted { color: var(--muted); }
.row { display: flex; gap: 10px; }
.subhead-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  margin-bottom: 8px;
  gap: 10px;
}
.subhead-row h3 {
  margin: 0;
}
.shell { max-width: 420px; margin: 80px auto; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.error { color: #ba1a1a; }

.run-error-banner {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #f1b8b8;
  background: #fff2f2;
  color: #7a0b0b;
  font-size: 13px;
}

.run-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 8px;
}

.run-meta-item {
  border: 1px solid #cfe0e3;
  background: #f4fbfc;
  border-radius: 8px;
  padding: 8px 10px;
}

.run-meta-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #4b656a;
  margin-bottom: 3px;
}

.run-meta-value {
  display: block;
  font-size: 13px;
  color: #1f3f45;
  word-break: break-word;
}

.faq-item {
  border: 1px solid #d7e3e6;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: #fcfefe;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-item p {
  margin: 8px 0 0;
  color: #2c4c52;
  font-size: 13px;
}
