.meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.35;
}

.text {
  white-space: pre-wrap;
  line-height: 1.55;
  font-size: 14px;
  color: #141418;
}

.small {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.35;
}

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(230, 197, 107, 0.22);
  border: 1px solid rgba(245, 200, 76, .38);
  color: #5c5746;
  font-size: 10px;
  margin-right: 6px;
}

#nodeText{
  color: #a11b12;
  font-weight: bold;
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

button {
  border: 1px solid transparent;
  background: var(--btn-dark);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: transform .04s ease, background-color .12s ease, border-color .12s ease, box-shadow .12s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
}

button:hover { background: var(--btn-dark-hover); }
button:active { transform: translateY(1px); }

button.secondary {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border);
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}

button.secondary:hover {
  border-color: #d6d9e2;
  background: #fbfbfd;
}

button.danger {
  background: var(--danger);
  border-color: rgba(0,0,0,.06);
}

button.danger:hover { background: #a11b12; }

.inputs {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.history {
  display: grid;
  gap: 8px;
}

.history-item {
  font-size: 12px;
  color: #2b2b33;
  background: #f2f4f8;
  border: 1px solid #e7e9ee;
  padding: 8px 10px;
  border-radius: 12px;
}

.qbank {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.qcard {
  background: #f2f4f8;
  border: 1px solid #e7e9ee;
  border-radius: var(--radius-lg);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.qtitle {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.qtext {
  font-size: 12px;
  color: #2b2b33;
  white-space: pre-wrap;
  line-height: 1.45;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 16px;
  padding: 10px 10px 16px 10px;
  border-radius: var(--radius-lg);
  background: #fbfbfd;
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--border);
}

.toolbar .field {
  min-width: 240px;
}

.toolbar button {
  min-width: 42px;
  padding: 10px 12px;
}

.chooser { display:grid; gap:12px; }
.flowcard { border:1px solid #e4e8f2; border-radius:12px; padding:12px; background:#fff; }
